@malloy-publisher/server 0.8.4 → 0.9.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 (27) hide show
  1. package/README.docker.md +45 -2
  2. package/dist/app/api-doc.yaml +9 -8
  3. package/dist/app/assets/{EnvironmentPage-CqhWacr8.js → EnvironmentPage-UMS7Py4Q.js} +1 -1
  4. package/dist/app/assets/{HomePage-Bvka32On.js → HomePage-D3MvQaZn.js} +1 -1
  5. package/dist/app/assets/{LightMode-Cbewcf9k.js → LightMode-e1lNBfpL.js} +1 -1
  6. package/dist/app/assets/{MainPage-COYTYOjz.js → MainPage-B0ozqtQO.js} +1 -1
  7. package/dist/app/assets/{ModelPage-Bgd6aix7.js → ModelPage-lQj4Axqu.js} +2 -2
  8. package/dist/app/assets/{PackagePage-dTZ47Ovr.js → PackagePage-BT0YKNKU.js} +1 -1
  9. package/dist/app/assets/{RenderedResult-6UKAHaAj.es-DwPcKrEj.js → RenderedResult-BRgIgxWh.es-DiE7kPNX.js} +3 -3
  10. package/dist/app/assets/{RouteError-eVUmHlyg.js → RouteError-BQnzPJvb.js} +1 -1
  11. package/dist/app/assets/{ThemeEditorPage-BMUZ6xO_.js → ThemeEditorPage-D6t7w9Js.js} +1 -1
  12. package/dist/app/assets/{ToggleButtonGroup-CcURl_SZ.js → ToggleButtonGroup-CJT2JKTC.js} +1 -1
  13. package/dist/app/assets/index-ByieDZlo.js +23 -0
  14. package/dist/app/assets/{index-DW7XZeXK.js → index-CCNqF0-G.js} +1 -1
  15. package/dist/app/assets/{index-Cn5hjjjT.js → index-CKmZ4HG7.js} +388 -388
  16. package/dist/app/assets/{index-BJ0aX8Z9.js → index-CdExa3Pk.js} +1 -1
  17. package/dist/app/assets/index-TiWjmdoW.js +450 -0
  18. package/dist/app/assets/{index-DSoCUF-f.js → index-ireHUsv_.js} +419 -422
  19. package/dist/app/assets/{index--kypg58s.js → index-ufFZR_K-.js} +1 -1
  20. package/dist/app/assets/{index.es-Cmnwwmfe.js → index.es-iUV0gCYk.js} +4 -4
  21. package/dist/app/index.html +1 -1
  22. package/dist/instrumentation.mjs +31332 -45893
  23. package/dist/package_load_worker.mjs +314 -197
  24. package/dist/server.mjs +138351 -137319
  25. package/package.json +17 -17
  26. package/dist/app/assets/index-D7mqb3VK.js +0 -447
  27. package/dist/app/assets/index-w_0OQJgZ.js +0 -23
@@ -1,447 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index--kypg58s.js","assets/index-Cn5hjjjT.js","assets/index-w_0OQJgZ.js","assets/index-CRAwrhYM.js","assets/index-DW7XZeXK.js","assets/index-BJ0aX8Z9.js","assets/index-DSoCUF-f.js","assets/core-B8oMW4sm.es-hOkwvru5.js","assets/engine-oniguruma-C4vnmooL.es-jdkXmgTr.js","assets/MainPage-COYTYOjz.js","assets/LightMode-Cbewcf9k.js","assets/ThemeEditorPage-BMUZ6xO_.js","assets/ToggleButtonGroup-CcURl_SZ.js"])))=>i.map(i=>d[i]);
2
- function m5(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 whe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t1={exports:{}},Sh={};/**
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 NE;function g5(){if(NE)return Sh;NE=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 Sh.Fragment=t,Sh.jsx=n,Sh.jsxs=n,Sh}var IE;function y5(){return IE||(IE=1,t1.exports=g5()),t1.exports}var m=y5(),n1={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 LE;function v5(){if(LE)return _n;LE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),h=Symbol.iterator;function y(X){return X===null||typeof X!="object"?null:(X=h&&X[h]||X["@@iterator"],typeof X=="function"?X:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,x={};function w(X,Q,ne){this.props=X,this.context=Q,this.refs=x,this.updater=ne||b}w.prototype.isReactComponent={},w.prototype.setState=function(X,Q){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,Q,"setState")},w.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function S(){}S.prototype=w.prototype;function M(X,Q,ne){this.props=X,this.context=Q,this.refs=x,this.updater=ne||b}var T=M.prototype=new S;T.constructor=M,v(T,w.prototype),T.isPureReactComponent=!0;var R=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;function N(X,Q,ne,ie,pe,oe){return ne=oe.ref,{$$typeof:e,type:X,key:Q,ref:ne!==void 0?ne:null,props:oe}}function V(X,Q){return N(X.type,Q,void 0,void 0,void 0,X.props)}function F(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function W(X){var Q={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(ne){return Q[ne]})}var _=/\/+/g;function k(X,Q){return typeof X=="object"&&X!==null&&X.key!=null?W(""+X.key):Q.toString(36)}function I(){}function z(X){switch(X.status){case"fulfilled":return X.value;case"rejected":throw X.reason;default:switch(typeof X.status=="string"?X.then(I,I):(X.status="pending",X.then(function(Q){X.status==="pending"&&(X.status="fulfilled",X.value=Q)},function(Q){X.status==="pending"&&(X.status="rejected",X.reason=Q)})),X.status){case"fulfilled":return X.value;case"rejected":throw X.reason}}throw X}function H(X,Q,ne,ie,pe){var oe=typeof X;(oe==="undefined"||oe==="boolean")&&(X=null);var ae=!1;if(X===null)ae=!0;else switch(oe){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(X.$$typeof){case e:case t:ae=!0;break;case c:return ae=X._init,H(ae(X._payload),Q,ne,ie,pe)}}if(ae)return pe=pe(X),ae=ie===""?"."+k(X,0):ie,R(pe)?(ne="",ae!=null&&(ne=ae.replace(_,"$&/")+"/"),H(pe,Q,ne,"",function(ye){return ye})):pe!=null&&(F(pe)&&(pe=V(pe,ne+(pe.key==null||X&&X.key===pe.key?"":(""+pe.key).replace(_,"$&/")+"/")+ae)),Q.push(pe)),1;ae=0;var ce=ie===""?".":ie+":";if(R(X))for(var me=0;me<X.length;me++)ie=X[me],oe=ce+k(ie,me),ae+=H(ie,Q,ne,oe,pe);else if(me=y(X),typeof me=="function")for(X=me.call(X),me=0;!(ie=X.next()).done;)ie=ie.value,oe=ce+k(ie,me++),ae+=H(ie,Q,ne,oe,pe);else if(oe==="object"){if(typeof X.then=="function")return H(z(X),Q,ne,ie,pe);throw Q=String(X),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ae}function A(X,Q,ne){if(X==null)return X;var ie=[],pe=0;return H(X,ie,"","",function(oe){return Q.call(ne,oe,pe++)}),ie}function Z(X){if(X._status===-1){var Q=X._result;Q=Q(),Q.then(function(ne){(X._status===0||X._status===-1)&&(X._status=1,X._result=ne)},function(ne){(X._status===0||X._status===-1)&&(X._status=2,X._result=ne)}),X._status===-1&&(X._status=0,X._result=Q)}if(X._status===1)return X._result.default;throw X._result}var K=typeof reportError=="function"?reportError:function(X){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof X=="object"&&X!==null&&typeof X.message=="string"?String(X.message):String(X),error:X});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",X);return}console.error(X)};function te(){}return _n.Children={map:A,forEach:function(X,Q,ne){A(X,function(){Q.apply(this,arguments)},ne)},count:function(X){var Q=0;return A(X,function(){Q++}),Q},toArray:function(X){return A(X,function(Q){return Q})||[]},only:function(X){if(!F(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},_n.Component=w,_n.Fragment=n,_n.Profiler=o,_n.PureComponent=M,_n.StrictMode=r,_n.Suspense=u,_n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,_n.__COMPILER_RUNTIME={__proto__:null,c:function(X){return $.H.useMemoCache(X)}},_n.cache=function(X){return function(){return X.apply(null,arguments)}},_n.cloneElement=function(X,Q,ne){if(X==null)throw Error("The argument must be a React element, but you passed "+X+".");var ie=v({},X.props),pe=X.key,oe=void 0;if(Q!=null)for(ae in Q.ref!==void 0&&(oe=void 0),Q.key!==void 0&&(pe=""+Q.key),Q)!P.call(Q,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&Q.ref===void 0||(ie[ae]=Q[ae]);var ae=arguments.length-2;if(ae===1)ie.children=ne;else if(1<ae){for(var ce=Array(ae),me=0;me<ae;me++)ce[me]=arguments[me+2];ie.children=ce}return N(X.type,pe,void 0,void 0,oe,ie)},_n.createContext=function(X){return X={$$typeof:s,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null},X.Provider=X,X.Consumer={$$typeof:a,_context:X},X},_n.createElement=function(X,Q,ne){var ie,pe={},oe=null;if(Q!=null)for(ie in Q.key!==void 0&&(oe=""+Q.key),Q)P.call(Q,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(pe[ie]=Q[ie]);var ae=arguments.length-2;if(ae===1)pe.children=ne;else if(1<ae){for(var ce=Array(ae),me=0;me<ae;me++)ce[me]=arguments[me+2];pe.children=ce}if(X&&X.defaultProps)for(ie in ae=X.defaultProps,ae)pe[ie]===void 0&&(pe[ie]=ae[ie]);return N(X,oe,void 0,void 0,null,pe)},_n.createRef=function(){return{current:null}},_n.forwardRef=function(X){return{$$typeof:l,render:X}},_n.isValidElement=F,_n.lazy=function(X){return{$$typeof:c,_payload:{_status:-1,_result:X},_init:Z}},_n.memo=function(X,Q){return{$$typeof:f,type:X,compare:Q===void 0?null:Q}},_n.startTransition=function(X){var Q=$.T,ne={};$.T=ne;try{var ie=X(),pe=$.S;pe!==null&&pe(ne,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(te,K)}catch(oe){K(oe)}finally{$.T=Q}},_n.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},_n.use=function(X){return $.H.use(X)},_n.useActionState=function(X,Q,ne){return $.H.useActionState(X,Q,ne)},_n.useCallback=function(X,Q){return $.H.useCallback(X,Q)},_n.useContext=function(X){return $.H.useContext(X)},_n.useDebugValue=function(){},_n.useDeferredValue=function(X,Q){return $.H.useDeferredValue(X,Q)},_n.useEffect=function(X,Q,ne){var ie=$.H;if(typeof ne=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ie.useEffect(X,Q)},_n.useId=function(){return $.H.useId()},_n.useImperativeHandle=function(X,Q,ne){return $.H.useImperativeHandle(X,Q,ne)},_n.useInsertionEffect=function(X,Q){return $.H.useInsertionEffect(X,Q)},_n.useLayoutEffect=function(X,Q){return $.H.useLayoutEffect(X,Q)},_n.useMemo=function(X,Q){return $.H.useMemo(X,Q)},_n.useOptimistic=function(X,Q){return $.H.useOptimistic(X,Q)},_n.useReducer=function(X,Q,ne){return $.H.useReducer(X,Q,ne)},_n.useRef=function(X){return $.H.useRef(X)},_n.useState=function(X){return $.H.useState(X)},_n.useSyncExternalStore=function(X,Q,ne){return $.H.useSyncExternalStore(X,Q,ne)},_n.useTransition=function(){return $.H.useTransition()},_n.version="19.1.1",_n}var zE;function Nw(){return zE||(zE=1,n1.exports=v5()),n1.exports}var C=Nw();const an=DD(C),Dm=m5({__proto__:null,default:an},[C]);var r1={exports:{}},wh={},o1={exports:{}},a1={};/**
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 FE;function b5(){return FE||(FE=1,(function(e){function t(A,Z){var K=A.length;A.push(Z);e:for(;0<K;){var te=K-1>>>1,X=A[te];if(0<o(X,Z))A[te]=Z,A[K]=X,K=te;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var Z=A[0],K=A.pop();if(K!==Z){A[0]=K;e:for(var te=0,X=A.length,Q=X>>>1;te<Q;){var ne=2*(te+1)-1,ie=A[ne],pe=ne+1,oe=A[pe];if(0>o(ie,K))pe<X&&0>o(oe,ie)?(A[te]=oe,A[pe]=K,te=pe):(A[te]=ie,A[ne]=K,te=ne);else if(pe<X&&0>o(oe,K))A[te]=oe,A[pe]=K,te=pe;else break e}}return Z}function o(A,Z){var K=A.sortIndex-Z.sortIndex;return K!==0?K:A.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],f=[],c=1,h=null,y=3,b=!1,v=!1,x=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function R(A){for(var Z=n(f);Z!==null;){if(Z.callback===null)r(f);else if(Z.startTime<=A)r(f),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=n(f)}}function $(A){if(x=!1,R(A),!v)if(n(u)!==null)v=!0,P||(P=!0,k());else{var Z=n(f);Z!==null&&H($,Z.startTime-A)}}var P=!1,N=-1,V=5,F=-1;function W(){return w?!0:!(e.unstable_now()-F<V)}function _(){if(w=!1,P){var A=e.unstable_now();F=A;var Z=!0;try{e:{v=!1,x&&(x=!1,M(N),N=-1),b=!0;var K=y;try{t:{for(R(A),h=n(u);h!==null&&!(h.expirationTime>A&&W());){var te=h.callback;if(typeof te=="function"){h.callback=null,y=h.priorityLevel;var X=te(h.expirationTime<=A);if(A=e.unstable_now(),typeof X=="function"){h.callback=X,R(A),Z=!0;break t}h===n(u)&&r(u),R(A)}else r(u);h=n(u)}if(h!==null)Z=!0;else{var Q=n(f);Q!==null&&H($,Q.startTime-A),Z=!1}}break e}finally{h=null,y=K,b=!1}Z=void 0}}finally{Z?k():P=!1}}}var k;if(typeof T=="function")k=function(){T(_)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,z=I.port2;I.port1.onmessage=_,k=function(){z.postMessage(null)}}else k=function(){S(_,0)};function H(A,Z){N=S(function(){A(e.unstable_now())},Z)}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(A){A.callback=null},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(A){switch(y){case 1:case 2:case 3:var Z=3;break;default:Z=y}var K=y;y=Z;try{return A()}finally{y=K}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(A,Z){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var K=y;y=A;try{return Z()}finally{y=K}},e.unstable_scheduleCallback=function(A,Z,K){var te=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?te+K:te):K=te,A){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=K+X,A={id:c++,callback:Z,priorityLevel:A,startTime:K,expirationTime:X,sortIndex:-1},K>te?(A.sortIndex=K,t(f,A),n(u)===null&&A===n(f)&&(x?(M(N),N=-1):x=!0,H($,K-te))):(A.sortIndex=X,t(u,A),v||b||(v=!0,P||(P=!0,k()))),A},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(A){var Z=y;return function(){var K=y;y=Z;try{return A.apply(this,arguments)}finally{y=K}}}})(a1)),a1}var BE;function x5(){return BE||(BE=1,o1.exports=b5()),o1.exports}var i1={exports:{}},Zo={};/**
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 UE;function S5(){if(UE)return Zo;UE=1;var e=Nw();function t(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)f+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(u,f,c){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:u,containerInfo:f,implementation:c}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(u,f){if(u==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Zo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Zo.createPortal=function(u,f){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(u,f,null,c)},Zo.flushSync=function(u){var f=s.T,c=r.p;try{if(s.T=null,r.p=2,u)return u()}finally{s.T=f,r.p=c,r.d.f()}},Zo.preconnect=function(u,f){typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(u,f))},Zo.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Zo.preinit=function(u,f){if(typeof u=="string"&&f&&typeof f.as=="string"){var c=f.as,h=l(c,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;c==="style"?r.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:b}):c==="script"&&r.d.X(u,{crossOrigin:h,integrity:y,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Zo.preinitModule=function(u,f){if(typeof u=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var c=l(f.as,f.crossOrigin);r.d.M(u,{crossOrigin:c,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(u)},Zo.preload=function(u,f){if(typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var c=f.as,h=l(c,f.crossOrigin);r.d.L(u,c,{crossOrigin:h,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})}},Zo.preloadModule=function(u,f){if(typeof u=="string")if(f){var c=l(f.as,f.crossOrigin);r.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:c,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(u)},Zo.requestFormReset=function(u){r.d.r(u)},Zo.unstable_batchedUpdates=function(u,f){return u(f)},Zo.useFormState=function(u,f,c){return s.H.useFormState(u,f,c)},Zo.useFormStatus=function(){return s.H.useHostTransitionStatus()},Zo.version="19.1.1",Zo}var _E;function AD(){if(_E)return i1.exports;_E=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(),i1.exports=S5(),i1.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 VE;function w5(){if(VE)return wh;VE=1;var e=x5(),t=Nw(),n=AD();function r(i){var d="https://react.dev/errors/"+i;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+i+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function a(i){var d=i,p=i;if(i.alternate)for(;d.return;)d=d.return;else{i=d;do d=i,(d.flags&4098)!==0&&(p=d.return),i=d.return;while(i)}return d.tag===3?p:null}function s(i){if(i.tag===13){var d=i.memoizedState;if(d===null&&(i=i.alternate,i!==null&&(d=i.memoizedState)),d!==null)return d.dehydrated}return null}function l(i){if(a(i)!==i)throw Error(r(188))}function u(i){var d=i.alternate;if(!d){if(d=a(i),d===null)throw Error(r(188));return d!==i?null:i}for(var p=i,g=d;;){var E=p.return;if(E===null)break;var D=E.alternate;if(D===null){if(g=E.return,g!==null){p=g;continue}break}if(E.child===D.child){for(D=E.child;D;){if(D===p)return l(E),i;if(D===g)return l(E),d;D=D.sibling}throw Error(r(188))}if(p.return!==g.return)p=E,g=D;else{for(var 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:d}function f(i){var d=i.tag;if(d===5||d===26||d===27||d===6)return i;for(i=i.child;i!==null;){if(d=f(i),d!==null)return d;i=i.sibling}return null}var c=Object.assign,h=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),T=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"),F=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),_=Symbol.iterator;function k(i){return i===null||typeof i!="object"?null:(i=_&&i[_]||i["@@iterator"],typeof i=="function"?i:null)}var I=Symbol.for("react.client.reference");function z(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 v:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case $:return"Suspense";case P:return"SuspenseList";case F:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case b:return"Portal";case T:return(i.displayName||"Context")+".Provider";case M:return(i._context.displayName||"Context")+".Consumer";case R:var d=i.render;return i=i.displayName,i||(i=d.displayName||d.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case N:return d=i.displayName||null,d!==null?d:z(i.type)||"Memo";case V:d=i._payload,i=i._init;try{return z(i(d))}catch{}}return null}var H=Array.isArray,A=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},te=[],X=-1;function Q(i){return{current:i}}function ne(i){0>X||(i.current=te[X],te[X]=null,X--)}function ie(i,d){X++,te[X]=i.current,i.current=d}var pe=Q(null),oe=Q(null),ae=Q(null),ce=Q(null);function me(i,d){switch(ie(ae,d),ie(oe,i),ie(pe,null),d.nodeType){case 9:case 11:i=(i=d.documentElement)&&(i=i.namespaceURI)?cE(i):0;break;default:if(i=d.tagName,d=d.namespaceURI)d=cE(d),i=uE(d,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ne(pe),ie(pe,i)}function ye(){ne(pe),ne(oe),ne(ae)}function we(i){i.memoizedState!==null&&ie(ce,i);var d=pe.current,p=uE(d,i.type);d!==p&&(ie(oe,i),ie(pe,p))}function Ce(i){oe.current===i&&(ne(pe),ne(oe)),ce.current===i&&(ne(ce),gh._currentValue=K)}var Te=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,ke=e.unstable_cancelCallback,Ge=e.unstable_shouldYield,ze=e.unstable_requestPaint,Ne=e.unstable_now,le=e.unstable_getCurrentPriorityLevel,xt=e.unstable_ImmediatePriority,Fe=e.unstable_UserBlockingPriority,it=e.unstable_NormalPriority,ct=e.unstable_LowPriority,Ft=e.unstable_IdlePriority,_t=e.log,at=e.unstable_setDisableYieldValue,Ze=null,rt=null;function je(i){if(typeof _t=="function"&&at(i),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Ze,i)}catch{}}var he=Math.clz32?Math.clz32:kt,We=Math.log,Me=Math.LN2;function kt(i){return i>>>=0,i===0?32:31-(We(i)/Me|0)|0}var Mt=256,gt=4194304;function ut(i){var d=i&42;if(d!==0)return d;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function $t(i,d,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=ut(g):(J&=re,J!==0?E=ut(J):p||(p=re&~i,p!==0&&(E=ut(p))))):(re=g&~D,re!==0?E=ut(re):J!==0?E=ut(J):p||(p=g&~i,p!==0&&(E=ut(p)))),E===0?0:d!==0&&d!==E&&(d&D)===0&&(D=E&-E,p=d&-d,D>=p||D===32&&(p&4194048)!==0)?d:E}function Vt(i,d){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&d)===0}function dn(i,d){switch(i){case 1:case 2:case 4:case 8:case 64:return d+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function 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 d=[],p=0;31>p;p++)d.push(i);return d}function Qt(i,d){i.pendingLanes|=d,d!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function In(i,d,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 ft=31-he(p),bt=1<<ft;re[ft]=0,xe[ft]=-1;var Ye=_e[ft];if(Ye!==null)for(_e[ft]=null,ft=0;ft<Ye.length;ft++){var Xe=Ye[ft];Xe!==null&&(Xe.lane&=-536870913)}p&=~bt}g!==0&&be(i,g,0),D!==0&&E===0&&i.tag!==0&&(i.suspendedLanes|=D&~(J&~d))}function be(i,d,p){i.pendingLanes|=d,i.suspendedLanes&=~d;var g=31-he(d);i.entangledLanes|=d,i.entanglements[g]=i.entanglements[g]|1073741824|p&4194090}function zn(i,d){var p=i.entangledLanes|=d;for(i=i.entanglements;p;){var g=31-he(p),E=1<<g;E&d|i[g]&d&&(i[g]|=d),p&=~E}}function 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 se(){var i=Z.p;return i!==0?i:(i=window.event,i===void 0?32:RE(i.type))}function Pe(i,d){var p=Z.p;try{return Z.p=i,d()}finally{Z.p=p}}var Le=Math.random().toString(36).slice(2),qe="__reactFiber$"+Le,dt="__reactProps$"+Le,It="__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[dt],delete i[Bt],delete i[Dt],delete i[mt]}function Wt(i){var d=i[qe];if(d)return d;for(var p=i.parentNode;p;){if(d=p[It]||p[qe]){if(p=d.alternate,d.child!==null||p!==null&&p.child!==null)for(i=hE(i);i!==null;){if(p=i[qe])return p;i=hE(i)}return d}i=p,p=i.parentNode}return null}function On(i){if(i=i[qe]||i[It]){var d=i.tag;if(d===5||d===6||d===13||d===26||d===27||d===3)return i}return null}function qn(i){var d=i.tag;if(d===5||d===26||d===27||d===6)return i.stateNode;throw Error(r(33))}function bn(i){var d=i[At];return d||(d=i[At]={hoistableStyles:new Map,hoistableScripts:new Map}),d}function fn(i){i[Et]=!0}var de=new Set,fe={};function Ve(i,d){vt(i,d),vt(i+"Capture",d)}function vt(i,d){for(fe[i]=d,i=0;i<d.length;i++)de.add(d[i])}var Ke=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Zt={},nn={};function pn(i){return Te.call(nn,i)?!0:Te.call(Zt,i)?!1:Ke.test(i)?nn[i]=!0:(Zt[i]=!0,!1)}function ge(i,d,p){if(pn(d))if(p===null)i.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":i.removeAttribute(d);return;case"boolean":var g=d.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){i.removeAttribute(d);return}}i.setAttribute(d,""+p)}}function Oe(i,d,p){if(p===null)i.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(d);return}i.setAttribute(d,""+p)}}function He(i,d,p,g){if(g===null)i.removeAttribute(p);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(p);return}i.setAttributeNS(d,p,""+g)}}var yt,Rt;function Ct(i){if(yt===void 0)try{throw Error()}catch(p){var d=p.stack.trim().match(/\n( *(at )?)/);yt=d&&d[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 Gt(i,d){if(!i||St)return"";St=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(d){var bt=function(){throw Error()};if(Object.defineProperty(bt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(bt,[])}catch(Xe){var Ye=Xe}Reflect.construct(i,[],bt)}else{try{bt.call()}catch(Xe){Ye=Xe}i.call(bt.prototype)}}else{try{throw Error()}catch(Xe){Ye=Xe}(bt=i())&&typeof bt.catch=="function"&&bt.catch(function(){})}}catch(Xe){if(Xe&&Ye&&typeof Xe.stack=="string")return[Xe.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 ft=`
47
- `+xe[g].replace(" at new "," at ");return i.displayName&&ft.includes("<anonymous>")&&(ft=ft.replace("<anonymous>",i.displayName)),ft}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 Gt(i.type,!1);case 11:return Gt(i.type.render,!1);case 1:return Gt(i.type,!0);case 31:return Ct("Activity");default:return""}}function ur(i){try{var d="";do d+=xn(i),i=i.return;while(i);return d}catch(p){return`
48
- Error generating stack: `+p.message+`
49
- `+p.stack}}function lr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ba(i){var d=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function Ki(i){var d=Ba(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,d),g=""+i[d];if(!i.hasOwnProperty(d)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var E=p.get,D=p.set;return Object.defineProperty(i,d,{configurable:!0,get:function(){return E.call(this)},set:function(J){g=""+J,D.call(this,J)}}),Object.defineProperty(i,d,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(J){g=""+J},stopTracking:function(){i._valueTracker=null,delete i[d]}}}}function bs(i){i._valueTracker||(i._valueTracker=Ki(i))}function Vl(i){if(!i)return!1;var d=i._valueTracker;if(!d)return!0;var p=d.getValue(),g="";return i&&(g=Ba(i)?i.checked?"true":"false":i.value),i=g,i!==p?(d.setValue(i),!0):!1}function gi(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(d){return"\\"+d.charCodeAt(0).toString(16)+" "})}function Ss(i,d,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"),d!=null?J==="number"?(d===0&&i.value===""||i.value!=d)&&(i.value=""+lr(d)):i.value!==""+lr(d)&&(i.value=""+lr(d)):J!=="submit"&&J!=="reset"||i.removeAttribute("value"),d!=null?Qi(i,J,lr(d)):p!=null?Qi(i,J,lr(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=""+lr(re):i.removeAttribute("name")}function Xc(i,d,p,g,E,D,J,re){if(D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(i.type=D),d!=null||p!=null){if(!(D!=="submit"&&D!=="reset"||d!=null))return;p=p!=null?""+lr(p):"",d=d!=null?""+lr(d):p,re||d===i.value||(i.value=d),i.defaultValue=d}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,d,p){d==="number"&&gi(i.ownerDocument)===i||i.defaultValue===""+p||(i.defaultValue=""+p)}function yi(i,d,p,g){if(i=i.options,d){d={};for(var E=0;E<p.length;E++)d["$"+p[E]]=!0;for(p=0;p<i.length;p++)E=d.hasOwnProperty("$"+i[p].value),i[p].selected!==E&&(i[p].selected=E),E&&g&&(i[p].defaultSelected=!0)}else{for(p=""+lr(p),d=null,E=0;E<i.length;E++){if(i[E].value===p){i[E].selected=!0,g&&(i[E].defaultSelected=!0);return}d!==null||i[E].disabled||(d=i[E])}d!==null&&(d.selected=!0)}}function Zc(i,d,p){if(d!=null&&(d=""+lr(d),d!==i.value&&(i.value=d),p==null)){i.defaultValue!==d&&(i.defaultValue=d);return}i.defaultValue=p!=null?""+lr(p):""}function al(i,d,p,g){if(d==null){if(g!=null){if(p!=null)throw Error(r(92));if(H(g)){if(1<g.length)throw Error(r(93));g=g[0]}p=g}p==null&&(p=""),d=p}p=lr(d),i.defaultValue=p,g=i.textContent,g===p&&g!==""&&g!==null&&(i.value=g)}function Xi(i,d){if(d){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=d;return}}i.textContent=d}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,d,p){var g=d.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?g?i.setProperty(d,""):d==="float"?i.cssFloat="":i[d]="":g?i.setProperty(d,p):typeof p!="number"||p===0||Hl.has(d)?d==="float"?i.cssFloat=p:i[d]=(""+p).trim():i[d]=p+"px"}function il(i,d,p){if(d!=null&&typeof d!="object")throw Error(r(62));if(i=i.style,p!=null){for(var g in p)!p.hasOwnProperty(g)||d!=null&&d.hasOwnProperty(g)||(g.indexOf("--")===0?i.setProperty(g,""):g==="float"?i.cssFloat="":i[g]="");for(var E in d)g=d[E],d.hasOwnProperty(E)&&p[E]!==g&&ws(i,E,g)}else for(var D in d)d.hasOwnProperty(D)&&ws(i,D,d[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"]]),xp=/^[\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 sl(i){return xp.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 d=On(i);if(d&&(i=d.stateNode)){var p=i[dt]||null;e:switch(i=d.stateNode,d.type){case"input":if(Ss(i,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),d=p.name,p.type==="radio"&&d!=null){for(p=i;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+Mo(""+d)+'"][type="radio"]'),d=0;d<p.length;d++){var g=p[d];if(g!==i&&g.form===i.form){var E=g[dt]||null;if(!E)throw Error(r(90));Ss(g,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(d=0;d<p.length;d++)g=p[d],g.form===i.form&&Vl(g)}break e;case"textarea":Zc(i,p.value,p.defaultValue);break e;case"select":d=p.value,d!=null&&yi(i,!!p.multiple,d,!1)}}}var tu=!1;function vd(i,d,p){if(tu)return i(d,p);tu=!0;try{var g=i(d);return g}finally{if(tu=!1,(Cs!==null||Zi!==null)&&(sy(),Cs&&(d=Cs,i=Zi,Zi=Cs=null,eu(d),i)))for(d=0;d<i.length;d++)eu(i[d])}}function ll(i,d){var p=i.stateNode;if(p===null)return null;var g=p[dt]||null;if(g===null)return null;p=g[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(i=i.type,g=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!g;break e;default:i=!1}if(i)return null;if(p&&typeof p!="function")throw Error(r(231,d,typeof p));return p}var ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nu=!1;if(ya)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){nu=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{nu=!1}var vi=null,ru=null,Yl=null;function ou(){if(Yl)return Yl;var i,d=ru,p=d.length,g,E="value"in vi?vi.value:vi.textContent,D=E.length;for(i=0;i<p&&d[i]===E[i];i++);var J=p-i;for(g=1;g<=J&&d[p-g]===E[D-g];g++);return Yl=E.slice(i,1<g?1-g:void 0)}function Gl(i){var d=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&d===13&&(i=13)):i=d,i===10&&(i=13),32<=i||i===13?i:0}function Xr(){return!0}function au(){return!1}function j(i){function d(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)?Xr:au,this.isPropagationStopped=au,this}return c(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Xr)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Xr)},persist:function(){},isPersistent:Xr}),d}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zr=j(ho),Ua=c({},ho,{view:0,detail:0}),Ee=j(Ua),Ji,An,Do,ks=c({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dl,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=j(ks),bd=c({},ks,{dataTransfer:0}),xd=j(bd),Je=c({},Ua,{relatedTarget:0}),su=j(Je),lu=c({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),Kl=j(lu),Sd=c({},ho,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Ts=j(Sd),ul=c({},ho,{data:0}),es=j(ul),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"},Sp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wp(i){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(i):(i=Sp[i])?!!d[i]:!1}function dl(){return wp}var wd=c({},Ua,{key:function(i){if(i.key){var d=Ms[i.key]||i.key;if(d!=="Unidentified")return d}return i.type==="keypress"?(i=Gl(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:dl,charCode:function(i){return i.type==="keypress"?Gl(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Gl(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),cu=j(wd),Cp=c({},ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cd=j(Cp),kp=c({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dl}),kd=j(kp),uu=c({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tp=j(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}),Mp=j(Ql),Ep=c({},ho,{newState:0,oldState:0}),Op=j(Ep),Rp=[9,13,27,32],du=ya&&"CompositionEvent"in window,Es=null;ya&&"documentMode"in document&&(Es=document.documentMode);var $p=ya&&"TextEvent"in window&&!Es,Td=ya&&(!du||Es&&8<Es&&11>=Es),Md=" ",Ed=!1;function Od(i,d){switch(i){case"keyup":return Rp.indexOf(d.keyCode)!==-1;case"keydown":return d.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 Pp(i,d){switch(i){case"compositionend":return Rd(d);case"keypress":return d.which!==32?null:(Ed=!0,Md);case"textInput":return i=d.data,i===Md&&Ed?null:i;default:return null}}function Dp(i,d){if(Os)return i==="compositionend"||!du&&Od(i,d)?(i=ou(),Yl=ru=vi=null,Os=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return Td&&d.locale!=="ko"?null:d.data;default:return null}}var Ap={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 d=i&&i.nodeName&&i.nodeName.toLowerCase();return d==="input"?!!Ap[i.type]:d==="textarea"}function Pd(i,d,p,g){Cs?Zi?Zi.push(g):Zi=[g]:Cs=g,d=py(d,"onChange"),0<d.length&&(p=new Zr("onChange","change",null,p,g),i.push({event:p,listeners:d}))}var fl=null,tr=null;function ts(i){oE(i,0)}function Wr(i){var d=qn(i);if(Vl(d))return i}function B(i,d){if(i==="change")return d}var G=!1;if(ya){var q;if(ya){var Se="oninput"in document;if(!Se){var Yt=document.createElement("div");Yt.setAttribute("oninput","return;"),Se=typeof Yt.oninput=="function"}q=Se}else q=!1;G=q&&(!document.documentMode||9<document.documentMode)}function Ut(){fl&&(fl.detachEvent("onpropertychange",Rn),tr=fl=null)}function Rn(i){if(i.propertyName==="value"&&Wr(tr)){var d=[];Pd(d,tr,i,ql(i)),vd(ts,d)}}function Yn(i,d,p){i==="focusin"?(Ut(),fl=d,tr=p,fl.attachEvent("onpropertychange",Rn)):i==="focusout"&&Ut()}function Gn(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Wr(tr)}function qt(i,d){if(i==="click")return Wr(d)}function wr(i,d){if(i==="input"||i==="change")return Wr(d)}function Cr(i,d){return i===d&&(i!==0||1/i===1/d)||i!==i&&d!==d}var rn=typeof Object.is=="function"?Object.is:Cr;function gr(i,d){if(rn(i,d))return!0;if(typeof i!="object"||i===null||typeof d!="object"||d===null)return!1;var p=Object.keys(i),g=Object.keys(d);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var E=p[g];if(!Te.call(d,E)||!rn(i[E],d[E]))return!1}return!0}function Fr(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Ur(i,d){var p=Fr(i);i=0;for(var g;p;){if(p.nodeType===3){if(g=i+p.textContent.length,i<=d&&g>=d)return{node:p,offset:d-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Fr(p)}}function _a(i,d){return i&&d?i===d?!0:i&&i.nodeType===3?!1:d&&d.nodeType===3?_a(i,d.parentNode):"contains"in i?i.contains(d):i.compareDocumentPosition?!!(i.compareDocumentPosition(d)&16):!1:!1}function ia(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var d=gi(i.document);d instanceof i.HTMLIFrameElement;){try{var p=typeof d.contentWindow.location.href=="string"}catch{p=!1}if(p)i=d.contentWindow;else break;d=gi(i.document)}return d}function Ln(i){var d=i&&i.nodeName&&i.nodeName.toLowerCase();return d&&(d==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||d==="textarea"||i.contentEditable==="true")}var pl=ya&&"documentMode"in document&&11>=document.documentMode,sa=null,ns=null,Qo=null,Jr=!1;function hl(i,d,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Jr||sa==null||sa!==gi(g)||(g=sa,"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}),Qo&&gr(Qo,g)||(Qo=g,g=py(ns,"onSelect"),0<g.length&&(d=new Zr("onSelect","select",null,d,p),i.push({event:d,listeners:g}),d.target=sa)))}function mo(i,d){var p={};return p[i.toLowerCase()]=d.toLowerCase(),p["Webkit"+i]="webkit"+d,p["Moz"+i]="moz"+d,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")},jp={},$g={};ya&&($g=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 ml(i){if(jp[i])return jp[i];if(!Xl[i])return i;var d=Xl[i],p;for(p in d)if(d.hasOwnProperty(p)&&p in $g)return jp[i]=d[p];return i}var Pg=ml("animationend"),Dg=ml("animationiteration"),Ag=ml("animationstart"),Np=ml("transitionrun"),E0=ml("transitionstart"),O0=ml("transitioncancel"),Ip=ml("transitionend"),Lp=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 Va(i,d){Lp.set(i,d),Ve(d,[i])}var zp=new WeakMap;function Xo(i,d){if(typeof i=="object"&&i!==null){var p=zp.get(i);return p!==void 0?p:(d={value:i,source:d,stack:ur(d)},zp.set(i,d),d)}return{value:i,source:d,stack:ur(d)}}var la=[],bi=0,fu=0;function Zl(){for(var i=bi,d=fu=bi=0;d<i;){var p=la[d];la[d++]=null;var g=la[d];la[d++]=null;var E=la[d];la[d++]=null;var D=la[d];if(la[d++]=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 xi(i,d,p,g){la[bi++]=i,la[bi++]=d,la[bi++]=p,la[bi++]=g,fu|=g,i.lanes|=g,i=i.alternate,i!==null&&(i.lanes|=g)}function Ad(i,d,p,g){return xi(i,d,p,g),hu(i)}function rs(i,d){return xi(i,null,null,d),hu(i)}function pu(i,d,p){i.lanes|=p;var g=i.alternate;g!==null&&(g.lanes|=p);for(var E=!1,D=i.return;D!==null;)D.childLanes|=p,g=D.alternate,g!==null&&(g.childLanes|=p),D.tag===22&&(i=D.stateNode,i===null||i._visibility&1||(E=!0)),i=D,D=D.return;return i.tag===3?(D=i.stateNode,E&&d!==null&&(E=31-he(p),i=D.hiddenUpdates,g=i[E],g===null?i[E]=[d]:g.push(d),d.lane=p|536870912),D):null}function hu(i){if(50<lh)throw lh=0,Tx=null,Error(r(185));for(var d=i.return;d!==null;)i=d,d=i.return;return i.tag===3?i.stateNode:null}var Ha={};function jd(i,d,p,g){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bo(i,d,p,g){return new jd(i,d,p,g)}function Nd(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Si(i,d){var p=i.alternate;return p===null?(p=Bo(i.tag,d,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=d,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&65011712,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,d=i.dependencies,p.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p.refCleanup=i.refCleanup,p}function jg(i,d){i.flags&=65011714;var p=i.alternate;return p===null?(i.childLanes=0,i.lanes=d,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=p.childLanes,i.lanes=p.lanes,i.child=p.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=p.memoizedProps,i.memoizedState=p.memoizedState,i.updateQueue=p.updateQueue,i.type=p.type,d=p.dependencies,i.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext}),i}function Id(i,d,p,g,E,D){var J=0;if(g=i,typeof i=="function")Nd(i)&&(J=1);else if(typeof i=="string")J=n5(i,p,pe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case F:return i=Bo(31,p,d,E),i.elementType=F,i.lanes=D,i;case v:return wi(p.children,E,D,d);case x:J=8,E|=24;break;case w:return i=Bo(12,p,d,E|2),i.elementType=w,i.lanes=D,i;case $:return i=Bo(13,p,d,E),i.elementType=$,i.lanes=D,i;case P:return i=Bo(19,p,d,E),i.elementType=P,i.lanes=D,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case S:case T:J=10;break e;case M: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 d=Bo(J,p,d,E),d.elementType=i,d.type=g,d.lanes=D,d}function wi(i,d,p,g){return i=Bo(7,i,g,d),i.lanes=p,i}function Fp(i,d,p){return i=Bo(6,i,null,d),i.lanes=p,i}function Bp(i,d,p){return d=Bo(4,i.children!==null?i.children:[],i.key,d),d.lanes=p,d.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},d}var os=[],gl=0,Ld=null,mu=0,ca=[],ua=0,Wa=null,qa=1,mn="";function Ya(i,d){os[gl++]=mu,os[gl++]=Ld,Ld=i,mu=d}function Ng(i,d,p){ca[ua++]=qa,ca[ua++]=mn,ca[ua++]=Wa,Wa=i;var g=qa;i=mn;var E=32-he(g)-1;g&=~(1<<E),p+=1;var D=32-he(d)+E;if(30<D){var J=E-E%5;D=(g&(1<<J)-1).toString(32),g>>=J,E-=J,qa=1<<32-he(d)+E|p<<E|g,mn=D+i}else qa=1<<D|p<<E|g,mn=i}function U(i){i.return!==null&&(Ya(i,1),Ng(i,1,0))}function O(i){for(;i===Ld;)Ld=os[--gl],os[gl]=null,mu=os[--gl],os[gl]=null;for(;i===Wa;)Wa=ca[--ua],ca[ua]=null,mn=ca[--ua],ca[ua]=null,qa=ca[--ua],ca[ua]=null}var L=null,Y=null,ee=!1,ve=null,Re=!1,Ae=Error(r(519));function Ue(i){var d=Error(r(418,""));throw qr(Xo(d,i)),Ae}function Ot(i){var d=i.stateNode,p=i.type,g=i.memoizedProps;switch(d[qe]=i,d[dt]=g,p){case"dialog":rr("cancel",d),rr("close",d);break;case"iframe":case"object":case"embed":rr("load",d);break;case"video":case"audio":for(p=0;p<uh.length;p++)rr(uh[p],d);break;case"source":rr("error",d);break;case"img":case"image":case"link":rr("error",d),rr("load",d);break;case"details":rr("toggle",d);break;case"input":rr("invalid",d),Xc(d,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0),bs(d);break;case"select":rr("invalid",d);break;case"textarea":rr("invalid",d),al(d,g.value,g.defaultValue,g.children),bs(d)}p=g.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||d.textContent===""+p||g.suppressHydrationWarning===!0||lE(d.textContent,p)?(g.popover!=null&&(rr("beforetoggle",d),rr("toggle",d)),g.onScroll!=null&&rr("scroll",d),g.onScrollEnd!=null&&rr("scrollend",d),g.onClick!=null&&(d.onclick=hy),d=!0):d=!1,d||Ue(i)}function gn(i){for(L=i.return;L;)switch(L.tag){case 5:case 13:Re=!1;return;case 27:case 3:Re=!0;return;default:L=L.return}}function jn(i){if(i!==L)return!1;if(!ee)return gn(i),ee=!0,!1;var d=i.tag,p;if((p=d!==3&&d!==27)&&((p=d===5)&&(p=i.type,p=!(p!=="form"&&p!=="button")||Ux(i.type,i.memoizedProps)),p=!p),p&&Y&&Ue(i),gn(i),d===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,d=0;i;){if(i.nodeType===8)if(p=i.data,p==="/$"){if(d===0){Y=is(i.nextSibling);break e}d--}else p!=="$"&&p!=="$!"&&p!=="$?"||d++;i=i.nextSibling}Y=null}}else d===27?(d=Y,pc(i.type)?(i=Wx,Wx=null,Y=i):Y=d):Y=L?is(i.stateNode.nextSibling):null;return!0}function cr(){Y=L=null,ee=!1}function Sn(){var i=ve;return i!==null&&(Ca===null?Ca=i:Ca.push.apply(Ca,i),ve=null),i}function qr(i){ve===null?ve=[i]:ve.push(i)}var Ao=Q(null),va=null,ba=null;function xa(i,d,p){ie(Ao,d._currentValue),d._currentValue=p}function Ci(i){i._currentValue=Ao.current,ne(Ao)}function Up(i,d,p){for(;i!==null;){var g=i.alternate;if((i.childLanes&d)!==d?(i.childLanes|=d,g!==null&&(g.childLanes|=d)):g!==null&&(g.childLanes&d)!==d&&(g.childLanes|=d),i===p)break;i=i.return}}function zd(i,d,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<d.length;xe++)if(re.context===d[xe]){D.lanes|=p,re=D.alternate,re!==null&&(re.lanes|=p),Up(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),Up(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,d,p,g){i=null;for(var E=d,D=!1;E!==null;){if(!D){if((E.flags&524288)!==0)D=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var 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===ce.current){if(J=E.alternate,J===null)throw Error(r(387));J.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(i!==null?i.push(gh):i=[gh])}E=E.return}i!==null&&zd(d,i,p,g),d.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 yl(i){va=i,ba=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function to(i){return Ig(va,i)}function Rs(i,d){return va===null&&yl(i),Ig(i,d)}function Ig(i,d){var p=d._currentValue;if(d={context:d,memoizedValue:p,next:null},ba===null){if(i===null)throw Error(r(308));ba=d,i.dependencies={lanes:0,firstContext:d},i.flags|=524288}else ba=ba.next=d;return p}var tz=typeof AbortController<"u"?AbortController:function(){var i=[],d=this.signal={aborted:!1,addEventListener:function(p,g){i.push(g)}};this.abort=function(){d.aborted=!0,i.forEach(function(p){return p()})}},nz=e.unstable_scheduleCallback,rz=e.unstable_NormalPriority,Eo={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function R0(){return{controller:new tz,data:new Map,refCount:0}}function _p(i){i.refCount--,i.refCount===0&&nz(rz,function(){i.controller.abort()})}var Vp=null,$0=0,Bd=0,Ud=null;function oz(i,d){if(Vp===null){var p=Vp=[];$0=0,Bd=Dx(),Ud={status:"pending",value:void 0,then:function(g){p.push(g)}}}return $0++,d.then(Kk,Kk),d}function Kk(){if(--$0===0&&Vp!==null){Ud!==null&&(Ud.status="fulfilled");var i=Vp;Vp=null,Bd=0,Ud=null;for(var d=0;d<i.length;d++)(0,i[d])()}}function az(i,d){var p=[],g={status:"pending",value:null,reason:null,then:function(E){p.push(E)}};return i.then(function(){g.status="fulfilled",g.value=d;for(var E=0;E<p.length;E++)(0,p[E])(d)},function(E){for(g.status="rejected",g.reason=E,E=0;E<p.length;E++)(0,p[E])(void 0)}),g}var Qk=A.S;A.S=function(i,d){typeof d=="object"&&d!==null&&typeof d.then=="function"&&oz(i,d),Qk!==null&&Qk(i,d)};var yu=Q(null);function P0(){var i=yu.current;return i!==null?i:Br.pooledCache}function Lg(i,d){d===null?ie(yu,yu.current):ie(yu,d.pool)}function Xk(){var i=P0();return i===null?null:{parent:Eo._currentValue,pool:i}}var Hp=Error(r(460)),Zk=Error(r(474)),zg=Error(r(542)),D0={then:function(){}};function Jk(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Fg(){}function eT(i,d,p){switch(p=i[p],p===void 0?i.push(d):p!==d&&(d.then(Fg,Fg),d=p),d.status){case"fulfilled":return d.value;case"rejected":throw i=d.reason,nT(i),i;default:if(typeof d.status=="string")d.then(Fg,Fg);else{if(i=Br,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=d,i.status="pending",i.then(function(g){if(d.status==="pending"){var E=d;E.status="fulfilled",E.value=g}},function(g){if(d.status==="pending"){var E=d;E.status="rejected",E.reason=g}})}switch(d.status){case"fulfilled":return d.value;case"rejected":throw i=d.reason,nT(i),i}throw Wp=d,Hp}}var Wp=null;function tT(){if(Wp===null)throw Error(r(459));var i=Wp;return Wp=null,i}function nT(i){if(i===Hp||i===zg)throw Error(r(483))}var Jl=!1;function A0(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function j0(i,d){i=i.updateQueue,d.updateQueue===i&&(d.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function ec(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function tc(i,d,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(kr&2)!==0){var E=g.pending;return E===null?d.next=d:(d.next=E.next,E.next=d),g.pending=d,d=hu(i),pu(i,null,p),d}return xi(i,g,d,p),hu(i)}function qp(i,d,p){if(d=d.updateQueue,d!==null&&(d=d.shared,(p&4194048)!==0)){var g=d.lanes;g&=i.pendingLanes,p|=g,d.lanes=p,zn(i,p)}}function N0(i,d){var p=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var E=null,D=null;if(p=p.firstBaseUpdate,p!==null){do{var 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=d:D=D.next=d}else E=D=d;p={baseState:g.baseState,firstBaseUpdate:E,lastBaseUpdate:D,shared:g.shared,callbacks:g.callbacks},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=d:i.next=d,p.lastBaseUpdate=d}var I0=!1;function Yp(){if(I0){var i=Ud;if(i!==null)throw i}}function Gp(i,d,p,g){I0=!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 ft=i.alternate;ft!==null&&(ft=ft.updateQueue,re=ft.lastBaseUpdate,re!==J&&(re===null?ft.firstBaseUpdate=_e:re.next=_e,ft.lastBaseUpdate=xe))}if(D!==null){var bt=E.baseState;J=0,ft=_e=xe=null,re=D;do{var Ye=re.lane&-536870913,Xe=Ye!==re.lane;if(Xe?(dr&Ye)===Ye:(g&Ye)===Ye){Ye!==0&&Ye===Bd&&(I0=!0),ft!==null&&(ft=ft.next={lane:0,tag:re.tag,payload:re.payload,callback:null,next:null});e:{var Nn=i,$n=re;Ye=d;var Ar=p;switch($n.tag){case 1:if(Nn=$n.payload,typeof Nn=="function"){bt=Nn.call(Ar,bt,Ye);break e}bt=Nn;break e;case 3:Nn.flags=Nn.flags&-65537|128;case 0:if(Nn=$n.payload,Ye=typeof Nn=="function"?Nn.call(Ar,bt,Ye):Nn,Ye==null)break e;bt=c({},bt,Ye);break e;case 2:Jl=!0}}Ye=re.callback,Ye!==null&&(i.flags|=64,Xe&&(i.flags|=8192),Xe=E.callbacks,Xe===null?E.callbacks=[Ye]:Xe.push(Ye))}else Xe={lane:Ye,tag:re.tag,payload:re.payload,callback:re.callback,next:null},ft===null?(_e=ft=Xe,xe=bt):ft=ft.next=Xe,J|=Ye;if(re=re.next,re===null){if(re=E.shared.pending,re===null)break;Xe=re,re=Xe.next,Xe.next=null,E.lastBaseUpdate=Xe,E.shared.pending=null}}while(!0);ft===null&&(xe=bt),E.baseState=xe,E.firstBaseUpdate=_e,E.lastBaseUpdate=ft,D===null&&(E.shared.lanes=0),cc|=J,i.lanes=J,i.memoizedState=bt}}function rT(i,d){if(typeof i!="function")throw Error(r(191,i));i.call(d)}function oT(i,d){var p=i.callbacks;if(p!==null)for(i.callbacks=null,i=0;i<p.length;i++)rT(p[i],d)}var _d=Q(null),Bg=Q(0);function aT(i,d){i=kl,ie(Bg,i),ie(_d,d),kl=i|d.baseLanes}function L0(){ie(Bg,kl),ie(_d,_d.current)}function z0(){kl=Bg.current,ne(_d),ne(Bg)}var nc=0,Zn=null,Pr=null,So=null,Ug=!1,Vd=!1,vu=!1,_g=0,Kp=0,Hd=null,iz=0;function go(){throw Error(r(321))}function F0(i,d){if(d===null)return!1;for(var p=0;p<d.length&&p<i.length;p++)if(!rn(i[p],d[p]))return!1;return!0}function B0(i,d,p,g,E,D){return nc=D,Zn=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,A.H=i===null||i.memoizedState===null?_T:VT,vu=!1,D=p(g,E),vu=!1,Vd&&(D=sT(d,p,g,E)),iT(i),D}function iT(i){A.H=Gg;var d=Pr!==null&&Pr.next!==null;if(nc=0,So=Pr=Zn=null,Ug=!1,Kp=0,Hd=null,d)throw Error(r(300));i===null||jo||(i=i.dependencies,i!==null&&Fd(i)&&(jo=!0))}function sT(i,d,p,g){Zn=i;var E=0;do{if(Vd&&(Hd=null),Kp=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)}A.H=pz,D=d(p,g)}while(Vd);return D}function sz(){var i=A.H,d=i.useState()[0];return d=typeof d.then=="function"?Qp(d):d,i=i.useState()[0],(Pr!==null?Pr.memoizedState:null)!==i&&(Zn.flags|=1024),d}function U0(){var i=_g!==0;return _g=0,i}function _0(i,d,p){d.updateQueue=i.updateQueue,d.flags&=-2053,i.lanes&=~p}function V0(i){if(Ug){for(i=i.memoizedState;i!==null;){var d=i.queue;d!==null&&(d.pending=null),i=i.next}Ug=!1}nc=0,So=Pr=Zn=null,Vd=!1,Kp=_g=0,Hd=null}function Sa(){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 d=So===null?Zn.memoizedState:So.next;if(d!==null)So=d,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 H0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qp(i){var d=Kp;return Kp+=1,Hd===null&&(Hd=[]),i=eT(Hd,i,d),d=Zn,(So===null?d.memoizedState:So.next)===null&&(d=d.alternate,A.H=d===null||d.memoizedState===null?_T:VT),i}function Vg(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Qp(i);if(i.$$typeof===T)return to(i)}throw Error(r(438,String(i)))}function W0(i){var d=null,p=Zn.updateQueue;if(p!==null&&(d=p.memoCache),d==null){var g=Zn.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(d={data:g.data.map(function(E){return E.slice()}),index:0})))}if(d==null&&(d={data:[],index:0}),p===null&&(p=H0(),Zn.updateQueue=p),p.memoCache=d,p=d.data[d.index],p===void 0)for(p=d.data[d.index]=Array(i),g=0;g<i;g++)p[g]=W;return d.index++,p}function vl(i,d){return typeof d=="function"?d(i):d}function Hg(i){var d=wo();return q0(d,Pr,i)}function q0(i,d,p){var g=i.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=p;var E=i.baseQueue,D=g.pending;if(D!==null){if(E!==null){var J=E.next;E.next=D.next,D.next=J}d.baseQueue=E=D,g.pending=null}if(D=i.baseState,E===null)i.memoizedState=D;else{d=E.next;var re=J=null,xe=null,_e=d,ft=!1;do{var bt=_e.lane&-536870913;if(bt!==_e.lane?(dr&bt)===bt:(nc&bt)===bt){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}),bt===Bd&&(ft=!0);else if((nc&Ye)===Ye){_e=_e.next,Ye===Bd&&(ft=!0);continue}else bt={lane:0,revertLane:_e.revertLane,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null},xe===null?(re=xe=bt,J=D):xe=xe.next=bt,Zn.lanes|=Ye,cc|=Ye;bt=_e.action,vu&&p(D,bt),D=_e.hasEagerState?_e.eagerState:p(D,bt)}else Ye={lane:bt,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|=bt,cc|=bt;_e=_e.next}while(_e!==null&&_e!==d);if(xe===null?J=D:xe.next=re,!rn(D,i.memoizedState)&&(jo=!0,ft&&(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 Y0(i){var d=wo(),p=d.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var g=p.dispatch,E=p.pending,D=d.memoizedState;if(E!==null){p.pending=null;var J=E=E.next;do D=i(D,J.action),J=J.next;while(J!==E);rn(D,d.memoizedState)||(jo=!0),d.memoizedState=D,d.baseQueue===null&&(d.baseState=D),p.lastRenderedState=D}return[D,g]}function lT(i,d,p){var g=Zn,E=wo(),D=ee;if(D){if(p===void 0)throw Error(r(407));p=p()}else p=d();var J=!rn((Pr||E).memoizedState,p);J&&(E.memoizedState=p,jo=!0),E=E.queue;var re=dT.bind(null,g,E,i);if(Xp(2048,8,re,[i]),E.getSnapshot!==d||J||So!==null&&So.memoizedState.tag&1){if(g.flags|=2048,Wd(9,Wg(),uT.bind(null,g,E,p,d),null),Br===null)throw Error(r(349));D||(nc&124)!==0||cT(g,d,p)}return p}function cT(i,d,p){i.flags|=16384,i={getSnapshot:d,value:p},d=Zn.updateQueue,d===null?(d=H0(),Zn.updateQueue=d,d.stores=[i]):(p=d.stores,p===null?d.stores=[i]:p.push(i))}function uT(i,d,p,g){d.value=p,d.getSnapshot=g,fT(d)&&pT(i)}function dT(i,d,p){return p(function(){fT(d)&&pT(i)})}function fT(i){var d=i.getSnapshot;i=i.value;try{var p=d();return!rn(i,p)}catch{return!0}}function pT(i){var d=rs(i,2);d!==null&&Za(d,i,2)}function G0(i){var d=Sa();if(typeof i=="function"){var p=i;if(i=p(),vu){je(!0);try{p()}finally{je(!1)}}}return d.memoizedState=d.baseState=i,d.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vl,lastRenderedState:i},d}function hT(i,d,p,g){return i.baseState=p,q0(i,Pr,typeof g=="function"?g:vl)}function lz(i,d,p,g,E){if(Yg(i))throw Error(r(485));if(i=d.action,i!==null){var D={payload:E,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(J){D.listeners.push(J)}};A.T!==null?p(!0):D.isTransition=!1,g(D),p=d.pending,p===null?(D.next=d.pending=D,mT(d,D)):(D.next=p.next,d.pending=p.next=D)}}function mT(i,d){var p=d.action,g=d.payload,E=i.state;if(d.isTransition){var D=A.T,J={};A.T=J;try{var re=p(E,g),xe=A.S;xe!==null&&xe(J,re),gT(i,d,re)}catch(_e){K0(i,d,_e)}finally{A.T=D}}else try{D=p(E,g),gT(i,d,D)}catch(_e){K0(i,d,_e)}}function gT(i,d,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(g){yT(i,d,g)},function(g){return K0(i,d,g)}):yT(i,d,p)}function yT(i,d,p){d.status="fulfilled",d.value=p,vT(d),i.state=p,d=i.pending,d!==null&&(p=d.next,p===d?i.pending=null:(p=p.next,d.next=p,mT(i,p)))}function K0(i,d,p){var g=i.pending;if(i.pending=null,g!==null){g=g.next;do d.status="rejected",d.reason=p,vT(d),d=d.next;while(d!==g)}i.action=null}function vT(i){i=i.listeners;for(var d=0;d<i.length;d++)(0,i[d])()}function bT(i,d){return d}function xT(i,d){if(ee){var p=Br.formState;if(p!==null){e:{var g=Zn;if(ee){if(Y){t:{for(var E=Y,D=Re;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&&(d=p[0])}}return p=Sa(),p.memoizedState=p.baseState=d,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bT,lastRenderedState:d},p.queue=g,p=FT.bind(null,Zn,g),g.dispatch=p,g=G0(!1),D=ex.bind(null,Zn,!1,g.queue),g=Sa(),E={state:d,dispatch:null,action:i,pending:null},g.queue=E,p=lz.bind(null,Zn,E,D,p),E.dispatch=p,g.memoizedState=i,[d,p,!1]}function ST(i){var d=wo();return wT(d,Pr,i)}function wT(i,d,p){if(d=q0(i,d,bT)[0],i=Hg(vl)[0],typeof d=="object"&&d!==null&&typeof d.then=="function")try{var g=Qp(d)}catch(J){throw J===Hp?zg:J}else g=d;d=wo();var E=d.queue,D=E.dispatch;return p!==d.memoizedState&&(Zn.flags|=2048,Wd(9,Wg(),cz.bind(null,E,p),null)),[g,D,i]}function cz(i,d){i.action=d}function CT(i){var d=wo(),p=Pr;if(p!==null)return wT(d,p,i);wo(),d=d.memoizedState,p=wo();var g=p.queue.dispatch;return p.memoizedState=i,[d,g,!1]}function Wd(i,d,p,g){return i={tag:i,create:p,deps:g,inst:d,next:null},d=Zn.updateQueue,d===null&&(d=H0(),Zn.updateQueue=d),p=d.lastEffect,p===null?d.lastEffect=i.next=i:(g=p.next,p.next=i,i.next=g,d.lastEffect=i),i}function Wg(){return{destroy:void 0,resource:void 0}}function kT(){return wo().memoizedState}function qg(i,d,p,g){var E=Sa();g=g===void 0?null:g,Zn.flags|=i,E.memoizedState=Wd(1|d,Wg(),p,g)}function Xp(i,d,p,g){var E=wo();g=g===void 0?null:g;var D=E.memoizedState.inst;Pr!==null&&g!==null&&F0(g,Pr.memoizedState.deps)?E.memoizedState=Wd(d,D,p,g):(Zn.flags|=i,E.memoizedState=Wd(1|d,D,p,g))}function TT(i,d){qg(8390656,8,i,d)}function MT(i,d){Xp(2048,8,i,d)}function ET(i,d){return Xp(4,2,i,d)}function OT(i,d){return Xp(4,4,i,d)}function RT(i,d){if(typeof d=="function"){i=i();var p=d(i);return function(){typeof p=="function"?p():d(null)}}if(d!=null)return i=i(),d.current=i,function(){d.current=null}}function $T(i,d,p){p=p!=null?p.concat([i]):null,Xp(4,4,RT.bind(null,d,i),p)}function Q0(){}function PT(i,d){var p=wo();d=d===void 0?null:d;var g=p.memoizedState;return d!==null&&F0(d,g[1])?g[0]:(p.memoizedState=[i,d],i)}function DT(i,d){var p=wo();d=d===void 0?null:d;var g=p.memoizedState;if(d!==null&&F0(d,g[1]))return g[0];if(g=i(),vu){je(!0);try{i()}finally{je(!1)}}return p.memoizedState=[g,d],g}function X0(i,d,p){return p===void 0||(nc&1073741824)!==0?i.memoizedState=d:(i.memoizedState=p,i=NM(),Zn.lanes|=i,cc|=i,p)}function AT(i,d,p,g){return rn(p,d)?p:_d.current!==null?(i=X0(i,p,g),rn(i,d)||(jo=!0),i):(nc&42)===0?(jo=!0,i.memoizedState=p):(i=NM(),Zn.lanes|=i,cc|=i,d)}function jT(i,d,p,g,E){var D=Z.p;Z.p=D!==0&&8>D?D:8;var J=A.T,re={};A.T=re,ex(i,!1,d,p);try{var xe=E(),_e=A.S;if(_e!==null&&_e(re,xe),xe!==null&&typeof xe=="object"&&typeof xe.then=="function"){var ft=az(xe,g);Zp(i,d,ft,Xa(i))}else Zp(i,d,g,Xa(i))}catch(bt){Zp(i,d,{then:function(){},status:"rejected",reason:bt},Xa())}finally{Z.p=D,A.T=J}}function uz(){}function Z0(i,d,p,g){if(i.tag!==5)throw Error(r(476));var E=NT(i).queue;jT(i,E,d,K,p===null?uz:function(){return IT(i),p(g)})}function NT(i){var d=i.memoizedState;if(d!==null)return d;d={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vl,lastRenderedState:K},next:null};var p={};return d.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vl,lastRenderedState:p},next:null},i.memoizedState=d,i=i.alternate,i!==null&&(i.memoizedState=d),d}function IT(i){var d=NT(i).next.queue;Zp(i,d,{},Xa())}function J0(){return to(gh)}function LT(){return wo().memoizedState}function zT(){return wo().memoizedState}function dz(i){for(var d=i.return;d!==null;){switch(d.tag){case 24:case 3:var p=Xa();i=ec(p);var g=tc(d,i,p);g!==null&&(Za(g,d,p),qp(g,d,p)),d={cache:R0()},i.payload=d;return}d=d.return}}function fz(i,d,p){var g=Xa();p={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Yg(i)?BT(d,p):(p=Ad(i,d,p,g),p!==null&&(Za(p,i,g),UT(p,d,g)))}function FT(i,d,p){var g=Xa();Zp(i,d,p,g)}function Zp(i,d,p,g){var E={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Yg(i))BT(d,E);else{var D=i.alternate;if(i.lanes===0&&(D===null||D.lanes===0)&&(D=d.lastRenderedReducer,D!==null))try{var J=d.lastRenderedState,re=D(J,p);if(E.hasEagerState=!0,E.eagerState=re,rn(re,J))return xi(i,d,E,0),Br===null&&Zl(),!1}catch{}finally{}if(p=Ad(i,d,E,g),p!==null)return Za(p,i,g),UT(p,d,g),!0}return!1}function ex(i,d,p,g){if(g={lane:2,revertLane:Dx(),action:g,hasEagerState:!1,eagerState:null,next:null},Yg(i)){if(d)throw Error(r(479))}else d=Ad(i,p,g,2),d!==null&&Za(d,i,2)}function Yg(i){var d=i.alternate;return i===Zn||d!==null&&d===Zn}function BT(i,d){Vd=Ug=!0;var p=i.pending;p===null?d.next=d:(d.next=p.next,p.next=d),i.pending=d}function UT(i,d,p){if((p&4194048)!==0){var g=d.lanes;g&=i.pendingLanes,p|=g,d.lanes=p,zn(i,p)}}var Gg={readContext:to,use:Vg,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},_T={readContext:to,use:Vg,useCallback:function(i,d){return Sa().memoizedState=[i,d===void 0?null:d],i},useContext:to,useEffect:TT,useImperativeHandle:function(i,d,p){p=p!=null?p.concat([i]):null,qg(4194308,4,RT.bind(null,d,i),p)},useLayoutEffect:function(i,d){return qg(4194308,4,i,d)},useInsertionEffect:function(i,d){qg(4,2,i,d)},useMemo:function(i,d){var p=Sa();d=d===void 0?null:d;var g=i();if(vu){je(!0);try{i()}finally{je(!1)}}return p.memoizedState=[g,d],g},useReducer:function(i,d,p){var g=Sa();if(p!==void 0){var E=p(d);if(vu){je(!0);try{p(d)}finally{je(!1)}}}else E=d;return g.memoizedState=g.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},g.queue=i,i=i.dispatch=fz.bind(null,Zn,i),[g.memoizedState,i]},useRef:function(i){var d=Sa();return i={current:i},d.memoizedState=i},useState:function(i){i=G0(i);var d=i.queue,p=FT.bind(null,Zn,d);return d.dispatch=p,[i.memoizedState,p]},useDebugValue:Q0,useDeferredValue:function(i,d){var p=Sa();return X0(p,i,d)},useTransition:function(){var i=G0(!1);return i=jT.bind(null,Zn,i.queue,!0,!1),Sa().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,d,p){var g=Zn,E=Sa();if(ee){if(p===void 0)throw Error(r(407));p=p()}else{if(p=d(),Br===null)throw Error(r(349));(dr&124)!==0||cT(g,d,p)}E.memoizedState=p;var D={value:p,getSnapshot:d};return E.queue=D,TT(dT.bind(null,g,D,i),[i]),g.flags|=2048,Wd(9,Wg(),uT.bind(null,g,D,p,d),null),p},useId:function(){var i=Sa(),d=Br.identifierPrefix;if(ee){var p=mn,g=qa;p=(g&~(1<<32-he(g)-1)).toString(32)+p,d="«"+d+"R"+p,p=_g++,0<p&&(d+="H"+p.toString(32)),d+="»"}else p=iz++,d="«"+d+"r"+p.toString(32)+"»";return i.memoizedState=d},useHostTransitionStatus:J0,useFormState:xT,useActionState:xT,useOptimistic:function(i){var d=Sa();d.memoizedState=d.baseState=i;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return d.queue=p,d=ex.bind(null,Zn,!0,p),p.dispatch=d,[i,d]},useMemoCache:W0,useCacheRefresh:function(){return Sa().memoizedState=dz.bind(null,Zn)}},VT={readContext:to,use:Vg,useCallback:PT,useContext:to,useEffect:MT,useImperativeHandle:$T,useInsertionEffect:ET,useLayoutEffect:OT,useMemo:DT,useReducer:Hg,useRef:kT,useState:function(){return Hg(vl)},useDebugValue:Q0,useDeferredValue:function(i,d){var p=wo();return AT(p,Pr.memoizedState,i,d)},useTransition:function(){var i=Hg(vl)[0],d=wo().memoizedState;return[typeof i=="boolean"?i:Qp(i),d]},useSyncExternalStore:lT,useId:LT,useHostTransitionStatus:J0,useFormState:ST,useActionState:ST,useOptimistic:function(i,d){var p=wo();return hT(p,Pr,i,d)},useMemoCache:W0,useCacheRefresh:zT},pz={readContext:to,use:Vg,useCallback:PT,useContext:to,useEffect:MT,useImperativeHandle:$T,useInsertionEffect:ET,useLayoutEffect:OT,useMemo:DT,useReducer:Y0,useRef:kT,useState:function(){return Y0(vl)},useDebugValue:Q0,useDeferredValue:function(i,d){var p=wo();return Pr===null?X0(p,i,d):AT(p,Pr.memoizedState,i,d)},useTransition:function(){var i=Y0(vl)[0],d=wo().memoizedState;return[typeof i=="boolean"?i:Qp(i),d]},useSyncExternalStore:lT,useId:LT,useHostTransitionStatus:J0,useFormState:CT,useActionState:CT,useOptimistic:function(i,d){var p=wo();return Pr!==null?hT(p,Pr,i,d):(p.baseState=i,[i,p.queue.dispatch])},useMemoCache:W0,useCacheRefresh:zT},qd=null,Jp=0;function Kg(i){var d=Jp;return Jp+=1,qd===null&&(qd=[]),eT(qd,i,d)}function eh(i,d){d=d.props.ref,i.ref=d!==void 0?d:null}function Qg(i,d){throw d.$$typeof===h?Error(r(525)):(i=Object.prototype.toString.call(d),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":i)))}function HT(i){var d=i._init;return d(i._payload)}function WT(i){function d(Ie,$e){if(i){var Be=Ie.deletions;Be===null?(Ie.deletions=[$e],Ie.flags|=16):Be.push($e)}}function p(Ie,$e){if(!i)return null;for(;$e!==null;)d(Ie,$e),$e=$e.sibling;return null}function g(Ie){for(var $e=new Map;Ie!==null;)Ie.key!==null?$e.set(Ie.key,Ie):$e.set(Ie.index,Ie),Ie=Ie.sibling;return $e}function E(Ie,$e){return Ie=Si(Ie,$e),Ie.index=0,Ie.sibling=null,Ie}function D(Ie,$e,Be){return Ie.index=Be,i?(Be=Ie.alternate,Be!==null?(Be=Be.index,Be<$e?(Ie.flags|=67108866,$e):Be):(Ie.flags|=67108866,$e)):(Ie.flags|=1048576,$e)}function J(Ie){return i&&Ie.alternate===null&&(Ie.flags|=67108866),Ie}function re(Ie,$e,Be,ht){return $e===null||$e.tag!==6?($e=Fp(Be,Ie.mode,ht),$e.return=Ie,$e):($e=E($e,Be),$e.return=Ie,$e)}function xe(Ie,$e,Be,ht){var en=Be.type;return en===v?ft(Ie,$e,Be.props.children,ht,Be.key):$e!==null&&($e.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===V&&HT(en)===$e.type)?($e=E($e,Be.props),eh($e,Be),$e.return=Ie,$e):($e=Id(Be.type,Be.key,Be.props,null,Ie.mode,ht),eh($e,Be),$e.return=Ie,$e)}function _e(Ie,$e,Be,ht){return $e===null||$e.tag!==4||$e.stateNode.containerInfo!==Be.containerInfo||$e.stateNode.implementation!==Be.implementation?($e=Bp(Be,Ie.mode,ht),$e.return=Ie,$e):($e=E($e,Be.children||[]),$e.return=Ie,$e)}function ft(Ie,$e,Be,ht,en){return $e===null||$e.tag!==7?($e=wi(Be,Ie.mode,ht,en),$e.return=Ie,$e):($e=E($e,Be),$e.return=Ie,$e)}function bt(Ie,$e,Be){if(typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint")return $e=Fp(""+$e,Ie.mode,Be),$e.return=Ie,$e;if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case y:return Be=Id($e.type,$e.key,$e.props,null,Ie.mode,Be),eh(Be,$e),Be.return=Ie,Be;case b:return $e=Bp($e,Ie.mode,Be),$e.return=Ie,$e;case V:var ht=$e._init;return $e=ht($e._payload),bt(Ie,$e,Be)}if(H($e)||k($e))return $e=wi($e,Ie.mode,Be,null),$e.return=Ie,$e;if(typeof $e.then=="function")return bt(Ie,Kg($e),Be);if($e.$$typeof===T)return bt(Ie,Rs(Ie,$e),Be);Qg(Ie,$e)}return null}function Ye(Ie,$e,Be,ht){var en=$e!==null?$e.key:null;if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return en!==null?null:re(Ie,$e,""+Be,ht);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case y:return Be.key===en?xe(Ie,$e,Be,ht):null;case b:return Be.key===en?_e(Ie,$e,Be,ht):null;case V:return en=Be._init,Be=en(Be._payload),Ye(Ie,$e,Be,ht)}if(H(Be)||k(Be))return en!==null?null:ft(Ie,$e,Be,ht,null);if(typeof Be.then=="function")return Ye(Ie,$e,Kg(Be),ht);if(Be.$$typeof===T)return Ye(Ie,$e,Rs(Ie,Be),ht);Qg(Ie,Be)}return null}function Xe(Ie,$e,Be,ht,en){if(typeof ht=="string"&&ht!==""||typeof ht=="number"||typeof ht=="bigint")return Ie=Ie.get(Be)||null,re($e,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($e,Ie,ht,en);case b:return Ie=Ie.get(ht.key===null?Be:ht.key)||null,_e($e,Ie,ht,en);case V:var Jn=ht._init;return ht=Jn(ht._payload),Xe(Ie,$e,Be,ht,en)}if(H(ht)||k(ht))return Ie=Ie.get(Be)||null,ft($e,Ie,ht,en,null);if(typeof ht.then=="function")return Xe(Ie,$e,Be,Kg(ht),en);if(ht.$$typeof===T)return Xe(Ie,$e,Be,Rs($e,ht),en);Qg($e,ht)}return null}function Nn(Ie,$e,Be,ht){for(var en=null,Jn=null,hn=$e,Pn=$e=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&&d(Ie,hn),$e=D(pr,$e,Pn),Jn===null?en=pr:Jn.sibling=pr,Jn=pr,hn=Io}if(Pn===Be.length)return p(Ie,hn),ee&&Ya(Ie,Pn),en;if(hn===null){for(;Pn<Be.length;Pn++)hn=bt(Ie,Be[Pn],ht),hn!==null&&($e=D(hn,$e,Pn),Jn===null?en=hn:Jn.sibling=hn,Jn=hn);return ee&&Ya(Ie,Pn),en}for(hn=g(hn);Pn<Be.length;Pn++)Io=Xe(hn,Ie,Pn,Be[Pn],ht),Io!==null&&(i&&Io.alternate!==null&&hn.delete(Io.key===null?Pn:Io.key),$e=D(Io,$e,Pn),Jn===null?en=Io:Jn.sibling=Io,Jn=Io);return i&&hn.forEach(function(vc){return d(Ie,vc)}),ee&&Ya(Ie,Pn),en}function $n(Ie,$e,Be,ht){if(Be==null)throw Error(r(151));for(var en=null,Jn=null,hn=$e,Pn=$e=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&&d(Ie,hn),$e=D(vc,$e,Pn),Jn===null?en=vc:Jn.sibling=vc,Jn=vc,hn=Io}if(pr.done)return p(Ie,hn),ee&&Ya(Ie,Pn),en;if(hn===null){for(;!pr.done;Pn++,pr=Be.next())pr=bt(Ie,pr.value,ht),pr!==null&&($e=D(pr,$e,Pn),Jn===null?en=pr:Jn.sibling=pr,Jn=pr);return ee&&Ya(Ie,Pn),en}for(hn=g(hn);!pr.done;Pn++,pr=Be.next())pr=Xe(hn,Ie,Pn,pr.value,ht),pr!==null&&(i&&pr.alternate!==null&&hn.delete(pr.key===null?Pn:pr.key),$e=D(pr,$e,Pn),Jn===null?en=pr:Jn.sibling=pr,Jn=pr);return i&&hn.forEach(function(h5){return d(Ie,h5)}),ee&&Ya(Ie,Pn),en}function Ar(Ie,$e,Be,ht){if(typeof Be=="object"&&Be!==null&&Be.type===v&&Be.key===null&&(Be=Be.props.children),typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case y:e:{for(var en=Be.key;$e!==null;){if($e.key===en){if(en=Be.type,en===v){if($e.tag===7){p(Ie,$e.sibling),ht=E($e,Be.props.children),ht.return=Ie,Ie=ht;break e}}else if($e.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===V&&HT(en)===$e.type){p(Ie,$e.sibling),ht=E($e,Be.props),eh(ht,Be),ht.return=Ie,Ie=ht;break e}p(Ie,$e);break}else d(Ie,$e);$e=$e.sibling}Be.type===v?(ht=wi(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),eh(ht,Be),ht.return=Ie,Ie=ht)}return J(Ie);case b:e:{for(en=Be.key;$e!==null;){if($e.key===en)if($e.tag===4&&$e.stateNode.containerInfo===Be.containerInfo&&$e.stateNode.implementation===Be.implementation){p(Ie,$e.sibling),ht=E($e,Be.children||[]),ht.return=Ie,Ie=ht;break e}else{p(Ie,$e);break}else d(Ie,$e);$e=$e.sibling}ht=Bp(Be,Ie.mode,ht),ht.return=Ie,Ie=ht}return J(Ie);case V:return en=Be._init,Be=en(Be._payload),Ar(Ie,$e,Be,ht)}if(H(Be))return Nn(Ie,$e,Be,ht);if(k(Be)){if(en=k(Be),typeof en!="function")throw Error(r(150));return Be=en.call(Be),$n(Ie,$e,Be,ht)}if(typeof Be.then=="function")return Ar(Ie,$e,Kg(Be),ht);if(Be.$$typeof===T)return Ar(Ie,$e,Rs(Ie,Be),ht);Qg(Ie,Be)}return typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint"?(Be=""+Be,$e!==null&&$e.tag===6?(p(Ie,$e.sibling),ht=E($e,Be),ht.return=Ie,Ie=ht):(p(Ie,$e),ht=Fp(Be,Ie.mode,ht),ht.return=Ie,Ie=ht),J(Ie)):p(Ie,$e)}return function(Ie,$e,Be,ht){try{Jp=0;var en=Ar(Ie,$e,Be,ht);return qd=null,en}catch(hn){if(hn===Hp||hn===zg)throw hn;var Jn=Bo(29,hn,null,Ie.mode);return Jn.lanes=ht,Jn.return=Ie,Jn}finally{}}}var Yd=WT(!0),qT=WT(!1),ki=Q(null),$s=null;function rc(i){var d=i.alternate;ie(Oo,Oo.current&1),ie(ki,i),$s===null&&(d===null||_d.current!==null||d.memoizedState!==null)&&($s=i)}function YT(i){if(i.tag===22){if(ie(Oo,Oo.current),ie(ki,i),$s===null){var d=i.alternate;d!==null&&d.memoizedState!==null&&($s=i)}}else oc()}function oc(){ie(Oo,Oo.current),ie(ki,ki.current)}function bl(i){ne(ki),$s===i&&($s=null),ne(Oo)}var Oo=Q(0);function Xg(i){for(var d=i;d!==null;){if(d.tag===13){var p=d.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||Hx(p)))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if((d.flags&128)!==0)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break;for(;d.sibling===null;){if(d.return===null||d.return===i)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}function tx(i,d,p,g){d=i.memoizedState,p=p(g,d),p=p==null?d:c({},d,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var nx={enqueueSetState:function(i,d,p){i=i._reactInternals;var g=Xa(),E=ec(g);E.payload=d,p!=null&&(E.callback=p),d=tc(i,E,g),d!==null&&(Za(d,i,g),qp(d,i,g))},enqueueReplaceState:function(i,d,p){i=i._reactInternals;var g=Xa(),E=ec(g);E.tag=1,E.payload=d,p!=null&&(E.callback=p),d=tc(i,E,g),d!==null&&(Za(d,i,g),qp(d,i,g))},enqueueForceUpdate:function(i,d){i=i._reactInternals;var p=Xa(),g=ec(p);g.tag=2,d!=null&&(g.callback=d),d=tc(i,g,p),d!==null&&(Za(d,i,p),qp(d,i,p))}};function GT(i,d,p,g,E,D,J){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,D,J):d.prototype&&d.prototype.isPureReactComponent?!gr(p,g)||!gr(E,D):!0}function KT(i,d,p,g){i=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(p,g),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(p,g),d.state!==i&&nx.enqueueReplaceState(d,d.state,null)}function bu(i,d){var p=d;if("ref"in d){p={};for(var g in d)g!=="ref"&&(p[g]=d[g])}if(i=i.defaultProps){p===d&&(p=c({},p));for(var E in i)p[E]===void 0&&(p[E]=i[E])}return p}var Zg=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var d=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(d))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function QT(i){Zg(i)}function XT(i){console.error(i)}function ZT(i){Zg(i)}function Jg(i,d){try{var p=i.onUncaughtError;p(d.value,{componentStack:d.stack})}catch(g){setTimeout(function(){throw g})}}function JT(i,d,p){try{var g=i.onCaughtError;g(p.value,{componentStack:p.stack,errorBoundary:d.tag===1?d.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function rx(i,d,p){return p=ec(p),p.tag=3,p.payload={element:null},p.callback=function(){Jg(i,d)},p}function eM(i){return i=ec(i),i.tag=3,i}function tM(i,d,p,g){var E=p.type.getDerivedStateFromError;if(typeof E=="function"){var D=g.value;i.payload=function(){return E(D)},i.callback=function(){JT(d,p,g)}}var J=p.stateNode;J!==null&&typeof J.componentDidCatch=="function"&&(i.callback=function(){JT(d,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 hz(i,d,p,g,E){if(p.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(d=p.alternate,d!==null&&gu(d,p,E,!0),p=ki.current,p!==null){switch(p.tag){case 13:return $s===null?Ex():p.alternate===null&&no===0&&(no=3),p.flags&=-257,p.flags|=65536,p.lanes=E,g===D0?p.flags|=16384:(d=p.updateQueue,d===null?p.updateQueue=new Set([g]):d.add(g),Rx(i,g,E)),!1;case 22:return p.flags|=65536,g===D0?p.flags|=16384:(d=p.updateQueue,d===null?(d={transitions:null,markerInstances:null,retryQueue:new Set([g])},p.updateQueue=d):(p=d.retryQueue,p===null?d.retryQueue=new Set([g]):p.add(g)),Rx(i,g,E)),!1}throw Error(r(435,p.tag))}return Rx(i,g,E),Ex(),!1}if(ee)return d=ki.current,d!==null?((d.flags&65536)===0&&(d.flags|=256),d.flags|=65536,d.lanes=E,g!==Ae&&(i=Error(r(422),{cause:g}),qr(Xo(i,p)))):(g!==Ae&&(d=Error(r(423),{cause:g}),qr(Xo(d,p))),i=i.current.alternate,i.flags|=65536,E&=-E,i.lanes|=E,g=Xo(g,p),E=rx(i.stateNode,g,E),N0(i,E),no!==4&&(no=2)),!1;var D=Error(r(520),{cause:g});if(D=Xo(D,p),sh===null?sh=[D]:sh.push(D),no!==4&&(no=2),d===null)return!0;g=Xo(g,p),p=d;do{switch(p.tag){case 3:return p.flags|=65536,i=E&-E,p.lanes|=i,i=rx(p.stateNode,g,i),N0(p,i),!1;case 1:if(d=p.type,D=p.stateNode,(p.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(uc===null||!uc.has(D))))return p.flags|=65536,E&=-E,p.lanes|=E,E=eM(E),tM(E,i,p,g),N0(p,E),!1}p=p.return}while(p!==null);return!1}var nM=Error(r(461)),jo=!1;function Uo(i,d,p,g){d.child=i===null?qT(d,null,p,g):Yd(d,i.child,p,g)}function rM(i,d,p,g,E){p=p.render;var D=d.ref;if("ref"in g){var J={};for(var re in g)re!=="ref"&&(J[re]=g[re])}else J=g;return yl(d),g=B0(i,d,p,J,D,E),re=U0(),i!==null&&!jo?(_0(i,d,E),xl(i,d,E)):(ee&&re&&U(d),d.flags|=1,Uo(i,d,g,E),d.child)}function oM(i,d,p,g,E){if(i===null){var D=p.type;return typeof D=="function"&&!Nd(D)&&D.defaultProps===void 0&&p.compare===null?(d.tag=15,d.type=D,aM(i,d,D,g,E)):(i=Id(p.type,null,g,d,d.mode,E),i.ref=d.ref,i.return=d,d.child=i)}if(D=i.child,!dx(i,E)){var J=D.memoizedProps;if(p=p.compare,p=p!==null?p:gr,p(J,g)&&i.ref===d.ref)return xl(i,d,E)}return d.flags|=1,i=Si(D,g),i.ref=d.ref,i.return=d,d.child=i}function aM(i,d,p,g,E){if(i!==null){var D=i.memoizedProps;if(gr(D,g)&&i.ref===d.ref)if(jo=!1,d.pendingProps=g=D,dx(i,E))(i.flags&131072)!==0&&(jo=!0);else return d.lanes=i.lanes,xl(i,d,E)}return ox(i,d,p,g,E)}function iM(i,d,p){var g=d.pendingProps,E=g.children,D=i!==null?i.memoizedState:null;if(g.mode==="hidden"){if((d.flags&128)!==0){if(g=D!==null?D.baseLanes|p:p,i!==null){for(E=d.child=i.child,D=0;E!==null;)D=D|E.lanes|E.childLanes,E=E.sibling;d.childLanes=D&~g}else d.childLanes=0,d.child=null;return sM(i,d,g,p)}if((p&536870912)!==0)d.memoizedState={baseLanes:0,cachePool:null},i!==null&&Lg(d,D!==null?D.cachePool:null),D!==null?aT(d,D):L0(),YT(d);else return d.lanes=d.childLanes=536870912,sM(i,d,D!==null?D.baseLanes|p:p,p)}else D!==null?(Lg(d,D.cachePool),aT(d,D),oc(),d.memoizedState=null):(i!==null&&Lg(d,null),L0(),oc());return Uo(i,d,E,p),d.child}function sM(i,d,p,g){var E=P0();return E=E===null?null:{parent:Eo._currentValue,pool:E},d.memoizedState={baseLanes:p,cachePool:E},i!==null&&Lg(d,null),L0(),YT(d),i!==null&&gu(i,d,g,!0),null}function ey(i,d){var p=d.ref;if(p===null)i!==null&&i.ref!==null&&(d.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(i===null||i.ref!==p)&&(d.flags|=4194816)}}function ox(i,d,p,g,E){return yl(d),p=B0(i,d,p,g,void 0,E),g=U0(),i!==null&&!jo?(_0(i,d,E),xl(i,d,E)):(ee&&g&&U(d),d.flags|=1,Uo(i,d,p,E),d.child)}function lM(i,d,p,g,E,D){return yl(d),d.updateQueue=null,p=sT(d,g,p,E),iT(i),g=U0(),i!==null&&!jo?(_0(i,d,D),xl(i,d,D)):(ee&&g&&U(d),d.flags|=1,Uo(i,d,p,D),d.child)}function cM(i,d,p,g,E){if(yl(d),d.stateNode===null){var D=Ha,J=p.contextType;typeof J=="object"&&J!==null&&(D=to(J)),D=new p(g,D),d.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,D.updater=nx,d.stateNode=D,D._reactInternals=d,D=d.stateNode,D.props=g,D.state=d.memoizedState,D.refs={},A0(d),J=p.contextType,D.context=typeof J=="object"&&J!==null?to(J):Ha,D.state=d.memoizedState,J=p.getDerivedStateFromProps,typeof J=="function"&&(tx(d,p,J,g),D.state=d.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&&nx.enqueueReplaceState(D,D.state,null),Gp(d,g,D,E),Yp(),D.state=d.memoizedState),typeof D.componentDidMount=="function"&&(d.flags|=4194308),g=!0}else if(i===null){D=d.stateNode;var re=d.memoizedProps,xe=bu(p,re);D.props=xe;var _e=D.context,ft=p.contextType;J=Ha,typeof ft=="object"&&ft!==null&&(J=to(ft));var bt=p.getDerivedStateFromProps;ft=typeof bt=="function"||typeof D.getSnapshotBeforeUpdate=="function",re=d.pendingProps!==re,ft||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(re||_e!==J)&&KT(d,D,g,J),Jl=!1;var Ye=d.memoizedState;D.state=Ye,Gp(d,g,D,E),Yp(),_e=d.memoizedState,re||Ye!==_e||Jl?(typeof bt=="function"&&(tx(d,p,bt,g),_e=d.memoizedState),(xe=Jl||GT(d,p,xe,g,Ye,_e,J))?(ft||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(d.flags|=4194308)):(typeof D.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=g,d.memoizedState=_e),D.props=g,D.state=_e,D.context=J,g=xe):(typeof D.componentDidMount=="function"&&(d.flags|=4194308),g=!1)}else{D=d.stateNode,j0(i,d),J=d.memoizedProps,ft=bu(p,J),D.props=ft,bt=d.pendingProps,Ye=D.context,_e=p.contextType,xe=Ha,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!==bt||Ye!==xe)&&KT(d,D,g,xe),Jl=!1,Ye=d.memoizedState,D.state=Ye,Gp(d,g,D,E),Yp();var Xe=d.memoizedState;J!==bt||Ye!==Xe||Jl||i!==null&&i.dependencies!==null&&Fd(i.dependencies)?(typeof re=="function"&&(tx(d,p,re,g),Xe=d.memoizedState),(ft=Jl||GT(d,p,ft,g,Ye,Xe,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,Xe,xe),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(g,Xe,xe)),typeof D.componentDidUpdate=="function"&&(d.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof D.componentDidUpdate!="function"||J===i.memoizedProps&&Ye===i.memoizedState||(d.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||J===i.memoizedProps&&Ye===i.memoizedState||(d.flags|=1024),d.memoizedProps=g,d.memoizedState=Xe),D.props=g,D.state=Xe,D.context=xe,g=ft):(typeof D.componentDidUpdate!="function"||J===i.memoizedProps&&Ye===i.memoizedState||(d.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||J===i.memoizedProps&&Ye===i.memoizedState||(d.flags|=1024),g=!1)}return D=g,ey(i,d),g=(d.flags&128)!==0,D||g?(D=d.stateNode,p=g&&typeof p.getDerivedStateFromError!="function"?null:D.render(),d.flags|=1,i!==null&&g?(d.child=Yd(d,i.child,null,E),d.child=Yd(d,null,p,E)):Uo(i,d,p,E),d.memoizedState=D.state,i=d.child):i=xl(i,d,E),i}function uM(i,d,p,g){return cr(),d.flags|=256,Uo(i,d,p,g),d.child}var ax={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ix(i){return{baseLanes:i,cachePool:Xk()}}function sx(i,d,p){return i=i!==null?i.childLanes&~p:0,d&&(i|=Ti),i}function dM(i,d,p){var g=d.pendingProps,E=!1,D=(d.flags&128)!==0,J;if((J=D)||(J=i!==null&&i.memoizedState===null?!1:(Oo.current&2)!==0),J&&(E=!0,d.flags&=-129),J=(d.flags&32)!==0,d.flags&=-33,i===null){if(ee){if(E?rc(d):oc(),ee){var re=Y,xe;if(xe=re){e:{for(xe=re,re=Re;xe.nodeType!==8;){if(!re){re=null;break e}if(xe=is(xe.nextSibling),xe===null){re=null;break e}}re=xe}re!==null?(d.memoizedState={dehydrated:re,treeContext:Wa!==null?{id:qa,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},xe=Bo(18,null,null,0),xe.stateNode=re,xe.return=d,d.child=xe,L=d,Y=null,xe=!0):xe=!1}xe||Ue(d)}if(re=d.memoizedState,re!==null&&(re=re.dehydrated,re!==null))return Hx(re)?d.lanes=32:d.lanes=536870912,null;bl(d)}return re=g.children,g=g.fallback,E?(oc(),E=d.mode,re=ty({mode:"hidden",children:re},E),g=wi(g,E,p,null),re.return=d,g.return=d,re.sibling=g,d.child=re,E=d.child,E.memoizedState=ix(p),E.childLanes=sx(i,J,p),d.memoizedState=ax,g):(rc(d),lx(d,re))}if(xe=i.memoizedState,xe!==null&&(re=xe.dehydrated,re!==null)){if(D)d.flags&256?(rc(d),d.flags&=-257,d=cx(i,d,p)):d.memoizedState!==null?(oc(),d.child=i.child,d.flags|=128,d=null):(oc(),E=g.fallback,re=d.mode,g=ty({mode:"visible",children:g.children},re),E=wi(E,re,p,null),E.flags|=2,g.return=d,E.return=d,g.sibling=E,d.child=g,Yd(d,i.child,null,p),g=d.child,g.memoizedState=ix(p),g.childLanes=sx(i,J,p),d.memoizedState=ax,d=E);else if(rc(d),Hx(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}),d=cx(i,d,p)}else if(jo||gu(i,d,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),Za(J,i,g),nM;re.data==="$?"||Ex(),d=cx(i,d,p)}else re.data==="$?"?(d.flags|=192,d.child=i.child,d=null):(i=xe.treeContext,Y=is(re.nextSibling),L=d,ee=!0,ve=null,Re=!1,i!==null&&(ca[ua++]=qa,ca[ua++]=mn,ca[ua++]=Wa,qa=i.id,mn=i.overflow,Wa=d),d=lx(d,g.children),d.flags|=4096);return d}return E?(oc(),E=g.fallback,re=d.mode,xe=i.child,_e=xe.sibling,g=Si(xe,{mode:"hidden",children:g.children}),g.subtreeFlags=xe.subtreeFlags&65011712,_e!==null?E=Si(_e,E):(E=wi(E,re,p,null),E.flags|=2),E.return=d,g.return=d,g.sibling=E,d.child=g,g=E,E=d.child,re=i.child.memoizedState,re===null?re=ix(p):(xe=re.cachePool,xe!==null?(_e=Eo._currentValue,xe=xe.parent!==_e?{parent:_e,pool:_e}:xe):xe=Xk(),re={baseLanes:re.baseLanes|p,cachePool:xe}),E.memoizedState=re,E.childLanes=sx(i,J,p),d.memoizedState=ax,g):(rc(d),p=i.child,i=p.sibling,p=Si(p,{mode:"visible",children:g.children}),p.return=d,p.sibling=null,i!==null&&(J=d.deletions,J===null?(d.deletions=[i],d.flags|=16):J.push(i)),d.child=p,d.memoizedState=null,p)}function lx(i,d){return d=ty({mode:"visible",children:d},i.mode),d.return=i,i.child=d}function ty(i,d){return i=Bo(22,i,null,d),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function cx(i,d,p){return Yd(d,i.child,null,p),i=lx(d,d.pendingProps.children),i.flags|=2,d.memoizedState=null,i}function fM(i,d,p){i.lanes|=d;var g=i.alternate;g!==null&&(g.lanes|=d),Up(i.return,d,p)}function ux(i,d,p,g,E){var D=i.memoizedState;D===null?i.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:E}:(D.isBackwards=d,D.rendering=null,D.renderingStartTime=0,D.last=g,D.tail=p,D.tailMode=E)}function pM(i,d,p){var g=d.pendingProps,E=g.revealOrder,D=g.tail;if(Uo(i,d,g.children,p),g=Oo.current,(g&2)!==0)g=g&1|2,d.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=d.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&fM(i,p,d);else if(i.tag===19)fM(i,p,d);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===d)break e;for(;i.sibling===null;){if(i.return===null||i.return===d)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}g&=1}switch(ie(Oo,g),E){case"forwards":for(p=d.child,E=null;p!==null;)i=p.alternate,i!==null&&Xg(i)===null&&(E=p),p=p.sibling;p=E,p===null?(E=d.child,d.child=null):(E=p.sibling,p.sibling=null),ux(d,!1,E,p,D);break;case"backwards":for(p=null,E=d.child,d.child=null;E!==null;){if(i=E.alternate,i!==null&&Xg(i)===null){d.child=E;break}i=E.sibling,E.sibling=p,p=E,E=i}ux(d,!0,p,null,D);break;case"together":ux(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function xl(i,d,p){if(i!==null&&(d.dependencies=i.dependencies),cc|=d.lanes,(p&d.childLanes)===0)if(i!==null){if(gu(i,d,p,!1),(p&d.childLanes)===0)return null}else return null;if(i!==null&&d.child!==i.child)throw Error(r(153));if(d.child!==null){for(i=d.child,p=Si(i,i.pendingProps),d.child=p,p.return=d;i.sibling!==null;)i=i.sibling,p=p.sibling=Si(i,i.pendingProps),p.return=d;p.sibling=null}return d.child}function dx(i,d){return(i.lanes&d)!==0?!0:(i=i.dependencies,!!(i!==null&&Fd(i)))}function mz(i,d,p){switch(d.tag){case 3:me(d,d.stateNode.containerInfo),xa(d,Eo,i.memoizedState.cache),cr();break;case 27:case 5:we(d);break;case 4:me(d,d.stateNode.containerInfo);break;case 10:xa(d,d.type,d.memoizedProps.value);break;case 13:var g=d.memoizedState;if(g!==null)return g.dehydrated!==null?(rc(d),d.flags|=128,null):(p&d.child.childLanes)!==0?dM(i,d,p):(rc(d),i=xl(i,d,p),i!==null?i.sibling:null);rc(d);break;case 19:var E=(i.flags&128)!==0;if(g=(p&d.childLanes)!==0,g||(gu(i,d,p,!1),g=(p&d.childLanes)!==0),E){if(g)return pM(i,d,p);d.flags|=128}if(E=d.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),ie(Oo,Oo.current),g)break;return null;case 22:case 23:return d.lanes=0,iM(i,d,p);case 24:xa(d,Eo,i.memoizedState.cache)}return xl(i,d,p)}function hM(i,d,p){if(i!==null)if(i.memoizedProps!==d.pendingProps)jo=!0;else{if(!dx(i,p)&&(d.flags&128)===0)return jo=!1,mz(i,d,p);jo=(i.flags&131072)!==0}else jo=!1,ee&&(d.flags&1048576)!==0&&Ng(d,mu,d.index);switch(d.lanes=0,d.tag){case 16:e:{i=d.pendingProps;var g=d.elementType,E=g._init;if(g=E(g._payload),d.type=g,typeof g=="function")Nd(g)?(i=bu(g,i),d.tag=1,d=cM(null,d,g,i,p)):(d.tag=0,d=ox(null,d,g,i,p));else{if(g!=null){if(E=g.$$typeof,E===R){d.tag=11,d=rM(null,d,g,i,p);break e}else if(E===N){d.tag=14,d=oM(null,d,g,i,p);break e}}throw d=z(g)||g,Error(r(306,d,""))}}return d;case 0:return ox(i,d,d.type,d.pendingProps,p);case 1:return g=d.type,E=bu(g,d.pendingProps),cM(i,d,g,E,p);case 3:e:{if(me(d,d.stateNode.containerInfo),i===null)throw Error(r(387));g=d.pendingProps;var D=d.memoizedState;E=D.element,j0(i,d),Gp(d,g,null,p);var J=d.memoizedState;if(g=J.cache,xa(d,Eo,g),g!==D.cache&&zd(d,[Eo],p,!0),Yp(),g=J.element,D.isDehydrated)if(D={element:g,isDehydrated:!1,cache:J.cache},d.updateQueue.baseState=D,d.memoizedState=D,d.flags&256){d=uM(i,d,g,p);break e}else if(g!==E){E=Xo(Error(r(424)),d),qr(E),d=uM(i,d,g,p);break e}else{switch(i=d.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Y=is(i.firstChild),L=d,ee=!0,ve=null,Re=!0,p=qT(d,null,g,p),d.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(cr(),g===E){d=xl(i,d,p);break e}Uo(i,d,g,p)}d=d.child}return d;case 26:return ey(i,d),i===null?(p=vE(d.type,null,d.pendingProps,null))?d.memoizedState=p:ee||(p=d.type,i=d.pendingProps,g=my(ae.current).createElement(p),g[qe]=d,g[dt]=i,Vo(g,p,i),fn(g),d.stateNode=g):d.memoizedState=vE(d.type,i.memoizedProps,d.pendingProps,i.memoizedState),null;case 27:return we(d),i===null&&ee&&(g=d.stateNode=mE(d.type,d.pendingProps,ae.current),L=d,Re=!0,E=Y,pc(d.type)?(Wx=E,Y=is(g.firstChild)):Y=E),Uo(i,d,d.pendingProps.children,p),ey(i,d),i===null&&(d.flags|=4194304),d.child;case 5:return i===null&&ee&&((E=g=Y)&&(g=Vz(g,d.type,d.pendingProps,Re),g!==null?(d.stateNode=g,L=d,Y=is(g.firstChild),Re=!1,E=!0):E=!1),E||Ue(d)),we(d),E=d.type,D=d.pendingProps,J=i!==null?i.memoizedProps:null,g=D.children,Ux(E,D)?g=null:J!==null&&Ux(E,J)&&(d.flags|=32),d.memoizedState!==null&&(E=B0(i,d,sz,null,null,p),gh._currentValue=E),ey(i,d),Uo(i,d,g,p),d.child;case 6:return i===null&&ee&&((i=p=Y)&&(p=Hz(p,d.pendingProps,Re),p!==null?(d.stateNode=p,L=d,Y=null,i=!0):i=!1),i||Ue(d)),null;case 13:return dM(i,d,p);case 4:return me(d,d.stateNode.containerInfo),g=d.pendingProps,i===null?d.child=Yd(d,null,g,p):Uo(i,d,g,p),d.child;case 11:return rM(i,d,d.type,d.pendingProps,p);case 7:return Uo(i,d,d.pendingProps,p),d.child;case 8:return Uo(i,d,d.pendingProps.children,p),d.child;case 12:return Uo(i,d,d.pendingProps.children,p),d.child;case 10:return g=d.pendingProps,xa(d,d.type,g.value),Uo(i,d,g.children,p),d.child;case 9:return E=d.type._context,g=d.pendingProps.children,yl(d),E=to(E),g=g(E),d.flags|=1,Uo(i,d,g,p),d.child;case 14:return oM(i,d,d.type,d.pendingProps,p);case 15:return aM(i,d,d.type,d.pendingProps,p);case 19:return pM(i,d,p);case 31:return g=d.pendingProps,p=d.mode,g={mode:g.mode,children:g.children},i===null?(p=ty(g,p),p.ref=d.ref,d.child=p,p.return=d,d=p):(p=Si(i.child,g),p.ref=d.ref,d.child=p,p.return=d,d=p),d;case 22:return iM(i,d,p);case 24:return yl(d),g=to(Eo),i===null?(E=P0(),E===null&&(E=Br,D=R0(),E.pooledCache=D,D.refCount++,D!==null&&(E.pooledCacheLanes|=p),E=D),d.memoizedState={parent:g,cache:E},A0(d),xa(d,Eo,E)):((i.lanes&p)!==0&&(j0(i,d),Gp(d,null,null,p),Yp()),E=i.memoizedState,D=d.memoizedState,E.parent!==g?(E={parent:g,cache:g},d.memoizedState=E,d.lanes===0&&(d.memoizedState=d.updateQueue.baseState=E),xa(d,Eo,g)):(g=D.cache,xa(d,Eo,g),g!==E.cache&&zd(d,[Eo],p,!0))),Uo(i,d,d.pendingProps.children,p),d.child;case 29:throw d.pendingProps}throw Error(r(156,d.tag))}function Sl(i){i.flags|=4}function mM(i,d){if(d.type!=="stylesheet"||(d.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!CE(d)){if(d=ki.current,d!==null&&((dr&4194048)===dr?$s!==null:(dr&62914560)!==dr&&(dr&536870912)===0||d!==$s))throw Wp=D0,Zk;i.flags|=8192}}function ny(i,d){d!==null&&(i.flags|=4),i.flags&16384&&(d=i.tag!==22?Bn():536870912,i.lanes|=d,Xd|=d)}function th(i,d){if(!ee)switch(i.tailMode){case"hidden":d=i.tail;for(var p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?i.tail=null:p.sibling=null;break;case"collapsed":p=i.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?d||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function eo(i){var d=i.alternate!==null&&i.alternate.child===i.child,p=0,g=0;if(d)for(var E=i.child;E!==null;)p|=E.lanes|E.childLanes,g|=E.subtreeFlags&65011712,g|=E.flags&65011712,E.return=i,E=E.sibling;else for(E=i.child;E!==null;)p|=E.lanes|E.childLanes,g|=E.subtreeFlags,g|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=g,i.childLanes=p,d}function gz(i,d,p){var g=d.pendingProps;switch(O(d),d.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return eo(d),null;case 1:return eo(d),null;case 3:return p=d.stateNode,g=null,i!==null&&(g=i.memoizedState.cache),d.memoizedState.cache!==g&&(d.flags|=2048),Ci(Eo),ye(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(jn(d)?Sl(d):i===null||i.memoizedState.isDehydrated&&(d.flags&256)===0||(d.flags|=1024,Sn())),eo(d),null;case 26:return p=d.memoizedState,i===null?(Sl(d),p!==null?(eo(d),mM(d,p)):(eo(d),d.flags&=-16777217)):p?p!==i.memoizedState?(Sl(d),eo(d),mM(d,p)):(eo(d),d.flags&=-16777217):(i.memoizedProps!==g&&Sl(d),eo(d),d.flags&=-16777217),null;case 27:Ce(d),p=ae.current;var E=d.type;if(i!==null&&d.stateNode!=null)i.memoizedProps!==g&&Sl(d);else{if(!g){if(d.stateNode===null)throw Error(r(166));return eo(d),null}i=pe.current,jn(d)?Ot(d):(i=mE(E,g,p),d.stateNode=i,Sl(d))}return eo(d),null;case 5:if(Ce(d),p=d.type,i!==null&&d.stateNode!=null)i.memoizedProps!==g&&Sl(d);else{if(!g){if(d.stateNode===null)throw Error(r(166));return eo(d),null}if(i=pe.current,jn(d))Ot(d);else{switch(E=my(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]=d,i[dt]=g;e:for(E=d.child;E!==null;){if(E.tag===5||E.tag===6)i.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===d)break e;for(;E.sibling===null;){if(E.return===null||E.return===d)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}d.stateNode=i;e:switch(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&&Sl(d)}}return eo(d),d.flags&=-16777217,null;case 6:if(i&&d.stateNode!=null)i.memoizedProps!==g&&Sl(d);else{if(typeof g!="string"&&d.stateNode===null)throw Error(r(166));if(i=ae.current,jn(d)){if(i=d.stateNode,p=d.memoizedProps,g=null,E=L,E!==null)switch(E.tag){case 27:case 5:g=E.memoizedProps}i[qe]=d,i=!!(i.nodeValue===p||g!==null&&g.suppressHydrationWarning===!0||lE(i.nodeValue,p)),i||Ue(d)}else i=my(i).createTextNode(g),i[qe]=d,d.stateNode=i}return eo(d),null;case 13:if(g=d.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=jn(d),g!==null&&g.dehydrated!==null){if(i===null){if(!E)throw Error(r(318));if(E=d.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[qe]=d}else cr(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;eo(d),E=!1}else E=Sn(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E)return d.flags&256?(bl(d),d):(bl(d),null)}if(bl(d),(d.flags&128)!==0)return d.lanes=p,d;if(p=g!==null,i=i!==null&&i.memoizedState!==null,p){g=d.child,E=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(E=g.alternate.memoizedState.cachePool.pool);var D=null;g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(D=g.memoizedState.cachePool.pool),D!==E&&(g.flags|=2048)}return p!==i&&p&&(d.child.flags|=8192),ny(d,d.updateQueue),eo(d),null;case 4:return ye(),i===null&&Ix(d.stateNode.containerInfo),eo(d),null;case 10:return Ci(d.type),eo(d),null;case 19:if(ne(Oo),E=d.memoizedState,E===null)return eo(d),null;if(g=(d.flags&128)!==0,D=E.rendering,D===null)if(g)th(E,!1);else{if(no!==0||i!==null&&(i.flags&128)!==0)for(i=d.child;i!==null;){if(D=Xg(i),D!==null){for(d.flags|=128,th(E,!1),i=D.updateQueue,d.updateQueue=i,ny(d,i),d.subtreeFlags=0,i=p,p=d.child;p!==null;)jg(p,i),p=p.sibling;return ie(Oo,Oo.current&1|2),d.child}i=i.sibling}E.tail!==null&&Ne()>ay&&(d.flags|=128,g=!0,th(E,!1),d.lanes=4194304)}else{if(!g)if(i=Xg(D),i!==null){if(d.flags|=128,g=!0,i=i.updateQueue,d.updateQueue=i,ny(d,i),th(E,!0),E.tail===null&&E.tailMode==="hidden"&&!D.alternate&&!ee)return eo(d),null}else 2*Ne()-E.renderingStartTime>ay&&p!==536870912&&(d.flags|=128,g=!0,th(E,!1),d.lanes=4194304);E.isBackwards?(D.sibling=d.child,d.child=D):(i=E.last,i!==null?i.sibling=D:d.child=D,E.last=D)}return E.tail!==null?(d=E.tail,E.rendering=d,E.tail=d.sibling,E.renderingStartTime=Ne(),d.sibling=null,i=Oo.current,ie(Oo,g?i&1|2:i&1),d):(eo(d),null);case 22:case 23:return bl(d),z0(),g=d.memoizedState!==null,i!==null?i.memoizedState!==null!==g&&(d.flags|=8192):g&&(d.flags|=8192),g?(p&536870912)!==0&&(d.flags&128)===0&&(eo(d),d.subtreeFlags&6&&(d.flags|=8192)):eo(d),p=d.updateQueue,p!==null&&ny(d,p.retryQueue),p=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),g=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(g=d.memoizedState.cachePool.pool),g!==p&&(d.flags|=2048),i!==null&&ne(yu),null;case 24:return p=null,i!==null&&(p=i.memoizedState.cache),d.memoizedState.cache!==p&&(d.flags|=2048),Ci(Eo),eo(d),null;case 25:return null;case 30:return null}throw Error(r(156,d.tag))}function yz(i,d){switch(O(d),d.tag){case 1:return i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 3:return Ci(Eo),ye(),i=d.flags,(i&65536)!==0&&(i&128)===0?(d.flags=i&-65537|128,d):null;case 26:case 27:case 5:return Ce(d),null;case 13:if(bl(d),i=d.memoizedState,i!==null&&i.dehydrated!==null){if(d.alternate===null)throw Error(r(340));cr()}return i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 19:return ne(Oo),null;case 4:return ye(),null;case 10:return Ci(d.type),null;case 22:case 23:return bl(d),z0(),i!==null&&ne(yu),i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 24:return Ci(Eo),null;case 25:return null;default:return null}}function gM(i,d){switch(O(d),d.tag){case 3:Ci(Eo),ye();break;case 26:case 27:case 5:Ce(d);break;case 4:ye();break;case 13:bl(d);break;case 19:ne(Oo);break;case 10:Ci(d.type);break;case 22:case 23:bl(d),z0(),i!==null&&ne(yu);break;case 24:Ci(Eo)}}function nh(i,d){try{var p=d.updateQueue,g=p!==null?p.lastEffect:null;if(g!==null){var E=g.next;p=E;do{if((p.tag&i)===i){g=void 0;var D=p.create,J=p.inst;g=D(),J.destroy=g}p=p.next}while(p!==E)}}catch(re){Lr(d,d.return,re)}}function ac(i,d,p){try{var g=d.updateQueue,E=g!==null?g.lastEffect:null;if(E!==null){var D=E.next;g=D;do{if((g.tag&i)===i){var J=g.inst,re=J.destroy;if(re!==void 0){J.destroy=void 0,E=d;var xe=p,_e=re;try{_e()}catch(ft){Lr(E,xe,ft)}}}g=g.next}while(g!==D)}}catch(ft){Lr(d,d.return,ft)}}function yM(i){var d=i.updateQueue;if(d!==null){var p=i.stateNode;try{oT(d,p)}catch(g){Lr(i,i.return,g)}}}function vM(i,d,p){p.props=bu(i.type,i.memoizedProps),p.state=i.memoizedState;try{p.componentWillUnmount()}catch(g){Lr(i,d,g)}}function rh(i,d){try{var p=i.ref;if(p!==null){switch(i.tag){case 26:case 27:case 5:var g=i.stateNode;break;case 30:g=i.stateNode;break;default:g=i.stateNode}typeof p=="function"?i.refCleanup=p(g):p.current=g}}catch(E){Lr(i,d,E)}}function Ps(i,d){var p=i.ref,g=i.refCleanup;if(p!==null)if(typeof g=="function")try{g()}catch(E){Lr(i,d,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(E){Lr(i,d,E)}else p.current=null}function bM(i){var d=i.type,p=i.memoizedProps,g=i.stateNode;try{e:switch(d){case"button":case"input":case"select":case"textarea":p.autoFocus&&g.focus();break e;case"img":p.src?g.src=p.src:p.srcSet&&(g.srcset=p.srcSet)}}catch(E){Lr(i,i.return,E)}}function fx(i,d,p){try{var g=i.stateNode;zz(g,i.type,p,d),g[dt]=d}catch(E){Lr(i,i.return,E)}}function xM(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&pc(i.type)||i.tag===4}function px(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||xM(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 hx(i,d,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,d?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(i,d):(d=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,d.appendChild(i),p=p._reactRootContainer,p!=null||d.onclick!==null||(d.onclick=hy));else if(g!==4&&(g===27&&pc(i.type)&&(p=i.stateNode,d=null),i=i.child,i!==null))for(hx(i,d,p),i=i.sibling;i!==null;)hx(i,d,p),i=i.sibling}function ry(i,d,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,d?p.insertBefore(i,d):p.appendChild(i);else if(g!==4&&(g===27&&pc(i.type)&&(p=i.stateNode),i=i.child,i!==null))for(ry(i,d,p),i=i.sibling;i!==null;)ry(i,d,p),i=i.sibling}function SM(i){var d=i.stateNode,p=i.memoizedProps;try{for(var g=i.type,E=d.attributes;E.length;)d.removeAttributeNode(E[0]);Vo(d,g,p),d[qe]=i,d[dt]=p}catch(D){Lr(i,i.return,D)}}var wl=!1,yo=!1,mx=!1,wM=typeof WeakSet=="function"?WeakSet:Set,No=null;function vz(i,d){if(i=i.containerInfo,Fx=Sy,i=ia(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,ft=0,bt=i,Ye=null;t:for(;;){for(var Xe;bt!==p||E!==0&&bt.nodeType!==3||(re=J+E),bt!==D||g!==0&&bt.nodeType!==3||(xe=J+g),bt.nodeType===3&&(J+=bt.nodeValue.length),(Xe=bt.firstChild)!==null;)Ye=bt,bt=Xe;for(;;){if(bt===i)break t;if(Ye===p&&++_e===E&&(re=J),Ye===D&&++ft===g&&(xe=J),(Xe=bt.nextSibling)!==null)break;bt=Ye,Ye=bt.parentNode}bt=Xe}p=re===-1||xe===-1?null:{start:re,end:xe}}else p=null}p=p||{start:0,end:0}}else p=null;for(Bx={focusedElem:i,selectionRange:p},Sy=!1,No=d;No!==null;)if(d=No,i=d.child,(d.subtreeFlags&1024)!==0&&i!==null)i.return=d,No=i;else for(;No!==null;){switch(d=No,D=d.alternate,i=d.flags,d.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&D!==null){i=void 0,p=d,E=D.memoizedProps,D=D.memoizedState,g=p.stateNode;try{var 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=d.stateNode.containerInfo,p=i.nodeType,p===9)Vx(i);else if(p===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Vx(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=d.sibling,i!==null){i.return=d.return,No=i;break}No=d.return}}function CM(i,d,p){var g=p.flags;switch(p.tag){case 0:case 11:case 15:ic(i,p),g&4&&nh(5,p);break;case 1:if(ic(i,p),g&4)if(i=p.stateNode,d===null)try{i.componentDidMount()}catch(J){Lr(p,p.return,J)}else{var E=bu(p.type,d.memoizedProps);d=d.memoizedState;try{i.componentDidUpdate(E,d,i.__reactInternalSnapshotBeforeUpdate)}catch(J){Lr(p,p.return,J)}}g&64&&yM(p),g&512&&rh(p,p.return);break;case 3:if(ic(i,p),g&64&&(i=p.updateQueue,i!==null)){if(d=null,p.child!==null)switch(p.child.tag){case 27:case 5:d=p.child.stateNode;break;case 1:d=p.child.stateNode}try{oT(i,d)}catch(J){Lr(p,p.return,J)}}break;case 27:d===null&&g&4&&SM(p);case 26:case 5:ic(i,p),d===null&&g&4&&bM(p),g&512&&rh(p,p.return);break;case 12:ic(i,p);break;case 13:ic(i,p),g&4&&MM(i,p),g&64&&(i=p.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(p=Ez.bind(null,p),Wz(i,p))));break;case 22:if(g=p.memoizedState!==null||wl,!g){d=d!==null&&d.memoizedState!==null||yo,E=wl;var D=yo;wl=g,(yo=d)&&!D?sc(i,p,(p.subtreeFlags&8772)!==0):ic(i,p),wl=E,yo=D}break;case 30:break;default:ic(i,p)}}function kM(i){var d=i.alternate;d!==null&&(i.alternate=null,kM(d)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(d=i.stateNode,d!==null&&wt(d)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Yr=null,wa=!1;function Cl(i,d,p){for(p=p.child;p!==null;)TM(i,d,p),p=p.sibling}function TM(i,d,p){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Ze,p)}catch{}switch(p.tag){case 26:yo||Ps(p,d),Cl(i,d,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:yo||Ps(p,d);var g=Yr,E=wa;pc(p.type)&&(Yr=p.stateNode,wa=!1),Cl(i,d,p),fh(p.stateNode),Yr=g,wa=E;break;case 5:yo||Ps(p,d);case 6:if(g=Yr,E=wa,Yr=null,Cl(i,d,p),Yr=g,wa=E,Yr!==null)if(wa)try{(Yr.nodeType===9?Yr.body:Yr.nodeName==="HTML"?Yr.ownerDocument.body:Yr).removeChild(p.stateNode)}catch(D){Lr(p,d,D)}else try{Yr.removeChild(p.stateNode)}catch(D){Lr(p,d,D)}break;case 18:Yr!==null&&(wa?(i=Yr,pE(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,p.stateNode),xh(i)):pE(Yr,p.stateNode));break;case 4:g=Yr,E=wa,Yr=p.stateNode.containerInfo,wa=!0,Cl(i,d,p),Yr=g,wa=E;break;case 0:case 11:case 14:case 15:yo||ac(2,p,d),yo||ac(4,p,d),Cl(i,d,p);break;case 1:yo||(Ps(p,d),g=p.stateNode,typeof g.componentWillUnmount=="function"&&vM(p,d,g)),Cl(i,d,p);break;case 21:Cl(i,d,p);break;case 22:yo=(g=yo)||p.memoizedState!==null,Cl(i,d,p),yo=g;break;default:Cl(i,d,p)}}function MM(i,d){if(d.memoizedState===null&&(i=d.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{xh(i)}catch(p){Lr(d,d.return,p)}}function bz(i){switch(i.tag){case 13:case 19:var d=i.stateNode;return d===null&&(d=i.stateNode=new wM),d;case 22:return i=i.stateNode,d=i._retryCache,d===null&&(d=i._retryCache=new wM),d;default:throw Error(r(435,i.tag))}}function gx(i,d){var p=bz(i);d.forEach(function(g){var E=Oz.bind(null,i,g);p.has(g)||(p.add(g),g.then(E,E))})}function Ga(i,d){var p=d.deletions;if(p!==null)for(var g=0;g<p.length;g++){var E=p[g],D=i,J=d,re=J;e:for(;re!==null;){switch(re.tag){case 27:if(pc(re.type)){Yr=re.stateNode,wa=!1;break e}break;case 5:Yr=re.stateNode,wa=!1;break e;case 3:case 4:Yr=re.stateNode.containerInfo,wa=!0;break e}re=re.return}if(Yr===null)throw Error(r(160));TM(D,J,E),Yr=null,wa=!1,D=E.alternate,D!==null&&(D.return=null),E.return=null}if(d.subtreeFlags&13878)for(d=d.child;d!==null;)EM(d,i),d=d.sibling}var as=null;function EM(i,d){var p=i.alternate,g=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Ga(d,i),Ka(i),g&4&&(ac(3,i,i.return),nh(3,i),ac(5,i,i.return));break;case 1:Ga(d,i),Ka(i),g&512&&(yo||p===null||Ps(p,p.return)),g&64&&wl&&(i=i.updateQueue,i!==null&&(g=i.callbacks,g!==null&&(p=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=p===null?g:p.concat(g))));break;case 26:var E=as;if(Ga(d,i),Ka(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,fn(D),g=D;break e;case"link":var J=SE("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=SE("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,fn(D),g=D}i.stateNode=g}else wE(E,i.type,i.stateNode);else i.stateNode=xE(E,g,i.memoizedProps);else D!==g?(D===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):D.count--,g===null?wE(E,i.type,i.stateNode):xE(E,g,i.memoizedProps)):g===null&&i.stateNode!==null&&fx(i,i.memoizedProps,p.memoizedProps)}break;case 27:Ga(d,i),Ka(i),g&512&&(yo||p===null||Ps(p,p.return)),p!==null&&g&4&&fx(i,i.memoizedProps,p.memoizedProps);break;case 5:if(Ga(d,i),Ka(i),g&512&&(yo||p===null||Ps(p,p.return)),i.flags&32){E=i.stateNode;try{Xi(E,"")}catch(Xe){Lr(i,i.return,Xe)}}g&4&&i.stateNode!=null&&(E=i.memoizedProps,fx(i,E,p!==null?p.memoizedProps:E)),g&1024&&(mx=!0);break;case 6:if(Ga(d,i),Ka(i),g&4){if(i.stateNode===null)throw Error(r(162));g=i.memoizedProps,p=i.stateNode;try{p.nodeValue=g}catch(Xe){Lr(i,i.return,Xe)}}break;case 3:if(vy=null,E=as,as=gy(d.containerInfo),Ga(d,i),as=E,Ka(i),g&4&&p!==null&&p.memoizedState.isDehydrated)try{xh(d.containerInfo)}catch(Xe){Lr(i,i.return,Xe)}mx&&(mx=!1,OM(i));break;case 4:g=as,as=gy(i.stateNode.containerInfo),Ga(d,i),Ka(i),as=g;break;case 12:Ga(d,i),Ka(i);break;case 13:Ga(d,i),Ka(i),i.child.flags&8192&&i.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(wx=Ne()),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,gx(i,g)));break;case 22:E=i.memoizedState!==null;var xe=p!==null&&p.memoizedState!==null,_e=wl,ft=yo;if(wl=_e||E,yo=ft||xe,Ga(d,i),yo=ft,wl=_e,Ka(i),g&8192)e:for(d=i.stateNode,d._visibility=E?d._visibility&-2:d._visibility|1,E&&(p===null||xe||wl||yo||xu(i)),p=null,d=i;;){if(d.tag===5||d.tag===26){if(p===null){xe=p=d;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 bt=xe.memoizedProps.style,Ye=bt!=null&&bt.hasOwnProperty("display")?bt.display:null;re.style.display=Ye==null||typeof Ye=="boolean"?"":(""+Ye).trim()}}catch(Xe){Lr(xe,xe.return,Xe)}}}else if(d.tag===6){if(p===null){xe=d;try{xe.stateNode.nodeValue=E?"":xe.memoizedProps}catch(Xe){Lr(xe,xe.return,Xe)}}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===i)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}g&4&&(g=i.updateQueue,g!==null&&(p=g.retryQueue,p!==null&&(g.retryQueue=null,gx(i,p))));break;case 19:Ga(d,i),Ka(i),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,gx(i,g)));break;case 30:break;case 21:break;default:Ga(d,i),Ka(i)}}function Ka(i){var d=i.flags;if(d&2){try{for(var p,g=i.return;g!==null;){if(xM(g)){p=g;break}g=g.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var E=p.stateNode,D=px(i);ry(i,D,E);break;case 5:var J=p.stateNode;p.flags&32&&(Xi(J,""),p.flags&=-33);var re=px(i);ry(i,re,J);break;case 3:case 4:var xe=p.stateNode.containerInfo,_e=px(i);hx(i,_e,xe);break;default:throw Error(r(161))}}catch(ft){Lr(i,i.return,ft)}i.flags&=-3}d&4096&&(i.flags&=-4097)}function OM(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var d=i;OM(d),d.tag===5&&d.flags&1024&&d.stateNode.reset(),i=i.sibling}}function ic(i,d){if(d.subtreeFlags&8772)for(d=d.child;d!==null;)CM(i,d.alternate,d),d=d.sibling}function xu(i){for(i=i.child;i!==null;){var d=i;switch(d.tag){case 0:case 11:case 14:case 15:ac(4,d,d.return),xu(d);break;case 1:Ps(d,d.return);var p=d.stateNode;typeof p.componentWillUnmount=="function"&&vM(d,d.return,p),xu(d);break;case 27:fh(d.stateNode);case 26:case 5:Ps(d,d.return),xu(d);break;case 22:d.memoizedState===null&&xu(d);break;case 30:xu(d);break;default:xu(d)}i=i.sibling}}function sc(i,d,p){for(p=p&&(d.subtreeFlags&8772)!==0,d=d.child;d!==null;){var g=d.alternate,E=i,D=d,J=D.flags;switch(D.tag){case 0:case 11:case 15:sc(E,D,p),nh(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++)rT(xe[E],re)}catch(_e){Lr(g,g.return,_e)}}p&&J&64&&yM(D),rh(D,D.return);break;case 27:SM(D);case 26:case 5:sc(E,D,p),p&&g===null&&J&4&&bM(D),rh(D,D.return);break;case 12:sc(E,D,p);break;case 13:sc(E,D,p),p&&J&4&&MM(E,D);break;case 22:D.memoizedState===null&&sc(E,D,p),rh(D,D.return);break;case 30:break;default:sc(E,D,p)}d=d.sibling}}function yx(i,d){var p=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),i=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(i=d.memoizedState.cachePool.pool),i!==p&&(i!=null&&i.refCount++,p!=null&&_p(p))}function vx(i,d){i=null,d.alternate!==null&&(i=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==i&&(d.refCount++,i!=null&&_p(i))}function Ds(i,d,p,g){if(d.subtreeFlags&10256)for(d=d.child;d!==null;)RM(i,d,p,g),d=d.sibling}function RM(i,d,p,g){var E=d.flags;switch(d.tag){case 0:case 11:case 15:Ds(i,d,p,g),E&2048&&nh(9,d);break;case 1:Ds(i,d,p,g);break;case 3:Ds(i,d,p,g),E&2048&&(i=null,d.alternate!==null&&(i=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==i&&(d.refCount++,i!=null&&_p(i)));break;case 12:if(E&2048){Ds(i,d,p,g),i=d.stateNode;try{var D=d.memoizedProps,J=D.id,re=D.onPostCommit;typeof re=="function"&&re(J,d.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(xe){Lr(d,d.return,xe)}}else Ds(i,d,p,g);break;case 13:Ds(i,d,p,g);break;case 23:break;case 22:D=d.stateNode,J=d.alternate,d.memoizedState!==null?D._visibility&2?Ds(i,d,p,g):oh(i,d):D._visibility&2?Ds(i,d,p,g):(D._visibility|=2,Gd(i,d,p,g,(d.subtreeFlags&10256)!==0)),E&2048&&yx(J,d);break;case 24:Ds(i,d,p,g),E&2048&&vx(d.alternate,d);break;default:Ds(i,d,p,g)}}function Gd(i,d,p,g,E){for(E=E&&(d.subtreeFlags&10256)!==0,d=d.child;d!==null;){var D=i,J=d,re=p,xe=g,_e=J.flags;switch(J.tag){case 0:case 11:case 15:Gd(D,J,re,xe,E),nh(8,J);break;case 23:break;case 22:var ft=J.stateNode;J.memoizedState!==null?ft._visibility&2?Gd(D,J,re,xe,E):oh(D,J):(ft._visibility|=2,Gd(D,J,re,xe,E)),E&&_e&2048&&yx(J.alternate,J);break;case 24:Gd(D,J,re,xe,E),E&&_e&2048&&vx(J.alternate,J);break;default:Gd(D,J,re,xe,E)}d=d.sibling}}function oh(i,d){if(d.subtreeFlags&10256)for(d=d.child;d!==null;){var p=i,g=d,E=g.flags;switch(g.tag){case 22:oh(p,g),E&2048&&yx(g.alternate,g);break;case 24:oh(p,g),E&2048&&vx(g.alternate,g);break;default:oh(p,g)}d=d.sibling}}var ah=8192;function Kd(i){if(i.subtreeFlags&ah)for(i=i.child;i!==null;)$M(i),i=i.sibling}function $M(i){switch(i.tag){case 26:Kd(i),i.flags&ah&&i.memoizedState!==null&&o5(as,i.memoizedState,i.memoizedProps);break;case 5:Kd(i);break;case 3:case 4:var d=as;as=gy(i.stateNode.containerInfo),Kd(i),as=d;break;case 22:i.memoizedState===null&&(d=i.alternate,d!==null&&d.memoizedState!==null?(d=ah,ah=16777216,Kd(i),ah=d):Kd(i));break;default:Kd(i)}}function PM(i){var d=i.alternate;if(d!==null&&(i=d.child,i!==null)){d.child=null;do d=i.sibling,i.sibling=null,i=d;while(i!==null)}}function ih(i){var d=i.deletions;if((i.flags&16)!==0){if(d!==null)for(var p=0;p<d.length;p++){var g=d[p];No=g,AM(g,i)}PM(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)DM(i),i=i.sibling}function DM(i){switch(i.tag){case 0:case 11:case 15:ih(i),i.flags&2048&&ac(9,i,i.return);break;case 3:ih(i);break;case 12:ih(i);break;case 22:var d=i.stateNode;i.memoizedState!==null&&d._visibility&2&&(i.return===null||i.return.tag!==13)?(d._visibility&=-3,oy(i)):ih(i);break;default:ih(i)}}function oy(i){var d=i.deletions;if((i.flags&16)!==0){if(d!==null)for(var p=0;p<d.length;p++){var g=d[p];No=g,AM(g,i)}PM(i)}for(i=i.child;i!==null;){switch(d=i,d.tag){case 0:case 11:case 15:ac(8,d,d.return),oy(d);break;case 22:p=d.stateNode,p._visibility&2&&(p._visibility&=-3,oy(d));break;default:oy(d)}i=i.sibling}}function AM(i,d){for(;No!==null;){var p=No;switch(p.tag){case 0:case 11:case 15:ac(8,p,d);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var g=p.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:_p(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(kM(g),g===p){No=null;break e}if(E!==null){E.return=D,No=E;break e}No=D}}}var xz={getCacheForType:function(i){var d=to(Eo),p=d.data.get(i);return p===void 0&&(p=i(),d.data.set(i,p)),p}},Sz=typeof WeakMap=="function"?WeakMap:Map,kr=0,Br=null,nr=null,dr=0,Tr=0,Qa=null,lc=!1,Qd=!1,bx=!1,kl=0,no=0,cc=0,Su=0,xx=0,Ti=0,Xd=0,sh=null,Ca=null,Sx=!1,wx=0,ay=1/0,iy=null,uc=null,_o=0,dc=null,Zd=null,Jd=0,Cx=0,kx=null,jM=null,lh=0,Tx=null;function Xa(){if((kr&2)!==0&&dr!==0)return dr&-dr;if(A.T!==null){var i=Bd;return i!==0?i:Dx()}return se()}function NM(){Ti===0&&(Ti=(dr&536870912)===0||ee?vn():536870912);var i=ki.current;return i!==null&&(i.flags|=32),Ti}function Za(i,d,p){(i===Br&&(Tr===2||Tr===9)||i.cancelPendingCommit!==null)&&(ef(i,0),fc(i,dr,Ti,!1)),Qt(i,p),((kr&2)===0||i!==Br)&&(i===Br&&((kr&2)===0&&(Su|=p),no===4&&fc(i,dr,Ti,!1)),As(i))}function IM(i,d,p){if((kr&6)!==0)throw Error(r(327));var g=!p&&(d&124)===0&&(d&i.expiredLanes)===0||Vt(i,d),E=g?kz(i,d):Ox(i,d,!0),D=g;do{if(E===0){Qd&&!g&&fc(i,d,0,!1);break}else{if(p=i.current.alternate,D&&!wz(p)){E=Ox(i,d,!1),D=!1;continue}if(E===2){if(D=d,i.errorRecoveryDisabledLanes&D)var J=0;else J=i.pendingLanes&-536870913,J=J!==0?J:J&536870912?536870912:0;if(J!==0){d=J;e:{var re=i;E=sh;var xe=re.current.memoizedState.isDehydrated;if(xe&&(ef(re,J).flags|=256),J=Ox(re,J,!1),J!==2){if(bx&&!xe){re.errorRecoveryDisabledLanes|=D,Su|=D,E=4;break e}D=Ca,Ca=E,D!==null&&(Ca===null?Ca=D:Ca.push.apply(Ca,D))}E=J}if(D=!1,E!==2)continue}}if(E===1){ef(i,0),fc(i,d,0,!0);break}e:{switch(g=i,D=E,D){case 0:case 1:throw Error(r(345));case 4:if((d&4194048)!==d)break;case 6:fc(g,d,Ti,!lc);break e;case 2:Ca=null;break;case 3:case 5:break;default:throw Error(r(329))}if((d&62914560)===d&&(E=wx+300-Ne(),10<E)){if(fc(g,d,Ti,!lc),$t(g,0,!0)!==0)break e;g.timeoutHandle=dE(LM.bind(null,g,p,Ca,iy,Sx,d,Ti,Su,Xd,lc,D,2,-0,0),E);break e}LM(g,p,Ca,iy,Sx,d,Ti,Su,Xd,lc,D,0,-0,0)}}break}while(!0);As(i)}function LM(i,d,p,g,E,D,J,re,xe,_e,ft,bt,Ye,Xe){if(i.timeoutHandle=-1,bt=d.subtreeFlags,(bt&8192||(bt&16785408)===16785408)&&(mh={stylesheets:null,count:0,unsuspend:r5},$M(d),bt=a5(),bt!==null)){i.cancelPendingCommit=bt(HM.bind(null,i,d,D,p,g,E,J,re,xe,ft,1,Ye,Xe)),fc(i,D,J,!_e);return}HM(i,d,D,p,g,E,J,re,xe)}function wz(i){for(var d=i;;){var p=d.tag;if((p===0||p===11||p===15)&&d.flags&16384&&(p=d.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var g=0;g<p.length;g++){var E=p[g],D=E.getSnapshot;E=E.value;try{if(!rn(D(),E))return!1}catch{return!1}}if(p=d.child,d.subtreeFlags&16384&&p!==null)p.return=d,d=p;else{if(d===i)break;for(;d.sibling===null;){if(d.return===null||d.return===i)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function fc(i,d,p,g){d&=~xx,d&=~Su,i.suspendedLanes|=d,i.pingedLanes&=~d,g&&(i.warmLanes|=d),g=i.expirationTimes;for(var E=d;0<E;){var D=31-he(E),J=1<<D;g[D]=-1,E&=~J}p!==0&&be(i,p,d)}function sy(){return(kr&6)===0?(ch(0),!1):!0}function Mx(){if(nr!==null){if(Tr===0)var i=nr.return;else i=nr,ba=va=null,V0(i),qd=null,Jp=0,i=nr;for(;i!==null;)gM(i.alternate,i),i=i.return;nr=null}}function ef(i,d){var p=i.timeoutHandle;p!==-1&&(i.timeoutHandle=-1,Bz(p)),p=i.cancelPendingCommit,p!==null&&(i.cancelPendingCommit=null,p()),Mx(),Br=i,nr=p=Si(i.current,null),dr=d,Tr=0,Qa=null,lc=!1,Qd=Vt(i,d),bx=!1,Xd=Ti=xx=Su=cc=no=0,Ca=sh=null,Sx=!1,(d&8)!==0&&(d|=d&32);var g=i.entangledLanes;if(g!==0)for(i=i.entanglements,g&=d;0<g;){var E=31-he(g),D=1<<E;d|=i[E],g&=~D}return kl=d,Zl(),p}function zM(i,d){Zn=null,A.H=Gg,d===Hp||d===zg?(d=tT(),Tr=3):d===Zk?(d=tT(),Tr=4):Tr=d===nM?8:d!==null&&typeof d=="object"&&typeof d.then=="function"?6:1,Qa=d,nr===null&&(no=1,Jg(i,Xo(d,i.current)))}function FM(){var i=A.H;return A.H=Gg,i===null?Gg:i}function BM(){var i=A.A;return A.A=xz,i}function Ex(){no=4,lc||(dr&4194048)!==dr&&ki.current!==null||(Qd=!0),(cc&134217727)===0&&(Su&134217727)===0||Br===null||fc(Br,dr,Ti,!1)}function Ox(i,d,p){var g=kr;kr|=2;var E=FM(),D=BM();(Br!==i||dr!==d)&&(iy=null,ef(i,d)),d=!1;var J=no;e:do try{if(Tr!==0&&nr!==null){var re=nr,xe=Qa;switch(Tr){case 8:Mx(),J=6;break e;case 3:case 2:case 9:case 6:ki.current===null&&(d=!0);var _e=Tr;if(Tr=0,Qa=null,tf(i,re,xe,_e),p&&Qd){J=0;break e}break;default:_e=Tr,Tr=0,Qa=null,tf(i,re,xe,_e)}}Cz(),J=no;break}catch(ft){zM(i,ft)}while(!0);return d&&i.shellSuspendCounter++,ba=va=null,kr=g,A.H=E,A.A=D,nr===null&&(Br=null,dr=0,Zl()),J}function Cz(){for(;nr!==null;)UM(nr)}function kz(i,d){var p=kr;kr|=2;var g=FM(),E=BM();Br!==i||dr!==d?(iy=null,ay=Ne()+500,ef(i,d)):Qd=Vt(i,d);e:do try{if(Tr!==0&&nr!==null){d=nr;var D=Qa;t:switch(Tr){case 1:Tr=0,Qa=null,tf(i,d,D,1);break;case 2:case 9:if(Jk(D)){Tr=0,Qa=null,_M(d);break}d=function(){Tr!==2&&Tr!==9||Br!==i||(Tr=7),As(i)},D.then(d,d);break e;case 3:Tr=7;break e;case 4:Tr=5;break e;case 7:Jk(D)?(Tr=0,Qa=null,_M(d)):(Tr=0,Qa=null,tf(i,d,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||CE(J)){Tr=0,Qa=null;var xe=re.sibling;if(xe!==null)nr=xe;else{var _e=re.return;_e!==null?(nr=_e,ly(_e)):nr=null}break t}}Tr=0,Qa=null,tf(i,d,D,5);break;case 6:Tr=0,Qa=null,tf(i,d,D,6);break;case 8:Mx(),no=6;break e;default:throw Error(r(462))}}Tz();break}catch(ft){zM(i,ft)}while(!0);return ba=va=null,A.H=g,A.A=E,kr=p,nr!==null?0:(Br=null,dr=0,Zl(),no)}function Tz(){for(;nr!==null&&!Ge();)UM(nr)}function UM(i){var d=hM(i.alternate,i,kl);i.memoizedProps=i.pendingProps,d===null?ly(i):nr=d}function _M(i){var d=i,p=d.alternate;switch(d.tag){case 15:case 0:d=lM(p,d,d.pendingProps,d.type,void 0,dr);break;case 11:d=lM(p,d,d.pendingProps,d.type.render,d.ref,dr);break;case 5:V0(d);default:gM(p,d),d=nr=jg(d,kl),d=hM(p,d,kl)}i.memoizedProps=i.pendingProps,d===null?ly(i):nr=d}function tf(i,d,p,g){ba=va=null,V0(d),qd=null,Jp=0;var E=d.return;try{if(hz(i,E,d,p,dr)){no=1,Jg(i,Xo(p,i.current)),nr=null;return}}catch(D){if(E!==null)throw nr=E,D;no=1,Jg(i,Xo(p,i.current)),nr=null;return}d.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=ki.current,g!==null&&g.tag===13&&(g.flags|=16384))),VM(d,i)):ly(d)}function ly(i){var d=i;do{if((d.flags&32768)!==0){VM(d,lc);return}i=d.return;var p=gz(d.alternate,d,kl);if(p!==null){nr=p;return}if(d=d.sibling,d!==null){nr=d;return}nr=d=i}while(d!==null);no===0&&(no=5)}function VM(i,d){do{var p=yz(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),!d&&(i=i.sibling,i!==null)){nr=i;return}nr=i=p}while(i!==null);no=6,nr=null}function HM(i,d,p,g,E,D,J,re,xe){i.cancelPendingCommit=null;do cy();while(_o!==0);if((kr&6)!==0)throw Error(r(327));if(d!==null){if(d===i.current)throw Error(r(177));if(D=d.lanes|d.childLanes,D|=fu,In(i,p,D,J,re,xe),i===Br&&(nr=Br=null,dr=0),Zd=d,dc=i,Jd=p,Cx=D,kx=E,jM=g,(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Rz(it,function(){return KM(),null})):(i.callbackNode=null,i.callbackPriority=0),g=(d.flags&13878)!==0,(d.subtreeFlags&13878)!==0||g){g=A.T,A.T=null,E=Z.p,Z.p=2,J=kr,kr|=4;try{vz(i,d,p)}finally{kr=J,Z.p=E,A.T=g}}_o=1,WM(),qM(),YM()}}function WM(){if(_o===1){_o=0;var i=dc,d=Zd,p=(d.flags&13878)!==0;if((d.subtreeFlags&13878)!==0||p){p=A.T,A.T=null;var g=Z.p;Z.p=2;var E=kr;kr|=4;try{EM(d,i);var D=Bx,J=ia(i.containerInfo),re=D.focusedElem,xe=D.selectionRange;if(J!==re&&re&&re.ownerDocument&&_a(re.ownerDocument.documentElement,re)){if(xe!==null&&Ln(re)){var _e=xe.start,ft=xe.end;if(ft===void 0&&(ft=_e),"selectionStart"in re)re.selectionStart=_e,re.selectionEnd=Math.min(ft,re.value.length);else{var bt=re.ownerDocument||document,Ye=bt&&bt.defaultView||window;if(Ye.getSelection){var Xe=Ye.getSelection(),Nn=re.textContent.length,$n=Math.min(xe.start,Nn),Ar=xe.end===void 0?$n:Math.min(xe.end,Nn);!Xe.extend&&$n>Ar&&(J=Ar,Ar=$n,$n=J);var Ie=Ur(re,$n),$e=Ur(re,Ar);if(Ie&&$e&&(Xe.rangeCount!==1||Xe.anchorNode!==Ie.node||Xe.anchorOffset!==Ie.offset||Xe.focusNode!==$e.node||Xe.focusOffset!==$e.offset)){var Be=bt.createRange();Be.setStart(Ie.node,Ie.offset),Xe.removeAllRanges(),$n>Ar?(Xe.addRange(Be),Xe.extend($e.node,$e.offset)):(Be.setEnd($e.node,$e.offset),Xe.addRange(Be))}}}}for(bt=[],Xe=re;Xe=Xe.parentNode;)Xe.nodeType===1&&bt.push({element:Xe,left:Xe.scrollLeft,top:Xe.scrollTop});for(typeof re.focus=="function"&&re.focus(),re=0;re<bt.length;re++){var ht=bt[re];ht.element.scrollLeft=ht.left,ht.element.scrollTop=ht.top}}Sy=!!Fx,Bx=Fx=null}finally{kr=E,Z.p=g,A.T=p}}i.current=d,_o=2}}function qM(){if(_o===2){_o=0;var i=dc,d=Zd,p=(d.flags&8772)!==0;if((d.subtreeFlags&8772)!==0||p){p=A.T,A.T=null;var g=Z.p;Z.p=2;var E=kr;kr|=4;try{CM(i,d.alternate,d)}finally{kr=E,Z.p=g,A.T=p}}_o=3}}function YM(){if(_o===4||_o===3){_o=0,ze();var i=dc,d=Zd,p=Jd,g=jM;(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?_o=5:(_o=0,Zd=dc=null,GM(i,i.pendingLanes));var E=i.pendingLanes;if(E===0&&(uc=null),Xt(p),d=d.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Ze,d,void 0,(d.current.flags&128)===128)}catch{}if(g!==null){d=A.T,E=Z.p,Z.p=2,A.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{A.T=d,Z.p=E}}(Jd&3)!==0&&cy(),As(i),E=i.pendingLanes,(p&4194090)!==0&&(E&42)!==0?i===Tx?lh++:(lh=0,Tx=i):lh=0,ch(0)}}function GM(i,d){(i.pooledCacheLanes&=d)===0&&(d=i.pooledCache,d!=null&&(i.pooledCache=null,_p(d)))}function cy(i){return WM(),qM(),YM(),KM()}function KM(){if(_o!==5)return!1;var i=dc,d=Cx;Cx=0;var p=Xt(Jd),g=A.T,E=Z.p;try{Z.p=32>p?32:p,A.T=null,p=kx,kx=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,DM(D.current),RM(D,D.current,J,p),kr=re,ch(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Ze,D)}catch{}return!0}finally{Z.p=E,A.T=g,GM(i,d)}}function QM(i,d,p){d=Xo(p,d),d=rx(i.stateNode,d,2),i=tc(i,d,2),i!==null&&(Qt(i,2),As(i))}function Lr(i,d,p){if(i.tag===3)QM(i,i,p);else for(;d!==null;){if(d.tag===3){QM(d,i,p);break}else if(d.tag===1){var g=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(uc===null||!uc.has(g))){i=Xo(p,i),p=eM(2),g=tc(d,p,2),g!==null&&(tM(p,g,d,i),Qt(g,2),As(g));break}}d=d.return}}function Rx(i,d,p){var g=i.pingCache;if(g===null){g=i.pingCache=new Sz;var E=new Set;g.set(d,E)}else E=g.get(d),E===void 0&&(E=new Set,g.set(d,E));E.has(p)||(bx=!0,E.add(p),i=Mz.bind(null,i,d,p),d.then(i,i))}function Mz(i,d,p){var g=i.pingCache;g!==null&&g.delete(d),i.pingedLanes|=i.suspendedLanes&p,i.warmLanes&=~p,Br===i&&(dr&p)===p&&(no===4||no===3&&(dr&62914560)===dr&&300>Ne()-wx?(kr&2)===0&&ef(i,0):xx|=p,Xd===dr&&(Xd=0)),As(i)}function XM(i,d){d===0&&(d=Bn()),i=rs(i,d),i!==null&&(Qt(i,d),As(i))}function Ez(i){var d=i.memoizedState,p=0;d!==null&&(p=d.retryLane),XM(i,p)}function Oz(i,d){var p=0;switch(i.tag){case 13:var g=i.stateNode,E=i.memoizedState;E!==null&&(p=E.retryLane);break;case 19:g=i.stateNode;break;case 22:g=i.stateNode._retryCache;break;default:throw Error(r(314))}g!==null&&g.delete(d),XM(i,p)}function Rz(i,d){return ue(i,d)}var uy=null,nf=null,$x=!1,dy=!1,Px=!1,wu=0;function As(i){i!==nf&&i.next===null&&(nf===null?uy=nf=i:nf=nf.next=i),dy=!0,$x||($x=!0,Pz())}function ch(i,d){if(!Px&&dy){Px=!0;do for(var p=!1,g=uy;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,tE(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,tE(g,D));g=g.next}while(p);Px=!1}}function $z(){ZM()}function ZM(){dy=$x=!1;var i=0;wu!==0&&(Fz()&&(i=wu),wu=0);for(var d=Ne(),p=null,g=uy;g!==null;){var E=g.next,D=JM(g,d);D===0?(g.next=null,p===null?uy=E:p.next=E,E===null&&(nf=p)):(p=g,(i!==0||(D&3)!==0)&&(dy=!0)),g=E}ch(i)}function JM(i,d){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]=dn(re,d)):xe<=d&&(i.expiredLanes|=re),D&=~re}if(d=Br,p=dr,p=$t(i,i===d?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),g=i.callbackNode,p===0||i===d&&(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(d=p&-p,d===i.callbackPriority)return d;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=eE.bind(null,i),p=ue(p,g),i.callbackPriority=d,i.callbackNode=p,d}return g!==null&&g!==null&&ke(g),i.callbackPriority=2,i.callbackNode=null,2}function eE(i,d){if(_o!==0&&_o!==5)return i.callbackNode=null,i.callbackPriority=0,null;var p=i.callbackNode;if(cy()&&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:(IM(i,g,d),JM(i,Ne()),i.callbackNode!=null&&i.callbackNode===p?eE.bind(null,i):null)}function tE(i,d){if(cy())return null;IM(i,d,!0)}function Pz(){Uz(function(){(kr&6)!==0?ue(xt,$z):ZM()})}function Dx(){return wu===0&&(wu=vn()),wu}function nE(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:sl(""+i)}function rE(i,d){var p=d.ownerDocument.createElement("input");return p.name=d.name,p.value=d.value,i.id&&p.setAttribute("form",i.id),d.parentNode.insertBefore(p,d),i=new FormData(i),p.parentNode.removeChild(p),i}function Dz(i,d,p,g,E){if(d==="submit"&&p&&p.stateNode===E){var D=nE((E[dt]||null).action),J=g.submitter;J&&(d=(d=J[dt]||null)?nE(d.formAction):J.getAttribute("formAction"),d!==null&&(D=d,J=null));var re=new Zr("action","action",null,g,E);i.push({event:re,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(wu!==0){var xe=J?rE(E,J):new FormData(E);Z0(p,{pending:!0,data:xe,method:E.method,action:D},null,xe)}}else typeof D=="function"&&(re.preventDefault(),xe=J?rE(E,J):new FormData(E),Z0(p,{pending:!0,data:xe,method:E.method,action:D},D,xe))},currentTarget:E}]})}}for(var Ax=0;Ax<Dd.length;Ax++){var jx=Dd[Ax],Az=jx.toLowerCase(),jz=jx[0].toUpperCase()+jx.slice(1);Va(Az,"on"+jz)}Va(Pg,"onAnimationEnd"),Va(Dg,"onAnimationIteration"),Va(Ag,"onAnimationStart"),Va("dblclick","onDoubleClick"),Va("focusin","onFocus"),Va("focusout","onBlur"),Va(Np,"onTransitionRun"),Va(E0,"onTransitionStart"),Va(O0,"onTransitionCancel"),Va(Ip,"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 uh="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(" "),Nz=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uh));function oE(i,d){d=(d&4)!==0;for(var p=0;p<i.length;p++){var g=i[p],E=g.event;g=g.listeners;e:{var D=void 0;if(d)for(var 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(ft){Zg(ft)}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(ft){Zg(ft)}E.currentTarget=null,D=xe}}}}function rr(i,d){var p=d[Bt];p===void 0&&(p=d[Bt]=new Set);var g=i+"__bubble";p.has(g)||(aE(d,i,2,!1),p.add(g))}function Nx(i,d,p){var g=0;d&&(g|=4),aE(p,i,g,d)}var fy="_reactListening"+Math.random().toString(36).slice(2);function Ix(i){if(!i[fy]){i[fy]=!0,de.forEach(function(p){p!=="selectionchange"&&(Nz.has(p)||Nx(p,!1,i),Nx(p,!0,i))});var d=i.nodeType===9?i:i.ownerDocument;d===null||d[fy]||(d[fy]=!0,Nx("selectionchange",!1,d))}}function aE(i,d,p,g){switch(RE(d)){case 2:var E=l5;break;case 8:E=c5;break;default:E=Qx}p=E.bind(null,d,p,i),E=void 0,!nu||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(E=!0),g?E!==void 0?i.addEventListener(d,p,{capture:!0,passive:E}):i.addEventListener(d,p,!0):E!==void 0?i.addEventListener(d,p,{passive:E}):i.addEventListener(d,p,!1)}function Lx(i,d,p,g,E){var D=g;if((d&1)===0&&(d&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=Wt(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,ft=ql(p),bt=[];e:{var Ye=Lp.get(i);if(Ye!==void 0){var Xe=Zr,Nn=i;switch(i){case"keypress":if(Gl(p)===0)break e;case"keydown":case"keyup":Xe=cu;break;case"focusin":Nn="focus",Xe=su;break;case"focusout":Nn="blur",Xe=su;break;case"beforeblur":case"afterblur":Xe=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":Xe=iu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Xe=xd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Xe=kd;break;case Pg:case Dg:case Ag:Xe=Kl;break;case Ip:Xe=Tp;break;case"scroll":case"scrollend":Xe=Ee;break;case"wheel":Xe=Mp;break;case"copy":case"cut":case"paste":Xe=Ts;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Xe=Cd;break;case"toggle":case"beforetoggle":Xe=Op}var $n=(d&4)!==0,Ar=!$n&&(i==="scroll"||i==="scrollend"),Ie=$n?Ye!==null?Ye+"Capture":null:Ye;$n=[];for(var $e=_e,Be;$e!==null;){var ht=$e;if(Be=ht.stateNode,ht=ht.tag,ht!==5&&ht!==26&&ht!==27||Be===null||Ie===null||(ht=ll($e,Ie),ht!=null&&$n.push(dh($e,ht,Be))),Ar)break;$e=$e.return}0<$n.length&&(Ye=new Xe(Ye,Nn,null,p,ft),bt.push({event:Ye,listeners:$n}))}}if((d&7)===0){e:{if(Ye=i==="mouseover"||i==="pointerover",Xe=i==="mouseout"||i==="pointerout",Ye&&p!==Wl&&(Nn=p.relatedTarget||p.fromElement)&&(Wt(Nn)||Nn[It]))break e;if((Xe||Ye)&&(Ye=ft.window===ft?ft:(Ye=ft.ownerDocument)?Ye.defaultView||Ye.parentWindow:window,Xe?(Nn=p.relatedTarget||p.toElement,Xe=_e,Nn=Nn?Wt(Nn):null,Nn!==null&&(Ar=a(Nn),$n=Nn.tag,Nn!==Ar||$n!==5&&$n!==27&&$n!==6)&&(Nn=null)):(Xe=null,Nn=_e),Xe!==Nn)){if($n=iu,ht="onMouseLeave",Ie="onMouseEnter",$e="mouse",(i==="pointerout"||i==="pointerover")&&($n=Cd,ht="onPointerLeave",Ie="onPointerEnter",$e="pointer"),Ar=Xe==null?Ye:qn(Xe),Be=Nn==null?Ye:qn(Nn),Ye=new $n(ht,$e+"leave",Xe,p,ft),Ye.target=Ar,Ye.relatedTarget=Be,ht=null,Wt(ft)===_e&&($n=new $n(Ie,$e+"enter",Nn,p,ft),$n.target=Be,$n.relatedTarget=Ar,ht=$n),Ar=ht,Xe&&Nn)t:{for($n=Xe,Ie=Nn,$e=0,Be=$n;Be;Be=rf(Be))$e++;for(Be=0,ht=Ie;ht;ht=rf(ht))Be++;for(;0<$e-Be;)$n=rf($n),$e--;for(;0<Be-$e;)Ie=rf(Ie),Be--;for(;$e--;){if($n===Ie||Ie!==null&&$n===Ie.alternate)break t;$n=rf($n),Ie=rf(Ie)}$n=null}else $n=null;Xe!==null&&iE(bt,Ye,Xe,$n,!1),Nn!==null&&Ar!==null&&iE(bt,Ar,Nn,$n,!0)}}e:{if(Ye=_e?qn(_e):window,Xe=Ye.nodeName&&Ye.nodeName.toLowerCase(),Xe==="select"||Xe==="input"&&Ye.type==="file")var en=B;else if($d(Ye))if(G)en=wr;else{en=Gn;var Jn=Yn}else Xe=Ye.nodeName,!Xe||Xe.toLowerCase()!=="input"||Ye.type!=="checkbox"&&Ye.type!=="radio"?_e&&Jc(_e.elementType)&&(en=B):en=qt;if(en&&(en=en(i,_e))){Pd(bt,en,p,ft);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")&&(sa=Jn,ns=_e,Qo=null);break;case"focusout":Qo=ns=sa=null;break;case"mousedown":Jr=!0;break;case"contextmenu":case"mouseup":case"dragend":Jr=!1,hl(bt,p,ft);break;case"selectionchange":if(pl)break;case"keydown":case"keyup":hl(bt,p,ft)}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()):(vi=ft,ru="value"in vi?vi.value:vi.textContent,Os=!0)),Jn=py(_e,Pn),0<Jn.length&&(Pn=new es(Pn,i,null,p,ft),bt.push({event:Pn,listeners:Jn}),hn?Pn.data=hn:(hn=Rd(p),hn!==null&&(Pn.data=hn)))),(hn=$p?Pp(i,p):Dp(i,p))&&(Pn=py(_e,"onBeforeInput"),0<Pn.length&&(Jn=new es("onBeforeInput","beforeinput",null,p,ft),bt.push({event:Jn,listeners:Pn}),Jn.data=hn)),Dz(bt,i,_e,p,ft)}oE(bt,d)})}function dh(i,d,p){return{instance:i,listener:d,currentTarget:p}}function py(i,d){for(var p=d+"Capture",g=[];i!==null;){var E=i,D=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||D===null||(E=ll(i,p),E!=null&&g.unshift(dh(i,E,D)),E=ll(i,d),E!=null&&g.push(dh(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 iE(i,d,p,g,E){for(var D=d._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=ll(p,D),_e!=null&&J.unshift(dh(p,_e,xe))):E||(_e=ll(p,D),_e!=null&&J.push(dh(p,_e,xe)))),p=p.return}J.length!==0&&i.push({event:d,listeners:J})}var Iz=/\r\n?/g,Lz=/\u0000|\uFFFD/g;function sE(i){return(typeof i=="string"?i:""+i).replace(Iz,`
50
- `).replace(Lz,"")}function lE(i,d){return d=sE(d),sE(i)===d}function hy(){}function Dr(i,d,p,g,E,D){switch(p){case"children":typeof g=="string"?d==="body"||d==="textarea"&&g===""||Xi(i,g):(typeof g=="number"||typeof g=="bigint")&&d!=="body"&&Xi(i,""+g);break;case"className":Oe(i,"class",g);break;case"tabIndex":Oe(i,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Oe(i,p,g);break;case"style":il(i,g,D);break;case"data":if(d!=="object"){Oe(i,"data",g);break}case"src":case"href":if(g===""&&(d!=="a"||p!=="href")){i.removeAttribute(p);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=sl(""+g),i.setAttribute(p,g);break;case"action":case"formAction":if(typeof g=="function"){i.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(p==="formAction"?(d!=="input"&&Dr(i,d,"name",E.name,E,null),Dr(i,d,"formEncType",E.formEncType,E,null),Dr(i,d,"formMethod",E.formMethod,E,null),Dr(i,d,"formTarget",E.formTarget,E,null)):(Dr(i,d,"encType",E.encType,E,null),Dr(i,d,"method",E.method,E,null),Dr(i,d,"target",E.target,E,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=sl(""+g),i.setAttribute(p,g);break;case"onClick":g!=null&&(i.onclick=hy);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=sl(""+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),ge(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":ge(i,"is",g);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=yd.get(p)||p,ge(i,p,g))}}function zx(i,d,p,g,E,D){switch(p){case"style":il(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=hy);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"),d=p.slice(2,E?p.length-7:void 0),D=i[dt]||null,D=D!=null?D[p]:null,typeof D=="function"&&i.removeEventListener(d,D,E),typeof g=="function")){typeof D!="function"&&D!==null&&(p in i?i[p]=null:i.hasAttribute(p)&&i.removeAttribute(p)),i.addEventListener(d,g,E);break e}p in i?i[p]=g:g===!0?i.setAttribute(p,""):ge(i,p,g)}}}function Vo(i,d,p){switch(d){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,d));default:Dr(i,d,D,J,p,null)}}E&&Dr(i,d,"srcSet",p.srcSet,p,null),g&&Dr(i,d,"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 ft=p[g];if(ft!=null)switch(g){case"name":E=ft;break;case"type":J=ft;break;case"checked":xe=ft;break;case"defaultChecked":_e=ft;break;case"value":D=ft;break;case"defaultValue":re=ft;break;case"children":case"dangerouslySetInnerHTML":if(ft!=null)throw Error(r(137,d));break;default:Dr(i,d,g,ft,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,d,E,re,p,null)}d=D,p=J,i.multiple=!!g,d!=null?yi(i,!!g,d,!1):p!=null&&yi(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,d,J,re,p,null)}al(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,d,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<uh.length;g++)rr(uh[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,d));default:Dr(i,d,_e,g,p,null)}return;default:if(Jc(d)){for(ft in p)p.hasOwnProperty(ft)&&(g=p[ft],g!==void 0&&zx(i,d,ft,g,p,void 0));return}}for(re in p)p.hasOwnProperty(re)&&(g=p[re],g!=null&&Dr(i,d,re,g,p,null))}function zz(i,d,p,g){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,D=null,J=null,re=null,xe=null,_e=null,ft=null;for(Xe in p){var bt=p[Xe];if(p.hasOwnProperty(Xe)&&bt!=null)switch(Xe){case"checked":break;case"value":break;case"defaultValue":xe=bt;default:g.hasOwnProperty(Xe)||Dr(i,d,Xe,null,g,bt)}}for(var Ye in g){var Xe=g[Ye];if(bt=p[Ye],g.hasOwnProperty(Ye)&&(Xe!=null||bt!=null))switch(Ye){case"type":D=Xe;break;case"name":E=Xe;break;case"checked":_e=Xe;break;case"defaultChecked":ft=Xe;break;case"value":J=Xe;break;case"defaultValue":re=Xe;break;case"children":case"dangerouslySetInnerHTML":if(Xe!=null)throw Error(r(137,d));break;default:Xe!==bt&&Dr(i,d,Ye,Xe,g,bt)}}Ss(i,J,re,xe,_e,ft,D,E);return;case"select":Xe=J=re=Ye=null;for(D in p)if(xe=p[D],p.hasOwnProperty(D)&&xe!=null)switch(D){case"value":break;case"multiple":Xe=xe;default:g.hasOwnProperty(D)||Dr(i,d,D,null,g,xe)}for(E in g)if(D=g[E],xe=p[E],g.hasOwnProperty(E)&&(D!=null||xe!=null))switch(E){case"value":Ye=D;break;case"defaultValue":re=D;break;case"multiple":J=D;default:D!==xe&&Dr(i,d,E,D,g,xe)}d=re,p=J,g=Xe,Ye!=null?yi(i,!!p,Ye,!1):!!g!=!!p&&(d!=null?yi(i,!!p,d,!0):yi(i,!!p,p?[]:"",!1));return;case"textarea":Xe=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,d,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":Xe=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==D&&Dr(i,d,J,E,g,D)}Zc(i,Ye,Xe);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,d,Nn,null,g,Ye)}for(xe in g)if(Ye=g[xe],Xe=p[xe],g.hasOwnProperty(xe)&&Ye!==Xe&&(Ye!=null||Xe!=null))switch(xe){case"selected":i.selected=Ye&&typeof Ye!="function"&&typeof Ye!="symbol";break;default:Dr(i,d,xe,Ye,g,Xe)}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,d,$n,null,g,Ye);for(_e in g)if(Ye=g[_e],Xe=p[_e],g.hasOwnProperty(_e)&&Ye!==Xe&&(Ye!=null||Xe!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":if(Ye!=null)throw Error(r(137,d));break;default:Dr(i,d,_e,Ye,g,Xe)}return;default:if(Jc(d)){for(var Ar in p)Ye=p[Ar],p.hasOwnProperty(Ar)&&Ye!==void 0&&!g.hasOwnProperty(Ar)&&zx(i,d,Ar,void 0,g,Ye);for(ft in g)Ye=g[ft],Xe=p[ft],!g.hasOwnProperty(ft)||Ye===Xe||Ye===void 0&&Xe===void 0||zx(i,d,ft,Ye,g,Xe);return}}for(var Ie in p)Ye=p[Ie],p.hasOwnProperty(Ie)&&Ye!=null&&!g.hasOwnProperty(Ie)&&Dr(i,d,Ie,null,g,Ye);for(bt in g)Ye=g[bt],Xe=p[bt],!g.hasOwnProperty(bt)||Ye===Xe||Ye==null&&Xe==null||Dr(i,d,bt,Ye,g,Xe)}var Fx=null,Bx=null;function my(i){return i.nodeType===9?i:i.ownerDocument}function cE(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 uE(i,d){if(i===0)switch(d){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&d==="foreignObject"?0:i}function Ux(i,d){return i==="textarea"||i==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.children=="bigint"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var _x=null;function Fz(){var i=window.event;return i&&i.type==="popstate"?i===_x?!1:(_x=i,!0):(_x=null,!1)}var dE=typeof setTimeout=="function"?setTimeout:void 0,Bz=typeof clearTimeout=="function"?clearTimeout:void 0,fE=typeof Promise=="function"?Promise:void 0,Uz=typeof queueMicrotask=="function"?queueMicrotask:typeof fE<"u"?function(i){return fE.resolve(null).then(i).catch(_z)}:dE;function _z(i){setTimeout(function(){throw i})}function pc(i){return i==="head"}function pE(i,d){var p=d,g=0,E=0;do{var D=p.nextSibling;if(i.removeChild(p),D&&D.nodeType===8)if(p=D.data,p==="/$"){if(0<g&&8>g){p=g;var J=i.ownerDocument;if(p&1&&fh(J.documentElement),p&2&&fh(J.body),p&4)for(p=J.head,fh(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),xh(d);return}E--}else p==="$"||p==="$?"||p==="$!"?E++:g=p.charCodeAt(0)-48;else g=0;p=D}while(p);xh(d)}function Vx(i){var d=i.firstChild;for(d&&d.nodeType===10&&(d=d.nextSibling);d;){var p=d;switch(d=d.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":Vx(p),wt(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}i.removeChild(p)}}function Vz(i,d,p,g){for(;i.nodeType===1;){var E=p;if(i.nodeName.toLowerCase()!==d.toLowerCase()){if(!g&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(g){if(!i[Et])switch(d){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(D=i.getAttribute("rel"),D==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(D!==E.rel||i.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||i.getAttribute("title")!==(E.title==null?null:E.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(D=i.getAttribute("src"),(D!==(E.src==null?null:E.src)||i.getAttribute("type")!==(E.type==null?null:E.type)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&D&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(d==="input"&&i.type==="hidden"){var D=E.name==null?null:""+E.name;if(E.type==="hidden"&&i.getAttribute("name")===D)return i}else return i;if(i=is(i.nextSibling),i===null)break}return null}function Hz(i,d,p){if(d==="")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 Hx(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function Wz(i,d){var p=i.ownerDocument;if(i.data!=="$?"||p.readyState==="complete")d();else{var g=function(){d(),p.removeEventListener("DOMContentLoaded",g)};p.addEventListener("DOMContentLoaded",g),i._reactRetry=g}}function is(i){for(;i!=null;i=i.nextSibling){var d=i.nodeType;if(d===1||d===3)break;if(d===8){if(d=i.data,d==="$"||d==="$!"||d==="$?"||d==="F!"||d==="F")break;if(d==="/$")return null}}return i}var Wx=null;function hE(i){i=i.previousSibling;for(var d=0;i;){if(i.nodeType===8){var p=i.data;if(p==="$"||p==="$!"||p==="$?"){if(d===0)return i;d--}else p==="/$"&&d++}i=i.previousSibling}return null}function mE(i,d,p){switch(d=my(p),i){case"html":if(i=d.documentElement,!i)throw Error(r(452));return i;case"head":if(i=d.head,!i)throw Error(r(453));return i;case"body":if(i=d.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function fh(i){for(var d=i.attributes;d.length;)i.removeAttributeNode(d[0]);wt(i)}var Mi=new Map,gE=new Set;function gy(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Tl=Z.d;Z.d={f:qz,r:Yz,D:Gz,C:Kz,L:Qz,m:Xz,X:Jz,S:Zz,M:e5};function qz(){var i=Tl.f(),d=sy();return i||d}function Yz(i){var d=On(i);d!==null&&d.tag===5&&d.type==="form"?IT(d):Tl.r(i)}var of=typeof document>"u"?null:document;function yE(i,d,p){var g=of;if(g&&typeof d=="string"&&d){var E=Mo(d);E='link[rel="'+i+'"][href="'+E+'"]',typeof p=="string"&&(E+='[crossorigin="'+p+'"]'),gE.has(E)||(gE.add(E),i={rel:i,crossOrigin:p,href:d},g.querySelector(E)===null&&(d=g.createElement("link"),Vo(d,"link",i),fn(d),g.head.appendChild(d)))}}function Gz(i){Tl.D(i),yE("dns-prefetch",i,null)}function Kz(i,d){Tl.C(i,d),yE("preconnect",i,d)}function Qz(i,d,p){Tl.L(i,d,p);var g=of;if(g&&i&&d){var E='link[rel="preload"][as="'+Mo(d)+'"]';d==="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(d){case"style":D=af(i);break;case"script":D=sf(i)}Mi.has(D)||(i=c({rel:"preload",href:d==="image"&&p&&p.imageSrcSet?void 0:i,as:d},p),Mi.set(D,i),g.querySelector(E)!==null||d==="style"&&g.querySelector(ph(D))||d==="script"&&g.querySelector(hh(D))||(d=g.createElement("link"),Vo(d,"link",i),fn(d),g.head.appendChild(d)))}}function Xz(i,d){Tl.m(i,d);var p=of;if(p&&i){var g=d&&typeof d.as=="string"?d.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(!Mi.has(D)&&(i=c({rel:"modulepreload",href:i},d),Mi.set(D,i),p.querySelector(E)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(hh(D)))return}g=p.createElement("link"),Vo(g,"link",i),fn(g),p.head.appendChild(g)}}}function Zz(i,d,p){Tl.S(i,d,p);var g=of;if(g&&i){var E=bn(g).hoistableStyles,D=af(i);d=d||"default";var J=E.get(D);if(!J){var re={loading:0,preload:null};if(J=g.querySelector(ph(D)))re.loading=5;else{i=c({rel:"stylesheet",href:i,"data-precedence":d},p),(p=Mi.get(D))&&qx(i,p);var xe=J=g.createElement("link");fn(xe),Vo(xe,"link",i),xe._p=new Promise(function(_e,ft){xe.onload=_e,xe.onerror=ft}),xe.addEventListener("load",function(){re.loading|=1}),xe.addEventListener("error",function(){re.loading|=2}),re.loading|=4,yy(J,d,g)}J={type:"stylesheet",instance:J,count:1,state:re},E.set(D,J)}}}function Jz(i,d){Tl.X(i,d);var p=of;if(p&&i){var g=bn(p).hoistableScripts,E=sf(i),D=g.get(E);D||(D=p.querySelector(hh(E)),D||(i=c({src:i,async:!0},d),(d=Mi.get(E))&&Yx(i,d),D=p.createElement("script"),fn(D),Vo(D,"link",i),p.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},g.set(E,D))}}function e5(i,d){Tl.M(i,d);var p=of;if(p&&i){var g=bn(p).hoistableScripts,E=sf(i),D=g.get(E);D||(D=p.querySelector(hh(E)),D||(i=c({src:i,async:!0,type:"module"},d),(d=Mi.get(E))&&Yx(i,d),D=p.createElement("script"),fn(D),Vo(D,"link",i),p.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},g.set(E,D))}}function vE(i,d,p,g){var E=(E=ae.current)?gy(E):null;if(!E)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(d=af(p.href),p=bn(E).hoistableStyles,g=p.get(d),g||(g={type:"style",instance:null,count:0,state:null},p.set(d,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){i=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(ph(i)))&&!D._p&&(J.instance=D,J.state.loading=5),Mi.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},Mi.set(i,p),D||t5(E,i,p,J.state))),d&&g===null)throw Error(r(528,""));return J}if(d&&g!==null)throw Error(r(529,""));return null;case"script":return d=p.async,p=p.src,typeof p=="string"&&d&&typeof d!="function"&&typeof d!="symbol"?(d=sf(p),p=bn(E).hoistableScripts,g=p.get(d),g||(g={type:"script",instance:null,count:0,state:null},p.set(d,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function af(i){return'href="'+Mo(i)+'"'}function ph(i){return'link[rel="stylesheet"]['+i+"]"}function bE(i){return c({},i,{"data-precedence":i.precedence,precedence:null})}function t5(i,d,p,g){i.querySelector('link[rel="preload"][as="style"]['+d+"]")?g.loading=1:(d=i.createElement("link"),g.preload=d,d.addEventListener("load",function(){return g.loading|=1}),d.addEventListener("error",function(){return g.loading|=2}),Vo(d,"link",p),fn(d),i.head.appendChild(d))}function sf(i){return'[src="'+Mo(i)+'"]'}function hh(i){return"script[async]"+i}function xE(i,d,p){if(d.count++,d.instance===null)switch(d.type){case"style":var g=i.querySelector('style[data-href~="'+Mo(p.href)+'"]');if(g)return d.instance=g,fn(g),g;var E=c({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return g=(i.ownerDocument||i).createElement("style"),fn(g),Vo(g,"style",E),yy(g,p.precedence,i),d.instance=g;case"stylesheet":E=af(p.href);var D=i.querySelector(ph(E));if(D)return d.state.loading|=4,d.instance=D,fn(D),D;g=bE(p),(E=Mi.get(E))&&qx(g,E),D=(i.ownerDocument||i).createElement("link"),fn(D);var J=D;return J._p=new Promise(function(re,xe){J.onload=re,J.onerror=xe}),Vo(D,"link",g),d.state.loading|=4,yy(D,p.precedence,i),d.instance=D;case"script":return D=sf(p.src),(E=i.querySelector(hh(D)))?(d.instance=E,fn(E),E):(g=p,(E=Mi.get(D))&&(g=c({},p),Yx(g,E)),i=i.ownerDocument||i,E=i.createElement("script"),fn(E),Vo(E,"link",g),i.head.appendChild(E),d.instance=E);case"void":return null;default:throw Error(r(443,d.type))}else d.type==="stylesheet"&&(d.state.loading&4)===0&&(g=d.instance,d.state.loading|=4,yy(g,p.precedence,i));return d.instance}function yy(i,d,p){for(var g=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=g.length?g[g.length-1]:null,D=E,J=0;J<g.length;J++){var re=g[J];if(re.dataset.precedence===d)D=re;else if(D!==E)break}D?D.parentNode.insertBefore(i,D.nextSibling):(d=p.nodeType===9?p.head:p,d.insertBefore(i,d.firstChild))}function qx(i,d){i.crossOrigin==null&&(i.crossOrigin=d.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=d.referrerPolicy),i.title==null&&(i.title=d.title)}function Yx(i,d){i.crossOrigin==null&&(i.crossOrigin=d.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=d.referrerPolicy),i.integrity==null&&(i.integrity=d.integrity)}var vy=null;function SE(i,d,p){if(vy===null){var g=new Map,E=vy=new Map;E.set(p,g)}else E=vy,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(d)||"";J=i+J;var re=g.get(J);re?re.push(D):g.set(J,[D])}}return g}function wE(i,d,p){i=i.ownerDocument||i,i.head.insertBefore(p,d==="title"?i.querySelector("head > title"):null)}function n5(i,d,p){if(p===1||d.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof d.precedence!="string"||typeof d.href!="string"||d.href==="")break;return!0;case"link":if(typeof d.rel!="string"||typeof d.href!="string"||d.href===""||d.onLoad||d.onError)break;switch(d.rel){case"stylesheet":return i=d.disabled,typeof d.precedence=="string"&&i==null;default:return!0}case"script":if(d.async&&typeof d.async!="function"&&typeof d.async!="symbol"&&!d.onLoad&&!d.onError&&d.src&&typeof d.src=="string")return!0}return!1}function CE(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var mh=null;function r5(){}function o5(i,d,p){if(mh===null)throw Error(r(475));var g=mh;if(d.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var E=af(p.href),D=i.querySelector(ph(E));if(D){i=D._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(g.count++,g=by.bind(g),i.then(g,g)),d.state.loading|=4,d.instance=D,fn(D);return}D=i.ownerDocument||i,p=bE(p),(E=Mi.get(E))&&qx(p,E),D=D.createElement("link"),fn(D);var J=D;J._p=new Promise(function(re,xe){J.onload=re,J.onerror=xe}),Vo(D,"link",p),d.instance=D}g.stylesheets===null&&(g.stylesheets=new Map),g.stylesheets.set(d,i),(i=d.state.preload)&&(d.state.loading&3)===0&&(g.count++,d=by.bind(g),i.addEventListener("load",d),i.addEventListener("error",d))}}function a5(){if(mh===null)throw Error(r(475));var i=mh;return i.stylesheets&&i.count===0&&Gx(i,i.stylesheets),0<i.count?function(d){var p=setTimeout(function(){if(i.stylesheets&&Gx(i,i.stylesheets),i.unsuspend){var g=i.unsuspend;i.unsuspend=null,g()}},6e4);return i.unsuspend=d,function(){i.unsuspend=null,clearTimeout(p)}}:null}function by(){if(this.count--,this.count===0){if(this.stylesheets)Gx(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var xy=null;function Gx(i,d){i.stylesheets=null,i.unsuspend!==null&&(i.count++,xy=new Map,d.forEach(i5,i),xy=null,by.call(i))}function i5(i,d){if(!(d.state.loading&4)){var p=xy.get(i);if(p)var g=p.get(null);else{p=new Map,xy.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=d.instance,J=E.getAttribute("data-precedence"),D=p.get(J)||g,D===g&&p.set(null,E),p.set(J,E),this.count++,g=by.bind(this),E.addEventListener("load",g),E.addEventListener("error",g),D?D.parentNode.insertBefore(E,D.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(E,i.firstChild)),d.state.loading|=4}}var gh={$$typeof:T,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function s5(i,d,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 kE(i,d,p,g,E,D,J,re,xe,_e,ft,bt){return i=new s5(i,d,p,J,re,xe,_e,bt),d=1,D===!0&&(d|=24),D=Bo(3,null,null,d),i.current=D,D.stateNode=i,d=R0(),d.refCount++,i.pooledCache=d,d.refCount++,D.memoizedState={element:g,isDehydrated:p,cache:d},A0(D),i}function TE(i){return i?(i=Ha,i):Ha}function ME(i,d,p,g,E,D){E=TE(E),g.context===null?g.context=E:g.pendingContext=E,g=ec(d),g.payload={element:p},D=D===void 0?null:D,D!==null&&(g.callback=D),p=tc(i,g,d),p!==null&&(Za(p,i,d),qp(p,i,d))}function EE(i,d){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<d?p:d}}function Kx(i,d){EE(i,d),(i=i.alternate)&&EE(i,d)}function OE(i){if(i.tag===13){var d=rs(i,67108864);d!==null&&Za(d,i,67108864),Kx(i,67108864)}}var Sy=!0;function l5(i,d,p,g){var E=A.T;A.T=null;var D=Z.p;try{Z.p=2,Qx(i,d,p,g)}finally{Z.p=D,A.T=E}}function c5(i,d,p,g){var E=A.T;A.T=null;var D=Z.p;try{Z.p=8,Qx(i,d,p,g)}finally{Z.p=D,A.T=E}}function Qx(i,d,p,g){if(Sy){var E=Xx(g);if(E===null)Lx(i,d,g,wy,p),$E(i,g);else if(d5(E,i,d,p,g))g.stopPropagation();else if($E(i,g),d&4&&-1<u5.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=ut(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&&(ay=Ne()+500,ch(0))}}break;case 13:re=rs(D,2),re!==null&&Za(re,D,2),sy(),Kx(D,2)}if(D=Xx(g),D===null&&Lx(i,d,g,wy,p),D===E)break;E=D}E!==null&&g.stopPropagation()}else Lx(i,d,g,null,p)}}function Xx(i){return i=ql(i),Zx(i)}var wy=null;function Zx(i){if(wy=null,i=Wt(i),i!==null){var d=a(i);if(d===null)i=null;else{var p=d.tag;if(p===13){if(i=s(d),i!==null)return i;i=null}else if(p===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;i=null}else d!==i&&(i=null)}}return wy=i,null}function RE(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(le()){case xt:return 2;case Fe:return 8;case it:case ct:return 32;case Ft:return 268435456;default:return 32}default:return 32}}var Jx=!1,hc=null,mc=null,gc=null,yh=new Map,vh=new Map,yc=[],u5="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 $E(i,d){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":yh.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":vh.delete(d.pointerId)}}function bh(i,d,p,g,E,D){return i===null||i.nativeEvent!==D?(i={blockedOn:d,domEventName:p,eventSystemFlags:g,nativeEvent:D,targetContainers:[E]},d!==null&&(d=On(d),d!==null&&OE(d)),i):(i.eventSystemFlags|=g,d=i.targetContainers,E!==null&&d.indexOf(E)===-1&&d.push(E),i)}function d5(i,d,p,g,E){switch(d){case"focusin":return hc=bh(hc,i,d,p,g,E),!0;case"dragenter":return mc=bh(mc,i,d,p,g,E),!0;case"mouseover":return gc=bh(gc,i,d,p,g,E),!0;case"pointerover":var D=E.pointerId;return yh.set(D,bh(yh.get(D)||null,i,d,p,g,E)),!0;case"gotpointercapture":return D=E.pointerId,vh.set(D,bh(vh.get(D)||null,i,d,p,g,E)),!0}return!1}function PE(i){var d=Wt(i.target);if(d!==null){var p=a(d);if(p!==null){if(d=p.tag,d===13){if(d=s(p),d!==null){i.blockedOn=d,Pe(i.priority,function(){if(p.tag===13){var g=Xa();g=En(g);var E=rs(p,g);E!==null&&Za(E,p,g),Kx(p,g)}});return}}else if(d===3&&p.stateNode.current.memoizedState.isDehydrated){i.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Cy(i){if(i.blockedOn!==null)return!1;for(var d=i.targetContainers;0<d.length;){var p=Xx(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 d=On(p),d!==null&&OE(d),i.blockedOn=p,!1;d.shift()}return!0}function DE(i,d,p){Cy(i)&&p.delete(d)}function f5(){Jx=!1,hc!==null&&Cy(hc)&&(hc=null),mc!==null&&Cy(mc)&&(mc=null),gc!==null&&Cy(gc)&&(gc=null),yh.forEach(DE),vh.forEach(DE)}function ky(i,d){i.blockedOn===d&&(i.blockedOn=null,Jx||(Jx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,f5)))}var Ty=null;function AE(i){Ty!==i&&(Ty=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ty===i&&(Ty=null);for(var d=0;d<i.length;d+=3){var p=i[d],g=i[d+1],E=i[d+2];if(typeof g!="function"){if(Zx(g||p)===null)continue;break}var D=On(p);D!==null&&(i.splice(d,3),d-=3,Z0(D,{pending:!0,data:E,method:p.method,action:g},g,E))}}))}function xh(i){function d(xe){return ky(xe,i)}hc!==null&&ky(hc,i),mc!==null&&ky(mc,i),gc!==null&&ky(gc,i),yh.forEach(d),vh.forEach(d);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);)PE(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[dt]||null;if(typeof D=="function")J||AE(p);else if(J){var re=null;if(D&&D.hasAttribute("formAction")){if(E=D,J=D[dt]||null)re=J.formAction;else if(Zx(E)!==null)continue}else re=J.action;typeof re=="function"?p[g+1]=re:(p.splice(g,3),g-=3),AE(p)}}}function e1(i){this._internalRoot=i}My.prototype.render=e1.prototype.render=function(i){var d=this._internalRoot;if(d===null)throw Error(r(409));var p=d.current,g=Xa();ME(p,g,i,d,null,null)},My.prototype.unmount=e1.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var d=i.containerInfo;ME(i.current,2,null,i,null,null),sy(),d[It]=null}};function My(i){this._internalRoot=i}My.prototype.unstable_scheduleHydration=function(i){if(i){var d=se();i={blockedOn:null,target:i,priority:d};for(var p=0;p<yc.length&&d!==0&&d<yc[p].priority;p++);yc.splice(p,0,i),p===0&&PE(i)}};var jE=t.version;if(jE!=="19.1.1")throw Error(r(527,jE,"19.1.1"));Z.findDOMNode=function(i){var d=i._reactInternals;if(d===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=u(d),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var p5={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ey=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ey.isDisabled&&Ey.supportsFiber)try{Ze=Ey.inject(p5),rt=Ey}catch{}}return wh.createRoot=function(i,d){if(!o(i))throw Error(r(299));var p=!1,g="",E=QT,D=XT,J=ZT,re=null;return d!=null&&(d.unstable_strictMode===!0&&(p=!0),d.identifierPrefix!==void 0&&(g=d.identifierPrefix),d.onUncaughtError!==void 0&&(E=d.onUncaughtError),d.onCaughtError!==void 0&&(D=d.onCaughtError),d.onRecoverableError!==void 0&&(J=d.onRecoverableError),d.unstable_transitionCallbacks!==void 0&&(re=d.unstable_transitionCallbacks)),d=kE(i,1,!1,null,null,p,g,E,D,J,re,null),i[It]=d.current,Ix(i),new e1(d)},wh.hydrateRoot=function(i,d,p){if(!o(i))throw Error(r(299));var g=!1,E="",D=QT,J=XT,re=ZT,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)),d=kE(i,1,!0,d,p??null,g,E,D,J,re,xe,_e),d.context=TE(null),p=d.current,g=Xa(),g=En(g),E=ec(g),E.callback=null,tc(p,E,g),p=g,d.current.lanes=p,Qt(d,p),As(d),i[It]=d.current,Ix(i),new My(d)},wh.version="19.1.1",wh}var HE;function C5(){if(HE)return r1.exports;HE=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(),r1.exports=w5(),r1.exports}var k5=C5();/**
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 jD=e=>{throw TypeError(e)},T5=(e,t,n)=>t.has(e)||jD("Cannot "+n),s1=(e,t,n)=>(T5(e,t,"read from private field"),n?n.call(e):t.get(e)),M5=(e,t,n)=>t.has(e)?jD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),WE="popstate";function E5(e={}){function t(r,o){let{pathname:a,search:s,hash:l}=r.location;return Am("",{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 R5(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 O5(){return Math.random().toString(36).substring(2,10)}function qE(e,t){return{usr:e.state,key:e.key,idx:t}}function Am(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||O5()}}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 R5(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,l="POP",u=null,f=c();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function c(){return(s.state||{idx:null}).idx}function h(){l="POP";let w=c(),S=w==null?null:w-f;f=w,u&&u({action:l,location:x.location,delta:S})}function y(w,S){l="PUSH";let M=Am(x.location,w,S);f=c()+1;let T=qE(M,f),R=x.createHref(M);try{s.pushState(T,"",R)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(R)}a&&u&&u({action:l,location:x.location,delta:1})}function b(w,S){l="REPLACE";let M=Am(x.location,w,S);f=c();let T=qE(M,f),R=x.createHref(M);s.replaceState(T,"",R),a&&u&&u({action:l,location:x.location,delta:0})}function v(w){return ND(w)}let x={get action(){return l},get location(){return e(o,s)},listen(w){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(WE,h),u=w,()=>{o.removeEventListener(WE,h),u=null}},createHref(w){return t(o,w)},createURL:v,encodeLocation(w){let S=v(w);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:y,replace:b,go(w){return s.go(w)}};return x}function ND(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 sm,YE=class{constructor(e){if(M5(this,sm,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(s1(this,sm).has(e))return s1(this,sm).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){s1(this,sm).set(e,t)}};sm=new WeakMap;var $5=new Set(["lazy","caseSensitive","path","id","index","children"]);function P5(e){return $5.has(e)}var D5=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function A5(e){return D5.has(e)}function j5(e){return e.index===!0}function jm(e,t,n=[],r={},o=!1){return e.map((a,s)=>{let l=[...n,String(s)],u=typeof a.id=="string"?a.id:l.join("-");if(er(a.index!==!0||!a.children,"Cannot specify children on an index route"),er(o||!r[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),j5(a)){let f={...a,...t(a),id:u};return r[u]=f,f}else{let f={...a,...t(a),id:u,children:void 0};return r[u]=f,a.children&&(f.children=jm(a.children,t,l,r,o)),f}})}function Tc(e,t,n="/"){return cv(e,t,n,!1)}function cv(e,t,n,r){let o=typeof t=="string"?_c(t):t,a=Fi(o.pathname||"/",n);if(a==null)return null;let s=ID(e);I5(s);let l=null;for(let u=0;l==null&&u<s.length;++u){let f=Y5(a);l=W5(s[u],f,r)}return l}function N5(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 ID(e,t=[],n=[],r="",o=!1){let a=(s,l,u=o,f)=>{let c={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&u)return;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 h=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 "${h}".`),ID(s.children,t,y,h,u)),!(s.path==null&&!s.index)&&t.push({path:h,score:V5(h,s.index),routesMeta:y})};return e.forEach((s,l)=>{if(s.path===""||!s.path?.includes("?"))a(s,l);else for(let u of LD(s.path))a(s,l,!0,u)}),t}function LD(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=LD(r.join("/")),l=[];return l.push(...s.map(u=>u===""?a:[a,u].join("/"))),o&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function I5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:H5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var L5=/^:[\w-]+$/,z5=3,F5=2,B5=1,U5=10,_5=-2,GE=e=>e==="*";function V5(e,t){let n=e.split("/"),r=n.length;return n.some(GE)&&(r+=_5),t&&(r+=F5),n.filter(o=>!GE(o)).reduce((o,a)=>o+(L5.test(a)?z5:a===""?B5:U5),r)}function H5(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 W5(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",s=[];for(let l=0;l<r.length;++l){let u=r[l],f=l===r.length-1,c=a==="/"?t:t.slice(a.length)||"/",h=Pv({path:u.relativePath,caseSensitive:u.caseSensitive,end:f},c),y=u.route;if(!h&&f&&n&&!r[r.length-1].route.index&&(h=Pv({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},c)),!h)return null;Object.assign(o,h.params),s.push({params:o,pathname:qs([a,h.pathname]),pathnameBase:X5(qs([a,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(a=qs([a,h.pathnameBase]))}return s}function Pv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=q5(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:h},y)=>{if(c==="*"){let v=l[y]||"";s=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const b=l[y];return h&&!b?f[c]=void 0:f[c]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:s,pattern:e}}function q5(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,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Y5(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 Fi(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 G5({basename:e,pathname:t}){return t==="/"?e:qs([e,t])}function K5(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?_c(e):e;return{pathname:n?n.startsWith("/")?n:Q5(n,t):t,search:Z5(r),hash:J5(o)}}function Q5(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 l1(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 zD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fb(e){let t=zD(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function pb(e,t,n,r=!1){let o;typeof e=="string"?o=_c(e):(o={...e},er(!o.pathname||!o.pathname.includes("?"),l1("?","pathname","search",o)),er(!o.pathname||!o.pathname.includes("#"),l1("#","pathname","hash",o)),er(!o.search||!o.search.includes("#"),l1("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,l;if(s==null)l=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),h-=1;o.pathname=y.join("/")}l=h>=0?t[h]:"/"}let u=K5(o,l),f=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(f||c)&&(u.pathname+="/"),u}var qs=e=>e.join("/").replace(/\/\/+/g,"/"),X5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Z5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,J5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Dv=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 Nm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var FD=["POST","PUT","PATCH","DELETE"],eF=new Set(FD),tF=["GET",...FD],nF=new Set(tF),rF=new Set([301,302,303,307,308]),oF=new Set([307,308]),c1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},aF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ch={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},iF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Iw=e=>iF.test(e),sF=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),BD="remix-router-transitions",UD=Symbol("ResetLoaderData");function lF(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||sF,a={},s=jm(e.routes,o,void 0,a),l,u=e.basename||"/";u.startsWith("/")||(u=`/${u}`);let f=e.dataStrategy||pF,c={...e.future},h=null,y=new Set,b=null,v=null,x=null,w=e.hydrationData!=null,S=Tc(s,e.history.location,u),M=!1,T=null,R;if(S==null&&!e.patchRoutesOnNavigation){let se=$i(404,{pathname:e.history.location.pathname}),{matches:Pe,route:Le}=Oy(s);R=!0,S=Pe,T={[Le.id]:se}}else if(S&&!e.hydrationData&&be(S,s,e.history.location.pathname).active&&(S=null),S)if(S.some(se=>se.route.lazy))R=!1;else if(!S.some(se=>se.route.loader))R=!0;else{let se=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=>!cS(qe.route,se,Pe))}else R=S.every(Le=>!cS(Le.route,se,Pe))}else{R=!1,S=[];let se=be(null,s,e.history.location.pathname);se.active&&se.matches&&(M=!0,S=se.matches)}let $,P={historyAction:e.history.action,location:e.history.location,matches:S,initialized:R,navigation:c1,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||T,fetchers:new Map,blockers:new Map},N="POP",V=!1,F,W=!1,_=new Map,k=null,I=!1,z=!1,H=new Set,A=new Map,Z=0,K=-1,te=new Map,X=new Set,Q=new Map,ne=new Map,ie=new Set,pe=new Map,oe,ae=null;function ce(){if(h=e.history.listen(({action:se,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=dn({currentLocation:P.location,nextLocation:Pe,historyAction:se});if(qe&&Le!=null){let dt=new Promise(It=>{oe=It});e.history.go(Le*-1),Vt(qe,{state:"blocked",location:Pe,proceed(){Vt(qe,{state:"proceeding",proceed:void 0,reset:void 0,location:Pe}),dt.then(()=>e.history.go(Le))},reset(){let It=new Map(P.blockers);It.set(qe,Ch),we({blockers:It})}});return}return ke(se,Pe)}),n){OF(t,_);let se=()=>RF(t,_);t.addEventListener("pagehide",se),k=()=>t.removeEventListener("pagehide",se)}return P.initialized||ke("POP",P.location,{initialHydration:!0}),$}function me(){h&&h(),k&&k(),y.clear(),F&&F.abort(),P.fetchers.forEach((se,Pe)=>he(Pe)),P.blockers.forEach((se,Pe)=>$t(Pe))}function ye(se){return y.add(se),()=>y.delete(se)}function we(se,Pe={}){se.matches&&(se.matches=se.matches.map(dt=>{let It=a[dt.route.id],Bt=dt.route;return Bt.element!==It.element||Bt.errorElement!==It.errorElement||Bt.hydrateFallbackElement!==It.hydrateFallbackElement?{...dt,route:It}:dt})),P={...P,...se};let Le=[],qe=[];P.fetchers.forEach((dt,It)=>{dt.state==="idle"&&(ie.has(It)?Le.push(It):qe.push(It))}),ie.forEach(dt=>{!P.fetchers.has(dt)&&!A.has(dt)&&Le.push(dt)}),[...y].forEach(dt=>dt(P,{deletedFetchers:Le,viewTransitionOpts:Pe.viewTransitionOpts,flushSync:Pe.flushSync===!0})),Le.forEach(dt=>he(dt)),qe.forEach(dt=>P.fetchers.delete(dt))}function Ce(se,Pe,{flushSync:Le}={}){let qe=P.actionData!=null&&P.navigation.formMethod!=null&&Ta(P.navigation.formMethod)&&P.navigation.state==="loading"&&se.state?._isRedirect!==!0,dt;Pe.actionData?Object.keys(Pe.actionData).length>0?dt=Pe.actionData:dt=null:qe?dt=P.actionData:dt=null;let It=Pe.loaderData?oO(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,Ch)));let Dt=I?!1:In(se,Pe.matches||P.matches),mt=V===!0||P.navigation.formMethod!=null&&Ta(P.navigation.formMethod)&&se.state?._isRedirect!==!0;l&&(s=l,l=void 0),I||N==="POP"||(N==="PUSH"?e.history.push(se,se.state):N==="REPLACE"&&e.history.replace(se,se.state));let At;if(N==="POP"){let Et=_.get(P.location.pathname);Et&&Et.has(se.pathname)?At={currentLocation:P.location,nextLocation:se}:_.has(se.pathname)&&(At={currentLocation:se,nextLocation:P.location})}else if(W){let Et=_.get(P.location.pathname);Et?Et.add(se.pathname):(Et=new Set([se.pathname]),_.set(P.location.pathname,Et)),At={currentLocation:P.location,nextLocation:se}}we({...Pe,actionData:dt,loaderData:It,historyAction:N,location:se,initialized:!0,navigation:c1,revalidation:"idle",restoreScrollPosition:Dt,preventScrollReset:mt,blockers:Bt},{viewTransitionOpts:At,flushSync:Le===!0}),N="POP",V=!1,W=!1,I=!1,z=!1,ae?.resolve(),ae=null}async function Te(se,Pe){if(typeof se=="number"){e.history.go(se);return}let Le=lS(P.location,P.matches,u,se,Pe?.fromRouteId,Pe?.relative),{path:qe,submission:dt,error:It}=KE(!1,Le,Pe),Bt=P.location,Dt=Am(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||dt!=null&&Ta(dt.formMethod)&&dt.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,Wt=dn({currentLocation:Bt,nextLocation:Dt,historyAction:At});if(Wt){Vt(Wt,{state:"blocked",location:Dt,proceed(){Vt(Wt,{state:"proceeding",proceed:void 0,reset:void 0,location:Dt}),Te(se,Pe)},reset(){let On=new Map(P.blockers);On.set(Wt,Ch),we({blockers:On})}});return}await ke(At,Dt,{submission:dt,pendingError:It,preventScrollReset:Et,replace:Pe&&Pe.replace,enableViewTransition:Pe&&Pe.viewTransition,flushSync:wt})}function ue(){ae||(ae=$F()),at(),we({revalidation:"loading"});let se=ae.promise;return P.navigation.state==="submitting"?se:P.navigation.state==="idle"?(ke(P.historyAction,P.location,{startUninterruptedRevalidation:!0}),se):(ke(N||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation,enableViewTransition:W===!0}),se)}async function ke(se,Pe,Le){F&&F.abort(),F=null,N=se,I=(Le&&Le.startUninterruptedRevalidation)===!0,Qt(P.location,P.matches),V=(Le&&Le.preventScrollReset)===!0,W=(Le&&Le.enableViewTransition)===!0;let qe=l||s,dt=Le&&Le.overrideNavigation,It=Le?.initialHydration&&P.matches&&P.matches.length>0&&!M?P.matches:Tc(qe,Pe,u),Bt=(Le&&Le.flushSync)===!0;if(It&&P.initialized&&!z&&SF(P.location,Pe)&&!(Le&&Le.submission&&Ta(Le.submission.formMethod))){Ce(Pe,{matches:It},{flushSync:Bt});return}let Dt=be(It,qe,Pe.pathname);if(Dt.active&&Dt.matches&&(It=Dt.matches),!It){let{error:bn,notFoundMatches:fn,route:de}=vn(Pe.pathname);Ce(Pe,{matches:fn,loaderData:{},errors:{[de.id]:bn}},{flushSync:Bt});return}F=new AbortController;let mt=Tf(e.history,Pe,F.signal,Le&&Le.submission),At=e.getContext?await e.getContext():new YE,Et;if(Le&&Le.pendingError)Et=[Mc(It).route.id,{type:"error",error:Le.pendingError}];else if(Le&&Le.submission&&Ta(Le.submission.formMethod)){let bn=await Ge(mt,Pe,Le.submission,It,At,Dt.active,Le&&Le.initialHydration===!0,{replace:Le.replace,flushSync:Bt});if(bn.shortCircuited)return;if(bn.pendingActionResult){let[fn,de]=bn.pendingActionResult;if(ti(de)&&Nm(de.error)&&de.error.status===404){F=null,Ce(Pe,{matches:bn.matches,loaderData:{},errors:{[fn]:de.error}});return}}It=bn.matches||It,Et=bn.pendingActionResult,dt=u1(Pe,Le.submission),Bt=!1,Dt.active=!1,mt=Tf(e.history,mt.url,mt.signal)}let{shortCircuited:wt,matches:Wt,loaderData:On,errors:qn}=await ze(mt,Pe,It,At,Dt.active,dt,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Bt,Et);wt||(F=null,Ce(Pe,{matches:Wt||It,...aO(Et),loaderData:On,errors:qn}))}async function Ge(se,Pe,Le,qe,dt,It,Bt,Dt={}){at();let mt=MF(Pe,Le);if(we({navigation:mt},{flushSync:Dt.flushSync===!0}),It){let wt=await zn(qe,Pe.pathname,se.signal);if(wt.type==="aborted")return{shortCircuited:!0};if(wt.type==="error"){if(wt.partialMatches.length===0){let{matches:On,route:qn}=Oy(s);return{matches:On,pendingActionResult:[qn.id,{type:"error",error:wt.error}]}}let Wt=Mc(wt.partialMatches).route.id;return{matches:wt.partialMatches,pendingActionResult:[Wt,{type:"error",error:wt.error}]}}else if(wt.matches)qe=wt.matches;else{let{notFoundMatches:Wt,error:On,route:qn}=vn(Pe.pathname);return{matches:Wt,pendingActionResult:[qn.id,{type:"error",error:On}]}}}let At,Et=uv(qe,Pe);if(!Et.route.action&&!Et.route.lazy)At={type:"error",error:$i(405,{method:se.method,pathname:Pe.pathname,routeId:Et.route.id})};else{let wt=Nf(o,a,se,qe,Et,Bt?[]:r,dt),Wt=await Ft(se,wt,dt,null);if(At=Wt[Et.route.id],!At){for(let On of qe)if(Wt[On.route.id]){At=Wt[On.route.id];break}}if(se.signal.aborted)return{shortCircuited:!0}}if(Lu(At)){let wt;return Dt&&Dt.replace!=null?wt=Dt.replace:wt=tO(At.response.headers.get("Location"),new URL(se.url),u)===P.location.pathname+P.location.search,await ct(se,At,!0,{submission:Le,replace:wt}),{shortCircuited:!0}}if(ti(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(se,Pe,Le,qe,dt,It,Bt,Dt,mt,At,Et,wt){let Wt=It||u1(Pe,Bt),On=Bt||Dt||sO(Wt),qn=!I&&!At;if(dt){if(qn){let yt=Ne(wt);we({navigation:Wt,...yt!==void 0?{actionData:yt}:{}},{flushSync:Et})}let He=await zn(Le,Pe.pathname,se.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){if(He.partialMatches.length===0){let{matches:Rt,route:Ct}=Oy(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:fn,revalidatingFetchers:de}=QE(se,qe,o,a,e.history,P,Le,On,Pe,At?[]:r,At===!0,z,H,ie,Q,X,bn,u,e.patchRoutesOnNavigation!=null,wt);if(K=++Z,!e.dataStrategy&&!fn.some(He=>He.shouldLoad)&&!fn.some(He=>He.route.middleware)&&de.length===0){let He=Mt();return Ce(Pe,{matches:Le,loaderData:{},errors:wt&&ti(wt[1])?{[wt[0]]:wt[1].error}:null,...aO(wt),...He?{fetchers:new Map(P.fetchers)}:{}},{flushSync:Et}),{shortCircuited:!0}}if(qn){let He={};if(!dt){He.navigation=Wt;let yt=Ne(wt);yt!==void 0&&(He.actionData=yt)}de.length>0&&(He.fetchers=le(de)),we(He,{flushSync:Et})}de.forEach(He=>{Me(He.key),He.controller&&A.set(He.key,He.controller)});let fe=()=>de.forEach(He=>Me(He.key));F&&F.signal.addEventListener("abort",fe);let{loaderResults:Ve,fetcherResults:vt}=await _t(fn,de,se,qe);if(se.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",fe),de.forEach(He=>A.delete(He.key));let Ke=Ry(Ve);if(Ke)return await ct(se,Ke.result,!0,{replace:mt}),{shortCircuited:!0};if(Ke=Ry(vt),Ke)return X.add(Ke.key),await ct(se,Ke.result,!0,{replace:mt}),{shortCircuited:!0};let{loaderData:Zt,errors:nn}=rO(P,Le,Ve,wt,de,vt);At&&P.errors&&(nn={...P.errors,...nn});let pn=Mt(),ge=gt(K),Oe=pn||ge||de.length>0;return{matches:Le,loaderData:Zt,errors:nn,...Oe?{fetchers:new Map(P.fetchers)}:{}}}function Ne(se){if(se&&!ti(se[1]))return{[se[0]]:se[1].data};if(P.actionData)return Object.keys(P.actionData).length===0?null:P.actionData}function le(se){return se.forEach(Pe=>{let Le=P.fetchers.get(Pe.key),qe=kh(void 0,Le?Le.data:void 0);P.fetchers.set(Pe.key,qe)}),new Map(P.fetchers)}async function xt(se,Pe,Le,qe){Me(se);let dt=(qe&&qe.flushSync)===!0,It=l||s,Bt=lS(P.location,P.matches,u,Le,Pe,qe?.relative),Dt=Tc(It,Bt,u),mt=be(Dt,It,Bt);if(mt.active&&mt.matches&&(Dt=mt.matches),!Dt){rt(se,Pe,$i(404,{pathname:Bt}),{flushSync:dt});return}let{path:At,submission:Et,error:wt}=KE(!0,Bt,qe);if(wt){rt(se,Pe,wt,{flushSync:dt});return}let Wt=e.getContext?await e.getContext():new YE,On=(qe&&qe.preventScrollReset)===!0;if(Et&&Ta(Et.formMethod)){await Fe(se,Pe,At,Dt,Wt,mt.active,dt,On,Et);return}Q.set(se,{routeId:Pe,path:At}),await it(se,Pe,At,Dt,Wt,mt.active,dt,On,Et)}async function Fe(se,Pe,Le,qe,dt,It,Bt,Dt,mt){at(),Q.delete(se);let At=P.fetchers.get(se);Ze(se,EF(mt,At),{flushSync:Bt});let Et=new AbortController,wt=Tf(e.history,Le,Et.signal,mt);if(It){let St=await zn(qe,new URL(wt.url).pathname,wt.signal,se);if(St.type==="aborted")return;if(St.type==="error"){rt(se,Pe,St.error,{flushSync:Bt});return}else if(St.matches)qe=St.matches;else{rt(se,Pe,$i(404,{pathname:Le}),{flushSync:Bt});return}}let Wt=uv(qe,Le);if(!Wt.route.action&&!Wt.route.lazy){let St=$i(405,{method:mt.formMethod,pathname:Le,routeId:Pe});rt(se,Pe,St,{flushSync:Bt});return}A.set(se,Et);let On=Z,qn=Nf(o,a,wt,qe,Wt,r,dt),fn=(await Ft(wt,qn,dt,se))[Wt.route.id];if(wt.signal.aborted){A.get(se)===Et&&A.delete(se);return}if(ie.has(se)){if(Lu(fn)||ti(fn)){Ze(se,Cc(void 0));return}}else{if(Lu(fn))if(A.delete(se),K>On){Ze(se,Cc(void 0));return}else return X.add(se),Ze(se,kh(mt)),ct(wt,fn,!1,{fetcherSubmission:mt,preventScrollReset:Dt});if(ti(fn)){rt(se,Pe,fn.error);return}}let de=P.navigation.location||P.location,fe=Tf(e.history,de,Et.signal),Ve=l||s,vt=P.navigation.state!=="idle"?Tc(Ve,P.navigation.location,u):P.matches;er(vt,"Didn't find any matches after fetcher action");let Ke=++Z;te.set(se,Ke);let Zt=kh(mt,fn.data);P.fetchers.set(se,Zt);let{dsMatches:nn,revalidatingFetchers:pn}=QE(fe,dt,o,a,e.history,P,vt,mt,de,r,!1,z,H,ie,Q,X,Ve,u,e.patchRoutesOnNavigation!=null,[Wt.route.id,fn]);pn.filter(St=>St.key!==se).forEach(St=>{let Gt=St.key,xn=P.fetchers.get(Gt),ur=kh(void 0,xn?xn.data:void 0);P.fetchers.set(Gt,ur),Me(Gt),St.controller&&A.set(Gt,St.controller)}),we({fetchers:new Map(P.fetchers)});let ge=()=>pn.forEach(St=>Me(St.key));Et.signal.addEventListener("abort",ge);let{loaderResults:Oe,fetcherResults:He}=await _t(nn,pn,fe,dt);if(Et.signal.aborted)return;if(Et.signal.removeEventListener("abort",ge),te.delete(se),A.delete(se),pn.forEach(St=>A.delete(St.key)),P.fetchers.has(se)){let St=Cc(fn.data);P.fetchers.set(se,St)}let yt=Ry(Oe);if(yt)return ct(fe,yt.result,!1,{preventScrollReset:Dt});if(yt=Ry(He),yt)return X.add(yt.key),ct(fe,yt.result,!1,{preventScrollReset:Dt});let{loaderData:Rt,errors:Ct}=rO(P,vt,Oe,void 0,pn,He);gt(Ke),P.navigation.state==="loading"&&Ke>K?(er(N,"Expected pending action"),F&&F.abort(),Ce(P.navigation.location,{matches:vt,loaderData:Rt,errors:Ct,fetchers:new Map(P.fetchers)})):(we({errors:Ct,loaderData:oO(P.loaderData,Rt,vt,Ct),fetchers:new Map(P.fetchers)}),z=!1)}async function it(se,Pe,Le,qe,dt,It,Bt,Dt,mt){let At=P.fetchers.get(se);Ze(se,kh(mt,At?At.data:void 0),{flushSync:Bt});let Et=new AbortController,wt=Tf(e.history,Le,Et.signal);if(It){let de=await zn(qe,new URL(wt.url).pathname,wt.signal,se);if(de.type==="aborted")return;if(de.type==="error"){rt(se,Pe,de.error,{flushSync:Bt});return}else if(de.matches)qe=de.matches;else{rt(se,Pe,$i(404,{pathname:Le}),{flushSync:Bt});return}}let Wt=uv(qe,Le);A.set(se,Et);let On=Z,qn=Nf(o,a,wt,qe,Wt,r,dt),fn=(await Ft(wt,qn,dt,se))[Wt.route.id];if(A.get(se)===Et&&A.delete(se),!wt.signal.aborted){if(ie.has(se)){Ze(se,Cc(void 0));return}if(Lu(fn))if(K>On){Ze(se,Cc(void 0));return}else{X.add(se),await ct(wt,fn,!1,{preventScrollReset:Dt});return}if(ti(fn)){rt(se,Pe,fn.error);return}Ze(se,Cc(fn.data))}}async function ct(se,Pe,Le,{submission:qe,fetcherSubmission:dt,preventScrollReset:It,replace:Bt}={}){Pe.response.headers.has("X-Remix-Revalidate")&&(z=!0);let Dt=Pe.response.headers.get("Location");er(Dt,"Expected a Location header on the redirect Response"),Dt=tO(Dt,new URL(se.url),u);let mt=Am(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=ND(Dt,!0);qn=bn.origin!==t.location.origin||Fi(bn.pathname,u)==null}if(qn){Bt?t.location.replace(Dt):t.location.assign(Dt);return}}F=null;let At=Bt===!0||Pe.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Et,formAction:wt,formEncType:Wt}=P.navigation;!qe&&!dt&&Et&&wt&&Wt&&(qe=sO(P.navigation));let On=qe||dt;if(oF.has(Pe.response.status)&&On&&Ta(On.formMethod))await ke(At,mt,{submission:{...On,formAction:Dt},preventScrollReset:It||V,enableViewTransition:Le?W:void 0});else{let qn=u1(mt,qe);await ke(At,mt,{overrideNavigation:qn,fetcherSubmission:dt,preventScrollReset:It||V,enableViewTransition:Le?W:void 0})}}async function Ft(se,Pe,Le,qe){let dt,It={};try{dt=await mF(f,se,Pe,qe,Le,!1)}catch(Bt){return Pe.filter(Dt=>Dt.shouldLoad).forEach(Dt=>{It[Dt.route.id]={type:"error",error:Bt}}),It}if(se.signal.aborted)return It;for(let[Bt,Dt]of Object.entries(dt))if(kF(Dt)){let mt=Dt.result;It[Bt]={type:"redirect",response:bF(mt,se,Bt,Pe,u)}}else It[Bt]=await vF(Dt);return It}async function _t(se,Pe,Le,qe){let dt=Ft(Le,se,qe,null),It=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:$i(404,{pathname:mt.path})}})})),Bt=await dt,Dt=(await It).reduce((mt,At)=>Object.assign(mt,At),{});return{loaderResults:Bt,fetcherResults:Dt}}function at(){z=!0,Q.forEach((se,Pe)=>{A.has(Pe)&&H.add(Pe),Me(Pe)})}function Ze(se,Pe,Le={}){P.fetchers.set(se,Pe),we({fetchers:new Map(P.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function rt(se,Pe,Le,qe={}){let dt=Mc(P.matches,Pe);he(se),we({errors:{[dt.route.id]:Le},fetchers:new Map(P.fetchers)},{flushSync:(qe&&qe.flushSync)===!0})}function je(se){return ne.set(se,(ne.get(se)||0)+1),ie.has(se)&&ie.delete(se),P.fetchers.get(se)||aF}function he(se){let Pe=P.fetchers.get(se);A.has(se)&&!(Pe&&Pe.state==="loading"&&te.has(se))&&Me(se),Q.delete(se),te.delete(se),X.delete(se),ie.delete(se),H.delete(se),P.fetchers.delete(se)}function We(se){let Pe=(ne.get(se)||0)-1;Pe<=0?(ne.delete(se),ie.add(se)):ne.set(se,Pe),we({fetchers:new Map(P.fetchers)})}function Me(se){let Pe=A.get(se);Pe&&(Pe.abort(),A.delete(se))}function kt(se){for(let Pe of se){let Le=je(Pe),qe=Cc(Le.data);P.fetchers.set(Pe,qe)}}function Mt(){let se=[],Pe=!1;for(let Le of X){let qe=P.fetchers.get(Le);er(qe,`Expected fetcher: ${Le}`),qe.state==="loading"&&(X.delete(Le),se.push(Le),Pe=!0)}return kt(se),Pe}function gt(se){let Pe=[];for(let[Le,qe]of te)if(qe<se){let dt=P.fetchers.get(Le);er(dt,`Expected fetcher: ${Le}`),dt.state==="loading"&&(Me(Le),te.delete(Le),Pe.push(Le))}return kt(Pe),Pe.length>0}function ut(se,Pe){let Le=P.blockers.get(se)||Ch;return pe.get(se)!==Pe&&pe.set(se,Pe),Le}function $t(se){P.blockers.delete(se),pe.delete(se)}function Vt(se,Pe){let Le=P.blockers.get(se)||Ch;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(se,Pe),we({blockers:qe})}function dn({currentLocation:se,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()),[dt,It]=qe[qe.length-1],Bt=P.blockers.get(dt);if(!(Bt&&Bt.state==="proceeding")&&It({currentLocation:se,nextLocation:Pe,historyAction:Le}))return dt}function vn(se){let Pe=$i(404,{pathname:se}),Le=l||s,{matches:qe,route:dt}=Oy(Le);return{notFoundMatches:qe,route:dt,error:Pe}}function Bn(se,Pe,Le){if(b=se,x=Pe,v=Le||null,!w&&P.navigation===c1){w=!0;let qe=In(P.location,P.matches);qe!=null&&we({restoreScrollPosition:qe})}return()=>{b=null,x=null,v=null}}function Wn(se,Pe){return v&&v(se,Pe.map(qe=>N5(qe,P.loaderData)))||se.key}function Qt(se,Pe){if(b&&x){let Le=Wn(se,Pe);b[Le]=x()}}function In(se,Pe){if(b){let Le=Wn(se,Pe),qe=b[Le];if(typeof qe=="number")return qe}return null}function be(se,Pe,Le){if(e.patchRoutesOnNavigation)if(se){if(Object.keys(se[0].params).length>0)return{active:!0,matches:cv(Pe,Le,u,!0)}}else return{active:!0,matches:cv(Pe,Le,u,!0)||[]};return{active:!1,matches:null}}async function zn(se,Pe,Le,qe){if(!e.patchRoutesOnNavigation)return{type:"success",matches:se};let dt=se;for(;;){let It=l==null,Bt=l||s,Dt=a;try{await e.patchRoutesOnNavigation({signal:Le,path:Pe,matches:dt,fetcherKey:qe,patch:(Et,wt)=>{Le.aborted||XE(Et,wt,Bt,Dt,o,!1)}})}catch(Et){return{type:"error",error:Et,partialMatches:dt}}finally{It&&!Le.aborted&&(s=[...s])}if(Le.aborted)return{type:"aborted"};let mt=Tc(Bt,Pe,u);if(mt)return{type:"success",matches:mt};let At=cv(Bt,Pe,u,!0);if(!At||dt.length===At.length&&dt.every((Et,wt)=>Et.route.id===At[wt].route.id))return{type:"success",matches:null};dt=At}}function En(se){a={},l=jm(se,o,void 0,a)}function Xt(se,Pe,Le=!1){let qe=l==null;XE(se,Pe,l||s,a,o,Le),qe&&(s=[...s],we({}))}return $={get basename(){return u},get future(){return c},get state(){return P},get routes(){return s},get window(){return t},initialize:ce,subscribe:ye,enableScrollRestoration:Bn,navigate:Te,fetch:xt,revalidate:ue,createHref:se=>e.history.createHref(se),encodeLocation:se=>e.history.encodeLocation(se),getFetcher:je,deleteFetcher:We,dispose:me,getBlocker:ut,deleteBlocker:$t,patchRoutes:Xt,_internalFetchControllers:A,_internalSetRoutes:En,_internalSetStateDoNotUseOrYouWillBreakYourApp(se){we(se)}},$}function cF(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function lS(e,t,n,r,o,a){let s,l;if(o){s=[];for(let f of t)if(s.push(f),f.route.id===o){l=f;break}}else s=t,l=t[t.length-1];let u=pb(r||".",fb(s),Fi(e.pathname,n)||e.pathname,a==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&l){let f=Lw(u.search);if(l.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&f){let c=new URLSearchParams(u.search),h=c.getAll("index");c.delete("index"),h.filter(b=>b).forEach(b=>c.append("index",b));let y=c.toString();u.search=y?`?${y}`:""}}return n!=="/"&&(u.pathname=G5({basename:n,pathname:u.pathname})),Ic(u)}function KE(e,t,n){if(!n||!cF(n))return{path:t};if(n.formMethod&&!TF(n.formMethod))return{path:t,error:$i(405,{method:n.formMethod})};let r=()=>({path:t,error:$i(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=YD(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ta(a))return r();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[b,v])=>`${y}${b}=${v}
60
- `,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!Ta(a))return r();try{let h=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:h,text:void 0}}}catch{return r()}}}er(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=dS(n.formData),u=n.formData;else if(n.body instanceof FormData)l=dS(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=nO(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=nO(l)}catch{return r()}let f={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ta(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 QE(e,t,n,r,o,a,s,l,u,f,c,h,y,b,v,x,w,S,M,T){let R=T?ti(T[1])?T[1].error:T[1].data:void 0,$=o.createURL(a.location),P=o.createURL(u),N;if(c&&a.errors){let I=Object.keys(a.errors)[0];N=s.findIndex(z=>z.route.id===I)}else if(T&&ti(T[1])){let I=T[0];N=s.findIndex(z=>z.route.id===I)-1}let V=T?T[1].statusCode:void 0,F=V&&V>=400,W={currentUrl:$,currentParams:a.matches[0]?.params||{},nextUrl:P,nextParams:s[0].params,...l,actionResult:R,actionStatus:V},_=s.map((I,z)=>{let{route:H}=I,A=null;if(N!=null&&z>N?A=!1:H.lazy?A=!0:H.loader==null?A=!1:c?A=cS(H,a.loaderData,a.errors):uF(a.loaderData,a.matches[z],I)&&(A=!0),A!==null)return uS(n,r,e,I,f,t,A);let Z=F?!1:h||$.pathname+$.search===P.pathname+P.search||$.search!==P.search||dF(a.matches[z],I),K={...W,defaultShouldRevalidate:Z},te=Av(I,K);return uS(n,r,e,I,f,t,te,K)}),k=[];return v.forEach((I,z)=>{if(c||!s.some(ne=>ne.route.id===I.routeId)||b.has(z))return;let H=a.fetchers.get(z),A=H&&H.state!=="idle"&&H.data===void 0,Z=Tc(w,I.path,S);if(!Z){if(M&&A)return;k.push({key:z,routeId:I.routeId,path:I.path,matches:null,match:null,request:null,controller:null});return}if(x.has(z))return;let K=uv(Z,I.path),te=new AbortController,X=Tf(o,I.path,te.signal),Q=null;if(y.has(z))y.delete(z),Q=Nf(n,r,X,Z,K,f,t);else if(A)h&&(Q=Nf(n,r,X,Z,K,f,t));else{let ne={...W,defaultShouldRevalidate:F?!1:h};Av(K,ne)&&(Q=Nf(n,r,X,Z,K,f,t,ne))}Q&&k.push({key:z,routeId:I.routeId,path:I.path,matches:Q,match:K,request:X,controller:te})}),{dsMatches:_,revalidatingFetchers:k}}function cS(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 uF(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function dF(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Av(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function XE(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=[],u=[];if(t.forEach(f=>{let c=s.find(h=>_D(f,h));c?u.push({existingRoute:c,newRoute:f}):l.push(f)}),l.length>0){let f=jm(l,o,[e||"_","patch",String(s?.length||"0")],r);s.push(...f)}if(a&&u.length>0)for(let f=0;f<u.length;f++){let{existingRoute:c,newRoute:h}=u[f],y=c,[b]=jm([h],o,[],{},!0);Object.assign(y,{element:b.element?b.element:y.element,errorElement:b.errorElement?b.errorElement:y.errorElement,hydrateFallbackElement:b.hydrateFallbackElement?b.hydrateFallbackElement:y.hydrateFallbackElement})}}function _D(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=>_D(n,o))):!1}var ZE=new WeakMap,VD=({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=ZE.get(o);s||(s={},ZE.set(o,s));let l=s[e];if(l)return l;let u=(async()=>{let f=P5(e),h=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(h)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]=u,u},JE=new WeakMap;function fF(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=JE.get(a);if(c)return{lazyRoutePromise:c,lazyHandlerPromise:c};let h=(async()=>{er(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),b={};for(let v in y){let x=y[v];if(x===void 0)continue;let w=A5(v),M=a[v]!==void 0&&v!=="hasErrorBoundary";w?fo(!w,"Route property "+v+" is not a supported property to be returned from a lazy route function. This property will be ignored."):M?fo(!M,`Route "${a.id}" has a static property "${v}" defined but its lazy function is also returning a value for this property. The lazy route property "${v}" will be ignored.`):b[v]=x}Object.assign(a,b),Object.assign(a,{...r(a),lazy:void 0})})();return JE.set(a,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let s=Object.keys(e.lazy),l=[],u;for(let c of s){if(o&&o.includes(c))continue;let h=VD({key:c,route:e,manifest:n,mapRouteProperties:r});h&&(l.push(h),c===t&&(u=h))}let f=l.length>0?Promise.all(l).then(()=>{}):void 0;return f?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:u}}async function eO(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 pF(e){return e.matches.some(t=>t.route.middleware)?HD(e,()=>eO(e)):eO(e)}function HD(e,t){return hF(e,t,r=>r,wF,n);function n(r,o,a){if(a)return Promise.resolve(Object.assign(a.value,{[o]:{type:"error",result:r}}));{let{matches:s}=e,l=Math.min(s.findIndex(f=>f.route.id===o)||0,s.findIndex(f=>f.unstable_shouldCallHandler())||0),u=Mc(s,s[l].route.id).route.id;return Promise.resolve({[u]:{type:"error",result:r}})}}}async function hF(e,t,n,r,o){let{matches:a,request:s,params:l,context:u}=e,f=a.flatMap(h=>h.route.middleware?h.route.middleware.map(y=>[h.route.id,y]):[]);return await WD({request:s,params:l,context:u},f,t,n,r,o)}async function WD(e,t,n,r,o,a,s=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason??new Error(`Request aborted: ${l.method} ${l.url}`);let u=t[s];if(!u)return await n();let[f,c]=u,h,y=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");try{return h={value:await WD(e,t,n,r,o,a,s+1)},h.value}catch(b){return h={value:await a(b,f,h)},h.value}};try{let b=await c(e,y),v=b!=null?r(b):void 0;return o(v)?v:h?v??h.value:(h={value:await y()},h.value)}catch(b){return await a(b,f,h)}}function qD(e,t,n,r,o){let a=VD({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=fF(r.route,Ta(n.method)?"action":"loader",t,e,o);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function uS(e,t,n,r,o,a,s,l=null){let u=!1,f=qD(e,t,n,r,o);return{...r,_lazyPromises:f,shouldLoad:s,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler(c){return u=!0,l?typeof c=="boolean"?Av(r,{...l,defaultShouldRevalidate:c}):Av(r,l):s},resolve(c){return u||s||c&&!Ta(n.method)&&(r.route.lazy||r.route.loader)?gF({request:n,match:r,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:c,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function Nf(e,t,n,r,o,a,s,l=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler:()=>!1,_lazyPromises:qD(e,t,n,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:uS(e,t,n,u,a,s,!0,l))}async function mF(e,t,n,r,o,a){n.some(f=>f._lazyPromises?.middleware)&&await Promise.all(n.map(f=>f._lazyPromises?.middleware));let s={request:t,params:n[0].params,context:o,matches:n},u=await e({...s,fetcherKey:r,runClientMiddleware:f=>{let c=s;return HD(c,()=>f({...c,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(f=>[f._lazyPromises?.handler,f._lazyPromises?.route]))}catch{}return u}async function gF({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let s,l,u=Ta(e.method),f=u?"action":"loader",c=h=>{let y,b=new Promise((w,S)=>y=S);l=()=>y(),e.signal.addEventListener("abort",l);let v=w=>typeof h!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${f}" [routeId: ${t.route.id}]`)):h({request:e,params:t.params,context:a},...w!==void 0?[w]:[]),x=(async()=>{try{return{type:"data",result:await(o?o(S=>v(S)):v())}}catch(w){return{type:"error",result:w}}})();return Promise.race([x,b])};try{let h=u?t.route.action:t.route.loader;if(n||r)if(h){let y,[b]=await Promise.all([c(h).catch(v=>{y=v}),n,r]);if(y!==void 0)throw y;s=b}else{await n;let y=u?t.route.action:t.route.loader;if(y)[s]=await Promise.all([c(y),r]);else if(f==="action"){let b=new URL(e.url),v=b.pathname+b.search;throw $i(405,{method:e.method,pathname:v,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(h)s=await c(h);else{let y=new URL(e.url),b=y.pathname+y.search;throw $i(404,{pathname:b})}}catch(h){return{type:"error",result:h}}finally{l&&e.signal.removeEventListener("abort",l)}return s}async function yF(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 vF(e){let{result:t,type:n}=e;if(GD(t)){let r;try{r=await yF(t)}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new Dv(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?iO(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 Dv(t.init?.status||500,void 0,t.data),statusCode:Nm(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Nm(t)?t.status:void 0}:iO(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 bF(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=lS(new URL(t.url),s,o,a),e.headers.set("Location",a)}return e}function tO(e,t,n){if(Iw(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Fi(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(YD(t)).toString(),a={signal:n};if(r&&Ta(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=dS(r.formData):a.body=r.formData}return new Request(o,a)}function dS(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function nO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function xF(e,t,n,r=!1,o=!1){let a={},s=null,l,u=!1,f={},c=n&&ti(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let y=h.route.id,b=t[y];if(er(!Lu(b),"Cannot handle redirect results in processLoaderData"),ti(b)){let v=b.error;if(c!==void 0&&(v=c,c=void 0),s=s||{},o)s[y]=v;else{let x=Mc(e,y);s[x.route.id]==null&&(s[x.route.id]=v)}r||(a[y]=UD),u||(u=!0,l=Nm(b.error)?b.error.status:500),b.headers&&(f[y]=b.headers)}else a[y]=b.data,b.statusCode&&b.statusCode!==200&&!u&&(l=b.statusCode),b.headers&&(f[y]=b.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 rO(e,t,n,r,o,a){let{loaderData:s,errors:l}=xF(t,n,r);return o.filter(u=>!u.matches||u.matches.some(f=>f.shouldLoad)).forEach(u=>{let{key:f,match:c,controller:h}=u;if(h&&h.signal.aborted)return;let y=a[f];if(er(y,"Did not find corresponding fetcher result"),ti(y)){let b=Mc(e.matches,c?.route.id);l&&l[b.route.id]||(l={...l,[b.route.id]:y.error}),e.fetchers.delete(f)}else if(Lu(y))er(!1,"Unhandled fetcher revalidation redirect");else{let b=Cc(y.data);e.fetchers.set(f,b)}}),{loaderData:s,errors:l}}function oO(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==UD).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 aO(e){return e?ti(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 Oy(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 $i(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 Dv(e||500,s,new Error(l),!0)}function Ry(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 YD(e){let t=typeof e=="string"?_c(e):e;return Ic({...t,hash:""})}function SF(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function wF(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&CF(n))}function CF(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function kF(e){return GD(e.result)&&rF.has(e.result.status)}function ti(e){return e.type==="error"}function Lu(e){return(e&&e.type)==="redirect"}function iO(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function GD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function TF(e){return nF.has(e.toUpperCase())}function Ta(e){return eF.has(e.toUpperCase())}function Lw(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function uv(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=zD(e);return r[r.length-1]}function sO(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 u1(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 MF(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 kh(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 EF(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 OF(e,t){try{let n=e.sessionStorage.getItem(BD);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 RF(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(BD,JSON.stringify(n))}catch(r){fo(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function $F(){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 tg=C.createContext(null);tg.displayName="DataRouterState";C.createContext(!1);var zw=C.createContext({isTransitioning:!1});zw.displayName="ViewTransition";var KD=C.createContext(new Map);KD.displayName="Fetchers";var PF=C.createContext(null);PF.displayName="Await";var ps=C.createContext(null);ps.displayName="Navigation";var hb=C.createContext(null);hb.displayName="Location";var qi=C.createContext({outlet:null,matches:[],isDataRoute:!1});qi.displayName="Route";var Fw=C.createContext(null);Fw.displayName="RouteError";function DF(e,{relative:t}={}){er(sp(),"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}=rg(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:qs([n,a])),r.createHref({pathname:l,search:s,hash:o})}function sp(){return C.useContext(hb)!=null}function tl(){return er(sp(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(hb).location}var QD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function XD(e){C.useContext(ps).static||C.useLayoutEffect(e)}function ng(){let{isDataRoute:e}=C.useContext(qi);return e?YF():AF()}function AF(){er(sp(),"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(qi),{pathname:o}=tl(),a=JSON.stringify(fb(r)),s=C.useRef(!1);return XD(()=>{s.current=!0}),C.useCallback((u,f={})=>{if(fo(s.current,QD),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=pb(u,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 jF=C.createContext(null);function NF(e){let t=C.useContext(qi).outlet;return t&&C.createElement(jF.Provider,{value:e},t)}function Che(){let{matches:e}=C.useContext(qi),t=e[e.length-1];return t?t.params:{}}function rg(e,{relative:t}={}){let{matches:n}=C.useContext(qi),{pathname:r}=tl(),o=JSON.stringify(fb(n));return C.useMemo(()=>pb(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function IF(e,t,n,r,o){er(sp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=C.useContext(ps),{matches:s}=C.useContext(qi),l=s[s.length-1],u=l?l.params:{},f=l?l.pathname:"/",c=l?l.pathnameBase:"/",h=l&&l.route;{let M=h&&h.path||"";ZD(f,!h||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${M}">) 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="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let y=tl(),b;b=y;let v=b.pathname||"/",x=v;if(c!=="/"){let M=c.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(M.length).join("/")}let w=Tc(e,{pathname:x});return fo(h||w!=null,`No routes matched location "${b.pathname}${b.search}${b.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 "${b.pathname}${b.search}${b.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.`),UF(w&&w.map(M=>Object.assign({},M,{params:Object.assign({},u,M.params),pathname:qs([c,a.encodeLocation?a.encodeLocation(M.pathname).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?c:qs([c,a.encodeLocation?a.encodeLocation(M.pathnameBase).pathname:M.pathnameBase])})),s,n,r,o)}function LF(){let e=qF(),t=Nm(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 zF=C.createElement(LF,null),FF=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(qi.Provider,{value:this.props.routeContext},C.createElement(Fw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function BF({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(qi.Provider,{value:e},n)}function UF(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,u=-1;if(n)for(let f=0;f<a.length;f++){let c=a[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=f),c.route.id){let{loaderData:h,errors:y}=n,b=c.route.loader&&!h.hasOwnProperty(c.route.id)&&(!y||y[c.route.id]===void 0);if(c.route.lazy||b){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,c,h)=>{let y,b=!1,v=null,x=null;n&&(y=s&&c.route.id?s[c.route.id]:void 0,v=c.route.errorElement||zF,l&&(u<0&&h===0?(ZD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,x=null):u===h&&(b=!0,x=c.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,h+1)),S=()=>{let M;return y?M=v:b?M=x:c.route.Component?M=C.createElement(c.route.Component,null):c.route.element?M=c.route.element:M=f,C.createElement(BF,{match:c,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:M})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?C.createElement(FF,{location:n.location,revalidation:n.revalidation,component:v,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 _F(e){let t=C.useContext(sd);return er(t,Bw(e)),t}function VF(e){let t=C.useContext(tg);return er(t,Bw(e)),t}function HF(e){let t=C.useContext(qi);return er(t,Bw(e)),t}function Uw(e){let t=HF(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 WF(){return Uw("useRouteId")}function qF(){let e=C.useContext(Fw),t=VF("useRouteError"),n=Uw("useRouteError");return e!==void 0?e:t.errors?.[n]}function YF(){let{router:e}=_F("useNavigate"),t=Uw("useNavigate"),n=C.useRef(!1);return XD(()=>{n.current=!0}),C.useCallback(async(o,a={})=>{fo(n.current,QD),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var lO={};function ZD(e,t,n){!t&&!lO[e]&&(lO[e]=!0,fo(!1,n))}var cO={};function uO(e,t){!e&&!cO[t]&&(cO[t]=!0,console.warn(t))}function GF(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 KF=["HydrateFallback","hydrateFallbackElement"],QF=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 XF({router:e,flushSync:t,unstable_onError:n}){let[r,o]=C.useState(e.state),[a,s]=C.useState(),[l,u]=C.useState({isTransitioning:!1}),[f,c]=C.useState(),[h,y]=C.useState(),[b,v]=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,_)=>{W.data!==void 0&&x.current.set(_,W.data)}),P.forEach(W=>x.current.delete(W)),uO(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 F=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(uO(V==null||F,"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||!F){t&&N?t(()=>w($)):C.startTransition(()=>w($));return}if(t&&N){t(()=>{h&&(f&&f.resolve(),h.skipTransition()),u({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),u({isTransitioning:!1})})}),t(()=>y(W));return}h?(f&&f.resolve(),h.skipTransition(),v({state:$,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(s($),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[e.window,t,h,f,w]);C.useLayoutEffect(()=>e.subscribe(S),[e,S]),C.useEffect(()=>{l.isTransitioning&&!l.flushSync&&c(new QF)},[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),u({isTransitioning:!1})}),y(N)}},[a,f,e.window,w]),C.useEffect(()=>{f&&a&&r.location.key===a.location.key&&f.resolve()},[f,h,r.location,a]),C.useEffect(()=>{!l.isTransitioning&&b&&(s(b.state),u({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),v(void 0))},[l.isTransitioning,b]);let M=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]),T=e.basename||"/",R=C.useMemo(()=>({router:e,navigator:M,static:!1,basename:T,unstable_onError:n}),[e,M,T,n]);return C.createElement(C.Fragment,null,C.createElement(sd.Provider,{value:R},C.createElement(tg.Provider,{value:r},C.createElement(KD.Provider,{value:x.current},C.createElement(zw.Provider,{value:l},C.createElement(t4,{basename:T,location:r.location,navigationType:r.historyAction,navigator:M},C.createElement(ZF,{routes:e.routes,future:e.future,state:r,unstable_onError:n})))))),null)}var ZF=C.memo(JF);function JF({routes:e,future:t,state:n,unstable_onError:r}){return IF(e,void 0,n,r,t)}function e4({to:e,replace:t,state:n,relative:r}){er(sp(),"<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(qi),{pathname:s}=tl(),l=ng(),u=pb(e,fb(a),s,r==="path"),f=JSON.stringify(u);return C.useEffect(()=>{l(JSON.parse(f),{replace:t,state:n,relative:r})},[l,f,r,t,n]),null}function khe(e){return NF(e.context)}function t4({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){er(!sp(),"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:u="/",search:f="",hash:c="",state:h=null,key:y="default"}=n,b=C.useMemo(()=>{let v=Fi(u,s);return v==null?null:{location:{pathname:v,search:f,hash:c,state:h,key:y},navigationType:r}},[s,u,f,c,h,y,r]);return fo(b!=null,`<Router basename="${s}"> is not able to match the URL "${u}${f}${c}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:C.createElement(ps.Provider,{value:l},C.createElement(hb.Provider,{children:t,value:b}))}var dv="get",fv="application/x-www-form-urlencoded";function mb(e){return e!=null&&typeof e.tagName=="string"}function n4(e){return mb(e)&&e.tagName.toLowerCase()==="button"}function r4(e){return mb(e)&&e.tagName.toLowerCase()==="form"}function o4(e){return mb(e)&&e.tagName.toLowerCase()==="input"}function a4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function i4(e,t){return e.button===0&&(!t||t==="_self")&&!a4(e)}function fS(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 s4(e,t){let n=fS(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(a=>{n.append(o,a)})}),n}var $y=null;function l4(){if($y===null)try{new FormData(document.createElement("form"),0),$y=!1}catch{$y=!0}return $y}var c4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function d1(e){return e!=null&&!c4.has(e)?(fo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fv}"`),null):e}function u4(e,t){let n,r,o,a,s;if(r4(e)){let l=e.getAttribute("action");r=l?Fi(l,t):null,n=e.getAttribute("method")||dv,o=d1(e.getAttribute("enctype"))||fv,a=new FormData(e)}else if(n4(e)||o4(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||l.getAttribute("action");if(r=u?Fi(u,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||dv,o=d1(e.getAttribute("formenctype"))||d1(l.getAttribute("enctype"))||fv,a=new FormData(l,e),!l4()){let{name:f,type:c,value:h}=e;if(c==="image"){let y=f?`${f}.`:"";a.append(`${y}x`,"0"),a.append(`${y}y`,"0")}else f&&a.append(f,h)}}else{if(mb(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=dv,r=null,o=fv,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 d4(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&&Fi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function f4(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 p4(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 h4(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await f4(a,n);return s.links?s.links():[]}return[]}));return v4(r.flat(1).filter(p4).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function dO(e,t,n,r,o,a){let s=(u,f)=>n[f]?u.route.id!==n[f].route.id:!0,l=(u,f)=>n[f].pathname!==u.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==u.params["*"];return a==="assets"?t.filter((u,f)=>s(u,f)||l(u,f)):a==="data"?t.filter((u,f)=>{let c=r.routes[u.route.id];if(!c||!c.hasLoader)return!1;if(s(u,f)||l(u,f))return!0;if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function m4(e,t,{includeHydrateFallback:n}={}){return g4(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 g4(e){return[...new Set(e)]}function y4(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function v4(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(y4(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}function JD(){let e=C.useContext(sd);return _w(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function b4(){let e=C.useContext(tg);return _w(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Vw=C.createContext(void 0);Vw.displayName="FrameworkContext";function eA(){let e=C.useContext(Vw);return _w(e,"You must render this element inside a <HydratedRouter> element"),e}function x4(e,t){let n=C.useContext(Vw),[r,o]=C.useState(!1),[a,s]=C.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:f,onMouseLeave:c,onTouchStart:h}=t,y=C.useRef(null);C.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=S=>{S.forEach(M=>{s(M.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 b=()=>{o(!0)},v=()=>{o(!1),s(!1)};return n?e!=="intent"?[a,y,{}]:[a,y,{onFocus:Th(l,b),onBlur:Th(u,v),onMouseEnter:Th(f,b),onMouseLeave:Th(c,v),onTouchStart:Th(h,b)}]:[!1,y,{}]}function Th(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function S4({page:e,...t}){let{router:n}=JD(),r=C.useMemo(()=>Tc(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(C4,{page:e,matches:r,...t}):null}function w4(e){let{manifest:t,routeModules:n}=eA(),[r,o]=C.useState([]);return C.useEffect(()=>{let a=!1;return h4(e,t,n).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,n]),r}function C4({page:e,matches:t,...n}){let r=tl(),{manifest:o,routeModules:a}=eA(),{basename:s}=JD(),{loaderData:l,matches:u}=b4(),f=C.useMemo(()=>dO(e,t,u,o,r,"data"),[e,t,u,o,r]),c=C.useMemo(()=>dO(e,t,u,o,r,"assets"),[e,t,u,o,r]),h=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,x=!1;if(t.forEach(S=>{let M=o.routes[S.route.id];!M||!M.hasLoader||(!f.some(T=>T.route.id===S.route.id)&&S.route.id in l&&a[S.route.id]?.shouldRevalidate||M.hasClientLoader?x=!0:v.add(S.route.id))}),v.size===0)return[];let w=d4(e,s,"data");return x&&v.size>0&&w.searchParams.set("_routes",t.filter(S=>v.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(()=>m4(c,o),[c,o]),b=w4(c);return C.createElement(C.Fragment,null,h.map(v=>C.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),y.map(v=>C.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),b.map(({key:v,link:x})=>C.createElement("link",{key:v,nonce:n.nonce,...x})))}function k4(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var tA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tA&&(window.__reactRouterVersion="7.9.1")}catch{}function T4(e,t){return lF({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:E5({window:t?.window}),hydrationData:M4(),routes:e,mapRouteProperties:GF,hydrationRouteProperties:KF,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function M4(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:E4(e.errors)}),e}function E4(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 Dv(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 nA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rA=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:s,state:l,target:u,to:f,preventScrollReset:c,viewTransition:h,...y},b){let{basename:v}=C.useContext(ps),x=typeof f=="string"&&nA.test(f),w,S=!1;if(typeof f=="string"&&x&&(w=f,tA))try{let F=new URL(window.location.href),W=f.startsWith("//")?new URL(F.protocol+f):new URL(f),_=Fi(W.pathname,v);W.origin===F.origin&&_!=null?f=_+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 M=DF(f,{relative:o}),[T,R,$]=x4(r,y),P=P4(f,{replace:s,state:l,target:u,preventScrollReset:c,relative:o,viewTransition:h});function N(F){t&&t(F),F.defaultPrevented||P(F)}let V=C.createElement("a",{...y,...$,href:w||M,onClick:S||a?t:N,ref:k4(b,R),target:u,"data-discover":!x&&n==="render"?"true":void 0});return T&&!x?C.createElement(C.Fragment,null,V,C.createElement(S4,{page:M})):V});rA.displayName="Link";var O4=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:s,viewTransition:l,children:u,...f},c){let h=rg(s,{relative:f.relative}),y=tl(),b=C.useContext(tg),{navigator:v,basename:x}=C.useContext(ps),w=b!=null&&L4(h)&&l===!0,S=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,M=y.pathname,T=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(M=M.toLowerCase(),T=T?T.toLowerCase():null,S=S.toLowerCase()),T&&x&&(T=Fi(T,x)||T);const R=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let $=M===S||!o&&M.startsWith(S)&&M.charAt(R)==="/",P=T!=null&&(T===S||!o&&T.startsWith(S)&&T.charAt(S.length)==="/"),N={isActive:$,isPending:P,isTransitioning:w},V=$?t:void 0,F;typeof r=="function"?F=r(N):F=[r,$?"active":null,P?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let W=typeof a=="function"?a(N):a;return C.createElement(rA,{...f,"aria-current":V,className:F,ref:c,style:W,to:s,viewTransition:l},typeof u=="function"?u(N):u)});O4.displayName="NavLink";var R4=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=dv,action:l,onSubmit:u,relative:f,preventScrollReset:c,viewTransition:h,...y},b)=>{let v=N4(),x=I4(l,{relative:f}),w=s.toLowerCase()==="get"?"get":"post",S=typeof l=="string"&&nA.test(l),M=T=>{if(u&&u(T),T.defaultPrevented)return;T.preventDefault();let R=T.nativeEvent.submitter,$=R?.getAttribute("formmethod")||s;v(R||T.currentTarget,{fetcherKey:t,method:$,navigate:n,replace:o,state:a,relative:f,preventScrollReset:c,viewTransition:h})};return C.createElement("form",{ref:b,method:w,action:x,onSubmit:r?u:M,...y,"data-discover":!S&&e==="render"?"true":void 0})});R4.displayName="Form";function $4(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oA(e){let t=C.useContext(sd);return er(t,$4(e)),t}function P4(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:s}={}){let l=ng(),u=tl(),f=rg(e,{relative:a});return C.useCallback(c=>{if(i4(c,t)){c.preventDefault();let h=n!==void 0?n:Ic(u)===Ic(f);l(e,{replace:h,state:r,preventScrollReset:o,relative:a,viewTransition:s})}},[u,l,f,n,r,t,e,o,a,s])}function D4(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(fS(e)),n=C.useRef(!1),r=tl(),o=C.useMemo(()=>s4(r.search,n.current?null:t.current),[r.search]),a=ng(),s=C.useCallback((l,u)=>{const f=fS(typeof l=="function"?l(new URLSearchParams(o)):l);n.current=!0,a("?"+f,u)},[a,o]);return[o,s]}var A4=0,j4=()=>`__${String(++A4)}__`;function N4(){let{router:e}=oA("useSubmit"),{basename:t}=C.useContext(ps),n=WF();return C.useCallback(async(r,o={})=>{let{action:a,method:s,encType:l,formData:u,body:f}=u4(r,t);if(o.navigate===!1){let c=o.fetcherKey||j4();await e.fetch(c,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:f,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:f,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function I4(e,{relative:t}={}){let{basename:n}=C.useContext(ps),r=C.useContext(qi);er(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...rg(e||".",{relative:t})},s=tl();if(e==null){a.search=s.search;let l=new URLSearchParams(a.search),u=l.getAll("index");if(u.some(c=>c==="")){l.delete("index"),u.filter(h=>h).forEach(h=>l.append("index",h));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 L4(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}=oA("useViewTransitionState"),o=rg(e,{relative:t});if(!n.isTransitioning)return!1;let a=Fi(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Fi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pv(o.pathname,s)!=null||Pv(o.pathname,a)!=null}var gb=AD();const Rc=DD(gb);function z4(e){return C.createElement(XF,{flushSync:gb.flushSync,...e})}const F4="modulepreload",B4=function(e){return"/"+e},fO={},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(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");o=s(n.map(f=>{if(f=B4(f),f in fO)return;fO[f]=!0;const c=f.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${h}`))return;const y=document.createElement("link");if(y.rel=c?"stylesheet":F4,c||(y.as="script"),y.crossOrigin="",y.href=f,u&&y.setAttribute("nonce",u),document.head.appendChild(y),c)return new Promise((b,v)=>{y.addEventListener("load",b),y.addEventListener("error",()=>v(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)})},Im={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"},Mh={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},U4={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 jl(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 jv(){return jv=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},jv.apply(null,arguments)}function _4(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 V4(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 H4=(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(V4(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=_4(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})(),ea="-ms-",Nv="-moz-",yr="-webkit-",aA="comm",Hw="rule",Ww="decl",W4="@import",iA="@keyframes",q4="@layer",Y4=Math.abs,yb=String.fromCharCode,G4=Object.assign;function K4(e,t){return Yo(e,0)^45?(((t<<2^Yo(e,0))<<2^Yo(e,1))<<2^Yo(e,2))<<2^Yo(e,3):0}function sA(e){return e.trim()}function Q4(e,t){return(e=t.exec(e))?e[0]:e}function vr(e,t,n){return e.replace(t,n)}function pS(e,t){return e.indexOf(t)}function Yo(e,t){return e.charCodeAt(t)|0}function Lm(e,t,n){return e.slice(t,n)}function Fs(e){return e.length}function qw(e){return e.length}function Py(e,t){return t.push(e),e}function X4(e,t){return e.map(t).join("")}var vb=1,Hf=1,lA=0,Na=0,ko=0,lp="";function bb(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:vb,column:Hf,length:s,return:""}}function Eh(e,t){return G4(bb("",null,null,"",null,null,0),e,{length:-e.length},t)}function Z4(){return ko}function J4(){return ko=Na>0?Yo(lp,--Na):0,Hf--,ko===10&&(Hf=1,vb--),ko}function ci(){return ko=Na<lA?Yo(lp,Na++):0,Hf++,ko===10&&(Hf=1,vb++),ko}function Gs(){return Yo(lp,Na)}function pv(){return Na}function og(e,t){return Lm(lp,e,t)}function zm(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 cA(e){return vb=Hf=1,lA=Fs(lp=e),Na=0,[]}function uA(e){return lp="",e}function hv(e){return sA(og(Na-1,hS(e===91?e+2:e===40?e+1:e)))}function e3(e){for(;(ko=Gs())&&ko<33;)ci();return zm(e)>2||zm(ko)>3?"":" "}function t3(e,t){for(;--t&&ci()&&!(ko<48||ko>102||ko>57&&ko<65||ko>70&&ko<97););return og(e,pv()+(t<6&&Gs()==32&&ci()==32))}function hS(e){for(;ci();)switch(ko){case e:return Na;case 34:case 39:e!==34&&e!==39&&hS(ko);break;case 40:e===41&&hS(e);break;case 92:ci();break}return Na}function n3(e,t){for(;ci()&&e+ko!==57;)if(e+ko===84&&Gs()===47)break;return"/*"+og(t,Na-1)+"*"+yb(e===47?e:ci())}function r3(e){for(;!zm(Gs());)ci();return og(e,Na)}function o3(e){return uA(mv("",null,null,null,[""],e=cA(e),0,[0],e))}function mv(e,t,n,r,o,a,s,l,u){for(var f=0,c=0,h=s,y=0,b=0,v=0,x=1,w=1,S=1,M=0,T="",R=o,$=a,P=r,N=T;w;)switch(v=M,M=ci()){case 40:if(v!=108&&Yo(N,h-1)==58){pS(N+=vr(hv(M),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:N+=hv(M);break;case 9:case 10:case 13:case 32:N+=e3(v);break;case 92:N+=t3(pv()-1,7);continue;case 47:switch(Gs()){case 42:case 47:Py(a3(n3(ci(),pv()),t,n),u);break;default:N+="/"}break;case 123*x:l[f++]=Fs(N)*S;case 125*x:case 59:case 0:switch(M){case 0:case 125:w=0;case 59+c:S==-1&&(N=vr(N,/\f/g,"")),b>0&&Fs(N)-h&&Py(b>32?hO(N+";",r,n,h-1):hO(vr(N," ","")+";",r,n,h-2),u);break;case 59:N+=";";default:if(Py(P=pO(N,t,n,f,c,o,l,T,R=[],$=[],h),a),M===123)if(c===0)mv(N,t,P,P,R,a,h,l,$);else switch(y===99&&Yo(N,3)===110?100:y){case 100:case 108:case 109:case 115:mv(e,P,P,r&&Py(pO(e,P,P,0,0,o,l,T,o,R=[],h),$),o,$,h,l,r?R:$);break;default:mv(N,P,P,P,[""],$,0,l,$)}}f=c=b=0,x=S=1,T=N="",h=s;break;case 58:h=1+Fs(N),b=v;default:if(x<1){if(M==123)--x;else if(M==125&&x++==0&&J4()==125)continue}switch(N+=yb(M),M*x){case 38:S=c>0?1:(N+="\f",-1);break;case 44:l[f++]=(Fs(N)-1)*S,S=1;break;case 64:Gs()===45&&(N+=hv(ci())),y=Gs(),c=h=Fs(T=N+=r3(pv())),M++;break;case 45:v===45&&Fs(N)==2&&(x=0)}}return a}function pO(e,t,n,r,o,a,s,l,u,f,c){for(var h=o-1,y=o===0?a:[""],b=qw(y),v=0,x=0,w=0;v<r;++v)for(var S=0,M=Lm(e,h+1,h=Y4(x=s[v])),T=e;S<b;++S)(T=sA(x>0?y[S]+" "+M:vr(M,/&\f/g,y[S])))&&(u[w++]=T);return bb(e,t,n,o===0?Hw:l,u,f,c)}function a3(e,t,n){return bb(e,t,n,aA,yb(Z4()),Lm(e,2,-2),0)}function hO(e,t,n,r){return bb(e,t,n,Ww,Lm(e,0,r),Lm(e,r+1,-1),r)}function If(e,t){for(var n="",r=qw(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function i3(e,t,n,r){switch(e.type){case q4:if(e.children.length)break;case W4:case Ww:return e.return=e.return||e.value;case aA:return"";case iA:return e.return=e.value+"{"+If(e.children,r)+"}";case Hw:e.value=e.props.join(",")}return Fs(n=If(e.children,r))?e.return=e.value+"{"+n+"}":""}function s3(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 l3(e){return function(t){t.root||(t=t.return)&&e(t)}}function dA(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var c3=function(t,n,r){for(var o=0,a=0;o=a,a=Gs(),o===38&&a===12&&(n[r]=1),!zm(a);)ci();return og(t,Na)},u3=function(t,n){var r=-1,o=44;do switch(zm(o)){case 0:o===38&&Gs()===12&&(n[r]=1),t[r]+=c3(Na-1,n,r);break;case 2:t[r]+=hv(o);break;case 4:if(o===44){t[++r]=Gs()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=yb(o)}while(o=ci());return t},d3=function(t,n){return uA(u3(cA(t),n))},mO=new WeakMap,f3=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&&!mO.get(r))&&!o){mO.set(t,!0);for(var a=[],s=d3(n,a),l=r.props,u=0,f=0;u<s.length;u++)for(var c=0;c<l.length;c++,f++)t.props[f]=a[u]?s[u].replace(/&\f/g,l[c]):l[c]+" "+s[u]}}},p3=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function fA(e,t){switch(K4(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+Nv+e+ea+e+e;case 6828:case 4268:return yr+e+ea+e+e;case 6165:return yr+e+ea+"flex-"+e+e;case 5187:return yr+e+vr(e,/(\w+).+(:[^]+)/,yr+"box-$1$2"+ea+"flex-$1$2")+e;case 5443:return yr+e+ea+"flex-item-"+vr(e,/flex-|-self/,"")+e;case 4675:return yr+e+ea+"flex-line-pack"+vr(e,/align-content|flex-|-self/,"")+e;case 5548:return yr+e+ea+vr(e,"shrink","negative")+e;case 5292:return yr+e+ea+vr(e,"basis","preferred-size")+e;case 6060:return yr+"box-"+vr(e,"-grow","")+yr+e+ea+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"+ea+"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(Yo(e,t+1)){case 109:if(Yo(e,t+4)!==45)break;case 102:return vr(e,/(.+:)(.+)-([^]+)/,"$1"+yr+"$2-$3$1"+Nv+(Yo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pS(e,"stretch")?fA(vr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yo(e,t+1)!==115)break;case 6444:switch(Yo(e,Fs(e)-3-(~pS(e,"!important")&&10))){case 107:return vr(e,":",":"+yr)+e;case 101:return vr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yr+(Yo(e,14)===45?"inline-":"")+"box$3$1"+yr+"$2$3$1"+ea+"$2box$3")+e}break;case 5936:switch(Yo(e,t+11)){case 114:return yr+e+ea+vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yr+e+ea+vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yr+e+ea+vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yr+e+ea+e+e}return e}var h3=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ww:t.return=fA(t.value,t.length);break;case iA:return If([Eh(t,{value:vr(t.value,"@","@"+yr)})],o);case Hw:if(t.length)return X4(t.props,function(a){switch(Q4(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return If([Eh(t,{props:[vr(a,/:(read-\w+)/,":"+Nv+"$1")]})],o);case"::placeholder":return If([Eh(t,{props:[vr(a,/:(plac\w+)/,":"+yr+"input-$1")]}),Eh(t,{props:[vr(a,/:(plac\w+)/,":"+Nv+"$1")]}),Eh(t,{props:[vr(a,/:(plac\w+)/,ea+"input-$1")]})],o)}return""})}},m3=[h3],g3=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||m3,a={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)a[w[S]]=!0;l.push(x)});var u,f=[f3,p3];{var c,h=[i3,l3(function(x){c.insert(x)})],y=s3(f.concat(o,h)),b=function(w){return If(o3(w),y)};u=function(w,S,M,T){c=M,b(w?w+"{"+S.styles+"}":S.styles),T&&(v.inserted[S.name]=!0)}}var v={key:n,sheet:new H4({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return v.sheet.hydrate(l),v},f1={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 gO;function y3(){if(gO)return Sr;gO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=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,M=e?Symbol.for("react.scope"):60119;function T($){if(typeof $=="object"&&$!==null){var P=$.$$typeof;switch(P){case t:switch($=$.type,$){case u:case f:case r:case a:case o:case h:return $;default:switch($=$&&$.$$typeof,$){case l:case c:case v:case b:case s:return $;default:return P}}case n:return P}}}function R($){return T($)===f}return Sr.AsyncMode=u,Sr.ConcurrentMode=f,Sr.ContextConsumer=l,Sr.ContextProvider=s,Sr.Element=t,Sr.ForwardRef=c,Sr.Fragment=r,Sr.Lazy=v,Sr.Memo=b,Sr.Portal=n,Sr.Profiler=a,Sr.StrictMode=o,Sr.Suspense=h,Sr.isAsyncMode=function($){return R($)||T($)===u},Sr.isConcurrentMode=R,Sr.isContextConsumer=function($){return T($)===l},Sr.isContextProvider=function($){return T($)===s},Sr.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Sr.isForwardRef=function($){return T($)===c},Sr.isFragment=function($){return T($)===r},Sr.isLazy=function($){return T($)===v},Sr.isMemo=function($){return T($)===b},Sr.isPortal=function($){return T($)===n},Sr.isProfiler=function($){return T($)===a},Sr.isStrictMode=function($){return T($)===o},Sr.isSuspense=function($){return T($)===h},Sr.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===f||$===a||$===o||$===h||$===y||typeof $=="object"&&$!==null&&($.$$typeof===v||$.$$typeof===b||$.$$typeof===s||$.$$typeof===l||$.$$typeof===c||$.$$typeof===w||$.$$typeof===S||$.$$typeof===M||$.$$typeof===x)},Sr.typeOf=T,Sr}var yO;function v3(){return yO||(yO=1,f1.exports=y3()),f1.exports}var p1,vO;function b3(){if(vO)return p1;vO=1;var e=v3(),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(v){return e.isMemo(v)?o:a[v.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function b(v,x,w){if(typeof x!="string"){if(y){var S=h(x);S&&S!==y&&b(v,S,w)}var M=u(x);f&&(M=M.concat(f(x)));for(var T=s(v),R=s(x),$=0;$<M.length;++$){var P=M[$];if(!n[P]&&!(w&&w[P])&&!(R&&R[P])&&!(T&&T[P])){var N=c(x,P);try{l(v,P,N)}catch{}}}}return v}return p1=b,p1}b3();var x3=!0;function pA(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||x3===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Gw=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 S3(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 w3={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},C3=/[A-Z]|^ms/g,k3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hA=function(t){return t.charCodeAt(1)===45},bO=function(t){return t!=null&&typeof t!="boolean"},h1=dA(function(e){return hA(e)?e:e.replace(C3,"-$&").toLowerCase()}),xO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(k3,function(r,o,a){return Bs={name:o,styles:a,next:Bs},o})}return w3[t]!==1&&!hA(t)&&typeof n=="number"&&n!==0?n+"px":n};function Fm(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 T3(e,t,n)}case"function":{if(e!==void 0){var u=Bs,f=n(e);return Bs=u,Fm(e,t,f)}break}}var c=n;if(t==null)return c;var h=t[c];return h!==void 0?h:c}function T3(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Fm(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]+"}":bO(l)&&(r+=h1(a)+":"+xO(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)bO(s[u])&&(r+=h1(a)+":"+xO(a,s[u])+";");else{var f=Fm(e,t,s);switch(a){case"animation":case"animationName":{r+=h1(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var SO=/label:\s*([^\s;{]+)\s*(;|$)/g,Bs;function ag(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+=Fm(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Fm(n,t,e[l]),r){var u=a;o+=u[l]}SO.lastIndex=0;for(var f="",c;(c=SO.exec(o))!==null;)f+="-"+c[1];var h=S3(o)+f;return{name:h,styles:o,next:Bs}}var M3=function(t){return t()},mA=Dm.useInsertionEffect?Dm.useInsertionEffect:!1,gA=mA||M3,wO=mA||C.useLayoutEffect,yA=C.createContext(typeof HTMLElement<"u"?g3({key:"css"}):null);yA.Provider;var Kw=function(t){return C.forwardRef(function(n,r){var o=C.useContext(yA);return t(n,o,r)})},cp=C.createContext({}),Qw={}.hasOwnProperty,mS="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",E3=function(t,n){var r={};for(var o in n)Qw.call(n,o)&&(r[o]=n[o]);return r[mS]=t,r},O3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Yw(n,r,o),gA(function(){return Gw(n,r,o)}),null},R3=Kw(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[mS],a=[r],s="";typeof e.className=="string"?s=pA(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=ag(a,void 0,C.useContext(cp));s+=t.key+"-"+l.name;var u={};for(var f in e)Qw.call(e,f)&&f!=="css"&&f!==mS&&(u[f]=e[f]);return u.className=s,n&&(u.ref=n),C.createElement(C.Fragment,null,C.createElement(O3,{cache:t,serialized:l,isStringTag:typeof o=="string"}),C.createElement(o,u))}),$3=R3,CO=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]=$3,a[1]=E3(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={}))})(CO||(CO={}));var P3=Kw(function(e,t){var n=e.styles,r=ag([n],void 0,C.useContext(cp)),o=C.useRef();return wO(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",a),s.hydrate([u])),o.current=[s,l],function(){s.flush()}},[t]),wO(function(){var a=o.current,s=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&Gw(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Vc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ag(t)}function pi(){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 D3=/^((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)-.*))$/,A3=dA(function(e){return D3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),j3=A3,N3=function(t){return t!=="theme"},kO=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?j3:N3},TO=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},I3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Yw(n,r,o),gA(function(){return Gw(n,r,o)}),null},L3=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=TO(t,n,r),u=l||kO(o),f=!u("as");return function(){var c=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)h.push.apply(h,c);else{var y=c[0];h.push(y[0]);for(var b=c.length,v=1;v<b;v++)h.push(c[v],y[v])}var x=Kw(function(w,S,M){var T=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(cp)}typeof w.className=="string"?R=pA(S.registered,$,w.className):w.className!=null&&(R=w.className+" ");var V=ag(h.concat($),S.registered,P);R+=S.key+"-"+V.name,s!==void 0&&(R+=" "+s);var F=f&&l===void 0?kO(T):u,W={};for(var _ in w)f&&_==="as"||F(_)&&(W[_]=w[_]);return W.className=R,M&&(W.ref=M),C.createElement(C.Fragment,null,C.createElement(I3,{cache:S,serialized:V,isStringTag:typeof T=="string"}),C.createElement(T,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=h,x.__emotion_forwardProp=l,Object.defineProperty(x,"toString",{value:function(){return"."+s}}),x.withComponent=function(w,S){var M=e(w,jv({},n,S,{shouldForwardProp:TO(x,S,!0)}));return M.apply(void 0,h)},x}},z3=["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"],Iv=L3.bind(null);z3.forEach(function(e){Iv[e]=Iv(e)});function F3(e){return e==null||Object.keys(e).length===0}function vA(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(F3(o)?n:o):t;return m.jsx(P3,{styles:r})}function bA(e,t){return Iv(e,t)}function B3(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const MO=[];function Dc(e){return MO[0]=e,ag(MO)}var m1={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 EO;function U3(){if(EO)return jr;EO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function v(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case n:case o:case r:case u:case f:case y:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case h: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=h,jr.Memo=c,jr.Portal=t,jr.Profiler=o,jr.StrictMode=r,jr.Suspense=u,jr.SuspenseList=f,jr.isContextConsumer=function(x){return v(x)===a},jr.isContextProvider=function(x){return v(x)===s},jr.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},jr.isForwardRef=function(x){return v(x)===l},jr.isFragment=function(x){return v(x)===n},jr.isLazy=function(x){return v(x)===h},jr.isMemo=function(x){return v(x)===c},jr.isPortal=function(x){return v(x)===t},jr.isProfiler=function(x){return v(x)===o},jr.isStrictMode=function(x){return v(x)===r},jr.isSuspense=function(x){return v(x)===u},jr.isSuspenseList=function(x){return v(x)===f},jr.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===u||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===c||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===b||x.getModuleId!==void 0)},jr.typeOf=v,jr}var OO;function _3(){return OO||(OO=1,m1.exports=U3()),m1.exports}var xA=_3();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 SA(e){if(C.isValidElement(e)||xA.isValidElementType(e)||!Vs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=SA(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])||xA.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])?SA(t[o]):t[o]:r[o]=t[o]}),r}const V3=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 H3(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=V3(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,b){const v=s.indexOf(b);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:b)-r/100}${n})`}function c(y){return s.indexOf(y)+1<s.length?f(y,s[s.indexOf(y)+1]):l(y)}function h(y){const b=s.indexOf(y);return b===0?l(s[1]):b===s.length-1?u(s[b]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:u,between:f,only:c,not:h,unit:n,...o}}function RO(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 W3(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function q3(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 Y3(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const G3={borderRadius:4};function vm(e,t){return t?Fo(e,t,{clone:!1}):e}const xb={xs:0,sm:600,md:900,lg:1200,xl:1536},$O={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xb[e]}px)`},K3={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 ds(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||$O;return t.reduce((s,l,u)=>(s[a.up(a.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const a=r.breakpoints||$O;return Object.keys(t).reduce((s,l)=>{if(W3(a.keys,l)){const u=q3(r.containerQueries?r:K3,l);u&&(s[u]=n(t[l],l))}else if(Object.keys(a.values||xb).includes(l)){const u=a.up(l);s[u]=n(t[l],l)}else{const u=l;s[u]=t[u]}return s},{})}return n(t)}function wA(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function gS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Q3(e,...t){const n=wA(e),r=[n,...t].reduce((o,a)=>Fo(o,a),{});return gS(Object.keys(n),r)}function X3(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 g1({values:e,breakpoints:t,base:n}){const r=n||X3(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((s,l,u)=>(Array.isArray(e)?(s[l]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[a],a=l):s[l]=e,s),{})}function tt(e){if(typeof e!="string")throw new Error(jl(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 Lv(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],u=s.theme,f=Us(u,r)||{};return ds(s,l,h=>{let y=Lv(f,o,h);return h===y&&typeof h=="string"&&(y=Lv(f,o,`${t}${h==="default"?"":tt(h)}`,h)),n===!1?y:{[n]:y}})};return a.propTypes={},a.filterProps=[t],a}function Z3(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const J3={m:"margin",p:"padding"},eB={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tB=Z3(e=>{if(e.length>2)if(PO[e])e=PO[e];else return[e];const[t,n]=e.split(""),r=J3[t],o=eB[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 ig(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 Sb(e){return ig(e,"spacing",8)}function Qu(e,t){return typeof t=="string"||t==null?t:e(t)}function nB(e,t){return n=>e.reduce((r,o)=>(r[o]=Qu(t,n),r),{})}function rB(e,t,n,r){if(!t.includes(n))return null;const o=tB(n),a=nB(o,r),s=e[n];return ds(e,s,a)}function CA(e,t){const n=Sb(e.theme);return Object.keys(e).map(r=>rB(e,t,r,n)).reduce(vm,{})}function ro(e){return CA(e,Xw)}ro.propTypes={};ro.filterProps=Xw;function oo(e){return CA(e,Zw)}oo.propTypes={};oo.filterProps=Zw;function Jw(e=8,t=Sb({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 wb(...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]?vm(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ji(e){return typeof e!="number"?e:`${e}px solid`}function Yi(e,t){return vo({prop:e,themeKey:"borders",transform:t})}const oB=Yi("border",ji),aB=Yi("borderTop",ji),iB=Yi("borderRight",ji),sB=Yi("borderBottom",ji),lB=Yi("borderLeft",ji),cB=Yi("borderColor"),uB=Yi("borderTopColor"),dB=Yi("borderRightColor"),fB=Yi("borderBottomColor"),pB=Yi("borderLeftColor"),hB=Yi("outline",ji),mB=Yi("outlineColor"),Cb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ig(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Qu(t,r)});return ds(e,e.borderRadius,n)}return null};Cb.propTypes={};Cb.filterProps=["borderRadius"];wb(oB,aB,iB,sB,lB,cB,uB,dB,fB,pB,Cb,hB,mB);const kb=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ig(e.theme,"spacing",8),n=r=>({gap:Qu(t,r)});return ds(e,e.gap,n)}return null};kb.propTypes={};kb.filterProps=["gap"];const Tb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ig(e.theme,"spacing",8),n=r=>({columnGap:Qu(t,r)});return ds(e,e.columnGap,n)}return null};Tb.propTypes={};Tb.filterProps=["columnGap"];const Mb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ig(e.theme,"spacing",8),n=r=>({rowGap:Qu(t,r)});return ds(e,e.rowGap,n)}return null};Mb.propTypes={};Mb.filterProps=["rowGap"];const gB=vo({prop:"gridColumn"}),yB=vo({prop:"gridRow"}),vB=vo({prop:"gridAutoFlow"}),bB=vo({prop:"gridAutoColumns"}),xB=vo({prop:"gridAutoRows"}),SB=vo({prop:"gridTemplateColumns"}),wB=vo({prop:"gridTemplateRows"}),CB=vo({prop:"gridTemplateAreas"}),kB=vo({prop:"gridArea"});wb(kb,Tb,Mb,gB,yB,vB,bB,xB,SB,wB,CB,kB);function Lf(e,t){return t==="grey"?t:e}const TB=vo({prop:"color",themeKey:"palette",transform:Lf}),MB=vo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Lf}),EB=vo({prop:"backgroundColor",themeKey:"palette",transform:Lf});wb(TB,MB,EB);function si(e){return e<=1&&e!==0?`${e*100}%`:e}const OB=vo({prop:"width",transform:si}),eC=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:si(n)}};return ds(e,e.maxWidth,t)}return null};eC.filterProps=["maxWidth"];const RB=vo({prop:"minWidth",transform:si}),$B=vo({prop:"height",transform:si}),PB=vo({prop:"maxHeight",transform:si}),DB=vo({prop:"minHeight",transform:si});vo({prop:"size",cssProperty:"width",transform:si});vo({prop:"size",cssProperty:"height",transform:si});const AB=vo({prop:"boxSizing"});wb(OB,eC,RB,$B,PB,DB,AB);const sg={border:{themeKey:"borders",transform:ji},borderTop:{themeKey:"borders",transform:ji},borderRight:{themeKey:"borders",transform:ji},borderBottom:{themeKey:"borders",transform:ji},borderLeft:{themeKey:"borders",transform:ji},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ji},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cb},color:{themeKey:"palette",transform:Lf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Lf},backgroundColor:{themeKey:"palette",transform:Lf},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:kb},rowGap:{style:Mb},columnGap:{style:Tb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:si},maxWidth:{style:eC},minWidth:{transform:si},height:{transform:si},maxHeight:{transform:si},minHeight:{transform:si},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 jB(...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 NB(e,t){return typeof e=="function"?e(t):e}function IB(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:f,transform:c,style:h}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=Us(o,f)||{};return h?h(s):ds(s,r,v=>{let x=Lv(y,c,v);return v===x&&typeof v=="string"&&(x=Lv(y,c,`${n}${v==="default"?"":tt(v)}`,v)),u===!1?x:{[u]:x}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??sg;function l(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const c=wA(o.breakpoints),h=Object.keys(c);let y=c;return Object.keys(f).forEach(b=>{const v=NB(f[b],o);if(v!=null)if(typeof v=="object")if(s[b])y=vm(y,e(b,v,o,s));else{const x=ds({theme:o},v,w=>({[b]:w}));jB(x,v)?y[b]=t({sx:v,theme:o,nested:!0}):y=vm(y,x)}else y=vm(y,e(b,v,o,s))}),!a&&o.modularCssLayers?{"@layer sx":RO(o,gS(h,y))}:RO(o,gS(h,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Lc=IB();Lc.filterProps=["sx"];function LB(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 up(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=H3(n),u=Jw(o);let f=Fo({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...G3,...a}},s);return f=Y3(f),f.applyStyles=LB,f=t.reduce((c,h)=>Fo(c,h),f),f.unstable_sxConfig={...sg,...s?.unstable_sxConfig},f.unstable_sx=function(h){return Lc({sx:h,theme:this})},f}function zB(e){return Object.keys(e).length===0}function tC(e=null){const t=C.useContext(cp);return!t||zB(t)?e:t}const FB=up();function dp(e=FB){return tC(e)}function y1(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=dp(n),o=t&&r[t]||r;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>y1(typeof s=="function"?s(o):s)):a=y1(a)),m.jsx(vA,{styles:a})}const BB=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??sg;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Eb(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=BB(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 DO=e=>e,UB=()=>{let e=DO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=DO}}},rC=UB();function kA(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=kA(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=kA(e))&&(r&&(r+=" "),r+=t);return r}function oC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=bA("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Lc);return C.forwardRef(function(u,f){const c=dp(n),{className:h,component:y="div",...b}=Eb(u);return m.jsx(a,{as:y,ref:f,className:Pt(h,o?o(r):r),theme:t&&c[t]||c,...b})})}const _B={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 sn(e,t,n="Mui"){const r=_B[t];return r?`${n}-${r}`:`${rC.generate(e)}-${t}`}function cn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=sn(e,o,n)}),r}const VB=cn("MuiBox",["root"]),TA=oC({defaultClassName:VB.root,generateClassName:rC.generate});function MA(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 HB=up();function gv(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 WB(e){return e?(t,n)=>n[e]:null}function qB(e,t,n){e.theme=GB(e.theme)?n:e.theme[t]||e.theme}function yv(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>yv(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 EA(e,r.variants,[o],n)}return r?.isProcessed?n?zu(Dc(r.style),n):r.style:n?zu(Dc(r),n):r}function EA(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 OA(e={}){const{themeId:t,defaultTheme:n=HB,rootShouldForwardProp:r=gv,slotShouldForwardProp:o=gv}=e;function a(l){qB(l,t,n)}return(l,u={})=>{B3(l,P=>P.filter(N=>N!==Lc));const{name:f,slot:c,skipVariantsResolver:h,skipSx:y,overridesResolver:b=WB(QB(c)),...v}=u,x=f&&f.startsWith("Mui")||c?"components":"custom",w=h!==void 0?h:c&&c!=="Root"&&c!=="root"||!1,S=y||!1;let M=gv;c==="Root"||c==="root"?M=r:c?M=o:KB(l)&&(M=void 0);const T=bA(l,{shouldForwardProp:M,label:YB(),...v}),R=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(V){return yv(V,P,V.theme.modularCssLayers?x:void 0)};if(Vs(P)){const N=MA(P);return function(F){return N.variants?yv(F,N,F.theme.modularCssLayers?x:void 0):F.theme.modularCssLayers?zu(N.style,x):N.style}}return P},$=(...P)=>{const N=[],V=P.map(R),F=[];if(N.push(a),f&&b&&F.push(function(I){const H=I.theme.components?.[f]?.styleOverrides;if(!H)return null;const A={};for(const Z in H)A[Z]=yv(I,H[Z],I.theme.modularCssLayers?"theme":void 0);return b(I,A)}),f&&!w&&F.push(function(I){const H=I.theme?.components?.[f]?.variants;return H?EA(I,H,[],I.theme.modularCssLayers?"theme":void 0):null}),S||F.push(Lc),Array.isArray(V[0])){const k=V.shift(),I=new Array(N.length).fill(""),z=new Array(F.length).fill("");let H;H=[...I,...k,...z],H.raw=[...I,...k.raw,...z],N.unshift(H)}const W=[...N,...V,...F],_=T(...W);return l.muiName&&(_.muiName=l.muiName),_};return T.withConfig&&($.withConfig=T.withConfig),$}}function YB(e,t){return void 0}function GB(e){for(const t in e)return!1;return!0}function KB(e){return typeof e=="string"&&e.charCodeAt(0)>96}function QB(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const aC=OA();function Bm(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const f=u;r[a][f]=Bm(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 XB(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Bm(t.components[n].defaultProps,r)}function iC({props:e,name:t,defaultTheme:n,themeId:r}){let o=dp(n);return r&&(o=o[r]||o),XB({theme:o,name:t,props:e})}const Ia=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 ZB(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(ZB(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(jl(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(jl(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const JB=e=>{const t=zc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},lm=(e,t)=>{try{return JB(e)}catch{return e}};function Ob(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 RA(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 u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),Ob({type:l,values:u})}function yS(e){e=zc(e);let t=e.type==="hsl"||e.type==="hsla"?zc(RA(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 e6(e,t){const n=yS(e),r=yS(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,Ob(e)}function Cu(e,t,n){try{return fs(e,t)}catch{return e}}function Rb(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 Ob(e)}function Mr(e,t,n){try{return Rb(e,t)}catch{return e}}function $b(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 Ob(e)}function Er(e,t,n){try{return $b(e,t)}catch{return e}}function vS(e,t=.15){return yS(e)>.5?Rb(e,t):$b(e,t)}function Dy(e,t,n){try{return vS(e,t)}catch{return e}}const $A=C.createContext(null);function lC(){return C.useContext($A)}const t6=typeof Symbol=="function"&&Symbol.for,n6=t6?Symbol.for("mui.nested"):"__THEME_NESTED__";function r6(e,t){return typeof t=="function"?t(e):{...e,...t}}function o6(e){const{children:t,theme:n}=e,r=lC(),o=C.useMemo(()=>{const a=r===null?{...n}:r6(r,n);return a!=null&&(a[n6]=r!==null),a},[n,r]);return m.jsx($A.Provider,{value:o,children:t})}const PA=C.createContext();function a6({value:e,...t}){return m.jsx(PA.Provider,{value:e??!0,...t})}const lg=()=>C.useContext(PA)??!1,DA=C.createContext(void 0);function i6({value:e,children:t}){return m.jsx(DA.Provider,{value:e,children:t})}function s6(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?Bm(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Bm(o,r,t.components.mergeClassNameAndStyle):r}function l6({props:e,name:t}){const n=C.useContext(DA);return s6({props:e,name:t,theme:{components:n}})}let AO=0;function c6(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(AO+=1,n(`mui-${AO}`))},[t]),r}const u6={...Dm},jO=u6.useId;function Hc(e){if(jO!==void 0){const t=jO();return e??t}return c6(e)}function d6(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};`,Ia(()=>{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?m.jsx(nC,{styles:o}):null}const NO={};function IO(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 AA(e){const{children:t,theme:n,themeId:r}=e,o=tC(NO),a=lC()||NO,s=IO(r,o,n),l=IO(r,a,n,!0),u=(r?s[r]:s).direction==="rtl",f=d6(s);return m.jsx(o6,{theme:l,children:m.jsx(cp.Provider,{value:s,children:m.jsx(a6,{value:u,children:m.jsxs(i6,{value:r?s[r].components:s.components,children:[f,t]})})})})}const LO={theme:void 0};function jA(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(LO.theme=o.theme,a=MA(e(LO)),t=a,n=o.theme),a}}const cC="mode",uC="color-scheme",f6="data-color-scheme";function p6(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=cC,colorSchemeStorageKey:a=uC,attribute:s=f6,colorSchemeNode:l="document.documentElement",nonce:u}=e||{};let f="",c=s;if(s==="class"&&(c=".%s"),s==="data"&&(c="[data-%s]"),c.startsWith(".")){const y=c.substring(1);f+=`${l}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark));
78
- ${l}.classList.add('${y}'.replace('%s', colorScheme));`}const h=c.match(/\[([^[\]]+)\]/);if(h){const[y,b]=h[1].split("=");b||(f+=`${l}.removeAttribute('${y}'.replace('%s', light));
79
- ${l}.removeAttribute('${y}'.replace('%s', dark));`),f+=`
80
- ${l}.setAttribute('${y}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else f+=`${l}.setAttribute('${c}', colorScheme);`;return m.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
81
- try {
82
- let colorScheme = '';
83
- const mode = localStorage.getItem('${o}') || '${t}';
84
- const dark = localStorage.getItem('${a}-dark') || '${r}';
85
- const light = localStorage.getItem('${a}-light') || '${n}';
86
- if (mode === 'system') {
87
- // handle system mode
88
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
89
- if (mql.matches) {
90
- colorScheme = dark
91
- } else {
92
- colorScheme = light
93
- }
94
- }
95
- if (mode === 'light') {
96
- colorScheme = light;
97
- }
98
- if (mode === 'dark') {
99
- colorScheme = dark;
100
- }
101
- if (colorScheme) {
102
- ${f}
103
- }
104
- } catch(e){}})();`}},"mui-color-scheme-init")}function h6(){}const m6=({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 h6;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function v1(){}function zO(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function NA(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 g6(e){return NA(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function y6(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:u=m6,noSsr:f=!1}=e,c=o.join(","),h=o.length>1,y=C.useMemo(()=>u?.({key:a,storageWindow:l}),[u,a,l]),b=C.useMemo(()=>u?.({key:`${s}-light`,storageWindow:l}),[u,s,l]),v=C.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:l}),[u,s,l]),[x,w]=C.useState(()=>{const V=y?.get(t)||t,F=b?.get(n)||n,W=v?.get(r)||r;return{mode:V,systemMode:zO(V),lightColorScheme:F,darkColorScheme:W}}),[S,M]=C.useState(f||!h);C.useEffect(()=>{M(!0)},[]);const T=g6(x),R=C.useCallback(V=>{w(F=>{if(V===F.mode)return F;const W=V??t;return y?.set(W),{...F,mode:W,systemMode:zO(W)}})},[y,t]),$=C.useCallback(V=>{V?typeof V=="string"?V&&!c.includes(V)?console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`):w(F=>{const W={...F};return NA(F,_=>{_==="light"&&(b?.set(V),W.lightColorScheme=V),_==="dark"&&(v?.set(V),W.darkColorScheme=V)}),W}):w(F=>{const W={...F},_=V.light===null?n:V.light,k=V.dark===null?r:V.dark;return _&&(c.includes(_)?(W.lightColorScheme=_,b?.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),k&&(c.includes(k)?(W.darkColorScheme=k,v?.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),W}):w(F=>(b?.set(n),v?.set(r),{...F,lightColorScheme:n,darkColorScheme:r}))},[c,b,v,n,r]),P=C.useCallback(V=>{x.mode==="system"&&w(F=>{const W=V?.matches?"dark":"light";return F.systemMode===W?F:{...F,systemMode:W}})},[x.mode]),N=C.useRef(P);return N.current=P,C.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const V=(...W)=>N.current(...W),F=window.matchMedia("(prefers-color-scheme: dark)");return F.addListener(V),V(F),()=>{F.removeListener(V)}},[h]),C.useEffect(()=>{if(h){const V=y?.subscribe(_=>{(!_||["light","dark","system"].includes(_))&&R(_||t)})||v1,F=b?.subscribe(_=>{(!_||c.match(_))&&$({light:_})})||v1,W=v?.subscribe(_=>{(!_||c.match(_))&&$({dark:_})})||v1;return()=>{V(),F(),W()}}},[$,R,c,t,l,h,y,b,v]),{...x,mode:S?x.mode:void 0,systemMode:S?x.systemMode:void 0,colorScheme:S?T:void 0,setMode:R,setColorScheme:$}}const v6="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function b6(e){const{themeId:t,theme:n={},modeStorageKey:r=cC,colorSchemeStorageKey:o=uC,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=C.createContext(void 0),c=()=>C.useContext(f)||u,h={},y={};function b(S){const{children:M,theme:T,modeStorageKey:R=r,colorSchemeStorageKey:$=o,disableTransitionOnChange:P=a,storageManager:N,storageWindow:V=typeof window>"u"?void 0:window,documentNode:F=typeof document>"u"?void 0:document,colorSchemeNode:W=typeof document>"u"?void 0:document.documentElement,disableNestedContext:_=!1,disableStyleSheetGeneration:k=!1,defaultMode:I="system",forceThemeRerender:z=!1,noSsr:H}=S,A=C.useRef(!1),Z=lC(),K=C.useContext(f),te=!!K&&!_,X=C.useMemo(()=>T||(typeof n=="function"?n():n),[T]),Q=X[t],ne=Q||X,{colorSchemes:ie=h,components:pe=y,cssVarPrefix:oe}=ne,ae=Object.keys(ie).filter(Ze=>!!ie[Ze]).join(","),ce=C.useMemo(()=>ae.split(","),[ae]),me=typeof s=="string"?s:s.light,ye=typeof s=="string"?s:s.dark,we=ie[me]&&ie[ye]?I:ie[ne.defaultColorScheme]?.palette?.mode||ne.palette?.mode,{mode:Ce,setMode:Te,systemMode:ue,lightColorScheme:ke,darkColorScheme:Ge,colorScheme:ze,setColorScheme:Ne}=y6({supportedColorSchemes:ce,defaultLightColorScheme:me,defaultDarkColorScheme:ye,modeStorageKey:R,colorSchemeStorageKey:$,defaultMode:we,storageManager:N,storageWindow:V,noSsr:H});let le=Ce,xt=ze;te&&(le=K.mode,xt=K.colorScheme);let Fe=xt||ne.defaultColorScheme;ne.vars&&!z&&(Fe=ne.defaultColorScheme);const it=C.useMemo(()=>{const Ze=ne.generateThemeVars?.()||ne.vars,rt={...ne,components:pe,colorSchemes:ie,cssVarPrefix:oe,vars:Ze};if(typeof rt.generateSpacing=="function"&&(rt.spacing=rt.generateSpacing()),Fe){const je=ie[Fe];je&&typeof je=="object"&&Object.keys(je).forEach(he=>{je[he]&&typeof je[he]=="object"?rt[he]={...rt[he],...je[he]}:rt[he]=je[he]})}return l?l(rt):rt},[ne,Fe,pe,ie,oe]),ct=ne.colorSchemeSelector;Ia(()=>{if(xt&&W&&ct&&ct!=="media"){const Ze=ct;let rt=ct;if(Ze==="class"&&(rt=".%s"),Ze==="data"&&(rt="[data-%s]"),Ze?.startsWith("data-")&&!Ze.includes("%s")&&(rt=`[${Ze}="%s"]`),rt.startsWith("."))W.classList.remove(...ce.map(je=>rt.substring(1).replace("%s",je))),W.classList.add(rt.substring(1).replace("%s",xt));else{const je=rt.replace("%s",xt).match(/\[([^\]]+)\]/);if(je){const[he,We]=je[1].split("=");We||ce.forEach(Me=>{W.removeAttribute(he.replace(xt,Me))}),W.setAttribute(he,We?We.replace(/"|'/g,""):"")}else W.setAttribute(rt,xt)}}},[xt,ct,W,ce]),C.useEffect(()=>{let Ze;if(P&&A.current&&F){const rt=F.createElement("style");rt.appendChild(F.createTextNode(v6)),F.head.appendChild(rt),window.getComputedStyle(F.body),Ze=setTimeout(()=>{F.head.removeChild(rt)},1)}return()=>{clearTimeout(Ze)}},[xt,P,F]),C.useEffect(()=>(A.current=!0,()=>{A.current=!1}),[]);const Ft=C.useMemo(()=>({allColorSchemes:ce,colorScheme:xt,darkColorScheme:Ge,lightColorScheme:ke,mode:le,setColorScheme:Ne,setMode:Te,systemMode:ue}),[ce,xt,Ge,ke,le,Ne,Te,ue,it.colorSchemeSelector]);let _t=!0;(k||ne.cssVariables===!1||te&&Z?.cssVarPrefix===oe)&&(_t=!1);const at=m.jsxs(C.Fragment,{children:[m.jsx(AA,{themeId:Q?t:void 0,theme:it,children:M}),_t&&m.jsx(vA,{styles:it.generateStyleSheets?.()||[]})]});return te?at:m.jsx(f.Provider,{value:Ft,children:at})}const v=typeof s=="string"?s:s.light,x=typeof s=="string"?s:s.dark;return{CssVarsProvider:b,useColorScheme:c,getInitColorSchemeScript:S=>p6({colorSchemeStorageKey:o,defaultLightColorScheme:v,defaultDarkColorScheme:x,modeStorageKey:r,...S})}}function IA(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 FO=(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])})},x6=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...s,l]:s):t([...a,l],u,s))})}r(e)},S6=(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 b1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return x6(e,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const c=`--${n?`${n}-`:""}${l.join("-")}`,h=S6(l,u);Object.assign(o,{[c]:h}),FO(a,l,`var(${c})`,f),FO(s,l,`var(${c}, ${h})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function w6(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:u="light",...f}=e,{vars:c,css:h,varsWithDefaults:y}=b1(f,t);let b=y;const v={},{[u]:x,...w}=s;if(Object.entries(w||{}).forEach(([R,$])=>{const{vars:P,css:N,varsWithDefaults:V}=b1($,t);b=Fo(b,V),v[R]={css:N,vars:P}}),x){const{css:R,vars:$,varsWithDefaults:P}=b1(x,t);b=Fo(b,P),v[u]={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:b,generateThemeVars:()=>{let R={...c};return Object.entries(v).forEach(([,{vars:$}])=>{R=Fo(R,$)}),R},generateStyleSheets:()=>{const R=[],$=e.defaultColorScheme||"light";function P(F,W){Object.keys(W).length&&R.push(typeof F=="string"?{[F]:{...W}}:F)}P(n(void 0,{...h}),h);const{[$]:N,...V}=v;if(N){const{css:F}=N,W=s[$]?.palette?.mode,_=!r&&W?{colorScheme:W,...F}:{...F};P(n($,{..._}),_)}return Object.entries(V).forEach(([F,{css:W}])=>{const _=s[F]?.palette?.mode,k=!r&&_?{colorScheme:_,...W}:{...W};P(n(F,{...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 C6(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 ln(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let u=0;u<a.length;u+=1){const f=a[u];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}const k6=up(),T6=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]}}),M6=e=>iC({props:e,name:"MuiContainer",defaultTheme:k6}),E6=(e,t)=>{const n=u=>sn(t,u),{classes:r,fixed:o,disableGutters:a,maxWidth:s}=e,l={root:["root",s&&`maxWidth${tt(String(s))}`,o&&"fixed",a&&"disableGutters"]};return ln(l,n,r)};function O6(e={}){const{createStyledComponent:t=T6,useThemeProps:n=M6,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:l})=>l.fixed&&Object.keys(s.breakpoints.values).reduce((u,f)=>{const c=f,h=s.breakpoints.values[c];return h!==0&&(u[s.breakpoints.up(c)]={maxWidth:`${h}${s.breakpoints.unit}`}),u},{}),({theme:s,ownerState:l})=>({...l.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[s.breakpoints.up(l.maxWidth)]:{maxWidth:`${s.breakpoints.values[l.maxWidth]}${s.breakpoints.unit}`}}}));return C.forwardRef(function(l,u){const f=n(l),{className:c,component:h="div",disableGutters:y=!1,fixed:b=!1,maxWidth:v="lg",classes:x,...w}=f,S={...f,component:h,disableGutters:y,fixed:b,maxWidth:v},M=E6(S,r);return m.jsx(o,{as:h,ownerState:S,className:Pt(M.root,c),ref:u,...w})})}function vv(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const R6=(e,t)=>e.filter(n=>t.includes(n)),fp=(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:R6(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((l,u)=>{r===a?Object.assign(l,u):l[e.up(a)]=u},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function zv(e){return`--Grid-${e}Spacing`}function Pb(e){return`--Grid-parent-${e}Spacing`}const BO="--Grid-columns",zf="--Grid-parent-columns",$6=({theme:e,ownerState:t})=>{const n={};return fp(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(${zf}) - (var(${zf}) - ${o}) * (var(${Pb("column")}) / var(${zf})))`}),r(n,a)}),n},P6=({theme:e,ownerState:t})=>{const n={};return fp(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(${zf}) + var(${Pb("column")}) * ${o} / var(${zf}))`}),r(n,a)}),n},D6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[BO]:12};return fp(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[BO]:a,"> *":{[zf]:a}})}),n},A6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return fp(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[zv("row")]:a,"> *":{[Pb("row")]:a}})}),n},j6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return fp(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[zv("column")]:a,"> *":{[Pb("column")]:a}})}),n},N6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return fp(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},I6=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${zv("row")}) var(${zv("column")})`}}),L6=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},z6=(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[]},F6=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function B6(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 U6=up(),_6=aC("div",{name:"MuiGrid",slot:"Root"});function V6(e){return iC({props:e,name:"MuiGrid",defaultTheme:U6})}function H6(e={}){const{createStyledComponent:t=_6,useThemeProps:n=V6,useTheme:r=dp,componentName:o="MuiGrid"}=e,a=(f,c)=>{const{container:h,direction:y,spacing:b,wrap:v,size:x}=f,w={root:["root",h&&"container",v!=="wrap"&&`wrap-xs-${String(v)}`,...F6(y),...L6(x),...h?z6(b,c.breakpoints.keys[0]):[]]};return ln(w,S=>sn(o,S),{})};function s(f,c,h=()=>!0){const y={};return f===null||(Array.isArray(f)?f.forEach((b,v)=>{b!==null&&h(b)&&c.keys[v]&&(y[c.keys[v]]=b)}):typeof f=="object"?Object.keys(f).forEach(b=>{const v=f[b];v!=null&&h(v)&&(y[b]=v)}):y[c.keys[0]]=f),y}const l=t(D6,j6,A6,$6,N6,I6,P6),u=C.forwardRef(function(c,h){const y=r(),b=n(c),v=Eb(b);B6(v,y.breakpoints);const{className:x,children:w,columns:S=12,container:M=!1,component:T="div",direction:R="row",wrap:$="wrap",size:P={},offset:N={},spacing:V=0,rowSpacing:F=V,columnSpacing:W=V,unstable_level:_=0,...k}=v,I=s(P,y.breakpoints,Q=>Q!==!1),z=s(N,y.breakpoints),H=c.columns??(_?void 0:S),A=c.spacing??(_?void 0:V),Z=c.rowSpacing??c.spacing??(_?void 0:F),K=c.columnSpacing??c.spacing??(_?void 0:W),te={...v,level:_,columns:H,container:M,direction:R,wrap:$,spacing:A,rowSpacing:Z,columnSpacing:K,size:I,offset:z},X=a(te,y);return m.jsx(l,{ref:h,as:T,ownerState:te,className:Pt(X.root,x),...k,children:C.Children.map(w,Q=>C.isValidElement(Q)&&vv(Q,["Grid"])&&M&&Q.props.container?C.cloneElement(Q,{unstable_level:Q.props?.unstable_level??_+1}):Q)})});return u.muiName="Grid",u}const W6=up(),q6=aC("div",{name:"MuiStack",slot:"Root"});function Y6(e){return iC({props:e,name:"MuiStack",defaultTheme:W6})}function G6(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 K6=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Q6=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...ds({theme:t},g1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Sb(t),o=Object.keys(t.breakpoints.values).reduce((u,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(u[f]=!0),u),{}),a=g1({values:e.direction,base:o}),s=g1({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,f,c)=>{if(!a[u]){const y=f>0?a[c[f-1]]:"column";a[u]=y}}),n=Fo(n,ds({theme:t},s,(u,f)=>e.useFlexGap?{gap:Qu(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${K6(f?a[f]:e.direction)}`]:Qu(r,u)}}))}return n=Q3(t.breakpoints,n),n};function dC(e={}){const{createStyledComponent:t=q6,useThemeProps:n=Y6,componentName:r="MuiStack"}=e,o=()=>ln({root:["root"]},u=>sn(r,u),{}),a=t(Q6);return C.forwardRef(function(u,f){const c=n(u),h=Eb(c),{component:y="div",direction:b="column",spacing:v=0,divider:x,children:w,className:S,useFlexGap:M=!1,...T}=h,R={direction:b,spacing:v,useFlexGap:M},$=o();return m.jsx(a,{as:y,ownerState:R,ref:f,className:Pt($.root,S),...T,children:x?G6(w,x):w})})}const X6=dC();function LA(){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:Im.white,default:Im.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 zA=LA();function FA(){return{text:{primary:Im.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:Im.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 bS=FA();function UO(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=$b(e.main,o):t==="dark"&&(e.dark=Rb(e.main,a)))}function _O(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 Z6(e="light"){return e==="dark"?{main:uf[200],light:uf[50],dark:uf[400]}:{main:uf[700],light:uf[400],dark:uf[800]}}function J6(e="light"){return e==="dark"?{main:cf[200],light:cf[50],dark:cf[400]}:{main:cf[500],light:cf[300],dark:cf[700]}}function eU(e="light"){return e==="dark"?{main:lf[500],light:lf[300],dark:lf[700]}:{main:lf[700],light:lf[400],dark:lf[800]}}function tU(e="light"){return e==="dark"?{main:df[400],light:df[300],dark:df[700]}:{main:df[700],light:df[500],dark:df[900]}}function nU(e="light"){return e==="dark"?{main:ff[400],light:ff[300],dark:ff[700]}:{main:ff[800],light:ff[500],dark:ff[900]}}function rU(e="light"){return e==="dark"?{main:Mh[400],light:Mh[300],dark:Mh[700]}:{main:"#ed6c02",light:Mh[500],dark:Mh[900]}}function oU(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||Z6(t),l=e.secondary||J6(t),u=e.error||eU(t),f=e.info||tU(t),c=e.success||nU(t),h=e.warning||rU(t);function y(w){return o?oU(w):e6(w,bS.text.primary)>=n?bS.text.primary:zA.text.primary}const b=({color:w,name:S,mainShade:M=500,lightShade:T=300,darkShade:R=700})=>{if(w={...w},!w.main&&w[M]&&(w.main=w[M]),!w.hasOwnProperty("main"))throw new Error(jl(11,S?` (${S})`:"",M));if(typeof w.main!="string")throw new Error(jl(12,S?` (${S})`:"",JSON.stringify(w.main)));return o?(_O(o,w,"light",T,r),_O(o,w,"dark",R,r)):(UO(w,"light",T,r),UO(w,"dark",R,r)),w.contrastText||(w.contrastText=y(w.main)),w};let v;return t==="light"?v=LA():t==="dark"&&(v=FA()),Fo({common:{...Im},mode:t,primary:b({color:s,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:h,name:"warning"}),info:b({color:f,name:"info"}),success:b({color:c,name:"success"}),grey:U4,contrastThreshold:n,getContrastText:y,augmentColor:b,tonalOffset:r,...v},a)}function aU(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 iU(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function sU(e){return Math.round(e*1e5)/1e5}const VO={textTransform:"uppercase"},HO='"Roboto", "Helvetica", "Arial", sans-serif';function BA(e,t){const{fontFamily:n=HO,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:c,...h}=typeof t=="function"?t(e):t,y=r/14,b=c||(w=>`${w/u*y}rem`),v=(w,S,M,T,R)=>({fontFamily:n,fontWeight:w,fontSize:b(S),lineHeight:M,...n===HO?{letterSpacing:`${sU(T/S)}em`}:{},...R,...f}),x={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,VO),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,VO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fo({htmlFontSize:u,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},h,{clone:!1})}const lU=.2,cU=.14,uU=.12;function Gr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lU})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cU})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${uU})`].join(",")}const dU=["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)],fU={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)"},pU={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function WO(e){return`${Math.round(e)}ms`}function hU(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function mU(e){const t={...fU,...e.easing},n={...pU,...e.duration};return{getAutoHeightDuration:hU,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:u=0,...f}=a;return(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:WO(s)} ${l} ${typeof u=="string"?u:WO(u)}`).join(",")},...e,easing:t,duration:n}}const gU={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yU(e){return Vs(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function UA(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];!yU(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 qO(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const vU=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 bU(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,vU(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${qO(n)})`:$b(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${qO(n)})`:Rb(t,n)}})}function xS(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:u,colorSpace:f,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(jl(20));const h=fC({...a,colorSpace:f}),y=up(e);let b=Fo(y,{mixins:iU(y.breakpoints,r),palette:h,shadows:dU.slice(),typography:BA(h,l),transitions:mU(s),zIndex:{...gU}});return b=Fo(b,c),b=t.reduce((v,x)=>Fo(v,x),b),b.unstable_sxConfig={...sg,...c?.unstable_sxConfig},b.unstable_sx=function(x){return Lc({sx:x,theme:this})},b.toRuntimeSource=UA,bU(b),b}function SS(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 xU=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=SS(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function _A(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function VA(e){return e==="dark"?xU:[]}function SU(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=fC({...t,colorSpace:o});return{palette:s,opacity:{..._A(s.mode),...n},overlays:r||VA(s.mode),...a}}function wU(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 CU=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],kU=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 CU(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 TU(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function st(e,t,n){!e[t]&&n&&(e[t]=n)}function cm(e){return typeof e!="string"||!e.startsWith("hsl")?e:RA(e)}function Ml(e,t){`${t}Channel`in e||(e[`${t}Channel`]=lm(cm(e[t])))}function MU(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{}},EU=(e="mui")=>IA(e);function x1(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=SU({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=xS({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{..._A(a),...n?.opacity},overlays:n?.overlays||VA(a)},l}function OU(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=wU,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...c}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),b=EU(a),{[y]:v,light:x,dark:w,...S}=n,M={...S};let T=v;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(jl(21,y));let R;s&&(R="oklch");const $=x1(R,M,T,c,y);x&&!M.light&&x1(R,M,x,void 0,"light"),w&&!M.dark&&x1(R,M,w,void 0,"dark");let P={defaultColorScheme:y,...$,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:b,colorSchemes:M,font:{...aU($.typography),...$.font},spacing:MU(c.spacing)};Object.keys(P.colorSchemes).forEach(_=>{const k=P.colorSchemes[_].palette,I=H=>{const A=H.split("-"),Z=A[1],K=A[2];return b(H,k[Z][K])};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 z(H,A,Z){if(R){let K;return H===Cu&&(K=`transparent ${((1-Z)*100).toFixed(0)}%`),H===Mr&&(K=`#000 ${(Z*100).toFixed(0)}%`),H===Er&&(K=`#fff ${(Z*100).toFixed(0)}%`),`color-mix(in ${R}, ${A}, ${K})`}return H(A,Z)}if(TU(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){st(k.Alert,"errorColor",z(Mr,k.error.light,.6)),st(k.Alert,"infoColor",z(Mr,k.info.light,.6)),st(k.Alert,"successColor",z(Mr,k.success.light,.6)),st(k.Alert,"warningColor",z(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",z(Er,k.error.light,.9)),st(k.Alert,"infoStandardBg",z(Er,k.info.light,.9)),st(k.Alert,"successStandardBg",z(Er,k.success.light,.9)),st(k.Alert,"warningStandardBg",z(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",z(Er,k.primary.main,.62)),st(k.LinearProgress,"secondaryBg",z(Er,k.secondary.main,.62)),st(k.LinearProgress,"errorBg",z(Er,k.error.main,.62)),st(k.LinearProgress,"infoBg",z(Er,k.info.main,.62)),st(k.LinearProgress,"successBg",z(Er,k.success.main,.62)),st(k.LinearProgress,"warningBg",z(Er,k.warning.main,.62)),st(k.Skeleton,"bg",R?z(Cu,k.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),st(k.Slider,"primaryTrack",z(Er,k.primary.main,.62)),st(k.Slider,"secondaryTrack",z(Er,k.secondary.main,.62)),st(k.Slider,"errorTrack",z(Er,k.error.main,.62)),st(k.Slider,"infoTrack",z(Er,k.info.main,.62)),st(k.Slider,"successTrack",z(Er,k.success.main,.62)),st(k.Slider,"warningTrack",z(Er,k.warning.main,.62));const H=R?z(Mr,k.background.default,.6825):Dy(k.background.default,.8);st(k.SnackbarContent,"bg",H),st(k.SnackbarContent,"color",js(()=>R?bS.text.primary:k.getContrastText(H))),st(k.SpeedDialAction,"fabHoverBg",Dy(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",z(Er,k.primary.main,.62)),st(k.Switch,"secondaryDisabledColor",z(Er,k.secondary.main,.62)),st(k.Switch,"errorDisabledColor",z(Er,k.error.main,.62)),st(k.Switch,"infoDisabledColor",z(Er,k.info.main,.62)),st(k.Switch,"successDisabledColor",z(Er,k.success.main,.62)),st(k.Switch,"warningDisabledColor",z(Er,k.warning.main,.62)),st(k.TableCell,"border",z(Er,z(Cu,k.divider,1),.88)),st(k.Tooltip,"bg",z(Cu,k.grey[700],.92))}if(k.mode==="dark"){st(k.Alert,"errorColor",z(Er,k.error.light,.6)),st(k.Alert,"infoColor",z(Er,k.info.light,.6)),st(k.Alert,"successColor",z(Er,k.success.light,.6)),st(k.Alert,"warningColor",z(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",z(Mr,k.error.light,.9)),st(k.Alert,"infoStandardBg",z(Mr,k.info.light,.9)),st(k.Alert,"successStandardBg",z(Mr,k.success.light,.9)),st(k.Alert,"warningStandardBg",z(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",z(Mr,k.primary.main,.5)),st(k.LinearProgress,"secondaryBg",z(Mr,k.secondary.main,.5)),st(k.LinearProgress,"errorBg",z(Mr,k.error.main,.5)),st(k.LinearProgress,"infoBg",z(Mr,k.info.main,.5)),st(k.LinearProgress,"successBg",z(Mr,k.success.main,.5)),st(k.LinearProgress,"warningBg",z(Mr,k.warning.main,.5)),st(k.Skeleton,"bg",R?z(Cu,k.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),st(k.Slider,"primaryTrack",z(Mr,k.primary.main,.5)),st(k.Slider,"secondaryTrack",z(Mr,k.secondary.main,.5)),st(k.Slider,"errorTrack",z(Mr,k.error.main,.5)),st(k.Slider,"infoTrack",z(Mr,k.info.main,.5)),st(k.Slider,"successTrack",z(Mr,k.success.main,.5)),st(k.Slider,"warningTrack",z(Mr,k.warning.main,.5));const H=R?z(Er,k.background.default,.985):Dy(k.background.default,.98);st(k.SnackbarContent,"bg",H),st(k.SnackbarContent,"color",js(()=>R?zA.text.primary:k.getContrastText(H))),st(k.SpeedDialAction,"fabHoverBg",Dy(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",z(Mr,k.primary.main,.55)),st(k.Switch,"secondaryDisabledColor",z(Mr,k.secondary.main,.55)),st(k.Switch,"errorDisabledColor",z(Mr,k.error.main,.55)),st(k.Switch,"infoDisabledColor",z(Mr,k.info.main,.55)),st(k.Switch,"successDisabledColor",z(Mr,k.success.main,.55)),st(k.Switch,"warningDisabledColor",z(Mr,k.warning.main,.55)),st(k.TableCell,"border",z(Mr,z(Cu,k.divider,1),.68)),st(k.Tooltip,"bg",z(Cu,k.grey[700],.92))}Ml(k.background,"default"),Ml(k.background,"paper"),Ml(k.common,"background"),Ml(k.common,"onBackground"),Ml(k,"divider"),Object.keys(k).forEach(H=>{const A=k[H];H!=="tonalOffset"&&A&&typeof A=="object"&&(A.main&&st(k[H],"mainChannel",lm(cm(A.main))),A.light&&st(k[H],"lightChannel",lm(cm(A.light))),A.dark&&st(k[H],"darkChannel",lm(cm(A.dark))),A.contrastText&&st(k[H],"contrastTextChannel",lm(cm(A.contrastText))),H==="text"&&(Ml(k[H],"primary"),Ml(k[H],"secondary")),H==="action"&&(A.active&&Ml(k[H],"active"),A.selected&&Ml(k[H],"selected")))})}),P=t.reduce((_,k)=>Fo(_,k),P);const N={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:kU(P),enableContrastVars:s},{vars:V,generateThemeVars:F,generateStyleSheets:W}=w6(P,N);return P.vars=V,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([_,k])=>{P[_]=k}),P.generateThemeVars=F,P.generateStyleSheets=W,P.generateSpacing=function(){return Jw(c.spacing,Sb(this))},P.getColorSchemeSelector=C6(u),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...sg,...c?.unstable_sxConfig},P.unstable_sx=function(k){return Lc({sx:k,theme:this})},P.toRuntimeSource=UA,P}function YO(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:fC({...n===!0?{}:n.palette,mode:t})})}function Db(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",u=o?.[l],f={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return xS(e,...t);let c=n;"palette"in e||f[l]&&(f[l]!==!0?c=f[l].palette:l==="dark"&&(c={mode:"dark"}));const h=xS({...e,palette:c},...t);return h.defaultColorScheme=l,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},YO(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},YO(h,"light",f.light)),h}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),OU({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const pC=Db();function Wc(){const e=dp(pC);return e[Ys]||e}function Ab(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ga=e=>Ab(e)&&e!=="classes",ot=OA({themeId:Ys,defaultTheme:pC,rootShouldForwardProp:ga});function RU({theme:e,...t}){const n=Ys in e?e[Ys]:void 0;return m.jsx(AA,{...t,themeId:n?Ys:void 0,theme:n||e})}const Ay={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:$U}=b6({themeId:Ys,theme:()=>Db({cssVariables:!0}),colorSchemeStorageKey:Ay.colorSchemeStorageKey,modeStorageKey:Ay.modeStorageKey,defaultColorScheme:{light:Ay.defaultLightColorScheme,dark:Ay.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:BA(e.palette,e.typography)};return t.unstable_sx=function(r){return Lc({sx:r,theme:this})},t}}),PU=$U;function DU({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?m.jsx(RU,{theme:n,...t}):m.jsx(PU,{theme:e,...t})}function GO(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function AU(e){return m.jsx(nC,{...e,defaultTheme:pC,themeId:Ys})}function hC(e){return function(n){return m.jsx(AU,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function jU(){return Eb}const Jt=jA;function un(e){return l6(e)}function NU(e){return sn("MuiSvgIcon",e)}cn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const IU=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${tt(t)}`,`fontSize${tt(n)}`]};return ln(o,NU,r)},LU=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}}]}))),wS=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:c=!1,titleAccess:h,viewBox:y="0 0 24 24",...b}=r,v=C.isValidElement(o)&&o.type==="svg",x={...r,color:s,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:y,hasSvgAsChild:v},w={};c||(w.viewBox=y);const S=IU(x);return m.jsxs(LU,{as:l,className:Pt(S.root,a),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...w,...b,...v&&o.props,ownerState:x,children:[v?o.props.children:o,h?m.jsx("title",{children:h}):null]})});wS.muiName="SvgIcon";function za(e,t){function n(r,o){return m.jsx(wS,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=wS.muiName,C.memo(C.forwardRef(n))}function HA(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 Nl(e){return To(e).defaultView||window}function CS(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),u=a?t:s,f=C.useCallback(c=>{a||l(c)},[]);return[u,f]}function Ro(e){const t=C.useRef(e);return Ia(()=>{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 zU(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function WA(e,t){if(!e)return t;function n(s,l){const u={};return Object.keys(l).forEach(f=>{zU(f,l[f])&&typeof s[f]=="function"&&(u[f]=(...c)=>{s[f](...c),l[f](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...l}):e,f=Pt(s?.className,l?.className,u?.className),c=n(u,l);return{...l,...u,...c,...!!f&&{className:f},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=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 qA(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 kS(e,t){return kS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kS(e,t)}function YA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kS(e,t)}const KO={disabled:!1},Fv=an.createContext(null);var FU=function(t){return t.scrollTop},um="unmounted",Pu="exited",Du="entering",Ef="entered",TS="exiting",nl=(function(e){YA(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=Pu,a.appearStatus=Du):u=Ef:r.unmountOnExit||r.mountOnEnter?u=um:u=Pu,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===um?{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=TS)}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&&FU(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pu&&this.setState({status:um})},n.performEnter=function(o){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[Rc.findDOMNode(this),l],f=u[0],c=u[1],h=this.getTimeouts(),y=l?h.appear:h.enter;if(!o&&!s||KO.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||KO.disabled){this.safeSetState({status:Pu},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:TS},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 u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=u[0],c=u[1];this.props.addEndListener(f,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===um)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=qA(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return an.createElement(Fv.Provider,{value:null},typeof s=="function"?s(o,l):an.cloneElement(an.Children.only(s),l))},t})(an.Component);nl.contextType=Fv;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=um;nl.EXITED=Pu;nl.ENTERING=Du;nl.ENTERED=Ef;nl.EXITING=TS;function BU(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 UU(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var f=r[u][s];l[r[u][s]]=n(f)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Fu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function _U(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 VU(e,t,n){var r=mC(e.children),o=UU(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,u=a in r,f=t[a],c=C.isValidElement(f)&&!f.props.in;u&&(!l||c)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Fu(s,"exit",e),enter:Fu(s,"enter",e)}):!u&&l&&!c?o[a]=C.cloneElement(s,{in:!1}):u&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:Fu(s,"exit",e),enter:Fu(s,"enter",e)}))}}),o}var HU=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},WU={component:"div",childFactory:function(t){return t}},gC=(function(e){YA(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(BU(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var s=a.children,l=a.handleExited,u=a.firstRender;return{children:u?_U(o,l):VU(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 u=jv({},l.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,a=o.component,s=o.childFactory,l=qA(o,["component","childFactory"]),u=this.state.contextValue,f=HU(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?an.createElement(Fv.Provider,{value:u},f):an.createElement(Fv.Provider,{value:u},an.createElement(a,l,f))},t})(an.Component);gC.propTypes={};gC.defaultProps=WU;const QO={};function GA(e,t){const n=C.useRef(QO);return n.current===QO&&(n.current=e(t)),n}const qU=[];function YU(e){C.useEffect(e,qU)}class jb{static create(){return new jb}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=GA(jb.create).current;return YU(e.disposeEffect),e}const KA=e=>e.scrollTop;function Bv(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 GU(e){return sn("MuiPaper",e)}cn("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 KU=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ln(a,GU,o)},QU=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)"}}]}))),La=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiPaper"}),o=Wc(),{className:a,component:s="div",elevation:l=1,square:u=!1,variant:f="elevation",...c}=r,h={...r,component:s,elevation:l,square:u,variant:f},y=KU(h);return m.jsx(QU,{as:s,ownerState:h,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",SS(l))}, ${fs("#fff",SS(l))})`}},...c.style}})});function jc(e){return typeof e=="string"}function QA(e,t,n){return e===void 0||jc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function XA(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 XO(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 ZA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const b=Pt(n?.className,a,o?.className,r?.className),v={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return b.length>0&&(x.className=b),Object.keys(v).length>0&&(x.style=v),{props:x,internalRef:void 0}}const s=Wu({...o,...r}),l=XO(r),u=XO(o),f=t(s),c=Pt(f?.className,n?.className,a,o?.className,r?.className),h={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...u,...l};return c.length>0&&(y.className=c),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:f.ref}}function Dn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:f,slots:c={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,b=c[e]||r,v=XA(h[e],o),{props:{component:x,...w},internalRef:S}=ZA({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:v}),M=po(S,v?.ref,t.ref),T=e==="root"?x||f:x,R=QA(b,{...e==="root"&&!f&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...w,...T&&!l&&{as:T},...T&&l&&{component:T},ref:M},o);return[b,R]}function Fc(e){try{return e.matches(":focus-visible")}catch{}return!1}class Uv{static create(){return new Uv}static use(){const t=GA(Uv.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=ZU(),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 XU(){return Uv.use()}function ZU(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function JU(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:f}=e,[c,h]=C.useState(!1),y=Pt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},v=Pt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&h(!0),C.useEffect(()=>{if(!l&&u!=null){const x=setTimeout(u,f);return()=>{clearTimeout(x)}}},[u,l,f]),m.jsx("span",{className:y,style:b,children:m.jsx("span",{className:v})})}const Pi=cn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),MS=550,e_=80,t_=pi`
112
- 0% {
113
- transform: scale(0);
114
- opacity: 0.1;
115
- }
116
-
117
- 100% {
118
- transform: scale(1);
119
- opacity: 0.3;
120
- }
121
- `,n_=pi`
122
- 0% {
123
- opacity: 1;
124
- }
125
-
126
- 100% {
127
- opacity: 0;
128
- }
129
- `,r_=pi`
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
- `,o_=ot("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),a_=ot(JU,{name:"MuiTouchRipple",slot:"Ripple"})`
142
- opacity: 0;
143
- position: absolute;
144
-
145
- &.${Pi.rippleVisible} {
146
- opacity: 0.3;
147
- transform: scale(1);
148
- animation-name: ${t_};
149
- animation-duration: ${MS}ms;
150
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
151
- }
152
-
153
- &.${Pi.ripplePulsate} {
154
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
155
- }
156
-
157
- & .${Pi.child} {
158
- opacity: 1;
159
- display: block;
160
- width: 100%;
161
- height: 100%;
162
- border-radius: 50%;
163
- background-color: currentColor;
164
- }
165
-
166
- & .${Pi.childLeaving} {
167
- opacity: 0;
168
- animation-name: ${n_};
169
- animation-duration: ${MS}ms;
170
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
171
- }
172
-
173
- & .${Pi.childPulsate} {
174
- position: absolute;
175
- /* @noflip */
176
- left: 0px;
177
- top: 0;
178
- animation-name: ${r_};
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
- `,i_=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...l}=r,[u,f]=C.useState([]),c=C.useRef(0),h=C.useRef(null);C.useEffect(()=>{h.current&&(h.current(),h.current=null)},[u]);const y=C.useRef(!1),b=Bu(),v=C.useRef(null),x=C.useRef(null),w=C.useCallback(R=>{const{pulsate:$,rippleX:P,rippleY:N,rippleSize:V,cb:F}=R;f(W=>[...W,m.jsx(a_,{classes:{ripple:Pt(a.ripple,Pi.ripple),rippleVisible:Pt(a.rippleVisible,Pi.rippleVisible),ripplePulsate:Pt(a.ripplePulsate,Pi.ripplePulsate),child:Pt(a.child,Pi.child),childLeaving:Pt(a.childLeaving,Pi.childLeaving),childPulsate:Pt(a.childPulsate,Pi.childPulsate)},timeout:MS,pulsate:$,rippleX:P,rippleY:N,rippleSize:V},c.current)]),c.current+=1,h.current=F},[a]),S=C.useCallback((R={},$={},P=()=>{})=>{const{pulsate:N=!1,center:V=o||$.pulsate,fakeElement:F=!1}=$;if(R?.type==="mousedown"&&y.current){y.current=!1;return}R?.type==="touchstart"&&(y.current=!0);const W=F?null:x.current,_=W?W.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,I,z;if(V||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)k=Math.round(_.width/2),I=Math.round(_.height/2);else{const{clientX:H,clientY:A}=R.touches&&R.touches.length>0?R.touches[0]:R;k=Math.round(H-_.left),I=Math.round(A-_.top)}if(V)z=Math.sqrt((2*_.width**2+_.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((W?W.clientWidth:0)-k),k)*2+2,A=Math.max(Math.abs((W?W.clientHeight:0)-I),I)*2+2;z=Math.sqrt(H**2+A**2)}R?.touches?v.current===null&&(v.current=()=>{w({pulsate:N,rippleX:k,rippleY:I,rippleSize:z,cb:P})},b.start(e_,()=>{v.current&&(v.current(),v.current=null)})):w({pulsate:N,rippleX:k,rippleY:I,rippleSize:z,cb:P})},[o,w,b]),M=C.useCallback(()=>{S({},{pulsate:!0})},[S]),T=C.useCallback((R,$)=>{if(b.clear(),R?.type==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{T(R,$)});return}v.current=null,f(P=>P.length>0?P.slice(1):P),h.current=$},[b]);return C.useImperativeHandle(n,()=>({pulsate:M,start:S,stop:T}),[M,S,T]),m.jsx(o_,{className:Pt(Pi.root,a.root,s),ref:x,...l,children:m.jsx(gC,{component:null,exit:!0,children:u})})});function s_(e){return sn("MuiButtonBase",e)}const l_=cn("MuiButtonBase",["root","disabled","focusVisible"]),c_=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ln({root:["root",t&&"disabled",n&&"focusVisible"]},s_,o);return n&&r&&(s.root+=` ${r}`),s},u_=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"},[`&.${l_.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Xu=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,component:u="button",disabled:f=!1,disableRipple:c=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:b,LinkComponent:v="a",onBlur:x,onClick:w,onContextMenu:S,onDragLeave:M,onFocus:T,onFocusVisible:R,onKeyDown:$,onKeyUp:P,onMouseDown:N,onMouseLeave:V,onMouseUp:F,onTouchEnd:W,onTouchMove:_,onTouchStart:k,tabIndex:I=0,TouchRippleProps:z,touchRippleRef:H,type:A,...Z}=r,K=C.useRef(null),te=XU(),X=po(te.ref,H),[Q,ne]=C.useState(!1);f&&Q&&ne(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),K.current.focus()}}),[]);const ie=te.shouldMount&&!c&&!f;C.useEffect(()=>{Q&&y&&!c&&te.pulsate()},[c,y,Q,te]);const pe=El(te,"start",N,h),oe=El(te,"stop",S,h),ae=El(te,"stop",M,h),ce=El(te,"stop",F,h),me=El(te,"stop",ct=>{Q&&ct.preventDefault(),V&&V(ct)},h),ye=El(te,"start",k,h),we=El(te,"stop",W,h),Ce=El(te,"stop",_,h),Te=El(te,"stop",ct=>{Fc(ct.target)||ne(!1),x&&x(ct)},!1),ue=Ro(ct=>{K.current||(K.current=ct.currentTarget),Fc(ct.target)&&(ne(!0),R&&R(ct)),T&&T(ct)}),ke=()=>{const ct=K.current;return u&&u!=="button"&&!(ct.tagName==="A"&&ct.href)},Ge=Ro(ct=>{y&&!ct.repeat&&Q&&ct.key===" "&&te.stop(ct,()=>{te.start(ct)}),ct.target===ct.currentTarget&&ke()&&ct.key===" "&&ct.preventDefault(),$&&$(ct),ct.target===ct.currentTarget&&ke()&&ct.key==="Enter"&&!f&&(ct.preventDefault(),w&&w(ct))}),ze=Ro(ct=>{y&&ct.key===" "&&Q&&!ct.defaultPrevented&&te.stop(ct,()=>{te.pulsate(ct)}),P&&P(ct),w&&ct.target===ct.currentTarget&&ke()&&ct.key===" "&&!ct.defaultPrevented&&w(ct)});let Ne=u;Ne==="button"&&(Z.href||Z.to)&&(Ne=v);const le={};Ne==="button"?(le.type=A===void 0?"button":A,le.disabled=f):(!Z.href&&!Z.to&&(le.role="button"),f&&(le["aria-disabled"]=f));const xt=po(n,K),Fe={...r,centerRipple:a,component:u,disabled:f,disableRipple:c,disableTouchRipple:h,focusRipple:y,tabIndex:I,focusVisible:Q},it=c_(Fe);return m.jsxs(u_,{as:Ne,className:Pt(it.root,l),ownerState:Fe,onBlur:Te,onClick:w,onContextMenu:oe,onFocus:ue,onKeyDown:Ge,onKeyUp:ze,onMouseDown:pe,onMouseLeave:me,onMouseUp:ce,onDragLeave:ae,onTouchEnd:we,onTouchMove:Ce,onTouchStart:ye,ref:xt,tabIndex:f?-1:I,type:A,...le,...Z,children:[s,ie?m.jsx(i_,{ref:X,center:a,...z}):null]})});function El(e,t,n,r=!1){return Ro(o=>(n&&n(o),r||e[t](o),!0))}function d_(e){return typeof e.main=="string"}function f_(e,t=[]){if(!d_(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&&f_(t,e)}function p_(e){return sn("MuiAlert",e)}const ZO=cn("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 h_(e){return sn("MuiCircularProgress",e)}cn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const bc=44,ES=pi`
185
- 0% {
186
- transform: rotate(0deg);
187
- }
188
-
189
- 100% {
190
- transform: rotate(360deg);
191
- }
192
- `,OS=pi`
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
- `,m_=typeof ES!="string"?Vc`
208
- animation: ${ES} 1.4s linear infinite;
209
- `:null,g_=typeof OS!="string"?Vc`
210
- animation: ${OS} 1.4s ease-in-out infinite;
211
- `:null,y_=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 ln(a,h_,t)},v_=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:m_||{animation:`${ES} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ir()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),b_=ot("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),x_=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:g_||{animation:`${OS} 1.4s ease-in-out infinite`}}]}))),cg=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:l=40,style:u,thickness:f=3.6,value:c=0,variant:h="indeterminate",...y}=r,b={...r,color:a,disableShrink:s,size:l,thickness:f,value:c,variant:h},v=y_(b),x={},w={},S={};if(h==="determinate"){const M=2*Math.PI*((bc-f)/2);x.strokeDasharray=M.toFixed(3),S["aria-valuenow"]=Math.round(c),x.strokeDashoffset=`${((100-c)/100*M).toFixed(3)}px`,w.transform="rotate(-90deg)"}return m.jsx(v_,{className:Pt(v.root,o),style:{width:l,height:l,...w,...u},ownerState:b,ref:n,role:"progressbar",...S,...y,children:m.jsx(b_,{className:v.svg,ownerState:b,viewBox:`${bc/2} ${bc/2} ${bc} ${bc}`,children:m.jsx(x_,{className:v.circle,style:x,ownerState:b,cx:bc,cy:bc,r:(bc-f)/2,fill:"none",strokeWidth:f})})})});function S_(e){return sn("MuiIconButton",e)}const JO=cn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),w_=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 ln(l,S_,t)},C_=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)}}],[`&.${JO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${JO.loading}`]:{color:"transparent"}}))),k_=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"}}]})),Qr=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:c="medium",id:h,loading:y=null,loadingIndicator:b,...v}=r,x=Hc(h),w=b??m.jsx(cg,{"aria-labelledby":x,color:"inherit",size:16}),S={...r,edge:o,color:l,disabled:u,disableFocusRipple:f,loading:y,loadingIndicator:w,size:c},M=w_(S);return m.jsxs(C_,{id:y?x:h,className:Pt(M.root,s),centerRipple:!0,focusRipple:!f,disabled:u||y,ref:n,...v,ownerState:S,children:[typeof y=="boolean"&&m.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:m.jsx(k_,{className:M.loadingIndicator,ownerState:S,children:y&&w})}),a]})}),T_=za(m.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"})),M_=za(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),E_=za(m.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"})),O_=za(m.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"})),JA=za(m.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"})),R_=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 ln(a,p_,o)},$_=ot(La,{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),[`& .${ZO.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}`,[`& .${ZO.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)}}}))]}})),P_=ot("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),D_=ot("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),A_=ot("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),e2={success:m.jsx(T_,{fontSize:"inherit"}),warning:m.jsx(M_,{fontSize:"inherit"}),error:m.jsx(E_,{fontSize:"inherit"}),info:m.jsx(O_,{fontSize:"inherit"})},$c=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiAlert"}),{action:o,children:a,className:s,closeText:l="Close",color:u,components:f={},componentsProps:c={},icon:h,iconMapping:y=e2,onClose:b,role:v="alert",severity:x="success",slotProps:w={},slots:S={},variant:M="standard",...T}=r,R={...r,color:u,severity:x,variant:M,colorSeverity:u||x},$=R_(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:$_,externalForwardedProps:{...P,...T},ownerState:R,additionalProps:{role:v,elevation:0}}),[F,W]=Dn("icon",{className:$.icon,elementType:P_,externalForwardedProps:P,ownerState:R}),[_,k]=Dn("message",{className:$.message,elementType:D_,externalForwardedProps:P,ownerState:R}),[I,z]=Dn("action",{className:$.action,elementType:A_,externalForwardedProps:P,ownerState:R}),[H,A]=Dn("closeButton",{elementType:Qr,externalForwardedProps:P,ownerState:R}),[Z,K]=Dn("closeIcon",{elementType:JA,externalForwardedProps:P,ownerState:R});return m.jsxs(N,{...V,children:[h!==!1?m.jsx(F,{...W,children:h||y[x]||e2[x]}):null,m.jsx(_,{...k,children:a}),o!=null?m.jsx(I,{...z,children:o}):null,o==null&&b?m.jsx(I,{...z,children:m.jsx(H,{size:"small","aria-label":l,title:l,color:"inherit",onClick:b,...A,children:m.jsx(Z,{fontSize:"small",...K})})}):null]})});function j_(e){return sn("MuiTypography",e)}const t2=cn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),N_={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},I_=jU(),L_=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 ln(l,j_,s)},z_=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}}]}))),n2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},jt=C.forwardRef(function(t,n){const{color:r,...o}=un({props:t,name:"MuiTypography"}),a=!N_[r],s=I_({...o,...a&&{color:r}}),{align:l="inherit",className:u,component:f,gutterBottom:c=!1,noWrap:h=!1,paragraph:y=!1,variant:b="body1",variantMapping:v=n2,...x}=s,w={...s,align:l,color:r,className:u,component:f,gutterBottom:c,noWrap:h,paragraph:y,variant:b,variantMapping:v},S=f||(y?"p":v[b]||n2[b])||"span",M=L_(w);return m.jsx(z_,{as:S,ref:n,className:Pt(M.root,u),...x,ownerState:w,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...x.style}})}),F_=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function r2({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 o2(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function B_(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:u,getOptionLabel:f})=>{let c=s?u.trim():u;n&&(c=c.toLowerCase()),t&&(c=o2(c));const h=c?l.filter(y=>{let b=(a||f)(y);return n&&(b=b.toLowerCase()),t&&(b=o2(b)),o==="start"?b.startsWith(c):b.includes(c)}):l;return typeof r=="number"?h.slice(0,r):h}}const U_=B_(),a2=5,__=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),V_=[];function i2(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function H_(e){const{unstable_isActiveElementInListbox:t=__,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:u=!1,componentName:f="useAutocomplete",defaultValue:c=e.multiple?V_:null,disableClearable:h=!1,disableCloseOnSelect:y=!1,disabled:b,disabledItemsFocusable:v=!1,disableListWrap:x=!1,filterOptions:w=U_,filterSelectedOptions:S=!1,freeSolo:M=!1,getOptionDisabled:T,getOptionKey:R,getOptionLabel:$=de=>de.label??de,groupBy:P,handleHomeEndKeys:N=!e.freeSolo,id:V,includeInputInList:F=!1,inputValue:W,isOptionEqualToValue:_=(de,fe)=>de===fe,multiple:k=!1,onChange:I,onClose:z,onHighlightChange:H,onInputChange:A,onOpen:Z,open:K,openOnFocus:te=!1,options:X,readOnly:Q=!1,renderValue:ne,selectOnFocus:ie=!e.freeSolo,value:pe}=e,oe=Hc(V);let ae=$;ae=de=>{const fe=$(de);return typeof fe!="string"?String(fe):fe};const ce=C.useRef(!1),me=C.useRef(!0),ye=C.useRef(null),we=C.useRef(null),[Ce,Te]=C.useState(null),[ue,ke]=C.useState(-1),Ge=o?0:-1,ze=C.useRef(Ge),Ne=C.useRef(i2(c??pe,k,ae)).current,[le,xt]=Ac({controlled:pe,default:c,name:f}),[Fe,it]=Ac({controlled:W,default:Ne,name:f,state:"inputValue"}),[ct,Ft]=C.useState(!1),_t=C.useCallback((de,fe,Ve)=>{if(!(k?le.length<fe.length:fe!==null)&&!l)return;const Ke=i2(fe,k,ae,ne);Fe!==Ke&&(it(Ke),A&&A(de,Ke,Ve))},[ae,Fe,k,A,it,l,le,ne]),[at,Ze]=Ac({controlled:K,default:!1,name:f,state:"open"}),[rt,je]=C.useState(!0),he=!k&&le!=null&&Fe===ae(le),We=at&&!Q,Me=We?w(X.filter(de=>!(S&&(k?le:[le]).some(fe=>fe!==null&&_(de,fe)))),{inputValue:he&&rt?"":Fe,getOptionLabel:ae}):[],kt=F_({filteredOptions:Me,value:le,inputValue:Fe});C.useEffect(()=>{const de=le!==kt.value;ct&&!de||M&&!de||_t(null,le,"reset")},[le,_t,ct,kt.value,M]);const Mt=at&&Me.length>0&&!Q,gt=Ro(de=>{if(de===-1)ye.current.focus();else{const fe=ne?"data-item-index":"data-tag-index";Ce.querySelector(`[${fe}="${de}"]`).focus()}});C.useEffect(()=>{k&&ue>le.length-1&&(ke(-1),gt(-1))},[le,k,ue,gt]);function ut(de,fe){if(!we.current||de<0||de>=Me.length)return-1;let Ve=de;for(;;){const vt=we.current.querySelector(`[data-option-index="${Ve}"]`),Ke=v?!1:!vt||vt.disabled||vt.getAttribute("aria-disabled")==="true";if(vt&&vt.hasAttribute("tabindex")&&!Ke)return Ve;if(fe==="next"?Ve=(Ve+1)%Me.length:Ve=(Ve-1+Me.length)%Me.length,Ve===de)return-1}}const $t=Ro(({event:de,index:fe,reason:Ve})=>{if(ze.current=fe,fe===-1?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant",`${oe}-option-${fe}`),H&&["mouse","keyboard","touch"].includes(Ve)&&H(de,fe===-1?null:Me[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,pn=Ke.clientHeight+Ke.scrollTop,ge=nn.offsetTop+nn.offsetHeight;ge>pn?Ke.scrollTop=ge-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:de,diff:fe,direction:Ve="next",reason:vt})=>{if(!We)return;const Zt=ut((()=>{const nn=Me.length-1;if(fe==="reset")return Ge;if(fe==="start")return 0;if(fe==="end")return nn;const pn=ze.current+fe;return pn<0?pn===-1&&F?-1:x&&ze.current!==-1||Math.abs(fe)>1?0:nn:pn>nn?pn===nn+1&&F?-1:x||Math.abs(fe)>1?nn:0:pn})(),Ve);if($t({index:Zt,reason:vt,event:de}),r&&fe!=="reset")if(Zt===-1)ye.current.value=Fe;else{const nn=ae(Me[Zt]);ye.current.value=nn,nn.toLowerCase().indexOf(Fe.toLowerCase())===0&&Fe.length>0&&ye.current.setSelectionRange(Fe.length,nn.length)}}),dn=!r2({array1:kt.filteredOptions,array2:Me,parser:ae}),vn=()=>{const de=(fe,Ve)=>{const vt=fe?ae(fe):"",Ke=Ve?ae(Ve):"";return vt===Ke};if(ze.current!==-1&&!r2({array1:kt.filteredOptions,array2:Me,parser:ae})&&kt.inputValue===Fe&&(k?le.length===kt.value.length&&kt.value.every((fe,Ve)=>ae(le[Ve])===ae(fe)):de(kt.value,le))){const fe=kt.filteredOptions[ze.current];if(fe)return Me.findIndex(Ve=>ae(Ve)===ae(fe))}return-1},Bn=C.useCallback(()=>{if(!We)return;const de=vn();if(de!==-1){ze.current=de;return}const fe=k?le[0]:le;if(Me.length===0||fe==null){Vt({diff:"reset"});return}if(we.current){if(fe!=null){const Ve=Me[ze.current];if(k&&Ve&&le.findIndex(Ke=>_(Ve,Ke))!==-1)return;const vt=Me.findIndex(Ke=>_(Ke,fe));vt===-1?Vt({diff:"reset"}):$t({index:vt});return}if(ze.current>=Me.length-1){$t({index:Me.length-1});return}$t({index:ze.current})}},[Me.length,k?!1:le,S,Vt,$t,We,Fe,k]),Wn=Ro(de=>{CS(we,de),de&&Bn()});C.useEffect(()=>{dn&&Bn()},[Bn,dn]);const Qt=de=>{at||(Ze(!0),je(!0),Z&&Z(de))},In=(de,fe)=>{at&&(Ze(!1),z&&z(de,fe))},be=(de,fe,Ve,vt)=>{if(k){if(le.length===fe.length&&le.every((Ke,Zt)=>Ke===fe[Zt]))return}else if(le===fe)return;I&&I(de,fe,Ve,vt),xt(fe)},zn=C.useRef(!1),En=(de,fe,Ve="selectOption",vt="options")=>{let Ke=Ve,Zt=fe;if(k){Zt=Array.isArray(le)?le.slice():[];const nn=Zt.findIndex(pn=>_(fe,pn));nn===-1?Zt.push(fe):vt!=="freeSolo"&&(Zt.splice(nn,1),Ke="removeOption")}_t(de,Zt,Ke),be(de,Zt,Ke,{option:fe}),!y&&(!de||!de.ctrlKey&&!de.metaKey)&&In(de,Ke),(s===!0||s==="touch"&&zn.current||s==="mouse"&&!zn.current)&&ye.current.blur()};function Xt(de,fe){if(de===-1)return-1;let Ve=de;for(;;){if(fe==="next"&&Ve===le.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 se=(de,fe)=>{if(!k)return;Fe===""&&In(de,"toggleInput");let Ve=ue;ue===-1?Fe===""&&fe==="previous"&&(Ve=le.length-1):(Ve+=fe==="next"?1:-1,Ve<0&&(Ve=0),Ve===le.length&&(Ve=-1)),Ve=Xt(Ve,fe),ke(Ve),gt(Ve)},Pe=de=>{ce.current=!0,it(""),A&&A(de,"","clear"),be(de,k?[]:null,"clear")},Le=de=>fe=>{if(de.onKeyDown&&de.onKeyDown(fe),!fe.defaultMuiPrevented&&(ue!==-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:-a2,direction:"previous",reason:"keyboard",event:fe}),Qt(fe);break;case"PageDown":fe.preventDefault(),Vt({diff:a2,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):se(fe,"previous");break;case"ArrowRight":!k&&ne?gt(-1):se(fe,"next");break;case"Enter":if(ze.current!==-1&&We){const Ve=Me[ze.current],vt=T?T(Ve):!1;if(fe.preventDefault(),vt)return;En(fe,Ve,"selectOption"),r&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else M&&Fe!==""&&he===!1&&(k&&fe.preventDefault(),En(fe,Fe,"createOption","freeSolo"));break;case"Escape":We?(fe.preventDefault(),fe.stopPropagation(),In(fe,"escape")):u&&(Fe!==""||k&&le.length>0||ne)&&(fe.preventDefault(),fe.stopPropagation(),Pe(fe));break;case"Backspace":if(k&&!Q&&Fe===""&&le.length>0){const Ve=ue===-1?le.length-1:ue,vt=le.slice();vt.splice(Ve,1),be(fe,vt,"removeOption",{option:le[Ve]})}!k&&ne&&!Q&&(xt(null),gt(-1));break;case"Delete":if(k&&!Q&&Fe===""&&le.length>0&&ue!==-1){const Ve=ue,vt=le.slice();vt.splice(Ve,1),be(fe,vt,"removeOption",{option:le[Ve]})}!k&&ne&&!Q&&(xt(null),gt(-1));break}},qe=de=>{Ft(!0),te&&!ce.current&&Qt(de)},dt=de=>{if(t(we)){ye.current.focus();return}Ft(!1),me.current=!0,ce.current=!1,a&&ze.current!==-1&&We?En(de,Me[ze.current],"blur"):a&&M&&Fe!==""?En(de,Fe,"blur","freeSolo"):l&&_t(de,le,"blur"),In(de,"blur")},It=de=>{const fe=de.target.value;Fe!==fe&&(it(fe),je(!1),A&&A(de,fe,"input")),fe===""?!h&&!k&&be(de,null,"clear"):Qt(de)},Bt=de=>{const fe=Number(de.currentTarget.getAttribute("data-option-index"));ze.current!==fe&&$t({event:de,index:fe,reason:"mouse"})},Dt=de=>{$t({event:de,index:Number(de.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},mt=de=>{const fe=Number(de.currentTarget.getAttribute("data-option-index"));En(de,Me[fe],"selectOption"),zn.current=!1},At=de=>fe=>{const Ve=le.slice();Ve.splice(de,1),be(fe,Ve,"removeOption",{option:le[de]})},Et=de=>{be(de,null,"removeOption",{option:le})},wt=de=>{at?In(de,"toggleInput"):Qt(de)},Wt=de=>{de.currentTarget.contains(de.target)&&de.target.getAttribute("id")!==oe&&de.preventDefault()},On=de=>{de.currentTarget.contains(de.target)&&(ye.current.focus(),ie&&me.current&&ye.current.selectionEnd-ye.current.selectionStart===0&&ye.current.select(),me.current=!1)},qn=de=>{!b&&(Fe===""||!at)&&wt(de)};let bn=M&&Fe.length>0;bn=bn||(k?le.length>0:le!==null);let fn=Me;return P&&(fn=Me.reduce((de,fe,Ve)=>{const vt=P(fe);return de.length>0&&de[de.length-1].group===vt?de[de.length-1].options.push(fe):de.push({key:Ve,index:Ve,group:vt,options:[fe]}),de},[])),b&&ct&&dt(),{getRootProps:(de={})=>({...de,onKeyDown:Le(de),onMouseDown:Wt,onClick:On}),getInputLabelProps:()=>({id:`${oe}-label`,htmlFor:oe}),getInputProps:()=>({id:oe,value:Fe,onBlur:dt,onFocus:qe,onChange:It,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:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getItemProps:({index:de=0}={})=>({...k&&{key:de},...ne?{"data-item-index":de}:{"data-tag-index":de},tabIndex:-1,...!Q&&{onDelete:k?At(de):Et}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:wt}),getTagProps:({index:de})=>({key:de,"data-tag-index":de,tabIndex:-1,...!Q&&{onDelete:At(de)}}),getListboxProps:()=>({role:"listbox",id:`${oe}-listbox`,"aria-labelledby":`${oe}-label`,ref:Wn,onMouseDown:de=>{de.preventDefault()}}),getOptionProps:({index:de,option:fe})=>{const Ve=(k?le:[le]).some(Ke=>Ke!=null&&_(fe,Ke)),vt=T?T(fe):!1;return{key:R?.(fe)??ae(fe),tabIndex:-1,role:"option",id:`${oe}-option-${de}`,onMouseMove:Bt,onClick:mt,onTouchStart:Dt,"data-option-index":de,"aria-disabled":vt,"aria-selected":Ve}},id:oe,inputValue:Fe,value:le,dirty:bn,expanded:We&&Ce,popupOpen:We,focused:ct||ue!==-1,anchorEl:Ce,setAnchorEl:Te,focusedItem:ue,focusedTag:ue,groupedOptions:fn}}var Ra="top",Bi="bottom",Ui="right",$a="left",yC="auto",ug=[Ra,Bi,Ui,$a],Wf="start",Um="end",W_="clippingParents",ej="viewport",Oh="popper",q_="reference",s2=ug.reduce(function(e,t){return e.concat([t+"-"+Wf,t+"-"+Um])},[]),tj=[].concat(ug,[yC]).reduce(function(e,t){return e.concat([t,t+"-"+Wf,t+"-"+Um])},[]),Y_="beforeRead",G_="read",K_="afterRead",Q_="beforeMain",X_="main",Z_="afterMain",J_="beforeWrite",eV="write",tV="afterWrite",nV=[Y_,G_,K_,Q_,X_,Z_,J_,eV,tV];function Xs(e){return e?(e.nodeName||"").toLowerCase():null}function di(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=di(e).Element;return e instanceof t||e instanceof Element}function Li(e){var t=di(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vC(e){if(typeof ShadowRoot>"u")return!1;var t=di(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rV(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)||!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 oV(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,f){return u[f]="",u},{});!Li(o)||!Xs(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const aV={name:"applyStyles",enabled:!0,phase:"write",fn:rV,effect:oV,requires:["computeStyles"]};function Ks(e){return e.split("-")[0]}var qu=Math.max,_v=Math.min,qf=Math.round;function RS(){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 nj(){return!/^((?!chrome|android).)*safari/i.test(RS())}function Yf(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&&qf(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&qf(r.height)/e.offsetHeight||1);var s=Zu(e)?di(e):window,l=s.visualViewport,u=!nj()&&n,f=(r.left+(u&&l?l.offsetLeft:0))/o,c=(r.top+(u&&l?l.offsetTop:0))/a,h=r.width/o,y=r.height/a;return{width:h,height:y,top:c,right:f+h,bottom:c+y,left:f,x:f,y:c}}function bC(e){var t=Yf(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 rj(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 Il(e){return di(e).getComputedStyle(e)}function iV(e){return["table","td","th"].indexOf(Xs(e))>=0}function qc(e){return((Zu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nb(e){return Xs(e)==="html"?e:e.assignedSlot||e.parentNode||(vC(e)?e.host:null)||qc(e)}function l2(e){return!Li(e)||Il(e).position==="fixed"?null:e.offsetParent}function sV(e){var t=/firefox/i.test(RS()),n=/Trident/i.test(RS());if(n&&Li(e)){var r=Il(e);if(r.position==="fixed")return null}var o=Nb(e);for(vC(o)&&(o=o.host);Li(o)&&["html","body"].indexOf(Xs(o))<0;){var a=Il(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 dg(e){for(var t=di(e),n=l2(e);n&&iV(n)&&Il(n).position==="static";)n=l2(n);return n&&(Xs(n)==="html"||Xs(n)==="body"&&Il(n).position==="static")?t:n||sV(e)||t}function xC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bm(e,t,n){return qu(e,_v(t,n))}function lV(e,t,n){var r=bm(e,t,n);return r>n?n:r}function oj(){return{top:0,right:0,bottom:0,left:0}}function aj(e){return Object.assign({},oj(),e)}function ij(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,aj(typeof t!="number"?t:ij(t,ug))};function uV(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Ks(n.placement),u=xC(l),f=[$a,Ui].indexOf(l)>=0,c=f?"height":"width";if(!(!a||!s)){var h=cV(o.padding,n),y=bC(a),b=u==="y"?Ra:$a,v=u==="y"?Bi:Ui,x=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],w=s[u]-n.rects.reference[u],S=dg(a),M=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,T=x/2-w/2,R=h[b],$=M-y[c]-h[v],P=M/2-y[c]/2+T,N=bm(R,P,$),V=u;n.modifiersData[r]=(t={},t[V]=N,t.centerOffset=N-P,t)}}function dV(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)||rj(t.elements.popper,o)&&(t.elements.arrow=o))}const fV={name:"arrow",enabled:!0,phase:"main",fn:uV,effect:dV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gf(e){return e.split("-")[1]}var pV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qf(n*o)/o||0,y:qf(r*o)/o||0}}function c2(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,f=e.adaptive,c=e.roundOffsets,h=e.isFixed,y=s.x,b=y===void 0?0:y,v=s.y,x=v===void 0?0:v,w=typeof c=="function"?c({x:b,y:x}):{x:b,y:x};b=w.x,x=w.y;var S=s.hasOwnProperty("x"),M=s.hasOwnProperty("y"),T=$a,R=Ra,$=window;if(f){var P=dg(n),N="clientHeight",V="clientWidth";if(P===di(n)&&(P=qc(n),Il(P).position!=="static"&&l==="absolute"&&(N="scrollHeight",V="scrollWidth")),P=P,o===Ra||(o===$a||o===Ui)&&a===Um){R=Bi;var F=h&&P===$&&$.visualViewport?$.visualViewport.height:P[N];x-=F-r.height,x*=u?1:-1}if(o===$a||(o===Ra||o===Bi)&&a===Um){T=Ui;var W=h&&P===$&&$.visualViewport?$.visualViewport.width:P[V];b-=W-r.width,b*=u?1:-1}}var _=Object.assign({position:l},f&&pV),k=c===!0?hV({x:b,y:x},di(n)):{x:b,y:x};if(b=k.x,x=k.y,u){var I;return Object.assign({},_,(I={},I[R]=M?"0":"",I[T]=S?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+b+"px, "+x+"px)":"translate3d("+b+"px, "+x+"px, 0)",I))}return Object.assign({},_,(t={},t[R]=M?x+"px":"",t[T]=S?b+"px":"",t.transform="",t))}function mV(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,u=l===void 0?!0:l,f={placement:Ks(t.placement),variation:Gf(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,c2(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,c2(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mV,data:{}};var jy={passive:!0};function yV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=di(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(c){c.addEventListener("scroll",n.update,jy)}),l&&u.addEventListener("resize",n.update,jy),function(){a&&f.forEach(function(c){c.removeEventListener("scroll",n.update,jy)}),l&&u.removeEventListener("resize",n.update,jy)}}const vV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yV,data:{}};var bV={left:"right",right:"left",bottom:"top",top:"bottom"};function bv(e){return e.replace(/left|right|bottom|top/g,function(t){return bV[t]})}var xV={start:"end",end:"start"};function u2(e){return e.replace(/start|end/g,function(t){return xV[t]})}function SC(e){var t=di(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wC(e){return Yf(qc(e)).left+SC(e).scrollLeft}function SV(e,t){var n=di(e),r=qc(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var f=nj();(f||!f&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+wC(e),y:u}}function wV(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),u=-r.scrollTop;return Il(o||n).direction==="rtl"&&(l+=qu(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function CC(e){var t=Il(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function sj(e){return["html","body","#document"].indexOf(Xs(e))>=0?e.ownerDocument.body:Li(e)&&CC(e)?e:sj(Nb(e))}function xm(e,t){var n;t===void 0&&(t=[]);var r=sj(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=di(r),s=o?[a].concat(a.visualViewport||[],CC(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(xm(Nb(s)))}function $S(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function CV(e,t){var n=Yf(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 d2(e,t,n){return t===ej?$S(SV(e,n)):Zu(t)?CV(t,n):$S(wV(qc(e)))}function kV(e){var t=xm(Nb(e)),n=["absolute","fixed"].indexOf(Il(e).position)>=0,r=n&&Li(e)?dg(e):e;return Zu(r)?t.filter(function(o){return Zu(o)&&rj(o,r)&&Xs(o)!=="body"}):[]}function TV(e,t,n,r){var o=t==="clippingParents"?kV(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(u,f){var c=d2(e,f,r);return u.top=qu(c.top,u.top),u.right=_v(c.right,u.right),u.bottom=_v(c.bottom,u.bottom),u.left=qu(c.left,u.left),u},d2(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 lj(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ks(r):null,a=r?Gf(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case Ra:u={x:s,y:t.y-n.height};break;case Bi:u={x:s,y:t.y+t.height};break;case Ui:u={x:t.x+t.width,y:l};break;case $a:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var f=o?xC(o):null;if(f!=null){var c=f==="y"?"height":"width";switch(a){case Wf:u[f]=u[f]-(t[c]/2-n[c]/2);break;case Um:u[f]=u[f]+(t[c]/2-n[c]/2);break}}return u}function _m(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,u=l===void 0?W_:l,f=n.rootBoundary,c=f===void 0?ej:f,h=n.elementContext,y=h===void 0?Oh:h,b=n.altBoundary,v=b===void 0?!1:b,x=n.padding,w=x===void 0?0:x,S=aj(typeof w!="number"?w:ij(w,ug)),M=y===Oh?q_:Oh,T=e.rects.popper,R=e.elements[v?M:y],$=TV(Zu(R)?R:R.contextElement||qc(e.elements.popper),u,c,s),P=Yf(e.elements.reference),N=lj({reference:P,element:T,placement:o}),V=$S(Object.assign({},T,N)),F=y===Oh?V:P,W={top:$.top-F.top+S.top,bottom:F.bottom-$.bottom+S.bottom,left:$.left-F.left+S.left,right:F.right-$.right+S.right},_=e.modifiersData.offset;if(y===Oh&&_){var k=_[o];Object.keys(W).forEach(function(I){var z=[Ui,Bi].indexOf(I)>=0?1:-1,H=[Ra,Bi].indexOf(I)>=0?"y":"x";W[I]+=k[H]*z})}return W}function MV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?tj:u,c=Gf(r),h=c?l?s2:s2.filter(function(v){return Gf(v)===c}):ug,y=h.filter(function(v){return f.indexOf(v)>=0});y.length===0&&(y=h);var b=y.reduce(function(v,x){return v[x]=_m(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[Ks(x)],v},{});return Object.keys(b).sort(function(v,x){return b[v]-b[x]})}function EV(e){if(Ks(e)===yC)return[];var t=bv(e);return[u2(e),t,u2(t)]}function OV(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,f=n.padding,c=n.boundary,h=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,x=n.allowedAutoPlacements,w=t.options.placement,S=Ks(w),M=S===w,T=u||(M||!v?[bv(w)]:EV(w)),R=[w].concat(T).reduce(function(pe,oe){return pe.concat(Ks(oe)===yC?MV(t,{placement:oe,boundary:c,rootBoundary:h,padding:f,flipVariations:v,allowedAutoPlacements:x}):oe)},[]),$=t.rects.reference,P=t.rects.popper,N=new Map,V=!0,F=R[0],W=0;W<R.length;W++){var _=R[W],k=Ks(_),I=Gf(_)===Wf,z=[Ra,Bi].indexOf(k)>=0,H=z?"width":"height",A=_m(t,{placement:_,boundary:c,rootBoundary:h,altBoundary:y,padding:f}),Z=z?I?Ui:$a:I?Bi:Ra;$[H]>P[H]&&(Z=bv(Z));var K=bv(Z),te=[];if(a&&te.push(A[k]<=0),l&&te.push(A[Z]<=0,A[K]<=0),te.every(function(pe){return pe})){F=_,V=!1;break}N.set(_,te)}if(V)for(var X=v?3:1,Q=function(oe){var ae=R.find(function(ce){var me=N.get(ce);if(me)return me.slice(0,oe).every(function(ye){return ye})});if(ae)return F=ae,"break"},ne=X;ne>0;ne--){var ie=Q(ne);if(ie==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const RV={name:"flip",enabled:!0,phase:"main",fn:OV,requiresIfExists:["offset"],data:{_skip:!1}};function f2(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 p2(e){return[Ra,Ui,Bi,$a].some(function(t){return e[t]>=0})}function $V(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=_m(t,{elementContext:"reference"}),l=_m(t,{altBoundary:!0}),u=f2(s,r),f=f2(l,o,a),c=p2(u),h=p2(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const PV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$V};function DV(e,t,n){var r=Ks(e),o=[$a,Ra].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,[$a,Ui].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function AV(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=tj.reduce(function(c,h){return c[h]=DV(h,t.rects,a),c},{}),l=s[t.placement],u=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const jV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:AV};function NV(e){var t=e.state,n=e.name;t.modifiersData[n]=lj({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const IV={name:"popperOffsets",enabled:!0,phase:"read",fn:NV,data:{}};function LV(e){return e==="x"?"y":"x"}function zV(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,f=n.rootBoundary,c=n.altBoundary,h=n.padding,y=n.tether,b=y===void 0?!0:y,v=n.tetherOffset,x=v===void 0?0:v,w=_m(t,{boundary:u,rootBoundary:f,padding:h,altBoundary:c}),S=Ks(t.placement),M=Gf(t.placement),T=!M,R=xC(S),$=LV(R),P=t.modifiersData.popperOffsets,N=t.rects.reference,V=t.rects.popper,F=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(P){if(a){var I,z=R==="y"?Ra:$a,H=R==="y"?Bi:Ui,A=R==="y"?"height":"width",Z=P[R],K=Z+w[z],te=Z-w[H],X=b?-V[A]/2:0,Q=M===Wf?N[A]:V[A],ne=M===Wf?-V[A]:-N[A],ie=t.elements.arrow,pe=b&&ie?bC(ie):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:oj(),ae=oe[z],ce=oe[H],me=bm(0,N[A],pe[A]),ye=T?N[A]/2-X-me-ae-W.mainAxis:Q-me-ae-W.mainAxis,we=T?-N[A]/2+X+me+ce+W.mainAxis:ne+me+ce+W.mainAxis,Ce=t.elements.arrow&&dg(t.elements.arrow),Te=Ce?R==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,ue=(I=_?.[R])!=null?I:0,ke=Z+ye-ue-Te,Ge=Z+we-ue,ze=bm(b?_v(K,ke):K,Z,b?qu(te,Ge):te);P[R]=ze,k[R]=ze-Z}if(l){var Ne,le=R==="x"?Ra:$a,xt=R==="x"?Bi:Ui,Fe=P[$],it=$==="y"?"height":"width",ct=Fe+w[le],Ft=Fe-w[xt],_t=[Ra,$a].indexOf(S)!==-1,at=(Ne=_?.[$])!=null?Ne:0,Ze=_t?ct:Fe-N[it]-V[it]-at+W.altAxis,rt=_t?Fe+N[it]+V[it]-at-W.altAxis:Ft,je=b&&_t?lV(Ze,Fe,rt):bm(b?Ze:ct,Fe,b?rt:Ft);P[$]=je,k[$]=je-Fe}t.modifiersData[r]=k}}const FV={name:"preventOverflow",enabled:!0,phase:"main",fn:zV,requiresIfExists:["offset"]};function BV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function UV(e){return e===di(e)||!Li(e)?SC(e):BV(e)}function _V(e){var t=e.getBoundingClientRect(),n=qf(t.width)/e.offsetWidth||1,r=qf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function VV(e,t,n){n===void 0&&(n=!1);var r=Li(t),o=Li(t)&&_V(t),a=qc(t),s=Yf(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Xs(t)!=="body"||CC(a))&&(l=UV(t)),Li(t)?(u=Yf(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=wC(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function HV(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function WV(e){var t=HV(e);return nV.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function YV(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 h2={placement:"bottom",modifiers:[],strategy:"absolute"};function m2(){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 GV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?h2:o;return function(l,u,f){f===void 0&&(f=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},h2,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],y=!1,b={state:c,setOptions:function(S){var M=typeof S=="function"?S(c.options):S;x(),c.options=Object.assign({},a,c.options,M),c.scrollParents={reference:Zu(l)?xm(l):l.contextElement?xm(l.contextElement):[],popper:xm(u)};var T=WV(YV([].concat(r,c.options.modifiers)));return c.orderedModifiers=T.filter(function(R){return R.enabled}),v(),b.update()},forceUpdate:function(){if(!y){var S=c.elements,M=S.reference,T=S.popper;if(m2(M,T)){c.rects={reference:VV(M,dg(T),c.options.strategy==="fixed"),popper:bC(T)},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,F=$.name;typeof P=="function"&&(c=P({state:c,options:V,name:F,instance:b})||c)}}}},update:qV(function(){return new Promise(function(w){b.forceUpdate(),w(c)})}),destroy:function(){x(),y=!0}};if(!m2(l,u))return b;b.setOptions(f).then(function(w){!y&&f.onFirstUpdate&&f.onFirstUpdate(w)});function v(){c.orderedModifiers.forEach(function(w){var S=w.name,M=w.options,T=M===void 0?{}:M,R=w.effect;if(typeof R=="function"){var $=R({state:c,name:S,instance:b,options:T}),P=function(){};h.push($||P)}})}function x(){h.forEach(function(w){return w()}),h=[]}return b}}var KV=[vV,IV,gV,aV,jV,RV,FV,fV,PV],QV=GV({defaultModifiers:KV});function zs(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:XA(n,r),{props:l,internalRef:u}=ZA({...a,externalSlotProps:s}),f=po(u,s?.ref,e.additionalProps?.ref);return QA(t,{...l,ref:f},r)}function ld(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}function XV(e){return typeof e=="function"?e():e}const cj=C.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,l]=C.useState(null),u=po(C.isValidElement(r)?ld(r):null,n);if(Ia(()=>{a||l(XV(o)||document.body)},[o,a]),Ia(()=>{if(s&&!a)return CS(n,s),()=>{CS(n,null)}},[n,s,a]),a){if(C.isValidElement(r)){const f={ref:u};return C.cloneElement(r,f)}return r}return s&&gb.createPortal(r,s)});function ZV(e){return sn("MuiPopper",e)}cn("MuiPopper",["root"]);function JV(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 PS(e){return typeof e=="function"?e():e}function eH(e){return e.nodeType!==void 0}const tH=e=>{const{classes:t}=e;return ln({root:["root"]},ZV,t)},nH={},rH=C.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:f,popperOptions:c,popperRef:h,slotProps:y={},slots:b={},TransitionProps:v,ownerState:x,...w}=t,S=C.useRef(null),M=po(S,n),T=C.useRef(null),R=po(T,h),$=C.useRef(R);Ia(()=>{$.current=R},[R]),C.useImperativeHandle(h,()=>T.current,[]);const P=JV(f,a),[N,V]=C.useState(P),[F,W]=C.useState(PS(r));C.useEffect(()=>{T.current&&T.current.forceUpdate()}),C.useEffect(()=>{r&&W(PS(r))},[r]),Ia(()=>{if(!F||!u)return;const H=K=>{V(K.placement)};let A=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{H(K)}}];l!=null&&(A=A.concat(l)),c&&c.modifiers!=null&&(A=A.concat(c.modifiers));const Z=QV(F,S.current,{placement:P,...c,modifiers:A});return $.current(Z),()=>{Z.destroy(),$.current(null)}},[F,s,l,u,c,P]);const _={placement:N};v!==null&&(_.TransitionProps=v);const k=tH(t),I=b.root??"div",z=zs({elementType:I,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:M},ownerState:t,className:k.root});return m.jsx(I,{...z,children:typeof o=="function"?o(_):o})}),oH=C.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:f,open:c,placement:h="bottom",popperOptions:y=nH,popperRef:b,style:v,transition:x=!1,slotProps:w={},slots:S={},...M}=t,[T,R]=C.useState(!0),$=()=>{R(!1)},P=()=>{R(!0)};if(!u&&!c&&(!x||T))return null;let N;if(a)N=a;else if(r){const W=PS(r);N=W&&eH(W)?To(W).body:To(null).body}const V=!c&&u&&(!x||T)?"none":void 0,F=x?{in:c,onEnter:$,onExited:P}:void 0;return m.jsx(cj,{disablePortal:l,container:N,children:m.jsx(rH,{anchorEl:r,direction:s,disablePortal:l,modifiers:f,ref:n,open:x?!T:c,placement:h,popperOptions:y,popperRef:b,slotProps:w,slots:S,...M,style:{position:"fixed",top:0,left:0,display:V,...v},TransitionProps:F,children:o})})}),aH=ot(oH,{name:"MuiPopper",slot:"Root"})({}),Ib=C.forwardRef(function(t,n){const r=lg(),o=un({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:f,disablePortal:c,keepMounted:h,modifiers:y,open:b,placement:v,popperOptions:x,popperRef:w,transition:S,slots:M,slotProps:T,...R}=o,$=M?.root??l?.Root,P={anchorEl:a,container:f,disablePortal:c,keepMounted:h,modifiers:y,open:b,placement:v,popperOptions:x,popperRef:w,transition:S,...R};return m.jsx(aH,{as:s,direction:r?"rtl":"ltr",slots:{root:$},slotProps:T??u,...P,ref:n})});function iH(e){return sn("MuiListSubheader",e)}cn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const sH=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 ln(s,iH,t)},lH=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}}]}))),Vv=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:s="li",disableGutters:l=!1,disableSticky:u=!1,inset:f=!1,...c}=r,h={...r,color:a,component:s,disableGutters:l,disableSticky:u,inset:f},y=sH(h);return m.jsx(lH,{as:s,className:Pt(y.root,o),ref:n,ownerState:h,...c})});Vv&&(Vv.muiSkipListHighlight=!0);const cH=za(m.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 uH(e){return sn("MuiChip",e)}const or=cn("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"]),dH=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:u}=e,f={root:["root",u,n&&"disabled",`size${tt(r)}`,`color${tt(o)}`,l&&"clickable",l&&`clickableColor${tt(o)}`,s&&"deletable",s&&`deletableColor${tt(o)}`,`${u}${tt(o)}`],label:["label",`label${tt(r)}`],avatar:["avatar",`avatar${tt(r)}`,`avatarColor${tt(o)}`],icon:["icon",`icon${tt(r)}`,`iconColor${tt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${tt(r)}`,`deleteIconColor${tt(o)}`,`deleteIcon${tt(u)}Color${tt(o)}`]};return ln(f,uH,t)},fH=ot("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:u}=n;return[{[`& .${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(u)}Color${tt(r)}`]},t.root,t[`size${tt(l)}`],t[`color${tt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${tt(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${tt(r)}`],t[u],t[`${u}${tt(r)}`]]}})(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}}}}))]}})),pH=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 g2(e){return e.key==="Backspace"||e.key==="Delete"}const uj=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:s,color:l="default",component:u,deleteIcon:f,disabled:c=!1,icon:h,label:y,onClick:b,onDelete:v,onKeyDown:x,onKeyUp:w,size:S="medium",variant:M="filled",tabIndex:T,skipFocusWhenDisabled:R=!1,slots:$={},slotProps:P={},...N}=r,V=C.useRef(null),F=po(V,n),W=ae=>{ae.stopPropagation(),v&&v(ae)},_=ae=>{ae.currentTarget===ae.target&&g2(ae)&&ae.preventDefault(),x&&x(ae)},k=ae=>{ae.currentTarget===ae.target&&v&&g2(ae)&&v(ae),w&&w(ae)},I=s!==!1&&b?!0:s,z=I||v?Xu:u||"div",H={...r,component:z,disabled:c,size:S,color:l,iconColor:C.isValidElement(h)&&h.props.color||l,onDelete:!!v,clickable:I,variant:M},A=dH(H),Z=z===Xu?{component:u||"div",focusVisibleClassName:A.focusVisible,...v&&{disableRipple:!0}}:{};let K=null;v&&(K=f&&C.isValidElement(f)?C.cloneElement(f,{className:Pt(f.props.className,A.deleteIcon),onClick:W}):m.jsx(cH,{className:A.deleteIcon,onClick:W}));let te=null;o&&C.isValidElement(o)&&(te=C.cloneElement(o,{className:Pt(A.avatar,o.props.className)}));let X=null;h&&C.isValidElement(h)&&(X=C.cloneElement(h,{className:Pt(A.icon,h.props.className)}));const Q={slots:$,slotProps:P},[ne,ie]=Dn("root",{elementType:fH,externalForwardedProps:{...Q,...N},ownerState:H,shouldForwardComponentProp:!0,ref:F,className:Pt(A.root,a),additionalProps:{disabled:I&&c?!0:void 0,tabIndex:R&&c?-1:T,...Z},getSlotProps:ae=>({...ae,onClick:ce=>{ae.onClick?.(ce),b?.(ce)},onKeyDown:ce=>{ae.onKeyDown?.(ce),_(ce)},onKeyUp:ce=>{ae.onKeyUp?.(ce),k(ce)}})}),[pe,oe]=Dn("label",{elementType:pH,externalForwardedProps:Q,ownerState:H,className:A.label});return m.jsxs(ne,{as:z,...ie,children:[te||X,m.jsx(pe,{...oe,children:y}),K]})});function Ny(e){return parseInt(e,10)||0}const hH={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function mH(e){for(const t in e)return!1;return!0}function y2(e){return mH(e)||e.outerHeightStyle===0&&!e.overflowing}const gH=C.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:s,value:l,...u}=t,{current:f}=C.useRef(l!=null),c=C.useRef(null),h=po(n,c),y=C.useRef(null),b=C.useRef(null),v=C.useCallback(()=>{const T=c.current,R=b.current;if(!T||!R)return;const P=Nl(T).getComputedStyle(T);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=P.width,R.value=T.value||t.placeholder||"x",R.value.slice(-1)===`
212
- `&&(R.value+=" ");const N=P.boxSizing,V=Ny(P.paddingBottom)+Ny(P.paddingTop),F=Ny(P.borderBottomWidth)+Ny(P.borderTopWidth),W=R.scrollHeight;R.value="x";const _=R.scrollHeight;let k=W;a&&(k=Math.max(Number(a)*_,k)),o&&(k=Math.min(Number(o)*_,k)),k=Math.max(k,_);const I=k+(N==="border-box"?V+F:0),z=Math.abs(k-W)<=1;return{outerHeightStyle:I,overflowing:z}},[o,a,t.placeholder]),x=Ro(()=>{const T=c.current,R=v();if(!T||!R||y2(R))return!1;const $=R.outerHeightStyle;return y.current!=null&&y.current!==$}),w=C.useCallback(()=>{const T=c.current,R=v();if(!T||!R||y2(R))return;const $=R.outerHeightStyle;y.current!==$&&(y.current=$,T.style.height=`${$}px`),T.style.overflow=R.overflowing?"hidden":""},[v]),S=C.useRef(-1);Ia(()=>{const T=HA(w),R=c?.current;if(!R)return;const $=Nl(R);$.addEventListener("resize",T);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)),()=>{T.clear(),cancelAnimationFrame(S.current),$.removeEventListener("resize",T),P&&P.disconnect()}},[v,w,x]),Ia(()=>{w()});const M=T=>{f||w();const R=T.target,$=R.value.length,P=R.value.endsWith(`
213
- `),N=R.selectionStart===$;P&&N&&R.setSelectionRange($,$),r&&r(T)};return m.jsxs(C.Fragment,{children:[m.jsx("textarea",{value:l,onChange:M,ref:h,rows:a,style:s,...u}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...hH.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 Lb=C.createContext(void 0);function rl(){return C.useContext(Lb)}function v2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Hv(e,t=!1){return e&&(v2(e.value)&&e.value!==""||t&&v2(e.defaultValue)&&e.defaultValue!=="")}function yH(e){return e.startAdornment}function vH(e){return sn("MuiInputBase",e)}const ni=cn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var b2;const zb=(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]},Fb=(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]},bH=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:u,hiddenLabel:f,multiline:c,readOnly:h,size:y,startAdornment:b,type:v}=e,x={root:["root",`color${tt(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${tt(y)}`,c&&"multiline",b&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",y==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",b&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return ln(x,vH,t)},Bb=ot("div",{name:"MuiInputBase",slot:"Root",overridesResolver:zb})(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",[`&.${ni.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%"}}]}))),Ub=ot("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fb})(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] + .${ni.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},[`&.${ni.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"}}]}})),x2=hC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),kC=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,color:u,components:f={},componentsProps:c={},defaultValue:h,disabled:y,disableInjectingGlobalStyles:b,endAdornment:v,error:x,fullWidth:w=!1,id:S,inputComponent:M="input",inputProps:T={},inputRef:R,margin:$,maxRows:P,minRows:N,multiline:V=!1,name:F,onBlur:W,onChange:_,onClick:k,onFocus:I,onKeyDown:z,onKeyUp:H,placeholder:A,readOnly:Z,renderSuffix:K,rows:te,size:X,slotProps:Q={},slots:ne={},startAdornment:ie,type:pe="text",value:oe,...ae}=r,ce=T.value!=null?T.value:oe,{current:me}=C.useRef(ce!=null),ye=C.useRef(),we=C.useCallback(Me=>{},[]),Ce=po(ye,R,T.ref,we),[Te,ue]=C.useState(!1),ke=rl(),Ge=Yc({props:r,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ge.focused=ke?ke.focused:Te,C.useEffect(()=>{!ke&&y&&Te&&(ue(!1),W&&W())},[ke,y,Te,W]);const ze=ke&&ke.onFilled,Ne=ke&&ke.onEmpty,le=C.useCallback(Me=>{Hv(Me)?ze&&ze():Ne&&Ne()},[ze,Ne]);Ia(()=>{me&&le({value:ce})},[ce,le,me]);const xt=Me=>{I&&I(Me),T.onFocus&&T.onFocus(Me),ke&&ke.onFocus?ke.onFocus(Me):ue(!0)},Fe=Me=>{W&&W(Me),T.onBlur&&T.onBlur(Me),ke&&ke.onBlur?ke.onBlur(Me):ue(!1)},it=(Me,...kt)=>{if(!me){const Mt=Me.target||ye.current;if(Mt==null)throw new Error(jl(1));le({value:Mt.value})}T.onChange&&T.onChange(Me,...kt),_&&_(Me,...kt)};C.useEffect(()=>{le(ye.current)},[]);const ct=Me=>{ye.current&&Me.currentTarget===Me.target&&ye.current.focus(),k&&k(Me)};let Ft=M,_t=T;V&&Ft==="input"&&(te?_t={type:void 0,minRows:te,maxRows:te,..._t}:_t={type:void 0,maxRows:P,minRows:N,..._t},Ft=gH);const at=Me=>{le(Me.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};C.useEffect(()=>{ke&&ke.setAdornedStart(!!ie)},[ke,ie]);const Ze={...r,color:Ge.color||"primary",disabled:Ge.disabled,endAdornment:v,error:Ge.error,focused:Ge.focused,formControl:ke,fullWidth:w,hiddenLabel:Ge.hiddenLabel,multiline:V,size:Ge.size,startAdornment:ie,type:pe},rt=bH(Ze),je=ne.root||f.Root||Bb,he=Q.root||c.root||{},We=ne.input||f.Input||Ub;return _t={..._t,...Q.input??c.input},m.jsxs(C.Fragment,{children:[!b&&typeof x2=="function"&&(b2||(b2=m.jsx(x2,{}))),m.jsxs(je,{...he,ref:n,onClick:ct,...ae,...!jc(je)&&{ownerState:{...Ze,...he.ownerState}},className:Pt(rt.root,he.className,l,Z&&"MuiInputBase-readOnly"),children:[ie,m.jsx(Lb.Provider,{value:null,children:m.jsx(We,{"aria-invalid":Ge.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:Ge.disabled,id:S,onAnimationStart:at,name:F,placeholder:A,readOnly:Z,required:Ge.required,rows:te,value:ce,onKeyDown:z,onKeyUp:H,type:pe,..._t,...!jc(We)&&{as:Ft,ownerState:{...Ze,..._t.ownerState}},ref:Ce,className:Pt(rt.input,_t.className,Z&&"MuiInputBase-readOnly"),onBlur:Fe,onChange:it,onFocus:xt})}),v,K?K({...Ge,startAdornment:ie}):null]})]})});function xH(e){return sn("MuiInput",e)}const Ec={...ni,...cn("MuiInput",["root","underline","input"])};function SH(e){return sn("MuiOutlinedInput",e)}const Oi={...ni,...cn("MuiOutlinedInput",["root","notchedOutline","input"])};function wH(e){return sn("MuiFilledInput",e)}const ri={...ni,...cn("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},dj=za(m.jsx("path",{d:"M7 10l5 5 5-5z"}));function CH(e){return sn("MuiAutocomplete",e)}const Kn=cn("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 S2,w2;const kH=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:u,popupOpen:f,size:c}=e,h={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${tt(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ln(h,CH,t)},TH=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[{[`& .${Kn.tag}`]:t.tag},{[`& .${Kn.tag}`]:t[`tagSize${tt(l)}`]},{[`& .${Kn.inputRoot}`]:t.inputRoot},{[`& .${Kn.input}`]:t.input},{[`& .${Kn.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Kn.focused} .${Kn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Kn.clearIndicator}`]:{visibility:"visible"}},[`& .${Kn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Kn.inputRoot}`]:{[`.${Kn.hasPopupIcon}&, .${Kn.hasClearIcon}&`]:{paddingRight:30},[`.${Kn.hasPopupIcon}.${Kn.hasClearIcon}&`]:{paddingRight:56},[`& .${Kn.input}`]:{width:0,minWidth:30}},[`& .${Ec.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ec.root}.${ni.sizeSmall}`]:{[`& .${Ec.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Oi.root}`]:{padding:9,[`.${Kn.hasPopupIcon}&, .${Kn.hasClearIcon}&`]:{paddingRight:39},[`.${Kn.hasPopupIcon}.${Kn.hasClearIcon}&`]:{paddingRight:65},[`& .${Kn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Kn.endAdornment}`]:{right:9}},[`& .${Oi.root}.${ni.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Kn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ri.root}`]:{paddingTop:19,paddingLeft:8,[`.${Kn.hasPopupIcon}&, .${Kn.hasClearIcon}&`]:{paddingRight:39},[`.${Kn.hasPopupIcon}.${Kn.hasClearIcon}&`]:{paddingRight:65},[`& .${ri.input}`]:{padding:"7px 4px"},[`& .${Kn.endAdornment}`]:{right:9}},[`& .${ri.root}.${ni.sizeSmall}`]:{paddingBottom:1,[`& .${ri.input}`]:{padding:"2.5px 4px"}},[`& .${ni.hiddenLabel}`]:{paddingTop:8},[`& .${ri.root}.${ni.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Kn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ri.root}.${ni.hiddenLabel}.${ni.sizeSmall}`]:{[`& .${Kn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Kn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Kn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Kn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Kn.inputRoot}`]:{flexWrap:"wrap"}}}]}),MH=ot("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),EH=ot(Qr,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),OH=ot(Qr,{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)"}}]}),RH=ot(Ib,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kn.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"}}]}))),$H=ot(La,{name:"MuiAutocomplete",slot:"Paper"})(Jt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),PH=ot("div",{name:"MuiAutocomplete",slot:"Loading"})(Jt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),DH=ot("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Jt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),AH=ot("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Jt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Kn.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"},[`&.${Kn.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"},[`&.${Kn.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),[`&.${Kn.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}},[`&.${Kn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),jH=ot(Vv,{name:"MuiAutocomplete",slot:"GroupLabel"})(Jt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),NH=ot("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Kn.option}`]:{paddingLeft:24}}),IH=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:u,className:f,clearIcon:c=S2||(S2=m.jsx(JA,{fontSize:"small"})),clearOnBlur:h=!r.freeSolo,clearOnEscape:y=!1,clearText:b="Clear",closeText:v="Close",componentsProps:x,defaultValue:w=r.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:M=!1,disabled:T=!1,disabledItemsFocusable:R=!1,disableListWrap:$=!1,disablePortal:P=!1,filterOptions:N,filterSelectedOptions:V=!1,forcePopupIcon:F="auto",freeSolo:W=!1,fullWidth:_=!1,getLimitTagsText:k=Rt=>`+${Rt}`,getOptionDisabled:I,getOptionKey:z,getOptionLabel:H,isOptionEqualToValue:A,groupBy:Z,handleHomeEndKeys:K=!r.freeSolo,id:te,includeInputInList:X=!1,inputValue:Q,limitTags:ne=-1,ListboxComponent:ie,ListboxProps:pe,loading:oe=!1,loadingText:ae="Loading…",multiple:ce=!1,noOptionsText:me="No options",onChange:ye,onClose:we,onHighlightChange:Ce,onInputChange:Te,onOpen:ue,open:ke,openOnFocus:Ge=!1,openText:ze="Open",options:Ne,PaperComponent:le,PopperComponent:xt,popupIcon:Fe=w2||(w2=m.jsx(dj,{})),readOnly:it=!1,renderGroup:ct,renderInput:Ft,renderOption:_t,renderTags:at,renderValue:Ze,selectOnFocus:rt=!r.freeSolo,size:je="medium",slots:he={},slotProps:We={},value:Me,...kt}=r,{getRootProps:Mt,getInputProps:gt,getInputLabelProps:ut,getPopupIndicatorProps:$t,getClearProps:Vt,getItemProps:dn,getListboxProps:vn,getOptionProps:Bn,value:Wn,dirty:Qt,expanded:In,id:be,popupOpen:zn,focused:En,focusedItem:Xt,anchorEl:se,setAnchorEl:Pe,inputValue:Le,groupedOptions:qe}=H_({...r,componentName:"Autocomplete"}),dt=!S&&!T&&Qt&&!it,It=(!W||F===!0)&&F!==!1,{onMouseDown:Bt}=gt(),{ref:Dt,...mt}=vn(),Et=H||(Rt=>Rt.label??Rt),wt={...r,disablePortal:P,expanded:In,focused:En,fullWidth:_,getOptionLabel:Et,hasClearIcon:dt,hasPopupIcon:It,inputFocused:Xt===-1,popupOpen:zn,size:je},Wt=kH(wt),On={slots:{paper:le,popper:xt,...he},slotProps:{chip:u,listbox:pe,...x,...We}},[qn,bn]=Dn("listbox",{elementType:AH,externalForwardedProps:On,ownerState:wt,className:Wt.listbox,additionalProps:mt,ref:Dt}),[fn,de]=Dn("paper",{elementType:La,externalForwardedProps:On,ownerState:wt,className:Wt.paper}),[fe,Ve]=Dn("popper",{elementType:Ib,externalForwardedProps:On,ownerState:wt,className:Wt.popper,additionalProps:{disablePortal:P,style:{width:se?se.clientWidth:null},role:"presentation",anchorEl:se,open:zn}});let vt;const Ke=Rt=>({className:Wt.tag,disabled:T,...dn(Rt)});if(ce?Wn.length>0&&(at?vt=at(Wn,Ke,wt):Ze?vt=Ze(Wn,Ke,wt):vt=Wn.map((Rt,Ct)=>{const{key:St,...Gt}=Ke({index:Ct});return m.jsx(uj,{label:Et(Rt),size:je,...Gt,...On.slotProps.chip},St)})):Ze&&Wn!=null&&(vt=Ze(Wn,Ke,wt)),ne>-1&&Array.isArray(vt)){const Rt=vt.length-ne;!En&&Rt>0&&(vt=vt.splice(0,ne),vt.push(m.jsx("span",{className:Wt.tag,children:k(Rt)},vt.length)))}const nn=ct||(Rt=>m.jsxs("li",{children:[m.jsx(jH,{className:Wt.groupLabel,ownerState:wt,component:"div",children:Rt.group}),m.jsx(NH,{className:Wt.groupUl,ownerState:wt,children:Rt.children})]},Rt.key)),ge=_t||((Rt,Ct)=>{const{key:St,...Gt}=Rt;return m.jsx("li",{...Gt,children:Et(Ct)},St)}),Oe=(Rt,Ct)=>{const St=Bn({option:Rt,index:Ct});return ge({...St,className:Wt.option},Rt,{selected:St["aria-selected"],index:Ct,inputValue:Le},wt)},He=On.slotProps.clearIndicator,yt=On.slotProps.popupIndicator;return m.jsxs(C.Fragment,{children:[m.jsx(TH,{ref:n,className:Pt(Wt.root,f),ownerState:wt,...Mt(kt),children:Ft({id:be,disabled:T,fullWidth:!0,size:je==="small"?"small":void 0,InputLabelProps:ut(),InputProps:{ref:Pe,className:Wt.inputRoot,startAdornment:vt,onMouseDown:Rt=>{Rt.target===Rt.currentTarget&&Bt(Rt)},...(dt||It)&&{endAdornment:m.jsxs(MH,{className:Wt.endAdornment,ownerState:wt,children:[dt?m.jsx(EH,{...Vt(),"aria-label":b,title:b,ownerState:wt,...He,className:Pt(Wt.clearIndicator,He?.className),children:c}):null,It?m.jsx(OH,{...$t(),disabled:T,"aria-label":zn?v:ze,title:zn?v:ze,ownerState:wt,...yt,className:Pt(Wt.popupIndicator,yt?.className),children:Fe}):null]})}},inputProps:{className:Wt.input,disabled:T,readOnly:it,...gt()}})}),se?m.jsx(RH,{as:fe,...Ve,children:m.jsxs($H,{as:fn,...de,children:[oe&&qe.length===0?m.jsx(PH,{className:Wt.loading,ownerState:wt,children:ae}):null,qe.length===0&&!W&&!oe?m.jsx(DH,{className:Wt.noOptions,ownerState:wt,role:"presentation",onMouseDown:Rt=>{Rt.preventDefault()},children:me}):null,qe.length>0?m.jsx(qn,{as:ie,...bn,children:qe.map((Rt,Ct)=>Z?nn({key:Rt.key,group:Rt.group,children:Rt.options.map((St,Gt)=>Oe(St,Rt.index+Gt))}):Oe(Rt,Ct))}):null]})}):null]})}),LH={entering:{opacity:1},entered:{opacity:1}},DS=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:u,in:f,onEnter:c,onEntered:h,onEntering:y,onExit:b,onExited:v,onExiting:x,style:w,timeout:S=o,TransitionComponent:M=nl,...T}=t,R=C.useRef(null),$=po(R,ld(l),n),P=z=>H=>{if(z){const A=R.current;H===void 0?z(A):z(A,H)}},N=P(y),V=P((z,H)=>{KA(z);const A=Bv({style:w,timeout:S,easing:u},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",A),z.style.transition=r.transitions.create("opacity",A),c&&c(z,H)}),F=P(h),W=P(x),_=P(z=>{const H=Bv({style:w,timeout:S,easing:u},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",H),z.style.transition=r.transitions.create("opacity",H),b&&b(z)}),k=P(v),I=z=>{a&&a(R.current,z)};return m.jsx(M,{appear:s,in:f,nodeRef:R,onEnter:V,onEntered:F,onEntering:N,onExit:_,onExited:k,onExiting:W,addEndListener:I,timeout:S,...T,children:(z,{ownerState:H,...A})=>C.cloneElement(l,{style:{opacity:0,visibility:z==="exited"&&!f?"hidden":void 0,...LH[z],...w,...l.props.style},ref:$,...A})})});function zH(e){return sn("MuiBackdrop",e)}cn("MuiBackdrop",["root","invisible"]);const FH=e=>{const{classes:t,invisible:n}=e;return ln({root:["root",n&&"invisible"]},zH,t)},BH=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"}}]}),fj=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:u,components:f={},componentsProps:c={},slotProps:h={},slots:y={},TransitionComponent:b,transitionDuration:v,...x}=r,w={...r,component:s,invisible:l},S=FH(w),M={transition:b,root:f.Root,...y},T={...c,...h},R={component:s,slots:M,slotProps:T},[$,P]=Dn("root",{elementType:BH,externalForwardedProps:R,className:Pt(S.root,a),ownerState:w}),[N,V]=Dn("transition",{elementType:DS,externalForwardedProps:R,ownerState:w});return m.jsx(N,{in:u,timeout:v,...x,...V,children:m.jsx($,{"aria-hidden":!0,...P,classes:S,ref:n,children:o})})}),UH=cn("MuiBox",["root"]),_H=Db(),Ht=oC({themeId:Ys,defaultTheme:_H,defaultClassName:UH.root,generateClassName:rC.generate});function VH(e){return sn("MuiButton",e)}const ku=cn("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"]),HH=C.createContext({}),WH=C.createContext(void 0),qH=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:u}=e,f={root:["root",s&&"loading",a,`${a}${tt(t)}`,`size${tt(o)}`,`${a}Size${tt(o)}`,`color${tt(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${tt(l)}`],startIcon:["icon","startIcon",`iconSize${tt(o)}`],endIcon:["icon","endIcon",`iconSize${tt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},c=ln(f,VH,u);return{...u,...c}},pj=[{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}}}],YH=ot(Xu,{shouldForwardProp:e=>ga(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"}}}]}})),GH=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}},...pj]})),KH=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}},...pj]})),QH=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}}]})),C2=ot("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Go=C.forwardRef(function(t,n){const r=C.useContext(HH),o=C.useContext(WH),a=Bm(r,t),s=un({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:c,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:b=!1,endIcon:v,focusVisibleClassName:x,fullWidth:w=!1,id:S,loading:M=null,loadingIndicator:T,loadingPosition:R="center",size:$="medium",startIcon:P,type:N,variant:V="text",...F}=s,W=Hc(S),_=T??m.jsx(cg,{"aria-labelledby":W,color:"inherit",size:16}),k={...s,color:u,component:f,disabled:h,disableElevation:y,disableFocusRipple:b,fullWidth:w,loading:M,loadingIndicator:_,loadingPosition:R,size:$,type:N,variant:V},I=qH(k),z=(P||M&&R==="start")&&m.jsx(GH,{className:I.startIcon,ownerState:k,children:P||m.jsx(C2,{className:I.loadingIconPlaceholder,ownerState:k})}),H=(v||M&&R==="end")&&m.jsx(KH,{className:I.endIcon,ownerState:k,children:v||m.jsx(C2,{className:I.loadingIconPlaceholder,ownerState:k})}),A=o||"",Z=typeof M=="boolean"?m.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:M&&m.jsx(QH,{className:I.loadingIndicator,ownerState:k,children:_})}):null;return m.jsxs(YH,{ownerState:k,className:Pt(r.className,I.root,c,A),component:f,disabled:h||M,focusRipple:!b,focusVisibleClassName:Pt(I.focusVisible,x),ref:n,type:N,id:M?W:S,...F,classes:I,children:[z,R!=="end"&&Z,l,R==="end"&&Z,H]})});function XH(e){return sn("MuiCard",e)}cn("MuiCard",["root"]);const ZH=e=>{const{classes:t}=e;return ln({root:["root"]},XH,t)},JH=ot(La,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),e8=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...s}=r,l={...r,raised:a},u=ZH(l);return m.jsx(JH,{className:Pt(u.root,o),elevation:a?8:void 0,ref:n,ownerState:l,...s})});function t8(e){return sn("MuiCardContent",e)}cn("MuiCardContent",["root"]);const n8=e=>{const{classes:t}=e;return ln({root:["root"]},t8,t)},r8=ot("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),o8=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...s}=r,l={...r,component:a},u=n8(l);return m.jsx(r8,{as:a,className:Pt(u.root,o),ownerState:l,ref:n,...s})});function a8(e){return sn("MuiCardMedia",e)}cn("MuiCardMedia",["root","media","img"]);const i8=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ln({root:["root",n&&"media",r&&"img"]},a8,t)},s8=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"}}]}),l8=["video","audio","picture","iframe","img"],c8=["picture","img"],u8=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:s="div",image:l,src:u,style:f,...c}=r,h=l8.includes(s),y=!h&&l?{backgroundImage:`url("${l}")`,...f}:f,b={...r,component:s,isMediaComponent:h,isImageComponent:c8.includes(s)},v=i8(b);return m.jsx(s8,{className:Pt(v.root,a),as:s,role:!h&&l?"img":void 0,ref:n,style:y,ownerState:b,src:h?l||u:void 0,...c,children:o})});function d8(e){return sn("PrivateSwitchBase",e)}cn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const f8=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 ln(a,d8,t)},p8=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}}]}),h8=ot("input",{name:"MuiSwitchBase",shouldForwardProp:ga})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hj=C.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:f=!1,icon:c,id:h,inputProps:y,inputRef:b,name:v,onBlur:x,onChange:w,onFocus:S,readOnly:M,required:T=!1,tabIndex:R,type:$,value:P,slots:N={},slotProps:V={},...F}=t,[W,_]=Ac({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),k=rl(),I=oe=>{S&&S(oe),k&&k.onFocus&&k.onFocus(oe)},z=oe=>{x&&x(oe),k&&k.onBlur&&k.onBlur(oe)},H=oe=>{if(oe.nativeEvent.defaultPrevented)return;const ae=oe.target.checked;_(ae),w&&w(oe,ae)};let A=l;k&&typeof A>"u"&&(A=k.disabled);const Z=$==="checkbox"||$==="radio",K={...t,checked:W,disabled:A,disableFocusRipple:u,edge:f},te=f8(K),X={slots:N,slotProps:{input:y,...V}},[Q,ne]=Dn("root",{ref:n,elementType:p8,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...X,component:"span",...F},getSlotProps:oe=>({...oe,onFocus:ae=>{oe.onFocus?.(ae),I(ae)},onBlur:ae=>{oe.onBlur?.(ae),z(ae)}}),ownerState:K,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:A,role:void 0,tabIndex:null}}),[ie,pe]=Dn("input",{ref:b,elementType:h8,className:te.input,externalForwardedProps:X,getSlotProps:oe=>({...oe,onChange:ae=>{oe.onChange?.(ae),H(ae)}}),ownerState:K,additionalProps:{autoFocus:r,checked:o,defaultChecked:s,disabled:A,id:Z?h:void 0,name:v,readOnly:M,required:T,tabIndex:R,type:$,...$==="checkbox"&&P===void 0?{}:{value:P}}});return m.jsxs(Q,{...ne,children:[m.jsx(ie,{...pe}),W?a:c]})}),m8=za(m.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"})),g8=za(m.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"})),y8=za(m.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 v8(e){return sn("MuiCheckbox",e)}const S1=cn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),b8=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${tt(r)}`,`size${tt(o)}`]},s=ln(a,v8,t);return{...t,...s}},x8=ot(hj,{shouldForwardProp:e=>ga(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:{[`&.${S1.checked}, &.${S1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${S1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),S8=m.jsx(g8,{}),w8=m.jsx(m8,{}),C8=m.jsx(y8,{}),k8=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiCheckbox"}),{checkedIcon:o=S8,color:a="primary",icon:s=w8,indeterminate:l=!1,indeterminateIcon:u=C8,inputProps:f,size:c="medium",disableRipple:h=!1,className:y,slots:b={},slotProps:v={},...x}=r,w=l?u:s,S=l?u:o,M={...r,disableRipple:h,color:a,indeterminate:l,size:c},T=b8(M),R=v.input??f,[$,P]=Dn("root",{ref:n,elementType:x8,className:Pt(T.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:v,...x},ownerState:M,additionalProps:{type:"checkbox",icon:C.cloneElement(w,{fontSize:w.props.fontSize??c}),checkedIcon:C.cloneElement(S,{fontSize:S.props.fontSize??c}),disableRipple:h,slots:b,slotProps:{input:WA(typeof R=="function"?R(M):R,{"data-indeterminate":l})}}});return m.jsx($,{...P,classes:T})});function k2(e){return e.substring(2).toLowerCase()}function T8(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function M8(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),u=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=po(ld(t),l),h=Ro(v=>{const x=f.current;f.current=!1;const w=To(l.current);if(!u.current||!l.current||"clientX"in v&&T8(v,w))return;if(s.current){s.current=!1;return}let S;v.composedPath?S=v.composedPath().includes(l.current):S=!w.documentElement.contains(v.target)||l.current.contains(v.target),!S&&(n||!x)&&o(v)}),y=v=>x=>{f.current=!0;const w=t.props[v];w&&w(x)},b={ref:c};return a!==!1&&(b[a]=y(a)),C.useEffect(()=>{if(a!==!1){const v=k2(a),x=To(l.current),w=()=>{s.current=!0};return x.addEventListener(v,h),x.addEventListener("touchmove",w),()=>{x.removeEventListener(v,h),x.removeEventListener("touchmove",w)}}},[h,a]),r!==!1&&(b[r]=y(r)),C.useEffect(()=>{if(r!==!1){const v=k2(r),x=To(l.current);return x.addEventListener(v,h),()=>{x.removeEventListener(v,h)}}},[h,r]),C.cloneElement(t,b)}const TC=O6({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=>un({props:e,name:"MuiContainer"})}),AS=typeof hC({})=="function",E8=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),O8=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}}),mj=(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:E8(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...O8(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},xv="mui-ecs",R8=e=>{const t=mj(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${xv})`]={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(.${xv}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${xv}))`]:{colorScheme:o.palette?.mode}}}),t},$8=hC(AS?({theme:e,enableColorScheme:t})=>mj(e,t):({theme:e})=>R8(e));function P8(e){const t=un({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return m.jsxs(C.Fragment,{children:[AS&&m.jsx($8,{enableColorScheme:r}),!AS&&!r&&m.jsx("span",{className:xv,style:{display:"none"}}),n]})}function gj(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function D8(e){const t=To(e);return t.body===e?Nl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Sm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function T2(e){return parseInt(Nl(e).getComputedStyle(e).paddingRight,10)||0}function A8(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 M2(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),u=!A8(s);l&&u&&Sm(s,o)})}function w1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function j8(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(D8(r)){const s=gj(Nl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${T2(r)+s}px`;const l=To(r).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${T2(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=To(r).body;else{const s=r.parentElement,l=Nl(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 N8(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class I8{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&&Sm(t.modalRef,!1);const o=N8(n);M2(n,t.mount,t.modalRef,o,!0);const a=w1(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=w1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=j8(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=w1(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&&Sm(t.modalRef,n),M2(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&&Sm(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const L8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function z8(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 F8(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 B8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||F8(e))}function U8(e){const t=[],n=[];return Array.from(e.querySelectorAll(L8)).forEach((r,o)=>{const a=z8(r);a===-1||!B8(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 _8(){return!0}function V8(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=U8,isEnabled:s=_8,open:l}=e,u=C.useRef(!1),f=C.useRef(null),c=C.useRef(null),h=C.useRef(null),y=C.useRef(null),b=C.useRef(!1),v=C.useRef(null),x=po(ld(t),v),w=C.useRef(null);C.useEffect(()=>{!l||!v.current||(b.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!v.current)return;const T=To(v.current);return v.current.contains(T.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),b.current&&v.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[l]),C.useEffect(()=>{if(!l||!v.current)return;const T=To(v.current),R=N=>{w.current=N,!(r||!s()||N.key!=="Tab")&&T.activeElement===v.current&&N.shiftKey&&(u.current=!0,c.current&&c.current.focus())},$=()=>{const N=v.current;if(N===null)return;if(!T.hasFocus()||!s()||u.current){u.current=!1;return}if(N.contains(T.activeElement)||r&&T.activeElement!==f.current&&T.activeElement!==c.current)return;if(T.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!b.current)return;let V=[];if((T.activeElement===f.current||T.activeElement===c.current)&&(V=a(v.current)),V.length>0){const F=!!(w.current?.shiftKey&&w.current?.key==="Tab"),W=V[0],_=V[V.length-1];typeof W!="string"&&typeof _!="string"&&(F?_.focus():W.focus())}else N.focus()};T.addEventListener("focusin",$),T.addEventListener("keydown",R,!0);const P=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(P),T.removeEventListener("focusin",$),T.removeEventListener("keydown",R,!0)}},[n,r,o,s,l,a]);const S=T=>{h.current===null&&(h.current=T.relatedTarget),b.current=!0,y.current=T.target;const R=t.props.onFocus;R&&R(T)},M=T=>{h.current===null&&(h.current=T.relatedTarget),b.current=!0};return m.jsxs(C.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:M,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:S}),m.jsx("div",{tabIndex:l?0:-1,onFocus:M,ref:c,"data-testid":"sentinelEnd"})]})}function H8(e){return typeof e=="function"?e():e}function W8(e){return e?e.props.hasOwnProperty("in"):!1}const E2=()=>{},Iy=new I8;function q8(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:f,rootRef:c}=e,h=C.useRef({}),y=C.useRef(null),b=C.useRef(null),v=po(b,c),[x,w]=C.useState(!f),S=W8(l);let M=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(M=!1);const T=()=>To(y.current),R=()=>(h.current.modalRef=b.current,h.current.mount=y.current,h.current),$=()=>{Iy.mount(R(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},P=Ro(()=>{const H=H8(t)||T().body;Iy.add(R(),H),b.current&&$()}),N=()=>Iy.isTopModal(R()),V=Ro(H=>{y.current=H,H&&(f&&N()?$():b.current&&Sm(b.current,M))}),F=C.useCallback(()=>{Iy.remove(R(),M)},[M]);C.useEffect(()=>()=>{F()},[F]),C.useEffect(()=>{f?P():(!S||!o)&&F()},[f,F,S,o,P]);const W=H=>A=>{H.onKeyDown?.(A),!(A.key!=="Escape"||A.which===229||!N())&&(n||(A.stopPropagation(),u&&u(A,"escapeKeyDown")))},_=H=>A=>{H.onClick?.(A),A.target===A.currentTarget&&u&&u(A,"backdropClick")};return{getRootProps:(H={})=>{const A=Wu(e);delete A.onTransitionEnter,delete A.onTransitionExited;const Z={...A,...H};return{role:"presentation",...Z,onKeyDown:W(Z),ref:v}},getBackdropProps:(H={})=>{const A=H;return{"aria-hidden":!0,...A,onClick:_(A),open:f}},getTransitionProps:()=>{const H=()=>{w(!1),a&&a()},A=()=>{w(!0),s&&s(),o&&F()};return{onEnter:GO(H,l?.props.onEnter??E2),onExited:GO(A,l?.props.onExited??E2)}},rootRef:v,portalRef:V,isTopModal:N,exited:x,hasTransition:S}}function Y8(e){return sn("MuiModal",e)}cn("MuiModal",["root","hidden","backdrop"]);const G8=e=>{const{open:t,exited:n,classes:r}=e;return ln({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Y8,r)},K8=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"}}]}))),Q8=ot(fj,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),yj=C.forwardRef(function(t,n){const r=un({name:"MuiModal",props:t}),{BackdropComponent:o=Q8,BackdropProps:a,classes:s,className:l,closeAfterTransition:u=!1,children:f,container:c,component:h,components:y={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:M=!1,disableScrollLock:T=!1,hideBackdrop:R=!1,keepMounted:$=!1,onClose:P,onTransitionEnter:N,onTransitionExited:V,open:F,slotProps:W={},slots:_={},theme:k,...I}=r,z={...r,closeAfterTransition:u,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:M,disableScrollLock:T,hideBackdrop:R,keepMounted:$},{getRootProps:H,getBackdropProps:A,getTransitionProps:Z,portalRef:K,isTopModal:te,exited:X,hasTransition:Q}=q8({...z,rootRef:n}),ne={...z,exited:X},ie=G8(ne),pe={};if(f.props.tabIndex===void 0&&(pe.tabIndex="-1"),Q){const{onEnter:we,onExited:Ce}=Z();pe.onEnter=we,pe.onExited=Ce}const oe={slots:{root:y.Root,backdrop:y.Backdrop,..._},slotProps:{...b,...W}},[ae,ce]=Dn("root",{ref:n,elementType:K8,externalForwardedProps:{...oe,...I,component:h},getSlotProps:H,ownerState:ne,className:Pt(l,ie?.root,!ne.open&&ne.exited&&ie?.hidden)}),[me,ye]=Dn("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:we=>A({...we,onClick:Ce=>{we?.onClick&&we.onClick(Ce)}}),className:Pt(a?.className,ie?.backdrop),ownerState:ne});return!$&&!F&&(!Q||X)?null:m.jsx(cj,{ref:K,container:c,disablePortal:S,children:m.jsxs(ae,{...ce,children:[!R&&o?m.jsx(me,{...ye}):null,m.jsx(V8,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:M,isEnabled:te,open:F,children:C.cloneElement(f,pe)})]})})});function X8(e){return sn("MuiDialog",e)}const C1=cn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),vj=C.createContext({}),Z8=ot(fj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),J8=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 ln(s,X8,t)},eW=ot(yj,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),tW=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"}}}]}),nW=ot(La,{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)`,[`&.${C1.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}`,[`&.${C1.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,[`&.${C1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Kf=C.forwardRef(function(t,n){const r=un({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":u=!0,BackdropComponent:f,BackdropProps:c,children:h,className:y,disableEscapeKeyDown:b=!1,fullScreen:v=!1,fullWidth:x=!1,maxWidth:w="sm",onClick:S,onClose:M,open:T,PaperComponent:R=La,PaperProps:$={},scroll:P="paper",slots:N={},slotProps:V={},TransitionComponent:F=DS,transitionDuration:W=a,TransitionProps:_,...k}=r,I={...r,disableEscapeKeyDown:b,fullScreen:v,fullWidth:x,maxWidth:w,scroll:P},z=J8(I),H=C.useRef(),A=ue=>{H.current=ue.target===ue.currentTarget},Z=ue=>{S&&S(ue),H.current&&(H.current=null,M&&M(ue,"backdropClick"))},K=Hc(l),te=C.useMemo(()=>({titleId:K}),[K]),X={transition:F,...N},Q={transition:_,paper:$,backdrop:c,...V},ne={slots:X,slotProps:Q},[ie,pe]=Dn("root",{elementType:eW,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:I,className:Pt(z.root,y),ref:n}),[oe,ae]=Dn("backdrop",{elementType:Z8,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:I}),[ce,me]=Dn("paper",{elementType:nW,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:I,className:Pt(z.paper,$.className)}),[ye,we]=Dn("container",{elementType:tW,externalForwardedProps:ne,ownerState:I,className:z.container}),[Ce,Te]=Dn("transition",{elementType:DS,externalForwardedProps:ne,ownerState:I,additionalProps:{appear:!0,in:T,timeout:W,role:"presentation"}});return m.jsx(ie,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:W,as:f,...ae}},disableEscapeKeyDown:b,onClose:M,open:T,onClick:Z,...pe,...k,children:m.jsx(Ce,{...Te,children:m.jsx(ye,{onMouseDown:A,...we,children:m.jsx(ce,{as:R,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":K,"aria-modal":u,...me,children:m.jsx(vj.Provider,{value:te,children:h})})})})})});function rW(e){return sn("MuiDialogActions",e)}cn("MuiDialogActions",["root","spacing"]);const oW=e=>{const{classes:t,disableSpacing:n}=e;return ln({root:["root",!n&&"spacing"]},rW,t)},aW=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}}}]}),bj=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=r,l={...r,disableSpacing:a},u=oW(l);return m.jsx(aW,{className:Pt(u.root,o),ownerState:l,ref:n,...s})});function iW(e){return sn("MuiDialogContent",e)}cn("MuiDialogContent",["root","dividers"]);function sW(e){return sn("MuiDialogTitle",e)}const lW=cn("MuiDialogTitle",["root"]),cW=e=>{const{classes:t,dividers:n}=e;return ln({root:["root",n&&"dividers"]},iW,t)},uW=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:{[`.${lW.root} + &`]:{paddingTop:0}}}]}))),Qf=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=r,l={...r,dividers:a},u=cW(l);return m.jsx(uW,{className:Pt(u.root,o),ownerState:l,ref:n,...s})}),dW=e=>{const{classes:t}=e;return ln({root:["root"]},sW,t)},fW=ot(jt,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Xf=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...s}=r,l=r,u=dW(l),{titleId:f=a}=C.useContext(vj);return m.jsx(fW,{component:"h2",className:Pt(u.root,o),ownerState:l,ref:n,variant:"h6",id:a??f,...s})});function pW(e){return sn("MuiDivider",e)}const O2=cn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hW=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:s,textAlign:l,variant:u}=e;return ln({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},pW,r)},mW=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%"}}}]}))),gW=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=un({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,orientation:l="horizontal",component:u=a||l==="vertical"?"div":"hr",flexItem:f=!1,light:c=!1,role:h=u!=="hr"?"separator":void 0,textAlign:y="center",variant:b="fullWidth",...v}=r,x={...r,absolute:o,component:u,flexItem:f,light:c,orientation:l,role:h,textAlign:y,variant:b},w=hW(x);return m.jsx(mW,{as:u,className:Pt(w.root,s),role:h,ref:n,ownerState:x,"aria-orientation":h==="separator"&&(u!=="hr"||l==="vertical")?l:void 0,...v,children:a?m.jsx(gW,{className:w.wrapper,ownerState:x,children:a}):null})});Bc&&(Bc.muiSkipListHighlight=!0);const yW=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${tt(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=ln(u,wH,t);return{...t,...f}},vW=ot(Bb,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...zb(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}},[`&.${ri.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ri.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"},[`&.${ri.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ri.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(.${ri.disabled}, .${ri.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ri.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}}]}})),bW=ot(Ub,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fb})(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=un({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:u,inputComponent:f="input",multiline:c=!1,slotProps:h,slots:y={},type:b="text",...v}=r,x={...r,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:c,type:b},w=yW(r),S={root:{ownerState:x},input:{ownerState:x}},M=h??s?Fo(S,h??s):S,T=y.root??a.Root??vW,R=y.input??a.Input??bW;return m.jsx(kC,{slots:{root:T,input:R},slotProps:M,fullWidth:l,inputComponent:f,multiline:c,ref:n,type:b,...v,classes:w})});MC.muiName="Input";function xW(e){return sn("MuiFormControl",e)}cn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const SW=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${tt(n)}`,r&&"fullWidth"]};return ln(o,xW,t)},wW=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%"}}]}),jS=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:l="div",disabled:u=!1,error:f=!1,focused:c,fullWidth:h=!1,hiddenLabel:y=!1,margin:b="none",required:v=!1,size:x="medium",variant:w="outlined",...S}=r,M={...r,color:s,component:l,disabled:u,error:f,fullWidth:h,hiddenLabel:y,margin:b,required:v,size:x,variant:w},T=SW(M),[R,$]=C.useState(()=>{let H=!1;return o&&C.Children.forEach(o,A=>{if(!vv(A,["Input","Select"]))return;const Z=vv(A,["Select"])?A.props.input:A;Z&&yH(Z.props)&&(H=!0)}),H}),[P,N]=C.useState(()=>{let H=!1;return o&&C.Children.forEach(o,A=>{vv(A,["Input","Select"])&&(Hv(A.props,!0)||Hv(A.props.inputProps,!0))&&(H=!0)}),H}),[V,F]=C.useState(!1);u&&V&&F(!1);const W=c!==void 0&&!u?c:V;let _;C.useRef(!1);const k=C.useCallback(()=>{N(!0)},[]),I=C.useCallback(()=>{N(!1)},[]),z=C.useMemo(()=>({adornedStart:R,setAdornedStart:$,color:s,disabled:u,error:f,filled:P,focused:W,fullWidth:h,hiddenLabel:y,size:x,onBlur:()=>{F(!1)},onFocus:()=>{F(!0)},onEmpty:I,onFilled:k,registerEffect:_,required:v,variant:w}),[R,s,u,f,P,W,h,y,_,I,k,v,x,w]);return m.jsx(Lb.Provider,{value:z,children:m.jsx(wW,{as:l,ownerState:M,className:Pt(T.root,a),ref:n,...S,children:o})})});function CW(e){return sn("MuiFormControlLabel",e)}const dm=cn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),kW=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 ln(s,CW,t)},TW=ot("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dm.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,[`&.${dm.disabled}`]:{cursor:"default"},[`& .${dm.label}`]:{[`&.${dm.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}}]}))),MW=ot("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Jt(({theme:e})=>({[`&.${dm.error}`]:{color:(e.vars||e).palette.error.main}}))),EC=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:l,disabled:u,disableTypography:f,inputRef:c,label:h,labelPlacement:y="end",name:b,onChange:v,required:x,slots:w={},slotProps:S={},value:M,...T}=r,R=rl(),$=u??l.props.disabled??R?.disabled,P=x??l.props.required,N={disabled:$,required:P};["checked","name","onChange","value","inputRef"].forEach(H=>{typeof l.props[H]>"u"&&typeof r[H]<"u"&&(N[H]=r[H])});const V=Yc({props:r,muiFormControl:R,states:["error"]}),F={...r,disabled:$,labelPlacement:y,required:P,error:V.error},W=kW(F),_={slots:w,slotProps:{...s,...S}},[k,I]=Dn("typography",{elementType:jt,externalForwardedProps:_,ownerState:F});let z=h;return z!=null&&z.type!==jt&&!f&&(z=m.jsx(k,{component:"span",...I,className:Pt(W.label,I?.className),children:z})),m.jsxs(TW,{className:Pt(W.root,a),ownerState:F,ref:n,...T,children:[C.cloneElement(l,N),P?m.jsxs("div",{children:[z,m.jsxs(MW,{ownerState:F,"aria-hidden":!0,className:W.asterisk,children:[" ","*"]})]}):z]})});function EW(e){return sn("MuiFormGroup",e)}cn("MuiFormGroup",["root","row","error"]);const OW=e=>{const{classes:t,row:n,error:r}=e;return ln({root:["root",n&&"row",r&&"error"]},EW,t)},RW=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"}}]}),$W=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1,...s}=r,l=rl(),u=Yc({props:r,muiFormControl:l,states:["error"]}),f={...r,row:a,error:u.error},c=OW(f);return m.jsx(RW,{className:Pt(c.root,o),ownerState:f,ref:n,...s})});function PW(e){return sn("MuiFormHelperText",e)}const R2=cn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $2;const DW=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:u}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${tt(r)}`,n&&"contained",l&&"focused",s&&"filled",u&&"required"]};return ln(f,PW,t)},AW=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,[`&.${R2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${R2.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}}]}))),NS=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:l,error:u,filled:f,focused:c,margin:h,required:y,variant:b,...v}=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 M=DW(S);return m.jsx(AW,{as:s,className:Pt(M.root,a),ref:n,...v,ownerState:S,children:o===" "?$2||($2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function jW(e){return sn("MuiFormLabel",e)}const wm=cn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),NW=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,u={root:["root",`color${tt(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return ln(u,jW,t)},IW=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:{[`&.${wm.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${wm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wm.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),LW=ot("span",{name:"MuiFormLabel",slot:"Asterisk"})(Jt(({theme:e})=>({[`&.${wm.error}`]:{color:(e.vars||e).palette.error.main}}))),zW=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:l="label",disabled:u,error:f,filled:c,focused:h,required:y,...b}=r,v=rl(),x=Yc({props:r,muiFormControl:v,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=NW(w);return m.jsxs(IW,{as:l,ownerState:w,className:Pt(S.root,a),ref:n,...b,children:[o,x.required&&m.jsxs(LW,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})}),$f=H6({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=>un({props:e,name:"MuiGrid"}),useTheme:Wc});function IS(e){return`scale(${e}, ${e**2})`}const FW={entering:{opacity:1,transform:IS(1)},entered:{opacity:1,transform:"none"}},k1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Vm=C.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:f,onEntering:c,onExit:h,onExited:y,onExiting:b,style:v,timeout:x="auto",TransitionComponent:w=nl,...S}=t,M=Bu(),T=C.useRef(),R=Wc(),$=C.useRef(null),P=po($,ld(a),n),N=H=>A=>{if(H){const Z=$.current;A===void 0?H(Z):H(Z,A)}},V=N(c),F=N((H,A)=>{KA(H);const{duration:Z,delay:K,easing:te}=Bv({style:v,timeout:x,easing:s},{mode:"enter"});let X;x==="auto"?(X=R.transitions.getAutoHeightDuration(H.clientHeight),T.current=X):X=Z,H.style.transition=[R.transitions.create("opacity",{duration:X,delay:K}),R.transitions.create("transform",{duration:k1?X:X*.666,delay:K,easing:te})].join(","),u&&u(H,A)}),W=N(f),_=N(b),k=N(H=>{const{duration:A,delay:Z,easing:K}=Bv({style:v,timeout:x,easing:s},{mode:"exit"});let te;x==="auto"?(te=R.transitions.getAutoHeightDuration(H.clientHeight),T.current=te):te=A,H.style.transition=[R.transitions.create("opacity",{duration:te,delay:Z}),R.transitions.create("transform",{duration:k1?te:te*.666,delay:k1?Z:Z||te*.333,easing:K})].join(","),H.style.opacity=0,H.style.transform=IS(.75),h&&h(H)}),I=N(y),z=H=>{x==="auto"&&M.start(T.current||0,H),r&&r($.current,H)};return m.jsx(w,{appear:o,in:l,nodeRef:$,onEnter:F,onEntered:W,onEntering:V,onExit:k,onExited:I,onExiting:_,addEndListener:z,timeout:x==="auto"?null:x,...S,children:(H,{ownerState:A,...Z})=>C.cloneElement(a,{style:{opacity:0,transform:IS(.75),visibility:H==="exited"&&!l?"hidden":void 0,...FW[H],...v,...a.props.style},ref:P,...Z})})});Vm&&(Vm.muiSupportAuto=!0);const BW=e=>{const{classes:t,disableUnderline:n}=e,o=ln({root:["root",!n&&"underline"],input:["input"]},xH,t);return{...t,...o}},UW=ot(Bb,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...zb(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}`}}}))]}})),_W=ot(Ub,{name:"MuiInput",slot:"Input",overridesResolver:Fb})({}),OC=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:u="input",multiline:f=!1,slotProps:c,slots:h={},type:y="text",...b}=r,v=BW(r),w={root:{ownerState:{disableUnderline:o}}},S=c??s?Fo(c??s,w):w,M=h.root??a.Root??UW,T=h.input??a.Input??_W;return m.jsx(kC,{slots:{root:M,input:T},slotProps:S,fullWidth:l,inputComponent:u,multiline:f,ref:n,type:y,...b,classes:v})});OC.muiName="Input";function VW(e){return sn("MuiInputAdornment",e)}const P2=cn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var D2;const HW=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${tt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},WW=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 ln(l,VW,t)},qW=ot("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:HW})(Jt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${P2.positionStart}&:not(.${P2.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),YW=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:s="div",disablePointerEvents:l=!1,disableTypography:u=!1,position:f,variant:c,...h}=r,y=rl()||{};let b=c;c&&y.variant,y&&!b&&(b=y.variant);const v={...r,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:f,variant:b},x=WW(v);return m.jsx(Lb.Provider,{value:null,children:m.jsx(qW,{as:s,ownerState:v,className:Pt(x.root,a),ref:n,...h,children:typeof o=="string"&&!u?m.jsx(jt,{color:"textSecondary",children:o}):m.jsxs(C.Fragment,{children:[f==="start"?D2||(D2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function GW(e){return sn("MuiInputLabel",e)}cn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KW=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${tt(r)}`,s],asterisk:[l&&"asterisk"]},f=ln(u,GW,t);return{...t,...f}},QW=ot(zW,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wm.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)"}}]}))),XW=C.forwardRef(function(t,n){const r=un({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:s,variant:l,className:u,...f}=r,c=rl();let h=s;typeof h>"u"&&c&&(h=c.filled||c.focused||c.adornedStart);const y=Yc({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:c,shrink:h,size:y.size,variant:y.variant,required:y.required,focused:y.focused},v=KW(b);return m.jsx(QW,{"data-shrink":h,ref:n,className:Pt(v.root,u),...f,ownerState:b,classes:v})});function ZW(e){return sn("MuiLinearProgress",e)}cn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const LS=4,zS=pi`
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
- `,JW=typeof zS!="string"?Vc`
229
- animation: ${zS} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
230
- `:null,FS=pi`
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
- `,e9=typeof FS!="string"?Vc`
246
- animation: ${FS} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
247
- `:null,BS=pi`
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
- `,t9=typeof BS!="string"?Vc`
263
- animation: ${BS} 3s infinite linear;
264
- `:null,n9=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 ln(o,ZW,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),r9=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)"}}]}))),o9=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%)`}}})]})),t9||{animation:`${BS} 3s infinite linear`}),a9=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 .${LS}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${LS}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:JW||{animation:`${zS} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),i9=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 .${LS}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:e9||{animation:`${FS} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),s9=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:s,valueBuffer:l,variant:u="indeterminate",...f}=r,c={...r,color:a,variant:u},h=n9(c),y=lg(),b={},v={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&s!==void 0){b["aria-valuenow"]=Math.round(s),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let x=s-100;y&&(x=-x),v.bar1.transform=`translateX(${x}%)`}if(u==="buffer"&&l!==void 0){let x=(l||0)-100;y&&(x=-x),v.bar2.transform=`translateX(${x}%)`}return m.jsxs(r9,{className:Pt(h.root,o),ownerState:c,role:"progressbar",...b,ref:n,...f,children:[u==="buffer"?m.jsx(o9,{className:h.dashed,ownerState:c}):null,m.jsx(a9,{className:h.bar1,ownerState:c,style:v.bar1}),u==="determinate"?null:m.jsx(i9,{className:h.bar2,ownerState:c,style:v.bar2})]})});function l9(e){return sn("MuiLink",e)}const c9=cn("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),u9=({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)},A2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},d9=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root",`underline${tt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ln(a,l9,t)},f9=ot(jt,{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"},[`&.${c9.focusVisible}`]:{outline:"auto"}}}]}))),p9=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiLink"}),o=Wc(),{className:a,color:s="primary",component:l="a",onBlur:u,onFocus:f,TypographyClasses:c,underline:h="always",variant:y="inherit",sx:b,...v}=r,[x,w]=C.useState(!1),S=$=>{Fc($.target)||w(!1),u&&u($)},M=$=>{Fc($.target)&&w(!0),f&&f($)},T={...r,color:s,component:l,focusVisible:x,underline:h,variant:y},R=d9(T);return m.jsx(f9,{color:s,className:Pt(R.root,a),classes:c,component:l,onBlur:S,onFocus:M,ref:n,ownerState:T,variant:y,...v,sx:[...A2[s]===void 0?[{color:s}]:[],...Array.isArray(b)?b:[b]],style:{...v.style,...h==="always"&&s!=="inherit"&&!A2[s]&&{"--Link-underlineColor":u9({theme:o,ownerState:T})}}})}),Ju=C.createContext({});function h9(e){return sn("MuiList",e)}cn("MuiList",["root","padding","dense","subheader"]);const m9=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ln({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},h9,t)},g9=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=un({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:u=!1,subheader:f,...c}=r,h=C.useMemo(()=>({dense:l}),[l]),y={...r,component:s,dense:l,disablePadding:u},b=m9(y);return m.jsx(Ju.Provider,{value:h,children:m.jsxs(g9,{as:s,className:Pt(b.root,a),ref:n,ownerState:y,...c,children:[f,o]})})});function y9(e){return sn("MuiListItemButton",e)}const Rh=cn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),v9=(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]},b9=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:s,selected:l}=e,f=ln({root:["root",r&&"dense",!a&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},y9,n);return{...n,...f}},x9=ot(Xu,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:v9})(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"}},[`&.${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},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}}]}))),xj=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:s="div",children:l,dense:u=!1,disableGutters:f=!1,divider:c=!1,focusVisibleClassName:h,selected:y=!1,className:b,...v}=r,x=C.useContext(Ju),w=C.useMemo(()=>({dense:u||x.dense||!1,alignItems:o,disableGutters:f}),[o,x.dense,u,f]),S=C.useRef(null);Ia(()=>{a&&S.current&&S.current.focus()},[a]);const M={...r,alignItems:o,dense:w.dense,disableGutters:f,divider:c,selected:y},T=b9(M),R=po(S,n);return m.jsx(Ju.Provider,{value:w,children:m.jsx(x9,{ref:R,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:Pt(T.focusVisible,h),ownerState:M,className:Pt(T.root,b),...v,classes:T,children:l})})});function S9(e){return sn("MuiListItemIcon",e)}const j2=cn("MuiListItemIcon",["root","alignItemsFlexStart"]),w9=e=>{const{alignItems:t,classes:n}=e;return ln({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},S9,n)},C9=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}}]}))),pp=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,s=C.useContext(Ju),l={...r,alignItems:s.alignItems},u=w9(l);return m.jsx(C9,{className:Pt(u.root,o),ownerState:l,ref:n,...a})});function k9(e){return sn("MuiListItemText",e)}const Pf=cn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),T9=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return ln({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},k9,t)},M9=ot("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.primary}`]:t.primary},{[`& .${Pf.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,[`.${t2.root}:where(& .${Pf.primary})`]:{display:"block"},[`.${t2.root}:where(& .${Pf.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Gc=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:l=!1,primary:u,primaryTypographyProps:f,secondary:c,secondaryTypographyProps:h,slots:y={},slotProps:b={},...v}=r,{dense:x}=C.useContext(Ju);let w=u??o,S=c;const M={...r,disableTypography:s,inset:l,primary:!!w,secondary:!!S,dense:x},T=T9(M),R={slots:y,slotProps:{primary:f,secondary:h,...b}},[$,P]=Dn("root",{className:Pt(T.root,a),elementType:M9,externalForwardedProps:{...R,...v},ownerState:M,ref:n}),[N,V]=Dn("primary",{className:T.primary,elementType:jt,externalForwardedProps:R,ownerState:M}),[F,W]=Dn("secondary",{className:T.secondary,elementType:jt,externalForwardedProps:R,ownerState:M});return w!=null&&w.type!==jt&&!s&&(w=m.jsx(N,{variant:x?"body2":"body1",component:V?.variant?void 0:"span",...V,children:w})),S!=null&&S.type!==jt&&!s&&(S=m.jsx(F,{variant:"body2",color:"textSecondary",...W,children:S})),m.jsxs($,{...P,children:[w,S]})});function T1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function N2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Sj(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 $h(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Sj(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const E9=C.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:c,variant:h="selectedMenu",...y}=t,b=C.useRef(null),v=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ia(()=>{o&&b.current.focus()},[o]),C.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:R})=>{const $=!b.current.style.width;if(T.clientHeight<b.current.clientHeight&&$){const P=`${gj(Nl(T))}px`;b.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=P,b.current.style.width=`calc(100% + ${P})`}return b.current}}),[]);const x=T=>{const R=b.current,$=T.key;if(T.ctrlKey||T.metaKey||T.altKey){c&&c(T);return}const N=To(R).activeElement;if($==="ArrowDown")T.preventDefault(),$h(R,N,f,u,T1);else if($==="ArrowUp")T.preventDefault(),$h(R,N,f,u,N2);else if($==="Home")T.preventDefault(),$h(R,null,f,u,T1);else if($==="End")T.preventDefault(),$h(R,null,f,u,N2);else if($.length===1){const V=v.current,F=$.toLowerCase(),W=performance.now();V.keys.length>0&&(W-V.lastTime>500?(V.keys=[],V.repeating=!0,V.previousKeyMatched=!0):V.repeating&&F!==V.keys[0]&&(V.repeating=!1)),V.lastTime=W,V.keys.push(F);const _=N&&!V.repeating&&Sj(N,V);V.previousKeyMatched&&(_||$h(R,N,!1,u,T1,V))?T.preventDefault():V.previousKeyMatched=!1}c&&c(T)},w=po(b,n);let S=-1;C.Children.forEach(s,(T,R)=>{if(!C.isValidElement(T)){S===R&&(S+=1,S>=s.length&&(S=-1));return}T.props.disabled||(h==="selectedMenu"&&T.props.selected||S===-1)&&(S=R),S===R&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(S+=1,S>=s.length&&(S=-1))});const M=C.Children.map(s,(T,R)=>{if(R===S){const $={};return a&&($.autoFocus=!0),T.props.tabIndex===void 0&&h==="selectedMenu"&&($.tabIndex=0),C.cloneElement(T,$)}return T});return m.jsx($C,{role:"menu",ref:w,className:l,onKeyDown:x,tabIndex:o?0:-1,...y,children:M})});function O9(e){return sn("MuiPopover",e)}cn("MuiPopover",["root","paper"]);function I2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function L2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function z2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ly(e){return typeof e=="function"?e():e}const R9=e=>{const{classes:t}=e;return ln({root:["root"],paper:["paper"]},O9,t)},$9=ot(yj,{name:"MuiPopover",slot:"Root"})({}),wj=ot(La,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),P9=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:f,className:c,container:h,elevation:y=8,marginThreshold:b=16,open:v,PaperProps:x={},slots:w={},slotProps:S={},transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:R="auto",TransitionProps:$={},disableScrollLock:P=!1,...N}=r,V=C.useRef(),F={...r,anchorOrigin:s,anchorReference:u,elevation:y,marginThreshold:b,transformOrigin:M,TransitionComponent:T,transitionDuration:R,TransitionProps:$},W=R9(F),_=C.useCallback(()=>{if(u==="anchorPosition")return l;const we=Ly(a),Te=(we&&we.nodeType===1?we:To(V.current).body).getBoundingClientRect();return{top:Te.top+I2(Te,s.vertical),left:Te.left+L2(Te,s.horizontal)}},[a,s.horizontal,s.vertical,l,u]),k=C.useCallback(we=>({vertical:I2(we,M.vertical),horizontal:L2(we,M.horizontal)}),[M.horizontal,M.vertical]),I=C.useCallback(we=>{const Ce={width:we.offsetWidth,height:we.offsetHeight},Te=k(Ce);if(u==="none")return{top:null,left:null,transformOrigin:z2(Te)};const ue=_();let ke=ue.top-Te.vertical,Ge=ue.left-Te.horizontal;const ze=ke+Ce.height,Ne=Ge+Ce.width,le=Nl(Ly(a)),xt=le.innerHeight-b,Fe=le.innerWidth-b;if(b!==null&&ke<b){const it=ke-b;ke-=it,Te.vertical+=it}else if(b!==null&&ze>xt){const it=ze-xt;ke-=it,Te.vertical+=it}if(b!==null&&Ge<b){const it=Ge-b;Ge-=it,Te.horizontal+=it}else if(Ne>Fe){const it=Ne-Fe;Ge-=it,Te.horizontal+=it}return{top:`${Math.round(ke)}px`,left:`${Math.round(Ge)}px`,transformOrigin:z2(Te)}},[a,u,_,k,b]),[z,H]=C.useState(v),A=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,H(!0)},[I]);C.useEffect(()=>(P&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[a,P,A]);const Z=()=>{A()},K=()=>{H(!1)};C.useEffect(()=>{v&&A()}),C.useImperativeHandle(o,()=>v?{updatePosition:()=>{A()}}:null,[v,A]),C.useEffect(()=>{if(!v)return;const we=HA(()=>{A()}),Ce=Nl(Ly(a));return Ce.addEventListener("resize",we),()=>{we.clear(),Ce.removeEventListener("resize",we)}},[a,v,A]);let te=R;const X={slots:{transition:T,...w},slotProps:{transition:$,paper:x,...S}},[Q,ne]=Dn("transition",{elementType:Vm,externalForwardedProps:X,ownerState:F,getSlotProps:we=>({...we,onEntering:(Ce,Te)=>{we.onEntering?.(Ce,Te),Z()},onExited:Ce=>{we.onExited?.(Ce),K()}}),additionalProps:{appear:!0,in:v}});R==="auto"&&!Q.muiSupportAuto&&(te=void 0);const ie=h||(a?To(Ly(a)).body:void 0),[pe,{slots:oe,slotProps:ae,...ce}]=Dn("root",{ref:n,elementType:$9,externalForwardedProps:{...X,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:WA(typeof S.backdrop=="function"?S.backdrop(F):S.backdrop,{invisible:!0})},container:ie,open:v},ownerState:F,className:Pt(W.root,c)}),[me,ye]=Dn("paper",{ref:V,className:W.paper,elementType:wj,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:z?void 0:{opacity:0}},ownerState:F});return m.jsx(pe,{...ce,...!jc(pe)&&{slots:oe,slotProps:ae,disableScrollLock:P},children:m.jsx(Q,{...ne,timeout:te,children:m.jsx(me,{...ye,children:f})})})});function D9(e){return sn("MuiMenu",e)}cn("MuiMenu",["root","paper","list"]);const A9={vertical:"top",horizontal:"right"},j9={vertical:"top",horizontal:"left"},N9=e=>{const{classes:t}=e;return ln({root:["root"],paper:["paper"],list:["list"]},D9,t)},I9=ot(P9,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),L9=ot(wj,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),z9=ot(E9,{name:"MuiMenu",slot:"List"})({outline:0}),cd=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:f,open:c,PaperProps:h={},PopoverClasses:y,transitionDuration:b="auto",TransitionProps:{onEntering:v,...x}={},variant:w="selectedMenu",slots:S={},slotProps:M={},...T}=r,R=lg(),$={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:v,PaperProps:h,transitionDuration:b,TransitionProps:x,variant:w},P=N9($),N=o&&!l&&c,V=C.useRef(null),F=(te,X)=>{V.current&&V.current.adjustStyleForScrollbar(te,{direction:R?"rtl":"ltr"}),v&&v(te,X)},W=te=>{te.key==="Tab"&&(te.preventDefault(),f&&f(te,"tabKeyDown"))};let _=-1;C.Children.map(a,(te,X)=>{C.isValidElement(te)&&(te.props.disabled||(w==="selectedMenu"&&te.props.selected||_===-1)&&(_=X))});const k={slots:S,slotProps:{list:u,transition:x,paper:h,...M}},I=zs({elementType:S.root,externalSlotProps:M.root,ownerState:$,className:[P.root,s]}),[z,H]=Dn("paper",{className:P.paper,elementType:L9,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:$}),[A,Z]=Dn("list",{className:Pt(P.list,u.className),elementType:z9,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:te=>({...te,onKeyDown:X=>{W(X),te.onKeyDown?.(X)}}),ownerState:$}),K=typeof k.slotProps.transition=="function"?k.slotProps.transition($):k.slotProps.transition;return m.jsx(I9,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?A9:j9,slots:{root:S.root,paper:z,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:I,paper:H,backdrop:typeof M.backdrop=="function"?M.backdrop($):M.backdrop,transition:{...K,onEntering:(...te)=>{F(...te),K?.onEntering?.(...te)}}},open:c,ref:n,transitionDuration:b,ownerState:$,...T,classes:y,children:m.jsx(A,{actions:V,autoFocus:o&&(_===-1||l),autoFocusItem:N,variant:w,...Z,children:a})})});function F9(e){return sn("MuiMenuItem",e)}const Ph=cn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),B9=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},U9=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,u=ln({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},F9,s);return{...s,...u}},_9=ot(Xu,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:B9})(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"}},[`&.${Ph.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ph.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ph.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)}},[`&.${Ph.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ph.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${O2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${O2.inset}`]:{marginLeft:52},[`& .${Pf.root}`]:{marginTop:0,marginBottom:0},[`& .${Pf.inset}`]:{paddingLeft:36},[`& .${j2.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,[`& .${j2.root} svg`]:{fontSize:"1.25rem"}}}]}))),ha=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:c="menuitem",tabIndex:h,className:y,...b}=r,v=C.useContext(Ju),x=C.useMemo(()=>({dense:s||v.dense||!1,disableGutters:u}),[v.dense,s,u]),w=C.useRef(null);Ia(()=>{o&&w.current&&w.current.focus()},[o]);const S={...r,dense:x.dense,divider:l,disableGutters:u},M=U9(r),T=po(w,n);let R;return r.disabled||(R=h!==void 0?h:-1),m.jsx(Ju.Provider,{value:x,children:m.jsx(_9,{ref:T,role:c,tabIndex:R,component:a,focusVisibleClassName:Pt(M.focusVisible,f),className:Pt(M.root,y),...b,ownerState:S,classes:M})})});function V9(e){return sn("MuiNativeSelect",e)}const PC=cn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),H9=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 ln(l,V9,t)},Cj=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}}}]})),W9=ot(Cj,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ga,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${PC.multiple}`]:t.multiple}]}})({}),kj=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}}]})),q9=ot(kj,{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]}})({}),Y9=C.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:s,inputRef:l,variant:u="standard",...f}=t,c={...t,disabled:o,variant:u,error:a},h=H9(c);return m.jsxs(C.Fragment,{children:[m.jsx(W9,{ownerState:c,className:Pt(h.select,r),disabled:o,ref:l||n,...f}),t.multiple?null:m.jsx(q9,{as:s,ownerState:c,className:h.icon})]})});var F2;const G9=ot("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ga})({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%"}),K9=ot("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ga})(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 Q9(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",u={...e,notched:a,withLabel:l};return m.jsx(G9,{"aria-hidden":!0,className:r,ownerState:u,...s,children:m.jsx(K9,{ownerState:u,children:l?m.jsx("span",{children:o}):F2||(F2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const X9=e=>{const{classes:t}=e,r=ln({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},SH,t);return{...t,...r}},Z9=ot(Bb,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:zb})(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 .${Oi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Oi.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Oi.focused} .${Oi.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ir()).map(([n])=>({props:{color:n},style:{[`&.${Oi.focused} .${Oi.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Oi.error} .${Oi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Oi.disabled} .${Oi.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"}}]}})),J9=ot(Q9,{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}})),eq=ot(Ub,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fb})(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=un({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:u=!1,notched:f,slots:c={},slotProps:h={},type:y="text",...b}=r,v=X9(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:u,size:w.size,type:y},M=c.root??o.Root??Z9,T=c.input??o.Input??eq,[R,$]=Dn("notchedOutline",{elementType:J9,className:v.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:c,slotProps:h},additionalProps:{label:l!=null&&l!==""&&w.required?m.jsxs(C.Fragment,{children:[l," ","*"]}):l}});return m.jsx(kC,{slots:{root:M,input:T},slotProps:h,renderSuffix:P=>m.jsx(R,{...$,notched:typeof f<"u"?f:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:y,...b,classes:{...v,notchedOutline:null}})});DC.muiName="Input";const tq={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Tj(e){return sn("MuiSelect",e)}const Dh=cn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var B2;const nq=ot(Cj,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Dh.select}`]:t.select},{[`&.${Dh.select}`]:t[n.variant]},{[`&.${Dh.error}`]:t.error},{[`&.${Dh.multiple}`]:t.multiple}]}})({[`&.${Dh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),rq=ot(kj,{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]}})({}),oq=ot("input",{shouldForwardProp:e=>Ab(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function U2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function aq(e){return e==null||typeof e=="string"&&!e.trim()}const iq=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 ln(l,Tj,t)},sq=C.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:f,defaultValue:c,disabled:h,displayEmpty:y,error:b=!1,IconComponent:v,inputRef:x,labelId:w,MenuProps:S={},multiple:M,name:T,onBlur:R,onChange:$,onClose:P,onFocus:N,onOpen:V,open:F,readOnly:W,renderValue:_,required:k,SelectDisplayProps:I={},tabIndex:z,type:H,value:A,variant:Z="standard",...K}=t,[te,X]=Ac({controlled:A,default:c,name:"Select"}),[Q,ne]=Ac({controlled:F,default:f,name:"Select"}),ie=C.useRef(null),pe=C.useRef(null),[oe,ae]=C.useState(null),{current:ce}=C.useRef(F!=null),[me,ye]=C.useState(),we=po(n,x),Ce=C.useCallback(ut=>{pe.current=ut,ut&&ae(ut)},[]),Te=oe?.parentNode;C.useImperativeHandle(we,()=>({focus:()=>{pe.current.focus()},node:ie.current,value:te}),[te]),C.useEffect(()=>{f&&Q&&oe&&!ce&&(ye(s?null:Te.clientWidth),pe.current.focus())},[oe,s]),C.useEffect(()=>{a&&pe.current.focus()},[a]),C.useEffect(()=>{if(!w)return;const ut=To(pe.current).getElementById(w);if(ut){const $t=()=>{getSelection().isCollapsed&&pe.current.focus()};return ut.addEventListener("click",$t),()=>{ut.removeEventListener("click",$t)}}},[w]);const ue=(ut,$t)=>{ut?V&&V($t):P&&P($t),ce||(ye(s?null:Te.clientWidth),ne(ut))},ke=ut=>{ut.button===0&&(ut.preventDefault(),pe.current.focus(),ue(!0,ut))},Ge=ut=>{ue(!1,ut)},ze=C.Children.toArray(l),Ne=ut=>{const $t=ze.find(Vt=>Vt.props.value===ut.target.value);$t!==void 0&&(X($t.props.value),$&&$(ut,$t))},le=ut=>$t=>{let Vt;if($t.currentTarget.hasAttribute("tabindex")){if(M){Vt=Array.isArray(te)?te.slice():[];const dn=te.indexOf(ut.props.value);dn===-1?Vt.push(ut.props.value):Vt.splice(dn,1)}else Vt=ut.props.value;if(ut.props.onClick&&ut.props.onClick($t),te!==Vt&&(X(Vt),$)){const dn=$t.nativeEvent||$t,vn=new dn.constructor(dn.type,dn);Object.defineProperty(vn,"target",{writable:!0,value:{value:Vt,name:T}}),$(vn,ut)}M||ue(!1,$t)}},xt=ut=>{W||[" ","ArrowUp","ArrowDown","Enter"].includes(ut.key)&&(ut.preventDefault(),ue(!0,ut))},Fe=oe!==null&&Q,it=ut=>{!Fe&&R&&(Object.defineProperty(ut,"target",{writable:!0,value:{value:te,name:T}}),R(ut))};delete K["aria-invalid"];let ct,Ft;const _t=[];let at=!1;(Hv({value:te})||y)&&(_?ct=_(te):at=!0);const Ze=ze.map(ut=>{if(!C.isValidElement(ut))return null;let $t;if(M){if(!Array.isArray(te))throw new Error(jl(2));$t=te.some(Vt=>U2(Vt,ut.props.value)),$t&&at&&_t.push(ut.props.children)}else $t=U2(te,ut.props.value),$t&&at&&(Ft=ut.props.children);return C.cloneElement(ut,{"aria-selected":$t?"true":"false",onClick:le(ut),onKeyUp:Vt=>{Vt.key===" "&&Vt.preventDefault(),ut.props.onKeyUp&&ut.props.onKeyUp(Vt)},role:"option",selected:$t,value:void 0,"data-value":ut.props.value})});at&&(M?_t.length===0?ct=null:ct=_t.reduce((ut,$t,Vt)=>(ut.push($t),Vt<_t.length-1&&ut.push(", "),ut),[]):ct=Ft);let rt=me;!s&&ce&&oe&&(rt=Te.clientWidth);let je;typeof z<"u"?je=z:je=h?null:0;const he=I.id||(T?`mui-component-select-${T}`:void 0),We={...t,variant:Z,value:te,open:Fe,error:b},Me=iq(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 m.jsxs(C.Fragment,{children:[m.jsx(nq,{as:"div",ref:Ce,tabIndex:je,role:"combobox","aria-controls":Fe?gt:void 0,"aria-disabled":h?"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":b?"true":void 0,onKeyDown:xt,onMouseDown:h||W?null:ke,onBlur:it,onFocus:N,...I,ownerState:We,className:Pt(I.className,Me.select,u),id:he,children:aq(ct)?B2||(B2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ct}),m.jsx(oq,{"aria-invalid":b,value:Array.isArray(te)?te.join(","):te,name:T,ref:ie,"aria-hidden":!0,onChange:Ne,tabIndex:-1,disabled:h,className:Me.nativeInput,autoFocus:a,required:k,...K,ownerState:We}),m.jsx(rq,{as:v,className:Me.icon,ownerState:We}),m.jsx(cd,{id:`menu-${T||""}`,anchorEl:Te,open:Fe,onClose:Ge,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":w,role:"listbox","aria-multiselectable":M?"true":void 0,disableListWrap:!0,id:gt,...Mt},paper:{...kt,style:{minWidth:rt,...kt!=null?kt.style:null}}},children:Ze})]})}),lq=e=>{const{classes:t}=e,r=ln({root:["root"]},Tj,t);return{...t,...r}},AC={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ga(e)&&e!=="variant"},cq=ot(OC,AC)(""),uq=ot(DC,AC)(""),dq=ot(MC,AC)(""),Mj=C.forwardRef(function(t,n){const r=un({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:s={},className:l,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:c=dj,id:h,input:y,inputProps:b,label:v,labelId:x,MenuProps:w,multiple:S=!1,native:M=!1,onClose:T,onOpen:R,open:$,renderValue:P,SelectDisplayProps:N,variant:V="outlined",...F}=r,W=M?Y9:sq,_=rl(),k=Yc({props:r,muiFormControl:_,states:["variant","error"]}),I=k.variant||V,z={...r,variant:I,classes:s},H=lq(z),{root:A,...Z}=H,K=y||{standard:m.jsx(cq,{ownerState:z}),outlined:m.jsx(uq,{label:v,ownerState:z}),filled:m.jsx(dq,{ownerState:z})}[I],te=po(n,ld(K));return m.jsx(C.Fragment,{children:C.cloneElement(K,{inputComponent:W,inputProps:{children:a,error:k.error,IconComponent:c,variant:I,type:void 0,multiple:S,...M?{id:h}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:x,MenuProps:w,onClose:T,onOpen:R,open:$,renderValue:P,SelectDisplayProps:{id:h,...N}},...b,classes:b?Fo(Z,b.classes):Z,...y?y.props.inputProps:{}},...(S&&M||f)&&I==="outlined"?{notched:!0}:{},ref:te,className:Pt(K.props.className,l,H.root),...!y&&{variant:I},...F})})});Mj.muiName="Select";function fq(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const pq=2;function hf(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function Ej(e,t){return e-t}function _2(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 zy(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 Wv(e,t,n){return(e-t)*100/(n-t)}function hq(e,t,n){return(n-t)*e+t}function mq(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 gq(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(mq(t)))}function V2({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ej)}function Fy({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 By(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?fq(e,t):!1}const yq={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}%`})}},vq=e=>e;let Uy;function H2(){return Uy===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Uy=CSS.supports("touch-action","none"):Uy=!0),Uy}function bq(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:s=!1,max:l=100,min:u=0,name:f,onChange:c,onChangeCommitted:h,orientation:y="horizontal",rootRef:b,scale:v=vq,step:x=1,shiftStep:w=10,tabIndex:S,value:M}=e,T=C.useRef(void 0),[R,$]=C.useState(-1),[P,N]=C.useState(-1),[V,F]=C.useState(!1),W=C.useRef(0),_=C.useRef(null),[k,I]=Ac({controlled:M,default:n??u,name:"Slider"}),z=c&&((at,Ze,rt)=>{const je=at.nativeEvent||at,he=new je.constructor(je.type,je);Object.defineProperty(he,"target",{writable:!0,value:{value:Ze,name:f}}),_.current=Ze,c(he,Ze,rt)}),H=Array.isArray(k);let A=H?k.slice().sort(Ej):[k];A=A.map(at=>at==null?u:Mf(at,u,l));const Z=s===!0&&x!==null?[...Array(Math.floor((l-u)/x)+1)].map((at,Ze)=>({value:u+x*Ze})):s||[],K=Z.map(at=>at.value),[te,X]=C.useState(-1),Q=C.useRef(null),ne=po(b,Q),ie=at=>Ze=>{const rt=Number(Ze.currentTarget.getAttribute("data-index"));Fc(Ze.target)&&X(rt),N(rt),at?.onFocus?.(Ze)},pe=at=>Ze=>{Fc(Ze.target)||X(-1),N(-1),at?.onBlur?.(Ze)},oe=(at,Ze)=>{const rt=Number(at.currentTarget.getAttribute("data-index")),je=A[rt],he=K.indexOf(je);let We=Ze;if(Z&&x==null){const Me=K[K.length-1];We>=Me?We=Me:We<=K[0]?We=K[0]:We=We<je?K[he-1]:K[he+1]}if(We=Mf(We,u,l),H){o&&(We=Mf(We,A[rt-1]||-1/0,A[rt+1]||1/0));const Me=We;We=V2({values:A,newValue:We,index:rt});let kt=rt;o||(kt=We.indexOf(Me)),Fy({sliderRef:Q,activeIndex:kt})}I(We),X(rt),z&&!By(We,k)&&z(at,We,rt),h&&h(at,_.current??We)},ae=at=>Ze=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Ze.key)){Ze.preventDefault();const rt=Number(Ze.currentTarget.getAttribute("data-index")),je=A[rt];let he=null;if(x!=null){const We=Ze.shiftKey?w:x;switch(Ze.key){case"ArrowUp":he=hf(je,We,1,u,l);break;case"ArrowRight":he=hf(je,We,a?-1:1,u,l);break;case"ArrowDown":he=hf(je,We,-1,u,l);break;case"ArrowLeft":he=hf(je,We,a?1:-1,u,l);break;case"PageUp":he=hf(je,w,1,u,l);break;case"PageDown":he=hf(je,w,-1,u,l);break;case"Home":he=u;break;case"End":he=l;break}}else if(Z){const We=K[K.length-1],Me=K.indexOf(je),kt=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Mt=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];kt.includes(Ze.key)?Me===0?he=K[0]:he=K[Me-1]:Mt.includes(Ze.key)&&(Me===K.length-1?he=We:he=K[Me+1])}he!=null&&oe(Ze,he)}at?.onKeyDown?.(Ze)};Ia(()=>{r&&Q.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&R!==-1&&$(-1),r&&te!==-1&&X(-1);const ce=at=>Ze=>{at.onChange?.(Ze),oe(Ze,Ze.target.valueAsNumber)},me=C.useRef(void 0);let ye=y;a&&y==="horizontal"&&(ye+="-reverse");const we=({finger:at,move:Ze=!1})=>{const{current:rt}=Q,{width:je,height:he,bottom:We,left:Me}=rt.getBoundingClientRect();let kt;ye.startsWith("vertical")?kt=(We-at.y)/he:kt=(at.x-Me)/je,ye.includes("-reverse")&&(kt=1-kt);let Mt;if(Mt=hq(kt,u,l),x)Mt=gq(Mt,x,u);else{const ut=_2(K,Mt);Mt=K[ut]}Mt=Mf(Mt,u,l);let gt=0;if(H){Ze?gt=me.current:gt=_2(A,Mt),o&&(Mt=Mf(Mt,A[gt-1]||-1/0,A[gt+1]||1/0));const ut=Mt;Mt=V2({values:A,newValue:Mt,index:gt}),o&&Ze||(gt=Mt.indexOf(ut),me.current=gt)}return{newValue:Mt,activeIndex:gt}},Ce=Ro(at=>{const Ze=zy(at,T);if(!Ze)return;if(W.current+=1,at.type==="mousemove"&&at.buttons===0){Te(at);return}const{newValue:rt,activeIndex:je}=we({finger:Ze,move:!0});Fy({sliderRef:Q,activeIndex:je,setActive:$}),I(rt),!V&&W.current>pq&&F(!0),z&&!By(rt,k)&&z(at,rt,je)}),Te=Ro(at=>{const Ze=zy(at,T);if(F(!1),!Ze)return;const{newValue:rt}=we({finger:Ze,move:!0});$(-1),at.type==="touchend"&&N(-1),h&&h(at,_.current??rt),T.current=void 0,ke()}),ue=Ro(at=>{if(r)return;H2()||at.preventDefault();const Ze=at.changedTouches[0];Ze!=null&&(T.current=Ze.identifier);const rt=zy(at,T);if(rt!==!1){const{newValue:he,activeIndex:We}=we({finger:rt});Fy({sliderRef:Q,activeIndex:We,setActive:$}),I(he),z&&!By(he,k)&&z(at,he,We)}W.current=0;const je=To(Q.current);je.addEventListener("touchmove",Ce,{passive:!0}),je.addEventListener("touchend",Te,{passive:!0})}),ke=C.useCallback(()=>{const at=To(Q.current);at.removeEventListener("mousemove",Ce),at.removeEventListener("mouseup",Te),at.removeEventListener("touchmove",Ce),at.removeEventListener("touchend",Te)},[Te,Ce]);C.useEffect(()=>{const{current:at}=Q;return at.addEventListener("touchstart",ue,{passive:H2()}),()=>{at.removeEventListener("touchstart",ue),ke()}},[ke,ue]),C.useEffect(()=>{r&&ke()},[r,ke]);const Ge=at=>Ze=>{if(at.onMouseDown?.(Ze),r||Ze.defaultPrevented||Ze.button!==0)return;Ze.preventDefault();const rt=zy(Ze,T);if(rt!==!1){const{newValue:he,activeIndex:We}=we({finger:rt});Fy({sliderRef:Q,activeIndex:We,setActive:$}),I(he),z&&!By(he,k)&&z(Ze,he,We)}W.current=0;const je=To(Q.current);je.addEventListener("mousemove",Ce,{passive:!0}),je.addEventListener("mouseup",Te)},ze=Wv(H?A[0]:u,u,l),Ne=Wv(A[A.length-1],u,l)-ze,le=(at={})=>{const Ze=Wu(at),rt={onMouseDown:Ge(Ze||{})},je={...Ze,...rt};return{...at,ref:ne,...je}},xt=at=>Ze=>{at.onMouseOver?.(Ze);const rt=Number(Ze.currentTarget.getAttribute("data-index"));N(rt)},Fe=at=>Ze=>{at.onMouseLeave?.(Ze),N(-1)},it=(at={})=>{const Ze=Wu(at),rt={onMouseOver:xt(Ze||{}),onMouseLeave:Fe(Ze||{})};return{...at,...Ze,...rt}},ct=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:yq,dragging:V,focusedThumbIndex:te,getHiddenInputProps:(at={})=>{const Ze=Wu(at),rt={onChange:ce(Ze||{}),onFocus:ie(Ze||{}),onBlur:pe(Ze||{}),onKeyDown:ae(Ze||{})},je={...Ze,...rt};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":v(l),"aria-valuemin":v(u),name:f,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...at,...je,style:{...tq,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Ft}}},getRootProps:le,getThumbProps:it,marks:Z,open:P,range:H,rootRef:ne,trackLeap:Ne,trackOffset:ze,values:A,getThumbStyle:ct}}const xq=e=>!e||!jc(e);function Sq(e){return sn("MuiSlider",e)}const Ii=cn("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"]),wq=e=>{const{open:t}=e;return{offset:Pt(t&&Ii.valueLabelOpen),circle:Ii.valueLabelCircle,label:Ii.valueLabelLabel}};function Cq(e){const{children:t,className:n,value:r}=e,o=wq(e);return t?C.cloneElement(t,{className:t.props.className},m.jsxs(C.Fragment,{children:[t.props.children,m.jsx("span",{className:Pt(o.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:r})})})]})):null}function W2(e){return e}const kq=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"},[`&.${Ii.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ii.dragging}`]:{[`& .${Ii.thumb}, & .${Ii.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}}]}))),Tq=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}}]}),Mq=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)})}}}))]}))),Eq=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%)"},[`&.${Ii.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, &.${Ii.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ii.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Oq=ot(Cq,{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%"},[`&.${Ii.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%"},[`&.${Ii.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"}}]}))),Rq=ot("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ab(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}}]}))),$q=ot("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ab(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}}]}))),Pq=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:s,color:l,size:u}=e,f={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${tt(l)}`,u&&`size${tt(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${tt(u)}`,l&&`thumbColor${tt(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ln(f,Sq,s)},Dq=({children:e})=>e,Aq=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiSlider"}),o=lg(),{"aria-label":a,"aria-valuetext":s,"aria-labelledby":l,component:u="span",components:f={},componentsProps:c={},color:h="primary",classes:y,className:b,disableSwap:v=!1,disabled:x=!1,getAriaLabel:w,getAriaValueText:S,marks:M=!1,max:T=100,min:R=0,name:$,onChange:P,onChangeCommitted:N,orientation:V="horizontal",shiftStep:F=10,size:W="medium",step:_=1,scale:k=W2,slotProps:I,slots:z,tabIndex:H,track:A="normal",value:Z,valueLabelDisplay:K="off",valueLabelFormat:te=W2,...X}=r,Q={...r,isRtl:o,max:T,min:R,classes:y,disabled:x,disableSwap:v,orientation:V,marks:M,color:h,size:W,step:_,shiftStep:F,scale:k,track:A,valueLabelDisplay:K,valueLabelFormat:te},{axisProps:ne,getRootProps:ie,getHiddenInputProps:pe,getThumbProps:oe,open:ae,active:ce,axis:me,focusedThumbIndex:ye,range:we,dragging:Ce,marks:Te,values:ue,trackOffset:ke,trackLeap:Ge,getThumbStyle:ze}=bq({...Q,rootRef:n});Q.marked=Te.length>0&&Te.some(Qt=>Qt.label),Q.dragging=Ce,Q.focusedThumbIndex=ye;const Ne=Pq(Q),le=z?.root??f.Root??kq,xt=z?.rail??f.Rail??Tq,Fe=z?.track??f.Track??Mq,it=z?.thumb??f.Thumb??Eq,ct=z?.valueLabel??f.ValueLabel??Oq,Ft=z?.mark??f.Mark??Rq,_t=z?.markLabel??f.MarkLabel??$q,at=z?.input??f.Input??"input",Ze=I?.root??c.root,rt=I?.rail??c.rail,je=I?.track??c.track,he=I?.thumb??c.thumb,We=I?.valueLabel??c.valueLabel,Me=I?.mark??c.mark,kt=I?.markLabel??c.markLabel,Mt=I?.input??c.input,gt=zs({elementType:le,getSlotProps:ie,externalSlotProps:Ze,externalForwardedProps:X,additionalProps:{...xq(le)&&{as:u}},ownerState:{...Q,...Ze?.ownerState},className:[Ne.root,b]}),ut=zs({elementType:xt,externalSlotProps:rt,ownerState:Q,className:Ne.rail}),$t=zs({elementType:Fe,externalSlotProps:je,additionalProps:{style:{...ne[me].offset(ke),...ne[me].leap(Ge)}},ownerState:{...Q,...je?.ownerState},className:Ne.track}),Vt=zs({elementType:it,getSlotProps:oe,externalSlotProps:he,ownerState:{...Q,...he?.ownerState},className:Ne.thumb}),dn=zs({elementType:ct,externalSlotProps:We,ownerState:{...Q,...We?.ownerState},className:Ne.valueLabel}),vn=zs({elementType:Ft,externalSlotProps:Me,ownerState:Q,className:Ne.mark}),Bn=zs({elementType:_t,externalSlotProps:kt,ownerState:Q,className:Ne.markLabel}),Wn=zs({elementType:at,getSlotProps:pe,externalSlotProps:Mt,ownerState:Q});return m.jsxs(le,{...gt,children:[m.jsx(xt,{...ut}),m.jsx(Fe,{...$t}),Te.filter(Qt=>Qt.value>=R&&Qt.value<=T).map((Qt,In)=>{const be=Wv(Qt.value,R,T),zn=ne[me].offset(be);let En;return A===!1?En=ue.includes(Qt.value):En=A==="normal"&&(we?Qt.value>=ue[0]&&Qt.value<=ue[ue.length-1]:Qt.value<=ue[0])||A==="inverted"&&(we?Qt.value<=ue[0]||Qt.value>=ue[ue.length-1]:Qt.value>=ue[0]),m.jsxs(C.Fragment,{children:[m.jsx(Ft,{"data-index":In,...vn,...!jc(Ft)&&{markActive:En},style:{...zn,...vn.style},className:Pt(vn.className,En&&Ne.markActive)}),Qt.label!=null?m.jsx(_t,{"aria-hidden":!0,"data-index":In,...Bn,...!jc(_t)&&{markLabelActive:En},style:{...zn,...Bn.style},className:Pt(Ne.markLabel,Bn.className,En&&Ne.markLabelActive),children:Qt.label}):null]},In)}),ue.map((Qt,In)=>{const be=Wv(Qt,R,T),zn=ne[me].offset(be),En=K==="off"?Dq:ct;return m.jsx(En,{...!jc(En)&&{valueLabelFormat:te,valueLabelDisplay:K,value:typeof te=="function"?te(k(Qt),In):te,index:In,open:ae===In||ce===In||K==="on",disabled:x},...dn,children:m.jsx(it,{"data-index":In,...Vt,className:Pt(Ne.thumb,Vt.className,ce===In&&Ne.active,ye===In&&Ne.focusVisible),style:{...zn,...ze(In),...Vt.style},children:m.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:ue[In],...Wn})})},In)})]})});function jq(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=Bu();C.useEffect(()=>{if(!o)return;function S(M){M.defaultPrevented||M.key==="Escape"&&r?.(M,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[o,r]);const l=Ro((S,M)=>{r?.(S,M)}),u=Ro(S=>{!r||S==null||s.start(S,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&u(t),s.clear),[o,t,u,s]);const f=S=>{r?.(S,"clickaway")},c=s.clear,h=C.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),y=S=>M=>{const T=S.onBlur;T?.(M),h()},b=S=>M=>{const T=S.onFocus;T?.(M),c()},v=S=>M=>{const T=S.onMouseEnter;T?.(M),c()},x=S=>M=>{const T=S.onMouseLeave;T?.(M),h()};return C.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",c)}},[n,o,h,c]),{getRootProps:(S={})=>{const M={...Wu(e),...Wu(S)};return{role:"presentation",...S,...M,onBlur:y(M),onFocus:b(M),onMouseEnter:v(M),onMouseLeave:x(M)}},onClickAway:f}}function Nq(e){return sn("MuiSnackbarContent",e)}cn("MuiSnackbarContent",["root","message","action"]);const Iq=e=>{const{classes:t}=e;return ln({root:["root"],action:["action"],message:["message"]},Nq,t)},Lq=ot(La,{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(vS(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:vS(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),zq=ot("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Fq=ot("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Bq=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:s,role:l="alert",...u}=r,f=r,c=Iq(f);return m.jsxs(Lq,{role:l,elevation:6,className:Pt(c.root,a),ownerState:f,ref:n,...u,children:[m.jsx(zq,{className:c.message,ownerState:f,children:s}),o?m.jsx(Fq,{className:c.action,ownerState:f,children:o}):null]})});function Uq(e){return sn("MuiSnackbar",e)}cn("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const _q=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${tt(n.vertical)}${tt(n.horizontal)}`]};return ln(r,Uq,t)},Vq=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%)"}}}]}))),_b=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiSnackbar"}),o=Wc(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:c,className:h,ClickAwayListenerProps:y,ContentProps:b,disableWindowBlurListener:v=!1,message:x,onBlur:w,onClose:S,onFocus:M,onMouseEnter:T,onMouseLeave:R,open:$,resumeHideDuration:P,slots:N={},slotProps:V={},TransitionComponent:F,transitionDuration:W=a,TransitionProps:{onEnter:_,onExited:k,...I}={},...z}=r,H={...r,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:f,disableWindowBlurListener:v,TransitionComponent:F,transitionDuration:W},A=_q(H),{getRootProps:Z,onClickAway:K}=jq({...H}),[te,X]=C.useState(!0),Q=ue=>{X(!0),k&&k(ue)},ne=(ue,ke)=>{X(!1),_&&_(ue,ke)},ie={slots:{transition:F,...N},slotProps:{content:b,clickAwayListener:y,transition:I,...V}},[pe,oe]=Dn("root",{ref:n,className:[A.root,h],elementType:Vq,getSlotProps:Z,externalForwardedProps:{...ie,...z},ownerState:H}),[ae,{ownerState:ce,...me}]=Dn("clickAwayListener",{elementType:M8,externalForwardedProps:ie,getSlotProps:ue=>({onClickAway:(...ke)=>{const Ge=ke[0];ue.onClickAway?.(...ke),!Ge?.defaultMuiPrevented&&K(...ke)}}),ownerState:H}),[ye,we]=Dn("content",{elementType:Bq,shouldForwardComponentProp:!0,externalForwardedProps:ie,additionalProps:{message:x,action:s},ownerState:H}),[Ce,Te]=Dn("transition",{elementType:Vm,externalForwardedProps:ie,getSlotProps:ue=>({onEnter:(...ke)=>{ue.onEnter?.(...ke),ne(...ke)},onExited:(...ke)=>{ue.onExited?.(...ke),Q(...ke)}}),additionalProps:{appear:!0,in:$,timeout:W,direction:l==="top"?"down":"up"},ownerState:H});return!$&&te?null:m.jsx(ae,{...me,...N.clickAwayListener&&{ownerState:ce},children:m.jsx(pe,{...oe,children:m.jsx(Ce,{...Te,children:c||m.jsx(ye,{...we})})})})});function Hq(e){return sn("MuiTooltip",e)}const so=cn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Wq(e){return Math.round(e*1e5)/1e5}const qq=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 ln(s,Hq,t)},Yq=ot(Ib,{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"}}}]}))),Gq=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:`${Wq(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"}}}]}))),Kq=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 _y=!1;const q2=new jb;let Ah={x:0,y:0};function Vy(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const _i=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:l={},componentsProps:u={},describeChild:f=!1,disableFocusListener:c=!1,disableHoverListener:h=!1,disableInteractive:y=!1,disableTouchListener:b=!1,enterDelay:v=100,enterNextDelay:x=0,enterTouchDelay:w=700,followCursor:S=!1,id:M,leaveDelay:T=0,leaveTouchDelay:R=1500,onClose:$,onOpen:P,open:N,placement:V="bottom",PopperComponent:F,PopperProps:W={},slotProps:_={},slots:k={},title:I,TransitionComponent:z,TransitionProps:H,...A}=r,Z=C.isValidElement(a)?a:m.jsx("span",{children:a}),K=Wc(),te=lg(),[X,Q]=C.useState(),[ne,ie]=C.useState(null),pe=C.useRef(!1),oe=y||S,ae=Bu(),ce=Bu(),me=Bu(),ye=Bu(),[we,Ce]=Ac({controlled:N,default:!1,name:"Tooltip",state:"open"});let Te=we;const ue=Hc(M),ke=C.useRef(),Ge=Ro(()=>{ke.current!==void 0&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),ye.clear()});C.useEffect(()=>Ge,[Ge]);const ze=Xt=>{q2.clear(),_y=!0,Ce(!0),P&&!Te&&P(Xt)},Ne=Ro(Xt=>{q2.start(800+T,()=>{_y=!1}),Ce(!1),$&&Te&&$(Xt),ae.start(K.transitions.duration.shortest,()=>{pe.current=!1})}),le=Xt=>{pe.current&&Xt.type!=="touchstart"||(X&&X.removeAttribute("title"),ce.clear(),me.clear(),v||_y&&x?ce.start(_y?x:v,()=>{ze(Xt)}):ze(Xt))},xt=Xt=>{ce.clear(),me.start(T,()=>{Ne(Xt)})},[,Fe]=C.useState(!1),it=Xt=>{Fc(Xt.target)||(Fe(!1),xt(Xt))},ct=Xt=>{X||Q(Xt.currentTarget),Fc(Xt.target)&&(Fe(!0),le(Xt))},Ft=Xt=>{pe.current=!0;const se=Z.props;se.onTouchStart&&se.onTouchStart(Xt)},_t=Xt=>{Ft(Xt),me.clear(),ae.clear(),Ge(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.start(w,()=>{document.body.style.WebkitUserSelect=ke.current,le(Xt)})},at=Xt=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(Xt),Ge(),me.start(R,()=>{Ne(Xt)})};C.useEffect(()=>{if(!Te)return;function Xt(se){se.key==="Escape"&&Ne(se)}return document.addEventListener("keydown",Xt),()=>{document.removeEventListener("keydown",Xt)}},[Ne,Te]);const Ze=po(ld(Z),Q,n);!I&&I!==0&&(Te=!1);const rt=C.useRef(),je=Xt=>{const se=Z.props;se.onMouseMove&&se.onMouseMove(Xt),Ah={x:Xt.clientX,y:Xt.clientY},rt.current&&rt.current.update()},he={},We=typeof I=="string";f?(he.title=!Te&&We&&!h?I:null,he["aria-describedby"]=Te?ue:null):(he["aria-label"]=We?I:null,he["aria-labelledby"]=Te&&!We?ue:null);const Me={...he,...A,...Z.props,className:Pt(A.className,Z.props.className),onTouchStart:Ft,ref:Ze,...S?{onMouseMove:je}:{}},kt={};b||(Me.onTouchStart=_t,Me.onTouchEnd=at),h||(Me.onMouseOver=Vy(le,Me.onMouseOver),Me.onMouseLeave=Vy(xt,Me.onMouseLeave),oe||(kt.onMouseOver=le,kt.onMouseLeave=xt)),c||(Me.onFocus=Vy(ct,Me.onFocus),Me.onBlur=Vy(it,Me.onBlur),oe||(kt.onFocus=ct,kt.onBlur=it));const Mt={...r,isRtl:te,arrow:o,disableInteractive:oe,placement:V,PopperComponentProp:F,touch:pe.current},gt=typeof _.popper=="function"?_.popper(Mt):_.popper,ut=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=qq(Mt),Vt=typeof _.transition=="function"?_.transition(Mt):_.transition,dn={slots:{popper:l.Popper,transition:l.Transition??z,tooltip:l.Tooltip,arrow:l.Arrow,...k},slotProps:{arrow:_.arrow??u.arrow,popper:{...W,...gt??u.popper},tooltip:_.tooltip??u.tooltip,transition:{...H,...Vt??u.transition}}},[vn,Bn]=Dn("popper",{elementType:Yq,externalForwardedProps:dn,ownerState:Mt,className:Pt($t.popper,W?.className)}),[Wn,Qt]=Dn("transition",{elementType:Vm,externalForwardedProps:dn,ownerState:Mt}),[In,be]=Dn("tooltip",{elementType:Gq,className:$t.tooltip,externalForwardedProps:dn,ownerState:Mt}),[zn,En]=Dn("arrow",{elementType:Kq,className:$t.arrow,externalForwardedProps:dn,ownerState:Mt,ref:ie});return m.jsxs(C.Fragment,{children:[C.cloneElement(Z,Me),m.jsx(vn,{as:F??Ib,placement:V,anchorEl:S?{getBoundingClientRect:()=>({top:Ah.y,left:Ah.x,right:Ah.x,bottom:Ah.y,width:0,height:0})}:X,popperRef:rt,open:X?Te:!1,id:ue,transition:!0,...kt,...Bn,popperOptions:ut,children:({TransitionProps:Xt})=>m.jsx(Wn,{timeout:K.transitions.duration.shorter,...Xt,...Qt,children:m.jsxs(In,{...be,children:[I,o?m.jsx(zn,{...En}):null]})})})]})}),fr=dC({createStyledComponent:ot("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>un({props:e,name:"MuiStack"})});function Qq(e){return sn("MuiSwitch",e)}const da=cn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Xq=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:s}=e,l={root:["root",n&&`edge${tt(n)}`,`size${tt(r)}`],switchBase:["switchBase",`color${tt(o)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=ln(l,Qq,t);return{...t,...u}},Zq=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,[`& .${da.thumb}`]:{width:16,height:16},[`& .${da.switchBase}`]:{padding:4,[`&.${da.checked}`]:{transform:"translateX(16px)"}}}}]}),Jq=ot(hj,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${da.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}),[`&.${da.checked}`]:{transform:"translateX(20px)"},[`&.${da.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${da.checked} + .${da.track}`]:{opacity:.5},[`&.${da.disabled} + .${da.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${da.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:{[`&.${da.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"}},[`&.${da.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)}`}},[`&.${da.checked} + .${da.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),e7=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}`}))),t7=ot("span",{name:"MuiSwitch",slot:"Thumb"})(Jt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Oj=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:s=!1,size:l="medium",sx:u,slots:f={},slotProps:c={},...h}=r,y={...r,color:a,edge:s,size:l},b=Xq(y),v={slots:f,slotProps:c},[x,w]=Dn("root",{className:Pt(b.root,o),elementType:Zq,externalForwardedProps:v,ownerState:y,additionalProps:{sx:u}}),[S,M]=Dn("thumb",{className:b.thumb,elementType:t7,externalForwardedProps:v,ownerState:y}),T=m.jsx(S,{...M}),[R,$]=Dn("track",{className:b.track,elementType:e7,externalForwardedProps:v,ownerState:y});return m.jsxs(x,{...w,children:[m.jsx(Jq,{type:"checkbox",icon:T,checkedIcon:T,ref:n,ownerState:y,...h,classes:{...b,root:b.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}}}),m.jsx(R,{...$})]})}),Rj=C.createContext();function n7(e){return sn("MuiTable",e)}cn("MuiTable",["root","stickyHeader"]);const r7=e=>{const{classes:t,stickyHeader:n}=e;return ln({root:["root",n&&"stickyHeader"]},n7,t)},o7=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"}}]}))),Y2="table",fg=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiTable"}),{className:o,component:a=Y2,padding:s="normal",size:l="medium",stickyHeader:u=!1,...f}=r,c={...r,component:a,padding:s,size:l,stickyHeader:u},h=r7(c),y=C.useMemo(()=>({padding:s,size:l,stickyHeader:u}),[s,l,u]);return m.jsx(Rj.Provider,{value:y,children:m.jsx(o7,{as:a,role:a===Y2?null:"table",ref:n,className:Pt(h.root,o),ownerState:c,...f})})}),Vb=C.createContext();function a7(e){return sn("MuiTableBody",e)}cn("MuiTableBody",["root"]);const i7=e=>{const{classes:t}=e;return ln({root:["root"]},a7,t)},s7=ot("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),l7={variant:"body"},G2="tbody",pg=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiTableBody"}),{className:o,component:a=G2,...s}=r,l={...r,component:a},u=i7(l);return m.jsx(Vb.Provider,{value:l7,children:m.jsx(s7,{className:Pt(u.root,o),as:a,ref:n,role:a===G2?null:"rowgroup",ownerState:l,...s})})});function c7(e){return sn("MuiTableCell",e)}const u7=cn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),d7=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 ln(l,c7,t)},f7=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",[`&.${u7.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=un({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:l,scope:u,size:f,sortDirection:c,variant:h,...y}=r,b=C.useContext(Rj),v=C.useContext(Vb),x=v&&v.variant==="head";let w;s?w=s:w=x?"th":"td";let S=u;w==="td"?S=void 0:!S&&x&&(S="col");const M=h||v&&v.variant,T={...r,align:o,component:w,padding:l||(b&&b.padding?b.padding:"normal"),size:f||(b&&b.size?b.size:"medium"),sortDirection:c,stickyHeader:M==="head"&&b&&b.stickyHeader,variant:M},R=d7(T);let $=null;return c&&($=c==="asc"?"ascending":"descending"),m.jsx(f7,{as:w,ref:n,className:Pt(R.root,a),"aria-sort":$,scope:S,ownerState:T,...y})});function p7(e){return sn("MuiTableContainer",e)}cn("MuiTableContainer",["root"]);const h7=e=>{const{classes:t}=e;return ln({root:["root"]},p7,t)},m7=ot("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),g7=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=r,l={...r,component:a},u=h7(l);return m.jsx(m7,{ref:n,as:a,className:Pt(u.root,o),ownerState:l,...s})});function y7(e){return sn("MuiTableHead",e)}cn("MuiTableHead",["root"]);const v7=e=>{const{classes:t}=e;return ln({root:["root"]},y7,t)},b7=ot("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),x7={variant:"head"},K2="thead",hg=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiTableHead"}),{className:o,component:a=K2,...s}=r,l={...r,component:a},u=v7(l);return m.jsx(Vb.Provider,{value:x7,children:m.jsx(b7,{as:a,className:Pt(u.root,o),ref:n,role:a===K2?null:"rowgroup",ownerState:l,...s})})});function S7(e){return sn("MuiTableRow",e)}const Q2=cn("MuiTableRow",["root","selected","hover","head","footer"]),w7=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return ln({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},S7,t)},C7=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,[`&.${Q2.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Q2.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}`)}}}))),X2="tr",Zs=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiTableRow"}),{className:o,component:a=X2,hover:s=!1,selected:l=!1,...u}=r,f=C.useContext(Vb),c={...r,component:a,hover:s,selected:l,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},h=w7(c);return m.jsx(C7,{as:a,ref:n,className:Pt(h.root,o),role:a===X2?null:"row",ownerState:c,...u})});function k7(e){return sn("MuiTextField",e)}cn("MuiTextField",["root"]);const T7={standard:OC,filled:MC,outlined:DC},M7=e=>{const{classes:t}=e;return ln({root:["root"]},k7,t)},E7=ot(jS,{name:"MuiTextField",slot:"Root"})({}),Oa=C.forwardRef(function(t,n){const r=un({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:l,color:u="primary",defaultValue:f,disabled:c=!1,error:h=!1,FormHelperTextProps:y,fullWidth:b=!1,helperText:v,id:x,InputLabelProps:w,inputProps:S,InputProps:M,inputRef:T,label:R,maxRows:$,minRows:P,multiline:N=!1,name:V,onBlur:F,onChange:W,onFocus:_,placeholder:k,required:I=!1,rows:z,select:H=!1,SelectProps:A,slots:Z={},slotProps:K={},type:te,value:X,variant:Q="outlined",...ne}=r,ie={...r,autoFocus:a,color:u,disabled:c,error:h,fullWidth:b,multiline:N,required:I,select:H,variant:Q},pe=M7(ie),oe=Hc(x),ae=v&&oe?`${oe}-helper-text`:void 0,ce=R&&oe?`${oe}-label`:void 0,me=T7[Q],ye={slots:Z,slotProps:{input:M,inputLabel:w,htmlInput:S,formHelperText:y,select:A,...K}},we={},Ce=ye.slotProps.inputLabel;Q==="outlined"&&(Ce&&typeof Ce.shrink<"u"&&(we.notched=Ce.shrink),we.label=R),H&&((!A||!A.native)&&(we.id=void 0),we["aria-describedby"]=void 0);const[Te,ue]=Dn("root",{elementType:E7,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,...ne},ownerState:ie,className:Pt(pe.root,l),ref:n,additionalProps:{disabled:c,error:h,fullWidth:b,required:I,color:u,variant:Q}}),[ke,Ge]=Dn("input",{elementType:me,externalForwardedProps:ye,additionalProps:we,ownerState:ie}),[ze,Ne]=Dn("inputLabel",{elementType:XW,externalForwardedProps:ye,ownerState:ie}),[le,xt]=Dn("htmlInput",{elementType:"input",externalForwardedProps:ye,ownerState:ie}),[Fe,it]=Dn("formHelperText",{elementType:NS,externalForwardedProps:ye,ownerState:ie}),[ct,Ft]=Dn("select",{elementType:Mj,externalForwardedProps:ye,ownerState:ie}),_t=m.jsx(ke,{"aria-describedby":ae,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:b,multiline:N,name:V,rows:z,maxRows:$,minRows:P,type:te,value:X,id:oe,inputRef:T,onBlur:F,onChange:W,onFocus:_,placeholder:k,inputProps:xt,slots:{input:Z.htmlInput?le:void 0},...Ge});return m.jsxs(Te,{...ue,children:[R!=null&&R!==""&&m.jsx(ze,{htmlFor:oe,id:ce,...Ne,children:R}),H?m.jsx(ct,{"aria-describedby":ae,id:oe,labelId:ce,value:X,input:_t,...Ft,children:s}):_t,v&&m.jsx(Fe,{id:ae,...it,children:v})]})});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(){}},O7={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},R7=class{#e=O7;#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 R7;function $7(e){setTimeout(e,0)}var ed=typeof window>"u"||"Deno"in globalThis;function ta(){}function P7(e,t){return typeof e=="function"?e(t):e}function US(e){return typeof e=="number"&&e>=0&&e!==1/0}function $j(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Nc(e,t){return typeof e=="function"?e(t):e}function Di(e,t){return typeof e=="function"?e(t):e}function Z2(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(!Hm(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function J2(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(!Hm(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)=>_S(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Hm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Hm(e[n],t[n])):!1}var D7=Object.prototype.hasOwnProperty;function NC(e,t){if(e===t)return e;const n=eR(e)&&eR(t);if(!n&&!(_S(e)&&_S(t)))return t;const o=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),s=a.length,l=n?new Array(s):{};let u=0;for(let f=0;f<s;f++){const c=n?f:a[f],h=e[c],y=t[c];if(h===y){l[c]=h,(n?f<o:D7.call(e,c))&&u++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){l[c]=y;continue}const b=NC(h,y);l[c]=b,b===h&&u++}return o===s&&u===o?e:l}function Wm(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 eR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _S(e){if(!tR(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!tR(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function tR(e){return Object.prototype.toString.call(e)==="[object Object]"}function A7(e){return new Promise(t=>{Uu.setTimeout(t,e)})}function VS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?NC(e,t):t}function j7(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function N7(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var IC=Symbol();function Pj(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 Dj(e,t){return typeof e=="function"?e(...t):!!e}var I7=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 I7;function HS(){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 L7=$7;function z7(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=L7;const a=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(u=>{n(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||s()}return u},batchCalls:l=>(...u)=>{a(()=>{l(...u)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var lo=z7(),F7=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}},qv=new F7;function B7(e){return Math.min(1e3*2**e,3e4)}function Aj(e){return(e??"online")==="online"?qv.isOnline():!0}var WS=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function jj(e){let t=!1,n=0,r;const o=HS(),a=()=>o.status!=="pending",s=x=>{if(!a()){const w=new WS(x);y(w),e.onCancel?.(w)}},l=()=>{t=!0},u=()=>{t=!1},f=()=>LC.isFocused()&&(e.networkMode==="always"||qv.isOnline())&&e.canRun(),c=()=>Aj(e.networkMode)&&e.canRun(),h=x=>{a()||(r?.(),o.resolve(x))},y=x=>{a()||(r?.(),o.reject(x))},b=()=>new Promise(x=>{r=w=>{(a()||f())&&x(w)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),v=()=>{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(h).catch(S=>{if(a())return;const M=e.retry??(ed?0:3),T=e.retryDelay??B7,R=typeof T=="function"?T(n,S):T,$=M===!0||typeof M=="number"&&n<M||typeof M=="function"&&M(n,S);if(t||!$){y(S);return}n++,e.onFail?.(n,S),A7(R).then(()=>f()?void 0:b()).then(()=>{t?y(S):v()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:l,continueRetry:u,canStart:c,start:()=>(c()?v():b().then(v),o)}}var Nj=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),US(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)}},U7=class extends Nj{#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=nR(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=nR(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=VS(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(ta).catch(ta):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Di(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:!$j(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(u=>u.options.queryFn);l&&this.setOptions(l.options)}const n=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const l=Pj(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=jj({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:l=>{l instanceof WS&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(l,u)=>{this.#i({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const l=await this.#r.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof WS){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,...Ij(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 Ij(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Aj(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function nR(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=HS(),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),rR(this.#t,this.options)?this.#g():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qS(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qS(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 Di(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&&!Wm(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&oR(this.#t,n,this.options,t)&&this.#g(),this.updateResult(),r&&(this.#t!==n||Di(this.options.enabled,this.#t)!==Di(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||Di(this.options.enabled,this.#t)!==Di(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 V7(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(ta)),t}#y(){this.#x();const e=Nc(this.options.staleTime,this.#t);if(ed||this.#o.isStale||!US(e))return;const n=$j(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||Di(this.options.enabled,this.#t)===!1||!US(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,u=e!==n?e.state:this.#n,{state:f}=e;let c={...f},h=!1,y;if(t._optimisticResults){const V=this.hasListeners(),F=!V&&rR(e,t),W=V&&oR(e,n,t,r);(F||W)&&(c={...c,...Ij(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,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=VS(o?.data,V,t),h=!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=VS(o?.data,y,t),this.#l=y,this.#i=null}catch(V){this.#i=V}this.#i&&(b=this.#i,y=this.#l,v=Date.now(),x="error");const S=c.fetchStatus==="fetching",M=x==="pending",T=x==="error",R=M&&S,$=y!==void 0,N={status:x,fetchStatus:c.fetchStatus,isPending:M,isSuccess:x==="success",isError:T,isInitialLoading:R,isLoading:R,data:y,dataUpdatedAt:c.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!M,isLoadingError:T&&!$,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:T&&$,isStale:FC(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Di(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const V=_=>{N.status==="error"?_.reject(N.error):N.data!==void 0&&_.resolve(N.data)},F=()=>{const _=this.#s=N.promise=HS();V(_)},W=this.#s;switch(W.status){case"pending":e.queryHash===n.queryHash&&V(W);break;case"fulfilled":(N.status==="error"||N.data!==W.value)&&F();break;case"rejected":(N.status!=="error"||N.error!==W.reason)&&F();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),Wm(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 _7(e,t){return Di(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function rR(e,t){return _7(e,t)||e.state.data!==void 0&&qS(e,t,t.refetchOnMount)}function qS(e,t,n){if(Di(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 oR(e,t,n,r){return(e!==t||Di(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&FC(e,n)}function FC(e,t){return Di(t.enabled,e)!==!1&&e.isStaleByTime(Nc(t.staleTime,e))}function V7(e,t){return!Wm(e.getCurrentResult(),t)}function aR(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},u=0;const f=async()=>{let c=!1;const h=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},y=Pj(t.options,t.fetchOptions),b=async(v,x,w)=>{if(c)return Promise.reject();if(x==null&&v.pages.length)return Promise.resolve(v);const M=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:x,direction:w?"backward":"forward",meta:t.options.meta};return h(P),P})(),T=await y(M),{maxPages:R}=t.options,$=w?N7:j7;return{pages:$(v.pages,T,R),pageParams:$(v.pageParams,x,R)}};if(o&&a.length){const v=o==="backward",x=v?H7:iR,w={pages:a,pageParams:s},S=x(r,w);l=await b(w,S,v)}else{const v=e??a.length;do{const x=u===0?s[0]??r.initialPageParam:iR(r,l);if(u>0&&x==null)break;l=await b(l,x),u++}while(u<v)}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 iR(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 H7(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var W7=class extends Nj{#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||Lj(),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=jj({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 Lj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var q7=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 W7({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=Hy(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=Hy(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=Hy(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=Hy(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=>J2(t,n))}findAll(e={}){return this.getAll().filter(t=>J2(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(ta))))}};function Hy(e){return e.options.scope?.id}var Y7=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),Wm(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??Lj();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 sR(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function G7(e,t,n){const r=e.slice(0);return r[t]=n,r}var K7=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,h)=>c!==n[h]),u=s||l,f=u?!0:a.some((c,h)=>{const y=this.#t[h];return!y||!Wm(c,y)});!u&&!f||(u&&(this.#r=o),this.#t=a,this.hasListeners()&&(u&&(sR(n,o).forEach(c=>{c.destroy()}),sR(o,n).forEach(c=>{c.subscribe(h=>{this.#p(c,h)})})),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=G7(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)})})}}},Q7=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 U7({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=>Z2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Z2(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()})})}},X7=class{#e;#t;#n;#o;#r;#a;#s;#i;constructor(e={}){this.#e=e.queryCache||new Q7,this.#t=e.mutationCache||new q7,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=qv.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=P7(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(ta).catch(ta)}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(ta)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ta)}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(ta).catch(ta)}fetchInfiniteQuery(e){return e.behavior=aR(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ta).catch(ta)}ensureInfiniteQueryData(e){return e.behavior=aR(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qv.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=>{Hm(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=>{Hm(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()}},zj=C.createContext(void 0),dd=e=>{const t=C.useContext(zj);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Z7=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(zj.Provider,{value:e,children:t})),Fj=C.createContext(!1),Bj=()=>C.useContext(Fj);Fj.Provider;function J7(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var eY=C.createContext(J7()),Uj=()=>C.useContext(eY),_j=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Vj=e=>{C.useEffect(()=>{e.clearReset()},[e])},Hj=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Dj(n,[e.error,r])),Wj=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))}},qj=(e,t)=>e.isLoading&&e.isFetching&&!t,YS=(e,t)=>e?.suspense&&t.isPending,Yv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tY({queries:e,...t},n){const r=dd(n),o=Bj(),a=Uj(),s=C.useMemo(()=>e.map(x=>{const w=r.defaultQueryOptions(x);return w._optimisticResults=o?"isRestoring":"optimistic",w}),[e,r,o]);s.forEach(x=>{Wj(x),_j(x,a)}),Vj(a);const[l]=C.useState(()=>new K7(r,s,t)),[u,f,c]=l.getOptimisticResult(s,t.combine),h=!o&&t.subscribed!==!1;C.useSyncExternalStore(C.useCallback(x=>h?l.subscribe(lo.batchCalls(x)):ta,[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C.useEffect(()=>{l.setQueries(s,t)},[s,t,l]);const b=u.some((x,w)=>YS(s[w],x))?u.flatMap((x,w)=>{const S=s[w];if(S){const M=new zC(r,S);if(YS(S,x))return Yv(S,M,a);qj(x,o)&&Yv(S,M,a)}return[]}):[];if(b.length>0)throw Promise.all(b);const v=u.find((x,w)=>{const S=s[w];return S&&Hj({result:x,errorResetBoundary:a,throwOnError:S.throwOnError,query:r.getQueryCache().get(S.queryHash),suspense:S.suspense})});if(v?.error)throw v.error;return f(c())}function nY(e,t,n){const r=Bj(),o=Uj(),a=dd(n),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",Wj(s),_j(s,o),Vj(o);const l=!a.getQueryCache().get(s.queryHash),[u]=C.useState(()=>new t(a,s)),f=u.getOptimisticResult(s),c=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(h=>{const y=c?u.subscribe(lo.batchCalls(h)):ta;return u.updateResult(),y},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),C.useEffect(()=>{u.setOptions(s)},[s,u]),YS(s,f))throw Yv(s,u,o);if(Hj({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&&qj(f,r)&&(l?Yv(s,u,o):a.getQueryCache().get(s.queryHash)?.promise)?.catch(ta).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?f:u.trackResult(f)}function Yj(e,t){return nY(e,zC,t)}function rY(e,t){const n=dd(t),[r]=C.useState(()=>new Y7(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(ta)},[r]);if(o.error&&Dj(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function Gj(e,t){return function(){return e.apply(t,arguments)}}const{toString:oY}=Object.prototype,{getPrototypeOf:BC}=Object,{iterator:Hb,toStringTag:Kj}=Symbol,Wb=(e=>t=>{const n=oY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hs=e=>(e=e.toLowerCase(),t=>Wb(t)===e),qb=e=>t=>typeof t===e,{isArray:hp}=Array,Zf=qb("undefined");function mg(e){return e!==null&&!Zf(e)&&e.constructor!==null&&!Zf(e.constructor)&&Pa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qj=hs("ArrayBuffer");function aY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qj(e.buffer),t}const iY=qb("string"),Pa=qb("function"),Xj=qb("number"),gg=e=>e!==null&&typeof e=="object",sY=e=>e===!0||e===!1,Sv=e=>{if(Wb(e)!=="object")return!1;const t=BC(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Kj in e)&&!(Hb in e)},lY=e=>{if(!gg(e)||mg(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},cY=hs("Date"),uY=hs("File"),dY=hs("Blob"),fY=hs("FileList"),pY=e=>gg(e)&&Pa(e.pipe),hY=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pa(e.append)&&((t=Wb(e))==="formdata"||t==="object"&&Pa(e.toString)&&e.toString()==="[object FormData]"))},mY=hs("URLSearchParams"),[gY,yY,vY,bY]=["ReadableStream","Request","Response","Headers"].map(hs),xY=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),hp(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(mg(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 Zj(e,t){if(mg(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,Jj=e=>!Zf(e)&&e!==_u;function GS(){const{caseless:e,skipUndefined:t}=Jj(this)&&this||{},n={},r=(o,a)=>{const s=e&&Zj(n,a)||a;Sv(n[s])&&Sv(o)?n[s]=GS(n[s],o):Sv(o)?n[s]=GS({},o):hp(o)?n[s]=o.slice():(!t||!Zf(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&yg(arguments[o],r);return n}const SY=(e,t,n,{allOwnKeys:r}={})=>(yg(t,(o,a)=>{n&&Pa(o)?e[a]=Gj(o,n):e[a]=o},{allOwnKeys:r}),e),wY=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),CY=(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)},kY=(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},TY=(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},MY=e=>{if(!e)return null;if(hp(e))return e;let t=e.length;if(!Xj(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},EY=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&BC(Uint8Array)),OY=(e,t)=>{const r=(e&&e[Hb]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},RY=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$Y=hs("HTMLFormElement"),PY=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),lR=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),DY=hs("RegExp"),eN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};yg(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},AY=e=>{eN(e,(t,n)=>{if(Pa(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Pa(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+"'")})}})},jY=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return hp(e)?r(e):r(String(e).split(t)),n},NY=()=>{},IY=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function LY(e){return!!(e&&Pa(e.append)&&e[Kj]==="FormData"&&e[Hb])}const zY=e=>{const t=new Array(10),n=(r,o)=>{if(gg(r)){if(t.indexOf(r)>=0)return;if(mg(r))return r;if(!("toJSON"in r)){t[o]=r;const a=hp(r)?[]:{};return yg(r,(s,l)=>{const u=n(s,o+1);!Zf(u)&&(a[l]=u)}),t[o]=void 0,a}}return r};return n(e,0)},FY=hs("AsyncFunction"),BY=e=>e&&(gg(e)||Pa(e))&&Pa(e.then)&&Pa(e.catch),tN=((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",Pa(_u.postMessage)),UY=typeof queueMicrotask<"u"?queueMicrotask.bind(_u):typeof process<"u"&&process.nextTick||tN,_Y=e=>e!=null&&Pa(e[Hb]),et={isArray:hp,isArrayBuffer:Qj,isBuffer:mg,isFormData:hY,isArrayBufferView:aY,isString:iY,isNumber:Xj,isBoolean:sY,isObject:gg,isPlainObject:Sv,isEmptyObject:lY,isReadableStream:gY,isRequest:yY,isResponse:vY,isHeaders:bY,isUndefined:Zf,isDate:cY,isFile:uY,isBlob:dY,isRegExp:DY,isFunction:Pa,isStream:pY,isURLSearchParams:mY,isTypedArray:EY,isFileList:fY,forEach:yg,merge:GS,extend:SY,trim:xY,stripBOM:wY,inherits:CY,toFlatObject:kY,kindOf:Wb,kindOfTest:hs,endsWith:TY,toArray:MY,forEachEntry:OY,matchAll:RY,isHTMLForm:$Y,hasOwnProperty:lR,hasOwnProp:lR,reduceDescriptors:eN,freezeMethods:AY,toObjectSet:jY,toCamelCase:PY,noop:NY,toFiniteNumber:IY,findKey:Zj,global:_u,isContextDefined:Jj,isSpecCompliantForm:LY,toJSONObject:zY,isAsyncFn:FY,isThenable:BY,setImmediate:tN,asap:UY,isIterable:_Y};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)}et.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:et.toJSONObject(this.config),code:this.code,status:this.status}}});const nN=Un.prototype,rN={};["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=>{rN[e]={value:e}});Object.defineProperties(Un,rN);Object.defineProperty(nN,"isAxiosError",{value:!0});Un.from=(e,t,n,r,o,a)=>{const s=Object.create(nN);et.toFlatObject(e,s,function(c){return c!==Error.prototype},f=>f!=="isAxiosError");const l=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return Un.call(s,l,u,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};const VY=null;function KS(e){return et.isPlainObject(e)||et.isArray(e)}function oN(e){return et.endsWith(e,"[]")?e.slice(0,-2):e}function cR(e,t,n){return e?e.concat(t).map(function(o,a){return o=oN(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function HY(e){return et.isArray(e)&&!e.some(KS)}const WY=et.toFlatObject(et,{},null,function(t){return/^is[A-Z]/.test(t)});function Yb(e,t,n){if(!et.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=et.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,w){return!et.isUndefined(w[x])});const r=n.metaTokens,o=n.visitor||c,a=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&et.isSpecCompliantForm(t);if(!et.isFunction(o))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(et.isDate(v))return v.toISOString();if(et.isBoolean(v))return v.toString();if(!u&&et.isBlob(v))throw new Un("Blob is not supported. Use a Buffer instead.");return et.isArrayBuffer(v)||et.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,x,w){let S=v;if(v&&!w&&typeof v=="object"){if(et.endsWith(x,"{}"))x=r?x:x.slice(0,-2),v=JSON.stringify(v);else if(et.isArray(v)&&HY(v)||(et.isFileList(v)||et.endsWith(x,"[]"))&&(S=et.toArray(v)))return x=oN(x),S.forEach(function(T,R){!(et.isUndefined(T)||T===null)&&t.append(s===!0?cR([x],R,a):s===null?x:x+"[]",f(T))}),!1}return KS(v)?!0:(t.append(cR(w,x,a),f(v)),!1)}const h=[],y=Object.assign(WY,{defaultVisitor:c,convertValue:f,isVisitable:KS});function b(v,x){if(!et.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));h.push(v),et.forEach(v,function(S,M){(!(et.isUndefined(S)||S===null)&&o.call(t,S,et.isString(M)?M.trim():M,x,y))===!0&&b(S,x?x.concat(M):[M])}),h.pop()}}if(!et.isObject(e))throw new TypeError("data must be an object");return b(e),t}function uR(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&&Yb(e,this,t)}const aN=UC.prototype;aN.append=function(t,n){this._pairs.push([t,n])};aN.toString=function(t){const n=t?function(r){return t.call(this,r,uR)}:uR;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function qY(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function iN(e,t,n){if(!t)return e;const r=n&&n.encode||qY;et.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=et.isURLSearchParams(t)?t.toString():new 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 dR{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){et.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},YY=typeof URLSearchParams<"u"?URLSearchParams:UC,GY=typeof FormData<"u"?FormData:null,KY=typeof Blob<"u"?Blob:null,QY={isBrowser:!0,classes:{URLSearchParams:YY,FormData:GY,Blob:KY},protocols:["http","https","file","blob","url","data"]},_C=typeof window<"u"&&typeof document<"u",QS=typeof navigator=="object"&&navigator||void 0,XY=_C&&(!QS||["ReactNative","NativeScript","NS"].indexOf(QS.product)<0),ZY=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",JY=_C&&window.location.href||"http://localhost",eG=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_C,hasStandardBrowserEnv:XY,hasStandardBrowserWebWorkerEnv:ZY,navigator:QS,origin:JY},Symbol.toStringTag,{value:"Module"})),na={...eG,...QY};function tG(e,t){return Yb(e,new na.classes.URLSearchParams,{visitor:function(n,r,o,a){return na.isNode&&et.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function nG(e){return et.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rG(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 lN(e){function t(n,r,o,a){let s=n[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),u=a>=n.length;return s=!s&&et.isArray(o)?o.length:s,u?(et.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!et.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&et.isArray(o[s])&&(o[s]=rG(o[s])),!l)}if(et.isFormData(e)&&et.isFunction(e.entries)){const n={};return et.forEachEntry(e,(r,o)=>{t(nG(r),o,n,0)}),n}return null}function oG(e,t,n){if(et.isString(e))try{return(t||JSON.parse)(e),et.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const vg={transitional:sN,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=et.isObject(t);if(a&&et.isHTMLForm(t)&&(t=new FormData(t)),et.isFormData(t))return o?JSON.stringify(lN(t)):t;if(et.isArrayBuffer(t)||et.isBuffer(t)||et.isStream(t)||et.isFile(t)||et.isBlob(t)||et.isReadableStream(t))return t;if(et.isArrayBufferView(t))return t.buffer;if(et.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return tG(t,this.formSerializer).toString();if((l=et.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Yb(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),oG(t)):t}],transformResponse:[function(t){const n=this.transitional||vg.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(et.isResponse(t)||et.isReadableStream(t))return t;if(t&&et.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?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:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};et.forEach(["delete","get","head","post","put","patch"],e=>{vg.headers[e]={}});const aG=et.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iG=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]&&aG[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fR=Symbol("internals");function jh(e){return e&&String(e).trim().toLowerCase()}function wv(e){return e===!1||e==null?e:et.isArray(e)?e.map(wv):String(e)}function sG(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 lG=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function M1(e,t,n,r,o){if(et.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!et.isString(t)){if(et.isString(r))return t.indexOf(r)!==-1;if(et.isRegExp(r))return r.test(t)}}function cG(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function uG(e,t){const n=et.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}let Da=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,u,f){const c=jh(u);if(!c)throw new Error("header name must be a non-empty string");const h=et.findKey(o,c);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||u]=wv(l))}const s=(l,u)=>et.forEach(l,(f,c)=>a(f,c,u));if(et.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(et.isString(t)&&(t=t.trim())&&!lG(t))s(iG(t),n);else if(et.isObject(t)&&et.isIterable(t)){let l={},u,f;for(const c of t){if(!et.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[f=c[0]]=(u=l[f])?et.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=jh(t),t){const r=et.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return sG(o);if(et.isFunction(n))return n.call(this,o,r);if(et.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jh(t),t){const r=et.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||M1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=jh(s),s){const l=et.findKey(r,s);l&&(!n||M1(r,r[l],l,n))&&(delete r[l],o=!0)}}return et.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||M1(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return et.forEach(this,(o,a)=>{const s=et.findKey(r,a);if(s){n[s]=wv(o),delete n[a];return}const l=t?cG(a):String(a).trim();l!==a&&delete n[a],n[l]=wv(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return et.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&et.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
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[fR]=this[fR]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=jh(s);r[l]||(uG(o,s),r[l]=!0)}return et.isArray(t)?t.forEach(a):a(t),this}};Da.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);et.reduceDescriptors(Da.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});et.freezeMethods(Da);function E1(e,t){const n=this||vg,r=t||n,o=Da.from(r.headers);let a=r.data;return et.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function cN(e){return!!(e&&e.__CANCEL__)}function mp(e,t,n){Un.call(this,e??"canceled",Un.ERR_CANCELED,t,n),this.name="CanceledError"}et.inherits(mp,Un,{__CANCEL__:!0});function uN(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 dG(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fG(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(u){const f=Date.now(),c=r[a];s||(s=f),n[o]=u,r[o]=f;let h=a,y=0;for(;h!==o;)y+=n[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),f-s<t)return;const b=c&&f-c;return b?Math.round(y*1e3/b):void 0}}function pG(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(),h=c-n;h>=r?s(f,c):(o=f,a||(a=setTimeout(()=>{a=null,s(o)},r-h)))},()=>o&&s(o)]}const Gv=(e,t,n=3)=>{let r=0;const o=fG(50,250);return pG(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,u=s-r,f=o(u),c=s<=l;r=s;const h={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:f||void 0,estimated:f&&l&&c?(l-s)/f:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},pR=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hR=e=>(...t)=>et.asap(()=>e(...t)),hG=na.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,na.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(na.origin),na.navigator&&/(msie|trident)/i.test(na.navigator.userAgent)):()=>!0,mG=na.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];et.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),et.isString(r)&&s.push("path="+r),et.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gG(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yG(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dN(e,t,n){let r=!gG(t);return e&&(r||n==!1)?yG(e,t):t}const mR=e=>e instanceof Da?{...e}:e;function nd(e,t){t=t||{};const n={};function r(f,c,h,y){return et.isPlainObject(f)&&et.isPlainObject(c)?et.merge.call({caseless:y},f,c):et.isPlainObject(c)?et.merge({},c):et.isArray(c)?c.slice():c}function o(f,c,h,y){if(et.isUndefined(c)){if(!et.isUndefined(f))return r(void 0,f,h,y)}else return r(f,c,h,y)}function a(f,c){if(!et.isUndefined(c))return r(void 0,c)}function s(f,c){if(et.isUndefined(c)){if(!et.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function l(f,c,h){if(h in t)return r(f,c);if(h in e)return r(void 0,f)}const u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,c,h)=>o(mR(f),mR(c),h,!0)};return et.forEach(Object.keys({...e,...t}),function(c){const h=u[c]||o,y=h(e[c],t[c],c);et.isUndefined(y)&&h!==l||(n[c]=y)}),n}const fN=e=>{const t=nd({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Da.from(s),t.url=iN(dN(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),et.isFormData(n)){if(na.hasStandardBrowserEnv||na.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(et.isFunction(n.getHeaders)){const u=n.getHeaders(),f=["content-type","content-length"];Object.entries(u).forEach(([c,h])=>{f.includes(c.toLowerCase())&&s.set(c,h)})}}if(na.hasStandardBrowserEnv&&(r&&et.isFunction(r)&&(r=r(t)),r||r!==!1&&hG(t.url))){const u=o&&a&&mG.read(a);u&&s.set(o,u)}return t},vG=typeof XMLHttpRequest<"u",bG=vG&&function(e){return new Promise(function(n,r){const o=fN(e);let a=o.data;const s=Da.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:f}=o,c,h,y,b,v;function x(){b&&b(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function S(){if(!w)return;const T=Da.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),$={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:e,request:w};uN(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||sN;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&&et.forEach(s.toJSON(),function(R,$){w.setRequestHeader($,R)}),et.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),l&&l!=="json"&&(w.responseType=o.responseType),f&&([y,v]=Gv(f,!0),w.addEventListener("progress",y)),u&&w.upload&&([h,b]=Gv(u),w.upload.addEventListener("progress",h),w.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(c=T=>{w&&(r(!T||T.type?new mp(null,e,w):T),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const M=dG(o.url);if(M&&na.protocols.indexOf(M)===-1){r(new Un("Unsupported protocol "+M+":",Un.ERR_BAD_REQUEST,e));return}w.send(a||null)})},xG=(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 mp(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:u}=r;return u.unsubscribe=()=>et.asap(l),u}},SG=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},wG=async function*(e,t){for await(const n of CG(e))yield*SG(n,t)},CG=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()}},gR=(e,t,n,r)=>{const o=wG(e,t);let a=0,s,l=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:f,value:c}=await o.next();if(f){l(),u.close();return}let h=c.byteLength;if(n){let y=a+=h;n(y)}u.enqueue(new Uint8Array(c))}catch(f){throw l(f),f}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},yR=64*1024,{isFunction:Wy}=et,kG=(({Request:e,Response:t})=>({Request:e,Response:t}))(et.global),{ReadableStream:vR,TextEncoder:bR}=et.global,xR=(e,...t)=>{try{return!!e(...t)}catch{return!1}},TG=e=>{e=et.merge.call({skipUndefined:!0},kG,e);const{fetch:t,Request:n,Response:r}=e,o=t?Wy(t):typeof fetch=="function",a=Wy(n),s=Wy(r);if(!o)return!1;const l=o&&Wy(vR),u=o&&(typeof bR=="function"?(v=>x=>v.encode(x))(new bR):async v=>new Uint8Array(await new n(v).arrayBuffer())),f=a&&l&&xR(()=>{let v=!1;const x=new n(na.origin,{body:new vR,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!x}),c=s&&l&&xR(()=>et.isReadableStream(new r("").body)),h={stream:c&&(v=>v.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!h[v]&&(h[v]=(x,w)=>{let S=x&&x[v];if(S)return S.call(x);throw new Un(`Response type '${v}' is not supported`,Un.ERR_NOT_SUPPORT,w)})});const y=async v=>{if(v==null)return 0;if(et.isBlob(v))return v.size;if(et.isSpecCompliantForm(v))return(await new n(na.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(et.isArrayBufferView(v)||et.isArrayBuffer(v))return v.byteLength;if(et.isURLSearchParams(v)&&(v=v+""),et.isString(v))return(await u(v)).byteLength},b=async(v,x)=>{const w=et.toFiniteNumber(v.getContentLength());return w??y(x)};return async v=>{let{url:x,method:w,data:S,signal:M,cancelToken:T,timeout:R,onDownloadProgress:$,onUploadProgress:P,responseType:N,headers:V,withCredentials:F="same-origin",fetchOptions:W}=fN(v),_=t||fetch;N=N?(N+"").toLowerCase():"text";let k=xG([M,T&&T.toAbortSignal()],R),I=null;const z=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let H;try{if(P&&f&&w!=="get"&&w!=="head"&&(H=await b(V,S))!==0){let Q=new n(x,{method:"POST",body:S,duplex:"half"}),ne;if(et.isFormData(S)&&(ne=Q.headers.get("content-type"))&&V.setContentType(ne),Q.body){const[ie,pe]=pR(H,Gv(hR(P)));S=gR(Q.body,yR,ie,pe)}}et.isString(F)||(F=F?"include":"omit");const A=a&&"credentials"in n.prototype,Z={...W,signal:k,method:w.toUpperCase(),headers:V.normalize().toJSON(),body:S,duplex:"half",credentials:A?F:void 0};I=a&&new n(x,Z);let K=await(a?_(I,W):_(x,Z));const te=c&&(N==="stream"||N==="response");if(c&&($||te&&z)){const Q={};["status","statusText","headers"].forEach(oe=>{Q[oe]=K[oe]});const ne=et.toFiniteNumber(K.headers.get("content-length")),[ie,pe]=$&&pR(ne,Gv(hR($),!0))||[];K=new r(gR(K.body,yR,ie,()=>{pe&&pe(),z&&z()}),Q)}N=N||"text";let X=await h[et.findKey(h,N)||"text"](K,v);return!te&&z&&z(),await new Promise((Q,ne)=>{uN(Q,ne,{data:X,headers:Da.from(K.headers),status:K.status,statusText:K.statusText,config:v,request:I})})}catch(A){throw z&&z(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new Un("Network Error",Un.ERR_NETWORK,v,I),{cause:A.cause||A}):Un.from(A,A&&A.code,v,I)}}},MG=new Map,pN=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let s=a.length,l=s,u,f,c=MG;for(;l--;)u=a[l],f=c.get(u),f===void 0&&c.set(u,f=l?new Map:TG(t)),c=f;return f};pN();const XS={http:VY,xhr:bG,fetch:{get:pN}};et.forEach(XS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const SR=e=>`- ${e}`,EG=e=>et.isFunction(e)||e===null||e===!1,hN={getAdapter:(e,t)=>{e=et.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let s=0;s<n;s++){r=e[s];let l;if(o=r,!EG(r)&&(o=XS[(l=String(r)).toLowerCase()],o===void 0))throw new Un(`Unknown adapter '${l}'`);if(o&&(et.isFunction(o)||(o=o.get(t))))break;a[l||"#"+s]=o}if(!o){const s=Object.entries(a).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since :
268
- `+s.map(SR).join(`
269
- `):" "+SR(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:XS};function O1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mp(null,e)}function wR(e){return O1(e),e.headers=Da.from(e.headers),e.data=E1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hN.getAdapter(e.adapter||vg.adapter,e)(e).then(function(r){return O1(e),r.data=E1.call(e,e.transformResponse,r),r.headers=Da.from(r.headers),r},function(r){return cN(r)||(O1(e),r&&r.response&&(r.response.data=E1.call(e,e.transformResponse,r.response),r.response.headers=Da.from(r.response.headers))),Promise.reject(r)})}const mN="1.12.2",Gb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const CR={};Gb.transitional=function(t,n,r){function o(a,s){return"[Axios v"+mN+"] 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&&!CR[s]&&(CR[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}};Gb.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function OG(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],u=l===void 0||s(l,a,e);if(u!==!0)throw new Un("option "+a+" must be "+u,Un.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Un("Unknown option "+a,Un.ERR_BAD_OPTION)}}const Cv={assertOptions:OG,validators:Gb},Ns=Cv.validators;let Yu=class{constructor(t){this.defaults=t||{},this.interceptors={request:new dR,response:new dR}}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&&Cv.assertOptions(r,{silentJSONParsing:Ns.transitional(Ns.boolean),forcedJSONParsing:Ns.transitional(Ns.boolean),clarifyTimeoutError:Ns.transitional(Ns.boolean)},!1),o!=null&&(et.isFunction(o)?n.paramsSerializer={serialize:o}:Cv.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),Cv.assertOptions(n,{baseUrl:Ns.spelling("baseURL"),withXsrfToken:Ns.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&et.merge(a.common,a[n.method]);a&&et.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),n.headers=Da.concat(s,a);const l=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const f=[];this.interceptors.response.forEach(function(x){f.push(x.fulfilled,x.rejected)});let c,h=0,y;if(!u){const v=[wR.bind(this),void 0];for(v.unshift(...l),v.push(...f),y=v.length,c=Promise.resolve(n);h<y;)c=c.then(v[h++],v[h++]);return c}y=l.length;let b=n;for(;h<y;){const v=l[h++],x=l[h++];try{b=v(b)}catch(w){x.call(this,w);break}}try{c=wR.call(this,b)}catch(v){return Promise.reject(v)}for(h=0,y=f.length;h<y;)c=c.then(f[h++],f[h++]);return c}getUri(t){t=nd(this.defaults,t);const n=dN(t.baseURL,t.url,t.allowAbsoluteUrls);return iN(n,t.params,t.paramsSerializer)}};et.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}))}});et.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 RG=class gN{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 mp(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 gN(function(o){t=o}),cancel:t}}};function $G(e){return function(n){return e.apply(null,n)}}function PG(e){return et.isObject(e)&&e.isAxiosError===!0}const ZS={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(ZS).forEach(([e,t])=>{ZS[t]=e});function yN(e){const t=new Yu(e),n=Gj(Yu.prototype.request,t);return et.extend(n,Yu.prototype,t,{allOwnKeys:!0}),et.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return yN(nd(e,o))},n}const zt=yN(vg);zt.Axios=Yu;zt.CanceledError=mp;zt.CancelToken=RG;zt.isCancel=cN;zt.VERSION=mN;zt.toFormData=Yb;zt.AxiosError=Un;zt.Cancel=zt.CanceledError;zt.all=function(t){return Promise.all(t)};zt.spread=$G;zt.isAxiosError=PG;zt.mergeConfig=nd;zt.AxiosHeaders=Da;zt.formToJSON=e=>lN(et.isHTMLForm(e)?new FormData(e):e);zt.getAdapter=hN.getAdapter;zt.HttpStatusCode=ZS;zt.default=zt;const{Axios:Ohe,AxiosError:Rhe,CanceledError:$he,isCancel:Phe,CancelToken:Dhe,VERSION:Ahe,all:jhe,Cancel:Nhe,isAxiosError:Ihe,spread:Lhe,toFormData:zhe,AxiosHeaders:Fhe,HttpStatusCode:Bhe,formToJSON:Uhe,getAdapter:_he,mergeConfig:Vhe}=zt,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},DG=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const wn={},Cn="https://example.com",pt=function(e,t,n){if(n==null)throw new DG(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function JS(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>JS(e,r,n)):Object.keys(t).forEach(r=>JS(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);JS(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)}},vN={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},kR={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},fa={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},qy={Version:"version",Package:"package"},AG=function(e){return{createConnection:async(t,n,r,o={})=>{pt("createConnection","environmentName",t),pt("createConnection","connectionName",n),pt("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 u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},u.data=zo(r,u,e),{url:Tn(s),options:u}},deleteConnection:async(t,n,r={})=>{pt("deleteConnection","environmentName",t),pt("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},u={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Tn(a),options:l}},getConnection:async(t,n,r={})=>{pt("getConnection","environmentName",t),pt("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},u={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Tn(a),options:l}},getTable:async(t,n,r,o,a={})=>{pt("getTable","environmentName",t),pt("getTable","connectionName",n),pt("getTable","schemaName",r),pt("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 u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={};kn(l,{});let h=u&&u.headers?u.headers:{};return f.headers={...c,...h,...a.headers},{url:Tn(l),options:f}},getTableInPackage:async(t,n,r,o,a,s={})=>{pt("getTableInPackage","environmentName",t),pt("getTableInPackage","packageName",n),pt("getTableInPackage","connectionName",r),pt("getTableInPackage","schemaName",o),pt("getTableInPackage","tablePath",a);const l="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(o))).replace("{tablePath}",encodeURIComponent(String(a))),u=new URL(l,Cn);let f;e&&(f=e.baseOptions);const c={method:"GET",...f,...s},h={};kn(u,{});let y=f&&f.headers?f.headers:{};return c.headers={...h,...y,...s.headers},{url:Tn(u),options:c}},listConnections:async(t,n={})=>{pt("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 u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Tn(o),options:s}},listSchemas:async(t,n,r={})=>{pt("listSchemas","environmentName",t),pt("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},u={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Tn(a),options:l}},listSchemasInPackage:async(t,n,r,o={})=>{pt("listSchemasInPackage","environmentName",t),pt("listSchemasInPackage","packageName",n),pt("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 u={method:"GET",...l,...o},f={};kn(s,{});let c=l&&l.headers?l.headers:{};return u.headers={...f,...c,...o.headers},{url:Tn(s),options:u}},listTables:async(t,n,r,o,a={})=>{pt("listTables","environmentName",t),pt("listTables","connectionName",n),pt("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 u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},h={};o&&(h.tableNames=o),kn(l,h);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(l),options:f}},listTablesInPackage:async(t,n,r,o,a,s={})=>{pt("listTablesInPackage","environmentName",t),pt("listTablesInPackage","packageName",n),pt("listTablesInPackage","connectionName",r),pt("listTablesInPackage","schemaName",o);const l="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(o))),u=new URL(l,Cn);let f;e&&(f=e.baseOptions);const c={method:"GET",...f,...s},h={},y={};a&&(y.tableNames=a),kn(u,y);let b=f&&f.headers?f.headers:{};return c.headers={...h,...b,...s.headers},{url:Tn(u),options:c}},postQuerydata:async(t,n,r,o={})=>{pt("postQuerydata","environmentName",t),pt("postQuerydata","connectionName",n),pt("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 u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},u.data=zo(r,u,e),{url:Tn(s),options:u}},postQuerydataInPackage:async(t,n,r,o,a={})=>{pt("postQuerydataInPackage","environmentName",t),pt("postQuerydataInPackage","packageName",n),pt("postQuerydataInPackage","connectionName",r),pt("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 u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},h={};c["Content-Type"]="application/json",kn(l,h);let y=u&&u.headers?u.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={})=>{pt("postSqlsource","environmentName",t),pt("postSqlsource","connectionName",n),pt("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 u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},u.data=zo(r,u,e),{url:Tn(s),options:u}},postSqlsourceInPackage:async(t,n,r,o,a={})=>{pt("postSqlsourceInPackage","environmentName",t),pt("postSqlsourceInPackage","packageName",n),pt("postSqlsourceInPackage","connectionName",r),pt("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 u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},h={};c["Content-Type"]="application/json",kn(l,h);let y=u&&u.headers?u.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={})=>{pt("postTemporarytable","environmentName",t),pt("postTemporarytable","connectionName",n),pt("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 u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},u.data=zo(r,u,e),{url:Tn(s),options:u}},postTemporarytableInPackage:async(t,n,r,o,a={})=>{pt("postTemporarytableInPackage","environmentName",t),pt("postTemporarytableInPackage","packageName",n),pt("postTemporarytableInPackage","connectionName",r),pt("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 u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},h={};c["Content-Type"]="application/json",kn(l,h);let y=u&&u.headers?u.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={})=>{pt("updateConnection","environmentName",t),pt("updateConnection","connectionName",n),pt("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 u={method:"PATCH",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},u.data=zo(r,u,e),{url:Tn(s),options:u}}}},Ho=function(e){const t=AG(e);return{async createConnection(n,r,o,a){const s=await t.createConnection(n,r,o,a),l=e?.serverIndex??0,u=wn["ConnectionsApi.createConnection"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||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(u,f)=>Mn(a,zt,yn,e)(u,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(u,f)=>Mn(a,zt,yn,e)(u,l||f)},async getTable(n,r,o,a,s){const l=await t.getTable(n,r,o,a,s),u=e?.serverIndex??0,f=wn["ConnectionsApi.getTable"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async getTableInPackage(n,r,o,a,s,l){const u=await t.getTableInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,c=wn["ConnectionsApi.getTableInPackage"]?.[f]?.url;return(h,y)=>Mn(u,zt,yn,e)(h,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,u)=>Mn(o,zt,yn,e)(l,s||u)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),s=e?.serverIndex??0,l=wn["ConnectionsApi.listSchemas"]?.[s]?.url;return(u,f)=>Mn(a,zt,yn,e)(u,l||f)},async listSchemasInPackage(n,r,o,a){const s=await t.listSchemasInPackage(n,r,o,a),l=e?.serverIndex??0,u=wn["ConnectionsApi.listSchemasInPackage"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)},async listTables(n,r,o,a,s){const l=await t.listTables(n,r,o,a,s),u=e?.serverIndex??0,f=wn["ConnectionsApi.listTables"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async listTablesInPackage(n,r,o,a,s,l){const u=await t.listTablesInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,c=wn["ConnectionsApi.listTablesInPackage"]?.[f]?.url;return(h,y)=>Mn(u,zt,yn,e)(h,c||y)},async postQuerydata(n,r,o,a){const s=await t.postQuerydata(n,r,o,a),l=e?.serverIndex??0,u=wn["ConnectionsApi.postQuerydata"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)},async postQuerydataInPackage(n,r,o,a,s){const l=await t.postQuerydataInPackage(n,r,o,a,s),u=e?.serverIndex??0,f=wn["ConnectionsApi.postQuerydataInPackage"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async postSqlsource(n,r,o,a){const s=await t.postSqlsource(n,r,o,a),l=e?.serverIndex??0,u=wn["ConnectionsApi.postSqlsource"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)},async postSqlsourceInPackage(n,r,o,a,s){const l=await t.postSqlsourceInPackage(n,r,o,a,s),u=e?.serverIndex??0,f=wn["ConnectionsApi.postSqlsourceInPackage"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async postTemporarytable(n,r,o,a){const s=await t.postTemporarytable(n,r,o,a),l=e?.serverIndex??0,u=wn["ConnectionsApi.postTemporarytable"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)},async postTemporarytableInPackage(n,r,o,a,s){const l=await t.postTemporarytableInPackage(n,r,o,a,s),u=e?.serverIndex??0,f=wn["ConnectionsApi.postTemporarytableInPackage"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async updateConnection(n,r,o,a){const s=await t.updateConnection(n,r,o,a),l=e?.serverIndex??0,u=wn["ConnectionsApi.updateConnection"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)}}};let jG=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 NG=function(e){return{getDashboard:async(t,n,r,o,a={})=>{pt("getDashboard","environmentName",t),pt("getDashboard","packageName",n),pt("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 u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},h={};o!==void 0&&(h.versionId=o),kn(l,h);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(l),options:f}},listDashboards:async(t,n,r,o={})=>{pt("listDashboards","environmentName",t),pt("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 u={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},{url:Tn(s),options:u}}}},TR=function(e){const t=NG(e);return{async getDashboard(n,r,o,a,s){const l=await t.getDashboard(n,r,o,a,s),u=e?.serverIndex??0,f=wn["DashboardsApi.getDashboard"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async listDashboards(n,r,o,a){const s=await t.listDashboards(n,r,o,a),l=e?.serverIndex??0,u=wn["DashboardsApi.listDashboards"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)}}};let IG=class extends ms{getDashboard(t,n,r,o,a){return TR(this.configuration).getDashboard(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listDashboards(t,n,r,o){return TR(this.configuration).listDashboards(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const LG=function(e){return{listDataApps:async(t,n,r={})=>{pt("listDataApps","environmentName",t),pt("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},u={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Tn(a),options:l}}}},zG=function(e){const t=LG(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(u,f)=>Mn(a,zt,yn,e)(u,l||f)}}};let FG=class extends ms{listDataApps(t,n,r){return zG(this.configuration).listDataApps(t,n,r).then(o=>o(this.axios,this.basePath))}};const BG=function(e){return{listDatabases:async(t,n,r,o={})=>{pt("listDatabases","environmentName",t),pt("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 u={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},{url:Tn(s),options:u}}}},UG=function(e){const t=BG(e);return{async listDatabases(n,r,o,a){const s=await t.listDatabases(n,r,o,a),l=e?.serverIndex??0,u=wn["DatabasesApi.listDatabases"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)}}};let _G=class extends ms{listDatabases(t,n,r,o){return UG(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const VG=function(e){return{createEnvironment:async(t,n={})=>{pt("createEnvironment","environment",t);const r="/environments",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},u={};l["Content-Type"]="application/json",kn(o,u);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={})=>{pt("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 u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Tn(o),options:s}},getEnvironment:async(t,n,r={})=>{pt("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},u={},f={};n!==void 0&&(f.reload=n),kn(a,f);let c=s&&s.headers?s.headers:{};return l.headers={...u,...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={})=>{pt("updateEnvironment","environmentName",t),pt("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},u={},f={};u["Content-Type"]="application/json",kn(a,f);let c=s&&s.headers?s.headers:{};return l.headers={...u,...c,...r.headers},l.data=zo(n,l,e),{url:Tn(a),options:l}}}},Nh=function(e){const t=VG(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,u)=>Mn(o,zt,yn,e)(l,s||u)},async deleteEnvironment(n,r){const o=await t.deleteEnvironment(n,r),a=e?.serverIndex??0,s=wn["EnvironmentsApi.deleteEnvironment"]?.[a]?.url;return(l,u)=>Mn(o,zt,yn,e)(l,s||u)},async getEnvironment(n,r,o){const a=await t.getEnvironment(n,r,o),s=e?.serverIndex??0,l=wn["EnvironmentsApi.getEnvironment"]?.[s]?.url;return(u,f)=>Mn(a,zt,yn,e)(u,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(u,f)=>Mn(a,zt,yn,e)(u,l||f)}}};let HG=class extends ms{createEnvironment(t,n){return Nh(this.configuration).createEnvironment(t,n).then(r=>r(this.axios,this.basePath))}deleteEnvironment(t,n){return Nh(this.configuration).deleteEnvironment(t,n).then(r=>r(this.axios,this.basePath))}getEnvironment(t,n,r){return Nh(this.configuration).getEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}listEnvironments(t){return Nh(this.configuration).listEnvironments(t).then(n=>n(this.axios,this.basePath))}updateEnvironment(t,n,r){return Nh(this.configuration).updateEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}};const WG=function(e){return{createMaterialization:async(t,n,r,o={})=>{pt("createMaterialization","environmentName",t),pt("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 u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},u.data=zo(r,u,e),{url:Tn(s),options:u}},deleteMaterialization:async(t,n,r,o,a={})=>{pt("deleteMaterialization","environmentName",t),pt("deleteMaterialization","packageName",n),pt("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 u;e&&(u=e.baseOptions);const f={method:"DELETE",...u,...a},c={},h={};o!==void 0&&(h.dropTables=o),kn(l,h);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(l),options:f}},getMaterialization:async(t,n,r,o={})=>{pt("getMaterialization","environmentName",t),pt("getMaterialization","packageName",n),pt("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 u={method:"GET",...l,...o},f={};kn(s,{});let c=l&&l.headers?l.headers:{};return u.headers={...f,...c,...o.headers},{url:Tn(s),options:u}},listMaterializations:async(t,n,r,o,a={})=>{pt("listMaterializations","environmentName",t),pt("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 u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},h={};r!==void 0&&(h.limit=r),o!==void 0&&(h.offset=o),kn(l,h);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(l),options:f}},materializationAction:async(t,n,r,o,a={})=>{pt("materializationAction","environmentName",t),pt("materializationAction","packageName",n),pt("materializationAction","materializationId",r),pt("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 u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},h={};o!==void 0&&(h.action=o),kn(l,h);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(l),options:f}}}},Ih=function(e){const t=WG(e);return{async createMaterialization(n,r,o,a){const s=await t.createMaterialization(n,r,o,a),l=e?.serverIndex??0,u=wn["MaterializationsApi.createMaterialization"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)},async deleteMaterialization(n,r,o,a,s){const l=await t.deleteMaterialization(n,r,o,a,s),u=e?.serverIndex??0,f=wn["MaterializationsApi.deleteMaterialization"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async getMaterialization(n,r,o,a){const s=await t.getMaterialization(n,r,o,a),l=e?.serverIndex??0,u=wn["MaterializationsApi.getMaterialization"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)},async listMaterializations(n,r,o,a,s){const l=await t.listMaterializations(n,r,o,a,s),u=e?.serverIndex??0,f=wn["MaterializationsApi.listMaterializations"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async materializationAction(n,r,o,a,s){const l=await t.materializationAction(n,r,o,a,s),u=e?.serverIndex??0,f=wn["MaterializationsApi.materializationAction"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)}}};let qG=class extends ms{createMaterialization(t,n,r,o){return Ih(this.configuration).createMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}deleteMaterialization(t,n,r,o,a){return Ih(this.configuration).deleteMaterialization(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getMaterialization(t,n,r,o){return Ih(this.configuration).getMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}listMaterializations(t,n,r,o,a){return Ih(this.configuration).listMaterializations(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}materializationAction(t,n,r,o,a){return Ih(this.configuration).materializationAction(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}};const YG={Stop:"stop"},GG=function(e){return{compileModelSource:async(t,n,r,o,a={})=>{pt("compileModelSource","environmentName",t),pt("compileModelSource","packageName",n),pt("compileModelSource","path",r),pt("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 u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},h={};c["Content-Type"]="application/json",kn(l,h);let y=u&&u.headers?u.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,s={})=>{pt("executeQueryModel","environmentName",t),pt("executeQueryModel","packageName",n),pt("executeQueryModel","path",r),pt("executeQueryModel","queryRequest",o);const l="/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),u=new URL(l,Cn);let f;e&&(f=e.baseOptions);const c={method:"POST",...f,...s},h={},y={};a!==void 0&&(y.includeHiddenFilesAndSources=a),h["Content-Type"]="application/json",kn(u,y);let b=f&&f.headers?f.headers:{};return c.headers={...h,...b,...s.headers},c.data=zo(o,c,e),{url:Tn(u),options:c}},getModel:async(t,n,r,o,a,s={})=>{pt("getModel","environmentName",t),pt("getModel","packageName",n),pt("getModel","path",r);const l="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),u=new URL(l,Cn);let f;e&&(f=e.baseOptions);const c={method:"GET",...f,...s},h={},y={};o!==void 0&&(y.versionId=o),a!==void 0&&(y.includeHiddenFilesAndSources=a),kn(u,y);let b=f&&f.headers?f.headers:{};return c.headers={...h,...b,...s.headers},{url:Tn(u),options:c}},listModels:async(t,n,r,o,a={})=>{pt("listModels","environmentName",t),pt("listModels","packageName",n);const s="/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Cn);let u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},h={};r!==void 0&&(h.versionId=r),o!==void 0&&(h.includeHiddenFilesAndSources=o),kn(l,h);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(l),options:f}},updateModelSource:async(t,n,r,o,a,s={})=>{pt("updateModelSource","environmentName",t),pt("updateModelSource","packageName",n),pt("updateModelSource","path",r),pt("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))),u=new URL(l,Cn);let f;e&&(f=e.baseOptions);const c={method:"PUT",...f,...s},h={},y={};a!==void 0&&(y.versionId=a),h["Content-Type"]="application/json",kn(u,y);let b=f&&f.headers?f.headers:{};return c.headers={...h,...b,...s.headers},c.data=zo(o,c,e),{url:Tn(u),options:c}}}},Lh=function(e){const t=GG(e);return{async compileModelSource(n,r,o,a,s){const l=await t.compileModelSource(n,r,o,a,s),u=e?.serverIndex??0,f=wn["ModelsApi.compileModelSource"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async executeQueryModel(n,r,o,a,s,l){const u=await t.executeQueryModel(n,r,o,a,s,l),f=e?.serverIndex??0,c=wn["ModelsApi.executeQueryModel"]?.[f]?.url;return(h,y)=>Mn(u,zt,yn,e)(h,c||y)},async getModel(n,r,o,a,s,l){const u=await t.getModel(n,r,o,a,s,l),f=e?.serverIndex??0,c=wn["ModelsApi.getModel"]?.[f]?.url;return(h,y)=>Mn(u,zt,yn,e)(h,c||y)},async listModels(n,r,o,a,s){const l=await t.listModels(n,r,o,a,s),u=e?.serverIndex??0,f=wn["ModelsApi.listModels"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async updateModelSource(n,r,o,a,s,l){const u=await t.updateModelSource(n,r,o,a,s,l),f=e?.serverIndex??0,c=wn["ModelsApi.updateModelSource"]?.[f]?.url;return(h,y)=>Mn(u,zt,yn,e)(h,c||y)}}};let KG=class extends ms{compileModelSource(t,n,r,o,a){return Lh(this.configuration).compileModelSource(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}executeQueryModel(t,n,r,o,a,s){return Lh(this.configuration).executeQueryModel(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}getModel(t,n,r,o,a,s){return Lh(this.configuration).getModel(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,o,a){return Lh(this.configuration).listModels(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}updateModelSource(t,n,r,o,a,s){return Lh(this.configuration).updateModelSource(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}};const QG=function(e){return{executeNotebookCell:async(t,n,r,o,a,s,l,u,f={})=>{pt("executeNotebookCell","environmentName",t),pt("executeNotebookCell","packageName",n),pt("executeNotebookCell","path",r),pt("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))),h=new URL(c,Cn);let y;e&&(y=e.baseOptions);const b={method:"GET",...y,...f},v={},x={};a!==void 0&&(x.versionId=a),s!==void 0&&(x.filter_params=s),l!==void 0&&(x.bypass_filters=l),u!==void 0&&(x.givens=u),kn(h,x);let w=y&&y.headers?y.headers:{};return b.headers={...v,...w,...f.headers},{url:Tn(h),options:b}},getNotebook:async(t,n,r,o,a={})=>{pt("getNotebook","environmentName",t),pt("getNotebook","packageName",n),pt("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 u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},h={};o!==void 0&&(h.versionId=o),kn(l,h);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(l),options:f}},listNotebooks:async(t,n,r,o={})=>{pt("listNotebooks","environmentName",t),pt("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 u={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},{url:Tn(s),options:u}}}},R1=function(e){const t=QG(e);return{async executeNotebookCell(n,r,o,a,s,l,u,f,c){const h=await t.executeNotebookCell(n,r,o,a,s,l,u,f,c),y=e?.serverIndex??0,b=wn["NotebooksApi.executeNotebookCell"]?.[y]?.url;return(v,x)=>Mn(h,zt,yn,e)(v,b||x)},async getNotebook(n,r,o,a,s){const l=await t.getNotebook(n,r,o,a,s),u=e?.serverIndex??0,f=wn["NotebooksApi.getNotebook"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async listNotebooks(n,r,o,a){const s=await t.listNotebooks(n,r,o,a),l=e?.serverIndex??0,u=wn["NotebooksApi.listNotebooks"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)}}};let XG=class extends ms{executeNotebookCell(t,n,r,o,a,s,l,u,f){return R1(this.configuration).executeNotebookCell(t,n,r,o,a,s,l,u,f).then(c=>c(this.axios,this.basePath))}getNotebook(t,n,r,o,a){return R1(this.configuration).getNotebook(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,o){return R1(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const ZG=function(e){return{createPackage:async(t,n,r={})=>{pt("createPackage","environmentName",t),pt("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},u={},f={};u["Content-Type"]="application/json",kn(a,f);let c=s&&s.headers?s.headers:{};return l.headers={...u,...c,...r.headers},l.data=zo(n,l,e),{url:Tn(a),options:l}},deletePackage:async(t,n,r={})=>{pt("deletePackage","environmentName",t),pt("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},u={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Tn(a),options:l}},getPackage:async(t,n,r,o,a={})=>{pt("getPackage","environmentName",t),pt("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 u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},h={};r!==void 0&&(h.versionId=r),o!==void 0&&(h.reload=o),kn(l,h);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(l),options:f}},listPackages:async(t,n={})=>{pt("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 u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Tn(o),options:s}},updatePackage:async(t,n,r,o={})=>{pt("updatePackage","environmentName",t),pt("updatePackage","packageName",n),pt("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 u={method:"PATCH",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let h=l&&l.headers?l.headers:{};return u.headers={...f,...h,...o.headers},u.data=zo(r,u,e),{url:Tn(s),options:u}}}},zh=function(e){const t=ZG(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(u,f)=>Mn(a,zt,yn,e)(u,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(u,f)=>Mn(a,zt,yn,e)(u,l||f)},async getPackage(n,r,o,a,s){const l=await t.getPackage(n,r,o,a,s),u=e?.serverIndex??0,f=wn["PackagesApi.getPackage"]?.[u]?.url;return(c,h)=>Mn(l,zt,yn,e)(c,f||h)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,s=wn["PackagesApi.listPackages"]?.[a]?.url;return(l,u)=>Mn(o,zt,yn,e)(l,s||u)},async updatePackage(n,r,o,a){const s=await t.updatePackage(n,r,o,a),l=e?.serverIndex??0,u=wn["PackagesApi.updatePackage"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,u||c)}}};let JG=class extends ms{createPackage(t,n,r){return zh(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return zh(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return zh(this.configuration).getPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return zh(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return zh(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const eK=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={})=>{pt("updateTheme","theme",t);const r="/theme",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...n},l={},u={};l["Content-Type"]="application/json",kn(o,u);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}}}},Yy=function(e){const t=eK(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,u)=>Mn(o,zt,yn,e)(l,s||u)}}};let tK=class extends ms{deleteTheme(t){return Yy(this.configuration).deleteTheme(t).then(n=>n(this.axios,this.basePath))}getStatus(t){return Yy(this.configuration).getStatus(t).then(n=>n(this.axios,this.basePath))}getTheme(t){return Yy(this.configuration).getTheme(t).then(n=>n(this.axios,this.basePath))}updateTheme(t,n){return Yy(this.configuration).updateTheme(t,n).then(r=>r(this.axios,this.basePath))}};const nK=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={})=>{pt("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={},u={};l["Content-Type"]="application/json",kn(o,u);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={})=>{pt("streamPackageEvents","environmentName",t),pt("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},u={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Tn(a),options:l}}}},Gy=function(e){const t=nK(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,u)=>Mn(o,zt,yn,e)(l,s||u)},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(u,f)=>Mn(a,zt,yn,e)(u,l||f)}}};let rK=class extends ms{getWatchStatus(t){return Gy(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return Gy(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return Gy(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}streamPackageEvents(t,n,r){return Gy(this.configuration).streamPackageEvents(t,n,r).then(o=>o(this.axios,this.basePath))}},oK=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 _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},ii='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',aK=ot(e8)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),iK=ot(o8)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),bN=ot(u8)({padding:"0"}),sK=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"})),lK=ot("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Of=ot("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"}),cK=ot("div")({height:"100%"}),xN=ot("div")({height:"75vh",width:"100%",overflowY:"auto"}),uK=[_r.blue,_r.orange,_r.emerald,_r.pink,_r.violet,_r.amber,_r.cyan,_r.lime],dK="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",MR={palette:{series:uK,background:{light:"#ffffff",dark:"#0f172a"},tableHeader:{light:"#475569",dark:"#cbd5e1"},tableHeaderBackground:{light:"#f8fafc",dark:"#1e293b"},tableBody:{light:"#475569",dark:"#e2e8f0"},tile:{light:"#ffffff",dark:"#0f172a"},tileTitle:{light:"#475569",dark:"#94a3b8"},mapColor:{light:_r.blue,dark:_r.blue}},font:{family:dK,size:12}},fK=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor"];function SN(e,t){const n=MR.palette??{},r=MR.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 h of e)if(h){Array.isArray(h.palette?.series)&&(o=[...h.palette.series]);for(const y of fK){const b=h.palette?.[y];b&&(l[y]={...l[y],...b})}typeof h.font?.family=="string"&&(a=h.font.family),typeof h.font?.size=="number"&&(s=h.font.size)}const u=t==="dark",f=h=>l[h][t]??n[h]?.[t],c=f("background");return{mode:t,series:o,font:{family:a,size:s},background:c,tableHeader:f("tableHeader"),tableHeaderBackground:f("tableHeaderBackground"),tableBody:f("tableBody"),tile:f("tile"),tileTitle:f("tileTitle"),mapColor:f("mapColor"),tableBackground:c,border:u?"1px solid #334155":"1px solid #e2e8f0",cardBorder:u?"1px solid #475569":"1px solid #cbd5e1",pinnedBorder:u?"1px solid #475569":"1px solid #cbd5e1",valueColor:u?"#f1f5f9":"#0f172a",foreground:u?"#e2e8f0":"#0f172a",axisFaint:u?"#475569":"#cbd5e1",dashboardRoot:u?"#0f172a":"#ffffff",drillLink:u?"#60a5fa":_r.blue}}function pK(e,t,n){const r=t??e??"light";return r==="auto"?n?"dark":"light":r}const wN=C.createContext(void 0);function hK({layers:e,mode:t,userChoice:n,setMode:r,allowUserToggle:o=!0,children:a}){const s=C.useMemo(()=>SN(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 m.jsx(wN.Provider,{value:l,children:a})}function ol(){return C.useContext(wN)||{theme:SN([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const HC=new X7({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),mK={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},ew="publisher:themeMode";function gK(){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(ew);if(e==="light"||e==="dark"||e==="auto")return e}catch{}}function yK(e){if(!(typeof window>"u"))try{e===void 0?window.localStorage.removeItem(ew):window.localStorage.setItem(ew,e)}catch{}}function vK(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}zt.defaults.baseURL||(zt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const CN=C.createContext(void 0),bK=(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 oK({basePath:n});return{models:new KG(o,n,r),publisher:new tK(o,n,r),environments:new HG(o,n,r),packages:new JG(o,n,r),dashboards:new IG(o,n,r),dataApps:new FG(o,n,r),notebooks:new XG(o,n,r),connections:new jG(o,n,r),databases:new _G(o,n,r),materializations:new qG(o,n,r),watchMode:new rK(o,n,r)}},xK=e=>m.jsx(Z7,{client:HC,children:m.jsx(SK,{...e})}),SK=({children:e,getAccessToken:t,baseURL:n,mutable:r,theme:o})=>{const a=C.useMemo(()=>bK(n,t),[n,t]),s=n||`${window.location.protocol}//${window.location.host}/api/v0`,l=Yj({queryKey:["status"],queryFn:async()=>(await a.publisher.getStatus()).data});l.error&&console.error("Failed to fetch publisher status:",l.error);const u=l.data?.frozenConfig,f=l.data?.theme,c=l.isLoading;let h;l.isLoading||l.error?h=r:u?h=!1:h=r??!0;const y=C.useMemo(()=>[f,o],[f,o]),[b,v]=C.useState(gK),[x,w]=C.useState(vK);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=>{v(P),yK(P)},[]),M=f?.allowUserToggle??!0,T=M?b:void 0,R=C.useMemo(()=>pK(f?.defaultMode,T,x),[f?.defaultMode,T,x]),$={server:s,getAccessToken:t,apiClients:a,mutable:h,isLoadingStatus:c,instanceTheme:f};return m.jsx(CN.Provider,{value:$,children:m.jsx(hK,{layers:y,mode:R,userChoice:T,setMode:S,allowUserToggle:M,children:e})})},zr=()=>{const e=C.useContext(CN);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e};var Tu={},ss={},ER;function gp(){if(ER)return ss;ER=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(u){return["and","or",","].includes(u)}function t(u){return["starts","ends","contains","="].includes(u.operator)}function n(u){return typeof u=="object"&&u!==null&&"operator"in u&&typeof u.operator=="string"&&["starts","ends","contains","=","~","null","none","empty","and","or",",","()"].includes(u.operator)}function r(u){return typeof u=="object"&&u!==null&&"operator"in u&&typeof u.operator=="string"&&["null","none","true","false","=false","=true"].includes(u.operator)}function o(u){return typeof u=="object"&&u!==null&&"operator"in u&&typeof u.operator=="string"&&["range","<=",">=","!=","=",">","<","and","or","()","null","none"].includes(u.operator)}function a(u){return typeof u=="object"&&u!==null&&"operator"in u&&typeof u.operator=="string"&&["literal","before","after","to","for","in","and","or","in_last","this","last","next","()","null","none"].includes(u.operator)}function s(u){return typeof u=="object"&&u!==null&&"operator"in u}function l(u){return["string","number","boolean","timestamp","timestamptz","date"].includes(u)}return ss}var Fh={},OR;function wK(){return OR||(OR=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.BooleanFilterExpression=void 0,Fh.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}}),Fh}var $1={},Jo={},RR;function Kb(){if(RR)return Jo;RR=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.maybeNot=t,Jo.unescape=n,Jo.escape=r,Jo.matchOp=a,Jo.conjoin=l,Jo.joinNumbers=u,Jo.mkRange=f,Jo.mkValues=c,Jo.numNot=h,Jo.temporalNot=y,Jo.joinTemporal=b,Jo.timeLiteral=v,Jo.mkUnits=x;const e=gp();function t(w){const[S,M]=w;return S&&M&&(0,e.isStringFilter)(M)?{...M,not:!0}:M}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,M=!1,T=0,R=!1;const $=w.length;for(let P=0;P<$;P+=1){const N=w[P];if(N===" "||N===" "){T+=1;continue}T=0,N==="%"?(R=!0,P===0&&(S=!0),M=!0):(M=!1,N==="\\"?P+=1:N==="_"&&(R=!0))}return{hasLike:R,percentEnd:M&&$>1,percentStart:S&&$>1,endSpace:T}}function a(w){let S=w.trimStart();const{hasLike:M,percentEnd:T,percentStart:R,endSpace:$}=o(S);if($>0&&(S=S.slice(0,-$)),M){if(R&&T){const P=S.slice(1,-1);if(!o(P).hasLike&&P.length>0)return{operator:"contains",values:[n(P)]}}else if(T){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 M,T;return w.operator===S.operator&&((M=w.not)!==null&&M!==void 0?M:!1)===((T=S.not)!==null&&T!==void 0?T:!1)}function l(w,S,M){if(S=S.toLowerCase(),(0,e.isStringFilter)(w)&&(0,e.isStringFilter)(M)){if(S===","){if(w.operator==="~"&&s(w,M))return{...w,escaped_values:[...w.escaped_values,...M.escaped_values]};if((0,e.isStringCondition)(w)&&s(w,M))return{...w,values:[...w.values,...M.values]}}const T=S===","?",":S==="|"?"or":S===";"?"and":void 0;if(T)return w.operator===T?{...w,members:[...w.members,M]}:{operator:T,members:[w,M]}}return null}function u(w,S,M){if(S=S.toLowerCase(),(0,e.isNumberFilter)(w)&&(0,e.isNumberFilter)(M)){if(S==="or"&&w.operator==="="&&s(w,M)){const T={operator:"=",values:[...w.values,...M.values]};return w.not&&(T.not=!0),T}if(S==="and"||S==="or")return w.operator===S?{...w,members:[...w.members,M]}:{operator:S,members:[w,M]}}return null}function f(w,S,M,T){return{operator:"range",startValue:S,startOperator:w==="("?">":">=",endValue:M,endOperator:T===")"?"<":"<="}}function c(w,S){return{values:[w,...S]}}function h(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 M={...w};return w.not?delete M.not:M.not=!0,M}return{...w,not:!0}}return w}function b(w,S,M){return S=S.toLowerCase(),(0,e.isTemporalFilter)(w)&&(0,e.isTemporalFilter)(M)&&(S==="and"||S==="or")?w.operator===S?{...w,members:[...w.members,M]}:{operator:S,members:[w,M]}:null}function v(w,S){const M={moment:"literal",literal:w};return S&&(M.units=S),M}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 Jo}var P1,$R;function CK(){if($R)return P1;$R=1;const{numNot:e,mkRange:t,joinNumbers:n,mkValues:r}=Kb();function o(u,f){function c(){this.constructor=u}c.prototype=f.prototype,u.prototype=new c}function a(u,f,c,h){var y=Error.call(this,u);return Object.setPrototypeOf&&Object.setPrototypeOf(y,a.prototype),y.expected=f,y.found=c,y.location=h,y.name="SyntaxError",y}o(a,Error);function s(u,f,c){return c=c||" ",u.length>f?u:(f-=u.length,c+=c.repeat(f),u+c.slice(0,f))}a.prototype.format=function(u){var f="Error: "+this.message;if(this.location){var c=null,h;for(h=0;h<u.length;h++)if(u[h].source===this.location.source){c=u[h].text.split(/\r\n|\n|\r/g);break}var y=this.location.start,b=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,v=this.location.source+":"+b.line+":"+b.column;if(c){var x=this.location.end,w=s("",b.line.toString().length," "),S=c[y.line-1],M=y.line===x.line?x.column:S.length+1,T=M-y.column||1;f+=`
271
- --> `+v+`
272
- `+w+` |
273
- `+b.line+" | "+S+`
274
- `+w+" | "+s("",y.column-1," ")+s("",T,"^")}else f+=`
275
- at `+v}return f},a.buildMessage=function(u,f){var c={literal:function(S){return'"'+y(S.text)+'"'},class:function(S){var M=S.parts.map(function(T){return Array.isArray(T)?b(T[0])+"-"+b(T[1]):b(T)});return"["+(S.inverted?"^":"")+M.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(S){return S.description}};function h(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(M){return"\\x0"+h(M)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(M){return"\\x"+h(M)})}function b(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(M){return"\\x0"+h(M)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(M){return"\\x"+h(M)})}function v(S){return c[S.type](S)}function x(S){var M=S.map(v),T,R;if(M.sort(),M.length>0){for(T=1,R=1;T<M.length;T++)M[T-1]!==M[T]&&(M[R]=M[T],R++);M.length=R}switch(M.length){case 1:return M[0];case 2:return M[0]+" or "+M[1];default:return M.slice(0,-1).join(", ")+", or "+M[M.length-1]}}function w(S){return S?'"'+y(S)+'"':"end of input"}return"Expected "+x(u)+" but "+w(f)+" found."};function l(u,f){f=f!==void 0?f:{};var c={},h=f.grammarSource,y={numberFilter:Et},b=Et,v="(",x=")",w="!=",S=",",M="=",T="<=",R=">=",$="[",P="]",N="-",V=".",F="not",W="null",_="none",k="and",I="or",z="to",H=/^[<>]/,A=/^[0-9]/,Z=/^[Ee]/,K=/^[+\-]/,te=/^[a-zA-Z]/,X=/^[ \t]/,Q=Le("(",!1),ne=Le(")",!1),ie=Le("!=",!1),pe=Le(",",!1),oe=Le("=",!1),ae=Le("<=",!1),ce=Le(">=",!1),me=qe(["<",">"],!1,!1),ye=Le("[",!1),we=Le("]",!1),Ce=Le("-",!1),Te=qe([["0","9"]],!1,!1),ue=Le(".",!1),ke=qe(["E","e"],!1,!1),Ge=qe(["+","-"],!1,!1),ze=Le("not",!0),Ne=Le("null",!0),le=Le("none",!0),xt=Le("and",!0),Fe=Le("or",!0),it=Le("to",!0),ct=qe([["a","z"],["A","Z"]],!1,!1),Ft=It("whitespace"),_t=qe([" "," "],!1,!1),at=function(ge,Oe){return Oe.reduce((He,[,yt,,Rt])=>n(He,yt,Rt),ge)},Ze=function(ge,Oe){return e(Oe,ge)},rt=function(ge){return ge},je=function(){return{operator:"null"}},he=function(){return{operator:"none"}},We=function(ge){return{operator:"()",expr:ge}},Me=function(ge,Oe,He,yt){return t(ge,Oe,He,yt)},kt=function(ge,Oe){return{operator:"!=",...r(ge,Oe.map(He=>He[3]))}},Mt=function(ge,Oe){return{operator:"=",...r(ge,Oe.map(He=>He[3]))}},gt=function(ge,Oe){return{operator:ge,values:[Oe]}},ut=function(ge,Oe){return{operator:"=",...r(ge,Oe.map(He=>He[3]))}},$t=function(){return"["},Vt=function(){return"("},dn=function(){return"]"},vn=function(){return")"},Bn=function(ge){return ge},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||[],se=f.peg$silentFails|0,Pe;if(f.startRule){if(!(f.startRule in y))throw new Error(`Can't start parsing from rule "`+f.startRule+'".');b=y[f.startRule]}function Le(ge,Oe){return{type:"literal",text:ge,ignoreCase:Oe}}function qe(ge,Oe,He){return{type:"class",parts:ge,inverted:Oe,ignoreCase:He}}function dt(){return{type:"end"}}function It(ge){return{type:"other",description:ge}}function Bt(ge){var Oe=zn[ge],He;if(Oe)return Oe;if(ge>=zn.length)He=zn.length-1;else for(He=ge;!zn[--He];);for(Oe=zn[He],Oe={line:Oe.line,column:Oe.column};He<ge;)u.charCodeAt(He)===10?(Oe.line++,Oe.column=1):Oe.column++,He++;return zn[ge]=Oe,Oe}function Dt(ge,Oe,He){var yt=Bt(ge),Rt=Bt(Oe),Ct={source:h,start:{offset:ge,line:yt.line,column:yt.column},end:{offset:Oe,line:Rt.line,column:Rt.column}};return Ct}function mt(ge){be<En||(be>En&&(En=be,Xt=[]),Xt.push(ge))}function At(ge,Oe,He){return new a(a.buildMessage(ge,Oe),ge,Oe,He)}function Et(){var ge,Oe,He,yt,Rt,Ct,St,Gt;if(ge=be,Oe=wt(),Oe!==c){for(He=[],yt=be,Rt=pn(),Ct=fn(),Ct!==c?(St=pn(),Gt=wt(),Gt!==c?(Rt=[Rt,Ct,St,Gt],yt=Rt):(be=yt,yt=c)):(be=yt,yt=c);yt!==c;)He.push(yt),yt=be,Rt=pn(),Ct=fn(),Ct!==c?(St=pn(),Gt=wt(),Gt!==c?(Rt=[Rt,Ct,St,Gt],yt=Rt):(be=yt,yt=c)):(be=yt,yt=c);ge=at(Oe,He)}else be=ge,ge=c;return ge}function wt(){var ge,Oe,He;return ge=be,Oe=de(),Oe!==c?(pn(),He=Wt(),He!==c?ge=Ze(Oe,He):(be=ge,ge=c)):(be=ge,ge=c),ge===c&&(ge=be,Oe=Wt(),Oe!==c&&(Oe=rt(Oe)),ge=Oe),ge}function Wt(){var ge,Oe,He,yt,Rt,Ct,St,Gt,xn,ur;if(ge=be,Oe=fe(),Oe!==c&&(Oe=je()),ge=Oe,ge===c&&(ge=be,Oe=Ve(),Oe!==c&&(Oe=he()),ge=Oe,ge===c&&(ge=be,u.charCodeAt(be)===40?(Oe=v,be++):(Oe=c,se===0&&mt(Q)),Oe!==c?(He=pn(),yt=Et(),yt!==c?(Rt=pn(),u.charCodeAt(be)===41?(Ct=x,be++):(Ct=c,se===0&&mt(ne)),Ct!==c?ge=We(yt):(be=ge,ge=c)):(be=ge,ge=c)):(be=ge,ge=c),ge===c&&(ge=be,Oe=On(),Oe!==c?(He=pn(),yt=bn(),yt!==c?(Rt=pn(),Ct=Zt(),Ct!==c?(St=pn(),Gt=bn(),Gt!==c?(xn=pn(),ur=qn(),ur!==c?ge=Me(Oe,yt,Gt,ur):(be=ge,ge=c)):(be=ge,ge=c)):(be=ge,ge=c)):(be=ge,ge=c)):(be=ge,ge=c),ge===c)))){if(ge=be,u.substr(be,2)===w?(Oe=w,be+=2):(Oe=c,se===0&&mt(ie)),Oe!==c)if(He=pn(),yt=bn(),yt!==c){for(Rt=[],Ct=be,St=pn(),u.charCodeAt(be)===44?(Gt=S,be++):(Gt=c,se===0&&mt(pe)),Gt!==c?(xn=pn(),ur=bn(),ur!==c?(St=[St,Gt,xn,ur],Ct=St):(be=Ct,Ct=c)):(be=Ct,Ct=c);Ct!==c;)Rt.push(Ct),Ct=be,St=pn(),u.charCodeAt(be)===44?(Gt=S,be++):(Gt=c,se===0&&mt(pe)),Gt!==c?(xn=pn(),ur=bn(),ur!==c?(St=[St,Gt,xn,ur],Ct=St):(be=Ct,Ct=c)):(be=Ct,Ct=c);ge=kt(yt,Rt)}else be=ge,ge=c;else be=ge,ge=c;if(ge===c){if(ge=be,u.charCodeAt(be)===61?(Oe=M,be++):(Oe=c,se===0&&mt(oe)),Oe!==c)if(He=pn(),yt=bn(),yt!==c){for(Rt=[],Ct=be,St=pn(),u.charCodeAt(be)===44?(Gt=S,be++):(Gt=c,se===0&&mt(pe)),Gt!==c?(xn=pn(),ur=bn(),ur!==c?(St=[St,Gt,xn,ur],Ct=St):(be=Ct,Ct=c)):(be=Ct,Ct=c);Ct!==c;)Rt.push(Ct),Ct=be,St=pn(),u.charCodeAt(be)===44?(Gt=S,be++):(Gt=c,se===0&&mt(pe)),Gt!==c?(xn=pn(),ur=bn(),ur!==c?(St=[St,Gt,xn,ur],Ct=St):(be=Ct,Ct=c)):(be=Ct,Ct=c);ge=Mt(yt,Rt)}else be=ge,ge=c;else be=ge,ge=c;if(ge===c&&(ge=be,Oe=be,u.substr(be,2)===T?(He=T,be+=2):(He=c,se===0&&mt(ae)),He===c&&(u.substr(be,2)===R?(He=R,be+=2):(He=c,se===0&&mt(ce)),He===c&&(He=u.charAt(be),H.test(He)?be++:(He=c,se===0&&mt(me)))),He!==c?Oe=u.substring(Oe,be):Oe=He,Oe!==c?(He=pn(),yt=bn(),yt!==c?ge=gt(Oe,yt):(be=ge,ge=c)):(be=ge,ge=c),ge===c))if(ge=be,Oe=bn(),Oe!==c){for(He=[],yt=be,Rt=pn(),u.charCodeAt(be)===44?(Ct=S,be++):(Ct=c,se===0&&mt(pe)),Ct!==c?(St=pn(),Gt=bn(),Gt!==c?(Rt=[Rt,Ct,St,Gt],yt=Rt):(be=yt,yt=c)):(be=yt,yt=c);yt!==c;)He.push(yt),yt=be,Rt=pn(),u.charCodeAt(be)===44?(Ct=S,be++):(Ct=c,se===0&&mt(pe)),Ct!==c?(St=pn(),Gt=bn(),Gt!==c?(Rt=[Rt,Ct,St,Gt],yt=Rt):(be=yt,yt=c)):(be=yt,yt=c);ge=ut(Oe,He)}else be=ge,ge=c}}return ge}function On(){var ge,Oe;return ge=be,u.charCodeAt(be)===91?(Oe=$,be++):(Oe=c,se===0&&mt(ye)),Oe!==c&&(Oe=$t()),ge=Oe,ge===c&&(ge=be,u.charCodeAt(be)===40?(Oe=v,be++):(Oe=c,se===0&&mt(Q)),Oe!==c&&(Oe=Vt()),ge=Oe),ge}function qn(){var ge,Oe;return ge=be,u.charCodeAt(be)===93?(Oe=P,be++):(Oe=c,se===0&&mt(we)),Oe!==c&&(Oe=dn()),ge=Oe,ge===c&&(ge=be,u.charCodeAt(be)===41?(Oe=x,be++):(Oe=c,se===0&&mt(ne)),Oe!==c&&(Oe=vn()),ge=Oe),ge}function bn(){var ge,Oe,He,yt,Rt,Ct,St,Gt,xn,ur;if(ge=be,Oe=be,He=be,u.charCodeAt(be)===45?(yt=N,be++):(yt=c,se===0&&mt(Ce)),yt===c&&(yt=null),Rt=be,Ct=[],St=u.charAt(be),A.test(St)?be++:(St=c,se===0&&mt(Te)),St!==c)for(;St!==c;)Ct.push(St),St=u.charAt(be),A.test(St)?be++:(St=c,se===0&&mt(Te));else Ct=c;if(Ct!==c){for(u.charCodeAt(be)===46?(St=V,be++):(St=c,se===0&&mt(ue)),St===c&&(St=null),Gt=[],xn=u.charAt(be),A.test(xn)?be++:(xn=c,se===0&&mt(Te));xn!==c;)Gt.push(xn),xn=u.charAt(be),A.test(xn)?be++:(xn=c,se===0&&mt(Te));Ct=[Ct,St,Gt],Rt=Ct}else be=Rt,Rt=c;if(Rt===c){for(Rt=be,Ct=[],St=u.charAt(be),A.test(St)?be++:(St=c,se===0&&mt(Te));St!==c;)Ct.push(St),St=u.charAt(be),A.test(St)?be++:(St=c,se===0&&mt(Te));if(u.charCodeAt(be)===46?(St=V,be++):(St=c,se===0&&mt(ue)),St!==c){if(Gt=[],xn=u.charAt(be),A.test(xn)?be++:(xn=c,se===0&&mt(Te)),xn!==c)for(;xn!==c;)Gt.push(xn),xn=u.charAt(be),A.test(xn)?be++:(xn=c,se===0&&mt(Te));else Gt=c;Gt!==c?(Ct=[Ct,St,Gt],Rt=Ct):(be=Rt,Rt=c)}else be=Rt,Rt=c}if(Rt!==c){if(Ct=be,St=u.charAt(be),Z.test(St)?be++:(St=c,se===0&&mt(ke)),St!==c){if(Gt=u.charAt(be),K.test(Gt)?be++:(Gt=c,se===0&&mt(Ge)),Gt===c&&(Gt=null),xn=[],ur=u.charAt(be),A.test(ur)?be++:(ur=c,se===0&&mt(Te)),ur!==c)for(;ur!==c;)xn.push(ur),ur=u.charAt(be),A.test(ur)?be++:(ur=c,se===0&&mt(Te));else xn=c;xn!==c?(St=[St,Gt,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?Oe=u.substring(Oe,be):Oe=He,Oe!==c&&(Oe=Bn(Oe)),ge=Oe,ge}function fn(){var ge,Oe;return ge=be,Oe=Ke(),Oe!==c&&(Oe=Wn()),ge=Oe,ge===c&&(ge=be,Oe=vt(),Oe!==c&&(Oe=Qt()),ge=Oe),ge}function de(){var ge,Oe,He,yt;return ge=be,Oe=u.substr(be,3),Oe.toLowerCase()===F?be+=3:(Oe=c,se===0&&mt(ze)),Oe!==c?(He=be,se++,yt=nn(),se--,yt===c?He=void 0:(be=He,He=c),He!==c?ge=In():(be=ge,ge=c)):(be=ge,ge=c),ge}function fe(){var ge,Oe,He,yt;return ge=be,Oe=u.substr(be,4),Oe.toLowerCase()===W?be+=4:(Oe=c,se===0&&mt(Ne)),Oe!==c?(He=be,se++,yt=nn(),se--,yt===c?He=void 0:(be=He,He=c),He!==c?(Oe=[Oe,He],ge=Oe):(be=ge,ge=c)):(be=ge,ge=c),ge}function Ve(){var ge,Oe,He,yt;return ge=be,Oe=u.substr(be,4),Oe.toLowerCase()===_?be+=4:(Oe=c,se===0&&mt(le)),Oe!==c?(He=be,se++,yt=nn(),se--,yt===c?He=void 0:(be=He,He=c),He!==c?(Oe=[Oe,He],ge=Oe):(be=ge,ge=c)):(be=ge,ge=c),ge}function vt(){var ge,Oe,He,yt;return ge=be,Oe=u.substr(be,3),Oe.toLowerCase()===k?be+=3:(Oe=c,se===0&&mt(xt)),Oe!==c?(He=be,se++,yt=nn(),se--,yt===c?He=void 0:(be=He,He=c),He!==c?(Oe=[Oe,He],ge=Oe):(be=ge,ge=c)):(be=ge,ge=c),ge}function Ke(){var ge,Oe,He,yt;return ge=be,Oe=u.substr(be,2),Oe.toLowerCase()===I?be+=2:(Oe=c,se===0&&mt(Fe)),Oe!==c?(He=be,se++,yt=nn(),se--,yt===c?He=void 0:(be=He,He=c),He!==c?(Oe=[Oe,He],ge=Oe):(be=ge,ge=c)):(be=ge,ge=c),ge}function Zt(){var ge,Oe,He,yt;return ge=be,Oe=u.substr(be,2),Oe.toLowerCase()===z?be+=2:(Oe=c,se===0&&mt(it)),Oe!==c?(He=be,se++,yt=nn(),se--,yt===c?He=void 0:(be=He,He=c),He!==c?(Oe=[Oe,He],ge=Oe):(be=ge,ge=c)):(be=ge,ge=c),ge}function nn(){var ge;return ge=u.charAt(be),te.test(ge)?be++:(ge=c,se===0&&mt(ct)),ge}function pn(){var ge,Oe;for(se++,ge=[],Oe=u.charAt(be),X.test(Oe)?be++:(Oe=c,se===0&&mt(_t));Oe!==c;)ge.push(Oe),Oe=u.charAt(be),X.test(Oe)?be++:(Oe=c,se===0&&mt(_t));return se--,Oe=c,se===0&&mt(Ft),ge}if(Pe=b(),f.peg$library)return{peg$result:Pe,peg$currPos:be,peg$FAILED:c,peg$maxFailExpected:Xt,peg$maxFailPos:En};if(Pe!==c&&be===u.length)return Pe;throw Pe!==c&&be<u.length&&mt(dt()),At(Xt,En<u.length?u.charAt(En):null,En<u.length?Dt(En,En+1):Dt(En,En))}return P1={StartRules:["numberFilter"],SyntaxError:a,parse:l},P1}var Ky={},PR;function WC(){if(PR)return Ky;PR=1,Object.defineProperty(Ky,"__esModule",{value:!0}),Ky.run_parser=n;const e=gp();function t(r){return r instanceof Error&&"location"in r}function n(r,o){try{const a=o(r);return(0,e.isFilterExpression)(a)?{parsed:a,log:[]}:{parsed:null,log:[]}}catch(a){if(t(a)){const s=a.location,l=s?s.start.offset:0,u=s?s.end.offset-1:r.length-1;return{parsed:null,log:[{message:a.message,startIndex:l,endIndex:Math.max(l,u),severity:"error"}]}}throw a}}return Ky}var DR;function kK(){return DR||(DR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberFilterExpression=void 0;const t=gp(),n=CK(),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)}`}}})($1)),$1}var D1={},A1,AR;function TK(){if(AR)return A1;AR=1;const{conjoin:e,maybeNot:t,matchOp:n}=Kb();function r(l,u){function f(){this.constructor=l}f.prototype=u.prototype,l.prototype=new f}function o(l,u,f,c){var h=Error.call(this,l);return Object.setPrototypeOf&&Object.setPrototypeOf(h,o.prototype),h.expected=u,h.found=f,h.location=c,h.name="SyntaxError",h}r(o,Error);function a(l,u,f){return f=f||" ",l.length>u?l:(u-=l.length,f+=f.repeat(u),l+f.slice(0,u))}o.prototype.format=function(l){var u="Error: "+this.message;if(this.location){var f=null,c;for(c=0;c<l.length;c++)if(l[c].source===this.location.source){f=l[c].text.split(/\r\n|\n|\r/g);break}var h=this.location.start,y=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(h):h,b=this.location.source+":"+y.line+":"+y.column;if(f){var v=this.location.end,x=a("",y.line.toString().length," "),w=f[h.line-1],S=h.line===v.line?v.column:w.length+1,M=S-h.column||1;u+=`
276
- --> `+b+`
277
- `+x+` |
278
- `+y.line+" | "+w+`
279
- `+x+" | "+a("",h.column-1," ")+a("",M,"^")}else u+=`
280
- at `+b}return u},o.buildMessage=function(l,u){var f={literal:function(w){return'"'+h(w.text)+'"'},class:function(w){var S=w.parts.map(function(M){return Array.isArray(M)?y(M[0])+"-"+y(M[1]):y(M)});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 h(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 b(w){return f[w.type](w)}function v(w){var S=w.map(b),M,T;if(S.sort(),S.length>0){for(M=1,T=1;M<S.length;M++)S[M-1]!==S[M]&&(S[T]=S[M],T++);S.length=T}switch(S.length){case 1:return S[0];case 2:return S[0]+" or "+S[1];default:return S.slice(0,-1).join(", ")+", or "+S[S.length-1]}}function x(w){return w?'"'+h(w)+'"':"end of input"}return"Expected "+v(l)+" but "+x(u)+" found."};function s(l,u){u=u!==void 0?u:{};var f={},c=u.grammarSource,h={stringFilter:ct},y=ct,b="-",v="(",x=")",w="\\",S=",",M=";",T="|",R=/^[^\n,;()|]/,$=/^[ \t]/,P=ue("-",!1),N=ue("(",!1),V=ue(")",!1),F=Ne("match string"),W=ue("\\",!1),_=Ge(),k=ke([`
281
- `,",",";","(",")","|"],!0,!1),I=ue(",",!1),z=ue(";",!1),H=ue("|",!1),A=Ne("whitespace"),Z=ke([" "," "],!1,!1),K=function(je,he){return he.reduce((We,[,Me,,kt])=>e(We,Me,kt),je)},te=function(je){return t([!0,je])},X=function(je){return je},Q=function(je){return{operator:"()",expr:je}},ne=function(je){return n(je)},ie=function(je){return je},pe=function(){return","},oe=function(){return";"},ae=function(){return"|"},ce=u.peg$currPos|0,me=[{line:1,column:1}],ye=ce,we=u.peg$maxFailExpected||[],Ce=u.peg$silentFails|0,Te;if(u.startRule){if(!(u.startRule in h))throw new Error(`Can't start parsing from rule "`+u.startRule+'".');y=h[u.startRule]}function ue(je,he){return{type:"literal",text:je,ignoreCase:he}}function ke(je,he,We){return{type:"class",parts:je,inverted:he,ignoreCase:We}}function Ge(){return{type:"any"}}function ze(){return{type:"end"}}function Ne(je){return{type:"other",description:je}}function le(je){var he=me[je],We;if(he)return he;if(je>=me.length)We=me.length-1;else for(We=je;!me[--We];);for(he=me[We],he={line:he.line,column:he.column};We<je;)l.charCodeAt(We)===10?(he.line++,he.column=1):he.column++,We++;return me[je]=he,he}function xt(je,he,We){var Me=le(je),kt=le(he),Mt={source:c,start:{offset:je,line:Me.line,column:Me.column},end:{offset:he,line:kt.line,column:kt.column}};return Mt}function Fe(je){ce<ye||(ce>ye&&(ye=ce,we=[]),we.push(je))}function it(je,he,We){return new o(o.buildMessage(je,he),je,he,We)}function ct(){var je,he,We,Me,kt,Mt,gt,ut;if(je=ce,rt(),he=Ft(),he!==f){for(We=[],Me=ce,kt=rt(),Mt=Ze(),Mt!==f?(gt=rt(),ut=Ft(),ut!==f?(kt=[kt,Mt,gt,ut],Me=kt):(ce=Me,Me=f)):(ce=Me,Me=f);Me!==f;)We.push(Me),Me=ce,kt=rt(),Mt=Ze(),Mt!==f?(gt=rt(),ut=Ft(),ut!==f?(kt=[kt,Mt,gt,ut],Me=kt):(ce=Me,Me=f)):(ce=Me,Me=f);je=K(he,We)}else ce=je,je=f;return je}function Ft(){var je,he,We;return je=ce,l.charCodeAt(ce)===45?(he=b,ce++):(he=f,Ce===0&&Fe(P)),he!==f?(rt(),We=_t(),We!==f?je=te(We):(ce=je,je=f)):(ce=je,je=f),je===f&&(je=ce,he=_t(),he!==f&&(he=X(he)),je=he),je}function _t(){var je,he,We,Me;return je=ce,l.charCodeAt(ce)===40?(he=v,ce++):(he=f,Ce===0&&Fe(N)),he!==f?(rt(),We=ct(),We!==f?(rt(),l.charCodeAt(ce)===41?(Me=x,ce++):(Me=f,Ce===0&&Fe(V)),Me!==f?je=Q(We):(ce=je,je=f)):(ce=je,je=f)):(ce=je,je=f),je===f&&(je=ce,he=at(),he!==f&&(he=ne(he)),je=he),je}function at(){var je,he,We,Me,kt,Mt;if(Ce++,je=ce,he=ce,We=[],Me=ce,l.charCodeAt(ce)===92?(kt=w,ce++):(kt=f,Ce===0&&Fe(W)),kt!==f?(l.length>ce?(Mt=l.charAt(ce),ce++):(Mt=f,Ce===0&&Fe(_)),Mt!==f?(kt=[kt,Mt],Me=kt):(ce=Me,Me=f)):(ce=Me,Me=f),Me===f&&(Me=l.charAt(ce),R.test(Me)?ce++:(Me=f,Ce===0&&Fe(k))),Me!==f)for(;Me!==f;)We.push(Me),Me=ce,l.charCodeAt(ce)===92?(kt=w,ce++):(kt=f,Ce===0&&Fe(W)),kt!==f?(l.length>ce?(Mt=l.charAt(ce),ce++):(Mt=f,Ce===0&&Fe(_)),Mt!==f?(kt=[kt,Mt],Me=kt):(ce=Me,Me=f)):(ce=Me,Me=f),Me===f&&(Me=l.charAt(ce),R.test(Me)?ce++:(Me=f,Ce===0&&Fe(k)));else We=f;return We!==f?he=l.substring(he,ce):he=We,he!==f&&(he=ie(he)),je=he,Ce--,je===f&&(he=f,Ce===0&&Fe(F)),je}function Ze(){var je,he;return je=ce,l.charCodeAt(ce)===44?(he=S,ce++):(he=f,Ce===0&&Fe(I)),he!==f&&(he=pe()),je=he,je===f&&(je=ce,l.charCodeAt(ce)===59?(he=M,ce++):(he=f,Ce===0&&Fe(z)),he!==f&&(he=oe()),je=he,je===f&&(je=ce,l.charCodeAt(ce)===124?(he=T,ce++):(he=f,Ce===0&&Fe(H)),he!==f&&(he=ae()),je=he)),je}function rt(){var je,he;for(Ce++,je=[],he=l.charAt(ce),$.test(he)?ce++:(he=f,Ce===0&&Fe(Z));he!==f;)je.push(he),he=l.charAt(ce),$.test(he)?ce++:(he=f,Ce===0&&Fe(Z));return Ce--,he=f,Ce===0&&Fe(A),je}if(Te=y(),u.peg$library)return{peg$result:Te,peg$currPos:ce,peg$FAILED:f,peg$maxFailExpected:we,peg$maxFailPos:ye};if(Te!==f&&ce===l.length)return Te;throw Te!==f&&ce<l.length&&Fe(ze()),it(we,ye<l.length?l.charAt(ye):null,ye<l.length?xt(ye,ye+1):xt(ye,ye))}return A1={StartRules:["stringFilter"],SyntaxError:o,parse:s},A1}var jR;function MK(){return jR||(jR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StringFilterExpression=void 0;const t=gp(),n=TK(),r=Kb(),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"}}}})(D1)),D1}var j1={},N1,NR;function EK(){if(NR)return N1;NR=1;const{temporalNot:e,joinTemporal:t,timeLiteral:n,mkUnits:r}=Kb();function o(u,f){function c(){this.constructor=u}c.prototype=f.prototype,u.prototype=new c}function a(u,f,c,h){var y=Error.call(this,u);return Object.setPrototypeOf&&Object.setPrototypeOf(y,a.prototype),y.expected=f,y.found=c,y.location=h,y.name="SyntaxError",y}o(a,Error);function s(u,f,c){return c=c||" ",u.length>f?u:(f-=u.length,c+=c.repeat(f),u+c.slice(0,f))}a.prototype.format=function(u){var f="Error: "+this.message;if(this.location){var c=null,h;for(h=0;h<u.length;h++)if(u[h].source===this.location.source){c=u[h].text.split(/\r\n|\n|\r/g);break}var y=this.location.start,b=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,v=this.location.source+":"+b.line+":"+b.column;if(c){var x=this.location.end,w=s("",b.line.toString().length," "),S=c[y.line-1],M=y.line===x.line?x.column:S.length+1,T=M-y.column||1;f+=`
282
- --> `+v+`
283
- `+w+` |
284
- `+b.line+" | "+S+`
285
- `+w+" | "+s("",y.column-1," ")+s("",T,"^")}else f+=`
286
- at `+v}return f},a.buildMessage=function(u,f){var c={literal:function(S){return'"'+y(S.text)+'"'},class:function(S){var M=S.parts.map(function(T){return Array.isArray(T)?b(T[0])+"-"+b(T[1]):b(T)});return"["+(S.inverted?"^":"")+M.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(S){return S.description}};function h(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(M){return"\\x0"+h(M)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(M){return"\\x"+h(M)})}function b(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(M){return"\\x0"+h(M)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(M){return"\\x"+h(M)})}function v(S){return c[S.type](S)}function x(S){var M=S.map(v),T,R;if(M.sort(),M.length>0){for(T=1,R=1;T<M.length;T++)M[T-1]!==M[T]&&(M[R]=M[T],R++);M.length=R}switch(M.length){case 1:return M[0];case 2:return M[0]+" or "+M[1];default:return M.slice(0,-1).join(", ")+", or "+M[M.length-1]}}function w(S){return S?'"'+y(S)+'"':"end of input"}return"Expected "+x(u)+" but "+w(f)+" found."};function l(u,f){f=f!==void 0?f:{};var c={},h=f.grammarSource,y={temporalFilter:lu},b=lu,v="(",x=")",w="second",S="minute",M="hour",T="day",R="week",$="month",P="quarter",N="year",V="s",F="-",W=":",_="not",k="null",I="none",z="to",H="now",A="last",Z="this",K="next",te="ago",X="from",Q="before",ne="after",ie="through",pe="starting",oe="for",ae="today",ce="yesterday",me="tomorrow",ye="and",we="or",Ce="monday",Te="tuesday",ue="wednesday",ke="thursday",Ge="friday",ze="saturday",Ne="sunday",le=/^[0-9]/,xt=/^[ Tt]/,Fe=/^[.,]/,it=/^[Ww]/,ct=/^[Kk]/,Ft=/^[Qq]/,_t=/^[1234]/,at=/^[a-zA-Z]/,Ze=/^[ \t]/,rt=An("(",!1),je=An(")",!1),he=Do([["0","9"]],!1,!1),We=An("second",!0),Me=An("minute",!0),kt=An("hour",!0),Mt=An("day",!0),gt=An("week",!0),ut=An("month",!0),$t=An("quarter",!0),Vt=An("year",!0),dn=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),se=An("null",!0),Pe=An("none",!0),Le=An("to",!0),qe=An("now",!0),dt=An("last",!0),It=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),Wt=An("starting",!0),On=An("for",!0),qn=An("today",!0),bn=An("yesterday",!0),fn=An("tomorrow",!0),de=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),pn=An("saturday",!0),ge=An("sunday",!0),Oe=Do([["a","z"],["A","Z"]],!1,!1),He=iu("optional whitespace"),yt=Do([" "," "],!1,!1),Rt=iu("whitespace"),Ct=function(B,G){return G.reduce((q,[,Se,,Yt])=>t(q,Se,Yt),B)},St=function(B){return e(B,!0)},Gt=function(B){return B},xn=function(){return{operator:"null"}},ur=function(){return{operator:"none"}},lr=function(B){return{operator:"()",expr:B}},Ba=function(B){return{operator:"before",before:B}},Ki=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}},gi=function(B,G){return{operator:B,...G}},xs=function(B,G){return{operator:"to",fromMoment:B,toMoment:G}},Mo=function(B,G){return{...G,operator:"for",begin:B}},Ss=function(B){return{operator:"in",in:B}},Xc=function(B){return{operator:"in_last",...B}},Qi=function(){return"last"},yi=function(){return"next"},Zc=function(B,G){return{units:G,n:B}},al=function(B){return B},Xi=function(B){return r(B)},Hl=function(){return{moment:"now"}},ws=function(){return{moment:"today"}},il=function(){return{moment:"yesterday"}},Jc=function(){return{moment:"tomorrow"}},yd=function(B){return{moment:"ago",...B}},xp=function(B){return{moment:"from_now",...B}},sl=function(B){return{moment:B.toLowerCase(),which:"next"}},Wl=function(B){return{moment:B.toLowerCase(),which:"last"}},ql=function(B,G){return{moment:B,units:G}},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"},ll=function(B){return n(B)},ya=function(B){return n(B,"week")},nu=function(B){return n(B,"quarter")},cl=function(B){return n(B,"minute")},vi=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")},Gl=function(B){return B},Xr=function(){return"or"},au=function(){return"and"},j=f.peg$currPos|0,ho=[{line:1,column:1}],Zr=j,Ua=f.peg$maxFailExpected||[],Ee=f.peg$silentFails|0,Ji;if(f.startRule){if(!(f.startRule in y))throw new Error(`Can't start parsing from rule "`+f.startRule+'".');b=y[f.startRule]}function An(B,G){return{type:"literal",text:B,ignoreCase:G}}function Do(B,G,q){return{type:"class",parts:B,inverted:G,ignoreCase:q}}function ks(){return{type:"end"}}function iu(B){return{type:"other",description:B}}function bd(B){var G=ho[B],q;if(G)return G;if(B>=ho.length)q=ho.length-1;else for(q=B;!ho[--q];);for(G=ho[q],G={line:G.line,column:G.column};q<B;)u.charCodeAt(q)===10?(G.line++,G.column=1):G.column++,q++;return ho[B]=G,G}function xd(B,G,q){var Se=bd(B),Yt=bd(G),Ut={source:h,start:{offset:B,line:Se.line,column:Se.column},end:{offset:G,line:Yt.line,column:Yt.column}};return Ut}function Je(B){j<Zr||(j>Zr&&(Zr=j,Ua=[]),Ua.push(B))}function su(B,G,q){return new a(a.buildMessage(B,G),B,G,q)}function lu(){var B,G,q,Se,Yt,Ut,Rn,Yn;if(B=j,G=Kl(),G!==c){for(q=[],Se=j,Yt=ts(),Ut=wd(),Ut!==c?(Rn=ts(),Yn=Kl(),Yn!==c?(Yt=[Yt,Ut,Rn,Yn],Se=Yt):(j=Se,Se=c)):(j=Se,Se=c);Se!==c;)q.push(Se),Se=j,Yt=ts(),Ut=wd(),Ut!==c?(Rn=ts(),Yn=Kl(),Yn!==c?(Yt=[Yt,Ut,Rn,Yn],Se=Yt):(j=Se,Se=c)):(j=Se,Se=c);B=Ct(G,q)}else j=B,B=c;return B}function Kl(){var B,G,q,Se;return B=j,G=cu(),G!==c?(q=Wr(),q!==c?(Se=Sd(),Se!==c?B=St(Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Sd(),G!==c&&(G=Gt(G)),B=G),B}function Sd(){var B,G,q,Se,Yt,Ut;return B=j,G=Cp(),G!==c&&(G=xn()),B=G,B===c&&(B=j,G=Cd(),G!==c&&(G=ur()),B=G,B===c&&(B=j,u.charCodeAt(j)===40?(G=v,j++):(G=c,Ee===0&&Je(rt)),G!==c?(q=ts(),Se=lu(),Se!==c?(Yt=ts(),u.charCodeAt(j)===41?(Ut=x,j++):(Ut=c,Ee===0&&Je(je)),Ut!==c?B=lr(Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Op(),G!==c?(q=Wr(),q!==c?(Se=Ko(),Se!==c?B=Ba(Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Es(),G!==c?(q=Wr(),q!==c?(Se=Ko(),Se!==c?B=Ki(Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Rp(),G!==c?(q=Wr(),q!==c?(Se=Ko(),Se!==c?B=bs(Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=du(),G!==c?(q=Wr(),q!==c?(Se=Ko(),Se!==c?B=Vl(Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Ts(),G!==c?(q=Wr(),q!==c?(Se=ul(),Se!==c?B=gi(G,Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Ko(),G!==c?(q=Wr(),q!==c?(Se=kp(),Se!==c?(Yt=Wr(),Yt!==c?(Ut=Ko(),Ut!==c?B=xs(G,Ut):(j=B,B=c)):(j=B,B=c)):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Ko(),G!==c?(q=Wr(),q!==c?(Se=$p(),Se!==c?(Yt=Wr(),Yt!==c?(Ut=ul(),Ut!==c?B=Mo(G,Ut):(j=B,B=c)):(j=B,B=c)):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Ko(),G!==c&&(G=Ss(G)),B=G,B===c&&(B=j,G=ul(),G!==c&&(G=Xc(G)),B=G))))))))))),B}function Ts(){var B,G;return B=j,G=uu(),G!==c&&(G=Qi()),B=G,B===c&&(B=j,G=Ql(),G!==c&&(G=yi()),B=G),B}function ul(){var B,G,q,Se;return B=j,G=es(),G!==c?(q=Wr(),q!==c?(Se=Ms(),Se!==c?B=Zc(G,Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B}function es(){var B,G,q,Se;if(B=j,G=j,q=[],Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he)),Se!==c)for(;Se!==c;)q.push(Se),Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he));else q=c;return q!==c?G=u.substring(G,j):G=q,G!==c&&(G=al(G)),B=G,B}function Ms(){var B,G,q,Se,Yt;return B=j,G=j,q=u.substr(j,6),q.toLowerCase()===w?j+=6:(q=c,Ee===0&&Je(We)),q===c&&(q=u.substr(j,6),q.toLowerCase()===S?j+=6:(q=c,Ee===0&&Je(Me)),q===c&&(q=u.substr(j,4),q.toLowerCase()===M?j+=4:(q=c,Ee===0&&Je(kt)),q===c&&(q=u.substr(j,3),q.toLowerCase()===T?j+=3:(q=c,Ee===0&&Je(Mt)),q===c&&(q=u.substr(j,4),q.toLowerCase()===R?j+=4:(q=c,Ee===0&&Je(gt)),q===c&&(q=u.substr(j,5),q.toLowerCase()===$?j+=5:(q=c,Ee===0&&Je(ut)),q===c&&(q=u.substr(j,7),q.toLowerCase()===P?j+=7:(q=c,Ee===0&&Je($t)),q===c&&(q=u.substr(j,4),q.toLowerCase()===N?j+=4:(q=c,Ee===0&&Je(Vt))))))))),q!==c?G=u.substring(G,j):G=q,G!==c?(q=u.charAt(j),q.toLowerCase()===V?j++:(q=c,Ee===0&&Je(dn)),q===c&&(q=null),Se=j,Ee++,Yt=tr(),Ee--,Yt===c?Se=void 0:(j=Se,Se=c),Se!==c?B=Xi(G):(j=B,B=c)):(j=B,B=c),B}function Ko(){var B,G,q,Se,Yt,Ut;return B=j,G=kd(),G!==c&&(G=Hl()),B=G,B===c&&(B=j,G=Td(),G!==c&&(G=ws()),B=G,B===c&&(B=j,G=Md(),G!==c&&(G=il()),B=G,B===c&&(B=j,G=Ed(),G!==c&&(G=Jc()),B=G,B===c&&(B=j,G=ul(),G!==c?(q=Wr(),q!==c?(Se=Mp(),Se!==c?B=yd(G):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=ul(),G!==c?(q=Wr(),q!==c?(Se=Ep(),Se!==c?(Yt=Wr(),Yt!==c?(Ut=kd(),Ut!==c?B=xp(G):(j=B,B=c)):(j=B,B=c)):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Ql(),G!==c?(q=Wr(),q!==c?(Se=dl(),Se!==c?B=sl(Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=uu(),G!==c?(q=Wr(),q!==c?(Se=dl(),Se!==c?B=Wl(Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=Sp(),G!==c?(q=Wr(),q!==c?(Se=Ms(),Se!==c?B=ql(G,Se):(j=B,B=c)):(j=B,B=c)):(j=B,B=c),B===c&&(B=j,G=dl(),G!==c&&(G=Cs(G)),B=G,B===c&&(B=j,G=wp(),G!==c&&(G=Zi(G)),B=G)))))))))),B}function Sp(){var B,G;return B=j,G=Tp(),G!==c&&(G=eu()),B=G,B===c&&(B=j,G=Ql(),G!==c&&(G=tu()),B=G,B===c&&(B=j,G=uu(),G!==c&&(G=vd()),B=G)),B}function wp(){var B,G,q,Se,Yt,Ut,Rn,Yn,Gn,qt,wr,Cr,rn,gr,Fr,Ur,_a,ia,Ln,pl,sa,ns,Qo,Jr,hl,mo;if(B=j,G=j,q=j,Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he)),Se!==c)if(Yt=u.charAt(j),le.test(Yt)?j++:(Yt=c,Ee===0&&Je(he)),Yt!==c)if(Ut=u.charAt(j),le.test(Ut)?j++:(Ut=c,Ee===0&&Je(he)),Ut!==c)if(Rn=u.charAt(j),le.test(Rn)?j++:(Rn=c,Ee===0&&Je(he)),Rn!==c)if(u.charCodeAt(j)===45?(Yn=F,j++):(Yn=c,Ee===0&&Je(vn)),Yn!==c)if(Gn=u.charAt(j),le.test(Gn)?j++:(Gn=c,Ee===0&&Je(he)),Gn!==c)if(qt=u.charAt(j),le.test(qt)?j++:(qt=c,Ee===0&&Je(he)),qt!==c)if(u.charCodeAt(j)===45?(wr=F,j++):(wr=c,Ee===0&&Je(vn)),wr!==c)if(Cr=u.charAt(j),le.test(Cr)?j++:(Cr=c,Ee===0&&Je(he)),Cr!==c)if(rn=u.charAt(j),le.test(rn)?j++:(rn=c,Ee===0&&Je(he)),rn!==c)if(gr=u.charAt(j),xt.test(gr)?j++:(gr=c,Ee===0&&Je(Bn)),gr!==c)if(Fr=u.charAt(j),le.test(Fr)?j++:(Fr=c,Ee===0&&Je(he)),Fr!==c)if(Ur=u.charAt(j),le.test(Ur)?j++:(Ur=c,Ee===0&&Je(he)),Ur!==c)if(u.charCodeAt(j)===58?(_a=W,j++):(_a=c,Ee===0&&Je(Wn)),_a!==c)if(ia=u.charAt(j),le.test(ia)?j++:(ia=c,Ee===0&&Je(he)),ia!==c)if(Ln=u.charAt(j),le.test(Ln)?j++:(Ln=c,Ee===0&&Je(he)),Ln!==c)if(u.charCodeAt(j)===58?(pl=W,j++):(pl=c,Ee===0&&Je(Wn)),pl!==c)if(sa=u.charAt(j),le.test(sa)?j++:(sa=c,Ee===0&&Je(he)),sa!==c)if(ns=u.charAt(j),le.test(ns)?j++:(ns=c,Ee===0&&Je(he)),ns!==c){if(Qo=j,Jr=u.charAt(j),Fe.test(Jr)?j++:(Jr=c,Ee===0&&Je(Qt)),Jr!==c){for(hl=[],mo=u.charAt(j),le.test(mo)?j++:(mo=c,Ee===0&&Je(he));mo!==c;)hl.push(mo),mo=u.charAt(j),le.test(mo)?j++:(mo=c,Ee===0&&Je(he));Jr=[Jr,hl],Qo=Jr}else j=Qo,Qo=c;Qo===c&&(Qo=null),Se=[Se,Yt,Ut,Rn,Yn,Gn,qt,wr,Cr,rn,gr,Fr,Ur,_a,ia,Ln,pl,sa,ns,Qo],q=Se}else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;else j=q,q=c;return q!==c?G=u.substring(G,j):G=q,G!==c&&(G=ll(G)),B=G,B===c&&(B=j,G=j,q=j,Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he)),Se!==c?(Yt=u.charAt(j),le.test(Yt)?j++:(Yt=c,Ee===0&&Je(he)),Yt!==c?(Ut=u.charAt(j),le.test(Ut)?j++:(Ut=c,Ee===0&&Je(he)),Ut!==c?(Rn=u.charAt(j),le.test(Rn)?j++:(Rn=c,Ee===0&&Je(he)),Rn!==c?(u.charCodeAt(j)===45?(Yn=F,j++):(Yn=c,Ee===0&&Je(vn)),Yn!==c?(Gn=u.charAt(j),le.test(Gn)?j++:(Gn=c,Ee===0&&Je(he)),Gn!==c?(qt=u.charAt(j),le.test(qt)?j++:(qt=c,Ee===0&&Je(he)),qt!==c?(u.charCodeAt(j)===45?(wr=F,j++):(wr=c,Ee===0&&Je(vn)),wr!==c?(Cr=u.charAt(j),le.test(Cr)?j++:(Cr=c,Ee===0&&Je(he)),Cr!==c?(rn=u.charAt(j),le.test(rn)?j++:(rn=c,Ee===0&&Je(he)),rn!==c?(u.charCodeAt(j)===45?(gr=F,j++):(gr=c,Ee===0&&Je(vn)),gr!==c?(Fr=u.charAt(j),it.test(Fr)?j++:(Fr=c,Ee===0&&Je(In)),Fr!==c?(Ur=u.charAt(j),ct.test(Ur)?j++:(Ur=c,Ee===0&&Je(be)),Ur!==c?(Se=[Se,Yt,Ut,Rn,Yn,Gn,qt,wr,Cr,rn,gr,Fr,Ur],q=Se):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c),q!==c?G=u.substring(G,j):G=q,G!==c&&(G=ya(G)),B=G,B===c&&(B=j,G=j,q=j,Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he)),Se!==c?(Yt=u.charAt(j),le.test(Yt)?j++:(Yt=c,Ee===0&&Je(he)),Yt!==c?(Ut=u.charAt(j),le.test(Ut)?j++:(Ut=c,Ee===0&&Je(he)),Ut!==c?(Rn=u.charAt(j),le.test(Rn)?j++:(Rn=c,Ee===0&&Je(he)),Rn!==c?(u.charCodeAt(j)===45?(Yn=F,j++):(Yn=c,Ee===0&&Je(vn)),Yn!==c?(Gn=u.charAt(j),Ft.test(Gn)?j++:(Gn=c,Ee===0&&Je(zn)),Gn!==c?(qt=u.charAt(j),_t.test(qt)?j++:(qt=c,Ee===0&&Je(En)),qt!==c?(Se=[Se,Yt,Ut,Rn,Yn,Gn,qt],q=Se):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c),q!==c?G=u.substring(G,j):G=q,G!==c&&(G=nu(G)),B=G,B===c&&(B=j,G=j,q=j,Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he)),Se!==c?(Yt=u.charAt(j),le.test(Yt)?j++:(Yt=c,Ee===0&&Je(he)),Yt!==c?(Ut=u.charAt(j),le.test(Ut)?j++:(Ut=c,Ee===0&&Je(he)),Ut!==c?(Rn=u.charAt(j),le.test(Rn)?j++:(Rn=c,Ee===0&&Je(he)),Rn!==c?(u.charCodeAt(j)===45?(Yn=F,j++):(Yn=c,Ee===0&&Je(vn)),Yn!==c?(Gn=u.charAt(j),le.test(Gn)?j++:(Gn=c,Ee===0&&Je(he)),Gn!==c?(qt=u.charAt(j),le.test(qt)?j++:(qt=c,Ee===0&&Je(he)),qt!==c?(u.charCodeAt(j)===45?(wr=F,j++):(wr=c,Ee===0&&Je(vn)),wr!==c?(Cr=u.charAt(j),le.test(Cr)?j++:(Cr=c,Ee===0&&Je(he)),Cr!==c?(rn=u.charAt(j),le.test(rn)?j++:(rn=c,Ee===0&&Je(he)),rn!==c?(gr=u.charAt(j),xt.test(gr)?j++:(gr=c,Ee===0&&Je(Bn)),gr!==c?(Fr=u.charAt(j),le.test(Fr)?j++:(Fr=c,Ee===0&&Je(he)),Fr!==c?(Ur=u.charAt(j),le.test(Ur)?j++:(Ur=c,Ee===0&&Je(he)),Ur!==c?(u.charCodeAt(j)===58?(_a=W,j++):(_a=c,Ee===0&&Je(Wn)),_a!==c?(ia=u.charAt(j),le.test(ia)?j++:(ia=c,Ee===0&&Je(he)),ia!==c?(Ln=u.charAt(j),le.test(Ln)?j++:(Ln=c,Ee===0&&Je(he)),Ln!==c?(Se=[Se,Yt,Ut,Rn,Yn,Gn,qt,wr,Cr,rn,gr,Fr,Ur,_a,ia,Ln],q=Se):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c),q!==c?G=u.substring(G,j):G=q,G!==c&&(G=cl(G)),B=G,B===c&&(B=j,G=j,q=j,Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he)),Se!==c?(Yt=u.charAt(j),le.test(Yt)?j++:(Yt=c,Ee===0&&Je(he)),Yt!==c?(Ut=u.charAt(j),le.test(Ut)?j++:(Ut=c,Ee===0&&Je(he)),Ut!==c?(Rn=u.charAt(j),le.test(Rn)?j++:(Rn=c,Ee===0&&Je(he)),Rn!==c?(u.charCodeAt(j)===45?(Yn=F,j++):(Yn=c,Ee===0&&Je(vn)),Yn!==c?(Gn=u.charAt(j),le.test(Gn)?j++:(Gn=c,Ee===0&&Je(he)),Gn!==c?(qt=u.charAt(j),le.test(qt)?j++:(qt=c,Ee===0&&Je(he)),qt!==c?(u.charCodeAt(j)===45?(wr=F,j++):(wr=c,Ee===0&&Je(vn)),wr!==c?(Cr=u.charAt(j),le.test(Cr)?j++:(Cr=c,Ee===0&&Je(he)),Cr!==c?(rn=u.charAt(j),le.test(rn)?j++:(rn=c,Ee===0&&Je(he)),rn!==c?(gr=u.charAt(j),xt.test(gr)?j++:(gr=c,Ee===0&&Je(Bn)),gr!==c?(Fr=u.charAt(j),le.test(Fr)?j++:(Fr=c,Ee===0&&Je(he)),Fr!==c?(Ur=u.charAt(j),le.test(Ur)?j++:(Ur=c,Ee===0&&Je(he)),Ur!==c?(Se=[Se,Yt,Ut,Rn,Yn,Gn,qt,wr,Cr,rn,gr,Fr,Ur],q=Se):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c),q!==c?G=u.substring(G,j):G=q,G!==c&&(G=vi(G)),B=G,B===c&&(B=j,G=j,q=j,Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he)),Se!==c?(Yt=u.charAt(j),le.test(Yt)?j++:(Yt=c,Ee===0&&Je(he)),Yt!==c?(Ut=u.charAt(j),le.test(Ut)?j++:(Ut=c,Ee===0&&Je(he)),Ut!==c?(Rn=u.charAt(j),le.test(Rn)?j++:(Rn=c,Ee===0&&Je(he)),Rn!==c?(u.charCodeAt(j)===45?(Yn=F,j++):(Yn=c,Ee===0&&Je(vn)),Yn!==c?(Gn=u.charAt(j),le.test(Gn)?j++:(Gn=c,Ee===0&&Je(he)),Gn!==c?(qt=u.charAt(j),le.test(qt)?j++:(qt=c,Ee===0&&Je(he)),qt!==c?(u.charCodeAt(j)===45?(wr=F,j++):(wr=c,Ee===0&&Je(vn)),wr!==c?(Cr=u.charAt(j),le.test(Cr)?j++:(Cr=c,Ee===0&&Je(he)),Cr!==c?(rn=u.charAt(j),le.test(rn)?j++:(rn=c,Ee===0&&Je(he)),rn!==c?(Se=[Se,Yt,Ut,Rn,Yn,Gn,qt,wr,Cr,rn],q=Se):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c),q!==c?G=u.substring(G,j):G=q,G!==c&&(G=ru(G)),B=G,B===c&&(B=j,G=j,q=j,Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he)),Se!==c?(Yt=u.charAt(j),le.test(Yt)?j++:(Yt=c,Ee===0&&Je(he)),Yt!==c?(Ut=u.charAt(j),le.test(Ut)?j++:(Ut=c,Ee===0&&Je(he)),Ut!==c?(Rn=u.charAt(j),le.test(Rn)?j++:(Rn=c,Ee===0&&Je(he)),Rn!==c?(u.charCodeAt(j)===45?(Yn=F,j++):(Yn=c,Ee===0&&Je(vn)),Yn!==c?(Gn=u.charAt(j),le.test(Gn)?j++:(Gn=c,Ee===0&&Je(he)),Gn!==c?(qt=u.charAt(j),le.test(qt)?j++:(qt=c,Ee===0&&Je(he)),qt!==c?(Se=[Se,Yt,Ut,Rn,Yn,Gn,qt],q=Se):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c),q!==c?G=u.substring(G,j):G=q,G!==c&&(G=Yl(G)),B=G,B===c&&(B=j,G=j,q=j,Se=u.charAt(j),le.test(Se)?j++:(Se=c,Ee===0&&Je(he)),Se!==c?(Yt=u.charAt(j),le.test(Yt)?j++:(Yt=c,Ee===0&&Je(he)),Yt!==c?(Ut=u.charAt(j),le.test(Ut)?j++:(Ut=c,Ee===0&&Je(he)),Ut!==c?(Rn=u.charAt(j),le.test(Rn)?j++:(Rn=c,Ee===0&&Je(he)),Rn!==c?(Se=[Se,Yt,Ut,Rn],q=Se):(j=q,q=c)):(j=q,q=c)):(j=q,q=c)):(j=q,q=c),q!==c?G=u.substring(G,j):G=q,G!==c&&(G=ou(G)),B=G))))))),B}function dl(){var B,G,q;return B=j,G=j,q=Os(),q===c&&(q=Pp(),q===c&&(q=Dp(),q===c&&(q=Ap(),q===c&&(q=$d(),q===c&&(q=Pd(),q===c&&(q=fl())))))),q!==c?G=u.substring(G,j):G=q,G!==c&&(G=Gl(G)),B=G,B}function wd(){var B,G;return B=j,G=Rd(),G!==c&&(G=Xr()),B=G,B===c&&(B=j,G=Od(),G!==c&&(G=au()),B=G),B}function cu(){var B,G,q,Se;return B=j,G=u.substr(j,3),G.toLowerCase()===_?j+=3:(G=c,Ee===0&&Je(Xt)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Cp(){var B,G,q,Se;return B=j,G=u.substr(j,4),G.toLowerCase()===k?j+=4:(G=c,Ee===0&&Je(se)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Cd(){var B,G,q,Se;return B=j,G=u.substr(j,4),G.toLowerCase()===I?j+=4:(G=c,Ee===0&&Je(Pe)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function kp(){var B,G,q,Se;return B=j,G=u.substr(j,2),G.toLowerCase()===z?j+=2:(G=c,Ee===0&&Je(Le)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function kd(){var B,G,q,Se;return B=j,G=u.substr(j,3),G.toLowerCase()===H?j+=3:(G=c,Ee===0&&Je(qe)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function uu(){var B,G,q,Se;return B=j,G=u.substr(j,4),G.toLowerCase()===A?j+=4:(G=c,Ee===0&&Je(dt)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Tp(){var B,G,q,Se;return B=j,G=u.substr(j,4),G.toLowerCase()===Z?j+=4:(G=c,Ee===0&&Je(It)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Ql(){var B,G,q,Se;return B=j,G=u.substr(j,4),G.toLowerCase()===K?j+=4:(G=c,Ee===0&&Je(Bt)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Mp(){var B,G,q,Se;return B=j,G=u.substr(j,3),G.toLowerCase()===te?j+=3:(G=c,Ee===0&&Je(Dt)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Ep(){var B,G,q,Se;return B=j,G=u.substr(j,4),G.toLowerCase()===X?j+=4:(G=c,Ee===0&&Je(mt)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Op(){var B,G,q,Se;return B=j,G=u.substr(j,6),G.toLowerCase()===Q?j+=6:(G=c,Ee===0&&Je(At)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Rp(){var B,G,q,Se;return B=j,G=u.substr(j,5),G.toLowerCase()===ne?j+=5:(G=c,Ee===0&&Je(Et)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function du(){var B,G,q,Se;return B=j,G=u.substr(j,7),G.toLowerCase()===ie?j+=7:(G=c,Ee===0&&Je(wt)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Es(){var B,G,q,Se;return B=j,G=u.substr(j,8),G.toLowerCase()===pe?j+=8:(G=c,Ee===0&&Je(Wt)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function $p(){var B,G,q,Se;return B=j,G=u.substr(j,3),G.toLowerCase()===oe?j+=3:(G=c,Ee===0&&Je(On)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Td(){var B,G,q,Se;return B=j,G=u.substr(j,5),G.toLowerCase()===ae?j+=5:(G=c,Ee===0&&Je(qn)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Md(){var B,G,q,Se;return B=j,G=u.substr(j,9),G.toLowerCase()===ce?j+=9:(G=c,Ee===0&&Je(bn)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Ed(){var B,G,q,Se;return B=j,G=u.substr(j,8),G.toLowerCase()===me?j+=8:(G=c,Ee===0&&Je(fn)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Od(){var B,G,q,Se;return B=j,G=u.substr(j,3),G.toLowerCase()===ye?j+=3:(G=c,Ee===0&&Je(de)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Rd(){var B,G,q,Se;return B=j,G=u.substr(j,2),G.toLowerCase()===we?j+=2:(G=c,Ee===0&&Je(fe)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Os(){var B,G,q,Se;return B=j,G=u.substr(j,6),G.toLowerCase()===Ce?j+=6:(G=c,Ee===0&&Je(Ve)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Pp(){var B,G,q,Se;return B=j,G=u.substr(j,7),G.toLowerCase()===Te?j+=7:(G=c,Ee===0&&Je(vt)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Dp(){var B,G,q,Se;return B=j,G=u.substr(j,9),G.toLowerCase()===ue?j+=9:(G=c,Ee===0&&Je(Ke)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Ap(){var B,G,q,Se;return B=j,G=u.substr(j,8),G.toLowerCase()===ke?j+=8:(G=c,Ee===0&&Je(Zt)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function $d(){var B,G,q,Se;return B=j,G=u.substr(j,6),G.toLowerCase()===Ge?j+=6:(G=c,Ee===0&&Je(nn)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function Pd(){var B,G,q,Se;return B=j,G=u.substr(j,8),G.toLowerCase()===ze?j+=8:(G=c,Ee===0&&Je(pn)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function fl(){var B,G,q,Se;return B=j,G=u.substr(j,6),G.toLowerCase()===Ne?j+=6:(G=c,Ee===0&&Je(ge)),G!==c?(q=j,Ee++,Se=tr(),Ee--,Se===c?q=void 0:(j=q,q=c),q!==c?(G=[G,q],B=G):(j=B,B=c)):(j=B,B=c),B}function tr(){var B;return B=u.charAt(j),at.test(B)?j++:(B=c,Ee===0&&Je(Oe)),B}function ts(){var B,G;for(Ee++,B=[],G=u.charAt(j),Ze.test(G)?j++:(G=c,Ee===0&&Je(yt));G!==c;)B.push(G),G=u.charAt(j),Ze.test(G)?j++:(G=c,Ee===0&&Je(yt));return Ee--,G=c,Ee===0&&Je(He),B}function Wr(){var B,G;if(Ee++,B=[],G=u.charAt(j),Ze.test(G)?j++:(G=c,Ee===0&&Je(yt)),G!==c)for(;G!==c;)B.push(G),G=u.charAt(j),Ze.test(G)?j++:(G=c,Ee===0&&Je(yt));else B=c;return Ee--,B===c&&(G=c,Ee===0&&Je(Rt)),B}if(Ji=b(),f.peg$library)return{peg$result:Ji,peg$currPos:j,peg$FAILED:c,peg$maxFailExpected:Ua,peg$maxFailPos:Zr};if(Ji!==c&&j===u.length)return Ji;throw Ji!==c&&j<u.length&&Je(ks()),su(Ua,Zr<u.length?u.charAt(Zr):null,Zr<u.length?xd(Zr,Zr+1):xd(Zr,Zr))}return N1={StartRules:["temporalFilter"],SyntaxError:a,parse:l},N1}var IR;function OK(){return IR||(IR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=void 0;const t=gp(),n=EK(),r=WC();e.TemporalFilterExpression={parse(l){if(l.match(/^\s*$/))return{parsed:null,log:[]};const u=(0,r.run_parser)(l,n.parse);return u.parsed&&(0,t.isTemporalFilter)(u.parsed)?{parsed:u.parsed,log:[]}:{parsed:null,log:u.log}},unparse(l){if(l===null)return"";switch(l.operator){case"null":return o(l,"null");case"none":return o(l,"none");case"in":return o(l,s(l.in));case"()":return o(l,"("+e.TemporalFilterExpression.unparse(l.expr)+")");case"in_last":return o(l,a(l));case"last":case"next":return o(l,`${l.operator} ${a(l)}`);case"before":return`${l.not?"starting":"before"} ${s(l.before)}`;case"after":return`${l.not?"through":"after"} ${s(l.after)}`;case"to":return o(l,`${s(l.fromMoment)} to ${s(l.toMoment)}`);case"for":return o(l,`${s(l.begin)} for ${a(l)}`);case"or":return l.members.map(u=>e.TemporalFilterExpression.unparse(u)).join(" or ");case"and":return l.members.map(u=>e.TemporalFilterExpression.unparse(u)).join(" and ")}}};function o(l,u){return"not"in l&&l.not?"not "+u:u}function a(l){return l.n==="1"?`1 ${l.units}`:`${l.n} ${l.units}s`}function s(l){switch(l.moment){case"literal":return l.literal;case"now":case"today":case"yesterday":case"tomorrow":return l.moment;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return l.which==="next"?"next "+l.moment:l.moment;case"this":case"next":case"last":return`${l.moment} ${l.units}`;case"ago":return`${a(l)} ago`;case"from_now":return`${a(l)} from now`}}})(j1)),j1}var LR;function RK(){return LR||(LR=1,(function(e){var t=Tu&&Tu.__createBinding||(Object.create?(function(l,u,f,c){c===void 0&&(c=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,c,h)}):(function(l,u,f,c){c===void 0&&(c=f),l[c]=u[f]})),n=Tu&&Tu.__exportStar||function(l,u){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&t(u,l,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=e.StringFilterExpression=e.NumberFilterExpression=e.BooleanFilterExpression=void 0,n(gp(),e);var r=wK();Object.defineProperty(e,"BooleanFilterExpression",{enumerable:!0,get:function(){return r.BooleanFilterExpression}});var o=kK();Object.defineProperty(e,"NumberFilterExpression",{enumerable:!0,get:function(){return o.NumberFilterExpression}});var a=MK();Object.defineProperty(e,"StringFilterExpression",{enumerable:!0,get:function(){return a.StringFilterExpression}});var s=OK();Object.defineProperty(e,"TemporalFilterExpression",{enumerable:!0,get:function(){return s.TemporalFilterExpression}})})(Tu)),Tu}var hi=RK();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 $K=["children","options"],zR=["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"}),FR={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},PK=["style","script","pre"],DK=["src","href","data","formAction","srcDoc","action"],AK=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,jK=/mailto:/i,NK=/\n{2,}$/,BR=/^(\s*>[\s\S]*?)(?=\n\n|$)/,IK=/^ *> ?/gm,LK=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,zK=/^ {2,}\n/,FK=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,UR=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,_R=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,BK=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,UK=/^(?:\n *)*\n/,_K=/\r\n?/g,VK=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,HK=/^\[\^([^\]]+)]/,WK=/\f/g,qK=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,YK=/^\s*?\[(x|\s)\]/,VR=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,HR=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,WR=/^([^\n]+)\n *(=|-){3,} *\n/,I1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,GK=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,qR=/^<!--[\s\S]*?(?:-->)/,KK=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,L1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,QK=/^\{.*\}$/,XK=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ZK=/^<([^ >]+@[^ >]+)>/,JK=/^<([^ >]+:\/[^ >]+)>/,eQ=/-([a-z])?/gi,YR=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,tQ=/^[^\n]+(?: \n|\n{2,})/,nQ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,rQ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,oQ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,aQ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,iQ=/\t/g,sQ=/(^ *\||\| *$)/g,lQ=/^ *:-+: *$/,cQ=/^ *:-+ *$/,uQ=/^ *-+: *$/,Qb=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Xb="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",dQ=RegExp(`^([*_])\\1${Qb(1)}${Xb}\\1\\1(?!\\1)`),fQ=RegExp(`^([*_])${Qb(0)}${Xb}\\1(?!\\1)`),pQ=RegExp(`^(==)${Qb(0)}${Xb}\\1`),hQ=RegExp(`^(~~)${Qb(0)}${Xb}\\1`),mQ=/^(:[a-zA-Z0-9-_]+:)/,gQ=/^\\([^0-9A-Za-z\s])/,yQ=/\\([^0-9A-Za-z\s])/g,vQ=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,bQ=/^\n+/,xQ=/^([ \t]*)/,SQ=/(?:^|\n)( *)$/,qC="(?:\\d+\\.)",YC="(?:[*+-])";function kN(e){return"( *)("+(e===1?qC:YC)+") +"}const TN=kN(1),MN=kN(2);function EN(e){return RegExp("^"+(e===1?TN:MN))}const wQ=EN(1),CQ=EN(2);function ON(e){return RegExp("^"+(e===1?TN:MN)+"[^\\n]*(?:\\n(?!\\1"+(e===1?qC:YC)+" )[^\\n]*)*(\\n|$)","gm")}const kQ=ON(1),TQ=ON(2);function RN(e){const t=e===1?qC:YC;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const $N=RN(1),PN=RN(2);function GR(e,t){const n=t===1,r=n?$N:PN,o=n?kQ:TQ,a=n?wQ:CQ;return{t:s=>a.test(s),o:Jf(function(s,l){const u=SQ.exec(l.prevCapture);return u&&(l.list||!l.inline&&!l.simple)?r.exec(s=u[1]+s):null}),i:1,u(s,l,u){const f=n?+s[2]:void 0,c=s[0].replace(NK,`
287
- `).match(o);let h=!1;return{items:c.map(function(y,b){const v=a.exec(y)[0].length,x=RegExp("^ {1,"+v+"}","gm"),w=y.replace(x,"").replace(a,""),S=b===c.length-1,M=w.indexOf(`
288
-
289
- `)!==-1||S&&h;h=M;const T=u.inline,R=u.list;let $;u.list=!0,M?(u.inline=!1,$=Cm(w)+`
290
-
291
- `):(u.inline=!0,$=Cm(w));const P=l($,u);return u.inline=T,u.list=R,P}),ordered:n,start:f}},l:(s,l,u)=>e(s.ordered?"ol":"ul",{key:u.key,start:s.type==="20"?s.start:void 0},s.items.map(function(f,c){return e("li",{key:c},l(f,u))}))}}const MQ=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),EQ=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Cm(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function kv(e,t){return e.startsWith(t)}function OQ(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(kv(e,n[r]))return!0;return!1}return n(e,t)}function Bh(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 RQ(e){return uQ.test(e)?"right":lQ.test(e)?"center":cQ.test(e)?"left":null}function KR(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],s="";function l(){if(!s)return;const u=a[a.length-1];u.push.apply(u,t(s,n)),s=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,f,c)=>{u.trim()==="|"&&(l(),r)?f!==0&&f!==c.length-1&&a.push([]):s+=u}),l(),n.inTable=o,a}function $Q(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(sQ,"").split("|").map(RQ):[],o=e[3]?(function(s,l,u){return s.trim().split(`
292
- `).map(function(f){return KR(f,l,u,!0)})})(e[3],t,n):[],a=KR(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 QR(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Jf(e){return e.inline=1,e}function xc(e){return Jf(function(t,n){return n.inline?e.exec(t):null})}function Sc(e){return Jf(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Ol(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Qy(e){return Jf(function(t){return e.exec(t)})}const PQ=/(javascript|vbscript|data(?!:image)):/i;function DQ(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(PQ.test(t))return null}catch{return null}return e}function Is(e){return e&&e.replace(yQ,"$1")}function Tv(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 AQ(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 jQ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const z1=(e,t,n)=>({children:Tv(t,e[2],n)});function F1(){return{}}function B1(){return null}function NQ(...e){return e.filter(Boolean).join(" ")}function U1(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 IQ(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Nu({},FR,t.namedCodesToUnicode):FR;const n=t.slugify||Bh,r=t.sanitizer||DQ,o=t.createElement||C.createElement,a=[BR,UR,_R,t.enforceAtxHeadings?HR:VR,WR,YR,$N,PN],s=[...a,tQ,I1,qR,L1];function l(S,M,...T){const R=U1(t.overrides,S+".props",{});return o((function($,P){const N=U1(P,$);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:U1(P,$+".component",$):$})(S,t.overrides),Nu({},M,R,{className:NQ(M?.className,R.className)||void 0}),...T)}function u(S){S=S.replace(qK,"");let M=!1;t.forceInline?M=!0:t.forceBlock||(M=aQ.test(S)===!1);const T=v(b(M?S:Cm(S).replace(bQ,"")+`
293
-
294
- `,{inline:M}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(t.wrapper===null)return T;const R=t.wrapper||(M?"span":"div");let $;if(T.length>1||t.forceWrapper)$=T;else{if(T.length===1)return $=T[0],typeof $=="string"?l("span",{key:"outer"},$):$;$=null}return o(R,{key:"outer"},$)}function f(S,M){if(!M||!M.trim())return null;const T=M.match(AK);return T?T.reduce(function(R,$){const P=$.indexOf("=");if(P!==-1){const N=(function(_){return _.indexOf("-")!==-1&&_.match(KK)===null&&(_=_.replace(eQ,function(k,I){return I.toUpperCase()})),_})($.slice(0,P)).trim(),V=(function(_){const k=_[0];return(k==='"'||k==="'")&&_.length>=2&&_[_.length-1]===k?_.slice(1,-1):_})($.slice(P+1).trim()),F=zR[N]||N;if(F==="ref")return R;const W=R[F]=(function(_,k,I,z){return k==="style"?(function(H){const A=[];let Z="",K=!1,te=!1,X="";if(!H)return A;for(let ne=0;ne<H.length;ne++){const ie=H[ne];if(ie!=='"'&&ie!=="'"||K||(te?ie===X&&(te=!1,X=""):(te=!0,X=ie)),ie==="("&&Z.endsWith("url")?K=!0:ie===")"&&K&&(K=!1),ie!==";"||te||K)Z+=ie;else{const pe=Z.trim();if(pe){const oe=pe.indexOf(":");if(oe>0){const ae=pe.slice(0,oe).trim(),ce=pe.slice(oe+1).trim();A.push([ae,ce])}}Z=""}}const Q=Z.trim();if(Q){const ne=Q.indexOf(":");if(ne>0){const ie=Q.slice(0,ne).trim(),pe=Q.slice(ne+1).trim();A.push([ie,pe])}}return A})(I).reduce(function(H,[A,Z]){return H[A.replace(/(-[a-z])/g,K=>K[1].toUpperCase())]=z(Z,_,A),H},{}):DK.indexOf(k)!==-1?z(Is(I),_,k):(I.match(QK)&&(I=Is(I.slice(1,I.length-1))),I==="true"||I!=="false"&&I)})(S,N,V,r);typeof W=="string"&&(I1.test(W)||L1.test(W))&&(R[F]=u(W.trim()))}else $!=="style"&&(R[zR[$]||$]=!0);return R},{}):null}const c=[],h={},y={0:{t:[">"],o:Ol(BR),i:1,u(S,M,T){const[,R,$]=S[0].replace(IK,"").match(LK);return{alert:R,children:M($,T)}},l(S,M,T){const R={key:T.key};return S.alert&&(R.className="markdown-alert-"+n(S.alert.toLowerCase(),Bh),S.children.unshift({attrs:{},children:[{type:"27",text:S.alert}],noInnerParse:!0,type:"11",tag:"header"})),l("blockquote",R,M(S.children,T))}},1:{o:Qy(zK),i:1,u:F1,l:(S,M,T)=>l("br",{key:T.key})},2:{t:S=>{const M=S[0];return M==="-"||M==="*"||M==="_"},o:Ol(FK),i:1,u:F1,l:(S,M,T)=>l("hr",{key:T.key})},3:{t:[" "],o:Ol(_R),i:0,u:S=>({lang:void 0,text:Is(Cm(S[0].replace(/^ {4}/gm,"")))}),l:(S,M,T)=>l("pre",{key:T.key},l("code",Nu({},S.attrs,{className:S.lang?"lang-"+S.lang:""}),S.text))},4:{t:["```","~~~"],o:Ol(UR),i:0,u:S=>({attrs:f("code",S[3]||""),lang:S[2]||void 0,text:S[4],type:"3"})},5:{t:["`"],o:Sc(BK),i:3,u:S=>({text:Is(S[2])}),l:(S,M,T)=>l("code",{key:T.key},S.text)},6:{t:["[^"],o:Ol(VK),i:0,u:S=>(c.push({footnote:S[2],identifier:S[1]}),{}),l:B1},7:{t:["[^"],o:xc(HK),i:1,u:S=>({target:"#"+n(S[1],Bh),text:S[1]}),l:(S,M,T)=>l("a",{key:T.key,href:r(S.target,"a","href")},l("sup",{key:T.key},S.text))},8:{t:["[ ]","[x]"],o:xc(YK),i:1,u:S=>({completed:S[1].toLowerCase()==="x"}),l:(S,M,T)=>l("input",{checked:S.completed,key:T.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Ol(t.enforceAtxHeadings?HR:VR),i:1,u:(S,M,T)=>({children:Tv(M,S[2],T),id:n(S[2],Bh),level:S[1].length}),l:(S,M,T)=>l("h"+S.level,{id:S.id,key:T.key},M(S.children,T))},10:{o:Ol(WR),i:0,u:(S,M,T)=>({children:Tv(M,S[1],T),level:S[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Qy(I1),i:1,u(S,M,T){const[,R]=S[3].match(xQ),$=RegExp("^"+R,"gm"),P=S[3].replace($,""),N=(V=P,s.some(I=>I.test(V))?jQ:Tv);var V;const F=S[1].toLowerCase(),W=PK.indexOf(F)!==-1,_=(W?F:S[1]).trim(),k={attrs:f(_,S[2]),noInnerParse:W,tag:_};if(T.inAnchor=T.inAnchor||F==="a",W)k.text=S[3];else{const I=T.inHTML;T.inHTML=!0,k.children=N(M,P,T),T.inHTML=I}return T.inAnchor=!1,k},l:(S,M,T)=>l(S.tag,Nu({key:T.key},S.attrs),S.text||(S.children?M(S.children,T):""))},13:{t:["<"],o:Qy(L1),i:1,u(S){const M=S[1].trim();return{attrs:f(M,S[2]||""),tag:M}},l:(S,M,T)=>l(S.tag,Nu({},S.attrs,{key:T.key}))},12:{t:["<!--"],o:Qy(qR),i:1,u:()=>({}),l:B1},14:{t:["!["],o:Sc(EQ),i:1,u:S=>({alt:Is(S[1]),target:Is(S[2]),title:Is(S[3])}),l:(S,M,T)=>l("img",{key:T.key,alt:S.alt||void 0,title:S.title||void 0,src:r(S.target,"img","src")})},15:{t:["["],o:xc(MQ),i:3,u:(S,M,T)=>({children:AQ(M,S[1],T),target:Is(S[2]),title:Is(S[3])}),l:(S,M,T)=>l("a",{key:T.key,href:r(S.target,"a","href"),title:S.title},M(S.children,T))},16:{t:["<"],o:xc(JK),i:0,u:S=>({children:[{text:S[1],type:"27"}],target:S[1],type:"15"})},17:{t:(S,M)=>!M.inAnchor&&!t.disableAutoLink&&(kv(S,"http://")||kv(S,"https://")),o:xc(XK),i:0,u:S=>({children:[{text:S[1],type:"27"}],target:S[1],title:void 0,type:"15"})},18:{t:["<"],o:xc(ZK),i:0,u(S){let M=S[1],T=S[1];return jK.test(T)||(T="mailto:"+T),{children:[{text:M.replace("mailto:",""),type:"27"}],target:T,type:"15"}}},20:GR(l,1),33:GR(l,2),19:{o:Ol(UK),i:3,u:F1,l:()=>`
295
- `},21:{o:Jf(function(S,M){if(M.inline||M.simple||M.inHTML&&S.indexOf(`
296
-
297
- `)===-1&&M.prevCapture.indexOf(`
298
-
299
- `)===-1)return null;let T="";S.split(`
300
- `).every($=>($+=`
301
- `,!a.some(P=>P.test($))&&(T+=$,!!$.trim())));const R=Cm(T);return R===""?null:[T,,R]}),i:3,u:z1,l:(S,M,T)=>l("p",{key:T.key},M(S.children,T))},22:{t:["["],o:xc(nQ),i:0,u:S=>(h[S[1]]={target:S[2],title:S[4]},{}),l:B1},23:{t:["!["],o:Sc(rQ),i:0,u:S=>({alt:S[1]?Is(S[1]):void 0,ref:S[2]}),l:(S,M,T)=>h[S.ref]?l("img",{key:T.key,alt:S.alt,src:r(h[S.ref].target,"img","src"),title:h[S.ref].title}):null},24:{t:S=>S[0]==="["&&S.indexOf("](")===-1,o:xc(oQ),i:0,u:(S,M,T)=>({children:M(S[1],T),fallbackChildren:S[0],ref:S[2]}),l:(S,M,T)=>h[S.ref]?l("a",{key:T.key,href:r(h[S.ref].target,"a","href"),title:h[S.ref].title},M(S.children,T)):l("span",{key:T.key},S.fallbackChildren)},25:{t:["|"],o:Ol(YR),i:1,u:$Q,l(S,M,T){const R=S;return l("table",{key:T.key},l("thead",null,l("tr",null,R.header.map(function($,P){return l("th",{key:P,style:QR(R,P)},M($,T))}))),l("tbody",null,R.cells.map(function($,P){return l("tr",{key:P},$.map(function(N,V){return l("td",{key:V,style:QR(R,V)},M(N,T))}))})))}},27:{o:Jf(function(S,M){let T;return kv(S,":")&&(T=mQ.exec(S)),T||vQ.exec(S)}),i:4,u(S){const M=S[0];return{text:M.indexOf("&")===-1?M:M.replace(GK,(T,R)=>t.namedCodesToUnicode[R]||T)}},l:S=>S.text},28:{t:["**","__"],o:Sc(dQ),i:2,u:(S,M,T)=>({children:M(S[2],T)}),l:(S,M,T)=>l("strong",{key:T.key},M(S.children,T))},29:{t:S=>{const M=S[0];return(M==="*"||M==="_")&&S[1]!==M},o:Sc(fQ),i:3,u:(S,M,T)=>({children:M(S[2],T)}),l:(S,M,T)=>l("em",{key:T.key},M(S.children,T))},30:{t:["\\"],o:Sc(gQ),i:1,u:S=>({text:S[1],type:"27"})},31:{t:["=="],o:Sc(pQ),i:3,u:z1,l:(S,M,T)=>l("mark",{key:T.key},M(S.children,T))},32:{t:["~~"],o:Sc(hQ),i:3,u:z1,l:(S,M,T)=>l("del",{key:T.key},M(S.children,T))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const b=(function(S){var M=Object.keys(S);function T(R,$){var P=[];if($.prevCapture=$.prevCapture||"",R.trim())for(;R;)for(var N=0;N<M.length;){var V=M[N],F=S[V];if(!F.t||OQ(R,$,F.t)){var W=F.o(R,$);if(W&&W[0]){R=R.substring(W[0].length);var _=F.u(W,T,$);$.prevCapture+=W[0],_.type||(_.type=V),P.push(_);break}N++}else N++}return $.prevCapture="",P}return M.sort(function(R,$){return S[R].i-S[$].i||(R<$?-1:1)}),function(R,$){return T((function(P){return P.replace(_K,`
302
- `).replace(WK,"").replace(iQ," ")})(R),$)}})(y),v=(x=(function(S,M){return function(T,R,$){const P=S[T.type].l;return M?M(()=>P(T,R,$),T,R,$):P(T,R,$)}})(y,t.renderRule),function S(M,T={}){if(Array.isArray(M)){const R=T.key,$=[];let P=!1;for(let N=0;N<M.length;N++){T.key=N;const V=S(M[N],T),F=typeof V=="string";F&&P?$[$.length-1]+=V:V!==null&&$.push(V),P=F}return T.key=R,$}return x(M,S,T)});var x;const w=u(e);return c.length?l("div",null,w,l("footer",{key:"footer"},c.map(function(S){return l("div",{id:n(S.identifier,Bh),key:S.identifier},S.identifier,v(b(S.footnote,{inline:!0})))}))):w}const LQ=e=>{let{children:t="",options:n}=e,r=(function(o,a){if(o==null)return{};var s,l,u={},f=Object.keys(o);for(l=0;l<f.length;l++)a.indexOf(s=f[l])>=0||(u[s]=o[s]);return u})(e,$K);return C.cloneElement(IQ(t,n),r)},Zb=za(m.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"})),GC=za(m.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"})),Jb=za(m.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"})),zQ=za(m.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function Ul(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function FQ(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 tw={exports:{}},BQ=tw.exports,XR;function UQ(){return XR||(XR=1,(function(e,t){(function(n,r){e.exports=r()})(BQ,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",u="hour",f="day",c="week",h="month",y="quarter",b="year",v="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,M={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(z){var H=["th","st","nd","rd"],A=z%100;return"["+z+(H[(A-20)%10]||H[A]||H[0])+"]"}},T=function(z,H,A){var Z=String(z);return!Z||Z.length>=H?z:""+Array(H+1-Z.length).join(A)+z},R={s:T,z:function(z){var H=-z.utcOffset(),A=Math.abs(H),Z=Math.floor(A/60),K=A%60;return(H<=0?"+":"-")+T(Z,2,"0")+":"+T(K,2,"0")},m:function z(H,A){if(H.date()<A.date())return-z(A,H);var Z=12*(A.year()-H.year())+(A.month()-H.month()),K=H.clone().add(Z,h),te=A-K<0,X=H.clone().add(Z+(te?-1:1),h);return+(-(Z+(A-K)/(te?K-X:X-K))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:h,y:b,w:c,d:f,D:v,h:u,m:l,s,ms:a,Q:y}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},$="en",P={};P[$]=M;var N="$isDayjsObject",V=function(z){return z instanceof k||!(!z||!z[N])},F=function z(H,A,Z){var K;if(!H)return $;if(typeof H=="string"){var te=H.toLowerCase();P[te]&&(K=te),A&&(P[te]=A,K=te);var X=H.split("-");if(!K&&X.length>1)return z(X[0])}else{var Q=H.name;P[Q]=H,K=Q}return!Z&&K&&($=K),K||!Z&&$},W=function(z,H){if(V(z))return z.clone();var A=typeof H=="object"?H:{};return A.date=z,A.args=arguments,new k(A)},_=R;_.l=F,_.i=V,_.w=function(z,H){return W(z,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var k=(function(){function z(A){this.$L=F(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[N]=!0}var H=z.prototype;return H.parse=function(A){this.$d=(function(Z){var K=Z.date,te=Z.utc;if(K===null)return new Date(NaN);if(_.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var X=K.match(w);if(X){var Q=X[2]-1||0,ne=(X[7]||"0").substring(0,3);return te?new Date(Date.UTC(X[1],Q,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ne)):new Date(X[1],Q,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ne)}}return new Date(K)})(A),this.init()},H.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},H.$utils=function(){return _},H.isValid=function(){return this.$d.toString()!==x},H.isSame=function(A,Z){var K=W(A);return this.startOf(Z)<=K&&K<=this.endOf(Z)},H.isAfter=function(A,Z){return W(A)<this.startOf(Z)},H.isBefore=function(A,Z){return this.endOf(Z)<W(A)},H.$g=function(A,Z,K){return _.u(A)?this[Z]:this.set(K,A)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(A,Z){var K=this,te=!!_.u(Z)||Z,X=_.p(A),Q=function(ye,we){var Ce=_.w(K.$u?Date.UTC(K.$y,we,ye):new Date(K.$y,we,ye),K);return te?Ce:Ce.endOf(f)},ne=function(ye,we){return _.w(K.toDate()[ye].apply(K.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(we)),K)},ie=this.$W,pe=this.$M,oe=this.$D,ae="set"+(this.$u?"UTC":"");switch(X){case b:return te?Q(1,0):Q(31,11);case h:return te?Q(1,pe):Q(0,pe+1);case c:var ce=this.$locale().weekStart||0,me=(ie<ce?ie+7:ie)-ce;return Q(te?oe-me:oe+(6-me),pe);case f:case v:return ne(ae+"Hours",0);case u:return ne(ae+"Minutes",1);case l:return ne(ae+"Seconds",2);case s:return ne(ae+"Milliseconds",3);default:return this.clone()}},H.endOf=function(A){return this.startOf(A,!1)},H.$set=function(A,Z){var K,te=_.p(A),X="set"+(this.$u?"UTC":""),Q=(K={},K[f]=X+"Date",K[v]=X+"Date",K[h]=X+"Month",K[b]=X+"FullYear",K[u]=X+"Hours",K[l]=X+"Minutes",K[s]=X+"Seconds",K[a]=X+"Milliseconds",K)[te],ne=te===f?this.$D+(Z-this.$W):Z;if(te===h||te===b){var ie=this.clone().set(v,1);ie.$d[Q](ne),ie.init(),this.$d=ie.set(v,Math.min(this.$D,ie.daysInMonth())).$d}else Q&&this.$d[Q](ne);return this.init(),this},H.set=function(A,Z){return this.clone().$set(A,Z)},H.get=function(A){return this[_.p(A)]()},H.add=function(A,Z){var K,te=this;A=Number(A);var X=_.p(Z),Q=function(pe){var oe=W(te);return _.w(oe.date(oe.date()+Math.round(pe*A)),te)};if(X===h)return this.set(h,this.$M+A);if(X===b)return this.set(b,this.$y+A);if(X===f)return Q(1);if(X===c)return Q(7);var ne=(K={},K[l]=r,K[u]=o,K[s]=n,K)[X]||1,ie=this.$d.getTime()+A*ne;return _.w(ie,this)},H.subtract=function(A,Z){return this.add(-1*A,Z)},H.format=function(A){var Z=this,K=this.$locale();if(!this.isValid())return K.invalidDate||x;var te=A||"YYYY-MM-DDTHH:mm:ssZ",X=_.z(this),Q=this.$H,ne=this.$m,ie=this.$M,pe=K.weekdays,oe=K.months,ae=K.meridiem,ce=function(we,Ce,Te,ue){return we&&(we[Ce]||we(Z,te))||Te[Ce].slice(0,ue)},me=function(we){return _.s(Q%12||12,we,"0")},ye=ae||function(we,Ce,Te){var ue=we<12?"AM":"PM";return Te?ue.toLowerCase():ue};return te.replace(S,(function(we,Ce){return Ce||(function(Te){switch(Te){case"YY":return String(Z.$y).slice(-2);case"YYYY":return _.s(Z.$y,4,"0");case"M":return ie+1;case"MM":return _.s(ie+1,2,"0");case"MMM":return ce(K.monthsShort,ie,oe,3);case"MMMM":return ce(oe,ie);case"D":return Z.$D;case"DD":return _.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return ce(K.weekdaysMin,Z.$W,pe,2);case"ddd":return ce(K.weekdaysShort,Z.$W,pe,3);case"dddd":return pe[Z.$W];case"H":return String(Q);case"HH":return _.s(Q,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ye(Q,ne,!0);case"A":return ye(Q,ne,!1);case"m":return String(ne);case"mm":return _.s(ne,2,"0");case"s":return String(Z.$s);case"ss":return _.s(Z.$s,2,"0");case"SSS":return _.s(Z.$ms,3,"0");case"Z":return X}return null})(we)||X.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(A,Z,K){var te,X=this,Q=_.p(Z),ne=W(A),ie=(ne.utcOffset()-this.utcOffset())*r,pe=this-ne,oe=function(){return _.m(X,ne)};switch(Q){case b:te=oe()/12;break;case h:te=oe();break;case y:te=oe()/3;break;case c:te=(pe-ie)/6048e5;break;case f:te=(pe-ie)/864e5;break;case u:te=pe/o;break;case l:te=pe/r;break;case s:te=pe/n;break;default:te=pe}return K?te:_.a(te)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return P[this.$L]},H.locale=function(A,Z){if(!A)return this.$L;var K=this.clone(),te=F(A,Z,!0);return te&&(K.$L=te),K},H.clone=function(){return _.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},z})(),I=k.prototype;return W.prototype=I,[["$ms",a],["$s",s],["$m",l],["$H",u],["$W",f],["$M",h],["$y",b],["$D",v]].forEach((function(z){I[z[1]]=function(H){return this.$g(H,z[0],z[1])}})),W.extend=function(z,H){return z.$i||(z(H,k,W),z.$i=!0),W},W.locale=F,W.isDayjs=V,W.unix=function(z){return W(1e3*z)},W.en=P[$],W.Ls=P,W.p={},W}))})(tw)),tw.exports}var _Q=UQ();const $r=Ul(_Q);var nw={exports:{}},VQ=nw.exports,ZR;function HQ(){return ZR||(ZR=1,(function(e,t){(function(n,r){e.exports=r()})(VQ,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,s,l){var u=s.prototype;l.utc=function(x){var w={date:x,utc:!0,args:arguments};return new s(w)},u.utc=function(x){var w=l(this.toDate(),{locale:this.$L,utc:!0});return x?w.add(this.utcOffset(),n):w},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var f=u.parse;u.parse=function(x){x.utc&&(this.$u=!0),this.$utils().u(x.$offset)||(this.$offset=x.$offset),f.call(this,x)};var c=u.init;u.init=function(){if(this.$u){var x=this.$d;this.$y=x.getUTCFullYear(),this.$M=x.getUTCMonth(),this.$D=x.getUTCDate(),this.$W=x.getUTCDay(),this.$H=x.getUTCHours(),this.$m=x.getUTCMinutes(),this.$s=x.getUTCSeconds(),this.$ms=x.getUTCMilliseconds()}else c.call(this)};var h=u.utcOffset;u.utcOffset=function(x,w){var S=this.$utils().u;if(S(x))return this.$u?0:S(this.$offset)?h.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],F=60*+N[1]+ +N[2];return F===0?0:V==="+"?F:-F})(x),x===null))return this;var M=Math.abs(x)<=16?60*x:x;if(M===0)return this.utc(w);var T=this.clone();if(w)return T.$offset=M,T.$u=!1,T;var R=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(T=this.local().add(M+R,n)).$offset=M,T.$x.$localOffset=R,T};var y=u.format;u.format=function(x){var w=x||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,w)},u.valueOf=function(){var x=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*x},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var b=u.toDate;u.toDate=function(x){return x==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var v=u.diff;u.diff=function(x,w,S){if(x&&this.$u===x.$u)return v.call(this,x,w,S);var M=this.local(),T=l(x).local();return v.call(M,T,w,S)}}}))})(nw)),nw.exports}var WQ=HQ();const KC=Ul(WQ);$r.extend(KC);function Iu(e){return(e??"").startsWith("filter<")}function qQ(e){const{parsed:t}=hi.BooleanFilterExpression.parse(e);if(!(!t||t.not))return t.operator==="true"||t.operator==="false"?t.operator:void 0}function Df(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function QC(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":hi.StringFilterExpression.unparse({operator:"=",values:[...t]})}function YQ(e){if(e.trim()==="")return[];const{parsed:t}=hi.StringFilterExpression.parse(e);return DN(t)?t.values:[e]}function GQ(e){return e===void 0||e.trim()===""?!0:DN(hi.StringFilterExpression.parse(e).parsed)}function DN(e){return e!==null&&hi.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function KQ(e){return hi.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function QQ(e){const t=e.trim();if(t==="")return;const{parsed:n}=hi.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 XQ(e,t){return hi.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function ZQ(e){const t=e.trim();if(t==="")return;const{parsed:n}=hi.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 JQ(e){const t=Kv.find(n=>n.key===e);return t?hi.TemporalFilterExpression.unparse(t.clause):void 0}function eX(e){const t=e.trim();if(t==="")return;const{parsed:n}=hi.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 tX=/^\d{4}-\d{2}-\d{2}$/;function nX(e,t){const n=$r.utc(t,"YYYY-MM-DD").add(1,"day");return hi.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function rX(e){const t=e.trim();if(t==="")return;const{parsed:n}=hi.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=JR(n.fromMoment),o=JR(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 JR(e){return e.moment==="literal"&&tX.test(e.literal)?e.literal:void 0}const _1="self";function AN(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(e$)).filter(e$):[]}function jN(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function NN(e){return e.tag?.tag("drill")?.text("given")??e.name}function e0(e){if(typeof e=="string"){const t=QC([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 IN(e){return e instanceof Date?e0(e)??"":String(e)}function oX(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=AN(t);if(n.length===0)return;const r=e0(e.value);if(r!==void 0)return{to:n,given:NN(t),value:r,rawValue:e.value,label:IN(e.value)}}function e$(e){return typeof e=="string"&&e!==""}function aX(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 Df(t)==="string"&&typeof e=="number"?Number.isFinite(e)?QC([String(e)]):void 0:Df(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:e0(e)}function iX({declaredTypes:e,setGiven:t,documentName:n}){const r=C.useMemo(()=>{const l=new Map;for(const u of e.keys())l.has(u.toLowerCase())||l.set(u.toLowerCase(),u);return l},[e]),o=C.useCallback(l=>e.has(l)?l:r.get(l.toLowerCase()),[e,r]),a=C.useCallback(l=>o(l)!==void 0,[o]),s=C.useCallback((l,u)=>{const f=o(l);if(f===void 0){console.warn(`# drill { to=self } tried to set '${l}', which '${n}' does not declare as a given. Name the given with 'given=' on the drill tag.`);return}const c=e.get(f),h=aX(u,c);if(h===void 0){console.warn(`Drill declined: ${JSON.stringify(u)} cannot be a value for given "${f}"`+(c?` of type ${c}`:""));return}t(f,h)},[e,n,o,t]);return{resolveGiven:o,canSelf:a,onSelf:s}}function sX(e,t){if(e!=null){if(e instanceof Date)return FN(e,t);if(!Array.isArray(e))return String(e)}}function lX(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 cX=/^(\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 LN(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 uX(e,t=!1){const n=LN(e);if(n==="")return;const r=cX.exec(n);if(!r)return;const[,o,a,s,l,u,f,c,h]=r,y={year:Number(o),month:Number(a),day:Number(s),hour:Number(l??0),minute:Number(u??0),second:Number(f??0),milli:Number((c??"").slice(0,3).padEnd(3,"0")||0)},b=Date.UTC(y.year,y.month-1,y.day,y.hour,y.minute,y.second,y.milli),v=new Date(b);if(!(v.getUTCFullYear()===y.year&&v.getUTCMonth()===y.month-1&&v.getUTCDate()===y.day&&v.getUTCHours()===y.hour&&v.getUTCMinutes()===y.minute&&v.getUTCSeconds()===y.second)||h!==void 0&&l===void 0)return;const x=dX(h);if(x===void 0)return;const w=new Date(b-x*6e4);if(!(t&&h!==void 0&&w.getUTCDate()!==y.day))return w}function dX(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 fX(e){return!pX.has(e??"")}const pX=new Set(["boolean","number","date","timestamp","timestamptz"]);function zN(e,t){if(t===""&&!fX(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=LN(t);return uX(n,e==="date")??n}default:return t}}function XC(e,t){const n={};for(const[r,o]of e){const a=sX(o,t.get(r));a!==void 0&&(n[r]=a)}return n}function FN(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 bg(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?FN(s,t.get(a)):s));return o}function t$(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,zN(t.get(r),o));return n}function n$(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 r$(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function hX(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function o$(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function mX({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:a}){const s=C.useMemo(()=>t$(t??{},e),[e,JSON.stringify(t)]),l=C.useRef(null),u=C.useRef(null),f=C.useRef({documentKey:o,params:n}),c=_=>_!==null&&hX(n??{},_,e);c(l.current)&&(u.current=null),(f.current.documentKey!==o||!o$(n??{},f.current.params??{})&&!c(l.current)&&!c(u.current))&&(f.current={documentKey:o,params:n});const h=f.current.params,y=JSON.stringify(t),b=JSON.stringify(h),v=C.useMemo(()=>t$({...t??{},...h??{}},e),[e,y,b]),x=C.useMemo(()=>JSON.stringify([o??null,r$(t),r$(h)]),[o,y,b]),[w,S]=C.useState(null),M=w?.key===x?w:null;C.useEffect(()=>{w!==null&&w.key!==x&&S(null)},[w,x]);const T=C.useMemo(()=>n$(M?.draft??v,e),[M,v,e]),R=C.useMemo(()=>n$(M?.applied??v,e),[M,v,e]),$=C.useCallback(_=>_?.key===x?_:{key:x,draft:v,applied:v},[x,v]),P=C.useMemo(()=>XC(R,e),[R,e]);l.current===null&&(l.current=P),C.useEffect(()=>{r&&(o$(l.current??{},P)||(u.current=l.current,l.current=P,r(P)))},[P,r]);const N=C.useCallback((_,k)=>{S(I=>{const z=$(I),H=new Map(z.draft);return k===null?H.delete(_):H.set(_,k),{key:z.key,draft:H,applied:a?H:z.applied}})},[a,$]),V=C.useCallback(()=>{S(_=>({key:$(_).key,draft:s,applied:s}))},[$,s]),F=C.useCallback(()=>{S(_=>{const k=$(_);return{key:k.key,draft:k.draft,applied:k.draft}})},[$]),W=C.useMemo(()=>{if(a)return!1;if(T.size!==R.size)return!0;for(const[_,k]of T){const I=R.get(_);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,T,R]);return{draft:T,applied:R,setGiven:N,reset:V,apply:F,pending:W}}const gX=1e3;function BN(e){const t=e.split(".");return t[t.length-1]}function yX(e,t){return`run: ${e} -> {
303
- group_by: ${t}
304
- order_by: ${BN(t)} asc
305
- limit: ${gX}
306
- }`}function vX(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=bg(t.values,t.declaredTypes,n);return Object.keys(r).length>0?r:void 0}function bX(e,t,n,r,o,a){const{apiClients:s}=zr(),l=C.useMemo(()=>r.filter(h=>h.name!==void 0&&(h.control==="select"||h.control==="multiselect")&&(h.suggest?.query!==void 0||h.suggest?.source!==void 0&&h.suggest?.dimension!==void 0)),[r]),u=tY({queries:l.map(h=>{const y=vX(h,a);return{queryKey:["givenSuggest",e,t,o,n,h.name,h.suggest?.query,h.suggest?.source,h.suggest?.dimension,y===void 0?null:JSON.stringify(y)],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:async()=>{const b=h.suggest??{},v=await s.models.executeQueryModel(e,t,n,b.query!==void 0?{queryName:b.query,compactJson:!0,versionId:o,givens:y}:{query:yX(b.source,b.dimension),compactJson:!0,versionId:o,givens:y});return xX(v.data.result,b.dimension===void 0?void 0:BN(b.dimension))}}})}),f=C.useMemo(()=>{const h=new Map;return l.forEach((y,b)=>{const v=u[b]?.data;y.name&&v&&h.set(y.name,v)}),h},[l,JSON.stringify(u.map(h=>h.data))]),c=C.useMemo(()=>{const h=new Set;return l.forEach((y,b)=>{y.name&&u[b]?.isError&&h.add(y.name)}),h},[l,u.map(h=>h.isError).join("|")]);return{options:f,isLoading:u.some(h=>h.isLoading),failed:c}}function xX(e,t){if(!e)return[];let n;try{n=JSON.parse(e)}catch{throw new Error("Suggest query returned a result that is not JSON.")}if(!Array.isArray(n))throw new Error("Suggest query returned JSON that is not a list of rows.");const r=[],o=new Set;for(const a of n){if(a===null||typeof a!="object")continue;const s=a,l=Object.keys(s),u=t!==void 0&&Object.prototype.hasOwnProperty.call(s,t)?t:l[0],f=u===void 0?void 0:s[u];if(f==null)continue;const c=String(f);o.has(c)||(o.add(c),r.push(c))}return r}function ZC({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:a,autorun:s,environmentName:l,packageName:u,modelPath:f,versionId:c,documentName:h}){const y=C.useMemo(()=>new Map(e.filter(R=>R.name!==void 0).map(R=>[R.name,R.type])),[e]),b=C.useCallback(R=>{t&&o?.(R,Array.from(y.keys()))},[t,o,y]),v=mX({declaredTypes:y,startingValues:n,params:r,onParamsChange:t?b:void 0,documentKey:a,autorun:s}),{options:x,isLoading:w,failed:S}=bX(l,u,f,e,c,{values:v.applied,declaredTypes:y}),{canSelf:M,onSelf:T}=iX({declaredTypes:y,setGiven:v.setGiven,documentName:h});return{...v,declaredTypes:y,options:x,optionsLoading:w,optionsFailed:S,canSelf:M,onSelf:T,panel:{givens:e,values:v.draft,onChange:v.setGiven,onReset:v.reset,options:x,optionsLoading:w,optionsFailed:S,apply:s?void 0:{onApply:v.apply,pending:v.pending}}}}function ma({error:e,context:t}){const n=e.data?.message||"Unknown Error";return m.jsxs(m.Fragment,{children:[t&&m.jsx(jt,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),m.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}const a$=e=>e,SX=()=>{let e=a$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a$}}},UN=SX();function Ll(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(Ll(7));return e.charAt(0).toUpperCase()+e.slice(1)}function i$(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var s$={exports:{}},V1,l$;function wX(){if(l$)return V1;l$=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return V1=e,V1}var H1,c$;function CX(){if(c$)return H1;c$=1;var e=wX();function t(){}function n(){}return n.resetWarningCache=t,H1=function(){function r(s,l,u,f,c,h){if(h!==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},H1}var u$;function kX(){return u$||(u$=1,s$.exports=CX()()),s$.exports}var TX=kX();const nt=Ul(TX);function _N(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=_N(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_N(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 u=0;u<a.length;u+=1){const f=a[u];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}var d$={exports:{}},Nr={};/**
307
- * @license React
308
- * react-is.production.js
309
- *
310
- * Copyright (c) Meta Platforms, Inc. and affiliates.
311
- *
312
- * This source code is licensed under the MIT license found in the
313
- * LICENSE file in the root directory of this source tree.
314
- */var f$;function MX(){if(f$)return Nr;f$=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function v(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case n:case o:case r:case u:case f:case y:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case h: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=h,Nr.Memo=c,Nr.Portal=t,Nr.Profiler=o,Nr.StrictMode=r,Nr.Suspense=u,Nr.SuspenseList=f,Nr.isContextConsumer=function(x){return v(x)===a},Nr.isContextProvider=function(x){return v(x)===s},Nr.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Nr.isForwardRef=function(x){return v(x)===l},Nr.isFragment=function(x){return v(x)===n},Nr.isLazy=function(x){return v(x)===h},Nr.isMemo=function(x){return v(x)===c},Nr.isPortal=function(x){return v(x)===t},Nr.isProfiler=function(x){return v(x)===o},Nr.isStrictMode=function(x){return v(x)===r},Nr.isSuspense=function(x){return v(x)===u},Nr.isSuspenseList=function(x){return v(x)===f},Nr.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===u||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===c||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===b||x.getModuleId!==void 0)},Nr.typeOf=v,Nr}var p$;function EX(){return p$||(p$=1,d$.exports=MX()),d$.exports}var VN=EX();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 HN(e){if(C.isValidElement(e)||VN.isValidElementType(e)||!Hs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=HN(e[n])}),t}function ra(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])||VN.isValidElementType(t[o])?r[o]=t[o]:Hs(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Hs(e[o])?r[o]=ra(e[o],t[o],n):n.clone?r[o]=Hs(t[o])?HN(t[o]):t[o]:r[o]=t[o]}),r}function km(e,t){return t?ra(e,t,{clone:!1}):e}function h$(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 OX(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function RX(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 $X(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const t0={xs:0,sm:600,md:900,lg:1200,xl:1536},m$={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${t0[e]}px)`},PX={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:t0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function zl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||m$;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||m$;return Object.keys(t).reduce((a,s)=>{if(OX(o.keys,s)){const l=RX(r.containerQueries?r:PX,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||t0).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 DX(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function g$(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function n0(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 Qv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=n0(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],u=s.theme,f=n0(u,r)||{};return zl(s,l,c=>{let h=Qv(f,o,c);return c===h&&typeof c=="string"&&(h=Qv(f,o,`${t}${c==="default"?"":Tt(c)}`,c)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function AX(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jX={m:"margin",p:"padding"},NX={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},y$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},IX=AX(e=>{if(e.length>2)if(y$[e])e=y$[e];else return[e];const[t,n]=e.split(""),r=jX[t],o=NX[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),JC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ek=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...JC,...ek];function xg(e,t,n,r){const o=n0(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 tk(e){return xg(e,"spacing",8)}function Sg(e,t){return typeof t=="string"||t==null?t:e(t)}function LX(e,t){return n=>e.reduce((r,o)=>(r[o]=Sg(t,n),r),{})}function zX(e,t,n,r){if(!t.includes(n))return null;const o=IX(n),a=LX(o,r),s=e[n];return zl(e,s,a)}function WN(e,t){const n=tk(e.theme);return Object.keys(e).map(r=>zX(e,t,r,n)).reduce(km,{})}function ao(e){return WN(e,JC)}ao.propTypes={};ao.filterProps=JC;function io(e){return WN(e,ek)}io.propTypes={};io.filterProps=ek;function r0(...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]?km(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ni(e){return typeof e!="number"?e:`${e}px solid`}function Gi(e,t){return bo({prop:e,themeKey:"borders",transform:t})}const FX=Gi("border",Ni),BX=Gi("borderTop",Ni),UX=Gi("borderRight",Ni),_X=Gi("borderBottom",Ni),VX=Gi("borderLeft",Ni),HX=Gi("borderColor"),WX=Gi("borderTopColor"),qX=Gi("borderRightColor"),YX=Gi("borderBottomColor"),GX=Gi("borderLeftColor"),KX=Gi("outline",Ni),QX=Gi("outlineColor"),o0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=xg(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Sg(t,r)});return zl(e,e.borderRadius,n)}return null};o0.propTypes={};o0.filterProps=["borderRadius"];r0(FX,BX,UX,_X,VX,HX,WX,qX,YX,GX,o0,KX,QX);const a0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=xg(e.theme,"spacing",8),n=r=>({gap:Sg(t,r)});return zl(e,e.gap,n)}return null};a0.propTypes={};a0.filterProps=["gap"];const i0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=xg(e.theme,"spacing",8),n=r=>({columnGap:Sg(t,r)});return zl(e,e.columnGap,n)}return null};i0.propTypes={};i0.filterProps=["columnGap"];const s0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=xg(e.theme,"spacing",8),n=r=>({rowGap:Sg(t,r)});return zl(e,e.rowGap,n)}return null};s0.propTypes={};s0.filterProps=["rowGap"];const XX=bo({prop:"gridColumn"}),ZX=bo({prop:"gridRow"}),JX=bo({prop:"gridAutoFlow"}),eZ=bo({prop:"gridAutoColumns"}),tZ=bo({prop:"gridAutoRows"}),nZ=bo({prop:"gridTemplateColumns"}),rZ=bo({prop:"gridTemplateRows"}),oZ=bo({prop:"gridTemplateAreas"}),aZ=bo({prop:"gridArea"});r0(a0,i0,s0,XX,ZX,JX,eZ,tZ,nZ,rZ,oZ,aZ);function Ff(e,t){return t==="grey"?t:e}const iZ=bo({prop:"color",themeKey:"palette",transform:Ff}),sZ=bo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ff}),lZ=bo({prop:"backgroundColor",themeKey:"palette",transform:Ff});r0(iZ,sZ,lZ);function li(e){return e<=1&&e!==0?`${e*100}%`:e}const cZ=bo({prop:"width",transform:li}),nk=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||t0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:li(n)}};return zl(e,e.maxWidth,t)}return null};nk.filterProps=["maxWidth"];const uZ=bo({prop:"minWidth",transform:li}),dZ=bo({prop:"height",transform:li}),fZ=bo({prop:"maxHeight",transform:li}),pZ=bo({prop:"minHeight",transform:li});bo({prop:"size",cssProperty:"width",transform:li});bo({prop:"size",cssProperty:"height",transform:li});const hZ=bo({prop:"boxSizing"});r0(cZ,nk,uZ,dZ,fZ,pZ,hZ);const wg={border:{themeKey:"borders",transform:Ni},borderTop:{themeKey:"borders",transform:Ni},borderRight:{themeKey:"borders",transform:Ni},borderBottom:{themeKey:"borders",transform:Ni},borderLeft:{themeKey:"borders",transform:Ni},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ni},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:o0},color:{themeKey:"palette",transform:Ff},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ff},backgroundColor:{themeKey:"palette",transform:Ff},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:a0},rowGap:{style:s0},columnGap:{style:i0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:li},maxWidth:{style:nk},minWidth:{transform:li},height:{transform:li},maxHeight:{transform:li},minHeight:{transform:li},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 mZ(...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 gZ(e,t){return typeof e=="function"?e(t):e}function yZ(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:f,transform:c,style:h}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=n0(o,f)||{};return h?h(s):zl(s,r,b=>{let v=Qv(y,c,b);return b===v&&typeof b=="string"&&(v=Qv(y,c,`${n}${b==="default"?"":Tt(b)}`,b)),u===!1?v:{[u]:v}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??wg;function l(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const c=DX(o.breakpoints),h=Object.keys(c);let y=c;return Object.keys(f).forEach(b=>{const v=gZ(f[b],o);if(v!=null)if(typeof v=="object")if(s[b])y=km(y,e(b,v,o,s));else{const x=zl({theme:o},v,w=>({[b]:w}));mZ(x,v)?y[b]=t({sx:v,theme:o,nested:!0}):y=km(y,x)}else y=km(y,e(b,v,o,s))}),!a&&o.modularCssLayers?{"@layer sx":h$(o,g$(h,y))}:h$(o,g$(h,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const ep=yZ();ep.filterProps=["sx"];const vZ=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??wg;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function bZ(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=vZ(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 xZ(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function rk(e,t=0,n=1){return xZ(e,t,n)}function SZ(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(SZ(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ll(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(Ll(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const wZ=e=>{const t=Uc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},fm=(e,t)=>{try{return wZ(e)}catch{return e}};function l0(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 qN(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 u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),l0({type:l,values:u})}function rw(e){e=Uc(e);let t=e.type==="hsl"||e.type==="hsla"?Uc(qN(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 CZ(e,t){const n=rw(e),r=rw(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Xv(e,t){return e=Uc(e),t=rk(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,l0(e)}function Mu(e,t,n){try{return Xv(e,t)}catch{return e}}function c0(e,t){if(e=Uc(e),t=rk(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 l0(e)}function Or(e,t,n){try{return c0(e,t)}catch{return e}}function u0(e,t){if(e=Uc(e),t=rk(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 l0(e)}function Rr(e,t,n){try{return u0(e,t)}catch{return e}}function ow(e,t=.15){return rw(e)>.5?c0(e,t):u0(e,t)}function Xy(e,t,n){try{return ow(e,t)}catch{return e}}const qm={black:"#000",white:"#fff"},kZ={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"},Uh={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 YN(){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:qm.white,default:qm.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 GN=YN();function KN(){return{text:{primary:qm.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:qm.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 aw=KN();function v$(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=u0(e.main,o):t==="dark"&&(e.dark=c0(e.main,a)))}function b$(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 TZ(e="light"){return e==="dark"?{main:yf[200],light:yf[50],dark:yf[400]}:{main:yf[700],light:yf[400],dark:yf[800]}}function MZ(e="light"){return e==="dark"?{main:mf[200],light:mf[50],dark:mf[400]}:{main:mf[500],light:mf[300],dark:mf[700]}}function EZ(e="light"){return e==="dark"?{main:gf[500],light:gf[300],dark:gf[700]}:{main:gf[700],light:gf[400],dark:gf[800]}}function OZ(e="light"){return e==="dark"?{main:vf[400],light:vf[300],dark:vf[700]}:{main:vf[700],light:vf[500],dark:vf[900]}}function RZ(e="light"){return e==="dark"?{main:bf[400],light:bf[300],dark:bf[700]}:{main:bf[800],light:bf[500],dark:bf[900]}}function $Z(e="light"){return e==="dark"?{main:Uh[400],light:Uh[300],dark:Uh[700]}:{main:"#ed6c02",light:Uh[500],dark:Uh[900]}}function PZ(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ok(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,s=e.primary||TZ(t),l=e.secondary||MZ(t),u=e.error||EZ(t),f=e.info||OZ(t),c=e.success||RZ(t),h=e.warning||$Z(t);function y(x){return o?PZ(x):CZ(x,aw.text.primary)>=n?aw.text.primary:GN.text.primary}const b=({color:x,name:w,mainShade:S=500,lightShade:M=300,darkShade:T=700})=>{if(x={...x},!x.main&&x[S]&&(x.main=x[S]),!x.hasOwnProperty("main"))throw new Error(Ll(11,w?` (${w})`:"",S));if(typeof x.main!="string")throw new Error(Ll(12,w?` (${w})`:"",JSON.stringify(x.main)));return o?(b$(o,x,"light",M,r),b$(o,x,"dark",T,r)):(v$(x,"light",M,r),v$(x,"dark",T,r)),x.contrastText||(x.contrastText=y(x.main)),x};let v;return t==="light"?v=YN():t==="dark"&&(v=KN()),ra({common:{...qm},mode:t,primary:b({color:s,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:h,name:"warning"}),info:b({color:f,name:"info"}),success:b({color:c,name:"success"}),grey:kZ,contrastThreshold:n,getContrastText:y,augmentColor:b,tonalOffset:r,...v},a)}function DZ(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 AZ={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 jZ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var NZ=/[A-Z]|^ms/g,IZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,QN=function(e){return e.charCodeAt(1)===45},x$=function(e){return e!=null&&typeof e!="boolean"},W1=jZ(function(e){return QN(e)?e:e.replace(NZ,"-$&").toLowerCase()}),S$=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(IZ,function(n,r,o){return Pc={name:r,styles:o,next:Pc},r})}return AZ[e]!==1&&!QN(e)&&typeof t=="number"&&t!==0?t+"px":t};function Zv(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 LZ(e,t,n)}}var u=n;return u}function LZ(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Zv(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;x$(l)&&(r+=W1(a)+":"+S$(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)x$(s[u])&&(r+=W1(a)+":"+S$(a,s[u])+";");else{var f=Zv(e,t,s);switch(a){case"animation":case"animationName":{r+=W1(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var w$=/label:\s*([^\s;{]+)\s*(;|$)/g,Pc;function zZ(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+=Zv(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Zv(n,t,e[l]),r){var u=a;o+=u[l]}w$.lastIndex=0;for(var f="",c;(c=w$.exec(o))!==null;)f+="-"+c[1];var h=DZ(o)+f;return{name:h,styles:o,next:Pc}}function FZ(e,t){return Iv(e,t)}function BZ(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const C$=[];function Gu(e){return C$[0]=e,zZ(C$)}const Po=typeof window<"u"?C.useLayoutEffect:C.useEffect;function UZ(e){return Object.keys(e).length===0}function XN(e=null){const t=C.useContext(cp);return!t||UZ(t)?e:t}const _Z=C.createContext(),gs=()=>C.useContext(_Z)??!1;function Ym(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const f=u;r[a][f]=Ym(s[f],l[f],n)}}}else a==="className"&&n&&t.className?r.className=Nt(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 VZ=C.createContext(void 0);function HZ(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?Ym(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ym(o,r,t.components.mergeClassNameAndStyle):r}function WZ({props:e,name:t}){const n=C.useContext(VZ);return HZ({props:e,name:t,theme:{components:n}})}let k$=0;function qZ(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(k$+=1,n(`mui-${k$}`))},[t]),r}const YZ={...Dm},T$=YZ.useId;function ys(e){if(T$!==void 0){const t=T$();return e??t}return qZ(e)}const GZ=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 KZ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=GZ(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,b){const v=s.indexOf(b);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:b)-r/100}${n})`}function c(y){return s.indexOf(y)+1<s.length?f(y,s[s.indexOf(y)+1]):l(y)}function h(y){const b=s.indexOf(y);return b===0?l(s[1]):b===s.length-1?u(s[b]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:u,between:f,only:c,not:h,unit:n,...o}}const QZ={borderRadius:4};function XZ(e=8,t=tk({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 ZZ(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 ak(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=KZ(n),u=XZ(o);let f=ra({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...QZ,...a}},s);return f=$X(f),f.applyStyles=ZZ,f=t.reduce((c,h)=>ra(c,h),f),f.unstable_sxConfig={...wg,...s?.unstable_sxConfig},f.unstable_sx=function(c){return ep({sx:c,theme:this})},f}const JZ=ak();function eJ(e=JZ){return XN(e)}const M$=(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])})},tJ=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...s,l]:s):t([...a,l],u,s))})}r(e)},nJ=(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 q1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return tJ(e,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const c=`--${n?`${n}-`:""}${l.join("-")}`,h=nJ(l,u);Object.assign(o,{[c]:h}),M$(a,l,`var(${c})`,f),M$(s,l,`var(${c}, ${h})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function rJ(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:u="light",...f}=e,{vars:c,css:h,varsWithDefaults:y}=q1(f,t);let b=y;const v={},{[u]:x,...w}=s;if(Object.entries(w||{}).forEach(([M,T])=>{const{vars:R,css:$,varsWithDefaults:P}=q1(T,t);b=ra(b,P),v[M]={css:$,vars:R}}),x){const{css:M,vars:T,varsWithDefaults:R}=q1(x,t);b=ra(b,R),v[u]={css:M,vars:T}}function S(M,T){let R=o;if(o==="class"&&(R=".%s"),o==="data"&&(R="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(R=`[${o}="%s"]`),M){if(R==="media")return e.defaultColorScheme===M?":root":{[`@media (prefers-color-scheme: ${s[M]?.palette?.mode||M})`]:{":root":T}};if(R)return e.defaultColorScheme===M?`:root, ${R.replace("%s",String(M))}`:R.replace("%s",String(M))}return":root"}return{vars:b,generateThemeVars:()=>{let M={...c};return Object.entries(v).forEach(([,{vars:T}])=>{M=ra(M,T)}),M},generateStyleSheets:()=>{const M=[],T=e.defaultColorScheme||"light";function R(N,V){Object.keys(V).length&&M.push(typeof N=="string"?{[N]:{...V}}:N)}R(n(void 0,{...h}),h);const{[T]:$,...P}=v;if($){const{css:N}=$,V=s[T]?.palette?.mode,F=!r&&V?{colorScheme:V,...N}:{...N};R(n(T,{...F}),F)}return Object.entries(P).forEach(([N,{css:V}])=>{const F=s[N]?.palette?.mode,W=!r&&F?{colorScheme:F,...V}:{...V};R(n(N,{...W}),W)}),a&&M.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)"}}),M}}}function oJ(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 aJ(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 iJ={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=iJ[t];return r?`${n}-${r}`:`${UN.generate(e)}-${t}`}function sJ(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function lJ(e){return Math.round(e*1e5)/1e5}const E$={textTransform:"uppercase"},O$='"Roboto", "Helvetica", "Arial", sans-serif';function cJ(e,t){const{fontFamily:n=O$,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:c,...h}=typeof t=="function"?t(e):t,y=r/14,b=c||(w=>`${w/u*y}rem`),v=(w,S,M,T,R)=>({fontFamily:n,fontWeight:w,fontSize:b(S),lineHeight:M,...n===O$?{letterSpacing:`${lJ(T/S)}em`}:{},...R,...f}),x={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,E$),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,E$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ra({htmlFontSize:u,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},h,{clone:!1})}const uJ=.2,dJ=.14,fJ=.12;function Kr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${uJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${dJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${fJ})`].join(",")}const pJ=["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)],hJ={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)"},mJ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R$(e){return`${Math.round(e)}ms`}function gJ(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function yJ(e){const t={...hJ,...e.easing},n={...mJ,...e.duration};return{getAutoHeightDuration:gJ,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...u}=o;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:R$(a)} ${s} ${typeof l=="string"?l:R$(l)}`).join(",")},...e,easing:t,duration:n}}const vJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function bJ(e){return Hs(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ZN(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];!bJ(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';
315
-
316
- const theme = ${JSON.stringify(t,null,2)};
317
-
318
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
319
- theme.transitions = createTransitions(theme.transitions || {});
320
-
321
- export default theme;`}function $$(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const xJ=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 SJ(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})`:Xv(t,xJ(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${$$(n)})`:u0(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${$$(n)})`:c0(t,n)}})}function iw(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:u,colorSpace:f,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Ll(20));const h=ok({...a,colorSpace:f}),y=ak(e);let b=ra(y,{mixins:sJ(y.breakpoints,r),palette:h,shadows:pJ.slice(),typography:cJ(h,l),transitions:yJ(s),zIndex:{...vJ}});return b=ra(b,c),b=t.reduce((v,x)=>ra(v,x),b),b.unstable_sxConfig={...wg,...c?.unstable_sxConfig},b.unstable_sx=function(v){return ep({sx:v,theme:this})},b.toRuntimeSource=ZN,SJ(b),b}function sw(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 wJ=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=sw(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function JN(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function eI(e){return e==="dark"?wJ:[]}function CJ(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=ok({...t,colorSpace:o});return{palette:s,opacity:{...JN(s.mode),...n},overlays:r||eI(s.mode),...a}}function kJ(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 TJ=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],MJ=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 TJ(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 EJ(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function lt(e,t,n){!e[t]&&n&&(e[t]=n)}function pm(e){return typeof e!="string"||!e.startsWith("hsl")?e:qN(e)}function Rl(e,t){`${t}Channel`in e||(e[`${t}Channel`]=fm(pm(e[t])))}function OJ(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{}},RJ=(e="mui")=>IA(e);function Y1(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=CJ({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=iw({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...JN(a),...n?.opacity},overlays:n?.overlays||eI(a)},l}function $J(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=kJ,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...c}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),b=RJ(a),{[y]:v,light:x,dark:w,...S}=n,M={...S};let T=v;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(Ll(21,y));let R;s&&(R="oklch");const $=Y1(R,M,T,c,y);x&&!M.light&&Y1(R,M,x,void 0,"light"),w&&!M.dark&&Y1(R,M,w,void 0,"dark");let P={defaultColorScheme:y,...$,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:b,colorSchemes:M,font:{...oJ($.typography),...$.font},spacing:OJ(c.spacing)};Object.keys(P.colorSchemes).forEach(_=>{const k=P.colorSchemes[_].palette,I=H=>{const A=H.split("-"),Z=A[1],K=A[2];return b(H,k[Z][K])};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 z(H,A,Z){if(R){let K;return H===Mu&&(K=`transparent ${((1-Z)*100).toFixed(0)}%`),H===Or&&(K=`#000 ${(Z*100).toFixed(0)}%`),H===Rr&&(K=`#fff ${(Z*100).toFixed(0)}%`),`color-mix(in ${R}, ${A}, ${K})`}return H(A,Z)}if(EJ(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){lt(k.Alert,"errorColor",z(Or,k.error.light,.6)),lt(k.Alert,"infoColor",z(Or,k.info.light,.6)),lt(k.Alert,"successColor",z(Or,k.success.light,.6)),lt(k.Alert,"warningColor",z(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",z(Rr,k.error.light,.9)),lt(k.Alert,"infoStandardBg",z(Rr,k.info.light,.9)),lt(k.Alert,"successStandardBg",z(Rr,k.success.light,.9)),lt(k.Alert,"warningStandardBg",z(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",z(Rr,k.primary.main,.62)),lt(k.LinearProgress,"secondaryBg",z(Rr,k.secondary.main,.62)),lt(k.LinearProgress,"errorBg",z(Rr,k.error.main,.62)),lt(k.LinearProgress,"infoBg",z(Rr,k.info.main,.62)),lt(k.LinearProgress,"successBg",z(Rr,k.success.main,.62)),lt(k.LinearProgress,"warningBg",z(Rr,k.warning.main,.62)),lt(k.Skeleton,"bg",R?z(Mu,k.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),lt(k.Slider,"primaryTrack",z(Rr,k.primary.main,.62)),lt(k.Slider,"secondaryTrack",z(Rr,k.secondary.main,.62)),lt(k.Slider,"errorTrack",z(Rr,k.error.main,.62)),lt(k.Slider,"infoTrack",z(Rr,k.info.main,.62)),lt(k.Slider,"successTrack",z(Rr,k.success.main,.62)),lt(k.Slider,"warningTrack",z(Rr,k.warning.main,.62));const H=R?z(Or,k.background.default,.6825):Xy(k.background.default,.8);lt(k.SnackbarContent,"bg",H),lt(k.SnackbarContent,"color",Ls(()=>R?aw.text.primary:k.getContrastText(H))),lt(k.SpeedDialAction,"fabHoverBg",Xy(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",z(Rr,k.primary.main,.62)),lt(k.Switch,"secondaryDisabledColor",z(Rr,k.secondary.main,.62)),lt(k.Switch,"errorDisabledColor",z(Rr,k.error.main,.62)),lt(k.Switch,"infoDisabledColor",z(Rr,k.info.main,.62)),lt(k.Switch,"successDisabledColor",z(Rr,k.success.main,.62)),lt(k.Switch,"warningDisabledColor",z(Rr,k.warning.main,.62)),lt(k.TableCell,"border",z(Rr,z(Mu,k.divider,1),.88)),lt(k.Tooltip,"bg",z(Mu,k.grey[700],.92))}if(k.mode==="dark"){lt(k.Alert,"errorColor",z(Rr,k.error.light,.6)),lt(k.Alert,"infoColor",z(Rr,k.info.light,.6)),lt(k.Alert,"successColor",z(Rr,k.success.light,.6)),lt(k.Alert,"warningColor",z(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",z(Or,k.error.light,.9)),lt(k.Alert,"infoStandardBg",z(Or,k.info.light,.9)),lt(k.Alert,"successStandardBg",z(Or,k.success.light,.9)),lt(k.Alert,"warningStandardBg",z(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",z(Or,k.primary.main,.5)),lt(k.LinearProgress,"secondaryBg",z(Or,k.secondary.main,.5)),lt(k.LinearProgress,"errorBg",z(Or,k.error.main,.5)),lt(k.LinearProgress,"infoBg",z(Or,k.info.main,.5)),lt(k.LinearProgress,"successBg",z(Or,k.success.main,.5)),lt(k.LinearProgress,"warningBg",z(Or,k.warning.main,.5)),lt(k.Skeleton,"bg",R?z(Mu,k.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),lt(k.Slider,"primaryTrack",z(Or,k.primary.main,.5)),lt(k.Slider,"secondaryTrack",z(Or,k.secondary.main,.5)),lt(k.Slider,"errorTrack",z(Or,k.error.main,.5)),lt(k.Slider,"infoTrack",z(Or,k.info.main,.5)),lt(k.Slider,"successTrack",z(Or,k.success.main,.5)),lt(k.Slider,"warningTrack",z(Or,k.warning.main,.5));const H=R?z(Rr,k.background.default,.985):Xy(k.background.default,.98);lt(k.SnackbarContent,"bg",H),lt(k.SnackbarContent,"color",Ls(()=>R?GN.text.primary:k.getContrastText(H))),lt(k.SpeedDialAction,"fabHoverBg",Xy(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",z(Or,k.primary.main,.55)),lt(k.Switch,"secondaryDisabledColor",z(Or,k.secondary.main,.55)),lt(k.Switch,"errorDisabledColor",z(Or,k.error.main,.55)),lt(k.Switch,"infoDisabledColor",z(Or,k.info.main,.55)),lt(k.Switch,"successDisabledColor",z(Or,k.success.main,.55)),lt(k.Switch,"warningDisabledColor",z(Or,k.warning.main,.55)),lt(k.TableCell,"border",z(Or,z(Mu,k.divider,1),.68)),lt(k.Tooltip,"bg",z(Mu,k.grey[700],.92))}Rl(k.background,"default"),Rl(k.background,"paper"),Rl(k.common,"background"),Rl(k.common,"onBackground"),Rl(k,"divider"),Object.keys(k).forEach(H=>{const A=k[H];H!=="tonalOffset"&&A&&typeof A=="object"&&(A.main&&lt(k[H],"mainChannel",fm(pm(A.main))),A.light&&lt(k[H],"lightChannel",fm(pm(A.light))),A.dark&&lt(k[H],"darkChannel",fm(pm(A.dark))),A.contrastText&&lt(k[H],"contrastTextChannel",fm(pm(A.contrastText))),H==="text"&&(Rl(k[H],"primary"),Rl(k[H],"secondary")),H==="action"&&(A.active&&Rl(k[H],"active"),A.selected&&Rl(k[H],"selected")))})}),P=t.reduce((_,k)=>ra(_,k),P);const N={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:MJ(P),enableContrastVars:s},{vars:V,generateThemeVars:F,generateStyleSheets:W}=rJ(P,N);return P.vars=V,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([_,k])=>{P[_]=k}),P.generateThemeVars=F,P.generateStyleSheets=W,P.generateSpacing=function(){return Jw(c.spacing,tk(this))},P.getColorSchemeSelector=aJ(u),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...wg,...c?.unstable_sxConfig},P.unstable_sx=function(_){return ep({sx:_,theme:this})},P.toRuntimeSource=ZN,P}function P$(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ok({...n===!0?{}:n.palette,mode:t})})}function tI(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",u=o?.[l],f={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return iw(e,...t);let c=n;"palette"in e||f[l]&&(f[l]!==!0?c=f[l].palette:l==="dark"&&(c={mode:"dark"}));const h=iw({...e,palette:c},...t);return h.defaultColorScheme=l,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},P$(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},P$(h,"light",f.light)),h}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),$J({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const d0=tI(),yp="$$material";function fd(){const e=dp(d0);return e[yp]||e}function PJ(e){return m.jsx(nC,{...e,defaultTheme:d0,themeId:yp})}function DJ(e){const{variants:t,...n}=e,r={variants:t,style:Gu(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Gu(o.style))}),r}const AJ=ak();function G1(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 jJ(e){return e?(t,n)=>n[e]:null}function NJ(e,t,n){e.theme=LJ(e.theme)?n:e.theme[t]||e.theme}function Mv(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Mv(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(Gu(s),n):s}return nI(e,r.variants,[o],n)}return r?.isProcessed?n?Vu(Gu(r.style),n):r.style:n?Vu(Gu(r),n):r}function nI(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(Gu(s.style(o)),r):s.style(o))):n.push(r?Vu(Gu(s.style),r):s.style)}return n}function IJ(e={}){const{themeId:t,defaultTheme:n=AJ,rootShouldForwardProp:r=G1,slotShouldForwardProp:o=G1}=e;function a(s){NJ(s,t,n)}return(s,l={})=>{BZ(s,$=>$.filter(P=>P!==ep));const{name:u,slot:f,skipVariantsResolver:c,skipSx:h,overridesResolver:y=jJ(FJ(f)),...b}=l,v=u&&u.startsWith("Mui")||f?"components":"custom",x=c!==void 0?c:f&&f!=="Root"&&f!=="root"||!1,w=h||!1;let S=G1;f==="Root"||f==="root"?S=r:f?S=o:zJ(s)&&(S=void 0);const M=FZ(s,{shouldForwardProp:S,label:void 0,...b}),T=$=>{if($.__emotion_real===$)return $;if(typeof $=="function")return function(P){return Mv(P,$,P.theme.modularCssLayers?v:void 0)};if(Hs($)){const P=DJ($);return function(N){return P.variants?Mv(N,P,N.theme.modularCssLayers?v:void 0):N.theme.modularCssLayers?Vu(P.style,v):P.style}}return $},R=(...$)=>{const P=[],N=$.map(T),V=[];if(P.push(a),u&&y&&V.push(function(_){const k=_.theme.components?.[u]?.styleOverrides;if(!k)return null;const I={};for(const z in k)I[z]=Mv(_,k[z],_.theme.modularCssLayers?"theme":void 0);return y(_,I)}),u&&!x&&V.push(function(_){const k=_.theme?.components?.[u]?.variants;return k?nI(_,k,[],_.theme.modularCssLayers?"theme":void 0):null}),w||V.push(ep),Array.isArray(N[0])){const _=N.shift(),k=new Array(P.length).fill(""),I=new Array(V.length).fill("");let z;z=[...k,..._,...I],z.raw=[...k,..._.raw,...I],P.unshift(z)}const F=[...P,...N,...V],W=M(...F);return s.muiName&&(W.muiName=s.muiName),W};return M.withConfig&&(R.withConfig=M.withConfig),R}}function LJ(e){for(const t in e)return!1;return!0}function zJ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function FJ(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function rI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fa=e=>rI(e)&&e!=="classes",Qe=IJ({themeId:yp,defaultTheme:d0,rootShouldForwardProp:Fa});function BJ(e){return function(t){return m.jsx(PJ,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}function UJ(){return bZ}const Vn=jA;function Hn(e){return WZ(e)}function Kt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=on(e,o,n)}),r}function _J(e){return on("MuiSvgIcon",e)}Kt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const VJ=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Tt(t)}`,`fontSize${Tt(n)}`]};return tn(o,_J,r)},HJ=Qe("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}}]}))),Jv=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:u,inheritViewBox:f=!1,titleAccess:c,viewBox:h="0 0 24 24",...y}=n,b=C.isValidElement(r)&&r.type==="svg",v={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:h,hasSvgAsChild:b},x={};f||(x.viewBox=h);const w=VJ(v);return m.jsxs(HJ,{as:s,className:Nt(w.root,o),focusable:"false",color:u,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:t,...x,...y,...b&&r.props,ownerState:v,children:[b?r.props.children:r,c?m.jsx("title",{children:c}):null]})});Jv.muiName="SvgIcon";function sr(e,t){function n(r,o){return m.jsx(Jv,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=Jv.muiName,C.memo(C.forwardRef(n))}function oI(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 Ev(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 Fl(e){return $o(e).defaultView||window}function lw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ui(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=C.useRef(t!==void 0),[s,l]=C.useState(n),u=a?t:s,f=C.useCallback(c=>{a||l(c)},[]);return[u,f]}function Lt(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 WJ(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function aI(e,t){if(!e)return t;function n(s,l){const u={};return Object.keys(l).forEach(f=>{WJ(f,l[f])&&typeof s[f]=="function"&&(u[f]=(...c)=>{s[f](...c),l[f](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...l}):e,f=Nt(s?.className,l?.className,u?.className),c=n(u,l);return{...l,...u,...c,...!!f&&{className:f},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=Nt(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 ik=sr(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));function Cg({label:e,onClick:t,disabled:n}){return m.jsx(Go,{variant:"contained",color:"primary",startIcon:m.jsx(ik,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function kg({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:a,ariaHasPopup:s}){const l=m.jsx("span",{children:m.jsx(Go,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":a,"aria-haspopup":s,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?m.jsx(_i,{title:o,children:l}):l}const tp=sr(m.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 aa({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:a=!1,actions:s,children:l}){const u=C.useId();return m.jsxs(Kf,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":u,children:[m.jsxs(Xf,{id:u,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&&m.jsx(Qr,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:m.jsx(tp,{fontSize:"small"})})]}),m.jsxs(Qf,{sx:{px:3,pb:1,pt:1},children:[r&&m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),m.jsx(fr,{sx:{gap:2,pt:r?0:1},children:l})]}),s&&m.jsx(bj,{sx:{px:3,pb:3,pt:2,gap:1},children:s})]})}function ome({left:e,children:t}){const{theme:n}=ol();return m.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:[m.jsx(fr,{direction:"row",sx:{alignItems:"center",gap:1,minWidth:0,overflow:"hidden"},children:e}),m.jsx(fr,{direction:"row",sx:{alignItems:"center",gap:.5,flexShrink:0,"& .MuiButton-root":{whiteSpace:"nowrap"}},children:t})]})}const qJ=sr(m.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 YJ(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function sk(e,{enabled:t=!0}={}){const{apiClients:n}=zr();return co({queryKey:YJ(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,...mK})}function iI({onNavigate:e,onSelf:t,selfLabel:n="Filter this view",canSelf:r,onRows:o}){const[a,s]=C.useState(null),l=C.useCallback((v,x)=>v.filter(w=>w===_1?t!==void 0&&(r?.(x)??!0):e!==void 0),[e,t,r]),u=C.useCallback((v,x,w)=>{if(x===_1){t?.(v.given,v.rawValue);return}e?.({dashboard:x,givens:{[v.given]:v.value}},w)},[e,t]),f=C.useCallback(v=>{if(!(!o||v.isHeader||!v.field)&&(v.field.wasDimension?.()??!1)&&e0(v.value)!==void 0)return{field:v.field.name,rawValue:v.value,label:IN(v.value),...v.context===void 0?{}:{context:v.context}}},[o]),c=C.useCallback(v=>{const x=oX(v),w=f(v),S=x?l(x.to,x.given):[];if(S.length===0){w&&o?.(w);return}if(S.length===1&&x){u(x,S[0],v.event);return}s({...x?{intent:x}:{},destinations:S,event:v.event,top:v.event?.clientY??0,left:v.event?.clientX??0,label:x?.label??w?.label??""})},[u,l,o,f]),h=C.useCallback(v=>l(AN(v),NN(v)).length>0||o!==void 0&&(v.wasDimension?.()??!1),[l,o]),y=C.useMemo(()=>({onClick:c,canDrill:h}),[c,h]),b=C.useCallback(()=>s(null),[]);return{drill:y,drillMenu:m.jsxs(cd,{open:a!==null,onClose:b,anchorReference:"anchorPosition",anchorPosition:{top:a?.top??0,left:a?.left??0},children:[m.jsx(Vv,{sx:{lineHeight:"32px"},children:a?`${a.label} →`:""}),Array.from(new Set(a?.destinations??[])).map(v=>m.jsx(ha,{onClick:()=>{b(),a?.intent&&u(a.intent,v,a.event)},children:v===_1?n:jN(v)},v))]})}}function oa({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:s="body2"}){const l=m.jsxs(Ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[m.jsx(cg,{size:t,color:n,thickness:r}),e&&m.jsx(jt,{variant:s,color:"text.secondary",children:e})]});return o?m.jsx(Ht,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:l}):l}const sI=sr(m.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 Bf({sx:e,...t}){const{theme:n}=ol();return m.jsx(Qr,{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 GJ=new Set(["warn","error"]);function KJ(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!GJ.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(`
322
- `)}}const QJ=new Set(["bar","line","chart","scatter_chart"]),XJ=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function ame(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":QJ.has(e)?"container":"content"}function ime(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&XJ.has(e)}function sme(e){return e==="dashboard"?3:2}function ZJ(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function lme(e,t){const n=ZJ(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const JJ=400,eee=700,tee=600,nee=800,ree=400,D$=2e3;function oee(e){return e===void 0?D$:Math.min(e,D$)}function aee({sizing:e,contentHeight:t,maxHeight:n}){return e==="container"?n??ree:t===void 0||t<=0?oee(n):n===void 0?t:Math.min(n,t)}const iee=C.lazy(()=>Lo(()=>import("./RenderedResult-6UKAHaAj.es-DwPcKrEj.js"),[]).then(e=>e.c));function lk({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o}){const a=C.useRef(null),[s,l]=C.useState(void 0),[u,f]=C.useState(void 0),[c,h]=C.useState(!1),y=KJ(r);if(!e)return null;if(n>0&&e.length>n&&!c)return m.jsxs(Ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[m.jsx(zQ,{sx:{fontSize:48,color:"#757575"}}),m.jsx(jt,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),m.jsx(Go,{variant:"contained",color:"primary",onClick:()=>h(!0),children:"Proceed"})]});const b=m.jsx(oa,{text:"Loading...",centered:!0,size:32}),v=aee({sizing:s,contentHeight:u,maxHeight:t});return m.jsxs(Ht,{ref:a,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden"},children:[e&&m.jsx(C.Suspense,{fallback:b,children:m.jsx(iee,{result:e,height:v,onSizeChange:f,onSizing:l,drill:o})}),y&&m.jsx(Ht,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:m.jsx(_i,{title:y.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:m.jsx(Bf,{"aria-label":"Render tag warnings",children:m.jsx(sI,{fontSize:"small",color:y.severity==="error"?"error":"warning"})})})})]})}function ck({state:e,context:t,loadingText:n="Running…",maxHeight:r,maxResultSize:o,drill:a,transform:s}){const{data:l,isSuccess:u,isError:f,error:c}=e,h=l?.data.result,y=C.useMemo(()=>h!==void 0&&s?s(h):h,[h,s]);return f?m.jsx(Ht,{sx:{p:2},children:m.jsx(ma,{context:t,error:c})}):u?m.jsx(lk,{result:y,maxHeight:r,maxResultSize:o,renderLogs:l.data.renderLogs,drill:a}):m.jsx(oa,{text:n})}const see=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"]),lee={value:`# big_value
323
- `},cee=/^#\(malloy\)[\s\S]*\bcalculation\b/;function uee(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&cee.test(t.value.trim())):!1}function dee(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(uee))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 fee(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(see.has(o))return!0}return!1}function pee(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!dee(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return fee(r)?e:JSON.stringify({...t,annotations:[lee,...n]})}const lI=20,hee={radius:"8px",padding:`${lI}px`};function cme(e,t=hee){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,"--publisher-dashboard-card-border":e.cardBorder}}function mee({borderless:e=!1,sx:t,children:n}){const{theme:r}=ol();return m.jsx(La,{elevation:0,sx:[{border:e?"none":r.cardBorder,borderRadius:e?0:1,background:e?"none":r.tile,overflow:"hidden",minWidth:0,minHeight:120,p:e?"12px 0":`${lI}px`},...Array.isArray(t)?t:[t]],children:n})}function gee({title:e,subtitle:t,tooltip:n,action:r}){const{theme:o}=ol();return m.jsxs(Ht,{sx:{pb:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[m.jsxs(Ht,{sx:{minWidth:0,flex:1},children:[m.jsx(jt,{variant:"subtitle2",sx:{fontWeight:500,color:o.tileTitle,fontFamily:o.font.family},title:n,children:e}),t!==void 0&&m.jsx(jt,{variant:"caption",sx:{display:"block",color:o.tileTitle,fontFamily:o.font.family,opacity:.8},children:t})]}),r]})}function A$(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?jN(t):e}function j$({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:a,label:s,subtitle:l,borderless:u,givens:f,declaredTypes:c,givenNames:h,height:y,maxResultSize:b,drill:v,onExplore:x}){const{theme:w}=ol(),S=sk({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:a!==void 0?`run: ${a}`:void 0,givens:bg(f,c,h)});return m.jsxs(mee,{borderless:u,sx:{"& .publisher-tile-explore":{opacity:0,transition:"opacity 120ms"},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[a!==void 0&&m.jsx(gee,{title:s??A$(a),subtitle:l,tooltip:a,action:x&&m.jsx(_i,{title:"Explore from here",children:m.jsx(Qr,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${s??A$(a)}`,onClick:x,sx:{mt:-.5,mr:-.5,color:w.tileTitle},children:m.jsx(qJ,{fontSize:"small"})})})}),m.jsx(ck,{state:S,context:a??o??r,maxHeight:y,maxResultSize:b,drill:v,transform:a!==void 0?pee:void 0})]})}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},f0=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},yee=/^(https?|mailto|tel):/i,vee=/^[a-z][a-z0-9+.-]*:/i;function bee({href:e,title:t,children:n,context:r}){const o=!!e&&vee.test(e),a=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!a||!r){const h=o&&!yee.test(e??"");return m.jsx("a",{href:h?void 0:e,title:t,...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:n})}const s=r.sourcePath&&r.sourcePath.includes("/")?r.sourcePath.slice(0,r.sourcePath.lastIndexOf("/")+1):"",l=new URL(e,`https://malloy.invalid/${s}`),u=l.pathname.slice(1)+l.search+l.hash,f=`/${r.environmentName}/${r.packageName}/${u}`,{onNavigate:c}=r;return m.jsx("a",{href:f,title:t,onClick:c?h=>{h.preventDefault(),c(f,h)}:void 0,children:n})}const xee={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 Tm({children:e,variant:t="caption",links:n,sx:r}){return m.jsx(Ht,{sx:[xee[t],...Array.isArray(r)?r:[r]],children:m.jsx(LQ,{options:{overrides:{a:{component:bee,props:{context:n}}}},children:e})})}const N$={};function cI(e,t){const n=C.useRef(N$);return n.current===N$&&(n.current=e(t)),n}const See=[];function wee(e){C.useEffect(e,See)}class uk{static create(){return new uk}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 dk(){const e=cI(uk.create).current;return wee(e.disposeEffect),e}function eb(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 vp(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}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)}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 cw(e,t){return cw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},cw(e,t)}function fk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cw(e,t)}function Cee(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function kee(e,t){e.classList?e.classList.add(t):Cee(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function I$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Tee(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=I$(e.className,t):e.setAttribute("class",I$(e.className&&e.className.baseVal||"",t))}const L$={disabled:!1},tb=an.createContext(null);var uI=function(e){return e.scrollTop},hm="unmounted",Au="exited",ju="entering",Rf="entered",uw="exiting",vs=(function(e){fk(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=Au,a.appearStatus=ju):u=Rf:r.unmountOnExit||r.mountOnEnter?u=hm:u=Au,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===hm?{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!==Rf&&(o=ju):(a===ju||a===Rf)&&(o=uw)}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&&uI(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Au&&this.setState({status:hm})},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],u=l[0],f=l[1],c=this.getTimeouts(),h=s?c.appear:c.enter;if(!r&&!a||L$.disabled){this.safeSetState({status:Rf},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:ju},function(){o.props.onEntering(u,f),o.onTransitionEnd(h,function(){o.safeSetState({status:Rf},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Rc.findDOMNode(this);if(!o||L$.disabled){this.safeSetState({status:Au},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:uw},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],u=l[0],f=l[1];this.props.addEndListener(u,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===hm)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 an.createElement(tb.Provider,{value:null},typeof a=="function"?a(r,s):an.cloneElement(an.Children.only(a),s))},t})(an.Component);vs.contextType=tb;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=hm;vs.EXITED=Au;vs.ENTERING=ju;vs.ENTERED=Rf;vs.EXITING=uw;var Mee=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return kee(e,n)})},K1=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Tee(e,n)})},pk=(function(e){fk(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,u){var f=r.resolveArguments(l,u),c=f[0],h=f[1];r.removeClasses(c,"exit"),r.addClass(c,h?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,u)},r.onEntering=function(l,u){var f=r.resolveArguments(l,u),c=f[0],h=f[1],y=h?"appear":"enter";r.addClass(c,y,"active"),r.props.onEntering&&r.props.onEntering(l,u)},r.onEntered=function(l,u){var f=r.resolveArguments(l,u),c=f[0],h=f[1],y=h?"appear":"enter";r.removeClasses(c,y),r.addClass(c,y,"done"),r.props.onEntered&&r.props.onEntered(l,u)},r.onExit=function(l){var u=r.resolveArguments(l),f=u[0];r.removeClasses(f,"appear"),r.removeClasses(f,"enter"),r.addClass(f,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var u=r.resolveArguments(l),f=u[0];r.addClass(f,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var u=r.resolveArguments(l),f=u[0];r.removeClasses(f,"exit"),r.addClass(f,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,u){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,u]},r.getClassNames=function(l){var u=r.props.classNames,f=typeof u=="string",c=f&&u?u+"-":"",h=f?""+c+l:u[l],y=f?h+"-active":u[l+"Active"],b=f?h+"-done":u[l+"Done"];return{baseClassName:h,activeClassName:y,doneClassName:b}},r}var n=t.prototype;return n.addClass=function(r,o,a){var s=this.getClassNames(o)[a+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;o==="appear"&&a==="done"&&u&&(s+=" "+u),a==="active"&&r&&uI(r),s&&(this.appliedClasses[o][a]=s,Mee(r,s))},n.removeClasses=function(r,o){var a=this.appliedClasses[o],s=a.base,l=a.active,u=a.done;this.appliedClasses[o]={},s&&K1(r,s),l&&K1(r,l),u&&K1(r,u)},n.render=function(){var r=this.props;r.classNames;var o=Fn(r,["classNames"]);return an.createElement(vs,De({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(an.Component);pk.defaultProps={classNames:""};pk.propTypes={};function Eee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hk(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 Oee(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var f=r[u][s];l[r[u][s]]=n(f)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Hu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Ree(e,t){return hk(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 $ee(e,t,n){var r=hk(e.children),o=Oee(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,u=a in r,f=t[a],c=C.isValidElement(f)&&!f.props.in;u&&(!l||c)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Hu(s,"exit",e),enter:Hu(s,"enter",e)}):!u&&l&&!c?o[a]=C.cloneElement(s,{in:!1}):u&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:Hu(s,"exit",e),enter:Hu(s,"enter",e)}))}}),o}var Pee=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Dee={component:"div",childFactory:function(e){return e}},Tg=(function(e){fk(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(Eee(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?Ree(r,s):$ee(r,a,s),firstRender:!1}},n.handleExited=function(r,o){var a=hk(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,u=Pee(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?an.createElement(tb.Provider,{value:l},u):an.createElement(tb.Provider,{value:l},an.createElement(o,s,u))},t})(an.Component);Tg.propTypes={};Tg.defaultProps=Dee;const dI=e=>e.scrollTop;function nb(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 dw(e){return`scale(${e}, ${e**2})`}const Aee={entering:{opacity:1,transform:dw(1)},entered:{opacity:1,transform:"none"}},Q1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gm=C.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:f,onExit:c,onExited:h,onExiting:y,style:b,timeout:v="auto",TransitionComponent:x=vs,...w}=e,S=dk(),M=C.useRef(),T=fd(),R=C.useRef(null),$=mr(R,vp(o),t),P=I=>z=>{if(I){const H=R.current;z===void 0?I(H):I(H,z)}},N=P(f),V=P((I,z)=>{dI(I);const{duration:H,delay:A,easing:Z}=nb({style:b,timeout:v,easing:a},{mode:"enter"});let K;v==="auto"?(K=T.transitions.getAutoHeightDuration(I.clientHeight),M.current=K):K=H,I.style.transition=[T.transitions.create("opacity",{duration:K,delay:A}),T.transitions.create("transform",{duration:Q1?K:K*.666,delay:A,easing:Z})].join(","),l&&l(I,z)}),F=P(u),W=P(y),_=P(I=>{const{duration:z,delay:H,easing:A}=nb({style:b,timeout:v,easing:a},{mode:"exit"});let Z;v==="auto"?(Z=T.transitions.getAutoHeightDuration(I.clientHeight),M.current=Z):Z=z,I.style.transition=[T.transitions.create("opacity",{duration:Z,delay:H}),T.transitions.create("transform",{duration:Q1?Z:Z*.666,delay:Q1?H:H||Z*.333,easing:A})].join(","),I.style.opacity=0,I.style.transform=dw(.75),c&&c(I)}),k=P(h);return m.jsx(x,{appear:r,in:s,nodeRef:R,onEnter:V,onEntered:F,onEntering:N,onExit:_,onExited:k,onExiting:W,addEndListener:I=>{v==="auto"&&S.start(M.current||0,I),n&&n(R.current,I)},timeout:v==="auto"?null:v,...w,children:(I,{ownerState:z,...H})=>C.cloneElement(o,{style:{opacity:0,transform:dw(.75),visibility:I==="exited"&&!s?"hidden":void 0,...Aee[I],...b,...o.props.style},ref:$,...H})})});Gm&&(Gm.muiSupportAuto=!0);function jee(e){return on("MuiPaper",e)}Kt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Nee=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return tn(a,jee,o)},Iee=Qe("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)"}}]}))),pd=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:u="elevation",...f}=n,c={...n,component:a,elevation:s,square:l,variant:u},h=Nee(c);return m.jsx(Iee,{as:a,ownerState:c,className:Nt(h.root,o),ref:t,...f,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[s],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[s]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Xv("#fff",sw(s))}, ${Xv("#fff",sw(s))})`}},...f.style}})});function np(e){return typeof e=="string"}function fI(e,t,n){return e===void 0||np(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function p0(e,t,n){return typeof e=="function"?e(t,n):e}function z$(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 pI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const b=Nt(n?.className,a,o?.className,r?.className),v={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return b.length>0&&(x.className=b),Object.keys(v).length>0&&(x.style=v),{props:x,internalRef:void 0}}const s=eb({...o,...r}),l=z$(r),u=z$(o),f=t(s),c=Nt(f?.className,n?.className,a,o?.className,r?.className),h={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...u,...l};return c.length>0&&(y.className=c),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:f.ref}}function ir(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:f,slots:c={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,b=c[e]||r,v=p0(h[e],o),{props:{component:x,...w},internalRef:S}=pI({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:v}),M=mr(S,v?.ref,t.ref),T=e==="root"?x||f:x,R=fI(b,{...e==="root"&&!f&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...w,...T&&!l&&{as:T},...T&&l&&{component:T},ref:M},o);return[b,R]}function hI(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ym(t.components[n].defaultProps,r)}function Lee({props:e,name:t,defaultTheme:n,themeId:r}){let o=eJ(n);return o=o[r]||o,hI({theme:o,name:t,props:e})}function Vr({props:e,name:t}){return Lee({props:e,name:t,defaultTheme:d0,themeId:yp})}const mI=nt.oneOfType([nt.func,nt.object]);function F$(e){try{return e.matches(":focus-visible")}catch{}return!1}class rb{static create(){return new rb}static use(){const t=cI(rb.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=Fee(),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 zee(){return rb.use()}function Fee(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Bee(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:f}=e,[c,h]=C.useState(!1),y=Nt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},v=Nt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&h(!0),C.useEffect(()=>{if(!l&&u!=null){const x=setTimeout(u,f);return()=>{clearTimeout(x)}}},[u,l,f]),m.jsx("span",{className:y,style:b,children:m.jsx("span",{className:v})})}const Ai=Kt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fw=550,Uee=80,_ee=pi`
324
- 0% {
325
- transform: scale(0);
326
- opacity: 0.1;
327
- }
328
-
329
- 100% {
330
- transform: scale(1);
331
- opacity: 0.3;
332
- }
333
- `,Vee=pi`
334
- 0% {
335
- opacity: 1;
336
- }
337
-
338
- 100% {
339
- opacity: 0;
340
- }
341
- `,Hee=pi`
342
- 0% {
343
- transform: scale(1);
344
- }
345
-
346
- 50% {
347
- transform: scale(0.92);
348
- }
349
-
350
- 100% {
351
- transform: scale(1);
352
- }
353
- `,Wee=Qe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),qee=Qe(Bee,{name:"MuiTouchRipple",slot:"Ripple"})`
354
- opacity: 0;
355
- position: absolute;
356
-
357
- &.${Ai.rippleVisible} {
358
- opacity: 0.3;
359
- transform: scale(1);
360
- animation-name: ${_ee};
361
- animation-duration: ${fw}ms;
362
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
363
- }
364
-
365
- &.${Ai.ripplePulsate} {
366
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
367
- }
368
-
369
- & .${Ai.child} {
370
- opacity: 1;
371
- display: block;
372
- width: 100%;
373
- height: 100%;
374
- border-radius: 50%;
375
- background-color: currentColor;
376
- }
377
-
378
- & .${Ai.childLeaving} {
379
- opacity: 0;
380
- animation-name: ${Vee};
381
- animation-duration: ${fw}ms;
382
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
383
- }
384
-
385
- & .${Ai.childPulsate} {
386
- position: absolute;
387
- /* @noflip */
388
- left: 0px;
389
- top: 0;
390
- animation-name: ${Hee};
391
- animation-duration: 2500ms;
392
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
393
- animation-iteration-count: infinite;
394
- animation-delay: 200ms;
395
- }
396
- `,Yee=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...s}=n,[l,u]=C.useState([]),f=C.useRef(0),c=C.useRef(null);C.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);const h=C.useRef(!1),y=dk(),b=C.useRef(null),v=C.useRef(null),x=C.useCallback(T=>{const{pulsate:R,rippleX:$,rippleY:P,rippleSize:N,cb:V}=T;u(F=>[...F,m.jsx(qee,{classes:{ripple:Nt(o.ripple,Ai.ripple),rippleVisible:Nt(o.rippleVisible,Ai.rippleVisible),ripplePulsate:Nt(o.ripplePulsate,Ai.ripplePulsate),child:Nt(o.child,Ai.child),childLeaving:Nt(o.childLeaving,Ai.childLeaving),childPulsate:Nt(o.childPulsate,Ai.childPulsate)},timeout:fw,pulsate:R,rippleX:$,rippleY:P,rippleSize:N},f.current)]),f.current+=1,c.current=V},[o]),w=C.useCallback((T={},R={},$=()=>{})=>{const{pulsate:P=!1,center:N=r||R.pulsate,fakeElement:V=!1}=R;if(T?.type==="mousedown"&&h.current){h.current=!1;return}T?.type==="touchstart"&&(h.current=!0);const F=V?null:v.current,W=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,k,I;if(N||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)_=Math.round(W.width/2),k=Math.round(W.height/2);else{const{clientX:z,clientY:H}=T.touches&&T.touches.length>0?T.touches[0]:T;_=Math.round(z-W.left),k=Math.round(H-W.top)}if(N)I=Math.sqrt((2*W.width**2+W.height**2)/3),I%2===0&&(I+=1);else{const z=Math.max(Math.abs((F?F.clientWidth:0)-_),_)*2+2,H=Math.max(Math.abs((F?F.clientHeight:0)-k),k)*2+2;I=Math.sqrt(z**2+H**2)}T?.touches?b.current===null&&(b.current=()=>{x({pulsate:P,rippleX:_,rippleY:k,rippleSize:I,cb:$})},y.start(Uee,()=>{b.current&&(b.current(),b.current=null)})):x({pulsate:P,rippleX:_,rippleY:k,rippleSize:I,cb:$})},[r,x,y]),S=C.useCallback(()=>{w({},{pulsate:!0})},[w]),M=C.useCallback((T,R)=>{if(y.clear(),T?.type==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{M(T,R)});return}b.current=null,u($=>$.length>0?$.slice(1):$),c.current=R},[y]);return C.useImperativeHandle(t,()=>({pulsate:S,start:w,stop:M}),[S,w,M]),m.jsx(Wee,{className:Nt(Ai.root,o.root,a),ref:v,...s,children:m.jsx(Tg,{component:null,exit:!0,children:l})})});function Gee(e){return on("MuiButtonBase",e)}const Kee=Kt("MuiButtonBase",["root","disabled","focusVisible"]),Qee=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=tn({root:["root",t&&"disabled",n&&"focusVisible"]},Gee,o);return n&&r&&(a.root+=` ${r}`),a},Xee=Qe("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"},[`&.${Kee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rd=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:u=!1,disableRipple:f=!1,disableTouchRipple:c=!1,focusRipple:h=!1,focusVisibleClassName:y,LinkComponent:b="a",onBlur:v,onClick:x,onContextMenu:w,onDragLeave:S,onFocus:M,onFocusVisible:T,onKeyDown:R,onKeyUp:$,onMouseDown:P,onMouseLeave:N,onMouseUp:V,onTouchEnd:F,onTouchMove:W,onTouchStart:_,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:z,type:H,...A}=n,Z=C.useRef(null),K=zee(),te=mr(K.ref,z),[X,Q]=C.useState(!1);u&&X&&Q(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{Q(!0),Z.current.focus()}}),[]);const ne=K.shouldMount&&!f&&!u;C.useEffect(()=>{X&&h&&!f&&K.pulsate()},[f,h,X,K]);const ie=$l(K,"start",P,c),pe=$l(K,"stop",w,c),oe=$l(K,"stop",S,c),ae=$l(K,"stop",V,c),ce=$l(K,"stop",it=>{X&&it.preventDefault(),N&&N(it)},c),me=$l(K,"start",_,c),ye=$l(K,"stop",F,c),we=$l(K,"stop",W,c),Ce=$l(K,"stop",it=>{F$(it.target)||Q(!1),v&&v(it)},!1),Te=Lt(it=>{Z.current||(Z.current=it.currentTarget),F$(it.target)&&(Q(!0),T&&T(it)),M&&M(it)}),ue=()=>{const it=Z.current;return l&&l!=="button"&&!(it.tagName==="A"&&it.href)},ke=Lt(it=>{h&&!it.repeat&&X&&it.key===" "&&K.stop(it,()=>{K.start(it)}),it.target===it.currentTarget&&ue()&&it.key===" "&&it.preventDefault(),R&&R(it),it.target===it.currentTarget&&ue()&&it.key==="Enter"&&!u&&(it.preventDefault(),x&&x(it))}),Ge=Lt(it=>{h&&it.key===" "&&X&&!it.defaultPrevented&&K.stop(it,()=>{K.pulsate(it)}),$&&$(it),x&&it.target===it.currentTarget&&ue()&&it.key===" "&&!it.defaultPrevented&&x(it)});let ze=l;ze==="button"&&(A.href||A.to)&&(ze=b);const Ne={};ze==="button"?(Ne.type=H===void 0?"button":H,Ne.disabled=u):(!A.href&&!A.to&&(Ne.role="button"),u&&(Ne["aria-disabled"]=u));const le=mr(t,Z),xt={...n,centerRipple:o,component:l,disabled:u,disableRipple:f,disableTouchRipple:c,focusRipple:h,tabIndex:k,focusVisible:X},Fe=Qee(xt);return m.jsxs(Xee,{as:ze,className:Nt(Fe.root,s),ownerState:xt,onBlur:Ce,onClick:x,onContextMenu:pe,onFocus:Te,onKeyDown:ke,onKeyUp:Ge,onMouseDown:ie,onMouseLeave:ce,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ye,onTouchMove:we,onTouchStart:me,ref:le,tabIndex:u?-1:k,type:H,...Ne,...A,children:[a,ne?m.jsx(Yee,{ref:te,center:o,...I}):null]})});function $l(e,t,n,r=!1){return Lt(o=>(n&&n(o),r||e[t](o),!0))}function Zee(e){return typeof e.main=="string"}function Jee(e,t=[]){if(!Zee(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function pa(e=[]){return([,t])=>t&&Jee(t,e)}function ete(e){return on("MuiCircularProgress",e)}Kt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const wc=44,pw=pi`
397
- 0% {
398
- transform: rotate(0deg);
399
- }
400
-
401
- 100% {
402
- transform: rotate(360deg);
403
- }
404
- `,hw=pi`
405
- 0% {
406
- stroke-dasharray: 1px, 200px;
407
- stroke-dashoffset: 0;
408
- }
409
-
410
- 50% {
411
- stroke-dasharray: 100px, 200px;
412
- stroke-dashoffset: -15px;
413
- }
414
-
415
- 100% {
416
- stroke-dasharray: 1px, 200px;
417
- stroke-dashoffset: -126px;
418
- }
419
- `,tte=typeof pw!="string"?Vc`
420
- animation: ${pw} 1.4s linear infinite;
421
- `:null,nte=typeof hw!="string"?Vc`
422
- animation: ${hw} 1.4s ease-in-out infinite;
423
- `:null,rte=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,ete,t)},ote=Qe("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:tte||{animation:`${pw} 1.4s linear infinite`}},...Object.entries(e.palette).filter(pa()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),ate=Qe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),ite=Qe("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:nte||{animation:`${hw} 1.4s ease-in-out infinite`}}]}))),gI=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:u=3.6,value:f=0,variant:c="indeterminate",...h}=n,y={...n,color:o,disableShrink:a,size:s,thickness:u,value:f,variant:c},b=rte(y),v={},x={},w={};if(c==="determinate"){const S=2*Math.PI*((wc-u)/2);v.strokeDasharray=S.toFixed(3),w["aria-valuenow"]=Math.round(f),v.strokeDashoffset=`${((100-f)/100*S).toFixed(3)}px`,x.transform="rotate(-90deg)"}return m.jsx(ote,{className:Nt(b.root,r),style:{width:s,height:s,...x,...l},ownerState:y,ref:t,role:"progressbar",...w,...h,children:m.jsx(ate,{className:b.svg,ownerState:y,viewBox:`${wc/2} ${wc/2} ${wc} ${wc}`,children:m.jsx(ite,{className:b.circle,style:v,ownerState:y,cx:wc,cy:wc,r:(wc-u)/2,fill:"none",strokeWidth:u})})})});function ste(e){return on("MuiButton",e)}const Eu=Kt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),lte=C.createContext({}),cte=C.createContext(void 0),ute=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:u}=e,f={root:["root",s&&"loading",a,`${a}${Tt(t)}`,`size${Tt(o)}`,`${a}Size${Tt(o)}`,`color${Tt(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Tt(l)}`],startIcon:["icon","startIcon",`iconSize${Tt(o)}`],endIcon:["icon","endIcon",`iconSize${Tt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},c=tn(f,ste,u);return{...u,...c}},yI=[{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}}}],dte=Qe(rd,{shouldForwardProp:e=>Fa(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"},[`&.${Eu.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]},[`&.${Eu.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Eu.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)",[`&.${Eu.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(pa()).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"},[`&.${Eu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Eu.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}),[`&.${Eu.loading}`]:{color:"transparent"}}}]}})),fte=Qe("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}},...yI]})),pte=Qe("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}},...yI]})),hte=Qe("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}}]})),B$=Qe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),uo=C.forwardRef(function(e,t){const n=C.useContext(lte),r=C.useContext(cte),o=Ym(n,e),a=Hn({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:f,disabled:c=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,id:w,loading:S=null,loadingIndicator:M,loadingPosition:T="center",size:R="medium",startIcon:$,type:P,variant:N="text",...V}=a,F=ys(w),W=M??m.jsx(gI,{"aria-labelledby":F,color:"inherit",size:16}),_={...a,color:l,component:u,disabled:c,disableElevation:h,disableFocusRipple:y,fullWidth:x,loading:S,loadingIndicator:W,loadingPosition:T,size:R,type:P,variant:N},k=ute(_),I=($||S&&T==="start")&&m.jsx(fte,{className:k.startIcon,ownerState:_,children:$||m.jsx(B$,{className:k.loadingIconPlaceholder,ownerState:_})}),z=(b||S&&T==="end")&&m.jsx(pte,{className:k.endIcon,ownerState:_,children:b||m.jsx(B$,{className:k.loadingIconPlaceholder,ownerState:_})}),H=r||"",A=typeof S=="boolean"?m.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:S&&m.jsx(hte,{className:k.loadingIndicator,ownerState:_,children:W})}):null;return m.jsxs(dte,{ownerState:_,className:Nt(n.className,k.root,f,H),component:u,disabled:c||S,focusRipple:!y,focusVisibleClassName:Nt(k.focusVisible,v),ref:t,type:P,id:S?F:w,...V,classes:k,children:[I,T!=="end"&&A,s,T==="end"&&A,z]})});function mte(e){return on("MuiIconButton",e)}const U$=Kt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),gte=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,mte,t)},yte=Qe(rd,{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(pa()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(pa()).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)}}],[`&.${U$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${U$.loading}`]:{color:"transparent"}}))),vte=Qe("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"}}]})),Kc=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:u=!1,size:f="medium",id:c,loading:h=null,loadingIndicator:y,...b}=n,v=ys(c),x=y??m.jsx(gI,{"aria-labelledby":v,color:"inherit",size:16}),w={...n,edge:r,color:s,disabled:l,disableFocusRipple:u,loading:h,loadingIndicator:x,size:f},S=gte(w);return m.jsxs(yte,{id:h?v:c,className:Nt(S.root,a),centerRipple:!0,focusRipple:!u,disabled:l||h,ref:t,...b,ownerState:w,children:[typeof h=="boolean"&&m.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:m.jsx(vte,{className:S.loadingIndicator,ownerState:w,children:h&&x})}),o]})});function Zy(e){return parseInt(e,10)||0}const bte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function xte(e){for(const t in e)return!1;return!0}function _$(e){return xte(e)||e.outerHeightStyle===0&&!e.overflowing}const Ste=C.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:s,...l}=e,{current:u}=C.useRef(s!=null),f=C.useRef(null),c=mr(t,f),h=C.useRef(null),y=C.useRef(null),b=C.useCallback(()=>{const M=f.current,T=y.current;if(!M||!T)return;const R=Fl(M).getComputedStyle(M);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};T.style.width=R.width,T.value=M.value||e.placeholder||"x",T.value.slice(-1)===`
424
- `&&(T.value+=" ");const $=R.boxSizing,P=Zy(R.paddingBottom)+Zy(R.paddingTop),N=Zy(R.borderBottomWidth)+Zy(R.borderTopWidth),V=T.scrollHeight;T.value="x";const F=T.scrollHeight;let W=V;o&&(W=Math.max(Number(o)*F,W)),r&&(W=Math.min(Number(r)*F,W)),W=Math.max(W,F);const _=W+($==="border-box"?P+N:0),k=Math.abs(W-V)<=1;return{outerHeightStyle:_,overflowing:k}},[r,o,e.placeholder]),v=Lt(()=>{const M=f.current,T=b();if(!M||!T||_$(T))return!1;const R=T.outerHeightStyle;return h.current!=null&&h.current!==R}),x=C.useCallback(()=>{const M=f.current,T=b();if(!M||!T||_$(T))return;const R=T.outerHeightStyle;h.current!==R&&(h.current=R,M.style.height=`${R}px`),M.style.overflow=T.overflowing?"hidden":""},[b]),w=C.useRef(-1);Po(()=>{const M=oI(x),T=f?.current;if(!T)return;const R=Fl(T);R.addEventListener("resize",M);let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(()=>{v()&&($.unobserve(T),cancelAnimationFrame(w.current),x(),w.current=requestAnimationFrame(()=>{$.observe(T)}))}),$.observe(T)),()=>{M.clear(),cancelAnimationFrame(w.current),R.removeEventListener("resize",M),$&&$.disconnect()}},[b,x,v]),Po(()=>{x()});const S=M=>{u||x();const T=M.target,R=T.value.length,$=T.value.endsWith(`
425
- `),P=T.selectionStart===R;$&&P&&T.setSelectionRange(R,R),n&&n(M)};return m.jsxs(C.Fragment,{children:[m.jsx("textarea",{value:s,onChange:S,ref:c,rows:o,style:a,...l}),m.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...bte.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function hd({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 h0=C.createContext(void 0);function mi(){return C.useContext(h0)}function V$(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ob(e,t=!1){return e&&(V$(e.value)&&e.value!==""||t&&V$(e.defaultValue)&&e.defaultValue!=="")}function wte(e){return e.startAdornment}function Cte(e){return on("MuiInputBase",e)}const oi=Kt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var H$;const m0=(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]},g0=(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]},kte=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:u,hiddenLabel:f,multiline:c,readOnly:h,size:y,startAdornment:b,type:v}=e,x={root:["root",`color${Tt(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${Tt(y)}`,c&&"multiline",b&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",y==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",b&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return tn(x,Cte,t)},y0=Qe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:m0})(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",[`&.${oi.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%"}}]}))),v0=Qe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:g0})(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] + .${oi.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},[`&.${oi.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"}}]}})),W$=BJ({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),mk=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:s,color:l,components:u={},componentsProps:f={},defaultValue:c,disabled:h,disableInjectingGlobalStyles:y,endAdornment:b,error:v,fullWidth:x=!1,id:w,inputComponent:S="input",inputProps:M={},inputRef:T,margin:R,maxRows:$,minRows:P,multiline:N=!1,name:V,onBlur:F,onChange:W,onClick:_,onFocus:k,onKeyDown:I,onKeyUp:z,placeholder:H,readOnly:A,renderSuffix:Z,rows:K,size:te,slotProps:X={},slots:Q={},startAdornment:ne,type:ie="text",value:pe,...oe}=n,ae=M.value!=null?M.value:pe,{current:ce}=C.useRef(ae!=null),me=C.useRef(),ye=C.useCallback(We=>{},[]),we=mr(me,T,M.ref,ye),[Ce,Te]=C.useState(!1),ue=mi(),ke=hd({props:n,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ke.focused=ue?ue.focused:Ce,C.useEffect(()=>{!ue&&h&&Ce&&(Te(!1),F&&F())},[ue,h,Ce,F]);const Ge=ue&&ue.onFilled,ze=ue&&ue.onEmpty,Ne=C.useCallback(We=>{ob(We)?Ge&&Ge():ze&&ze()},[Ge,ze]);Po(()=>{ce&&Ne({value:ae})},[ae,Ne,ce]);const le=We=>{k&&k(We),M.onFocus&&M.onFocus(We),ue&&ue.onFocus?ue.onFocus(We):Te(!0)},xt=We=>{F&&F(We),M.onBlur&&M.onBlur(We),ue&&ue.onBlur?ue.onBlur(We):Te(!1)},Fe=(We,...Me)=>{if(!ce){const kt=We.target||me.current;if(kt==null)throw new Error(Ll(1));Ne({value:kt.value})}M.onChange&&M.onChange(We,...Me),W&&W(We,...Me)};C.useEffect(()=>{Ne(me.current)},[]);const it=We=>{me.current&&We.currentTarget===We.target&&me.current.focus(),_&&_(We)};let ct=S,Ft=M;N&&ct==="input"&&(K?Ft={type:void 0,minRows:K,maxRows:K,...Ft}:Ft={type:void 0,maxRows:$,minRows:P,...Ft},ct=Ste);const _t=We=>{Ne(We.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};C.useEffect(()=>{ue&&ue.setAdornedStart(!!ne)},[ue,ne]);const at={...n,color:ke.color||"primary",disabled:ke.disabled,endAdornment:b,error:ke.error,focused:ke.focused,formControl:ue,fullWidth:x,hiddenLabel:ke.hiddenLabel,multiline:N,size:ke.size,startAdornment:ne,type:ie},Ze=kte(at),rt=Q.root||u.Root||y0,je=X.root||f.root||{},he=Q.input||u.Input||v0;return Ft={...Ft,...X.input??f.input},m.jsxs(C.Fragment,{children:[!y&&typeof W$=="function"&&(H$||(H$=m.jsx(W$,{}))),m.jsxs(rt,{...je,ref:t,onClick:it,...oe,...!np(rt)&&{ownerState:{...at,...je.ownerState}},className:Nt(Ze.root,je.className,s,A&&"MuiInputBase-readOnly"),children:[ne,m.jsx(h0.Provider,{value:null,children:m.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:H,readOnly:A,required:ke.required,rows:K,value:ae,onKeyDown:I,onKeyUp:z,type:ie,...Ft,...!np(he)&&{as:ct,ownerState:{...at,...Ft.ownerState}},ref:we,className:Nt(Ze.input,Ft.className,A&&"MuiInputBase-readOnly"),onBlur:xt,onChange:Fe,onFocus:le})}),b,Z?Z({...ke,startAdornment:ne}):null]})]})});function Tte(e){return on("MuiInput",e)}const Oc={...oi,...Kt("MuiInput",["root","underline","input"])},Mte=e=>{const{classes:t,disableUnderline:n}=e,r=tn({root:["root",!n&&"underline"],input:["input"]},Tte,t);return{...t,...r}},Ete=Qe(y0,{shouldForwardProp:e=>Fa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...m0(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(pa()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),Ote=Qe(v0,{name:"MuiInput",slot:"Input",overridesResolver:g0})({}),gk=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:u=!1,slotProps:f,slots:c={},type:h="text",...y}=n,b=Mte(n),v={root:{ownerState:{disableUnderline:r}}},x=f??a?ra(f??a,v):v,w=c.root??o.Root??Ete,S=c.input??o.Input??Ote;return m.jsx(mk,{slots:{root:w,input:S},slotProps:x,fullWidth:s,inputComponent:l,multiline:u,ref:t,type:h,...y,classes:b})});gk.muiName="Input";function Rte(e){return on("MuiFilledInput",e)}const ai={...oi,...Kt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},$te=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Tt(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=tn(u,Rte,t);return{...t,...f}},Pte=Qe(y0,{shouldForwardProp:e=>Fa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...m0(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}},[`&.${ai.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ai.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"},[`&.${ai.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ai.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(.${ai.disabled}, .${ai.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ai.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(pa()).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}}]}})),Dte=Qe(v0,{name:"MuiFilledInput",slot:"Input",overridesResolver:g0})(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}}]}))),yk=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:u="input",multiline:f=!1,slotProps:c,slots:h={},type:y="text",...b}=n,v={...n,disableUnderline:r,fullWidth:s,inputComponent:u,multiline:f,type:y},x=$te(n),w={root:{ownerState:v},input:{ownerState:v}},S=c??a?ra(w,c??a):w,M=h.root??o.Root??Pte,T=h.input??o.Input??Dte;return m.jsx(mk,{slots:{root:M,input:T},slotProps:S,fullWidth:s,inputComponent:u,multiline:f,ref:t,type:y,...b,classes:x})});yk.muiName="Input";var q$;const Ate=Qe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Fa})({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%"}),jte=Qe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Fa})(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 Nte(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",u={...e,notched:a,withLabel:l};return m.jsx(Ate,{"aria-hidden":!0,className:r,ownerState:u,...s,children:m.jsx(jte,{ownerState:u,children:l?m.jsx("span",{children:o}):q$||(q$=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function Ite(e){return on("MuiOutlinedInput",e)}const Ri={...oi,...Kt("MuiOutlinedInput",["root","notchedOutline","input"])},Lte=e=>{const{classes:t}=e,n=tn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ite,t);return{...t,...n}},zte=Qe(y0,{shouldForwardProp:e=>Fa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:m0})(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 .${Ri.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ri.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ri.focused} .${Ri.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(pa()).map(([n])=>({props:{color:n},style:{[`&.${Ri.focused} .${Ri.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ri.error} .${Ri.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ri.disabled} .${Ri.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"}}]}})),Fte=Qe(Nte,{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}})),Bte=Qe(v0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:g0})(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}}]}))),vk=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:u,slots:f={},slotProps:c={},type:h="text",...y}=n,b=Lte(n),v=mi(),x=hd({props:n,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...n,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:o,hiddenLabel:x.hiddenLabel,multiline:l,size:x.size,type:h},S=f.root??r.Root??zte,M=f.input??r.Input??Bte,[T,R]=ir("notchedOutline",{elementType:Fte,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{slots:f,slotProps:c},additionalProps:{label:s!=null&&s!==""&&x.required?m.jsxs(C.Fragment,{children:[s," ","*"]}):s}});return m.jsx(mk,{slots:{root:S,input:M},slotProps:c,renderSuffix:$=>m.jsx(T,{...R,notched:typeof u<"u"?u:!!($.startAdornment||$.filled||$.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:h,...y,classes:{...b,notchedOutline:null}})});vk.muiName="Input";function Ute(e){return on("MuiFormLabel",e)}const Mm=Kt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_te=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,u={root:["root",`color${Tt(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return tn(u,Ute,t)},Vte=Qe("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(pa()).map(([t])=>({props:{color:t},style:{[`&.${Mm.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Mm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mm.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Hte=Qe("span",{name:"MuiFormLabel",slot:"Asterisk"})(Vn(({theme:e})=>({[`&.${Mm.error}`]:{color:(e.vars||e).palette.error.main}}))),Wte=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:a,component:s="label",disabled:l,error:u,filled:f,focused:c,required:h,...y}=n,b=mi(),v=hd({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),x={...n,color:v.color||"primary",component:s,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required},w=_te(x);return m.jsxs(Vte,{as:s,ownerState:x,className:Nt(w.root,o),ref:t,...y,children:[r,v.required&&m.jsxs(Hte,{ownerState:x,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});function qte(e){return on("MuiInputLabel",e)}Kt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Yte=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Tt(r)}`,s],asterisk:[l&&"asterisk"]},f=tn(u,qte,t);return{...t,...f}},Gte=Qe(Wte,{shouldForwardProp:e=>Fa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mm.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)"}}]}))),vI=C.forwardRef(function(e,t){const n=Hn({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:s,className:l,...u}=n,f=mi();let c=a;typeof c>"u"&&f&&(c=f.filled||f.focused||f.adornedStart);const h=hd({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),y={...n,disableAnimation:r,formControl:f,shrink:c,size:h.size,variant:h.variant,required:h.required,focused:h.focused},b=Yte(y);return m.jsx(Gte,{"data-shrink":c,ref:t,className:Nt(b.root,l),...u,ownerState:y,classes:b})});function Kte(e){return on("MuiFormControl",e)}Kt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Qte=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Tt(n)}`,r&&"fullWidth"]};return tn(o,Kte,t)},Xte=Qe("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%"}}]}),bI=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:u=!1,focused:f,fullWidth:c=!1,hiddenLabel:h=!1,margin:y="none",required:b=!1,size:v="medium",variant:x="outlined",...w}=n,S={...n,color:a,component:s,disabled:l,error:u,fullWidth:c,hiddenLabel:h,margin:y,required:b,size:v,variant:x},M=Qte(S),[T,R]=C.useState(()=>{let z=!1;return r&&C.Children.forEach(r,H=>{if(!Ev(H,["Input","Select"]))return;const A=Ev(H,["Select"])?H.props.input:H;A&&wte(A.props)&&(z=!0)}),z}),[$,P]=C.useState(()=>{let z=!1;return r&&C.Children.forEach(r,H=>{Ev(H,["Input","Select"])&&(ob(H.props,!0)||ob(H.props.inputProps,!0))&&(z=!0)}),z}),[N,V]=C.useState(!1);l&&N&&V(!1);const F=f!==void 0&&!l?f:N;let W;C.useRef(!1);const _=C.useCallback(()=>{P(!0)},[]),k=C.useCallback(()=>{P(!1)},[]),I=C.useMemo(()=>({adornedStart:T,setAdornedStart:R,color:a,disabled:l,error:u,filled:$,focused:F,fullWidth:c,hiddenLabel:h,size:v,onBlur:()=>{V(!1)},onFocus:()=>{V(!0)},onEmpty:k,onFilled:_,registerEffect:W,required:b,variant:x}),[T,a,l,u,$,F,c,h,W,k,_,b,v,x]);return m.jsx(h0.Provider,{value:I,children:m.jsx(Xte,{as:s,ownerState:S,className:Nt(M.root,o),ref:t,...w,children:r})})});function Zte(e){return on("MuiFormHelperText",e)}const Y$=Kt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var G$;const Jte=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:u}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${Tt(r)}`,n&&"contained",l&&"focused",s&&"filled",u&&"required"]};return tn(f,Zte,t)},ene=Qe("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,[`&.${Y$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Y$.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}}]}))),xI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:s,error:l,filled:u,focused:f,margin:c,required:h,variant:y,...b}=n,v=mi(),x=hd({props:n,muiFormControl:v,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=Jte(w);return m.jsx(ene,{as:a,className:Nt(S.root,o),ref:t,...b,ownerState:w,children:r===" "?G$||(G$=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});function xr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:p0(n,r),{props:l,internalRef:u}=pI({...a,externalSlotProps:s}),f=mr(u,s?.ref,e.additionalProps?.ref);return fI(t,{...l,ref:f},r)}const Al=C.createContext({});function tne(e){return on("MuiList",e)}Kt("MuiList",["root","padding","dense","subheader"]);const nne=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return tn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},tne,t)},rne=Qe("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}}]}),SI=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:u,...f}=n,c=C.useMemo(()=>({dense:s}),[s]),h={...n,component:a,dense:s,disablePadding:l},y=nne(h);return m.jsx(Al.Provider,{value:c,children:m.jsxs(rne,{as:a,className:Nt(y.root,o),ref:t,ownerState:h,...f,children:[u,r]})})});function wI(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function X1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function K$(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function CI(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 _h(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!CI(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const one=C.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:f,variant:c="selectedMenu",...h}=e,y=C.useRef(null),b=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Po(()=>{r&&y.current.focus()},[r]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(M,{direction:T})=>{const R=!y.current.style.width;if(M.clientHeight<y.current.clientHeight&&R){const $=`${wI(Fl(M))}px`;y.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=$,y.current.style.width=`calc(100% + ${$})`}return y.current}}),[]);const v=M=>{const T=y.current,R=M.key;if(M.ctrlKey||M.metaKey||M.altKey){f&&f(M);return}const $=$o(T).activeElement;if(R==="ArrowDown")M.preventDefault(),_h(T,$,u,l,X1);else if(R==="ArrowUp")M.preventDefault(),_h(T,$,u,l,K$);else if(R==="Home")M.preventDefault(),_h(T,null,u,l,X1);else if(R==="End")M.preventDefault(),_h(T,null,u,l,K$);else if(R.length===1){const P=b.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 F=$&&!P.repeating&&CI($,P);P.previousKeyMatched&&(F||_h(T,$,!1,l,X1,P))?M.preventDefault():P.previousKeyMatched=!1}f&&f(M)},x=mr(y,t);let w=-1;C.Children.forEach(a,(M,T)=>{if(!C.isValidElement(M)){w===T&&(w+=1,w>=a.length&&(w=-1));return}M.props.disabled||(c==="selectedMenu"&&M.props.selected||w===-1)&&(w=T),w===T&&(M.props.disabled||M.props.muiSkipListHighlight||M.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const S=C.Children.map(a,(M,T)=>{if(T===w){const R={};return o&&(R.autoFocus=!0),M.props.tabIndex===void 0&&c==="selectedMenu"&&(R.tabIndex=0),C.cloneElement(M,R)}return M});return m.jsx(SI,{role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:r?0:-1,...h,children:S})});function ane(e){const t=$o(e);return t.body===e?Fl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Em(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Q$(e){return parseInt(Fl(e).getComputedStyle(e).paddingRight,10)||0}function ine(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 X$(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),u=!ine(s);l&&u&&Em(s,o)})}function Z1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function sne(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ane(r)){const a=wI(Fl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Q$(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=`${Q$(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=$o(r).body;else{const a=r.parentElement,s=Fl(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 lne(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class cne{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&&Em(t.modalRef,!1);const o=lne(n);X$(n,t.mount,t.modalRef,o,!0);const a=Z1(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=Z1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=sne(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Z1(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&&Em(t.modalRef,n),X$(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&&Em(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const une=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dne(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 fne(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 pne(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||fne(e))}function hne(e){const t=[],n=[];return Array.from(e.querySelectorAll(une)).forEach((r,o)=>{const a=dne(r);a===-1||!pne(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 mne(){return!0}function kI(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=hne,isEnabled:s=mne,open:l}=e,u=C.useRef(!1),f=C.useRef(null),c=C.useRef(null),h=C.useRef(null),y=C.useRef(null),b=C.useRef(!1),v=C.useRef(null),x=mr(vp(t),v),w=C.useRef(null);C.useEffect(()=>{!l||!v.current||(b.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!v.current)return;const T=$o(v.current);return v.current.contains(T.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),b.current&&v.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[l]),C.useEffect(()=>{if(!l||!v.current)return;const T=$o(v.current),R=N=>{w.current=N,!(r||!s()||N.key!=="Tab")&&T.activeElement===v.current&&N.shiftKey&&(u.current=!0,c.current&&c.current.focus())},$=()=>{const N=v.current;if(N===null)return;if(!T.hasFocus()||!s()||u.current){u.current=!1;return}if(N.contains(T.activeElement)||r&&T.activeElement!==f.current&&T.activeElement!==c.current)return;if(T.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!b.current)return;let V=[];if((T.activeElement===f.current||T.activeElement===c.current)&&(V=a(v.current)),V.length>0){const F=!!(w.current?.shiftKey&&w.current?.key==="Tab"),W=V[0],_=V[V.length-1];typeof W!="string"&&typeof _!="string"&&(F?_.focus():W.focus())}else N.focus()};T.addEventListener("focusin",$),T.addEventListener("keydown",R,!0);const P=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(P),T.removeEventListener("focusin",$),T.removeEventListener("keydown",R,!0)}},[n,r,o,s,l,a]);const S=T=>{h.current===null&&(h.current=T.relatedTarget),b.current=!0,y.current=T.target;const R=t.props.onFocus;R&&R(T)},M=T=>{h.current===null&&(h.current=T.relatedTarget),b.current=!0};return m.jsxs(C.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:M,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:S}),m.jsx("div",{tabIndex:l?0:-1,onFocus:M,ref:c,"data-testid":"sentinelEnd"})]})}function gne(e){return typeof e=="function"?e():e}const TI=C.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=C.useState(null),l=mr(C.isValidElement(n)?vp(n):null,t);if(Po(()=>{o||s(gne(r)||document.body)},[r,o]),Po(()=>{if(a&&!o)return lw(t,a),()=>{lw(t,null)}},[t,a,o]),o){if(C.isValidElement(n)){const u={ref:l};return C.cloneElement(n,u)}return n}return a&&gb.createPortal(n,a)}),yne={entering:{opacity:1},entered:{opacity:1}},od=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:u,onEnter:f,onEntered:c,onEntering:h,onExit:y,onExited:b,onExiting:v,style:x,timeout:w=r,TransitionComponent:S=vs,...M}=e,T=C.useRef(null),R=mr(T,vp(s),t),$=k=>I=>{if(k){const z=T.current;I===void 0?k(z):k(z,I)}},P=$(h),N=$((k,I)=>{dI(k);const z=nb({style:x,timeout:w,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),f&&f(k,I)}),V=$(c),F=$(v),W=$(k=>{const I=nb({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)}),_=$(b);return m.jsx(S,{appear:a,in:u,nodeRef:T,onEnter:N,onEntered:V,onEntering:P,onExit:W,onExited:_,onExiting:F,addEndListener:k=>{o&&o(T.current,k)},timeout:w,...M,children:(k,{ownerState:I,...z})=>C.cloneElement(s,{style:{opacity:0,visibility:k==="exited"&&!u?"hidden":void 0,...yne[k],...x,...s.props.style},ref:R,...z})})});function vne(e){return on("MuiBackdrop",e)}Kt("MuiBackdrop",["root","invisible"]);const bne=e=>{const{classes:t,invisible:n}=e;return tn({root:["root",n&&"invisible"]},vne,t)},xne=Qe("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"}}]}),MI=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:u={},componentsProps:f={},slotProps:c={},slots:h={},TransitionComponent:y,transitionDuration:b,...v}=n,x={...n,component:a,invisible:s},w=bne(x),S={transition:y,root:u.Root,...h},M={...f,...c},T={component:a,slots:S,slotProps:M},[R,$]=ir("root",{elementType:xne,externalForwardedProps:T,className:Nt(w.root,o),ownerState:x}),[P,N]=ir("transition",{elementType:od,externalForwardedProps:T,ownerState:x});return m.jsx(P,{in:l,timeout:b,...v,...N,children:m.jsx(R,{"aria-hidden":!0,...$,classes:w,ref:t,children:r})})});function Sne(e){return typeof e=="function"?e():e}function wne(e){return e?e.props.hasOwnProperty("in"):!1}const Z$=()=>{},Jy=new cne;function Cne(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:f,rootRef:c}=e,h=C.useRef({}),y=C.useRef(null),b=C.useRef(null),v=mr(b,c),[x,w]=C.useState(!f),S=wne(l);let M=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(M=!1);const T=()=>$o(y.current),R=()=>(h.current.modalRef=b.current,h.current.mount=y.current,h.current),$=()=>{Jy.mount(R(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},P=Lt(()=>{const k=Sne(t)||T().body;Jy.add(R(),k),b.current&&$()}),N=()=>Jy.isTopModal(R()),V=Lt(k=>{y.current=k,k&&(f&&N()?$():b.current&&Em(b.current,M))}),F=C.useCallback(()=>{Jy.remove(R(),M)},[M]);C.useEffect(()=>()=>{F()},[F]),C.useEffect(()=>{f?P():(!S||!o)&&F()},[f,F,S,o,P]);const W=k=>I=>{k.onKeyDown?.(I),!(I.key!=="Escape"||I.which===229||!N())&&(n||(I.stopPropagation(),u&&u(I,"escapeKeyDown")))},_=k=>I=>{k.onClick?.(I),I.target===I.currentTarget&&u&&u(I,"backdropClick")};return{getRootProps:(k={})=>{const I=eb(e);delete I.onTransitionEnter,delete I.onTransitionExited;const z={...I,...k};return{role:"presentation",...z,onKeyDown:W(z),ref:v}},getBackdropProps:(k={})=>{const I=k;return{"aria-hidden":!0,...I,onClick:_(I),open:f}},getTransitionProps:()=>{const k=()=>{w(!1),a&&a()},I=()=>{w(!0),s&&s(),o&&F()};return{onEnter:i$(k,l?.props.onEnter??Z$),onExited:i$(I,l?.props.onExited??Z$)}},rootRef:v,portalRef:V,isTopModal:N,exited:x,hasTransition:S}}function kne(e){return on("MuiModal",e)}Kt("MuiModal",["root","hidden","backdrop"]);const Tne=e=>{const{open:t,exited:n,classes:r}=e;return tn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kne,r)},Mne=Qe("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"}}]}))),Ene=Qe(MI,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),EI=C.forwardRef(function(e,t){const n=Hn({name:"MuiModal",props:e}),{BackdropComponent:r=Ene,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:u,container:f,component:c,components:h={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:M=!1,hideBackdrop:T=!1,keepMounted:R=!1,onClose:$,onTransitionEnter:P,onTransitionExited:N,open:V,slotProps:F={},slots:W={},theme:_,...k}=n,I={...n,closeAfterTransition:l,disableAutoFocus:b,disableEnforceFocus:v,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:S,disableScrollLock:M,hideBackdrop:T,keepMounted:R},{getRootProps:z,getBackdropProps:H,getTransitionProps:A,portalRef:Z,isTopModal:K,exited:te,hasTransition:X}=Cne({...I,rootRef:t}),Q={...I,exited:te},ne=Tne(Q),ie={};if(u.props.tabIndex===void 0&&(ie.tabIndex="-1"),X){const{onEnter:ye,onExited:we}=A();ie.onEnter=ye,ie.onExited=we}const pe={slots:{root:h.Root,backdrop:h.Backdrop,...W},slotProps:{...y,...F}},[oe,ae]=ir("root",{ref:t,elementType:Mne,externalForwardedProps:{...pe,...k,component:c},getSlotProps:z,ownerState:Q,className:Nt(s,ne?.root,!Q.open&&Q.exited&&ne?.hidden)}),[ce,me]=ir("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:pe,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ye=>H({...ye,onClick:we=>{ye?.onClick&&ye.onClick(we)}}),className:Nt(o?.className,ne?.backdrop),ownerState:Q});return!R&&!V&&(!X||te)?null:m.jsx(TI,{ref:Z,container:f,disablePortal:w,children:m.jsxs(oe,{...ae,children:[!T&&r?m.jsx(ce,{...me}):null,m.jsx(kI,{disableEnforceFocus:v,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:K,open:V,children:C.cloneElement(u,ie)})]})})});function One(e){return on("MuiPopover",e)}Kt("MuiPopover",["root","paper"]);function J$(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function eP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function tP(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ev(e){return typeof e=="function"?e():e}const Rne=e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"]},One,t)},$ne=Qe(EI,{name:"MuiPopover",slot:"Root"})({}),OI=Qe(pd,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Pne=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:u,className:f,container:c,elevation:h=8,marginThreshold:y=16,open:b,PaperProps:v={},slots:x={},slotProps:w={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:M,transitionDuration:T="auto",TransitionProps:R={},disableScrollLock:$=!1,...P}=n,N=C.useRef(),V={...n,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:y,transformOrigin:S,TransitionComponent:M,transitionDuration:T,TransitionProps:R},F=Rne(V),W=C.useCallback(()=>{if(l==="anchorPosition")return s;const ye=ev(o),we=(ye&&ye.nodeType===1?ye:$o(N.current).body).getBoundingClientRect();return{top:we.top+J$(we,a.vertical),left:we.left+eP(we,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),_=C.useCallback(ye=>({vertical:J$(ye,S.vertical),horizontal:eP(ye,S.horizontal)}),[S.horizontal,S.vertical]),k=C.useCallback(ye=>{const we={width:ye.offsetWidth,height:ye.offsetHeight},Ce=_(we);if(l==="none")return{top:null,left:null,transformOrigin:tP(Ce)};const Te=W();let ue=Te.top-Ce.vertical,ke=Te.left-Ce.horizontal;const Ge=ue+we.height,ze=ke+we.width,Ne=Fl(ev(o)),le=Ne.innerHeight-y,xt=Ne.innerWidth-y;if(y!==null&&ue<y){const Fe=ue-y;ue-=Fe,Ce.vertical+=Fe}else if(y!==null&&Ge>le){const Fe=Ge-le;ue-=Fe,Ce.vertical+=Fe}if(y!==null&&ke<y){const Fe=ke-y;ke-=Fe,Ce.horizontal+=Fe}else if(ze>xt){const Fe=ze-xt;ke-=Fe,Ce.horizontal+=Fe}return{top:`${Math.round(ue)}px`,left:`${Math.round(ke)}px`,transformOrigin:tP(Ce)}},[o,l,W,_,y]),[I,z]=C.useState(b),H=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,z(!0)},[k]);C.useEffect(()=>($&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[o,$,H]);const A=()=>{H()},Z=()=>{z(!1)};C.useEffect(()=>{b&&H()}),C.useImperativeHandle(r,()=>b?{updatePosition:()=>{H()}}:null,[b,H]),C.useEffect(()=>{if(!b)return;const ye=oI(()=>{H()}),we=Fl(ev(o));return we.addEventListener("resize",ye),()=>{ye.clear(),we.removeEventListener("resize",ye)}},[o,b,H]);let K=T;const te={slots:{transition:M,...x},slotProps:{transition:R,paper:v,...w}},[X,Q]=ir("transition",{elementType:Gm,externalForwardedProps:te,ownerState:V,getSlotProps:ye=>({...ye,onEntering:(we,Ce)=>{ye.onEntering?.(we,Ce),A()},onExited:we=>{ye.onExited?.(we),Z()}}),additionalProps:{appear:!0,in:b}});T==="auto"&&!X.muiSupportAuto&&(K=void 0);const ne=c||(o?$o(ev(o)).body:void 0),[ie,{slots:pe,slotProps:oe,...ae}]=ir("root",{ref:t,elementType:$ne,externalForwardedProps:{...te,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:aI(typeof w.backdrop=="function"?w.backdrop(V):w.backdrop,{invisible:!0})},container:ne,open:b},ownerState:V,className:Nt(F.root,f)}),[ce,me]=ir("paper",{ref:N,className:F.paper,elementType:OI,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:I?void 0:{opacity:0}},ownerState:V});return m.jsx(ie,{...ae,...!np(ie)&&{slots:pe,slotProps:oe,disableScrollLock:$},children:m.jsx(X,{...Q,timeout:K,children:m.jsx(ce,{...me,children:u})})})});function Dne(e){return on("MuiMenu",e)}Kt("MuiMenu",["root","paper","list"]);const Ane={vertical:"top",horizontal:"right"},jne={vertical:"top",horizontal:"left"},Nne=e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"],list:["list"]},Dne,t)},Ine=Qe(Pne,{shouldForwardProp:e=>Fa(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Lne=Qe(OI,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zne=Qe(one,{name:"MuiMenu",slot:"List"})({outline:0}),Fne=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:u,open:f,PaperProps:c={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:b,...v}={},variant:x="selectedMenu",slots:w={},slotProps:S={},...M}=n,T=gs(),R={...n,autoFocus:r,disableAutoFocusItem:s,MenuListProps:l,onEntering:b,PaperProps:c,transitionDuration:y,TransitionProps:v,variant:x},$=Nne(R),P=r&&!s&&f,N=C.useRef(null),V=(K,te)=>{N.current&&N.current.adjustStyleForScrollbar(K,{direction:T?"rtl":"ltr"}),b&&b(K,te)},F=K=>{K.key==="Tab"&&(K.preventDefault(),u&&u(K,"tabKeyDown"))};let W=-1;C.Children.map(o,(K,te)=>{C.isValidElement(K)&&(K.props.disabled||(x==="selectedMenu"&&K.props.selected||W===-1)&&(W=te))});const _={slots:w,slotProps:{list:l,transition:v,paper:c,...S}},k=xr({elementType:w.root,externalSlotProps:S.root,ownerState:R,className:[$.root,a]}),[I,z]=ir("paper",{className:$.paper,elementType:Lne,externalForwardedProps:_,shouldForwardComponentProp:!0,ownerState:R}),[H,A]=ir("list",{className:Nt($.list,l.className),elementType:zne,shouldForwardComponentProp:!0,externalForwardedProps:_,getSlotProps:K=>({...K,onKeyDown:te=>{F(te),K.onKeyDown?.(te)}}),ownerState:R}),Z=typeof _.slotProps.transition=="function"?_.slotProps.transition(R):_.slotProps.transition;return m.jsx(Ine,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?Ane:jne,slots:{root:w.root,paper:I,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:k,paper:z,backdrop:typeof S.backdrop=="function"?S.backdrop(R):S.backdrop,transition:{...Z,onEntering:(...K)=>{V(...K),Z?.onEntering?.(...K)}}},open:f,ref:t,transitionDuration:y,ownerState:R,...M,classes:h,children:m.jsx(H,{actions:N,autoFocus:r&&(W===-1||s),autoFocusItem:P,variant:x,...A,children:o})})});function Bne(e){return on("MuiNativeSelect",e)}const bk=Kt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Une=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,Bne,t)},RI=Qe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${bk.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}}}]})),_ne=Qe(RI,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Fa,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${bk.multiple}`]:t.multiple}]}})({}),$I=Qe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${bk.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}}]})),Vne=Qe($I,{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]}})({}),Hne=C.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:s,variant:l="standard",...u}=e,f={...e,disabled:r,variant:l,error:o},c=Une(f);return m.jsxs(C.Fragment,{children:[m.jsx(_ne,{ownerState:f,className:Nt(c.select,n),disabled:r,ref:s||t,...u}),e.multiple?null:m.jsx(Vne,{as:a,ownerState:f,className:c.icon})]})});function PI(e){return on("MuiSelect",e)}const Vh=Kt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var nP;const Wne=Qe(RI,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Vh.select}`]:t.select},{[`&.${Vh.select}`]:t[n.variant]},{[`&.${Vh.error}`]:t.error},{[`&.${Vh.multiple}`]:t.multiple}]}})({[`&.${Vh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),qne=Qe($I,{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]}})({}),Yne=Qe("input",{shouldForwardProp:e=>rI(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function rP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Gne(e){return e==null||typeof e=="string"&&!e.trim()}const Kne=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,PI,t)},Qne=C.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:f,disabled:c,displayEmpty:h,error:y=!1,IconComponent:b,inputRef:v,labelId:x,MenuProps:w={},multiple:S,name:M,onBlur:T,onChange:R,onClose:$,onFocus:P,onOpen:N,open:V,readOnly:F,renderValue:W,required:_,SelectDisplayProps:k={},tabIndex:I,type:z,value:H,variant:A="standard",...Z}=e,[K,te]=ui({controlled:H,default:f,name:"Select"}),[X,Q]=ui({controlled:V,default:u,name:"Select"}),ne=C.useRef(null),ie=C.useRef(null),[pe,oe]=C.useState(null),{current:ae}=C.useRef(V!=null),[ce,me]=C.useState(),ye=mr(t,v),we=C.useCallback(gt=>{ie.current=gt,gt&&oe(gt)},[]),Ce=pe?.parentNode;C.useImperativeHandle(ye,()=>({focus:()=>{ie.current.focus()},node:ne.current,value:K}),[K]),C.useEffect(()=>{u&&X&&pe&&!ae&&(me(a?null:Ce.clientWidth),ie.current.focus())},[pe,a]),C.useEffect(()=>{o&&ie.current.focus()},[o]),C.useEffect(()=>{if(!x)return;const gt=$o(ie.current).getElementById(x);if(gt){const ut=()=>{getSelection().isCollapsed&&ie.current.focus()};return gt.addEventListener("click",ut),()=>{gt.removeEventListener("click",ut)}}},[x]);const Te=(gt,ut)=>{gt?N&&N(ut):$&&$(ut),ae||(me(a?null:Ce.clientWidth),Q(gt))},ue=gt=>{gt.button===0&&(gt.preventDefault(),ie.current.focus(),Te(!0,gt))},ke=gt=>{Te(!1,gt)},Ge=C.Children.toArray(s),ze=gt=>{const ut=Ge.find($t=>$t.props.value===gt.target.value);ut!==void 0&&(te(ut.props.value),R&&R(gt,ut))},Ne=gt=>ut=>{let $t;if(ut.currentTarget.hasAttribute("tabindex")){if(S){$t=Array.isArray(K)?K.slice():[];const Vt=K.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(ut),K!==$t&&(te($t),R)){const Vt=ut.nativeEvent||ut,dn=new Vt.constructor(Vt.type,Vt);Object.defineProperty(dn,"target",{writable:!0,value:{value:$t,name:M}}),R(dn,gt)}S||Te(!1,ut)}},le=gt=>{F||[" ","ArrowUp","ArrowDown","Enter"].includes(gt.key)&&(gt.preventDefault(),Te(!0,gt))},xt=pe!==null&&X,Fe=gt=>{!xt&&T&&(Object.defineProperty(gt,"target",{writable:!0,value:{value:K,name:M}}),T(gt))};delete Z["aria-invalid"];let it,ct;const Ft=[];let _t=!1;(ob({value:K})||h)&&(W?it=W(K):_t=!0);const at=Ge.map(gt=>{if(!C.isValidElement(gt))return null;let ut;if(S){if(!Array.isArray(K))throw new Error(Ll(2));ut=K.some($t=>rP($t,gt.props.value)),ut&&_t&&Ft.push(gt.props.children)}else ut=rP(K,gt.props.value),ut&&_t&&(ct=gt.props.children);return C.cloneElement(gt,{"aria-selected":ut?"true":"false",onClick:Ne(gt),onKeyUp:$t=>{$t.key===" "&&$t.preventDefault(),gt.props.onKeyUp&&gt.props.onKeyUp($t)},role:"option",selected:ut,value:void 0,"data-value":gt.props.value})});_t&&(S?Ft.length===0?it=null:it=Ft.reduce((gt,ut,$t)=>(gt.push(ut),$t<Ft.length-1&&gt.push(", "),gt),[]):it=ct);let Ze=ce;!a&&ae&&pe&&(Ze=Ce.clientWidth);let rt;typeof I<"u"?rt=I:rt=c?null:0;const je=k.id||(M?`mui-component-select-${M}`:void 0),he={...e,variant:A,value:K,open:xt,error:y},We=Kne(he),Me={...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 m.jsxs(C.Fragment,{children:[m.jsx(Wne,{as:"div",ref:we,tabIndex:rt,role:"combobox","aria-controls":xt?Mt:void 0,"aria-disabled":c?"true":void 0,"aria-expanded":xt?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[x,je].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":_?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:le,onMouseDown:c||F?null:ue,onBlur:Fe,onFocus:P,...k,ownerState:he,className:Nt(k.className,We.select,l),id:je,children:Gne(it)?nP||(nP=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):it}),m.jsx(Yne,{"aria-invalid":y,value:Array.isArray(K)?K.join(","):K,name:M,ref:ne,"aria-hidden":!0,onChange:ze,tabIndex:-1,disabled:c,className:We.nativeInput,autoFocus:o,required:_,...Z,ownerState:he}),m.jsx(qne,{as:b,className:We.icon,ownerState:he}),m.jsx(Fne,{id:`menu-${M||""}`,anchorEl:Ce,open:xt,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:{...Me,style:{minWidth:Ze,...Me!=null?Me.style:null}}},children:at})]})}),DI=sr(m.jsx("path",{d:"M7 10l5 5 5-5z"})),Xne=e=>{const{classes:t}=e,n=tn({root:["root"]},PI,t);return{...t,...n}},xk={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Fa(e)&&e!=="variant"},Zne=Qe(gk,xk)(""),Jne=Qe(vk,xk)(""),ere=Qe(yk,xk)(""),AI=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:u=!1,IconComponent:f=DI,id:c,input:h,inputProps:y,label:b,labelId:v,MenuProps:x,multiple:w=!1,native:S=!1,onClose:M,onOpen:T,open:R,renderValue:$,SelectDisplayProps:P,variant:N="outlined",...V}=n,F=S?Hne:Qne,W=mi(),_=hd({props:n,muiFormControl:W,states:["variant","error"]}),k=_.variant||N,I={...n,variant:k,classes:a},z=Xne(I),{root:H,...A}=z,Z=h||{standard:m.jsx(Zne,{ownerState:I}),outlined:m.jsx(Jne,{label:b,ownerState:I}),filled:m.jsx(ere,{ownerState:I})}[k],K=mr(t,vp(Z));return m.jsx(C.Fragment,{children:C.cloneElement(Z,{inputComponent:F,inputProps:{children:o,error:_.error,IconComponent:f,variant:k,type:void 0,multiple:w,...S?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:x,onClose:M,onOpen:T,open:R,renderValue:$,SelectDisplayProps:{id:c,...P}},...y,classes:y?ra(A,y.classes):A,...h?h.props.inputProps:{}},...(w&&S||u)&&k==="outlined"?{notched:!0}:{},ref:K,className:Nt(Z.props.className,s,z.root),...!h&&{variant:k},...V})})});AI.muiName="Select";function tre(e){return on("MuiTextField",e)}Kt("MuiTextField",["root"]);const nre={standard:gk,filled:yk,outlined:vk},rre=e=>{const{classes:t}=e;return tn({root:["root"]},tre,t)},ore=Qe(bI,{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:u,disabled:f=!1,error:c=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:b,id:v,InputLabelProps:x,inputProps:w,InputProps:S,inputRef:M,label:T,maxRows:R,minRows:$,multiline:P=!1,name:N,onBlur:V,onChange:F,onFocus:W,placeholder:_,required:k=!1,rows:I,select:z=!1,SelectProps:H,slots:A={},slotProps:Z={},type:K,value:te,variant:X="outlined",...Q}=n,ne={...n,autoFocus:o,color:l,disabled:f,error:c,fullWidth:y,multiline:P,required:k,select:z,variant:X},ie=rre(ne),pe=ys(v),oe=b&&pe?`${pe}-helper-text`:void 0,ae=T&&pe?`${pe}-label`:void 0,ce=nre[X],me={slots:A,slotProps:{input:S,inputLabel:x,htmlInput:w,formHelperText:h,select:H,...Z}},ye={},we=me.slotProps.inputLabel;X==="outlined"&&(we&&typeof we.shrink<"u"&&(ye.notched=we.shrink),ye.label=T),z&&((!H||!H.native)&&(ye.id=void 0),ye["aria-describedby"]=void 0);const[Ce,Te]=ir("root",{elementType:ore,shouldForwardComponentProp:!0,externalForwardedProps:{...me,...Q},ownerState:ne,className:Nt(ie.root,s),ref:t,additionalProps:{disabled:f,error:c,fullWidth:y,required:k,color:l,variant:X}}),[ue,ke]=ir("input",{elementType:ce,externalForwardedProps:me,additionalProps:ye,ownerState:ne}),[Ge,ze]=ir("inputLabel",{elementType:vI,externalForwardedProps:me,ownerState:ne}),[Ne,le]=ir("htmlInput",{elementType:"input",externalForwardedProps:me,ownerState:ne}),[xt,Fe]=ir("formHelperText",{elementType:xI,externalForwardedProps:me,ownerState:ne}),[it,ct]=ir("select",{elementType:AI,externalForwardedProps:me,ownerState:ne}),Ft=m.jsx(ue,{"aria-describedby":oe,autoComplete:r,autoFocus:o,defaultValue:u,fullWidth:y,multiline:P,name:N,rows:I,maxRows:R,minRows:$,type:K,value:te,id:pe,inputRef:M,onBlur:V,onChange:F,onFocus:W,placeholder:_,inputProps:le,slots:{input:A.htmlInput?Ne:void 0},...ke});return m.jsxs(Ce,{...Te,children:[T!=null&&T!==""&&m.jsx(Ge,{htmlFor:pe,id:ae,...ze,children:T}),z?m.jsx(it,{"aria-describedby":oe,id:pe,labelId:ae,value:te,input:Ft,...ct,children:a}):Ft,b&&m.jsx(xt,{id:oe,...Fe,children:b})]})});function are(e){return on("MuiTypography",e)}const oP=Kt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),ire={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},sre=UJ(),lre=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,are,s)},cre=Qe("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(pa()).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}}]}))),aP={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=!ire[n],a=sre({...r,...o&&{color:n}}),{align:s="inherit",className:l,component:u,gutterBottom:f=!1,noWrap:c=!1,paragraph:h=!1,variant:y="body1",variantMapping:b=aP,...v}=a,x={...a,align:s,color:n,className:l,component:u,gutterBottom:f,noWrap:c,paragraph:h,variant:y,variantMapping:b},w=u||(h?"p":b[y]||aP[y])||"span",S=lre(x);return m.jsx(cre,{as:w,ref:t,className:Nt(S.root,l),...v,ownerState:x,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...v.style}})}),ure=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function iP({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 sP(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function dre(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:u,getOptionLabel:f})=>{let c=s?u.trim():u;n&&(c=c.toLowerCase()),t&&(c=sP(c));const h=c?l.filter(y=>{let b=(a||f)(y);return n&&(b=b.toLowerCase()),t&&(b=sP(b)),o==="start"?b.startsWith(c):b.includes(c)}):l;return typeof r=="number"?h.slice(0,r):h}}const fre=dre(),lP=5,pre=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),hre=[];function cP(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function mre(e){const{unstable_isActiveElementInListbox:t=pre,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:u=!1,componentName:f="useAutocomplete",defaultValue:c=e.multiple?hre:null,disableClearable:h=!1,disableCloseOnSelect:y=!1,disabled:b,disabledItemsFocusable:v=!1,disableListWrap:x=!1,filterOptions:w=fre,filterSelectedOptions:S=!1,freeSolo:M=!1,getOptionDisabled:T,getOptionKey:R,getOptionLabel:$=de=>de.label??de,groupBy:P,handleHomeEndKeys:N=!e.freeSolo,id:V,includeInputInList:F=!1,inputValue:W,isOptionEqualToValue:_=(de,fe)=>de===fe,multiple:k=!1,onChange:I,onClose:z,onHighlightChange:H,onInputChange:A,onOpen:Z,open:K,openOnFocus:te=!1,options:X,readOnly:Q=!1,renderValue:ne,selectOnFocus:ie=!e.freeSolo,value:pe}=e,oe=ys(V);let ae=$;ae=de=>{const fe=$(de);return typeof fe!="string"?String(fe):fe};const ce=C.useRef(!1),me=C.useRef(!0),ye=C.useRef(null),we=C.useRef(null),[Ce,Te]=C.useState(null),[ue,ke]=C.useState(-1),Ge=o?0:-1,ze=C.useRef(Ge),Ne=C.useRef(cP(c??pe,k,ae)).current,[le,xt]=ui({controlled:pe,default:c,name:f}),[Fe,it]=ui({controlled:W,default:Ne,name:f,state:"inputValue"}),[ct,Ft]=C.useState(!1),_t=C.useCallback((de,fe,Ve)=>{if(!(k?le.length<fe.length:fe!==null)&&!l)return;const vt=cP(fe,k,ae,ne);Fe!==vt&&(it(vt),A&&A(de,vt,Ve))},[ae,Fe,k,A,it,l,le,ne]),[at,Ze]=ui({controlled:K,default:!1,name:f,state:"open"}),[rt,je]=C.useState(!0),he=!k&&le!=null&&Fe===ae(le),We=at&&!Q,Me=We?w(X.filter(de=>!(S&&(k?le:[le]).some(fe=>fe!==null&&_(de,fe)))),{inputValue:he&&rt?"":Fe,getOptionLabel:ae}):[],kt=ure({filteredOptions:Me,value:le,inputValue:Fe});C.useEffect(()=>{const de=le!==kt.value;ct&&!de||M&&!de||_t(null,le,"reset")},[le,_t,ct,kt.value,M]);const Mt=at&&Me.length>0&&!Q,gt=Lt(de=>{if(de===-1)ye.current.focus();else{const fe=ne?"data-item-index":"data-tag-index";Ce.querySelector(`[${fe}="${de}"]`).focus()}});C.useEffect(()=>{k&&ue>le.length-1&&(ke(-1),gt(-1))},[le,k,ue,gt]);function ut(de,fe){if(!we.current||de<0||de>=Me.length)return-1;let Ve=de;for(;;){const vt=we.current.querySelector(`[data-option-index="${Ve}"]`),Ke=v?!1:!vt||vt.disabled||vt.getAttribute("aria-disabled")==="true";if(vt&&vt.hasAttribute("tabindex")&&!Ke)return Ve;if(fe==="next"?Ve=(Ve+1)%Me.length:Ve=(Ve-1+Me.length)%Me.length,Ve===de)return-1}}const $t=Lt(({event:de,index:fe,reason:Ve})=>{if(ze.current=fe,fe===-1?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant",`${oe}-option-${fe}`),H&&["mouse","keyboard","touch"].includes(Ve)&&H(de,fe===-1?null:Me[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,pn=Ke.clientHeight+Ke.scrollTop,ge=nn.offsetTop+nn.offsetHeight;ge>pn?Ke.scrollTop=ge-Ke.clientHeight:nn.offsetTop-nn.offsetHeight*(P?1.3:0)<Ke.scrollTop&&(Ke.scrollTop=nn.offsetTop-nn.offsetHeight*(P?1.3:0))}}),Vt=Lt(({event:de,diff:fe,direction:Ve="next",reason:vt})=>{if(!We)return;const Ke=ut((()=>{const Zt=Me.length-1;if(fe==="reset")return Ge;if(fe==="start")return 0;if(fe==="end")return Zt;const nn=ze.current+fe;return nn<0?nn===-1&&F?-1:x&&ze.current!==-1||Math.abs(fe)>1?0:Zt:nn>Zt?nn===Zt+1&&F?-1:x||Math.abs(fe)>1?Zt:0:nn})(),Ve);if($t({index:Ke,reason:vt,event:de}),r&&fe!=="reset")if(Ke===-1)ye.current.value=Fe;else{const Zt=ae(Me[Ke]);ye.current.value=Zt,Zt.toLowerCase().indexOf(Fe.toLowerCase())===0&&Fe.length>0&&ye.current.setSelectionRange(Fe.length,Zt.length)}}),dn=!iP({array1:kt.filteredOptions,array2:Me,parser:ae}),vn=()=>{const de=(fe,Ve)=>{const vt=fe?ae(fe):"",Ke=Ve?ae(Ve):"";return vt===Ke};if(ze.current!==-1&&!iP({array1:kt.filteredOptions,array2:Me,parser:ae})&&kt.inputValue===Fe&&(k?le.length===kt.value.length&&kt.value.every((fe,Ve)=>ae(le[Ve])===ae(fe)):de(kt.value,le))){const fe=kt.filteredOptions[ze.current];if(fe)return Me.findIndex(Ve=>ae(Ve)===ae(fe))}return-1},Bn=C.useCallback(()=>{if(!We)return;const de=vn();if(de!==-1){ze.current=de;return}const fe=k?le[0]:le;if(Me.length===0||fe==null){Vt({diff:"reset"});return}if(we.current){if(fe!=null){const Ve=Me[ze.current];if(k&&Ve&&le.findIndex(Ke=>_(Ve,Ke))!==-1)return;const vt=Me.findIndex(Ke=>_(Ke,fe));vt===-1?Vt({diff:"reset"}):$t({index:vt});return}if(ze.current>=Me.length-1){$t({index:Me.length-1});return}$t({index:ze.current})}},[Me.length,k?!1:le,S,Vt,$t,We,Fe,k]),Wn=Lt(de=>{lw(we,de),de&&Bn()});C.useEffect(()=>{dn&&Bn()},[Bn,dn]);const Qt=de=>{at||(Ze(!0),je(!0),Z&&Z(de))},In=(de,fe)=>{at&&(Ze(!1),z&&z(de,fe))},be=(de,fe,Ve,vt)=>{if(k){if(le.length===fe.length&&le.every((Ke,Zt)=>Ke===fe[Zt]))return}else if(le===fe)return;I&&I(de,fe,Ve,vt),xt(fe)},zn=C.useRef(!1),En=(de,fe,Ve="selectOption",vt="options")=>{let Ke=Ve,Zt=fe;if(k){Zt=Array.isArray(le)?le.slice():[];const nn=Zt.findIndex(pn=>_(fe,pn));nn===-1?Zt.push(fe):vt!=="freeSolo"&&(Zt.splice(nn,1),Ke="removeOption")}_t(de,Zt,Ke),be(de,Zt,Ke,{option:fe}),!y&&(!de||!de.ctrlKey&&!de.metaKey)&&In(de,Ke),(s===!0||s==="touch"&&zn.current||s==="mouse"&&!zn.current)&&ye.current.blur()};function Xt(de,fe){if(de===-1)return-1;let Ve=de;for(;;){if(fe==="next"&&Ve===le.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 se=(de,fe)=>{if(!k)return;Fe===""&&In(de,"toggleInput");let Ve=ue;ue===-1?Fe===""&&fe==="previous"&&(Ve=le.length-1):(Ve+=fe==="next"?1:-1,Ve<0&&(Ve=0),Ve===le.length&&(Ve=-1)),Ve=Xt(Ve,fe),ke(Ve),gt(Ve)},Pe=de=>{ce.current=!0,it(""),A&&A(de,"","clear"),be(de,k?[]:null,"clear")},Le=de=>fe=>{if(de.onKeyDown&&de.onKeyDown(fe),!fe.defaultMuiPrevented&&(ue!==-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:-lP,direction:"previous",reason:"keyboard",event:fe}),Qt(fe);break;case"PageDown":fe.preventDefault(),Vt({diff:lP,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):se(fe,"previous");break;case"ArrowRight":!k&&ne?gt(-1):se(fe,"next");break;case"Enter":if(ze.current!==-1&&We){const Ve=Me[ze.current],vt=T?T(Ve):!1;if(fe.preventDefault(),vt)return;En(fe,Ve,"selectOption"),r&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else M&&Fe!==""&&he===!1&&(k&&fe.preventDefault(),En(fe,Fe,"createOption","freeSolo"));break;case"Escape":We?(fe.preventDefault(),fe.stopPropagation(),In(fe,"escape")):u&&(Fe!==""||k&&le.length>0||ne)&&(fe.preventDefault(),fe.stopPropagation(),Pe(fe));break;case"Backspace":if(k&&!Q&&Fe===""&&le.length>0){const Ve=ue===-1?le.length-1:ue,vt=le.slice();vt.splice(Ve,1),be(fe,vt,"removeOption",{option:le[Ve]})}!k&&ne&&!Q&&(xt(null),gt(-1));break;case"Delete":if(k&&!Q&&Fe===""&&le.length>0&&ue!==-1){const Ve=ue,vt=le.slice();vt.splice(Ve,1),be(fe,vt,"removeOption",{option:le[Ve]})}!k&&ne&&!Q&&(xt(null),gt(-1));break}},qe=de=>{Ft(!0),te&&!ce.current&&Qt(de)},dt=de=>{if(t(we)){ye.current.focus();return}Ft(!1),me.current=!0,ce.current=!1,a&&ze.current!==-1&&We?En(de,Me[ze.current],"blur"):a&&M&&Fe!==""?En(de,Fe,"blur","freeSolo"):l&&_t(de,le,"blur"),In(de,"blur")},It=de=>{const fe=de.target.value;Fe!==fe&&(it(fe),je(!1),A&&A(de,fe,"input")),fe===""?!h&&!k&&be(de,null,"clear"):Qt(de)},Bt=de=>{const fe=Number(de.currentTarget.getAttribute("data-option-index"));ze.current!==fe&&$t({event:de,index:fe,reason:"mouse"})},Dt=de=>{$t({event:de,index:Number(de.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},mt=de=>{const fe=Number(de.currentTarget.getAttribute("data-option-index"));En(de,Me[fe],"selectOption"),zn.current=!1},At=de=>fe=>{const Ve=le.slice();Ve.splice(de,1),be(fe,Ve,"removeOption",{option:le[de]})},Et=de=>{be(de,null,"removeOption",{option:le})},wt=de=>{at?In(de,"toggleInput"):Qt(de)},Wt=de=>{de.currentTarget.contains(de.target)&&de.target.getAttribute("id")!==oe&&de.preventDefault()},On=de=>{de.currentTarget.contains(de.target)&&(ye.current.focus(),ie&&me.current&&ye.current.selectionEnd-ye.current.selectionStart===0&&ye.current.select(),me.current=!1)},qn=de=>{!b&&(Fe===""||!at)&&wt(de)};let bn=M&&Fe.length>0;bn=bn||(k?le.length>0:le!==null);let fn=Me;return P&&(fn=Me.reduce((de,fe,Ve)=>{const vt=P(fe);return de.length>0&&de[de.length-1].group===vt?de[de.length-1].options.push(fe):de.push({key:Ve,index:Ve,group:vt,options:[fe]}),de},[])),b&&ct&&dt(),{getRootProps:(de={})=>({...de,onKeyDown:Le(de),onMouseDown:Wt,onClick:On}),getInputLabelProps:()=>({id:`${oe}-label`,htmlFor:oe}),getInputProps:()=>({id:oe,value:Fe,onBlur:dt,onFocus:qe,onChange:It,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:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getItemProps:({index:de=0}={})=>({...k&&{key:de},...ne?{"data-item-index":de}:{"data-tag-index":de},tabIndex:-1,...!Q&&{onDelete:k?At(de):Et}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:wt}),getTagProps:({index:de})=>({key:de,"data-tag-index":de,tabIndex:-1,...!Q&&{onDelete:At(de)}}),getListboxProps:()=>({role:"listbox",id:`${oe}-listbox`,"aria-labelledby":`${oe}-label`,ref:Wn,onMouseDown:de=>{de.preventDefault()}}),getOptionProps:({index:de,option:fe})=>{const Ve=(k?le:[le]).some(Ke=>Ke!=null&&_(fe,Ke)),vt=T?T(fe):!1;return{key:R?.(fe)??ae(fe),tabIndex:-1,role:"option",id:`${oe}-option-${de}`,onMouseMove:Bt,onClick:mt,onTouchStart:Dt,"data-option-index":de,"aria-disabled":vt,"aria-selected":Ve}},id:oe,inputValue:Fe,value:le,dirty:bn,expanded:We&&Ce,popupOpen:We,focused:ct||ue!==-1,anchorEl:Ce,setAnchorEl:Te,focusedItem:ue,focusedTag:ue,groupedOptions:fn}}var Aa="top",Vi="bottom",Hi="right",ja="left",Sk="auto",Mg=[Aa,Vi,Hi,ja],rp="start",Km="end",gre="clippingParents",jI="viewport",Hh="popper",yre="reference",uP=Mg.reduce(function(e,t){return e.concat([t+"-"+rp,t+"-"+Km])},[]),NI=[].concat(Mg,[Sk]).reduce(function(e,t){return e.concat([t,t+"-"+rp,t+"-"+Km])},[]),vre="beforeRead",bre="read",xre="afterRead",Sre="beforeMain",wre="main",Cre="afterMain",kre="beforeWrite",Tre="write",Mre="afterWrite",Ere=[vre,bre,xre,Sre,wre,Cre,kre,Tre,Mre];function Js(e){return e?(e.nodeName||"").toLowerCase():null}function fi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ad(e){var t=fi(e).Element;return e instanceof t||e instanceof Element}function zi(e){var t=fi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wk(e){if(typeof ShadowRoot>"u")return!1;var t=fi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ore(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];!zi(a)||!Js(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 Rre(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,f){return u[f]="",u},{});!zi(o)||!Js(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const $re={name:"applyStyles",enabled:!0,phase:"write",fn:Ore,effect:Rre,requires:["computeStyles"]};function Qs(e){return e.split("-")[0]}var Ku=Math.max,ab=Math.min,op=Math.round;function mw(){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 II(){return!/^((?!chrome|android).)*safari/i.test(mw())}function ap(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&zi(e)&&(o=e.offsetWidth>0&&op(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&op(r.height)/e.offsetHeight||1);var s=ad(e)?fi(e):window,l=s.visualViewport,u=!II()&&n,f=(r.left+(u&&l?l.offsetLeft:0))/o,c=(r.top+(u&&l?l.offsetTop:0))/a,h=r.width/o,y=r.height/a;return{width:h,height:y,top:c,right:f+h,bottom:c+y,left:f,x:f,y:c}}function Ck(e){var t=ap(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 LI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Bl(e){return fi(e).getComputedStyle(e)}function Pre(e){return["table","td","th"].indexOf(Js(e))>=0}function Qc(e){return((ad(e)?e.ownerDocument:e.document)||window.document).documentElement}function b0(e){return Js(e)==="html"?e:e.assignedSlot||e.parentNode||(wk(e)?e.host:null)||Qc(e)}function dP(e){return!zi(e)||Bl(e).position==="fixed"?null:e.offsetParent}function Dre(e){var t=/firefox/i.test(mw()),n=/Trident/i.test(mw());if(n&&zi(e)){var r=Bl(e);if(r.position==="fixed")return null}var o=b0(e);for(wk(o)&&(o=o.host);zi(o)&&["html","body"].indexOf(Js(o))<0;){var a=Bl(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 Eg(e){for(var t=fi(e),n=dP(e);n&&Pre(n)&&Bl(n).position==="static";)n=dP(n);return n&&(Js(n)==="html"||Js(n)==="body"&&Bl(n).position==="static")?t:n||Dre(e)||t}function kk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Om(e,t,n){return Ku(e,ab(t,n))}function Are(e,t,n){var r=Om(e,t,n);return r>n?n:r}function zI(){return{top:0,right:0,bottom:0,left:0}}function FI(e){return Object.assign({},zI(),e)}function BI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var jre=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,FI(typeof e!="number"?e:BI(e,Mg))};function Nre(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Qs(n.placement),u=kk(l),f=[ja,Hi].indexOf(l)>=0,c=f?"height":"width";if(!(!a||!s)){var h=jre(o.padding,n),y=Ck(a),b=u==="y"?Aa:ja,v=u==="y"?Vi:Hi,x=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],w=s[u]-n.rects.reference[u],S=Eg(a),M=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,T=x/2-w/2,R=h[b],$=M-y[c]-h[v],P=M/2-y[c]/2+T,N=Om(R,P,$),V=u;n.modifiersData[r]=(t={},t[V]=N,t.centerOffset=N-P,t)}}function Ire(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)||LI(t.elements.popper,o)&&(t.elements.arrow=o))}const Lre={name:"arrow",enabled:!0,phase:"main",fn:Nre,effect:Ire,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ip(e){return e.split("-")[1]}var zre={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fre(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:op(n*o)/o||0,y:op(r*o)/o||0}}function fP(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,f=e.adaptive,c=e.roundOffsets,h=e.isFixed,y=s.x,b=y===void 0?0:y,v=s.y,x=v===void 0?0:v,w=typeof c=="function"?c({x:b,y:x}):{x:b,y:x};b=w.x,x=w.y;var S=s.hasOwnProperty("x"),M=s.hasOwnProperty("y"),T=ja,R=Aa,$=window;if(f){var P=Eg(n),N="clientHeight",V="clientWidth";if(P===fi(n)&&(P=Qc(n),Bl(P).position!=="static"&&l==="absolute"&&(N="scrollHeight",V="scrollWidth")),P=P,o===Aa||(o===ja||o===Hi)&&a===Km){R=Vi;var F=h&&P===$&&$.visualViewport?$.visualViewport.height:P[N];x-=F-r.height,x*=u?1:-1}if(o===ja||(o===Aa||o===Vi)&&a===Km){T=Hi;var W=h&&P===$&&$.visualViewport?$.visualViewport.width:P[V];b-=W-r.width,b*=u?1:-1}}var _=Object.assign({position:l},f&&zre),k=c===!0?Fre({x:b,y:x},fi(n)):{x:b,y:x};if(b=k.x,x=k.y,u){var I;return Object.assign({},_,(I={},I[R]=M?"0":"",I[T]=S?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+b+"px, "+x+"px)":"translate3d("+b+"px, "+x+"px, 0)",I))}return Object.assign({},_,(t={},t[R]=M?x+"px":"",t[T]=S?b+"px":"",t.transform="",t))}function Bre(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,u=l===void 0?!0:l,f={placement:Qs(t.placement),variation:ip(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,fP(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,fP(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ure={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bre,data:{}};var tv={passive:!0};function _re(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=fi(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(c){c.addEventListener("scroll",n.update,tv)}),l&&u.addEventListener("resize",n.update,tv),function(){a&&f.forEach(function(c){c.removeEventListener("scroll",n.update,tv)}),l&&u.removeEventListener("resize",n.update,tv)}}const Vre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_re,data:{}};var Hre={left:"right",right:"left",bottom:"top",top:"bottom"};function Ov(e){return e.replace(/left|right|bottom|top/g,function(t){return Hre[t]})}var Wre={start:"end",end:"start"};function pP(e){return e.replace(/start|end/g,function(t){return Wre[t]})}function Tk(e){var t=fi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mk(e){return ap(Qc(e)).left+Tk(e).scrollLeft}function qre(e,t){var n=fi(e),r=Qc(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var f=II();(f||!f&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+Mk(e),y:u}}function Yre(e){var t,n=Qc(e),r=Tk(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ku(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ku(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Mk(e),u=-r.scrollTop;return Bl(o||n).direction==="rtl"&&(l+=Ku(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function Ek(e){var t=Bl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function UI(e){return["html","body","#document"].indexOf(Js(e))>=0?e.ownerDocument.body:zi(e)&&Ek(e)?e:UI(b0(e))}function Rm(e,t){var n;t===void 0&&(t=[]);var r=UI(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=fi(r),s=o?[a].concat(a.visualViewport||[],Ek(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Rm(b0(s)))}function gw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Gre(e,t){var n=ap(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 hP(e,t,n){return t===jI?gw(qre(e,n)):ad(t)?Gre(t,n):gw(Yre(Qc(e)))}function Kre(e){var t=Rm(b0(e)),n=["absolute","fixed"].indexOf(Bl(e).position)>=0,r=n&&zi(e)?Eg(e):e;return ad(r)?t.filter(function(o){return ad(o)&&LI(o,r)&&Js(o)!=="body"}):[]}function Qre(e,t,n,r){var o=t==="clippingParents"?Kre(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(u,f){var c=hP(e,f,r);return u.top=Ku(c.top,u.top),u.right=ab(c.right,u.right),u.bottom=ab(c.bottom,u.bottom),u.left=Ku(c.left,u.left),u},hP(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 _I(e){var t=e.reference,n=e.element,r=e.placement,o=r?Qs(r):null,a=r?ip(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case Aa:u={x:s,y:t.y-n.height};break;case Vi:u={x:s,y:t.y+t.height};break;case Hi:u={x:t.x+t.width,y:l};break;case ja:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var f=o?kk(o):null;if(f!=null){var c=f==="y"?"height":"width";switch(a){case rp:u[f]=u[f]-(t[c]/2-n[c]/2);break;case Km:u[f]=u[f]+(t[c]/2-n[c]/2);break}}return u}function Qm(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,u=l===void 0?gre:l,f=n.rootBoundary,c=f===void 0?jI:f,h=n.elementContext,y=h===void 0?Hh:h,b=n.altBoundary,v=b===void 0?!1:b,x=n.padding,w=x===void 0?0:x,S=FI(typeof w!="number"?w:BI(w,Mg)),M=y===Hh?yre:Hh,T=e.rects.popper,R=e.elements[v?M:y],$=Qre(ad(R)?R:R.contextElement||Qc(e.elements.popper),u,c,s),P=ap(e.elements.reference),N=_I({reference:P,element:T,placement:o}),V=gw(Object.assign({},T,N)),F=y===Hh?V:P,W={top:$.top-F.top+S.top,bottom:F.bottom-$.bottom+S.bottom,left:$.left-F.left+S.left,right:F.right-$.right+S.right},_=e.modifiersData.offset;if(y===Hh&&_){var k=_[o];Object.keys(W).forEach(function(I){var z=[Hi,Vi].indexOf(I)>=0?1:-1,H=[Aa,Vi].indexOf(I)>=0?"y":"x";W[I]+=k[H]*z})}return W}function Xre(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?NI:u,c=ip(r),h=c?l?uP:uP.filter(function(v){return ip(v)===c}):Mg,y=h.filter(function(v){return f.indexOf(v)>=0});y.length===0&&(y=h);var b=y.reduce(function(v,x){return v[x]=Qm(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[Qs(x)],v},{});return Object.keys(b).sort(function(v,x){return b[v]-b[x]})}function Zre(e){if(Qs(e)===Sk)return[];var t=Ov(e);return[pP(e),t,pP(t)]}function Jre(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,f=n.padding,c=n.boundary,h=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,x=n.allowedAutoPlacements,w=t.options.placement,S=Qs(w),M=S===w,T=u||(M||!v?[Ov(w)]:Zre(w)),R=[w].concat(T).reduce(function(pe,oe){return pe.concat(Qs(oe)===Sk?Xre(t,{placement:oe,boundary:c,rootBoundary:h,padding:f,flipVariations:v,allowedAutoPlacements:x}):oe)},[]),$=t.rects.reference,P=t.rects.popper,N=new Map,V=!0,F=R[0],W=0;W<R.length;W++){var _=R[W],k=Qs(_),I=ip(_)===rp,z=[Aa,Vi].indexOf(k)>=0,H=z?"width":"height",A=Qm(t,{placement:_,boundary:c,rootBoundary:h,altBoundary:y,padding:f}),Z=z?I?Hi:ja:I?Vi:Aa;$[H]>P[H]&&(Z=Ov(Z));var K=Ov(Z),te=[];if(a&&te.push(A[k]<=0),l&&te.push(A[Z]<=0,A[K]<=0),te.every(function(pe){return pe})){F=_,V=!1;break}N.set(_,te)}if(V)for(var X=v?3:1,Q=function(pe){var oe=R.find(function(ae){var ce=N.get(ae);if(ce)return ce.slice(0,pe).every(function(me){return me})});if(oe)return F=oe,"break"},ne=X;ne>0;ne--){var ie=Q(ne);if(ie==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const eoe={name:"flip",enabled:!0,phase:"main",fn:Jre,requiresIfExists:["offset"],data:{_skip:!1}};function mP(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 gP(e){return[Aa,Hi,Vi,ja].some(function(t){return e[t]>=0})}function toe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Qm(t,{elementContext:"reference"}),l=Qm(t,{altBoundary:!0}),u=mP(s,r),f=mP(l,o,a),c=gP(u),h=gP(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const noe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:toe};function roe(e,t,n){var r=Qs(e),o=[ja,Aa].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,[ja,Hi].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function ooe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=NI.reduce(function(c,h){return c[h]=roe(h,t.rects,a),c},{}),l=s[t.placement],u=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const aoe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ooe};function ioe(e){var t=e.state,n=e.name;t.modifiersData[n]=_I({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const soe={name:"popperOffsets",enabled:!0,phase:"read",fn:ioe,data:{}};function loe(e){return e==="x"?"y":"x"}function coe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,f=n.rootBoundary,c=n.altBoundary,h=n.padding,y=n.tether,b=y===void 0?!0:y,v=n.tetherOffset,x=v===void 0?0:v,w=Qm(t,{boundary:u,rootBoundary:f,padding:h,altBoundary:c}),S=Qs(t.placement),M=ip(t.placement),T=!M,R=kk(S),$=loe(R),P=t.modifiersData.popperOffsets,N=t.rects.reference,V=t.rects.popper,F=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(P){if(a){var I,z=R==="y"?Aa:ja,H=R==="y"?Vi:Hi,A=R==="y"?"height":"width",Z=P[R],K=Z+w[z],te=Z-w[H],X=b?-V[A]/2:0,Q=M===rp?N[A]:V[A],ne=M===rp?-V[A]:-N[A],ie=t.elements.arrow,pe=b&&ie?Ck(ie):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zI(),ae=oe[z],ce=oe[H],me=Om(0,N[A],pe[A]),ye=T?N[A]/2-X-me-ae-W.mainAxis:Q-me-ae-W.mainAxis,we=T?-N[A]/2+X+me+ce+W.mainAxis:ne+me+ce+W.mainAxis,Ce=t.elements.arrow&&Eg(t.elements.arrow),Te=Ce?R==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,ue=(I=_?.[R])!=null?I:0,ke=Z+ye-ue-Te,Ge=Z+we-ue,ze=Om(b?ab(K,ke):K,Z,b?Ku(te,Ge):te);P[R]=ze,k[R]=ze-Z}if(l){var Ne,le=R==="x"?Aa:ja,xt=R==="x"?Vi:Hi,Fe=P[$],it=$==="y"?"height":"width",ct=Fe+w[le],Ft=Fe-w[xt],_t=[Aa,ja].indexOf(S)!==-1,at=(Ne=_?.[$])!=null?Ne:0,Ze=_t?ct:Fe-N[it]-V[it]-at+W.altAxis,rt=_t?Fe+N[it]+V[it]-at-W.altAxis:Ft,je=b&&_t?Are(Ze,Fe,rt):Om(b?Ze:ct,Fe,b?rt:Ft);P[$]=je,k[$]=je-Fe}t.modifiersData[r]=k}}const uoe={name:"preventOverflow",enabled:!0,phase:"main",fn:coe,requiresIfExists:["offset"]};function doe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function foe(e){return e===fi(e)||!zi(e)?Tk(e):doe(e)}function poe(e){var t=e.getBoundingClientRect(),n=op(t.width)/e.offsetWidth||1,r=op(t.height)/e.offsetHeight||1;return n!==1||r!==1}function hoe(e,t,n){n===void 0&&(n=!1);var r=zi(t),o=zi(t)&&poe(t),a=Qc(t),s=ap(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Js(t)!=="body"||Ek(a))&&(l=foe(t)),zi(t)?(u=ap(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Mk(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function moe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function goe(e){var t=moe(e);return Ere.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function yoe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function voe(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 yP={placement:"bottom",modifiers:[],strategy:"absolute"};function vP(){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 boe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?yP:o;return function(s,l,u){u===void 0&&(u=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},yP,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},c=[],h=!1,y={state:f,setOptions:function(x){var w=typeof x=="function"?x(f.options):x;v(),f.options=Object.assign({},a,f.options,w),f.scrollParents={reference:ad(s)?Rm(s):s.contextElement?Rm(s.contextElement):[],popper:Rm(l)};var S=goe(voe([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(M){return M.enabled}),b(),y.update()},forceUpdate:function(){if(!h){var x=f.elements,w=x.reference,S=x.popper;if(vP(w,S)){f.rects={reference:hoe(w,Eg(S),f.options.strategy==="fixed"),popper:Ck(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 M=0;M<f.orderedModifiers.length;M++){if(f.reset===!0){f.reset=!1,M=-1;continue}var T=f.orderedModifiers[M],R=T.fn,$=T.options,P=$===void 0?{}:$,N=T.name;typeof R=="function"&&(f=R({state:f,options:P,name:N,instance:y})||f)}}}},update:yoe(function(){return new Promise(function(x){y.forceUpdate(),x(f)})}),destroy:function(){v(),h=!0}};if(!vP(s,l))return y;y.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function b(){f.orderedModifiers.forEach(function(x){var w=x.name,S=x.options,M=S===void 0?{}:S,T=x.effect;if(typeof T=="function"){var R=T({state:f,name:w,instance:y,options:M}),$=function(){};c.push(R||$)}})}function v(){c.forEach(function(x){return x()}),c=[]}return y}}var xoe=[Vre,soe,Ure,$re,aoe,eoe,uoe,Lre,noe],Soe=boe({defaultModifiers:xoe});function woe(e){return on("MuiPopper",e)}Kt("MuiPopper",["root"]);function Coe(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 yw(e){return typeof e=="function"?e():e}function koe(e){return e.nodeType!==void 0}const Toe=e=>{const{classes:t}=e;return tn({root:["root"]},woe,t)},Moe={},Eoe=C.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:a,modifiers:s,open:l,placement:u,popperOptions:f,popperRef:c,slotProps:h={},slots:y={},TransitionProps:b,ownerState:v,...x}=e,w=C.useRef(null),S=mr(w,t),M=C.useRef(null),T=mr(M,c),R=C.useRef(T);Po(()=>{R.current=T},[T]),C.useImperativeHandle(c,()=>M.current,[]);const $=Coe(u,o),[P,N]=C.useState($),[V,F]=C.useState(yw(n));C.useEffect(()=>{M.current&&M.current.forceUpdate()}),C.useEffect(()=>{n&&F(yw(n))},[n]),Po(()=>{if(!V||!l)return;const z=Z=>{N(Z.placement)};let H=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{z(Z)}}];s!=null&&(H=H.concat(s)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const A=Soe(V,w.current,{placement:$,...f,modifiers:H});return R.current(A),()=>{A.destroy(),R.current(null)}},[V,a,s,l,f,$]);const W={placement:P};b!==null&&(W.TransitionProps=b);const _=Toe(e),k=y.root??"div",I=xr({elementType:k,externalSlotProps:h.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:_.root});return m.jsx(k,{...I,children:typeof r=="function"?r(W):r})}),Ooe=C.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:f,placement:c="bottom",popperOptions:h=Moe,popperRef:y,style:b,transition:v=!1,slotProps:x={},slots:w={},...S}=e,[M,T]=C.useState(!0),R=()=>{T(!1)},$=()=>{T(!0)};if(!l&&!f&&(!v||M))return null;let P;if(o)P=o;else if(n){const F=yw(n);P=F&&koe(F)?$o(F).body:$o(null).body}const N=!f&&l&&(!v||M)?"none":void 0,V=v?{in:f,onEnter:R,onExited:$}:void 0;return m.jsx(TI,{disablePortal:s,container:P,children:m.jsx(Eoe,{anchorEl:n,direction:a,disablePortal:s,modifiers:u,ref:t,open:v?!M:f,placement:c,popperOptions:h,popperRef:y,slotProps:x,slots:w,...S,style:{position:"fixed",top:0,left:0,display:N,...b},TransitionProps:V,children:r})})}),Roe=Qe(Ooe,{name:"MuiPopper",slot:"Root"})({}),Ok=C.forwardRef(function(e,t){const n=gs(),r=Hn({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:u,disablePortal:f,keepMounted:c,modifiers:h,open:y,placement:b,popperOptions:v,popperRef:x,transition:w,slots:S,slotProps:M,...T}=r,R=S?.root??s?.Root,$={anchorEl:o,container:u,disablePortal:f,keepMounted:c,modifiers:h,open:y,placement:b,popperOptions:v,popperRef:x,transition:w,...T};return m.jsx(Roe,{as:a,direction:n?"rtl":"ltr",slots:{root:R},slotProps:M??l,...$,ref:t})});function $oe(e){return on("MuiListSubheader",e)}Kt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Poe=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,$oe,t)},Doe=Qe("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}}]}))),vw=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:u=!1,...f}=n,c={...n,color:o,component:a,disableGutters:s,disableSticky:l,inset:u},h=Poe(c);return m.jsx(Doe,{as:a,className:Nt(h.root,r),ref:t,ownerState:c,...f})});vw&&(vw.muiSkipListHighlight=!0);const Aoe=sr(m.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 joe(e){return on("MuiChip",e)}const ar=Kt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Noe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:u}=e,f={root:["root",u,n&&"disabled",`size${Tt(r)}`,`color${Tt(o)}`,l&&"clickable",l&&`clickableColor${Tt(o)}`,s&&"deletable",s&&`deletableColor${Tt(o)}`,`${u}${Tt(o)}`],label:["label",`label${Tt(r)}`],avatar:["avatar",`avatar${Tt(r)}`,`avatarColor${Tt(o)}`],icon:["icon",`icon${Tt(r)}`,`iconColor${Tt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Tt(r)}`,`deleteIconColor${Tt(o)}`,`deleteIcon${Tt(u)}Color${Tt(o)}`]};return tn(f,joe,t)},Ioe=Qe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:u}=n;return[{[`& .${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(u)}Color${Tt(r)}`]},t.root,t[`size${Tt(l)}`],t[`color${Tt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Tt(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Tt(r)}`],t[u],t[`${u}${Tt(r)}`]]}})(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(pa(["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(pa(["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(pa(["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(pa()).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}}}}))]}})),Loe=Qe("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 bP(e){return e.key==="Backspace"||e.key==="Delete"}const VI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:f=!1,icon:c,label:h,onClick:y,onDelete:b,onKeyDown:v,onKeyUp:x,size:w="medium",variant:S="filled",tabIndex:M,skipFocusWhenDisabled:T=!1,slots:R={},slotProps:$={},...P}=n,N=C.useRef(null),V=mr(N,t),F=oe=>{oe.stopPropagation(),b&&b(oe)},W=oe=>{oe.currentTarget===oe.target&&bP(oe)&&oe.preventDefault(),v&&v(oe)},_=oe=>{oe.currentTarget===oe.target&&b&&bP(oe)&&b(oe),x&&x(oe)},k=a!==!1&&y?!0:a,I=k||b?rd:l||"div",z={...n,component:I,disabled:f,size:w,color:s,iconColor:C.isValidElement(c)&&c.props.color||s,onDelete:!!b,clickable:k,variant:S},H=Noe(z),A=I===rd?{component:l||"div",focusVisibleClassName:H.focusVisible,...b&&{disableRipple:!0}}:{};let Z=null;b&&(Z=u&&C.isValidElement(u)?C.cloneElement(u,{className:Nt(u.props.className,H.deleteIcon),onClick:F}):m.jsx(Aoe,{className:H.deleteIcon,onClick:F}));let K=null;r&&C.isValidElement(r)&&(K=C.cloneElement(r,{className:Nt(H.avatar,r.props.className)}));let te=null;c&&C.isValidElement(c)&&(te=C.cloneElement(c,{className:Nt(H.icon,c.props.className)}));const X={slots:R,slotProps:$},[Q,ne]=ir("root",{elementType:Ioe,externalForwardedProps:{...X,...P},ownerState:z,shouldForwardComponentProp:!0,ref:V,className:Nt(H.root,o),additionalProps:{disabled:k&&f?!0:void 0,tabIndex:T&&f?-1:M,...A},getSlotProps:oe=>({...oe,onClick:ae=>{oe.onClick?.(ae),y?.(ae)},onKeyDown:ae=>{oe.onKeyDown?.(ae),W(ae)},onKeyUp:ae=>{oe.onKeyUp?.(ae),_(ae)}})}),[ie,pe]=ir("label",{elementType:Loe,externalForwardedProps:X,ownerState:z,className:H.label});return m.jsxs(Q,{as:I,...ne,children:[K||te,m.jsx(ie,{...pe,children:h}),Z]})}),zoe=sr(m.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 Foe(e){return on("MuiAutocomplete",e)}const Qn=Kt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var xP,SP;const Boe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:u,popupOpen:f,size:c}=e,h={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${Tt(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return tn(h,Foe,t)},Uoe=Qe("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}.${oi.sizeSmall}`]:{[`& .${Oc.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ri.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}},[`& .${Ri.root}.${oi.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Qn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ai.root}`]:{paddingTop:19,paddingLeft:8,[`.${Qn.hasPopupIcon}&, .${Qn.hasClearIcon}&`]:{paddingRight:39},[`.${Qn.hasPopupIcon}.${Qn.hasClearIcon}&`]:{paddingRight:65},[`& .${ai.input}`]:{padding:"7px 4px"},[`& .${Qn.endAdornment}`]:{right:9}},[`& .${ai.root}.${oi.sizeSmall}`]:{paddingBottom:1,[`& .${ai.input}`]:{padding:"2.5px 4px"}},[`& .${oi.hiddenLabel}`]:{paddingTop:8},[`& .${ai.root}.${oi.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Qn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ai.root}.${oi.hiddenLabel}.${oi.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"}}}]}),_oe=Qe("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Voe=Qe(Kc,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),Hoe=Qe(Kc,{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)"}}]}),Woe=Qe(Ok,{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"}}]}))),qoe=Qe(pd,{name:"MuiAutocomplete",slot:"Paper"})(Vn(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Yoe=Qe("div",{name:"MuiAutocomplete",slot:"Loading"})(Vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Goe=Qe("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Koe=Qe("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}`)}}}}))),Qoe=Qe(vw,{name:"MuiAutocomplete",slot:"GroupLabel"})(Vn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Xoe=Qe("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Qn.option}`]:{paddingLeft:24}}),Zoe=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:u,clearIcon:f=xP||(xP=m.jsx(zoe,{fontSize:"small"})),clearOnBlur:c=!n.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:b="Close",componentsProps:v,defaultValue:x=n.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:S=!1,disabled:M=!1,disabledItemsFocusable:T=!1,disableListWrap:R=!1,disablePortal:$=!1,filterOptions:P,filterSelectedOptions:N=!1,forcePopupIcon:V="auto",freeSolo:F=!1,fullWidth:W=!1,getLimitTagsText:_=ge=>`+${ge}`,getOptionDisabled:k,getOptionKey:I,getOptionLabel:z,isOptionEqualToValue:H,groupBy:A,handleHomeEndKeys:Z=!n.freeSolo,id:K,includeInputInList:te=!1,inputValue:X,limitTags:Q=-1,ListboxComponent:ne,ListboxProps:ie,loading:pe=!1,loadingText:oe="Loading…",multiple:ae=!1,noOptionsText:ce="No options",onChange:me,onClose:ye,onHighlightChange:we,onInputChange:Ce,onOpen:Te,open:ue,openOnFocus:ke=!1,openText:Ge="Open",options:ze,PaperComponent:Ne,PopperComponent:le,popupIcon:xt=SP||(SP=m.jsx(DI,{})),readOnly:Fe=!1,renderGroup:it,renderInput:ct,renderOption:Ft,renderTags:_t,renderValue:at,selectOnFocus:Ze=!n.freeSolo,size:rt="medium",slots:je={},slotProps:he={},value:We,...Me}=n,{getRootProps:kt,getInputProps:Mt,getInputLabelProps:gt,getPopupIndicatorProps:ut,getClearProps:$t,getItemProps:Vt,getListboxProps:dn,getOptionProps:vn,value:Bn,dirty:Wn,expanded:Qt,id:In,popupOpen:be,focused:zn,focusedItem:En,anchorEl:Xt,setAnchorEl:se,inputValue:Pe,groupedOptions:Le}=mre({...n,componentName:"Autocomplete"}),qe=!w&&!M&&Wn&&!Fe,dt=(!F||V===!0)&&V!==!1,{onMouseDown:It}=Mt(),{ref:Bt,...Dt}=dn(),mt=z||(ge=>ge.label??ge),At={...n,disablePortal:$,expanded:Qt,focused:zn,fullWidth:W,getOptionLabel:mt,hasClearIcon:qe,hasPopupIcon:dt,inputFocused:En===-1,popupOpen:be,size:rt},Et=Boe(At),wt={slots:{paper:Ne,popper:le,...je},slotProps:{chip:l,listbox:ie,...v,...he}},[Wt,On]=ir("listbox",{elementType:Koe,externalForwardedProps:wt,ownerState:At,className:Et.listbox,additionalProps:Dt,ref:Bt}),[qn,bn]=ir("paper",{elementType:pd,externalForwardedProps:wt,ownerState:At,className:Et.paper}),[fn,de]=ir("popper",{elementType:Ok,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=ge=>({className:Et.tag,disabled:M,...Vt(ge)});if(ae?Bn.length>0&&(_t?fe=_t(Bn,Ve,At):at?fe=at(Bn,Ve,At):fe=Bn.map((ge,Oe)=>{const{key:He,...yt}=Ve({index:Oe});return m.jsx(VI,{label:mt(ge),size:rt,...yt,...wt.slotProps.chip},He)})):at&&Bn!=null&&(fe=at(Bn,Ve,At)),Q>-1&&Array.isArray(fe)){const ge=fe.length-Q;!zn&&ge>0&&(fe=fe.splice(0,Q),fe.push(m.jsx("span",{className:Et.tag,children:_(ge)},fe.length)))}const vt=it||(ge=>m.jsxs("li",{children:[m.jsx(Qoe,{className:Et.groupLabel,ownerState:At,component:"div",children:ge.group}),m.jsx(Xoe,{className:Et.groupUl,ownerState:At,children:ge.children})]},ge.key)),Ke=Ft||((ge,Oe)=>{const{key:He,...yt}=ge;return m.jsx("li",{...yt,children:mt(Oe)},He)}),Zt=(ge,Oe)=>{const He=vn({option:ge,index:Oe});return Ke({...He,className:Et.option},ge,{selected:He["aria-selected"],index:Oe,inputValue:Pe},At)},nn=wt.slotProps.clearIndicator,pn=wt.slotProps.popupIndicator;return m.jsxs(C.Fragment,{children:[m.jsx(Uoe,{ref:t,className:Nt(Et.root,u),ownerState:At,...kt(Me),children:ct({id:In,disabled:M,fullWidth:!0,size:rt==="small"?"small":void 0,InputLabelProps:gt(),InputProps:{ref:se,className:Et.inputRoot,startAdornment:fe,onMouseDown:ge=>{ge.target===ge.currentTarget&&It(ge)},...(qe||dt)&&{endAdornment:m.jsxs(_oe,{className:Et.endAdornment,ownerState:At,children:[qe?m.jsx(Voe,{...$t(),"aria-label":y,title:y,ownerState:At,...nn,className:Nt(Et.clearIndicator,nn?.className),children:f}):null,dt?m.jsx(Hoe,{...ut(),disabled:M,"aria-label":be?b:Ge,title:be?b:Ge,ownerState:At,...pn,className:Nt(Et.popupIndicator,pn?.className),children:xt}):null]})}},inputProps:{className:Et.input,disabled:M,readOnly:Fe,...Mt()}})}),Xt?m.jsx(Woe,{as:fn,...de,children:m.jsxs(qoe,{as:qn,...bn,children:[pe&&Le.length===0?m.jsx(Yoe,{className:Et.loading,ownerState:At,children:oe}):null,Le.length===0&&!F&&!pe?m.jsx(Goe,{className:Et.noOptions,ownerState:At,role:"presentation",onMouseDown:ge=>{ge.preventDefault()},children:ce}):null,Le.length>0?m.jsx(Wt,{as:ne,...On,children:Le.map((ge,Oe)=>A?vt({key:ge.key,group:ge.group,children:ge.options.map((He,yt)=>Zt(He,ge.index+yt))}):Zt(ge,Oe))}):null]})}):null]})});var bw={exports:{}},Joe=bw.exports,wP;function eae(){return wP||(wP=1,(function(e,t){(function(n,r){e.exports=r()})(Joe,(function(){var n="week",r="year";return function(o,a,s){var l=a.prototype;l.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(r).add(1,r).date(f),h=s(this).endOf(n);if(c.isBefore(h))return 1}var y=s(this).startOf(r).date(f).startOf(n).subtract(1,"millisecond"),b=this.diff(y,n,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},l.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}}))})(bw)),bw.exports}var tae=eae();const nae=Ul(tae);var xw={exports:{}},rae=xw.exports,CP;function oae(){return CP||(CP=1,(function(e,t){(function(n,r){e.exports=r()})(rae,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,u={},f=function(w){return(w=+w)+(w>68?1900:2e3)},c=function(w){return function(S){this[w]=+S}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var M=S.match(/([+-]|\d\d)/g),T=60*M[1]+(+M[2]||0);return T===0?0:M[0]==="+"?-T:T})(w)}],y=function(w){var S=u[w];return S&&(S.indexOf?S:S.s.concat(S.f))},b=function(w,S){var M,T=u.meridiem;if(T){for(var R=1;R<=24;R+=1)if(w.indexOf(T(R,0,S))>-1){M=R>12;break}}else M=w===(S?"pm":"PM");return M},v={A:[l,function(w){this.afternoon=b(w,!1)}],a:[l,function(w){this.afternoon=b(w,!0)}],Q:[o,function(w){this.month=3*(w-1)+1}],S:[o,function(w){this.milliseconds=100*+w}],SS:[a,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[a,c("day")],Do:[l,function(w){var S=u.ordinal,M=w.match(/\d+/);if(this.day=M[0],S)for(var T=1;T<=31;T+=1)S(T).replace(/\[|\]/g,"")===w&&(this.day=T)}],w:[s,c("week")],ww:[a,c("week")],M:[s,c("month")],MM:[a,c("month")],MMM:[l,function(w){var S=y("months"),M=(y("monthsShort")||S.map((function(T){return T.slice(0,3)}))).indexOf(w)+1;if(M<1)throw new Error;this.month=M%12||M}],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:h,ZZ:h};function x(w){var S,M;S=w,M=u&&u.formats;for(var T=(w=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(W,_,k){var I=k&&k.toUpperCase();return _||M[k]||n[k]||M[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(z,H,A){return H||A.slice(1)}))}))).match(r),R=T.length,$=0;$<R;$+=1){var P=T[$],N=v[P],V=N&&N[0],F=N&&N[1];T[$]=F?{regex:V,parser:F}:P.replace(/^\[|\]$/g,"")}return function(W){for(var _={},k=0,I=0;k<R;k+=1){var z=T[k];if(typeof z=="string")I+=z.length;else{var H=z.regex,A=z.parser,Z=W.slice(I),K=H.exec(Z)[0];A.call(_,K),W=W.replace(K,"")}}return(function(te){var X=te.afternoon;if(X!==void 0){var Q=te.hours;X?Q<12&&(te.hours+=12):Q===12&&(te.hours=0),delete te.afternoon}})(_),_}}return function(w,S,M){M.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(f=w.parseTwoDigitYear);var T=S.prototype,R=T.parse;T.parse=function($){var P=$.date,N=$.utc,V=$.args;this.$u=N;var F=V[1];if(typeof F=="string"){var W=V[2]===!0,_=V[3]===!0,k=W||_,I=V[2];_&&(I=V[2]),u=this.$locale(),!W&&I&&(u=M.Ls[I]),this.$d=(function(Z,K,te,X){try{if(["x","X"].indexOf(K)>-1)return new Date((K==="X"?1e3:1)*Z);var Q=x(K)(Z),ne=Q.year,ie=Q.month,pe=Q.day,oe=Q.hours,ae=Q.minutes,ce=Q.seconds,me=Q.milliseconds,ye=Q.zone,we=Q.week,Ce=new Date,Te=pe||(ne||ie?1:Ce.getDate()),ue=ne||Ce.getFullYear(),ke=0;ne&&!ie||(ke=ie>0?ie-1:Ce.getMonth());var Ge,ze=oe||0,Ne=ae||0,le=ce||0,xt=me||0;return ye?new Date(Date.UTC(ue,ke,Te,ze,Ne,le,xt+60*ye.offset*1e3)):te?new Date(Date.UTC(ue,ke,Te,ze,Ne,le,xt)):(Ge=new Date(ue,ke,Te,ze,Ne,le,xt),we&&(Ge=X(Ge).week(we).toDate()),Ge)}catch{return new Date("")}})(P,F,N,M),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),k&&P!=this.format(F)&&(this.$d=new Date("")),u={}}else if(F instanceof Array)for(var z=F.length,H=1;H<=z;H+=1){V[1]=F[H-1];var A=M.apply(this,V);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}H===z&&(this.$d=new Date(""))}else R.call(this,$)}}}))})(xw)),xw.exports}var aae=oae();const iae=Ul(aae);var Sw={exports:{}},sae=Sw.exports,kP;function lae(){return kP||(kP=1,(function(e,t){(function(n,r){e.exports=r()})(sae,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var s=o.prototype,l=s.format;a.en.formats=n,s.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,c=(function(h,y){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,v,x){var w=x&&x.toUpperCase();return v||y[x]||n[x]||y[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,M,T){return M||T.slice(1)}))}))})(u,f===void 0?{}:f);return l.call(this,c)}}}))})(Sw)),Sw.exports}var cae=lae();const uae=Ul(cae);var ww={exports:{}},dae=ww.exports,TP;function fae(){return TP||(TP=1,(function(e,t){(function(n,r){e.exports=r()})(dae,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,u){var f=o(a),c=o(s),h=(u=u||"()")[0]==="(",y=u[1]===")";return(h?this.isAfter(f,l):!this.isBefore(f,l))&&(y?this.isBefore(c,l):!this.isAfter(c,l))||(h?this.isBefore(f,l):!this.isAfter(f,l))&&(y?this.isAfter(c,l):!this.isBefore(c,l))}}}))})(ww)),ww.exports}var pae=fae();const hae=Ul(pae);var Cw={exports:{}},mae=Cw.exports,MP;function gae(){return MP||(MP=1,(function(e,t){(function(n,r){e.exports=r()})(mae,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(s){var l=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var f=this.$utils(),c=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return f.s(l.week(),h==="w"?1:2,"0");case"W":case"WW":return f.s(l.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return f.s(String(l.$H===0?24:l.$H),h==="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 h}}));return a.bind(this)(c)}}}))})(Cw)),Cw.exports}var yae=gae();const vae=Ul(yae);$r.extend(uae);$r.extend(nae);$r.extend(hae);$r.extend(vae);const bae={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"},xae={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"},J1=["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(`
426
- `),EP=["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(`
427
- `),Sae=(e,t)=>t?(...n)=>e(...n).locale(t):e;class kw{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=bae,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(J1);return $r.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(J1);if(!this.hasTimezonePlugin())throw new Error(EP);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(J1);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(EP)}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,u,f)=>u||f.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,l,u)=>{const f=u&&u.toUpperCase();return l||o[u]||a(o[f])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()<o.utc():r.isBefore(o,"year"),this.isBeforeDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()<o.utc():r.isBefore(o,"day"),this.isWithinRange=(r,[o,a])=>r>=o&&r<=a,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let s=0,l=o;const u=[];for(;l<a;){const f=Math.floor(s/7);u[f]=u[f]||[],u[f].push(l),l=this.addDays(l,1),s+=1}return u},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const a=this.startOfYear(r),s=this.endOfYear(o),l=[];let u=a;for(;this.isBefore(u,s);)l.push(u),u=this.addYears(u,1);return l},this.dayjs=Sae($r,t),this.locale=t,this.formats=De({},xae,n),$r.extend(iae)}getDayOfWeek(t){return t.day()+1}}function wae(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),u=()=>{s(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[e,n]),a}const Cae={...Dm},HI=Cae.useSyncExternalStore;function kae(e,t,n,r,o){const a=C.useCallback(()=>t,[t]),s=C.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return a},[a,e,r,o,n]),[l,u]=C.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const f=n(e);return[()=>f.matches,c=>(f.addEventListener("change",c),()=>{f.removeEventListener("change",c)})]},[a,n,e]);return HI(u,l,s)}function WI(e={}){const{themeId:t}=e;return function(n,r={}){let o=XN();o&&t&&(o=o[t]||o);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=hI({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(`
428
- `)),(HI!==void 0?kae:wae)(c,s,l,u,f)}}WI();const qI=WI({themeId:yp}),Tae={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Wh=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Mae=({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}},ib=(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},$m=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:s,timezone:l})=>{const u=ib(s,s.date(void 0,l),e);n&&s.isBefore(o,u)&&(o=u),t&&s.isAfter(r,u)&&(r=u);let f=e,c=e;for(s.isBefore(e,o)&&(f=o,c=null),s.isAfter(e,r)&&(c&&(c=r),f=null);f||c;){if(f&&s.isAfter(f,r)&&(f=null),c&&s.isBefore(c,o)&&(c=null),f){if(!a(f))return f;f=s.addDays(f,1)}if(c){if(!a(c))return c;c=s.addDays(c,-1)}}return null},Eae=(e,t)=>t==null||!e.isValid(t)?null:t,Wi=(e,t,n)=>t==null||!e.isValid(t)?n:t,Oae=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Rk=(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},YI=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Rae=["year","month","day"],OP=e=>Rae.includes(e),$k=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Wh(n,["year"])?o.year:Wh(n,["month"])?o.month:Wh(n,["day"])?o.dayOfMonth:Wh(n,["month","year"])?`${o.month} ${o.year}`:Wh(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},$ae=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Pae=["hours","minutes","seconds"],Dae=e=>Pae.includes(e),RP=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Aae=(e,t)=>(n,r)=>e?t.isAfter(n,r):RP(n,t)>RP(r,t),_s={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},jae=e=>Math.max(...e.map(t=>_s[t.type]??1)),qh=(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},Nae=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let a=o?o():qh(t,n,YI(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=qh(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=qh(t,n,e.maxDate));const s=Aae(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=qh(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:ib(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=qh(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:ib(t,a,e.maxTime))),a},GI=(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(`
429
- `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Iae=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},x0=(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))},KI=(e,t,n,r)=>{switch(n){case"month":return Rk(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return x0(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[]}},$P="s",Lae=["0","1","2","3","4","5","6","7","8","9"],zae=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),$P)==="0"?Lae:Array.from({length:10}).map((n,r)=>e.formatByString(e.setSeconds(t,r),$P))},id=(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("")},Pk=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),PP=(e,t)=>{const n=id(e,t);return n!==" "&&!Number.isNaN(Number(n))},QI=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},XI=(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=QI(a,o.maxLength)),Pk(a,r)},Fae=(e,t,n,r,o,a,s,l)=>{const u=Iae(r),f=r==="Home",c=r==="End",h=n.value===""||f||c,y=()=>{const v=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),x=M=>XI(e,M,v,a,n),w=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let S;if(h){if(n.type==="year"&&!c&&!f)return e.formatByString(e.date(void 0,t),n.format);u>0||f?S=v.minimum:S=v.maximum}else S=parseInt(id(n.value,a),10)+u*w;return S%w!==0&&((u<0||f)&&(S+=w-(w+S)%w),(u>0||c)&&(S-=S%w)),S>v.maximum?x(v.minimum+(S-v.maximum-1)%(v.maximum-v.minimum+1)):S<v.minimum?x(v.maximum-(v.minimum-S-1)%(v.maximum-v.minimum+1)):x(S)},b=()=>{const v=KI(e,t,n.type,n.format);if(v.length===0)return n.value;if(h)return u>0||f?v[0]:v[v.length-1];const x=((v.indexOf(n.value)+u)%v.length+v.length)%v.length;return v[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():b()},Dk=(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(id(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},DP=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Bae=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,ZI=(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")}},Uae=(e,t,n)=>{const r=t.some(u=>u.type==="day"),o=[],a=[];for(let u=0;u<t.length;u+=1){const f=t[u];r&&f.type==="weekDay"||(o.push(f.format),a.push(Dk(f,"non-input",n)))}const s=o.join(" "),l=a.join(" ");return e.parse(l,s)},_ae=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Vae=(e,t,n)=>{const r=e.map(o=>{const a=Dk(o,n?"input-rtl":"input-ltr",t);return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},Hae=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),a=e.endOfDay(r),{maxDaysInMonth:s,longestMonth:l}=Rk(e,r).reduce((u,f)=>{const c=e.getDaysInMonth(f);return c>u.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:f}:u},{maxDaysInMonth:0,longestMonth:null});return{year:({format:u})=>({minimum:0,maximum:Bae(e,u)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:u})=>({minimum:1,maximum:u!=null&&e.isValid(u)?e.getDaysInMonth(u):s,longestMonth:l}),weekDay:({format:u,contentType:f})=>{if(f==="digit"){const c=x0(e,u).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:u})=>{const f=e.getHours(a);return id(e.formatByString(e.endOfDay(r),u),t)!==f.toString()?{minimum:1,maximum:Number(id(e.formatByString(e.startOfDay(r),u),t))}:{minimum:0,maximum:f}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Wae=(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=x0(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}},AP={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},jP=(e,t,n,r,o)=>[...n].sort((a,s)=>AP[a.type]-AP[s.type]).reduce((a,s)=>!o||s.modified?Wae(e,s,t,a):a,r),qae=()=>navigator.userAgent.toLowerCase().includes("android"),Yae=(e,t)=>{const n={};if(!t)return e.forEach((u,f)=>{const c=f===0?null:f-1,h=f===e.length-1?null:f+1;n[f]={leftIndex:c,rightIndex:h}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,s=0,l=e.length-1;for(;l>=0;){s=e.findIndex((u,f)=>f>=a&&u.endSeparator?.includes(" ")&&u.endSeparator!==" / "),s===-1&&(s=e.length-1);for(let u=s;u>=a;u-=1)o[u]=l,r[l]=u,l-=1;a=s+1}return e.forEach((u,f)=>{const c=o[f],h=c===0?null:r[c-1],y=c===e.length-1?null:r[c+1];n[f]={leftIndex:h,rightIndex:y}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Tw=(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},Gae=(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}},Kae=(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}},Qae=["value","referenceDate"],el={emptyValue:null,getTodayValue:YI,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Fn(e,Qae);return t!=null&&r.utils.isValid(t)?t:n??Nae(r)},cleanValue:Eae,areValuesEqual:Oae,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)},Xae={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&n?n:r(t),getV7HiddenInputValueFromSections:_ae,getV6InputValueFromSections:Vae,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)},Zae=["localeText"],Mw=C.createContext(null),sb=function(e){const{localeText:t}=e,n=Fn(e,Zae),{utils:r,localeText:o}=C.useContext(Mw)??{utils:void 0,localeText:void 0},a=Vr({props:n,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:u,dateLibInstance:f,adapterLocale:c,localeText:h}=a,y=C.useMemo(()=>De({},h,o,t),[h,o,t]),b=C.useMemo(()=>{if(!l)return r||null;const w=new l({locale:c,formats:u,instance:f});if(!w.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
430
- `));return w},[l,c,u,f,r]),v=C.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),x=C.useMemo(()=>({utils:b,defaultDates:v,localeText:y}),[v,b,y]);return m.jsx(Mw.Provider,{value:x,children:s})},Jae=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:De({},e)}}}}),JI=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)}},eL={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"},eie=eL;Jae(eL);const md=()=>{const e=C.useContext(Mw);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(`
431
- `));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(`
432
- `));const t=C.useMemo(()=>De({},eie,e.localeText),[e.localeText]);return C.useMemo(()=>De({},e,{localeText:t}),[e,t])},Hr=()=>md().utils,Og=()=>md().defaultDates,S0=e=>{const t=Hr(),n=C.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function tie(e){return on("MuiPickersToolbar",e)}Kt("MuiPickersToolbar",["root","content"]);const nie=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],rie=e=>{const{classes:t}=e;return tn({root:["root"],content:["content"]},tie,t)},oie=Qe("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"}}]})),aie=Qe("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"}}]}),iie=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,toolbarTitle:a,hidden:s,titleId:l}=n,u=Fn(n,nie),f=n,c=rie(f);return s?null:m.jsxs(oie,De({ref:t,className:Nt(c.root,o),ownerState:f},u,{children:[m.jsx(br,{color:"text.secondary",variant:"overline",id:l,children:a}),m.jsx(aie,{className:c.content,ownerState:f,children:r})]}))}),_l=()=>md().localeText;function sie(e){return on("MuiDatePickerToolbar",e)}Kt("MuiDatePickerToolbar",["root","title"]);const lie=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],cie=e=>{const{classes:t}=e;return tn({root:["root"],title:["title"]},sie,t)},uie=Qe(iie,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),die=Qe(br,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),fie=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:u}=n,f=Fn(n,lie),c=Hr(),h=_l(),y=cie(n),b=C.useMemo(()=>{if(!r)return s;const x=$k(c,{format:a,views:l},!0);return c.formatByString(r,x)},[r,a,s,c,l]),v=n;return m.jsx(uie,De({ref:t,toolbarTitle:h.datePickerToolbarTitle,isLandscape:o,className:Nt(y.root,u)},f,{children:m.jsx(die,{variant:"h4",align:o?"left":"center",ownerState:v,className:y.title,children:b})}))});function tL(e,t){const n=Hr(),r=Og(),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},Mae({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Wi(n,o.minDate,r.minDate),maxDate:Wi(n,o.maxDate,r.maxDate),slots:De({toolbar:fie},o.slots)})}const Rg=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:s,disablePast:l,disableFuture:u}=e,f=r.utils.date(void 0,n),c=Wi(r.utils,e.minDate,r.defaultDates.minDate),h=Wi(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(u&&r.utils.isAfterDay(t,f)):return"disableFuture";case!!(l&&r.utils.isBeforeDay(t,f)):return"disablePast";case!!(c&&r.utils.isBeforeDay(t,c)):return"minDate";case!!(h&&r.utils.isAfterDay(t,h)):return"maxDate";default:return null}};Rg.valueManager=el;const nL=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],pie=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],hie=["minDateTime","maxDateTime"],mie=[...nL,...pie,...hie],rL=e=>mie.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function oL(e){const{props:t,validator:n,value:r,timezone:o,onError:a}=e,s=md(),l=C.useRef(n.valueManager.defaultErrorState),u=n({adapter:s,value:r,timezone:o,props:t}),f=n.valueManager.hasError(u);C.useEffect(()=>{a&&!n.valueManager.isSameError(u,l.current)&&a(u,r),l.current=u},[n,a,u,r]);const c=Lt(h=>n({adapter:s,value:h,timezone:o,props:t}));return{validationError:u,hasValidationError:f,getValidationErrorForNewValue:c}}function gie(e){return on("MuiInputAdornment",e)}const NP=Kt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var IP;const yie=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Tt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},vie=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,gie,t)},bie=Qe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:yie})(Vn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${NP.positionStart}&:not(.${NP.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),aL=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:u,variant:f,...c}=n,h=mi()||{};let y=f;f&&h.variant,h&&!y&&(y=h.variant);const b={...n,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:u,variant:y},v=vie(b);return m.jsx(h0.Provider,{value:null,children:m.jsx(bie,{as:a,ownerState:b,className:Nt(v.root,o),ref:t,...c,children:typeof r=="string"&&!l?m.jsx(br,{color:"textSecondary",children:r}):m.jsxs(C.Fragment,{children:[u==="start"?IP||(IP=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})});function xie(e){return on("MuiPickersPopper",e)}Kt("MuiPickersPopper",["root","paper"]);function Sie(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const wie=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Ma=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ma(t.shadowRoot):t:null},Cie="@media (pointer: fine)",kie="@media (prefers-reduced-motion: reduce)",Uf=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),LP=Uf&&Uf[1]?parseInt(Uf[1],10):null,zP=Uf&&Uf[2]?parseInt(Uf[2],10):null,Tie=LP&&LP<10||zP&&zP<13||!1,iL=()=>qI(kie,{defaultMatches:!1})||Tie,Mie=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Eie=e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"]},xie,t)},Oie=Qe(Ok,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Rie=Qe(pd,{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 $ie(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Pie(e,t){const n=C.useRef(!1),r=C.useRef(!1),o=C.useRef(null),a=C.useRef(!1);C.useEffect(()=>{if(!e)return;function u(){a.current=!0}return document.addEventListener("mousedown",u,!0),document.addEventListener("touchstart",u,!0),()=>{document.removeEventListener("mousedown",u,!0),document.removeEventListener("touchstart",u,!0),a.current=!1}},[e]);const s=Lt(u=>{if(!a.current)return;const f=r.current;r.current=!1;const c=$o(o.current);if(!o.current||"clientX"in u&&$ie(u,c))return;if(n.current){n.current=!1;return}let h;u.composedPath?h=u.composedPath().indexOf(o.current)>-1:h=!c.documentElement.contains(u.target)||o.current.contains(u.target),!h&&!f&&t(u)}),l=()=>{r.current=!0};return C.useEffect(()=>{if(e){const u=$o(o.current),f=()=>{n.current=!0};return u.addEventListener("touchstart",s),u.addEventListener("touchmove",f),()=>{u.removeEventListener("touchstart",s),u.removeEventListener("touchmove",f)}}},[e,s]),C.useEffect(()=>{if(e){const u=$o(o.current);return u.addEventListener("click",s),()=>{u.removeEventListener("click",s),r.current=!1}}},[e,s]),[o,l,l]}const Die=C.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:s,paperClasses:l,onPaperClick:u,onPaperTouchStart:f}=e,c=Fn(e,Mie),h=De({},o,{placement:r}),y=xr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:h});return m.jsx(n,De({},c,y,{onClick:b=>{u(b),y.onClick?.(b)},onTouchStart:b=>{f(b),y.onTouchStart?.(b)},ownerState:h,children:a}))});function Aie(e){const t=Vr({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:a,onBlur:s,onDismiss:l,open:u,role:f,placement:c,slots:h,slotProps:y,reduceAnimations:b}=t;C.useEffect(()=>{function H(A){u&&A.key==="Escape"&&l()}return document.addEventListener("keydown",H),()=>{document.removeEventListener("keydown",H)}},[l,u]);const v=C.useRef(null);C.useEffect(()=>{f==="tooltip"||a&&!a()||(u?v.current=Ma(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[u,f,a]);const[x,w,S]=Pie(u,s??l),M=C.useRef(null),T=mr(M,o),R=mr(T,x),$=t,P=Eie($),N=iL(),V=b??N,F=H=>{H.key==="Escape"&&(H.stopPropagation(),l())},W=h?.desktopTransition??V?od:Gm,_=h?.desktopTrapFocus??kI,k=h?.desktopPaper??Rie,I=h?.popper??Oie,z=xr({elementType:I,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:f,open:u,anchorEl:n,placement:c,onKeyDown:F},className:P.root,ownerState:t});return m.jsx(I,De({},z,{children:({TransitionProps:H,placement:A})=>m.jsx(_,De({open:u,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:f==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:m.jsx(W,De({},H,y?.desktopTransition,{children:m.jsx(Die,{PaperComponent:k,ownerState:$,popperPlacement:A,ref:R,onPaperClick:w,onPaperTouchStart:S,paperClasses:P.paper,paperSlotProps:y?.desktopPaper,children:r})}))}))}))}const jie=({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}},Ak=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:a})=>{const s=Hr(),l=C.useRef(n),u=t??l.current??a.emptyValue,f=C.useMemo(()=>a.getTimezone(s,u),[s,a,u]),c=Lt(v=>f==null?v:a.setTimezone(s,f,v));let h;e?h=e:f?h=f:r?h=s.getTimezone(r):h="default";const y=C.useMemo(()=>a.setTimezone(s,h,u),[a,s,h,u]),b=Lt((v,...x)=>{const w=c(v);o?.(w,...x)});return{value:y,handleValueChange:b,timezone:h}},jk=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:a,valueManager:s})=>{const[l,u]=ui({name:e,state:"value",controlled:n,default:r??s.emptyValue}),f=Lt((c,...h)=>{u(c),a?.(c,...h)});return Ak({timezone:t,value:l,defaultValue:void 0,referenceDate:o,onChange:f,valueManager:s})},Nie=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},Iie=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},Lie=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},zie=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:s,value:l,defaultValue:u,closeOnSelect:f=r==="desktop",timezone:c,referenceDate:h}=e,{current:y}=C.useRef(u),{current:b}=C.useRef(l!==void 0),[v,x]=C.useState(c),w=Hr(),S=md(),{isOpen:M,setIsOpen:T}=jie(e),{timezone:R,value:$,handleValueChange:P}=Ak({timezone:c,value:l,defaultValue:y,referenceDate:h,onChange:s,valueManager:t}),[N,V]=C.useState(()=>{let me;return $!==void 0?me=$:y!==void 0?me=y:me=t.emptyValue,{draft:me,lastPublishedValue:me,lastCommittedValue:me,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),F=t.getTimezone(w,N.draft);v!==c&&(x(c),c&&F&&c!==F&&V(me=>De({},me,{draft:t.setTimezone(w,c,me.draft)})));const{getValidationErrorForNewValue:W}=oL({props:e,validator:o,timezone:R,value:N.draft,onError:e.onError}),_=Lt(me=>{const ye={action:me,dateState:N,hasChanged:Ge=>!t.areValuesEqual(w,me.value,Ge),isControlled:b,closeOnSelect:f},we=Nie(ye),Ce=Iie(ye),Te=Lie(ye);V(Ge=>De({},Ge,{draft:me.value,lastPublishedValue:we?me.value:Ge.lastPublishedValue,lastCommittedValue:Ce?me.value:Ge.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ue=null;const ke=()=>(ue||(ue={validationError:me.name==="setValueFromField"?me.context.validationError:W(me.value)},me.name==="setValueFromShortcut"&&(ue.shortcut=me.shortcut)),ue);we&&P(me.value,ke()),Ce&&a&&a(me.value,ke()),Te&&T(!1)});if(N.lastControlledValue!==l){const me=t.areValuesEqual(w,N.draft,$);V(ye=>De({},ye,{lastControlledValue:l},me?{}:{lastCommittedValue:$,lastPublishedValue:$,draft:$,hasBeenModifiedSinceMount:!0}))}const k=Lt(()=>{_({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),I=Lt(()=>{_({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),z=Lt(()=>{_({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),H=Lt(()=>{_({value:N.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),A=Lt(()=>{_({value:t.getTodayValue(w,R,n),name:"setValueFromAction",pickerAction:"today"})}),Z=Lt(me=>{me.preventDefault(),T(!0)}),K=Lt(me=>{me?.preventDefault(),T(!1)}),te=Lt((me,ye="partial")=>_({name:"setValueFromView",value:me,selectionState:ye})),X=Lt((me,ye,we)=>_({name:"setValueFromShortcut",value:me,changeImportance:ye,shortcut:we})),Q=Lt((me,ye)=>_({name:"setValueFromField",value:me,context:ye})),ne={onClear:k,onAccept:I,onDismiss:z,onCancel:H,onSetToday:A,onOpen:Z,onClose:K},ie={value:N.draft,onChange:Q},pe=C.useMemo(()=>t.cleanValue(w,N.draft),[w,t,N.draft]),oe={value:pe,onChange:te,onClose:K,open:M},ae=De({},ne,{value:pe,onChange:te,onSelectShortcut:X,isValid:me=>{const ye=o({adapter:S,value:me,timezone:R,props:e});return!t.hasError(ye)}}),ce=C.useMemo(()=>({onOpen:Z,onClose:K,open:M}),[M,K,Z]);return{open:M,fieldProps:ie,viewProps:oe,layoutProps:ae,actions:ne,contextValue:ce}};function sL({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:s,onFocusedViewChange:l}){const u=C.useRef(n),f=C.useRef(o),c=C.useRef(o.includes(n)?n:o[0]),[h,y]=ui({name:"useViews",state:"view",controlled:r,default:c.current}),b=C.useRef(a?h:null),[v,x]=ui({name:"useViews",state:"focusedView",controlled:s,default:b.current});C.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(N=>!o.includes(N)))&&(y(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,y,h,o]);const w=o.indexOf(h),S=o[w-1]??null,M=o[w+1]??null,T=Lt((N,V)=>{x(V?N:F=>N===F?null:F),l?.(N,V)}),R=Lt(N=>{T(N,!0),N!==h&&(y(N),t&&t(N))}),$=Lt(()=>{M&&R(M)}),P=Lt((N,V,F)=>{const W=V==="finish",_=F?o.indexOf(F)<o.length-1:!!M;if(e(N,W&&_?"partial":V,F),F&&F!==h){const k=o[o.indexOf(F)+1];k&&R(k)}else W&&$()});return{view:h,setView:R,focusedView:v,setFocusedView:T,nextView:M,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:$,setValueAndGoToNextView:P}}const Fie=["className","sx"],Bie=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:a})=>{const{onChange:s,open:l,onClose:u}=t,{view:f,views:c,openTo:h,onViewChange:y,viewRenderers:b,timezone:v}=e,x=Fn(e,Fie),{view:w,setView:S,defaultView:M,focusedView:T,setFocusedView:R,setValueAndGoToNextView:$}=sL({view:f,views:c,openTo:h,onChange:s,onViewChange:y,autoFocus:r}),{hasUIView:P,viewModeLookup:N}=C.useMemo(()=>c.reduce((I,z)=>{let H;return b[z]!=null?H="UI":H="field",I.viewModeLookup[z]=H,H==="UI"&&(I.hasUIView=!0),I},{hasUIView:!1,viewModeLookup:{}}),[b,c]),V=C.useMemo(()=>c.reduce((I,z)=>b[z]!=null&&Dae(z)?I+1:I,0),[b,c]),F=N[w],W=Lt(()=>F==="UI"),[_,k]=C.useState(F==="UI"?w:null);return _!==w&&N[w]==="UI"&&k(w),Po(()=>{F==="field"&&l&&(u(),setTimeout(()=>{a?.current?.setSelectedSections(w),a?.current?.focusField(w)}))},[w]),Po(()=>{if(!l)return;let I=w;F==="field"&&_!=null&&(I=_),I!==M&&N[I]==="UI"&&N[M]==="UI"&&(I=M),I!==w&&S(I),R(I,!0)},[l]),{hasUIView:P,shouldRestoreFocus:W,layoutProps:{views:c,view:_,onViewChange:S},renderCurrentView:()=>{if(_==null)return null;const I=b[_];if(I==null)return null;const z=De({},x,n,t,{views:c,timezone:v,onChange:$,view:_,onViewChange:S,focusedView:T,onFocusedViewChange:R,showViewSwitcher:V>1,timeViewsCount:V});return o?o(b,_,z):I(z)}}};function FP(){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 Uie=(e,t)=>{const[n,r]=C.useState(FP);return Po(()=>{const o=()=>{r(FP())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Sie(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},_ie=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=Uie(n.views,o),s=gs();return{layoutProps:De({},n,t,{isLandscape:a,isRtl:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Vie(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 lL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:a,autoFocusView:s,rendererInterceptor:l,fieldRef:u})=>{const f=zie({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),c=Bie({props:e,additionalViewProps:o,autoFocusView:s,fieldRef:u,propsFromPickerValue:f.viewProps,rendererInterceptor:l}),h=_ie({props:e,wrapperVariant:r,propsFromPickerValue:f.layoutProps,propsFromPickerViews:c.layoutProps}),y=Vie({props:e,pickerValueResponse:f});return{open:f.open,actions:f.actions,fieldProps:f.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:h.layoutProps,contextValue:f.contextValue,ownerState:y}};function cL(e){return on("MuiPickersLayout",e)}const Ou=Kt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Hie(e){return on("MuiDialogActions",e)}Kt("MuiDialogActions",["root","spacing"]);const Wie=e=>{const{classes:t,disableSpacing:n}=e;return tn({root:["root",!n&&"spacing"]},Hie,t)},qie=Qe("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}}}]}),Yie=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...a}=n,s={...n,disableSpacing:o},l=Wie(s);return m.jsx(qie,{className:Nt(l.root,r),ownerState:s,ref:t,...a})}),Gie=["onAccept","onClear","onCancel","onSetToday","actions"];function Kie(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,s=Fn(e,Gie),l=_l();if(a==null||a.length===0)return null;const u=a?.map(f=>{switch(f){case"clear":return m.jsx(uo,{onClick:n,children:l.clearButtonLabel},f);case"cancel":return m.jsx(uo,{onClick:r,children:l.cancelButtonLabel},f);case"accept":return m.jsx(uo,{onClick:t,children:l.okButtonLabel},f);case"today":return m.jsx(uo,{onClick:o,children:l.todayButtonLabel},f);default:return null}});return m.jsx(Yie,De({},s,{children:u}))}function Qie(e){return on("MuiListItem",e)}Kt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Xie=Kt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Zie(e){return on("MuiListItemSecondaryAction",e)}Kt("MuiListItemSecondaryAction",["root","disableGutters"]);const Jie=e=>{const{disableGutters:t,classes:n}=e;return tn({root:["root",t&&"disableGutters"]},Zie,n)},ese=Qe("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}}]}),uL=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,a=C.useContext(Al),s={...n,disableGutters:a.disableGutters},l=Jie(s);return m.jsx(ese,{className:Nt(l.root,r),ownerState:s,ref:t,...o})});uL.muiName="ListItemSecondaryAction";const tse=(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]},nse=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"]},Qie,n)},rse=Qe("div",{name:"MuiListItem",slot:"Root",overridesResolver:tse})(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:{[`& > .${Xie.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}}]}))),ose=Qe("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),ase=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:a,component:s,components:l={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:c,...h}={},dense:y=!1,disableGutters:b=!1,disablePadding:v=!1,divider:x=!1,secondaryAction:w,slotProps:S={},slots:M={},...T}=n,R=C.useContext(Al),$=C.useMemo(()=>({dense:y||R.dense||!1,alignItems:r,disableGutters:b}),[r,R.dense,y,b]),P=C.useRef(null),N=C.Children.toArray(o),V=N.length&&Ev(N[N.length-1],["ListItemSecondaryAction"]),F={...n,alignItems:r,dense:$.dense,disableGutters:b,disablePadding:v,divider:x,hasSecondaryAction:V},W=nse(F),_=mr(P,t),k=M.root||l.Root||rse,I=S.root||u.root||{},z={className:Nt(W.root,I.className,a),...T};let H=s||"li";return V?(H=!z.component&&!s?"div":H,f==="li"&&(H==="li"?H="div":z.component==="li"&&(z.component="div")),m.jsx(Al.Provider,{value:$,children:m.jsxs(ose,{as:f,className:Nt(W.container,c),ref:_,ownerState:F,...h,children:[m.jsx(k,{...I,...!np(k)&&{as:H,ownerState:{...F,...I.ownerState}},...z,children:N}),N.pop()]})})):m.jsx(Al.Provider,{value:$,children:m.jsxs(k,{...I,as:H,ref:_,...!np(k)&&{ownerState:{...F,...I.ownerState}},...z,children:[N,w&&m.jsx(uL,{children:w})]})})}),Xm=36,w0=2,C0=320,ise=280,Nk=336,sse=["items","changeImportance","isLandscape","onChange","isValid"],lse=["getValue"];function cse(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,a=Fn(e,sse);if(t==null||t.length===0)return null;const s=t.map(l=>{let{getValue:u}=l,f=Fn(l,lse);const c=u({isValid:o});return De({},f,{label:f.label,onClick:()=>{r(c,n,f)},disabled:!o(c)})});return m.jsx(SI,De({dense:!0,sx:[{maxHeight:Nk,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(l=>m.jsx(ase,{children:m.jsx(VI,De({},l))},l.id??l.label))}))}function use(e){return e.view!==null}const dse=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"]},cL,t)},fse=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:a,view:s,views:l,onViewChange:u,value:f,onChange:c,onSelectShortcut:h,isValid:y,isLandscape:b,disabled:v,readOnly:x,children:w,slots:S,slotProps:M}=e,T=dse(e),R=S?.actionBar??Kie,$=xr({elementType:R,externalSlotProps:M?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:a,actions:t==="desktop"?[]:["cancel","accept"]},className:T.actionBar,ownerState:De({},e,{wrapperVariant:t})}),P=m.jsx(R,De({},$)),N=S?.toolbar,V=xr({elementType:N,externalSlotProps:M?.toolbar,additionalProps:{isLandscape:b,onChange:c,value:f,view:s,onViewChange:u,views:l,disabled:v,readOnly:x},className:T.toolbar,ownerState:De({},e,{wrapperVariant:t})}),F=use(V)&&N?m.jsx(N,De({},V)):null,W=w,_=S?.tabs,k=s&&_?m.jsx(_,De({view:s,onViewChange:u,className:T.tabs},M?.tabs)):null,I=S?.shortcuts??cse,z=xr({elementType:I,externalSlotProps:M?.shortcuts,additionalProps:{isValid:y,isLandscape:b,onChange:h},className:T.shortcuts,ownerState:{isValid:y,isLandscape:b,onChange:h,wrapperVariant:t}}),H=s&&I?m.jsx(I,De({},z)):null;return{toolbar:F,content:W,tabs:k,actionBar:P,shortcuts:H}},pse=e=>{const{isLandscape:t,classes:n}=e;return tn({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},cL,n)},hse=Qe("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Ou.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Ou.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Ou.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Ou.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Ou.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Ou.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Ou.shortcuts}`]:{gridColumn:3}}}]}),mse=Qe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),dL=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:s,shortcuts:l}=fse(n),{sx:u,className:f,isLandscape:c,wrapperVariant:h}=n,y=pse(n);return m.jsxs(hse,{ref:t,sx:u,className:Nt(y.root,f),ownerState:n,children:[c?l:r,c?r:l,m.jsx(mse,{className:y.contentWrapper,children:h==="desktop"?m.jsxs(C.Fragment,{children:[o,a]}):m.jsxs(C.Fragment,{children:[a,o]})}),s]})}),gse=C.createContext(null);function fL(e){const{contextValue:t,localeText:n,children:r}=e;return m.jsx(gse.Provider,{value:t,children:m.jsx(sb,{localeText:n,children:r})})}const yse=["props","getOpenDialogAriaText"],vse=["ownerState"],bse=["ownerState"],xse=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Fn(e,yse);const{slots:o,slotProps:a,className:s,sx:l,format:u,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:h,onSelectedSectionsChange:y,timezone:b,name:v,label:x,inputRef:w,readOnly:S,disabled:M,autoFocus:T,localeText:R,reduceAnimations:$}=t,P=C.useRef(null),N=C.useRef(null),V=ys(),F=a?.toolbar?.hidden??!1,{open:W,actions:_,hasUIView:k,layoutProps:I,renderCurrentView:z,shouldRestoreFocus:H,fieldProps:A,contextValue:Z,ownerState:K}=lL(De({},r,{props:t,fieldRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),te=o.inputAdornment??aL,X=xr({elementType:te,externalSlotProps:a?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),Q=Fn(X,vse),ne=o.openPickerButton??Kc,ie=xr({elementType:ne,externalSlotProps:a?.openPickerButton,additionalProps:{disabled:M||S,onClick:W?_.onClose:_.onOpen,"aria-label":n(A.value),edge:Q.position},ownerState:t}),pe=Fn(ie,bse),oe=o.openPickerIcon,ae=xr({elementType:oe,externalSlotProps:a?.openPickerIcon,ownerState:K}),ce=o.field,me=xr({elementType:ce,externalSlotProps:a?.field,additionalProps:De({},A,F&&{id:V},{readOnly:S,disabled:M,className:s,sx:l,format:u,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:h,onSelectedSectionsChange:y,timezone:b,label:x,name:v,autoFocus:T&&!t.open,focused:W?!0:void 0},w?{inputRef:w}:{}),ownerState:t});k&&(me.InputProps=De({},me.InputProps,{ref:P},!t.disableOpenPicker&&{[`${Q.position}Adornment`]:m.jsx(te,De({},Q,{children:m.jsx(ne,De({},pe,{children:m.jsx(oe,De({},ae))}))}))}));const ye=De({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},me.slots),we=o.layout??dL;let Ce=V;F&&(x?Ce=`${V}-label`:Ce=void 0);const Te=De({},a,{toolbar:De({},a?.toolbar,{titleId:V}),popper:De({"aria-labelledby":Ce},a?.popper)}),ue=mr(N,me.unstableFieldRef);return{renderPicker:()=>m.jsxs(fL,{contextValue:Z,localeText:R,children:[m.jsx(ce,De({},me,{slots:ye,slotProps:Te,unstableFieldRef:ue})),m.jsx(Aie,De({role:"dialog",placement:"bottom-start",anchorEl:P.current},_,{open:W,slots:o,slotProps:Te,shouldRestoreFocus:H,reduceAnimations:$,children:m.jsx(we,De({},I,Te?.layout,{slots:o,slotProps:Te,children:z()}))}))]})}},Sse=sr(m.jsx("path",{d:"M7 10l5 5 5-5z"})),wse=sr(m.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),Cse=sr(m.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),kse=sr(m.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"}));sr(m.jsxs(C.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));sr(m.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"}));sr(m.jsxs(C.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const Tse=sr(m.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"})),Mse=({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},Ese=({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},Ose=(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}},Rse=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:a,token:s,startSeparator:l})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const u=GI(e,s),f=ZI(e,u.contentType,u.type,s),c=n?f:u.contentType==="digit",h=t!=null&&e.isValid(t);let y=h?e.formatByString(t,s):"",b=null;if(c)if(f)b=y===""?e.formatByString(a,s).length:y.length;else{if(u.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);b=u.maxLength,h&&(y=Pk(QI(id(y,o),b),o))}return De({},u,{format:s,maxLength:b,value:y,placeholder:Ose(e,r,u,s),hasLeadingZerosInFormat:f,hasLeadingZerosInInput:c,startSeparator:l,endSeparator:"",modified:!1})},$se=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),a=[];let s="";const l=Object.keys(t.formatTokenMap).sort((b,v)=>v.length-b.length),u=/^([a-zA-Z]+)/,f=new RegExp(`^(${l.join("|")})*$`),c=new RegExp(`^(${l.join("|")})`),h=b=>r.find(v=>v.start<=b&&v.end>=b);let y=0;for(;y<n.length;){const b=h(y),v=b!=null,x=u.exec(n.slice(y))?.[1];if(!v&&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(Rse(De({},e,{now:o,token:S,startSeparator:s}))),s=""}y+=x.length}else{const w=n[y];v&&b?.start===y||b?.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},Pse=({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}),BP=e=>{let t=Mse(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Ese(De({},e,{expandedFormat:t})),r=$se(De({},e,{expandedFormat:t,escapedParts:n}));return Pse(De({},e,{sections:r}))},Dse=e=>{const t=Hr(),n=_l(),r=md(),o=gs(),{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:f,internalProps:{value:c,defaultValue:h,referenceDate:y,onChange:b,format:v,formatDensity:x="dense",selectedSections:w,onSelectedSectionsChange:S,shouldRespectLeadingZeros:M=!1,timezone:T,enableAccessibleFieldDOMStructure:R=!1}}=e,{timezone:$,value:P,handleValueChange:N}=Ak({timezone:T,value:c,defaultValue:h,referenceDate:y,onChange:b,valueManager:a}),V=C.useMemo(()=>zae(t),[t]),F=C.useMemo(()=>Hae(t,V,$),[t,V,$]),W=C.useCallback((oe,ae=null)=>s.getSectionsFromValue(t,oe,ae,ce=>BP({utils:t,localeText:n,localizedDigits:V,format:v,date:ce,formatDensity:x,shouldRespectLeadingZeros:M,enableAccessibleFieldDOMStructure:R,isRtl:o})),[s,v,n,V,o,M,t,x,R]),[_,k]=C.useState(()=>{const oe=W(P),ae={sections:oe,value:P,referenceValue:a.emptyValue,tempValueStrAndroid:null},ce=jae(oe),me=a.getInitialReferenceValue({referenceDate:y,value:P,utils:t,props:f,granularity:ce,timezone:$});return De({},ae,{referenceValue:me})}),[I,z]=ui({controlled:w,default:null,name:"useField",state:"selectedSections"}),H=oe=>{z(oe),S?.(oe)},A=C.useMemo(()=>Tw(I,_.sections),[I,_.sections]),Z=A==="all"?0:A,K=({value:oe,referenceValue:ae,sections:ce})=>{if(k(ye=>De({},ye,{sections:ce,value:oe,referenceValue:ae,tempValueStrAndroid:null})),a.areValuesEqual(t,_.value,oe))return;const me={validationError:u({adapter:r,value:oe,timezone:$,props:f})};N(oe,me)},te=(oe,ae)=>{const ce=[..._.sections];return ce[oe]=De({},ce[oe],{value:ae,modified:!0}),ce},X=()=>{K({value:a.emptyValue,referenceValue:_.referenceValue,sections:W(a.emptyValue)})},Q=()=>{if(Z==null)return;const oe=_.sections[Z],ae=s.getActiveDateManager(t,_,oe),ce=ae.getSections(_.sections).filter(Ce=>Ce.value!=="").length===(oe.value===""?0:1),me=te(Z,""),ye=ce?null:t.getInvalidDate(),we=ae.getNewValuesFromNewActiveDate(ye);K(De({},we,{sections:me}))},ne=oe=>{const ae=(ye,we)=>{const Ce=t.parse(ye,v);if(Ce==null||!t.isValid(Ce))return null;const Te=BP({utils:t,localeText:n,localizedDigits:V,format:v,date:Ce,formatDensity:x,shouldRespectLeadingZeros:M,enableAccessibleFieldDOMStructure:R,isRtl:o});return jP(t,Ce,Te,we,!1)},ce=s.parseValueStr(oe,_.referenceValue,ae),me=s.updateReferenceValue(t,ce,_.referenceValue);K({value:ce,referenceValue:me,sections:W(ce,_.sections)})},ie=({activeSection:oe,newSectionValue:ae,shouldGoToNextSection:ce})=>{ce&&Z<_.sections.length-1&&H(Z+1);const me=s.getActiveDateManager(t,_,oe),ye=te(Z,ae),we=me.getSections(ye),Ce=Uae(t,we,V);let Te,ue;if(Ce!=null&&t.isValid(Ce)){const ke=jP(t,Ce,we,me.referenceDate,!0);Te=me.getNewValuesFromNewActiveDate(ke),ue=!0}else Te=me.getNewValuesFromNewActiveDate(Ce),ue=(Ce!=null&&!t.isValid(Ce))!=(me.date!=null&&!t.isValid(me.date));return ue?K(De({},Te,{sections:ye})):k(ke=>De({},ke,Te,{sections:ye,tempValueStrAndroid:null}))},pe=oe=>k(ae=>De({},ae,{tempValueStrAndroid:oe}));return C.useEffect(()=>{const oe=W(_.value);k(ae=>De({},ae,{sections:oe}))},[v,t.locale,o]),C.useEffect(()=>{let oe;a.areValuesEqual(t,_.value,P)?oe=a.getTimezone(t,_.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:_,activeSectionIndex:Z,parsedSelectedSections:A,setSelectedSections:H,clearValue:X,clearActiveSection:Q,updateSectionValue:ie,updateValueFromValueStr:ne,setTempAndroidValueStr:pe,getSectionsFromValue:W,sectionsValueBoundaries:F,localizedDigits:V,timezone:$}},Ase=5e3,Sf=e=>e.saveQuery!=null,jse=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:a})=>{const s=Hr(),[l,u]=C.useState(null),f=Lt(()=>u(null));C.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&f()},[e,l,f]),C.useEffect(()=>{if(l!=null){const b=setTimeout(()=>f(),Ase);return()=>{clearTimeout(b)}}return()=>{}},[l,f]);const c=({keyPressed:b,sectionIndex:v},x,w)=>{const S=b.toLowerCase(),M=e[v];if(l!=null&&(!w||w(l.value))&&l.sectionIndex===v){const R=`${l.value}${S}`,$=x(R,M);if(!Sf($))return u({sectionIndex:v,value:R,sectionType:M.type}),$}const T=x(S,M);return Sf(T)&&!T.saveQuery?(f(),null):(u({sectionIndex:v,value:S,sectionType:M.type}),Sf(T)?null:T)},h=b=>{const v=(w,S,M)=>{const T=S.filter(R=>R.toLowerCase().startsWith(M));return T.length===0?{saveQuery:!1}:{sectionValue:T[0],shouldGoToNextSection:T.length===1}},x=(w,S,M,T)=>{const R=$=>KI(s,a,S.type,$);if(S.contentType==="letter")return v(S.format,R(S.format),w);if(M&&T!=null&&GI(s,M).contentType==="letter"){const $=R(M),P=v(M,$,w);return Sf(P)?{saveQuery:!1}:De({},P,{sectionValue:T(P.sectionValue,$)})}return{saveQuery:!1}};return c(b,(w,S)=>{switch(S.type){case"month":{const M=T=>DP(s,T,s.formats.month,S.format);return x(w,S,s.formats.month,M)}case"weekDay":{const M=(T,R)=>R.indexOf(T).toString();return x(w,S,s.formats.weekday,M)}case"meridiem":return x(w,S);default:return{saveQuery:!1}}})},y=b=>{const v=(x,w)=>{const S=id(x,r),M=Number(S),T=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(M>T.maximum)return{saveQuery:!1};if(M<T.minimum)return{saveQuery:!0};const R=M*10>T.maximum||S.length===T.maximum.toString().length;return{sectionValue:XI(s,M,T,r,w),shouldGoToNextSection:R}};return c(b,(x,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return v(x,w);if(w.type==="month"){ZI(s,"digit","month","MM");const S=v(x,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Sf(S))return S;const M=DP(s,S.sectionValue,"MM",w.format);return De({},S,{sectionValue:M})}if(w.type==="weekDay"){const S=v(x,w);if(Sf(S))return S;const M=x0(s,w.format)[Number(S.sectionValue)-1];return De({},S,{sectionValue:M})}return{saveQuery:!1}},x=>PP(x,r))};return{applyCharacterEditing:Lt(b=>{const v=e[b.sectionIndex],x=PP(b.keyPressed,r)?y(De({},b,{keyPressed:Pk(b.keyPressed,r)})):h(b);if(x==null){o(null);return}t({activeSection:v,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:f}},Nse=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:a,onFocus:s,onInput:l,onPaste:u,focused:f,autoFocus:c=!1},fieldValueManager:h,applyCharacterEditing:y,resetCharacterQuery:b,setSelectedSections:v,parsedSelectedSections:x,state:w,clearActiveSection:S,clearValue:M,updateSectionValue:T,updateValueFromValueStr:R,sectionOrder:$,areAllSectionsEmpty:P,sectionsValueBoundaries:N}=e,V=C.useRef(null),F=mr(r,V),W=_l(),_=Hr(),k=ys(),[I,z]=C.useState(!1),H=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!V.current)return;const ue=document.getSelection();if(!ue)return;if(x==null){ue.rangeCount>0&&V.current.getRoot().contains(ue.getRangeAt(0).startContainer)&&ue.removeAllRanges(),I&&V.current.getRoot().blur();return}if(!V.current.getRoot().contains(Ma(document)))return;const ke=new window.Range;let Ge;x==="all"?Ge=V.current.getRoot():w.sections[x].type==="empty"?Ge=V.current.getSectionContainer(x):Ge=V.current.getSectionContent(x),ke.selectNodeContents(Ge),Ge.focus(),ue.removeAllRanges(),ue.addRange(ke)},getActiveSectionIndexFromDOM:()=>{const ue=Ma(document);return!ue||!V.current||!V.current.getRoot().contains(ue)?null:V.current.getSectionIndexFromDOMElement(ue)},focusField:(ue=0)=>{if(!V.current||H.getActiveSectionIndexFromDOM()!=null)return;const ke=Tw(ue,w.sections);z(!0),V.current.getSectionContent(ke).focus()},setSelectedSections:ue=>{if(!V.current)return;const ke=Tw(ue,w.sections);z((ke==="all"?0:ke)!==null),v(ue)},isFieldFocused:()=>{const ue=Ma(document);return!!V.current&&V.current.getRoot().contains(ue)}}),[x,v,w.sections,I]),A=Lt(ue=>{if(!V.current)return;const ke=w.sections[ue];V.current.getSectionContent(ue).innerHTML=ke.value||ke.placeholder,H.syncSelectionToDOM()}),Z=Lt((ue,...ke)=>{ue.isDefaultPrevented()||!V.current||(z(!0),a?.(ue,...ke),x==="all"?setTimeout(()=>{const Ge=document.getSelection().getRangeAt(0).startOffset;if(Ge===0){v($.startIndex);return}let ze=0,Ne=0;for(;Ne<Ge&&ze<w.sections.length;){const le=w.sections[ze];ze+=1,Ne+=`${le.startSeparator}${le.value||le.placeholder}${le.endSeparator}`.length}v(ze-1)}):I?V.current.getRoot().contains(ue.target)||v($.startIndex):(z(!0),v($.startIndex)))}),K=Lt(ue=>{if(l?.(ue),!V.current||x!=="all")return;const ke=ue.target.textContent??"";V.current.getRoot().innerHTML=w.sections.map(Ge=>`${Ge.startSeparator}${Ge.value||Ge.placeholder}${Ge.endSeparator}`).join(""),H.syncSelectionToDOM(),ke.length===0||ke.charCodeAt(0)===10?(b(),M(),v("all")):ke.length>1?R(ke):(x==="all"&&v(0),y({keyPressed:ke,sectionIndex:0}))}),te=Lt(ue=>{if(u?.(ue),n||x!=="all"){ue.preventDefault();return}const ke=ue.clipboardData.getData("text");ue.preventDefault(),b(),R(ke)}),X=Lt((...ue)=>{s?.(...ue),!(I||!V.current)&&(z(!0),V.current.getSectionIndexFromDOMElement(Ma(document))!=null||v($.startIndex))}),Q=Lt((...ue)=>{o?.(...ue),setTimeout(()=>{if(!V.current)return;const ke=Ma(document);!V.current.getRoot().contains(ke)&&(z(!1),v(null))})}),ne=Lt(ue=>ke=>{ke.isDefaultPrevented()||v(ue)}),ie=Lt(ue=>{ue.preventDefault()}),pe=Lt(ue=>()=>{v(ue)}),oe=Lt(ue=>{if(ue.preventDefault(),n||t||typeof x!="number")return;const ke=w.sections[x],Ge=ue.clipboardData.getData("text"),ze=/^[a-zA-Z]+$/.test(Ge),Ne=/^[0-9]+$/.test(Ge),le=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Ge);ke.contentType==="letter"&&ze||ke.contentType==="digit"&&Ne||ke.contentType==="digit-with-letter"&&le?(b(),T({activeSection:ke,newSectionValue:Ge,shouldGoToNextSection:!0})):!ze&&!Ne&&(b(),R(Ge))}),ae=Lt(ue=>{ue.preventDefault(),ue.dataTransfer.dropEffect="none"}),ce=Lt(ue=>{if(!V.current)return;const ke=ue.target,Ge=ke.textContent??"",ze=V.current.getSectionIndexFromDOMElement(ke),Ne=w.sections[ze];if(n||!V.current){A(ze);return}if(Ge.length===0){if(Ne.value===""){A(ze);return}const le=ue.nativeEvent.inputType;if(le==="insertParagraph"||le==="insertLineBreak"){A(ze);return}b(),S();return}y({keyPressed:Ge,sectionIndex:ze}),A(ze)});Po(()=>{if(!(!I||!V.current)){if(x==="all")V.current.getRoot().focus();else if(typeof x=="number"){const ue=V.current.getSectionContent(x);ue&&ue.focus()}}},[x,I]);const me=C.useMemo(()=>w.sections.reduce((ue,ke)=>(ue[ke.type]=N[ke.type]({currentDate:null,contentType:ke.contentType,format:ke.format}),ue),{}),[N,w.sections]),ye=x==="all",we=C.useMemo(()=>w.sections.map((ue,ke)=>{const Ge=!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}-${ue.type}`,"aria-labelledby":`${k}-${ue.type}`,"aria-readonly":n,"aria-valuenow":Kae(ue,_),"aria-valuemin":me[ue.type].minimum,"aria-valuemax":me[ue.type].maximum,"aria-valuetext":ue.value?Gae(ue,_):W.empty,"aria-label":W[ue.type],"aria-disabled":t,spellCheck:Ge?!1:void 0,autoCapitalize:Ge?"off":void 0,autoCorrect:Ge?"off":void 0,[parseInt(C.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Ge?"next":void 0,children:ue.value||ue.placeholder,onInput:ce,onPaste:oe,onFocus:pe(ke),onDragOver:ae,onMouseUp:ie,inputMode:ue.contentType==="letter"?"text":"numeric"},before:{children:ue.startSeparator},after:{children:ue.endSeparator}}}),[w.sections,pe,oe,ae,ce,ne,ie,t,n,ye,W,_,me,k]),Ce=Lt(ue=>{R(ue.target.value)}),Te=C.useMemo(()=>P?"":h.getV7HiddenInputValueFromSections(w.sections),[P,w.sections,h]);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(`
433
- `));c&&V.current&&V.current.getSectionContent($.startIndex).focus()},[]),{interactions:H,returnedValue:{autoFocus:c,readOnly:n,focused:f??I,sectionListRef:F,onBlur:Q,onClick:Z,onFocus:X,onInput:K,onPaste:te,enableAccessibleFieldDOMStructure:!0,elements:we,tabIndex:x===0?-1:0,contentEditable:ye,value:Te,onChange:Ce,areAllSectionsEmpty:P}}},Af=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Ise=(e,t,n)=>{let r=0,o=n?1:0;const a=[];for(let s=0;s<e.length;s+=1){const l=e[s],u=Dk(l,n?"input-rtl":"input-ltr",t),f=`${l.startSeparator}${u}${l.endSeparator}`,c=Af(f).length,h=f.length,y=Af(u),b=o+(y===""?0:u.indexOf(y[0]))+l.startSeparator.length,v=b+y.length;a.push(De({},l,{start:r,end:r+c,startInInput:b,endInInput:v})),r+=c,o+=h}return a},Lse=e=>{const t=gs(),n=C.useRef(void 0),r=C.useRef(void 0),{forwardedProps:{onFocus:o,onClick:a,onPaste:s,onBlur:l,inputRef:u,placeholder:f},internalProps:{readOnly:c=!1,disabled:h=!1},parsedSelectedSections:y,activeSectionIndex:b,state:v,fieldValueManager:x,valueManager:w,applyCharacterEditing:S,resetCharacterQuery:M,updateSectionValue:T,updateValueFromValueStr:R,clearActiveSection:$,clearValue:P,setTempAndroidValueStr:N,setSelectedSections:V,getSectionsFromValue:F,areAllSectionsEmpty:W,localizedDigits:_}=e,k=C.useRef(null),I=mr(u,k),z=C.useMemo(()=>Ise(v.sections,_,t),[v.sections,_,t]),H=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!k.current)return;if(y==null){k.current.scrollLeft&&(k.current.scrollLeft=0);return}if(k.current!==Ma(document))return;const ae=k.current.scrollTop;if(y==="all")k.current.select();else{const ce=z[y],me=ce.type==="empty"?ce.startInInput-ce.startSeparator.length:ce.startInInput,ye=ce.type==="empty"?ce.endInInput+ce.endSeparator.length:ce.endInInput;(me!==k.current.selectionStart||ye!==k.current.selectionEnd)&&k.current===Ma(document)&&k.current.setSelectionRange(me,ye),clearTimeout(r.current),r.current=setTimeout(()=>{k.current&&k.current===Ma(document)&&k.current.selectionStart===k.current.selectionEnd&&(k.current.selectionStart!==me||k.current.selectionEnd!==ye)&&H.syncSelectionToDOM()})}k.current.scrollTop=ae},getActiveSectionIndexFromDOM:()=>{const ae=k.current.selectionStart??0,ce=k.current.selectionEnd??0;if(ae===0&&ce===0)return null;const me=ae<=z[0].startInInput?1:z.findIndex(ye=>ye.startInInput-ye.startSeparator.length>ae);return me===-1?z.length-1:me-1},focusField:(ae=0)=>{Ma(document)!==k.current&&(k.current?.focus(),V(ae))},setSelectedSections:ae=>V(ae),isFieldFocused:()=>k.current===Ma(document)}),[k,y,z,V]),A=()=>{const ae=k.current.selectionStart??0;let ce;ae<=z[0].startInInput||ae>=z[z.length-1].endInInput?ce=1:ce=z.findIndex(ye=>ye.startInInput-ye.startSeparator.length>ae);const me=ce===-1?z.length-1:ce-1;V(me)},Z=Lt((...ae)=>{o?.(...ae);const ce=k.current;clearTimeout(n.current),n.current=setTimeout(()=>{!ce||ce!==k.current||b==null&&(ce.value.length&&Number(ce.selectionEnd)-Number(ce.selectionStart)===ce.value.length?V("all"):A())})}),K=Lt((ae,...ce)=>{ae.isDefaultPrevented()||(a?.(ae,...ce),A())}),te=Lt(ae=>{if(s?.(ae),ae.preventDefault(),c||h)return;const ce=ae.clipboardData.getData("text");if(typeof y=="number"){const me=v.sections[y],ye=/^[a-zA-Z]+$/.test(ce),we=/^[0-9]+$/.test(ce),Ce=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ce);if(me.contentType==="letter"&&ye||me.contentType==="digit"&&we||me.contentType==="digit-with-letter"&&Ce){M(),T({activeSection:me,newSectionValue:ce,shouldGoToNextSection:!0});return}if(ye||we)return}M(),R(ce)}),X=Lt((...ae)=>{l?.(...ae),V(null)}),Q=Lt(ae=>{if(c)return;const ce=ae.target.value;if(ce===""){M(),P();return}const me=ae.nativeEvent.data,ye=me&&me.length>1,we=ye?me:ce,Ce=Af(we);if(y==="all"&&V(b),b==null||ye){R(ye?me:Ce);return}let Te;if(y==="all"&&Ce.length===1)Te=Ce;else{const ue=Af(x.getV6InputValueFromSections(z,_,t));let ke=-1,Ge=-1;for(let le=0;le<ue.length;le+=1)ke===-1&&ue[le]!==Ce[le]&&(ke=le),Ge===-1&&ue[ue.length-le-1]!==Ce[Ce.length-le-1]&&(Ge=le);const ze=z[b];if(ke<ze.start||ue.length-Ge-1>ze.end)return;const Ne=Ce.length-ue.length+ze.end-Af(ze.endSeparator||"").length;Te=Ce.slice(ze.start+Af(ze.startSeparator||"").length,Ne)}if(Te.length===0){qae()&&N(we),M(),$();return}S({keyPressed:Te,sectionIndex:b})}),ne=C.useMemo(()=>f!==void 0?f:x.getV6InputValueFromSections(F(w.emptyValue),_,t),[f,x,F,w.emptyValue,_,t]),ie=C.useMemo(()=>v.tempValueStrAndroid??x.getV6InputValueFromSections(v.sections,_,t),[v.sections,x,v.tempValueStrAndroid,_,t]);C.useEffect(()=>(k.current&&k.current===Ma(document)&&V("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const pe=C.useMemo(()=>b==null||v.sections[b].contentType==="letter"?"text":"numeric",[b,v.sections]),oe=!(k.current&&k.current===Ma(document))&&W;return{interactions:H,returnedValue:{readOnly:c,onBlur:X,onClick:K,onFocus:Z,onPaste:te,inputRef:I,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:pe,autoComplete:"off",value:oe?"":ie,onChange:Q}}},zse=e=>{const t=Hr(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:a=!1,disabled:s=!1,readOnly:l=!1},forwardedProps:{onKeyDown:u,error:f,clearable:c,onClear:h},fieldValueManager:y,valueManager:b,validator:v}=e,x=gs(),w=Dse(e),{state:S,activeSectionIndex:M,parsedSelectedSections:T,setSelectedSections:R,clearValue:$,clearActiveSection:P,updateSectionValue:N,setTempAndroidValueStr:V,sectionsValueBoundaries:F,localizedDigits:W,timezone:_}=w,k=jse({sections:S.sections,updateSectionValue:N,sectionsValueBoundaries:F,localizedDigits:W,setTempAndroidValueStr:V,timezone:_}),{resetCharacterQuery:I}=k,z=b.areValuesEqual(t,S.value,b.emptyValue),H=a?Nse:Lse,A=C.useMemo(()=>Yae(S.sections,x&&!a),[S.sections,x,a]),{returnedValue:Z,interactions:K}=H(De({},e,w,k,{areAllSectionsEmpty:z,sectionOrder:A})),te=Lt(oe=>{if(u?.(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(),T==null)R(A.startIndex);else if(T==="all")R(A.endIndex);else{const ae=A.neighbors[T].rightIndex;ae!==null&&R(ae)}break}case oe.key==="ArrowLeft":{if(oe.preventDefault(),T==null)R(A.endIndex);else if(T==="all")R(A.startIndex);else{const ae=A.neighbors[T].leftIndex;ae!==null&&R(ae)}break}case oe.key==="Delete":{if(oe.preventDefault(),l)break;T==null||T==="all"?$():P(),I();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(oe.key):{if(oe.preventDefault(),l||M==null)break;T==="all"&&R(M);const ae=S.sections[M],ce=y.getActiveDateManager(t,S,ae),me=Fae(t,_,ae,oe.key,F,W,ce.date,{minutesStep:o});N({activeSection:ae,newSectionValue:me,shouldGoToNextSection:!1});break}}});Po(()=>{K.syncSelectionToDOM()});const{hasValidationError:X}=oL({props:n,validator:v,timezone:_,value:S.value,onError:n.onError}),Q=C.useMemo(()=>f!==void 0?f:X,[X,f]);C.useEffect(()=>{!Q&&M==null&&I()},[S.referenceValue,M,Q]),C.useEffect(()=>{S.tempValueStrAndroid!=null&&M!=null&&(I(),P())},[S.sections]),C.useImperativeHandle(r,()=>({getSections:()=>S.sections,getActiveSectionIndex:K.getActiveSectionIndexFromDOM,setSelectedSections:K.setSelectedSections,focusField:K.focusField,isFieldFocused:K.isFieldFocused}));const ne=Lt((oe,...ae)=>{oe.preventDefault(),h?.(oe,...ae),$(),K.isFieldFocused()?R(A.startIndex):K.focusField(0)}),ie={onKeyDown:te,onClear:ne,error:Q,clearable:!!(c&&!z&&!l&&!s)},pe={disabled:s,readOnly:l};return De({},e.forwardedProps,ie,pe,Z)},Fse=["clearable","onClear","InputProps","sx","slots","slotProps"],Bse=["ownerState"],Use=e=>{const t=_l(),{clearable:n,onClear:r,InputProps:o,sx:a,slots:s,slotProps:l}=e,u=Fn(e,Fse),f=s?.clearButton??Kc,c=xr({elementType:f,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),h=Fn(c,Bse),y=s?.clearIcon??Tse,b=xr({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return De({},u,{InputProps:De({},o,{endAdornment:m.jsxs(C.Fragment,{children:[n&&m.jsx(aL,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:m.jsx(f,De({},h,{onClick:r,children:m.jsx(y,De({fontSize:"small"},b))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a)?a:[a]]})},_se=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Vse=(e,t)=>C.useMemo(()=>{const n=De({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return _se.forEach(o),nL.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),Hse=e=>{const t=Hr(),n=Og();return De({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Wi(t,e.minDate,n.minDate),maxDate:Wi(t,e.maxDate,n.maxDate)})},Wse=e=>{const t=Hse(e),{forwardedProps:n,internalProps:r}=Vse(t,"date");return zse({forwardedProps:n,internalProps:r,valueManager:el,fieldValueManager:Xae,validator:Rg,valueType:"date"})};function qse(e){return on("MuiPickersTextField",e)}Kt("MuiPickersTextField",["root","focused","disabled","error","required"]);function Yse(e){return on("MuiPickersInputBase",e)}const _f=Kt("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function Gse(e){return on("MuiPickersSectionList",e)}const Yh=Kt("MuiPickersSectionList",["root","section","sectionContent"]),Kse=["slots","slotProps","elements","sectionListRef"],pL=Qe("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),hL=Qe("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),mL=Qe("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),gL=Qe("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),Qse=e=>{const{classes:t}=e;return tn({root:["root"],section:["section"],sectionContent:["sectionContent"]},Gse,t)};function Xse(e){const{slots:t,slotProps:n,element:r,classes:o}=e,a=t?.section??hL,s=xr({elementType:a,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),l=t?.sectionContent??gL,u=xr({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),f=t?.sectionSeparator??mL,c=xr({elementType:f,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),h=xr({elementType:f,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return m.jsxs(a,De({},s,{children:[m.jsx(f,De({},c)),m.jsx(l,De({},u)),m.jsx(f,De({},h))]}))}const Zse=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:o,elements:a,sectionListRef:s}=n,l=Fn(n,Kse),u=Qse(n),f=C.useRef(null),c=mr(t,f),h=v=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${v} before the mount of the component.`);return f.current};C.useImperativeHandle(s,()=>({getRoot(){return h("getRoot")},getSectionContainer(v){return h("getSectionContainer").querySelector(`.${Yh.section}[data-sectionindex="${v}"]`)},getSectionContent(v){return h("getSectionContent").querySelector(`.${Yh.section}[data-sectionindex="${v}"] .${Yh.sectionContent}`)},getSectionIndexFromDOMElement(v){const x=h("getSectionIndexFromDOMElement");if(v==null||!x.contains(v))return null;let w=null;return v.classList.contains(Yh.section)?w=v:v.classList.contains(Yh.sectionContent)&&(w=v.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const y=r?.root??pL,b=xr({elementType:y,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:c,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return m.jsx(y,De({},b,{children:b.contentEditable?a.map(({content:v,before:x,after:w})=>`${x.children}${v.children}${w.children}`).join(""):m.jsx(C.Fragment,{children:a.map((v,x)=>m.jsx(Xse,{slots:r,slotProps:o,element:v,classes:u},x))})}))}),Jse=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],ele=e=>Math.round(e*1e5)/1e5,k0=Qe("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:`${ele(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Ik=Qe(pL,{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}}]})),tle=Qe(hL,{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"})),nle=Qe(gL,{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"})),rle=Qe(mL,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),ole=Qe("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(De({},Tae)),ale=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:a,readOnly:s,color:l,size:u,endAdornment:f,startAdornment:c}=e,h={root:["root",t&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",a&&"fullWidth",`color${Tt(l)}`,u==="small"&&"inputSizeSmall",!!c&&"adornedStart",!!f&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return tn(h,Yse,o)},Lk=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:o,value:a,onChange:s,id:l,endAdornment:u,startAdornment:f,renderSuffix:c,slots:h,slotProps:y,contentEditable:b,tabIndex:v,onInput:x,onPaste:w,onKeyDown:S,name:M,readOnly:T,inputProps:R,inputRef:$,sectionListRef:P}=n,N=Fn(n,Jse),V=C.useRef(null),F=mr(t,V),W=mr(R?.ref,$),_=gs(),k=mi();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 z=De({},n,k,{isRtl:_}),H=ale(z),A=h?.root||k0,Z=xr({elementType:A,externalSlotProps:y?.root,externalForwardedProps:N,additionalProps:{"aria-invalid":k.error,ref:F},className:H.root,ownerState:z}),K=h?.input||Ik;return m.jsxs(A,De({},Z,{children:[f,m.jsx(Zse,{sectionListRef:P,elements:r,contentEditable:b,tabIndex:v,className:H.sectionsContainer,onFocus:I,onBlur:k.onBlur,onInput:x,onPaste:w,onKeyDown:S,slots:{root:K,section:tle,sectionContent:nle,sectionSeparator:rle},slotProps:{root:{ownerState:z},sectionContent:{className:_f.sectionContent},sectionSeparator:({position:te})=>({className:te==="before"?_f.sectionBefore:_f.sectionAfter})}}),u,c?c(De({},k)):null,m.jsx(ole,De({name:M,className:H.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:T,required:k.required,disabled:k.disabled},R,{ref:W}))]}))});function ile(e){return on("MuiPickersOutlinedInput",e)}const ls=De({},_f,Kt("MuiPickersOutlinedInput",["root","notchedOutline","input"])),sle=["children","className","label","notched","shrink"],lle=Qe("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}}),UP=Qe("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),cle=Qe("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 ule(e){const{className:t,label:n}=e,r=Fn(e,sle),o=n!=null&&n!=="",a=De({},e,{withLabel:o});return m.jsx(lle,De({"aria-hidden":!0,className:t},r,{ownerState:a,children:m.jsx(cle,{ownerState:a,children:o?m.jsx(UP,{children:n}):m.jsx(UP,{className:"notranslate",children:"​"})})}))}const dle=["label","autoFocus","ownerState","notched"],fle=Qe(k0,{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}}}))}}),ple=Qe(Ik,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),hle=e=>{const{classes:t}=e,n=tn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ile,t);return De({},t,n)},yL=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:o,notched:a}=n,s=Fn(n,dle),l=mi(),u=De({},n,o,l,{color:l?.color||"primary"}),f=hle(u);return m.jsx(Lk,De({slots:{root:fle,input:ple},renderSuffix:c=>m.jsx(ule,{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?m.jsxs(C.Fragment,{children:[r," ","*"]}):r,ownerState:u})},s,{label:r,classes:f,ref:t}))});yL.muiName="Input";function mle(e){return on("MuiPickersFilledInput",e)}const Ru=De({},_f,Kt("MuiPickersFilledInput",["root","underline","input"])),gle=["label","autoFocus","disableUnderline","ownerState"],yle=Qe(k0,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>gv(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}}]}}),vle=Qe(Ik,{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}}]}),ble=e=>{const{classes:t,disableUnderline:n}=e,r=tn({root:["root",!n&&"underline"],input:["input"]},mle,t);return De({},t,r)},vL=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Fn(n,gle),l=mi(),u=De({},n,a,l,{color:l?.color||"primary"}),f=ble(u);return m.jsx(Lk,De({slots:{root:yle,input:vle},slotProps:{root:{disableUnderline:o}}},s,{label:r,classes:f,ref:t}))});vL.muiName="Input";function xle(e){return on("MuiPickersFilledInput",e)}const Gh=De({},_f,Kt("MuiPickersInput",["root","input"])),Sle=["label","autoFocus","disableUnderline","ownerState"],wle=Qe(k0,{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"},[`&.${Gh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gh.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(.${Gh.disabled}, .${Gh.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Gh.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),Cle=e=>{const{classes:t,disableUnderline:n}=e,r=tn({root:["root",!n&&"underline"],input:["input"]},xle,t);return De({},t,r)},bL=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Fn(n,Sle),l=mi(),u=De({},n,a,l,{disableUnderline:o,color:l?.color||"primary"}),f=Cle(u);return m.jsx(Lk,De({slots:{root:wle}},s,{label:r,classes:f,ref:t}))});bL.muiName="Input";const kle=["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"],Tle={standard:bL,filled:vL,outlined:yL},Mle=Qe(bI,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),Ele=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return tn({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},qse,r)},Ole=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:u=!1,variant:f="outlined",required:c=!1,InputProps:h,inputProps:y,inputRef:b,sectionListRef:v,elements:x,areAllSectionsEmpty:w,onClick:S,onKeyDown:M,onKeyUp:T,onPaste:R,onInput:$,endAdornment:P,startAdornment:N,tabIndex:V,contentEditable:F,focused:W,value:_,onChange:k,fullWidth:I,id:z,name:H,helperText:A,FormHelperTextProps:Z,label:K,InputLabelProps:te}=n,X=Fn(n,kle),Q=C.useRef(null),ne=mr(t,Q),ie=ys(z),pe=A&&ie?`${ie}-helper-text`:void 0,oe=K&&ie?`${ie}-label`:void 0,ae=De({},n,{color:s,disabled:l,error:u,focused:W,required:c,variant:f}),ce=Ele(ae),me=Tle[f];return m.jsxs(Mle,De({className:Nt(ce.root,a),ref:ne,focused:W,onFocus:r,onBlur:o,disabled:l,variant:f,error:u,color:s,fullWidth:I,required:c,ownerState:ae},X,{children:[m.jsx(vI,De({htmlFor:ie,id:oe},te,{children:K})),m.jsx(me,De({elements:x,areAllSectionsEmpty:w,onClick:S,onKeyDown:M,onKeyUp:T,onInput:$,onPaste:R,endAdornment:P,startAdornment:N,tabIndex:V,contentEditable:F,value:_,onChange:k,id:ie,fullWidth:I,inputProps:y,inputRef:b,sectionListRef:v,label:K,name:H,role:"group","aria-labelledby":oe,"aria-describedby":pe,"aria-live":pe?"polite":void 0},h)),A&&m.jsx(xI,De({id:pe},Z,{children:A}))]}))}),Rle=["enableAccessibleFieldDOMStructure"],$le=["InputProps","readOnly"],Ple=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Dle=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Fn(e,Rle);if(t){const{InputProps:h,readOnly:y}=n,b=Fn(n,$le);return De({},b,{InputProps:De({},h??{},{readOnly:y})})}const{onPaste:r,onKeyDown:o,inputMode:a,readOnly:s,InputProps:l,inputProps:u,inputRef:f}=n,c=Fn(n,Ple);return De({},c,{InputProps:De({},l??{},{readOnly:s}),inputProps:De({},u??{},{inputMode:a,onPaste:r,onKeyDown:o,ref:f})})},Ale=["slots","slotProps","InputProps","inputProps"],xL=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiDateField"}),{slots:r,slotProps:o,InputProps:a,inputProps:s}=n,l=Fn(n,Ale),u=n,f=r?.textField??(e.enableAccessibleFieldDOMStructure?Ole:hr),c=xr({elementType:f,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:t},ownerState:u});c.inputProps=De({},s,c.inputProps),c.InputProps=De({},a,c.InputProps);const h=Wse(c),y=Dle(h),b=Use(De({},y,{slots:r,slotProps:o}));return m.jsx(f,De({},b))}),SL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s,timezone:l})=>{const u=md();return C.useCallback(f=>Rg({adapter:u,value:f,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s}})!==null,[u,e,t,n,r,o,a,s,l])},jle=(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")}},Nle=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:f,shouldDisableDate:c,timezone:h}=e,y=Hr(),b=C.useRef(jle(!!f,a,y)).current,v=C.useMemo(()=>el.getInitialReferenceValue({value:t,utils:y,timezone:h,props:e,referenceDate:n,granularity:_s.day}),[n,h]),[x,w]=C.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:v,currentMonth:y.startOfMonth(v),slideDirection:"left"});C.useEffect(()=>{w({type:"changeMonthTimezone",newTimezone:y.getTimezone(v)})},[v,y]);const S=C.useCallback(P=>{w(De({type:"changeMonth"},P)),u&&u(P.newMonth)},[u]),M=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]),T=SL({shouldDisableDate:c,minDate:l,maxDate:s,disableFuture:r,disablePast:o,timezone:h}),R=C.useCallback(()=>{w({type:"finishMonthSwitchingAnimation"})},[]),$=Lt((P,N)=>{T(P)||w({type:"changeFocusedDay",focusedDay:P,withoutMonthSwitchingAnimation:N})});return{referenceDate:v,calendarState:x,changeMonth:M,changeFocusedDay:$,isDateDisabled:T,onMonthSwitchingAnimationEnd:R,handleChangeMonth:S}},Ile=e=>on("MuiPickersFadeTransitionGroup",e);Kt("MuiPickersFadeTransitionGroup",["root"]);const Lle=e=>{const{classes:t}=e;return tn({root:["root"]},Ile,t)},zle=Qe(Tg,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function wL(e){const t=Vr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=Lle(t),l=fd();return o?n:m.jsx(zle,{className:Nt(s.root,r),children:m.jsx(od,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},a)})}function Fle(e){return on("MuiPickersDay",e)}const $u=Kt("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Ble=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Ule=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:l,classes:u}=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"]},Fle,u)},CL=({theme:e})=>De({},e.typography.caption,{width:Xm,height:Xm,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 ${w0}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}`}}}]}),kL=(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]},_le=Qe(rd,{name:"MuiPickersDay",slot:"Root",overridesResolver:kL})(CL),Vle=Qe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:kL})(({theme:e})=>De({},CL({theme:e}),{opacity:0,pointerEvents:"none"})),Kh=()=>{},Hle=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:u=!1,isAnimating:f,onClick:c,onDaySelect:h,onFocus:y=Kh,onBlur:b=Kh,onKeyDown:v=Kh,onMouseDown:x=Kh,onMouseEnter:w=Kh,outsideCurrentMonth:S,selected:M=!1,showDaysOutsideCurrentMonth:T=!1,children:R,today:$=!1}=n,P=Fn(n,Ble),N=De({},n,{autoFocus:r,disabled:s,disableHighlightToday:l,disableMargin:u,selected:M,showDaysOutsideCurrentMonth:T,today:$}),V=Ule(N),F=Hr(),W=C.useRef(null),_=mr(W,t);Po(()=>{r&&!s&&!f&&!S&&W.current.focus()},[r,s,f,S]);const k=z=>{x(z),S&&z.preventDefault()},I=z=>{s||h(a),S&&z.currentTarget.focus(),c&&c(z)};return S&&!T?m.jsx(Vle,{className:Nt(V.root,V.hiddenDaySpacingFiller,o),ownerState:N,role:P.role}):m.jsx(_le,De({className:Nt(V.root,o),ref:_,centerRipple:!0,disabled:s,tabIndex:M?0:-1,onKeyDown:z=>v(z,a),onFocus:z=>y(z,a),onBlur:z=>b(z,a),onMouseEnter:z=>w(z,a),onClick:I,onMouseDown:k},P,{ownerState:N,children:R||F.format(a,"dayOfMonth")}))}),Wle=C.memo(Hle),qle=e=>on("MuiPickersSlideTransition",e),Ei=Kt("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Yle=["children","className","reduceAnimations","slideDirection","transKey","classes"],Gle=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return tn(r,qle,t)},Kle=Qe(Tg,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ei["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ei["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ei.slideEnterActive}`]:t.slideEnterActive},{[`.${Ei.slideExit}`]:t.slideExit},{[`.${Ei["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ei["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},[`& .${Ei["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ei["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ei.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ei.slideExit}`]:{transform:"translate(0%)"},[`& .${Ei["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ei["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Qle(e){const t=Vr({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=Fn(t,Yle),l=Gle(t),u=fd();if(o)return m.jsx("div",{className:Nt(l.root,r),children:n});const f={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return m.jsx(Kle,{className:Nt(l.root,r),childFactory:c=>C.cloneElement(c,{classNames:f}),role:"presentation",children:m.jsx(pk,De({mountOnEnter:!0,unmountOnExit:!0,timeout:u.transitions.duration.complex,classNames:f},s,{children:n}),a)})}const Xle=e=>on("MuiDayCalendar",e);Kt("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Zle=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Jle=["ownerState"],ece=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"]},Xle,t)},TL=(Xm+w0*2)*6,tce=Qe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nce=Qe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),rce=Qe(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})),oce=Qe(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})),ace=Qe(br,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>De({},e.typography.caption,{width:Xm,height:Xm,padding:0,margin:`0 ${w0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ice=Qe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:TL}),sce=Qe(Qle,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:TL}),lce=Qe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),cce=Qe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${w0}px 0`,display:"flex",justifyContent:"center"});function uce(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:a,currentMonthNumber:s,isViewFocused:l}=e,u=Fn(e,Zle);const{disabled:f,disableHighlightToday:c,isMonthSwitchingAnimating:h,showDaysOutsideCurrentMonth:y,slots:b,slotProps:v,timezone:x}=t,w=Hr(),S=S0(x),M=r!==null&&w.isSameDay(n,r),T=o.some(k=>w.isSameDay(k,n)),R=w.isSameDay(n,S),$=b?.day??Wle,P=xr({elementType:$,externalSlotProps:v?.day,additionalProps:De({disableHighlightToday:c,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:h,"data-timestamp":w.toJsDate(n).valueOf()},u),ownerState:De({},t,{day:n,selected:T})}),N=Fn(P,Jle),V=C.useMemo(()=>f||a(n),[f,a,n]),F=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]),_=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 m.jsx($,De({},N,{day:n,disabled:V,autoFocus:l&&M,today:R,outsideCurrentMonth:F,isFirstVisibleCell:W,isLastVisibleCell:_,selected:T,tabIndex:M?0:-1,"aria-selected":T,"aria-current":R?"date":void 0}))}function dce(e){const t=Vr({props:e,name:"MuiDayCalendar"}),n=Hr(),{onFocusedDayChange:r,className:o,currentMonth:a,selectedDays:s,focusedDay:l,loading:u,onSelectedDaysChange:f,onMonthSwitchingAnimationEnd:c,readOnly:h,reduceAnimations:y,renderLoading:b=()=>m.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:x,disablePast:w,disableFuture:S,minDate:M,maxDate:T,shouldDisableDate:R,shouldDisableMonth:$,shouldDisableYear:P,dayOfWeekFormatter:N=ze=>n.format(ze,"weekdayShort").charAt(0).toUpperCase(),hasFocus:V,onFocusedViewChange:F,gridLabelId:W,displayWeekNumber:_,fixedWeekNumber:k,autoFocus:I,timezone:z}=t,H=S0(z),A=ece(t),Z=gs(),K=SL({shouldDisableDate:R,shouldDisableMonth:$,shouldDisableYear:P,minDate:M,maxDate:T,disablePast:w,disableFuture:S,timezone:z}),te=_l(),[X,Q]=ui({name:"DayCalendar",state:"hasFocus",controlled:V,default:I??!1}),[ne,ie]=C.useState(()=>l||H),pe=Lt(ze=>{h||f(ze)}),oe=ze=>{K(ze)||(r(ze),ie(ze),F?.(!0),Q(!0))},ae=Lt((ze,Ne)=>{switch(ze.key){case"ArrowUp":oe(n.addDays(Ne,-7)),ze.preventDefault();break;case"ArrowDown":oe(n.addDays(Ne,7)),ze.preventDefault();break;case"ArrowLeft":{const le=n.addDays(Ne,Z?1:-1),xt=n.addMonths(Ne,Z?1:-1),Fe=$m({utils:n,date:le,minDate:Z?le:n.startOfMonth(xt),maxDate:Z?n.endOfMonth(xt):le,isDateDisabled:K,timezone:z});oe(Fe||le),ze.preventDefault();break}case"ArrowRight":{const le=n.addDays(Ne,Z?-1:1),xt=n.addMonths(Ne,Z?-1:1),Fe=$m({utils:n,date:le,minDate:Z?n.startOfMonth(xt):le,maxDate:Z?le:n.endOfMonth(xt),isDateDisabled:K,timezone:z});oe(Fe||le),ze.preventDefault();break}case"Home":oe(n.startOfWeek(Ne)),ze.preventDefault();break;case"End":oe(n.endOfWeek(Ne)),ze.preventDefault();break;case"PageUp":oe(n.addMonths(Ne,1)),ze.preventDefault();break;case"PageDown":oe(n.addMonths(Ne,-1)),ze.preventDefault();break}}),ce=Lt((ze,Ne)=>oe(Ne)),me=Lt((ze,Ne)=>{X&&n.isSameDay(ne,Ne)&&F?.(!1)}),ye=n.getMonth(a),we=n.getYear(a),Ce=C.useMemo(()=>s.filter(ze=>!!ze).map(ze=>n.startOfDay(ze)),[n,s]),Te=`${we}-${ye}`,ue=C.useMemo(()=>C.createRef(),[Te]),ke=C.useMemo(()=>{const ze=n.startOfMonth(a),Ne=n.endOfMonth(a);return K(ne)||n.isAfterDay(ne,Ne)||n.isBeforeDay(ne,ze)?$m({utils:n,date:ne,minDate:ze,maxDate:Ne,disablePast:w,disableFuture:S,isDateDisabled:K,timezone:z}):ne},[a,S,w,ne,K,n,z]),Ge=C.useMemo(()=>{const ze=n.getWeekArray(a);let Ne=n.addMonths(a,1);for(;k&&ze.length<k;){const le=n.getWeekArray(Ne),xt=n.isSameDay(ze[ze.length-1][0],le[0][0]);le.slice(xt?1:0).forEach(Fe=>{ze.length<k&&ze.push(Fe)}),Ne=n.addMonths(Ne,1)}return ze},[a,k,n]);return m.jsxs(tce,{role:"grid","aria-labelledby":W,className:A.root,children:[m.jsxs(nce,{role:"row",className:A.header,children:[_&&m.jsx(oce,{variant:"caption",role:"columnheader","aria-label":te.calendarWeekNumberHeaderLabel,className:A.weekNumberLabel,children:te.calendarWeekNumberHeaderText}),$ae(n,H).map((ze,Ne)=>m.jsx(rce,{variant:"caption",role:"columnheader","aria-label":n.format(ze,"weekday"),className:A.weekDayLabel,children:N(ze)},Ne.toString()))]}),u?m.jsx(ice,{className:A.loadingContainer,children:b()}):m.jsx(sce,De({transKey:Te,onExited:c,reduceAnimations:y,slideDirection:v,className:Nt(o,A.slideTransition)},x,{nodeRef:ue,children:m.jsx(lce,{ref:ue,role:"rowgroup",className:A.monthContainer,children:Ge.map((ze,Ne)=>m.jsxs(cce,{role:"row",className:A.weekContainer,"aria-rowindex":Ne+1,children:[_&&m.jsx(ace,{className:A.weekNumber,role:"rowheader","aria-label":te.calendarWeekNumberAriaLabelText(n.getWeekNumber(ze[0])),children:te.calendarWeekNumberText(n.getWeekNumber(ze[0]))}),ze.map((le,xt)=>m.jsx(uce,{parentProps:t,day:le,selectedDays:Ce,focusableDay:ke,onKeyDown:ae,onFocus:ce,onBlur:me,onDaySelect:pe,isDateDisabled:K,currentMonthNumber:ye,isViewFocused:X,"aria-colindex":xt+1},le.toString()))]},`week-${ze[0]}`))})}))]})}function fce(e){return on("MuiPickersMonth",e)}const nv=Kt("MuiPickersMonth",["root","monthButton","disabled","selected"]),pce=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],hce=e=>{const{disabled:t,selected:n,classes:r}=e;return tn({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},fce,r)},mce=Qe("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%"}}]}),gce=Qe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${nv.disabled}`]:t.disabled},{[`&.${nv.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"},[`&.${nv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${nv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),yce=C.memo(function(e){const t=Vr({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:f,onKeyDown:c,onFocus:h,onBlur:y,"aria-current":b,"aria-label":v,slots:x,slotProps:w}=t,S=Fn(t,pce),M=C.useRef(null),T=hce(t);Po(()=>{n&&M.current?.focus()},[n]);const R=x?.monthButton??gce,$=xr({elementType:R,externalSlotProps:w?.monthButton,additionalProps:{children:o,disabled:a,tabIndex:u,ref:M,type:"button",role:"radio","aria-current":b,"aria-checked":s,"aria-label":v,onClick:P=>f(P,l),onKeyDown:P=>c(P,l),onFocus:P=>h(P,l),onBlur:P=>y(P,l)},ownerState:t,className:T.monthButton});return m.jsx(mce,De({className:Nt(T.root,r),ownerState:t},S,{children:m.jsx(R,De({},$))}))});function vce(e){return on("MuiMonthCalendar",e)}Kt("MuiMonthCalendar",["root"]);const bce=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],xce=e=>{const{classes:t}=e;return tn({root:["root"]},vce,t)};function Sce(e,t){const n=Hr(),r=Og(),o=Vr({props:e,name:t});return De({disableFuture:!1,disablePast:!1},o,{minDate:Wi(n,o.minDate,r.minDate),maxDate:Wi(n,o.maxDate,r.maxDate)})}const wce=Qe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:C0,boxSizing:"border-box"}),Cce=C.forwardRef(function(e,t){const n=Sce(e,"MuiMonthCalendar"),{className:r,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:f,maxDate:c,minDate:h,onChange:y,shouldDisableMonth:b,readOnly:v,autoFocus:x=!1,onMonthFocus:w,hasFocus:S,onFocusedViewChange:M,monthsPerRow:T=3,timezone:R,gridLabelId:$,slots:P,slotProps:N}=n,V=Fn(n,bce),{value:F,handleValueChange:W,timezone:_}=jk({name:"MonthCalendar",timezone:R,value:o,defaultValue:a,referenceDate:s,onChange:y,valueManager:el}),k=S0(_),I=gs(),z=Hr(),H=C.useMemo(()=>el.getInitialReferenceValue({value:F,utils:z,props:n,timezone:_,referenceDate:s,granularity:_s.month}),[]),A=n,Z=xce(A),K=C.useMemo(()=>z.getMonth(k),[z,k]),te=C.useMemo(()=>F!=null?z.getMonth(F):null,[F,z]),[X,Q]=C.useState(()=>te||z.getMonth(H)),[ne,ie]=ui({name:"MonthCalendar",state:"hasFocus",controlled:S,default:x??!1}),pe=Lt(Ce=>{ie(Ce),M&&M(Ce)}),oe=C.useCallback(Ce=>{const Te=z.startOfMonth(f&&z.isAfter(k,h)?k:h),ue=z.startOfMonth(u&&z.isBefore(k,c)?k:c),ke=z.startOfMonth(Ce);return z.isBefore(ke,Te)||z.isAfter(ke,ue)?!0:b?b(ke):!1},[u,f,c,h,k,b,z]),ae=Lt((Ce,Te)=>{if(v)return;const ue=z.setMonth(F??H,Te);W(ue)}),ce=Lt(Ce=>{oe(z.setMonth(F??H,Ce))||(Q(Ce),pe(!0),w&&w(Ce))});C.useEffect(()=>{Q(Ce=>te!==null&&Ce!==te?te:Ce)},[te]);const me=Lt((Ce,Te)=>{switch(Ce.key){case"ArrowUp":ce((12+Te-3)%12),Ce.preventDefault();break;case"ArrowDown":ce((12+Te+3)%12),Ce.preventDefault();break;case"ArrowLeft":ce((12+Te+(I?1:-1))%12),Ce.preventDefault();break;case"ArrowRight":ce((12+Te+(I?-1:1))%12),Ce.preventDefault();break}}),ye=Lt((Ce,Te)=>{ce(Te)}),we=Lt((Ce,Te)=>{X===Te&&pe(!1)});return m.jsx(wce,De({ref:t,className:Nt(Z.root,r),ownerState:A,role:"radiogroup","aria-labelledby":$},V,{children:Rk(z,F??H).map(Ce=>{const Te=z.getMonth(Ce),ue=z.format(Ce,"monthShort"),ke=z.format(Ce,"month"),Ge=Te===te,ze=l||oe(Ce);return m.jsx(yce,{selected:Ge,value:Te,onClick:ae,onKeyDown:me,autoFocus:ne&&Te===X,disabled:ze,tabIndex:Te===X&&!ze?0:-1,onFocus:ye,onBlur:we,"aria-current":K===Te?"date":void 0,"aria-label":ke,monthsPerRow:T,slots:P,slotProps:N,children:ue},ue)})}))});function kce(e){return on("MuiPickersYear",e)}const rv=Kt("MuiPickersYear",["root","yearButton","selected","disabled"]),Tce=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Mce=e=>{const{disabled:t,selected:n,classes:r}=e;return tn({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},kce,r)},Ece=Qe("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%"}}]}),Oce=Qe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${rv.disabled}`]:t.disabled},{[`&.${rv.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"},[`&.${rv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${rv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Rce=C.memo(function(e){const t=Vr({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:f,onKeyDown:c,onFocus:h,onBlur:y,"aria-current":b,slots:v,slotProps:x}=t,w=Fn(t,Tce),S=C.useRef(null),M=Mce(t);Po(()=>{n&&S.current?.focus()},[n]);const T=v?.yearButton??Oce,R=xr({elementType:T,externalSlotProps:x?.yearButton,additionalProps:{children:o,disabled:a,tabIndex:u,ref:S,type:"button",role:"radio","aria-current":b,"aria-checked":s,onClick:$=>f($,l),onKeyDown:$=>c($,l),onFocus:$=>h($,l),onBlur:$=>y($,l)},ownerState:t,className:M.yearButton});return m.jsx(Ece,De({className:Nt(M.root,r),ownerState:t},w,{children:m.jsx(T,De({},R))}))});function $ce(e){return on("MuiYearCalendar",e)}Kt("MuiYearCalendar",["root"]);const Pce=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Dce=e=>{const{classes:t}=e;return tn({root:["root"]},$ce,t)};function Ace(e,t){const n=Hr(),r=Og(),o=Vr({props:e,name:t});return De({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Wi(n,o.minDate,r.minDate),maxDate:Wi(n,o.maxDate,r.maxDate)})}const jce=Qe("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:C0,maxHeight:ise,boxSizing:"border-box",position:"relative"}),Nce=C.forwardRef(function(e,t){const n=Ace(e,"MuiYearCalendar"),{autoFocus:r,className:o,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:f,disablePast:c,maxDate:h,minDate:y,onChange:b,readOnly:v,shouldDisableYear:x,onYearFocus:w,hasFocus:S,onFocusedViewChange:M,yearsOrder:T="asc",yearsPerRow:R,timezone:$,gridLabelId:P,slots:N,slotProps:V}=n,F=Fn(n,Pce),{value:W,handleValueChange:_,timezone:k}=jk({name:"YearCalendar",timezone:$,value:a,defaultValue:s,referenceDate:l,onChange:b,valueManager:el}),I=S0(k),z=gs(),H=Hr(),A=C.useMemo(()=>el.getInitialReferenceValue({value:W,utils:H,props:n,timezone:k,referenceDate:l,granularity:_s.year}),[]),Z=n,K=Dce(Z),te=C.useMemo(()=>H.getYear(I),[H,I]),X=C.useMemo(()=>W!=null?H.getYear(W):null,[W,H]),[Q,ne]=C.useState(()=>X||H.getYear(A)),[ie,pe]=ui({name:"YearCalendar",state:"hasFocus",controlled:S,default:r??!1}),oe=Lt(Ne=>{pe(Ne),M&&M(Ne)}),ae=C.useCallback(Ne=>{if(c&&H.isBeforeYear(Ne,I)||f&&H.isAfterYear(Ne,I)||y&&H.isBeforeYear(Ne,y)||h&&H.isAfterYear(Ne,h))return!0;if(!x)return!1;const le=H.startOfYear(Ne);return x(le)},[f,c,h,y,I,x,H]),ce=Lt((Ne,le)=>{if(v)return;const xt=H.setYear(W??A,le);_(xt)}),me=Lt(Ne=>{ae(H.setYear(W??A,Ne))||(ne(Ne),oe(!0),w?.(Ne))});C.useEffect(()=>{ne(Ne=>X!==null&&Ne!==X?X:Ne)},[X]);const ye=T!=="desc"?R*1:R*-1,we=z&&T==="asc"||!z&&T==="desc"?-1:1,Ce=Lt((Ne,le)=>{switch(Ne.key){case"ArrowUp":me(le-ye),Ne.preventDefault();break;case"ArrowDown":me(le+ye),Ne.preventDefault();break;case"ArrowLeft":me(le-we),Ne.preventDefault();break;case"ArrowRight":me(le+we),Ne.preventDefault();break}}),Te=Lt((Ne,le)=>{me(le)}),ue=Lt((Ne,le)=>{Q===le&&oe(!1)}),ke=C.useRef(null),Ge=mr(t,ke);C.useEffect(()=>{if(r||ke.current===null)return;const Ne=ke.current.querySelector('[tabindex="0"]');if(!Ne)return;const le=Ne.offsetHeight,xt=Ne.offsetTop,Fe=ke.current.clientHeight,it=ke.current.scrollTop,ct=xt+le;le>Fe||xt<it||(ke.current.scrollTop=ct-Fe/2-le/2)},[r]);const ze=H.getYearRange([y,h]);return T==="desc"&&ze.reverse(),m.jsx(jce,De({ref:Ge,className:Nt(K.root,o),ownerState:Z,role:"radiogroup","aria-labelledby":P},F,{children:ze.map(Ne=>{const le=H.getYear(Ne),xt=le===X,Fe=u||ae(Ne);return m.jsx(Rce,{selected:xt,value:le,onClick:ce,onKeyDown:Ce,autoFocus:ie&&le===Q,disabled:Fe,tabIndex:le===Q&&!Fe?0:-1,onFocus:Te,onBlur:ue,"aria-current":te===le?"date":void 0,yearsPerRow:R,slots:N,slotProps:V,children:H.format(Ne,"year")},H.format(Ne,"year"))})}))}),Ice=e=>on("MuiPickersCalendarHeader",e),Lce=Kt("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function zce(e){return on("MuiPickersArrowSwitcher",e)}Kt("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Fce=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Bce=["ownerState"],Uce=["ownerState"],_ce=Qe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Vce=Qe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),_P=Qe(Kc,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Hce=e=>{const{classes:t}=e;return tn({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},zce,t)},Wce=C.forwardRef(function(e,t){const n=gs(),r=Vr({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:a,slots:s,slotProps:l,isNextDisabled:u,isNextHidden:f,onGoToNext:c,nextLabel:h,isPreviousDisabled:y,isPreviousHidden:b,onGoToPrevious:v,previousLabel:x,labelId:w}=r,S=Fn(r,Fce),M=r,T=Hce(M),R={isDisabled:u,isHidden:f,goTo:c,label:h},$={isDisabled:y,isHidden:b,goTo:v,label:x},P=s?.previousIconButton??_P,N=xr({elementType:P,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:$.label,"aria-label":$.label,disabled:$.isDisabled,edge:"end",onClick:$.goTo},ownerState:De({},M,{hidden:$.isHidden}),className:Nt(T.button,T.previousIconButton)}),V=s?.nextIconButton??_P,F=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({},M,{hidden:R.isHidden}),className:Nt(T.button,T.nextIconButton)}),W=s?.leftArrowIcon??wse,_=xr({elementType:W,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:M,className:T.leftArrowIcon}),k=Fn(_,Bce),I=s?.rightArrowIcon??Cse,z=xr({elementType:I,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:M,className:T.rightArrowIcon}),H=Fn(z,Uce);return m.jsxs(_ce,De({ref:t,className:Nt(T.root,a),ownerState:M},S,{children:[m.jsx(P,De({},N,{children:n?m.jsx(I,De({},H)):m.jsx(W,De({},k))})),o?m.jsx(br,{variant:"subtitle1",component:"span",id:w,children:o}):m.jsx(Vce,{className:T.spacer,ownerState:M}),m.jsx(V,De({},F,{children:n?m.jsx(W,De({},k)):m.jsx(I,De({},H))}))]}))});function qce(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 Yce(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 Gce=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Kce=["ownerState"],Qce=e=>{const{classes:t}=e;return tn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Ice,t)},Xce=Qe("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}),Zce=Qe("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})),Jce=Qe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),eue=Qe(Kc,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Lce.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),tue=Qe(Sse,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),nue=C.forwardRef(function(e,t){const n=_l(),r=Hr(),o=Vr({props:e,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:u,disableFuture:f,disablePast:c,maxDate:h,minDate:y,onMonthChange:b,onViewChange:v,view:x,reduceAnimations:w,views:S,labelId:M,className:T,timezone:R,format:$=`${r.formats.month} ${r.formats.year}`}=o,P=Fn(o,Gce),N=o,V=Qce(o),F=a?.switchViewButton??eue,W=xr({elementType:F,externalSlotProps:s?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(x)},ownerState:N,className:V.switchViewButton}),_=a?.switchViewIcon??tue,k=xr({elementType:_,externalSlotProps:s?.switchViewIcon,ownerState:N,className:V.switchViewIcon}),I=Fn(k,Kce),z=()=>b(r.addMonths(l,1),"left"),H=()=>b(r.addMonths(l,-1),"right"),A=qce(l,{disableFuture:f,maxDate:h,timezone:R}),Z=Yce(l,{disablePast:c,minDate:y,timezone:R}),K=()=>{if(!(S.length===1||!v||u))if(S.length===2)v(S.find(X=>X!==x)||S[0]);else{const X=S.indexOf(x)!==0?0:1;v(S[X])}};if(S.length===1&&S[0]==="year")return null;const te=r.formatByString(l,$);return m.jsxs(Xce,De({},P,{ownerState:N,className:Nt(V.root,T),ref:t,children:[m.jsxs(Zce,{role:"presentation",onClick:K,ownerState:N,"aria-live":"polite",className:V.labelContainer,children:[m.jsx(wL,{reduceAnimations:w,transKey:te,children:m.jsx(Jce,{id:M,ownerState:N,className:V.label,children:te})}),S.length>1&&!u&&m.jsx(F,De({},W,{children:m.jsx(_,De({},I))}))]}),m.jsx(od,{in:x==="day",appear:!w,enter:!w,children:m.jsx(Wce,{slots:a,slotProps:s,onGoToPrevious:H,isPreviousDisabled:Z,previousLabel:n.previousMonth,onGoToNext:z,isNextDisabled:A,nextLabel:n.nextMonth})})]}))}),rue=Qe("div")({overflow:"hidden",width:C0,maxHeight:Nk,display:"flex",flexDirection:"column",margin:"0 auto"}),oue=e=>on("MuiDateCalendar",e);Kt("MuiDateCalendar",["root","viewTransitionContainer"]);const aue=["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"],iue=e=>{const{classes:t}=e;return tn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},oue,t)};function sue(e,t){const n=Hr(),r=Og(),o=iL(),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??(()=>m.jsx("span",{children:"..."})),minDate:Wi(n,a.minDate,r.minDate),maxDate:Wi(n,a.maxDate,r.maxDate)})}const lue=Qe(rue,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Nk}),cue=Qe(wL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),uue=C.forwardRef(function(e,t){const n=Hr(),r=ys(),o=sue(e,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:u,referenceDate:f,disableFuture:c,disablePast:h,onChange:y,onYearChange:b,onMonthChange:v,reduceAnimations:x,shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:M,view:T,views:R,openTo:$,className:P,disabled:N,readOnly:V,minDate:F,maxDate:W,disableHighlightToday:_,focusedView:k,onFocusedViewChange:I,showDaysOutsideCurrentMonth:z,fixedWeekNumber:H,dayOfWeekFormatter:A,slots:Z,slotProps:K,loading:te,renderLoading:X,displayWeekNumber:Q,yearsOrder:ne,yearsPerRow:ie,monthsPerRow:pe,timezone:oe}=o,ae=Fn(o,aue),{value:ce,handleValueChange:me,timezone:ye}=jk({name:"DateCalendar",timezone:oe,value:l,defaultValue:u,referenceDate:f,onChange:y,valueManager:el}),{view:we,setView:Ce,focusedView:Te,setFocusedView:ue,goToNextView:ke,setValueAndGoToNextView:Ge}=sL({view:T,views:R,openTo:$,onChange:me,onViewChange:s,autoFocus:a,focusedView:k,onFocusedViewChange:I}),{referenceDate:ze,calendarState:Ne,changeFocusedDay:le,changeMonth:xt,handleChangeMonth:Fe,isDateDisabled:it,onMonthSwitchingAnimationEnd:ct}=Nle({value:ce,referenceDate:f,reduceAnimations:x,onMonthChange:v,minDate:F,maxDate:W,shouldDisableDate:w,disablePast:h,disableFuture:c,timezone:ye}),Ft=N&&ce||F,_t=N&&ce||W,at=`${r}-grid-label`,Ze=Te!==null,rt=Z?.calendarHeader??nue,je=xr({elementType:rt,externalSlotProps:K?.calendarHeader,additionalProps:{views:R,view:we,currentMonth:Ne.currentMonth,onViewChange:Ce,onMonthChange:(dn,vn)=>Fe({newMonth:dn,direction:vn}),minDate:Ft,maxDate:_t,disabled:N,disablePast:h,disableFuture:c,reduceAnimations:x,timezone:ye,labelId:at},ownerState:o}),he=Lt(dn=>{const vn=n.startOfMonth(dn),Bn=n.endOfMonth(dn),Wn=it(dn)?$m({utils:n,date:dn,minDate:n.isBefore(F,vn)?vn:F,maxDate:n.isAfter(W,Bn)?Bn:W,disablePast:h,disableFuture:c,isDateDisabled:it,timezone:ye}):dn;Wn?(Ge(Wn,"finish"),v?.(vn)):(ke(),xt(vn)),le(Wn,!0)}),We=Lt(dn=>{const vn=n.startOfYear(dn),Bn=n.endOfYear(dn),Wn=it(dn)?$m({utils:n,date:dn,minDate:n.isBefore(F,vn)?vn:F,maxDate:n.isAfter(W,Bn)?Bn:W,disablePast:h,disableFuture:c,isDateDisabled:it,timezone:ye}):dn;Wn?(Ge(Wn,"finish"),b?.(Wn)):(ke(),xt(vn)),le(Wn,!0)}),Me=Lt(dn=>me(dn&&ib(n,dn,ce??ze),"finish",we));C.useEffect(()=>{ce!=null&&n.isValid(ce)&&xt(ce)},[ce]);const kt=o,Mt=iue(kt),gt={disablePast:h,disableFuture:c,maxDate:W,minDate:F},ut={disableHighlightToday:_,readOnly:V,disabled:N,timezone:ye,gridLabelId:at,slots:Z,slotProps:K},$t=C.useRef(we);C.useEffect(()=>{$t.current!==we&&(Te===$t.current&&ue(we,!0),$t.current=we)},[Te,ue,we]);const Vt=C.useMemo(()=>[ce],[ce]);return m.jsxs(lue,De({ref:t,className:Nt(Mt.root,P),ownerState:kt},ae,{children:[m.jsx(rt,De({},je,{slots:Z,slotProps:K})),m.jsx(cue,{reduceAnimations:x,className:Mt.viewTransitionContainer,transKey:we,ownerState:kt,children:m.jsxs("div",{children:[we==="year"&&m.jsx(Nce,De({},gt,ut,{value:ce,onChange:We,shouldDisableYear:M,hasFocus:Ze,onFocusedViewChange:dn=>ue("year",dn),yearsOrder:ne,yearsPerRow:ie,referenceDate:ze})),we==="month"&&m.jsx(Cce,De({},gt,ut,{hasFocus:Ze,className:P,value:ce,onChange:he,shouldDisableMonth:S,onFocusedViewChange:dn=>ue("month",dn),monthsPerRow:pe,referenceDate:ze})),we==="day"&&m.jsx(dce,De({},Ne,gt,ut,{onMonthSwitchingAnimationEnd:ct,onFocusedDayChange:le,reduceAnimations:x,selectedDays:Vt,onSelectedDaysChange:Me,shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:M,hasFocus:Ze,onFocusedViewChange:dn=>ue("day",dn),showDaysOutsideCurrentMonth:z,fixedWeekNumber:H,dayOfWeekFormatter:A,displayWeekNumber:Q,loading:te,renderLoading:X}))]})})]}))}),Vf=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:u,className:f,classes:c,disableFuture:h,disablePast:y,minDate:b,maxDate:v,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,reduceAnimations:M,onMonthChange:T,monthsPerRow:R,onYearChange:$,yearsOrder:P,yearsPerRow:N,slots:V,slotProps:F,loading:W,renderLoading:_,disableHighlightToday:k,readOnly:I,disabled:z,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:A,sx:Z,autoFocus:K,fixedWeekNumber:te,displayWeekNumber:X,timezone:Q})=>m.jsx(uue,{view:e,onViewChange:t,views:n.filter(OP),focusedView:r&&OP(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:u,className:f,classes:c,disableFuture:h,disablePast:y,minDate:b,maxDate:v,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,reduceAnimations:M,onMonthChange:T,monthsPerRow:R,onYearChange:$,yearsOrder:P,yearsPerRow:N,slots:V,slotProps:F,loading:W,renderLoading:_,disableHighlightToday:k,readOnly:I,disabled:z,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:A,sx:Z,autoFocus:K,fixedWeekNumber:te,displayWeekNumber:X,timezone:Q}),ML=C.forwardRef(function(e,t){const n=_l(),r=Hr(),o=tL(e,"MuiDesktopDatePicker"),a=De({day:Vf,month:Vf,year:Vf},o.viewRenderers),s=De({},o,{viewRenderers:a,format:$k(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:De({openPickerIcon:kse,field:xL},o.slots),slotProps:De({},o.slotProps,{field:u=>De({},p0(o.slotProps?.field,u),rL(o),{ref:t}),toolbar:De({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:l}=xse({props:s,valueManager:el,valueType:"date",getOpenDialogAriaText:JI({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Rg});return l()});ML.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:mI,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 due(e){return on("MuiDialogContent",e)}Kt("MuiDialogContent",["root","dividers"]);const fue=Kt("MuiDialogTitle",["root"]),pue=e=>{const{classes:t,dividers:n}=e;return tn({root:["root",n&&"dividers"]},due,t)},hue=Qe("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:{[`.${fue.root} + &`]:{paddingTop:0}}}]}))),mue=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...a}=n,s={...n,dividers:o},l=pue(s);return m.jsx(hue,{className:Nt(l.root,r),ownerState:s,ref:t,...a})});function gue(e){return on("MuiDialog",e)}const Pm=Kt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),yue=C.createContext({}),vue=Qe(MI,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),bue=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,gue,t)},xue=Qe(EI,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Sue=Qe("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"}}}]}),wue=Qe(pd,{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)`,[`&.${Pm.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}`,[`&.${Pm.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,[`&.${Pm.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Cue=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:u,BackdropProps:f,children:c,className:h,disableEscapeKeyDown:y=!1,fullScreen:b=!1,fullWidth:v=!1,maxWidth:x="sm",onClick:w,onClose:S,open:M,PaperComponent:T=pd,PaperProps:R={},scroll:$="paper",slots:P={},slotProps:N={},TransitionComponent:V=od,transitionDuration:F=o,TransitionProps:W,..._}=n,k={...n,disableEscapeKeyDown:y,fullScreen:b,fullWidth:v,maxWidth:x,scroll:$},I=bue(k),z=C.useRef(),H=Te=>{z.current=Te.target===Te.currentTarget},A=Te=>{w&&w(Te),z.current&&(z.current=null,S&&S(Te,"backdropClick"))},Z=ys(s),K=C.useMemo(()=>({titleId:Z}),[Z]),te={transition:V,...P},X={transition:W,paper:R,backdrop:f,...N},Q={slots:te,slotProps:X},[ne,ie]=ir("root",{elementType:xue,shouldForwardComponentProp:!0,externalForwardedProps:Q,ownerState:k,className:Nt(I.root,h),ref:t}),[pe,oe]=ir("backdrop",{elementType:vue,shouldForwardComponentProp:!0,externalForwardedProps:Q,ownerState:k}),[ae,ce]=ir("paper",{elementType:wue,shouldForwardComponentProp:!0,externalForwardedProps:Q,ownerState:k,className:Nt(I.paper,R.className)}),[me,ye]=ir("container",{elementType:Sue,externalForwardedProps:Q,ownerState:k,className:I.container}),[we,Ce]=ir("transition",{elementType:od,externalForwardedProps:Q,ownerState:k,additionalProps:{appear:!0,in:M,timeout:F,role:"presentation"}});return m.jsx(ne,{closeAfterTransition:!0,slots:{backdrop:pe},slotProps:{backdrop:{transitionDuration:F,as:u,...oe}},disableEscapeKeyDown:y,onClose:S,open:M,onClick:A,...ie,..._,children:m.jsx(we,{...Ce,children:m.jsx(me,{onMouseDown:H,...ye,children:m.jsx(ae,{as:T,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Z,"aria-modal":l,...ce,children:m.jsx(yue.Provider,{value:K,children:c})})})})})}),kue=Qe(Cue)({[`& .${Pm.container}`]:{outline:0},[`& .${Pm.paper}`]:{outline:0,minWidth:C0}}),Tue=Qe(mue)({"&:first-of-type":{padding:0}});function Mue(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:a}=e,s=o?.dialog??kue,l=o?.mobileTransition??od;return m.jsx(s,De({open:r,onClose:n},a?.dialog,{TransitionComponent:l,TransitionProps:a?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:a?.mobilePaper,children:m.jsx(Tue,{children:t})}))}const Eue=["props","getOpenDialogAriaText"],Oue=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Fn(e,Eue);const{slots:o,slotProps:a,className:s,sx:l,format:u,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:h,onSelectedSectionsChange:y,timezone:b,name:v,label:x,inputRef:w,readOnly:S,disabled:M,localeText:T}=t,R=C.useRef(null),$=ys(),P=a?.toolbar?.hidden??!1,{open:N,actions:V,layoutProps:F,renderCurrentView:W,fieldProps:_,contextValue:k}=lL(De({},r,{props:t,fieldRef:R,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),I=o.field,z=xr({elementType:I,externalSlotProps:a?.field,additionalProps:De({},_,P&&{id:$},!(M||S)&&{onClick:V.onOpen,onKeyDown:wie(V.onOpen)},{readOnly:S??!0,disabled:M,className:s,sx:l,format:u,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:h,onSelectedSectionsChange:y,timezone:b,label:x,name:v},w?{inputRef:w}:{}),ownerState:t});z.inputProps=De({},z.inputProps,{"aria-label":n(_.value)});const H=De({textField:o.textField},z.slots),A=o.layout??dL;let Z=$;P&&(x?Z=`${$}-label`:Z=void 0);const K=De({},a,{toolbar:De({},a?.toolbar,{titleId:$}),mobilePaper:De({"aria-labelledby":Z},a?.mobilePaper)}),te=mr(R,z.unstableFieldRef);return{renderPicker:()=>m.jsxs(fL,{contextValue:k,localeText:T,children:[m.jsx(I,De({},z,{slots:H,slotProps:K,unstableFieldRef:te})),m.jsx(Mue,De({},V,{open:N,slots:o,slotProps:K,children:m.jsx(A,De({},F,K?.layout,{slots:o,slotProps:K,children:W()}))}))]})}},EL=C.forwardRef(function(e,t){const n=_l(),r=Hr(),o=tL(e,"MuiMobileDatePicker"),a=De({day:Vf,month:Vf,year:Vf},o.viewRenderers),s=De({},o,{viewRenderers:a,format:$k(r,o,!1),slots:De({field:xL},o.slots),slotProps:De({},o.slotProps,{field:u=>De({},p0(o.slotProps?.field,u),rL(o),{ref:t}),toolbar:De({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:l}=Oue({props:s,valueManager:el,valueType:"date",getOpenDialogAriaText:JI({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Rg});return l()});EL.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:mI,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 Rue=["desktopModeMediaQuery"],lb=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=Cie}=n,o=Fn(n,Rue);return qI(r,{defaultMatches:!0})?m.jsx(ML,De({ref:t},o)):m.jsx(EL,De({ref:t},o))});function $ue(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}const Zm=sr(m.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 OL(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"?Pue(n):n}function Pue(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"?`
434
- `:r==="t"?" ":r==="r"?"\r":r):e}$r.extend(KC);const VP=14,Due=42;function Aue(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(`
435
- `):void 0}function jue({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:a}){const s=e.label??e.name??"",l=e.type??"string",u=Aue(e),f=OL(l,e.default),c=f!==void 0?`Default: ${f===""?"(empty)":f}`:void 0,h=u||c?m.jsxs(m.Fragment,{children:[u,u&&c?m.jsx("br",{}):null,c]}):void 0,y=l==="string"||Df(l)==="string",b=!Iu(l)||typeof t!="string"||GQ(t),v=H=>m.jsx(Oa,{label:s,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:m.jsxs(m.Fragment,{children:[`Not a ${H}. Clear it to pick one.`,h?m.jsx("br",{}):null,h]}),slotProps:{input:{endAdornment:m.jsx(eS,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),x=Iu(l),w=e.control==="multiselect"&&x,S=Iu(l),M=e.control==="select"||e.control==="multiselect",T=M?S?typeof t=="string"?YQ(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(M&&y&&b&&!(!w&&T.length>1)){const H=A=>{const Z=S?QC(A):void 0;if(A.length===0||Z===""){n(null);return}n(S?Z:A[0])};return m.jsx(IH,{multiple:w,disableCloseOnSelect:w,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:a?"Options unavailable":"No matching values",value:w?T:T[0]??null,onChange:(A,Z)=>H(Z===null?[]:Array.isArray(Z)?Z:[Z]),renderInput:A=>m.jsx(Oa,{...A,label:s,size:"small",placeholder:T.length!==0?void 0:t===""?"All":f??"All",error:a,helperText:a?m.jsxs(m.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",h?m.jsx("br",{}):null,h]}):h,slotProps:{input:{...A.InputProps,endAdornment:m.jsxs(m.Fragment,{children:[o&&m.jsx(cg,{size:16}),A.InputProps.endAdornment]})}}}),fullWidth:!0})}const R=Iu(l)&&Df(l)==="number",{rangeMin:$,rangeMax:P}=e,N=R&&typeof t=="string"?QQ(t):void 0,V=R&&typeof t=="string"?ZQ(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 H=V??(N!==void 0?[N,P]:void 0),A=R?H?.[0]:typeof t=="number"?t:void 0;if(A===void 0&&t!==void 0&&t!==null&&t!=="")return v("number");const Z=A??$,K=H??[$,P],te=K[1]>=P?`≥ ${K[0]}`:`${K[0]} to ${K[1]}`,X=R&&t==="",Q=A!==void 0||X;return m.jsxs(jS,{fullWidth:!0,children:[m.jsxs(Ht,{sx:{height:Due,px:`${VP}px`,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m.jsxs(fr,{direction:"row",alignItems:"center",spacing:1,children:[m.jsx(jt,{variant:"body2",color:"text.secondary",noWrap:!0,children:s}),m.jsx(jt,{variant:"body2",sx:{fontWeight:600},children:Q?X?"Any":R?te:String(Z):R?"Any":f??"Unset"}),Q&&m.jsx(Qr,{size:"small","aria-label":"clear value",onClick:()=>n(null),sx:{p:0},children:m.jsx(Zm,{fontSize:"small"})})]}),m.jsx(Aq,{size:"small",min:$,max:P,value:R?K:Z,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,ie)=>{if(R){const[pe,oe]=Array.isArray(ie)?[ie[0],ie[1]]:[ie,ie];if(pe<=$&&oe>=P){n(null);return}n(oe>=P?KQ(pe):XQ(pe,oe));return}n(Array.isArray(ie)?ie[0]:ie)}})]}),h&&m.jsx(NS,{sx:{mx:`${VP}px`},children:h})]})}const F=Iu(l)?Df(l):void 0,W=F==="date"||F==="timestamp"||F==="timestamptz",_=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),k=t==null||_;if(W&&!_){const H=Iue(t);if(H!==void 0)return m.jsx(Lue,{label:s,state:H,onChange:n,helperNode:h,defaultDisplay:f})}if(W&&k){const H=_?$r.utc(t):null;return m.jsx(sb,{dateAdapter:kw,children:m.jsx(lb,{label:s,value:H?.isValid()?H:null,onChange:A=>n(A?A.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:h},field:{clearable:!0,onClear:()=>n(null)}}})})}if(Df(l)==="boolean"){const H=typeof t=="string"?qQ(t):void 0;if(t==null||t===""||H!==void 0)return m.jsx(Nue,{label:s,picked:H,emptyOverride:t==="",onChange:n,helperNode:h,defaultDisplay:f})}if(l==="boolean"){const H=typeof t=="boolean";if(!H&&t!==void 0&&t!==null)return v("true or false");const A=e.default?.trim()==="true";return m.jsxs(jS,{children:[m.jsxs(fr,{direction:"row",alignItems:"center",children:[m.jsx(EC,{control:m.jsx(k8,{checked:H?t:A,onChange:Z=>n(Z.target.checked)}),label:s}),H&&m.jsx(Qr,{size:"small","aria-label":"clear value",onClick:()=>n(null),edge:"end",children:m.jsx(Zm,{fontSize:"small"})})]}),h&&m.jsx(NS,{children:h})]})}if(l==="number"){const H=typeof t=="number"?t:"",A=t!=null;return A&&t!==""&&typeof t!="number"?v("number"):m.jsx(Oa,{label:s,type:"number",value:H,onChange:Z=>{const K=Z.target.value;n(K===""?null:Number(K))},placeholder:f,helperText:h,slotProps:{input:{endAdornment:A&&m.jsx(eS,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(l==="date"||l==="timestamp"||l==="timestamptz"){const H=t instanceof Date?t:typeof t=="string"?(Z=>Z instanceof Date?Z:null)(zN(l,t)):null,A=H?$r.utc(H):null;return t!=null&&t!==""&&H===null?v("date"):m.jsx(sb,{dateAdapter:kw,children:m.jsx(lb,{label:s,value:A,onChange:Z=>n(Z?lX(Z,H??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:h},field:{clearable:!0,onClear:()=>n(null)}}})})}const I=typeof t=="string"?t:"",z=t!=null;return m.jsx(Oa,{label:s,value:I,onChange:H=>n(H.target.value),placeholder:z?void 0:f??(l.startsWith("filter<")?l:void 0),helperText:h,slotProps:{input:{endAdornment:z&&m.jsx(eS,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function eS({onClear:e}){return m.jsx(YW,{position:"end",children:m.jsx(Qr,{size:"small","aria-label":"clear value",onClick:e,edge:"end",children:m.jsx(Zm,{fontSize:"small"})})})}const ov="__any__";function Nue({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:a}){const s=t??(n?ov:"");return m.jsx(Ht,{"data-testid":"boolean-filter",children:m.jsxs(Oa,{select:!0,label:e,value:s,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===ov?"Any":a||"Any"},input:{endAdornment:s!==""?m.jsx(Qr,{size:"small","aria-label":"clear value",onClick:()=>r(null),sx:{mr:2},children:m.jsx(Zm,{fontSize:"small"})}):void 0}},onChange:l=>{l.target.value!==ov&&r(l.target.value)},children:[n&&m.jsx(ha,{value:ov,children:"Any"}),m.jsx(ha,{value:"true",children:"true"}),m.jsx(ha,{value:"false",children:"false"})]})})}function Iue(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=eX(e);if(t!==void 0)return{kind:"preset",key:t};const n=rX(e);if(n!==void 0)return{kind:"days",...n}}const av="__custom__",tS="__any__";function Lue({label:e,state:t,onChange:n,helperNode:r,defaultDisplay:o}){const a=t.kind==="days"?`days:${t.firstDay}/${t.lastDay}`:t.kind==="preset"?`preset:${t.key}`:t.kind,[s,l]=C.useState(t.kind==="days"),[u,f]=C.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});C.useEffect(()=>{t.kind==="days"?(l(!0),f({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&l(!1)},[a]);const c=t.kind!=="unset",h=s?av:t.kind==="preset"?t.key:t.kind==="any"?tS:"",y=v=>{f(v),v.from&&v.to&&!$r.utc(v.to).isBefore($r.utc(v.from))&&n(nX(v.from,v.to))},b=v=>{const x=v?$r.utc(v):null;return x?.isValid()?x:null};return m.jsxs(fr,{direction:"row",spacing:1,"data-testid":"time-range",children:[m.jsxs(Oa,{select:!0,label:e,value:h,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:v=>{if(v===av)return"Custom range";if(v===tS)return"Any time";const x=Kv.find(w=>w.key===v);return x?x.label:o??"Any time"}},input:{endAdornment:c?m.jsx(Qr,{size:"small","aria-label":"clear value",onClick:()=>{l(!1),f({}),n(null)},sx:{mr:2},children:m.jsx(Zm,{fontSize:"small"})}):void 0}},onChange:v=>{const x=v.target.value;if(x===av){l(!0);return}l(!1);const w=JQ(x);w!==void 0&&n(w)},children:[t.kind==="any"&&m.jsx(ha,{value:tS,children:"Any time"}),Kv.map(v=>m.jsx(ha,{value:v.key,children:v.label},v.key)),m.jsx(ha,{value:av,children:"Custom range"})]}),s&&m.jsxs(sb,{dateAdapter:kw,children:[m.jsx(lb,{label:"From",value:b(u.from),onChange:v=>y({...u,from:v?v.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),m.jsx(lb,{label:"To",value:b(u.to),minDate:b(u.from)??void 0,onChange:v=>y({...u,to:v?v.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function zk({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:a,optionsLoading:s,optionsFailed:l,apply:u,title:f}){const{theme:c}=ol();if(e.length===0)return null;const h=Array.from(t.values()).some(v=>v!==null),y=e.map(v=>m.jsx(Ht,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:m.jsx(jue,{given:v,value:v.name?t.get(v.name):void 0,onChange:x=>v.name&&n(v.name,x),options:v.name?a?.get(v.name):void 0,optionsLoading:s,optionsFailed:v.name?l?.has(v.name):void 0})},v.name)),b=m.jsxs(fr,{direction:"row",alignItems:"center",spacing:1,children:[u&&m.jsx(Go,{variant:"contained",size:"small",disableElevation:!0,onClick:u.onApply,disabled:!u.pending,sx:{textTransform:"none"},children:"Apply"}),h&&m.jsx(Go,{variant:"text",size:"small",onClick:r,sx:{textTransform:"none"},children:"Reset"})]});return o==="bar"?m.jsx(La,{elevation:0,sx:{p:2,border:c.cardBorder,borderRadius:1,backgroundColor:"transparent"},children:m.jsxs(fr,{direction:"row",alignItems:"flex-start",spacing:2,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[y,m.jsx(Ht,{sx:{flex:"0 0 auto",ml:"auto",pt:.5},children:b})]})}):m.jsxs(La,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[m.jsxs(fr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[m.jsx(jt,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary"},children:f??"Parameters"}),b]}),m.jsx(Ht,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:y})]})}const zue=sr(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));function Fue(e){return e!=null}function Bue(e,t){const n=[],r=[];for(const a of e){if(a.name===void 0||Fue(t.get(a.name)))continue;if(a.default==null){n.push(a.name);continue}const s=OL(a.type??"string",a.default);s&&r.push(`${a.name} = ${s}`)}const o={missing:n};return r.length>0&&(o.defaultsNote=r.length===1?`Ran with the default ${r[0]}`:`Ran with defaults ${r.join(", ")}`),o}function Uue(e){return e.length===1?`This source may need a value for the given ${e[0]}. Set it in the parameters above.`:`This source may need values for the givens ${e.join(", ")}. Set them in the parameters above.`}function _ue({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:a,givens:s,gate:l}){return an.useEffect(()=>{o&&o(t)},[t,o]),m.jsx(bN,{children:m.jsxs(X6,{spacing:2,component:"section",children:[m.jsx(Hue,{sourceAndPath:e[t],existingQuery:n,onChange:u=>{r&&r(u)},resourceUri:a,givens:s,gate:l}),m.jsx(TA,{height:"5px"})]})})}function nS(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Vue({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:a,givens:s,gate:l}){const[u,f]=an.useState(n||nS()),[c,h]=an.useState(void 0);an.useEffect(()=>{n&&f(n)},[n]);const[y,b]=an.useState([]),{MalloyExplorerProvider:v,QueryPanel:x,ResizableCollapsiblePanel:w,ResultPanel:S,SourcePanel:M}=r;an.useEffect(()=>{t&&t(u)},[t,u]);const{environmentName:T,packageName:R,versionId:$}=xo(a),{apiClients:P}=zr(),N=an.useRef(void 0),V=Ws({mutationFn:()=>{N.current=l,h({executionState:"running",query:u?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:()=>{V.reset(),h(void 0)},response:{}});const k=typeof u?.malloyQuery=="string"?u.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:u?.malloyQuery}).toMalloy();return f({...u,query:k}),P.models.executeQueryModel(T,R,e.modelPath,{query:k,sourceName:void 0,queryName:void 0,versionId:$,...s&&Object.keys(s).length>0?{givens:s}:{}})},onSuccess:k=>{if(k){const I=JSON.parse(k.data.result);f({...u,malloyResult:I});const z=N.current;h(H=>H?{...H,executionState:"finished",response:{result:I,...z?.defaultsNote?{messages:[{severity:"INFO",title:z.defaultsNote}]}:{}}}:void 0)}},onError:k=>{console.error("Query execution error:",k);const I=k?.data?.message??k?.message??"The query could not be run.",z=[{severity:"ERROR",title:I}],H=N.current?.missing??[];(k?.status===403||/Access denied for source/i.test(I))&&H.length>0&&z.push({severity:"WARN",title:Uue(H)}),h(A=>A?{...A,executionState:"finished",response:{messages:z}}:void 0)}}),[F,W]=an.useState(e.sourceInfo.name);an.useEffect(()=>{F!==e.sourceInfo.name&&(W(e.sourceInfo.name),f(nS()),h(void 0))},[e,F]);const _=an.useCallback(k=>{f({...u,malloyQuery:k,malloyResult:void 0})},[u]);return F!==e.sourceInfo.name?m.jsx("div",{children:"Loading..."}):m.jsx(xN,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:m.jsx(v,{source:e.sourceInfo,query:u?.malloyQuery,topValues:[],onFocusedNestViewPathChange:b,focusedNestViewPath:y,onQueryChange:_,children:m.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[m.jsx(w,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:m.jsx(M,{onRefresh:()=>f(nS())})}),m.jsx(w,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:m.jsx(x,{runQuery:()=>{console.log(`running query with: ${u?.malloyQuery}`);try{V.mutate()}catch(k){console.error("Error running query:",k)}}})}),m.jsx(S,{source:e.sourceInfo,draftQuery:u?.malloyQuery,setDraftQuery:k=>f({...u,malloyQuery:k}),submittedQuery:c,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function Hue(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--kypg58s.js"),__vite__mapDeps([0,1,2,3,4,5,6])),Lo(()=>import("./index-DW7XZeXK.js").then(u=>u.i),__vite__mapDeps([4,3,2]))]).then(([u,f])=>{l&&(n(u),o(f),s(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),l&&s(!1)}),()=>{l=!1}},[]),a||!t||!r?m.jsx(cK,{children:m.jsx(xN,{children:m.jsx(TA,{sx:{alignItems:"center",justifyContent:"center",height:"200px",color:"text.secondary"},children:"Loading explorer..."})})}):m.jsx(Vue,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function Fk(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 RL({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:a,givens:s,onGivensChange:l,startingGivens:u}){const[f,c]=an.useState(r);an.useEffect(()=>{c(r)},[r]);const{data:h,isError:y,isLoading:b,error:v}=Fk(a,!e),{environmentName:x,packageName:w,modelPath:S,versionId:M}=xo(a),T=e||h,R=an.useMemo(()=>T?.givens??[],[T]),$=ZC({specs:R,loaded:!!T,params:s,onGivensChange:l,startingValues:u,documentKey:a,autorun:!0,environmentName:x??"",packageName:w??"",modelPath:S,versionId:M,documentName:S}),P=C.useMemo(()=>bg($.applied,$.declaredTypes),[$.applied,$.declaredTypes]),N=C.useMemo(()=>Bue(R,$.applied),[R,$.applied]);if(b&&!e)return m.jsx(oa,{text:"Fetching Model..."});if(y&&!e)return console.log("error",v),m.jsx(ma,{error:v,context:`ModelExplorer > ${S}`});if(!T)return m.jsx(oa,{text:"Loading..."});const V=(T?.sourceInfos||[]).map((W,_)=>{try{return JSON.parse(W)?.name||`Source ${_+1}`}catch{return`Source ${_+1}`}}),F=V[f]||"";return m.jsxs(aK,{variant:"outlined",children:[m.jsx(iK,{children:m.jsx(fr,{sx:{flexDirection:"row"},children:m.jsx(Zoe,{size:"small",id:"size-small-standard",disablePortal:!0,options:V,value:F,onChange:(W,_)=>{if(!_)return;const k=V.indexOf(_);k>=0&&(c(k),o?.(k))},renderInput:W=>m.jsx(hr,{...W}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),m.jsx(zk,{...$.panel}),m.jsx(bN,{children:m.jsxs(fr,{spacing:2,component:"section",children:[Array.isArray(T.sourceInfos)&&T.sourceInfos.length>0&&m.jsx(_ue,{sourceAndPaths:T.sourceInfos.map(W=>({sourceInfo:JSON.parse(W),modelPath:S})),selectedSourceIndex:f,existingQuery:n,onQueryChange:t,resourceUri:a,givens:P,gate:N}),m.jsx(Ht,{height:"5px"})]})})]})}function Bk({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:s,initialSelectedSourceIndex:l,onChange:u,onSourceChange:f,givens:c,onGivensChange:h,startingGivens:y}){return m.jsxs(Kf,{open:e,onClose:t,fullScreen:!0,children:[m.jsxs(Xf,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,m.jsx(Qr,{onClick:t,sx:{color:"text.secondary"},children:m.jsx(tp,{})})]}),m.jsx(Qf,{children:a?m.jsx(RL,{resourceUri:n,data:r,existingQuery:s,initialSelectedSourceIndex:l,onChange:u,onSourceChange:f,givens:c,onGivensChange:h,startingGivens:y}):m.jsx("div",{children:"No valid import statement found in cell"})})]})}const $L=C.createContext(void 0);function Wue({children:e,documentStorage:t}){const n=C.useMemo(()=>({documentStorage:t}),[t]);return m.jsx($L.Provider,{value:n,children:e})}function que(){return C.useContext($L)}class PL extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const ume=e=>e instanceof PL||e instanceof Error&&e.name==="DocumentNotFoundError";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 Yj(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 rY(t,HC)}const Yue=2,Gue=16;function Kue(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function Que({tiles:e,columns:t,keyOf:n,renderTile:r}){return m.jsx(Ht,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},gap:`${Gue}px`},children:e.map((o,a)=>m.jsx(Ht,{sx:{display:"grid",minWidth:0,gridColumn:{md:Kue(o,t)}},children:r(o,a)},n(o,a)))})}function Xue(e,t){if(e==null||e==="")return;const n=r=>`'${$ue(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=HP(e);return r&&`@${r}`}case"timestamp":{const r=HP(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 HP(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 Jue="[A-Za-z_][A-Za-z0-9_]*",WP=e=>new RegExp(`^${Jue}$`).test(e),ede=/^##[ \t]*artifact\b/;function qP(e){const t=e.trim().split(/[ \t\r]/,1)[0],n=/^(#{1,2})(\|?)(?:\(markdown\)|<markdown>|\[markdown\]|\{markdown\})$/.exec(t);return n?{level:n[1].length,block:n[2]==="|"}:void 0}function tde(e,t,n){const r=/^[ \t]*/.exec(e)[0].length;if(t!==void 0&&r!==t)return!1;const o=e.slice(r);return o.startsWith(n)&&(n!=="|#"||o.charAt(2)!=="#")}function Uk(e,t){const n=[];for(let r=0;r<e.length;r++){if(t?.(r))continue;const o=/^([ \t]*)(#{1,2})\|/.exec(e[r]);if(!o)continue;const a=o[2]==="#"?"|#":"|##";for(let s=r+1;s<e.length;s++)if(tde(e[s],o[1].length,a)){n.push([r,s]),r=s;break}}return n}function DL(e){const t=new Set;for(const[n,r]of Uk(e))for(let o=n;o<=r;o++)t.add(o);return t}function dme(e,t){const n=new Set,r=new Set;for(const[o,a]of Uk(e,t)){const s=qP(e[o])?.level===1;for(let l=o;l<=a;l++)r.add(l),s&&n.add(l)}return e.forEach((o,a)=>{if(r.has(a)||t?.(a))return;const s=qP(o);s?.level===1&&!s.block&&n.add(a)}),n}const nde=e=>{const t=DL(e);return e.findIndex((n,r)=>!t.has(r)&&ede.test(n.trim()))},rde=/^##"([ \t]|$)/;function fme(e){const t=nde(e),n=DL(e),r=h=>t<0||h<t,o=h=>t>=0&&h>t,a=[];e.forEach((h,y)=>{!n.has(y)&&rde.test(h.trim())&&a.push({at:y,text:h.trim().slice(3).trim(),block:!1})});for(const[h,y]of Uk(e)){if(!/^[ \t]*##\|"([ \t]|$)/.test(e[h]))continue;const b=[e[h].trim().slice(4),...e.slice(h+1,y)].map(v=>v.trim()).join(`
436
- `).trim();b.length>0&&a.push({at:h,text:b,block:!0})}a.sort((h,y)=>h.at-y.at);const s=a.filter(h=>r(h.at)),l=a.filter(h=>o(h.at)),u=s.some(h=>h.text.trim())?s:l,f=u.map(h=>h.text).join(`
437
- `),c=h=>h.filter(y=>!y.block).map(y=>y.at);return{read:c(u),blankAbove:u===l?c(s):[],below:c(l),belowBlock:l.some(h=>h.block),inBlock:u.some(h=>h.block),...f.trim()?{text:f}:{}}}function pme(e){const t=e.search(/tiles\s*=\s*\[/);if(t<0)return!1;const n=e.indexOf("[",t),r=e.indexOf("]",n);return r<0?!1:e.slice(n+1,r).replace(/"[^"]*"/g,"").replace(/[\s,]/g,"").length>0}function ode(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 YP=()=>typeof performance<"u"?performance.now():Date.now(),AL=200;function ade(e){const t=Xue(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${AL} }`}function _k(e){const t=ode(e);if(!(!t||t.refinement!==void 0||!WP(t.source)||!WP(t.view)))return{source:t.source,view:t.view}}const ide=e=>_k(e)?.source;function sde({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onClose:s,onDone:l}){const{theme:u}=ol(),f=e?ade(e):void 0;return m.jsxs(Kf,{open:e!==void 0,onClose:s,maxWidth:"lg",fullWidth:!0,children:[m.jsxs(Xf,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",pb:.5},children:[m.jsxs(Ht,{children:[e?m.jsxs(m.Fragment,{children:["Rows where"," ",m.jsx(Ht,{component:"code",sx:{fontSize:"0.9em"},children:e.field})," ","is ",e.label]}):"Rows",m.jsx(jt,{component:"div",variant:"caption",sx:{color:u.tileTitle,mt:.25},children:e?`The first ${AL} rows of ${e.source} behind this value, with the tile's own filters and the controls applied.`:""})]}),m.jsx(Qr,{onClick:s,"aria-label":"Close",size:"small",sx:{color:"text.secondary",ml:1},children:m.jsx(tp,{fontSize:"small"})})]}),m.jsxs(Qf,{dividers:!0,sx:{p:0,minHeight:240},children:[f===void 0&&e&&m.jsx(jt,{variant:"body2",sx:{p:2},children:"This value cannot be written as a filter, so its rows cannot be fetched."}),f!==void 0&&m.jsx(lde,{query:f,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:a,...l?{onDone:l}:{}})]}),m.jsxs(bj,{sx:{px:3,py:1.5},children:[f!==void 0&&m.jsx(jt,{variant:"caption",sx:{mr:"auto",color:u.tileTitle,fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:f,children:f}),m.jsx(Go,{onClick:s,children:"Close"})]})]})}function lde({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onDone:s}){const l=sk({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:a}),{isSuccess:u,isError:f}=l,c=C.useRef(void 0);return C.useEffect(()=>{c.current=YP()},[e]),C.useEffect(()=>{c.current===void 0||!u&&!f||(s?.(u,YP()-c.current),c.current=void 0)},[u,f,s]),m.jsx(Ht,{sx:{p:1},children:m.jsx(ck,{state:l,context:e})})}function cde({tile:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onClose:s}){const l=f0({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r}}),{data:u}=Fk(l,e!==void 0),f=C.useMemo(()=>{const h=ide(e);if(!u||h===void 0)return 0;const y=(u.sourceInfos??[]).findIndex(b=>{try{return JSON.parse(b)?.name===h}catch{return!1}});return y<0?0:y},[u,e]),c=C.useMemo(()=>{if(e===void 0)return;const h=_k(e),y=h?{definition:{kind:"arrow",source:{kind:"source_reference",name:h.source},view:{kind:"view_reference",name:h.view}}}:`run: ${e}`;return{query:`run: ${e}`,malloyQuery:y,malloyResult:void 0}},[e]);return e===void 0||!u?null:m.jsx(Bk,{open:!0,onClose:s,resourceUri:l,data:u,title:`Explore: ${e}`,existingQuery:c,initialSelectedSourceIndex:f,startingGivens:a})}function hme({resourceUri:e,dashboard:t,givens:n,onGivensChange:r,onNavigate:o,height:a,maxResultSize:s,onEvent:l}){const u=xo(e),{apiClients:f}=zr(),c=u.environmentName??"",h=u.packageName??"",y=u.versionId,b=!!u.environmentName&&!!u.packageName,{data:v,isSuccess:x,isError:w,error:S}=co({queryKey:["dashboard",c,h,y,t],queryFn:()=>f.dashboards.getDashboard(c,h,t,y),enabled:b}),M=v?.data,T=C.useMemo(()=>M?.givens??[],[M]),R=ZC({specs:T,loaded:x,startingValues:M?.startingGivens,params:n,onGivensChange:r,documentKey:`${c}/${h}/${y??""}/${t}`,autorun:M?.autorun!==!1,environmentName:c,packageName:h,modelPath:M?.path,versionId:y,documentName:t}),{applied:$,declaredTypes:P,canSelf:N,onSelf:V}=R,[F,W]=C.useState(void 0),[_,k]=C.useState(void 0),I=C.useCallback(ne=>{const ie=_k(ne.context);ie!==void 0&&W({...ie,field:ne.field,rawValue:ne.rawValue,label:ne.label})},[]),z=C.useMemo(()=>bg($,P),[$,P]),H=C.useMemo(()=>XC($,P),[$,P]),{drill:A,drillMenu:Z}=iI({onNavigate:o,onSelf:V,canSelf:N,selfLabel:"Filter this dashboard",onRows:I}),K=C.useCallback(ne=>({canDrill:A.canDrill,onClick:ie=>A.onClick({...ie,context:ne})}),[A]);if(!b)return m.jsxs($c,{severity:"error",children:["A dashboard resource URI must name an environment and a package. Received: ",e]});if(w)return m.jsx(ma,{context:`${c} > ${h} > ${t}`,error:S});if(!x||!M)return m.jsx(oa,{text:"Loading dashboard…"});if(M.error)return m.jsxs(fr,{spacing:2,children:[m.jsx(GP,{manifest:M}),m.jsx($c,{severity:"error",children:M.error})]});const te=M.path,X=M.tiles??[],Q=M.dashboardColumns??Yue;return m.jsxs(fr,{spacing:2,children:[m.jsx(GP,{manifest:M}),m.jsx(zk,{...R.panel,layout:"bar"}),te===void 0?m.jsx($c,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):M.query!==void 0?m.jsx(j$,{environmentName:c,packageName:h,versionId:y,modelPath:te,queryName:M.query,givens:$,declaredTypes:P,height:a,maxResultSize:s,drill:A}):X.length>0?m.jsx(Que,{tiles:X,columns:Q,keyOf:(ne,ie)=>`${ie}:${ne.query}`,renderTile:ne=>m.jsx(j$,{environmentName:c,packageName:h,versionId:y,modelPath:te,tile:ne.query,label:ne.label,subtitle:ne.subtitle,borderless:ne.borderless,givens:$,declaredTypes:P,givenNames:ne.givenNames,height:a??JJ,maxResultSize:s,drill:K(ne.query),onExplore:()=>{k(ne.query),l?.({type:"dashboard.explored",tile:ne.query})}})}):m.jsx($c,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),Z,te!==void 0&&m.jsxs(m.Fragment,{children:[m.jsx(sde,{request:F,environmentName:c,packageName:h,...y===void 0?{}:{versionId:y},modelPath:te,givens:z,onClose:()=>W(void 0),onDone:(ne,ie)=>{F&&l?.({type:"dashboard.rows_shown",source:F.source,view:F.view,field:F.field,ok:ne,durationMs:ie})}}),m.jsx(cde,{tile:_,environmentName:c,packageName:h,...y===void 0?{}:{versionId:y},modelPath:te,givens:H,onClose:()=>k(void 0)})]})]})}function GP({manifest:e}){return m.jsx(ude,{title:e.title??e.name,...e.description?{description:e.description}:{}})}function ude({title:e,description:t}){return m.jsxs(Ht,{children:[m.jsx(jt,{variant:"h5",sx:{fontWeight:600},children:e}),t&&m.jsx(Tm,{variant:"caption",children:t})]})}const dde=sr(m.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}));function jL({label:e,href:t,onClick:n}){return m.jsxs(p9,{...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:[m.jsx(dde,{sx:{fontSize:18}}),"Back to ",e]})}function mme(){const e=ng();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")}}const NL=sr(m.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"})),fde="publisher:resize";function pde(e){return typeof e=="object"&&e!==null&&e.type===fde&&typeof e.height=="number"}function IL(e){return e.replace(/\/api\/v0\/?$/,"")}function hde({server:e,environmentName:t,packageName:n,path:r}){const o=r.startsWith("public/")?r.slice(7):r;return`${IL(e)}/environments/${encodeURIComponent(t)}/packages/${encodeURIComponent(n)}/`+o}function mde(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 gme({resourceUri:e}){const{server:t,apiClients:n}=zr(),r=mde(e),o=r?.environmentName??"",a=r?.packageName??"",s=r?.dataAppPath??"",l=C.useMemo(()=>hde({server:t,environmentName:o,packageName:a,path:s}),[t,o,a,s]),u=co({queryKey:["data-apps",o,a],queryFn:()=>n.dataApps.listDataApps(o,a),enabled:!!r}).data?.data?.find(v=>v.path===s),f=u?.title??s,c=u?.fit==="viewport",h=C.useRef(null),[y,b]=C.useState(120);return C.useEffect(()=>{if(c)return;function v(x){pde(x.data)&&x.source===h.current?.contentWindow&&x.data.height>0&&b(Math.ceil(x.data.height))}return window.addEventListener("message",v),()=>window.removeEventListener("message",v)},[c]),r?m.jsxs(Ht,{sx:{p:3,...c?{height:"100%",display:"flex",flexDirection:"column"}:{maxWidth:1200,mx:"auto"}},children:[m.jsxs(fr,{direction:"row",alignItems:"baseline",spacing:1,sx:{mb:1,flexShrink:0},children:[m.jsx(jt,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:f}),m.jsx(jt,{variant:"caption",color:"text.secondary",sx:{fontFamily:ii},children:s}),m.jsx(Ht,{sx:{flex:1}}),m.jsx(_i,{title:"Open standalone in new tab",children:m.jsx(Qr,{size:"small",href:l,target:"_blank",rel:"noopener noreferrer","aria-label":"Open standalone in new tab",sx:{color:"text.secondary"},children:m.jsx(NL,{fontSize:"small"})})})]}),m.jsx(Ht,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1.5,overflow:"hidden",backgroundColor:"background.paper",...c?{flex:1,minHeight:0}:{}},children:m.jsx("iframe",{ref:h,src:l,title:f,sandbox:"allow-scripts allow-same-origin allow-forms",style:{display:"block",width:"100%",height:c?"100%":y,border:0}})})]}):m.jsxs(Ht,{sx:{p:3,maxWidth:1200,mx:"auto"},children:[m.jsx(jt,{variant:"h6",sx:{fontWeight:600},children:"Can't open data app"}),m.jsxs(jt,{variant:"body2",color:"text.secondary",sx:{mt:1},children:["This data app link is missing an environment, package, or path:",m.jsx(Ht,{component:"span",sx:{fontFamily:ii,ml:1},children:e})]})]})}function us({title:e,count:t,description:n,action:r,children:o}){const a=C.useId();return m.jsxs(Ht,{component:"section","aria-labelledby":a,sx:{mb:4},children:[m.jsxs(fr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:n?0:1,minHeight:40},children:[m.jsxs(fr,{direction:"row",alignItems:"baseline",spacing:1,children:[m.jsx(jt,{id:a,variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em",lineHeight:1.2},children:e}),t!==void 0&&m.jsxs(jt,{variant:"caption",color:"text.secondary",children:["(",t,")"]})]}),r]}),n&&m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:n}),m.jsx(Ht,{children:o})]})}function gde({resourceUri:e}){const{environmentName:t}=xo(e),{apiClients:n}=zr(),[r,o]=C.useState(!1),a=90,{data:s,isSuccess:l,isError:u,error:f}=co({queryKey:["about",t],queryFn:()=>n.environments.getEnvironment(t,!1)}),c=s?.data?.readme||"",h=c.split(/\s+/),y=h.length>a,b=h.slice(0,a).join(" ");return m.jsxs(m.Fragment,{children:[!l&&!u&&m.jsx(oa,{text:"Fetching About..."}),l&&c&&m.jsxs(us,{title:"Readme",children:[m.jsx(Tm,{variant:"caption",children:r||!y?c:b}),y&&m.jsx(Ht,{sx:{mt:1},children:m.jsx(kg,{label:r?"Read less":"Read more",onClick:()=>o(!r)})})]}),u&&m.jsx(ma,{error:f,context:`${t} > About`})]})}function yde(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=dk();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=Lt((w,S)=>{r?.(w,S)}),u=Lt(w=>{!r||w==null||s.start(w,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&u(t),s.clear),[o,t,u,s]);const f=w=>{r?.(w,"clickaway")},c=s.clear,h=C.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),y=w=>S=>{const M=w.onBlur;M?.(S),h()},b=w=>S=>{const M=w.onFocus;M?.(S),c()},v=w=>S=>{const M=w.onMouseEnter;M?.(S),c()},x=w=>S=>{const M=w.onMouseLeave;M?.(S),h()};return C.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",c)}},[n,o,h,c]),{getRootProps:(w={})=>{const S={...eb(e),...eb(w)};return{role:"presentation",...w,...S,onBlur:y(S),onFocus:b(S),onMouseEnter:v(S),onMouseLeave:x(S)}},onClickAway:f}}function KP(e){return e.substring(2).toLowerCase()}function vde(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function bde(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),u=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=mr(vp(t),l),h=Lt(v=>{const x=f.current;f.current=!1;const w=$o(l.current);if(!u.current||!l.current||"clientX"in v&&vde(v,w))return;if(s.current){s.current=!1;return}let S;v.composedPath?S=v.composedPath().includes(l.current):S=!w.documentElement.contains(v.target)||l.current.contains(v.target),!S&&(n||!x)&&o(v)}),y=v=>x=>{f.current=!0;const w=t.props[v];w&&w(x)},b={ref:c};return a!==!1&&(b[a]=y(a)),C.useEffect(()=>{if(a!==!1){const v=KP(a),x=$o(l.current),w=()=>{s.current=!0};return x.addEventListener(v,h),x.addEventListener("touchmove",w),()=>{x.removeEventListener(v,h),x.removeEventListener("touchmove",w)}}},[h,a]),r!==!1&&(b[r]=y(r)),C.useEffect(()=>{if(r!==!1){const v=KP(r),x=$o(l.current);return x.addEventListener(v,h),()=>{x.removeEventListener(v,h)}}},[h,r]),C.cloneElement(t,b)}function xde(e){return on("MuiSnackbarContent",e)}Kt("MuiSnackbarContent",["root","message","action"]);const Sde=e=>{const{classes:t}=e;return tn({root:["root"],action:["action"],message:["message"]},xde,t)},wde=Qe(pd,{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(ow(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:ow(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Cde=Qe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),kde=Qe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Tde=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:s="alert",...l}=n,u=n,f=Sde(u);return m.jsxs(wde,{role:s,elevation:6,className:Nt(f.root,o),ownerState:u,ref:t,...l,children:[m.jsx(Cde,{className:f.message,ownerState:u,children:a}),r?m.jsx(kde,{className:f.action,ownerState:u,children:r}):null]})});function Mde(e){return on("MuiSnackbar",e)}Kt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Ede=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Tt(n.vertical)}${Tt(n.horizontal)}`]};return tn(r,Mde,t)},Ode=Qe("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%)"}}}]}))),Rde=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:u=null,children:f,className:c,ClickAwayListenerProps:h,ContentProps:y,disableWindowBlurListener:b=!1,message:v,onBlur:x,onClose:w,onFocus:S,onMouseEnter:M,onMouseLeave:T,open:R,resumeHideDuration:$,slots:P={},slotProps:N={},TransitionComponent:V,transitionDuration:F=o,TransitionProps:{onEnter:W,onExited:_,...k}={},...I}=n,z={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:u,disableWindowBlurListener:b,TransitionComponent:V,transitionDuration:F},H=Ede(z),{getRootProps:A,onClickAway:Z}=yde({...z}),[K,te]=C.useState(!0),X=Te=>{te(!0),_&&_(Te)},Q=(Te,ue)=>{te(!1),W&&W(Te,ue)},ne={slots:{transition:V,...P},slotProps:{content:y,clickAwayListener:h,transition:k,...N}},[ie,pe]=ir("root",{ref:t,className:[H.root,c],elementType:Ode,getSlotProps:A,externalForwardedProps:{...ne,...I},ownerState:z}),[oe,{ownerState:ae,...ce}]=ir("clickAwayListener",{elementType:bde,externalForwardedProps:ne,getSlotProps:Te=>({onClickAway:(...ue)=>{const ke=ue[0];Te.onClickAway?.(...ue),!ke?.defaultMuiPrevented&&Z(...ue)}}),ownerState:z}),[me,ye]=ir("content",{elementType:Tde,shouldForwardComponentProp:!0,externalForwardedProps:ne,additionalProps:{message:v,action:a},ownerState:z}),[we,Ce]=ir("transition",{elementType:Gm,externalForwardedProps:ne,getSlotProps:Te=>({onEnter:(...ue)=>{Te.onEnter?.(...ue),Q(...ue)},onExited:(...ue)=>{Te.onExited?.(...ue),X(...ue)}}),additionalProps:{appear:!0,in:R,timeout:F,direction:s==="top"?"down":"up"},ownerState:z});return!R&&K?null:m.jsx(oe,{...ce,...P.clickAwayListener&&{ownerState:ae},children:m.jsx(ie,{...pe,children:m.jsx(we,{...Ce,children:f||m.jsx(me,{...ye})})})})});let Ew;function $de(e){Ew=e}function QP(e){if(Ew)try{Ew(e)}catch{}}function Pl(e,t,n){return(async r=>{const o=Date.now();try{const a=await n(r);return QP({type:"console.mutation",resource:e,action:t,ok:!0,durationMs:Date.now()-o}),a}catch(a){throw QP({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 bp({mutationFn:e,success:t,invalidates:n,closeDialog:r,resource:o,action:a}){const s=dd(),[l,u]=C.useState(""),f=Ws({mutationFn:Pl(o,a,e),onSuccess(){r();for(const c of n)s.invalidateQueries({queryKey:c});u(t)},onError(c){u(c instanceof Error?c.message:"An unknown error occurred")}});return{mutate:f.mutate,isPending:f.isPending,notice:m.jsx(Rde,{open:l!=="",autoHideDuration:6e3,onClose:()=>u(""),message:l})}}const LL="https://docs.malloydata.dev/documentation",XP=`${LL}/user_guides/publishing`,iv="https://github.com/malloydata/publisher/blob/main/docs",kc={docsHome:`${LL}/`,publishing:`${XP}/publishing`,mcpAgents:`${XP}/mcp_agents`,surfaces:`${iv}/choosing-a-surface.md`,givens:`${iv}/givens.md`,materialization:`${iv}/materialization.md`,connections:`${iv}/connections.md`};function Pde({resourceUri:e}){const[t,n]=C.useState(!1),{apiClients:r}=zr(),{environmentName:o}=xo(e),a=bp({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 u=new FormData(l.currentTarget),f=u.get("name")?.toString(),c=u.get("description")?.toString(),h=u.get("location")?.toString();a.mutate({name:f,description:c,location:h})};return m.jsxs(m.Fragment,{children:[m.jsx(Cg,{label:"Package",onClick:()=>n(!0)}),m.jsx(aa,{open:t,onClose:()=>n(!1),title:"New package",description:m.jsxs(m.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"," ",m.jsx(Ht,{component:"a",href:kc.publishing,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.primary"},children:"package format"}),"."]}),actions:m.jsxs(m.Fragment,{children:[m.jsx(Go,{disabled:a.isPending,onClick:()=>n(!1),children:"Cancel"}),m.jsx(Go,{type:"submit",form:"package-form",variant:"contained",loading:a.isPending,children:"Create package"})]}),children:m.jsx("form",{onSubmit:s,id:"package-form",children:m.jsxs(fr,{sx:{gap:2},children:[m.jsx(Oa,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),m.jsx(Oa,{id:"description",name:"description",label:"Description",multiline:!0,rows:3,fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),m.jsx(Oa,{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 Dde=sr(m.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}));function T0({icon:e,tint:t,label:n,mono:r,description:o,rightLabel:a,trailingAction:s,onClick:l,ariaLabel:u}){const f=!!l;return m.jsxs(Ht,{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":u,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:[m.jsx(Ht,{sx:{width:32,height:32,borderRadius:1,bgcolor:t,color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e}),m.jsxs(Ht,{sx:{flex:1,minWidth:0,display:"flex",alignItems:"baseline",gap:1.5},children:[m.jsx(jt,{variant:"body2",sx:{...r?{fontFamily:ii}:{},flexShrink:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),o&&m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o})]}),a&&m.jsx(jt,{variant:"caption",color:"text.secondary",sx:{flexShrink:0},children:a}),s&&m.jsx(Ht,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:s})]})}const zL=sr(m.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"})),Ade=Kt("MuiBox",["root"]),jde=tI(),Ea=oC({themeId:yp,defaultTheme:jde,defaultClassName:Ade.root,generateClassName:UN.generate}),M0=dC({createStyledComponent:Qe("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Hn({props:e,name:"MuiStack"})}),ZP=Kt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function Nde(e){return on("MuiListItemIcon",e)}const JP=Kt("MuiListItemIcon",["root","alignItemsFlexStart"]),Ide=e=>{const{alignItems:t,classes:n}=e;return tn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Nde,n)},Lde=Qe("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}}]}))),Vk=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,a=C.useContext(Al),s={...n,alignItems:a.alignItems},l=Ide(s);return m.jsx(Lde,{className:Nt(l.root,r),ownerState:s,ref:t,...o})});function zde(e){return on("MuiListItemText",e)}const jf=Kt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Fde=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"]},zde,t)},Bde=Qe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jf.primary}`]:t.primary},{[`& .${jf.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,[`.${oP.root}:where(& .${jf.primary})`]:{display:"block"},[`.${oP.root}:where(& .${jf.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Hk=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:u,secondary:f,secondaryTypographyProps:c,slots:h={},slotProps:y={},...b}=n,{dense:v}=C.useContext(Al);let x=l??r,w=f;const S={...n,disableTypography:a,inset:s,primary:!!x,secondary:!!w,dense:v},M=Fde(S),T={slots:h,slotProps:{primary:u,secondary:c,...y}},[R,$]=ir("root",{className:Nt(M.root,o),elementType:Bde,externalForwardedProps:{...T,...b},ownerState:S,ref:t}),[P,N]=ir("primary",{className:M.primary,elementType:br,externalForwardedProps:T,ownerState:S}),[V,F]=ir("secondary",{className:M.secondary,elementType:br,externalForwardedProps:T,ownerState:S});return x!=null&&x.type!==br&&!a&&(x=m.jsx(P,{variant:v?"body2":"body1",component:N?.variant?void 0:"span",...N,children:x})),w!=null&&w.type!==br&&!a&&(w=m.jsx(V,{variant:"body2",color:"textSecondary",...F,children:w})),m.jsxs(R,{...$,children:[x,w]})});function Ude(e){return on("MuiMenuItem",e)}const Qh=Kt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_de=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Vde=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"]},Ude,s);return{...s,...l}},Hde=Qe(rd,{shouldForwardProp:e=>Fa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:_de})(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"}},[`&.${Qh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Qh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Qh.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)}},[`&.${Qh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZP.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZP.inset}`]:{marginLeft:52},[`& .${jf.root}`]:{marginTop:0,marginBottom:0},[`& .${jf.inset}`]:{paddingLeft:36},[`& .${JP.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,[`& .${JP.root} svg`]:{fontSize:"1.25rem"}}}]}))),qo=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:u,role:f="menuitem",tabIndex:c,className:h,...y}=n,b=C.useContext(Al),v=C.useMemo(()=>({dense:a||b.dense||!1,disableGutters:l}),[b.dense,a,l]),x=C.useRef(null);Po(()=>{r&&x.current&&x.current.focus()},[r]);const w={...n,dense:v.dense,divider:s,disableGutters:l},S=Vde(n),M=mr(x,t);let T;return n.disabled||(T=c!==void 0?c:-1),m.jsx(Al.Provider,{value:v,children:m.jsx(Hde,{ref:M,role:f,tabIndex:T,component:o,focusVisibleClassName:Nt(S.focusVisible,u),className:Nt(S.root,h),...y,ownerState:w,classes:S})})}),Dl={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:[]},mm={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",trino:"trinoConnection",databricks:"databricksConnection",mysql:"mysqlConnection",duckdb:"duckdbConnection",motherduck:"motherduckConnection",ducklake:"ducklakeConnection",publisher:"publisherConnection"},FL=Object.values(kR).filter(e=>e!==kR.Publisher),Ow={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",gcs:"gcsConnection",s3:"s3Connection",azure:"azureConnection"},Jm=[{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"}}],eg=[{label:"Key ID",name:"keyId",type:"text",required:!0},{label:"Secret",name:"secret",type:"password",required:!0}],Wde=[{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 cb(e){return e==="postgres"||e==="bigquery"||e==="snowflake"?Dl[e]||[]:e==="s3"?Jm:e==="gcs"?eg:e==="azure"?Wde:[]}function qde({onSubmit:e,isSubmitting:t}){const[n,r]=C.useState(!1),[o,a]=C.useState("postgres"),[s,l]=C.useState([]),[u,f]=C.useState("postgres"),[c,h]=C.useState("s3"),[y,b]=C.useState("config"),v=()=>{r(!0)},x=()=>{r(!1),l([]),a("postgres"),f("postgres"),h("s3"),b("config")},w=async R=>{R.preventDefault();const $=new FormData(R.currentTarget),P=$.get("name")?.toString(),N=$.get("type")?.toString(),V=Dl[N];if(!P)throw new Error("Name is required");if(!N)throw new Error("Type is required");let F;if(N==="ducklake"){const W={};if(u==="postgres"){const I=Dl.postgres,z={};if(I.forEach(H=>{const A=$.get(`ducklake_pg_${H.name}`)?.toString();A&&(z[H.name]=A)}),Object.keys(z).length===0)throw new Error("DuckLake requires catalog connection");W.postgresConnection=z}const _=$.get("ducklake_bucketUrl")?.toString();if(!_)throw new Error("DuckLake requires a bucket URL");const k={bucketUrl:_};if(c==="s3"){const I={};if(Jm.forEach(z=>{const H=$.get(`ducklake_s3_${z.name}`)?.toString();H&&(I[z.name]=H)}),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(eg.forEach(z=>{const H=$.get(`ducklake_gcs_${z.name}`)?.toString();H&&(I[z.name]=H)}),!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)}F={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((_,k)=>{const I=_.dbType,z=$.get(`attachedDb_${k}_name`)?.toString();if(!z)throw new Error(`Attached database at index ${k} must have a name`);const H={name:z,type:I},A=cb(I);if(A&&A.length>0){const Z={};if(A.forEach(te=>{const X=$.get(`attachedDb_${k}_${te.name}`)?.toString();X&&(Z[te.name]=X)}),I==="s3"){if(Z.provider==="credential_chain")delete Z.accessKeyId,delete Z.secretAccessKey,delete Z.sessionToken;else if(delete Z.chain,!Z.accessKeyId||!Z.secretAccessKey)throw new Error(`Attached database "${z}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`)}const K=Ow[I];K&&(H[K]=Z)}return H});F={name:P,type:N,duckdbConnection:{attachedDatabases:W}}}else{const W={};if(V.forEach(_=>{const k=$.get(_.name)?.toString();k&&(W[_.name]=k)}),N==="postgres"){if(!W.connectionString?.trim()){const _=["host","port","databaseName","userName","password"];for(const k of _)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 _=["host","port","database","user","password"];for(const k of _)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 _=W.oauthClientId&&W.oauthClientSecret;if(!W.token&&!_)throw new Error("Either Access Token or OAuth Client ID + Secret is required")}F={name:P,type:N,[mm[N]]:W}}await e(F),x()},S=()=>{l([...s,{name:"",dbType:"postgres"}])},M=R=>{l(s.filter(($,P)=>P!==R))},T=(R,$)=>{const P=[...s];P[R]={...P[R],dbType:$},l(P)};return m.jsxs(an.Fragment,{children:[m.jsx(Cg,{label:"Connection",onClick:v}),m.jsx(aa,{open:n,onClose:x,title:"New connection",description:"Add a connection so packages in this environment can query your database with Malloy.",actions:m.jsxs(m.Fragment,{children:[m.jsx(uo,{disabled:t,onClick:x,children:"Cancel"}),m.jsx(uo,{type:"submit",form:"connection-form",variant:"contained",loading:t,children:"Create connection"})]}),children:m.jsx("form",{onSubmit:w,id:"connection-form",children:m.jsxs(M0,{sx:{gap:2},children:[m.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small"}),m.jsx(hr,{id:"type",name:"type",label:"Connection Type",fullWidth:!0,size:"small",value:o,select:!0,onChange:R=>a(R.target.value),children:FL.map(R=>m.jsx(qo,{value:R,children:R},R))}),o==="ducklake"?m.jsxs(Ea,{sx:{mt:2},children:[m.jsxs(Ea,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),m.jsx(hr,{id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,size:"small",value:u,select:!0,onChange:R=>f(R.target.value),children:m.jsx(qo,{value:"postgres",children:"PostgreSQL"})}),u==="postgres"&&m.jsx(m.Fragment,{children:Dl.postgres.map(R=>m.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}`))})]}),m.jsxs(Ea,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),m.jsxs(hr,{id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,size:"small",value:c,select:!0,onChange:R=>h(R.target.value),children:[m.jsx(qo,{value:"s3",children:"S3"}),m.jsx(qo,{value:"gcs",children:"GCS"})]}),m.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"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),Jm.filter(R=>R.visibleWhen?y===R.visibleWhen.value:!0).map(R=>m.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"?$=>b($.target.value):void 0,placeholder:R.name==="region"?"us-east-1":void 0,children:R.selectOptions?.map($=>m.jsx(qo,{value:$.value,children:$.label},$.value))},`s3_${R.name}`))]}),c==="gcs"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),eg.map(R=>m.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"?m.jsxs(Ea,{sx:{mt:2},children:[m.jsxs(Ea,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsx(br,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),m.jsx(kg,{label:"Database",icon:m.jsx(ik,{}),onClick:S,ariaLabel:"Add database"})]}),s.length===0&&m.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=cb(R.dbType);return m.jsxs(Ea,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsxs(Ea,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsxs(br,{variant:"subtitle2",children:["Database ",$+1]}),m.jsx(Kc,{onClick:()=>M($),size:"small",color:"error",children:m.jsx(zL,{fontSize:"small"})})]}),m.jsx(hr,{required:!0,id:`attachedDb_${$}_name`,name:`attachedDb_${$}_name`,label:"Database Name",type:"text",fullWidth:!0,size:"small",defaultValue:R.name}),m.jsx(hr,{id:`attachedDb_${$}_type`,name:`attachedDb_${$}_type`,label:"Database Type",fullWidth:!0,size:"small",value:R.dbType,select:!0,onChange:N=>T($,N.target.value),children:Object.values(vN).map(N=>m.jsx(qo,{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=>m.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 F=[...s];F[$]={...F[$],[N.name]:V.target.value},l(F)}:void 0,children:N.selectOptions?.map(V=>m.jsx(qo,{value:V.value,children:V.label},V.value))},N.name))]},$)})]}):Dl[o].map(R=>m.jsx(hr,{id:R.name,name:R.name,label:R.label,type:R.type,fullWidth:!0,size:"small",required:R.required},R.name))]})})})]})}function Yde({connection:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),s=()=>{a(!0)},l=()=>{a(!1),t()};return m.jsxs(an.Fragment,{children:[m.jsxs(qo,{"aria-label":`Delete connection ${e?.name??""}`.trim(),onClick:u=>{u.stopPropagation(),s()},sx:{color:"error.main"},children:[m.jsx(Vk,{sx:{color:"inherit"},children:m.jsx(Zb,{fontSize:"small"})}),m.jsx(Hk,{children:"Delete"})]}),m.jsx(aa,{open:o,onClose:l,title:"Delete connection",actions:m.jsxs(m.Fragment,{children:[m.jsx(uo,{onClick:l,children:"Cancel"}),m.jsx(uo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>r(),loading:n,children:"Delete connection"})]}),children:m.jsxs(br,{variant:"body2",children:["Delete ",m.jsx("strong",{children:e.name}),"? Packages that query through it stop working, and this cannot be undone."]})})]})}const eD=new Set(["password","connectionString","privateKey","privateKeyPass","serviceAccountKeyJson","token","oauthClientSecret","accessToken","peakaKey","secret","secretAccessKey","sessionToken","clientSecret","sasUrl"]);function tD(e){const t=e.duckdbConnection?.attachedDatabases;return!t||t.length===0?[]:t.map(n=>({name:n.name||"",dbType:n.type||"postgres"}))}function nD(e){const t=e.ducklakeConnection;return t&&t.storage?.gcsConnection?"gcs":"s3"}function Gde({connection:e,onSubmit:t,isSubmitting:n,onCloseDialog:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(e.type),u=an.useMemo(()=>new Set(e.withheldFields??[]),[e.withheldFields]),[f,c]=C.useState(()=>tD(e)),[h,y]=C.useState("postgres"),[b,v]=C.useState(()=>nD(e)),[x,w]=C.useState(()=>e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),S=()=>{c(tD(e)),l(e.type),w(e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),y("postgres"),v(nD(e)),a(!0)},M=()=>{a(!1),r?.()},T=async F=>{F.preventDefault();const W=new FormData(F.currentTarget),_=W.get("name")?.toString(),k=W.get("type")?.toString(),I=Dl[k];if(!_)throw new Error("Name is required");if(!k)throw new Error("Type is required");let z;if(k==="ducklake"){const H={};if(h==="postgres"){const K=Dl.postgres,te={};if(K.forEach(X=>{const Q=W.get(`ducklake_pg_${X.name}`)?.toString();Q&&(te[X.name]=Q)}),Object.keys(te).length===0)throw new Error("DuckLake requires catalog connection");H.postgresConnection=te}const A=W.get("ducklake_bucketUrl")?.toString();if(!A)throw new Error("DuckLake requires a bucket URL");const Z={bucketUrl:A};if(b==="s3"){const K={};Jm.forEach(X=>{const Q=W.get(`ducklake_s3_${X.name}`)?.toString();Q&&(K[X.name]=Q)});const te=e.ducklakeConnection?.storage?.s3Connection;if(te&&(!K.provider&&te.provider&&(K.provider=te.provider),!K.chain&&te.chain&&(K.chain=te.chain),!K.accessKeyId&&te.accessKeyId&&(K.accessKeyId=te.accessKeyId)),K.provider==="credential_chain")delete K.accessKeyId,delete K.secretAccessKey,delete K.sessionToken;else if(delete K.chain,!K.accessKeyId)throw new Error("S3 Access Key ID is required");Object.keys(K).length>0&&(Z.s3Connection=K)}else if(b==="gcs"){const K={};eg.forEach(X=>{const Q=W.get(`ducklake_gcs_${X.name}`)?.toString();Q&&(K[X.name]=Q)});const te=e.ducklakeConnection?.storage?.gcsConnection;if(te&&!K.keyId&&te.keyId&&(K.keyId=te.keyId),!K.keyId)throw new Error("GCS Key ID is required");Object.keys(K).length>0&&(Z.gcsConnection=K)}z={name:_,type:k,ducklakeConnection:{catalog:H,storage:Z}}}else if(k==="duckdb"){if(f.length===0)throw new Error("DuckDB connection must have at least one attached database");const H=f.map((A,Z)=>{const K=A.dbType,te=W.get(`attachedDb_${Z}_name`)?.toString();if(!te)throw new Error(`Attached database at index ${Z} must have a name`);const X={name:te,type:K},Q=cb(K);if(Q&&Q.length>0){const ne={};if(Q.forEach(pe=>{const oe=W.get(`attachedDb_${Z}_${pe.name}`)?.toString();oe&&(ne[pe.name]=oe)}),K==="s3"){if(ne.provider==="credential_chain")delete ne.accessKeyId,delete ne.secretAccessKey,delete ne.sessionToken;else if(delete ne.chain,!ne.accessKeyId||!ne.secretAccessKey)throw new Error(`Attached database "${te}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`)}const ie=Ow[K];ie&&(X[ie]=ne)}return X});z={name:_,type:k,duckdbConnection:{attachedDatabases:H}}}else{const H=e[mm[k]]||{},A={};if(I.forEach(Z=>{const K=W.get(Z.name)?.toString(),te=H[Z.name];K?A[Z.name]=K:eD.has(Z.name)||(K!==void 0?A[Z.name]=K:te&&(A[Z.name]=te))}),k==="postgres"){const Z=["host","port","databaseName","userName"],K=u.has("postgresConnection.connectionString");if(!(A.connectionString?.trim()||K)){const te=Z;for(const X of te)if(!A[X])throw new Error(`${I.find(Q=>Q.name===X)?.label||X} is required`)}}else if(k==="snowflake"){if(!A.account)throw new Error("Account is required");if(!A.username)throw new Error("Username is required");if(!A.warehouse)throw new Error("Warehouse is required")}else if(k==="trino"){if(!A.server)throw new Error("Server is required");if(!A.user)throw new Error("User is required")}else if(k==="mysql"){const Z=["host","port","database","user"];for(const K of Z)if(!A[K])throw new Error(`${I.find(te=>te.name===K)?.label||K} is required`)}else if(k==="databricks"){if(!A.host)throw new Error("Host is required");if(!A.path)throw new Error("HTTP Path is required")}z={name:_,type:k,[mm[k]]:A}}await t(z),M()},R=()=>{c([...f,{name:"",dbType:"postgres"}])},$=F=>{c(f.filter((W,_)=>_!==F))},P=(F,W)=>{const _=[...f];_[F]={..._[F],dbType:W},c(_)},N=(F,W)=>{const _=e.duckdbConnection?.attachedDatabases;if(!_||!_[F])return"";const k=_[F],I=Ow[k.type||""];return I&&k[I]?k[I][W]??"":""},V=F=>{const W=e.ducklakeConnection;if(!W)return"";if(F.startsWith("pg_")){const _=F.replace("pg_","");return W.catalog?.postgresConnection?.[_]??""}if(F==="bucketUrl")return W.storage?.bucketUrl??"";if(F.startsWith("s3_")){const _=F.replace("s3_","");return W.storage?.s3Connection?.[_]??""}if(F.startsWith("gcs_")){const _=F.replace("gcs_","");return W.storage?.gcsConnection?.[_]??""}return""};return m.jsxs(an.Fragment,{children:[m.jsxs(qo,{"aria-label":`Edit connection ${e?.name??""}`.trim(),onClick:F=>{F.preventDefault(),F.stopPropagation(),S()},children:[m.jsx(Vk,{children:m.jsx(GC,{fontSize:"small"})}),m.jsx(Hk,{children:"Edit"})]}),m.jsx(aa,{open:o,onClose:M,title:"Edit connection",description:"Change how packages in this environment reach your database.",actions:m.jsxs(m.Fragment,{children:[m.jsx(uo,{disabled:n,onClick:M,children:"Cancel"}),m.jsx(uo,{type:"submit",form:"connection-form",variant:"contained",loading:n,children:"Save changes"})]}),children:m.jsx("form",{onSubmit:T,id:"connection-form",children:m.jsxs(M0,{sx:{gap:2},children:[m.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",defaultValue:e.name}),m.jsx(hr,{id:"type",name:"type",label:"Connection Type",fullWidth:!0,size:"small",value:s,select:!0,onChange:F=>l(F.target.value),children:FL.map(F=>m.jsx(qo,{value:F,children:F},F))}),s==="ducklake"?m.jsxs(Ea,{sx:{mt:2},children:[m.jsxs(Ea,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),m.jsx(hr,{id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,size:"small",value:h,select:!0,onChange:F=>y(F.target.value),children:m.jsx(qo,{value:"postgres",children:"PostgreSQL"})}),h==="postgres"&&m.jsx(m.Fragment,{children:Dl.postgres.map(F=>m.jsx(hr,{id:`ducklake_pg_${F.name}`,name:`ducklake_pg_${F.name}`,label:F.label,type:F.type,fullWidth:!0,size:"small",defaultValue:V(`pg_${F.name}`)},`pg_${F.name}`))})]}),m.jsxs(Ea,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),m.jsxs(hr,{id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,size:"small",value:b,select:!0,onChange:F=>v(F.target.value),children:[m.jsx(qo,{value:"s3",children:"S3"}),m.jsx(qo,{value:"gcs",children:"GCS"})]}),m.jsx(hr,{required:!0,id:"ducklake_bucketUrl",name:"ducklake_bucketUrl",label:b==="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")}),b==="s3"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),Jm.filter(F=>F.visibleWhen?x===F.visibleWhen.value:!0).map(F=>m.jsx(hr,{id:`ducklake_s3_${F.name}`,name:`ducklake_s3_${F.name}`,label:F.label,type:F.selectOptions?void 0:F.type,fullWidth:!0,size:"small",required:F.required&&F.name!=="secretAccessKey",select:!!F.selectOptions,defaultValue:F.selectOptions?x:V(`s3_${F.name}`),onChange:F.name==="provider"?W=>w(W.target.value):void 0,placeholder:F.name==="region"?"us-east-1":F.name==="secretAccessKey"&&u.has("ducklakeConnection.storage.s3Connection.secretAccessKey")?"Leave empty to keep existing":void 0,children:F.selectOptions?.map(W=>m.jsx(qo,{value:W.value,children:W.label},W.value))},`s3_${F.name}`))]}),b==="gcs"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),eg.map(F=>m.jsx(hr,{id:`ducklake_gcs_${F.name}`,name:`ducklake_gcs_${F.name}`,label:F.label,type:F.type,fullWidth:!0,size:"small",required:F.required&&F.name!=="secret",defaultValue:V(`gcs_${F.name}`),placeholder:F.name==="secret"&&u.has("ducklakeConnection.storage.gcsConnection.secret")?"Leave empty to keep existing":void 0},`gcs_${F.name}`))]})]})]}):s==="duckdb"?m.jsxs(Ea,{sx:{mt:2},children:[m.jsxs(Ea,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsx(br,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),m.jsx(kg,{label:"Database",icon:m.jsx(ik,{}),onClick:R,ariaLabel:"Add database"})]}),f.length===0&&m.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((F,W)=>{const _=cb(F.dbType);return m.jsxs(Ea,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsxs(Ea,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsxs(br,{variant:"subtitle2",children:["Database ",W+1]}),m.jsx(Kc,{"aria-label":`Remove attached database ${W+1}`,onClick:()=>$(W),size:"small",color:"error",children:m.jsx(zL,{fontSize:"small"})})]}),m.jsx(hr,{required:!0,id:`attachedDb_${W}_name`,name:`attachedDb_${W}_name`,label:"Database Name",type:"text",fullWidth:!0,size:"small",defaultValue:F.name}),m.jsx(hr,{id:`attachedDb_${W}_type`,name:`attachedDb_${W}_type`,label:"Database Type",fullWidth:!0,size:"small",value:F.dbType,select:!0,onChange:k=>P(W,k.target.value),children:Object.values(vN).map(k=>m.jsx(qo,{value:k,children:k},k))}),_.filter(k=>k.visibleWhen?(F[k.visibleWhen.field]||N(W,k.visibleWhen.field)||_.find(I=>I.name===k.visibleWhen?.field)?.selectOptions?.[0]?.value)===k.visibleWhen.value:!0).map(k=>m.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 z=[...f];z[W]={...z[W],[k.name]:I.target.value},c(z)}:void 0,children:k.selectOptions?.map(I=>m.jsx(qo,{value:I.value,children:I.label},I.value))},k.name))]},W)})]}):Dl[s].map(F=>{const W=e?.[mm[s]??""]?.[F.name??""]??"",_=F.type==="password"||eD.has(F.name),k=u.has(`${mm[s]??""}.${F.name}`);return m.jsx(hr,{id:F.name,name:F.name,label:F.label,type:F.type,fullWidth:!0,size:"small",required:F.required&&!_&&!W,defaultValue:W,placeholder:k?"Leave empty to keep existing":void 0,helperText:_?k?"Stored value is not shown. Leave empty to keep it.":"No value stored.":void 0},F.name)})]})})})]})}function rD(e,t){return!e||e.type!=="duckdb"?!1:(e.duckdbConnection?.attachedDatabases||[]).some(n=>n.type==="azure"&&n.name===t)}function Kde(e){return e.startsWith("gs://")||e.startsWith("s3://")||e.startsWith("https://")||e.startsWith("abfss://")||e.startsWith("az://")}function Qde({connectionName:e,resourceUri:t,schema:n,connection:r}){const{apiClients:o}=zr(),{environmentName:a}=xo(t),[s,l]=an.useState(null),[u,f]=an.useState(n||null),[c,h]=an.useState(!1),{data:y,isError:b,isLoading:v,error:x}=co({queryKey:["schemas",a,e],queryFn:()=>o.connections.listSchemas(a,e)}),w=y?.data||[];return m.jsxs($f,{container:!0,spacing:1,children:[!n&&m.jsx($f,{size:{xs:12,md:4},children:m.jsxs(La,{sx:{p:1,m:0},children:[m.jsxs(Ht,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[m.jsx(jt,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),m.jsx(EC,{control:m.jsx(Oj,{checked:c,onChange:S=>h(S.target.checked)}),label:"Hidden Schemas"})]}),m.jsx(Bc,{sx:{mt:"2px"}}),m.jsxs(Ht,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[v&&m.jsx(oa,{text:"Loading schemas..."}),b&&m.jsx(ma,{error:x,context:`${a} > ${e} > Schemas`}),!v&&!b&&w.length===0&&m.jsx(jt,{variant:"body2",children:"No Schemas"}),!v&&!b&&w.length>0&&m.jsx($C,{dense:!0,disablePadding:!0,children:w.map(S=>{const M=S.name;return S.isHidden&&!c?null:m.jsx(xj,{selected:u===M,onClick:()=>{f(M),l(null)},children:m.jsx(Gc,{primary:M})},M)})})]})]})}),m.jsx($f,{size:{xs:12,md:n?6:4},children:u&&m.jsx(La,{sx:{p:1,m:0},children:m.jsx(Jde,{connectionName:e,schemaName:u,onTableSelect:S=>{l(S)},resourceUri:t,connection:r})})}),m.jsx($f,{size:{xs:12,md:n?6:4},children:u&&s&&m.jsx(Xde,{environmentName:a,connectionName:e,schemaName:u,tableResource:s})})]})}function Xde({environmentName:e,connectionName:t,schemaName:n,tableResource:r}){const{apiClients:o}=zr(),{data:a,isLoading:s,isError:l,error:u}=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 m.jsxs(La,{sx:{p:1,m:0},children:[l&&m.jsx(ma,{error:u,context:`${e} > ${t} > ${n} > ${r}`}),!l&&m.jsx(Zde,{table:f,loading:s})]})}function Zde({table:e,loading:t}){return t?m.jsx(oa,{text:"Loading columns..."}):m.jsxs(m.Fragment,{children:[m.jsxs(jt,{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]}),m.jsx(Bc,{}),m.jsx(Ht,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:m.jsx(g7,{children:m.jsxs(fg,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[m.jsx(hg,{children:m.jsxs(Zs,{children:[m.jsx(Xn,{children:"NAME"}),m.jsx(Xn,{children:"TYPE"})]})}),m.jsx(pg,{children:e.columns?.sort((n,r)=>n.name.localeCompare(r.name))?.map(n=>m.jsxs(Zs,{children:[m.jsx(Xn,{children:n.name}),m.jsx(Xn,{children:n.type})]},n.name))})]})})})]})}function Jde({connectionName:e,schemaName:t,onTableSelect:n,resourceUri:r,connection:o}){const{environmentName:a}=xo(r),{apiClients:s}=zr(),[l,u]=C.useState(""),{data:f,isSuccess:c,isError:h,error:y,isLoading:b}=co({queryKey:["tablesInSchema",a,e,t],queryFn:()=>s.connections.listTables(a,e,t)}),v=rD(o,t),x=S=>v?S:S.split(".").pop()||S,w=c&&f?.data?f.data.filter(S=>x(S.resource).toLowerCase().includes(l.toLowerCase())).sort((S,M)=>x(S.resource).localeCompare(x(M.resource))):[];return m.jsxs(m.Fragment,{children:[m.jsx(jt,{variant:"overline",fontWeight:"bold",children:Kde(t)||rD(o,t)?`Files in ${t}`:`Tables in ${t}`}),m.jsx(Bc,{}),m.jsx(Ht,{sx:{mt:1,mb:1},children:m.jsx(Oa,{size:"small",fullWidth:!0,placeholder:"Search tables...",value:l,onChange:S=>u(S.target.value),variant:"outlined"})}),m.jsx(Bc,{}),m.jsxs(Ht,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[b&&m.jsx(oa,{text:"Fetching Tables..."}),h&&m.jsx(ma,{error:y,context:`${a} > ${e} > ${t}`}),c&&w.length===0&&m.jsx(jt,{variant:"body2",children:"No Tables"}),c&&f?.data&&f.data.length>0&&m.jsx($C,{dense:!0,disablePadding:!0,children:w.map(S=>{let M=x(S.resource);return!v&&S.resource.includes("://")&&(M=S.resource.split("/").pop()||S.resource),m.jsx(xj,{onClick:()=>n(S.resource),children:m.jsx(Gc,{primary:M,secondary:S.columns.length>0?`${S.columns.length} columns`:void 0})},S.resource)})})]})]})}const efe={bigquery:"BigQuery",snowflake:"Snowflake",postgres:"PostgreSQL",mysql:"MySQL",trino:"Trino",databricks:"Databricks",duckdb:"DuckDB",ducklake:"DuckLake",s3:"S3",gcs:"GCS",azure:"Azure"};function tfe(e){return e?efe[e]??e:""}function nfe({resourceUri:e}){const{apiClients:t,mutable:n}=zr(),r=dd(),{environmentName:o}=xo(e),[a,s]=C.useState(""),[l,u]=C.useState(null),f=f0({environmentName:o,connectionName:l}),{data:c,isSuccess:h,isError:y,error:b}=co({queryKey:["connections",o],queryFn:()=>t.connections.listConnections(o)}),v=Ws({mutationFn:Pl("connection","create",T=>t.environments.updateEnvironment(o,{name:o,connections:[...c.data,T]})),onSuccess(){s("Connection added successfully"),r.invalidateQueries({queryKey:["connections",o]})},onError(T){s(T.message)}}),x=Ws({mutationFn:Pl("connection","update",T=>t.environments.updateEnvironment(o,{name:o,connections:c.data.map(R=>R.name===T.name?T:R)})),onSuccess(T,R){s(`Connection ${R.name} updated successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(T){s(T.message)}}),w=Ws({mutationFn:Pl("connection","delete",T=>{if(!T.name)throw new Error("Cannot delete a connection with no name");return t.connections.deleteConnection(o,T.name)}),onSuccess(T,R){s(`Connection ${R.name} deleted successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(T){s(T.message)}}),S=h?[...c.data].sort((T,R)=>(T.name??"").localeCompare(R.name??"")):[],M=v.isPending||x.isPending||w.isPending;return m.jsxs(us,{title:"Connections",...h?{count:S.length}:{},description:"Database connections available to packages in this environment",...n&&h?{action:m.jsx(qde,{onSubmit:T=>v.mutateAsync(T),isSubmitting:v.isPending})}:{},children:[!h&&!y&&m.jsx(jt,{variant:"body2",color:"text.secondary",children:"Fetching Connections..."}),y&&m.jsx(ma,{error:b,context:`${o} > Connections`}),h&&S.length===0&&m.jsx(jt,{variant:"body2",color:"text.secondary",children:"No connections yet."}),h&&S.length>0&&m.jsx(fr,{children:S.map(T=>m.jsx(rfe,{connection:T,mutable:n,isMutating:M,onOpenExplorer:()=>u(T.name??null),onEdit:R=>x.mutateAsync(R),onDelete:R=>w.mutateAsync(R)},T.name))}),m.jsx(_b,{open:a!=="",autoHideDuration:6e3,onClose:()=>s(""),message:a}),m.jsx(aa,{open:l!==null,onClose:()=>u(null),maxWidth:"lg",title:`Connection explorer: ${l??""}`,showClose:!0,children:l&&m.jsx(Qde,{resourceUri:f,connectionName:l,connection:c?.data?.find(T=>T.name===l)})})]})}function rfe({connection:e,mutable:t,isMutating:n,onOpenExplorer:r,onEdit:o,onDelete:a}){const[s,l]=C.useState(null),u=!!s,f=h=>{h.stopPropagation(),l(h.currentTarget)},c=()=>l(null);return m.jsx(T0,{icon:m.jsx(Dde,{sx:{fontSize:18}}),tint:VC.connection,label:e.name??"",ariaLabel:e.name??"",description:tfe(e.type),onClick:r,...t?{trailingAction:m.jsxs(m.Fragment,{children:[m.jsx(Qr,{size:"small",onClick:f,"aria-label":`Connection actions for ${e.name??""}`.trim(),children:m.jsx(Jb,{fontSize:"small"})}),m.jsxs(cd,{anchorEl:s,open:u,onClose:c,onClick:h=>h.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[m.jsx(Gde,{connection:e,onSubmit:o,isSubmitting:n,onCloseDialog:c}),m.jsx(Yde,{connection:e,onCloseDialog:c,isMutating:n,onDelete:()=>a(e)})]})]})}:{}})}const ofe=sr([m.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"),m.jsx("path",{d:"M9 12h6v2H9z"},"1")]);function afe({resourceUri:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=zr(),a=()=>{r(!0)},s=()=>{r(!1),t()},{environmentName:l,packageName:u}=xo(e),f=bp({mutationFn:()=>o.packages.deletePackage(l,u),success:"Package deleted",invalidates:[["packages",l]],closeDialog:s,resource:"package",action:"delete"});return m.jsxs(an.Fragment,{children:[m.jsxs(ha,{onClick:a,children:[m.jsx(pp,{children:m.jsx(Zb,{fontSize:"small"})}),m.jsx(Gc,{children:"Delete"})]}),m.jsx(aa,{open:n,onClose:s,title:"Delete package",actions:m.jsxs(m.Fragment,{children:[m.jsx(uo,{onClick:s,children:"Cancel"}),m.jsx(uo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>f.mutate(),loading:f.isPending,children:"Delete package"})]}),children:m.jsxs(br,{variant:"body2",children:["Delete ",m.jsx("strong",{children:u}),"? The package stops being served and this cannot be undone."]})}),f.notice]})}function ife({package:e,resourceUri:t,onCloseDialog:n}){const[r,o]=C.useState(!1),{apiClients:a}=zr(),s=()=>{o(!0)},l=()=>{o(!1),n()},{packageName:u,environmentName:f}=xo(t),c=bp({mutationFn(y){return a.packages.updatePackage(f,u,{name:u,description:y.description})},success:"Package updated",invalidates:[["packages",f]],closeDialog:l,resource:"package",action:"update"}),h=y=>{y.preventDefault();const b=new FormData(y.currentTarget).get("description")?.toString();c.mutate({description:b})};return m.jsxs(an.Fragment,{children:[m.jsxs(ha,{onClick:s,children:[m.jsx(pp,{children:m.jsx(GC,{fontSize:"small"})}),m.jsx(Gc,{children:"Edit"})]}),m.jsx(aa,{open:r,onClose:l,title:"Edit package",description:`What ${e.name} is, for the people who open it.`,actions:m.jsxs(m.Fragment,{children:[m.jsx(uo,{disabled:c.isPending,onClick:l,children:"Cancel"}),m.jsx(uo,{type:"submit",form:"package-form",variant:"contained",loading:c.isPending,children:"Save changes"})]}),children:m.jsx("form",{onSubmit:h,id:"package-form",children:m.jsxs(fr,{sx:{gap:2},children:[m.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}}),m.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 sfe({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 m.jsx(ma,{error:l,context:`${r} > Packages`});if(!a)return m.jsx(oa,{text:"Fetching Packages..."});const u=[...o.data].sort((f,c)=>f.name.localeCompare(c.name));return m.jsx(fr,{children:u.map(f=>{const c=f0({environmentName:r,packageName:f.name});return m.jsx(lfe,{pkg:f,packageResourceUri:c,onSelectPackage:e},f.name)})})}function lfe({pkg:e,packageResourceUri:t,onSelectPackage:n}){const{mutable:r}=zr(),[o,a]=C.useState(null),s=!!o,l=f=>{f.stopPropagation(),a(f.currentTarget)},u=()=>a(null);return m.jsx(T0,{icon:m.jsx(ofe,{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:m.jsxs(m.Fragment,{children:[m.jsx(Qr,{size:"small",onClick:l,"aria-label":`Package actions for ${e.name}`,children:m.jsx(Jb,{fontSize:"small"})}),m.jsxs(cd,{anchorEl:o,open:s,onClose:u,onClick:f=>f.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[m.jsx(ife,{package:e,resourceUri:t,onCloseDialog:u}),m.jsx(afe,{resourceUri:t,onCloseDialog:u})]})]})}:{}})}function yme({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"})},[]),m.jsxs(TC,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:3,py:6},children:[m.jsxs(Ht,{sx:{mb:4},children:[m.jsx(Ht,{children:m.jsx(jL,{label:"Publisher",onClick:s=>e("/",s)})}),m.jsx(jt,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:o}),m.jsx(jt,{variant:"body2",color:"text.secondary",children:"Manage packages and database connections in this environment. Open a package to explore its models and notebooks."})]}),m.jsx(us,{title:"Packages",...a.isSuccess?{count:a.data.data.length}:{},description:"Published packages available for use in this environment",...r?{action:m.jsx(Pde,{resourceUri:t})}:{},children:m.jsx(sfe,{onSelectPackage:e,resourceUri:t})}),m.jsx(nfe,{resourceUri:t}),m.jsx(gde,{resourceUri:t})]})}$r.extend(KC);function vme(){const[e]=D4(),t=ng(),n=tl(),r=C.useMemo(()=>Object.fromEntries(e.entries()),[e]),o=C.useRef(new Set),a=C.useCallback((s,l)=>{const u=new Set([...l,...o.current]);o.current=new Set([...o.current,...Object.keys(s),...l]);const f=new URLSearchParams(n.search);for(const c of u)Object.prototype.hasOwnProperty.call(s,c)||f.delete(c);for(const[c,h]of Object.entries(s))f.set(c,h);t({search:f.toString(),hash:n.hash},{replace:!0})},[t,n]);return{params:r,onGivensChange:a}}const cfe=sr(m.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"})),BL=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(" ")+"..."},UL=(e,t)=>{const n=(e.readme||void 0)?.split(`
438
- `)??[];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(`
439
- `)};function oD(){const[e,t]=C.useState(!1),{apiClients:n}=zr(),r=()=>{t(!0)},o=()=>{t(!1)},a=bp({mutationFn(l){return n.environments.createEnvironment({name:l.name,readme:UL({name:l.name,readme:""},l.description)})},success:"Environment created",invalidates:[["environments"]],closeDialog:o,resource:"environment",action:"create"}),s=async l=>{l.preventDefault();const u=new FormData(l.currentTarget),f=u.get("name")?.toString(),c=u.get("description")?.toString();if(!f)throw new Error("Name is required");a.mutate({name:f,description:c})};return m.jsxs(an.Fragment,{children:[m.jsx(Cg,{label:"Environment",onClick:r}),m.jsx(aa,{open:e,onClose:o,title:"New environment",description:"An environment holds packages and the connections they query through.",actions:m.jsxs(m.Fragment,{children:[m.jsx(uo,{disabled:a.isPending,onClick:o,children:"Cancel"}),m.jsx(uo,{type:"submit",form:"environment-form",variant:"contained",loading:a.isPending,children:"Create environment"})]}),children:m.jsx("form",{onSubmit:s,id:"environment-form",children:m.jsxs(M0,{sx:{gap:2},children:[m.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),m.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 ufe({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=zr(),a=()=>{r(!0)},s=()=>{r(!1),t()},l=bp({mutationFn:()=>o.environments.deleteEnvironment(e.name),success:"Environment deleted",invalidates:[["environments"]],closeDialog:s,resource:"environment",action:"delete"});return m.jsxs(an.Fragment,{children:[m.jsxs(ha,{onClick:a,children:[m.jsx(pp,{children:m.jsx(Zb,{fontSize:"small"})}),m.jsx(Gc,{children:"Delete"})]}),m.jsx(aa,{open:n,onClose:s,title:"Delete environment",actions:m.jsxs(m.Fragment,{children:[m.jsx(uo,{onClick:s,children:"Cancel"}),m.jsx(uo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>l.mutate(),loading:l.isPending,children:"Delete environment"})]}),children:m.jsxs(br,{variant:"body2",children:["Delete ",m.jsx("strong",{children:e.name}),"? Its packages stop being served and this cannot be undone."]})}),l.notice]})}function dfe({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=zr(),a=()=>{r(!0)},s=()=>{r(!1),t()},l=bp({mutationFn(f){return o.environments.updateEnvironment(e.name,{name:e.name,readme:UL({name:e.name,readme:e.readme},f.description)})},success:"Environment updated",invalidates:[["environments"]],closeDialog:s,resource:"environment",action:"update"}),u=f=>{f.preventDefault();const c=new FormData(f.currentTarget).get("description")?.toString();l.mutate({description:c})};return m.jsxs(an.Fragment,{children:[m.jsxs(ha,{onClick:a,children:[m.jsx(pp,{children:m.jsx(GC,{fontSize:"small"})}),m.jsx(Gc,{children:"Edit"})]}),m.jsx(aa,{open:n,onClose:s,title:"Edit environment",description:"What this environment is, for the people who open it.",actions:m.jsxs(m.Fragment,{children:[m.jsx(uo,{disabled:l.isPending,onClick:s,children:"Cancel"}),m.jsx(uo,{type:"submit",form:"environment-form",variant:"contained",loading:l.isPending,children:"Save changes"})]}),children:m.jsx("form",{onSubmit:u,id:"environment-form",children:m.jsxs(M0,{sx:{gap:2},children:[m.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}}),m.jsx(hr,{id:"description",name:"description",label:"Description",type:"text",fullWidth:!0,size:"small",defaultValue:BL(e.readme),InputLabelProps:{shrink:!0}})]})})}),l.notice]})}const ffe=[{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 pfe({href:e,children:t}){return m.jsx(Ht,{component:"a",href:e,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.primary",textDecoration:"underline"},children:t})}function bme({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 m.jsx(ma,{error:s,context:"Environments List"});if(!o)return m.jsx(oa,{text:"Loading environments..."});const l=r.data??[];return m.jsxs(TC,{maxWidth:"md",sx:{py:6},children:[m.jsxs(Ht,{sx:{mb:5},children:[m.jsx(jt,{variant:"h3",component:"h1",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Publisher"}),m.jsx(jt,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"The analytics engine for Malloy."}),m.jsx(jt,{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."})]}),m.jsx($f,{container:!0,spacing:4,sx:{mb:5},children:ffe.map(u=>m.jsx($f,{size:{xs:12,sm:6},children:m.jsxs(fr,{spacing:1,children:[m.jsx(jt,{variant:"body2",component:"a",href:u.href,target:"_blank",rel:"noopener noreferrer",sx:{fontWeight:500,color:"text.primary",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:u.title}),m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.6},children:u.body})]})},u.title))}),m.jsx(Bc,{sx:{my:4}}),l.length>0?m.jsx(us,{title:"Environments",count:l.length,description:"Published environments available on this server",...n?{action:m.jsx(oD,{})}:{},children:m.jsx(fr,{children:l.map(u=>m.jsx(hfe,{environment:u,...e?{onClickEnvironment:e}:{}},u.name))})}):m.jsxs(Ht,{sx:{mb:4},children:[m.jsx(jt,{variant:"h5",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Get started"}),m.jsx(jt,{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?m.jsx(oD,{}):m.jsx(Go,{variant:"contained",color:"primary",href:kc.publishing,target:"_blank",rel:"noopener noreferrer",children:"Learn how to create models"})]}),m.jsx(Bc,{sx:{my:4}}),m.jsxs(jt,{variant:"body2",color:"text.secondary",sx:{maxWidth:720,lineHeight:1.6,mt:2},children:["Join the"," ",m.jsx(pfe,{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 hfe({environment:e,onClickEnvironment:t}){const{mutable:n}=zr(),[r,o]=C.useState(null),a=!!r,s=BL(e.readme),l=f=>{f.stopPropagation(),o(f.currentTarget)},u=()=>o(null);return m.jsx(T0,{icon:m.jsx(cfe,{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:m.jsxs(m.Fragment,{children:[m.jsx(Qr,{size:"small",onClick:l,"aria-label":`Environment actions for ${e.name}`,children:m.jsx(Jb,{fontSize:"small"})}),m.jsxs(cd,{anchorEl:r,open:a,onClose:u,onClick:f=>f.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[m.jsx(dfe,{environment:e,onCloseDialog:u}),m.jsx(ufe,{environment:e,onCloseDialog:u})]})]})}:{}})}var wf={},Ja={},Xh={},Cf={},aD={},iD;function mfe(){return iD||(iD=1,Object.defineProperty(aD,"__esModule",{value:!0})),aD}var Zh={},Jh={},sD;function gd(){if(sD)return Jh;sD=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.CronField=void 0;let e=class _L{#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(_L.sorter),this.#n=this.options.wildcard!==void 0?this.options.wildcard:this.#r(),this.#e=this.options.rawValue.includes("L")||n.includes("L"),this.#t=this.options.rawValue.includes("?")||n.includes("?")}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return this.#e}get hasQuestionMarkChar(){return this.#t}get isWildcard(){return this.#n}get values(){return this.#o}static sorter(n,r){const o=typeof n=="number",a=typeof r=="number";return o&&a?n-r:!o&&!a?n.localeCompare(r):o?-1:1}static findNearestValueInList(n,r,o){if(o){for(let a=n.length-1;a>=0;a--)if(n[a]<r)return n[a];return null}for(let a=0;a<n.length;a++)if(n[a]>r)return n[a];return null}findNearestValue(n,r){return this.constructor.findNearestValueInList(this.values,n,r)}serialize(){return{wildcard:this.#n,values:this.#o}}validate(){let n;const r=this.chars.length>0?` or chars ${this.chars.join("")}`:"",o=l=>u=>new RegExp(`^\\d{0,2}${u}$`).test(l),a=l=>(n=l,typeof l=="number"?l>=this.min&&l<=this.max:this.chars.some(o(l)));if(!this.#o.every(a))throw new Error(`${this.constructor.name} Validation error, got value ${n} expected range ${this.min}-${this.max}${r}`);const s=this.#o.find((l,u)=>this.#o.indexOf(l)!==u);if(s)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${s}`)}#r(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(n,r)=>r+this.min).every(n=>this.#o.includes(n))}};return Jh.CronField=e,Jh}var lD;function gfe(){if(lD)return Zh;lD=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.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 Zh.CronDayOfMonth=o,Zh}var em={},cD;function yfe(){if(cD)return em;cD=1,Object.defineProperty(em,"__esModule",{value:!0}),em.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 em.CronDayOfWeek=o,em}var tm={},uD;function vfe(){if(uD)return tm;uD=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.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 tm.CronHour=o,tm}var nm={},dD;function bfe(){if(dD)return nm;dD=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.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 nm.CronMinute=o,nm}var rm={},fD={},ka={},pD;function xfe(){if(pD)return ka;pD=1,Object.defineProperty(ka,"__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 u="numeric",f="short",c="long",h={year:u,month:u,day:u},y={year:u,month:f,day:u},b={year:u,month:f,day:u,weekday:f},v={year:u,month:c,day:u},x={year:u,month:c,day:u,weekday:c},w={hour:u,minute:u},S={hour:u,minute:u,second:u},M={hour:u,minute:u,second:u,timeZoneName:f},T={hour:u,minute:u,second:u,timeZoneName:c},R={hour:u,minute:u,hourCycle:"h23"},$={hour:u,minute:u,second:u,hourCycle:"h23"},P={hour:u,minute:u,second:u,hourCycle:"h23",timeZoneName:f},N={hour:u,minute:u,second:u,hourCycle:"h23",timeZoneName:c},V={year:u,month:u,day:u,hour:u,minute:u},F={year:u,month:u,day:u,hour:u,minute:u,second:u},W={year:u,month:f,day:u,hour:u,minute:u},_={year:u,month:f,day:u,hour:u,minute:u,second:u},k={year:u,month:f,day:u,weekday:f,hour:u,minute:u},I={year:u,month:c,day:u,hour:u,minute:u,timeZoneName:f},z={year:u,month:c,day:u,hour:u,minute:u,second:u,timeZoneName:f},H={year:u,month:c,day:u,weekday:c,hour:u,minute:u,timeZoneName:c},A={year:u,month:c,day:u,weekday:c,hour:u,minute:u,second:u,timeZoneName:c};class Z{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 K=null;class te extends Z{static get instance(){return K===null&&(K=new te),K}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(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 X=new Map;function Q(U){let O=X.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"}),X.set(U,O)),O}const ne={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ie(U,O){const L=U.format(O).replace(/\u200E/g,""),Y=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(L),[,ee,ve,Re,Ae,Ue,Ot,gn]=Y;return[Re,ee,ve,Ae,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:Re}=L[ee],Ae=ne[ve];ve==="era"?Y[Ae]=Re:Ke(Ae)||(Y[Ae]=parseInt(Re,10))}return Y}const oe=new Map;class ae extends Z{static create(O){let L=oe.get(O);return L===void 0&&oe.set(O,L=new ae(O)),L}static resetCache(){oe.clear(),X.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=Q(this.name);let[ee,ve,Re,Ae,Ue,Ot,gn]=Y.formatToParts?pe(Y,L):ie(Y,L);Ae==="BC"&&(ee=-Math.abs(ee)+1);const jn=Ss({year:ee,month:ve,day:Re,hour:Ue===24?0:Ue,minute:Ot,second:gn,millisecond:0});let cr=+L;const Sn=cr%1e3;return cr-=Sn>=0?Sn:1e3+Sn,(jn-cr)/(60*1e3)}equals(O){return O.type==="iana"&&O.name===this.name}get isValid(){return this.valid}}let ce={};function me(U,O={}){const L=JSON.stringify([U,O]);let Y=ce[L];return Y||(Y=new Intl.ListFormat(U,O),ce[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 Te(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 ue=new Map;function ke(U,O={}){const{base:L,...Y}=O,ee=JSON.stringify([U,Y]);let ve=ue.get(ee);return ve===void 0&&(ve=new Intl.RelativeTimeFormat(U,O),ue.set(ee,ve)),ve}let Ge=null;function ze(){return Ge||(Ge=new Intl.DateTimeFormat().resolvedOptions().locale,Ge)}const Ne=new Map;function le(U){let O=Ne.get(U);return O===void 0&&(O=new Intl.DateTimeFormat(U).resolvedOptions(),Ne.set(U,O)),O}const xt=new Map;function Fe(U){let O=xt.get(U);if(!O){const L=new Intl.Locale(U);O="getWeekInfo"in L?L.getWeekInfo():L.weekInfo,"minimalDays"in O||(O={...We,...O}),xt.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 Ae=U.substring(0,L);Y=we(Ae).resolvedOptions(),ee=Ae}const{numberingSystem:ve,calendar:Re}=Y;return[ee,ve,Re]}}function ct(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 Ze(U){return U.numberingSystem&&U.numberingSystem!=="latn"?!1:U.numberingSystem==="latn"||!U.locale||U.locale.startsWith("en")||le(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,...Re}=Y;if(!L||Object.keys(Re).length>0){const Ae={useGrouping:!1,...Y};Y.padTo>0&&(Ae.minimumIntegerDigits=Y.padTo),this.inf=Te(O,Ae)}}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 lr(L,this.padTo)}}}class je{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 Re=-1*(O.offset/60),Ae=Re>=0?`Etc/GMT+${Re}`:`Etc/GMT${Re}`;O.offset!==0&&ae.create(Ae).valid?(ee=Ae,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&&Oe()&&(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 Me{static fromOpts(O){return Me.create(O.locale,O.numberingSystem,O.outputCalendar,O.weekSettings,O.defaultToEN)}static create(O,L,Y,ee,ve=!1){const Re=O||qe.defaultLocale,Ae=Re||(ve?"en-US":ze()),Ue=L||qe.defaultNumberingSystem,Ot=Y||qe.defaultOutputCalendar,gn=Gt(ee)||qe.defaultWeekSettings;return new Me(Ae,Ue,Ot,gn,Re)}static resetCache(){Ge=null,ye.clear(),Ce.clear(),ue.clear(),Ne.clear(),xt.clear()}static fromObject({locale:O,numberingSystem:L,outputCalendar:Y,weekSettings:ee}={}){return Me.create(O,L,Y,ee)}constructor(O,L,Y,ee,ve){const[Re,Ae,Ue]=it(O);this.locale=Re,this.numberingSystem=L||Ae||null,this.outputCalendar=Y||Ue||null,this.weekSettings=ee,this.intl=ct(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=Ze(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:Me.create(O.locale||this.specifiedLocale,O.numberingSystem||this.numberingSystem,O.outputCalendar||this.outputCalendar,Gt(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,sl,()=>{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 Re=Y?Ae=>this.dtFormatter(Ae,ee).format():Ae=>this.extract(Ae,ee,"month");this.monthsCache[ve][O]=Ft(Re)}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,ya,()=>{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(),Re=ve.find(Ae=>Ae.type.toLowerCase()===Y);return Re?Re.value:null}numberFormatter(O={}){return new rt(this.intl,O.forceSimple||this.fastNumbers,O)}dtFormatter(O,L={}){return new je(O,this.intl,L)}relFormatter(O={}){return new he(this.intl,this.isEnglish(),O)}listFormatter(O={}){return me(this.intl,O)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||le(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 Z{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(al(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 Z{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 ut(U,O){if(Ke(U)||U===null)return O;if(U instanceof Z)return U;if(pn(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]},dn=$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+=dn.indexOf(U[L]);else for(const ee in Vt){const[ve,Re]=Vt[ee];Y>=ve&&Y<=Re&&(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,se=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 ut(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=Gt(O)}static get twoDigitCutoffYear(){return se}static set twoDigitCutoffYear(O){se=O%100}static get throwOnInvalid(){return Pe}static set throwOnInvalid(O){Pe=O}static resetCaches(){Me.resetCache(),ae.resetCache(),mn.resetCache(),Wn()}}class dt{constructor(O,L){this.reason=O,this.explanation=L}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const It=[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 dt("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+(gi(U)?Bt:It)[O-1]}function Et(U,O){const L=gi(U)?Bt:It,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 Wt(U,O=4,L=1){const{year:Y,month:ee,day:ve}=U,Re=At(Y,ee,ve),Ae=wt(mt(Y,ee,ve),L);let Ue=Math.floor((Re-Ae+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:Ae,...il(U)}}function On(U,O=4,L=1){const{weekYear:Y,weekNumber:ee,weekday:ve}=U,Re=wt(mt(Y,1,O),L),Ae=xs(Y);let Ue=ee*7+ve-Re-7+O,Ot;Ue<1?(Ot=Y-1,Ue+=xs(Ot)):Ue>Ae?(Ot=Y+1,Ue-=xs(Y)):Ot=Y;const{month:gn,day:jn}=Et(Ot,Ue);return{year:Ot,month:gn,day:jn,...il(U)}}function qn(U){const{year:O,month:L,day:Y}=U,ee=At(O,L,Y);return{year:O,ordinal:ee,...il(U)}}function bn(U){const{year:O,ordinal:L}=U,{month:Y,day:ee}=Et(O,L);return{year:O,month:Y,day:ee,...il(U)}}function fn(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 de(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,Re=xn(L,0,59),Ae=xn(Y,0,59),Ue=xn(ee,0,999);return ve?Re?Ae?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 pn(U){return typeof U=="string"}function ge(U){return Object.prototype.toString.call(U)==="[object Date]"}function Oe(){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 Gt(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 lr(U,O=2){const L=U<0;let Y;return L?Y="-"+(""+-U).padStart(O,"0"):Y=(""+U).padStart(O,"0"),Y}function Ba(U){if(!(Ke(U)||U===null||U===""))return parseInt(U,10)}function Ki(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 gi(U){return U%4===0&&(U%100!==0||U%400===0)}function xs(U){return gi(U)?366:365}function Mo(U,O){const L=ur(O-1,12)+1,Y=U+(O-L)/12;return L===2?gi(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 yi(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 Re={timeZoneName:O,...ve},Ae=new Intl.DateTimeFormat(L,Re).formatToParts(ee).find(Ue=>Ue.type.toLowerCase()==="timezonename");return Ae?Ae.value:null}function al(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}${lr(L,2)}:${lr(Y,2)}`;case"narrow":return`${ee}${L}${Y>0?`:${Y}`:""}`;case"techie":return`${ee}${lr(L,2)}${lr(Y,2)}`;default:throw new RangeError(`Value format ${O} is out of range for property format`)}}function il(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"],xp=["J","F","M","A","M","J","J","A","S","O","N","D"];function sl(U){switch(U){case"narrow":return[...xp];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"],ll=["B","A"];function ya(U){switch(U){case"narrow":return[...ll];case"short":return[...vd];case"long":return[...tu];default:return null}}function nu(U){return eu[U.hour<12?0:1]}function cl(U,O){return Zi(O)[U.weekday-1]}function vi(U,O){return sl(O)[U.month-1]}function ru(U,O){return ya(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 Re=Object.is(O,-0)||O<0,Ae=Math.abs(O),Ue=Ae===1,Ot=ee[U],gn=Y?Ue?Ot[1]:Ot[2]||Ot[1]:Ue?ee[U][0]:U;return Re?`${Ae} ${gn} ago`:`in ${Ae} ${gn}`}function ou(U,O){let L="";for(const Y of U)Y.literal?L+=Y.val:L+=O(Y.val);return L}const Gl={D:h,DD:y,DDD:v,DDDD:x,t:w,tt:S,ttt:M,tttt:T,T:R,TT:$,TTT:P,TTTT:N,f:V,ff:W,fff:I,ffff:H,F,FF:_,FFF:z,FFFF:A};class Xr{static create(O,L={}){return new Xr(O,L)}static parseFormat(O){let L=null,Y="",ee=!1;const ve=[];for(let Re=0;Re<O.length;Re++){const Ae=O.charAt(Re);Ae==="'"?((Y.length>0||ee)&&ve.push({literal:ee||/^\s+$/.test(Y),val:Y===""?"'":Y}),L=null,Y="",ee=!ee):ee||Ae===L?Y+=Ae:(Y.length>0&&ve.push({literal:/^\s+$/.test(Y),val:Y}),Y=Ae,L=Ae)}return Y.length>0&&ve.push({literal:ee||/^\s+$/.test(Y),val:Y}),ve}static macroTokenToFormatOpts(O){return Gl[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 lr(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),Re=Sn=>O.isOffsetFixed&&O.offset===0&&Sn.allowZ?"Z":O.isValid?O.zone.formatOffset(O.ts,Sn.format):"",Ae=()=>Y?nu(O):ve({hour:"numeric",hourCycle:"h12"},"dayperiod"),Ue=(Sn,qr)=>Y?vi(O,Sn):ve(qr?{month:Sn}:{month:Sn,day:"numeric"},"month"),Ot=(Sn,qr)=>Y?cl(O,Sn):ve(qr?{weekday:Sn}:{weekday:Sn,month:"long",day:"numeric"},"weekday"),gn=Sn=>{const qr=Xr.macroTokenToFormatOpts(Sn);return qr?this.formatWithSystemDefault(O,qr):Sn},jn=Sn=>Y?ru(O,Sn):ve({era:Sn},"era"),cr=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 Re({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return Re({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return Re({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 Ae();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(Xr.parseFormat(L),cr)}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)=>cr=>{const Sn=ee(cr);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,cr.length,Ao)}else return cr},Re=Xr.parseFormat(L),Ae=Re.reduce((gn,{literal:jn,val:cr})=>jn?gn:gn.concat(cr),[]),Ue=O.shiftTo(...Ae.map(ee).filter(gn=>gn)),Ot={isNegativeDuration:Ue<0,largestUnit:Object.keys(Ue.values)[0]};return ou(Re,ve(Ue,Ot))}}const au=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function j(...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[Re,Ae,Ue]=ve(O,ee);return[{...L,...Re},Ae||Y,Ue]},[{},null,1]).slice(0,2)}function Zr(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 Ua(...U){return(O,L)=>{const Y={};let ee;for(ee=0;ee<U.length;ee++)Y[U[ee]]=Ba(O[L+ee]);return[Y,null,L+ee]}}const Ee=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Ji=`(?:${Ee.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})/,Je=Ua("weekYear","weekNumber","weekDay"),su=Ua("year","ordinal"),lu=/(\d{4})-(\d\d)-(\d\d)/,Kl=RegExp(`${An.source} ?(?:${Ee.source}|(${au.source}))?`),Sd=RegExp(`(?: ${Kl.source})?`);function Ts(U,O,L){const Y=U[O];return Ke(Y)?L:Ba(Y)}function ul(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=al(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 Sp=RegExp(`^T?${An.source}$`),wp=/^-?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 dl(U){const[O,L,Y,ee,ve,Re,Ae,Ue,Ot]=U,gn=O[0]==="-",jn=Ue&&Ue[0]==="-",cr=(Sn,qr=!1)=>Sn!==void 0&&(qr||Sn&&gn)?-Sn:Sn;return[{years:cr(Ki(L)),months:cr(Ki(Y)),weeks:cr(Ki(ee)),days:cr(Ki(ve)),hours:cr(Ki(Re)),minutes:cr(Ki(Ae)),seconds:cr(Ki(Ue),Ue==="-0"),milliseconds:cr(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,Re){const Ae={year:O.length===2?yi(Ba(O)):Ba(O),month:yd.indexOf(L)+1,day:Ba(Y),hour:Ba(ee),minute:Ba(ve)};return Re&&(Ae.second=Ba(Re)),U&&(Ae.weekday=U.length>3?Wl.indexOf(U)+1:ql.indexOf(U)+1),Ae}const Cp=/^(?:(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,Re,Ae,Ue,Ot,gn,jn]=U,cr=cu(O,ee,Y,L,ve,Re,Ae);let Sn;return Ue?Sn=wd[Ue]:Ot?Sn=0:Sn=al(gn,jn),[cr,new Mt(Sn)]}function kp(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$/,Tp=/^(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,Re,Ae]=U;return[cu(O,ee,Y,L,ve,Re,Ae),Mt.utcInstance]}function Mp(U){const[,O,L,Y,ee,ve,Re,Ae]=U;return[cu(O,Ae,L,Y,ee,ve,Re),Mt.utcInstance]}const Ep=j(iu,ks),Op=j(bd,ks),Rp=j(xd,ks),du=j(Do),Es=ho(ul,es,Ms,Ko),$p=ho(Je,es,Ms,Ko),Td=ho(su,es,Ms,Ko),Md=ho(es,Ms,Ko);function Ed(U){return Zr(U,[Ep,Es],[Op,$p],[Rp,Td],[du,Md])}function Od(U){return Zr(kp(U),[Cp,Cd])}function Rd(U){return Zr(U,[kd,Ql],[uu,Ql],[Tp,Mp])}function Os(U){return Zr(U,[wp,dl])}const Pp=ho(es);function Dp(U){return Zr(U,[Sp,Pp])}const Ap=j(lu,Sd),$d=j(Kl),Pd=ho(es,Ms,Ko);function fl(U){return Zr(U,[Ap,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,G=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:G/7,days:G,hours:G*24,minutes:G*24*60,seconds:G*24*60*60,milliseconds:G*24*60*60*1e3},...ts},Se=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Yt=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 qt(Y)}function Rn(U,O){var L;let Y=(L=O.milliseconds)!=null?L:0;for(const ee of Yt.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,Re=U[ee][Y],Ae=Math.floor(ve/Re);O[ee]+=Ae*L,O[Y]-=Ae*Re*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 Gn(U){const O={};for(const[L,Y]of Object.entries(U))Y!==0&&(O[L]=Y);return O}class qt{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||Me.create(),this.conversionAccuracy=L?"longterm":"casual",this.invalid=O.invalid||null,this.matrix=Y,this.isLuxonDuration=!0}static fromMillis(O,L){return qt.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 qt({values:Hl(O,qt.normalizeUnit),loc:Me.fromObject(L),conversionAccuracy:L.conversionAccuracy,matrix:L.matrix})}static fromDurationLike(O){if(Zt(O))return qt.fromMillis(O);if(qt.isDuration(O))return O;if(typeof O=="object")return qt.fromObject(O);throw new s(`Unknown duration argument ${O} of type ${typeof O}`)}static fromISO(O,L){const[Y]=Os(O);return Y?qt.fromObject(Y,L):qt.invalid("unparsable",`the input "${O}" can't be parsed as ISO 8601`)}static fromISOTime(O,L){const[Y]=Dp(O);return Y?qt.fromObject(Y,L):qt.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 dt?O:new dt(O,L);if(qe.throwOnInvalid)throw new r(Y);return new qt({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?Xr.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=qt.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=qt.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[qt.normalizeUnit(O)]}set(O){if(!this.isValid)return this;const L={...this.values,...Hl(O,qt.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=Gn(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(Re=>qt.normalizeUnit(Re));const L={},Y={},ee=this.toObject();let ve;for(const Re of Se)if(O.indexOf(Re)>=0){ve=Re;let Ae=0;for(const Ot in Y)Ae+=this.matrix[Ot][Re]*Y[Ot],Y[Ot]=0;Zt(ee[Re])&&(Ae+=ee[Re]);const Ue=Math.trunc(Ae);L[Re]=Ue,Y[Re]=(Ae*1e3-Ue*1e3)/1e3}else Zt(ee[Re])&&(Y[Re]=ee[Re]);for(const Re in Y)Y[Re]!==0&&(L[ve]+=Re===ve?Y[Re]:Y[Re]/this.matrix[ve][Re]);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=Gn(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 dt?O:new dt(O,L);if(qe.throwOnInvalid)throw new n(Y);return new rn({invalid:Y})}static fromDateTimes(O,L){const Y=Ya(O),ee=Ya(L);return Cr(Y,ee)??new rn({start:Y,end:ee})}static after(O,L){const Y=qt.fromDurationLike(L),ee=Ya(O);return rn.fromDateTimes(ee,ee.plus(Y))}static before(O,L){const Y=qt.fromDurationLike(L),ee=Ya(O);return rn.fromDateTimes(ee.minus(Y),ee)}static fromISO(O,L){const[Y,ee]=(O||"").split("/",2);if(Y&&ee){let ve,Re;try{ve=mn.fromISO(Y,L),Re=ve.isValid}catch{Re=!1}let Ae,Ue;try{Ae=mn.fromISO(ee,L),Ue=Ae.isValid}catch{Ue=!1}if(Re&&Ue)return rn.fromDateTimes(ve,Ae);if(Re){const Ot=qt.fromISO(ee,L);if(Ot.isValid)return rn.after(ve,Ot)}else if(Ue){const Ot=qt.fromISO(Y,L);if(Ot.isValid)return rn.before(Ae,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(Ya).filter(Re=>this.contains(Re)).sort((Re,Ae)=>Re.toMillis()-Ae.toMillis()),Y=[];let{s:ee}=this,ve=0;for(;ee<this.e;){const Re=L[ve]||this.e,Ae=+Re>+this.e?this.e:Re;Y.push(rn.fromDateTimes(ee,Ae)),ee=Ae,ve+=1}return Y}splitBy(O){const L=qt.fromDurationLike(O);if(!this.isValid||!L.isValid||L.as("milliseconds")===0)return[];let{s:Y}=this,ee=1,ve;const Re=[];for(;Y<this.e;){const Ae=this.start.plus(L.mapUnits(Ue=>Ue*ee));ve=+Ae>+this.e?this.e:Ae,Re.push(rn.fromDateTimes(Y,ve)),Y=ve,ee+=1}return Re}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],Re)=>ve?ve.overlaps(Re)||ve.abutsStart(Re)?[ee,ve.union(Re)]:[ee.concat([ve]),Re]:[ee,Re],[[],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"}]),Re=Array.prototype.concat(...ve),Ae=Re.sort((Ue,Ot)=>Ue.time-Ot.time);for(const Ue of Ae)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=h,L={}){return this.isValid?Xr.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):qt.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 ut(O,qe.defaultZone)}static getStartOfWeek({locale:O=null,locObj:L=null}={}){return(L||Me.create(O)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:O=null,locObj:L=null}={}){return(L||Me.create(O)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:O=null,locObj:L=null}={}){return(L||Me.create(O)).getWeekendDays().slice()}static months(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null,outputCalendar:ve="gregory"}={}){return(ee||Me.create(L,Y,ve)).months(O)}static monthsFormat(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null,outputCalendar:ve="gregory"}={}){return(ee||Me.create(L,Y,ve)).months(O,!0)}static weekdays(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null}={}){return(ee||Me.create(L,Y,null)).weekdays(O)}static weekdaysFormat(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null}={}){return(ee||Me.create(L,Y,null)).weekdays(O,!0)}static meridiems({locale:O=null}={}){return Me.create(O).meridiems()}static eras(O="short",{locale:L=null}={}){return Me.create(L,null,"gregory").eras(O)}static features(){return{relative:Oe(),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(qt.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 Re,Ae;for(const[Ue,Ot]of Y)L.indexOf(Ue)>=0&&(Re=Ue,ee[Ue]=Ot(U,O),Ae=ve.plus(ee),Ae>O?(ee[Ue]--,U=ve.plus(ee),U>O&&(Ae=U,ee[Ue]--,U=ve.plus(ee))):U=Ae);return[U,ee,Ae,Re]}function _a(U,O,L,Y){let[ee,ve,Re,Ae]=Ur(U,O,L);const Ue=O-ee,Ot=L.filter(jn=>["hours","minutes","seconds","milliseconds"].indexOf(jn)>=0);Ot.length===0&&(Re<O&&(Re=ee.plus({[Ae]:1})),Re!==ee&&(ve[Ae]=(ve[Ae]||0)+Ue/(Re-ee)));const gn=qt.fromObject(ve,Y);return Ot.length>0?qt.fromMillis(Ue,Y).shiftTo(...Ot).plus(gn):gn}const ia="missing Intl.DateTimeFormat.formatToParts support";function Ln(U,O=L=>L){return{regex:U,deser:([L])=>O(vn(L))}}const pl="[  ]",sa=new RegExp(pl,"g");function ns(U){return U.replace(/\./g,"\\.?").replace(sa,pl)}function Qo(U){return U.replace(/\./g,"").replace(sa," ").toLowerCase()}function Jr(U,O){return U===null?null:{regex:RegExp(U.map(ns).join("|")),deser:([L])=>U.findIndex(Y=>Qo(L)===Qo(Y))+O}}function hl(U,O){return{regex:U,deser:([,L,Y])=>al(L,Y),groups:O}}function mo(U){return{regex:U,deser:([O])=>O}}function Xl(U){return U.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function jp(U,O){const L=Qt(O),Y=Qt(O,"{2}"),ee=Qt(O,"{3}"),ve=Qt(O,"{4}"),Re=Qt(O,"{6}"),Ae=Qt(O,"{1,2}"),Ue=Qt(O,"{1,3}"),Ot=Qt(O,"{1,6}"),gn=Qt(O,"{1,9}"),jn=Qt(O,"{2,4}"),cr=Qt(O,"{4,6}"),Sn=Ao=>({regex:RegExp(Xl(Ao.val)),deser:([va])=>va,literal:!0}),qr=(Ao=>{if(U.literal)return Sn(Ao);switch(Ao.val){case"G":return Jr(O.eras("short"),0);case"GG":return Jr(O.eras("long"),0);case"y":return Ln(Ot);case"yy":return Ln(jn,yi);case"yyyy":return Ln(ve);case"yyyyy":return Ln(cr);case"yyyyyy":return Ln(Re);case"M":return Ln(Ae);case"MM":return Ln(Y);case"MMM":return Jr(O.months("short",!0),1);case"MMMM":return Jr(O.months("long",!0),1);case"L":return Ln(Ae);case"LL":return Ln(Y);case"LLL":return Jr(O.months("short",!1),1);case"LLLL":return Jr(O.months("long",!1),1);case"d":return Ln(Ae);case"dd":return Ln(Y);case"o":return Ln(Ue);case"ooo":return Ln(ee);case"HH":return Ln(Y);case"H":return Ln(Ae);case"hh":return Ln(Y);case"h":return Ln(Ae);case"mm":return Ln(Y);case"m":return Ln(Ae);case"q":return Ln(Ae);case"qq":return Ln(Y);case"s":return Ln(Ae);case"ss":return Ln(Y);case"S":return Ln(Ue);case"SSS":return Ln(ee);case"u":return mo(gn);case"uu":return mo(Ae);case"uuu":return Ln(L);case"a":return Jr(O.meridiems(),0);case"kkkk":return Ln(ve);case"kk":return Ln(jn,yi);case"W":return Ln(Ae);case"WW":return Ln(Y);case"E":case"c":return Ln(L);case"EEE":return Jr(O.weekdays("short",!1),1);case"EEEE":return Jr(O.weekdays("long",!1),1);case"ccc":return Jr(O.weekdays("short",!0),1);case"cccc":return Jr(O.weekdays("long",!0),1);case"Z":case"ZZ":return hl(new RegExp(`([+-]${Ae.source})(?::(${Y.source}))?`),2);case"ZZZ":return hl(new RegExp(`([+-]${Ae.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:ia};return qr.token=U,qr}const $g={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 ml(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 Re=Y;Y==="hour"&&(O.hour12!=null?Re=O.hour12?"hour12":"hour24":O.hourCycle!=null?O.hourCycle==="h11"||O.hourCycle==="h12"?Re="hour12":Re="hour24":Re=L.hour12?"hour12":"hour24");let Ae=$g[Re];if(typeof Ae=="object"&&(Ae=Ae[ve]),Ae)return{literal:!1,val:Ae}}function Pg(U){return[`^${U.map(O=>O.regex).reduce((O,L)=>`${O}(${L.source})`,"")}$`,U]}function Dg(U,O,L){const Y=U.match(O);if(Y){const ee={};let ve=1;for(const Re in L)if(St(L,Re)){const Ae=L[Re],Ue=Ae.groups?Ae.groups+1:1;!Ae.literal&&Ae.token&&(ee[Ae.token.val[0]]=Ae.deser(Y.slice(ve,ve+Ue))),ve+=Ue}return[Y,ee]}else return[Y,{}]}function Ag(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 Re=O(ve);return Re&&(ee[Re]=U[ve]),ee},{}),L,Y]}let Np=null;function E0(){return Np||(Np=mn.fromMillis(1555555555555)),Np}function O0(U,O){if(U.literal)return U;const L=Xr.macroTokenToFormatOpts(U.val),Y=zp(L,O);return Y==null||Y.includes(void 0)?U:Y}function Ip(U,O){return Array.prototype.concat(...U.map(L=>O0(L,O)))}class Lp{constructor(O,L){if(this.locale=O,this.format=L,this.tokens=Ip(Xr.parseFormat(L),O),this.units=this.tokens.map(Y=>jp(Y,O)),this.disqualifyingUnit=this.units.find(Y=>Y.invalidReason),!this.disqualifyingUnit){const[Y,ee]=Pg(this.units);this.regex=RegExp(Y,"i"),this.handlers=ee}}explainFromTokens(O){if(this.isValid){const[L,Y]=Dg(O,this.regex,this.handlers),[ee,ve,Re]=Y?Ag(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:Re}}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 Lp(U,L).explainFromTokens(O)}function Va(U,O,L){const{result:Y,zone:ee,specificOffset:ve,invalidReason:Re}=Dd(U,O,L);return[Y,ee,ve,Re]}function zp(U,O){if(!U)return null;const L=Xr.create(O,U).dtFormatter(E0()),Y=L.formatToParts(),ee=L.resolvedOptions();return Y.map(ve=>ml(ve,U,ee))}const Xo="Invalid DateTime",la=864e13;function bi(U){return new dt("unsupported zone",`the zone "${U.name}" is not supported`)}function fu(U){return U.weekData===null&&(U.weekData=Wt(U.c)),U.weekData}function Zl(U){return U.localWeekData===null&&(U.localWeekData=Wt(U.c,U.loc.getMinDaysInFirstWeek(),U.loc.getStartOfWeek())),U.localWeekData}function xi(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},Re=qt.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"),Ae=Ss(ve);let[Ue,Ot]=Ad(Ae,L,U.zone);return Re!==0&&(Ue+=Re,Ot=U.zone.offset(Ue)),{ts:Ue,o:Ot}}function Ha(U,O,L,Y,ee,ve){const{setZone:Re,zone:Ae}=L;if(U&&Object.keys(U).length!==0||O){const Ue=O||Ae,Ot=mn.fromObject(U,{...L,zone:Ue,specificOffset:ve});return Re?Ot:Ot.setZone(Ae)}else return mn.invalid(new dt("unparsable",`the input "${ee}" can't be parsed as ${Y}`))}function jd(U,O,L=!0){return U.isValid?Xr.create(Me.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+=lr(U.c.year,Y?6:4),L==="year")return ee;if(O){if(ee+="-",ee+=lr(U.c.month),L==="month")return ee;ee+="-"}else if(ee+=lr(U.c.month),L==="month")return ee;return ee+=lr(U.c.day),ee}function Nd(U,O,L,Y,ee,ve,Re){let Ae=!L||U.c.millisecond!==0||U.c.second!==0,Ue="";switch(Re){case"day":case"month":case"year":break;default:if(Ue+=lr(U.c.hour),Re==="hour")break;if(O){if(Ue+=":",Ue+=lr(U.c.minute),Re==="minute")break;Ae&&(Ue+=":",Ue+=lr(U.c.second))}else{if(Ue+=lr(U.c.minute),Re==="minute")break;Ae&&(Ue+=lr(U.c.second))}if(Re==="second")break;Ae&&(!Y||U.c.millisecond!==0)&&(Ue+=".",Ue+=lr(U.c.millisecond,3))}return ee&&(U.isOffsetFixed&&U.offset===0&&!ve?Ue+="Z":U.o<0?(Ue+="-",Ue+=lr(Math.trunc(-U.o/60)),Ue+=":",Ue+=lr(Math.trunc(-U.o%60))):(Ue+="+",Ue+=lr(Math.trunc(U.o/60)),Ue+=":",Ue+=lr(Math.trunc(U.o%60)))),ve&&(Ue+="["+U.zone.ianaName+"]"),Ue}const Si={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},jg={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Id={ordinal:1,hour:0,minute:0,second:0,millisecond:0},wi=["year","month","day","hour","minute","second","millisecond"],Fp=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Bp=["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 gl(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(Wa===void 0&&(Wa=qe.now()),U.type!=="iana")return U.offset(Wa);const O=U.name;let L=qa.get(O);return L===void 0&&(L=U.offset(Wa),qa.set(O,L)),L}function mu(U,O){const L=ut(O.zone,qe.defaultZone);if(!L.isValid)return mn.invalid(bi(L));const Y=Me.fromObject(O);let ee,ve;if(Ke(U.year))ee=qe.now();else{for(const Ue of wi)Ke(U[Ue])&&(U[Ue]=Si[Ue]);const Re=Ve(U)||vt(U);if(Re)return mn.invalid(Re);const Ae=Ld(L);[ee,ve]=pu(U,Ae,L)}return new mn({ts:ee,zone:L,loc:Y,o:ve})}function ca(U,O,L){const Y=Ke(L.round)?!0:L.round,ee=Ke(L.rounding)?"trunc":L.rounding,ve=(Ae,Ue)=>(Ae=Vl(Ae,Y||L.calendary?0:2,L.calendary?"round":ee),O.loc.clone(L).relFormatter(L).format(Ae,Ue)),Re=Ae=>L.calendary?O.hasSame(U,Ae)?0:O.startOf(Ae).diff(U.startOf(Ae),Ae).get(Ae):O.diff(U,Ae).get(Ae);if(L.unit)return ve(Re(L.unit),L.unit);for(const Ae of L.units){const Ue=Re(Ae);if(Math.abs(Ue)>=1)return ve(Ue,Ae)}return ve(U>O?-0:0,L.units[L.units.length-1])}function ua(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 Wa;const qa=new Map;class mn{constructor(O){const L=O.zone||qe.defaultZone;let Y=O.invalid||(Number.isNaN(O.ts)?new dt("invalid input"):null)||(L.isValid?null:bi(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 Re=Zt(O.o)&&!O.old?O.o:L.offset(this.ts);ee=rs(this.ts,Re),Y=Number.isNaN(ee.year)?new dt("invalid input"):null,ee=Y?null:ee,ve=Y?null:Re}this._zone=L,this.loc=O.loc||Me.create(),this.invalid=Y,this.weekData=null,this.localWeekData=null,this.c=ee,this.o=ve,this.isLuxonDateTime=!0}static now(){return new mn({})}static local(){const[O,L]=ua(arguments),[Y,ee,ve,Re,Ae,Ue,Ot]=L;return mu({year:Y,month:ee,day:ve,hour:Re,minute:Ae,second:Ue,millisecond:Ot},O)}static utc(){const[O,L]=ua(arguments),[Y,ee,ve,Re,Ae,Ue,Ot]=L;return O.zone=Mt.utcInstance,mu({year:Y,month:ee,day:ve,hour:Re,minute:Ae,second:Ue,millisecond:Ot},O)}static fromJSDate(O,L={}){const Y=ge(O)?O.valueOf():NaN;if(Number.isNaN(Y))return mn.invalid("invalid input");const ee=ut(L.zone,qe.defaultZone);return ee.isValid?new mn({ts:Y,zone:ee,loc:Me.fromObject(L)}):mn.invalid(bi(ee))}static fromMillis(O,L={}){if(Zt(O))return O<-la||O>la?mn.invalid("Timestamp out of range"):new mn({ts:O,zone:ut(L.zone,qe.defaultZone),loc:Me.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:ut(L.zone,qe.defaultZone),loc:Me.fromObject(L)});throw new s("fromSeconds requires a numerical input")}static fromObject(O,L={}){O=O||{};const Y=ut(L.zone,qe.defaultZone);if(!Y.isValid)return mn.invalid(bi(Y));const ee=Me.fromObject(L),ve=Hl(O,gl),{minDaysInFirstWeek:Re,startOfWeek:Ae}=fn(ve,ee),Ue=qe.now(),Ot=Ke(L.specificOffset)?Y.offset(Ue):L.specificOffset,gn=!Ke(ve.ordinal),jn=!Ke(ve.year),cr=!Ke(ve.month)||!Ke(ve.day),Sn=jn||cr,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(cr&&gn)throw new o("Can't mix ordinal dates with month/day");const Ao=qr||ve.weekday&&!Sn;let va,ba,xa=rs(Ue,Ot);Ao?(va=Fp,ba=jg,xa=Wt(xa,Re,Ae)):gn?(va=Bp,ba=Id,xa=qn(xa)):(va=wi,ba=Si);let Ci=!1;for(const Rs of va){const Ig=ve[Rs];Ke(Ig)?Ci?ve[Rs]=ba[Rs]:ve[Rs]=xa[Rs]:Ci=!0}const Up=Ao?de(ve,Re,Ae):gn?fe(ve):Ve(ve),zd=Up||vt(ve);if(zd)return mn.invalid(zd);const gu=Ao?On(ve,Re,Ae):gn?bn(ve):ve,[Fd,yl]=pu(gu,Ot,Y),to=new mn({ts:Fd,zone:Y,o:yl,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 Ha(Y,ee,L,"ISO 8601",O)}static fromRFC2822(O,L={}){const[Y,ee]=Od(O);return Ha(Y,ee,L,"RFC 2822",O)}static fromHTTP(O,L={}){const[Y,ee]=Rd(O);return Ha(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,Re=Me.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0}),[Ae,Ue,Ot,gn]=Va(Re,O,L);return gn?mn.invalid(gn):Ha(Ae,Ue,Y,`format ${L}`,O,Ot)}static fromString(O,L,Y={}){return mn.fromFormat(O,L,Y)}static fromSQL(O,L={}){const[Y,ee]=fl(O);return Ha(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 dt?O:new dt(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=zp(O,Me.fromObject(L));return Y?Y.map(ee=>ee?ee.val:null).join(""):null}static expandFormat(O,L={}){return Ip(Xr.parseFormat(O),Me.fromObject(L)).map(Y=>Y.val).join("")}static resetCache(){Wa=void 0,qa.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),Re=this.zone.offset(Y-ee*L),Ae=this.zone.offset(Y-ve*L);if(Re===Ae)return[this];const Ue=Y-Re*L,Ot=Y-Ae*L,gn=rs(Ue,Re),jn=rs(Ot,Ae);return gn.hour===jn.hour&&gn.minute===jn.minute&&gn.second===jn.second&&gn.millisecond===jn.millisecond?[xi(this,{ts:Ue}),xi(this,{ts:Ot})]:[this]}get isInLeapYear(){return gi(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}=Xr.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=ut(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),Re=this.toObject();[ee]=pu(Re,ve,O)}return xi(this,{ts:ee,zone:O})}else return mn.invalid(bi(O))}reconfigure({locale:O,numberingSystem:L,outputCalendar:Y}={}){const ee=this.loc.clone({locale:O,numberingSystem:L,outputCalendar:Y});return xi(this,{loc:ee})}setLocale(O){return this.reconfigure({locale:O})}set(O){if(!this.isValid)return this;const L=Hl(O,gl),{minDaysInFirstWeek:Y,startOfWeek:ee}=fn(L,this.loc),ve=!Ke(L.weekYear)||!Ke(L.weekNumber)||!Ke(L.weekday),Re=!Ke(L.ordinal),Ae=!Ke(L.year),Ue=!Ke(L.month)||!Ke(L.day),Ot=Ae||Ue,gn=L.weekYear||L.weekNumber;if((Ot||Re)&&gn)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ue&&Re)throw new o("Can't mix ordinal dates with month/day");let jn;ve?jn=On({...Wt(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[cr,Sn]=pu(jn,this.o,this.zone);return xi(this,{ts:cr,o:Sn})}plus(O){if(!this.isValid)return this;const L=qt.fromDurationLike(O);return xi(this,hu(this,L))}minus(O){if(!this.isValid)return this;const L=qt.fromDurationLike(O).negate();return xi(this,hu(this,L))}startOf(O,{useLocaleWeeks:L=!1}={}){if(!this.isValid)return this;const Y={},ee=qt.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:Re}=this;Re<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?Xr.create(this.loc.redefaultToEN(L)).formatDateTimeFromString(this,O):Xo}toLocaleString(O=h,L={}){return this.isValid?Xr.create(this.loc.clone(L),O).formatDateTime(this):Xo}toLocaleParts(O={}){return this.isValid?Xr.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:Re="milliseconds"}={}){if(!this.isValid)return null;Re=os(Re);const Ae=O==="extended";let Ue=Bo(this,Ae,Re);return wi.indexOf(Re)>=3&&(Ue+="T"),Ue+=Nd(this,Ae,L,Y,ee,ve,Re),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:Re="extended",precision:Ae="milliseconds"}={}){return this.isValid?(Ae=os(Ae),(ee&&wi.indexOf(Ae)>=3?"T":"")+Nd(this,Re==="extended",L,O,Y,ve,Ae)):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():Xo}[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 qt.invalid("created by diffing an invalid DateTime");const ee={locale:this.locale,numberingSystem:this.numberingSystem,...Y},ve=yt(L).map(qt.normalizeUnit),Re=O.valueOf()>this.valueOf(),Ae=Re?this:O,Ue=Re?O:this,Ot=_a(Ae,Ue,ve,ee);return Re?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),ca(L,this.plus(Y),{...O,numeric:"always",units:ee,unit:ve})}toRelativeCalendar(O={}){return this.isValid?ca(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,Re=Me.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0});return Dd(Re,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=Me.fromOpts({locale:Y,numberingSystem:ee,defaultToEN:!0});return new Lp(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,Re=Me.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0});if(!Re.equals(L.locale))throw new s(`fromFormatParser called with a locale of ${Re}, but the format parser was created for ${L.locale}`);const{result:Ae,zone:Ue,specificOffset:Ot,invalidReason:gn}=L.explainFromTokens(O);return gn?mn.invalid(gn):Ha(Ae,Ue,Y,`format ${L.format}`,O,Ot)}static get DATE_SHORT(){return h}static get DATE_MED(){return y}static get DATE_MED_WITH_WEEKDAY(){return b}static get DATE_FULL(){return v}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 M}static get TIME_WITH_LONG_OFFSET(){return T}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 F}static get DATETIME_MED(){return W}static get DATETIME_MED_WITH_SECONDS(){return _}static get DATETIME_MED_WITH_WEEKDAY(){return k}static get DATETIME_FULL(){return I}static get DATETIME_FULL_WITH_SECONDS(){return z}static get DATETIME_HUGE(){return H}static get DATETIME_HUGE_WITH_SECONDS(){return A}}function Ya(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 Ng="3.7.2";return ka.DateTime=mn,ka.Duration=qt,ka.FixedOffsetZone=Mt,ka.IANAZone=ae,ka.Info=gr,ka.Interval=rn,ka.InvalidZone=gt,ka.Settings=qe,ka.SystemZone=te,ka.VERSION=Ng,ka.Zone=Z,ka}var hD;function Wk(){return hD||(hD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CronDate=e.DAYS_IN_MONTH=e.DateMathOp=e.TimeUnit=void 0;const t=xfe();var n;(function(a){a.Second="Second",a.Minute="Minute",a.Hour="Hour",a.Day="Day",a.Month="Month",a.Year="Year"})(n||(e.TimeUnit=n={}));var r;(function(a){a.Add="Add",a.Subtract="Subtract"})(r||(e.DateMathOp=r={})),e.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);class o{#e;#t=null;#n=null;constructor(s,l){const u={zone:l};if(s?s instanceof o?(this.#e=s.#e,this.#t=s.#t,this.#n=s.#n):s instanceof Date?this.#e=t.DateTime.fromJSDate(s,u):typeof s=="number"?this.#e=t.DateTime.fromMillis(s,u):(this.#e=t.DateTime.fromISO(s,u),this.#e.isValid||(this.#e=t.DateTime.fromRFC2822(s,u)),this.#e.isValid||(this.#e=t.DateTime.fromSQL(s,u)),this.#e.isValid||(this.#e=t.DateTime.fromFormat(s,"EEE, d MMM yyyy HH:mm:ss",u))):this.#e=t.DateTime.local(),!this.#e.isValid)throw new Error(`CronDate: unhandled timestamp: ${s}`);l&&l!==this.#e.zoneName&&(this.#e=this.#e.setZone(l))}static#o(s){return s%4===0&&s%100!==0||s%400===0}get dstStart(){return this.#t}set dstStart(s){this.#t=s}get dstEnd(){return this.#n}set dstEnd(s){this.#n=s}addYear(){this.#e=this.#e.plus({years:1})}addMonth(){this.#e=this.#e.plus({months:1}).startOf("month")}addDay(){this.#e=this.#e.plus({days:1}).startOf("day")}addHour(){this.#e=this.#e.plus({hours:1}).startOf("hour")}addMinute(){this.#e=this.#e.plus({minutes:1}).startOf("minute")}addSecond(){this.#e=this.#e.plus({seconds:1})}subtractYear(){this.#e=this.#e.minus({years:1})}subtractMonth(){this.#e=this.#e.minus({months:1}).endOf("month").startOf("second")}subtractDay(){this.#e=this.#e.minus({days:1}).endOf("day").startOf("second")}subtractHour(){this.#e=this.#e.minus({hours:1}).endOf("hour").startOf("second")}subtractMinute(){this.#e=this.#e.minus({minutes:1}).endOf("minute").startOf("second")}subtractSecond(){this.#e=this.#e.minus({seconds:1})}addUnit(s){switch(s){case n.Year:return this.addYear();case n.Month:return this.addMonth();case n.Day:return this.addDay();case n.Hour:return this.addHour();case n.Minute:return this.addMinute();case n.Second:return this.addSecond()}}subtractUnit(s){switch(s){case n.Year:return this.subtractYear();case n.Month:return this.subtractMonth();case n.Day:return this.subtractDay();case n.Hour:return this.subtractHour();case n.Minute:return this.subtractMinute();case n.Second:return this.subtractSecond()}}invokeDateOperation(s,l){if(s===r.Add){this.addUnit(l);return}if(s===r.Subtract){this.subtractUnit(l);return}throw new Error(`Invalid verb: ${s}`)}getDate(){return this.#e.day}getFullYear(){return this.#e.year}getDay(){const s=this.#e.weekday;return s===7?0:s}getMonth(){return this.#e.month-1}getHours(){return this.#e.hour}getMinutes(){return this.#e.minute}getSeconds(){return this.#e.second}getMilliseconds(){return this.#e.millisecond}getUTCOffset(){return this.#e.offset}setStartOfDay(){this.#e=this.#e.startOf("day")}setEndOfDay(){this.#e=this.#e.endOf("day")}getTime(){return this.#e.valueOf()}getUTCDate(){return this.#r().day}getUTCFullYear(){return this.#r().year}getUTCDay(){const s=this.#r().weekday;return s===7?0:s}getUTCMonth(){return this.#r().month-1}getUTCHours(){return this.#r().hour}getUTCMinutes(){return this.#r().minute}getUTCSeconds(){return this.#r().second}toISOString(){return this.#e.toUTC().toISO()}toJSON(){return this.#e.toJSON()}setDate(s){this.#e=this.#e.set({day:s})}setFullYear(s){this.#e=this.#e.set({year:s})}setDay(s){this.#e=this.#e.set({weekday:s})}setMonth(s){this.#e=this.#e.set({month:s+1})}setHours(s){this.#e=this.#e.set({hour:s})}setMinutes(s){this.#e=this.#e.set({minute:s})}setSeconds(s){this.#e=this.#e.set({second:s})}setMilliseconds(s){this.#e=this.#e.set({millisecond:s})}toString(){return this.toDate().toString()}toDate(){return this.#e.toJSDate()}isLastDayOfMonth(){const{day:s,month:l}=this.#e;if(l===2){const u=o.#o(this.#e.year);return s===e.DAYS_IN_MONTH[l-1]-(u?0:1)}return s===e.DAYS_IN_MONTH[l-1]}isLastWeekdayOfMonth(){const{day:s,month:l}=this.#e;let u;return l===2?u=e.DAYS_IN_MONTH[l-1]-(o.#o(this.#e.year)?0:1):u=e.DAYS_IN_MONTH[l-1],s>u-7}applyDateOperation(s,l,u){if(l===n.Month||l===n.Day){this.invokeDateOperation(s,l);return}const f=this.getHours();this.invokeDateOperation(s,l);const c=this.getHours(),h=c-f;h===2?u!==24&&(this.dstStart=f+1):h===0&&this.getMinutes()===0&&this.getSeconds()===0&&u!==24&&(this.dstEnd=c)}#r(){return this.#e.toUTC()}}e.CronDate=o,e.default=o})(fD)),fD}var mD;function Sfe(){if(mD)return rm;mD=1,Object.defineProperty(rm,"__esModule",{value:!0}),rm.CronMonth=void 0;const e=Wk(),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 rm.CronMonth=a,rm}var om={},gD;function wfe(){if(gD)return om;gD=1,Object.defineProperty(om,"__esModule",{value:!0}),om.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 om.CronSecond=o,om}var yD;function qk(){return yD||(yD=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(mfe(),e),n(gfe(),e),n(yfe(),e),n(gd(),e),n(vfe(),e),n(bfe(),e),n(Sfe(),e),n(wfe(),e)})(Cf)),Cf}var vD;function VL(){if(vD)return Xh;vD=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.CronFieldCollection=void 0;const e=qk();let t=class gm{#e;#t;#n;#o;#r;#a;static from(r,o){return new gm({second:this.resolveField(e.CronSecond,r.second,o.second),minute:this.resolveField(e.CronMinute,r.minute,o.minute),hour:this.resolveField(e.CronHour,r.hour,o.hour),dayOfMonth:this.resolveField(e.CronDayOfMonth,r.dayOfMonth,o.dayOfMonth),month:this.resolveField(e.CronMonth,r.month,o.month),dayOfWeek:this.resolveField(e.CronDayOfWeek,r.dayOfWeek,o.dayOfWeek)})}static resolveField(r,o,a){return a?a instanceof e.CronField?a:new r(a):o}constructor({second:r,minute:o,hour:a,dayOfMonth:s,month:l,dayOfWeek:u}){if(!r)throw new Error("Validation error, Field second is missing");if(!o)throw new Error("Validation error, Field minute is missing");if(!a)throw new Error("Validation error, Field hour is missing");if(!s)throw new Error("Validation error, Field dayOfMonth is missing");if(!l)throw new Error("Validation error, Field month is missing");if(!u)throw new Error("Validation error, Field dayOfWeek is missing");if(l.values.length===1&&!s.hasLastChar&&u.isWildcard&&!(parseInt(s.values[0],10)<=e.CronMonth.daysInMonth[l.values[0]-1]))throw new Error("Invalid explicit day of month definition");this.#e=r,this.#t=o,this.#n=a,this.#r=l,this.#a=u,this.#o=s}get second(){return this.#e}get minute(){return this.#t}get hour(){return this.#n}get dayOfMonth(){return this.#o}get month(){return this.#r}get dayOfWeek(){return this.#a}static compactField(r){if(r.length===0)return[];const o=[];let a;return r.forEach((s,l,u)=>{if(a===void 0){a={start:s,count:1};return}const f=u[l-1]||a.start,c=u[l+1];if(s==="L"||s==="W"){o.push(a),o.push({start:s,count:1}),a=void 0;return}if(a.step===void 0&&c!==void 0){const h=s-f,y=c-s;if(h<=y){a={...a,count:2,end:s,step:h};return}a.step=1}s-(a.end??0)===a.step?(a.count++,a.end=s):(a.count===1?o.push({start:a.start,count:1}):a.count===2?(o.push({start:a.start,count:1}),o.push({start:a.end??f,count:1})):o.push(a),a={start:s,count:1})}),a&&o.push(a),o}static#s(r,o,a){const s=o.step;return s?s===1&&o.start===r.min&&o.end&&o.end>=a?r.hasQuestionMarkChar?"?":"*":s!==1&&o.start===r.min&&o.end&&o.end>=a-s+1?`*/${s}`:null:null}static#i(r,o){const a=r.step;if(a===1)return`${r.start}-${r.end}`;const s=r.start===0?r.count-1:r.count;if(!a)throw new Error("Unexpected range step");if(!r.end)throw new Error("Unexpected range end");if(a*s>r.end){const l=(f,c)=>{if(typeof r.start!="number")throw new Error("Unexpected range start");return c%a===0?r.start+c:null};if(typeof r.start!="number")throw new Error("Unexpected range start");const u={length:r.end-r.start+1};return Array.from(u,l).filter(f=>f!==null).join(",")}return r.end===o-a+1?`${r.start}/${a}`:`${r.start}-${r.end}/${a}`}stringifyField(r){let o=r.max,a=r.values;if(r instanceof e.CronDayOfWeek){o=6;const l=this.#a.values;a=l[l.length-1]===7?l.slice(0,-1):l}r instanceof e.CronDayOfMonth&&(o=this.#r.values.length===1?e.CronMonth.daysInMonth[this.#r.values[0]-1]:r.max);const s=gm.compactField(a);if(s.length===1){const l=gm.#s(r,s[0],o);if(l)return l}return s.map(l=>{const u=l.count===1?l.start.toString():gm.#i(l,o);return r instanceof e.CronDayOfWeek&&r.nthDay>0?`${u}#${r.nthDay}`:u}).join(",")}stringify(r=!1){const o=[];return r&&o.push(this.stringifyField(this.#e)),o.push(this.stringifyField(this.#t),this.stringifyField(this.#n),this.stringifyField(this.#o),this.stringifyField(this.#r),this.stringifyField(this.#a)),o.join(" ")}serialize(){return{second:this.#e.serialize(),minute:this.#t.serialize(),hour:this.#n.serialize(),dayOfMonth:this.#o.serialize(),month:this.#r.serialize(),dayOfWeek:this.#a.serialize()}}};return Xh.CronFieldCollection=t,Xh}var bD={},xD;function HL(){return xD||(xD=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=Wk();e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range",e.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";const n=1e4;class r{#e;#t;#n;#o;#r;#a;#s=null;#i=!1;constructor(a,s){this.#e=s,this.#t=s.tz,this.#o=s.startDate?new t.CronDate(s.startDate,this.#t):null,this.#r=s.endDate?new t.CronDate(s.endDate,this.#t):null;let l=s.currentDate??s.startDate;if(l){const u=new t.CronDate(l,this.#t);this.#o&&u.getTime()<this.#o.getTime()?l=this.#o:this.#r&&u.getTime()>this.#r.getTime()&&(l=this.#r)}this.#n=new t.CronDate(l,this.#t),this.#a=a}get fields(){return this.#a}static fieldsToExpression(a,s){return new r(a,s||{})}static#c(a,s){return s.some(l=>l===a)}#l(a,s){return a[s?a.length-1:0]}#d(a){const s=`${a.getFullYear()}-${a.getMonth()+1}-${a.getDate()}`;if(this.#s===s)return this.#i;const l=new t.CronDate(a);l.setStartOfDay();const u=new t.CronDate(a);return u.setEndOfDay(),this.#s=s,this.#i=l.getUTCOffset()!==u.getUTCOffset(),this.#i}#u(a,s,l){const u=this.#a.second.values,f=a.getSeconds(),c=this.#a.second.findNearestValue(f,l);if(c!==null){a.setSeconds(c);return}a.applyDateOperation(s,t.TimeUnit.Minute,this.#a.hour.values.length),a.setSeconds(this.#l(u,l))}#p(a,s,l){const u=this.#a.minute.values,f=this.#a.second.values,c=a.getMinutes(),h=this.#a.minute.findNearestValue(c,l);if(h!==null){a.setMinutes(h),a.setSeconds(this.#l(f,l));return}a.applyDateOperation(s,t.TimeUnit.Hour,this.#a.hour.values.length),a.setMinutes(this.#l(u,l)),a.setSeconds(this.#l(f,l))}static#f(a,s){const l=s.isLastWeekdayOfMonth();return a.some(u=>{const f=parseInt(u.toString().charAt(0),10)%7;if(Number.isNaN(f))throw new Error(`Invalid last weekday of the month expression: ${u}`);return s.getDay()===f&&l})}next(){return this.#h()}prev(){return this.#h(!0)}hasNext(){const a=this.#n;try{return this.#h(),!0}catch{return!1}finally{this.#n=a}}hasPrev(){const a=this.#n;try{return this.#h(!0),!0}catch{return!1}finally{this.#n=a}}take(a){const s=[];if(a>=0)for(let l=0;l<a;l++)try{s.push(this.next())}catch{return s}else for(let l=0;l>a;l--)try{s.push(this.prev())}catch{return s}return s}reset(a){this.#n=new t.CronDate(a||this.#e.currentDate,this.#t)}stringify(a=!1){return this.#a.stringify(a)}includesDate(a){const{second:s,minute:l,hour:u,month:f}=this.#a,c=new t.CronDate(a,this.#t);return!(!s.values.includes(c.getSeconds())||!l.values.includes(c.getMinutes())||!u.values.includes(c.getHours())||!f.values.includes(c.getMonth()+1)||!this.#m(c)||this.#a.dayOfWeek.nthDay>0&&Math.ceil(c.getDate()/7)!==this.#a.dayOfWeek.nthDay)}toString(){return this.#e.expression||this.stringify(!0)}#m(a){const s=this.#a.dayOfMonth.isWildcard,l=!s,u=this.#a.dayOfWeek.isWildcard,f=!u,c=r.#c(a.getDate(),this.#a.dayOfMonth.values)||this.#a.dayOfMonth.hasLastChar&&a.isLastDayOfMonth(),h=r.#c(a.getDay(),this.#a.dayOfWeek.values)||this.#a.dayOfWeek.hasLastChar&&r.#f(this.#a.dayOfWeek.values,a);return!!(l&&f&&(c||h)||c&&!f||s&&!u&&h)}#g(a,s,l){const u=this.#a.hour.values,f=u,c=a.getHours(),h=r.#c(c,u),y=a.dstEnd===c;if(a.dstStart!==null&&a.dstStart===c-1&&r.#c(a.dstStart,u))return!0;if(y&&!l)return a.dstEnd=null,a.applyDateOperation(t.DateMathOp.Add,t.TimeUnit.Hour,f.length),!1;if(h)return!0;a.dstStart=null;const b=this.#a.hour.findNearestValue(c,l);if(b===null)return a.applyDateOperation(s,t.TimeUnit.Day,f.length),!1;if(this.#d(a)){const v=l?c-b:b-c;for(let x=0;x<v&&(a.applyDateOperation(s,t.TimeUnit.Hour,f.length),!(!l&&a.getHours()>=b||l&&a.getHours()<=b));x++);}else a.setHours(b);return a.setMinutes(this.#l(this.#a.minute.values,l)),a.setSeconds(this.#l(this.#a.second.values,l)),!1}#y(a){if(!this.#o&&!this.#r)return;const s=a.getTime();if(this.#o&&s<this.#o.getTime())throw new Error(e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(this.#r&&s>this.#r.getTime())throw new Error(e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)}#h(a=!1){const s=a?t.DateMathOp.Subtract:t.DateMathOp.Add,l=new t.CronDate(this.#n),u=l.getTime();let f=0;for(;++f<n;){if(this.#y(l),!this.#m(l)){l.applyDateOperation(s,t.TimeUnit.Day,this.#a.hour.values.length);continue}if(!(this.#a.dayOfWeek.nthDay<=0||Math.ceil(l.getDate()/7)===this.#a.dayOfWeek.nthDay)){l.applyDateOperation(s,t.TimeUnit.Day,this.#a.hour.values.length);continue}if(!r.#c(l.getMonth()+1,this.#a.month.values)){l.applyDateOperation(s,t.TimeUnit.Month,this.#a.hour.values.length);continue}if(this.#g(l,s,a)){if(!r.#c(l.getMinutes(),this.#a.minute.values)){this.#p(l,s,a);continue}if(!r.#c(l.getSeconds(),this.#a.second.values)){this.#u(l,s,a);continue}if(u===l.getTime()){(s==="Add"||l.getMilliseconds()===0)&&l.applyDateOperation(s,t.TimeUnit.Second,this.#a.hour.values.length);continue}break}}if(f>n)throw new Error(e.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return l.getMilliseconds()!==0&&l.setMilliseconds(0),this.#n=l,l}[Symbol.iterator](){return{next:()=>{try{return{value:this.#h(),done:!1}}catch{return{value:void 0,done:!0}}}}}}e.CronExpression=r,e.default=r})(bD)),bD}var sv={},SD;function Cfe(){if(SD)return sv;SD=1,Object.defineProperty(sv,"__esModule",{value:!0}),sv.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 sv}var wD;function Rw(){if(wD)return Ja;wD=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.CronExpressionParser=Ja.DayOfWeek=Ja.Months=Ja.CronUnit=Ja.PredefinedExpressions=void 0;const e=VL(),t=HL(),n=Cfe(),r=qk();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||(Ja.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||(Ja.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||(Ja.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||(Ja.DayOfWeek=l={}));let u=class ei{static parse(c,h={}){const{strict:y=!1,hashSeed:b}=h,v=(0,n.seededRandom)(b);c=o[c]||c;const x=ei.#e(c,y);if(!(x.dayOfMonth==="*"||x.dayOfWeek==="*"||!y))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");const w=ei.#t(a.Second,x.second,r.CronSecond.constraints,v),S=ei.#t(a.Minute,x.minute,r.CronMinute.constraints,v),M=ei.#t(a.Hour,x.hour,r.CronHour.constraints,v),T=ei.#t(a.Month,x.month,r.CronMonth.constraints,v),R=ei.#t(a.DayOfMonth,x.dayOfMonth,r.CronDayOfMonth.constraints,v),{dayOfWeek:$,nthDayOfWeek:P}=ei.#d(x.dayOfWeek),N=ei.#t(a.DayOfWeek,$,r.CronDayOfWeek.constraints,v),V=new e.CronFieldCollection({second:new r.CronSecond(w,{rawValue:x.second}),minute:new r.CronMinute(S,{rawValue:x.minute}),hour:new r.CronHour(M,{rawValue:x.hour}),dayOfMonth:new r.CronDayOfMonth(R,{rawValue:x.dayOfMonth}),month:new r.CronMonth(T,{rawValue:x.month}),dayOfWeek:new r.CronDayOfWeek(N,{rawValue:x.dayOfWeek,nthDayOfWeek:P})});return new t.CronExpression(V,{...h,expression:c})}static#e(c,h){if(h&&!c.length)throw new Error("Invalid cron expression");c=c||"0 * * * * *";const y=c.trim().split(/\s+/);if(h&&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 b=["*","*","*","*","*","0"];y.length<b.length&&y.unshift(...b.slice(y.length));const[v,x,w,S,M,T]=y;return{second:v,minute:x,hour:w,dayOfMonth:S,month:M,dayOfWeek:T}}static#t(c,h,y,b){if((c===a.Month||c===a.DayOfWeek)&&(h=h.replace(/[a-z]{3}/gi,v=>{v=v.toLowerCase();const x=s[v]||l[v];if(x===void 0)throw new Error(`Validation error, cannot resolve alias "${v}"`);return x.toString()})),!y.validChars.test(h))throw new Error(`Invalid characters, got value: ${h}`);return h=this.#n(h,y),h=this.#o(h,y,b),this.#r(c,h,y)}static#n(c,h){return c.replace(/[*?]/g,h.min+"-"+h.max)}static#o(c,h,y){const b=y();return c.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(v,x,w,S)=>{if(x&&w&&S){const M=parseInt(x,10),T=parseInt(w,10),R=parseInt(S,10);if(M>T)throw new Error(`Invalid range: ${M}-${T}, min > max`);if(R<=0)throw new Error(`Invalid step: ${R}, must be positive`);const $=Math.max(M,h.min),P=Math.floor(b*R),N=[];for(let V=Math.floor($/R)*R+P;V<=T;V+=R)V>=$&&N.push(V);return N.join(",")}else if(x&&w){const M=parseInt(x,10),T=parseInt(w,10);if(M>T)throw new Error(`Invalid range: ${M}-${T}, min > max`);return String(Math.floor(b*(T-M+1))+M)}else if(S){const M=parseInt(S,10);if(M<=0)throw new Error(`Invalid step: ${M}, must be positive`);const T=Math.floor(b*M),R=[];for(let $=Math.floor(h.min/M)*M+T;$<=h.max;$+=M)$>=h.min&&R.push($);return R.join(",")}else return String(Math.floor(b*(h.max-h.min+1)+h.min))})}static#r(c,h,y){const b=[];function v(x,w){if(Array.isArray(x))b.push(...x);else if(ei.#u(w,x))b.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}`);b.push(c===a.DayOfWeek?S%7:x)}}return h.split(",").forEach(x=>{if(!(x.length>0))throw new Error("Invalid list value format");v(ei.#a(c,x,y),y)}),b}static#a(c,h,y){const b=h.split("/");if(b.length>2)throw new Error(`Invalid repeat: ${h}`);return b.length===2?(b[0].includes("-")||(b[0]=`${b[0]}-${y.max}`),ei.#l(c,b[0],parseInt(b[1],10),y)):ei.#l(c,h,1,y)}static#s(c,h,y){if(!(!isNaN(c)&&!isNaN(h)&&c>=y.min&&h<=y.max))throw new Error(`Constraint error, got range ${c}-${h} expected range ${y.min}-${y.max}`);if(c>h)throw new Error(`Invalid range: ${c}-${h}, min(${c}) > max(${h})`)}static#i(c){if(!(!isNaN(c)&&c>0))throw new Error(`Constraint error, cannot repeat at every ${c} time.`)}static#c(c,h,y,b){const v=[];c===a.DayOfWeek&&y%7===0&&v.push(0);for(let x=h;x<=y;x+=b)v.indexOf(x)===-1&&v.push(x);return v}static#l(c,h,y,b){const v=h.split("-");if(v.length<=1)return isNaN(+h)?h:+h;const[x,w]=v.map(S=>parseInt(S,10));return this.#s(x,w,b),this.#i(y),this.#c(c,x,w,y)}static#d(c){const h=c.split("#");if(h.length<=1)return{dayOfWeek:h[0]};const y=+h[h.length-1],b=c.match(/([,-/])/);if(b!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${b?.[0]}\` special characters are incompatible`);if(!(h.length<=2&&!isNaN(y)&&y>=1&&y<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:h[0],nthDayOfWeek:y}}static#u(c,h){return c.chars.some(y=>h.toString().includes(y))}};return Ja.CronExpressionParser=u,Ja}var cs={};const kfe={},Tfe=Object.freeze(Object.defineProperty({__proto__:null,default:kfe},Symbol.toStringTag,{value:"Module"})),CD=FQ(Tfe);var kD;function Mfe(){if(kD)return cs;kD=1;var e=cs&&cs.__createBinding||(Object.create?(function(a,s,l,u){u===void 0&&(u=l);var f=Object.getOwnPropertyDescriptor(s,l);(!f||("get"in f?!s.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,u,f)}):(function(a,s,l,u){u===void 0&&(u=l),a[u]=s[l]})),t=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 u=[];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(u[u.length]=f);return u},a(s)};return function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var u=a(s),f=0;f<u.length;f++)u[f]!=="default"&&e(l,s,u[f]);return t(l,s),l}})();Object.defineProperty(cs,"__esModule",{value:!0}),cs.CronFileParser=void 0;const r=Rw();let o=class Rv{static async parseFile(s){const{readFile:l}=await Promise.resolve().then(()=>n(CD)),u=await l(s,"utf8");return Rv.#e(u)}static parseFileSync(s){const{readFileSync:l}=CD,u=l(s,"utf8");return Rv.#e(u)}static#e(s){const l=s.split(`
440
- `),u={variables:{},expressions:[],errors:{}};for(const f of l){const c=f.trim();if(c.length===0||c.startsWith("#"))continue;const h=c.match(/^(.*)=(.*)$/);if(h){const[,y,b]=h;u.variables[y]=b.replace(/["']/g,"");continue}try{const y=Rv.#t(c);u.expressions.push(y.interval)}catch(y){u.errors[c]=y}}return u}static#t(s){const l=s.split(" ");return{interval:r.CronExpressionParser.parse(l.slice(0,5).join(" ")),command:l.slice(5,l.length)}}};return cs.CronFileParser=o,cs}var TD;function Efe(){return TD||(TD=1,(function(e){var t=wf&&wf.__createBinding||(Object.create?(function(f,c,h,y){y===void 0&&(y=h);var b=Object.getOwnPropertyDescriptor(c,h);(!b||("get"in b?!c.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return c[h]}}),Object.defineProperty(f,y,b)}):(function(f,c,h,y){y===void 0&&(y=h),f[y]=c[h]})),n=wf&&wf.__exportStar||function(f,c){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(c,h)&&t(c,f,h)};Object.defineProperty(e,"__esModule",{value:!0}),e.CronFileParser=e.CronExpressionParser=e.CronExpression=e.CronFieldCollection=e.CronDate=void 0;const r=Rw();var o=Wk();Object.defineProperty(e,"CronDate",{enumerable:!0,get:function(){return o.CronDate}});var a=VL();Object.defineProperty(e,"CronFieldCollection",{enumerable:!0,get:function(){return a.CronFieldCollection}});var s=HL();Object.defineProperty(e,"CronExpression",{enumerable:!0,get:function(){return s.CronExpression}});var l=Rw();Object.defineProperty(e,"CronExpressionParser",{enumerable:!0,get:function(){return l.CronExpressionParser}});var u=Mfe();Object.defineProperty(e,"CronFileParser",{enumerable:!0,get:function(){return u.CronFileParser}}),n(qk(),e),e.default=r.CronExpressionParser})(wf)),wf}var Ofe=Efe(),MD={exports:{}},ED;function Rfe(){return ED||(ED=1,(function(e,t){(function(n,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:((s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=u(515),c=(function(){function h(y,b,v){b===void 0&&(b=!0),v===void 0&&(v=!1),this.expression=y,this.dayOfWeekStartIndexZero=b,this.monthStartIndexZero=v}return h.prototype.parse=function(){var y,b,v=(y=this.expression)!==null&&y!==void 0?y:"";if(v==="@reboot")return b=["@reboot","","","","","",""],b;if(v.startsWith("@")){var x=this.parseSpecial(this.expression);b=this.extractParts(x)}else b=this.extractParts(this.expression);return this.normalize(b),this.validate(b),b},h.prototype.parseSpecial=function(y){var b={"@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"},v=b[y];if(!v)throw new Error("Unknown special expression.");return v},h.prototype.extractParts=function(y){if(!this.expression)throw new Error("cron expression is empty");for(var b=y.trim().split(/[ ]+/),v=0;v<b.length;v++)if(b[v].includes(",")){var x=b[v].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,M){return S!==null&&M!==null?S-M:0}),b[v]=x.map(function(S){return S!==null?S.toString():""}).join(",")}if(b.length<5)throw new Error("Expression has only ".concat(b.length," part").concat(b.length==1?"":"s",". At least 5 parts are required."));if(b.length==5)b.unshift(""),b.push("");else if(b.length==6){var w=/\d{4}$/.test(b[5])||b[4]=="?"||b[2]=="?";w?b.unshift(""):b.push("")}else if(b.length>7)throw new Error("Expression has ".concat(b.length," parts; too many!"));return b},h.prototype.normalize=function(y){var b=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 b.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 v={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var x in v)y[5]=y[5].replace(new RegExp(x,"gi"),v[x].toString());y[4]=y[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function($){var P=$.replace(/\D/,""),N=P;return b.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 M=0;M<y.length;M++)if(y[M].indexOf(",")!=-1&&(y[M]=y[M].split(",").filter(function($){return $!==""}).join(",")||"*"),y[M]=="*/1"&&(y[M]="*"),y[M].indexOf("/")>-1&&!/^\*|\-|\,/.test(y[M])){var T=null;switch(M){case 4:T="12";break;case 5:T="6";break;case 6:T="9999";break;default:T=null;break}if(T!==null){var R=y[M].split("/");y[M]="".concat(R[0],"-").concat(T,"/").concat(R[1])}}},h.prototype.validate=function(y){var b="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(y[0],b),this.validateOnlyExpectedCharactersFound(y[1],b),this.validateOnlyExpectedCharactersFound(y[2],b),this.validateOnlyExpectedCharactersFound(y[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(y[4],b),this.validateOnlyExpectedCharactersFound(y[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(y[6],b),this.validateAnyRanges(y)},h.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)},h.prototype.validateOnlyExpectedCharactersFound=function(y,b){var v=y.match(new RegExp("[^".concat(b,"]+"),"gi"));if(v&&v.length)throw new Error("Expression contains invalid values: '".concat(v.toString(),"'"))},h})();l.CronParser=c}),333:((s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=u(823),c=u(949),h=(function(){function y(b,v){if(this.expression=b,this.options=v,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],v.use24HourTimeFormat===void 0&&(v.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return y.toString=function(b,v){var x=v===void 0?{}:v,w=x.throwExceptionOnParseError,S=w===void 0?!0:w,M=x.verbose,T=M===void 0?!1:M,R=x.dayOfWeekStartIndexZero,$=R===void 0?!0:R,P=x.monthStartIndexZero,N=P===void 0?!1:P,V=x.use24HourTimeFormat,F=x.locale,W=F===void 0?null:F,_={throwExceptionOnParseError:S,verbose:T,dayOfWeekStartIndexZero:$,monthStartIndexZero:N,use24HourTimeFormat:V,locale:W};_.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var k=new y(b,_);return k.getFullDescription()},y.initialize=function(b,v){v===void 0&&(v="en"),y.specialCharacters=["/","-",",","*"],y.defaultLocale=v,b.load(y.locales)},y.prototype.getFullDescription=function(){var b,v,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((v=(b=this.i18n).atReboot)===null||v===void 0?void 0:v.call(b))||"Run once, at startup";var S=this.getTimeOfDayDescription(),M=this.getDayOfMonthDescription(),T=this.getMonthDescription(),R=this.getDayOfWeekDescription(),$=this.getYearDescription();x+=S+M+R+T+$,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 b=this.expressionParts[0],v=this.expressionParts[1],x=this.expressionParts[2],w="";if(!f.StringUtilities.containsAny(v,y.specialCharacters)&&!f.StringUtilities.containsAny(x,y.specialCharacters)&&!f.StringUtilities.containsAny(b,y.specialCharacters))w+=this.i18n.atSpace()+this.formatTime(x,v,b);else if(!b&&v.indexOf("-")>-1&&!(v.indexOf(",")>-1)&&!(v.indexOf("/")>-1)&&!f.StringUtilities.containsAny(x,y.specialCharacters)){var S=v.split("-");w+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(x,S[0],""),this.formatTime(x,S[1],""))}else if(!b&&x.indexOf(",")>-1&&x.indexOf("-")==-1&&x.indexOf("/")==-1&&!f.StringUtilities.containsAny(v,y.specialCharacters)){var M=x.split(",");w+=this.i18n.at();for(var T=0;T<M.length;T++)w+=" ",w+=this.formatTime(M[T],v,""),T<M.length-2&&(w+=","),T==M.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 b=this,v=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(x){return x},function(x){return f.StringUtilities.format(b.i18n.everyX0Seconds(x),x)},function(x){return b.i18n.secondsX0ThroughX1PastTheMinute()},function(x){return x=="0"?"":parseInt(x)<20?b.i18n.atX0SecondsPastTheMinute(x):b.i18n.atX0SecondsPastTheMinuteGt20()||b.i18n.atX0SecondsPastTheMinute(x)});return v},y.prototype.getMinutesDescription=function(){var b=this,v=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(b.i18n.everyX0Minutes(S),S)},function(S){return b.i18n.minutesX0ThroughX1PastTheHour()},function(S){try{return S=="0"&&x.indexOf("/")==-1&&v==""?b.i18n.everyHour():parseInt(S)<20?b.i18n.atX0MinutesPastTheHour(S):b.i18n.atX0MinutesPastTheHourGt20()||b.i18n.atX0MinutesPastTheHour(S)}catch{return b.i18n.atX0MinutesPastTheHour(S)}});return w},y.prototype.getHoursDescription=function(){var b=this,v=this.expressionParts[2],x=0,w=[];v.split("/")[0].split(",").forEach(function(T){var R=T.split("-");R.length===2&&w.push({value:R[1],index:x+1}),x+=R.length});var S=0,M=this.getSegmentDescription(v,this.i18n.everyHour(),function(T){var R=w.find(function(P){return P.value===T&&P.index===S}),$=R&&b.expressionParts[1]!=="0";return S++,$?b.formatTime(T,"59",""):b.formatTime(T,"0","")},function(T){return f.StringUtilities.format(b.i18n.everyX0Hours(T),T)},function(T){return b.i18n.betweenX0AndX1()},function(T){return b.i18n.atX0()});return M},y.prototype.getDayOfWeekDescription=function(){var b=this,v=this.i18n.daysOfTheWeek(),x=null;return this.expressionParts[5]=="*"?x="":x=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(w,S){var M=w;w.indexOf("#")>-1?M=w.substring(0,w.indexOf("#")):w.indexOf("L")>-1&&(M=M.replace("L",""));var T=parseInt(M),R=b.i18n.daysOfTheWeekInCase?b.i18n.daysOfTheWeekInCase(S)[T]:v[T];if(w.indexOf("#")>-1){var $=null,P=w.substring(w.indexOf("#")+1),N=w.substring(0,w.indexOf("#"));switch(P){case"1":$=b.i18n.first(N);break;case"2":$=b.i18n.second(N);break;case"3":$=b.i18n.third(N);break;case"4":$=b.i18n.fourth(N);break;case"5":$=b.i18n.fifth(N);break}R=$+" "+R}return R},function(w){return parseInt(w)==1?"":f.StringUtilities.format(b.i18n.commaEveryX0DaysOfTheWeek(w),w)},function(w){var S=w.substring(0,w.indexOf("-")),M=b.expressionParts[3]!="*";return M?b.i18n.commaAndX0ThroughX1(S):b.i18n.commaX0ThroughX1(S)},function(w){var S=null;if(w.indexOf("#")>-1){var M=w.substring(w.indexOf("#")+1),T=w.substring(0,w.indexOf("#"));S=b.i18n.commaOnThe(M,T).trim()+b.i18n.spaceX0OfTheMonth()}else if(w.indexOf("L")>-1)S=b.i18n.commaOnTheLastX0OfTheMonth(w.replace("L",""));else{var R=b.expressionParts[3]!="*";S=R?b.i18n.commaAndOnX0():b.i18n.commaOnlyOnX0(w)}return S}),x},y.prototype.getMonthDescription=function(){var b=this,v=this.i18n.monthsOfTheYear(),x=this.getSegmentDescription(this.expressionParts[4],"",function(w,S){return S&&b.i18n.monthsOfTheYearInCase?b.i18n.monthsOfTheYearInCase(S)[parseInt(w)-1]:v[parseInt(w)-1]},function(w){return parseInt(w)==1?"":f.StringUtilities.format(b.i18n.commaEveryX0Months(w),w)},function(w){return b.i18n.commaMonthX0ThroughMonthX1()||b.i18n.commaX0ThroughX1()},function(w){return b.i18n.commaOnlyInMonthX0?b.i18n.commaOnlyInMonthX0():b.i18n.commaOnlyInX0()});return x},y.prototype.getDayOfMonthDescription=function(){var b=this,v=null,x=this.expressionParts[3];switch(x){case"L":v=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":v=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","")),M=S==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),S.toString());v=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),M);break}else{var T=x.match(/L-(\d{1,2})/);if(T){var R=T[1];v=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(R),R);break}else{if(x=="*"&&this.expressionParts[5]!="*")return"";v=this.getSegmentDescription(x,this.i18n.commaEveryDay(),function($){return $=="L"?b.i18n.lastDay():b.i18n.dayX0?f.StringUtilities.format(b.i18n.dayX0(),$):$},function($){return $=="1"?b.i18n.commaEveryDay():b.i18n.commaEveryX0Days($)},function($){return b.i18n.commaBetweenDayX0AndX1OfTheMonth($)},function($){return b.i18n.commaOnDayX0OfTheMonth($)})}break}}return v},y.prototype.getYearDescription=function(){var b=this,v=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(b.i18n.commaEveryX0Years(x),x)},function(x){return b.i18n.commaYearX0ThroughYearX1()||b.i18n.commaX0ThroughX1()},function(x){return b.i18n.commaOnlyInYearX0?b.i18n.commaOnlyInYearX0():b.i18n.commaOnlyInX0()});return v},y.prototype.getSegmentDescription=function(b,v,x,w,S,M){var T=null,R=b.indexOf("/")>-1,$=b.indexOf("-")>-1,P=b.indexOf(",")>-1;if(!b)T="";else if(b==="*")T=v;else if(!R&&!$&&!P)T=f.StringUtilities.format(M(b),x(b));else if(P){for(var N=b.split(","),V="",F=0;F<N.length;F++)if(F>0&&N.length>2&&(V+=",",F<N.length-1&&(V+=" ")),F>0&&N.length>1&&(F==N.length-1||N.length==2)&&(V+="".concat(this.i18n.spaceAnd()," ")),N[F].indexOf("/")>-1||N[F].indexOf("-")>-1){var W=N[F].indexOf("-")>-1&&N[F].indexOf("/")==-1,_=this.getSegmentDescription(N[F],v,x,w,W?this.i18n.commaX0ThroughX1:S,M);W&&(_=_.replace(", ","")),V+=_}else R?V+=this.getSegmentDescription(N[F],v,x,w,S,M):V+=x(N[F]);R?T=V:T=f.StringUtilities.format(M(b),V)}else if(R){var N=b.split("/");if(T=f.StringUtilities.format(w(N[1]),N[1]),N[0].indexOf("-")>-1){var k=this.generateRangeSegmentDescription(N[0],S,x);k.indexOf(", ")!=0&&(T+=", "),T+=k}else if(N[0].indexOf("*")==-1){var I=f.StringUtilities.format(M(N[0]),x(N[0]));I=I.replace(", ",""),T+=f.StringUtilities.format(this.i18n.commaStartingX0(),I)}}else $&&(T=this.generateRangeSegmentDescription(b,S,x));return T},y.prototype.generateRangeSegmentDescription=function(b,v,x){var w="",S=b.split("-"),M=x(S[0],1),T=x(S[1],2),R=v(b);return w+=f.StringUtilities.format(R,M,T),w},y.prototype.formatTime=function(b,v,x){var w=0,S=0,M=parseInt(b)+w,T=parseInt(v)+S;T>=60?(T-=60,M+=1):T<0&&(T+=60,M-=1),M>=24?M=M-24:M<0&&(M=24+M);var R="",$=!1;this.options.use24HourTimeFormat||($=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),R=$?"".concat(this.getPeriod(M)," "):" ".concat(this.getPeriod(M)),M>12&&(M-=12),M===0&&(M=12));var P="";return x&&(P=":".concat(("00"+x).substring(x.length))),"".concat($?R:"").concat(("00"+M.toString()).substring(M.toString().length),":").concat(("00"+T.toString()).substring(T.toString().length)).concat(P).concat($?"":R)},y.prototype.transformVerbosity=function(b,v){if(!v&&(b=b.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),b=b.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),b=b.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),b=b.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var x=0,w=Object.entries(this.i18n.conciseVerbosityReplacements());x<w.length;x++){var S=w[x],M=S[0],T=S[1];b=b.replace(new RegExp(M,"g"),T)}return b},y.prototype.getPeriod=function(b){return b>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},y.locales={},y})();l.ExpressionDescriptor=h}),747:((s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=u(486),c=(function(){function h(){}return h.prototype.load=function(y){y.en=new f.en},h})();l.enLocaleLoader=c}),486:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var u=(function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f.prototype.atReboot=function(){return"Run once, at startup"},f})();l.en=u}),515:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0});function u(c,h){if(!c)throw new Error(h)}var f=(function(){function c(){}return c.secondRange=function(h){for(var y=h.split(","),b=0;b<y.length;b++)if(!isNaN(parseInt(y[b],10))){var v=parseInt(y[b],10);u(v>=0&&v<=59,"seconds part must be >= 0 and <= 59")}},c.minuteRange=function(h){for(var y=h.split(","),b=0;b<y.length;b++)if(!isNaN(parseInt(y[b],10))){var v=parseInt(y[b],10);u(v>=0&&v<=59,"minutes part must be >= 0 and <= 59")}},c.hourRange=function(h){for(var y=h.split(","),b=0;b<y.length;b++)if(!isNaN(parseInt(y[b],10))){var v=parseInt(y[b],10);u(v>=0&&v<=23,"hours part must be >= 0 and <= 23")}},c.dayOfMonthRange=function(h){for(var y=h.split(","),b=0;b<y.length;b++)if(!isNaN(parseInt(y[b],10))){var v=parseInt(y[b],10);u(v>=1&&v<=31,"DOM part must be >= 1 and <= 31")}},c.monthRange=function(h,y){for(var b=h.split(","),v=0;v<b.length;v++)if(!isNaN(parseInt(b[v],10))){var x=parseInt(b[v],10);u(x>=1&&x<=12,y?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},c.dayOfWeekRange=function(h,y){for(var b=h.split(","),v=0;v<b.length;v++)if(!isNaN(parseInt(b[v],10))){var x=parseInt(b[v],10);u(x>=0&&x<=6,y?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},c})();l.default=f}),823:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var u=(function(){function f(){}return f.format=function(c){for(var h=[],y=1;y<arguments.length;y++)h[y-1]=arguments[y];return c.replace(/%s/g,function(b){return h.shift()})},f.containsAny=function(c,h){return h.some(function(y){return c.indexOf(y)>-1})},f})();l.StringUtilities=u})},r={};function o(s){var l=r[s];if(l!==void 0)return l.exports;var u=r[s]={exports:{}};return n[s](u,u.exports,o),u.exports}var a={};return(()=>{var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0;var l=o(333),u=o(747);l.ExpressionDescriptor.initialize(new u.enLocaleLoader),s.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;s.toString=f})(),a})())})(MD)),MD.exports}var $fe=Rfe();const Pfe=Ul($fe),Dfe=new Set(["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC","SUN","MON","TUE","WED","THU","FRI","SAT"]);function Afe(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)&&!Dfe.has(n.toUpperCase()))return!1}return!0}function WL(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(!Afe(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=Pfe.toString(t,{use24HourTimeFormat:!0,verbose:!1}),r=Ofe.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 qL(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 jfe({onSubmit:e,isSubmitting:t,disabled:n,disabledReason:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),u=()=>a(!1),f=async()=>{try{await e({forceRefresh:s}),a(!1)}catch{}},c=m.jsx("span",{children:m.jsx(Cg,{label:"Materialization",onClick:()=>a(!0),disabled:n})});return m.jsxs(m.Fragment,{children:[n&&r?m.jsx(_i,{title:r,children:c}):c,m.jsx(aa,{open:o,onClose:u,title:"New materialization",description:"Compile the package, build a table for every persist source, and load them so queries serve from the tables.",actions:m.jsxs(m.Fragment,{children:[m.jsx(Go,{onClick:u,children:"Cancel"}),m.jsx(Go,{variant:"contained",loading:t,onClick:f,children:"Materialize"})]}),children:m.jsx($W,{children:m.jsx(EC,{control:m.jsx(Oj,{checked:s,onChange:h=>l(h.target.checked)}),label:"Force refresh (rebuild even if unchanged)"})})})]})}function $v({children:e}){return m.jsx(jt,{variant:"caption",component:"h6",sx:{display:"block",textTransform:"uppercase",letterSpacing:"0.06em",fontWeight:600,color:"text.secondary",mb:1},children:e})}function ub(e){return e===fa.Pending||e===fa.ManifestRowsReady}function Nfe(e){return e===fa.ManifestFileReady||e===fa.Failed||e===fa.Cancelled}function YL(e){switch(e){case fa.ManifestFileReady:return"Done";case fa.Failed:return"Failed";case fa.Cancelled:return"Cancelled";case fa.Pending:case fa.ManifestRowsReady:return"Pending";default:return"Unknown"}}function $w(e){switch(e){case fa.ManifestRowsReady:return"info";case fa.ManifestFileReady:return"success";case fa.Failed:return"error";case fa.Cancelled:return"warning";case fa.Pending:default:return"default"}}function Ife(e){const t=Object.values(Yk(e).refusedSources??{}).map(r=>({name:r.name,message:r.message})),n=Object.values(e.manifest?.failures??{}).filter(r=>r.refused).map(r=>({name:r.sourceName??r.sourceEntityId,message:r.reason}));return[...t,...n].sort((r,o)=>r.name.localeCompare(o.name))}function GL(e,t){const n=[`${e.sourcesBuilt??0} built`,`${e.sourcesReused??0} reused`];return e.sourcesRefused&&n.push(`${e.sourcesRefused} refused`),n.join(t)}function Yk(e){return e.metadata??{}}function Lfe(e){return e.trigger==="SCHEDULER"?"Scheduled":"Manual"}function KL(e,t){if(!e)return"-";const n=new Date(e).getTime(),r=t?new Date(t).getTime():Date.now(),o=Math.max(0,r-n);if(o<1e3)return`${o}ms`;const a=Math.round(o/1e3);if(a<60)return`${a}s`;const s=Math.floor(a/60),l=a%60;if(s<60)return`${s}m ${l}s`;const u=Math.floor(s/60),f=s%60;return`${u}h ${f}m`}function 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 zfe(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 Ffe({entries:e,builtAt:t}){const n=Object.entries(e??{});return m.jsxs(Ht,{children:[m.jsxs(fr,{direction:"row",alignItems:"baseline",justifyContent:"space-between",children:[m.jsx($v,{children:"Build manifest"}),t&&m.jsxs(jt,{variant:"caption",color:"text.secondary",children:["Built ",Pw(t)]})]}),n.length===0?m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"No materialized tables yet."}):m.jsxs(fg,{size:"small",children:[m.jsx(hg,{children:m.jsxs(Zs,{children:[m.jsx(Xn,{children:"Source"}),m.jsx(Xn,{children:"Table name"}),m.jsx(Xn,{children:"Connection"}),m.jsx(Xn,{children:"Realization"}),m.jsx(Xn,{align:"right",children:"Rows"})]})}),m.jsx(pg,{children:n.map(([r,o])=>m.jsxs(Zs,{children:[m.jsx(Xn,{sx:{fontFamily:ii},children:o.sourceName??r}),m.jsx(Xn,{sx:{fontFamily:ii},children:o.physicalTableName??"-"}),m.jsx(Xn,{sx:{fontFamily:ii},children:o.connectionName??"-"}),m.jsx(Xn,{children:o.realization??"-"}),m.jsx(Xn,{align:"right",children:o.rowCount??"-"})]},r))})]})]})}function QL({meta:e}){const t=e.trigger==="SCHEDULER";return m.jsx(_i,{title:t?"Fired by the materialization schedule":"Triggered manually",children:m.jsx(jt,{variant:"body2",color:"text.secondary",children:Lfe(e)})})}function Bfe({materialization:e,buildPlan:t,onClose:n}){const r=e?Yk(e):{},o=e?Ife(e):[],a=Object.values(t?.sources??{});return m.jsx(Kf,{open:e!==null,onClose:n,maxWidth:"md",fullWidth:!0,"aria-labelledby":"materialization-detail-title",children:e&&m.jsxs(m.Fragment,{children:[m.jsxs(Xf,{sx:{pr:6,pb:1.5},id:"materialization-detail-title",children:[m.jsxs(fr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:.75},children:[m.jsx(uj,{size:"small",label:YL(e.status),color:$w(e.status),variant:ub(e.status)?"filled":"outlined"}),m.jsx(QL,{meta:r})]}),m.jsx(jt,{variant:"subtitle1",sx:{fontWeight:600},children:e.packageName??"Materialization"}),m.jsx(jt,{variant:"caption",color:"text.secondary",sx:{fontFamily:ii,wordBreak:"break-all"},children:e.id}),m.jsx(Qr,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8},children:m.jsx(tp,{fontSize:"small"})})]}),m.jsxs(Qf,{dividers:!0,children:[m.jsxs(Ht,{sx:{bgcolor:"action.hover",borderRadius:2,p:2,mb:3,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:2},children:[m.jsx(am,{label:"Started",value:Pw(e.startedAt??e.createdAt)}),m.jsx(am,{label:"Completed",value:Pw(e.completedAt)}),m.jsx(am,{label:"Duration",value:KL(e.startedAt,e.completedAt)}),m.jsx(am,{label:"Sources",value:GL(r," · ")}),m.jsx(am,{label:"Force refresh",value:r.forceRefresh?"Yes":"No"})]}),e.error&&m.jsxs(Ht,{sx:{borderRadius:2,p:2,mb:3,border:"1px solid",borderColor:"error.main"},children:[m.jsx($v,{children:m.jsx(Ht,{component:"span",sx:{color:"error.main"},children:"Error"})}),m.jsx(jt,{variant:"body2",sx:{fontFamily:ii,whiteSpace:"pre-wrap"},children:e.error})]}),o.length>0&&m.jsxs(Ht,{sx:{borderRadius:2,p:2,mb:3,border:"1px solid",borderColor:"warning.main"},children:[m.jsx($v,{children:m.jsx(Ht,{component:"span",sx:{color:"warning.main"},children:"Refused sources"})}),m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{mb:1},children:"Not built, because materializing them would be unsafe. They serve live until the model changes."}),o.map(s=>m.jsxs(Ht,{sx:{mt:1},children:[m.jsx(jt,{variant:"body2",sx:{fontFamily:ii},children:s.name}),m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"pre-wrap"},children:s.message})]},s.name))]}),m.jsxs(Ht,{sx:{mb:3},children:[m.jsx($v,{children:"Build plan"}),a.length===0?m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"This package has no persist sources."}):m.jsxs(fg,{size:"small",children:[m.jsx(hg,{children:m.jsxs(Zs,{children:[m.jsx(Xn,{children:"Source"}),m.jsx(Xn,{children:"Connection"}),m.jsx(Xn,{children:"Dialect"}),m.jsx(Xn,{align:"right",children:"Columns"}),m.jsx(Xn,{children:"Source Entity ID"})]})}),m.jsx(pg,{children:a.map(s=>m.jsxs(Zs,{children:[m.jsx(Xn,{sx:{fontFamily:ii},children:s.name}),m.jsx(Xn,{sx:{fontFamily:ii},children:s.connectionName}),m.jsx(Xn,{children:s.dialect??"-"}),m.jsx(Xn,{align:"right",children:s.columns?.length??0}),m.jsx(Xn,{sx:{fontFamily:ii,fontSize:"0.75rem",wordBreak:"break-all",maxWidth:220},children:s.sourceEntityId})]},s.sourceID))})]})]}),m.jsx(Ffe,{entries:e.manifest?.entries,builtAt:e.manifest?.builtAt})]})]})})}function am({label:e,value:t}){return m.jsxs(Ht,{children:[m.jsx(jt,{variant:"caption",color:"text.secondary",display:"block",children:e}),m.jsx(jt,{variant:"body2",children:t})]})}const Ufe=sr(m.jsx("path",{d:"M6 6h12v12H6z"}));function _fe(e){return on("PrivateSwitchBase",e)}Kt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Vfe=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,_fe,t)},Hfe=Qe(rd,{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}}]}),Wfe=Qe("input",{name:"MuiSwitchBase",shouldForwardProp:Fa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),qfe=C.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:f,id:c,inputProps:h,inputRef:y,name:b,onBlur:v,onChange:x,onFocus:w,readOnly:S,required:M=!1,tabIndex:T,type:R,value:$,slots:P={},slotProps:N={},...V}=e,[F,W]=ui({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),_=mi(),k=pe=>{w&&w(pe),_&&_.onFocus&&_.onFocus(pe)},I=pe=>{v&&v(pe),_&&_.onBlur&&_.onBlur(pe)},z=pe=>{if(pe.nativeEvent.defaultPrevented)return;const oe=pe.target.checked;W(oe),x&&x(pe,oe)};let H=s;_&&typeof H>"u"&&(H=_.disabled);const A=R==="checkbox"||R==="radio",Z={...e,checked:F,disabled:H,disableFocusRipple:l,edge:u},K=Vfe(Z),te={slots:P,slotProps:{input:h,...N}},[X,Q]=ir("root",{ref:t,elementType:Hfe,className:K.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:Z,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:H,role:void 0,tabIndex:null}}),[ne,ie]=ir("input",{ref:y,elementType:Wfe,className:K.input,externalForwardedProps:te,getSlotProps:pe=>({...pe,onChange:oe=>{pe.onChange?.(oe),z(oe)}}),ownerState:Z,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:H,id:A?c:void 0,name:b,readOnly:S,required:M,tabIndex:T,type:R,...R==="checkbox"&&$===void 0?{}:{value:$}}});return m.jsxs(X,{...Q,children:[m.jsx(ne,{...ie}),F?o:f]})}),Yfe=sr(m.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"})),Gfe=sr(m.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"})),Kfe=sr(m.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 Qfe(e){return on("MuiCheckbox",e)}const rS=Kt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Xfe=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,Qfe,t);return{...t,...s}},Zfe=Qe(qfe,{shouldForwardProp:e=>Fa(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(pa()).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(pa()).map(([t])=>({props:{color:t},style:{[`&.${rS.checked}, &.${rS.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${rS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Jfe=m.jsx(Gfe,{}),epe=m.jsx(Yfe,{}),tpe=m.jsx(Kfe,{}),npe=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Jfe,color:o="primary",icon:a=epe,indeterminate:s=!1,indeterminateIcon:l=tpe,inputProps:u,size:f="medium",disableRipple:c=!1,className:h,slots:y={},slotProps:b={},...v}=n,x=s?l:a,w=s?l:r,S={...n,disableRipple:c,color:o,indeterminate:s,size:f},M=Xfe(S),T=b.input??u,[R,$]=ir("root",{ref:t,elementType:Zfe,className:Nt(M.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:b,...v},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:aI(typeof T=="function"?T(S):T,{"data-indeterminate":s})}}});return m.jsx(R,{...$,classes:M})});function rpe(e){return on("MuiFormControlLabel",e)}const ym=Kt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ope=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,rpe,t)},ape=Qe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ym.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,[`&.${ym.disabled}`]:{cursor:"default"},[`& .${ym.label}`]:{[`&.${ym.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}}]}))),ipe=Qe("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Vn(({theme:e})=>({[`&.${ym.error}`]:{color:(e.vars||e).palette.error.main}}))),spe=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:u,inputRef:f,label:c,labelPlacement:h="end",name:y,onChange:b,required:v,slots:x={},slotProps:w={},value:S,...M}=n,T=mi(),R=l??s.props.disabled??T?.disabled,$=v??s.props.required,P={disabled:R,required:$};["checked","name","onChange","value","inputRef"].forEach(z=>{typeof s.props[z]>"u"&&typeof n[z]<"u"&&(P[z]=n[z])});const N=hd({props:n,muiFormControl:T,states:["error"]}),V={...n,disabled:R,labelPlacement:h,required:$,error:N.error},F=ope(V),W={slots:x,slotProps:{...a,...w}},[_,k]=ir("typography",{elementType:br,externalForwardedProps:W,ownerState:V});let I=c;return I!=null&&I.type!==br&&!u&&(I=m.jsx(_,{component:"span",...k,className:Nt(F.label,k?.className),children:I})),m.jsxs(ape,{className:Nt(F.root,o),ownerState:V,ref:t,...M,children:[C.cloneElement(s,P),$?m.jsxs("div",{children:[I,m.jsxs(ipe,{ownerState:V,"aria-hidden":!0,className:F.asterisk,children:[" ","*"]})]}):I]})});function lpe({materialization:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),u=()=>a(!0),f=()=>{a(!1),l(!1),t()};return m.jsxs(an.Fragment,{children:[m.jsxs(qo,{"aria-label":`Delete materialization ${e?.id??""}`.trim(),onClick:c=>{c.stopPropagation(),u()},sx:{color:"error.main"},children:[m.jsx(Vk,{sx:{color:"inherit"},children:m.jsx(Zb,{fontSize:"small"})}),m.jsx(Hk,{children:"Delete"})]}),m.jsxs(aa,{open:o,onClose:f,title:"Delete materialization",actions:m.jsxs(m.Fragment,{children:[m.jsx(uo,{onClick:f,children:"Cancel"}),m.jsx(uo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>r(s),loading:n,children:"Delete run"})]}),children:[m.jsx(br,{variant:"body2",children:"Delete this run's record? This cannot be undone."}),m.jsx(spe,{control:m.jsx(npe,{checked:s,onChange:c=>l(c.target.checked)}),label:"Also drop the materialized tables this run produced"})]})]})}function cpe({materializations:e,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a}){return e.length===0?m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{py:1,fontStyle:"italic"},children:"No materializations yet."}):m.jsxs(fg,{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:[m.jsx(hg,{children:m.jsxs(Zs,{children:[m.jsx(Xn,{children:"Status"}),m.jsx(Xn,{children:"Trigger"}),m.jsx(Xn,{children:"Started"}),m.jsx(Xn,{children:"Duration"}),m.jsx(Xn,{children:"Sources"}),m.jsx(Xn,{align:"right",children:"Actions"})]})}),m.jsx(pg,{children:e.map(s=>m.jsx(upe,{materialization:s,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a},s.id))})]})}function upe({materialization:e,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a}){const[s,l]=C.useState(null),u=!!s,f=()=>l(null),c=Yk(e),h=c.sourcesBuilt!==void 0||c.sourcesReused!==void 0?GL(c,", "):"-",y=ub(e.status),b=Nfe(e.status),v=e.error??void 0,x=t&&(y||b);return m.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:[m.jsx(Xn,{children:m.jsxs(Ht,{sx:{display:"flex",alignItems:"center",gap:.5},children:[m.jsx(jt,{variant:"body2",sx:{fontWeight:500,color:$w(e.status)==="default"?"text.primary":`${$w(e.status)}.main`},children:YL(e.status)}),v&&m.jsx(_i,{title:v,children:m.jsx(sI,{fontSize:"small",color:"error"})})]})}),m.jsx(Xn,{children:m.jsx(QL,{meta:c})}),m.jsx(Xn,{children:zfe(e.startedAt??e.createdAt)}),m.jsx(Xn,{children:KL(e.startedAt,e.completedAt)}),m.jsx(Xn,{children:h}),m.jsx(Xn,{align:"right",onClick:w=>w.stopPropagation(),children:x&&m.jsxs(m.Fragment,{children:[m.jsx(Qr,{size:"small","aria-label":`Materialization actions for ${e.id??""}`.trim(),onClick:w=>l(w.currentTarget),children:m.jsx(Jb,{fontSize:"small"})}),m.jsxs(cd,{anchorEl:s,open:u,onClose:f,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[t&&y&&m.jsxs(ha,{"aria-label":`Stop materialization ${e.id??""}`.trim(),disabled:n,onClick:()=>{f(),r(e)},children:[m.jsx(pp,{children:m.jsx(Ufe,{fontSize:"small"})}),m.jsx(Gc,{children:"Stop"})]}),t&&b&&m.jsx(lpe,{materialization:e,isMutating:n,onCloseDialog:f,onDelete:w=>o(e,w)})]})]})})]})}const dpe=sr(m.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"})),fpe={package:"Materialized artifacts are shared across versions",version:"Materialized artifacts are per published version"};function ppe({scope:e,disabled:t,disabledReason:n,isSubmitting:r,onChange:o}){const[a,s]=C.useState(null),l=async u=>{s(null),u!==e&&await o(u).catch(()=>{})};return m.jsxs(m.Fragment,{children:[m.jsx(kg,{label:"Scope",icon:m.jsx(dpe,{}),onClick:u=>s(u.currentTarget),disabled:t||r,...n?{disabledReason:n}:{},ariaHasPopup:"menu",ariaLabel:`Scope: ${e}`}),m.jsx(cd,{anchorEl:a,open:!!a,onClose:()=>s(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:["package","version"].map(u=>m.jsxs(ha,{selected:u===e,onClick:()=>void l(u),children:[m.jsx(pp,{sx:{minWidth:32},children:u===e&&m.jsx(zue,{fontSize:"small"})}),m.jsx(Gc,{primary:u,secondary:fpe[u]})]},u))})]})}const hpe=sr([m.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"),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),OD="0 6 * * *";function mpe({currentSchedule:e,isSubmitting:t,disabled:n,disabledReason:r,onSubmit:o}){const[a,s]=C.useState(!1),[l,u]=C.useState(e??OD),f=()=>{u(e??OD),s(!0)},c=()=>s(!1),h=WL(l),y=async b=>{try{await o(b),s(!1)}catch{}};return m.jsxs(m.Fragment,{children:[m.jsx(kg,{label:"Schedule",icon:m.jsx(hpe,{}),onClick:f,disabled:n,...r?{disabledReason:r}:{},ariaHasPopup:"dialog",ariaLabel:e?"Edit schedule":"Set schedule"}),m.jsxs(aa,{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:m.jsxs(m.Fragment,{children:[e&&m.jsx(Go,{color:"error",loading:t,onClick:()=>y(null),sx:{mr:"auto"},children:"Clear schedule"}),m.jsx(Go,{onClick:c,children:"Cancel"}),m.jsx(Go,{variant:"contained",loading:t,disabled:!h.valid,onClick:()=>y(l.trim()),children:"Save schedule"})]}),children:[m.jsx(Oa,{autoFocus:!0,fullWidth:!0,size:"small",label:"Cron expression",value:l,onChange:b=>u(b.target.value),error:l.trim()!==""&&!h.valid,helperText:h.valid?`${h.description} · next run ${qL(h.nextRun)}`:h.error,slotProps:{htmlInput:{style:{fontFamily:ii}}}}),m.jsxs($c,{severity:"info",children:["A schedule runs only on version-scoped packages, so saving one sets ",m.jsx("code",{children:"scope: version"})," for this package."]})]})]})}const gpe=3e3;function ype({resourceUri:e}){const{apiClients:t,mutable:n}=zr(),r=dd(),{environmentName:o,packageName:a}=xo(e),[s,l]=C.useState(""),[u,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(z=>ub(z.status))?gpe:!1}),h=co({queryKey:["package",o,a],queryFn:()=>t.packages.getPackage(o,a)}),y=()=>r.invalidateQueries({queryKey:["materializations",o,a]}),b=Ws({mutationFn:Pl("materialization","create",I=>t.materializations.createMaterialization(o,a,{forceRefresh:I.forceRefresh})),onSuccess(){l("Materialization requested"),y()},onError(I){l(I.message),y()}}),v=Ws({mutationFn:Pl("materialization","update",I=>t.materializations.materializationAction(o,a,I.id,YG.Stop)),onSuccess(){l("Materialization stopped"),y()},onError(I){l(I.message)}}),x=Ws({mutationFn:Pl("materialization","delete",({materialization:I,dropTables:z})=>t.materializations.deleteMaterialization(o,a,I.id,z)),onSuccess(){l("Materialization deleted"),y()},onError(I){l(I.message)}}),w=h.data?.data,S=Ws({mutationFn:Pl("schedule","update",I=>t.packages.updatePackage(o,a,{name:a,description:w?.description,...I?{scope:qy.Version}:{},materialization:{schedule:I}})),onSuccess(I,z){l(z?"Schedule updated":"Schedule cleared"),r.invalidateQueries({queryKey:["package",o,a]})},onError(I){l(I.message)}}),M=Ws({mutationFn:Pl("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)}}),T=c.data?.data??[],R=T.find(I=>I.id===u)??null,$=T.some(I=>ub(I.status)),P=b.isPending||v.isPending||x.isPending,N=w?.materialization?.schedule??null,V=w?.scope===qy.Version?"version":"package",F=!!w?.manifestLocation,W=!!w?.materialization?.freshness,_=N?WL(N):null,k=F?"Control-plane managed: refresh is driven by the control plane, not the built-in scheduler.":[_?_.valid?`${_.description} (${N}), next run ${qL(_.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 m.jsxs(m.Fragment,{children:[m.jsxs(us,{title:"Materializations",count:c.isSuccess?T.length:void 0,action:n&&m.jsxs(fr,{direction:"row",spacing:1,alignItems:"center",children:[!F&&m.jsx(ppe,{scope:V,disabled:!!N,disabledReason:"A schedule requires version scope. Clear the schedule to change it.",isSubmitting:M.isPending,onChange:I=>M.mutateAsync(I==="version"?qy.Version:qy.Package)}),!F&&m.jsx(mpe,{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)}),m.jsx(jfe,{onSubmit:I=>b.mutateAsync(I),isSubmitting:b.isPending,disabled:$,disabledReason:"A materialization is already pending or running for this package."})]}),children:[h.isSuccess&&m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:k}),c.isError&&m.jsx(ma,{error:c.error,context:`${o} > ${a} > Materializations`}),!c.isSuccess&&!c.isError&&m.jsx(oa,{text:"Loading materializations..."}),c.isSuccess&&m.jsx(cpe,{materializations:T,mutable:n,isMutating:P,onStop:I=>v.mutate(I),onDelete:(I,z)=>x.mutate({materialization:I,dropTables:z}),onViewDetails:I=>f(I.id??null)})]}),m.jsx(Bfe,{materialization:R,buildPlan:h.data?.data?.buildPlan??null,onClose:()=>f(null)}),m.jsx(_b,{open:s!=="",autoHideDuration:6e3,onClose:()=>l(""),message:s})]})}const XL=sr(m.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"})),db=sr(m.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"})),vpe=sr(m.jsx("path",{d:"M8 5v14l11-7z"})),oS={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"}]}}},bpe={...oS,patterns:[...oS.patterns,{include:"#docvar"}],repository:{...oS.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},xpe={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"}]}}},Spe="github-light",wpe="github-dark";let aS;function Cpe(){return aS||(aS=(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"],...bpe},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...xpe}]})})()),aS}async function Dw(e,t,n="light"){return(await Cpe()).codeToHtml(e,{lang:t,theme:n==="dark"?wpe:Spe})}function ZL({open:e,onClose:t,result:n,title:r="Results",renderLogs:o,drill:a}){return m.jsx(aa,{open:e,onClose:t,title:r,maxWidth:!1,showClose:!0,children:m.jsx(Ht,{sx:{height:"70vh",overflow:"auto"},children:m.jsx(lk,{result:n,maxHeight:nee,maxResultSize:1e6,renderLogs:o,drill:a})})})}function kpe({queryName:e,annotations:t,resourceUri:n,runOnDemand:r=!1,maxResultSize:o=0}){const[a,s]=an.useState(),[l,u]=an.useState(!1),[f,c]=an.useState(!1),{packageName:h,environmentName:y,versionId:b,modelPath:v}=xo(n),x=!r||f,w=sk({environmentName:y,packageName:h,modelPath:v,versionId:b,queryName:e},{enabled:x}),S=w.data,{mode:M}=ol();return C.useEffect(()=>{if(t&&t.length>0){const T=t.map(R=>`// ${R}`).join(`
441
- `);Dw(T,"typescript",M).then(R=>{s(R)})}},[t,M]),m.jsxs(Ht,{children:[a&&m.jsx(Ht,{sx:{marginBottom:"16px"},children:m.jsx(jt,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:m.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:a}})})}),m.jsxs(Ht,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[m.jsx(jt,{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}),m.jsx(Bf,{"aria-label":"Expand results",onClick:()=>u(!0),children:m.jsx(db,{})})]}),m.jsxs(Of,{sx:{position:"relative"},children:[r&&!f&&m.jsxs(Ht,{sx:{padding:"40px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[m.jsx(jt,{variant:"body2",color:"text.secondary",children:"Click Run to execute the query"}),m.jsx(Go,{variant:"contained",startIcon:m.jsx(vpe,{}),onClick:()=>c(!0),children:"Run Query"})]}),x&&m.jsx(ck,{state:w,context:e,maxHeight:tee,maxResultSize:o})]}),m.jsx(ZL,{open:l,onClose:()=>u(!1),result:S?.data?.result||"",renderLogs:S?.data?.renderLogs,title:`Query: ${e}`})]})}function xme({onChange:e,resourceUri:t,runOnDemand:n=!1,maxResultSize:r=0,givens:o,onGivensChange:a}){const{modelPath:s}=xo(t),{data:l,isError:u,isLoading:f,error:c}=Fk(t),[h,y]=an.useState(!1),[b,v]=an.useState(),[x,w]=an.useState(0),[S,M]=C.useState(""),[T,R]=an.useState({}),$=o??T,P=a??(k=>R(k)),N=l?.modelDef,V=an.useMemo(()=>{if(!N)return!1;try{const k=JSON.parse(N);return Array.isArray(k.imports)&&k.imports.length>0}catch{return!1}},[N]);if(f)return m.jsx(oa,{text:"Fetching Model..."});if(u)return console.log("error",c),m.jsx(ma,{error:c,context:`Model > ${s}`});const F=k=>{v(k),e&&e(k)},W=k=>{w(k)},_=()=>{const k=window.location.href;navigator.clipboard.writeText(k).then(()=>M("URL copied to clipboard!")).catch(()=>M("Failed to copy URL"))};return m.jsxs(m.Fragment,{children:[m.jsxs(Ht,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(l?.sourceInfos)&&l.sourceInfos.length>0&&m.jsxs(fr,{spacing:2,component:"section",children:[m.jsxs(Ht,{sx:{padding:"0 0 16px 0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m.jsx(jt,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"}),m.jsx(_i,{title:"Click to copy link",children:m.jsx(XL,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer"},onClick:_})})]}),m.jsx(RL,{data:l,onChange:F,onSourceChange:W,existingQuery:b,initialSelectedSourceIndex:x,resourceUri:t,givens:$,onGivensChange:P}),m.jsx(Bf,{"aria-label":"Expand results",sx:{position:"absolute",top:"90px",right:"4px",zIndex:2},onClick:()=>y(!0),children:m.jsx(db,{})})]}),l?.queries?.length>0&&m.jsxs(fr,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[m.jsx(Ht,{sx:{padding:"0 0 16px 0"},children:m.jsx(jt,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),l.queries.map(k=>m.jsx(kpe,{queryName:k.name,annotations:k.annotations,resourceUri:t,runOnDemand:n,maxResultSize:r},k.name))]}),(!Array.isArray(l?.sourceInfos)||l.sourceInfos.length===0)&&!(l?.queries&&l.queries.length>0)&&m.jsxs(Ht,{sx:{textAlign:"center",py:6},children:[m.jsx(jt,{variant:"body1",sx:{color:"text.secondary",marginBottom:"8px"},children:"This model exposes no sources or queries."}),V&&m.jsxs(jt,{variant:"body2",color:"text.secondary",children:["It imports other files but re-exports nothing. Add"," ",m.jsxs("code",{children:["export ","{ source_name }"]})," to surface imported sources here."]})]}),m.jsx(Bk,{open:h,onClose:()=>y(!1),resourceUri:t,data:l,title:`Model: ${s.split("/").pop()}`,existingQuery:b,initialSelectedSourceIndex:x,onChange:F,onSourceChange:W,givens:$,onGivensChange:P})]}),m.jsx(_b,{open:S!=="",autoHideDuration:6e3,onClose:()=>M(""),message:S})]})}function Tpe({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 Mpe(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])}function Epe(e){return e.kind?e.kind==="query":e.type==="code"}const JL=e=>e.proseLines!==void 0;function Gk({text:e,proseLines:t}){return(e??"").split(`
442
- `).filter((n,r)=>!t?.some(([o,a])=>r>=o&&r<=a))}function Ope(e){if(JL(e)||e.caption!==void 0)return e.caption;const t=[];for(const n of Gk(e)){const r=n.trim();if(!r.startsWith("//")){if(!r.startsWith("#"))break;r.startsWith('#"')&&t.push(r.slice(2).trim())}}return t.length>0?t.join(" "):void 0}function Rpe(e){return JL(e)?Gk(e).join(`
443
- `):e.text.split(`
444
- `).filter(t=>!t.trimStart().startsWith("##")).join(`
445
- `)}function $pe(e){const t=e.codeLine!==void 0?(e.text.split(`
446
- `)[e.codeLine]??"").trim():Gk(e).map(o=>o.trim()).find(o=>o&&!o.startsWith("#")&&!o.startsWith("//"))??"",n=/^(source|query|given|type):?\s+([A-Za-z_]\w*)/.exec(t);if(n)return`${n[1]}: ${n[2]}`;const r=/^(import|export)\b/.exec(t);return r?r[1]:t}const Ppe=sr(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Dpe=sr(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Ape=sr(m.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"})),jpe=sr(m.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 Npe(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 Ipe({cell:e,hideCodeCellIcon:t,hideEmbeddingIcon:n,resourceUri:r,showCopyLink:o,maxResultSize:a,isExecuting:s,pendingRerun:l,onNavigate:u,onDrillSelf:f,canDrillSelf:c,onDrillNavigate:h,givens:y,givenSpecs:b}){const[v,x]=an.useState(!1),[w,S]=an.useState(!1),[M,T]=an.useState(!1),[R,$]=an.useState(),[P,N]=an.useState(),[V,F]=an.useState(!1),[W,_]=C.useState(!1),k=C.useId(),[I,z]=C.useState(""),{environmentName:H,packageName:A,modelPath:Z}=xo(r),K={environmentName:H,packageName:A,sourcePath:Z,onNavigate:u},{drill:te,drillMenu:X}=iI({onNavigate:h,onSelf:f,canSelf:c,selfLabel:"Filter this notebook"}),Q=/import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/,ne=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/,ie=!!e.text&&(Q.test(e.text)||ne.test(e.text)),pe=()=>{if(!e.newSources||e.newSources.length===0)return 0;let Te=[],ue="";if(e.text){const ke=e.text.match(Q);ke&&(Te=ke[1].split(",").map(ze=>ze.trim()));const Ge=e.text.match(ne);Ge&&(ue=Ge[1].trim())}for(let ke=0;ke<e.newSources.length;ke++)try{const Ge=JSON.parse(e.newSources[ke]);if(Te.length>0&&Te.includes(Ge.name)||ue&&ue===Ge.path)return ke}catch{continue}return 0},oe=an.useMemo(()=>e.newSources&&e.newSources.length>0?{sourceInfos:e.newSources,resource:r,givens:b}:void 0,[e.newSources,r,b]),ae=Npe({query:e.text,resourceUri:r}),{mode:ce}=ol();C.useEffect(()=>{e.type==="code"&&Dw(Rpe(e),"malloy",ce).then(Te=>{$(Te)})},[e,ce]),C.useEffect(()=>{Dw(ae,"typescript",ce).then(Te=>{N(Te)})},[ae,ce]);const me=e.kind==="query"?Ope(e):void 0,ye=e.markdown?m.jsx(Tm,{variant:"document",links:K,children:e.markdown}):null,we=()=>{const Te=window.location.href;navigator.clipboard.writeText(Te).then(()=>z("URL copied to clipboard!")).catch(()=>z("Failed to copy URL"))},Ce=m.jsxs(Kf,{open:v,onClose:()=>x(!1),maxWidth:"lg",fullWidth:!0,children:[m.jsxs(Xf,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",m.jsx(Qr,{onClick:()=>x(!1),sx:{color:"text.secondary"},children:m.jsx(tp,{})})]}),m.jsx(Qf,{children:m.jsx(Ht,{sx:Te=>({border:`1px solid ${Te.palette.divider}`,borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:Te.palette.background.paper,color:Te.palette.text.primary}),children:m.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:R}})})})]});return e.type==="markdown"&&m.jsx(Ht,{children:m.jsxs(Ht,{children:[o?m.jsxs(fr,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",children:[m.jsx(Tm,{variant:"document",links:K,children:e.text}),m.jsx(_i,{title:"Click to copy link",children:m.jsx(XL,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer",marginTop:"26px"},onClick:we})})]}):m.jsx(Tm,{variant:"document",links:K,children:e.text}),m.jsx(_b,{open:I!=="",autoHideDuration:6e3,onClose:()=>z(""),message:I})]})})||e.kind==="definition"&&m.jsxs(Ht,{children:[ye,m.jsxs(Ht,{component:"button",type:"button","aria-expanded":W,"aria-controls":k,onClick:()=>_(Te=>!Te),sx:{display:"flex",alignItems:"center",gap:"4px",p:0,border:0,background:"none",cursor:"pointer",fontFamily:"monospace",fontSize:"13px",color:"text.secondary"},children:[W?m.jsx(Dpe,{fontSize:"small"}):m.jsx(Ppe,{fontSize:"small"}),$pe(e)]}),W&&m.jsx(Of,{id:k,sx:{mt:1,padding:"12px 24px"},children:m.jsx("pre",{className:"code-display",style:{margin:0,overflow:"auto"},dangerouslySetInnerHTML:{__html:R??""}})})]})||e.type==="code"&&m.jsxs(Ht,{children:[ye,me&&m.jsx(jt,{variant:"body2",sx:{color:"text.secondary",mb:1},children:me}),(!t||!n&&e.result||e.newSources&&e.newSources.length>0)&&m.jsx(fr,{sx:{flexDirection:"column",gap:"8px",marginBottom:"2px"},children:e.newSources&&e.newSources.length>0&&m.jsx(Of,{sx:{position:"relative",padding:"0"},children:m.jsxs(Ht,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[R&&m.jsx("span",{dangerouslySetInnerHTML:{__html:R},style:{fontFamily:"monospace",fontSize:"14px",flex:1,marginRight:"8px"}}),ie&&m.jsx(Bf,{"aria-label":"Data sources",sx:{flexShrink:0},onClick:()=>F(!0),children:m.jsx(db,{})})]})})}),m.jsx(Bk,{open:V,onClose:()=>F(!1),title:"Data Sources",hasValidImport:ie,resourceUri:r,data:oe,initialSelectedSourceIndex:pe(),startingGivens:y}),Ce,m.jsxs(Kf,{open:w,onClose:()=>S(!1),maxWidth:"lg",fullWidth:!0,children:[m.jsxs(Xf,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",m.jsx(Qr,{onClick:()=>S(!1),sx:{color:"text.secondary"},children:m.jsx(tp,{})})]}),m.jsx(Qf,{children:m.jsxs(fr,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[m.jsx(jt,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:P}}),m.jsx(_i,{title:"Copy Embeddable Code",children:m.jsx(Qr,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"text.secondary"},onClick:()=>{navigator.clipboard.writeText(ae)},children:m.jsx(jpe,{})})})]})})]}),m.jsx(ZL,{open:M,onClose:()=>T(!1),result:e.result||"",title:"Results",drill:te}),s&&!e.result&&!e.error&&!ie&&!(e.newSources&&e.newSources.length>0)&&m.jsx(Of,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:m.jsx(cg,{size:32})}),!e.result&&e.error&&m.jsxs(Of,{sx:{p:2},children:[m.jsx(jt,{variant:"body2",sx:{color:"error.main"},children:"This cell could not be run."}),m.jsx(jt,{variant:"body2",component:"pre",sx:{color:"text.secondary",whiteSpace:"pre-wrap",m:0,mt:1},children:e.error})]}),e.result&&l&&m.jsx(s9,{"aria-label":"a re-run is pending",sx:{mb:1,height:2,borderRadius:1}}),e.result&&m.jsxs(Of,{sx:{position:"relative"},children:[m.jsx(Ht,{sx:{paddingTop:"24px"},children:m.jsx(lk,{result:e.result,maxHeight:eee,maxResultSize:a,drill:te})}),X,m.jsxs(fr,{sx:{position:"absolute",top:"-12px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!t&&m.jsx(Bf,{"aria-label":"Malloy code",onClick:Te=>{Te.stopPropagation(),x(!0)},children:m.jsx(Ape,{})}),m.jsx(Bf,{"aria-label":"Expand results",onClick:()=>T(!0),children:m.jsx(db,{})})]})]})]})}const Lpe=4,zpe=400;function Fpe(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 Bpe({resourceUri:e,maxResultSize:t=0,givens:n,onGivensChange:r,onNavigate:o,onDrillNavigate:a}){const{apiClients:s}=zr(),{environmentName:l,packageName:u,versionId:f,modelPath:c}=xo(e),{data:h,isSuccess:y,isError:b,error:v}=co({queryKey:[e],queryFn:async()=>(await s.notebooks.getNotebook(l,u,c,f)).data}),[x,w]=C.useState([]),[S,M]=C.useState(!1),[T,R]=C.useState(!1),$=C.useRef(void 0),[P,N]=C.useState(null),V=Mpe(h),F=h?.autorun!==!1,W=ZC({specs:V,loaded:y,startingValues:h?.startingGivens,params:n,onGivensChange:r,documentKey:e,autorun:F,environmentName:l,packageName:u,modelPath:c,versionId:f,documentName:c}),{applied:_,declaredTypes:k,canSelf:I,onSelf:z}=W,H=C.useCallback(ce=>{const me=bg(ce,k);return Object.keys(me).length>0?JSON.stringify(me):void 0},[k]),A=C.useMemo(()=>XC(_,k),[_,k]),Z=C.useRef(0),K=C.useRef(null),te=C.useRef(null),X=C.useRef(void 0);C.useEffect(()=>()=>{K.current?.abort(),te.current=null,clearTimeout(X.current?.timer),X.current=void 0},[]);const Q=C.useCallback(async(ce=new Map)=>{if(!y||!h?.notebookCells)return;const me=++Z.current;K.current?.abort();const ye=new AbortController;K.current=ye,w(h.notebookCells.map(Ce=>({...Ce}))),M(!0),N(null);const we=H(ce);try{const Ce=[];for(let ue=0;ue<h.notebookCells.length;ue++){const ke=h.notebookCells[ue];if(!Epe(ke))continue;const Ge=ue,ze=async()=>{try{const Ne=await s.notebooks.executeNotebookCell(l,u,c,Ge,f,void 0,void 0,we,{signal:ye.signal});if(Z.current!==me)return;const le=Ne.data,xt=le.result,Fe=ke.newSources||le.newSources;w(it=>{const ct=[...it];return ct[Ge]||(ct[Ge]={...ke}),ct[Ge]={...ct[Ge],result:xt,newSources:Fe},ct})}catch(Ne){if(ye.signal.aborted||Z.current!==me)return;console.error(`Error executing cell ${Ge}:`,Ne);const le=Fpe(Ne);w(xt=>{const Fe=[...xt];return Fe[Ge]||(Fe[Ge]={...ke}),Fe[Ge]={...Fe[Ge],error:le},Fe})}};Ce.push(ze)}const Te=[];for(const ue of Ce){const ke=ue().then(()=>{Te.splice(Te.indexOf(ke),1)});Te.push(ke),Te.length>=Lpe&&await Promise.race(Te)}await Promise.all(Te)}catch(Ce){if(ye.signal.aborted||Z.current!==me)return;console.error("Error executing notebook cells:",Ce),N(Ce)}finally{Z.current===me&&(M(!1),K.current=null)}},[y,h,H,l,u,c,f,s.notebooks]),ne=C.useRef(0),ie=C.useRef(void 0);ie.current!==h&&(ie.current=h,ne.current+=1);const pe=ne.current;C.useEffect(()=>{const ce=`${e}|${pe}`,me=`${ce}|${H(_)??""}`;$.current!==void 0&&$.current!==ce&&(K.current?.abort(),K.current=null),$.current=ce;const ye=Tpe({ready:y&&!!h?.notebookCells,lastRunKey:te.current,pendingKey:X.current?.key,runKey:me,documentKey:ce});if(ye.cancelPending&&(clearTimeout(X.current?.timer),X.current=void 0,R(!1)),ye.dispatch==="none")return;const we=()=>{X.current=void 0,R(!1),te.current=me,Q(_)};if(ye.dispatch==="now"){we();return}R(!0),X.current={key:me,timer:setTimeout(we,zpe)}},[y,h,pe,e,_,H,Q]);const oe=x.length>0?x:h?.notebookCells||[],ae=h?.format==="malloy"?oe.findIndex(ce=>ce.type==="markdown"):0;return m.jsx(sK,{children:m.jsx(lK,{children:m.jsxs(fr,{spacing:3,component:"section",children:[m.jsx(zk,{...W.panel}),!y&&!b&&m.jsx(oa,{text:"Fetching Notebook..."}),y&&oe.map((ce,me)=>m.jsx(Ipe,{cell:ce,showCopyLink:me===ae,resourceUri:e,maxResultSize:t,isExecuting:S,givens:A,givenSpecs:V,pendingRerun:T,onNavigate:o,onDrillNavigate:a,onDrillSelf:V.length>0?z:void 0,canDrillSelf:I},me)),b&&v.status===404&&m.jsxs(jt,{variant:"body2",sx:{color:"text.secondary"},children:[m.jsx("code",{children:`${l} > ${u} > ${c}`})," ","not found."]}),b&&v.status!==404&&m.jsx(ma,{error:v,context:`${l} > ${u} > ${c}`}),P&&m.jsx(ma,{error:{message:P.message,status:500,name:"ExecutionError"},context:"Notebook Execution"})]})})})}const Upe=sr(m.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 _pe(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)}function Vpe({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(`
447
- `)}function Hpe({open:e,environmentName:t,packageName:n,models:r,existing:o,onClose:a,onCreated:s}){const{apiClients:l}=zr(),[u,f]=C.useState(""),[c,h]=C.useState(""),[y,b]=C.useState(""),[v,x]=C.useState(!1),[w,S]=C.useState(!1),[M,T]=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 z=[];for(const H of I.sources)if(typeof H.name=="string")for(const A of H.views??[])typeof A.name=="string"&&z.push({source:H.name,view:A.name});z.length>0&&k.set(I.path,z)}return k},[R.data]),P=C.useMemo(()=>$.get(u)??[],[$,u]),N=P.find(k=>`${k.source}::${k.view}`===c);C.useEffect(()=>{if(!e)return;const k=[...$.keys()];u===""&&k.length>0&&f(k[0])},[e,$,u]),C.useEffect(()=>{!e||P.length===0||N===void 0&&h(`${P[0].source}::${P[0].view}`)},[e,P,N]),C.useEffect(()=>{!e||v||N===void 0||b(N.view.replace(/_/g," "))},[e,v,N]),C.useEffect(()=>{e||(f(""),h(""),b(""),x(!1),T(void 0))},[e]);const V=_pe(y),F=o.includes(V),W=N!==void 0&&V!==""&&!F,_=async()=>{if(!(!W||N===void 0)){S(!0),T(void 0);try{await l.models.updateModelSource(t,n,`dashboards/${V}.malloy`,{source:Vpe({title:y,modelPath:u,source:N.source,view:N.view})}),s(V)}catch(k){const I=k.response?.data?.message;T(I??(k instanceof Error?k.message:String(k)))}finally{S(!1)}}};return m.jsx(aa,{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:m.jsxs(m.Fragment,{children:[m.jsx(Go,{onClick:a,disabled:w,children:"Cancel"}),m.jsx(Go,{variant:"contained",disabled:!W||w,onClick:()=>void _(),children:"Create dashboard"})]}),children:m.jsxs(fr,{sx:{gap:2,pt:1},children:[R.isSuccess&&$.size===0&&m.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."}),m.jsx(Oa,{select:!0,size:"small",label:"Model",value:u,disabled:$.size===0,onChange:k=>{f(k.target.value),h("")},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=>m.jsx(ha,{value:k,children:k},k))}),m.jsx(Oa,{select:!0,size:"small",label:"First tile",value:N?c:"",disabled:P.length===0,onChange:k=>h(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=>m.jsxs(ha,{value:`${k.source}::${k.view}`,children:[k.source," → ",k.view]},`${k.source}::${k.view}`))}),m.jsx(Oa,{size:"small",label:"Title",value:y,onChange:k=>{x(!0),b(k.target.value)},inputProps:{"aria-label":"Dashboard title"},error:F,helperText:F?`dashboards/${V}.malloy already exists in this package.`:V?`Written as dashboards/${V}.malloy, and opened in the builder.`:"Names the file too."}),M&&m.jsx($c,{severity:"error",children:M})]})})}const Wpe={dashboard:_r.blue,report:_r.violet,model:_r.cyan,dataApp:_r.pink,data:_r.lime,materialization:_r.amber};function qpe({type:e,size:t=18,sx:n,...r}){return m.jsx(Jv,{...r,viewBox:"0 0 24 24",sx:{width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",...n},children:Ype[e]()})}const Ype={report:Gpe,model:Kpe,data:Qpe,materialization:Xpe,dataApp:Jpe,dashboard:Zpe};function Gpe(){return m.jsxs(m.Fragment,{children:[m.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"}),m.jsx("path",{d:"M14 3 v4 a2 2 0 0 0 2 2 h4"}),m.jsx("path",{d:"M8 17 v-3"}),m.jsx("path",{d:"M12 17 v-6"}),m.jsx("path",{d:"M16 17 v-4"})]})}function Kpe(){return m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M12 3 L4 7 v10 l8 4 l8 -4 V7 z"}),m.jsx("path",{d:"M4 7 l8 4 l8 -4"}),m.jsx("path",{d:"M12 11 v10"})]})}function Qpe(){return m.jsxs(m.Fragment,{children:[m.jsx("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"2"}),m.jsx("path",{d:"M3.5 9.5 H20.5"}),m.jsx("path",{d:"M9.5 3.5 V20.5"})]})}function Xpe(){return m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M12 3 L21 7.5 L12 12 L3 7.5 Z"}),m.jsx("path",{d:"M3 12 L12 16.5 L21 12"}),m.jsx("path",{d:"M3 16.5 L12 21 L21 16.5"})]})}function Zpe(){return m.jsxs(m.Fragment,{children:[m.jsx("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"2"}),m.jsx("path",{d:"M3.5 9.5 H20.5"}),m.jsx("path",{d:"M12 9.5 V20.5"}),m.jsx("path",{d:"M12 15 H20.5"})]})}function Jpe(){return m.jsxs(m.Fragment,{children:[m.jsx("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),m.jsx("path",{d:"M3.5 9.5 H20.5"}),m.jsx("path",{d:"M7 13.5 H17"}),m.jsx("path",{d:"M7 16.5 H13"})]})}const ehe="README.malloynb",the=e=>e?.toLowerCase()==="notebooks/readme.malloy",nhe=e=>/^notebooks\/([^/]+)\.malloy$/.exec(e??"")?.[1];function Sme({onClickPackageFile:e,resourceUri:t}){const{apiClients:n,server:r,mutable:o}=zr(),a=dd(),s=e??(Q=>{window.location.href=Q}),{environmentName:l,packageName:u,versionId:f}=xo(t),[c,h]=C.useState(null),[y,b]=C.useState(!1),v=que()?.documentStorage,[x,w]=C.useState([]),S=`${l}/${u}/dashboards/`,M=C.useCallback(async()=>{if(!v)return;const Q=await v.listWorkspaces(!0),ne=[];for(const ie of Q)for(const pe of await v.listDocuments(ie,"dashboard"))pe.path.startsWith(S)&&ne.push({locator:pe,where:ie.description});w(ne)},[v,S]);C.useEffect(()=>{M()},[M]);const T=Q=>Q.path.slice(S.length).replace(/\.malloy$/,""),R=co({queryKey:["package",l,u,f],queryFn:()=>n.packages.getPackage(l,u,f,!1)}),$=co({queryKey:["notebooks",l,u,f],queryFn:()=>n.notebooks.listNotebooks(l,u,f)}),P=co({queryKey:["models",l,u,f],queryFn:()=>n.models.listModels(l,u,f)}),N=co({queryKey:["databases",l,u,f],queryFn:()=>n.databases.listDatabases(l,u,f)}),V=co({queryKey:["data-apps",l,u],queryFn:async()=>{try{return await n.dataApps.listDataApps(l,u)}catch(Q){const ne=Q?.response?.status;if(ne===404||ne===void 0)return{data:[]};throw Q}}}).data?.data??[],F=co({queryKey:["dashboards",l,u,f],queryFn:async()=>{try{return await n.dashboards.listDashboards(l,u,f)}catch(Q){const ne=Q?.response?.status;if(ne===404||ne===void 0)return{data:[]};throw Q}}}),W=Q=>Q.title&&Q.title!==Q.name?Q.title:Q.name??"",_=Q=>Q.title&&Q.title!==Q.path?Q.title:Q.path??"",k=(F.data?.data??[]).slice().sort((Q,ne)=>W(Q).localeCompare(W(ne))),I=($.data?.data??[]).slice().sort((Q,ne)=>_(Q).localeCompare(_(ne))),z=new Set(k.map(Q=>Q.path).filter(Q=>Q!==void 0)),H=(P.data?.data??[]).slice().filter(Q=>!z.has(Q.path)).sort((Q,ne)=>Q.path.localeCompare(ne.path)),A=(N.data?.data??[]).slice().sort((Q,ne)=>Q.path.localeCompare(ne.path)),Z=R.data?.data?.description??"",K=(I.find(Q=>Q.path===ehe)??I.find(Q=>the(Q.path)))?.path,te=f0({environmentName:l,packageName:u,versionId:f,modelPath:K}),X=!$.isSuccess&&!$.isError||!F.isSuccess&&!F.isError;return R.isError?m.jsx(ma,{error:R.error,context:`${l} > ${u}`}):m.jsxs(TC,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:3,py:6},children:[m.jsxs(Ht,{sx:{mb:4},children:[m.jsx(jL,{label:l,onClick:Q=>s(`/${l}/`,Q)}),m.jsx(jt,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:u}),Z&&m.jsx(jt,{variant:"body2",color:"text.secondary",children:Z})]}),X&&m.jsx(oa,{text:"Loading package..."}),m.jsx(Hpe,{open:y,environmentName:l,packageName:u,models:H.map(Q=>Q.path).filter(Q=>typeof Q=="string"&&Q.endsWith(".malloy")&&!Q.startsWith("dashboards/")),existing:k.map(Q=>Q.name).filter(Q=>typeof Q=="string"),onClose:()=>b(!1),onCreated:Q=>{b(!1),a.invalidateQueries({queryKey:["dashboards"]}),s(`/${l}/${u}/dashboards/${encodeURIComponent(Q)}/edit`)}}),!X&&m.jsxs(m.Fragment,{children:[F.isError&&m.jsx(Ht,{sx:{mb:4},children:m.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)&&m.jsxs(us,{title:"Dashboards",count:k.length,action:o?m.jsx(Cg,{label:"Dashboard",onClick:()=>b(!0)}):void 0,children:[k.length===0&&m.jsx(iS,{label:"No dashboards yet"}),k.map(Q=>{const ne=!!Q.title&&Q.title!==Q.name;return m.jsx(kf,{type:"dashboard",label:ne?Q.title:Q.name,rightLabel:ne?Q.name:void 0,onClick:ie=>s(`/${l}/${u}/dashboards/`+encodeURIComponent(Q.name??""),ie)},Q.name)})]}),x.length>0&&m.jsx(us,{title:"Drafts",count:x.length,children:x.map(({locator:Q,where:ne})=>m.jsx(kf,{type:"dashboard",label:T(Q),rightLabel:ne,onClick:ie=>s(`/${l}/${u}/dashboards/${encodeURIComponent(T(Q))}/edit`,ie),trailingAction:m.jsx(_i,{title:"Delete this draft",children:m.jsx(Qr,{size:"small","aria-label":`Delete draft ${T(Q)}`,onClick:ie=>{ie.stopPropagation(),v?.deleteDocument(Q).then(M)},children:m.jsx(Upe,{fontSize:"small"})})})},Q.path))}),I.length>0&&m.jsx(us,{title:"Notebooks",count:I.length,children:I.map(Q=>{const ne=!!Q.title&&Q.title!==Q.path,ie=nhe(Q.path);return m.jsx(kf,{type:"report",label:ne?Q.title:Q.path,rightLabel:ne?Q.path:void 0,onClick:pe=>s(ie===void 0?`/${l}/${u}/${Q.path}`:`/${l}/${u}/notebooks/${encodeURIComponent(ie)}`,pe)},Q.path)})}),V.length>0&&m.jsx(us,{title:"Data Apps",count:V.length,children:V.map(Q=>{const ne=!!Q.title&&Q.title!==Q.path,ie=`${IL(r)}${Q.resource}`;return m.jsx(kf,{type:"dataApp",label:ne?Q.title:Q.path,rightLabel:ne?Q.path:void 0,onClick:pe=>{e?e(`/${l}/${u}/data-apps/${Q.path}`,pe):pe&&(pe.metaKey||pe.ctrlKey)?window.open(ie,"_blank"):window.location.href=ie},trailingAction:m.jsx(_i,{title:"Open standalone in new tab",children:m.jsx(Qr,{size:"small",href:ie,target:"_blank",rel:"noopener noreferrer","aria-label":"Open standalone in new tab",onClick:pe=>pe.stopPropagation(),sx:{color:"text.secondary"},children:m.jsx(NL,{fontSize:"small"})})})},Q.path)})}),m.jsxs(us,{title:"Semantic Models",count:H.length,children:[H.map(Q=>m.jsx(kf,{type:"model",label:Q.path,onClick:ne=>s(`/${l}/${u}/${Q.path}`,ne)},Q.path)),H.length===0&&m.jsx(iS,{label:"No models"})]}),m.jsxs(us,{title:"Package Data",count:A.length,children:[A.map(Q=>m.jsx(kf,{type:"data",label:Q.path,rightLabel:Q.info?rhe(Q.info.rowCount):"Unreadable",onClick:()=>h(Q)},Q.path)),A.length===0&&m.jsx(iS,{label:"No data files"})]}),m.jsx(ype,{resourceUri:t}),K&&m.jsx(Ht,{sx:{mt:6},children:m.jsx(Bpe,{resourceUri:te,onNavigate:s})})]}),m.jsxs(aa,{open:c!==null,onClose:()=>h(null),title:c?.path??"Columns",showClose:!0,children:[c?.error&&m.jsx(jt,{variant:"body2",color:"error",children:c.error}),c?.info?.columns&&m.jsxs(fg,{size:"small",children:[m.jsx(hg,{children:m.jsxs(Zs,{children:[m.jsx(Xn,{children:"Column"}),m.jsx(Xn,{children:"Type"})]})}),m.jsx(pg,{children:c.info.columns.map(Q=>m.jsxs(Zs,{children:[m.jsx(Xn,{component:"th",scope:"row",children:Q.name}),m.jsx(Xn,{children:Q.type})]},Q.name))})]})]})]})}function kf({type:e,label:t,rightLabel:n,onClick:r,trailingAction:o}){return m.jsx(T0,{icon:m.jsx(qpe,{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 iS({label:e}){return m.jsx(jt,{variant:"body2",color:"text.secondary",sx:{py:1,fontStyle:"italic"},children:e})}function rhe(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 ohe{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:ahe(a);s&&(n===void 0||s.type===n)&&r.push(s)}return r}async getDocument(t){const n=localStorage.getItem(im(t));if(n===null)throw RD(t);return n}async saveDocument(t,n){localStorage.setItem(im(t),n)}async deleteDocument(t){const n=im(t);if(localStorage.getItem(n)===null)throw RD(t);localStorage.removeItem(n)}async moveDocument(t,n){const r=await this.getDocument(t);localStorage.setItem(im(n),r),localStorage.removeItem(im(t))}}function im(e){return`${jw}${e.type}:${e.path}`}function ahe(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 RD(e){return new PL(`No ${e.type} at ${e.workspace}/${e.path}`)}const $D="[publisher.dashboard]",PD="[publisher.console]";function wme(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($D,r):console.info($D,r)}}function ihe(e){const t={...e,at:new Date().toISOString()};e.ok?console.info(PD,t):console.warn(PD,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"}}},Cme='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',lv='"Inter", "Helvetica Neue", "Arial", sans-serif',Wo={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},kme={headerHeight:56},sS="0 1px 3px rgba(0, 0, 0, 0.1)",she="#0f172a",lhe="#1e293b",che="#f1f5f9",uhe="#cbd5e1",dhe="#334155",ez=(e="light")=>{const t=e==="dark",n=t?she:Co.white,r=t?lhe:Co.white,o=t?che:Co.black,a=t?uhe:Co.grey.mid,s=t?dhe:Co.grey.light,l=t?"#60a5fa":_r.blue,u=t?"#93c5fd":"#1d4ed8",f=t?"#0f172a":"#ffffff";return Db({cssVariables:{nativeColor:!0},palette:{mode:e,primary:{main:l,light:Co.grey.light,dark:u,contrastText:f},secondary:{main:Co.grey.mid,light:Co.grey.light,dark:Co.black},grey:Wo,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:lv,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":`${Wo[300]} ${Wo[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:t?"#1e293b":Wo[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:t?"#475569":Wo[300],borderRadius:"4px","&:hover":{background:t?"#64748b":Wo[400]}},"&::-webkit-scrollbar-corner":{background:t?"#1e293b":Wo[100]}},"div[data-radix-popper-content-wrapper]":{zIndex:"1300 !important"}}},MuiButton:{styleOverrides:{root:{borderRadius:20,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:sS}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},"&.Mui-disabled":{backgroundColor:t?"rgba(255, 255, 255, 0.06)":Wo[200],color:t?"#64748b":Wo[500]}},outlined:{color:o,borderColor:t?"#475569":Wo[300],"&:hover":{borderColor:t?"#64748b":Wo[400],backgroundColor:t?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.04)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:sS,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)"}}}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,backgroundColor:r,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:lv,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 ${t?Wo[600]:Wo[300]}`,borderRadius:8,transition:"border-color 120ms ease-in",backgroundColor:r,"&:hover":{borderColor:t?"#64748b":Wo[400]},"&.Mui-focused":{borderColor:t?Wo[400]:Wo[500],outline:"none"}}}},MuiMenuItem:{styleOverrides:{root:{fontFamily:lv,fontSize:"0.875rem"}}},MuiInputBase:{styleOverrides:{root:{fontFamily:lv}}},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:Wo[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:sS}}}}})};ez("light");function fhe({children:e}){const{mode:t}=ol(),n=C.useMemo(()=>ez(t),[t]);return m.jsxs(DU,{theme:n,children:[m.jsx(P8,{}),e]})}const phe=C.lazy(()=>Lo(()=>import("./HomePage-Bvka32On.js"),[])),hhe=C.lazy(()=>Lo(()=>import("./MainPage-COYTYOjz.js"),__vite__mapDeps([9,10]))),mhe=C.lazy(()=>Lo(()=>import("./ModelPage-Bgd6aix7.js"),[])),ghe=C.lazy(()=>Lo(()=>import("./PackagePage-dTZ47Ovr.js"),[])),yhe=C.lazy(()=>Lo(()=>import("./EnvironmentPage-CqhWacr8.js"),[])),vhe=C.lazy(()=>Lo(()=>import("./RouteError-eVUmHlyg.js"),[])),bhe=C.lazy(()=>Lo(()=>import("./ThemeEditorPage-BMUZ6xO_.js"),__vite__mapDeps([11,10,12]))),xhe=(e="/",t=new ohe,n)=>($de(ihe),T4([{path:e,element:m.jsx(xK,{children:m.jsx(Wue,{documentStorage:t,children:m.jsx(fhe,{children:m.jsx(C.Suspense,{fallback:m.jsx(oa,{}),children:m.jsx(hhe,{headerProps:n})})})})}),errorElement:m.jsx(vhe,{}),children:[{index:!0,element:m.jsx(phe,{})},{path:"settings/theme",element:m.jsx(bhe,{})},{path:"settings",element:m.jsx(e4,{to:"/settings/theme",replace:!0})},{path:":environmentName",element:m.jsx(yhe,{})},{path:":environmentName/:packageName",element:m.jsx(ghe,{})},{path:":environmentName/:packageName/*",element:m.jsx(mhe,{})}]}])),She=xhe("/");k5.createRoot(document.getElementById("root")).render(m.jsx(C.StrictMode,{children:m.jsx(z4,{router:She})}));export{kc as $,Dn as A,Xu as B,tt as C,yj as D,ga as E,Ys as F,ol as G,_i as H,Qr as I,ng as J,tl as K,Che as L,bme as M,Ht as N,uj as O,La as P,$C as Q,Dm as R,wS as S,jt as T,zr as U,Yj as V,xj as W,pp as X,Gc as Y,kme as Z,khe as _,Ia as a,gee as a$,oa as a0,vme as a1,wme as a2,jL as a3,ome as a4,kg as a5,hme as a6,f0 as a7,Lo as a8,fr as a9,lI as aA,ame as aB,cme as aC,ime as aD,lme as aE,ZJ as aF,sme as aG,Rc as aH,gb as aI,hi as aJ,RK as aK,DD as aL,Yue as aM,YP as aN,ude as aO,Que as aP,xo as aQ,que as aR,co as aS,ume as aT,ma as aU,zue as aV,ode as aW,Gue as aX,ik as aY,Bc as aZ,mee as a_,an as aa,Bpe as ab,gme as ac,xme as ad,hde as ae,Cme as af,p9 as ag,Sme as ah,yme as ai,qF as aj,TC as ak,t2 as al,Oa as am,P9 as an,SN as ao,MR as ap,ha as aq,dd as ar,rY as as,$c as at,e8 as au,o8 as av,_b as aw,aa as ax,Go as ay,fK as az,sn as b,k8 as b0,EC as b1,Oj as b2,ZC as b3,j$ as b4,JJ as b5,A$ as b6,zk as b7,dme as b8,Uk as b9,DL as ba,qP as bb,fme as bc,ede as bd,nde as be,pme as bf,sr as bg,IH as bh,Xue as bi,Bm as bj,Ir as bk,whe as bl,za as c,cn as d,vS as e,mme as f,XB as g,un as h,zs as i,m as j,Pt as k,ln as l,Jt as m,Wc as n,nl as o,po as p,ld as q,C as r,ot as s,Nl as t,tC as u,HA as v,KA as w,Bv as x,lg as y,WA as z};