@malloy-publisher/server 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.docker.md +14 -0
- package/dist/app/api-doc.yaml +414 -98
- package/dist/app/assets/EnvironmentPage-uo3igcP9.js +1 -0
- package/dist/app/assets/{HomePage-D3MvQaZn.js → HomePage-0OQVchl4.js} +1 -1
- package/dist/app/assets/MainPage-D4SOACdm.js +1 -0
- package/dist/app/assets/ModelPage-B5CpdEDl.js +2 -0
- package/dist/app/assets/PackagePage-BzUfTQKy.js +1 -0
- package/dist/app/assets/RenderedResult-DwB0-9Yx.es-1MzhmBXH.js +141 -0
- package/dist/app/assets/{RouteError-BQnzPJvb.js → RouteError-BXcrPjvD.js} +1 -1
- package/dist/app/assets/ThemeEditorPage-FpYg5NPt.js +1 -0
- package/dist/app/assets/{ToggleButtonGroup-CJT2JKTC.js → ToggleButtonGroup-Vkkjsbxx.js} +1 -1
- package/dist/app/assets/documentRoutes-BWHzvbNO.js +1 -0
- package/dist/app/assets/index-BZEvIUf-.js +484 -0
- package/dist/app/assets/index-CprgMbE_.js +1 -0
- package/dist/app/assets/{index-ufFZR_K-.js → index-DFvJYp4Q.js} +7 -7
- package/dist/app/assets/index-NVPzfbUZ.js +1317 -0
- package/dist/app/assets/{index-ireHUsv_.js → index-sKcoT1e_.js} +422 -427
- package/dist/app/assets/index.es-D2Ts8adM.js +195 -0
- package/dist/app/index.html +1 -1
- package/dist/package_load_worker.mjs +801 -80
- package/dist/server.mjs +21707 -17510
- package/package.json +15 -15
- package/dist/app/assets/EnvironmentPage-UMS7Py4Q.js +0 -1
- package/dist/app/assets/LightMode-e1lNBfpL.js +0 -1
- package/dist/app/assets/MainPage-B0ozqtQO.js +0 -2
- package/dist/app/assets/ModelPage-lQj4Axqu.js +0 -2
- package/dist/app/assets/PackagePage-BT0YKNKU.js +0 -1
- package/dist/app/assets/RenderedResult-BRgIgxWh.es-DiE7kPNX.js +0 -136
- package/dist/app/assets/ThemeEditorPage-D6t7w9Js.js +0 -1
- package/dist/app/assets/index-ByieDZlo.js +0 -23
- package/dist/app/assets/index-CCNqF0-G.js +0 -1
- package/dist/app/assets/index-CKmZ4HG7.js +0 -1322
- package/dist/app/assets/index-CdExa3Pk.js +0 -1
- package/dist/app/assets/index-TiWjmdoW.js +0 -450
- package/dist/app/assets/index.es-iUV0gCYk.js +0 -111
- package/dist/sshcrypto-cqb52edz.node +0 -0
|
@@ -1,450 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-ufFZR_K-.js","assets/index-CKmZ4HG7.js","assets/index-ByieDZlo.js","assets/index-CRAwrhYM.js","assets/index-CCNqF0-G.js","assets/index-CdExa3Pk.js","assets/index-ireHUsv_.js","assets/core-B8oMW4sm.es-hOkwvru5.js","assets/engine-oniguruma-C4vnmooL.es-jdkXmgTr.js","assets/MainPage-B0ozqtQO.js","assets/LightMode-e1lNBfpL.js","assets/ThemeEditorPage-D6t7w9Js.js","assets/ToggleButtonGroup-CJT2JKTC.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function EF(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 $ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var CS={exports:{}},Nh={};/**
|
|
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 mO;function RF(){if(mO)return Nh;mO=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 Nh.Fragment=t,Nh.jsx=n,Nh.jsxs=n,Nh}var gO;function OF(){return gO||(gO=1,CS.exports=RF()),CS.exports}var m=OF(),kS={exports:{}},Hn={};/**
|
|
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 yO;function MF(){if(yO)return Hn;yO=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"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.iterator;function y(Z){return Z===null||typeof Z!="object"?null:(Z=h&&Z[h]||Z["@@iterator"],typeof Z=="function"?Z:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function w(Z,K,ne){this.props=Z,this.context=K,this.refs=x,this.updater=ne||v}w.prototype.isReactComponent={},w.prototype.setState=function(Z,K){if(typeof Z!="object"&&typeof Z!="function"&&Z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Z,K,"setState")},w.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};function b(){}b.prototype=w.prototype;function T(Z,K,ne){this.props=Z,this.context=K,this.refs=x,this.updater=ne||v}var E=T.prototype=new b;E.constructor=T,S(E,w.prototype),E.isPureReactComponent=!0;var M=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},D=Object.prototype.hasOwnProperty;function I(Z,K,ne,le,fe,ae){return ne=ae.ref,{$$typeof:e,type:Z,key:K,ref:ne!==void 0?ne:null,props:ae}}function A(Z,K){return I(Z.type,K,void 0,void 0,void 0,Z.props)}function _(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function W(Z){var K={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(ne){return K[ne]})}var V=/\/+/g;function k(Z,K){return typeof Z=="object"&&Z!==null&&Z.key!=null?W(""+Z.key):K.toString(36)}function z(){}function F(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status=="string"?Z.then(z,z):(Z.status="pending",Z.then(function(K){Z.status==="pending"&&(Z.status="fulfilled",Z.value=K)},function(K){Z.status==="pending"&&(Z.status="rejected",Z.reason=K)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function H(Z,K,ne,le,fe){var ae=typeof Z;(ae==="undefined"||ae==="boolean")&&(Z=null);var se=!1;if(Z===null)se=!0;else switch(ae){case"bigint":case"string":case"number":se=!0;break;case"object":switch(Z.$$typeof){case e:case t:se=!0;break;case u:return se=Z._init,H(se(Z._payload),K,ne,le,fe)}}if(se)return fe=fe(Z),se=le===""?"."+k(Z,0):le,M(fe)?(ne="",se!=null&&(ne=se.replace(V,"$&/")+"/"),H(fe,K,ne,"",function(me){return me})):fe!=null&&(_(fe)&&(fe=A(fe,ne+(fe.key==null||Z&&Z.key===fe.key?"":(""+fe.key).replace(V,"$&/")+"/")+se)),K.push(fe)),1;se=0;var ie=le===""?".":le+":";if(M(Z))for(var pe=0;pe<Z.length;pe++)le=Z[pe],ae=ie+k(le,pe),se+=H(le,K,ne,ae,fe);else if(pe=y(Z),typeof pe=="function")for(Z=pe.call(Z),pe=0;!(le=Z.next()).done;)le=le.value,ae=ie+k(le,pe++),se+=H(le,K,ne,ae,fe);else if(ae==="object"){if(typeof Z.then=="function")return H(F(Z),K,ne,le,fe);throw K=String(Z),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return se}function N(Z,K,ne){if(Z==null)return Z;var le=[],fe=0;return H(Z,le,"","",function(ae){return K.call(ne,ae,fe++)}),le}function X(Z){if(Z._status===-1){var K=Z._result;K=K(),K.then(function(ne){(Z._status===0||Z._status===-1)&&(Z._status=1,Z._result=ne)},function(ne){(Z._status===0||Z._status===-1)&&(Z._status=2,Z._result=ne)}),Z._status===-1&&(Z._status=0,Z._result=K)}if(Z._status===1)return Z._result.default;throw Z._result}var Q=typeof reportError=="function"?reportError:function(Z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z=="object"&&Z!==null&&typeof Z.message=="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Z);return}console.error(Z)};function te(){}return Hn.Children={map:N,forEach:function(Z,K,ne){N(Z,function(){K.apply(this,arguments)},ne)},count:function(Z){var K=0;return N(Z,function(){K++}),K},toArray:function(Z){return N(Z,function(K){return K})||[]},only:function(Z){if(!_(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}},Hn.Component=w,Hn.Fragment=n,Hn.Profiler=o,Hn.PureComponent=T,Hn.StrictMode=r,Hn.Suspense=c,Hn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Hn.__COMPILER_RUNTIME={__proto__:null,c:function(Z){return $.H.useMemoCache(Z)}},Hn.cache=function(Z){return function(){return Z.apply(null,arguments)}},Hn.cloneElement=function(Z,K,ne){if(Z==null)throw Error("The argument must be a React element, but you passed "+Z+".");var le=S({},Z.props),fe=Z.key,ae=void 0;if(K!=null)for(se in K.ref!==void 0&&(ae=void 0),K.key!==void 0&&(fe=""+K.key),K)!D.call(K,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&K.ref===void 0||(le[se]=K[se]);var se=arguments.length-2;if(se===1)le.children=ne;else if(1<se){for(var ie=Array(se),pe=0;pe<se;pe++)ie[pe]=arguments[pe+2];le.children=ie}return I(Z.type,fe,void 0,void 0,ae,le)},Hn.createContext=function(Z){return Z={$$typeof:s,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null},Z.Provider=Z,Z.Consumer={$$typeof:a,_context:Z},Z},Hn.createElement=function(Z,K,ne){var le,fe={},ae=null;if(K!=null)for(le in K.key!==void 0&&(ae=""+K.key),K)D.call(K,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(fe[le]=K[le]);var se=arguments.length-2;if(se===1)fe.children=ne;else if(1<se){for(var ie=Array(se),pe=0;pe<se;pe++)ie[pe]=arguments[pe+2];fe.children=ie}if(Z&&Z.defaultProps)for(le in se=Z.defaultProps,se)fe[le]===void 0&&(fe[le]=se[le]);return I(Z,ae,void 0,void 0,null,fe)},Hn.createRef=function(){return{current:null}},Hn.forwardRef=function(Z){return{$$typeof:l,render:Z}},Hn.isValidElement=_,Hn.lazy=function(Z){return{$$typeof:u,_payload:{_status:-1,_result:Z},_init:X}},Hn.memo=function(Z,K){return{$$typeof:f,type:Z,compare:K===void 0?null:K}},Hn.startTransition=function(Z){var K=$.T,ne={};$.T=ne;try{var le=Z(),fe=$.S;fe!==null&&fe(ne,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(te,Q)}catch(ae){Q(ae)}finally{$.T=K}},Hn.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},Hn.use=function(Z){return $.H.use(Z)},Hn.useActionState=function(Z,K,ne){return $.H.useActionState(Z,K,ne)},Hn.useCallback=function(Z,K){return $.H.useCallback(Z,K)},Hn.useContext=function(Z){return $.H.useContext(Z)},Hn.useDebugValue=function(){},Hn.useDeferredValue=function(Z,K){return $.H.useDeferredValue(Z,K)},Hn.useEffect=function(Z,K,ne){var le=$.H;if(typeof ne=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return le.useEffect(Z,K)},Hn.useId=function(){return $.H.useId()},Hn.useImperativeHandle=function(Z,K,ne){return $.H.useImperativeHandle(Z,K,ne)},Hn.useInsertionEffect=function(Z,K){return $.H.useInsertionEffect(Z,K)},Hn.useLayoutEffect=function(Z,K){return $.H.useLayoutEffect(Z,K)},Hn.useMemo=function(Z,K){return $.H.useMemo(Z,K)},Hn.useOptimistic=function(Z,K){return $.H.useOptimistic(Z,K)},Hn.useReducer=function(Z,K,ne){return $.H.useReducer(Z,K,ne)},Hn.useRef=function(Z){return $.H.useRef(Z)},Hn.useState=function(Z){return $.H.useState(Z)},Hn.useSyncExternalStore=function(Z,K,ne){return $.H.useSyncExternalStore(Z,K,ne)},Hn.useTransition=function(){return $.H.useTransition()},Hn.version="19.1.1",Hn}var vO;function iC(){return vO||(vO=1,kS.exports=MF()),kS.exports}var C=iC();const un=TA(C),rp=EF({__proto__:null,default:un},[C]);var TS={exports:{}},Ih={},ES={exports:{}},RS={};/**
|
|
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 bO;function $F(){return bO||(bO=1,(function(e){function t(N,X){var Q=N.length;N.push(X);e:for(;0<Q;){var te=Q-1>>>1,Z=N[te];if(0<o(Z,X))N[te]=X,N[Q]=Z,Q=te;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var X=N[0],Q=N.pop();if(Q!==X){N[0]=Q;e:for(var te=0,Z=N.length,K=Z>>>1;te<K;){var ne=2*(te+1)-1,le=N[ne],fe=ne+1,ae=N[fe];if(0>o(le,Q))fe<Z&&0>o(ae,le)?(N[te]=ae,N[fe]=Q,te=fe):(N[te]=le,N[ne]=Q,te=ne);else if(fe<Z&&0>o(ae,Q))N[te]=ae,N[fe]=Q,te=fe;else break e}}return X}function o(N,X){var Q=N.sortIndex-X.sortIndex;return Q!==0?Q:N.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],f=[],u=1,h=null,y=3,v=!1,S=!1,x=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function M(N){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=N)r(f),X.sortIndex=X.expirationTime,t(c,X);else break;X=n(f)}}function $(N){if(x=!1,M(N),!S)if(n(c)!==null)S=!0,D||(D=!0,k());else{var X=n(f);X!==null&&H($,X.startTime-N)}}var D=!1,I=-1,A=5,_=-1;function W(){return w?!0:!(e.unstable_now()-_<A)}function V(){if(w=!1,D){var N=e.unstable_now();_=N;var X=!0;try{e:{S=!1,x&&(x=!1,T(I),I=-1),v=!0;var Q=y;try{t:{for(M(N),h=n(c);h!==null&&!(h.expirationTime>N&&W());){var te=h.callback;if(typeof te=="function"){h.callback=null,y=h.priorityLevel;var Z=te(h.expirationTime<=N);if(N=e.unstable_now(),typeof Z=="function"){h.callback=Z,M(N),X=!0;break t}h===n(c)&&r(c),M(N)}else r(c);h=n(c)}if(h!==null)X=!0;else{var K=n(f);K!==null&&H($,K.startTime-N),X=!1}}break e}finally{h=null,y=Q,v=!1}X=void 0}}finally{X?k():D=!1}}}var k;if(typeof E=="function")k=function(){E(V)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,F=z.port2;z.port1.onmessage=V,k=function(){F.postMessage(null)}}else k=function(){b(V,0)};function H(N,X){I=b(function(){N(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(N){switch(y){case 1:case 2:case 3:var X=3;break;default:X=y}var Q=y;y=X;try{return N()}finally{y=Q}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(N,X){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var Q=y;y=N;try{return X()}finally{y=Q}},e.unstable_scheduleCallback=function(N,X,Q){var te=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?te+Q:te):Q=te,N){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=Q+Z,N={id:u++,callback:X,priorityLevel:N,startTime:Q,expirationTime:Z,sortIndex:-1},Q>te?(N.sortIndex=Q,t(f,N),n(c)===null&&N===n(f)&&(x?(T(I),I=-1):x=!0,H($,Q-te))):(N.sortIndex=Z,t(c,N),S||v||(S=!0,D||(D=!0,k()))),N},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(N){var X=y;return function(){var Q=y;y=X;try{return N.apply(this,arguments)}finally{y=Q}}}})(RS)),RS}var xO;function PF(){return xO||(xO=1,ES.exports=$F()),ES.exports}var OS={exports:{}},oa={};/**
|
|
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 SO;function DF(){if(SO)return oa;SO=1;var e=iC();function t(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)f+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+c+"; 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(c,f,u){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:c,containerInfo:f,implementation:u}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return oa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,oa.createPortal=function(c,f){var u=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(c,f,null,u)},oa.flushSync=function(c){var f=s.T,u=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=f,r.p=u,r.d.f()}},oa.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},oa.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},oa.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var u=f.as,h=l(u,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;u==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:v}):u==="script"&&r.d.X(c,{crossOrigin:h,integrity:y,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},oa.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var u=l(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:u,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},oa.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var u=f.as,h=l(u,f.crossOrigin);r.d.L(c,u,{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})}},oa.preloadModule=function(c,f){if(typeof c=="string")if(f){var u=l(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:u,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},oa.requestFormReset=function(c){r.d.r(c)},oa.unstable_batchedUpdates=function(c,f){return c(f)},oa.useFormState=function(c,f,u){return s.H.useFormState(c,f,u)},oa.useFormStatus=function(){return s.H.useHostTransitionStatus()},oa.version="19.1.1",oa}var wO;function EA(){if(wO)return OS.exports;wO=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(),OS.exports=DF(),OS.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 CO;function AF(){if(CO)return Ih;CO=1;var e=PF(),t=iC(),n=EA();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 c(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 R=p.return;if(R===null)break;var P=R.alternate;if(P===null){if(g=R.return,g!==null){p=g;continue}break}if(R.child===P.child){for(P=R.child;P;){if(P===p)return l(R),i;if(P===g)return l(R),d;P=P.sibling}throw Error(r(188))}if(p.return!==g.return)p=R,g=P;else{for(var J=!1,re=R.child;re;){if(re===p){J=!0,p=R,g=P;break}if(re===g){J=!0,g=R,p=P;break}re=re.sibling}if(!J){for(re=P.child;re;){if(re===p){J=!0,p=P,g=R;break}if(re===g){J=!0,g=P,p=R;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 u=Object.assign,h=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),T=Symbol.for("react.consumer"),E=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function k(i){return i===null||typeof i!="object"?null:(i=V&&i[V]||i["@@iterator"],typeof i=="function"?i:null)}var z=Symbol.for("react.client.reference");function F(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===z?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case S:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case $:return"Suspense";case D:return"SuspenseList";case _:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case v:return"Portal";case E:return(i.displayName||"Context")+".Provider";case T:return(i._context.displayName||"Context")+".Consumer";case M:var d=i.render;return i=i.displayName,i||(i=d.displayName||d.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case I:return d=i.displayName||null,d!==null?d:F(i.type)||"Memo";case A:d=i._payload,i=i._init;try{return F(i(d))}catch{}}return null}var H=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},te=[],Z=-1;function K(i){return{current:i}}function ne(i){0>Z||(i.current=te[Z],te[Z]=null,Z--)}function le(i,d){Z++,te[Z]=i.current,i.current=d}var fe=K(null),ae=K(null),se=K(null),ie=K(null);function pe(i,d){switch(le(se,d),le(ae,i),le(fe,null),d.nodeType){case 9:case 11:i=(i=d.documentElement)&&(i=i.namespaceURI)?VR(i):0;break;default:if(i=d.tagName,d=d.namespaceURI)d=VR(d),i=HR(d,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ne(fe),le(fe,i)}function me(){ne(fe),ne(ae),ne(se)}function Te(i){i.memoizedState!==null&&le(ie,i);var d=fe.current,p=HR(d,i.type);d!==p&&(le(ae,i),le(fe,p))}function Ce(i){ae.current===i&&(ne(fe),ne(ae)),ie.current===i&&(ne(ie),$h._currentValue=Q)}var ke=Object.prototype.hasOwnProperty,ce=e.unstable_scheduleCallback,we=e.unstable_cancelCallback,Ge=e.unstable_shouldYield,Be=e.unstable_requestPaint,Ae=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,lt=e.unstable_ImmediatePriority,Ne=e.unstable_UserBlockingPriority,et=e.unstable_NormalPriority,mt=e.unstable_LowPriority,Wt=e.unstable_IdlePriority,zt=e.log,tt=e.unstable_setDisableYieldValue,Je=null,ct=null;function Ie(i){if(typeof zt=="function"&&tt(i),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Je,i)}catch{}}var he=Math.clz32?Math.clz32:wt,qe=Math.log,De=Math.LN2;function wt(i){return i>>>=0,i===0?32:31-(qe(i)/De|0)|0}var Ct=256,yt=4194304;function st(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 jt(i,d,p){var g=i.pendingLanes;if(g===0)return 0;var R=0,P=i.suspendedLanes,J=i.pingedLanes;i=i.warmLanes;var re=g&134217727;return re!==0?(g=re&~P,g!==0?R=st(g):(J&=re,J!==0?R=st(J):p||(p=re&~i,p!==0&&(R=st(p))))):(re=g&~P,re!==0?R=st(re):J!==0?R=st(J):p||(p=g&~i,p!==0&&(R=st(p)))),R===0?0:d!==0&&d!==R&&(d&P)===0&&(P=R&-R,p=d&-d,P>=p||P===32&&(p&4194048)!==0)?d:R}function qt(i,d){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&d)===0}function mn(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 $n(){var i=Ct;return Ct<<=1,(Ct&4194048)===0&&(Ct=256),i}function _n(){var i=yt;return yt<<=1,(yt&62914560)===0&&(yt=4194304),i}function Un(i){for(var d=[],p=0;31>p;p++)d.push(i);return d}function Jt(i,d){i.pendingLanes|=d,d!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function An(i,d,p,g,R,P){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,be=i.expirationTimes,Ye=i.hiddenUpdates;for(p=J&~p;0<p;){var pt=31-he(p),vt=1<<pt;re[pt]=0,be[pt]=-1;var Ke=Ye[pt];if(Ke!==null)for(Ye[pt]=null,pt=0;pt<Ke.length;pt++){var Xe=Ke[pt];Xe!==null&&(Xe.lane&=-536870913)}p&=~vt}g!==0&&xe(i,g,0),P!==0&&R===0&&i.tag!==0&&(i.suspendedLanes|=P&~(J&~d))}function xe(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 Vn(i,d){var p=i.entangledLanes|=d;for(i=i.entanglements;p;){var g=31-he(p),R=1<<g;R&d|i[g]&d&&(i[g]|=d),p&=~R}}function Rn(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function en(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function $t(){var i=X.p;return i!==0?i:(i=window.event,i===void 0?32:cO(i.type))}function zr(i,d){var p=X.p;try{return X.p=i,d()}finally{X.p=p}}var Fn=Math.random().toString(36).slice(2),on="__reactFiber$"+Fn,Ln="__reactProps$"+Fn,ge="__reactContainer$"+Fn,Ee="__reactEvents$"+Fn,Le="__reactListeners$"+Fn,Ve="__reactHandles$"+Fn,rt="__reactResources$"+Fn,kt="__reactMarker$"+Fn;function bt(i){delete i[on],delete i[Ln],delete i[Ee],delete i[Le],delete i[Ve]}function Tt(i){var d=i[on];if(d)return d;for(var p=i.parentNode;p;){if(d=p[ge]||p[on]){if(p=d.alternate,d.child!==null||p!==null&&p.child!==null)for(i=GR(i);i!==null;){if(p=i[on])return p;i=GR(i)}return d}i=p,p=i.parentNode}return null}function Pt(i){if(i=i[on]||i[ge]){var d=i.tag;if(d===5||d===6||d===13||d===26||d===27||d===3)return i}return null}function Kt(i){var d=i.tag;if(d===5||d===26||d===27||d===6)return i.stateNode;throw Error(r(33))}function Dt(i){var d=i[rt];return d||(d=i[rt]={hoistableStyles:new Map,hoistableScripts:new Map}),d}function Ft(i){i[kt]=!0}var ue=new Set,de={};function ze(i,d){ft(i,d),ft(i+"Capture",d)}function ft(i,d){for(de[i]=d,i=0;i<d.length;i++)ue.add(d[i])}var Ue=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]*$"),Mt={},Yt={};function nn(i){return ke.call(Yt,i)?!0:ke.call(Mt,i)?!1:Ue.test(i)?Yt[i]=!0:(Mt[i]=!0,!1)}function ye(i,d,p){if(nn(d))if(p===null)i.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":i.removeAttribute(d);return;case"boolean":var g=d.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){i.removeAttribute(d);return}}i.setAttribute(d,""+p)}}function Re(i,d,p){if(p===null)i.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(d);return}i.setAttribute(d,""+p)}}function it(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 xt,Et;function Rt(i){if(xt===void 0)try{throw Error()}catch(p){var d=p.stack.trim().match(/\n( *(at )?)/);xt=d&&d[1]||"",Et=-1<p.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+xt+i+Et}var At=!1;function Zt(i,d){if(!i||At)return"";At=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(d){var vt=function(){throw Error()};if(Object.defineProperty(vt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(vt,[])}catch(Xe){var Ke=Xe}Reflect.construct(i,[],vt)}else{try{vt.call()}catch(Xe){Ke=Xe}i.call(vt.prototype)}}else{try{throw Error()}catch(Xe){Ke=Xe}(vt=i())&&typeof vt.catch=="function"&&vt.catch(function(){})}}catch(Xe){if(Xe&&Ke&&typeof Xe.stack=="string")return[Xe.stack,Ke.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var R=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");R&&R.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=g.DetermineComponentFrameRoot(),J=P[0],re=P[1];if(J&&re){var be=J.split(`
|
|
45
|
-
`),Ye=re.split(`
|
|
46
|
-
`);for(R=g=0;g<be.length&&!be[g].includes("DetermineComponentFrameRoot");)g++;for(;R<Ye.length&&!Ye[R].includes("DetermineComponentFrameRoot");)R++;if(g===be.length||R===Ye.length)for(g=be.length-1,R=Ye.length-1;1<=g&&0<=R&&be[g]!==Ye[R];)R--;for(;1<=g&&0<=R;g--,R--)if(be[g]!==Ye[R]){if(g!==1||R!==1)do if(g--,R--,0>R||be[g]!==Ye[R]){var pt=`
|
|
47
|
-
`+be[g].replace(" at new "," at ");return i.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",i.displayName)),pt}while(1<=g&&0<=R);break}}}finally{At=!1,Error.prepareStackTrace=p}return(p=i?i.displayName||i.name:"")?Rt(p):""}function bn(i){switch(i.tag){case 26:case 27:case 5:return Rt(i.type);case 16:return Rt("Lazy");case 13:return Rt("Suspense");case 19:return Rt("SuspenseList");case 0:case 15:return Zt(i.type,!1);case 11:return Zt(i.type.render,!1);case 1:return Zt(i.type,!0);case 31:return Rt("Activity");default:return""}}function tr(i){try{var d="";do d+=bn(i),i=i.return;while(i);return d}catch(p){return`
|
|
48
|
-
Error generating stack: `+p.message+`
|
|
49
|
-
`+p.stack}}function Xt(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Pr(i){var d=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function oo(i){var d=Pr(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 R=p.get,P=p.set;return Object.defineProperty(i,d,{configurable:!0,get:function(){return R.call(this)},set:function(J){g=""+J,P.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 To(i){i._valueTracker||(i._valueTracker=oo(i))}function is(i){if(!i)return!1;var d=i._valueTracker;if(!d)return!0;var p=d.getValue(),g="";return i&&(g=Pr(i)?i.checked?"true":"false":i.value),i=g,i!==p?(d.setValue(i),!0):!1}function ea(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 cr=/[\n"\\]/g;function Fr(i){return i.replace(cr,function(d){return"\\"+d.charCodeAt(0).toString(16)+" "})}function Ya(i,d,p,g,R,P,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=""+Xt(d)):i.value!==""+Xt(d)&&(i.value=""+Xt(d)):J!=="submit"&&J!=="reset"||i.removeAttribute("value"),d!=null?ss(i,J,Xt(d)):p!=null?ss(i,J,Xt(p)):g!=null&&i.removeAttribute("value"),R==null&&P!=null&&(i.defaultChecked=!!P),R!=null&&(i.checked=R&&typeof R!="function"&&typeof R!="symbol"),re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?i.name=""+Xt(re):i.removeAttribute("name")}function fl(i,d,p,g,R,P,J,re){if(P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(i.type=P),d!=null||p!=null){if(!(P!=="submit"&&P!=="reset"||d!=null))return;p=p!=null?""+Xt(p):"",d=d!=null?""+Xt(d):p,re||d===i.value||(i.value=d),i.defaultValue=d}g=g??R,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 ss(i,d,p){d==="number"&&ea(i.ownerDocument)===i||i.defaultValue===""+p||(i.defaultValue=""+p)}function ki(i,d,p,g){if(i=i.options,d){d={};for(var R=0;R<p.length;R++)d["$"+p[R]]=!0;for(p=0;p<i.length;p++)R=d.hasOwnProperty("$"+i[p].value),i[p].selected!==R&&(i[p].selected=R),R&&g&&(i[p].defaultSelected=!0)}else{for(p=""+Xt(p),d=null,R=0;R<i.length;R++){if(i[R].value===p){i[R].selected=!0,g&&(i[R].defaultSelected=!0);return}d!==null||i[R].disabled||(d=i[R])}d!==null&&(d.selected=!0)}}function ru(i,d,p){if(d!=null&&(d=""+Xt(d),d!==i.value&&(i.value=d),p==null)){i.defaultValue!==d&&(i.defaultValue=d);return}i.defaultValue=p!=null?""+Xt(p):""}function pl(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=Xt(d),i.defaultValue=p,g=i.textContent,g===p&&g!==""&&g!==null&&(i.value=g)}function ls(i,d){if(d){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=d;return}}i.textContent=d}var Xl=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 Ms(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||Xl.has(d)?d==="float"?i.cssFloat=p:i[d]=(""+p).trim():i[d]=p+"px"}function hl(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 R in d)g=d[R],d.hasOwnProperty(R)&&p[R]!==g&&Ms(i,R,g)}else for(var P in d)d.hasOwnProperty(P)&&Ms(i,P,d[P])}function ou(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Td=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"]]),jp=/^[\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 ml(i){return jp.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Zl=null;function Jl(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var $s=null,cs=null;function au(i){var d=Pt(i);if(d&&(i=d.stateNode)){var p=i[Ln]||null;e:switch(i=d.stateNode,d.type){case"input":if(Ya(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="'+Fr(""+d)+'"][type="radio"]'),d=0;d<p.length;d++){var g=p[d];if(g!==i&&g.form===i.form){var R=g[Ln]||null;if(!R)throw Error(r(90));Ya(g,R.value,R.defaultValue,R.defaultValue,R.checked,R.defaultChecked,R.type,R.name)}}for(d=0;d<p.length;d++)g=p[d],g.form===i.form&&is(g)}break e;case"textarea":ru(i,p.value,p.defaultValue);break e;case"select":d=p.value,d!=null&&ki(i,!!p.multiple,d,!1)}}}var iu=!1;function Ed(i,d,p){if(iu)return i(d,p);iu=!0;try{var g=i(d);return g}finally{if(iu=!1,($s!==null||cs!==null)&&(My(),$s&&(d=$s,i=cs,cs=$s=null,au(d),i)))for(d=0;d<i.length;d++)au(i[d])}}function gl(i,d){var p=i.stateNode;if(p===null)return null;var g=p[Ln]||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 Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),su=!1;if(Ea)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){su=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{su=!1}var Ti=null,lu=null,ec=null;function cu(){if(ec)return ec;var i,d=lu,p=d.length,g,R="value"in Ti?Ti.value:Ti.textContent,P=R.length;for(i=0;i<p&&d[i]===R[i];i++);var J=p-i;for(g=1;g<=J&&d[p-g]===R[P-g];g++);return ec=R.slice(i,1<g?1-g:void 0)}function tc(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 eo(){return!0}function uu(){return!1}function j(i){function d(p,g,R,P,J){this._reactName=p,this._targetInst=R,this.type=g,this.nativeEvent=P,this.target=J,this.currentTarget=null;for(var re in i)i.hasOwnProperty(re)&&(p=i[re],this[re]=p?p(P):P[re]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?eo:uu,this.isPropagationStopped=uu,this}return u(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=eo)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=eo)},persist:function(){},isPersistent:eo}),d}var vo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},to=j(vo),Ga=u({},vo,{view:0,detail:0}),Oe=j(Ga),us,jn,Io,Ps=u({},Ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bl,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!==Io&&(Io&&i.type==="mousemove"?(us=i.screenX-Io.screenX,jn=i.screenY-Io.screenY):jn=us=0,Io=i),us)},movementY:function(i){return"movementY"in i?i.movementY:jn}}),du=j(Ps),Rd=u({},Ps,{dataTransfer:0}),Od=j(Rd),Ze=u({},Ga,{relatedTarget:0}),fu=j(Ze),pu=u({},vo,{animationName:0,elapsedTime:0,pseudoElement:0}),nc=j(pu),Md=u({},vo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Ds=j(Md),vl=u({},vo,{data:0}),ds=j(vl),As={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ta={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"},Np={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ip(i){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(i):(i=Np[i])?!!d[i]:!1}function bl(){return Ip}var $d=u({},Ga,{key:function(i){if(i.key){var d=As[i.key]||i.key;if(d!=="Unidentified")return d}return i.type==="keypress"?(i=tc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?ta[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bl,charCode:function(i){return i.type==="keypress"?tc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?tc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),hu=j($d),Lp=u({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pd=j(Lp),zp=u({},Ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bl}),Dd=j(zp),mu=u({},vo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fp=j(mu),rc=u({},Ps,{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}),_p=j(rc),Bp=u({},vo,{newState:0,oldState:0}),Up=j(Bp),Vp=[9,13,27,32],gu=Ea&&"CompositionEvent"in window,js=null;Ea&&"documentMode"in document&&(js=document.documentMode);var Hp=Ea&&"TextEvent"in window&&!js,Ad=Ea&&(!gu||js&&8<js&&11>=js),jd=" ",Nd=!1;function Id(i,d){switch(i){case"keyup":return Vp.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ld(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ns=!1;function Wp(i,d){switch(i){case"compositionend":return Ld(d);case"keypress":return d.which!==32?null:(Nd=!0,jd);case"textInput":return i=d.data,i===jd&&Nd?null:i;default:return null}}function qp(i,d){if(Ns)return i==="compositionend"||!gu&&Id(i,d)?(i=cu(),ec=lu=Ti=null,Ns=!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 Ad&&d.locale!=="ko"?null:d.data;default:return null}}var Yp={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 zd(i){var d=i&&i.nodeName&&i.nodeName.toLowerCase();return d==="input"?!!Yp[i.type]:d==="textarea"}function Fd(i,d,p,g){$s?cs?cs.push(g):cs=[g]:$s=g,d=Ny(d,"onChange"),0<d.length&&(p=new to("onChange","change",null,p,g),i.push({event:p,listeners:d}))}var xl=null,nr=null;function fs(i){zR(i,0)}function Gr(i){var d=Kt(i);if(is(d))return i}function B(i,d){if(i==="change")return d}var G=!1;if(Ea){var q;if(Ea){var Se="oninput"in document;if(!Se){var Qt=document.createElement("div");Qt.setAttribute("oninput","return;"),Se=typeof Qt.oninput=="function"}q=Se}else q=!1;G=q&&(!document.documentMode||9<document.documentMode)}function Vt(){xl&&(xl.detachEvent("onpropertychange",On),nr=xl=null)}function On(i){if(i.propertyName==="value"&&Gr(nr)){var d=[];Fd(d,nr,i,Jl(i)),Ed(fs,d)}}function Yn(i,d,p){i==="focusin"?(Vt(),xl=d,nr=p,xl.attachEvent("onpropertychange",On)):i==="focusout"&&Vt()}function Gn(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Gr(nr)}function Gt(i,d){if(i==="click")return Gr(d)}function wr(i,d){if(i==="input"||i==="change")return Gr(d)}function Cr(i,d){return i===d&&(i!==0||1/i===1/d)||i!==i&&d!==d}var ln=typeof Object.is=="function"?Object.is:Cr;function gr(i,d){if(ln(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 R=p[g];if(!ke.call(d,R)||!ln(i[R],d[R]))return!1}return!0}function Ur(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Hr(i,d){var p=Ur(i);i=0;for(var g;p;){if(p.nodeType===3){if(g=i+p.textContent.length,i<=d&&g>=d)return{node:p,offset:d-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Ur(p)}}function Ka(i,d){return i&&d?i===d?!0:i&&i.nodeType===3?!1:d&&d.nodeType===3?Ka(i,d.parentNode):"contains"in i?i.contains(d):i.compareDocumentPosition?!!(i.compareDocumentPosition(d)&16):!1:!1}function ha(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var d=ea(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=ea(i.document)}return d}function zn(i){var d=i&&i.nodeName&&i.nodeName.toLowerCase();return d&&(d==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||d==="textarea"||i.contentEditable==="true")}var Sl=Ea&&"documentMode"in document&&11>=document.documentMode,ma=null,ps=null,na=null,no=!1;function wl(i,d,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;no||ma==null||ma!==ea(g)||(g=ma,"selectionStart"in g&&zn(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),na&&gr(na,g)||(na=g,g=Ny(ps,"onSelect"),0<g.length&&(d=new to("onSelect","select",null,d,p),i.push({event:d,listeners:g}),d.target=ma)))}function bo(i,d){var p={};return p[i.toLowerCase()]=d.toLowerCase(),p["Webkit"+i]="webkit"+d,p["Moz"+i]="moz"+d,p}var oc={animationend:bo("Animation","AnimationEnd"),animationiteration:bo("Animation","AnimationIteration"),animationstart:bo("Animation","AnimationStart"),transitionrun:bo("Transition","TransitionRun"),transitionstart:bo("Transition","TransitionStart"),transitioncancel:bo("Transition","TransitionCancel"),transitionend:bo("Transition","TransitionEnd")},Gp={},Zg={};Ea&&(Zg=document.createElement("div").style,"AnimationEvent"in window||(delete oc.animationend.animation,delete oc.animationiteration.animation,delete oc.animationstart.animation),"TransitionEvent"in window||delete oc.transitionend.transition);function Cl(i){if(Gp[i])return Gp[i];if(!oc[i])return i;var d=oc[i],p;for(p in d)if(d.hasOwnProperty(p)&&p in Zg)return Gp[i]=d[p];return i}var Jg=Cl("animationend"),ey=Cl("animationiteration"),ty=Cl("animationstart"),Kp=Cl("transitionrun"),K0=Cl("transitionstart"),Q0=Cl("transitioncancel"),Qp=Cl("transitionend"),Xp=new Map,_d="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(" ");_d.push("scrollEnd");function Qa(i,d){Xp.set(i,d),ze(d,[i])}var Zp=new WeakMap;function ra(i,d){if(typeof i=="object"&&i!==null){var p=Zp.get(i);return p!==void 0?p:(d={value:i,source:d,stack:tr(d)},Zp.set(i,d),d)}return{value:i,source:d,stack:tr(d)}}var ga=[],Ei=0,yu=0;function ac(){for(var i=Ei,d=yu=Ei=0;d<i;){var p=ga[d];ga[d++]=null;var g=ga[d];ga[d++]=null;var R=ga[d];ga[d++]=null;var P=ga[d];if(ga[d++]=null,g!==null&&R!==null){var J=g.pending;J===null?R.next=R:(R.next=J.next,J.next=R),g.pending=R}P!==0&&vu(p,R,P)}}function Ri(i,d,p,g){ga[Ei++]=i,ga[Ei++]=d,ga[Ei++]=p,ga[Ei++]=g,yu|=g,i.lanes|=g,i=i.alternate,i!==null&&(i.lanes|=g)}function Bd(i,d,p,g){return Ri(i,d,p,g),bu(i)}function hs(i,d){return Ri(i,null,null,d),bu(i)}function vu(i,d,p){i.lanes|=p;var g=i.alternate;g!==null&&(g.lanes|=p);for(var R=!1,P=i.return;P!==null;)P.childLanes|=p,g=P.alternate,g!==null&&(g.childLanes|=p),P.tag===22&&(i=P.stateNode,i===null||i._visibility&1||(R=!0)),i=P,P=P.return;return i.tag===3?(P=i.stateNode,R&&d!==null&&(R=31-he(p),i=P.hiddenUpdates,g=i[R],g===null?i[R]=[d]:g.push(d),d.lane=p|536870912),P):null}function bu(i){if(50<wh)throw wh=0,Yx=null,Error(r(185));for(var d=i.return;d!==null;)i=d,d=i.return;return i.tag===3?i.stateNode:null}var Xa={};function Ud(i,d,p,g){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wo(i,d,p,g){return new Ud(i,d,p,g)}function Vd(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Oi(i,d){var p=i.alternate;return p===null?(p=Wo(i.tag,d,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=d,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&65011712,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,d=i.dependencies,p.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p.refCleanup=i.refCleanup,p}function ny(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 Hd(i,d,p,g,R,P){var J=0;if(g=i,typeof i=="function")Vd(i)&&(J=1);else if(typeof i=="string")J=pF(i,p,fe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case _:return i=Wo(31,p,d,R),i.elementType=_,i.lanes=P,i;case S:return Mi(p.children,R,P,d);case x:J=8,R|=24;break;case w:return i=Wo(12,p,d,R|2),i.elementType=w,i.lanes=P,i;case $:return i=Wo(13,p,d,R),i.elementType=$,i.lanes=P,i;case D:return i=Wo(19,p,d,R),i.elementType=D,i.lanes=P,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case b:case E:J=10;break e;case T:J=9;break e;case M:J=11;break e;case I:J=14;break e;case A:J=16,g=null;break e}J=29,p=Error(r(130,i===null?"null":typeof i,"")),g=null}return d=Wo(J,p,d,R),d.elementType=i,d.type=g,d.lanes=P,d}function Mi(i,d,p,g){return i=Wo(7,i,g,d),i.lanes=p,i}function Jp(i,d,p){return i=Wo(6,i,null,d),i.lanes=p,i}function eh(i,d,p){return d=Wo(4,i.children!==null?i.children:[],i.key,d),d.lanes=p,d.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},d}var ms=[],kl=0,Wd=null,xu=0,ya=[],va=0,Za=null,Ja=1,yn="";function ei(i,d){ms[kl++]=xu,ms[kl++]=Wd,Wd=i,xu=d}function ry(i,d,p){ya[va++]=Ja,ya[va++]=yn,ya[va++]=Za,Za=i;var g=Ja;i=yn;var R=32-he(g)-1;g&=~(1<<R),p+=1;var P=32-he(d)+R;if(30<P){var J=R-R%5;P=(g&(1<<J)-1).toString(32),g>>=J,R-=J,Ja=1<<32-he(d)+R|p<<R|g,yn=P+i}else Ja=1<<P|p<<R|g,yn=i}function U(i){i.return!==null&&(ei(i,1),ry(i,1,0))}function O(i){for(;i===Wd;)Wd=ms[--kl],ms[kl]=null,xu=ms[--kl],ms[kl]=null;for(;i===Za;)Za=ya[--va],ya[va]=null,yn=ya[--va],ya[va]=null,Ja=ya[--va],ya[va]=null}var L=null,Y=null,ee=!1,ve=null,$e=!1,Fe=Error(r(519));function We(i){var d=Error(r(418,""));throw Kr(ra(d,i)),Fe}function Ot(i){var d=i.stateNode,p=i.type,g=i.memoizedProps;switch(d[on]=i,d[Ln]=g,p){case"dialog":or("cancel",d),or("close",d);break;case"iframe":case"object":case"embed":or("load",d);break;case"video":case"audio":for(p=0;p<kh.length;p++)or(kh[p],d);break;case"source":or("error",d);break;case"img":case"image":case"link":or("error",d),or("load",d);break;case"details":or("toggle",d);break;case"input":or("invalid",d),fl(d,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0),To(d);break;case"select":or("invalid",d);break;case"textarea":or("invalid",d),pl(d,g.value,g.defaultValue,g.children),To(d)}p=g.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||d.textContent===""+p||g.suppressHydrationWarning===!0||UR(d.textContent,p)?(g.popover!=null&&(or("beforetoggle",d),or("toggle",d)),g.onScroll!=null&&or("scroll",d),g.onScrollEnd!=null&&or("scrollend",d),g.onClick!=null&&(d.onclick=Iy),d=!0):d=!1,d||We(i)}function vn(i){for(L=i.return;L;)switch(L.tag){case 5:case 13:$e=!1;return;case 27:case 3:$e=!0;return;default:L=L.return}}function Nn(i){if(i!==L)return!1;if(!ee)return vn(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")||cS(i.type,i.memoizedProps)),p=!p),p&&Y&&We(i),vn(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=ys(i.nextSibling);break e}d--}else p!=="$"&&p!=="$!"&&p!=="$?"||d++;i=i.nextSibling}Y=null}}else d===27?(d=Y,xc(i.type)?(i=pS,pS=null,Y=i):Y=d):Y=L?ys(i.stateNode.nextSibling):null;return!0}function ur(){Y=L=null,ee=!1}function Sn(){var i=ve;return i!==null&&(Da===null?Da=i:Da.push.apply(Da,i),ve=null),i}function Kr(i){ve===null?ve=[i]:ve.push(i)}var Lo=K(null),Ra=null,Oa=null;function Ma(i,d,p){le(Lo,d._currentValue),d._currentValue=p}function $i(i){i._currentValue=Lo.current,ne(Lo)}function th(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 qd(i,d,p,g){var R=i.child;for(R!==null&&(R.return=i);R!==null;){var P=R.dependencies;if(P!==null){var J=R.child;P=P.firstContext;e:for(;P!==null;){var re=P;P=R;for(var be=0;be<d.length;be++)if(re.context===d[be]){P.lanes|=p,re=P.alternate,re!==null&&(re.lanes|=p),th(P.return,p,i),g||(J=null);break e}P=re.next}}else if(R.tag===18){if(J=R.return,J===null)throw Error(r(341));J.lanes|=p,P=J.alternate,P!==null&&(P.lanes|=p),th(J,p,i),J=null}else J=R.child;if(J!==null)J.return=R;else for(J=R;J!==null;){if(J===i){J=null;break}if(R=J.sibling,R!==null){R.return=J.return,J=R;break}J=J.return}R=J}}function Su(i,d,p,g){i=null;for(var R=d,P=!1;R!==null;){if(!P){if((R.flags&524288)!==0)P=!0;else if((R.flags&262144)!==0)break}if(R.tag===10){var J=R.alternate;if(J===null)throw Error(r(387));if(J=J.memoizedProps,J!==null){var re=R.type;ln(R.pendingProps.value,J.value)||(i!==null?i.push(re):i=[re])}}else if(R===ie.current){if(J=R.alternate,J===null)throw Error(r(387));J.memoizedState.memoizedState!==R.memoizedState.memoizedState&&(i!==null?i.push($h):i=[$h])}R=R.return}i!==null&&qd(d,i,p,g),d.flags|=262144}function Yd(i){for(i=i.firstContext;i!==null;){if(!ln(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Tl(i){Ra=i,Oa=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function ao(i){return oy(Ra,i)}function Is(i,d){return Ra===null&&Tl(i),oy(i,d)}function oy(i,d){var p=d._currentValue;if(d={context:d,memoizedValue:p,next:null},Oa===null){if(i===null)throw Error(r(308));Oa=d,i.dependencies={lanes:0,firstContext:d},i.flags|=524288}else Oa=Oa.next=d;return p}var f5=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()})}},p5=e.unstable_scheduleCallback,h5=e.unstable_NormalPriority,Po={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function X0(){return{controller:new f5,data:new Map,refCount:0}}function nh(i){i.refCount--,i.refCount===0&&p5(h5,function(){i.controller.abort()})}var rh=null,Z0=0,Gd=0,Kd=null;function m5(i,d){if(rh===null){var p=rh=[];Z0=0,Gd=eS(),Kd={status:"pending",value:void 0,then:function(g){p.push(g)}}}return Z0++,d.then(MT,MT),d}function MT(){if(--Z0===0&&rh!==null){Kd!==null&&(Kd.status="fulfilled");var i=rh;rh=null,Gd=0,Kd=null;for(var d=0;d<i.length;d++)(0,i[d])()}}function g5(i,d){var p=[],g={status:"pending",value:null,reason:null,then:function(R){p.push(R)}};return i.then(function(){g.status="fulfilled",g.value=d;for(var R=0;R<p.length;R++)(0,p[R])(d)},function(R){for(g.status="rejected",g.reason=R,R=0;R<p.length;R++)(0,p[R])(void 0)}),g}var $T=N.S;N.S=function(i,d){typeof d=="object"&&d!==null&&typeof d.then=="function"&&m5(i,d),$T!==null&&$T(i,d)};var wu=K(null);function J0(){var i=wu.current;return i!==null?i:Vr.pooledCache}function ay(i,d){d===null?le(wu,wu.current):le(wu,d.pool)}function PT(){var i=J0();return i===null?null:{parent:Po._currentValue,pool:i}}var oh=Error(r(460)),DT=Error(r(474)),iy=Error(r(542)),ex={then:function(){}};function AT(i){return i=i.status,i==="fulfilled"||i==="rejected"}function sy(){}function jT(i,d,p){switch(p=i[p],p===void 0?i.push(d):p!==d&&(d.then(sy,sy),d=p),d.status){case"fulfilled":return d.value;case"rejected":throw i=d.reason,IT(i),i;default:if(typeof d.status=="string")d.then(sy,sy);else{if(i=Vr,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=d,i.status="pending",i.then(function(g){if(d.status==="pending"){var R=d;R.status="fulfilled",R.value=g}},function(g){if(d.status==="pending"){var R=d;R.status="rejected",R.reason=g}})}switch(d.status){case"fulfilled":return d.value;case"rejected":throw i=d.reason,IT(i),i}throw ah=d,oh}}var ah=null;function NT(){if(ah===null)throw Error(r(459));var i=ah;return ah=null,i}function IT(i){if(i===oh||i===iy)throw Error(r(483))}var ic=!1;function tx(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nx(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 sc(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function lc(i,d,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(kr&2)!==0){var R=g.pending;return R===null?d.next=d:(d.next=R.next,R.next=d),g.pending=d,d=bu(i),vu(i,null,p),d}return Ri(i,g,d,p),bu(i)}function ih(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,Vn(i,p)}}function rx(i,d){var p=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var R=null,P=null;if(p=p.firstBaseUpdate,p!==null){do{var J={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};P===null?R=P=J:P=P.next=J,p=p.next}while(p!==null);P===null?R=P=d:P=P.next=d}else R=P=d;p={baseState:g.baseState,firstBaseUpdate:R,lastBaseUpdate:P,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 ox=!1;function sh(){if(ox){var i=Kd;if(i!==null)throw i}}function lh(i,d,p,g){ox=!1;var R=i.updateQueue;ic=!1;var P=R.firstBaseUpdate,J=R.lastBaseUpdate,re=R.shared.pending;if(re!==null){R.shared.pending=null;var be=re,Ye=be.next;be.next=null,J===null?P=Ye:J.next=Ye,J=be;var pt=i.alternate;pt!==null&&(pt=pt.updateQueue,re=pt.lastBaseUpdate,re!==J&&(re===null?pt.firstBaseUpdate=Ye:re.next=Ye,pt.lastBaseUpdate=be))}if(P!==null){var vt=R.baseState;J=0,pt=Ye=be=null,re=P;do{var Ke=re.lane&-536870913,Xe=Ke!==re.lane;if(Xe?(dr&Ke)===Ke:(g&Ke)===Ke){Ke!==0&&Ke===Gd&&(ox=!0),pt!==null&&(pt=pt.next={lane:0,tag:re.tag,payload:re.payload,callback:null,next:null});e:{var In=i,Mn=re;Ke=d;var jr=p;switch(Mn.tag){case 1:if(In=Mn.payload,typeof In=="function"){vt=In.call(jr,vt,Ke);break e}vt=In;break e;case 3:In.flags=In.flags&-65537|128;case 0:if(In=Mn.payload,Ke=typeof In=="function"?In.call(jr,vt,Ke):In,Ke==null)break e;vt=u({},vt,Ke);break e;case 2:ic=!0}}Ke=re.callback,Ke!==null&&(i.flags|=64,Xe&&(i.flags|=8192),Xe=R.callbacks,Xe===null?R.callbacks=[Ke]:Xe.push(Ke))}else Xe={lane:Ke,tag:re.tag,payload:re.payload,callback:re.callback,next:null},pt===null?(Ye=pt=Xe,be=vt):pt=pt.next=Xe,J|=Ke;if(re=re.next,re===null){if(re=R.shared.pending,re===null)break;Xe=re,re=Xe.next,Xe.next=null,R.lastBaseUpdate=Xe,R.shared.pending=null}}while(!0);pt===null&&(be=vt),R.baseState=be,R.firstBaseUpdate=Ye,R.lastBaseUpdate=pt,P===null&&(R.shared.lanes=0),gc|=J,i.lanes=J,i.memoizedState=vt}}function LT(i,d){if(typeof i!="function")throw Error(r(191,i));i.call(d)}function zT(i,d){var p=i.callbacks;if(p!==null)for(i.callbacks=null,i=0;i<p.length;i++)LT(p[i],d)}var Qd=K(null),ly=K(0);function FT(i,d){i=Dl,le(ly,i),le(Qd,d),Dl=i|d.baseLanes}function ax(){le(ly,Dl),le(Qd,Qd.current)}function ix(){Dl=ly.current,ne(Qd),ne(ly)}var cc=0,Jn=null,Dr=null,Eo=null,cy=!1,Xd=!1,Cu=!1,uy=0,ch=0,Zd=null,y5=0;function xo(){throw Error(r(321))}function sx(i,d){if(d===null)return!1;for(var p=0;p<d.length&&p<i.length;p++)if(!ln(i[p],d[p]))return!1;return!0}function lx(i,d,p,g,R,P){return cc=P,Jn=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,N.H=i===null||i.memoizedState===null?wE:CE,Cu=!1,P=p(g,R),Cu=!1,Xd&&(P=BT(d,p,g,R)),_T(i),P}function _T(i){N.H=gy;var d=Dr!==null&&Dr.next!==null;if(cc=0,Eo=Dr=Jn=null,cy=!1,ch=0,Zd=null,d)throw Error(r(300));i===null||zo||(i=i.dependencies,i!==null&&Yd(i)&&(zo=!0))}function BT(i,d,p,g){Jn=i;var R=0;do{if(Xd&&(Zd=null),ch=0,Xd=!1,25<=R)throw Error(r(301));if(R+=1,Eo=Dr=null,i.updateQueue!=null){var P=i.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}N.H=k5,P=d(p,g)}while(Xd);return P}function v5(){var i=N.H,d=i.useState()[0];return d=typeof d.then=="function"?uh(d):d,i=i.useState()[0],(Dr!==null?Dr.memoizedState:null)!==i&&(Jn.flags|=1024),d}function cx(){var i=uy!==0;return uy=0,i}function ux(i,d,p){d.updateQueue=i.updateQueue,d.flags&=-2053,i.lanes&=~p}function dx(i){if(cy){for(i=i.memoizedState;i!==null;){var d=i.queue;d!==null&&(d.pending=null),i=i.next}cy=!1}cc=0,Eo=Dr=Jn=null,Xd=!1,ch=uy=0,Zd=null}function $a(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Eo===null?Jn.memoizedState=Eo=i:Eo=Eo.next=i,Eo}function Ro(){if(Dr===null){var i=Jn.alternate;i=i!==null?i.memoizedState:null}else i=Dr.next;var d=Eo===null?Jn.memoizedState:Eo.next;if(d!==null)Eo=d,Dr=i;else{if(i===null)throw Jn.alternate===null?Error(r(467)):Error(r(310));Dr=i,i={memoizedState:Dr.memoizedState,baseState:Dr.baseState,baseQueue:Dr.baseQueue,queue:Dr.queue,next:null},Eo===null?Jn.memoizedState=Eo=i:Eo=Eo.next=i}return Eo}function fx(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uh(i){var d=ch;return ch+=1,Zd===null&&(Zd=[]),i=jT(Zd,i,d),d=Jn,(Eo===null?d.memoizedState:Eo.next)===null&&(d=d.alternate,N.H=d===null||d.memoizedState===null?wE:CE),i}function dy(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return uh(i);if(i.$$typeof===E)return ao(i)}throw Error(r(438,String(i)))}function px(i){var d=null,p=Jn.updateQueue;if(p!==null&&(d=p.memoCache),d==null){var g=Jn.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(d={data:g.data.map(function(R){return R.slice()}),index:0})))}if(d==null&&(d={data:[],index:0}),p===null&&(p=fx(),Jn.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 El(i,d){return typeof d=="function"?d(i):d}function fy(i){var d=Ro();return hx(d,Dr,i)}function hx(i,d,p){var g=i.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=p;var R=i.baseQueue,P=g.pending;if(P!==null){if(R!==null){var J=R.next;R.next=P.next,P.next=J}d.baseQueue=R=P,g.pending=null}if(P=i.baseState,R===null)i.memoizedState=P;else{d=R.next;var re=J=null,be=null,Ye=d,pt=!1;do{var vt=Ye.lane&-536870913;if(vt!==Ye.lane?(dr&vt)===vt:(cc&vt)===vt){var Ke=Ye.revertLane;if(Ke===0)be!==null&&(be=be.next={lane:0,revertLane:0,action:Ye.action,hasEagerState:Ye.hasEagerState,eagerState:Ye.eagerState,next:null}),vt===Gd&&(pt=!0);else if((cc&Ke)===Ke){Ye=Ye.next,Ke===Gd&&(pt=!0);continue}else vt={lane:0,revertLane:Ye.revertLane,action:Ye.action,hasEagerState:Ye.hasEagerState,eagerState:Ye.eagerState,next:null},be===null?(re=be=vt,J=P):be=be.next=vt,Jn.lanes|=Ke,gc|=Ke;vt=Ye.action,Cu&&p(P,vt),P=Ye.hasEagerState?Ye.eagerState:p(P,vt)}else Ke={lane:vt,revertLane:Ye.revertLane,action:Ye.action,hasEagerState:Ye.hasEagerState,eagerState:Ye.eagerState,next:null},be===null?(re=be=Ke,J=P):be=be.next=Ke,Jn.lanes|=vt,gc|=vt;Ye=Ye.next}while(Ye!==null&&Ye!==d);if(be===null?J=P:be.next=re,!ln(P,i.memoizedState)&&(zo=!0,pt&&(p=Kd,p!==null)))throw p;i.memoizedState=P,i.baseState=J,i.baseQueue=be,g.lastRenderedState=P}return R===null&&(g.lanes=0),[i.memoizedState,g.dispatch]}function mx(i){var d=Ro(),p=d.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var g=p.dispatch,R=p.pending,P=d.memoizedState;if(R!==null){p.pending=null;var J=R=R.next;do P=i(P,J.action),J=J.next;while(J!==R);ln(P,d.memoizedState)||(zo=!0),d.memoizedState=P,d.baseQueue===null&&(d.baseState=P),p.lastRenderedState=P}return[P,g]}function UT(i,d,p){var g=Jn,R=Ro(),P=ee;if(P){if(p===void 0)throw Error(r(407));p=p()}else p=d();var J=!ln((Dr||R).memoizedState,p);J&&(R.memoizedState=p,zo=!0),R=R.queue;var re=WT.bind(null,g,R,i);if(dh(2048,8,re,[i]),R.getSnapshot!==d||J||Eo!==null&&Eo.memoizedState.tag&1){if(g.flags|=2048,Jd(9,py(),HT.bind(null,g,R,p,d),null),Vr===null)throw Error(r(349));P||(cc&124)!==0||VT(g,d,p)}return p}function VT(i,d,p){i.flags|=16384,i={getSnapshot:d,value:p},d=Jn.updateQueue,d===null?(d=fx(),Jn.updateQueue=d,d.stores=[i]):(p=d.stores,p===null?d.stores=[i]:p.push(i))}function HT(i,d,p,g){d.value=p,d.getSnapshot=g,qT(d)&&YT(i)}function WT(i,d,p){return p(function(){qT(d)&&YT(i)})}function qT(i){var d=i.getSnapshot;i=i.value;try{var p=d();return!ln(i,p)}catch{return!0}}function YT(i){var d=hs(i,2);d!==null&&ai(d,i,2)}function gx(i){var d=$a();if(typeof i=="function"){var p=i;if(i=p(),Cu){Ie(!0);try{p()}finally{Ie(!1)}}}return d.memoizedState=d.baseState=i,d.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:i},d}function GT(i,d,p,g){return i.baseState=p,hx(i,Dr,typeof g=="function"?g:El)}function b5(i,d,p,g,R){if(my(i))throw Error(r(485));if(i=d.action,i!==null){var P={payload:R,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(J){P.listeners.push(J)}};N.T!==null?p(!0):P.isTransition=!1,g(P),p=d.pending,p===null?(P.next=d.pending=P,KT(d,P)):(P.next=p.next,d.pending=p.next=P)}}function KT(i,d){var p=d.action,g=d.payload,R=i.state;if(d.isTransition){var P=N.T,J={};N.T=J;try{var re=p(R,g),be=N.S;be!==null&&be(J,re),QT(i,d,re)}catch(Ye){yx(i,d,Ye)}finally{N.T=P}}else try{P=p(R,g),QT(i,d,P)}catch(Ye){yx(i,d,Ye)}}function QT(i,d,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(g){XT(i,d,g)},function(g){return yx(i,d,g)}):XT(i,d,p)}function XT(i,d,p){d.status="fulfilled",d.value=p,ZT(d),i.state=p,d=i.pending,d!==null&&(p=d.next,p===d?i.pending=null:(p=p.next,d.next=p,KT(i,p)))}function yx(i,d,p){var g=i.pending;if(i.pending=null,g!==null){g=g.next;do d.status="rejected",d.reason=p,ZT(d),d=d.next;while(d!==g)}i.action=null}function ZT(i){i=i.listeners;for(var d=0;d<i.length;d++)(0,i[d])()}function JT(i,d){return d}function eE(i,d){if(ee){var p=Vr.formState;if(p!==null){e:{var g=Jn;if(ee){if(Y){t:{for(var R=Y,P=$e;R.nodeType!==8;){if(!P){R=null;break t}if(R=ys(R.nextSibling),R===null){R=null;break t}}P=R.data,R=P==="F!"||P==="F"?R:null}if(R){Y=ys(R.nextSibling),g=R.data==="F!";break e}}We(g)}g=!1}g&&(d=p[0])}}return p=$a(),p.memoizedState=p.baseState=d,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:JT,lastRenderedState:d},p.queue=g,p=bE.bind(null,Jn,g),g.dispatch=p,g=gx(!1),P=wx.bind(null,Jn,!1,g.queue),g=$a(),R={state:d,dispatch:null,action:i,pending:null},g.queue=R,p=b5.bind(null,Jn,R,P,p),R.dispatch=p,g.memoizedState=i,[d,p,!1]}function tE(i){var d=Ro();return nE(d,Dr,i)}function nE(i,d,p){if(d=hx(i,d,JT)[0],i=fy(El)[0],typeof d=="object"&&d!==null&&typeof d.then=="function")try{var g=uh(d)}catch(J){throw J===oh?iy:J}else g=d;d=Ro();var R=d.queue,P=R.dispatch;return p!==d.memoizedState&&(Jn.flags|=2048,Jd(9,py(),x5.bind(null,R,p),null)),[g,P,i]}function x5(i,d){i.action=d}function rE(i){var d=Ro(),p=Dr;if(p!==null)return nE(d,p,i);Ro(),d=d.memoizedState,p=Ro();var g=p.queue.dispatch;return p.memoizedState=i,[d,g,!1]}function Jd(i,d,p,g){return i={tag:i,create:p,deps:g,inst:d,next:null},d=Jn.updateQueue,d===null&&(d=fx(),Jn.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 py(){return{destroy:void 0,resource:void 0}}function oE(){return Ro().memoizedState}function hy(i,d,p,g){var R=$a();g=g===void 0?null:g,Jn.flags|=i,R.memoizedState=Jd(1|d,py(),p,g)}function dh(i,d,p,g){var R=Ro();g=g===void 0?null:g;var P=R.memoizedState.inst;Dr!==null&&g!==null&&sx(g,Dr.memoizedState.deps)?R.memoizedState=Jd(d,P,p,g):(Jn.flags|=i,R.memoizedState=Jd(1|d,P,p,g))}function aE(i,d){hy(8390656,8,i,d)}function iE(i,d){dh(2048,8,i,d)}function sE(i,d){return dh(4,2,i,d)}function lE(i,d){return dh(4,4,i,d)}function cE(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 uE(i,d,p){p=p!=null?p.concat([i]):null,dh(4,4,cE.bind(null,d,i),p)}function vx(){}function dE(i,d){var p=Ro();d=d===void 0?null:d;var g=p.memoizedState;return d!==null&&sx(d,g[1])?g[0]:(p.memoizedState=[i,d],i)}function fE(i,d){var p=Ro();d=d===void 0?null:d;var g=p.memoizedState;if(d!==null&&sx(d,g[1]))return g[0];if(g=i(),Cu){Ie(!0);try{i()}finally{Ie(!1)}}return p.memoizedState=[g,d],g}function bx(i,d,p){return p===void 0||(cc&1073741824)!==0?i.memoizedState=d:(i.memoizedState=p,i=mR(),Jn.lanes|=i,gc|=i,p)}function pE(i,d,p,g){return ln(p,d)?p:Qd.current!==null?(i=bx(i,p,g),ln(i,d)||(zo=!0),i):(cc&42)===0?(zo=!0,i.memoizedState=p):(i=mR(),Jn.lanes|=i,gc|=i,d)}function hE(i,d,p,g,R){var P=X.p;X.p=P!==0&&8>P?P:8;var J=N.T,re={};N.T=re,wx(i,!1,d,p);try{var be=R(),Ye=N.S;if(Ye!==null&&Ye(re,be),be!==null&&typeof be=="object"&&typeof be.then=="function"){var pt=g5(be,g);fh(i,d,pt,oi(i))}else fh(i,d,g,oi(i))}catch(vt){fh(i,d,{then:function(){},status:"rejected",reason:vt},oi())}finally{X.p=P,N.T=J}}function S5(){}function xx(i,d,p,g){if(i.tag!==5)throw Error(r(476));var R=mE(i).queue;hE(i,R,d,Q,p===null?S5:function(){return gE(i),p(g)})}function mE(i){var d=i.memoizedState;if(d!==null)return d;d={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:Q},next:null};var p={};return d.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:p},next:null},i.memoizedState=d,i=i.alternate,i!==null&&(i.memoizedState=d),d}function gE(i){var d=mE(i).next.queue;fh(i,d,{},oi())}function Sx(){return ao($h)}function yE(){return Ro().memoizedState}function vE(){return Ro().memoizedState}function w5(i){for(var d=i.return;d!==null;){switch(d.tag){case 24:case 3:var p=oi();i=sc(p);var g=lc(d,i,p);g!==null&&(ai(g,d,p),ih(g,d,p)),d={cache:X0()},i.payload=d;return}d=d.return}}function C5(i,d,p){var g=oi();p={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},my(i)?xE(d,p):(p=Bd(i,d,p,g),p!==null&&(ai(p,i,g),SE(p,d,g)))}function bE(i,d,p){var g=oi();fh(i,d,p,g)}function fh(i,d,p,g){var R={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(my(i))xE(d,R);else{var P=i.alternate;if(i.lanes===0&&(P===null||P.lanes===0)&&(P=d.lastRenderedReducer,P!==null))try{var J=d.lastRenderedState,re=P(J,p);if(R.hasEagerState=!0,R.eagerState=re,ln(re,J))return Ri(i,d,R,0),Vr===null&&ac(),!1}catch{}finally{}if(p=Bd(i,d,R,g),p!==null)return ai(p,i,g),SE(p,d,g),!0}return!1}function wx(i,d,p,g){if(g={lane:2,revertLane:eS(),action:g,hasEagerState:!1,eagerState:null,next:null},my(i)){if(d)throw Error(r(479))}else d=Bd(i,p,g,2),d!==null&&ai(d,i,2)}function my(i){var d=i.alternate;return i===Jn||d!==null&&d===Jn}function xE(i,d){Xd=cy=!0;var p=i.pending;p===null?d.next=d:(d.next=p.next,p.next=d),i.pending=d}function SE(i,d,p){if((p&4194048)!==0){var g=d.lanes;g&=i.pendingLanes,p|=g,d.lanes=p,Vn(i,p)}}var gy={readContext:ao,use:dy,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useLayoutEffect:xo,useInsertionEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useSyncExternalStore:xo,useId:xo,useHostTransitionStatus:xo,useFormState:xo,useActionState:xo,useOptimistic:xo,useMemoCache:xo,useCacheRefresh:xo},wE={readContext:ao,use:dy,useCallback:function(i,d){return $a().memoizedState=[i,d===void 0?null:d],i},useContext:ao,useEffect:aE,useImperativeHandle:function(i,d,p){p=p!=null?p.concat([i]):null,hy(4194308,4,cE.bind(null,d,i),p)},useLayoutEffect:function(i,d){return hy(4194308,4,i,d)},useInsertionEffect:function(i,d){hy(4,2,i,d)},useMemo:function(i,d){var p=$a();d=d===void 0?null:d;var g=i();if(Cu){Ie(!0);try{i()}finally{Ie(!1)}}return p.memoizedState=[g,d],g},useReducer:function(i,d,p){var g=$a();if(p!==void 0){var R=p(d);if(Cu){Ie(!0);try{p(d)}finally{Ie(!1)}}}else R=d;return g.memoizedState=g.baseState=R,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:R},g.queue=i,i=i.dispatch=C5.bind(null,Jn,i),[g.memoizedState,i]},useRef:function(i){var d=$a();return i={current:i},d.memoizedState=i},useState:function(i){i=gx(i);var d=i.queue,p=bE.bind(null,Jn,d);return d.dispatch=p,[i.memoizedState,p]},useDebugValue:vx,useDeferredValue:function(i,d){var p=$a();return bx(p,i,d)},useTransition:function(){var i=gx(!1);return i=hE.bind(null,Jn,i.queue,!0,!1),$a().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,d,p){var g=Jn,R=$a();if(ee){if(p===void 0)throw Error(r(407));p=p()}else{if(p=d(),Vr===null)throw Error(r(349));(dr&124)!==0||VT(g,d,p)}R.memoizedState=p;var P={value:p,getSnapshot:d};return R.queue=P,aE(WT.bind(null,g,P,i),[i]),g.flags|=2048,Jd(9,py(),HT.bind(null,g,P,p,d),null),p},useId:function(){var i=$a(),d=Vr.identifierPrefix;if(ee){var p=yn,g=Ja;p=(g&~(1<<32-he(g)-1)).toString(32)+p,d="«"+d+"R"+p,p=uy++,0<p&&(d+="H"+p.toString(32)),d+="»"}else p=y5++,d="«"+d+"r"+p.toString(32)+"»";return i.memoizedState=d},useHostTransitionStatus:Sx,useFormState:eE,useActionState:eE,useOptimistic:function(i){var d=$a();d.memoizedState=d.baseState=i;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return d.queue=p,d=wx.bind(null,Jn,!0,p),p.dispatch=d,[i,d]},useMemoCache:px,useCacheRefresh:function(){return $a().memoizedState=w5.bind(null,Jn)}},CE={readContext:ao,use:dy,useCallback:dE,useContext:ao,useEffect:iE,useImperativeHandle:uE,useInsertionEffect:sE,useLayoutEffect:lE,useMemo:fE,useReducer:fy,useRef:oE,useState:function(){return fy(El)},useDebugValue:vx,useDeferredValue:function(i,d){var p=Ro();return pE(p,Dr.memoizedState,i,d)},useTransition:function(){var i=fy(El)[0],d=Ro().memoizedState;return[typeof i=="boolean"?i:uh(i),d]},useSyncExternalStore:UT,useId:yE,useHostTransitionStatus:Sx,useFormState:tE,useActionState:tE,useOptimistic:function(i,d){var p=Ro();return GT(p,Dr,i,d)},useMemoCache:px,useCacheRefresh:vE},k5={readContext:ao,use:dy,useCallback:dE,useContext:ao,useEffect:iE,useImperativeHandle:uE,useInsertionEffect:sE,useLayoutEffect:lE,useMemo:fE,useReducer:mx,useRef:oE,useState:function(){return mx(El)},useDebugValue:vx,useDeferredValue:function(i,d){var p=Ro();return Dr===null?bx(p,i,d):pE(p,Dr.memoizedState,i,d)},useTransition:function(){var i=mx(El)[0],d=Ro().memoizedState;return[typeof i=="boolean"?i:uh(i),d]},useSyncExternalStore:UT,useId:yE,useHostTransitionStatus:Sx,useFormState:rE,useActionState:rE,useOptimistic:function(i,d){var p=Ro();return Dr!==null?GT(p,Dr,i,d):(p.baseState=i,[i,p.queue.dispatch])},useMemoCache:px,useCacheRefresh:vE},ef=null,ph=0;function yy(i){var d=ph;return ph+=1,ef===null&&(ef=[]),jT(ef,i,d)}function hh(i,d){d=d.props.ref,i.ref=d!==void 0?d:null}function vy(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 kE(i){var d=i._init;return d(i._payload)}function TE(i){function d(_e,Pe){if(i){var He=_e.deletions;He===null?(_e.deletions=[Pe],_e.flags|=16):He.push(Pe)}}function p(_e,Pe){if(!i)return null;for(;Pe!==null;)d(_e,Pe),Pe=Pe.sibling;return null}function g(_e){for(var Pe=new Map;_e!==null;)_e.key!==null?Pe.set(_e.key,_e):Pe.set(_e.index,_e),_e=_e.sibling;return Pe}function R(_e,Pe){return _e=Oi(_e,Pe),_e.index=0,_e.sibling=null,_e}function P(_e,Pe,He){return _e.index=He,i?(He=_e.alternate,He!==null?(He=He.index,He<Pe?(_e.flags|=67108866,Pe):He):(_e.flags|=67108866,Pe)):(_e.flags|=1048576,Pe)}function J(_e){return i&&_e.alternate===null&&(_e.flags|=67108866),_e}function re(_e,Pe,He,gt){return Pe===null||Pe.tag!==6?(Pe=Jp(He,_e.mode,gt),Pe.return=_e,Pe):(Pe=R(Pe,He),Pe.return=_e,Pe)}function be(_e,Pe,He,gt){var an=He.type;return an===S?pt(_e,Pe,He.props.children,gt,He.key):Pe!==null&&(Pe.elementType===an||typeof an=="object"&&an!==null&&an.$$typeof===A&&kE(an)===Pe.type)?(Pe=R(Pe,He.props),hh(Pe,He),Pe.return=_e,Pe):(Pe=Hd(He.type,He.key,He.props,null,_e.mode,gt),hh(Pe,He),Pe.return=_e,Pe)}function Ye(_e,Pe,He,gt){return Pe===null||Pe.tag!==4||Pe.stateNode.containerInfo!==He.containerInfo||Pe.stateNode.implementation!==He.implementation?(Pe=eh(He,_e.mode,gt),Pe.return=_e,Pe):(Pe=R(Pe,He.children||[]),Pe.return=_e,Pe)}function pt(_e,Pe,He,gt,an){return Pe===null||Pe.tag!==7?(Pe=Mi(He,_e.mode,gt,an),Pe.return=_e,Pe):(Pe=R(Pe,He),Pe.return=_e,Pe)}function vt(_e,Pe,He){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number"||typeof Pe=="bigint")return Pe=Jp(""+Pe,_e.mode,He),Pe.return=_e,Pe;if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case y:return He=Hd(Pe.type,Pe.key,Pe.props,null,_e.mode,He),hh(He,Pe),He.return=_e,He;case v:return Pe=eh(Pe,_e.mode,He),Pe.return=_e,Pe;case A:var gt=Pe._init;return Pe=gt(Pe._payload),vt(_e,Pe,He)}if(H(Pe)||k(Pe))return Pe=Mi(Pe,_e.mode,He,null),Pe.return=_e,Pe;if(typeof Pe.then=="function")return vt(_e,yy(Pe),He);if(Pe.$$typeof===E)return vt(_e,Is(_e,Pe),He);vy(_e,Pe)}return null}function Ke(_e,Pe,He,gt){var an=Pe!==null?Pe.key:null;if(typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint")return an!==null?null:re(_e,Pe,""+He,gt);if(typeof He=="object"&&He!==null){switch(He.$$typeof){case y:return He.key===an?be(_e,Pe,He,gt):null;case v:return He.key===an?Ye(_e,Pe,He,gt):null;case A:return an=He._init,He=an(He._payload),Ke(_e,Pe,He,gt)}if(H(He)||k(He))return an!==null?null:pt(_e,Pe,He,gt,null);if(typeof He.then=="function")return Ke(_e,Pe,yy(He),gt);if(He.$$typeof===E)return Ke(_e,Pe,Is(_e,He),gt);vy(_e,He)}return null}function Xe(_e,Pe,He,gt,an){if(typeof gt=="string"&>!==""||typeof gt=="number"||typeof gt=="bigint")return _e=_e.get(He)||null,re(Pe,_e,""+gt,an);if(typeof gt=="object"&>!==null){switch(gt.$$typeof){case y:return _e=_e.get(gt.key===null?He:gt.key)||null,be(Pe,_e,gt,an);case v:return _e=_e.get(gt.key===null?He:gt.key)||null,Ye(Pe,_e,gt,an);case A:var er=gt._init;return gt=er(gt._payload),Xe(_e,Pe,He,gt,an)}if(H(gt)||k(gt))return _e=_e.get(He)||null,pt(Pe,_e,gt,an,null);if(typeof gt.then=="function")return Xe(_e,Pe,He,yy(gt),an);if(gt.$$typeof===E)return Xe(_e,Pe,He,Is(Pe,gt),an);vy(Pe,gt)}return null}function In(_e,Pe,He,gt){for(var an=null,er=null,gn=Pe,Pn=Pe=0,_o=null;gn!==null&&Pn<He.length;Pn++){gn.index>Pn?(_o=gn,gn=null):_o=gn.sibling;var pr=Ke(_e,gn,He[Pn],gt);if(pr===null){gn===null&&(gn=_o);break}i&&gn&&pr.alternate===null&&d(_e,gn),Pe=P(pr,Pe,Pn),er===null?an=pr:er.sibling=pr,er=pr,gn=_o}if(Pn===He.length)return p(_e,gn),ee&&ei(_e,Pn),an;if(gn===null){for(;Pn<He.length;Pn++)gn=vt(_e,He[Pn],gt),gn!==null&&(Pe=P(gn,Pe,Pn),er===null?an=gn:er.sibling=gn,er=gn);return ee&&ei(_e,Pn),an}for(gn=g(gn);Pn<He.length;Pn++)_o=Xe(gn,_e,Pn,He[Pn],gt),_o!==null&&(i&&_o.alternate!==null&&gn.delete(_o.key===null?Pn:_o.key),Pe=P(_o,Pe,Pn),er===null?an=_o:er.sibling=_o,er=_o);return i&&gn.forEach(function(Tc){return d(_e,Tc)}),ee&&ei(_e,Pn),an}function Mn(_e,Pe,He,gt){if(He==null)throw Error(r(151));for(var an=null,er=null,gn=Pe,Pn=Pe=0,_o=null,pr=He.next();gn!==null&&!pr.done;Pn++,pr=He.next()){gn.index>Pn?(_o=gn,gn=null):_o=gn.sibling;var Tc=Ke(_e,gn,pr.value,gt);if(Tc===null){gn===null&&(gn=_o);break}i&&gn&&Tc.alternate===null&&d(_e,gn),Pe=P(Tc,Pe,Pn),er===null?an=Tc:er.sibling=Tc,er=Tc,gn=_o}if(pr.done)return p(_e,gn),ee&&ei(_e,Pn),an;if(gn===null){for(;!pr.done;Pn++,pr=He.next())pr=vt(_e,pr.value,gt),pr!==null&&(Pe=P(pr,Pe,Pn),er===null?an=pr:er.sibling=pr,er=pr);return ee&&ei(_e,Pn),an}for(gn=g(gn);!pr.done;Pn++,pr=He.next())pr=Xe(gn,_e,Pn,pr.value,gt),pr!==null&&(i&&pr.alternate!==null&&gn.delete(pr.key===null?Pn:pr.key),Pe=P(pr,Pe,Pn),er===null?an=pr:er.sibling=pr,er=pr);return i&&gn.forEach(function(TF){return d(_e,TF)}),ee&&ei(_e,Pn),an}function jr(_e,Pe,He,gt){if(typeof He=="object"&&He!==null&&He.type===S&&He.key===null&&(He=He.props.children),typeof He=="object"&&He!==null){switch(He.$$typeof){case y:e:{for(var an=He.key;Pe!==null;){if(Pe.key===an){if(an=He.type,an===S){if(Pe.tag===7){p(_e,Pe.sibling),gt=R(Pe,He.props.children),gt.return=_e,_e=gt;break e}}else if(Pe.elementType===an||typeof an=="object"&&an!==null&&an.$$typeof===A&&kE(an)===Pe.type){p(_e,Pe.sibling),gt=R(Pe,He.props),hh(gt,He),gt.return=_e,_e=gt;break e}p(_e,Pe);break}else d(_e,Pe);Pe=Pe.sibling}He.type===S?(gt=Mi(He.props.children,_e.mode,gt,He.key),gt.return=_e,_e=gt):(gt=Hd(He.type,He.key,He.props,null,_e.mode,gt),hh(gt,He),gt.return=_e,_e=gt)}return J(_e);case v:e:{for(an=He.key;Pe!==null;){if(Pe.key===an)if(Pe.tag===4&&Pe.stateNode.containerInfo===He.containerInfo&&Pe.stateNode.implementation===He.implementation){p(_e,Pe.sibling),gt=R(Pe,He.children||[]),gt.return=_e,_e=gt;break e}else{p(_e,Pe);break}else d(_e,Pe);Pe=Pe.sibling}gt=eh(He,_e.mode,gt),gt.return=_e,_e=gt}return J(_e);case A:return an=He._init,He=an(He._payload),jr(_e,Pe,He,gt)}if(H(He))return In(_e,Pe,He,gt);if(k(He)){if(an=k(He),typeof an!="function")throw Error(r(150));return He=an.call(He),Mn(_e,Pe,He,gt)}if(typeof He.then=="function")return jr(_e,Pe,yy(He),gt);if(He.$$typeof===E)return jr(_e,Pe,Is(_e,He),gt);vy(_e,He)}return typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint"?(He=""+He,Pe!==null&&Pe.tag===6?(p(_e,Pe.sibling),gt=R(Pe,He),gt.return=_e,_e=gt):(p(_e,Pe),gt=Jp(He,_e.mode,gt),gt.return=_e,_e=gt),J(_e)):p(_e,Pe)}return function(_e,Pe,He,gt){try{ph=0;var an=jr(_e,Pe,He,gt);return ef=null,an}catch(gn){if(gn===oh||gn===iy)throw gn;var er=Wo(29,gn,null,_e.mode);return er.lanes=gt,er.return=_e,er}finally{}}}var tf=TE(!0),EE=TE(!1),Pi=K(null),Ls=null;function uc(i){var d=i.alternate;le(Do,Do.current&1),le(Pi,i),Ls===null&&(d===null||Qd.current!==null||d.memoizedState!==null)&&(Ls=i)}function RE(i){if(i.tag===22){if(le(Do,Do.current),le(Pi,i),Ls===null){var d=i.alternate;d!==null&&d.memoizedState!==null&&(Ls=i)}}else dc()}function dc(){le(Do,Do.current),le(Pi,Pi.current)}function Rl(i){ne(Pi),Ls===i&&(Ls=null),ne(Do)}var Do=K(0);function by(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==="$?"||fS(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 Cx(i,d,p,g){d=i.memoizedState,p=p(g,d),p=p==null?d:u({},d,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var kx={enqueueSetState:function(i,d,p){i=i._reactInternals;var g=oi(),R=sc(g);R.payload=d,p!=null&&(R.callback=p),d=lc(i,R,g),d!==null&&(ai(d,i,g),ih(d,i,g))},enqueueReplaceState:function(i,d,p){i=i._reactInternals;var g=oi(),R=sc(g);R.tag=1,R.payload=d,p!=null&&(R.callback=p),d=lc(i,R,g),d!==null&&(ai(d,i,g),ih(d,i,g))},enqueueForceUpdate:function(i,d){i=i._reactInternals;var p=oi(),g=sc(p);g.tag=2,d!=null&&(g.callback=d),d=lc(i,g,p),d!==null&&(ai(d,i,p),ih(d,i,p))}};function OE(i,d,p,g,R,P,J){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,P,J):d.prototype&&d.prototype.isPureReactComponent?!gr(p,g)||!gr(R,P):!0}function ME(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&&kx.enqueueReplaceState(d,d.state,null)}function ku(i,d){var p=d;if("ref"in d){p={};for(var g in d)g!=="ref"&&(p[g]=d[g])}if(i=i.defaultProps){p===d&&(p=u({},p));for(var R in i)p[R]===void 0&&(p[R]=i[R])}return p}var xy=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 $E(i){xy(i)}function PE(i){console.error(i)}function DE(i){xy(i)}function Sy(i,d){try{var p=i.onUncaughtError;p(d.value,{componentStack:d.stack})}catch(g){setTimeout(function(){throw g})}}function AE(i,d,p){try{var g=i.onCaughtError;g(p.value,{componentStack:p.stack,errorBoundary:d.tag===1?d.stateNode:null})}catch(R){setTimeout(function(){throw R})}}function Tx(i,d,p){return p=sc(p),p.tag=3,p.payload={element:null},p.callback=function(){Sy(i,d)},p}function jE(i){return i=sc(i),i.tag=3,i}function NE(i,d,p,g){var R=p.type.getDerivedStateFromError;if(typeof R=="function"){var P=g.value;i.payload=function(){return R(P)},i.callback=function(){AE(d,p,g)}}var J=p.stateNode;J!==null&&typeof J.componentDidCatch=="function"&&(i.callback=function(){AE(d,p,g),typeof R!="function"&&(yc===null?yc=new Set([this]):yc.add(this));var re=g.stack;this.componentDidCatch(g.value,{componentStack:re!==null?re:""})})}function T5(i,d,p,g,R){if(p.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(d=p.alternate,d!==null&&Su(d,p,R,!0),p=Pi.current,p!==null){switch(p.tag){case 13:return Ls===null?Kx():p.alternate===null&&io===0&&(io=3),p.flags&=-257,p.flags|=65536,p.lanes=R,g===ex?p.flags|=16384:(d=p.updateQueue,d===null?p.updateQueue=new Set([g]):d.add(g),Xx(i,g,R)),!1;case 22:return p.flags|=65536,g===ex?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)),Xx(i,g,R)),!1}throw Error(r(435,p.tag))}return Xx(i,g,R),Kx(),!1}if(ee)return d=Pi.current,d!==null?((d.flags&65536)===0&&(d.flags|=256),d.flags|=65536,d.lanes=R,g!==Fe&&(i=Error(r(422),{cause:g}),Kr(ra(i,p)))):(g!==Fe&&(d=Error(r(423),{cause:g}),Kr(ra(d,p))),i=i.current.alternate,i.flags|=65536,R&=-R,i.lanes|=R,g=ra(g,p),R=Tx(i.stateNode,g,R),rx(i,R),io!==4&&(io=2)),!1;var P=Error(r(520),{cause:g});if(P=ra(P,p),Sh===null?Sh=[P]:Sh.push(P),io!==4&&(io=2),d===null)return!0;g=ra(g,p),p=d;do{switch(p.tag){case 3:return p.flags|=65536,i=R&-R,p.lanes|=i,i=Tx(p.stateNode,g,i),rx(p,i),!1;case 1:if(d=p.type,P=p.stateNode,(p.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(yc===null||!yc.has(P))))return p.flags|=65536,R&=-R,p.lanes|=R,R=jE(R),NE(R,i,p,g),rx(p,R),!1}p=p.return}while(p!==null);return!1}var IE=Error(r(461)),zo=!1;function qo(i,d,p,g){d.child=i===null?EE(d,null,p,g):tf(d,i.child,p,g)}function LE(i,d,p,g,R){p=p.render;var P=d.ref;if("ref"in g){var J={};for(var re in g)re!=="ref"&&(J[re]=g[re])}else J=g;return Tl(d),g=lx(i,d,p,J,P,R),re=cx(),i!==null&&!zo?(ux(i,d,R),Ol(i,d,R)):(ee&&re&&U(d),d.flags|=1,qo(i,d,g,R),d.child)}function zE(i,d,p,g,R){if(i===null){var P=p.type;return typeof P=="function"&&!Vd(P)&&P.defaultProps===void 0&&p.compare===null?(d.tag=15,d.type=P,FE(i,d,P,g,R)):(i=Hd(p.type,null,g,d,d.mode,R),i.ref=d.ref,i.return=d,d.child=i)}if(P=i.child,!Ax(i,R)){var J=P.memoizedProps;if(p=p.compare,p=p!==null?p:gr,p(J,g)&&i.ref===d.ref)return Ol(i,d,R)}return d.flags|=1,i=Oi(P,g),i.ref=d.ref,i.return=d,d.child=i}function FE(i,d,p,g,R){if(i!==null){var P=i.memoizedProps;if(gr(P,g)&&i.ref===d.ref)if(zo=!1,d.pendingProps=g=P,Ax(i,R))(i.flags&131072)!==0&&(zo=!0);else return d.lanes=i.lanes,Ol(i,d,R)}return Ex(i,d,p,g,R)}function _E(i,d,p){var g=d.pendingProps,R=g.children,P=i!==null?i.memoizedState:null;if(g.mode==="hidden"){if((d.flags&128)!==0){if(g=P!==null?P.baseLanes|p:p,i!==null){for(R=d.child=i.child,P=0;R!==null;)P=P|R.lanes|R.childLanes,R=R.sibling;d.childLanes=P&~g}else d.childLanes=0,d.child=null;return BE(i,d,g,p)}if((p&536870912)!==0)d.memoizedState={baseLanes:0,cachePool:null},i!==null&&ay(d,P!==null?P.cachePool:null),P!==null?FT(d,P):ax(),RE(d);else return d.lanes=d.childLanes=536870912,BE(i,d,P!==null?P.baseLanes|p:p,p)}else P!==null?(ay(d,P.cachePool),FT(d,P),dc(),d.memoizedState=null):(i!==null&&ay(d,null),ax(),dc());return qo(i,d,R,p),d.child}function BE(i,d,p,g){var R=J0();return R=R===null?null:{parent:Po._currentValue,pool:R},d.memoizedState={baseLanes:p,cachePool:R},i!==null&&ay(d,null),ax(),RE(d),i!==null&&Su(i,d,g,!0),null}function wy(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 Ex(i,d,p,g,R){return Tl(d),p=lx(i,d,p,g,void 0,R),g=cx(),i!==null&&!zo?(ux(i,d,R),Ol(i,d,R)):(ee&&g&&U(d),d.flags|=1,qo(i,d,p,R),d.child)}function UE(i,d,p,g,R,P){return Tl(d),d.updateQueue=null,p=BT(d,g,p,R),_T(i),g=cx(),i!==null&&!zo?(ux(i,d,P),Ol(i,d,P)):(ee&&g&&U(d),d.flags|=1,qo(i,d,p,P),d.child)}function VE(i,d,p,g,R){if(Tl(d),d.stateNode===null){var P=Xa,J=p.contextType;typeof J=="object"&&J!==null&&(P=ao(J)),P=new p(g,P),d.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=kx,d.stateNode=P,P._reactInternals=d,P=d.stateNode,P.props=g,P.state=d.memoizedState,P.refs={},tx(d),J=p.contextType,P.context=typeof J=="object"&&J!==null?ao(J):Xa,P.state=d.memoizedState,J=p.getDerivedStateFromProps,typeof J=="function"&&(Cx(d,p,J,g),P.state=d.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(J=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),J!==P.state&&kx.enqueueReplaceState(P,P.state,null),lh(d,g,P,R),sh(),P.state=d.memoizedState),typeof P.componentDidMount=="function"&&(d.flags|=4194308),g=!0}else if(i===null){P=d.stateNode;var re=d.memoizedProps,be=ku(p,re);P.props=be;var Ye=P.context,pt=p.contextType;J=Xa,typeof pt=="object"&&pt!==null&&(J=ao(pt));var vt=p.getDerivedStateFromProps;pt=typeof vt=="function"||typeof P.getSnapshotBeforeUpdate=="function",re=d.pendingProps!==re,pt||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(re||Ye!==J)&&ME(d,P,g,J),ic=!1;var Ke=d.memoizedState;P.state=Ke,lh(d,g,P,R),sh(),Ye=d.memoizedState,re||Ke!==Ye||ic?(typeof vt=="function"&&(Cx(d,p,vt,g),Ye=d.memoizedState),(be=ic||OE(d,p,be,g,Ke,Ye,J))?(pt||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(d.flags|=4194308)):(typeof P.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=g,d.memoizedState=Ye),P.props=g,P.state=Ye,P.context=J,g=be):(typeof P.componentDidMount=="function"&&(d.flags|=4194308),g=!1)}else{P=d.stateNode,nx(i,d),J=d.memoizedProps,pt=ku(p,J),P.props=pt,vt=d.pendingProps,Ke=P.context,Ye=p.contextType,be=Xa,typeof Ye=="object"&&Ye!==null&&(be=ao(Ye)),re=p.getDerivedStateFromProps,(Ye=typeof re=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(J!==vt||Ke!==be)&&ME(d,P,g,be),ic=!1,Ke=d.memoizedState,P.state=Ke,lh(d,g,P,R),sh();var Xe=d.memoizedState;J!==vt||Ke!==Xe||ic||i!==null&&i.dependencies!==null&&Yd(i.dependencies)?(typeof re=="function"&&(Cx(d,p,re,g),Xe=d.memoizedState),(pt=ic||OE(d,p,pt,g,Ke,Xe,be)||i!==null&&i.dependencies!==null&&Yd(i.dependencies))?(Ye||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(g,Xe,be),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(g,Xe,be)),typeof P.componentDidUpdate=="function"&&(d.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof P.componentDidUpdate!="function"||J===i.memoizedProps&&Ke===i.memoizedState||(d.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||J===i.memoizedProps&&Ke===i.memoizedState||(d.flags|=1024),d.memoizedProps=g,d.memoizedState=Xe),P.props=g,P.state=Xe,P.context=be,g=pt):(typeof P.componentDidUpdate!="function"||J===i.memoizedProps&&Ke===i.memoizedState||(d.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||J===i.memoizedProps&&Ke===i.memoizedState||(d.flags|=1024),g=!1)}return P=g,wy(i,d),g=(d.flags&128)!==0,P||g?(P=d.stateNode,p=g&&typeof p.getDerivedStateFromError!="function"?null:P.render(),d.flags|=1,i!==null&&g?(d.child=tf(d,i.child,null,R),d.child=tf(d,null,p,R)):qo(i,d,p,R),d.memoizedState=P.state,i=d.child):i=Ol(i,d,R),i}function HE(i,d,p,g){return ur(),d.flags|=256,qo(i,d,p,g),d.child}var Rx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ox(i){return{baseLanes:i,cachePool:PT()}}function Mx(i,d,p){return i=i!==null?i.childLanes&~p:0,d&&(i|=Di),i}function WE(i,d,p){var g=d.pendingProps,R=!1,P=(d.flags&128)!==0,J;if((J=P)||(J=i!==null&&i.memoizedState===null?!1:(Do.current&2)!==0),J&&(R=!0,d.flags&=-129),J=(d.flags&32)!==0,d.flags&=-33,i===null){if(ee){if(R?uc(d):dc(),ee){var re=Y,be;if(be=re){e:{for(be=re,re=$e;be.nodeType!==8;){if(!re){re=null;break e}if(be=ys(be.nextSibling),be===null){re=null;break e}}re=be}re!==null?(d.memoizedState={dehydrated:re,treeContext:Za!==null?{id:Ja,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},be=Wo(18,null,null,0),be.stateNode=re,be.return=d,d.child=be,L=d,Y=null,be=!0):be=!1}be||We(d)}if(re=d.memoizedState,re!==null&&(re=re.dehydrated,re!==null))return fS(re)?d.lanes=32:d.lanes=536870912,null;Rl(d)}return re=g.children,g=g.fallback,R?(dc(),R=d.mode,re=Cy({mode:"hidden",children:re},R),g=Mi(g,R,p,null),re.return=d,g.return=d,re.sibling=g,d.child=re,R=d.child,R.memoizedState=Ox(p),R.childLanes=Mx(i,J,p),d.memoizedState=Rx,g):(uc(d),$x(d,re))}if(be=i.memoizedState,be!==null&&(re=be.dehydrated,re!==null)){if(P)d.flags&256?(uc(d),d.flags&=-257,d=Px(i,d,p)):d.memoizedState!==null?(dc(),d.child=i.child,d.flags|=128,d=null):(dc(),R=g.fallback,re=d.mode,g=Cy({mode:"visible",children:g.children},re),R=Mi(R,re,p,null),R.flags|=2,g.return=d,R.return=d,g.sibling=R,d.child=g,tf(d,i.child,null,p),g=d.child,g.memoizedState=Ox(p),g.childLanes=Mx(i,J,p),d.memoizedState=Rx,d=R);else if(uc(d),fS(re)){if(J=re.nextSibling&&re.nextSibling.dataset,J)var Ye=J.dgst;J=Ye,g=Error(r(419)),g.stack="",g.digest=J,Kr({value:g,source:null,stack:null}),d=Px(i,d,p)}else if(zo||Su(i,d,p,!1),J=(p&i.childLanes)!==0,zo||J){if(J=Vr,J!==null&&(g=p&-p,g=(g&42)!==0?1:Rn(g),g=(g&(J.suspendedLanes|p))!==0?0:g,g!==0&&g!==be.retryLane))throw be.retryLane=g,hs(i,g),ai(J,i,g),IE;re.data==="$?"||Kx(),d=Px(i,d,p)}else re.data==="$?"?(d.flags|=192,d.child=i.child,d=null):(i=be.treeContext,Y=ys(re.nextSibling),L=d,ee=!0,ve=null,$e=!1,i!==null&&(ya[va++]=Ja,ya[va++]=yn,ya[va++]=Za,Ja=i.id,yn=i.overflow,Za=d),d=$x(d,g.children),d.flags|=4096);return d}return R?(dc(),R=g.fallback,re=d.mode,be=i.child,Ye=be.sibling,g=Oi(be,{mode:"hidden",children:g.children}),g.subtreeFlags=be.subtreeFlags&65011712,Ye!==null?R=Oi(Ye,R):(R=Mi(R,re,p,null),R.flags|=2),R.return=d,g.return=d,g.sibling=R,d.child=g,g=R,R=d.child,re=i.child.memoizedState,re===null?re=Ox(p):(be=re.cachePool,be!==null?(Ye=Po._currentValue,be=be.parent!==Ye?{parent:Ye,pool:Ye}:be):be=PT(),re={baseLanes:re.baseLanes|p,cachePool:be}),R.memoizedState=re,R.childLanes=Mx(i,J,p),d.memoizedState=Rx,g):(uc(d),p=i.child,i=p.sibling,p=Oi(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 $x(i,d){return d=Cy({mode:"visible",children:d},i.mode),d.return=i,i.child=d}function Cy(i,d){return i=Wo(22,i,null,d),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Px(i,d,p){return tf(d,i.child,null,p),i=$x(d,d.pendingProps.children),i.flags|=2,d.memoizedState=null,i}function qE(i,d,p){i.lanes|=d;var g=i.alternate;g!==null&&(g.lanes|=d),th(i.return,d,p)}function Dx(i,d,p,g,R){var P=i.memoizedState;P===null?i.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:R}:(P.isBackwards=d,P.rendering=null,P.renderingStartTime=0,P.last=g,P.tail=p,P.tailMode=R)}function YE(i,d,p){var g=d.pendingProps,R=g.revealOrder,P=g.tail;if(qo(i,d,g.children,p),g=Do.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&&qE(i,p,d);else if(i.tag===19)qE(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(le(Do,g),R){case"forwards":for(p=d.child,R=null;p!==null;)i=p.alternate,i!==null&&by(i)===null&&(R=p),p=p.sibling;p=R,p===null?(R=d.child,d.child=null):(R=p.sibling,p.sibling=null),Dx(d,!1,R,p,P);break;case"backwards":for(p=null,R=d.child,d.child=null;R!==null;){if(i=R.alternate,i!==null&&by(i)===null){d.child=R;break}i=R.sibling,R.sibling=p,p=R,R=i}Dx(d,!0,p,null,P);break;case"together":Dx(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function Ol(i,d,p){if(i!==null&&(d.dependencies=i.dependencies),gc|=d.lanes,(p&d.childLanes)===0)if(i!==null){if(Su(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=Oi(i,i.pendingProps),d.child=p,p.return=d;i.sibling!==null;)i=i.sibling,p=p.sibling=Oi(i,i.pendingProps),p.return=d;p.sibling=null}return d.child}function Ax(i,d){return(i.lanes&d)!==0?!0:(i=i.dependencies,!!(i!==null&&Yd(i)))}function E5(i,d,p){switch(d.tag){case 3:pe(d,d.stateNode.containerInfo),Ma(d,Po,i.memoizedState.cache),ur();break;case 27:case 5:Te(d);break;case 4:pe(d,d.stateNode.containerInfo);break;case 10:Ma(d,d.type,d.memoizedProps.value);break;case 13:var g=d.memoizedState;if(g!==null)return g.dehydrated!==null?(uc(d),d.flags|=128,null):(p&d.child.childLanes)!==0?WE(i,d,p):(uc(d),i=Ol(i,d,p),i!==null?i.sibling:null);uc(d);break;case 19:var R=(i.flags&128)!==0;if(g=(p&d.childLanes)!==0,g||(Su(i,d,p,!1),g=(p&d.childLanes)!==0),R){if(g)return YE(i,d,p);d.flags|=128}if(R=d.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),le(Do,Do.current),g)break;return null;case 22:case 23:return d.lanes=0,_E(i,d,p);case 24:Ma(d,Po,i.memoizedState.cache)}return Ol(i,d,p)}function GE(i,d,p){if(i!==null)if(i.memoizedProps!==d.pendingProps)zo=!0;else{if(!Ax(i,p)&&(d.flags&128)===0)return zo=!1,E5(i,d,p);zo=(i.flags&131072)!==0}else zo=!1,ee&&(d.flags&1048576)!==0&&ry(d,xu,d.index);switch(d.lanes=0,d.tag){case 16:e:{i=d.pendingProps;var g=d.elementType,R=g._init;if(g=R(g._payload),d.type=g,typeof g=="function")Vd(g)?(i=ku(g,i),d.tag=1,d=VE(null,d,g,i,p)):(d.tag=0,d=Ex(null,d,g,i,p));else{if(g!=null){if(R=g.$$typeof,R===M){d.tag=11,d=LE(null,d,g,i,p);break e}else if(R===I){d.tag=14,d=zE(null,d,g,i,p);break e}}throw d=F(g)||g,Error(r(306,d,""))}}return d;case 0:return Ex(i,d,d.type,d.pendingProps,p);case 1:return g=d.type,R=ku(g,d.pendingProps),VE(i,d,g,R,p);case 3:e:{if(pe(d,d.stateNode.containerInfo),i===null)throw Error(r(387));g=d.pendingProps;var P=d.memoizedState;R=P.element,nx(i,d),lh(d,g,null,p);var J=d.memoizedState;if(g=J.cache,Ma(d,Po,g),g!==P.cache&&qd(d,[Po],p,!0),sh(),g=J.element,P.isDehydrated)if(P={element:g,isDehydrated:!1,cache:J.cache},d.updateQueue.baseState=P,d.memoizedState=P,d.flags&256){d=HE(i,d,g,p);break e}else if(g!==R){R=ra(Error(r(424)),d),Kr(R),d=HE(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=ys(i.firstChild),L=d,ee=!0,ve=null,$e=!0,p=EE(d,null,g,p),d.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(ur(),g===R){d=Ol(i,d,p);break e}qo(i,d,g,p)}d=d.child}return d;case 26:return wy(i,d),i===null?(p=ZR(d.type,null,d.pendingProps,null))?d.memoizedState=p:ee||(p=d.type,i=d.pendingProps,g=Ly(se.current).createElement(p),g[on]=d,g[Ln]=i,Go(g,p,i),Ft(g),d.stateNode=g):d.memoizedState=ZR(d.type,i.memoizedProps,d.pendingProps,i.memoizedState),null;case 27:return Te(d),i===null&&ee&&(g=d.stateNode=KR(d.type,d.pendingProps,se.current),L=d,$e=!0,R=Y,xc(d.type)?(pS=R,Y=ys(g.firstChild)):Y=R),qo(i,d,d.pendingProps.children,p),wy(i,d),i===null&&(d.flags|=4194304),d.child;case 5:return i===null&&ee&&((R=g=Y)&&(g=eF(g,d.type,d.pendingProps,$e),g!==null?(d.stateNode=g,L=d,Y=ys(g.firstChild),$e=!1,R=!0):R=!1),R||We(d)),Te(d),R=d.type,P=d.pendingProps,J=i!==null?i.memoizedProps:null,g=P.children,cS(R,P)?g=null:J!==null&&cS(R,J)&&(d.flags|=32),d.memoizedState!==null&&(R=lx(i,d,v5,null,null,p),$h._currentValue=R),wy(i,d),qo(i,d,g,p),d.child;case 6:return i===null&&ee&&((i=p=Y)&&(p=tF(p,d.pendingProps,$e),p!==null?(d.stateNode=p,L=d,Y=null,i=!0):i=!1),i||We(d)),null;case 13:return WE(i,d,p);case 4:return pe(d,d.stateNode.containerInfo),g=d.pendingProps,i===null?d.child=tf(d,null,g,p):qo(i,d,g,p),d.child;case 11:return LE(i,d,d.type,d.pendingProps,p);case 7:return qo(i,d,d.pendingProps,p),d.child;case 8:return qo(i,d,d.pendingProps.children,p),d.child;case 12:return qo(i,d,d.pendingProps.children,p),d.child;case 10:return g=d.pendingProps,Ma(d,d.type,g.value),qo(i,d,g.children,p),d.child;case 9:return R=d.type._context,g=d.pendingProps.children,Tl(d),R=ao(R),g=g(R),d.flags|=1,qo(i,d,g,p),d.child;case 14:return zE(i,d,d.type,d.pendingProps,p);case 15:return FE(i,d,d.type,d.pendingProps,p);case 19:return YE(i,d,p);case 31:return g=d.pendingProps,p=d.mode,g={mode:g.mode,children:g.children},i===null?(p=Cy(g,p),p.ref=d.ref,d.child=p,p.return=d,d=p):(p=Oi(i.child,g),p.ref=d.ref,d.child=p,p.return=d,d=p),d;case 22:return _E(i,d,p);case 24:return Tl(d),g=ao(Po),i===null?(R=J0(),R===null&&(R=Vr,P=X0(),R.pooledCache=P,P.refCount++,P!==null&&(R.pooledCacheLanes|=p),R=P),d.memoizedState={parent:g,cache:R},tx(d),Ma(d,Po,R)):((i.lanes&p)!==0&&(nx(i,d),lh(d,null,null,p),sh()),R=i.memoizedState,P=d.memoizedState,R.parent!==g?(R={parent:g,cache:g},d.memoizedState=R,d.lanes===0&&(d.memoizedState=d.updateQueue.baseState=R),Ma(d,Po,g)):(g=P.cache,Ma(d,Po,g),g!==R.cache&&qd(d,[Po],p,!0))),qo(i,d,d.pendingProps.children,p),d.child;case 29:throw d.pendingProps}throw Error(r(156,d.tag))}function Ml(i){i.flags|=4}function KE(i,d){if(d.type!=="stylesheet"||(d.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!rO(d)){if(d=Pi.current,d!==null&&((dr&4194048)===dr?Ls!==null:(dr&62914560)!==dr&&(dr&536870912)===0||d!==Ls))throw ah=ex,DT;i.flags|=8192}}function ky(i,d){d!==null&&(i.flags|=4),i.flags&16384&&(d=i.tag!==22?_n():536870912,i.lanes|=d,af|=d)}function mh(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 ro(i){var d=i.alternate!==null&&i.alternate.child===i.child,p=0,g=0;if(d)for(var R=i.child;R!==null;)p|=R.lanes|R.childLanes,g|=R.subtreeFlags&65011712,g|=R.flags&65011712,R.return=i,R=R.sibling;else for(R=i.child;R!==null;)p|=R.lanes|R.childLanes,g|=R.subtreeFlags,g|=R.flags,R.return=i,R=R.sibling;return i.subtreeFlags|=g,i.childLanes=p,d}function R5(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 ro(d),null;case 1:return ro(d),null;case 3:return p=d.stateNode,g=null,i!==null&&(g=i.memoizedState.cache),d.memoizedState.cache!==g&&(d.flags|=2048),$i(Po),me(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(Nn(d)?Ml(d):i===null||i.memoizedState.isDehydrated&&(d.flags&256)===0||(d.flags|=1024,Sn())),ro(d),null;case 26:return p=d.memoizedState,i===null?(Ml(d),p!==null?(ro(d),KE(d,p)):(ro(d),d.flags&=-16777217)):p?p!==i.memoizedState?(Ml(d),ro(d),KE(d,p)):(ro(d),d.flags&=-16777217):(i.memoizedProps!==g&&Ml(d),ro(d),d.flags&=-16777217),null;case 27:Ce(d),p=se.current;var R=d.type;if(i!==null&&d.stateNode!=null)i.memoizedProps!==g&&Ml(d);else{if(!g){if(d.stateNode===null)throw Error(r(166));return ro(d),null}i=fe.current,Nn(d)?Ot(d):(i=KR(R,g,p),d.stateNode=i,Ml(d))}return ro(d),null;case 5:if(Ce(d),p=d.type,i!==null&&d.stateNode!=null)i.memoizedProps!==g&&Ml(d);else{if(!g){if(d.stateNode===null)throw Error(r(166));return ro(d),null}if(i=fe.current,Nn(d))Ot(d);else{switch(R=Ly(se.current),i){case 1:i=R.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:i=R.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":i=R.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":i=R.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":i=R.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof g.is=="string"?R.createElement("select",{is:g.is}):R.createElement("select"),g.multiple?i.multiple=!0:g.size&&(i.size=g.size);break;default:i=typeof g.is=="string"?R.createElement(p,{is:g.is}):R.createElement(p)}}i[on]=d,i[Ln]=g;e:for(R=d.child;R!==null;){if(R.tag===5||R.tag===6)i.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===d)break e;for(;R.sibling===null;){if(R.return===null||R.return===d)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}d.stateNode=i;e:switch(Go(i,p,g),p){case"button":case"input":case"select":case"textarea":i=!!g.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ml(d)}}return ro(d),d.flags&=-16777217,null;case 6:if(i&&d.stateNode!=null)i.memoizedProps!==g&&Ml(d);else{if(typeof g!="string"&&d.stateNode===null)throw Error(r(166));if(i=se.current,Nn(d)){if(i=d.stateNode,p=d.memoizedProps,g=null,R=L,R!==null)switch(R.tag){case 27:case 5:g=R.memoizedProps}i[on]=d,i=!!(i.nodeValue===p||g!==null&&g.suppressHydrationWarning===!0||UR(i.nodeValue,p)),i||We(d)}else i=Ly(i).createTextNode(g),i[on]=d,d.stateNode=i}return ro(d),null;case 13:if(g=d.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(R=Nn(d),g!==null&&g.dehydrated!==null){if(i===null){if(!R)throw Error(r(318));if(R=d.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(r(317));R[on]=d}else ur(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;ro(d),R=!1}else R=Sn(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=R),R=!0;if(!R)return d.flags&256?(Rl(d),d):(Rl(d),null)}if(Rl(d),(d.flags&128)!==0)return d.lanes=p,d;if(p=g!==null,i=i!==null&&i.memoizedState!==null,p){g=d.child,R=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(R=g.alternate.memoizedState.cachePool.pool);var P=null;g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(P=g.memoizedState.cachePool.pool),P!==R&&(g.flags|=2048)}return p!==i&&p&&(d.child.flags|=8192),ky(d,d.updateQueue),ro(d),null;case 4:return me(),i===null&&oS(d.stateNode.containerInfo),ro(d),null;case 10:return $i(d.type),ro(d),null;case 19:if(ne(Do),R=d.memoizedState,R===null)return ro(d),null;if(g=(d.flags&128)!==0,P=R.rendering,P===null)if(g)mh(R,!1);else{if(io!==0||i!==null&&(i.flags&128)!==0)for(i=d.child;i!==null;){if(P=by(i),P!==null){for(d.flags|=128,mh(R,!1),i=P.updateQueue,d.updateQueue=i,ky(d,i),d.subtreeFlags=0,i=p,p=d.child;p!==null;)ny(p,i),p=p.sibling;return le(Do,Do.current&1|2),d.child}i=i.sibling}R.tail!==null&&Ae()>Ry&&(d.flags|=128,g=!0,mh(R,!1),d.lanes=4194304)}else{if(!g)if(i=by(P),i!==null){if(d.flags|=128,g=!0,i=i.updateQueue,d.updateQueue=i,ky(d,i),mh(R,!0),R.tail===null&&R.tailMode==="hidden"&&!P.alternate&&!ee)return ro(d),null}else 2*Ae()-R.renderingStartTime>Ry&&p!==536870912&&(d.flags|=128,g=!0,mh(R,!1),d.lanes=4194304);R.isBackwards?(P.sibling=d.child,d.child=P):(i=R.last,i!==null?i.sibling=P:d.child=P,R.last=P)}return R.tail!==null?(d=R.tail,R.rendering=d,R.tail=d.sibling,R.renderingStartTime=Ae(),d.sibling=null,i=Do.current,le(Do,g?i&1|2:i&1),d):(ro(d),null);case 22:case 23:return Rl(d),ix(),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&&(ro(d),d.subtreeFlags&6&&(d.flags|=8192)):ro(d),p=d.updateQueue,p!==null&&ky(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(wu),null;case 24:return p=null,i!==null&&(p=i.memoizedState.cache),d.memoizedState.cache!==p&&(d.flags|=2048),$i(Po),ro(d),null;case 25:return null;case 30:return null}throw Error(r(156,d.tag))}function O5(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 $i(Po),me(),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(Rl(d),i=d.memoizedState,i!==null&&i.dehydrated!==null){if(d.alternate===null)throw Error(r(340));ur()}return i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 19:return ne(Do),null;case 4:return me(),null;case 10:return $i(d.type),null;case 22:case 23:return Rl(d),ix(),i!==null&&ne(wu),i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 24:return $i(Po),null;case 25:return null;default:return null}}function QE(i,d){switch(O(d),d.tag){case 3:$i(Po),me();break;case 26:case 27:case 5:Ce(d);break;case 4:me();break;case 13:Rl(d);break;case 19:ne(Do);break;case 10:$i(d.type);break;case 22:case 23:Rl(d),ix(),i!==null&&ne(wu);break;case 24:$i(Po)}}function gh(i,d){try{var p=d.updateQueue,g=p!==null?p.lastEffect:null;if(g!==null){var R=g.next;p=R;do{if((p.tag&i)===i){g=void 0;var P=p.create,J=p.inst;g=P(),J.destroy=g}p=p.next}while(p!==R)}}catch(re){_r(d,d.return,re)}}function fc(i,d,p){try{var g=d.updateQueue,R=g!==null?g.lastEffect:null;if(R!==null){var P=R.next;g=P;do{if((g.tag&i)===i){var J=g.inst,re=J.destroy;if(re!==void 0){J.destroy=void 0,R=d;var be=p,Ye=re;try{Ye()}catch(pt){_r(R,be,pt)}}}g=g.next}while(g!==P)}}catch(pt){_r(d,d.return,pt)}}function XE(i){var d=i.updateQueue;if(d!==null){var p=i.stateNode;try{zT(d,p)}catch(g){_r(i,i.return,g)}}}function ZE(i,d,p){p.props=ku(i.type,i.memoizedProps),p.state=i.memoizedState;try{p.componentWillUnmount()}catch(g){_r(i,d,g)}}function yh(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(R){_r(i,d,R)}}function zs(i,d){var p=i.ref,g=i.refCleanup;if(p!==null)if(typeof g=="function")try{g()}catch(R){_r(i,d,R)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(R){_r(i,d,R)}else p.current=null}function JE(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(R){_r(i,i.return,R)}}function jx(i,d,p){try{var g=i.stateNode;K5(g,i.type,p,d),g[Ln]=d}catch(R){_r(i,i.return,R)}}function eR(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&xc(i.type)||i.tag===4}function Nx(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||eR(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&&xc(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 Ix(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=Iy));else if(g!==4&&(g===27&&xc(i.type)&&(p=i.stateNode,d=null),i=i.child,i!==null))for(Ix(i,d,p),i=i.sibling;i!==null;)Ix(i,d,p),i=i.sibling}function Ty(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&&xc(i.type)&&(p=i.stateNode),i=i.child,i!==null))for(Ty(i,d,p),i=i.sibling;i!==null;)Ty(i,d,p),i=i.sibling}function tR(i){var d=i.stateNode,p=i.memoizedProps;try{for(var g=i.type,R=d.attributes;R.length;)d.removeAttributeNode(R[0]);Go(d,g,p),d[on]=i,d[Ln]=p}catch(P){_r(i,i.return,P)}}var $l=!1,So=!1,Lx=!1,nR=typeof WeakSet=="function"?WeakSet:Set,Fo=null;function M5(i,d){if(i=i.containerInfo,sS=Vy,i=ha(i),zn(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var R=g.anchorOffset,P=g.focusNode;g=g.focusOffset;try{p.nodeType,P.nodeType}catch{p=null;break e}var J=0,re=-1,be=-1,Ye=0,pt=0,vt=i,Ke=null;t:for(;;){for(var Xe;vt!==p||R!==0&&vt.nodeType!==3||(re=J+R),vt!==P||g!==0&&vt.nodeType!==3||(be=J+g),vt.nodeType===3&&(J+=vt.nodeValue.length),(Xe=vt.firstChild)!==null;)Ke=vt,vt=Xe;for(;;){if(vt===i)break t;if(Ke===p&&++Ye===R&&(re=J),Ke===P&&++pt===g&&(be=J),(Xe=vt.nextSibling)!==null)break;vt=Ke,Ke=vt.parentNode}vt=Xe}p=re===-1||be===-1?null:{start:re,end:be}}else p=null}p=p||{start:0,end:0}}else p=null;for(lS={focusedElem:i,selectionRange:p},Vy=!1,Fo=d;Fo!==null;)if(d=Fo,i=d.child,(d.subtreeFlags&1024)!==0&&i!==null)i.return=d,Fo=i;else for(;Fo!==null;){switch(d=Fo,P=d.alternate,i=d.flags,d.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&P!==null){i=void 0,p=d,R=P.memoizedProps,P=P.memoizedState,g=p.stateNode;try{var In=ku(p.type,R,p.elementType===p.type);i=g.getSnapshotBeforeUpdate(In,P),g.__reactInternalSnapshotBeforeUpdate=i}catch(Mn){_r(p,p.return,Mn)}}break;case 3:if((i&1024)!==0){if(i=d.stateNode.containerInfo,p=i.nodeType,p===9)dS(i);else if(p===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":dS(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,Fo=i;break}Fo=d.return}}function rR(i,d,p){var g=p.flags;switch(p.tag){case 0:case 11:case 15:pc(i,p),g&4&&gh(5,p);break;case 1:if(pc(i,p),g&4)if(i=p.stateNode,d===null)try{i.componentDidMount()}catch(J){_r(p,p.return,J)}else{var R=ku(p.type,d.memoizedProps);d=d.memoizedState;try{i.componentDidUpdate(R,d,i.__reactInternalSnapshotBeforeUpdate)}catch(J){_r(p,p.return,J)}}g&64&&XE(p),g&512&&yh(p,p.return);break;case 3:if(pc(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{zT(i,d)}catch(J){_r(p,p.return,J)}}break;case 27:d===null&&g&4&&tR(p);case 26:case 5:pc(i,p),d===null&&g&4&&JE(p),g&512&&yh(p,p.return);break;case 12:pc(i,p);break;case 13:pc(i,p),g&4&&iR(i,p),g&64&&(i=p.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(p=z5.bind(null,p),nF(i,p))));break;case 22:if(g=p.memoizedState!==null||$l,!g){d=d!==null&&d.memoizedState!==null||So,R=$l;var P=So;$l=g,(So=d)&&!P?hc(i,p,(p.subtreeFlags&8772)!==0):pc(i,p),$l=R,So=P}break;case 30:break;default:pc(i,p)}}function oR(i){var d=i.alternate;d!==null&&(i.alternate=null,oR(d)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(d=i.stateNode,d!==null&&bt(d)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Qr=null,Pa=!1;function Pl(i,d,p){for(p=p.child;p!==null;)aR(i,d,p),p=p.sibling}function aR(i,d,p){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Je,p)}catch{}switch(p.tag){case 26:So||zs(p,d),Pl(i,d,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:So||zs(p,d);var g=Qr,R=Pa;xc(p.type)&&(Qr=p.stateNode,Pa=!1),Pl(i,d,p),Eh(p.stateNode),Qr=g,Pa=R;break;case 5:So||zs(p,d);case 6:if(g=Qr,R=Pa,Qr=null,Pl(i,d,p),Qr=g,Pa=R,Qr!==null)if(Pa)try{(Qr.nodeType===9?Qr.body:Qr.nodeName==="HTML"?Qr.ownerDocument.body:Qr).removeChild(p.stateNode)}catch(P){_r(p,d,P)}else try{Qr.removeChild(p.stateNode)}catch(P){_r(p,d,P)}break;case 18:Qr!==null&&(Pa?(i=Qr,YR(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,p.stateNode),jh(i)):YR(Qr,p.stateNode));break;case 4:g=Qr,R=Pa,Qr=p.stateNode.containerInfo,Pa=!0,Pl(i,d,p),Qr=g,Pa=R;break;case 0:case 11:case 14:case 15:So||fc(2,p,d),So||fc(4,p,d),Pl(i,d,p);break;case 1:So||(zs(p,d),g=p.stateNode,typeof g.componentWillUnmount=="function"&&ZE(p,d,g)),Pl(i,d,p);break;case 21:Pl(i,d,p);break;case 22:So=(g=So)||p.memoizedState!==null,Pl(i,d,p),So=g;break;default:Pl(i,d,p)}}function iR(i,d){if(d.memoizedState===null&&(i=d.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{jh(i)}catch(p){_r(d,d.return,p)}}function $5(i){switch(i.tag){case 13:case 19:var d=i.stateNode;return d===null&&(d=i.stateNode=new nR),d;case 22:return i=i.stateNode,d=i._retryCache,d===null&&(d=i._retryCache=new nR),d;default:throw Error(r(435,i.tag))}}function zx(i,d){var p=$5(i);d.forEach(function(g){var R=F5.bind(null,i,g);p.has(g)||(p.add(g),g.then(R,R))})}function ti(i,d){var p=d.deletions;if(p!==null)for(var g=0;g<p.length;g++){var R=p[g],P=i,J=d,re=J;e:for(;re!==null;){switch(re.tag){case 27:if(xc(re.type)){Qr=re.stateNode,Pa=!1;break e}break;case 5:Qr=re.stateNode,Pa=!1;break e;case 3:case 4:Qr=re.stateNode.containerInfo,Pa=!0;break e}re=re.return}if(Qr===null)throw Error(r(160));aR(P,J,R),Qr=null,Pa=!1,P=R.alternate,P!==null&&(P.return=null),R.return=null}if(d.subtreeFlags&13878)for(d=d.child;d!==null;)sR(d,i),d=d.sibling}var gs=null;function sR(i,d){var p=i.alternate,g=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:ti(d,i),ni(i),g&4&&(fc(3,i,i.return),gh(3,i),fc(5,i,i.return));break;case 1:ti(d,i),ni(i),g&512&&(So||p===null||zs(p,p.return)),g&64&&$l&&(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 R=gs;if(ti(d,i),ni(i),g&512&&(So||p===null||zs(p,p.return)),g&4){var P=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,R=R.ownerDocument||R;t:switch(g){case"title":P=R.getElementsByTagName("title")[0],(!P||P[kt]||P[on]||P.namespaceURI==="http://www.w3.org/2000/svg"||P.hasAttribute("itemprop"))&&(P=R.createElement(g),R.head.insertBefore(P,R.querySelector("head > title"))),Go(P,g,p),P[on]=i,Ft(P),g=P;break e;case"link":var J=tO("link","href",R).get(g+(p.href||""));if(J){for(var re=0;re<J.length;re++)if(P=J[re],P.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&P.getAttribute("rel")===(p.rel==null?null:p.rel)&&P.getAttribute("title")===(p.title==null?null:p.title)&&P.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){J.splice(re,1);break t}}P=R.createElement(g),Go(P,g,p),R.head.appendChild(P);break;case"meta":if(J=tO("meta","content",R).get(g+(p.content||""))){for(re=0;re<J.length;re++)if(P=J[re],P.getAttribute("content")===(p.content==null?null:""+p.content)&&P.getAttribute("name")===(p.name==null?null:p.name)&&P.getAttribute("property")===(p.property==null?null:p.property)&&P.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&P.getAttribute("charset")===(p.charSet==null?null:p.charSet)){J.splice(re,1);break t}}P=R.createElement(g),Go(P,g,p),R.head.appendChild(P);break;default:throw Error(r(468,g))}P[on]=i,Ft(P),g=P}i.stateNode=g}else nO(R,i.type,i.stateNode);else i.stateNode=eO(R,g,i.memoizedProps);else P!==g?(P===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):P.count--,g===null?nO(R,i.type,i.stateNode):eO(R,g,i.memoizedProps)):g===null&&i.stateNode!==null&&jx(i,i.memoizedProps,p.memoizedProps)}break;case 27:ti(d,i),ni(i),g&512&&(So||p===null||zs(p,p.return)),p!==null&&g&4&&jx(i,i.memoizedProps,p.memoizedProps);break;case 5:if(ti(d,i),ni(i),g&512&&(So||p===null||zs(p,p.return)),i.flags&32){R=i.stateNode;try{ls(R,"")}catch(Xe){_r(i,i.return,Xe)}}g&4&&i.stateNode!=null&&(R=i.memoizedProps,jx(i,R,p!==null?p.memoizedProps:R)),g&1024&&(Lx=!0);break;case 6:if(ti(d,i),ni(i),g&4){if(i.stateNode===null)throw Error(r(162));g=i.memoizedProps,p=i.stateNode;try{p.nodeValue=g}catch(Xe){_r(i,i.return,Xe)}}break;case 3:if(_y=null,R=gs,gs=zy(d.containerInfo),ti(d,i),gs=R,ni(i),g&4&&p!==null&&p.memoizedState.isDehydrated)try{jh(d.containerInfo)}catch(Xe){_r(i,i.return,Xe)}Lx&&(Lx=!1,lR(i));break;case 4:g=gs,gs=zy(i.stateNode.containerInfo),ti(d,i),ni(i),gs=g;break;case 12:ti(d,i),ni(i);break;case 13:ti(d,i),ni(i),i.child.flags&8192&&i.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(Hx=Ae()),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,zx(i,g)));break;case 22:R=i.memoizedState!==null;var be=p!==null&&p.memoizedState!==null,Ye=$l,pt=So;if($l=Ye||R,So=pt||be,ti(d,i),So=pt,$l=Ye,ni(i),g&8192)e:for(d=i.stateNode,d._visibility=R?d._visibility&-2:d._visibility|1,R&&(p===null||be||$l||So||Tu(i)),p=null,d=i;;){if(d.tag===5||d.tag===26){if(p===null){be=p=d;try{if(P=be.stateNode,R)J=P.style,typeof J.setProperty=="function"?J.setProperty("display","none","important"):J.display="none";else{re=be.stateNode;var vt=be.memoizedProps.style,Ke=vt!=null&&vt.hasOwnProperty("display")?vt.display:null;re.style.display=Ke==null||typeof Ke=="boolean"?"":(""+Ke).trim()}}catch(Xe){_r(be,be.return,Xe)}}}else if(d.tag===6){if(p===null){be=d;try{be.stateNode.nodeValue=R?"":be.memoizedProps}catch(Xe){_r(be,be.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,zx(i,p))));break;case 19:ti(d,i),ni(i),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,zx(i,g)));break;case 30:break;case 21:break;default:ti(d,i),ni(i)}}function ni(i){var d=i.flags;if(d&2){try{for(var p,g=i.return;g!==null;){if(eR(g)){p=g;break}g=g.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var R=p.stateNode,P=Nx(i);Ty(i,P,R);break;case 5:var J=p.stateNode;p.flags&32&&(ls(J,""),p.flags&=-33);var re=Nx(i);Ty(i,re,J);break;case 3:case 4:var be=p.stateNode.containerInfo,Ye=Nx(i);Ix(i,Ye,be);break;default:throw Error(r(161))}}catch(pt){_r(i,i.return,pt)}i.flags&=-3}d&4096&&(i.flags&=-4097)}function lR(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var d=i;lR(d),d.tag===5&&d.flags&1024&&d.stateNode.reset(),i=i.sibling}}function pc(i,d){if(d.subtreeFlags&8772)for(d=d.child;d!==null;)rR(i,d.alternate,d),d=d.sibling}function Tu(i){for(i=i.child;i!==null;){var d=i;switch(d.tag){case 0:case 11:case 14:case 15:fc(4,d,d.return),Tu(d);break;case 1:zs(d,d.return);var p=d.stateNode;typeof p.componentWillUnmount=="function"&&ZE(d,d.return,p),Tu(d);break;case 27:Eh(d.stateNode);case 26:case 5:zs(d,d.return),Tu(d);break;case 22:d.memoizedState===null&&Tu(d);break;case 30:Tu(d);break;default:Tu(d)}i=i.sibling}}function hc(i,d,p){for(p=p&&(d.subtreeFlags&8772)!==0,d=d.child;d!==null;){var g=d.alternate,R=i,P=d,J=P.flags;switch(P.tag){case 0:case 11:case 15:hc(R,P,p),gh(4,P);break;case 1:if(hc(R,P,p),g=P,R=g.stateNode,typeof R.componentDidMount=="function")try{R.componentDidMount()}catch(Ye){_r(g,g.return,Ye)}if(g=P,R=g.updateQueue,R!==null){var re=g.stateNode;try{var be=R.shared.hiddenCallbacks;if(be!==null)for(R.shared.hiddenCallbacks=null,R=0;R<be.length;R++)LT(be[R],re)}catch(Ye){_r(g,g.return,Ye)}}p&&J&64&&XE(P),yh(P,P.return);break;case 27:tR(P);case 26:case 5:hc(R,P,p),p&&g===null&&J&4&&JE(P),yh(P,P.return);break;case 12:hc(R,P,p);break;case 13:hc(R,P,p),p&&J&4&&iR(R,P);break;case 22:P.memoizedState===null&&hc(R,P,p),yh(P,P.return);break;case 30:break;default:hc(R,P,p)}d=d.sibling}}function Fx(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&&nh(p))}function _x(i,d){i=null,d.alternate!==null&&(i=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==i&&(d.refCount++,i!=null&&nh(i))}function Fs(i,d,p,g){if(d.subtreeFlags&10256)for(d=d.child;d!==null;)cR(i,d,p,g),d=d.sibling}function cR(i,d,p,g){var R=d.flags;switch(d.tag){case 0:case 11:case 15:Fs(i,d,p,g),R&2048&&gh(9,d);break;case 1:Fs(i,d,p,g);break;case 3:Fs(i,d,p,g),R&2048&&(i=null,d.alternate!==null&&(i=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==i&&(d.refCount++,i!=null&&nh(i)));break;case 12:if(R&2048){Fs(i,d,p,g),i=d.stateNode;try{var P=d.memoizedProps,J=P.id,re=P.onPostCommit;typeof re=="function"&&re(J,d.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(be){_r(d,d.return,be)}}else Fs(i,d,p,g);break;case 13:Fs(i,d,p,g);break;case 23:break;case 22:P=d.stateNode,J=d.alternate,d.memoizedState!==null?P._visibility&2?Fs(i,d,p,g):vh(i,d):P._visibility&2?Fs(i,d,p,g):(P._visibility|=2,nf(i,d,p,g,(d.subtreeFlags&10256)!==0)),R&2048&&Fx(J,d);break;case 24:Fs(i,d,p,g),R&2048&&_x(d.alternate,d);break;default:Fs(i,d,p,g)}}function nf(i,d,p,g,R){for(R=R&&(d.subtreeFlags&10256)!==0,d=d.child;d!==null;){var P=i,J=d,re=p,be=g,Ye=J.flags;switch(J.tag){case 0:case 11:case 15:nf(P,J,re,be,R),gh(8,J);break;case 23:break;case 22:var pt=J.stateNode;J.memoizedState!==null?pt._visibility&2?nf(P,J,re,be,R):vh(P,J):(pt._visibility|=2,nf(P,J,re,be,R)),R&&Ye&2048&&Fx(J.alternate,J);break;case 24:nf(P,J,re,be,R),R&&Ye&2048&&_x(J.alternate,J);break;default:nf(P,J,re,be,R)}d=d.sibling}}function vh(i,d){if(d.subtreeFlags&10256)for(d=d.child;d!==null;){var p=i,g=d,R=g.flags;switch(g.tag){case 22:vh(p,g),R&2048&&Fx(g.alternate,g);break;case 24:vh(p,g),R&2048&&_x(g.alternate,g);break;default:vh(p,g)}d=d.sibling}}var bh=8192;function rf(i){if(i.subtreeFlags&bh)for(i=i.child;i!==null;)uR(i),i=i.sibling}function uR(i){switch(i.tag){case 26:rf(i),i.flags&bh&&i.memoizedState!==null&&mF(gs,i.memoizedState,i.memoizedProps);break;case 5:rf(i);break;case 3:case 4:var d=gs;gs=zy(i.stateNode.containerInfo),rf(i),gs=d;break;case 22:i.memoizedState===null&&(d=i.alternate,d!==null&&d.memoizedState!==null?(d=bh,bh=16777216,rf(i),bh=d):rf(i));break;default:rf(i)}}function dR(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 xh(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];Fo=g,pR(g,i)}dR(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)fR(i),i=i.sibling}function fR(i){switch(i.tag){case 0:case 11:case 15:xh(i),i.flags&2048&&fc(9,i,i.return);break;case 3:xh(i);break;case 12:xh(i);break;case 22:var d=i.stateNode;i.memoizedState!==null&&d._visibility&2&&(i.return===null||i.return.tag!==13)?(d._visibility&=-3,Ey(i)):xh(i);break;default:xh(i)}}function Ey(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];Fo=g,pR(g,i)}dR(i)}for(i=i.child;i!==null;){switch(d=i,d.tag){case 0:case 11:case 15:fc(8,d,d.return),Ey(d);break;case 22:p=d.stateNode,p._visibility&2&&(p._visibility&=-3,Ey(d));break;default:Ey(d)}i=i.sibling}}function pR(i,d){for(;Fo!==null;){var p=Fo;switch(p.tag){case 0:case 11:case 15:fc(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:nh(p.memoizedState.cache)}if(g=p.child,g!==null)g.return=p,Fo=g;else e:for(p=i;Fo!==null;){g=Fo;var R=g.sibling,P=g.return;if(oR(g),g===p){Fo=null;break e}if(R!==null){R.return=P,Fo=R;break e}Fo=P}}}var P5={getCacheForType:function(i){var d=ao(Po),p=d.data.get(i);return p===void 0&&(p=i(),d.data.set(i,p)),p}},D5=typeof WeakMap=="function"?WeakMap:Map,kr=0,Vr=null,rr=null,dr=0,Tr=0,ri=null,mc=!1,of=!1,Bx=!1,Dl=0,io=0,gc=0,Eu=0,Ux=0,Di=0,af=0,Sh=null,Da=null,Vx=!1,Hx=0,Ry=1/0,Oy=null,yc=null,Yo=0,vc=null,sf=null,lf=0,Wx=0,qx=null,hR=null,wh=0,Yx=null;function oi(){if((kr&2)!==0&&dr!==0)return dr&-dr;if(N.T!==null){var i=Gd;return i!==0?i:eS()}return $t()}function mR(){Di===0&&(Di=(dr&536870912)===0||ee?$n():536870912);var i=Pi.current;return i!==null&&(i.flags|=32),Di}function ai(i,d,p){(i===Vr&&(Tr===2||Tr===9)||i.cancelPendingCommit!==null)&&(cf(i,0),bc(i,dr,Di,!1)),Jt(i,p),((kr&2)===0||i!==Vr)&&(i===Vr&&((kr&2)===0&&(Eu|=p),io===4&&bc(i,dr,Di,!1)),_s(i))}function gR(i,d,p){if((kr&6)!==0)throw Error(r(327));var g=!p&&(d&124)===0&&(d&i.expiredLanes)===0||qt(i,d),R=g?N5(i,d):Qx(i,d,!0),P=g;do{if(R===0){of&&!g&&bc(i,d,0,!1);break}else{if(p=i.current.alternate,P&&!A5(p)){R=Qx(i,d,!1),P=!1;continue}if(R===2){if(P=d,i.errorRecoveryDisabledLanes&P)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;R=Sh;var be=re.current.memoizedState.isDehydrated;if(be&&(cf(re,J).flags|=256),J=Qx(re,J,!1),J!==2){if(Bx&&!be){re.errorRecoveryDisabledLanes|=P,Eu|=P,R=4;break e}P=Da,Da=R,P!==null&&(Da===null?Da=P:Da.push.apply(Da,P))}R=J}if(P=!1,R!==2)continue}}if(R===1){cf(i,0),bc(i,d,0,!0);break}e:{switch(g=i,P=R,P){case 0:case 1:throw Error(r(345));case 4:if((d&4194048)!==d)break;case 6:bc(g,d,Di,!mc);break e;case 2:Da=null;break;case 3:case 5:break;default:throw Error(r(329))}if((d&62914560)===d&&(R=Hx+300-Ae(),10<R)){if(bc(g,d,Di,!mc),jt(g,0,!0)!==0)break e;g.timeoutHandle=WR(yR.bind(null,g,p,Da,Oy,Vx,d,Di,Eu,af,mc,P,2,-0,0),R);break e}yR(g,p,Da,Oy,Vx,d,Di,Eu,af,mc,P,0,-0,0)}}break}while(!0);_s(i)}function yR(i,d,p,g,R,P,J,re,be,Ye,pt,vt,Ke,Xe){if(i.timeoutHandle=-1,vt=d.subtreeFlags,(vt&8192||(vt&16785408)===16785408)&&(Mh={stylesheets:null,count:0,unsuspend:hF},uR(d),vt=gF(),vt!==null)){i.cancelPendingCommit=vt(kR.bind(null,i,d,P,p,g,R,J,re,be,pt,1,Ke,Xe)),bc(i,P,J,!Ye);return}kR(i,d,P,p,g,R,J,re,be)}function A5(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 R=p[g],P=R.getSnapshot;R=R.value;try{if(!ln(P(),R))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 bc(i,d,p,g){d&=~Ux,d&=~Eu,i.suspendedLanes|=d,i.pingedLanes&=~d,g&&(i.warmLanes|=d),g=i.expirationTimes;for(var R=d;0<R;){var P=31-he(R),J=1<<P;g[P]=-1,R&=~J}p!==0&&xe(i,p,d)}function My(){return(kr&6)===0?(Ch(0),!1):!0}function Gx(){if(rr!==null){if(Tr===0)var i=rr.return;else i=rr,Oa=Ra=null,dx(i),ef=null,ph=0,i=rr;for(;i!==null;)QE(i.alternate,i),i=i.return;rr=null}}function cf(i,d){var p=i.timeoutHandle;p!==-1&&(i.timeoutHandle=-1,X5(p)),p=i.cancelPendingCommit,p!==null&&(i.cancelPendingCommit=null,p()),Gx(),Vr=i,rr=p=Oi(i.current,null),dr=d,Tr=0,ri=null,mc=!1,of=qt(i,d),Bx=!1,af=Di=Ux=Eu=gc=io=0,Da=Sh=null,Vx=!1,(d&8)!==0&&(d|=d&32);var g=i.entangledLanes;if(g!==0)for(i=i.entanglements,g&=d;0<g;){var R=31-he(g),P=1<<R;d|=i[R],g&=~P}return Dl=d,ac(),p}function vR(i,d){Jn=null,N.H=gy,d===oh||d===iy?(d=NT(),Tr=3):d===DT?(d=NT(),Tr=4):Tr=d===IE?8:d!==null&&typeof d=="object"&&typeof d.then=="function"?6:1,ri=d,rr===null&&(io=1,Sy(i,ra(d,i.current)))}function bR(){var i=N.H;return N.H=gy,i===null?gy:i}function xR(){var i=N.A;return N.A=P5,i}function Kx(){io=4,mc||(dr&4194048)!==dr&&Pi.current!==null||(of=!0),(gc&134217727)===0&&(Eu&134217727)===0||Vr===null||bc(Vr,dr,Di,!1)}function Qx(i,d,p){var g=kr;kr|=2;var R=bR(),P=xR();(Vr!==i||dr!==d)&&(Oy=null,cf(i,d)),d=!1;var J=io;e:do try{if(Tr!==0&&rr!==null){var re=rr,be=ri;switch(Tr){case 8:Gx(),J=6;break e;case 3:case 2:case 9:case 6:Pi.current===null&&(d=!0);var Ye=Tr;if(Tr=0,ri=null,uf(i,re,be,Ye),p&&of){J=0;break e}break;default:Ye=Tr,Tr=0,ri=null,uf(i,re,be,Ye)}}j5(),J=io;break}catch(pt){vR(i,pt)}while(!0);return d&&i.shellSuspendCounter++,Oa=Ra=null,kr=g,N.H=R,N.A=P,rr===null&&(Vr=null,dr=0,ac()),J}function j5(){for(;rr!==null;)SR(rr)}function N5(i,d){var p=kr;kr|=2;var g=bR(),R=xR();Vr!==i||dr!==d?(Oy=null,Ry=Ae()+500,cf(i,d)):of=qt(i,d);e:do try{if(Tr!==0&&rr!==null){d=rr;var P=ri;t:switch(Tr){case 1:Tr=0,ri=null,uf(i,d,P,1);break;case 2:case 9:if(AT(P)){Tr=0,ri=null,wR(d);break}d=function(){Tr!==2&&Tr!==9||Vr!==i||(Tr=7),_s(i)},P.then(d,d);break e;case 3:Tr=7;break e;case 4:Tr=5;break e;case 7:AT(P)?(Tr=0,ri=null,wR(d)):(Tr=0,ri=null,uf(i,d,P,7));break;case 5:var J=null;switch(rr.tag){case 26:J=rr.memoizedState;case 5:case 27:var re=rr;if(!J||rO(J)){Tr=0,ri=null;var be=re.sibling;if(be!==null)rr=be;else{var Ye=re.return;Ye!==null?(rr=Ye,$y(Ye)):rr=null}break t}}Tr=0,ri=null,uf(i,d,P,5);break;case 6:Tr=0,ri=null,uf(i,d,P,6);break;case 8:Gx(),io=6;break e;default:throw Error(r(462))}}I5();break}catch(pt){vR(i,pt)}while(!0);return Oa=Ra=null,N.H=g,N.A=R,kr=p,rr!==null?0:(Vr=null,dr=0,ac(),io)}function I5(){for(;rr!==null&&!Ge();)SR(rr)}function SR(i){var d=GE(i.alternate,i,Dl);i.memoizedProps=i.pendingProps,d===null?$y(i):rr=d}function wR(i){var d=i,p=d.alternate;switch(d.tag){case 15:case 0:d=UE(p,d,d.pendingProps,d.type,void 0,dr);break;case 11:d=UE(p,d,d.pendingProps,d.type.render,d.ref,dr);break;case 5:dx(d);default:QE(p,d),d=rr=ny(d,Dl),d=GE(p,d,Dl)}i.memoizedProps=i.pendingProps,d===null?$y(i):rr=d}function uf(i,d,p,g){Oa=Ra=null,dx(d),ef=null,ph=0;var R=d.return;try{if(T5(i,R,d,p,dr)){io=1,Sy(i,ra(p,i.current)),rr=null;return}}catch(P){if(R!==null)throw rr=R,P;io=1,Sy(i,ra(p,i.current)),rr=null;return}d.flags&32768?(ee||g===1?i=!0:of||(dr&536870912)!==0?i=!1:(mc=i=!0,(g===2||g===9||g===3||g===6)&&(g=Pi.current,g!==null&&g.tag===13&&(g.flags|=16384))),CR(d,i)):$y(d)}function $y(i){var d=i;do{if((d.flags&32768)!==0){CR(d,mc);return}i=d.return;var p=R5(d.alternate,d,Dl);if(p!==null){rr=p;return}if(d=d.sibling,d!==null){rr=d;return}rr=d=i}while(d!==null);io===0&&(io=5)}function CR(i,d){do{var p=O5(i.alternate,i);if(p!==null){p.flags&=32767,rr=p;return}if(p=i.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!d&&(i=i.sibling,i!==null)){rr=i;return}rr=i=p}while(i!==null);io=6,rr=null}function kR(i,d,p,g,R,P,J,re,be){i.cancelPendingCommit=null;do Py();while(Yo!==0);if((kr&6)!==0)throw Error(r(327));if(d!==null){if(d===i.current)throw Error(r(177));if(P=d.lanes|d.childLanes,P|=yu,An(i,p,P,J,re,be),i===Vr&&(rr=Vr=null,dr=0),sf=d,vc=i,lf=p,Wx=P,qx=R,hR=g,(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,_5(et,function(){return MR(),null})):(i.callbackNode=null,i.callbackPriority=0),g=(d.flags&13878)!==0,(d.subtreeFlags&13878)!==0||g){g=N.T,N.T=null,R=X.p,X.p=2,J=kr,kr|=4;try{M5(i,d,p)}finally{kr=J,X.p=R,N.T=g}}Yo=1,TR(),ER(),RR()}}function TR(){if(Yo===1){Yo=0;var i=vc,d=sf,p=(d.flags&13878)!==0;if((d.subtreeFlags&13878)!==0||p){p=N.T,N.T=null;var g=X.p;X.p=2;var R=kr;kr|=4;try{sR(d,i);var P=lS,J=ha(i.containerInfo),re=P.focusedElem,be=P.selectionRange;if(J!==re&&re&&re.ownerDocument&&Ka(re.ownerDocument.documentElement,re)){if(be!==null&&zn(re)){var Ye=be.start,pt=be.end;if(pt===void 0&&(pt=Ye),"selectionStart"in re)re.selectionStart=Ye,re.selectionEnd=Math.min(pt,re.value.length);else{var vt=re.ownerDocument||document,Ke=vt&&vt.defaultView||window;if(Ke.getSelection){var Xe=Ke.getSelection(),In=re.textContent.length,Mn=Math.min(be.start,In),jr=be.end===void 0?Mn:Math.min(be.end,In);!Xe.extend&&Mn>jr&&(J=jr,jr=Mn,Mn=J);var _e=Hr(re,Mn),Pe=Hr(re,jr);if(_e&&Pe&&(Xe.rangeCount!==1||Xe.anchorNode!==_e.node||Xe.anchorOffset!==_e.offset||Xe.focusNode!==Pe.node||Xe.focusOffset!==Pe.offset)){var He=vt.createRange();He.setStart(_e.node,_e.offset),Xe.removeAllRanges(),Mn>jr?(Xe.addRange(He),Xe.extend(Pe.node,Pe.offset)):(He.setEnd(Pe.node,Pe.offset),Xe.addRange(He))}}}}for(vt=[],Xe=re;Xe=Xe.parentNode;)Xe.nodeType===1&&vt.push({element:Xe,left:Xe.scrollLeft,top:Xe.scrollTop});for(typeof re.focus=="function"&&re.focus(),re=0;re<vt.length;re++){var gt=vt[re];gt.element.scrollLeft=gt.left,gt.element.scrollTop=gt.top}}Vy=!!sS,lS=sS=null}finally{kr=R,X.p=g,N.T=p}}i.current=d,Yo=2}}function ER(){if(Yo===2){Yo=0;var i=vc,d=sf,p=(d.flags&8772)!==0;if((d.subtreeFlags&8772)!==0||p){p=N.T,N.T=null;var g=X.p;X.p=2;var R=kr;kr|=4;try{rR(i,d.alternate,d)}finally{kr=R,X.p=g,N.T=p}}Yo=3}}function RR(){if(Yo===4||Yo===3){Yo=0,Be();var i=vc,d=sf,p=lf,g=hR;(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?Yo=5:(Yo=0,sf=vc=null,OR(i,i.pendingLanes));var R=i.pendingLanes;if(R===0&&(yc=null),en(p),d=d.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Je,d,void 0,(d.current.flags&128)===128)}catch{}if(g!==null){d=N.T,R=X.p,X.p=2,N.T=null;try{for(var P=i.onRecoverableError,J=0;J<g.length;J++){var re=g[J];P(re.value,{componentStack:re.stack})}}finally{N.T=d,X.p=R}}(lf&3)!==0&&Py(),_s(i),R=i.pendingLanes,(p&4194090)!==0&&(R&42)!==0?i===Yx?wh++:(wh=0,Yx=i):wh=0,Ch(0)}}function OR(i,d){(i.pooledCacheLanes&=d)===0&&(d=i.pooledCache,d!=null&&(i.pooledCache=null,nh(d)))}function Py(i){return TR(),ER(),RR(),MR()}function MR(){if(Yo!==5)return!1;var i=vc,d=Wx;Wx=0;var p=en(lf),g=N.T,R=X.p;try{X.p=32>p?32:p,N.T=null,p=qx,qx=null;var P=vc,J=lf;if(Yo=0,sf=vc=null,lf=0,(kr&6)!==0)throw Error(r(331));var re=kr;if(kr|=4,fR(P.current),cR(P,P.current,J,p),kr=re,Ch(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Je,P)}catch{}return!0}finally{X.p=R,N.T=g,OR(i,d)}}function $R(i,d,p){d=ra(p,d),d=Tx(i.stateNode,d,2),i=lc(i,d,2),i!==null&&(Jt(i,2),_s(i))}function _r(i,d,p){if(i.tag===3)$R(i,i,p);else for(;d!==null;){if(d.tag===3){$R(d,i,p);break}else if(d.tag===1){var g=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(yc===null||!yc.has(g))){i=ra(p,i),p=jE(2),g=lc(d,p,2),g!==null&&(NE(p,g,d,i),Jt(g,2),_s(g));break}}d=d.return}}function Xx(i,d,p){var g=i.pingCache;if(g===null){g=i.pingCache=new D5;var R=new Set;g.set(d,R)}else R=g.get(d),R===void 0&&(R=new Set,g.set(d,R));R.has(p)||(Bx=!0,R.add(p),i=L5.bind(null,i,d,p),d.then(i,i))}function L5(i,d,p){var g=i.pingCache;g!==null&&g.delete(d),i.pingedLanes|=i.suspendedLanes&p,i.warmLanes&=~p,Vr===i&&(dr&p)===p&&(io===4||io===3&&(dr&62914560)===dr&&300>Ae()-Hx?(kr&2)===0&&cf(i,0):Ux|=p,af===dr&&(af=0)),_s(i)}function PR(i,d){d===0&&(d=_n()),i=hs(i,d),i!==null&&(Jt(i,d),_s(i))}function z5(i){var d=i.memoizedState,p=0;d!==null&&(p=d.retryLane),PR(i,p)}function F5(i,d){var p=0;switch(i.tag){case 13:var g=i.stateNode,R=i.memoizedState;R!==null&&(p=R.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),PR(i,p)}function _5(i,d){return ce(i,d)}var Dy=null,df=null,Zx=!1,Ay=!1,Jx=!1,Ru=0;function _s(i){i!==df&&i.next===null&&(df===null?Dy=df=i:df=df.next=i),Ay=!0,Zx||(Zx=!0,U5())}function Ch(i,d){if(!Jx&&Ay){Jx=!0;do for(var p=!1,g=Dy;g!==null;){if(i!==0){var R=g.pendingLanes;if(R===0)var P=0;else{var J=g.suspendedLanes,re=g.pingedLanes;P=(1<<31-he(42|i)+1)-1,P&=R&~(J&~re),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(p=!0,NR(g,P))}else P=dr,P=jt(g,g===Vr?P:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(P&3)===0||qt(g,P)||(p=!0,NR(g,P));g=g.next}while(p);Jx=!1}}function B5(){DR()}function DR(){Ay=Zx=!1;var i=0;Ru!==0&&(Q5()&&(i=Ru),Ru=0);for(var d=Ae(),p=null,g=Dy;g!==null;){var R=g.next,P=AR(g,d);P===0?(g.next=null,p===null?Dy=R:p.next=R,R===null&&(df=p)):(p=g,(i!==0||(P&3)!==0)&&(Ay=!0)),g=R}Ch(i)}function AR(i,d){for(var p=i.suspendedLanes,g=i.pingedLanes,R=i.expirationTimes,P=i.pendingLanes&-62914561;0<P;){var J=31-he(P),re=1<<J,be=R[J];be===-1?((re&p)===0||(re&g)!==0)&&(R[J]=mn(re,d)):be<=d&&(i.expiredLanes|=re),P&=~re}if(d=Vr,p=dr,p=jt(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&&we(g),i.callbackNode=null,i.callbackPriority=0;if((p&3)===0||qt(i,p)){if(d=p&-p,d===i.callbackPriority)return d;switch(g!==null&&we(g),en(p)){case 2:case 8:p=Ne;break;case 32:p=et;break;case 268435456:p=Wt;break;default:p=et}return g=jR.bind(null,i),p=ce(p,g),i.callbackPriority=d,i.callbackNode=p,d}return g!==null&&g!==null&&we(g),i.callbackPriority=2,i.callbackNode=null,2}function jR(i,d){if(Yo!==0&&Yo!==5)return i.callbackNode=null,i.callbackPriority=0,null;var p=i.callbackNode;if(Py()&&i.callbackNode!==p)return null;var g=dr;return g=jt(i,i===Vr?g:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),g===0?null:(gR(i,g,d),AR(i,Ae()),i.callbackNode!=null&&i.callbackNode===p?jR.bind(null,i):null)}function NR(i,d){if(Py())return null;gR(i,d,!0)}function U5(){Z5(function(){(kr&6)!==0?ce(lt,B5):DR()})}function eS(){return Ru===0&&(Ru=$n()),Ru}function IR(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:ml(""+i)}function LR(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 V5(i,d,p,g,R){if(d==="submit"&&p&&p.stateNode===R){var P=IR((R[Ln]||null).action),J=g.submitter;J&&(d=(d=J[Ln]||null)?IR(d.formAction):J.getAttribute("formAction"),d!==null&&(P=d,J=null));var re=new to("action","action",null,g,R);i.push({event:re,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(Ru!==0){var be=J?LR(R,J):new FormData(R);xx(p,{pending:!0,data:be,method:R.method,action:P},null,be)}}else typeof P=="function"&&(re.preventDefault(),be=J?LR(R,J):new FormData(R),xx(p,{pending:!0,data:be,method:R.method,action:P},P,be))},currentTarget:R}]})}}for(var tS=0;tS<_d.length;tS++){var nS=_d[tS],H5=nS.toLowerCase(),W5=nS[0].toUpperCase()+nS.slice(1);Qa(H5,"on"+W5)}Qa(Jg,"onAnimationEnd"),Qa(ey,"onAnimationIteration"),Qa(ty,"onAnimationStart"),Qa("dblclick","onDoubleClick"),Qa("focusin","onFocus"),Qa("focusout","onBlur"),Qa(Kp,"onTransitionRun"),Qa(K0,"onTransitionStart"),Qa(Q0,"onTransitionCancel"),Qa(Qp,"onTransitionEnd"),ft("onMouseEnter",["mouseout","mouseover"]),ft("onMouseLeave",["mouseout","mouseover"]),ft("onPointerEnter",["pointerout","pointerover"]),ft("onPointerLeave",["pointerout","pointerover"]),ze("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ze("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ze("onBeforeInput",["compositionend","keypress","textInput","paste"]),ze("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ze("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ze("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kh="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(" "),q5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kh));function zR(i,d){d=(d&4)!==0;for(var p=0;p<i.length;p++){var g=i[p],R=g.event;g=g.listeners;e:{var P=void 0;if(d)for(var J=g.length-1;0<=J;J--){var re=g[J],be=re.instance,Ye=re.currentTarget;if(re=re.listener,be!==P&&R.isPropagationStopped())break e;P=re,R.currentTarget=Ye;try{P(R)}catch(pt){xy(pt)}R.currentTarget=null,P=be}else for(J=0;J<g.length;J++){if(re=g[J],be=re.instance,Ye=re.currentTarget,re=re.listener,be!==P&&R.isPropagationStopped())break e;P=re,R.currentTarget=Ye;try{P(R)}catch(pt){xy(pt)}R.currentTarget=null,P=be}}}}function or(i,d){var p=d[Ee];p===void 0&&(p=d[Ee]=new Set);var g=i+"__bubble";p.has(g)||(FR(d,i,2,!1),p.add(g))}function rS(i,d,p){var g=0;d&&(g|=4),FR(p,i,g,d)}var jy="_reactListening"+Math.random().toString(36).slice(2);function oS(i){if(!i[jy]){i[jy]=!0,ue.forEach(function(p){p!=="selectionchange"&&(q5.has(p)||rS(p,!1,i),rS(p,!0,i))});var d=i.nodeType===9?i:i.ownerDocument;d===null||d[jy]||(d[jy]=!0,rS("selectionchange",!1,d))}}function FR(i,d,p,g){switch(cO(d)){case 2:var R=bF;break;case 8:R=xF;break;default:R=vS}p=R.bind(null,d,p,i),R=void 0,!su||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(R=!0),g?R!==void 0?i.addEventListener(d,p,{capture:!0,passive:R}):i.addEventListener(d,p,!0):R!==void 0?i.addEventListener(d,p,{passive:R}):i.addEventListener(d,p,!1)}function aS(i,d,p,g,R){var P=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===R)break;if(J===4)for(J=g.return;J!==null;){var be=J.tag;if((be===3||be===4)&&J.stateNode.containerInfo===R)return;J=J.return}for(;re!==null;){if(J=Tt(re),J===null)return;if(be=J.tag,be===5||be===6||be===26||be===27){g=P=J;continue e}re=re.parentNode}}g=g.return}Ed(function(){var Ye=P,pt=Jl(p),vt=[];e:{var Ke=Xp.get(i);if(Ke!==void 0){var Xe=to,In=i;switch(i){case"keypress":if(tc(p)===0)break e;case"keydown":case"keyup":Xe=hu;break;case"focusin":In="focus",Xe=fu;break;case"focusout":In="blur",Xe=fu;break;case"beforeblur":case"afterblur":Xe=fu;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=du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Xe=Od;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Xe=Dd;break;case Jg:case ey:case ty:Xe=nc;break;case Qp:Xe=Fp;break;case"scroll":case"scrollend":Xe=Oe;break;case"wheel":Xe=_p;break;case"copy":case"cut":case"paste":Xe=Ds;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Xe=Pd;break;case"toggle":case"beforetoggle":Xe=Up}var Mn=(d&4)!==0,jr=!Mn&&(i==="scroll"||i==="scrollend"),_e=Mn?Ke!==null?Ke+"Capture":null:Ke;Mn=[];for(var Pe=Ye,He;Pe!==null;){var gt=Pe;if(He=gt.stateNode,gt=gt.tag,gt!==5&>!==26&>!==27||He===null||_e===null||(gt=gl(Pe,_e),gt!=null&&Mn.push(Th(Pe,gt,He))),jr)break;Pe=Pe.return}0<Mn.length&&(Ke=new Xe(Ke,In,null,p,pt),vt.push({event:Ke,listeners:Mn}))}}if((d&7)===0){e:{if(Ke=i==="mouseover"||i==="pointerover",Xe=i==="mouseout"||i==="pointerout",Ke&&p!==Zl&&(In=p.relatedTarget||p.fromElement)&&(Tt(In)||In[ge]))break e;if((Xe||Ke)&&(Ke=pt.window===pt?pt:(Ke=pt.ownerDocument)?Ke.defaultView||Ke.parentWindow:window,Xe?(In=p.relatedTarget||p.toElement,Xe=Ye,In=In?Tt(In):null,In!==null&&(jr=a(In),Mn=In.tag,In!==jr||Mn!==5&&Mn!==27&&Mn!==6)&&(In=null)):(Xe=null,In=Ye),Xe!==In)){if(Mn=du,gt="onMouseLeave",_e="onMouseEnter",Pe="mouse",(i==="pointerout"||i==="pointerover")&&(Mn=Pd,gt="onPointerLeave",_e="onPointerEnter",Pe="pointer"),jr=Xe==null?Ke:Kt(Xe),He=In==null?Ke:Kt(In),Ke=new Mn(gt,Pe+"leave",Xe,p,pt),Ke.target=jr,Ke.relatedTarget=He,gt=null,Tt(pt)===Ye&&(Mn=new Mn(_e,Pe+"enter",In,p,pt),Mn.target=He,Mn.relatedTarget=jr,gt=Mn),jr=gt,Xe&&In)t:{for(Mn=Xe,_e=In,Pe=0,He=Mn;He;He=ff(He))Pe++;for(He=0,gt=_e;gt;gt=ff(gt))He++;for(;0<Pe-He;)Mn=ff(Mn),Pe--;for(;0<He-Pe;)_e=ff(_e),He--;for(;Pe--;){if(Mn===_e||_e!==null&&Mn===_e.alternate)break t;Mn=ff(Mn),_e=ff(_e)}Mn=null}else Mn=null;Xe!==null&&_R(vt,Ke,Xe,Mn,!1),In!==null&&jr!==null&&_R(vt,jr,In,Mn,!0)}}e:{if(Ke=Ye?Kt(Ye):window,Xe=Ke.nodeName&&Ke.nodeName.toLowerCase(),Xe==="select"||Xe==="input"&&Ke.type==="file")var an=B;else if(zd(Ke))if(G)an=wr;else{an=Gn;var er=Yn}else Xe=Ke.nodeName,!Xe||Xe.toLowerCase()!=="input"||Ke.type!=="checkbox"&&Ke.type!=="radio"?Ye&&ou(Ye.elementType)&&(an=B):an=Gt;if(an&&(an=an(i,Ye))){Fd(vt,an,p,pt);break e}er&&er(i,Ke,Ye),i==="focusout"&&Ye&&Ke.type==="number"&&Ye.memoizedProps.value!=null&&ss(Ke,"number",Ke.value)}switch(er=Ye?Kt(Ye):window,i){case"focusin":(zd(er)||er.contentEditable==="true")&&(ma=er,ps=Ye,na=null);break;case"focusout":na=ps=ma=null;break;case"mousedown":no=!0;break;case"contextmenu":case"mouseup":case"dragend":no=!1,wl(vt,p,pt);break;case"selectionchange":if(Sl)break;case"keydown":case"keyup":wl(vt,p,pt)}var gn;if(gu)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 Ns?Id(i,p)&&(Pn="onCompositionEnd"):i==="keydown"&&p.keyCode===229&&(Pn="onCompositionStart");Pn&&(Ad&&p.locale!=="ko"&&(Ns||Pn!=="onCompositionStart"?Pn==="onCompositionEnd"&&Ns&&(gn=cu()):(Ti=pt,lu="value"in Ti?Ti.value:Ti.textContent,Ns=!0)),er=Ny(Ye,Pn),0<er.length&&(Pn=new ds(Pn,i,null,p,pt),vt.push({event:Pn,listeners:er}),gn?Pn.data=gn:(gn=Ld(p),gn!==null&&(Pn.data=gn)))),(gn=Hp?Wp(i,p):qp(i,p))&&(Pn=Ny(Ye,"onBeforeInput"),0<Pn.length&&(er=new ds("onBeforeInput","beforeinput",null,p,pt),vt.push({event:er,listeners:Pn}),er.data=gn)),V5(vt,i,Ye,p,pt)}zR(vt,d)})}function Th(i,d,p){return{instance:i,listener:d,currentTarget:p}}function Ny(i,d){for(var p=d+"Capture",g=[];i!==null;){var R=i,P=R.stateNode;if(R=R.tag,R!==5&&R!==26&&R!==27||P===null||(R=gl(i,p),R!=null&&g.unshift(Th(i,R,P)),R=gl(i,d),R!=null&&g.push(Th(i,R,P))),i.tag===3)return g;i=i.return}return[]}function ff(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function _R(i,d,p,g,R){for(var P=d._reactName,J=[];p!==null&&p!==g;){var re=p,be=re.alternate,Ye=re.stateNode;if(re=re.tag,be!==null&&be===g)break;re!==5&&re!==26&&re!==27||Ye===null||(be=Ye,R?(Ye=gl(p,P),Ye!=null&&J.unshift(Th(p,Ye,be))):R||(Ye=gl(p,P),Ye!=null&&J.push(Th(p,Ye,be)))),p=p.return}J.length!==0&&i.push({event:d,listeners:J})}var Y5=/\r\n?/g,G5=/\u0000|\uFFFD/g;function BR(i){return(typeof i=="string"?i:""+i).replace(Y5,`
|
|
50
|
-
`).replace(G5,"")}function UR(i,d){return d=BR(d),BR(i)===d}function Iy(){}function Ar(i,d,p,g,R,P){switch(p){case"children":typeof g=="string"?d==="body"||d==="textarea"&&g===""||ls(i,g):(typeof g=="number"||typeof g=="bigint")&&d!=="body"&&ls(i,""+g);break;case"className":Re(i,"class",g);break;case"tabIndex":Re(i,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Re(i,p,g);break;case"style":hl(i,g,P);break;case"data":if(d!=="object"){Re(i,"data",g);break}case"src":case"href":if(g===""&&(d!=="a"||p!=="href")){i.removeAttribute(p);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=ml(""+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 P=="function"&&(p==="formAction"?(d!=="input"&&Ar(i,d,"name",R.name,R,null),Ar(i,d,"formEncType",R.formEncType,R,null),Ar(i,d,"formMethod",R.formMethod,R,null),Ar(i,d,"formTarget",R.formTarget,R,null)):(Ar(i,d,"encType",R.encType,R,null),Ar(i,d,"method",R.method,R,null),Ar(i,d,"target",R.target,R,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=ml(""+g),i.setAttribute(p,g);break;case"onClick":g!=null&&(i.onclick=Iy);break;case"onScroll":g!=null&&or("scroll",i);break;case"onScrollEnd":g!=null&&or("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(R.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=ml(""+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":or("beforetoggle",i),or("toggle",i),ye(i,"popover",g);break;case"xlinkActuate":it(i,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":it(i,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":it(i,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":it(i,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":it(i,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":it(i,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":it(i,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":it(i,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":it(i,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":ye(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=Td.get(p)||p,ye(i,p,g))}}function iS(i,d,p,g,R,P){switch(p){case"style":hl(i,g,P);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(p=g.__html,p!=null){if(R.children!=null)throw Error(r(60));i.innerHTML=p}}break;case"children":typeof g=="string"?ls(i,g):(typeof g=="number"||typeof g=="bigint")&&ls(i,""+g);break;case"onScroll":g!=null&&or("scroll",i);break;case"onScrollEnd":g!=null&&or("scrollend",i);break;case"onClick":g!=null&&(i.onclick=Iy);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!de.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(R=p.endsWith("Capture"),d=p.slice(2,R?p.length-7:void 0),P=i[Ln]||null,P=P!=null?P[p]:null,typeof P=="function"&&i.removeEventListener(d,P,R),typeof g=="function")){typeof P!="function"&&P!==null&&(p in i?i[p]=null:i.hasAttribute(p)&&i.removeAttribute(p)),i.addEventListener(d,g,R);break e}p in i?i[p]=g:g===!0?i.setAttribute(p,""):ye(i,p,g)}}}function Go(i,d,p){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":or("error",i),or("load",i);var g=!1,R=!1,P;for(P in p)if(p.hasOwnProperty(P)){var J=p[P];if(J!=null)switch(P){case"src":g=!0;break;case"srcSet":R=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,d));default:Ar(i,d,P,J,p,null)}}R&&Ar(i,d,"srcSet",p.srcSet,p,null),g&&Ar(i,d,"src",p.src,p,null);return;case"input":or("invalid",i);var re=P=J=R=null,be=null,Ye=null;for(g in p)if(p.hasOwnProperty(g)){var pt=p[g];if(pt!=null)switch(g){case"name":R=pt;break;case"type":J=pt;break;case"checked":be=pt;break;case"defaultChecked":Ye=pt;break;case"value":P=pt;break;case"defaultValue":re=pt;break;case"children":case"dangerouslySetInnerHTML":if(pt!=null)throw Error(r(137,d));break;default:Ar(i,d,g,pt,p,null)}}fl(i,P,re,be,Ye,J,R,!1),To(i);return;case"select":or("invalid",i),g=J=P=null;for(R in p)if(p.hasOwnProperty(R)&&(re=p[R],re!=null))switch(R){case"value":P=re;break;case"defaultValue":J=re;break;case"multiple":g=re;default:Ar(i,d,R,re,p,null)}d=P,p=J,i.multiple=!!g,d!=null?ki(i,!!g,d,!1):p!=null&&ki(i,!!g,p,!0);return;case"textarea":or("invalid",i),P=R=g=null;for(J in p)if(p.hasOwnProperty(J)&&(re=p[J],re!=null))switch(J){case"value":g=re;break;case"defaultValue":R=re;break;case"children":P=re;break;case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(91));break;default:Ar(i,d,J,re,p,null)}pl(i,g,R,P),To(i);return;case"option":for(be in p)if(p.hasOwnProperty(be)&&(g=p[be],g!=null))switch(be){case"selected":i.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Ar(i,d,be,g,p,null)}return;case"dialog":or("beforetoggle",i),or("toggle",i),or("cancel",i),or("close",i);break;case"iframe":case"object":or("load",i);break;case"video":case"audio":for(g=0;g<kh.length;g++)or(kh[g],i);break;case"image":or("error",i),or("load",i);break;case"details":or("toggle",i);break;case"embed":case"source":case"link":or("error",i),or("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(Ye in p)if(p.hasOwnProperty(Ye)&&(g=p[Ye],g!=null))switch(Ye){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,d));default:Ar(i,d,Ye,g,p,null)}return;default:if(ou(d)){for(pt in p)p.hasOwnProperty(pt)&&(g=p[pt],g!==void 0&&iS(i,d,pt,g,p,void 0));return}}for(re in p)p.hasOwnProperty(re)&&(g=p[re],g!=null&&Ar(i,d,re,g,p,null))}function K5(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 R=null,P=null,J=null,re=null,be=null,Ye=null,pt=null;for(Xe in p){var vt=p[Xe];if(p.hasOwnProperty(Xe)&&vt!=null)switch(Xe){case"checked":break;case"value":break;case"defaultValue":be=vt;default:g.hasOwnProperty(Xe)||Ar(i,d,Xe,null,g,vt)}}for(var Ke in g){var Xe=g[Ke];if(vt=p[Ke],g.hasOwnProperty(Ke)&&(Xe!=null||vt!=null))switch(Ke){case"type":P=Xe;break;case"name":R=Xe;break;case"checked":Ye=Xe;break;case"defaultChecked":pt=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!==vt&&Ar(i,d,Ke,Xe,g,vt)}}Ya(i,J,re,be,Ye,pt,P,R);return;case"select":Xe=J=re=Ke=null;for(P in p)if(be=p[P],p.hasOwnProperty(P)&&be!=null)switch(P){case"value":break;case"multiple":Xe=be;default:g.hasOwnProperty(P)||Ar(i,d,P,null,g,be)}for(R in g)if(P=g[R],be=p[R],g.hasOwnProperty(R)&&(P!=null||be!=null))switch(R){case"value":Ke=P;break;case"defaultValue":re=P;break;case"multiple":J=P;default:P!==be&&Ar(i,d,R,P,g,be)}d=re,p=J,g=Xe,Ke!=null?ki(i,!!p,Ke,!1):!!g!=!!p&&(d!=null?ki(i,!!p,d,!0):ki(i,!!p,p?[]:"",!1));return;case"textarea":Xe=Ke=null;for(re in p)if(R=p[re],p.hasOwnProperty(re)&&R!=null&&!g.hasOwnProperty(re))switch(re){case"value":break;case"children":break;default:Ar(i,d,re,null,g,R)}for(J in g)if(R=g[J],P=p[J],g.hasOwnProperty(J)&&(R!=null||P!=null))switch(J){case"value":Ke=R;break;case"defaultValue":Xe=R;break;case"children":break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:R!==P&&Ar(i,d,J,R,g,P)}ru(i,Ke,Xe);return;case"option":for(var In in p)if(Ke=p[In],p.hasOwnProperty(In)&&Ke!=null&&!g.hasOwnProperty(In))switch(In){case"selected":i.selected=!1;break;default:Ar(i,d,In,null,g,Ke)}for(be in g)if(Ke=g[be],Xe=p[be],g.hasOwnProperty(be)&&Ke!==Xe&&(Ke!=null||Xe!=null))switch(be){case"selected":i.selected=Ke&&typeof Ke!="function"&&typeof Ke!="symbol";break;default:Ar(i,d,be,Ke,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 Mn in p)Ke=p[Mn],p.hasOwnProperty(Mn)&&Ke!=null&&!g.hasOwnProperty(Mn)&&Ar(i,d,Mn,null,g,Ke);for(Ye in g)if(Ke=g[Ye],Xe=p[Ye],g.hasOwnProperty(Ye)&&Ke!==Xe&&(Ke!=null||Xe!=null))switch(Ye){case"children":case"dangerouslySetInnerHTML":if(Ke!=null)throw Error(r(137,d));break;default:Ar(i,d,Ye,Ke,g,Xe)}return;default:if(ou(d)){for(var jr in p)Ke=p[jr],p.hasOwnProperty(jr)&&Ke!==void 0&&!g.hasOwnProperty(jr)&&iS(i,d,jr,void 0,g,Ke);for(pt in g)Ke=g[pt],Xe=p[pt],!g.hasOwnProperty(pt)||Ke===Xe||Ke===void 0&&Xe===void 0||iS(i,d,pt,Ke,g,Xe);return}}for(var _e in p)Ke=p[_e],p.hasOwnProperty(_e)&&Ke!=null&&!g.hasOwnProperty(_e)&&Ar(i,d,_e,null,g,Ke);for(vt in g)Ke=g[vt],Xe=p[vt],!g.hasOwnProperty(vt)||Ke===Xe||Ke==null&&Xe==null||Ar(i,d,vt,Ke,g,Xe)}var sS=null,lS=null;function Ly(i){return i.nodeType===9?i:i.ownerDocument}function VR(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 HR(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 cS(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 uS=null;function Q5(){var i=window.event;return i&&i.type==="popstate"?i===uS?!1:(uS=i,!0):(uS=null,!1)}var WR=typeof setTimeout=="function"?setTimeout:void 0,X5=typeof clearTimeout=="function"?clearTimeout:void 0,qR=typeof Promise=="function"?Promise:void 0,Z5=typeof queueMicrotask=="function"?queueMicrotask:typeof qR<"u"?function(i){return qR.resolve(null).then(i).catch(J5)}:WR;function J5(i){setTimeout(function(){throw i})}function xc(i){return i==="head"}function YR(i,d){var p=d,g=0,R=0;do{var P=p.nextSibling;if(i.removeChild(p),P&&P.nodeType===8)if(p=P.data,p==="/$"){if(0<g&&8>g){p=g;var J=i.ownerDocument;if(p&1&&Eh(J.documentElement),p&2&&Eh(J.body),p&4)for(p=J.head,Eh(p),J=p.firstChild;J;){var re=J.nextSibling,be=J.nodeName;J[kt]||be==="SCRIPT"||be==="STYLE"||be==="LINK"&&J.rel.toLowerCase()==="stylesheet"||p.removeChild(J),J=re}}if(R===0){i.removeChild(P),jh(d);return}R--}else p==="$"||p==="$?"||p==="$!"?R++:g=p.charCodeAt(0)-48;else g=0;p=P}while(p);jh(d)}function dS(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":dS(p),bt(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}i.removeChild(p)}}function eF(i,d,p,g){for(;i.nodeType===1;){var R=p;if(i.nodeName.toLowerCase()!==d.toLowerCase()){if(!g&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(g){if(!i[kt])switch(d){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(P=i.getAttribute("rel"),P==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(P!==R.rel||i.getAttribute("href")!==(R.href==null||R.href===""?null:R.href)||i.getAttribute("crossorigin")!==(R.crossOrigin==null?null:R.crossOrigin)||i.getAttribute("title")!==(R.title==null?null:R.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(P=i.getAttribute("src"),(P!==(R.src==null?null:R.src)||i.getAttribute("type")!==(R.type==null?null:R.type)||i.getAttribute("crossorigin")!==(R.crossOrigin==null?null:R.crossOrigin))&&P&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(d==="input"&&i.type==="hidden"){var P=R.name==null?null:""+R.name;if(R.type==="hidden"&&i.getAttribute("name")===P)return i}else return i;if(i=ys(i.nextSibling),i===null)break}return null}function tF(i,d,p){if(d==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!p||(i=ys(i.nextSibling),i===null))return null;return i}function fS(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function nF(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 ys(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 pS=null;function GR(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 KR(i,d,p){switch(d=Ly(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 Eh(i){for(var d=i.attributes;d.length;)i.removeAttributeNode(d[0]);bt(i)}var Ai=new Map,QR=new Set;function zy(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Al=X.d;X.d={f:rF,r:oF,D:aF,C:iF,L:sF,m:lF,X:uF,S:cF,M:dF};function rF(){var i=Al.f(),d=My();return i||d}function oF(i){var d=Pt(i);d!==null&&d.tag===5&&d.type==="form"?gE(d):Al.r(i)}var pf=typeof document>"u"?null:document;function XR(i,d,p){var g=pf;if(g&&typeof d=="string"&&d){var R=Fr(d);R='link[rel="'+i+'"][href="'+R+'"]',typeof p=="string"&&(R+='[crossorigin="'+p+'"]'),QR.has(R)||(QR.add(R),i={rel:i,crossOrigin:p,href:d},g.querySelector(R)===null&&(d=g.createElement("link"),Go(d,"link",i),Ft(d),g.head.appendChild(d)))}}function aF(i){Al.D(i),XR("dns-prefetch",i,null)}function iF(i,d){Al.C(i,d),XR("preconnect",i,d)}function sF(i,d,p){Al.L(i,d,p);var g=pf;if(g&&i&&d){var R='link[rel="preload"][as="'+Fr(d)+'"]';d==="image"&&p&&p.imageSrcSet?(R+='[imagesrcset="'+Fr(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(R+='[imagesizes="'+Fr(p.imageSizes)+'"]')):R+='[href="'+Fr(i)+'"]';var P=R;switch(d){case"style":P=hf(i);break;case"script":P=mf(i)}Ai.has(P)||(i=u({rel:"preload",href:d==="image"&&p&&p.imageSrcSet?void 0:i,as:d},p),Ai.set(P,i),g.querySelector(R)!==null||d==="style"&&g.querySelector(Rh(P))||d==="script"&&g.querySelector(Oh(P))||(d=g.createElement("link"),Go(d,"link",i),Ft(d),g.head.appendChild(d)))}}function lF(i,d){Al.m(i,d);var p=pf;if(p&&i){var g=d&&typeof d.as=="string"?d.as:"script",R='link[rel="modulepreload"][as="'+Fr(g)+'"][href="'+Fr(i)+'"]',P=R;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=mf(i)}if(!Ai.has(P)&&(i=u({rel:"modulepreload",href:i},d),Ai.set(P,i),p.querySelector(R)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(Oh(P)))return}g=p.createElement("link"),Go(g,"link",i),Ft(g),p.head.appendChild(g)}}}function cF(i,d,p){Al.S(i,d,p);var g=pf;if(g&&i){var R=Dt(g).hoistableStyles,P=hf(i);d=d||"default";var J=R.get(P);if(!J){var re={loading:0,preload:null};if(J=g.querySelector(Rh(P)))re.loading=5;else{i=u({rel:"stylesheet",href:i,"data-precedence":d},p),(p=Ai.get(P))&&hS(i,p);var be=J=g.createElement("link");Ft(be),Go(be,"link",i),be._p=new Promise(function(Ye,pt){be.onload=Ye,be.onerror=pt}),be.addEventListener("load",function(){re.loading|=1}),be.addEventListener("error",function(){re.loading|=2}),re.loading|=4,Fy(J,d,g)}J={type:"stylesheet",instance:J,count:1,state:re},R.set(P,J)}}}function uF(i,d){Al.X(i,d);var p=pf;if(p&&i){var g=Dt(p).hoistableScripts,R=mf(i),P=g.get(R);P||(P=p.querySelector(Oh(R)),P||(i=u({src:i,async:!0},d),(d=Ai.get(R))&&mS(i,d),P=p.createElement("script"),Ft(P),Go(P,"link",i),p.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},g.set(R,P))}}function dF(i,d){Al.M(i,d);var p=pf;if(p&&i){var g=Dt(p).hoistableScripts,R=mf(i),P=g.get(R);P||(P=p.querySelector(Oh(R)),P||(i=u({src:i,async:!0,type:"module"},d),(d=Ai.get(R))&&mS(i,d),P=p.createElement("script"),Ft(P),Go(P,"link",i),p.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},g.set(R,P))}}function ZR(i,d,p,g){var R=(R=se.current)?zy(R):null;if(!R)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(d=hf(p.href),p=Dt(R).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=hf(p.href);var P=Dt(R).hoistableStyles,J=P.get(i);if(J||(R=R.ownerDocument||R,J={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},P.set(i,J),(P=R.querySelector(Rh(i)))&&!P._p&&(J.instance=P,J.state.loading=5),Ai.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},Ai.set(i,p),P||fF(R,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=mf(p),p=Dt(R).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 hf(i){return'href="'+Fr(i)+'"'}function Rh(i){return'link[rel="stylesheet"]['+i+"]"}function JR(i){return u({},i,{"data-precedence":i.precedence,precedence:null})}function fF(i,d,p,g){i.querySelector('link[rel="preload"][as="style"]['+d+"]")?g.loading=1:(d=i.createElement("link"),g.preload=d,d.addEventListener("load",function(){return g.loading|=1}),d.addEventListener("error",function(){return g.loading|=2}),Go(d,"link",p),Ft(d),i.head.appendChild(d))}function mf(i){return'[src="'+Fr(i)+'"]'}function Oh(i){return"script[async]"+i}function eO(i,d,p){if(d.count++,d.instance===null)switch(d.type){case"style":var g=i.querySelector('style[data-href~="'+Fr(p.href)+'"]');if(g)return d.instance=g,Ft(g),g;var R=u({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return g=(i.ownerDocument||i).createElement("style"),Ft(g),Go(g,"style",R),Fy(g,p.precedence,i),d.instance=g;case"stylesheet":R=hf(p.href);var P=i.querySelector(Rh(R));if(P)return d.state.loading|=4,d.instance=P,Ft(P),P;g=JR(p),(R=Ai.get(R))&&hS(g,R),P=(i.ownerDocument||i).createElement("link"),Ft(P);var J=P;return J._p=new Promise(function(re,be){J.onload=re,J.onerror=be}),Go(P,"link",g),d.state.loading|=4,Fy(P,p.precedence,i),d.instance=P;case"script":return P=mf(p.src),(R=i.querySelector(Oh(P)))?(d.instance=R,Ft(R),R):(g=p,(R=Ai.get(P))&&(g=u({},p),mS(g,R)),i=i.ownerDocument||i,R=i.createElement("script"),Ft(R),Go(R,"link",g),i.head.appendChild(R),d.instance=R);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,Fy(g,p.precedence,i));return d.instance}function Fy(i,d,p){for(var g=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),R=g.length?g[g.length-1]:null,P=R,J=0;J<g.length;J++){var re=g[J];if(re.dataset.precedence===d)P=re;else if(P!==R)break}P?P.parentNode.insertBefore(i,P.nextSibling):(d=p.nodeType===9?p.head:p,d.insertBefore(i,d.firstChild))}function hS(i,d){i.crossOrigin==null&&(i.crossOrigin=d.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=d.referrerPolicy),i.title==null&&(i.title=d.title)}function mS(i,d){i.crossOrigin==null&&(i.crossOrigin=d.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=d.referrerPolicy),i.integrity==null&&(i.integrity=d.integrity)}var _y=null;function tO(i,d,p){if(_y===null){var g=new Map,R=_y=new Map;R.set(p,g)}else R=_y,g=R.get(p),g||(g=new Map,R.set(p,g));if(g.has(i))return g;for(g.set(i,null),p=p.getElementsByTagName(i),R=0;R<p.length;R++){var P=p[R];if(!(P[kt]||P[on]||i==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!=="http://www.w3.org/2000/svg"){var J=P.getAttribute(d)||"";J=i+J;var re=g.get(J);re?re.push(P):g.set(J,[P])}}return g}function nO(i,d,p){i=i.ownerDocument||i,i.head.insertBefore(p,d==="title"?i.querySelector("head > title"):null)}function pF(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 rO(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Mh=null;function hF(){}function mF(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 R=hf(p.href),P=i.querySelector(Rh(R));if(P){i=P._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=P,Ft(P);return}P=i.ownerDocument||i,p=JR(p),(R=Ai.get(R))&&hS(p,R),P=P.createElement("link"),Ft(P);var J=P;J._p=new Promise(function(re,be){J.onload=re,J.onerror=be}),Go(P,"link",p),d.instance=P}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 gF(){if(Mh===null)throw Error(r(475));var i=Mh;return i.stylesheets&&i.count===0&&gS(i,i.stylesheets),0<i.count?function(d){var p=setTimeout(function(){if(i.stylesheets&&gS(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)gS(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Uy=null;function gS(i,d){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Uy=new Map,d.forEach(yF,i),Uy=null,By.call(i))}function yF(i,d){if(!(d.state.loading&4)){var p=Uy.get(i);if(p)var g=p.get(null);else{p=new Map,Uy.set(i,p);for(var R=i.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<R.length;P++){var J=R[P];(J.nodeName==="LINK"||J.getAttribute("media")!=="not all")&&(p.set(J.dataset.precedence,J),g=J)}g&&p.set(null,g)}R=d.instance,J=R.getAttribute("data-precedence"),P=p.get(J)||g,P===g&&p.set(null,R),p.set(J,R),this.count++,g=By.bind(this),R.addEventListener("load",g),R.addEventListener("error",g),P?P.parentNode.insertBefore(R,P.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(R,i.firstChild)),d.state.loading|=4}}var $h={$$typeof:E,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function vF(i,d,p,g,R,P,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=Un(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Un(0),this.hiddenUpdates=Un(null),this.identifierPrefix=g,this.onUncaughtError=R,this.onCaughtError=P,this.onRecoverableError=J,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=re,this.incompleteTransitions=new Map}function oO(i,d,p,g,R,P,J,re,be,Ye,pt,vt){return i=new vF(i,d,p,J,re,be,Ye,vt),d=1,P===!0&&(d|=24),P=Wo(3,null,null,d),i.current=P,P.stateNode=i,d=X0(),d.refCount++,i.pooledCache=d,d.refCount++,P.memoizedState={element:g,isDehydrated:p,cache:d},tx(P),i}function aO(i){return i?(i=Xa,i):Xa}function iO(i,d,p,g,R,P){R=aO(R),g.context===null?g.context=R:g.pendingContext=R,g=sc(d),g.payload={element:p},P=P===void 0?null:P,P!==null&&(g.callback=P),p=lc(i,g,d),p!==null&&(ai(p,i,d),ih(p,i,d))}function sO(i,d){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<d?p:d}}function yS(i,d){sO(i,d),(i=i.alternate)&&sO(i,d)}function lO(i){if(i.tag===13){var d=hs(i,67108864);d!==null&&ai(d,i,67108864),yS(i,67108864)}}var Vy=!0;function bF(i,d,p,g){var R=N.T;N.T=null;var P=X.p;try{X.p=2,vS(i,d,p,g)}finally{X.p=P,N.T=R}}function xF(i,d,p,g){var R=N.T;N.T=null;var P=X.p;try{X.p=8,vS(i,d,p,g)}finally{X.p=P,N.T=R}}function vS(i,d,p,g){if(Vy){var R=bS(g);if(R===null)aS(i,d,g,Hy,p),uO(i,g);else if(wF(R,i,d,p,g))g.stopPropagation();else if(uO(i,g),d&4&&-1<SF.indexOf(i)){for(;R!==null;){var P=Pt(R);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var J=st(P.pendingLanes);if(J!==0){var re=P;for(re.pendingLanes|=2,re.entangledLanes|=2;J;){var be=1<<31-he(J);re.entanglements[1]|=be,J&=~be}_s(P),(kr&6)===0&&(Ry=Ae()+500,Ch(0))}}break;case 13:re=hs(P,2),re!==null&&ai(re,P,2),My(),yS(P,2)}if(P=bS(g),P===null&&aS(i,d,g,Hy,p),P===R)break;R=P}R!==null&&g.stopPropagation()}else aS(i,d,g,null,p)}}function bS(i){return i=Jl(i),xS(i)}var Hy=null;function xS(i){if(Hy=null,i=Tt(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 Hy=i,null}function cO(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(oe()){case lt:return 2;case Ne:return 8;case et:case mt:return 32;case Wt:return 268435456;default:return 32}default:return 32}}var SS=!1,Sc=null,wc=null,Cc=null,Ph=new Map,Dh=new Map,kc=[],SF="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 uO(i,d){switch(i){case"focusin":case"focusout":Sc=null;break;case"dragenter":case"dragleave":wc=null;break;case"mouseover":case"mouseout":Cc=null;break;case"pointerover":case"pointerout":Ph.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dh.delete(d.pointerId)}}function Ah(i,d,p,g,R,P){return i===null||i.nativeEvent!==P?(i={blockedOn:d,domEventName:p,eventSystemFlags:g,nativeEvent:P,targetContainers:[R]},d!==null&&(d=Pt(d),d!==null&&lO(d)),i):(i.eventSystemFlags|=g,d=i.targetContainers,R!==null&&d.indexOf(R)===-1&&d.push(R),i)}function wF(i,d,p,g,R){switch(d){case"focusin":return Sc=Ah(Sc,i,d,p,g,R),!0;case"dragenter":return wc=Ah(wc,i,d,p,g,R),!0;case"mouseover":return Cc=Ah(Cc,i,d,p,g,R),!0;case"pointerover":var P=R.pointerId;return Ph.set(P,Ah(Ph.get(P)||null,i,d,p,g,R)),!0;case"gotpointercapture":return P=R.pointerId,Dh.set(P,Ah(Dh.get(P)||null,i,d,p,g,R)),!0}return!1}function dO(i){var d=Tt(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,zr(i.priority,function(){if(p.tag===13){var g=oi();g=Rn(g);var R=hs(p,g);R!==null&&ai(R,p,g),yS(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 Wy(i){if(i.blockedOn!==null)return!1;for(var d=i.targetContainers;0<d.length;){var p=bS(i.nativeEvent);if(p===null){p=i.nativeEvent;var g=new p.constructor(p.type,p);Zl=g,p.target.dispatchEvent(g),Zl=null}else return d=Pt(p),d!==null&&lO(d),i.blockedOn=p,!1;d.shift()}return!0}function fO(i,d,p){Wy(i)&&p.delete(d)}function CF(){SS=!1,Sc!==null&&Wy(Sc)&&(Sc=null),wc!==null&&Wy(wc)&&(wc=null),Cc!==null&&Wy(Cc)&&(Cc=null),Ph.forEach(fO),Dh.forEach(fO)}function qy(i,d){i.blockedOn===d&&(i.blockedOn=null,SS||(SS=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,CF)))}var Yy=null;function pO(i){Yy!==i&&(Yy=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yy===i&&(Yy=null);for(var d=0;d<i.length;d+=3){var p=i[d],g=i[d+1],R=i[d+2];if(typeof g!="function"){if(xS(g||p)===null)continue;break}var P=Pt(p);P!==null&&(i.splice(d,3),d-=3,xx(P,{pending:!0,data:R,method:p.method,action:g},g,R))}}))}function jh(i){function d(be){return qy(be,i)}Sc!==null&&qy(Sc,i),wc!==null&&qy(wc,i),Cc!==null&&qy(Cc,i),Ph.forEach(d),Dh.forEach(d);for(var p=0;p<kc.length;p++){var g=kc[p];g.blockedOn===i&&(g.blockedOn=null)}for(;0<kc.length&&(p=kc[0],p.blockedOn===null);)dO(p),p.blockedOn===null&&kc.shift();if(p=(i.ownerDocument||i).$$reactFormReplay,p!=null)for(g=0;g<p.length;g+=3){var R=p[g],P=p[g+1],J=R[Ln]||null;if(typeof P=="function")J||pO(p);else if(J){var re=null;if(P&&P.hasAttribute("formAction")){if(R=P,J=P[Ln]||null)re=J.formAction;else if(xS(R)!==null)continue}else re=J.action;typeof re=="function"?p[g+1]=re:(p.splice(g,3),g-=3),pO(p)}}}function wS(i){this._internalRoot=i}Gy.prototype.render=wS.prototype.render=function(i){var d=this._internalRoot;if(d===null)throw Error(r(409));var p=d.current,g=oi();iO(p,g,i,d,null,null)},Gy.prototype.unmount=wS.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var d=i.containerInfo;iO(i.current,2,null,i,null,null),My(),d[ge]=null}};function Gy(i){this._internalRoot=i}Gy.prototype.unstable_scheduleHydration=function(i){if(i){var d=$t();i={blockedOn:null,target:i,priority:d};for(var p=0;p<kc.length&&d!==0&&d<kc[p].priority;p++);kc.splice(p,0,i),p===0&&dO(i)}};var hO=t.version;if(hO!=="19.1.1")throw Error(r(527,hO,"19.1.1"));X.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=c(d),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var kF={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ky=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ky.isDisabled&&Ky.supportsFiber)try{Je=Ky.inject(kF),ct=Ky}catch{}}return Ih.createRoot=function(i,d){if(!o(i))throw Error(r(299));var p=!1,g="",R=$E,P=PE,J=DE,re=null;return d!=null&&(d.unstable_strictMode===!0&&(p=!0),d.identifierPrefix!==void 0&&(g=d.identifierPrefix),d.onUncaughtError!==void 0&&(R=d.onUncaughtError),d.onCaughtError!==void 0&&(P=d.onCaughtError),d.onRecoverableError!==void 0&&(J=d.onRecoverableError),d.unstable_transitionCallbacks!==void 0&&(re=d.unstable_transitionCallbacks)),d=oO(i,1,!1,null,null,p,g,R,P,J,re,null),i[ge]=d.current,oS(i),new wS(d)},Ih.hydrateRoot=function(i,d,p){if(!o(i))throw Error(r(299));var g=!1,R="",P=$E,J=PE,re=DE,be=null,Ye=null;return p!=null&&(p.unstable_strictMode===!0&&(g=!0),p.identifierPrefix!==void 0&&(R=p.identifierPrefix),p.onUncaughtError!==void 0&&(P=p.onUncaughtError),p.onCaughtError!==void 0&&(J=p.onCaughtError),p.onRecoverableError!==void 0&&(re=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(be=p.unstable_transitionCallbacks),p.formState!==void 0&&(Ye=p.formState)),d=oO(i,1,!0,d,p??null,g,R,P,J,re,be,Ye),d.context=aO(null),p=d.current,g=oi(),g=Rn(g),R=sc(g),R.callback=null,lc(p,R,g),p=g,d.current.lanes=p,Jt(d,p),_s(d),i[ge]=d.current,oS(i),new Gy(d)},Ih.version="19.1.1",Ih}var kO;function jF(){if(kO)return TS.exports;kO=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(),TS.exports=AF(),TS.exports}var NF=jF();/**
|
|
51
|
-
* react-router v7.18.4
|
|
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 RA=e=>{throw TypeError(e)},OA=(e,t,n)=>t.has(e)||RA("Cannot "+n),Li=(e,t,n)=>(OA(e,t,"read from private field"),n?n.call(e):t.get(e)),Cm=(e,t,n)=>t.has(e)?RA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Bs=(e,t,n,r)=>(OA(e,t,"write to private field"),t.set(e,n),n),jb=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Nb=/^[\\/]{2}/;function MA(e,t){return t+e.replace(/\\/g,"/")}var TO="popstate";function EO(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function IF(e={}){function t(r,o){let a=o.state?.masked,{pathname:s,search:l,hash:c}=a||r.location;return Qm("",{pathname:s,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default",a?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,o){return typeof o=="string"?o:wa(o)}return zF(t,n,null,e)}function Zn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function go(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function LF(){return Math.random().toString(36).substring(2,10)}function RO(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Qm(e,t,n=null,r,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ll(t):t,state:n,key:t&&t.key||r||LF(),mask:o}}function wa({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 ll(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 zF(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,l="POP",c=null,f=u();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function u(){return(s.state||{idx:null}).idx}function h(){l="POP";let w=u(),b=w==null?null:w-f;f=w,c&&c({action:l,location:x.location,delta:b})}function y(w,b){l="PUSH";let T=EO(w)?w:Qm(x.location,w,b);f=u()+1;let E=RO(T,f),M=x.createHref(T.mask||T);try{s.pushState(E,"",M)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(M)}a&&c&&c({action:l,location:x.location,delta:1})}function v(w,b){l="REPLACE";let T=EO(w)?w:Qm(x.location,w,b);f=u();let E=RO(T,f),M=x.createHref(T.mask||T);s.replaceState(E,"",M),a&&c&&c({action:l,location:x.location,delta:0})}function S(w){return $A(o,w)}let x={get action(){return l},get location(){return e(o,s)},listen(w){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(TO,h),c=w,()=>{o.removeEventListener(TO,h),c=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let b=S(w);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:y,replace:v,go(w){return s.go(w)}};return x}function $A(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),Zn(r,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:wa(t);return o=o.replace(/ $/,"%20"),!n&&Nb.test(o)&&(o=r+o),new URL(o,r)}var km,OO=class{constructor(e){if(Cm(this,km,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Li(this,km).has(e))return Li(this,km).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Li(this,km).set(e,t)}};km=new WeakMap;var FF=new Set(["lazy","caseSensitive","path","id","index","children"]);function _F(e){return FF.has(e)}var BF=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function UF(e){return BF.has(e)}function VF(e){return e.index===!0}function Xm(e,t,n=[],r={},o=!1){return e.map((a,s)=>{let l=[...n,String(s)],c=typeof a.id=="string"?a.id:l.join("-");if(Zn(a.index!==!0||!a.children,"Cannot specify children on an index route"),Zn(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),VF(a)){let f={...a,id:c};return r[c]=MO(f,t(f)),f}else{let f={...a,id:c,children:void 0};return r[c]=MO(f,t(f)),a.children&&(f.children=Xm(a.children,t,l,r,o)),f}})}function MO(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function PA(e,t,n="/"){return Ss(e,t,n,!1)}function Ss(e,t,n,r,o){let a=typeof t=="string"?ll(t):t,s=Gi(a.pathname||"/",n);if(s==null)return null;let l=o??Pv(e),c=null,f=t4(s);for(let u=0;c==null&&u<l.length;++u)c=e4(l[u],f,r);return c}function HF(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 Pv(e){let t=DA(e);return WF(t),t}function DA(e,t=[],n=[],r="",o=!1){let a=(s,l,c=o,f)=>{let u={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&c)return;Zn(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let h=Wi([r,u.relativePath]),y=n.concat(u);s.children&&s.children.length>0&&(Zn(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),DA(s.children,t,y,h,c)),!(s.path==null&&!s.index)&&t.push({path:h,score:ZF(h,s.index),routesMeta:y.map((v,S)=>{let[x,w]=NA(v.relativePath,v.caseSensitive,S===y.length-1);return{...v,matcher:x,compiledParams:w}})})};return e.forEach((s,l)=>{if(s.path===""||!s.path?.includes("?"))a(s,l);else for(let c of AA(s.path))a(s,l,!0,c)}),t}function AA(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=AA(r.join("/")),l=[];return l.push(...s.map(c=>c===""?a:[a,c].join("/"))),o&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function WF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:JF(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var qF=/^:[\w-]+$/,YF=3,GF=2,KF=1,QF=10,XF=-2,$O=e=>e==="*";function ZF(e,t){let n=e.split("/"),r=n.length;return n.some($O)&&(r+=XF),t&&(r+=GF),n.filter(o=>!$O(o)).reduce((o,a)=>o+(qF.test(a)?YF:a===""?KF:QF),r)}function JF(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 e4(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",s=[];for(let l=0;l<r.length;++l){let c=r[l],f=l===r.length-1,u=a==="/"?t:t.slice(a.length)||"/",h={path:c.relativePath,caseSensitive:c.caseSensitive,end:f},y=c.matcher&&c.compiledParams?jA(h,u,c.matcher,c.compiledParams):eb(h,u),v=c.route;if(!y&&f&&n&&!r[r.length-1].route.index&&(y=eb({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!y)return null;Object.assign(o,y.params),s.push({params:o,pathname:Wi([a,y.pathname]),pathnameBase:o4(Wi([a,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(a=Wi([a,y.pathnameBase]))}return s}function eb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=NA(e.path,e.caseSensitive,e.end);return jA(e,t,n,r)}function jA(e,t,n,r){let o=t.match(n);if(!o)return null;let a=o[0],s=op(a,1),l=o.slice(1);return{params:r.reduce((f,{paramName:u,isOptional:h},y)=>{if(u==="*"){let S=l[y]||"";s=op(a.slice(0,a.length-S.length),1)}const v=l[y];return h&&!v?f[u]=void 0:f[u]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:s,pattern:e}}function NA(e,t=!1,n=!0){go(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,c,f,u)=>{if(r.push({paramName:l,isOptional:c!=null}),c){let h=u.charAt(f+s.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).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 t4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return go(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Gi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function n4({basename:e,pathname:t}){return t==="/"?e:Wi([e,t])}var sC=e=>jb.test(e);function r4(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ll(e):e,a;return n?(n=lC(n),n.startsWith("/")||n.startsWith("\\")?a=PO(n.substring(1),"/"):a=PO(n,t)):a=t,{pathname:a,search:a4(r),hash:i4(o)}}function PO(e,t){let n=op(t).split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function MS(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 IA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ib(e){let t=IA(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function xg(e,t,n,r=!1){let o;typeof e=="string"?o=ll(e):(o={...e},Zn(!o.pathname||!o.pathname.includes("?"),MS("?","pathname","search",o)),Zn(!o.pathname||!o.pathname.includes("#"),MS("#","pathname","hash",o)),Zn(!o.search||!o.search.includes("#"),MS("#","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 c=r4(o,l),f=s&&s!=="/"&&s.endsWith("/"),u=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||u)&&(c.pathname+="/"),c}var lC=e=>e.replace(/[\\/]{2,}/g,"/"),Wi=e=>lC(e.join("/"));function op(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var o4=e=>op(e).replace(/^\/*/,"/"),a4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,s4=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Sg=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 Zm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function wg(e){let t=e.map(n=>n.route.path).filter(Boolean);return Wi(t)||"/"}var LA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function zA(e,t){let n=e;if(typeof n!="string"||!jb.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(LA)try{let a=new URL(window.location.href),s=Nb.test(n)?new URL(MA(n,a.protocol)):new URL(n),l=Gi(s.pathname,t);s.origin===a.origin&&l!=null?n=l+s.search+s.hash:o=!0}catch{go(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}var Nc=Symbol("Uninstrumented");function l4(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:t.id,index:t.index,path:t.path,instrument(a){let s=Object.keys(n);for(let l of s)a[l]&&n[l].push(a[l])}}));let r={};if(typeof t.lazy=="function"&&n.lazy.length>0){let o=Bf(n.lazy,t.lazy,()=>{});o&&(r.lazy=o)}if(typeof t.lazy=="object"){let o=t.lazy;["middleware","loader","action"].forEach(a=>{let s=o[a],l=n[`lazy.${a}`];if(typeof s=="function"&&l.length>0){let c=Bf(l,s,()=>{});c&&(r.lazy=Object.assign(r.lazy||{},{[a]:c}))}})}return["loader","action"].forEach(o=>{let a=t[o];if(typeof a=="function"&&n[o].length>0){let s=a[Nc]??a,l=Bf(n[o],s,(...c)=>DO(c[0]));l&&(o==="loader"&&s.hydrate===!0&&(l.hydrate=!0),l[Nc]=s,r[o]=l)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(o=>{let a=o[Nc]??o,s=Bf(n.middleware,a,(...l)=>DO(l[0]));return s?(s[Nc]=a,s):o})),r}function c4(e,t){let n={navigate:[],fetch:[]};if(t.forEach(r=>r({instrument(o){let a=Object.keys(o);for(let s of a)o[s]&&n[s].push(o[s])}})),n.navigate.length>0){let r=e.navigate[Nc]??e.navigate,o=Bf(n.navigate,r,(...a)=>{let[s,l]=a;return{to:typeof s=="number"||typeof s=="string"?s:s?wa(s):".",...AO(e,l??{})}});o&&(o[Nc]=r,e.navigate=o)}if(n.fetch.length>0){let r=e.fetch[Nc]??e.fetch,o=Bf(n.fetch,r,(...a)=>{let[s,,l,c]=a;return{href:l??".",fetcherKey:s,...AO(e,c??{})}});o&&(o[Nc]=r,e.fetch=o)}return e}function Bf(e,t,n){return e.length===0?null:async(...r)=>{let o=await FA(e,n(...r),()=>t(...r),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function FA(e,t,n,r){let o=e[r],a;if(o){let s,l=async()=>(s?console.error("You cannot call instrumented handlers more than once"):s=FA(e,t,n,r-1),a=await s,Zn(a,"Expected a result"),a.type==="error"&&a.value instanceof Error?{status:"error",error:a.value}:{status:"success",error:void 0});try{await o(l,t)}catch(c){console.error("An instrumentation function threw an error:",c)}s||await l(),await s}else try{a={type:"success",value:await n()}}catch(s){a={type:"error",value:s}}return a||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function DO(e){let{request:t,context:n,params:r,pattern:o}=e;return{request:u4(t),params:{...r},pattern:o,context:d4(n)}}function AO(e,t){return{currentUrl:wa(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function u4(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function d4(e){if(p4(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var f4=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function p4(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===f4}var jO=new URL("http://localhost");function cC(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),jO)}catch{return jO}}function $S(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function h4(e,t){if(e.startsWith("//"))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===""||e.slice(n.length).startsWith("//"):!1}function Yf(e,t,n,r){let o=null;try{o=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),s=o!=null&&!$S(o,n),l=!$S(a,n);if(r==="reject"){if(s||l)throw new Error("External navigation is not allowed")}else if(l&&(o==null||!h4(e,o)||!$S(o,a)))throw new Error("External navigation is not allowed")}var _A=["POST","PUT","PATCH","DELETE"],m4=new Set(_A),g4=["GET",..._A],y4=new Set(g4),BA=new Set([301,302,303,307,308]),v4=new Set([307,308]),PS={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},b4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Lh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},x4=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),UA="remix-router-transitions",VA=Symbol("ResetLoaderData"),Iu,jf,$c,Nf,S4=class{constructor(e){Cm(this,Iu),Cm(this,jf),Cm(this,$c),Cm(this,Nf),Bs(this,Iu,e),Bs(this,jf,Pv(e))}get stableRoutes(){return Li(this,Iu)}get activeRoutes(){return Li(this,$c)??Li(this,Iu)}get branches(){return Li(this,Nf)??Li(this,jf)}get hasHMRRoutes(){return Li(this,$c)!=null}setRoutes(e){Bs(this,Iu,e),Bs(this,jf,Pv(e))}setHmrRoutes(e){Bs(this,$c,e),Bs(this,Nf,Pv(e))}commitHmrRoutes(){Li(this,$c)&&(Bs(this,Iu,Li(this,$c)),Bs(this,jf,Li(this,Nf)),Bs(this,$c,void 0),Bs(this,Nf,void 0))}};Iu=new WeakMap;jf=new WeakMap;$c=new WeakMap;Nf=new WeakMap;function w4(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";Zn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||x4,a=o;if(e.instrumentations){let ge=e.instrumentations;a=Ee=>({...o(Ee),...l4(ge.map(Le=>Le.route).filter(Boolean),Ee)})}let s={},l=new S4(Xm(e.routes,a,void 0,s)),c=e.basename||"/";c.startsWith("/")||(c=`/${c}`);let f=e.dataStrategy||R4,u={...e.future},h=null,y=new Set,v=null,S=null,x=null,w=null,b=e.hydrationData!=null,T=Ss(l.activeRoutes,e.history.location,c,!1,l.branches),E=!1,M=null,$,D;if(T==null&&!e.patchRoutesOnNavigation){let ge=zi(404,{pathname:e.history.location.pathname}),{matches:Ee,route:Le}=Qy(l.activeRoutes);$=!0,D=!$,T=Ee,M={[Le.id]:ge}}else if(T&&!e.hydrationData&&$t(T,l.activeRoutes,e.history.location.pathname).active&&(T=null),T)if(T.some(ge=>ge.route.lazy))$=!1,D=!$;else if(!T.some(ge=>uC(ge.route)))$=!0,D=!$;else{let ge=e.hydrationData?e.hydrationData.loaderData:null,Ee=e.hydrationData?e.hydrationData.errors:null,Le=T;if(Ee){let Ve=T.findIndex(rt=>Ee[rt.route.id]!==void 0);Le=Le.slice(0,Ve+1)}D=!1,$=!0,Le.forEach(Ve=>{let rt=HA(Ve.route,ge,Ee);D=D||rt.renderFallback,$=$&&!rt.shouldLoad})}else{$=!1,D=!$,T=[];let ge=$t(null,l.activeRoutes,e.history.location.pathname);ge.active&&ge.matches&&(E=!0,T=ge.matches)}let I,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:$,renderFallback:D,navigation:PS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||M,fetchers:new Map,blockers:new Map},_="POP",W=null,V=!1,k,z=!1,F=new Map,H=null,N=!1,X=!1,Q=new Set,te=new Map,Z=0,K=-1,ne=new Map,le=new Set,fe=new Map,ae=new Map,se=new Set,ie=new Map,pe,me=null;function Te(){if(h=e.history.listen(({action:ge,location:Ee,delta:Le})=>{if(pe){pe(),pe=void 0;return}go(ie.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 Ve=Jt({currentLocation:A.location,nextLocation:Ee,historyAction:ge});if(Ve&&Le!=null){let rt=new Promise(kt=>{pe=kt});e.history.go(Le*-1),Un(Ve,{state:"blocked",location:Ee,proceed(){Un(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:Ee}),rt.then(()=>e.history.go(Le))},reset(){let kt=new Map(A.blockers);kt.set(Ve,Lh),ce({blockers:kt})}}),W?.resolve(),W=null;return}return Ae(ge,Ee)}),n){q4(t,F);let ge=()=>Y4(t,F);t.addEventListener("pagehide",ge),H=()=>t.removeEventListener("pagehide",ge)}return A.initialized||Ae("POP",A.location,{initialHydration:!0}),I}function Ce(){h&&h(),H&&H(),y.clear(),k&&k.abort(),A.fetchers.forEach((ge,Ee)=>Ct(A.fetchers,Ee)),A.blockers.forEach((ge,Ee)=>_n(Ee))}function ke(ge){if(y.add(ge),v){let{newErrors:Ee}=v;v=null,ge(A,{deletedFetchers:[],newErrors:Ee,viewTransitionOpts:void 0,flushSync:!1})}return()=>y.delete(ge)}function ce(ge,Ee={}){ge.matches&&(ge.matches=ge.matches.map(rt=>{let kt=s[rt.route.id],bt=rt.route;return bt.element!==kt.element||bt.errorElement!==kt.errorElement||bt.hydrateFallbackElement!==kt.hydrateFallbackElement?{...rt,route:kt}:rt})),A={...A,...ge};let Le=[],Ve=[];A.fetchers.forEach((rt,kt)=>{rt.state==="idle"&&(se.has(kt)?Le.push(kt):Ve.push(kt))}),se.forEach(rt=>{!A.fetchers.has(rt)&&!te.has(rt)&&Le.push(rt)}),y.size===0&&(v={newErrors:ge.errors??null}),[...y].forEach(rt=>rt(A,{deletedFetchers:Le,newErrors:ge.errors??null,viewTransitionOpts:Ee.viewTransitionOpts,flushSync:Ee.flushSync===!0})),Le.forEach(rt=>Ct(A.fetchers,rt)),Ve.forEach(rt=>A.fetchers.delete(rt))}function we(ge,Ee,{flushSync:Le}={}){let Ve=A.actionData!=null&&A.navigation.formMethod!=null&&la(A.navigation.formMethod)&&A.navigation.state==="loading"&&ge.state?._isRedirect!==!0,rt;Ee.actionData?Object.keys(Ee.actionData).length>0?rt=Ee.actionData:rt=null:Ve?rt=A.actionData:rt=null;let kt=Ee.loaderData?HO(A.loaderData,Ee.loaderData,Ee.matches||[],Ee.errors):A.loaderData,bt=A.blockers;bt.size>0&&(bt=new Map(bt),bt.forEach((Dt,Ft)=>bt.set(Ft,Lh)));let Tt=N?!1:en(ge,Ee.matches||A.matches),Pt=V===!0||A.navigation.formMethod!=null&&la(A.navigation.formMethod)&&ge.state?._isRedirect!==!0;l.commitHmrRoutes(),N||_==="POP"||(_==="PUSH"?e.history.push(ge,ge.state):_==="REPLACE"&&e.history.replace(ge,ge.state));let Kt;if(_==="POP"&&!N&&ge!==A.location){let Dt=F.get(A.location.pathname);Dt&&Dt.has(ge.pathname)?Kt={currentLocation:A.location,nextLocation:ge}:F.has(ge.pathname)&&(Kt={currentLocation:ge,nextLocation:A.location})}else if(z){let Dt=F.get(A.location.pathname);Dt?Dt.add(ge.pathname):(Dt=new Set([ge.pathname]),F.set(A.location.pathname,Dt)),Kt={currentLocation:A.location,nextLocation:ge}}ce({...Ee,actionData:rt,loaderData:kt,historyAction:_,location:ge,initialized:!0,renderFallback:!1,navigation:PS,revalidation:"idle",restoreScrollPosition:Tt,preventScrollReset:Pt,blockers:bt},{viewTransitionOpts:Kt,flushSync:Le===!0}),_="POP",V=!1,z=!1,N=!1,X=!1,W?.resolve(),W=null,me?.resolve(),me=null}async function Ge(ge,Ee){if(W?.resolve(),W=null,typeof ge=="number"){W||(W=GO());let ze=W.promise;return e.history.go(ge),ze}let Le=N1(A.location,A.matches,c,ge,Ee?.fromRouteId,Ee?.relative),{path:Ve,submission:rt,error:kt}=NO(!1,Le,Ee),bt;if(Ee?.mask){let ze=typeof Ee.mask=="string"?ll(Ee.mask):{...A.location.mask,...Ee.mask};if(bt={pathname:ze.pathname??"",search:ze.search??"",hash:ze.hash??""},Nb.test(bt.pathname))throw new Error("External navigation is not allowed");bt.pathname.startsWith("\\")&&(bt.pathname=bt.pathname.replace(/^\\+/,"/")),Yf(typeof Ee.mask=="string"?Ee.mask:wa(Ee.mask),wa(bt),e.history.createURL("/"),"reject")}let Tt=A.location,Pt=Qm(Tt,Ve,Ee&&Ee.state,void 0,bt);Pt={...Pt,...e.history.encodeLocation(Pt)},Yf(ge==null?e.history.createHref(A.location):typeof ge=="string"?ge:wa(ge),e.history.createHref(Pt.mask||Pt),e.history.createURL("/"),"reject");let Kt=Ee&&Ee.replace!=null?Ee.replace:void 0,Dt="PUSH";Kt===!0?Dt="REPLACE":Kt===!1||rt!=null&&la(rt.formMethod)&&rt.formAction===A.location.pathname+A.location.search&&(Dt="REPLACE");let Ft=Ee&&"preventScrollReset"in Ee?Ee.preventScrollReset===!0:void 0,ue=(Ee&&Ee.flushSync)===!0,de=Jt({currentLocation:Tt,nextLocation:Pt,historyAction:Dt});if(de){Un(de,{state:"blocked",location:Pt,proceed(){Un(de,{state:"proceeding",proceed:void 0,reset:void 0,location:Pt}),Ge(ge,Ee)},reset(){let ze=new Map(A.blockers);ze.set(de,Lh),ce({blockers:ze})}});return}await Ae(Dt,Pt,{submission:rt,pendingError:kt,preventScrollReset:Ft,replace:Ee&&Ee.replace,enableViewTransition:Ee&&Ee.viewTransition,flushSync:ue,callSiteDefaultShouldRevalidate:Ee&&Ee.defaultShouldRevalidate})}function Be(){me||(me=GO()),Ie(),ce({revalidation:"loading"});let ge=me.promise;return A.navigation.state==="submitting"?ge:A.navigation.state==="idle"?(Ae(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),ge):(Ae(_||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:z===!0}),ge)}async function Ae(ge,Ee,Le){k&&k.abort(),k=null,_=ge,N=(Le&&Le.startUninterruptedRevalidation)===!0,Rn(A.location,A.matches),V=(Le&&Le.preventScrollReset)===!0,z=(Le&&Le.enableViewTransition)===!0;let Ve=l.activeRoutes,rt=Le?.initialHydration&&A.matches&&A.matches.length>0&&!E?A.matches:Ss(Ve,Ee,c,!1,l.branches),kt=(Le&&Le.flushSync)===!0;if(rt&&A.initialized&&!X&&I4(A.location,Ee)&&!(Le&&Le.submission&&la(Le.submission.formMethod))){we(Ee,{matches:rt},{flushSync:kt});return}let bt=$t(rt,Ve,Ee.pathname);if(bt.active&&bt.matches&&(rt=bt.matches),!rt){let{error:Ue,notFoundMatches:Mt,route:Yt}=An(Ee.pathname);we(Ee,{matches:Mt,loaderData:{},errors:{[Yt.id]:Ue}},{flushSync:kt});return}let Tt=Le&&Le.overrideNavigation?{...Le.overrideNavigation,matches:rt,historyAction:ge}:void 0;k=new AbortController;let Pt=If(e.history,Ee,k.signal,Le&&Le.submission),Kt=e.getContext?await e.getContext():new OO,Dt;if(Le&&Le.pendingError)Dt=[Dc(rt).route.id,{type:"error",error:Le.pendingError}];else if(Le&&Le.submission&&la(Le.submission.formMethod)){let Ue=await oe(Pt,Ee,Le.submission,rt,ge,Kt,bt.active,Le&&Le.initialHydration===!0,{replace:Le.replace,flushSync:kt});if(Ue.shortCircuited)return;if(Ue.pendingActionResult){let[Mt,Yt]=Ue.pendingActionResult;if(li(Yt)&&Zm(Yt.error)&&Yt.error.status===404){k=null,we(Ee,{matches:Ue.matches,loaderData:{},errors:{[Mt]:Yt.error}});return}}rt=Ue.matches||rt,Dt=Ue.pendingActionResult,Tt=DS(Ee,rt,ge,Le.submission),kt=!1,bt.active=!1,Pt=If(e.history,Pt.url,Pt.signal)}let{shortCircuited:Ft,matches:ue,loaderData:de,errors:ze,workingFetchers:ft}=await lt(Pt,Ee,rt,ge,Kt,bt.active,Tt,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,kt,Dt,Le&&Le.callSiteDefaultShouldRevalidate);Ft||(k=null,we(Ee,{matches:ue||rt,...WO(Dt),loaderData:de,errors:ze,...ft?{fetchers:ft}:{}}))}async function oe(ge,Ee,Le,Ve,rt,kt,bt,Tt,Pt={}){Ie();let Kt=H4(Ee,Ve,rt,Le);if(ce({navigation:Kt},{flushSync:Pt.flushSync===!0}),bt){let ue=await zr(Ve,Ee.pathname,ge.signal);if(ue.type==="aborted")return{shortCircuited:!0};if(ue.type==="error"){if(ue.partialMatches.length===0){let{matches:ze,route:ft}=Qy(l.activeRoutes);return{matches:ze,pendingActionResult:[ft.id,{type:"error",error:ue.error}]}}let de=Dc(ue.partialMatches).route.id;return{matches:ue.partialMatches,pendingActionResult:[de,{type:"error",error:ue.error}]}}else if(ue.matches)Ve=ue.matches;else{let{notFoundMatches:de,error:ze,route:ft}=An(Ee.pathname);return{matches:de,pendingActionResult:[ft.id,{type:"error",error:ze}]}}}let Dt,Ft=Dv(Ve,Ee);if(!Ft.route.action&&!Ft.route.lazy)Dt={type:"error",error:zi(405,{method:ge.method,pathname:Ee.pathname,routeId:Ft.route.id})};else{let ue=Gf(a,s,ge,Ee,Ve,Ft,Tt?[]:r,kt),de=await Je(ge,Ee,ue,kt,null);if(Dt=de[Ft.route.id],!Dt){for(let ze of Ve)if(de[ze.route.id]){Dt=de[ze.route.id];break}}if(ge.signal.aborted)return{shortCircuited:!0}}if(Vu(Dt)){let ue;return Pt&&Pt.replace!=null?ue=Pt.replace:ue=BO(Dt.response.headers.get("Location"),new URL(ge.url),c,e.history)===A.location.pathname+A.location.search,await tt(ge,Dt,!0,{submission:Le,replace:ue}),{shortCircuited:!0}}if(li(Dt)){let ue=Dc(Ve,Ft.route.id);return(Pt&&Pt.replace)!==!0&&(_="PUSH"),{matches:Ve,pendingActionResult:[ue.route.id,Dt,Ft.route.id]}}return{matches:Ve,pendingActionResult:[Ft.route.id,Dt]}}async function lt(ge,Ee,Le,Ve,rt,kt,bt,Tt,Pt,Kt,Dt,Ft,ue,de){let ze=bt||DS(Ee,Le,Ve,Tt),ft=Tt||Pt||YO(ze),Ue=!N&&!Dt;if(kt){if(Ue){let Pr=Ne(ue);ce({navigation:ze,...Pr!==void 0?{actionData:Pr}:{}},{flushSync:Ft})}let Xt=await zr(Le,Ee.pathname,ge.signal);if(Xt.type==="aborted")return{shortCircuited:!0};if(Xt.type==="error"){if(Xt.partialMatches.length===0){let{matches:oo,route:To}=Qy(l.activeRoutes);return{matches:oo,loaderData:{},errors:{[To.id]:Xt.error}}}let Pr=Dc(Xt.partialMatches).route.id;return{matches:Xt.partialMatches,loaderData:{},errors:{[Pr]:Xt.error}}}else if(Xt.matches)Le=Xt.matches;else{let{error:Pr,notFoundMatches:oo,route:To}=An(Ee.pathname);return{matches:oo,loaderData:{},errors:{[To.id]:Pr}}}}let Mt=l.activeRoutes,{dsMatches:Yt,revalidatingFetchers:nn}=IO(ge,rt,a,s,e.history,A,Le,ft,Ee,Dt?[]:r,Dt===!0,X,Q,se,fe,le,Mt,c,e.patchRoutesOnNavigation!=null,l.branches,ue,de);if(K=++Z,!e.dataStrategy&&!Yt.some(Xt=>Xt.shouldLoad)&&!Yt.some(Xt=>Xt.route.middleware&&Xt.route.middleware.length>0)&&nn.length===0){let Xt=new Map(A.fetchers),Pr=qt(Xt);return we(Ee,{matches:Le,loaderData:{},errors:ue&&li(ue[1])?{[ue[0]]:ue[1].error}:null,...WO(ue),...Pr?{fetchers:Xt}:{}},{flushSync:Ft}),{shortCircuited:!0}}if(Ue){let Xt={};if(!kt){Xt.navigation=ze;let Pr=Ne(ue);Pr!==void 0&&(Xt.actionData=Pr)}nn.length>0&&(Xt.fetchers=et(nn)),ce(Xt,{flushSync:Ft})}nn.forEach(Xt=>{st(Xt.key),Xt.controller&&te.set(Xt.key,Xt.controller)});let ye=()=>nn.forEach(Xt=>st(Xt.key));k&&k.signal.addEventListener("abort",ye);let{loaderResults:Re,fetcherResults:it}=await ct(Yt,nn,ge,Ee,rt);if(ge.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",ye),nn.forEach(Xt=>te.delete(Xt.key));let xt=Xy(Re);if(xt)return await tt(ge,xt.result,!0,{replace:Kt}),{shortCircuited:!0};if(xt=Xy(it),xt)return le.add(xt.key),await tt(ge,xt.result,!0,{replace:Kt}),{shortCircuited:!0};let Et=new Map(A.fetchers),{loaderData:Rt,errors:At}=VO(A,Le,Re,ue,nn,it,Et);Dt&&A.errors&&(At={...A.errors,...At});let Zt=qt(Et),bn=mn(K,Et),tr=Zt||bn||nn.length>0;return{matches:Le,loaderData:Rt,errors:At,...tr?{workingFetchers:Et}:{}}}function Ne(ge){if(ge&&!li(ge[1]))return{[ge[0]]:ge[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function et(ge){let Ee=new Map(A.fetchers);return ge.forEach(Le=>{let Ve=Ee.get(Le.key),rt=zh(void 0,Ve?Ve.data:void 0);Ee.set(Le.key,rt)}),Ee}async function mt(ge,Ee,Le,Ve){st(ge);let rt=(Ve&&Ve.flushSync)===!0,kt=l.activeRoutes,bt=N1(A.location,A.matches,c,Le,Ee,Ve?.relative),Tt=Ss(kt,bt,c,!1,l.branches),Pt=$t(Tt,kt,bt);if(Pt.active&&Pt.matches&&(Tt=Pt.matches),!Tt){qe(ge,Ee,zi(404,{pathname:bt}),{flushSync:rt});return}let{path:Kt,submission:Dt,error:Ft}=NO(!0,bt,Ve);if(Ft){qe(ge,Ee,Ft,{flushSync:rt});return}let ue=e.getContext?await e.getContext():new OO,de=(Ve&&Ve.preventScrollReset)===!0;if(Dt&&la(Dt.formMethod)){await Wt(ge,Ee,Kt,Tt,ue,Pt.active,rt,de,Dt,Ve&&Ve.defaultShouldRevalidate);return}fe.set(ge,{routeId:Ee,path:Kt}),await zt(ge,Ee,Kt,Tt,ue,Pt.active,rt,de,Dt)}async function Wt(ge,Ee,Le,Ve,rt,kt,bt,Tt,Pt,Kt){Ie(),fe.delete(ge);let Dt=A.fetchers.get(ge);he(ge,W4(Pt,Dt),{flushSync:bt});let Ft=new AbortController,ue=If(e.history,Le,Ft.signal,Pt);if(kt){let cr=await zr(Ve,new URL(ue.url).pathname,ue.signal,ge);if(cr.type==="aborted")return;if(cr.type==="error"){qe(ge,Ee,cr.error,{flushSync:bt});return}else if(cr.matches)Ve=cr.matches;else{qe(ge,Ee,zi(404,{pathname:Le}),{flushSync:bt});return}}let de=Dv(Ve,Le);if(!de.route.action&&!de.route.lazy){let cr=zi(405,{method:Pt.formMethod,pathname:Le,routeId:Ee});qe(ge,Ee,cr,{flushSync:bt});return}te.set(ge,Ft);let ze=Z,ft=Gf(a,s,ue,Le,Ve,de,r,rt),Ue=await Je(ue,Le,ft,rt,ge),Mt=Ue[de.route.id];if(!Mt){for(let cr of ft)if(Ue[cr.route.id]){Mt=Ue[cr.route.id];break}}if(ue.signal.aborted){te.get(ge)===Ft&&te.delete(ge);return}if(se.has(ge)){if(Vu(Mt)||li(Mt)){he(ge,Ws(void 0));return}}else{if(Vu(Mt))if(te.delete(ge),K>ze){he(ge,Ws(void 0));return}else return le.add(ge),he(ge,zh(Pt)),tt(ue,Mt,!1,{fetcherSubmission:Pt,preventScrollReset:Tt});if(li(Mt)){qe(ge,Ee,Mt.error);return}}let Yt=A.navigation.location||A.location,nn=If(e.history,Yt,Ft.signal),ye=l.activeRoutes,Re=A.navigation.state!=="idle"?Ss(ye,A.navigation.location,c,!1,l.branches):A.matches;Zn(Re,"Didn't find any matches after fetcher action");let it=++Z;ne.set(ge,it);let{dsMatches:xt,revalidatingFetchers:Et}=IO(nn,rt,a,s,e.history,A,Re,Pt,Yt,r,!1,X,Q,se,fe,le,ye,c,e.patchRoutesOnNavigation!=null,l.branches,[de.route.id,Mt],Kt),Rt=zh(Pt,Mt.data),At=new Map(A.fetchers);At.set(ge,Rt),Et.filter(cr=>cr.key!==ge).forEach(cr=>{let Fr=cr.key,Ya=At.get(Fr),fl=zh(void 0,Ya?Ya.data:void 0);At.set(Fr,fl),st(Fr),cr.controller&&te.set(Fr,cr.controller)}),ce({fetchers:At});let Zt=()=>Et.forEach(cr=>st(cr.key));Ft.signal.addEventListener("abort",Zt);let{loaderResults:bn,fetcherResults:tr}=await ct(xt,Et,nn,Yt,rt);if(Ft.signal.aborted)return;Ft.signal.removeEventListener("abort",Zt),ne.delete(ge),te.delete(ge),Et.forEach(cr=>te.delete(cr.key));let Xt=A.fetchers.has(ge),Pr=cr=>{if(!Xt)return cr;let Fr=new Map(cr.fetchers);return Fr.set(ge,Ws(Mt.data)),{...cr,fetchers:Fr}},oo=Xy(bn);if(oo)return A=Pr(A),tt(nn,oo.result,!1,{preventScrollReset:Tt});if(oo=Xy(tr),oo)return le.add(oo.key),A=Pr(A),tt(nn,oo.result,!1,{preventScrollReset:Tt});let To=new Map(A.fetchers);Xt&&To.set(ge,Ws(Mt.data));let{loaderData:is,errors:ea}=VO(A,Re,bn,void 0,Et,tr,To);mn(it,To),A.navigation.state==="loading"&&it>K?(Zn(_,"Expected pending action"),k&&k.abort(),we(A.navigation.location,{matches:Re,loaderData:is,errors:ea,fetchers:To})):(ce({errors:ea,loaderData:HO(A.loaderData,is,Re,ea),fetchers:To}),X=!1)}async function zt(ge,Ee,Le,Ve,rt,kt,bt,Tt,Pt){let Kt=A.fetchers.get(ge);he(ge,zh(Pt,Kt?Kt.data:void 0),{flushSync:bt});let Dt=new AbortController,Ft=If(e.history,Le,Dt.signal);if(kt){let Mt=await zr(Ve,new URL(Ft.url).pathname,Ft.signal,ge);if(Mt.type==="aborted")return;if(Mt.type==="error"){qe(ge,Ee,Mt.error,{flushSync:bt});return}else if(Mt.matches)Ve=Mt.matches;else{qe(ge,Ee,zi(404,{pathname:Le}),{flushSync:bt});return}}let ue=Dv(Ve,Le);te.set(ge,Dt);let de=Z,ze=Gf(a,s,Ft,Le,Ve,ue,r,rt),ft=await Je(Ft,Le,ze,rt,ge),Ue=ft[ue.route.id];if(!Ue){for(let Mt of Ve)if(ft[Mt.route.id]){Ue=ft[Mt.route.id];break}}if(te.get(ge)===Dt&&te.delete(ge),!Ft.signal.aborted){if(se.has(ge)){he(ge,Ws(void 0));return}if(Vu(Ue))if(K>de){he(ge,Ws(void 0));return}else{le.add(ge),await tt(Ft,Ue,!1,{preventScrollReset:Tt});return}if(li(Ue)){qe(ge,Ee,Ue.error);return}he(ge,Ws(Ue.data))}}async function tt(ge,Ee,Le,{submission:Ve,fetcherSubmission:rt,preventScrollReset:kt,replace:bt}={}){Le||(W?.resolve(),W=null),Ee.response.headers.has("X-Remix-Revalidate")&&(X=!0);let Tt=Ee.response.headers.get("Location");Zn(Tt,"Expected a Location header on the redirect Response");let Pt=Tt,Kt=new URL(ge.url);Tt=BO(Tt,Kt,c,e.history),Yf(Pt,Tt,Kt,"allow-explicit");let Dt=Qm(A.location,Tt,{_isRedirect:!0});if(n){let Ue=!1;if(Ee.response.headers.has("X-Remix-Reload-Document"))Ue=!0;else if(sC(Tt)){const Mt=$A(t,Tt,!0);Ue=Mt.origin!==t.location.origin||Gi(Mt.pathname,c)==null}if(Ue){bt?t.location.replace(Tt):t.location.assign(Tt);return}}k=null;let Ft=bt===!0||Ee.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ue,formAction:de,formEncType:ze}=A.navigation;!Ve&&!rt&&ue&&de&&ze&&(Ve=YO(A.navigation));let ft=Ve||rt;if(v4.has(Ee.response.status)&&ft&&la(ft.formMethod))await Ae(Ft,Dt,{submission:{...ft,formAction:Tt},preventScrollReset:kt||V,enableViewTransition:Le?z:void 0});else{let Ue=DS(Dt,[],Ft,Ve);await Ae(Ft,Dt,{overrideNavigation:Ue,fetcherSubmission:rt,preventScrollReset:kt||V,enableViewTransition:Le?z:void 0})}}async function Je(ge,Ee,Le,Ve,rt){let kt,bt={};try{kt=await M4(f,ge,Ee,Le,rt,Ve,!1)}catch(Tt){return Le.filter(Pt=>Pt.shouldLoad).forEach(Pt=>{bt[Pt.route.id]={type:"error",error:Tt}}),bt}if(ge.signal.aborted)return bt;if(!la(ge.method))for(let Tt of Le){if(kt[Tt.route.id]?.type==="error")break;!kt.hasOwnProperty(Tt.route.id)&&!A.loaderData.hasOwnProperty(Tt.route.id)&&(!A.errors||!A.errors.hasOwnProperty(Tt.route.id))&&Tt.shouldCallHandler()&&(kt[Tt.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Tt.route.id}`)})}for(let[Tt,Pt]of Object.entries(kt))if(_4(Pt)){let Kt=Pt.result;bt[Tt]={type:"redirect",response:A4(Kt,ge,Tt,Le,c)}}else bt[Tt]=await D4(Pt);return bt}async function ct(ge,Ee,Le,Ve,rt){let kt=Je(Le,Ve,ge,rt,null),bt=Promise.all(Ee.map(async Kt=>{if(Kt.matches&&Kt.match&&Kt.request&&Kt.controller){let Ft=(await Je(Kt.request,Kt.path,Kt.matches,rt,Kt.key))[Kt.match.route.id];return{[Kt.key]:Ft}}else return Promise.resolve({[Kt.key]:{type:"error",error:zi(404,{pathname:Kt.path})}})})),Tt=await kt,Pt=(await bt).reduce((Kt,Dt)=>Object.assign(Kt,Dt),{});return{loaderResults:Tt,fetcherResults:Pt}}function Ie(){X=!0,fe.forEach((ge,Ee)=>{te.has(Ee)&&Q.add(Ee),st(Ee)})}function he(ge,Ee,Le={}){let Ve=new Map(A.fetchers);Ve.set(ge,Ee),ce({fetchers:Ve},{flushSync:(Le&&Le.flushSync)===!0})}function qe(ge,Ee,Le,Ve={}){let rt=Dc(A.matches,Ee),kt=new Map(A.fetchers);Ct(kt,ge),ce({errors:{[rt.route.id]:Le},fetchers:kt},{flushSync:(Ve&&Ve.flushSync)===!0})}function De(ge){return ae.set(ge,(ae.get(ge)||0)+1),se.has(ge)&&se.delete(ge),A.fetchers.get(ge)||b4}function wt(ge,Ee){st(ge,Ee?.reason),he(ge,Ws(null))}function Ct(ge,Ee){let Le=A.fetchers.get(Ee);te.has(Ee)&&!(Le&&Le.state==="loading"&&ne.has(Ee))&&st(Ee),fe.delete(Ee),ne.delete(Ee),le.delete(Ee),se.delete(Ee),Q.delete(Ee),ge.delete(Ee)}function yt(ge){let Ee=(ae.get(ge)||0)-1;Ee<=0?(ae.delete(ge),se.add(ge)):ae.set(ge,Ee),ce({fetchers:new Map(A.fetchers)})}function st(ge,Ee){let Le=te.get(ge);Le&&(Le.abort(Ee),te.delete(ge))}function jt(ge,Ee){for(let Le of ge){let Ve=Ee.get(Le);Zn(Ve,`Expected fetcher: ${Le}`);let rt=Ws(Ve.data);Ee.set(Le,rt)}}function qt(ge){let Ee=[],Le=!1;for(let Ve of le){let rt=ge.get(Ve);Zn(rt,`Expected fetcher: ${Ve}`),rt.state==="loading"&&(le.delete(Ve),Ee.push(Ve),Le=!0)}return jt(Ee,ge),Le}function mn(ge,Ee){let Le=[];for(let[Ve,rt]of ne)if(rt<ge){let kt=Ee.get(Ve);Zn(kt,`Expected fetcher: ${Ve}`),kt.state==="loading"&&(st(Ve),ne.delete(Ve),Le.push(Ve))}return jt(Le,Ee),Le.length>0}function $n(ge,Ee){let Le=A.blockers.get(ge)||Lh;return ie.get(ge)!==Ee&&ie.set(ge,Ee),Le}function _n(ge){A.blockers.delete(ge),ie.delete(ge)}function Un(ge,Ee){let Le=A.blockers.get(ge)||Lh;Zn(Le.state==="unblocked"&&Ee.state==="blocked"||Le.state==="blocked"&&Ee.state==="blocked"||Le.state==="blocked"&&Ee.state==="proceeding"||Le.state==="blocked"&&Ee.state==="unblocked"||Le.state==="proceeding"&&Ee.state==="unblocked",`Invalid blocker state transition: ${Le.state} -> ${Ee.state}`);let Ve=new Map(A.blockers);Ve.set(ge,Ee),ce({blockers:Ve})}function Jt({currentLocation:ge,nextLocation:Ee,historyAction:Le}){if(ie.size===0)return;ie.size>1&&go(!1,"A router only supports one blocker at a time");let Ve=Array.from(ie.entries()),[rt,kt]=Ve[Ve.length-1],bt=A.blockers.get(rt);if(!(bt&&bt.state==="proceeding")&&kt({currentLocation:ge,nextLocation:Ee,historyAction:Le}))return rt}function An(ge){let Ee=zi(404,{pathname:ge}),Le=l.activeRoutes,{matches:Ve,route:rt}=Qy(Le);return{notFoundMatches:Ve,route:rt,error:Ee}}function xe(ge,Ee,Le){if(S=ge,w=Ee,x=Le||null,!b&&A.navigation===PS){b=!0;let Ve=en(A.location,A.matches);Ve!=null&&ce({restoreScrollPosition:Ve})}return()=>{S=null,w=null,x=null}}function Vn(ge,Ee){return x&&x(ge,Ee.map(Ve=>HF(Ve,A.loaderData)))||ge.key}function Rn(ge,Ee){if(S&&w){let Le=Vn(ge,Ee);S[Le]=w()}}function en(ge,Ee){if(S){let Le=Vn(ge,Ee),Ve=S[Le];if(typeof Ve=="number")return Ve}return null}function $t(ge,Ee,Le){if(e.patchRoutesOnNavigation){let Ve=l.branches;if(ge){if(Object.keys(ge[0].params).length>0)return{active:!0,matches:Ss(Ee,Le,c,!0,Ve)}}else return{active:!0,matches:Ss(Ee,Le,c,!0,Ve)||[]}}return{active:!1,matches:null}}async function zr(ge,Ee,Le,Ve){if(!e.patchRoutesOnNavigation)return{type:"success",matches:ge};let rt=ge;for(;;){let kt=s;try{await e.patchRoutesOnNavigation({signal:Le,path:Ee,matches:rt,fetcherKey:Ve,patch:(Kt,Dt)=>{Le.aborted||LO(Kt,Dt,l,kt,a,!1)}})}catch(Kt){return{type:"error",error:Kt,partialMatches:rt}}if(Le.aborted)return{type:"aborted"};let bt=l.branches,Tt=Ss(l.activeRoutes,Ee,c,!1,bt),Pt=null;if(Tt){if(Object.keys(Tt[0].params).length===0)return{type:"success",matches:Tt};if(Pt=Ss(l.activeRoutes,Ee,c,!0,bt),!(Pt&&rt.length<Pt.length&&Fn(rt,Pt.slice(0,rt.length))))return{type:"success",matches:Tt}}if(Pt||(Pt=Ss(l.activeRoutes,Ee,c,!0,bt)),!Pt||Fn(rt,Pt))return{type:"success",matches:null};rt=Pt}}function Fn(ge,Ee){return ge.length===Ee.length&&ge.every((Le,Ve)=>Le.route.id===Ee[Ve].route.id)}function on(ge){s={},l.setHmrRoutes(Xm(ge,a,void 0,s))}function Ln(ge,Ee,Le=!1){LO(ge,Ee,l,s,a,Le),l.hasHMRRoutes||ce({})}return I={get basename(){return c},get future(){return u},get state(){return A},get routes(){return l.stableRoutes},get branches(){return l.branches},get manifest(){return s},get window(){return t},initialize:Te,subscribe:ke,enableScrollRestoration:xe,navigate:Ge,fetch:mt,revalidate:Be,createHref:ge=>e.history.createHref(ge),createURL:ge=>e.history.createURL(ge),encodeLocation:ge=>e.history.encodeLocation(ge),getFetcher:De,resetFetcher:wt,deleteFetcher:yt,dispose:Ce,getBlocker:$n,deleteBlocker:_n,patchRoutes:Ln,_internalFetchControllers:te,_internalSetRoutes:on,_internalSetStateDoNotUseOrYouWillBreakYourApp(ge){ce(ge)}},e.instrumentations&&(I=c4(I,e.instrumentations.map(ge=>ge.router).filter(Boolean))),I}function C4(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function N1(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 c=xg(r||".",Ib(s),Gi(e.pathname,n)||e.pathname,a==="path");if(r==null&&(c.search=e.search,c.hash=e.hash),(r==null||r===""||r===".")&&l){let f=fC(c.search);if(l.route.index&&!f)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&f){let u=new URLSearchParams(c.search),h=u.getAll("index");u.delete("index"),h.filter(v=>v).forEach(v=>u.append("index",v));let y=u.toString();c.search=y?`?${y}`:""}}return n!=="/"&&(c.pathname=n4({basename:n,pathname:c.pathname})),wa(c)}function NO(e,t,n){if(!n||!C4(n))return{path:t};if(n.formMethod&&!V4(n.formMethod))return{path:t,error:zi(405,{method:n.formMethod})};let r=()=>({path:t,error:zi(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=XA(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!la(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,[v,S])=>`${y}${v}=${S}
|
|
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(!la(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()}}}Zn(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=z1(n.formData),c=n.formData;else if(n.body instanceof FormData)l=z1(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=UO(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=UO(l)}catch{return r()}let f={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(la(f.formMethod))return{path:t,submission:f};let u=ll(t);return e&&u.search&&fC(u.search)&&l.append("index",""),u.search=`?${l}`,{path:wa(u),submission:f}}function IO(e,t,n,r,o,a,s,l,c,f,u,h,y,v,S,x,w,b,T,E,M,$){let D=M?li(M[1])?M[1].error:M[1].data:void 0,I=o.createURL(a.location),A=o.createURL(c),_;if(u&&a.errors){let N=Object.keys(a.errors)[0];_=s.findIndex(X=>X.route.id===N)}else if(M&&li(M[1])){let N=M[0];_=s.findIndex(X=>X.route.id===N)-1}let W=M?M[1].statusCode:void 0,V=W&&W>=400,k={currentUrl:I,currentParams:a.matches[0]?.params||{},nextUrl:A,nextParams:s[0].params,...l,actionResult:D,actionStatus:W},z=wg(s),F=s.map((N,X)=>{let{route:Q}=N,te=null;if(_!=null&&X>_)te=!1;else if(Q.lazy)te=!0;else if(!uC(Q))te=!1;else if(u){let{shouldLoad:le}=HA(Q,a.loaderData,a.errors);te=le}else k4(a.loaderData,a.matches[X],N)&&(te=!0);if(te!==null)return I1(n,r,e,c,z,N,f,t,te);let Z=!1;typeof $=="boolean"?Z=$:V?Z=!1:(h||I.pathname+I.search===A.pathname+A.search||I.search!==A.search||T4(a.matches[X],N))&&(Z=!0);let K={...k,defaultShouldRevalidate:Z},ne=Nm(N,K);return I1(n,r,e,c,z,N,f,t,ne,K,$)}),H=[];return S.forEach((N,X)=>{if(u||!s.some(ae=>ae.route.id===N.routeId)||v.has(X))return;let Q=a.fetchers.get(X),te=Q&&Q.state!=="idle"&&Q.data===void 0,Z=Ss(w,N.path,b??"/",!1,E);if(!Z){if(T&&te)return;H.push({key:X,routeId:N.routeId,path:N.path,matches:null,match:null,request:null,controller:null});return}if(x.has(X))return;let K=Dv(Z,N.path),ne=new AbortController,le=If(o,N.path,ne.signal),fe=null;if(y.has(X))y.delete(X),fe=Gf(n,r,le,N.path,Z,K,f,t);else if(te)h&&(fe=Gf(n,r,le,N.path,Z,K,f,t));else{let ae;typeof $=="boolean"?ae=$:V?ae=!1:ae=h;let se={...k,defaultShouldRevalidate:ae};Nm(K,se)&&(fe=Gf(n,r,le,N.path,Z,K,f,t,se))}fe&&H.push({key:X,routeId:N.routeId,path:N.path,matches:fe,match:K,request:le,controller:ne})}),{dsMatches:F,revalidatingFetchers:H}}function uC(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function HA(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!uC(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;if(!r&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!o;return{shouldLoad:a,renderFallback:a}}function k4(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function T4(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Nm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function LO(e,t,n,r,o,a){let s;if(e){let f=r[e];Zn(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),s=f.children}else s=n.activeRoutes;let l=[],c=[];if(t.forEach(f=>{let u=s.find(h=>WA(f,h));u?c.push({existingRoute:u,newRoute:f}):l.push(f)}),l.length>0){let f=Xm(l,o,[e||"_","patch",String(s?.length||"0")],r);s.push(...f)}if(a&&c.length>0)for(let f=0;f<c.length;f++){let{existingRoute:u,newRoute:h}=c[f],y=u,[v]=Xm([h],o,[],{},!0);Object.assign(y,{element:v.element?v.element:y.element,errorElement:v.errorElement?v.errorElement:y.errorElement,hydrateFallbackElement:v.hydrateFallbackElement?v.hydrateFallbackElement:y.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function WA(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=>WA(n,o)))??!1:!1}var zO=new WeakMap,qA=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(Zn(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let s=zO.get(o);s||(s={},zO.set(o,s));let l=s[e];if(l)return l;let c=(async()=>{let f=_F(e),h=o[e]!==void 0&&e!=="hasErrorBoundary";if(f)go(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(h)go(!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]=c,c},FO=new WeakMap;function E4(e,t,n,r,o){let a=n[e.id];if(Zn(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let u=FO.get(a);if(u)return{lazyRoutePromise:u,lazyHandlerPromise:u};let h=(async()=>{Zn(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),v={};for(let S in y){let x=y[S];if(x===void 0)continue;let w=UF(S),T=a[S]!==void 0&&S!=="hasErrorBoundary";w?go(!w,"Route property "+S+" is not a supported property to be returned from a lazy route function. This property will be ignored."):T?go(!T,`Route "${a.id}" has a static property "${S}" defined but its lazy function is also returning a value for this property. The lazy route property "${S}" will be ignored.`):v[S]=x}Object.assign(a,v),Object.assign(a,{...r(a),lazy:void 0})})();return FO.set(a,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let s=Object.keys(e.lazy),l=[],c;for(let u of s){if(o&&o.includes(u))continue;let h=qA({key:u,route:e,manifest:n,mapRouteProperties:r});h&&(l.push(h),u===t&&(c=h))}let f=l.length>0?Promise.all(l).then(()=>{}):void 0;return f?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:c}}async function _O(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 R4(e){return e.matches.some(t=>t.route.middleware)?YA(e,()=>_O(e)):_O(e)}function YA(e,t){return O4(e,t,r=>{if(U4(r))throw r;return r},z4,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(Math.max(s.findIndex(f=>f.route.id===o),0),Math.max(s.findIndex(f=>f.shouldCallHandler()),0)),c=Dc(s,s[l].route.id).route.id;return Promise.resolve({[c]:{type:"error",result:r}})}}}async function O4(e,t,n,r,o){let{matches:a,...s}=e,l=a.flatMap(f=>f.route.middleware?f.route.middleware.map(u=>[f.route.id,u]):[]);return await GA(s,l,t,n,r,o)}async function GA(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 c=t[s];if(!c)return await n();let[f,u]=c,h,y=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");try{return h={value:await GA(e,t,n,r,o,a,s+1)},h.value}catch(v){return h={value:await a(v,f,h)},h.value}};try{let v=await u(e,y),S=v!=null?r(v):void 0;return o(S)?S:h?S??h.value:(h={value:await y()},h.value)}catch(v){return await a(v,f,h)}}function KA(e,t,n,r,o){let a=qA({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=E4(r.route,la(n.method)?"action":"loader",t,e,o);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function I1(e,t,n,r,o,a,s,l,c,f=null,u){let h=!1,y=KA(e,t,n,a,s);return{...a,_lazyPromises:y,shouldLoad:c,shouldRevalidateArgs:f,shouldCallHandler(v){return h=!0,f?typeof u=="boolean"?Nm(a,{...f,defaultShouldRevalidate:u}):typeof v=="boolean"?Nm(a,{...f,defaultShouldRevalidate:v}):Nm(a,f):c},resolve(v){let{lazy:S,loader:x,middleware:w}=a.route,b=h||c||v&&!la(n.method)&&(S||x),T=w&&w.length>0&&!x&&!S;return b&&(la(n.method)||!T)?$4({request:n,path:r,pattern:o,match:a,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:v,scopedContext:l}):Promise.resolve({type:"data",result:void 0})}}}function Gf(e,t,n,r,o,a,s,l,c=null){return o.map(f=>f.route.id!==a.route.id?{...f,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:KA(e,t,n,f,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:I1(e,t,n,r,wg(o),f,s,l,!0,c))}async function M4(e,t,n,r,o,a,s){r.some(u=>u._lazyPromises?.middleware)&&await Promise.all(r.map(u=>u._lazyPromises?.middleware));let l={request:t,url:QA(t,n),pattern:wg(r),params:r[0].params,context:a,matches:r},f=await e({...l,fetcherKey:o,runClientMiddleware:u=>{let h=l;return YA(h,()=>u({...h,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(u=>[u._lazyPromises?.handler,u._lazyPromises?.route]))}catch{}return f}async function $4({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:o,lazyRoutePromise:a,handlerOverride:s,scopedContext:l}){let c,f,u=la(e.method),h=u?"action":"loader",y=v=>{let S,x=new Promise((T,E)=>S=E);f=()=>S(),e.signal.addEventListener("abort",f);let w=T=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${h}" [routeId: ${r.route.id}]`)):v({request:e,url:QA(e,t),pattern:n,params:r.params,context:l},...T!==void 0?[T]:[]),b=(async()=>{try{return{type:"data",result:await(s?s(E=>w(E)):w())}}catch(T){return{type:"error",result:T}}})();return Promise.race([b,x])};try{let v=u?r.route.action:r.route.loader;if(o||a)if(v){let S,[x]=await Promise.all([y(v).catch(w=>{S=w}),o,a]);if(S!==void 0)throw S;c=x}else{await o;let S=u?r.route.action:r.route.loader;if(S)[c]=await Promise.all([y(S),a]);else if(h==="action"){let x=new URL(e.url),w=x.pathname+x.search;throw zi(405,{method:e.method,pathname:w,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(v)c=await y(v);else{let S=new URL(e.url),x=S.pathname+S.search;throw zi(404,{pathname:x})}}catch(v){return{type:"error",result:v}}finally{f&&e.signal.removeEventListener("abort",f)}return c}async function P4(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 D4(e){let{result:t,type:n}=e;if(dC(t)){let r;try{r=await P4(t)}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new Sg(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?qO(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:L4(t),statusCode:Zm(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Zm(t)?t.status:void 0}:qO(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 A4(e,t,n,r,o){let a=e.headers.get("Location");if(Zn(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!sC(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=N1(new URL(t.url),s,o,a),e.headers.set("Location",a)}return e}var j4=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function L1(e){try{return j4.includes(new URL(e).protocol)}catch{return!1}}function BO(e,t,n,r){if(sC(e)){let o=e,a=Nb.test(o)?new URL(MA(o,t.protocol)):new URL(o);if(L1(a.toString()))throw new Error("Invalid redirect location");let s=Gi(a.pathname,n)!=null;if(a.origin===t.origin&&s)return lC(a.pathname)+a.search+a.hash}try{let o=r.createURL(e);if(L1(o.toString()))throw new Error("Invalid redirect location")}catch{}return e}function If(e,t,n,r){let o=e.createURL(XA(t)).toString(),a={signal:n};if(r&&la(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=z1(r.formData):a.body=r.formData}return new Request(o,a)}function QA(e,t){let n=new URL(e.url),r=typeof t=="string"?ll(t):t;if(n.pathname=r.pathname||"/",r.search){let o=new URLSearchParams(r.search),a=o.getAll("index");o.delete("index");for(let s of a.filter(Boolean))o.append("index",s);n.search=o.size?`?${o.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function z1(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function UO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function N4(e,t,n,r=!1,o=!1){let a={},s=null,l,c=!1,f={},u=n&&li(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let y=h.route.id,v=t[y];if(Zn(!Vu(v),"Cannot handle redirect results in processLoaderData"),li(v)){let S=v.error;if(u!==void 0&&(S=u,u=void 0),s=s||{},o)s[y]=S;else{let x=Dc(e,y);s[x.route.id]==null&&(s[x.route.id]=S)}r||(a[y]=VA),c||(c=!0,l=Zm(v.error)?v.error.status:500),v.headers&&(f[y]=v.headers)}else a[y]=v.data,v.statusCode&&v.statusCode!==200&&!c&&(l=v.statusCode),v.headers&&(f[y]=v.headers)}),u!==void 0&&n&&(s={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:s,statusCode:l||200,loaderHeaders:f}}function VO(e,t,n,r,o,a,s){let{loaderData:l,errors:c}=N4(t,n,r);return o.filter(f=>!f.matches||f.matches.some(u=>u.shouldLoad)).forEach(f=>{let{key:u,match:h,controller:y}=f;if(y&&y.signal.aborted)return;let v=a[u];if(Zn(v,"Did not find corresponding fetcher result"),li(v)){let S=Dc(e.matches,h?.route.id);c&&c[S.route.id]||(c={...c,[S.route.id]:v.error}),s.delete(u)}else if(Vu(v))Zn(!1,"Unhandled fetcher revalidation redirect");else{let S=Ws(v.data);s.set(u,S)}}),{loaderData:l,errors:c}}function HO(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==VA).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 WO(e){return e?li(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Dc(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 Qy(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 zi(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 Sg(e||500,s,new Error(l),!0)}function Xy(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Vu(o))return{key:r,result:o}}}function XA(e){let t=typeof e=="string"?ll(e):e;return wa({...t,hash:""})}function I4(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function L4(e){return new Sg(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function z4(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&F4(n))}function F4(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function _4(e){return dC(e.result)&&BA.has(e.result.status)}function li(e){return e.type==="error"}function Vu(e){return(e&&e.type)==="redirect"}function qO(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function dC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function B4(e){return BA.has(e)}function U4(e){return dC(e)&&B4(e.status)&&e.headers.has("Location")}function V4(e){return y4.has(e.toUpperCase())}function la(e){return m4.has(e.toUpperCase())}function fC(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Dv(e,t){let n=typeof t=="string"?ll(t).search:t.search;if(e[e.length-1].route.index&&fC(n||""))return e[e.length-1];let r=IA(e);return r[r.length-1]}function YO(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 DS(e,t,n,r){return r?{state:"loading",location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:"loading",location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function H4(e,t,n,r){return{state:"submitting",location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function zh(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 W4(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 Ws(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 q4(e,t){try{let n=e.sessionStorage.getItem(UA);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 Y4(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(UA,JSON.stringify(n))}catch(r){go(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function GO(){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 md=C.createContext(null);md.displayName="DataRouter";var Cg=C.createContext(null);Cg.displayName="DataRouterState";var ZA=C.createContext(!1);function JA(){return C.useContext(ZA)}var pC=C.createContext({isTransitioning:!1});pC.displayName="ViewTransition";var ej=C.createContext(new Map);ej.displayName="Fetchers";var G4=C.createContext(null);G4.displayName="Await";var xi=C.createContext(null);xi.displayName="Navigation";var Lb=C.createContext(null);Lb.displayName="Location";var ts=C.createContext({outlet:null,matches:[],isDataRoute:!1});ts.displayName="Route";var hC=C.createContext(null);hC.displayName="RouteError";var tj="REACT_ROUTER_ERROR",K4="REDIRECT",Q4="ROUTE_ERROR_RESPONSE";function X4(e){if(e.startsWith(`${tj}:${K4}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Z4(e){if(e.startsWith(`${tj}:${Q4}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Sg(t.status,t.statusText,t.data)}catch{}}function J4(e,{relative:t}={}){Zn(Sp(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(xi),{hash:o,pathname:a,search:s}=Tg(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:Wi([n,a])),r.createHref({pathname:l,search:s,hash:o})}function Sp(){return C.useContext(Lb)!=null}function ns(){return Zn(Sp(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Lb).location}var nj="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rj(e){C.useContext(xi).static||C.useLayoutEffect(e)}function kg(){let{isDataRoute:e}=C.useContext(ts);return e?h3():e3()}function e3(){Zn(Sp(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(md),{basename:t,navigator:n}=C.useContext(xi),{matches:r}=C.useContext(ts),{pathname:o}=ns(),a=JSON.stringify(Ib(r)),s=C.useRef(!1);return rj(()=>{s.current=!0}),C.useCallback((c,f={})=>{if(go(s.current,nj),!s.current)return;if(typeof c=="number"){n.go(c);return}let u=xg(c,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Wi([t,u.pathname])),Yf(typeof c=="string"?c:wa(c),n.createHref(u),cC(n),"reject"),(f.replace?n.replace:n.push)(u,f.state,f)},[t,n,a,o,e])}var t3=C.createContext(null);function n3(e){let t=C.useContext(ts).outlet;return C.useMemo(()=>t&&C.createElement(t3.Provider,{value:e},t),[t,e])}function Pge(){let{matches:e}=C.useContext(ts);return e[e.length-1]?.params??{}}function Tg(e,{relative:t}={}){let{matches:n}=C.useContext(ts),{pathname:r}=ns(),o=JSON.stringify(Ib(n));return C.useMemo(()=>xg(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function r3(e,t,n){Zn(Sp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=C.useContext(xi),{matches:o}=C.useContext(ts),a=o[o.length-1],s=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",f=a&&a.route;{let w=f&&f.path||"";aj(l,!f||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${w}">) 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="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let u=ns(),h;h=u;let y=h.pathname||"/",v=y;if(c!=="/"){let w=c.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=n&&n.state.matches.length?n.state.matches.map(w=>Object.assign(w,{route:n.manifest[w.route.id]||w.route})):PA(e,{pathname:v});return go(f||S!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),go(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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.`),l3(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:Wi([c,r.encodeLocation?r.encodeLocation(w.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Wi([c,r.encodeLocation?r.encodeLocation(w.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),o,n)}function o3(){let e=p3(),t=Zm(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 a3=C.createElement(o3,null),oj=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.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Z4(e.digest);n&&(e=n)}let t=e!==void 0?C.createElement(ts.Provider,{value:this.props.routeContext},C.createElement(hC.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?C.createElement(i3,{error:e},t):t}};oj.contextType=ZA;var AS=new WeakMap;function i3({children:e,error:t}){let{basename:n,navigator:r}=C.useContext(xi);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=X4(t.digest);if(o){let a=AS.get(t);if(a)throw a;let s=zA(o.location,n),l=s.absoluteURL||s.to;if(Yf(o.location,l,cC(r),"allow-explicit"),L1(l))throw new Error("Invalid redirect location");if(LA&&!AS.get(t))if(s.isExternal||o.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:o.replace}));throw AS.set(t,c),c}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function s3({routeContext:e,match:t,children:n}){let r=C.useContext(md);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(ts.Provider,{value:e},n)}function l3(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=r?.errors;if(a!=null){let u=o.findIndex(h=>h.route.id&&a?.[h.route.id]!==void 0);Zn(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let s=!1,l=-1;if(n&&r){s=r.renderFallback;for(let u=0;u<o.length;u++){let h=o[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(l=u),h.route.id){let{loaderData:y,errors:v}=r,S=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!v||v[h.route.id]===void 0);if(h.route.lazy||S){n.isStatic&&(s=!0),l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}}let c=n?.onError,f=r&&c?(u,h)=>{c(u,{location:r.location,params:r.matches?.[0]?.params??{},pattern:wg(r.matches),errorInfo:h})}:void 0;return o.reduceRight((u,h,y)=>{let v,S=!1,x=null,w=null;r&&(v=a&&h.route.id?a[h.route.id]:void 0,x=h.route.errorElement||a3,s&&(l<0&&y===0?(aj("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):l===y&&(S=!0,w=h.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,y+1)),T=()=>{let E;return v?E=x:S?E=w:h.route.Component?E=C.createElement(h.route.Component,null):h.route.element?E=h.route.element:E=u,C.createElement(s3,{match:h,routeContext:{outlet:u,matches:b,isDataRoute:r!=null},children:E})};return r&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?C.createElement(oj,{location:r.location,revalidation:r.revalidation,component:x,error:v,children:T(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:f}):T()},null)}function mC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function c3(e){let t=C.useContext(md);return Zn(t,mC(e)),t}function u3(e){let t=C.useContext(Cg);return Zn(t,mC(e)),t}function d3(e){let t=C.useContext(ts);return Zn(t,mC(e)),t}function gC(e){let t=d3(e),n=t.matches[t.matches.length-1];return Zn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function f3(){return gC("useRouteId")}function p3(){let e=C.useContext(hC),t=u3("useRouteError"),n=gC("useRouteError");return e!==void 0?e:t.errors?.[n]}function h3(){let{router:e}=c3("useNavigate"),t=gC("useNavigate"),n=C.useRef(!1);return rj(()=>{n.current=!0}),C.useCallback(async(o,a={})=>{go(n.current,nj),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var KO={};function aj(e,t,n){!t&&!KO[e]&&(KO[e]=!0,go(!1,n))}var QO={};function XO(e,t){!e&&!QO[t]&&(QO[t]=!0,console.warn(t))}var m3="useOptimistic",ZO=rp[m3],g3=()=>{};function y3(e){return ZO?ZO(e):[e,g3]}function v3(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&go(!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&&go(!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&&go(!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 b3=["HydrateFallback","hydrateFallbackElement"],x3=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 S3({router:e,flushSync:t,onError:n,useTransitions:r}){r=JA()||r;let[a,s]=C.useState(e.state),[l,c]=y3(a),[f,u]=C.useState(),[h,y]=C.useState({isTransitioning:!1}),[v,S]=C.useState(),[x,w]=C.useState(),[b,T]=C.useState(),E=C.useRef(new Map),M=C.useCallback((A,{deletedFetchers:_,newErrors:W,flushSync:V,viewTransitionOpts:k})=>{W&&n&&Object.values(W).forEach(F=>n(F,{location:A.location,params:A.matches[0]?.params??{},pattern:wg(A.matches)})),A.fetchers.forEach((F,H)=>{F.data!==void 0&&E.current.set(H,F.data)}),_.forEach(F=>E.current.delete(F)),XO(V===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let z=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(XO(k==null||z,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!k||!z){t&&V?t(()=>s(A)):r===!1?s(A):C.startTransition(()=>{r===!0&&c(F=>JO(F,A)),s(A)});return}if(t&&V){t(()=>{x&&(v?.resolve(),x.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:k.currentLocation,nextLocation:k.nextLocation})});let F=e.window.document.startViewTransition(()=>{t(()=>s(A))});F.finished.finally(()=>{t(()=>{S(void 0),w(void 0),u(void 0),y({isTransitioning:!1})})}),t(()=>w(F));return}x?(v?.resolve(),x.skipTransition(),T({state:A,currentLocation:k.currentLocation,nextLocation:k.nextLocation})):(u(A),y({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}))},[e.window,t,x,v,r,c,n]);C.useLayoutEffect(()=>e.subscribe(M),[e,M]),C.useEffect(()=>{h.isTransitioning&&!h.flushSync&&S(new x3)},[h]),C.useEffect(()=>{if(v&&f&&e.window){let A=f,_=v.promise,W=e.window.document.startViewTransition(async()=>{r===!1?s(A):C.startTransition(()=>{r===!0&&c(V=>JO(V,A)),s(A)}),await _});W.finished.finally(()=>{S(void 0),w(void 0),u(void 0),y({isTransitioning:!1})}),w(W)}},[f,v,e.window,r,c]),C.useEffect(()=>{v&&f&&l.location.key===f.location.key&&v.resolve()},[v,x,l.location,f]),C.useEffect(()=>{!h.isTransitioning&&b&&(u(b.state),y({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),T(void 0))},[h.isTransitioning,b]);let $=C.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:A=>e.navigate(A),push:(A,_,W)=>e.navigate(A,{state:_,preventScrollReset:W?.preventScrollReset}),replace:(A,_,W)=>e.navigate(A,{replace:!0,state:_,preventScrollReset:W?.preventScrollReset})}),[e]),D=e.basename||"/",I=C.useMemo(()=>({router:e,navigator:$,static:!1,basename:D,onError:n}),[e,$,D,n]);return C.createElement(C.Fragment,null,C.createElement(md.Provider,{value:I},C.createElement(Cg.Provider,{value:l},C.createElement(ej.Provider,{value:E.current},C.createElement(pC.Provider,{value:h},C.createElement(T3,{basename:D,location:l.location,navigationType:l.historyAction,navigator:$,useTransitions:r},C.createElement(w3,{routes:e.routes,manifest:e.manifest,future:e.future,state:l,isStatic:!1,onError:n})))))),null)}function JO(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var w3=C.memo(C3);function C3({routes:e,manifest:t,future:n,state:r,isStatic:o,onError:a}){return r3(e,void 0,{manifest:t,state:r,isStatic:o,onError:a})}function k3({to:e,replace:t,state:n,relative:r}){Zn(Sp(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:a}=C.useContext(xi);go(!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:s}=C.useContext(ts),{pathname:l}=ns(),c=kg(),f=xg(e,Ib(s),l,r==="path");Yf(typeof e=="string"?e:wa(e),a.createHref(f),cC(a),"reject");let u=JSON.stringify(f);return C.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Dge(e){return n3(e.context)}function T3({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1,useTransitions:s}){Zn(!Sp(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=C.useMemo(()=>({basename:l,navigator:o,static:a,useTransitions:s,future:{}}),[l,o,a,s]);typeof n=="string"&&(n=ll(n));let{pathname:f="/",search:u="",hash:h="",state:y=null,key:v="default",mask:S}=n,x=C.useMemo(()=>{let w=Gi(f,l);return w==null?null:{location:{pathname:w,search:u,hash:h,state:y,key:v,mask:S},navigationType:r}},[l,f,u,h,y,v,r,S]);return go(x!=null,`<Router basename="${l}"> is not able to match the URL "${f}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:C.createElement(xi.Provider,{value:c},C.createElement(Lb.Provider,{children:t,value:x}))}var Av="get",jv="application/x-www-form-urlencoded";function zb(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function E3(e){return zb(e)&&e.tagName.toLowerCase()==="button"}function R3(e){return zb(e)&&e.tagName.toLowerCase()==="form"}function O3(e){return zb(e)&&e.tagName.toLowerCase()==="input"}function M3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $3(e,t){return e.button===0&&(!t||t==="_self")&&!M3(e)}function F1(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 P3(e,t){let n=F1(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(a=>{n.append(o,a)})}),n}var Zy=null;function D3(){if(Zy===null)try{new FormData(document.createElement("form"),0),Zy=!1}catch{Zy=!0}return Zy}var A3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jS(e){return e!=null&&!A3.has(e)?(go(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jv}"`),null):e}function j3(e,t){let n,r,o,a,s;if(R3(e)){let l=e.getAttribute("action");r=l?Gi(l,t):null,n=e.getAttribute("method")||Av,o=jS(e.getAttribute("enctype"))||jv,a=new FormData(e)}else if(E3(e)||O3(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 c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?Gi(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Av,o=jS(e.getAttribute("formenctype"))||jS(l.getAttribute("enctype"))||jv,a=new FormData(l,e),!D3()){let{name:f,type:u,value:h}=e;if(u==="image"){let y=f?`${f}.`:"";a.append(`${y}x`,"0"),a.append(`${y}y`,"0")}else f&&a.append(f,h)}}else{if(zb(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Av,r=null,o=jv,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 yC(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ij(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Gi(o.pathname,t)==="/"?o.pathname=`${op(t)}/_root.${r}`:o.pathname=`${op(o.pathname)}.${r}`,o}async function N3(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 I3(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 L3(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await N3(a,n);return s.links?s.links():[]}return[]}));return B3(r.flat(1).filter(I3).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function eM(e,t,n,r,o,a){let s=(c,f)=>n[f]?c.route.id!==n[f].route.id:!0,l=(c,f)=>n[f].pathname!==c.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==c.params["*"];return a==="assets"?t.filter((c,f)=>s(c,f)||l(c,f)):a==="data"?t.filter((c,f)=>{let u=r.routes[c.route.id];if(!u||!u.hasLoader)return!1;if(s(c,f)||l(c,f))return!0;if(c.route.shouldRevalidate){let h=c.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function z3(e,t,{includeHydrateFallback:n}={}){return F3(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 F3(e){return[...new Set(e)]}function _3(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function B3(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(_3(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}function vC(){let e=C.useContext(md);return yC(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function U3(){let e=C.useContext(Cg);return yC(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var bC=C.createContext(void 0);bC.displayName="FrameworkContext";function Fb(){let e=C.useContext(bC);return yC(e,"You must render this element inside a <HydratedRouter> element"),e}function V3(e,t){let n=C.useContext(bC),[r,o]=C.useState(!1),[a,s]=C.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:f,onMouseLeave:u,onTouchStart:h}=t,y=C.useRef(null);C.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=b=>{b.forEach(T=>{s(T.isIntersecting)})},w=new IntersectionObserver(x,{threshold:.5});return y.current&&w.observe(y.current),()=>{w.disconnect()}}},[e]),C.useEffect(()=>{if(r){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[r]);let v=()=>{o(!0)},S=()=>{o(!1),s(!1)};return n?e!=="intent"?[a,y,{}]:[a,y,{onFocus:Fh(l,v),onBlur:Fh(c,S),onMouseEnter:Fh(f,v),onMouseLeave:Fh(u,S),onTouchStart:Fh(h,v)}]:[!1,y,{}]}function Fh(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function H3({page:e,...t}){let n=JA(),{nonce:r}=Fb(),{router:o}=vC(),a=C.useMemo(()=>PA(o.routes,e,o.basename),[o.routes,e,o.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?C.createElement(q3,{page:e,matches:a,...t}):C.createElement(Y3,{page:e,matches:a,...t})):null}function W3(e){let{manifest:t,routeModules:n}=Fb(),[r,o]=C.useState([]);return C.useEffect(()=>{let a=!1;return L3(e,t,n).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,n]),r}function q3({page:e,matches:t,...n}){let r=ns(),{future:o}=Fb(),{basename:a}=vC(),s=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=ij(e,a,o.v8_trailingSlashAwareDataRequests,"rsc"),c=!1,f=[];for(let u of t)typeof u.route.shouldRevalidate=="function"?c=!0:f.push(u.route.id);return c&&f.length>0&&l.searchParams.set("_routes",f.join(",")),[l.pathname+l.search]},[a,o.v8_trailingSlashAwareDataRequests,e,r,t]);return C.createElement(C.Fragment,null,s.map(l=>C.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function Y3({page:e,matches:t,...n}){let r=ns(),{future:o,manifest:a,routeModules:s}=Fb(),{basename:l}=vC(),{loaderData:c,matches:f}=U3(),u=C.useMemo(()=>eM(e,t,f,a,r,"data"),[e,t,f,a,r]),h=C.useMemo(()=>eM(e,t,f,a,r,"assets"),[e,t,f,a,r]),y=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,w=!1;if(t.forEach(T=>{let E=a.routes[T.route.id];!E||!E.hasLoader||(!u.some(M=>M.route.id===T.route.id)&&T.route.id in c&&s[T.route.id]?.shouldRevalidate||E.hasClientLoader?w=!0:x.add(T.route.id))}),x.size===0)return[];let b=ij(e,l,o.v8_trailingSlashAwareDataRequests,"data");return w&&x.size>0&&b.searchParams.set("_routes",t.filter(T=>x.has(T.route.id)).map(T=>T.route.id).join(",")),[b.pathname+b.search]},[l,o.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,s]),v=C.useMemo(()=>z3(h,a),[h,a]),S=W3(h);return C.createElement(C.Fragment,null,y.map(x=>C.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),v.map(x=>C.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),S.map(({key:x,link:w})=>C.createElement("link",{key:x,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function G3(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var K3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{K3&&(window.__reactRouterVersion="7.18.4")}catch{}function Q3(e,t){return w4({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:IF({window:t?.window}),hydrationData:X3(),routes:e,mapRouteProperties:v3,hydrationRouteProperties:b3,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function X3(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Z3(e.errors)}),e}function Z3(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 Sg(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(typeof o.__subType=="string"&&s4.includes(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 sj=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:s,mask:l,state:c,target:f,to:u,preventScrollReset:h,viewTransition:y,defaultShouldRevalidate:v,...S},x){let{basename:w,navigator:b,useTransitions:T}=C.useContext(xi),E=typeof u=="string"&&jb.test(u),M=zA(u,w);u=M.to;let $=J4(u,{relative:o}),D=ns(),I=null;if(l){let H=xg(l,[],D.mask?D.mask.pathname:"/",!0);w!=="/"&&(H.pathname=H.pathname==="/"?w:Wi([w,H.pathname])),I=b.createHref(H)}let[A,_,W]=V3(r,S),V=n_(u,{replace:s,mask:l,state:c,target:f,preventScrollReset:h,relative:o,viewTransition:y,defaultShouldRevalidate:v,useTransitions:T});function k(H){t&&t(H),H.defaultPrevented||V(H)}let z=!(M.isExternal||a),F=C.createElement("a",{...S,...W,href:(z?I:void 0)||M.absoluteURL||$,onClick:z?k:t,ref:G3(x,_),target:f,"data-discover":!E&&n==="render"?"true":void 0});return A&&!E?C.createElement(C.Fragment,null,F,C.createElement(H3,{page:$})):F});sj.displayName="Link";var J3=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:s,viewTransition:l,children:c,...f},u){let h=Tg(s,{relative:f.relative}),y=ns(),v=C.useContext(Cg),{navigator:S,basename:x}=C.useContext(xi),w=v!=null&&l_(h)&&l===!0,b=S.encodeLocation?S.encodeLocation(h).pathname:h.pathname,T=y.pathname,E=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(T=T.toLowerCase(),E=E?E.toLowerCase():null,b=b.toLowerCase()),E&&x&&(E=Gi(E,x)||E);const M=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let $=T===b||!o&&T.startsWith(b)&&T.charAt(M)==="/",D=E!=null&&(E===b||!o&&E.startsWith(b)&&E.charAt(b.length)==="/"),I={isActive:$,isPending:D,isTransitioning:w},A=$?t:void 0,_;typeof r=="function"?_=r(I):_=[r,$?"active":null,D?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let W=typeof a=="function"?a(I):a;return C.createElement(sj,{...f,"aria-current":A,className:_,ref:u,style:W,to:s,viewTransition:l},typeof c=="function"?c(I):c)});J3.displayName="NavLink";var e_=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=Av,action:l,onSubmit:c,relative:f,preventScrollReset:u,viewTransition:h,defaultShouldRevalidate:y,...v},S)=>{let{useTransitions:x}=C.useContext(xi),w=i_(),b=s_(l,{relative:f}),T=s.toLowerCase()==="get"?"get":"post",E=typeof l=="string"&&jb.test(l),M=$=>{if(c&&c($),$.defaultPrevented)return;$.preventDefault();let D=$.nativeEvent.submitter,I=D?.getAttribute("formmethod")||s,A=()=>w(D||$.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:o,state:a,relative:f,preventScrollReset:u,viewTransition:h,defaultShouldRevalidate:y});x&&n!==!1?C.startTransition(()=>A()):A()};return C.createElement("form",{ref:S,method:T,action:b,onSubmit:r?c:M,...v,"data-discover":!E&&e==="render"?"true":void 0})});e_.displayName="Form";function t_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lj(e){let t=C.useContext(md);return Zn(t,t_(e)),t}function n_(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c,useTransitions:f}={}){let u=kg(),h=ns(),y=Tg(e,{relative:s});return C.useCallback(v=>{if($3(v,t)){v.preventDefault();let S=n!==void 0?n:wa(h)===wa(y),x=()=>u(e,{replace:S,mask:r,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c});f?C.startTransition(()=>x()):x()}},[h,u,y,n,r,o,t,e,a,s,l,c,f])}function r_(e){go(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(F1(e)),n=C.useRef(!1),r=ns(),o=C.useMemo(()=>P3(r.search,n.current?null:t.current),[r.search]),a=kg(),s=C.useCallback((l,c)=>{const f=F1(typeof l=="function"?l(new URLSearchParams(o)):l);n.current=!0,a("?"+f,c)},[a,o]);return[o,s]}var o_=0,a_=()=>`__${String(++o_)}__`;function i_(){let{router:e}=lj("useSubmit"),{basename:t}=C.useContext(xi),n=f3(),r=e.fetch,o=e.navigate;return C.useCallback(async(a,s={})=>{let{action:l,method:c,encType:f,formData:u,body:h}=j3(a,t);if(s.navigate===!1){let y=s.fetcherKey||a_();await r(y,n,s.action||l,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:h,formMethod:s.method||c,formEncType:s.encType||f,flushSync:s.flushSync})}else await o(s.action||l,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:h,formMethod:s.method||c,formEncType:s.encType||f,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,o,t,n])}function s_(e,{relative:t}={}){let{basename:n}=C.useContext(xi),r=C.useContext(ts);Zn(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...Tg(e||".",{relative:t})},s=ns();if(e==null){a.search=s.search;let l=new URLSearchParams(a.search),c=l.getAll("index");if(c.some(u=>u==="")){l.delete("index"),c.filter(h=>h).forEach(h=>l.append("index",h));let u=l.toString();a.search=u?`?${u}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Wi([n,a.pathname])),wa(a)}function l_(e,{relative:t}={}){let n=C.useContext(pC);Zn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lj("useViewTransitionState"),o=Tg(e,{relative:t});if(!n.isTransitioning)return!1;let a=Gi(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Gi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return eb(o.pathname,s)!=null||eb(o.pathname,a)!=null}var _b=EA();const Ic=TA(_b);function c_(e){return C.createElement(S3,{flushSync:_b.flushSync,...e})}const u_="modulepreload",d_=function(e){return"/"+e},tM={},Bo=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(f){return Promise.all(f.map(u=>Promise.resolve(u).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");o=s(n.map(f=>{if(f=d_(f),f in tM)return;tM[f]=!0;const u=f.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${h}`))return;const y=document.createElement("link");if(y.rel=u?"stylesheet":u_,u||(y.as="script"),y.crossOrigin="",y.href=f,c&&y.setAttribute("nonce",c),document.head.appendChild(y),u)return new Promise((v,S)=>{y.addEventListener("load",v),y.addEventListener("error",()=>S(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)})},Jm={black:"#000",white:"#fff"},gf={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yf={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},vf={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},bf={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},xf={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},_h={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},f_={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 Ul(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 el="$$material";function tb(){return tb=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},tb.apply(null,arguments)}function p_(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 h_(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 m_=(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(h_(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=p_(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})(),sa="-ms-",nb="-moz-",yr="-webkit-",cj="comm",xC="rule",SC="decl",g_="@import",uj="@keyframes",y_="@layer",v_=Math.abs,Bb=String.fromCharCode,b_=Object.assign;function x_(e,t){return Zo(e,0)^45?(((t<<2^Zo(e,0))<<2^Zo(e,1))<<2^Zo(e,2))<<2^Zo(e,3):0}function dj(e){return e.trim()}function S_(e,t){return(e=t.exec(e))?e[0]:e}function vr(e,t,n){return e.replace(t,n)}function _1(e,t){return e.indexOf(t)}function Zo(e,t){return e.charCodeAt(t)|0}function eg(e,t,n){return e.slice(t,n)}function Ys(e){return e.length}function wC(e){return e.length}function Jy(e,t){return t.push(e),e}function w_(e,t){return e.map(t).join("")}var Ub=1,ap=1,fj=0,Ua=0,Mo=0,wp="";function Vb(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Ub,column:ap,length:s,return:""}}function Bh(e,t){return b_(Vb("",null,null,"",null,null,0),e,{length:-e.length},t)}function C_(){return Mo}function k_(){return Mo=Ua>0?Zo(wp,--Ua):0,ap--,Mo===10&&(ap=1,Ub--),Mo}function gi(){return Mo=Ua<fj?Zo(wp,Ua++):0,ap++,Mo===10&&(ap=1,Ub++),Mo}function tl(){return Zo(wp,Ua)}function Nv(){return Ua}function Eg(e,t){return eg(wp,e,t)}function tg(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 pj(e){return Ub=ap=1,fj=Ys(wp=e),Ua=0,[]}function hj(e){return wp="",e}function Iv(e){return dj(Eg(Ua-1,B1(e===91?e+2:e===40?e+1:e)))}function T_(e){for(;(Mo=tl())&&Mo<33;)gi();return tg(e)>2||tg(Mo)>3?"":" "}function E_(e,t){for(;--t&&gi()&&!(Mo<48||Mo>102||Mo>57&&Mo<65||Mo>70&&Mo<97););return Eg(e,Nv()+(t<6&&tl()==32&&gi()==32))}function B1(e){for(;gi();)switch(Mo){case e:return Ua;case 34:case 39:e!==34&&e!==39&&B1(Mo);break;case 40:e===41&&B1(e);break;case 92:gi();break}return Ua}function R_(e,t){for(;gi()&&e+Mo!==57;)if(e+Mo===84&&tl()===47)break;return"/*"+Eg(t,Ua-1)+"*"+Bb(e===47?e:gi())}function O_(e){for(;!tg(tl());)gi();return Eg(e,Ua)}function M_(e){return hj(Lv("",null,null,null,[""],e=pj(e),0,[0],e))}function Lv(e,t,n,r,o,a,s,l,c){for(var f=0,u=0,h=s,y=0,v=0,S=0,x=1,w=1,b=1,T=0,E="",M=o,$=a,D=r,I=E;w;)switch(S=T,T=gi()){case 40:if(S!=108&&Zo(I,h-1)==58){_1(I+=vr(Iv(T),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=Iv(T);break;case 9:case 10:case 13:case 32:I+=T_(S);break;case 92:I+=E_(Nv()-1,7);continue;case 47:switch(tl()){case 42:case 47:Jy($_(R_(gi(),Nv()),t,n),c);break;default:I+="/"}break;case 123*x:l[f++]=Ys(I)*b;case 125*x:case 59:case 0:switch(T){case 0:case 125:w=0;case 59+u:b==-1&&(I=vr(I,/\f/g,"")),v>0&&Ys(I)-h&&Jy(v>32?rM(I+";",r,n,h-1):rM(vr(I," ","")+";",r,n,h-2),c);break;case 59:I+=";";default:if(Jy(D=nM(I,t,n,f,u,o,l,E,M=[],$=[],h),a),T===123)if(u===0)Lv(I,t,D,D,M,a,h,l,$);else switch(y===99&&Zo(I,3)===110?100:y){case 100:case 108:case 109:case 115:Lv(e,D,D,r&&Jy(nM(e,D,D,0,0,o,l,E,o,M=[],h),$),o,$,h,l,r?M:$);break;default:Lv(I,D,D,D,[""],$,0,l,$)}}f=u=v=0,x=b=1,E=I="",h=s;break;case 58:h=1+Ys(I),v=S;default:if(x<1){if(T==123)--x;else if(T==125&&x++==0&&k_()==125)continue}switch(I+=Bb(T),T*x){case 38:b=u>0?1:(I+="\f",-1);break;case 44:l[f++]=(Ys(I)-1)*b,b=1;break;case 64:tl()===45&&(I+=Iv(gi())),y=tl(),u=h=Ys(E=I+=O_(Nv())),T++;break;case 45:S===45&&Ys(I)==2&&(x=0)}}return a}function nM(e,t,n,r,o,a,s,l,c,f,u){for(var h=o-1,y=o===0?a:[""],v=wC(y),S=0,x=0,w=0;S<r;++S)for(var b=0,T=eg(e,h+1,h=v_(x=s[S])),E=e;b<v;++b)(E=dj(x>0?y[b]+" "+T:vr(T,/&\f/g,y[b])))&&(c[w++]=E);return Vb(e,t,n,o===0?xC:l,c,f,u)}function $_(e,t,n){return Vb(e,t,n,cj,Bb(C_()),eg(e,2,-2),0)}function rM(e,t,n,r){return Vb(e,t,n,SC,eg(e,0,r),eg(e,r+1,-1),r)}function Kf(e,t){for(var n="",r=wC(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function P_(e,t,n,r){switch(e.type){case y_:if(e.children.length)break;case g_:case SC:return e.return=e.return||e.value;case cj:return"";case uj:return e.return=e.value+"{"+Kf(e.children,r)+"}";case xC:e.value=e.props.join(",")}return Ys(n=Kf(e.children,r))?e.return=e.value+"{"+n+"}":""}function D_(e){var t=wC(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 A_(e){return function(t){t.root||(t=t.return)&&e(t)}}function mj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var j_=function(t,n,r){for(var o=0,a=0;o=a,a=tl(),o===38&&a===12&&(n[r]=1),!tg(a);)gi();return Eg(t,Ua)},N_=function(t,n){var r=-1,o=44;do switch(tg(o)){case 0:o===38&&tl()===12&&(n[r]=1),t[r]+=j_(Ua-1,n,r);break;case 2:t[r]+=Iv(o);break;case 4:if(o===44){t[++r]=tl()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Bb(o)}while(o=gi());return t},I_=function(t,n){return hj(N_(pj(t),n))},oM=new WeakMap,L_=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&&!oM.get(r))&&!o){oM.set(t,!0);for(var a=[],s=I_(n,a),l=r.props,c=0,f=0;c<s.length;c++)for(var u=0;u<l.length;u++,f++)t.props[f]=a[c]?s[c].replace(/&\f/g,l[u]):l[u]+" "+s[c]}}},z_=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function gj(e,t){switch(x_(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+nb+e+sa+e+e;case 6828:case 4268:return yr+e+sa+e+e;case 6165:return yr+e+sa+"flex-"+e+e;case 5187:return yr+e+vr(e,/(\w+).+(:[^]+)/,yr+"box-$1$2"+sa+"flex-$1$2")+e;case 5443:return yr+e+sa+"flex-item-"+vr(e,/flex-|-self/,"")+e;case 4675:return yr+e+sa+"flex-line-pack"+vr(e,/align-content|flex-|-self/,"")+e;case 5548:return yr+e+sa+vr(e,"shrink","negative")+e;case 5292:return yr+e+sa+vr(e,"basis","preferred-size")+e;case 6060:return yr+"box-"+vr(e,"-grow","")+yr+e+sa+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"+sa+"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(Ys(e)-1-t>6)switch(Zo(e,t+1)){case 109:if(Zo(e,t+4)!==45)break;case 102:return vr(e,/(.+:)(.+)-([^]+)/,"$1"+yr+"$2-$3$1"+nb+(Zo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_1(e,"stretch")?gj(vr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zo(e,t+1)!==115)break;case 6444:switch(Zo(e,Ys(e)-3-(~_1(e,"!important")&&10))){case 107:return vr(e,":",":"+yr)+e;case 101:return vr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yr+(Zo(e,14)===45?"inline-":"")+"box$3$1"+yr+"$2$3$1"+sa+"$2box$3")+e}break;case 5936:switch(Zo(e,t+11)){case 114:return yr+e+sa+vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yr+e+sa+vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yr+e+sa+vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yr+e+sa+e+e}return e}var F_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case SC:t.return=gj(t.value,t.length);break;case uj:return Kf([Bh(t,{value:vr(t.value,"@","@"+yr)})],o);case xC:if(t.length)return w_(t.props,function(a){switch(S_(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kf([Bh(t,{props:[vr(a,/:(read-\w+)/,":"+nb+"$1")]})],o);case"::placeholder":return Kf([Bh(t,{props:[vr(a,/:(plac\w+)/,":"+yr+"input-$1")]}),Bh(t,{props:[vr(a,/:(plac\w+)/,":"+nb+"$1")]}),Bh(t,{props:[vr(a,/:(plac\w+)/,sa+"input-$1")]})],o)}return""})}},__=[F_],B_=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||__,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(" "),b=1;b<w.length;b++)a[w[b]]=!0;l.push(x)});var c,f=[L_,z_];{var u,h=[P_,A_(function(x){u.insert(x)})],y=D_(f.concat(o,h)),v=function(w){return Kf(M_(w),y)};c=function(w,b,T,E){u=T,v(w?w+"{"+b.styles+"}":b.styles),E&&(S.inserted[b.name]=!0)}}var S={key:n,sheet:new m_({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return S.sheet.hydrate(l),S},NS={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 aM;function U_(){if(aM)return Sr;aM=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,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E($){if(typeof $=="object"&&$!==null){var D=$.$$typeof;switch(D){case t:switch($=$.type,$){case c:case f:case r:case a:case o:case h:return $;default:switch($=$&&$.$$typeof,$){case l:case u:case S:case v:case s:return $;default:return D}}case n:return D}}}function M($){return E($)===f}return Sr.AsyncMode=c,Sr.ConcurrentMode=f,Sr.ContextConsumer=l,Sr.ContextProvider=s,Sr.Element=t,Sr.ForwardRef=u,Sr.Fragment=r,Sr.Lazy=S,Sr.Memo=v,Sr.Portal=n,Sr.Profiler=a,Sr.StrictMode=o,Sr.Suspense=h,Sr.isAsyncMode=function($){return M($)||E($)===c},Sr.isConcurrentMode=M,Sr.isContextConsumer=function($){return E($)===l},Sr.isContextProvider=function($){return E($)===s},Sr.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Sr.isForwardRef=function($){return E($)===u},Sr.isFragment=function($){return E($)===r},Sr.isLazy=function($){return E($)===S},Sr.isMemo=function($){return E($)===v},Sr.isPortal=function($){return E($)===n},Sr.isProfiler=function($){return E($)===a},Sr.isStrictMode=function($){return E($)===o},Sr.isSuspense=function($){return E($)===h},Sr.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===f||$===a||$===o||$===h||$===y||typeof $=="object"&&$!==null&&($.$$typeof===S||$.$$typeof===v||$.$$typeof===s||$.$$typeof===l||$.$$typeof===u||$.$$typeof===w||$.$$typeof===b||$.$$typeof===T||$.$$typeof===x)},Sr.typeOf=E,Sr}var iM;function V_(){return iM||(iM=1,NS.exports=U_()),NS.exports}var IS,sM;function H_(){if(sM)return IS;sM=1;var e=V_(),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(S){return e.isMemo(S)?o:a[S.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function v(S,x,w){if(typeof x!="string"){if(y){var b=h(x);b&&b!==y&&v(S,b,w)}var T=c(x);f&&(T=T.concat(f(x)));for(var E=s(S),M=s(x),$=0;$<T.length;++$){var D=T[$];if(!n[D]&&!(w&&w[D])&&!(M&&M[D])&&!(E&&E[D])){var I=u(x,D);try{l(S,D,I)}catch{}}}}return S}return IS=v,IS}H_();var W_=!0;function yj(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var CC=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||W_===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},kC=function(t,n,r){CC(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 q_(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Y_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},G_=/[A-Z]|^ms/g,K_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vj=function(t){return t.charCodeAt(1)===45},lM=function(t){return t!=null&&typeof t!="boolean"},LS=mj(function(e){return vj(e)?e:e.replace(G_,"-$&").toLowerCase()}),cM=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(K_,function(r,o,a){return Gs={name:o,styles:a,next:Gs},o})}return Y_[t]!==1&&!vj(t)&&typeof n=="number"&&n!==0?n+"px":n};function ng(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 Gs={name:o.name,styles:o.styles,next:Gs},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Gs={name:s.name,styles:s.styles,next:Gs},s=s.next;var l=a.styles+";";return l}return Q_(e,t,n)}case"function":{if(e!==void 0){var c=Gs,f=n(e);return Gs=c,ng(e,t,f)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function Q_(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ng(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]+"}":lM(l)&&(r+=LS(a)+":"+cM(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)lM(s[c])&&(r+=LS(a)+":"+cM(a,s[c])+";");else{var f=ng(e,t,s);switch(a){case"animation":case"animationName":{r+=LS(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var uM=/label:\s*([^\s;{]+)\s*(;|$)/g,Gs;function Rg(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Gs=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=ng(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=ng(n,t,e[l]),r){var c=a;o+=c[l]}uM.lastIndex=0;for(var f="",u;(u=uM.exec(o))!==null;)f+="-"+u[1];var h=q_(o)+f;return{name:h,styles:o,next:Gs}}var X_=function(t){return t()},bj=rp.useInsertionEffect?rp.useInsertionEffect:!1,xj=bj||X_,dM=bj||C.useLayoutEffect,Sj=C.createContext(typeof HTMLElement<"u"?B_({key:"css"}):null);Sj.Provider;var TC=function(t){return C.forwardRef(function(n,r){var o=C.useContext(Sj);return t(n,o,r)})},Cp=C.createContext({}),EC={}.hasOwnProperty,U1="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Z_=function(t,n){var r={};for(var o in n)EC.call(n,o)&&(r[o]=n[o]);return r[U1]=t,r},J_=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return CC(n,r,o),xj(function(){return kC(n,r,o)}),null},eB=TC(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[U1],a=[r],s="";typeof e.className=="string"?s=yj(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Rg(a,void 0,C.useContext(Cp));s+=t.key+"-"+l.name;var c={};for(var f in e)EC.call(e,f)&&f!=="css"&&f!==U1&&(c[f]=e[f]);return c.className=s,n&&(c.ref=n),C.createElement(C.Fragment,null,C.createElement(J_,{cache:t,serialized:l,isStringTag:typeof o=="string"}),C.createElement(o,c))}),tB=eB,fM=function(t,n){var r=arguments;if(n==null||!EC.call(n,"css"))return C.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=tB,a[1]=Z_(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={}))})(fM||(fM={}));var nB=TC(function(e,t){var n=e.styles,r=Rg([n],void 0,C.useContext(Cp)),o=C.useRef();return dM(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,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",a),s.hydrate([c])),o.current=[s,l],function(){s.flush()}},[t]),dM(function(){var a=o.current,s=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&kC(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rg(t)}function Si(){var e=Kc.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 rB=/^((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)-.*))$/,oB=mj(function(e){return rB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),aB=oB,iB=function(t){return t!=="theme"},pM=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?aB:iB},hM=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},sB=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return CC(n,r,o),xj(function(){return kC(n,r,o)}),null},lB=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=hM(t,n,r),c=l||pM(o),f=!c("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var y=u[0];h.push(y[0]);for(var v=u.length,S=1;S<v;S++)h.push(u[S],y[S])}var x=TC(function(w,b,T){var E=f&&w.as||o,M="",$=[],D=w;if(w.theme==null){D={};for(var I in w)D[I]=w[I];D.theme=C.useContext(Cp)}typeof w.className=="string"?M=yj(b.registered,$,w.className):w.className!=null&&(M=w.className+" ");var A=Rg(h.concat($),b.registered,D);M+=b.key+"-"+A.name,s!==void 0&&(M+=" "+s);var _=f&&l===void 0?pM(E):c,W={};for(var V in w)f&&V==="as"||_(V)&&(W[V]=w[V]);return W.className=M,T&&(W.ref=T),C.createElement(C.Fragment,null,C.createElement(sB,{cache:b,serialized:A,isStringTag:typeof E=="string"}),C.createElement(E,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,b){var T=e(w,tb({},n,b,{shouldForwardProp:hM(x,b,!0)}));return T.apply(void 0,h)},x}},cB=["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"],rb=lB.bind(null);cB.forEach(function(e){rb[e]=rb(e)});function uB(e){return e==null||Object.keys(e).length===0}function wj(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(uB(o)?n:o):t;return m.jsx(nB,{styles:r})}function Cj(e,t){return rb(e,t)}function dB(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const mM=[];function Fc(e){return mM[0]=e,Rg(mM)}var zS={exports:{}},Nr={};/**
|
|
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 gM;function fB(){if(gM)return Nr;gM=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"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function S(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 c:case f:case y:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case h:case u: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=u,Nr.Portal=t,Nr.Profiler=o,Nr.StrictMode=r,Nr.Suspense=c,Nr.SuspenseList=f,Nr.isContextConsumer=function(x){return S(x)===a},Nr.isContextProvider=function(x){return S(x)===s},Nr.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Nr.isForwardRef=function(x){return S(x)===l},Nr.isFragment=function(x){return S(x)===n},Nr.isLazy=function(x){return S(x)===h},Nr.isMemo=function(x){return S(x)===u},Nr.isPortal=function(x){return S(x)===t},Nr.isProfiler=function(x){return S(x)===o},Nr.isStrictMode=function(x){return S(x)===r},Nr.isSuspense=function(x){return S(x)===c},Nr.isSuspenseList=function(x){return S(x)===f},Nr.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===c||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===u||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===v||x.getModuleId!==void 0)},Nr.typeOf=S,Nr}var yM;function pB(){return yM||(yM=1,zS.exports=fB()),zS.exports}var kj=pB();function Xs(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 Tj(e){if(C.isValidElement(e)||kj.isValidElementType(e)||!Xs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Tj(e[n])}),t}function Ho(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Xs(e)&&Xs(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||kj.isValidElementType(t[o])?r[o]=t[o]:Xs(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Xs(e[o])?r[o]=Ho(e[o],t[o],n):n.clone?r[o]=Xs(t[o])?Tj(t[o]):t[o]:r[o]=t[o]}),r}const hB=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 mB(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=hB(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,v){const S=s.indexOf(v);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(S!==-1&&typeof t[s[S]]=="number"?t[s[S]]:v)-r/100}${n})`}function u(y){return s.indexOf(y)+1<s.length?f(y,s[s.indexOf(y)+1]):l(y)}function h(y){const v=s.indexOf(y);return v===0?l(s[1]):v===s.length-1?c(s[v]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:c,between:f,only:u,not:h,unit:n,...o}}function vM(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 gB(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function yB(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 vB(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 c=t(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const bB={borderRadius:4};function Im(e,t){return t?Ho(e,t,{clone:!1}):e}const Hb={xs:0,sm:600,md:900,lg:1200,xl:1536},bM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hb[e]}px)`},xB={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Hb[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Cs(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||bM;return t.reduce((s,l,c)=>(s[a.up(a.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const a=r.breakpoints||bM;return Object.keys(t).reduce((s,l)=>{if(gB(a.keys,l)){const c=yB(r.containerQueries?r:xB,l);c&&(s[c]=n(t[l],l))}else if(Object.keys(a.values||Hb).includes(l)){const c=a.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function Ej(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function V1(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function SB(e,...t){const n=Ej(e),r=[n,...t].reduce((o,a)=>Ho(o,a),{});return V1(Object.keys(n),r)}function wB(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 FS({values:e,breakpoints:t,base:n}){const r=n||wB(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((s,l,c)=>(Array.isArray(e)?(s[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[a],a=l):s[l]=e,s),{})}function nt(e){if(typeof e!="string")throw new Error(Ul(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ks(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 ob(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ks(e,n)||r,t&&(o=t(o,r,e)),o}function wo(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],c=s.theme,f=Ks(c,r)||{};return Cs(s,l,h=>{let y=ob(f,o,h);return h===y&&typeof h=="string"&&(y=ob(f,o,`${t}${h==="default"?"":nt(h)}`,h)),n===!1?y:{[n]:y}})};return a.propTypes={},a.filterProps=[t],a}function CB(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const kB={m:"margin",p:"padding"},TB={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},EB=CB(e=>{if(e.length>2)if(xM[e])e=xM[e];else return[e];const[t,n]=e.split(""),r=kB[t],o=TB[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),RC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],OC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...RC,...OC];function Og(e,t,n,r){const o=Ks(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 Wb(e){return Og(e,"spacing",8)}function nd(e,t){return typeof t=="string"||t==null?t:e(t)}function RB(e,t){return n=>e.reduce((r,o)=>(r[o]=nd(t,n),r),{})}function OB(e,t,n,r){if(!t.includes(n))return null;const o=EB(n),a=RB(o,r),s=e[n];return Cs(e,s,a)}function Rj(e,t){const n=Wb(e.theme);return Object.keys(e).map(r=>OB(e,t,r,n)).reduce(Im,{})}function so(e){return Rj(e,RC)}so.propTypes={};so.filterProps=RC;function lo(e){return Rj(e,OC)}lo.propTypes={};lo.filterProps=OC;function MC(e=8,t=Wb({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 qb(...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]?Im(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ui(e){return typeof e!="number"?e:`${e}px solid`}function rs(e,t){return wo({prop:e,themeKey:"borders",transform:t})}const MB=rs("border",Ui),$B=rs("borderTop",Ui),PB=rs("borderRight",Ui),DB=rs("borderBottom",Ui),AB=rs("borderLeft",Ui),jB=rs("borderColor"),NB=rs("borderTopColor"),IB=rs("borderRightColor"),LB=rs("borderBottomColor"),zB=rs("borderLeftColor"),FB=rs("outline",Ui),_B=rs("outlineColor"),Yb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Og(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:nd(t,r)});return Cs(e,e.borderRadius,n)}return null};Yb.propTypes={};Yb.filterProps=["borderRadius"];qb(MB,$B,PB,DB,AB,jB,NB,IB,LB,zB,Yb,FB,_B);const Gb=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Og(e.theme,"spacing",8),n=r=>({gap:nd(t,r)});return Cs(e,e.gap,n)}return null};Gb.propTypes={};Gb.filterProps=["gap"];const Kb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Og(e.theme,"spacing",8),n=r=>({columnGap:nd(t,r)});return Cs(e,e.columnGap,n)}return null};Kb.propTypes={};Kb.filterProps=["columnGap"];const Qb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Og(e.theme,"spacing",8),n=r=>({rowGap:nd(t,r)});return Cs(e,e.rowGap,n)}return null};Qb.propTypes={};Qb.filterProps=["rowGap"];const BB=wo({prop:"gridColumn"}),UB=wo({prop:"gridRow"}),VB=wo({prop:"gridAutoFlow"}),HB=wo({prop:"gridAutoColumns"}),WB=wo({prop:"gridAutoRows"}),qB=wo({prop:"gridTemplateColumns"}),YB=wo({prop:"gridTemplateRows"}),GB=wo({prop:"gridTemplateAreas"}),KB=wo({prop:"gridArea"});qb(Gb,Kb,Qb,BB,UB,VB,HB,WB,qB,YB,GB,KB);function Qf(e,t){return t==="grey"?t:e}const QB=wo({prop:"color",themeKey:"palette",transform:Qf}),XB=wo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qf}),ZB=wo({prop:"backgroundColor",themeKey:"palette",transform:Qf});qb(QB,XB,ZB);function hi(e){return e<=1&&e!==0?`${e*100}%`:e}const JB=wo({prop:"width",transform:hi}),$C=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Hb[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:hi(n)}};return Cs(e,e.maxWidth,t)}return null};$C.filterProps=["maxWidth"];const eU=wo({prop:"minWidth",transform:hi}),tU=wo({prop:"height",transform:hi}),nU=wo({prop:"maxHeight",transform:hi}),rU=wo({prop:"minHeight",transform:hi});wo({prop:"size",cssProperty:"width",transform:hi});wo({prop:"size",cssProperty:"height",transform:hi});const oU=wo({prop:"boxSizing"});qb(JB,$C,eU,tU,nU,rU,oU);const Mg={border:{themeKey:"borders",transform:Ui},borderTop:{themeKey:"borders",transform:Ui},borderRight:{themeKey:"borders",transform:Ui},borderBottom:{themeKey:"borders",transform:Ui},borderLeft:{themeKey:"borders",transform:Ui},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ui},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Yb},color:{themeKey:"palette",transform:Qf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qf},backgroundColor:{themeKey:"palette",transform:Qf},p:{style:lo},pt:{style:lo},pr:{style:lo},pb:{style:lo},pl:{style:lo},px:{style:lo},py:{style:lo},padding:{style:lo},paddingTop:{style:lo},paddingRight:{style:lo},paddingBottom:{style:lo},paddingLeft:{style:lo},paddingX:{style:lo},paddingY:{style:lo},paddingInline:{style:lo},paddingInlineStart:{style:lo},paddingInlineEnd:{style:lo},paddingBlock:{style:lo},paddingBlockStart:{style:lo},paddingBlockEnd:{style:lo},m:{style:so},mt:{style:so},mr:{style:so},mb:{style:so},ml:{style:so},mx:{style:so},my:{style:so},margin:{style:so},marginTop:{style:so},marginRight:{style:so},marginBottom:{style:so},marginLeft:{style:so},marginX:{style:so},marginY:{style:so},marginInline:{style:so},marginInlineStart:{style:so},marginInlineEnd:{style:so},marginBlock:{style:so},marginBlockStart:{style:so},marginBlockEnd:{style:so},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gb},rowGap:{style:Qb},columnGap:{style:Kb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hi},maxWidth:{style:$C},minWidth:{transform:hi},height:{transform:hi},maxHeight:{transform:hi},minHeight:{transform:hi},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 aU(...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 iU(e,t){return typeof e=="function"?e(t):e}function sU(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:u,style:h}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=Ks(o,f)||{};return h?h(s):Cs(s,r,S=>{let x=ob(y,u,S);return S===x&&typeof S=="string"&&(x=ob(y,u,`${n}${S==="default"?"":nt(S)}`,S)),c===!1?x:{[c]:x}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??Mg;function l(c){let f=c;if(typeof c=="function")f=c(o);else if(typeof c!="object")return c;if(!f)return null;const u=Ej(o.breakpoints),h=Object.keys(u);let y=u;return Object.keys(f).forEach(v=>{const S=iU(f[v],o);if(S!=null)if(typeof S=="object")if(s[v])y=Im(y,e(v,S,o,s));else{const x=Cs({theme:o},S,w=>({[v]:w}));aU(x,S)?y[v]=t({sx:S,theme:o,nested:!0}):y=Im(y,x)}else y=Im(y,e(v,S,o,s))}),!a&&o.modularCssLayers?{"@layer sx":vM(o,V1(h,y))}:vM(o,V1(h,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Vc=sU();Vc.filterProps=["sx"];function lU(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 kp(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=mB(n),c=MC(o);let f=Ho({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...bB,...a}},s);return f=vB(f),f.applyStyles=lU,f=t.reduce((u,h)=>Ho(u,h),f),f.unstable_sxConfig={...Mg,...s?.unstable_sxConfig},f.unstable_sx=function(h){return Vc({sx:h,theme:this})},f}function cU(e){return Object.keys(e).length===0}function PC(e=null){const t=C.useContext(Cp);return!t||cU(t)?e:t}const uU=kp();function Tp(e=uU){return PC(e)}function _S(e){const t=Fc(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function DC({styles:e,themeId:t,defaultTheme:n={}}){const r=Tp(n),o=t&&r[t]||r;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>_S(typeof s=="function"?s(o):s)):a=_S(a)),m.jsx(wj,{styles:a})}const dU=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Mg;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Xb(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=dU(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return Xs(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}const SM=e=>e,fU=()=>{let e=SM;return{configure(t){e=t},generate(t){return e(t)},reset(){e=SM}}},AC=fU();function Oj(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=Oj(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=Oj(e))&&(r&&(r+=" "),r+=t);return r}function jC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=Cj("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Vc);return C.forwardRef(function(c,f){const u=Tp(n),{className:h,component:y="div",...v}=Xb(c);return m.jsx(a,{as:y,ref:f,className:Nt(h,o?o(r):r),theme:t&&u[t]||u,...v})})}const pU={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 dn(e,t,n="Mui"){const r=pU[t];return r?`${n}-${r}`:`${AC.generate(e)}-${t}`}function pn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=dn(e,o,n)}),r}const hU=pn("MuiBox",["root"]),Mj=jC({defaultClassName:hU.root,generateClassName:AC.generate});function $j(e){const{variants:t,...n}=e,r={variants:t,style:Fc(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Fc(o.style))}),r}const mU=kp();function zv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Hu(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gU(e){return e?(t,n)=>n[e]:null}function yU(e,t,n){e.theme=bU(e.theme)?n:e.theme[t]||e.theme}function Fv(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Fv(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?Hu(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?Hu(Fc(s),n):s}return Pj(e,r.variants,[o],n)}return r?.isProcessed?n?Hu(Fc(r.style),n):r.style:n?Hu(Fc(r),n):r}function Pj(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?Hu(Fc(s.style(o)),r):s.style(o))):n.push(r?Hu(Fc(s.style),r):s.style)}return n}function Dj(e={}){const{themeId:t,defaultTheme:n=mU,rootShouldForwardProp:r=zv,slotShouldForwardProp:o=zv}=e;function a(l){yU(l,t,n)}return(l,c={})=>{dB(l,D=>D.filter(I=>I!==Vc));const{name:f,slot:u,skipVariantsResolver:h,skipSx:y,overridesResolver:v=gU(SU(u)),...S}=c,x=f&&f.startsWith("Mui")||u?"components":"custom",w=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,b=y||!1;let T=zv;u==="Root"||u==="root"?T=r:u?T=o:xU(l)&&(T=void 0);const E=Cj(l,{shouldForwardProp:T,label:vU(),...S}),M=D=>{if(D.__emotion_real===D)return D;if(typeof D=="function")return function(A){return Fv(A,D,A.theme.modularCssLayers?x:void 0)};if(Xs(D)){const I=$j(D);return function(_){return I.variants?Fv(_,I,_.theme.modularCssLayers?x:void 0):_.theme.modularCssLayers?Hu(I.style,x):I.style}}return D},$=(...D)=>{const I=[],A=D.map(M),_=[];if(I.push(a),f&&v&&_.push(function(z){const H=z.theme.components?.[f]?.styleOverrides;if(!H)return null;const N={};for(const X in H)N[X]=Fv(z,H[X],z.theme.modularCssLayers?"theme":void 0);return v(z,N)}),f&&!w&&_.push(function(z){const H=z.theme?.components?.[f]?.variants;return H?Pj(z,H,[],z.theme.modularCssLayers?"theme":void 0):null}),b||_.push(Vc),Array.isArray(A[0])){const k=A.shift(),z=new Array(I.length).fill(""),F=new Array(_.length).fill("");let H;H=[...z,...k,...F],H.raw=[...z,...k.raw,...F],I.unshift(H)}const W=[...I,...A,..._],V=E(...W);return l.muiName&&(V.muiName=l.muiName),V};return E.withConfig&&($.withConfig=E.withConfig),$}}function vU(e,t){return void 0}function bU(e){for(const t in e)return!1;return!0}function xU(e){return typeof e=="string"&&e.charCodeAt(0)>96}function SU(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const NC=Dj();function rg(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 c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const f=c;r[a][f]=rg(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}function wU(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:rg(t.components[n].defaultProps,r)}function IC({props:e,name:t,defaultTheme:n,themeId:r}){let o=Tp(n);return r&&(o=o[r]||o),wU({theme:o,name:t,props:e})}const Va=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Lf(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function LC(e,t=0,n=1){return Lf(e,t,n)}function CU(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 Hc(e){if(e.type)return e;if(e.charAt(0)==="#")return Hc(CU(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ul(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(Ul(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const kU=e=>{const t=Hc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Tm=(e,t)=>{try{return kU(e)}catch{return e}};function Zb(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 Aj(e){e=Hc(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,u=(f+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Zb({type:l,values:c})}function H1(e){e=Hc(e);let t=e.type==="hsl"||e.type==="hsla"?Hc(Aj(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 TU(e,t){const n=H1(e),r=H1(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ks(e,t){return e=Hc(e),t=LC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Zb(e)}function Ou(e,t,n){try{return ks(e,t)}catch{return e}}function Jb(e,t){if(e=Hc(e),t=LC(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 Zb(e)}function Er(e,t,n){try{return Jb(e,t)}catch{return e}}function e0(e,t){if(e=Hc(e),t=LC(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 Zb(e)}function Rr(e,t,n){try{return e0(e,t)}catch{return e}}function W1(e,t=.15){return H1(e)>.5?Jb(e,t):e0(e,t)}function ev(e,t,n){try{return W1(e,t)}catch{return e}}const jj=C.createContext(null);function zC(){return C.useContext(jj)}const EU=typeof Symbol=="function"&&Symbol.for,RU=EU?Symbol.for("mui.nested"):"__THEME_NESTED__";function OU(e,t){return typeof t=="function"?t(e):{...e,...t}}function MU(e){const{children:t,theme:n}=e,r=zC(),o=C.useMemo(()=>{const a=r===null?{...n}:OU(r,n);return a!=null&&(a[RU]=r!==null),a},[n,r]);return m.jsx(jj.Provider,{value:o,children:t})}const Nj=C.createContext();function $U({value:e,...t}){return m.jsx(Nj.Provider,{value:e??!0,...t})}const $g=()=>C.useContext(Nj)??!1,Ij=C.createContext(void 0);function PU({value:e,children:t}){return m.jsx(Ij.Provider,{value:e,children:t})}function DU(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?rg(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?rg(o,r,t.components.mergeClassNameAndStyle):r}function AU({props:e,name:t}){const n=C.useContext(Ij);return DU({props:e,name:t,theme:{components:n}})}let wM=0;function jU(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(wM+=1,n(`mui-${wM}`))},[t]),r}const NU={...rp},CM=NU.useId;function Qc(e){if(CM!==void 0){const t=CM();return e??t}return jU(e)}function IU(e){const t=PC(),n=Qc()||"",{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};`,Va(()=>{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(DC,{styles:o}):null}const kM={};function TM(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 Lj(e){const{children:t,theme:n,themeId:r}=e,o=PC(kM),a=zC()||kM,s=TM(r,o,n),l=TM(r,a,n,!0),c=(r?s[r]:s).direction==="rtl",f=IU(s);return m.jsx(MU,{theme:l,children:m.jsx(Cp.Provider,{value:s,children:m.jsx($U,{value:c,children:m.jsxs(PU,{value:r?s[r].components:s.components,children:[f,t]})})})})}const EM={theme:void 0};function zj(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(EM.theme=o.theme,a=$j(e(EM)),t=a,n=o.theme),a}}const FC="mode",_C="color-scheme",LU="data-color-scheme";function zU(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=FC,colorSchemeStorageKey:a=_C,attribute:s=LU,colorSchemeNode:l="document.documentElement",nonce:c}=e||{};let f="",u=s;if(s==="class"&&(u=".%s"),s==="data"&&(u="[data-%s]"),u.startsWith(".")){const y=u.substring(1);f+=`${l}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark));
|
|
78
|
-
${l}.classList.add('${y}'.replace('%s', colorScheme));`}const h=u.match(/\[([^[\]]+)\]/);if(h){const[y,v]=h[1].split("=");v||(f+=`${l}.removeAttribute('${y}'.replace('%s', light));
|
|
79
|
-
${l}.removeAttribute('${y}'.replace('%s', dark));`),f+=`
|
|
80
|
-
${l}.setAttribute('${y}'.replace('%s', colorScheme), ${v?`${v}.replace('%s', colorScheme)`:'""'});`}else f+=`${l}.setAttribute('${u}', colorScheme);`;return m.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",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 FU(){}const _U=({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 FU;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function BS(){}function RM(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Fj(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 BU(e){return Fj(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function UU(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=FC,colorSchemeStorageKey:s=_C,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=_U,noSsr:f=!1}=e,u=o.join(","),h=o.length>1,y=C.useMemo(()=>c?.({key:a,storageWindow:l}),[c,a,l]),v=C.useMemo(()=>c?.({key:`${s}-light`,storageWindow:l}),[c,s,l]),S=C.useMemo(()=>c?.({key:`${s}-dark`,storageWindow:l}),[c,s,l]),[x,w]=C.useState(()=>{const A=y?.get(t)||t,_=v?.get(n)||n,W=S?.get(r)||r;return{mode:A,systemMode:RM(A),lightColorScheme:_,darkColorScheme:W}}),[b,T]=C.useState(f||!h);C.useEffect(()=>{T(!0)},[]);const E=BU(x),M=C.useCallback(A=>{w(_=>{if(A===_.mode)return _;const W=A??t;return y?.set(W),{..._,mode:W,systemMode:RM(W)}})},[y,t]),$=C.useCallback(A=>{A?typeof A=="string"?A&&!u.includes(A)?console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`):w(_=>{const W={..._};return Fj(_,V=>{V==="light"&&(v?.set(A),W.lightColorScheme=A),V==="dark"&&(S?.set(A),W.darkColorScheme=A)}),W}):w(_=>{const W={..._},V=A.light===null?n:A.light,k=A.dark===null?r:A.dark;return V&&(u.includes(V)?(W.lightColorScheme=V,v?.set(V)):console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`)),k&&(u.includes(k)?(W.darkColorScheme=k,S?.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),W}):w(_=>(v?.set(n),S?.set(r),{..._,lightColorScheme:n,darkColorScheme:r}))},[u,v,S,n,r]),D=C.useCallback(A=>{x.mode==="system"&&w(_=>{const W=A?.matches?"dark":"light";return _.systemMode===W?_:{..._,systemMode:W}})},[x.mode]),I=C.useRef(D);return I.current=D,C.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const A=(...W)=>I.current(...W),_=window.matchMedia("(prefers-color-scheme: dark)");return _.addListener(A),A(_),()=>{_.removeListener(A)}},[h]),C.useEffect(()=>{if(h){const A=y?.subscribe(V=>{(!V||["light","dark","system"].includes(V))&&M(V||t)})||BS,_=v?.subscribe(V=>{(!V||u.match(V))&&$({light:V})})||BS,W=S?.subscribe(V=>{(!V||u.match(V))&&$({dark:V})})||BS;return()=>{A(),_(),W()}}},[$,M,u,t,l,h,y,v,S]),{...x,mode:b?x.mode:void 0,systemMode:b?x.systemMode:void 0,colorScheme:b?E:void 0,setMode:M,setColorScheme:$}}const VU="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function HU(e){const{themeId:t,theme:n={},modeStorageKey:r=FC,colorSchemeStorageKey:o=_C,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=C.createContext(void 0),u=()=>C.useContext(f)||c,h={},y={};function v(b){const{children:T,theme:E,modeStorageKey:M=r,colorSchemeStorageKey:$=o,disableTransitionOnChange:D=a,storageManager:I,storageWindow:A=typeof window>"u"?void 0:window,documentNode:_=typeof document>"u"?void 0:document,colorSchemeNode:W=typeof document>"u"?void 0:document.documentElement,disableNestedContext:V=!1,disableStyleSheetGeneration:k=!1,defaultMode:z="system",forceThemeRerender:F=!1,noSsr:H}=b,N=C.useRef(!1),X=zC(),Q=C.useContext(f),te=!!Q&&!V,Z=C.useMemo(()=>E||(typeof n=="function"?n():n),[E]),K=Z[t],ne=K||Z,{colorSchemes:le=h,components:fe=y,cssVarPrefix:ae}=ne,se=Object.keys(le).filter(Je=>!!le[Je]).join(","),ie=C.useMemo(()=>se.split(","),[se]),pe=typeof s=="string"?s:s.light,me=typeof s=="string"?s:s.dark,Te=le[pe]&&le[me]?z:le[ne.defaultColorScheme]?.palette?.mode||ne.palette?.mode,{mode:Ce,setMode:ke,systemMode:ce,lightColorScheme:we,darkColorScheme:Ge,colorScheme:Be,setColorScheme:Ae}=UU({supportedColorSchemes:ie,defaultLightColorScheme:pe,defaultDarkColorScheme:me,modeStorageKey:M,colorSchemeStorageKey:$,defaultMode:Te,storageManager:I,storageWindow:A,noSsr:H});let oe=Ce,lt=Be;te&&(oe=Q.mode,lt=Q.colorScheme);let Ne=lt||ne.defaultColorScheme;ne.vars&&!F&&(Ne=ne.defaultColorScheme);const et=C.useMemo(()=>{const Je=ne.generateThemeVars?.()||ne.vars,ct={...ne,components:fe,colorSchemes:le,cssVarPrefix:ae,vars:Je};if(typeof ct.generateSpacing=="function"&&(ct.spacing=ct.generateSpacing()),Ne){const Ie=le[Ne];Ie&&typeof Ie=="object"&&Object.keys(Ie).forEach(he=>{Ie[he]&&typeof Ie[he]=="object"?ct[he]={...ct[he],...Ie[he]}:ct[he]=Ie[he]})}return l?l(ct):ct},[ne,Ne,fe,le,ae]),mt=ne.colorSchemeSelector;Va(()=>{if(lt&&W&&mt&&mt!=="media"){const Je=mt;let ct=mt;if(Je==="class"&&(ct=".%s"),Je==="data"&&(ct="[data-%s]"),Je?.startsWith("data-")&&!Je.includes("%s")&&(ct=`[${Je}="%s"]`),ct.startsWith("."))W.classList.remove(...ie.map(Ie=>ct.substring(1).replace("%s",Ie))),W.classList.add(ct.substring(1).replace("%s",lt));else{const Ie=ct.replace("%s",lt).match(/\[([^\]]+)\]/);if(Ie){const[he,qe]=Ie[1].split("=");qe||ie.forEach(De=>{W.removeAttribute(he.replace(lt,De))}),W.setAttribute(he,qe?qe.replace(/"|'/g,""):"")}else W.setAttribute(ct,lt)}}},[lt,mt,W,ie]),C.useEffect(()=>{let Je;if(D&&N.current&&_){const ct=_.createElement("style");ct.appendChild(_.createTextNode(VU)),_.head.appendChild(ct),window.getComputedStyle(_.body),Je=setTimeout(()=>{_.head.removeChild(ct)},1)}return()=>{clearTimeout(Je)}},[lt,D,_]),C.useEffect(()=>(N.current=!0,()=>{N.current=!1}),[]);const Wt=C.useMemo(()=>({allColorSchemes:ie,colorScheme:lt,darkColorScheme:Ge,lightColorScheme:we,mode:oe,setColorScheme:Ae,setMode:ke,systemMode:ce}),[ie,lt,Ge,we,oe,Ae,ke,ce,et.colorSchemeSelector]);let zt=!0;(k||ne.cssVariables===!1||te&&X?.cssVarPrefix===ae)&&(zt=!1);const tt=m.jsxs(C.Fragment,{children:[m.jsx(Lj,{themeId:K?t:void 0,theme:et,children:T}),zt&&m.jsx(wj,{styles:et.generateStyleSheets?.()||[]})]});return te?tt:m.jsx(f.Provider,{value:Wt,children:tt})}const S=typeof s=="string"?s:s.light,x=typeof s=="string"?s:s.dark;return{CssVarsProvider:v,useColorScheme:u,getInitColorSchemeScript:b=>zU({colorSchemeStorageKey:o,defaultLightColorScheme:S,defaultDarkColorScheme:x,modeStorageKey:r,...b})}}function _j(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 OM=(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])})},WU=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...a,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,l],Array.isArray(c)?[...s,l]:s):t([...a,l],c,s))})}r(e)},qU=(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 US(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return WU(e,(l,c,f)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,h=qU(l,c);Object.assign(o,{[u]:h}),OM(a,l,`var(${u})`,f),OM(s,l,`var(${u}, ${h})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function YU(e,t={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...f}=e,{vars:u,css:h,varsWithDefaults:y}=US(f,t);let v=y;const S={},{[c]:x,...w}=s;if(Object.entries(w||{}).forEach(([M,$])=>{const{vars:D,css:I,varsWithDefaults:A}=US($,t);v=Ho(v,A),S[M]={css:I,vars:D}}),x){const{css:M,vars:$,varsWithDefaults:D}=US(x,t);v=Ho(v,D),S[c]={css:M,vars:$}}function b(M,$){let D=o;if(o==="class"&&(D=".%s"),o==="data"&&(D="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(D=`[${o}="%s"]`),M){if(D==="media")return e.defaultColorScheme===M?":root":{[`@media (prefers-color-scheme: ${s[M]?.palette?.mode||M})`]:{":root":$}};if(D)return e.defaultColorScheme===M?`:root, ${D.replace("%s",String(M))}`:D.replace("%s",String(M))}return":root"}return{vars:v,generateThemeVars:()=>{let M={...u};return Object.entries(S).forEach(([,{vars:$}])=>{M=Ho(M,$)}),M},generateStyleSheets:()=>{const M=[],$=e.defaultColorScheme||"light";function D(_,W){Object.keys(W).length&&M.push(typeof _=="string"?{[_]:{...W}}:_)}D(n(void 0,{...h}),h);const{[$]:I,...A}=S;if(I){const{css:_}=I,W=s[$]?.palette?.mode,V=!r&&W?{colorScheme:W,..._}:{..._};D(n($,{...V}),V)}return Object.entries(A).forEach(([_,{css:W}])=>{const V=s[_]?.palette?.mode,k=!r&&V?{colorScheme:V,...W}:{...W};D(n(_,{...k}),k)}),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 GU(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 fn(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let c=0;c<a.length;c+=1){const f=a[c];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}const KU=kp(),QU=NC("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),XU=e=>IC({props:e,name:"MuiContainer",defaultTheme:KU}),ZU=(e,t)=>{const n=c=>dn(t,c),{classes:r,fixed:o,disableGutters:a,maxWidth:s}=e,l={root:["root",s&&`maxWidth${nt(String(s))}`,o&&"fixed",a&&"disableGutters"]};return fn(l,n,r)};function JU(e={}){const{createStyledComponent:t=QU,useThemeProps:n=XU,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((c,f)=>{const u=f,h=s.breakpoints.values[u];return h!==0&&(c[s.breakpoints.up(u)]={maxWidth:`${h}${s.breakpoints.unit}`}),c},{}),({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,c){const f=n(l),{className:u,component:h="div",disableGutters:y=!1,fixed:v=!1,maxWidth:S="lg",classes:x,...w}=f,b={...f,component:h,disableGutters:y,fixed:v,maxWidth:S},T=ZU(b,r);return m.jsx(o,{as:h,ownerState:b,className:Nt(T.root,u),ref:c,...w})})}function _v(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const e6=(e,t)=>e.filter(n=>t.includes(n)),Ep=(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:e6(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((l,c)=>{r===a?Object.assign(l,c):l[e.up(a)]=c},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function ab(e){return`--Grid-${e}Spacing`}function t0(e){return`--Grid-parent-${e}Spacing`}const MM="--Grid-columns",Xf="--Grid-parent-columns",t6=({theme:e,ownerState:t})=>{const n={};return Ep(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(${Xf}) - (var(${Xf}) - ${o}) * (var(${t0("column")}) / var(${Xf})))`}),r(n,a)}),n},n6=({theme:e,ownerState:t})=>{const n={};return Ep(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(${Xf}) + var(${t0("column")}) * ${o} / var(${Xf}))`}),r(n,a)}),n},r6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[MM]:12};return Ep(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[MM]:a,"> *":{[Xf]:a}})}),n},o6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ep(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[ab("row")]:a,"> *":{[t0("row")]:a}})}),n},a6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ep(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[ab("column")]:a,"> *":{[t0("column")]:a}})}),n},i6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ep(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},s6=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${ab("row")}) var(${ab("column")})`}}),l6=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},c6=(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[]},u6=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function d6(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const f6=kp(),p6=NC("div",{name:"MuiGrid",slot:"Root"});function h6(e){return IC({props:e,name:"MuiGrid",defaultTheme:f6})}function m6(e={}){const{createStyledComponent:t=p6,useThemeProps:n=h6,useTheme:r=Tp,componentName:o="MuiGrid"}=e,a=(f,u)=>{const{container:h,direction:y,spacing:v,wrap:S,size:x}=f,w={root:["root",h&&"container",S!=="wrap"&&`wrap-xs-${String(S)}`,...u6(y),...l6(x),...h?c6(v,u.breakpoints.keys[0]):[]]};return fn(w,b=>dn(o,b),{})};function s(f,u,h=()=>!0){const y={};return f===null||(Array.isArray(f)?f.forEach((v,S)=>{v!==null&&h(v)&&u.keys[S]&&(y[u.keys[S]]=v)}):typeof f=="object"?Object.keys(f).forEach(v=>{const S=f[v];S!=null&&h(S)&&(y[v]=S)}):y[u.keys[0]]=f),y}const l=t(r6,a6,o6,t6,i6,s6,n6),c=C.forwardRef(function(u,h){const y=r(),v=n(u),S=Xb(v);d6(S,y.breakpoints);const{className:x,children:w,columns:b=12,container:T=!1,component:E="div",direction:M="row",wrap:$="wrap",size:D={},offset:I={},spacing:A=0,rowSpacing:_=A,columnSpacing:W=A,unstable_level:V=0,...k}=S,z=s(D,y.breakpoints,K=>K!==!1),F=s(I,y.breakpoints),H=u.columns??(V?void 0:b),N=u.spacing??(V?void 0:A),X=u.rowSpacing??u.spacing??(V?void 0:_),Q=u.columnSpacing??u.spacing??(V?void 0:W),te={...S,level:V,columns:H,container:T,direction:M,wrap:$,spacing:N,rowSpacing:X,columnSpacing:Q,size:z,offset:F},Z=a(te,y);return m.jsx(l,{ref:h,as:E,ownerState:te,className:Nt(Z.root,x),...k,children:C.Children.map(w,K=>C.isValidElement(K)&&_v(K,["Grid"])&&T&&K.props.container?C.cloneElement(K,{unstable_level:K.props?.unstable_level??V+1}):K)})});return c.muiName="Grid",c}const g6=kp(),y6=NC("div",{name:"MuiStack",slot:"Root"});function v6(e){return IC({props:e,name:"MuiStack",defaultTheme:g6})}function b6(e,t){const n=C.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a<n.length-1&&r.push(C.cloneElement(t,{key:`separator-${a}`})),r),[])}const x6=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],S6=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Cs({theme:t},FS({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Wb(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),a=FS({values:e.direction,base:o}),s=FS({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,f,u)=>{if(!a[c]){const y=f>0?a[u[f-1]]:"column";a[c]=y}}),n=Ho(n,Cs({theme:t},s,(c,f)=>e.useFlexGap?{gap:nd(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${x6(f?a[f]:e.direction)}`]:nd(r,c)}}))}return n=SB(t.breakpoints,n),n};function BC(e={}){const{createStyledComponent:t=y6,useThemeProps:n=v6,componentName:r="MuiStack"}=e,o=()=>fn({root:["root"]},c=>dn(r,c),{}),a=t(S6);return C.forwardRef(function(c,f){const u=n(c),h=Xb(u),{component:y="div",direction:v="column",spacing:S=0,divider:x,children:w,className:b,useFlexGap:T=!1,...E}=h,M={direction:v,spacing:S,useFlexGap:T},$=o();return m.jsx(a,{as:y,ownerState:M,ref:f,className:Nt($.root,b),...E,children:x?b6(w,x):w})})}const w6=BC();function Bj(){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:Jm.white,default:Jm.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 Uj=Bj();function Vj(){return{text:{primary:Jm.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:Jm.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 q1=Vj();function $M(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=e0(e.main,o):t==="dark"&&(e.dark=Jb(e.main,a)))}function PM(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 C6(e="light"){return e==="dark"?{main:vf[200],light:vf[50],dark:vf[400]}:{main:vf[700],light:vf[400],dark:vf[800]}}function k6(e="light"){return e==="dark"?{main:yf[200],light:yf[50],dark:yf[400]}:{main:yf[500],light:yf[300],dark:yf[700]}}function T6(e="light"){return e==="dark"?{main:gf[500],light:gf[300],dark:gf[700]}:{main:gf[700],light:gf[400],dark:gf[800]}}function E6(e="light"){return e==="dark"?{main:bf[400],light:bf[300],dark:bf[700]}:{main:bf[700],light:bf[500],dark:bf[900]}}function R6(e="light"){return e==="dark"?{main:xf[400],light:xf[300],dark:xf[700]}:{main:xf[800],light:xf[500],dark:xf[900]}}function O6(e="light"){return e==="dark"?{main:_h[400],light:_h[300],dark:_h[700]}:{main:"#ed6c02",light:_h[500],dark:_h[900]}}function M6(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function UC(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,s=e.primary||C6(t),l=e.secondary||k6(t),c=e.error||T6(t),f=e.info||E6(t),u=e.success||R6(t),h=e.warning||O6(t);function y(w){return o?M6(w):TU(w,q1.text.primary)>=n?q1.text.primary:Uj.text.primary}const v=({color:w,name:b,mainShade:T=500,lightShade:E=300,darkShade:M=700})=>{if(w={...w},!w.main&&w[T]&&(w.main=w[T]),!w.hasOwnProperty("main"))throw new Error(Ul(11,b?` (${b})`:"",T));if(typeof w.main!="string")throw new Error(Ul(12,b?` (${b})`:"",JSON.stringify(w.main)));return o?(PM(o,w,"light",E,r),PM(o,w,"dark",M,r)):($M(w,"light",E,r),$M(w,"dark",M,r)),w.contrastText||(w.contrastText=y(w.main)),w};let S;return t==="light"?S=Bj():t==="dark"&&(S=Vj()),Ho({common:{...Jm},mode:t,primary:v({color:s,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:h,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:u,name:"success"}),grey:f_,contrastThreshold:n,getContrastText:y,augmentColor:v,tonalOffset:r,...S},a)}function $6(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 P6(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function D6(e){return Math.round(e*1e5)/1e5}const DM={textTransform:"uppercase"},AM='"Roboto", "Helvetica", "Arial", sans-serif';function Hj(e,t){const{fontFamily:n=AM,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:f,pxToRem:u,...h}=typeof t=="function"?t(e):t,y=r/14,v=u||(w=>`${w/c*y}rem`),S=(w,b,T,E,M)=>({fontFamily:n,fontWeight:w,fontSize:v(b),lineHeight:T,...n===AM?{letterSpacing:`${D6(E/b)}em`}:{},...M,...f}),x={h1:S(o,96,1.167,-1.5),h2:S(o,60,1.2,-.5),h3:S(a,48,1.167,0),h4:S(a,34,1.235,.25),h5:S(a,24,1.334,0),h6:S(s,20,1.6,.15),subtitle1:S(a,16,1.75,.15),subtitle2:S(s,14,1.57,.1),body1:S(a,16,1.5,.15),body2:S(a,14,1.43,.15),button:S(s,14,1.75,.4,DM),caption:S(a,12,1.66,.4),overline:S(a,12,2.66,1,DM),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ho({htmlFontSize:c,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},h,{clone:!1})}const A6=.2,j6=.14,N6=.12;function Xr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${A6})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${j6})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${N6})`].join(",")}const I6=["none",Xr(0,2,1,-1,0,1,1,0,0,1,3,0),Xr(0,3,1,-2,0,2,2,0,0,1,5,0),Xr(0,3,3,-2,0,3,4,0,0,1,8,0),Xr(0,2,4,-1,0,4,5,0,0,1,10,0),Xr(0,3,5,-1,0,5,8,0,0,1,14,0),Xr(0,3,5,-1,0,6,10,0,0,1,18,0),Xr(0,4,5,-2,0,7,10,1,0,2,16,1),Xr(0,5,5,-3,0,8,10,1,0,3,14,2),Xr(0,5,6,-3,0,9,12,1,0,3,16,2),Xr(0,6,6,-3,0,10,14,1,0,4,18,3),Xr(0,6,7,-4,0,11,15,1,0,4,20,3),Xr(0,7,8,-4,0,12,17,2,0,5,22,4),Xr(0,7,8,-4,0,13,19,2,0,5,24,4),Xr(0,7,9,-4,0,14,21,2,0,5,26,4),Xr(0,8,9,-5,0,15,22,2,0,6,28,5),Xr(0,8,10,-5,0,16,24,2,0,6,30,5),Xr(0,8,11,-5,0,17,26,2,0,6,32,5),Xr(0,9,11,-5,0,18,28,2,0,7,34,6),Xr(0,9,12,-6,0,19,29,2,0,7,36,6),Xr(0,10,13,-6,0,20,31,3,0,8,38,7),Xr(0,10,13,-6,0,21,33,3,0,8,40,7),Xr(0,10,14,-6,0,22,35,3,0,8,42,7),Xr(0,11,14,-7,0,23,36,3,0,9,44,8),Xr(0,11,15,-7,0,24,38,3,0,9,46,8)],L6={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)"},z6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jM(e){return`${Math.round(e)}ms`}function F6(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function _6(e){const t={...L6,...e.easing},n={...z6,...e.duration};return{getAutoHeightDuration:F6,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0,...f}=a;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:jM(s)} ${l} ${typeof c=="string"?c:jM(c)}`).join(",")},...e,easing:t,duration:n}}const B6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function U6(e){return Xs(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Wj(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];!U6(l)||s.startsWith("unstable_")?delete r[s]:Xs(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 NM(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const V6=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 H6(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})`:ks(t,V6(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${NM(n)})`:e0(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${NM(n)})`:Jb(t,n)}})}function Y1(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:c,colorSpace:f,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Ul(20));const h=UC({...a,colorSpace:f}),y=kp(e);let v=Ho(y,{mixins:P6(y.breakpoints,r),palette:h,shadows:I6.slice(),typography:Hj(h,l),transitions:_6(s),zIndex:{...B6}});return v=Ho(v,u),v=t.reduce((S,x)=>Ho(S,x),v),v.unstable_sxConfig={...Mg,...u?.unstable_sxConfig},v.unstable_sx=function(x){return Vc({sx:x,theme:this})},v.toRuntimeSource=Wj,H6(v),v}function G1(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 W6=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=G1(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function qj(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Yj(e){return e==="dark"?W6:[]}function q6(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=UC({...t,colorSpace:o});return{palette:s,opacity:{...qj(s.mode),...n},overlays:r||Yj(s.mode),...a}}function Y6(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 G6=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],K6=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 G6(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 Q6(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ut(e,t,n){!e[t]&&n&&(e[t]=n)}function Em(e){return typeof e!="string"||!e.startsWith("hsl")?e:Aj(e)}function jl(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tm(Em(e[t])))}function X6(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Us=e=>{try{return e()}catch{}},Z6=(e="mui")=>_j(e);function VS(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=q6({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=Y1({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...qj(a),...n?.opacity},overlays:n?.overlays||Yj(a)},l}function J6(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=Y6,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...u}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),v=Z6(a),{[y]:S,light:x,dark:w,...b}=n,T={...b};let E=S;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(Ul(21,y));let M;s&&(M="oklch");const $=VS(M,T,E,u,y);x&&!T.light&&VS(M,T,x,void 0,"light"),w&&!T.dark&&VS(M,T,w,void 0,"dark");let D={defaultColorScheme:y,...$,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:f,getCssVar:v,colorSchemes:T,font:{...$6($.typography),...$.font},spacing:X6(u.spacing)};Object.keys(D.colorSchemes).forEach(V=>{const k=D.colorSchemes[V].palette,z=H=>{const N=H.split("-"),X=N[1],Q=N[2];return v(H,k[X][Q])};k.mode==="light"&&(ut(k.common,"background","#fff"),ut(k.common,"onBackground","#000")),k.mode==="dark"&&(ut(k.common,"background","#000"),ut(k.common,"onBackground","#fff"));function F(H,N,X){if(M){let Q;return H===Ou&&(Q=`transparent ${((1-X)*100).toFixed(0)}%`),H===Er&&(Q=`#000 ${(X*100).toFixed(0)}%`),H===Rr&&(Q=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${M}, ${N}, ${Q})`}return H(N,X)}if(Q6(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){ut(k.Alert,"errorColor",F(Er,k.error.light,.6)),ut(k.Alert,"infoColor",F(Er,k.info.light,.6)),ut(k.Alert,"successColor",F(Er,k.success.light,.6)),ut(k.Alert,"warningColor",F(Er,k.warning.light,.6)),ut(k.Alert,"errorFilledBg",z("palette-error-main")),ut(k.Alert,"infoFilledBg",z("palette-info-main")),ut(k.Alert,"successFilledBg",z("palette-success-main")),ut(k.Alert,"warningFilledBg",z("palette-warning-main")),ut(k.Alert,"errorFilledColor",Us(()=>k.getContrastText(k.error.main))),ut(k.Alert,"infoFilledColor",Us(()=>k.getContrastText(k.info.main))),ut(k.Alert,"successFilledColor",Us(()=>k.getContrastText(k.success.main))),ut(k.Alert,"warningFilledColor",Us(()=>k.getContrastText(k.warning.main))),ut(k.Alert,"errorStandardBg",F(Rr,k.error.light,.9)),ut(k.Alert,"infoStandardBg",F(Rr,k.info.light,.9)),ut(k.Alert,"successStandardBg",F(Rr,k.success.light,.9)),ut(k.Alert,"warningStandardBg",F(Rr,k.warning.light,.9)),ut(k.Alert,"errorIconColor",z("palette-error-main")),ut(k.Alert,"infoIconColor",z("palette-info-main")),ut(k.Alert,"successIconColor",z("palette-success-main")),ut(k.Alert,"warningIconColor",z("palette-warning-main")),ut(k.AppBar,"defaultBg",z("palette-grey-100")),ut(k.Avatar,"defaultBg",z("palette-grey-400")),ut(k.Button,"inheritContainedBg",z("palette-grey-300")),ut(k.Button,"inheritContainedHoverBg",z("palette-grey-A100")),ut(k.Chip,"defaultBorder",z("palette-grey-400")),ut(k.Chip,"defaultAvatarColor",z("palette-grey-700")),ut(k.Chip,"defaultIconColor",z("palette-grey-700")),ut(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ut(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ut(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ut(k.LinearProgress,"primaryBg",F(Rr,k.primary.main,.62)),ut(k.LinearProgress,"secondaryBg",F(Rr,k.secondary.main,.62)),ut(k.LinearProgress,"errorBg",F(Rr,k.error.main,.62)),ut(k.LinearProgress,"infoBg",F(Rr,k.info.main,.62)),ut(k.LinearProgress,"successBg",F(Rr,k.success.main,.62)),ut(k.LinearProgress,"warningBg",F(Rr,k.warning.main,.62)),ut(k.Skeleton,"bg",M?F(Ou,k.text.primary,.11):`rgba(${z("palette-text-primaryChannel")} / 0.11)`),ut(k.Slider,"primaryTrack",F(Rr,k.primary.main,.62)),ut(k.Slider,"secondaryTrack",F(Rr,k.secondary.main,.62)),ut(k.Slider,"errorTrack",F(Rr,k.error.main,.62)),ut(k.Slider,"infoTrack",F(Rr,k.info.main,.62)),ut(k.Slider,"successTrack",F(Rr,k.success.main,.62)),ut(k.Slider,"warningTrack",F(Rr,k.warning.main,.62));const H=M?F(Er,k.background.default,.6825):ev(k.background.default,.8);ut(k.SnackbarContent,"bg",H),ut(k.SnackbarContent,"color",Us(()=>M?q1.text.primary:k.getContrastText(H))),ut(k.SpeedDialAction,"fabHoverBg",ev(k.background.paper,.15)),ut(k.StepConnector,"border",z("palette-grey-400")),ut(k.StepContent,"border",z("palette-grey-400")),ut(k.Switch,"defaultColor",z("palette-common-white")),ut(k.Switch,"defaultDisabledColor",z("palette-grey-100")),ut(k.Switch,"primaryDisabledColor",F(Rr,k.primary.main,.62)),ut(k.Switch,"secondaryDisabledColor",F(Rr,k.secondary.main,.62)),ut(k.Switch,"errorDisabledColor",F(Rr,k.error.main,.62)),ut(k.Switch,"infoDisabledColor",F(Rr,k.info.main,.62)),ut(k.Switch,"successDisabledColor",F(Rr,k.success.main,.62)),ut(k.Switch,"warningDisabledColor",F(Rr,k.warning.main,.62)),ut(k.TableCell,"border",F(Rr,F(Ou,k.divider,1),.88)),ut(k.Tooltip,"bg",F(Ou,k.grey[700],.92))}if(k.mode==="dark"){ut(k.Alert,"errorColor",F(Rr,k.error.light,.6)),ut(k.Alert,"infoColor",F(Rr,k.info.light,.6)),ut(k.Alert,"successColor",F(Rr,k.success.light,.6)),ut(k.Alert,"warningColor",F(Rr,k.warning.light,.6)),ut(k.Alert,"errorFilledBg",z("palette-error-dark")),ut(k.Alert,"infoFilledBg",z("palette-info-dark")),ut(k.Alert,"successFilledBg",z("palette-success-dark")),ut(k.Alert,"warningFilledBg",z("palette-warning-dark")),ut(k.Alert,"errorFilledColor",Us(()=>k.getContrastText(k.error.dark))),ut(k.Alert,"infoFilledColor",Us(()=>k.getContrastText(k.info.dark))),ut(k.Alert,"successFilledColor",Us(()=>k.getContrastText(k.success.dark))),ut(k.Alert,"warningFilledColor",Us(()=>k.getContrastText(k.warning.dark))),ut(k.Alert,"errorStandardBg",F(Er,k.error.light,.9)),ut(k.Alert,"infoStandardBg",F(Er,k.info.light,.9)),ut(k.Alert,"successStandardBg",F(Er,k.success.light,.9)),ut(k.Alert,"warningStandardBg",F(Er,k.warning.light,.9)),ut(k.Alert,"errorIconColor",z("palette-error-main")),ut(k.Alert,"infoIconColor",z("palette-info-main")),ut(k.Alert,"successIconColor",z("palette-success-main")),ut(k.Alert,"warningIconColor",z("palette-warning-main")),ut(k.AppBar,"defaultBg",z("palette-grey-900")),ut(k.AppBar,"darkBg",z("palette-background-paper")),ut(k.AppBar,"darkColor",z("palette-text-primary")),ut(k.Avatar,"defaultBg",z("palette-grey-600")),ut(k.Button,"inheritContainedBg",z("palette-grey-800")),ut(k.Button,"inheritContainedHoverBg",z("palette-grey-700")),ut(k.Chip,"defaultBorder",z("palette-grey-700")),ut(k.Chip,"defaultAvatarColor",z("palette-grey-300")),ut(k.Chip,"defaultIconColor",z("palette-grey-300")),ut(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ut(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ut(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ut(k.LinearProgress,"primaryBg",F(Er,k.primary.main,.5)),ut(k.LinearProgress,"secondaryBg",F(Er,k.secondary.main,.5)),ut(k.LinearProgress,"errorBg",F(Er,k.error.main,.5)),ut(k.LinearProgress,"infoBg",F(Er,k.info.main,.5)),ut(k.LinearProgress,"successBg",F(Er,k.success.main,.5)),ut(k.LinearProgress,"warningBg",F(Er,k.warning.main,.5)),ut(k.Skeleton,"bg",M?F(Ou,k.text.primary,.13):`rgba(${z("palette-text-primaryChannel")} / 0.13)`),ut(k.Slider,"primaryTrack",F(Er,k.primary.main,.5)),ut(k.Slider,"secondaryTrack",F(Er,k.secondary.main,.5)),ut(k.Slider,"errorTrack",F(Er,k.error.main,.5)),ut(k.Slider,"infoTrack",F(Er,k.info.main,.5)),ut(k.Slider,"successTrack",F(Er,k.success.main,.5)),ut(k.Slider,"warningTrack",F(Er,k.warning.main,.5));const H=M?F(Rr,k.background.default,.985):ev(k.background.default,.98);ut(k.SnackbarContent,"bg",H),ut(k.SnackbarContent,"color",Us(()=>M?Uj.text.primary:k.getContrastText(H))),ut(k.SpeedDialAction,"fabHoverBg",ev(k.background.paper,.15)),ut(k.StepConnector,"border",z("palette-grey-600")),ut(k.StepContent,"border",z("palette-grey-600")),ut(k.Switch,"defaultColor",z("palette-grey-300")),ut(k.Switch,"defaultDisabledColor",z("palette-grey-600")),ut(k.Switch,"primaryDisabledColor",F(Er,k.primary.main,.55)),ut(k.Switch,"secondaryDisabledColor",F(Er,k.secondary.main,.55)),ut(k.Switch,"errorDisabledColor",F(Er,k.error.main,.55)),ut(k.Switch,"infoDisabledColor",F(Er,k.info.main,.55)),ut(k.Switch,"successDisabledColor",F(Er,k.success.main,.55)),ut(k.Switch,"warningDisabledColor",F(Er,k.warning.main,.55)),ut(k.TableCell,"border",F(Er,F(Ou,k.divider,1),.68)),ut(k.Tooltip,"bg",F(Ou,k.grey[700],.92))}jl(k.background,"default"),jl(k.background,"paper"),jl(k.common,"background"),jl(k.common,"onBackground"),jl(k,"divider"),Object.keys(k).forEach(H=>{const N=k[H];H!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&ut(k[H],"mainChannel",Tm(Em(N.main))),N.light&&ut(k[H],"lightChannel",Tm(Em(N.light))),N.dark&&ut(k[H],"darkChannel",Tm(Em(N.dark))),N.contrastText&&ut(k[H],"contrastTextChannel",Tm(Em(N.contrastText))),H==="text"&&(jl(k[H],"primary"),jl(k[H],"secondary")),H==="action"&&(N.active&&jl(k[H],"active"),N.selected&&jl(k[H],"selected")))})}),D=t.reduce((V,k)=>Ho(V,k),D);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:K6(D),enableContrastVars:s},{vars:A,generateThemeVars:_,generateStyleSheets:W}=YU(D,I);return D.vars=A,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([V,k])=>{D[V]=k}),D.generateThemeVars=_,D.generateStyleSheets=W,D.generateSpacing=function(){return MC(u.spacing,Wb(this))},D.getColorSchemeSelector=GU(c),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=l,D.unstable_sxConfig={...Mg,...u?.unstable_sxConfig},D.unstable_sx=function(k){return Vc({sx:k,theme:this})},D.toRuntimeSource=Wj,D}function IM(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:UC({...n===!0?{}:n.palette,mode:t})})}function n0(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",c=o?.[l],f={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Y1(e,...t);let u=n;"palette"in e||f[l]&&(f[l]!==!0?u=f[l].palette:l==="dark"&&(u={mode:"dark"}));const h=Y1({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},IM(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},IM(h,"light",f.light)),h}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),J6({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const VC=n0();function Xc(){const e=Tp(VC);return e[el]||e}function r0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ta=e=>r0(e)&&e!=="classes",at=Dj({themeId:el,defaultTheme:VC,rootShouldForwardProp:Ta});function eV({theme:e,...t}){const n=el in e?e[el]:void 0;return m.jsx(Lj,{...t,themeId:n?el:void 0,theme:n||e})}const tv={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:tV}=HU({themeId:el,theme:()=>n0({cssVariables:!0}),colorSchemeStorageKey:tv.colorSchemeStorageKey,modeStorageKey:tv.modeStorageKey,defaultColorScheme:{light:tv.defaultLightColorScheme,dark:tv.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Hj(e.palette,e.typography)};return t.unstable_sx=function(r){return Vc({sx:r,theme:this})},t}}),nV=tV;function rV({theme:e,...t}){const n=C.useMemo(()=>{if(typeof e=="function")return e;const r=el in e?e[el]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?m.jsx(eV,{theme:n,...t}):m.jsx(nV,{theme:e,...t})}function LM(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function oV(e){return m.jsx(DC,{...e,defaultTheme:VC,themeId:el})}function HC(e){return function(n){return m.jsx(oV,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function aV(){return Xb}const rn=zj;function hn(e){return AU(e)}function iV(e){return dn("MuiSvgIcon",e)}pn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sV=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${nt(t)}`,`fontSize${nt(n)}`]};return fn(o,iV,r)},lV=at("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${nt(n.color)}`],t[`fontSize${nt(n.fontSize)}`]]}})(rn(({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}}]}))),K1=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:h,viewBox:y="0 0 24 24",...v}=r,S=C.isValidElement(o)&&o.type==="svg",x={...r,color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:y,hasSvgAsChild:S},w={};u||(w.viewBox=y);const b=sV(x);return m.jsxs(lV,{as:l,className:Nt(b.root,a),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...w,...v,...S&&o.props,ownerState:x,children:[S?o.props.children:o,h?m.jsx("title",{children:h}):null]})});K1.muiName="SvgIcon";function Wa(e,t){function n(r,o){return m.jsx(K1,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=K1.muiName,C.memo(C.forwardRef(n))}function Gj(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 $o(e){return e&&e.ownerDocument||document}function Vl(e){return $o(e).defaultView||window}function Q1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _c(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=C.useRef(t!==void 0),[s,l]=C.useState(n),c=a?t:s,f=C.useCallback(u=>{a||l(u)},[]);return[c,f]}function Ao(e){const t=C.useRef(e);return Va(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function yo(...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 cV(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Kj(e,t){if(!e)return t;function n(s,l){const c={};return Object.keys(l).forEach(f=>{cV(f,l[f])&&typeof s[f]=="function"&&(c[f]=(...u)=>{s[f](...u),l[f](...u)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,f=Nt(s?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!f&&{className:f},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.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]]}}}function Qj(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 X1(e,t){return X1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},X1(e,t)}function Xj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,X1(e,t)}const zM={disabled:!1},ib=un.createContext(null);var uV=function(t){return t.scrollTop},Rm="unmounted",Lu="exited",zu="entering",zf="entered",Z1="exiting",cl=(function(e){Xj(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,c;return a.appearStatus=null,r.in?l?(c=Lu,a.appearStatus=zu):c=zf:r.unmountOnExit||r.mountOnEnter?c=Rm:c=Lu,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===Rm?{status:Lu}: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!==zu&&s!==zf&&(a=zu):(s===zu||s===zf)&&(a=Z1)}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===zu){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ic.findDOMNode(this);s&&uV(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Lu&&this.setState({status:Rm})},n.performEnter=function(o){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Ic.findDOMNode(this),l],f=c[0],u=c[1],h=this.getTimeouts(),y=l?h.appear:h.enter;if(!o&&!s||zM.disabled){this.safeSetState({status:zf},function(){a.props.onEntered(f)});return}this.props.onEnter(f,u),this.safeSetState({status:zu},function(){a.props.onEntering(f,u),a.onTransitionEnd(y,function(){a.safeSetState({status:zf},function(){a.props.onEntered(f,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Ic.findDOMNode(this);if(!a||zM.disabled){this.safeSetState({status:Lu},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Z1},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Lu},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:Ic.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=c[0],u=c[1];this.props.addEndListener(f,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Rm)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=Qj(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return un.createElement(ib.Provider,{value:null},typeof s=="function"?s(o,l):un.cloneElement(un.Children.only(s),l))},t})(un.Component);cl.contextType=ib;cl.propTypes={};function Sf(){}cl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Sf,onEntering:Sf,onEntered:Sf,onExit:Sf,onExiting:Sf,onExited:Sf};cl.UNMOUNTED=Rm;cl.EXITED=Lu;cl.ENTERING=zu;cl.ENTERED=zf;cl.EXITING=Z1;function dV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WC(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 fV(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}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 c in t){if(r[c])for(s=0;s<r[c].length;s++){var f=r[c][s];l[r[c][s]]=n(f)}l[c]=n(c)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Wu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function pV(e,t){return WC(e.children,function(n){return C.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Wu(n,"appear",e),enter:Wu(n,"enter",e),exit:Wu(n,"exit",e)})})}function hV(e,t,n){var r=WC(e.children),o=fV(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,c=a in r,f=t[a],u=C.isValidElement(f)&&!f.props.in;c&&(!l||u)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Wu(s,"exit",e),enter:Wu(s,"enter",e)}):!c&&l&&!u?o[a]=C.cloneElement(s,{in:!1}):c&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:Wu(s,"exit",e),enter:Wu(s,"enter",e)}))}}),o}var mV=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gV={component:"div",childFactory:function(t){return t}},qC=(function(e){Xj(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(dV(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,c=a.firstRender;return{children:c?pV(o,l):hV(o,s,l),firstRender:!1}},n.handleExited=function(o,a){var s=WC(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var c=tb({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,a=o.component,s=o.childFactory,l=Qj(o,["component","childFactory"]),c=this.state.contextValue,f=mV(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?un.createElement(ib.Provider,{value:c},f):un.createElement(ib.Provider,{value:c},un.createElement(a,l,f))},t})(un.Component);qC.propTypes={};qC.defaultProps=gV;const FM={};function Zj(e,t){const n=C.useRef(FM);return n.current===FM&&(n.current=e(t)),n}const yV=[];function vV(e){C.useEffect(e,yV)}class o0{static create(){return new o0}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 qu(){const e=Zj(o0.create).current;return vV(e.disposeEffect),e}const Jj=e=>e.scrollTop;function sb(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 bV(e){return dn("MuiPaper",e)}pn("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 xV=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return fn(a,bV,o)},SV=at("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}`]]}})(rn(({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)"}}]}))),Ha=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiPaper"}),o=Xc(),{className:a,component:s="div",elevation:l=1,square:c=!1,variant:f="elevation",...u}=r,h={...r,component:s,elevation:l,square:c,variant:f},y=xV(h);return m.jsx(SV,{as:s,ownerState:h,className:Nt(y.root,a),ref:n,...u,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(${ks("#fff",G1(l))}, ${ks("#fff",G1(l))})`}},...u.style}})});function Bc(e){return typeof e=="string"}function eN(e,t,n){return e===void 0||Bc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function tN(e,t,n){return typeof e=="function"?e(t,n):e}function Xu(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 _M(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 nN(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const v=Nt(n?.className,a,o?.className,r?.className),S={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return v.length>0&&(x.className=v),Object.keys(S).length>0&&(x.style=S),{props:x,internalRef:void 0}}const s=Xu({...o,...r}),l=_M(r),c=_M(o),f=t(s),u=Nt(f?.className,n?.className,a,o?.className,r?.className),h={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...c,...l};return u.length>0&&(y.className=u),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,...c}=t,{component:f,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,v=u[e]||r,S=tN(h[e],o),{props:{component:x,...w},internalRef:b}=nN({className:n,...c,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:S}),T=yo(b,S?.ref,t.ref),E=e==="root"?x||f:x,M=eN(v,{...e==="root"&&!f&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...w,...E&&!l&&{as:E},...E&&l&&{component:E},ref:T},o);return[v,M]}function Wc(e){try{return e.matches(":focus-visible")}catch{}return!1}class lb{static create(){return new lb}static use(){const t=Zj(lb.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=CV(),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 wV(){return lb.use()}function CV(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function kV(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:f}=e,[u,h]=C.useState(!1),y=Nt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},S=Nt(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&h(!0),C.useEffect(()=>{if(!l&&c!=null){const x=setTimeout(c,f);return()=>{clearTimeout(x)}}},[c,l,f]),m.jsx("span",{className:y,style:v,children:m.jsx("span",{className:S})})}const Fi=pn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),J1=550,TV=80,EV=Si`
|
|
112
|
-
0% {
|
|
113
|
-
transform: scale(0);
|
|
114
|
-
opacity: 0.1;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
100% {
|
|
118
|
-
transform: scale(1);
|
|
119
|
-
opacity: 0.3;
|
|
120
|
-
}
|
|
121
|
-
`,RV=Si`
|
|
122
|
-
0% {
|
|
123
|
-
opacity: 1;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
100% {
|
|
127
|
-
opacity: 0;
|
|
128
|
-
}
|
|
129
|
-
`,OV=Si`
|
|
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
|
-
`,MV=at("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$V=at(kV,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
142
|
-
opacity: 0;
|
|
143
|
-
position: absolute;
|
|
144
|
-
|
|
145
|
-
&.${Fi.rippleVisible} {
|
|
146
|
-
opacity: 0.3;
|
|
147
|
-
transform: scale(1);
|
|
148
|
-
animation-name: ${EV};
|
|
149
|
-
animation-duration: ${J1}ms;
|
|
150
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&.${Fi.ripplePulsate} {
|
|
154
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
& .${Fi.child} {
|
|
158
|
-
opacity: 1;
|
|
159
|
-
display: block;
|
|
160
|
-
width: 100%;
|
|
161
|
-
height: 100%;
|
|
162
|
-
border-radius: 50%;
|
|
163
|
-
background-color: currentColor;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
& .${Fi.childLeaving} {
|
|
167
|
-
opacity: 0;
|
|
168
|
-
animation-name: ${RV};
|
|
169
|
-
animation-duration: ${J1}ms;
|
|
170
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
& .${Fi.childPulsate} {
|
|
174
|
-
position: absolute;
|
|
175
|
-
/* @noflip */
|
|
176
|
-
left: 0px;
|
|
177
|
-
top: 0;
|
|
178
|
-
animation-name: ${OV};
|
|
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
|
-
`,PV=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...l}=r,[c,f]=C.useState([]),u=C.useRef(0),h=C.useRef(null);C.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const y=C.useRef(!1),v=qu(),S=C.useRef(null),x=C.useRef(null),w=C.useCallback(M=>{const{pulsate:$,rippleX:D,rippleY:I,rippleSize:A,cb:_}=M;f(W=>[...W,m.jsx($V,{classes:{ripple:Nt(a.ripple,Fi.ripple),rippleVisible:Nt(a.rippleVisible,Fi.rippleVisible),ripplePulsate:Nt(a.ripplePulsate,Fi.ripplePulsate),child:Nt(a.child,Fi.child),childLeaving:Nt(a.childLeaving,Fi.childLeaving),childPulsate:Nt(a.childPulsate,Fi.childPulsate)},timeout:J1,pulsate:$,rippleX:D,rippleY:I,rippleSize:A},u.current)]),u.current+=1,h.current=_},[a]),b=C.useCallback((M={},$={},D=()=>{})=>{const{pulsate:I=!1,center:A=o||$.pulsate,fakeElement:_=!1}=$;if(M?.type==="mousedown"&&y.current){y.current=!1;return}M?.type==="touchstart"&&(y.current=!0);const W=_?null:x.current,V=W?W.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,z,F;if(A||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)k=Math.round(V.width/2),z=Math.round(V.height/2);else{const{clientX:H,clientY:N}=M.touches&&M.touches.length>0?M.touches[0]:M;k=Math.round(H-V.left),z=Math.round(N-V.top)}if(A)F=Math.sqrt((2*V.width**2+V.height**2)/3),F%2===0&&(F+=1);else{const H=Math.max(Math.abs((W?W.clientWidth:0)-k),k)*2+2,N=Math.max(Math.abs((W?W.clientHeight:0)-z),z)*2+2;F=Math.sqrt(H**2+N**2)}M?.touches?S.current===null&&(S.current=()=>{w({pulsate:I,rippleX:k,rippleY:z,rippleSize:F,cb:D})},v.start(TV,()=>{S.current&&(S.current(),S.current=null)})):w({pulsate:I,rippleX:k,rippleY:z,rippleSize:F,cb:D})},[o,w,v]),T=C.useCallback(()=>{b({},{pulsate:!0})},[b]),E=C.useCallback((M,$)=>{if(v.clear(),M?.type==="touchend"&&S.current){S.current(),S.current=null,v.start(0,()=>{E(M,$)});return}S.current=null,f(D=>D.length>0?D.slice(1):D),h.current=$},[v]);return C.useImperativeHandle(n,()=>({pulsate:T,start:b,stop:E}),[T,b,E]),m.jsx(MV,{className:Nt(Fi.root,a.root,s),ref:x,...l,children:m.jsx(qC,{component:null,exit:!0,children:c})})});function DV(e){return dn("MuiButtonBase",e)}const AV=pn("MuiButtonBase",["root","disabled","focusVisible"]),jV=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=fn({root:["root",t&&"disabled",n&&"focusVisible"]},DV,o);return n&&r&&(s.root+=` ${r}`),s},NV=at("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"},[`&.${AV.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rd=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,component:c="button",disabled:f=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:v,LinkComponent:S="a",onBlur:x,onClick:w,onContextMenu:b,onDragLeave:T,onFocus:E,onFocusVisible:M,onKeyDown:$,onKeyUp:D,onMouseDown:I,onMouseLeave:A,onMouseUp:_,onTouchEnd:W,onTouchMove:V,onTouchStart:k,tabIndex:z=0,TouchRippleProps:F,touchRippleRef:H,type:N,...X}=r,Q=C.useRef(null),te=wV(),Z=yo(te.ref,H),[K,ne]=C.useState(!1);f&&K&&ne(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),Q.current.focus()}}),[]);const le=te.shouldMount&&!u&&!f;C.useEffect(()=>{K&&y&&!u&&te.pulsate()},[u,y,K,te]);const fe=Nl(te,"start",I,h),ae=Nl(te,"stop",b,h),se=Nl(te,"stop",T,h),ie=Nl(te,"stop",_,h),pe=Nl(te,"stop",mt=>{K&&mt.preventDefault(),A&&A(mt)},h),me=Nl(te,"start",k,h),Te=Nl(te,"stop",W,h),Ce=Nl(te,"stop",V,h),ke=Nl(te,"stop",mt=>{Wc(mt.target)||ne(!1),x&&x(mt)},!1),ce=Ao(mt=>{Q.current||(Q.current=mt.currentTarget),Wc(mt.target)&&(ne(!0),M&&M(mt)),E&&E(mt)}),we=()=>{const mt=Q.current;return c&&c!=="button"&&!(mt.tagName==="A"&&mt.href)},Ge=Ao(mt=>{y&&!mt.repeat&&K&&mt.key===" "&&te.stop(mt,()=>{te.start(mt)}),mt.target===mt.currentTarget&&we()&&mt.key===" "&&mt.preventDefault(),$&&$(mt),mt.target===mt.currentTarget&&we()&&mt.key==="Enter"&&!f&&(mt.preventDefault(),w&&w(mt))}),Be=Ao(mt=>{y&&mt.key===" "&&K&&!mt.defaultPrevented&&te.stop(mt,()=>{te.pulsate(mt)}),D&&D(mt),w&&mt.target===mt.currentTarget&&we()&&mt.key===" "&&!mt.defaultPrevented&&w(mt)});let Ae=c;Ae==="button"&&(X.href||X.to)&&(Ae=S);const oe={};Ae==="button"?(oe.type=N===void 0?"button":N,oe.disabled=f):(!X.href&&!X.to&&(oe.role="button"),f&&(oe["aria-disabled"]=f));const lt=yo(n,Q),Ne={...r,centerRipple:a,component:c,disabled:f,disableRipple:u,disableTouchRipple:h,focusRipple:y,tabIndex:z,focusVisible:K},et=jV(Ne);return m.jsxs(NV,{as:Ae,className:Nt(et.root,l),ownerState:Ne,onBlur:ke,onClick:w,onContextMenu:ae,onFocus:ce,onKeyDown:Ge,onKeyUp:Be,onMouseDown:fe,onMouseLeave:pe,onMouseUp:ie,onDragLeave:se,onTouchEnd:Te,onTouchMove:Ce,onTouchStart:me,ref:lt,tabIndex:f?-1:z,type:N,...oe,...X,children:[s,le?m.jsx(PV,{ref:Z,center:a,...F}):null]})});function Nl(e,t,n,r=!1){return Ao(o=>(n&&n(o),r||e[t](o),!0))}function IV(e){return typeof e.main=="string"}function LV(e,t=[]){if(!IV(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Lr(e=[]){return([,t])=>t&&LV(t,e)}function zV(e){return dn("MuiAlert",e)}const BM=pn("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 FV(e){return dn("MuiCircularProgress",e)}pn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ec=44,ew=Si`
|
|
185
|
-
0% {
|
|
186
|
-
transform: rotate(0deg);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
100% {
|
|
190
|
-
transform: rotate(360deg);
|
|
191
|
-
}
|
|
192
|
-
`,tw=Si`
|
|
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
|
-
`,_V=typeof ew!="string"?Kc`
|
|
208
|
-
animation: ${ew} 1.4s linear infinite;
|
|
209
|
-
`:null,BV=typeof tw!="string"?Kc`
|
|
210
|
-
animation: ${tw} 1.4s ease-in-out infinite;
|
|
211
|
-
`:null,UV=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${nt(r)}`],svg:["svg"],circle:["circle",`circle${nt(n)}`,o&&"circleDisableShrink"]};return fn(a,FV,t)},VV=at("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${nt(n.color)}`]]}})(rn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:_V||{animation:`${ew} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),HV=at("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),WV=at("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${nt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(rn(({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:BV||{animation:`${tw} 1.4s ease-in-out infinite`}}]}))),Pg=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:l=40,style:c,thickness:f=3.6,value:u=0,variant:h="indeterminate",...y}=r,v={...r,color:a,disableShrink:s,size:l,thickness:f,value:u,variant:h},S=UV(v),x={},w={},b={};if(h==="determinate"){const T=2*Math.PI*((Ec-f)/2);x.strokeDasharray=T.toFixed(3),b["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*T).toFixed(3)}px`,w.transform="rotate(-90deg)"}return m.jsx(VV,{className:Nt(S.root,o),style:{width:l,height:l,...w,...c},ownerState:v,ref:n,role:"progressbar",...b,...y,children:m.jsx(HV,{className:S.svg,ownerState:v,viewBox:`${Ec/2} ${Ec/2} ${Ec} ${Ec}`,children:m.jsx(WV,{className:S.circle,style:x,ownerState:v,cx:Ec,cy:Ec,r:(Ec-f)/2,fill:"none",strokeWidth:f})})})});function qV(e){return dn("MuiIconButton",e)}const UM=pn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),YV=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${nt(r)}`,o&&`edge${nt(o)}`,`size${nt(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return fn(l,qV,t)},GV=at(rd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${nt(n.color)}`],n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(rn(({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}}]})),rn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Lr()).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)}}],[`&.${UM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${UM.loading}`]:{color:"transparent"}}))),KV=at("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"}}]})),Jr=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:l="default",disabled:c=!1,disableFocusRipple:f=!1,size:u="medium",id:h,loading:y=null,loadingIndicator:v,...S}=r,x=Qc(h),w=v??m.jsx(Pg,{"aria-labelledby":x,color:"inherit",size:16}),b={...r,edge:o,color:l,disabled:c,disableFocusRipple:f,loading:y,loadingIndicator:w,size:u},T=YV(b);return m.jsxs(GV,{id:y?x:h,className:Nt(T.root,s),centerRipple:!0,focusRipple:!f,disabled:c||y,ref:n,...S,ownerState:b,children:[typeof y=="boolean"&&m.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:m.jsx(KV,{className:T.loadingIndicator,ownerState:b,children:y&&w})}),a]})}),QV=Wa(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"})),XV=Wa(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),ZV=Wa(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"})),JV=Wa(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"})),rN=Wa(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"})),eH=e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root",`color${nt(n||r)}`,`${t}${nt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return fn(a,zV,o)},tH=at(Ha,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nt(n.color||n.severity)}`]]}})(rn(({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(Lr(["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),[`& .${BM.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Lr(["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}`,[`& .${BM.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Lr(["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)}}}))]}})),nH=at("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),rH=at("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),oH=at("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),VM={success:m.jsx(QV,{fontSize:"inherit"}),warning:m.jsx(XV,{fontSize:"inherit"}),error:m.jsx(ZV,{fontSize:"inherit"}),info:m.jsx(JV,{fontSize:"inherit"})},Lc=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiAlert"}),{action:o,children:a,className:s,closeText:l="Close",color:c,components:f={},componentsProps:u={},icon:h,iconMapping:y=VM,onClose:v,role:S="alert",severity:x="success",slotProps:w={},slots:b={},variant:T="standard",...E}=r,M={...r,color:c,severity:x,variant:T,colorSeverity:c||x},$=eH(M),D={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...b},slotProps:{...u,...w}},[I,A]=Dn("root",{ref:n,shouldForwardComponentProp:!0,className:Nt($.root,s),elementType:tH,externalForwardedProps:{...D,...E},ownerState:M,additionalProps:{role:S,elevation:0}}),[_,W]=Dn("icon",{className:$.icon,elementType:nH,externalForwardedProps:D,ownerState:M}),[V,k]=Dn("message",{className:$.message,elementType:rH,externalForwardedProps:D,ownerState:M}),[z,F]=Dn("action",{className:$.action,elementType:oH,externalForwardedProps:D,ownerState:M}),[H,N]=Dn("closeButton",{elementType:Jr,externalForwardedProps:D,ownerState:M}),[X,Q]=Dn("closeIcon",{elementType:rN,externalForwardedProps:D,ownerState:M});return m.jsxs(I,{...A,children:[h!==!1?m.jsx(_,{...W,children:h||y[x]||VM[x]}):null,m.jsx(V,{...k,children:a}),o!=null?m.jsx(z,{...F,children:o}):null,o==null&&v?m.jsx(z,{...F,children:m.jsx(H,{size:"small","aria-label":l,title:l,color:"inherit",onClick:v,...N,children:m.jsx(X,{fontSize:"small",...Q})})}):null]})});function aH(e){return dn("MuiTypography",e)}const HM=pn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),iH={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},sH=aV(),lH=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${nt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return fn(l,aH,s)},cH=at("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${nt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(rn(({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(Lr()).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${nt(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}}]}))),WM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},It=C.forwardRef(function(t,n){const{color:r,...o}=hn({props:t,name:"MuiTypography"}),a=!iH[r],s=sH({...o,...a&&{color:r}}),{align:l="inherit",className:c,component:f,gutterBottom:u=!1,noWrap:h=!1,paragraph:y=!1,variant:v="body1",variantMapping:S=WM,...x}=s,w={...s,align:l,color:r,className:c,component:f,gutterBottom:u,noWrap:h,paragraph:y,variant:v,variantMapping:S},b=f||(y?"p":S[v]||WM[v])||"span",T=lH(w);return m.jsx(cH,{as:b,ref:n,className:Nt(T.root,c),...x,ownerState:w,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...x.style}})}),uH=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function qM({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 YM(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function dH(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:c,getOptionLabel:f})=>{let u=s?c.trim():c;n&&(u=u.toLowerCase()),t&&(u=YM(u));const h=u?l.filter(y=>{let v=(a||f)(y);return n&&(v=v.toLowerCase()),t&&(v=YM(v)),o==="start"?v.startsWith(u):v.includes(u)}):l;return typeof r=="number"?h.slice(0,r):h}}const fH=dH(),GM=5,pH=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),hH=[];function KM(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function mH(e){const{unstable_isActiveElementInListbox:t=pH,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:f="useAutocomplete",defaultValue:u=e.multiple?hH:null,disableClearable:h=!1,disableCloseOnSelect:y=!1,disabled:v,disabledItemsFocusable:S=!1,disableListWrap:x=!1,filterOptions:w=fH,filterSelectedOptions:b=!1,freeSolo:T=!1,getOptionDisabled:E,getOptionKey:M,getOptionLabel:$=ue=>ue.label??ue,groupBy:D,handleHomeEndKeys:I=!e.freeSolo,id:A,includeInputInList:_=!1,inputValue:W,isOptionEqualToValue:V=(ue,de)=>ue===de,multiple:k=!1,onChange:z,onClose:F,onHighlightChange:H,onInputChange:N,onOpen:X,open:Q,openOnFocus:te=!1,options:Z,readOnly:K=!1,renderValue:ne,selectOnFocus:le=!e.freeSolo,value:fe}=e,ae=Qc(A);let se=$;se=ue=>{const de=$(ue);return typeof de!="string"?String(de):de};const ie=C.useRef(!1),pe=C.useRef(!0),me=C.useRef(null),Te=C.useRef(null),[Ce,ke]=C.useState(null),[ce,we]=C.useState(-1),Ge=o?0:-1,Be=C.useRef(Ge),Ae=C.useRef(KM(u??fe,k,se)).current,[oe,lt]=_c({controlled:fe,default:u,name:f}),[Ne,et]=_c({controlled:W,default:Ae,name:f,state:"inputValue"}),[mt,Wt]=C.useState(!1),zt=C.useCallback((ue,de,ze)=>{if(!(k?oe.length<de.length:de!==null)&&!l)return;const Ue=KM(de,k,se,ne);Ne!==Ue&&(et(Ue),N&&N(ue,Ue,ze))},[se,Ne,k,N,et,l,oe,ne]),[tt,Je]=_c({controlled:Q,default:!1,name:f,state:"open"}),[ct,Ie]=C.useState(!0),he=!k&&oe!=null&&Ne===se(oe),qe=tt&&!K,De=qe?w(Z.filter(ue=>!(b&&(k?oe:[oe]).some(de=>de!==null&&V(ue,de)))),{inputValue:he&&ct?"":Ne,getOptionLabel:se}):[],wt=uH({filteredOptions:De,value:oe,inputValue:Ne});C.useEffect(()=>{const ue=oe!==wt.value;mt&&!ue||T&&!ue||zt(null,oe,"reset")},[oe,zt,mt,wt.value,T]);const Ct=tt&&De.length>0&&!K,yt=Ao(ue=>{if(ue===-1)me.current.focus();else{const de=ne?"data-item-index":"data-tag-index";Ce.querySelector(`[${de}="${ue}"]`).focus()}});C.useEffect(()=>{k&&ce>oe.length-1&&(we(-1),yt(-1))},[oe,k,ce,yt]);function st(ue,de){if(!Te.current||ue<0||ue>=De.length)return-1;let ze=ue;for(;;){const ft=Te.current.querySelector(`[data-option-index="${ze}"]`),Ue=S?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&ft.hasAttribute("tabindex")&&!Ue)return ze;if(de==="next"?ze=(ze+1)%De.length:ze=(ze-1+De.length)%De.length,ze===ue)return-1}}const jt=Ao(({event:ue,index:de,reason:ze})=>{if(Be.current=de,de===-1?me.current.removeAttribute("aria-activedescendant"):me.current.setAttribute("aria-activedescendant",`${ae}-option-${de}`),H&&["mouse","keyboard","touch"].includes(ze)&&H(ue,de===-1?null:De[de],ze),!Te.current)return;const ft=Te.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));let Ue=Te.current;if(Te.current.getAttribute("role")!=="listbox"&&(Ue=Te.current.parentElement.querySelector('[role="listbox"]')),!Ue)return;if(de===-1){Ue.scrollTop=0;return}const Mt=Te.current.querySelector(`[data-option-index="${de}"]`);if(Mt&&(Mt.classList.add(`${n}-focused`),ze==="keyboard"&&Mt.classList.add(`${n}-focusVisible`),Ue.scrollHeight>Ue.clientHeight&&ze!=="mouse"&&ze!=="touch")){const Yt=Mt,nn=Ue.clientHeight+Ue.scrollTop,ye=Yt.offsetTop+Yt.offsetHeight;ye>nn?Ue.scrollTop=ye-Ue.clientHeight:Yt.offsetTop-Yt.offsetHeight*(D?1.3:0)<Ue.scrollTop&&(Ue.scrollTop=Yt.offsetTop-Yt.offsetHeight*(D?1.3:0))}}),qt=Ao(({event:ue,diff:de,direction:ze="next",reason:ft})=>{if(!qe)return;const Mt=st((()=>{const Yt=De.length-1;if(de==="reset")return Ge;if(de==="start")return 0;if(de==="end")return Yt;const nn=Be.current+de;return nn<0?nn===-1&&_?-1:x&&Be.current!==-1||Math.abs(de)>1?0:Yt:nn>Yt?nn===Yt+1&&_?-1:x||Math.abs(de)>1?Yt:0:nn})(),ze);if(jt({index:Mt,reason:ft,event:ue}),r&&de!=="reset")if(Mt===-1)me.current.value=Ne;else{const Yt=se(De[Mt]);me.current.value=Yt,Yt.toLowerCase().indexOf(Ne.toLowerCase())===0&&Ne.length>0&&me.current.setSelectionRange(Ne.length,Yt.length)}}),mn=!qM({array1:wt.filteredOptions,array2:De,parser:se}),$n=()=>{const ue=(de,ze)=>{const ft=de?se(de):"",Ue=ze?se(ze):"";return ft===Ue};if(Be.current!==-1&&!qM({array1:wt.filteredOptions,array2:De,parser:se})&&wt.inputValue===Ne&&(k?oe.length===wt.value.length&&wt.value.every((de,ze)=>se(oe[ze])===se(de)):ue(wt.value,oe))){const de=wt.filteredOptions[Be.current];if(de)return De.findIndex(ze=>se(ze)===se(de))}return-1},_n=C.useCallback(()=>{if(!qe)return;const ue=$n();if(ue!==-1){Be.current=ue;return}const de=k?oe[0]:oe;if(De.length===0||de==null){qt({diff:"reset"});return}if(Te.current){if(de!=null){const ze=De[Be.current];if(k&&ze&&oe.findIndex(Ue=>V(ze,Ue))!==-1)return;const ft=De.findIndex(Ue=>V(Ue,de));ft===-1?qt({diff:"reset"}):jt({index:ft});return}if(Be.current>=De.length-1){jt({index:De.length-1});return}jt({index:Be.current})}},[De.length,k?!1:oe,b,qt,jt,qe,Ne,k]),Un=Ao(ue=>{Q1(Te,ue),ue&&_n()});C.useEffect(()=>{mn&&_n()},[_n,mn]);const Jt=ue=>{tt||(Je(!0),Ie(!0),X&&X(ue))},An=(ue,de)=>{tt&&(Je(!1),F&&F(ue,de))},xe=(ue,de,ze,ft)=>{if(k){if(oe.length===de.length&&oe.every((Ue,Mt)=>Ue===de[Mt]))return}else if(oe===de)return;z&&z(ue,de,ze,ft),lt(de)},Vn=C.useRef(!1),Rn=(ue,de,ze="selectOption",ft="options")=>{let Ue=ze,Mt=de;if(k){Mt=Array.isArray(oe)?oe.slice():[];const Yt=Mt.findIndex(nn=>V(de,nn));Yt===-1?Mt.push(de):ft!=="freeSolo"&&(Mt.splice(Yt,1),Ue="removeOption")}zt(ue,Mt,Ue),xe(ue,Mt,Ue,{option:de}),!y&&(!ue||!ue.ctrlKey&&!ue.metaKey)&&An(ue,Ue),(s===!0||s==="touch"&&Vn.current||s==="mouse"&&!Vn.current)&&me.current.blur()};function en(ue,de){if(ue===-1)return-1;let ze=ue;for(;;){if(de==="next"&&ze===oe.length||de==="previous"&&ze===-1)return-1;const ft=ne?"data-item-index":"data-tag-index",Ue=Ce.querySelector(`[${ft}="${ze}"]`);if(!Ue||!Ue.hasAttribute("tabindex")||Ue.disabled||Ue.getAttribute("aria-disabled")==="true")ze+=de==="next"?1:-1;else return ze}}const $t=(ue,de)=>{if(!k)return;Ne===""&&An(ue,"toggleInput");let ze=ce;ce===-1?Ne===""&&de==="previous"&&(ze=oe.length-1):(ze+=de==="next"?1:-1,ze<0&&(ze=0),ze===oe.length&&(ze=-1)),ze=en(ze,de),we(ze),yt(ze)},zr=ue=>{ie.current=!0,et(""),N&&N(ue,"","clear"),xe(ue,k?[]:null,"clear")},Fn=ue=>de=>{if(ue.onKeyDown&&ue.onKeyDown(de),!de.defaultMuiPrevented&&(ce!==-1&&!["ArrowLeft","ArrowRight"].includes(de.key)&&(we(-1),yt(-1)),de.which!==229))switch(de.key){case"Home":qe&&I&&(de.preventDefault(),qt({diff:"start",direction:"next",reason:"keyboard",event:de}));break;case"End":qe&&I&&(de.preventDefault(),qt({diff:"end",direction:"previous",reason:"keyboard",event:de}));break;case"PageUp":de.preventDefault(),qt({diff:-GM,direction:"previous",reason:"keyboard",event:de}),Jt(de);break;case"PageDown":de.preventDefault(),qt({diff:GM,direction:"next",reason:"keyboard",event:de}),Jt(de);break;case"ArrowDown":de.preventDefault(),qt({diff:1,direction:"next",reason:"keyboard",event:de}),Jt(de);break;case"ArrowUp":de.preventDefault(),qt({diff:-1,direction:"previous",reason:"keyboard",event:de}),Jt(de);break;case"ArrowLeft":!k&&ne?yt(0):$t(de,"previous");break;case"ArrowRight":!k&&ne?yt(-1):$t(de,"next");break;case"Enter":if(Be.current!==-1&&qe){const ze=De[Be.current],ft=E?E(ze):!1;if(de.preventDefault(),ft)return;Rn(de,ze,"selectOption"),r&&me.current.setSelectionRange(me.current.value.length,me.current.value.length)}else T&&Ne!==""&&he===!1&&(k&&de.preventDefault(),Rn(de,Ne,"createOption","freeSolo"));break;case"Escape":qe?(de.preventDefault(),de.stopPropagation(),An(de,"escape")):c&&(Ne!==""||k&&oe.length>0||ne)&&(de.preventDefault(),de.stopPropagation(),zr(de));break;case"Backspace":if(k&&!K&&Ne===""&&oe.length>0){const ze=ce===-1?oe.length-1:ce,ft=oe.slice();ft.splice(ze,1),xe(de,ft,"removeOption",{option:oe[ze]})}!k&&ne&&!K&&(lt(null),yt(-1));break;case"Delete":if(k&&!K&&Ne===""&&oe.length>0&&ce!==-1){const ze=ce,ft=oe.slice();ft.splice(ze,1),xe(de,ft,"removeOption",{option:oe[ze]})}!k&&ne&&!K&&(lt(null),yt(-1));break}},on=ue=>{Wt(!0),te&&!ie.current&&Jt(ue)},Ln=ue=>{if(t(Te)){me.current.focus();return}Wt(!1),pe.current=!0,ie.current=!1,a&&Be.current!==-1&&qe?Rn(ue,De[Be.current],"blur"):a&&T&&Ne!==""?Rn(ue,Ne,"blur","freeSolo"):l&&zt(ue,oe,"blur"),An(ue,"blur")},ge=ue=>{const de=ue.target.value;Ne!==de&&(et(de),Ie(!1),N&&N(ue,de,"input")),de===""?!h&&!k&&xe(ue,null,"clear"):Jt(ue)},Ee=ue=>{const de=Number(ue.currentTarget.getAttribute("data-option-index"));Be.current!==de&&jt({event:ue,index:de,reason:"mouse"})},Le=ue=>{jt({event:ue,index:Number(ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Vn.current=!0},Ve=ue=>{const de=Number(ue.currentTarget.getAttribute("data-option-index"));Rn(ue,De[de],"selectOption"),Vn.current=!1},rt=ue=>de=>{const ze=oe.slice();ze.splice(ue,1),xe(de,ze,"removeOption",{option:oe[ue]})},kt=ue=>{xe(ue,null,"removeOption",{option:oe})},bt=ue=>{tt?An(ue,"toggleInput"):Jt(ue)},Tt=ue=>{ue.currentTarget.contains(ue.target)&&ue.target.getAttribute("id")!==ae&&ue.preventDefault()},Pt=ue=>{ue.currentTarget.contains(ue.target)&&(me.current.focus(),le&&pe.current&&me.current.selectionEnd-me.current.selectionStart===0&&me.current.select(),pe.current=!1)},Kt=ue=>{!v&&(Ne===""||!tt)&&bt(ue)};let Dt=T&&Ne.length>0;Dt=Dt||(k?oe.length>0:oe!==null);let Ft=De;return D&&(Ft=De.reduce((ue,de,ze)=>{const ft=D(de);return ue.length>0&&ue[ue.length-1].group===ft?ue[ue.length-1].options.push(de):ue.push({key:ze,index:ze,group:ft,options:[de]}),ue},[])),v&&mt&&Ln(),{getRootProps:(ue={})=>({...ue,onKeyDown:Fn(ue),onMouseDown:Tt,onClick:Pt}),getInputLabelProps:()=>({id:`${ae}-label`,htmlFor:ae}),getInputProps:()=>({id:ae,value:Ne,onBlur:Ln,onFocus:on,onChange:ge,onMouseDown:Kt,"aria-activedescendant":qe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ct?`${ae}-listbox`:void 0,"aria-expanded":Ct,autoComplete:"off",ref:me,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:zr}),getItemProps:({index:ue=0}={})=>({...k&&{key:ue},...ne?{"data-item-index":ue}:{"data-tag-index":ue},tabIndex:-1,...!K&&{onDelete:k?rt(ue):kt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:bt}),getTagProps:({index:ue})=>({key:ue,"data-tag-index":ue,tabIndex:-1,...!K&&{onDelete:rt(ue)}}),getListboxProps:()=>({role:"listbox",id:`${ae}-listbox`,"aria-labelledby":`${ae}-label`,ref:Un,onMouseDown:ue=>{ue.preventDefault()}}),getOptionProps:({index:ue,option:de})=>{const ze=(k?oe:[oe]).some(Ue=>Ue!=null&&V(de,Ue)),ft=E?E(de):!1;return{key:M?.(de)??se(de),tabIndex:-1,role:"option",id:`${ae}-option-${ue}`,onMouseMove:Ee,onClick:Ve,onTouchStart:Le,"data-option-index":ue,"aria-disabled":ft,"aria-selected":ze}},id:ae,inputValue:Ne,value:oe,dirty:Dt,expanded:qe&&Ce,popupOpen:qe,focused:mt||ce!==-1,anchorEl:Ce,setAnchorEl:ke,focusedItem:ce,focusedTag:ce,groupedOptions:Ft}}var La="top",Ki="bottom",Qi="right",za="left",YC="auto",Dg=[La,Ki,Qi,za],ip="start",og="end",gH="clippingParents",oN="viewport",Uh="popper",yH="reference",QM=Dg.reduce(function(e,t){return e.concat([t+"-"+ip,t+"-"+og])},[]),aN=[].concat(Dg,[YC]).reduce(function(e,t){return e.concat([t,t+"-"+ip,t+"-"+og])},[]),vH="beforeRead",bH="read",xH="afterRead",SH="beforeMain",wH="main",CH="afterMain",kH="beforeWrite",TH="write",EH="afterWrite",RH=[vH,bH,xH,SH,wH,CH,kH,TH,EH];function ol(e){return e?(e.nodeName||"").toLowerCase():null}function vi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function od(e){var t=vi(e).Element;return e instanceof t||e instanceof Element}function qi(e){var t=vi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function GC(e){if(typeof ShadowRoot>"u")return!1;var t=vi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function OH(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];!qi(a)||!ol(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 MH(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(c,f){return c[f]="",c},{});!qi(o)||!ol(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const $H={name:"applyStyles",enabled:!0,phase:"write",fn:OH,effect:MH,requires:["computeStyles"]};function nl(e){return e.split("-")[0]}var Zu=Math.max,cb=Math.min,sp=Math.round;function nw(){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 iN(){return!/^((?!chrome|android).)*safari/i.test(nw())}function lp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&qi(e)&&(o=e.offsetWidth>0&&sp(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&sp(r.height)/e.offsetHeight||1);var s=od(e)?vi(e):window,l=s.visualViewport,c=!iN()&&n,f=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/a,h=r.width/o,y=r.height/a;return{width:h,height:y,top:u,right:f+h,bottom:u+y,left:f,x:f,y:u}}function KC(e){var t=lp(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 sN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&GC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hl(e){return vi(e).getComputedStyle(e)}function PH(e){return["table","td","th"].indexOf(ol(e))>=0}function Zc(e){return((od(e)?e.ownerDocument:e.document)||window.document).documentElement}function a0(e){return ol(e)==="html"?e:e.assignedSlot||e.parentNode||(GC(e)?e.host:null)||Zc(e)}function XM(e){return!qi(e)||Hl(e).position==="fixed"?null:e.offsetParent}function DH(e){var t=/firefox/i.test(nw()),n=/Trident/i.test(nw());if(n&&qi(e)){var r=Hl(e);if(r.position==="fixed")return null}var o=a0(e);for(GC(o)&&(o=o.host);qi(o)&&["html","body"].indexOf(ol(o))<0;){var a=Hl(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 Ag(e){for(var t=vi(e),n=XM(e);n&&PH(n)&&Hl(n).position==="static";)n=XM(n);return n&&(ol(n)==="html"||ol(n)==="body"&&Hl(n).position==="static")?t:n||DH(e)||t}function QC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lm(e,t,n){return Zu(e,cb(t,n))}function AH(e,t,n){var r=Lm(e,t,n);return r>n?n:r}function lN(){return{top:0,right:0,bottom:0,left:0}}function cN(e){return Object.assign({},lN(),e)}function uN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var jH=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,cN(typeof t!="number"?t:uN(t,Dg))};function NH(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=nl(n.placement),c=QC(l),f=[za,Qi].indexOf(l)>=0,u=f?"height":"width";if(!(!a||!s)){var h=jH(o.padding,n),y=KC(a),v=c==="y"?La:za,S=c==="y"?Ki:Qi,x=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],w=s[c]-n.rects.reference[c],b=Ag(a),T=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,E=x/2-w/2,M=h[v],$=T-y[u]-h[S],D=T/2-y[u]/2+E,I=Lm(M,D,$),A=c;n.modifiersData[r]=(t={},t[A]=I,t.centerOffset=I-D,t)}}function IH(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||sN(t.elements.popper,o)&&(t.elements.arrow=o))}const LH={name:"arrow",enabled:!0,phase:"main",fn:NH,effect:IH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cp(e){return e.split("-")[1]}var zH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function FH(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:sp(n*o)/o||0,y:sp(r*o)/o||0}}function ZM(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,h=e.isFixed,y=s.x,v=y===void 0?0:y,S=s.y,x=S===void 0?0:S,w=typeof u=="function"?u({x:v,y:x}):{x:v,y:x};v=w.x,x=w.y;var b=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),E=za,M=La,$=window;if(f){var D=Ag(n),I="clientHeight",A="clientWidth";if(D===vi(n)&&(D=Zc(n),Hl(D).position!=="static"&&l==="absolute"&&(I="scrollHeight",A="scrollWidth")),D=D,o===La||(o===za||o===Qi)&&a===og){M=Ki;var _=h&&D===$&&$.visualViewport?$.visualViewport.height:D[I];x-=_-r.height,x*=c?1:-1}if(o===za||(o===La||o===Ki)&&a===og){E=Qi;var W=h&&D===$&&$.visualViewport?$.visualViewport.width:D[A];v-=W-r.width,v*=c?1:-1}}var V=Object.assign({position:l},f&&zH),k=u===!0?FH({x:v,y:x},vi(n)):{x:v,y:x};if(v=k.x,x=k.y,c){var z;return Object.assign({},V,(z={},z[M]=T?"0":"",z[E]=b?"0":"",z.transform=($.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",z))}return Object.assign({},V,(t={},t[M]=T?x+"px":"",t[E]=b?v+"px":"",t.transform="",t))}function _H(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,c=l===void 0?!0:l,f={placement:nl(t.placement),variation:cp(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,ZM(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZM(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const BH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_H,data:{}};var nv={passive:!0};function UH(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,c=vi(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(u){u.addEventListener("scroll",n.update,nv)}),l&&c.addEventListener("resize",n.update,nv),function(){a&&f.forEach(function(u){u.removeEventListener("scroll",n.update,nv)}),l&&c.removeEventListener("resize",n.update,nv)}}const VH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:UH,data:{}};var HH={left:"right",right:"left",bottom:"top",top:"bottom"};function Bv(e){return e.replace(/left|right|bottom|top/g,function(t){return HH[t]})}var WH={start:"end",end:"start"};function JM(e){return e.replace(/start|end/g,function(t){return WH[t]})}function XC(e){var t=vi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ZC(e){return lp(Zc(e)).left+XC(e).scrollLeft}function qH(e,t){var n=vi(e),r=Zc(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var f=iN();(f||!f&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+ZC(e),y:c}}function YH(e){var t,n=Zc(e),r=XC(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Zu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Zu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ZC(e),c=-r.scrollTop;return Hl(o||n).direction==="rtl"&&(l+=Zu(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function JC(e){var t=Hl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function dN(e){return["html","body","#document"].indexOf(ol(e))>=0?e.ownerDocument.body:qi(e)&&JC(e)?e:dN(a0(e))}function zm(e,t){var n;t===void 0&&(t=[]);var r=dN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=vi(r),s=o?[a].concat(a.visualViewport||[],JC(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(zm(a0(s)))}function rw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function GH(e,t){var n=lp(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 e2(e,t,n){return t===oN?rw(qH(e,n)):od(t)?GH(t,n):rw(YH(Zc(e)))}function KH(e){var t=zm(a0(e)),n=["absolute","fixed"].indexOf(Hl(e).position)>=0,r=n&&qi(e)?Ag(e):e;return od(r)?t.filter(function(o){return od(o)&&sN(o,r)&&ol(o)!=="body"}):[]}function QH(e,t,n,r){var o=t==="clippingParents"?KH(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,f){var u=e2(e,f,r);return c.top=Zu(u.top,c.top),c.right=cb(u.right,c.right),c.bottom=cb(u.bottom,c.bottom),c.left=Zu(u.left,c.left),c},e2(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 fN(e){var t=e.reference,n=e.element,r=e.placement,o=r?nl(r):null,a=r?cp(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case La:c={x:s,y:t.y-n.height};break;case Ki:c={x:s,y:t.y+t.height};break;case Qi:c={x:t.x+t.width,y:l};break;case za:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var f=o?QC(o):null;if(f!=null){var u=f==="y"?"height":"width";switch(a){case ip:c[f]=c[f]-(t[u]/2-n[u]/2);break;case og:c[f]=c[f]+(t[u]/2-n[u]/2);break}}return c}function ag(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,c=l===void 0?gH:l,f=n.rootBoundary,u=f===void 0?oN:f,h=n.elementContext,y=h===void 0?Uh:h,v=n.altBoundary,S=v===void 0?!1:v,x=n.padding,w=x===void 0?0:x,b=cN(typeof w!="number"?w:uN(w,Dg)),T=y===Uh?yH:Uh,E=e.rects.popper,M=e.elements[S?T:y],$=QH(od(M)?M:M.contextElement||Zc(e.elements.popper),c,u,s),D=lp(e.elements.reference),I=fN({reference:D,element:E,placement:o}),A=rw(Object.assign({},E,I)),_=y===Uh?A:D,W={top:$.top-_.top+b.top,bottom:_.bottom-$.bottom+b.bottom,left:$.left-_.left+b.left,right:_.right-$.right+b.right},V=e.modifiersData.offset;if(y===Uh&&V){var k=V[o];Object.keys(W).forEach(function(z){var F=[Qi,Ki].indexOf(z)>=0?1:-1,H=[La,Ki].indexOf(z)>=0?"y":"x";W[z]+=k[H]*F})}return W}function XH(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?aN:c,u=cp(r),h=u?l?QM:QM.filter(function(S){return cp(S)===u}):Dg,y=h.filter(function(S){return f.indexOf(S)>=0});y.length===0&&(y=h);var v=y.reduce(function(S,x){return S[x]=ag(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[nl(x)],S},{});return Object.keys(v).sort(function(S,x){return v[S]-v[x]})}function ZH(e){if(nl(e)===YC)return[];var t=Bv(e);return[JM(e),t,JM(t)]}function JH(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,c=n.fallbackPlacements,f=n.padding,u=n.boundary,h=n.rootBoundary,y=n.altBoundary,v=n.flipVariations,S=v===void 0?!0:v,x=n.allowedAutoPlacements,w=t.options.placement,b=nl(w),T=b===w,E=c||(T||!S?[Bv(w)]:ZH(w)),M=[w].concat(E).reduce(function(fe,ae){return fe.concat(nl(ae)===YC?XH(t,{placement:ae,boundary:u,rootBoundary:h,padding:f,flipVariations:S,allowedAutoPlacements:x}):ae)},[]),$=t.rects.reference,D=t.rects.popper,I=new Map,A=!0,_=M[0],W=0;W<M.length;W++){var V=M[W],k=nl(V),z=cp(V)===ip,F=[La,Ki].indexOf(k)>=0,H=F?"width":"height",N=ag(t,{placement:V,boundary:u,rootBoundary:h,altBoundary:y,padding:f}),X=F?z?Qi:za:z?Ki:La;$[H]>D[H]&&(X=Bv(X));var Q=Bv(X),te=[];if(a&&te.push(N[k]<=0),l&&te.push(N[X]<=0,N[Q]<=0),te.every(function(fe){return fe})){_=V,A=!1;break}I.set(V,te)}if(A)for(var Z=S?3:1,K=function(ae){var se=M.find(function(ie){var pe=I.get(ie);if(pe)return pe.slice(0,ae).every(function(me){return me})});if(se)return _=se,"break"},ne=Z;ne>0;ne--){var le=K(ne);if(le==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const eW={name:"flip",enabled:!0,phase:"main",fn:JH,requiresIfExists:["offset"],data:{_skip:!1}};function t2(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 n2(e){return[La,Qi,Ki,za].some(function(t){return e[t]>=0})}function tW(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=ag(t,{elementContext:"reference"}),l=ag(t,{altBoundary:!0}),c=t2(s,r),f=t2(l,o,a),u=n2(c),h=n2(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const nW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tW};function rW(e,t,n){var r=nl(e),o=[za,La].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,[za,Qi].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function oW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=aN.reduce(function(u,h){return u[h]=rW(h,t.rects,a),u},{}),l=s[t.placement],c=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const aW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oW};function iW(e){var t=e.state,n=e.name;t.modifiersData[n]=fN({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const sW={name:"popperOffsets",enabled:!0,phase:"read",fn:iW,data:{}};function lW(e){return e==="x"?"y":"x"}function cW(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,c=n.boundary,f=n.rootBoundary,u=n.altBoundary,h=n.padding,y=n.tether,v=y===void 0?!0:y,S=n.tetherOffset,x=S===void 0?0:S,w=ag(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:u}),b=nl(t.placement),T=cp(t.placement),E=!T,M=QC(b),$=lW(M),D=t.modifiersData.popperOffsets,I=t.rects.reference,A=t.rects.popper,_=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(D){if(a){var z,F=M==="y"?La:za,H=M==="y"?Ki:Qi,N=M==="y"?"height":"width",X=D[M],Q=X+w[F],te=X-w[H],Z=v?-A[N]/2:0,K=T===ip?I[N]:A[N],ne=T===ip?-A[N]:-I[N],le=t.elements.arrow,fe=v&&le?KC(le):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lN(),se=ae[F],ie=ae[H],pe=Lm(0,I[N],fe[N]),me=E?I[N]/2-Z-pe-se-W.mainAxis:K-pe-se-W.mainAxis,Te=E?-I[N]/2+Z+pe+ie+W.mainAxis:ne+pe+ie+W.mainAxis,Ce=t.elements.arrow&&Ag(t.elements.arrow),ke=Ce?M==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,ce=(z=V?.[M])!=null?z:0,we=X+me-ce-ke,Ge=X+Te-ce,Be=Lm(v?cb(Q,we):Q,X,v?Zu(te,Ge):te);D[M]=Be,k[M]=Be-X}if(l){var Ae,oe=M==="x"?La:za,lt=M==="x"?Ki:Qi,Ne=D[$],et=$==="y"?"height":"width",mt=Ne+w[oe],Wt=Ne-w[lt],zt=[La,za].indexOf(b)!==-1,tt=(Ae=V?.[$])!=null?Ae:0,Je=zt?mt:Ne-I[et]-A[et]-tt+W.altAxis,ct=zt?Ne+I[et]+A[et]-tt-W.altAxis:Wt,Ie=v&&zt?AH(Je,Ne,ct):Lm(v?Je:mt,Ne,v?ct:Wt);D[$]=Ie,k[$]=Ie-Ne}t.modifiersData[r]=k}}const uW={name:"preventOverflow",enabled:!0,phase:"main",fn:cW,requiresIfExists:["offset"]};function dW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fW(e){return e===vi(e)||!qi(e)?XC(e):dW(e)}function pW(e){var t=e.getBoundingClientRect(),n=sp(t.width)/e.offsetWidth||1,r=sp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function hW(e,t,n){n===void 0&&(n=!1);var r=qi(t),o=qi(t)&&pW(t),a=Zc(t),s=lp(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ol(t)!=="body"||JC(a))&&(l=fW(t)),qi(t)?(c=lp(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=ZC(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function mW(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 c=t.get(l);c&&o(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function gW(e){var t=mW(e);return RH.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function yW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function vW(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 r2={placement:"bottom",modifiers:[],strategy:"absolute"};function o2(){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 bW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?r2:o;return function(l,c,f){f===void 0&&(f=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},r2,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],y=!1,v={state:u,setOptions:function(b){var T=typeof b=="function"?b(u.options):b;x(),u.options=Object.assign({},a,u.options,T),u.scrollParents={reference:od(l)?zm(l):l.contextElement?zm(l.contextElement):[],popper:zm(c)};var E=gW(vW([].concat(r,u.options.modifiers)));return u.orderedModifiers=E.filter(function(M){return M.enabled}),S(),v.update()},forceUpdate:function(){if(!y){var b=u.elements,T=b.reference,E=b.popper;if(o2(T,E)){u.rects={reference:hW(T,Ag(E),u.options.strategy==="fixed"),popper:KC(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(W){return u.modifiersData[W.name]=Object.assign({},W.data)});for(var M=0;M<u.orderedModifiers.length;M++){if(u.reset===!0){u.reset=!1,M=-1;continue}var $=u.orderedModifiers[M],D=$.fn,I=$.options,A=I===void 0?{}:I,_=$.name;typeof D=="function"&&(u=D({state:u,options:A,name:_,instance:v})||u)}}}},update:yW(function(){return new Promise(function(w){v.forceUpdate(),w(u)})}),destroy:function(){x(),y=!0}};if(!o2(l,c))return v;v.setOptions(f).then(function(w){!y&&f.onFirstUpdate&&f.onFirstUpdate(w)});function S(){u.orderedModifiers.forEach(function(w){var b=w.name,T=w.options,E=T===void 0?{}:T,M=w.effect;if(typeof M=="function"){var $=M({state:u,name:b,instance:v,options:E}),D=function(){};h.push($||D)}})}function x(){h.forEach(function(w){return w()}),h=[]}return v}}var xW=[VH,sW,BH,$H,aW,eW,uW,LH,nW],SW=bW({defaultModifiers:xW});function qs(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:tN(n,r),{props:l,internalRef:c}=nN({...a,externalSlotProps:s}),f=yo(c,s?.ref,e.additionalProps?.ref);return eN(t,{...l,ref:f},r)}function gd(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}function wW(e){return typeof e=="function"?e():e}const pN=C.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,l]=C.useState(null),c=yo(C.isValidElement(r)?gd(r):null,n);if(Va(()=>{a||l(wW(o)||document.body)},[o,a]),Va(()=>{if(s&&!a)return Q1(n,s),()=>{Q1(n,null)}},[n,s,a]),a){if(C.isValidElement(r)){const f={ref:c};return C.cloneElement(r,f)}return r}return s&&_b.createPortal(r,s)});function CW(e){return dn("MuiPopper",e)}pn("MuiPopper",["root"]);function kW(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 ow(e){return typeof e=="function"?e():e}function TW(e){return e.nodeType!==void 0}const EW=e=>{const{classes:t}=e;return fn({root:["root"]},CW,t)},RW={},OW=C.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:l,open:c,placement:f,popperOptions:u,popperRef:h,slotProps:y={},slots:v={},TransitionProps:S,ownerState:x,...w}=t,b=C.useRef(null),T=yo(b,n),E=C.useRef(null),M=yo(E,h),$=C.useRef(M);Va(()=>{$.current=M},[M]),C.useImperativeHandle(h,()=>E.current,[]);const D=kW(f,a),[I,A]=C.useState(D),[_,W]=C.useState(ow(r));C.useEffect(()=>{E.current&&E.current.forceUpdate()}),C.useEffect(()=>{r&&W(ow(r))},[r]),Va(()=>{if(!_||!c)return;const H=Q=>{A(Q.placement)};let N=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{H(Q)}}];l!=null&&(N=N.concat(l)),u&&u.modifiers!=null&&(N=N.concat(u.modifiers));const X=SW(_,b.current,{placement:D,...u,modifiers:N});return $.current(X),()=>{X.destroy(),$.current(null)}},[_,s,l,c,u,D]);const V={placement:I};S!==null&&(V.TransitionProps=S);const k=EW(t),z=v.root??"div",F=qs({elementType:z,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:k.root});return m.jsx(z,{...F,children:typeof o=="function"?o(V):o})}),MW=C.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:f,open:u,placement:h="bottom",popperOptions:y=RW,popperRef:v,style:S,transition:x=!1,slotProps:w={},slots:b={},...T}=t,[E,M]=C.useState(!0),$=()=>{M(!1)},D=()=>{M(!0)};if(!c&&!u&&(!x||E))return null;let I;if(a)I=a;else if(r){const W=ow(r);I=W&&TW(W)?$o(W).body:$o(null).body}const A=!u&&c&&(!x||E)?"none":void 0,_=x?{in:u,onEnter:$,onExited:D}:void 0;return m.jsx(pN,{disablePortal:l,container:I,children:m.jsx(OW,{anchorEl:r,direction:s,disablePortal:l,modifiers:f,ref:n,open:x?!E:u,placement:h,popperOptions:y,popperRef:v,slotProps:w,slots:b,...T,style:{position:"fixed",top:0,left:0,display:A,...S},TransitionProps:_,children:o})})}),$W=at(MW,{name:"MuiPopper",slot:"Root"})({}),i0=C.forwardRef(function(t,n){const r=$g(),o=hn({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:f,disablePortal:u,keepMounted:h,modifiers:y,open:v,placement:S,popperOptions:x,popperRef:w,transition:b,slots:T,slotProps:E,...M}=o,$=T?.root??l?.Root,D={anchorEl:a,container:f,disablePortal:u,keepMounted:h,modifiers:y,open:v,placement:S,popperOptions:x,popperRef:w,transition:b,...M};return m.jsx($W,{as:s,direction:r?"rtl":"ltr",slots:{root:$},slotProps:E??c,...D,ref:n})});function PW(e){return dn("MuiListSubheader",e)}pn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const DW=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${nt(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return fn(s,PW,t)},AW=at("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(rn(({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}}]}))),ub=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:f=!1,...u}=r,h={...r,color:a,component:s,disableGutters:l,disableSticky:c,inset:f},y=DW(h);return m.jsx(AW,{as:s,className:Nt(y.root,o),ref:n,ownerState:h,...u})});ub&&(ub.muiSkipListHighlight=!0);const jW=Wa(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 NW(e){return dn("MuiChip",e)}const ar=pn("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),IW=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:c}=e,f={root:["root",c,n&&"disabled",`size${nt(r)}`,`color${nt(o)}`,l&&"clickable",l&&`clickableColor${nt(o)}`,s&&"deletable",s&&`deletableColor${nt(o)}`,`${c}${nt(o)}`],label:["label",`label${nt(r)}`],avatar:["avatar",`avatar${nt(r)}`,`avatarColor${nt(o)}`],icon:["icon",`icon${nt(r)}`,`iconColor${nt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${nt(r)}`,`deleteIconColor${nt(o)}`,`deleteIcon${nt(c)}Color${nt(o)}`]};return fn(f,NW,t)},LW=at("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:c}=n;return[{[`& .${ar.avatar}`]:t.avatar},{[`& .${ar.avatar}`]:t[`avatar${nt(l)}`]},{[`& .${ar.avatar}`]:t[`avatarColor${nt(r)}`]},{[`& .${ar.icon}`]:t.icon},{[`& .${ar.icon}`]:t[`icon${nt(l)}`]},{[`& .${ar.icon}`]:t[`iconColor${nt(o)}`]},{[`& .${ar.deleteIcon}`]:t.deleteIcon},{[`& .${ar.deleteIcon}`]:t[`deleteIcon${nt(l)}`]},{[`& .${ar.deleteIcon}`]:t[`deleteIconColor${nt(r)}`]},{[`& .${ar.deleteIcon}`]:t[`deleteIcon${nt(c)}Color${nt(r)}`]},t.root,t[`size${nt(l)}`],t[`color${nt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${nt(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${nt(r)}`],t[c],t[`${c}${nt(r)}`]]}})(rn(({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(Lr(["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(Lr(["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(Lr(["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(Lr()).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}}}}))]}})),zW=at("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${nt(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 a2(e){return e.key==="Backspace"||e.key==="Delete"}const hN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:s,color:l="default",component:c,deleteIcon:f,disabled:u=!1,icon:h,label:y,onClick:v,onDelete:S,onKeyDown:x,onKeyUp:w,size:b="medium",variant:T="filled",tabIndex:E,skipFocusWhenDisabled:M=!1,slots:$={},slotProps:D={},...I}=r,A=C.useRef(null),_=yo(A,n),W=se=>{se.stopPropagation(),S&&S(se)},V=se=>{se.currentTarget===se.target&&a2(se)&&se.preventDefault(),x&&x(se)},k=se=>{se.currentTarget===se.target&&S&&a2(se)&&S(se),w&&w(se)},z=s!==!1&&v?!0:s,F=z||S?rd:c||"div",H={...r,component:F,disabled:u,size:b,color:l,iconColor:C.isValidElement(h)&&h.props.color||l,onDelete:!!S,clickable:z,variant:T},N=IW(H),X=F===rd?{component:c||"div",focusVisibleClassName:N.focusVisible,...S&&{disableRipple:!0}}:{};let Q=null;S&&(Q=f&&C.isValidElement(f)?C.cloneElement(f,{className:Nt(f.props.className,N.deleteIcon),onClick:W}):m.jsx(jW,{className:N.deleteIcon,onClick:W}));let te=null;o&&C.isValidElement(o)&&(te=C.cloneElement(o,{className:Nt(N.avatar,o.props.className)}));let Z=null;h&&C.isValidElement(h)&&(Z=C.cloneElement(h,{className:Nt(N.icon,h.props.className)}));const K={slots:$,slotProps:D},[ne,le]=Dn("root",{elementType:LW,externalForwardedProps:{...K,...I},ownerState:H,shouldForwardComponentProp:!0,ref:_,className:Nt(N.root,a),additionalProps:{disabled:z&&u?!0:void 0,tabIndex:M&&u?-1:E,...X},getSlotProps:se=>({...se,onClick:ie=>{se.onClick?.(ie),v?.(ie)},onKeyDown:ie=>{se.onKeyDown?.(ie),V(ie)},onKeyUp:ie=>{se.onKeyUp?.(ie),k(ie)}})}),[fe,ae]=Dn("label",{elementType:zW,externalForwardedProps:K,ownerState:H,className:N.label});return m.jsxs(ne,{as:F,...le,children:[te||Z,m.jsx(fe,{...ae,children:y}),Q]})});function rv(e){return parseInt(e,10)||0}const FW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function _W(e){for(const t in e)return!1;return!0}function i2(e){return _W(e)||e.outerHeightStyle===0&&!e.overflowing}const BW=C.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:s,value:l,...c}=t,{current:f}=C.useRef(l!=null),u=C.useRef(null),h=yo(n,u),y=C.useRef(null),v=C.useRef(null),S=C.useCallback(()=>{const E=u.current,M=v.current;if(!E||!M)return;const D=Vl(E).getComputedStyle(E);if(D.width==="0px")return{outerHeightStyle:0,overflowing:!1};M.style.width=D.width,M.value=E.value||t.placeholder||"x",M.value.slice(-1)===`
|
|
212
|
-
`&&(M.value+=" ");const I=D.boxSizing,A=rv(D.paddingBottom)+rv(D.paddingTop),_=rv(D.borderBottomWidth)+rv(D.borderTopWidth),W=M.scrollHeight;M.value="x";const V=M.scrollHeight;let k=W;a&&(k=Math.max(Number(a)*V,k)),o&&(k=Math.min(Number(o)*V,k)),k=Math.max(k,V);const z=k+(I==="border-box"?A+_:0),F=Math.abs(k-W)<=1;return{outerHeightStyle:z,overflowing:F}},[o,a,t.placeholder]),x=Ao(()=>{const E=u.current,M=S();if(!E||!M||i2(M))return!1;const $=M.outerHeightStyle;return y.current!=null&&y.current!==$}),w=C.useCallback(()=>{const E=u.current,M=S();if(!E||!M||i2(M))return;const $=M.outerHeightStyle;y.current!==$&&(y.current=$,E.style.height=`${$}px`),E.style.overflow=M.overflowing?"hidden":""},[S]),b=C.useRef(-1);Va(()=>{const E=Gj(w),M=u?.current;if(!M)return;const $=Vl(M);$.addEventListener("resize",E);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(()=>{x()&&(D.unobserve(M),cancelAnimationFrame(b.current),w(),b.current=requestAnimationFrame(()=>{D.observe(M)}))}),D.observe(M)),()=>{E.clear(),cancelAnimationFrame(b.current),$.removeEventListener("resize",E),D&&D.disconnect()}},[S,w,x]),Va(()=>{w()});const T=E=>{f||w();const M=E.target,$=M.value.length,D=M.value.endsWith(`
|
|
213
|
-
`),I=M.selectionStart===$;D&&I&&M.setSelectionRange($,$),r&&r(E)};return m.jsxs(C.Fragment,{children:[m.jsx("textarea",{value:l,onChange:T,ref:h,rows:a,style:s,...c}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:{...FW.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function Jc({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 s0=C.createContext(void 0);function ul(){return C.useContext(s0)}function s2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function db(e,t=!1){return e&&(s2(e.value)&&e.value!==""||t&&s2(e.defaultValue)&&e.defaultValue!=="")}function UW(e){return e.startAdornment}function VW(e){return dn("MuiInputBase",e)}const ci=pn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var l2;const l0=(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${nt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},c0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},HW=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:c,hiddenLabel:f,multiline:u,readOnly:h,size:y,startAdornment:v,type:S}=e,x={root:["root",`color${nt(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${nt(y)}`,u&&"multiline",v&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",S==="search"&&"inputTypeSearch",u&&"inputMultiline",y==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return fn(x,VW,t)},u0=at("div",{name:"MuiInputBase",slot:"Root",overridesResolver:l0})(rn(({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",[`&.${ci.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%"}}]}))),d0=at("input",{name:"MuiInputBase",slot:"Input",overridesResolver:c0})(rn(({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] + .${ci.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},[`&.${ci.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"}}]}})),c2=HC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ek=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,color:c,components:f={},componentsProps:u={},defaultValue:h,disabled:y,disableInjectingGlobalStyles:v,endAdornment:S,error:x,fullWidth:w=!1,id:b,inputComponent:T="input",inputProps:E={},inputRef:M,margin:$,maxRows:D,minRows:I,multiline:A=!1,name:_,onBlur:W,onChange:V,onClick:k,onFocus:z,onKeyDown:F,onKeyUp:H,placeholder:N,readOnly:X,renderSuffix:Q,rows:te,size:Z,slotProps:K={},slots:ne={},startAdornment:le,type:fe="text",value:ae,...se}=r,ie=E.value!=null?E.value:ae,{current:pe}=C.useRef(ie!=null),me=C.useRef(),Te=C.useCallback(De=>{},[]),Ce=yo(me,M,E.ref,Te),[ke,ce]=C.useState(!1),we=ul(),Ge=Jc({props:r,muiFormControl:we,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ge.focused=we?we.focused:ke,C.useEffect(()=>{!we&&y&&ke&&(ce(!1),W&&W())},[we,y,ke,W]);const Be=we&&we.onFilled,Ae=we&&we.onEmpty,oe=C.useCallback(De=>{db(De)?Be&&Be():Ae&&Ae()},[Be,Ae]);Va(()=>{pe&&oe({value:ie})},[ie,oe,pe]);const lt=De=>{z&&z(De),E.onFocus&&E.onFocus(De),we&&we.onFocus?we.onFocus(De):ce(!0)},Ne=De=>{W&&W(De),E.onBlur&&E.onBlur(De),we&&we.onBlur?we.onBlur(De):ce(!1)},et=(De,...wt)=>{if(!pe){const Ct=De.target||me.current;if(Ct==null)throw new Error(Ul(1));oe({value:Ct.value})}E.onChange&&E.onChange(De,...wt),V&&V(De,...wt)};C.useEffect(()=>{oe(me.current)},[]);const mt=De=>{me.current&&De.currentTarget===De.target&&me.current.focus(),k&&k(De)};let Wt=T,zt=E;A&&Wt==="input"&&(te?zt={type:void 0,minRows:te,maxRows:te,...zt}:zt={type:void 0,maxRows:D,minRows:I,...zt},Wt=BW);const tt=De=>{oe(De.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};C.useEffect(()=>{we&&we.setAdornedStart(!!le)},[we,le]);const Je={...r,color:Ge.color||"primary",disabled:Ge.disabled,endAdornment:S,error:Ge.error,focused:Ge.focused,formControl:we,fullWidth:w,hiddenLabel:Ge.hiddenLabel,multiline:A,size:Ge.size,startAdornment:le,type:fe},ct=HW(Je),Ie=ne.root||f.Root||u0,he=K.root||u.root||{},qe=ne.input||f.Input||d0;return zt={...zt,...K.input??u.input},m.jsxs(C.Fragment,{children:[!v&&typeof c2=="function"&&(l2||(l2=m.jsx(c2,{}))),m.jsxs(Ie,{...he,ref:n,onClick:mt,...se,...!Bc(Ie)&&{ownerState:{...Je,...he.ownerState}},className:Nt(ct.root,he.className,l,X&&"MuiInputBase-readOnly"),children:[le,m.jsx(s0.Provider,{value:null,children:m.jsx(qe,{"aria-invalid":Ge.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:Ge.disabled,id:b,onAnimationStart:tt,name:_,placeholder:N,readOnly:X,required:Ge.required,rows:te,value:ie,onKeyDown:F,onKeyUp:H,type:fe,...zt,...!Bc(qe)&&{as:Wt,ownerState:{...Je,...zt.ownerState}},ref:Ce,className:Nt(ct.input,zt.className,X&&"MuiInputBase-readOnly"),onBlur:Ne,onChange:et,onFocus:lt})}),S,Q?Q({...Ge,startAdornment:le}):null]})]})});function WW(e){return dn("MuiInput",e)}const Ac={...ci,...pn("MuiInput",["root","underline","input"])};function qW(e){return dn("MuiOutlinedInput",e)}const Ni={...ci,...pn("MuiOutlinedInput",["root","notchedOutline","input"])};function YW(e){return dn("MuiFilledInput",e)}const ui={...ci,...pn("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},mN=Wa(m.jsx("path",{d:"M7 10l5 5 5-5z"}));function GW(e){return dn("MuiAutocomplete",e)}const Kn=pn("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 u2,d2;const KW=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:f,size:u}=e,h={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${nt(u)}`],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 fn(h,GW,t)},QW=at("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${nt(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}},[`& .${Ac.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ac.root}.${ci.sizeSmall}`]:{[`& .${Ac.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ni.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}},[`& .${Ni.root}.${ci.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Kn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ui.root}`]:{paddingTop:19,paddingLeft:8,[`.${Kn.hasPopupIcon}&, .${Kn.hasClearIcon}&`]:{paddingRight:39},[`.${Kn.hasPopupIcon}.${Kn.hasClearIcon}&`]:{paddingRight:65},[`& .${ui.input}`]:{padding:"7px 4px"},[`& .${Kn.endAdornment}`]:{right:9}},[`& .${ui.root}.${ci.sizeSmall}`]:{paddingBottom:1,[`& .${ui.input}`]:{padding:"2.5px 4px"}},[`& .${ci.hiddenLabel}`]:{paddingTop:8},[`& .${ui.root}.${ci.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Kn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ui.root}.${ci.hiddenLabel}.${ci.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"}}}]}),XW=at("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),ZW=at(Jr,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),JW=at(Jr,{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)"}}]}),e8=at(i0,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(rn(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),t8=at(Ha,{name:"MuiAutocomplete",slot:"Paper"})(rn(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),n8=at("div",{name:"MuiAutocomplete",slot:"Loading"})(rn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),r8=at("div",{name:"MuiAutocomplete",slot:"NoOptions"})(rn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),o8=at("ul",{name:"MuiAutocomplete",slot:"Listbox"})(rn(({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}`)}}}}))),a8=at(ub,{name:"MuiAutocomplete",slot:"GroupLabel"})(rn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),i8=at("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Kn.option}`]:{paddingLeft:24}}),s8=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:c,className:f,clearIcon:u=u2||(u2=m.jsx(rN,{fontSize:"small"})),clearOnBlur:h=!r.freeSolo,clearOnEscape:y=!1,clearText:v="Clear",closeText:S="Close",componentsProps:x,defaultValue:w=r.multiple?[]:null,disableClearable:b=!1,disableCloseOnSelect:T=!1,disabled:E=!1,disabledItemsFocusable:M=!1,disableListWrap:$=!1,disablePortal:D=!1,filterOptions:I,filterSelectedOptions:A=!1,forcePopupIcon:_="auto",freeSolo:W=!1,fullWidth:V=!1,getLimitTagsText:k=Et=>`+${Et}`,getOptionDisabled:z,getOptionKey:F,getOptionLabel:H,isOptionEqualToValue:N,groupBy:X,handleHomeEndKeys:Q=!r.freeSolo,id:te,includeInputInList:Z=!1,inputValue:K,limitTags:ne=-1,ListboxComponent:le,ListboxProps:fe,loading:ae=!1,loadingText:se="Loading…",multiple:ie=!1,noOptionsText:pe="No options",onChange:me,onClose:Te,onHighlightChange:Ce,onInputChange:ke,onOpen:ce,open:we,openOnFocus:Ge=!1,openText:Be="Open",options:Ae,PaperComponent:oe,PopperComponent:lt,popupIcon:Ne=d2||(d2=m.jsx(mN,{})),readOnly:et=!1,renderGroup:mt,renderInput:Wt,renderOption:zt,renderTags:tt,renderValue:Je,selectOnFocus:ct=!r.freeSolo,size:Ie="medium",slots:he={},slotProps:qe={},value:De,...wt}=r,{getRootProps:Ct,getInputProps:yt,getInputLabelProps:st,getPopupIndicatorProps:jt,getClearProps:qt,getItemProps:mn,getListboxProps:$n,getOptionProps:_n,value:Un,dirty:Jt,expanded:An,id:xe,popupOpen:Vn,focused:Rn,focusedItem:en,anchorEl:$t,setAnchorEl:zr,inputValue:Fn,groupedOptions:on}=mH({...r,componentName:"Autocomplete"}),Ln=!b&&!E&&Jt&&!et,ge=(!W||_===!0)&&_!==!1,{onMouseDown:Ee}=yt(),{ref:Le,...Ve}=$n(),kt=H||(Et=>Et.label??Et),bt={...r,disablePortal:D,expanded:An,focused:Rn,fullWidth:V,getOptionLabel:kt,hasClearIcon:Ln,hasPopupIcon:ge,inputFocused:en===-1,popupOpen:Vn,size:Ie},Tt=KW(bt),Pt={slots:{paper:oe,popper:lt,...he},slotProps:{chip:c,listbox:fe,...x,...qe}},[Kt,Dt]=Dn("listbox",{elementType:o8,externalForwardedProps:Pt,ownerState:bt,className:Tt.listbox,additionalProps:Ve,ref:Le}),[Ft,ue]=Dn("paper",{elementType:Ha,externalForwardedProps:Pt,ownerState:bt,className:Tt.paper}),[de,ze]=Dn("popper",{elementType:i0,externalForwardedProps:Pt,ownerState:bt,className:Tt.popper,additionalProps:{disablePortal:D,style:{width:$t?$t.clientWidth:null},role:"presentation",anchorEl:$t,open:Vn}});let ft;const Ue=Et=>({className:Tt.tag,disabled:E,...mn(Et)});if(ie?Un.length>0&&(tt?ft=tt(Un,Ue,bt):Je?ft=Je(Un,Ue,bt):ft=Un.map((Et,Rt)=>{const{key:At,...Zt}=Ue({index:Rt});return m.jsx(hN,{label:kt(Et),size:Ie,...Zt,...Pt.slotProps.chip},At)})):Je&&Un!=null&&(ft=Je(Un,Ue,bt)),ne>-1&&Array.isArray(ft)){const Et=ft.length-ne;!Rn&&Et>0&&(ft=ft.splice(0,ne),ft.push(m.jsx("span",{className:Tt.tag,children:k(Et)},ft.length)))}const Yt=mt||(Et=>m.jsxs("li",{children:[m.jsx(a8,{className:Tt.groupLabel,ownerState:bt,component:"div",children:Et.group}),m.jsx(i8,{className:Tt.groupUl,ownerState:bt,children:Et.children})]},Et.key)),ye=zt||((Et,Rt)=>{const{key:At,...Zt}=Et;return m.jsx("li",{...Zt,children:kt(Rt)},At)}),Re=(Et,Rt)=>{const At=_n({option:Et,index:Rt});return ye({...At,className:Tt.option},Et,{selected:At["aria-selected"],index:Rt,inputValue:Fn},bt)},it=Pt.slotProps.clearIndicator,xt=Pt.slotProps.popupIndicator;return m.jsxs(C.Fragment,{children:[m.jsx(QW,{ref:n,className:Nt(Tt.root,f),ownerState:bt,...Ct(wt),children:Wt({id:xe,disabled:E,fullWidth:!0,size:Ie==="small"?"small":void 0,InputLabelProps:st(),InputProps:{ref:zr,className:Tt.inputRoot,startAdornment:ft,onMouseDown:Et=>{Et.target===Et.currentTarget&&Ee(Et)},...(Ln||ge)&&{endAdornment:m.jsxs(XW,{className:Tt.endAdornment,ownerState:bt,children:[Ln?m.jsx(ZW,{...qt(),"aria-label":v,title:v,ownerState:bt,...it,className:Nt(Tt.clearIndicator,it?.className),children:u}):null,ge?m.jsx(JW,{...jt(),disabled:E,"aria-label":Vn?S:Be,title:Vn?S:Be,ownerState:bt,...xt,className:Nt(Tt.popupIndicator,xt?.className),children:Ne}):null]})}},inputProps:{className:Tt.input,disabled:E,readOnly:et,...yt()}})}),$t?m.jsx(e8,{as:de,...ze,children:m.jsxs(t8,{as:Ft,...ue,children:[ae&&on.length===0?m.jsx(n8,{className:Tt.loading,ownerState:bt,children:se}):null,on.length===0&&!W&&!ae?m.jsx(r8,{className:Tt.noOptions,ownerState:bt,role:"presentation",onMouseDown:Et=>{Et.preventDefault()},children:pe}):null,on.length>0?m.jsx(Kt,{as:le,...Dt,children:on.map((Et,Rt)=>X?Yt({key:Et.key,group:Et.group,children:Et.options.map((At,Zt)=>Re(At,Et.index+Zt))}):Re(Et,Rt))}):null]})}):null]})}),l8={entering:{opacity:1},entered:{opacity:1}},aw=C.forwardRef(function(t,n){const r=Xc(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:f,onEnter:u,onEntered:h,onEntering:y,onExit:v,onExited:S,onExiting:x,style:w,timeout:b=o,TransitionComponent:T=cl,...E}=t,M=C.useRef(null),$=yo(M,gd(l),n),D=F=>H=>{if(F){const N=M.current;H===void 0?F(N):F(N,H)}},I=D(y),A=D((F,H)=>{Jj(F);const N=sb({style:w,timeout:b,easing:c},{mode:"enter"});F.style.webkitTransition=r.transitions.create("opacity",N),F.style.transition=r.transitions.create("opacity",N),u&&u(F,H)}),_=D(h),W=D(x),V=D(F=>{const H=sb({style:w,timeout:b,easing:c},{mode:"exit"});F.style.webkitTransition=r.transitions.create("opacity",H),F.style.transition=r.transitions.create("opacity",H),v&&v(F)}),k=D(S),z=F=>{a&&a(M.current,F)};return m.jsx(T,{appear:s,in:f,nodeRef:M,onEnter:A,onEntered:_,onEntering:I,onExit:V,onExited:k,onExiting:W,addEndListener:z,timeout:b,...E,children:(F,{ownerState:H,...N})=>C.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!f?"hidden":void 0,...l8[F],...w,...l.props.style},ref:$,...N})})});function c8(e){return dn("MuiBackdrop",e)}pn("MuiBackdrop",["root","invisible"]);const u8=e=>{const{classes:t,invisible:n}=e;return fn({root:["root",n&&"invisible"]},c8,t)},d8=at("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"}}]}),gN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:c,components:f={},componentsProps:u={},slotProps:h={},slots:y={},TransitionComponent:v,transitionDuration:S,...x}=r,w={...r,component:s,invisible:l},b=u8(w),T={transition:v,root:f.Root,...y},E={...u,...h},M={component:s,slots:T,slotProps:E},[$,D]=Dn("root",{elementType:d8,externalForwardedProps:M,className:Nt(b.root,a),ownerState:w}),[I,A]=Dn("transition",{elementType:aw,externalForwardedProps:M,ownerState:w});return m.jsx(I,{in:c,timeout:S,...x,...A,children:m.jsx($,{"aria-hidden":!0,...D,classes:b,ref:n,children:o})})}),f8=pn("MuiBox",["root"]),p8=n0(),Ht=jC({themeId:el,defaultTheme:p8,defaultClassName:f8.root,generateClassName:AC.generate});function h8(e){return dn("MuiButton",e)}const Mu=pn("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"]),m8=C.createContext({}),g8=C.createContext(void 0),y8=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:c}=e,f={root:["root",s&&"loading",a,`${a}${nt(t)}`,`size${nt(o)}`,`${a}Size${nt(o)}`,`color${nt(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${nt(l)}`],startIcon:["icon","startIcon",`iconSize${nt(o)}`],endIcon:["icon","endIcon",`iconSize${nt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=fn(f,h8,c);return{...c,...u}},yN=[{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}}}],v8=at(rd,{shouldForwardProp:e=>Ta(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nt(n.color)}`],t[`size${nt(n.size)}`],t[`${n.variant}Size${nt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(rn(({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"},[`&.${Mu.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]},[`&.${Mu.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Mu.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)",[`&.${Mu.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(Lr()).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"},[`&.${Mu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Mu.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}),[`&.${Mu.loading}`]:{color:"transparent"}}}]}})),b8=at("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${nt(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}},...yN]})),x8=at("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${nt(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}},...yN]})),S8=at("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}}]})),f2=at("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Jo=C.forwardRef(function(t,n){const r=C.useContext(m8),o=C.useContext(g8),a=rg(r,t),s=hn({props:a,name:"MuiButton"}),{children:l,color:c="primary",component:f="button",className:u,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:v=!1,endIcon:S,focusVisibleClassName:x,fullWidth:w=!1,id:b,loading:T=null,loadingIndicator:E,loadingPosition:M="center",size:$="medium",startIcon:D,type:I,variant:A="text",..._}=s,W=Qc(b),V=E??m.jsx(Pg,{"aria-labelledby":W,color:"inherit",size:16}),k={...s,color:c,component:f,disabled:h,disableElevation:y,disableFocusRipple:v,fullWidth:w,loading:T,loadingIndicator:V,loadingPosition:M,size:$,type:I,variant:A},z=y8(k),F=(D||T&&M==="start")&&m.jsx(b8,{className:z.startIcon,ownerState:k,children:D||m.jsx(f2,{className:z.loadingIconPlaceholder,ownerState:k})}),H=(S||T&&M==="end")&&m.jsx(x8,{className:z.endIcon,ownerState:k,children:S||m.jsx(f2,{className:z.loadingIconPlaceholder,ownerState:k})}),N=o||"",X=typeof T=="boolean"?m.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:T&&m.jsx(S8,{className:z.loadingIndicator,ownerState:k,children:V})}):null;return m.jsxs(v8,{ownerState:k,className:Nt(r.className,z.root,u,N),component:f,disabled:h||T,focusRipple:!v,focusVisibleClassName:Nt(z.focusVisible,x),ref:n,type:I,id:T?W:b,..._,classes:z,children:[F,M!=="end"&&X,l,M==="end"&&X,H]})});function w8(e){return dn("MuiCard",e)}pn("MuiCard",["root"]);const C8=e=>{const{classes:t}=e;return fn({root:["root"]},w8,t)},k8=at(Ha,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),T8=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...s}=r,l={...r,raised:a},c=C8(l);return m.jsx(k8,{className:Nt(c.root,o),elevation:a?8:void 0,ref:n,ownerState:l,...s})});function E8(e){return dn("MuiCardContent",e)}pn("MuiCardContent",["root"]);const R8=e=>{const{classes:t}=e;return fn({root:["root"]},E8,t)},O8=at("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),M8=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...s}=r,l={...r,component:a},c=R8(l);return m.jsx(O8,{as:a,className:Nt(c.root,o),ownerState:l,ref:n,...s})});function $8(e){return dn("MuiCardMedia",e)}pn("MuiCardMedia",["root","media","img"]);const P8=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return fn({root:["root",n&&"media",r&&"img"]},$8,t)},D8=at("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"}}]}),A8=["video","audio","picture","iframe","img"],j8=["picture","img"],N8=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:s="div",image:l,src:c,style:f,...u}=r,h=A8.includes(s),y=!h&&l?{backgroundImage:`url("${l}")`,...f}:f,v={...r,component:s,isMediaComponent:h,isImageComponent:j8.includes(s)},S=P8(v);return m.jsx(D8,{className:Nt(S.root,a),as:s,role:!h&&l?"img":void 0,ref:n,style:y,ownerState:v,src:h?l||c:void 0,...u,children:o})});function I8(e){return dn("PrivateSwitchBase",e)}pn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const L8=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${nt(o)}`],input:["input"]};return fn(a,I8,t)},z8=at(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}}]}),F8=at("input",{name:"MuiSwitchBase",shouldForwardProp:Ta})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),vN=C.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:f=!1,icon:u,id:h,inputProps:y,inputRef:v,name:S,onBlur:x,onChange:w,onFocus:b,readOnly:T,required:E=!1,tabIndex:M,type:$,value:D,slots:I={},slotProps:A={},..._}=t,[W,V]=_c({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),k=ul(),z=ae=>{b&&b(ae),k&&k.onFocus&&k.onFocus(ae)},F=ae=>{x&&x(ae),k&&k.onBlur&&k.onBlur(ae)},H=ae=>{if(ae.nativeEvent.defaultPrevented)return;const se=ae.target.checked;V(se),w&&w(ae,se)};let N=l;k&&typeof N>"u"&&(N=k.disabled);const X=$==="checkbox"||$==="radio",Q={...t,checked:W,disabled:N,disableFocusRipple:c,edge:f},te=L8(Q),Z={slots:I,slotProps:{input:y,...A}},[K,ne]=Dn("root",{ref:n,elementType:z8,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Z,component:"span",..._},getSlotProps:ae=>({...ae,onFocus:se=>{ae.onFocus?.(se),z(se)},onBlur:se=>{ae.onBlur?.(se),F(se)}}),ownerState:Q,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:N,role:void 0,tabIndex:null}}),[le,fe]=Dn("input",{ref:v,elementType:F8,className:te.input,externalForwardedProps:Z,getSlotProps:ae=>({...ae,onChange:se=>{ae.onChange?.(se),H(se)}}),ownerState:Q,additionalProps:{autoFocus:r,checked:o,defaultChecked:s,disabled:N,id:X?h:void 0,name:S,readOnly:T,required:E,tabIndex:M,type:$,...$==="checkbox"&&D===void 0?{}:{value:D}}});return m.jsxs(K,{...ne,children:[m.jsx(le,{...fe}),W?a:u]})}),_8=Wa(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"})),B8=Wa(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"})),U8=Wa(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 dn("MuiCheckbox",e)}const HS=pn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),H8=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${nt(r)}`,`size${nt(o)}`]},s=fn(a,V8,t);return{...t,...s}},W8=at(vN,{shouldForwardProp:e=>Ta(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${nt(n.size)}`],n.color!=="default"&&t[`color${nt(n.color)}`]]}})(rn(({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(Lr()).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(Lr()).map(([t])=>({props:{color:t},style:{[`&.${HS.checked}, &.${HS.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${HS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),q8=m.jsx(B8,{}),Y8=m.jsx(_8,{}),G8=m.jsx(U8,{}),K8=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCheckbox"}),{checkedIcon:o=q8,color:a="primary",icon:s=Y8,indeterminate:l=!1,indeterminateIcon:c=G8,inputProps:f,size:u="medium",disableRipple:h=!1,className:y,slots:v={},slotProps:S={},...x}=r,w=l?c:s,b=l?c:o,T={...r,disableRipple:h,color:a,indeterminate:l,size:u},E=H8(T),M=S.input??f,[$,D]=Dn("root",{ref:n,elementType:W8,className:Nt(E.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:S,...x},ownerState:T,additionalProps:{type:"checkbox",icon:C.cloneElement(w,{fontSize:w.props.fontSize??u}),checkedIcon:C.cloneElement(b,{fontSize:b.props.fontSize??u}),disableRipple:h,slots:v,slotProps:{input:Kj(typeof M=="function"?M(T):M,{"data-indeterminate":l})}}});return m.jsx($,{...D,classes:E})});function p2(e){return e.substring(2).toLowerCase()}function Q8(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function X8(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),c=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const u=yo(gd(t),l),h=Ao(S=>{const x=f.current;f.current=!1;const w=$o(l.current);if(!c.current||!l.current||"clientX"in S&&Q8(S,w))return;if(s.current){s.current=!1;return}let b;S.composedPath?b=S.composedPath().includes(l.current):b=!w.documentElement.contains(S.target)||l.current.contains(S.target),!b&&(n||!x)&&o(S)}),y=S=>x=>{f.current=!0;const w=t.props[S];w&&w(x)},v={ref:u};return a!==!1&&(v[a]=y(a)),C.useEffect(()=>{if(a!==!1){const S=p2(a),x=$o(l.current),w=()=>{s.current=!0};return x.addEventListener(S,h),x.addEventListener("touchmove",w),()=>{x.removeEventListener(S,h),x.removeEventListener("touchmove",w)}}},[h,a]),r!==!1&&(v[r]=y(r)),C.useEffect(()=>{if(r!==!1){const S=p2(r),x=$o(l.current);return x.addEventListener(S,h),()=>{x.removeEventListener(S,h)}}},[h,r]),C.cloneElement(t,v)}const tk=JU({createStyledComponent:at("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>hn({props:e,name:"MuiContainer"})}),iw=typeof HC({})=="function",Z8=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),J8=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}}),bN=(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:Z8(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...J8(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Uv="mui-ecs",e9=e=>{const t=bN(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Uv})`]={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(.${Uv}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${Uv}))`]:{colorScheme:o.palette?.mode}}}),t},t9=HC(iw?({theme:e,enableColorScheme:t})=>bN(e,t):({theme:e})=>e9(e));function n9(e){const t=hn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return m.jsxs(C.Fragment,{children:[iw&&m.jsx(t9,{enableColorScheme:r}),!iw&&!r&&m.jsx("span",{className:Uv,style:{display:"none"}}),n]})}function xN(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function r9(e){const t=$o(e);return t.body===e?Vl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function h2(e){return parseInt(Vl(e).getComputedStyle(e).paddingRight,10)||0}function o9(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),c=!o9(s);l&&c&&Fm(s,o)})}function WS(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function a9(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(r9(r)){const s=xN(Vl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${h2(r)+s}px`;const l=$o(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${h2(c)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=$o(r).body;else{const s=r.parentElement,l=Vl(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 i9(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class s9{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&&Fm(t.modalRef,!1);const o=i9(n);m2(n,t.mount,t.modalRef,o,!0);const a=WS(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=WS(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=a9(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=WS(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&&Fm(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&&Fm(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const l9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function c9(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 u9(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 d9(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||u9(e))}function f9(e){const t=[],n=[];return Array.from(e.querySelectorAll(l9)).forEach((r,o)=>{const a=c9(r);a===-1||!d9(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 p9(){return!0}function h9(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=f9,isEnabled:s=p9,open:l}=e,c=C.useRef(!1),f=C.useRef(null),u=C.useRef(null),h=C.useRef(null),y=C.useRef(null),v=C.useRef(!1),S=C.useRef(null),x=yo(gd(t),S),w=C.useRef(null);C.useEffect(()=>{!l||!S.current||(v.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!S.current)return;const E=$o(S.current);return S.current.contains(E.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),v.current&&S.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),C.useEffect(()=>{if(!l||!S.current)return;const E=$o(S.current),M=I=>{w.current=I,!(r||!s()||I.key!=="Tab")&&E.activeElement===S.current&&I.shiftKey&&(c.current=!0,u.current&&u.current.focus())},$=()=>{const I=S.current;if(I===null)return;if(!E.hasFocus()||!s()||c.current){c.current=!1;return}if(I.contains(E.activeElement)||r&&E.activeElement!==f.current&&E.activeElement!==u.current)return;if(E.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!v.current)return;let A=[];if((E.activeElement===f.current||E.activeElement===u.current)&&(A=a(S.current)),A.length>0){const _=!!(w.current?.shiftKey&&w.current?.key==="Tab"),W=A[0],V=A[A.length-1];typeof W!="string"&&typeof V!="string"&&(_?V.focus():W.focus())}else I.focus()};E.addEventListener("focusin",$),E.addEventListener("keydown",M,!0);const D=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(D),E.removeEventListener("focusin",$),E.removeEventListener("keydown",M,!0)}},[n,r,o,s,l,a]);const b=E=>{h.current===null&&(h.current=E.relatedTarget),v.current=!0,y.current=E.target;const M=t.props.onFocus;M&&M(E)},T=E=>{h.current===null&&(h.current=E.relatedTarget),v.current=!0};return m.jsxs(C.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:b}),m.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:u,"data-testid":"sentinelEnd"})]})}function m9(e){return typeof e=="function"?e():e}function g9(e){return e?e.props.hasOwnProperty("in"):!1}const g2=()=>{},ov=new s9;function y9(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:f,rootRef:u}=e,h=C.useRef({}),y=C.useRef(null),v=C.useRef(null),S=yo(v,u),[x,w]=C.useState(!f),b=g9(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const E=()=>$o(y.current),M=()=>(h.current.modalRef=v.current,h.current.mount=y.current,h.current),$=()=>{ov.mount(M(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},D=Ao(()=>{const H=m9(t)||E().body;ov.add(M(),H),v.current&&$()}),I=()=>ov.isTopModal(M()),A=Ao(H=>{y.current=H,H&&(f&&I()?$():v.current&&Fm(v.current,T))}),_=C.useCallback(()=>{ov.remove(M(),T)},[T]);C.useEffect(()=>()=>{_()},[_]),C.useEffect(()=>{f?D():(!b||!o)&&_()},[f,_,b,o,D]);const W=H=>N=>{H.onKeyDown?.(N),!(N.key!=="Escape"||N.which===229||!I())&&(n||(N.stopPropagation(),c&&c(N,"escapeKeyDown")))},V=H=>N=>{H.onClick?.(N),N.target===N.currentTarget&&c&&c(N,"backdropClick")};return{getRootProps:(H={})=>{const N=Xu(e);delete N.onTransitionEnter,delete N.onTransitionExited;const X={...N,...H};return{role:"presentation",...X,onKeyDown:W(X),ref:S}},getBackdropProps:(H={})=>{const N=H;return{"aria-hidden":!0,...N,onClick:V(N),open:f}},getTransitionProps:()=>{const H=()=>{w(!1),a&&a()},N=()=>{w(!0),s&&s(),o&&_()};return{onEnter:LM(H,l?.props.onEnter??g2),onExited:LM(N,l?.props.onExited??g2)}},rootRef:S,portalRef:A,isTopModal:I,exited:x,hasTransition:b}}function v9(e){return dn("MuiModal",e)}pn("MuiModal",["root","hidden","backdrop"]);const b9=e=>{const{open:t,exited:n,classes:r}=e;return fn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},v9,r)},x9=at("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(rn(({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"}}]}))),S9=at(gN,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),SN=C.forwardRef(function(t,n){const r=hn({name:"MuiModal",props:t}),{BackdropComponent:o=S9,BackdropProps:a,classes:s,className:l,closeAfterTransition:c=!1,children:f,container:u,component:h,components:y={},componentsProps:v={},disableAutoFocus:S=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:b=!1,disableRestoreFocus:T=!1,disableScrollLock:E=!1,hideBackdrop:M=!1,keepMounted:$=!1,onClose:D,onTransitionEnter:I,onTransitionExited:A,open:_,slotProps:W={},slots:V={},theme:k,...z}=r,F={...r,closeAfterTransition:c,disableAutoFocus:S,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:b,disableRestoreFocus:T,disableScrollLock:E,hideBackdrop:M,keepMounted:$},{getRootProps:H,getBackdropProps:N,getTransitionProps:X,portalRef:Q,isTopModal:te,exited:Z,hasTransition:K}=y9({...F,rootRef:n}),ne={...F,exited:Z},le=b9(ne),fe={};if(f.props.tabIndex===void 0&&(fe.tabIndex="-1"),K){const{onEnter:Te,onExited:Ce}=X();fe.onEnter=Te,fe.onExited=Ce}const ae={slots:{root:y.Root,backdrop:y.Backdrop,...V},slotProps:{...v,...W}},[se,ie]=Dn("root",{ref:n,elementType:x9,externalForwardedProps:{...ae,...z,component:h},getSlotProps:H,ownerState:ne,className:Nt(l,le?.root,!ne.open&&ne.exited&&le?.hidden)}),[pe,me]=Dn("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:ae,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Te=>N({...Te,onClick:Ce=>{Te?.onClick&&Te.onClick(Ce)}}),className:Nt(a?.className,le?.backdrop),ownerState:ne});return!$&&!_&&(!K||Z)?null:m.jsx(pN,{ref:Q,container:u,disablePortal:b,children:m.jsxs(se,{...ie,children:[!M&&o?m.jsx(pe,{...me}):null,m.jsx(h9,{disableEnforceFocus:x,disableAutoFocus:S,disableRestoreFocus:T,isEnabled:te,open:_,children:C.cloneElement(f,fe)})]})})});function w9(e){return dn("MuiDialog",e)}const qS=pn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),wN=C.createContext({}),C9=at(gN,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),k9=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${nt(n)}`],paper:["paper",`paperScroll${nt(n)}`,`paperWidth${nt(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return fn(s,w9,t)},T9=at(SN,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),E9=at("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${nt(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"}}}]}),R9=at(Ha,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${nt(n.scroll)}`],t[`paperWidth${nt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(rn(({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)`,[`&.${qS.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}`,[`&.${qS.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,[`&.${qS.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),up=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDialog"}),o=Xc(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:f,BackdropProps:u,children:h,className:y,disableEscapeKeyDown:v=!1,fullScreen:S=!1,fullWidth:x=!1,maxWidth:w="sm",onClick:b,onClose:T,open:E,PaperComponent:M=Ha,PaperProps:$={},scroll:D="paper",slots:I={},slotProps:A={},TransitionComponent:_=aw,transitionDuration:W=a,TransitionProps:V,...k}=r,z={...r,disableEscapeKeyDown:v,fullScreen:S,fullWidth:x,maxWidth:w,scroll:D},F=k9(z),H=C.useRef(),N=ce=>{H.current=ce.target===ce.currentTarget},X=ce=>{b&&b(ce),H.current&&(H.current=null,T&&T(ce,"backdropClick"))},Q=Qc(l),te=C.useMemo(()=>({titleId:Q}),[Q]),Z={transition:_,...I},K={transition:V,paper:$,backdrop:u,...A},ne={slots:Z,slotProps:K},[le,fe]=Dn("root",{elementType:T9,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:z,className:Nt(F.root,y),ref:n}),[ae,se]=Dn("backdrop",{elementType:C9,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:z}),[ie,pe]=Dn("paper",{elementType:R9,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:z,className:Nt(F.paper,$.className)}),[me,Te]=Dn("container",{elementType:E9,externalForwardedProps:ne,ownerState:z,className:F.container}),[Ce,ke]=Dn("transition",{elementType:aw,externalForwardedProps:ne,ownerState:z,additionalProps:{appear:!0,in:E,timeout:W,role:"presentation"}});return m.jsx(le,{closeAfterTransition:!0,slots:{backdrop:ae},slotProps:{backdrop:{transitionDuration:W,as:f,...se}},disableEscapeKeyDown:v,onClose:T,open:E,onClick:X,...fe,...k,children:m.jsx(Ce,{...ke,children:m.jsx(me,{onMouseDown:N,...Te,children:m.jsx(ie,{as:M,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":Q,"aria-modal":c,...pe,children:m.jsx(wN.Provider,{value:te,children:h})})})})})});function O9(e){return dn("MuiDialogActions",e)}pn("MuiDialogActions",["root","spacing"]);const M9=e=>{const{classes:t,disableSpacing:n}=e;return fn({root:["root",!n&&"spacing"]},O9,t)},$9=at("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}}}]}),CN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=r,l={...r,disableSpacing:a},c=M9(l);return m.jsx($9,{className:Nt(c.root,o),ownerState:l,ref:n,...s})});function P9(e){return dn("MuiDialogContent",e)}pn("MuiDialogContent",["root","dividers"]);function D9(e){return dn("MuiDialogTitle",e)}const A9=pn("MuiDialogTitle",["root"]),j9=e=>{const{classes:t,dividers:n}=e;return fn({root:["root",n&&"dividers"]},P9,t)},N9=at("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(rn(({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:{[`.${A9.root} + &`]:{paddingTop:0}}}]}))),dp=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=r,l={...r,dividers:a},c=j9(l);return m.jsx(N9,{className:Nt(c.root,o),ownerState:l,ref:n,...s})}),I9=e=>{const{classes:t}=e;return fn({root:["root"]},D9,t)},L9=at(It,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),fp=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...s}=r,l=r,c=I9(l),{titleId:f=a}=C.useContext(wN);return m.jsx(L9,{component:"h2",className:Nt(c.root,o),ownerState:l,ref:n,variant:"h6",id:a??f,...s})});function z9(e){return dn("MuiDivider",e)}const y2=pn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),F9=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:s,textAlign:l,variant:c}=e;return fn({root:["root",t&&"absolute",c,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"]},z9,r)},_9=at("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]}})(rn(({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%"}}}]}))),B9=at("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(rn(({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)`}}]}))),qc=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,orientation:l="horizontal",component:c=a||l==="vertical"?"div":"hr",flexItem:f=!1,light:u=!1,role:h=c!=="hr"?"separator":void 0,textAlign:y="center",variant:v="fullWidth",...S}=r,x={...r,absolute:o,component:c,flexItem:f,light:u,orientation:l,role:h,textAlign:y,variant:v},w=F9(x);return m.jsx(_9,{as:c,className:Nt(w.root,s),role:h,ref:n,ownerState:x,"aria-orientation":h==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...S,children:a?m.jsx(B9,{className:w.wrapper,ownerState:x,children:a}):null})});qc&&(qc.muiSkipListHighlight=!0);const U9=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${nt(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=fn(c,YW,t);return{...t,...f}},V9=at(u0,{shouldForwardProp:e=>Ta(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...l0(e,t),!n.disableUnderline&&t.underline]}})(rn(({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}},[`&.${ui.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ui.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"},[`&.${ui.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ui.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(.${ui.disabled}, .${ui.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ui.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Lr()).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}}]}})),H9=at(d0,{name:"MuiFilledInput",slot:"Input",overridesResolver:c0})(rn(({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}}]}))),nk=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:c,inputComponent:f="input",multiline:u=!1,slotProps:h,slots:y={},type:v="text",...S}=r,x={...r,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:u,type:v},w=U9(r),b={root:{ownerState:x},input:{ownerState:x}},T=h??s?Ho(b,h??s):b,E=y.root??a.Root??V9,M=y.input??a.Input??H9;return m.jsx(ek,{slots:{root:E,input:M},slotProps:T,fullWidth:l,inputComponent:f,multiline:u,ref:n,type:v,...S,classes:w})});nk.muiName="Input";function W9(e){return dn("MuiFormControl",e)}pn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const q9=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${nt(n)}`,r&&"fullWidth"]};return fn(o,W9,t)},Y9=at("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${nt(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%"}}]}),sw=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:l="div",disabled:c=!1,error:f=!1,focused:u,fullWidth:h=!1,hiddenLabel:y=!1,margin:v="none",required:S=!1,size:x="medium",variant:w="outlined",...b}=r,T={...r,color:s,component:l,disabled:c,error:f,fullWidth:h,hiddenLabel:y,margin:v,required:S,size:x,variant:w},E=q9(T),[M,$]=C.useState(()=>{let H=!1;return o&&C.Children.forEach(o,N=>{if(!_v(N,["Input","Select"]))return;const X=_v(N,["Select"])?N.props.input:N;X&&UW(X.props)&&(H=!0)}),H}),[D,I]=C.useState(()=>{let H=!1;return o&&C.Children.forEach(o,N=>{_v(N,["Input","Select"])&&(db(N.props,!0)||db(N.props.inputProps,!0))&&(H=!0)}),H}),[A,_]=C.useState(!1);c&&A&&_(!1);const W=u!==void 0&&!c?u:A;let V;C.useRef(!1);const k=C.useCallback(()=>{I(!0)},[]),z=C.useCallback(()=>{I(!1)},[]),F=C.useMemo(()=>({adornedStart:M,setAdornedStart:$,color:s,disabled:c,error:f,filled:D,focused:W,fullWidth:h,hiddenLabel:y,size:x,onBlur:()=>{_(!1)},onFocus:()=>{_(!0)},onEmpty:z,onFilled:k,registerEffect:V,required:S,variant:w}),[M,s,c,f,D,W,h,y,V,z,k,S,x,w]);return m.jsx(s0.Provider,{value:F,children:m.jsx(Y9,{as:l,ownerState:T,className:Nt(E.root,a),ref:n,...b,children:o})})});function G9(e){return dn("MuiFormControlLabel",e)}const Om=pn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),K9=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${nt(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return fn(s,G9,t)},Q9=at("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Om.label}`]:t.label},t.root,t[`labelPlacement${nt(n.labelPlacement)}`]]}})(rn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Om.disabled}`]:{cursor:"default"},[`& .${Om.label}`]:{[`&.${Om.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}}]}))),X9=at("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(rn(({theme:e})=>({[`&.${Om.error}`]:{color:(e.vars||e).palette.error.main}}))),rk=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:l,disabled:c,disableTypography:f,inputRef:u,label:h,labelPlacement:y="end",name:v,onChange:S,required:x,slots:w={},slotProps:b={},value:T,...E}=r,M=ul(),$=c??l.props.disabled??M?.disabled,D=x??l.props.required,I={disabled:$,required:D};["checked","name","onChange","value","inputRef"].forEach(H=>{typeof l.props[H]>"u"&&typeof r[H]<"u"&&(I[H]=r[H])});const A=Jc({props:r,muiFormControl:M,states:["error"]}),_={...r,disabled:$,labelPlacement:y,required:D,error:A.error},W=K9(_),V={slots:w,slotProps:{...s,...b}},[k,z]=Dn("typography",{elementType:It,externalForwardedProps:V,ownerState:_});let F=h;return F!=null&&F.type!==It&&!f&&(F=m.jsx(k,{component:"span",...z,className:Nt(W.label,z?.className),children:F})),m.jsxs(Q9,{className:Nt(W.root,a),ownerState:_,ref:n,...E,children:[C.cloneElement(l,I),D?m.jsxs("div",{children:[F,m.jsxs(X9,{ownerState:_,"aria-hidden":!0,className:W.asterisk,children:[" ","*"]})]}):F]})});function Z9(e){return dn("MuiFormGroup",e)}pn("MuiFormGroup",["root","row","error"]);const J9=e=>{const{classes:t,row:n,error:r}=e;return fn({root:["root",n&&"row",r&&"error"]},Z9,t)},eq=at("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"}}]}),tq=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1,...s}=r,l=ul(),c=Jc({props:r,muiFormControl:l,states:["error"]}),f={...r,row:a,error:c.error},u=J9(f);return m.jsx(eq,{className:Nt(u.root,o),ownerState:f,ref:n,...s})});function nq(e){return dn("MuiFormHelperText",e)}const v2=pn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var b2;const rq=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:c}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${nt(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return fn(f,nq,t)},oq=at("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${nt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(rn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${v2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${v2.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}}]}))),lw=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:l,error:c,filled:f,focused:u,margin:h,required:y,variant:v,...S}=r,x=ul(),w=Jc({props:r,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),b={...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 b.ownerState;const T=rq(b);return m.jsx(oq,{as:s,className:Nt(T.root,a),ref:n,...S,ownerState:b,children:o===" "?b2||(b2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function aq(e){return dn("MuiFormLabel",e)}const _m=pn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),iq=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,c={root:["root",`color${nt(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return fn(c,aq,t)},sq=at("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(rn(({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(Lr()).map(([t])=>({props:{color:t},style:{[`&.${_m.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${_m.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_m.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),lq=at("span",{name:"MuiFormLabel",slot:"Asterisk"})(rn(({theme:e})=>({[`&.${_m.error}`]:{color:(e.vars||e).palette.error.main}}))),cq=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:l="label",disabled:c,error:f,filled:u,focused:h,required:y,...v}=r,S=ul(),x=Jc({props:r,muiFormControl:S,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},b=iq(w);return m.jsxs(sq,{as:l,ownerState:w,className:Nt(b.root,a),ref:n,...v,children:[o,x.required&&m.jsxs(lq,{ownerState:w,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})}),Uf=m6({createStyledComponent:at("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>hn({props:e,name:"MuiGrid"}),useTheme:Xc});function cw(e){return`scale(${e}, ${e**2})`}const uq={entering:{opacity:1,transform:cw(1)},entered:{opacity:1,transform:"none"}},YS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ig=C.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:f,onEntering:u,onExit:h,onExited:y,onExiting:v,style:S,timeout:x="auto",TransitionComponent:w=cl,...b}=t,T=qu(),E=C.useRef(),M=Xc(),$=C.useRef(null),D=yo($,gd(a),n),I=H=>N=>{if(H){const X=$.current;N===void 0?H(X):H(X,N)}},A=I(u),_=I((H,N)=>{Jj(H);const{duration:X,delay:Q,easing:te}=sb({style:S,timeout:x,easing:s},{mode:"enter"});let Z;x==="auto"?(Z=M.transitions.getAutoHeightDuration(H.clientHeight),E.current=Z):Z=X,H.style.transition=[M.transitions.create("opacity",{duration:Z,delay:Q}),M.transitions.create("transform",{duration:YS?Z:Z*.666,delay:Q,easing:te})].join(","),c&&c(H,N)}),W=I(f),V=I(v),k=I(H=>{const{duration:N,delay:X,easing:Q}=sb({style:S,timeout:x,easing:s},{mode:"exit"});let te;x==="auto"?(te=M.transitions.getAutoHeightDuration(H.clientHeight),E.current=te):te=N,H.style.transition=[M.transitions.create("opacity",{duration:te,delay:X}),M.transitions.create("transform",{duration:YS?te:te*.666,delay:YS?X:X||te*.333,easing:Q})].join(","),H.style.opacity=0,H.style.transform=cw(.75),h&&h(H)}),z=I(y),F=H=>{x==="auto"&&T.start(E.current||0,H),r&&r($.current,H)};return m.jsx(w,{appear:o,in:l,nodeRef:$,onEnter:_,onEntered:W,onEntering:A,onExit:k,onExited:z,onExiting:V,addEndListener:F,timeout:x==="auto"?null:x,...b,children:(H,{ownerState:N,...X})=>C.cloneElement(a,{style:{opacity:0,transform:cw(.75),visibility:H==="exited"&&!l?"hidden":void 0,...uq[H],...S,...a.props.style},ref:D,...X})})});ig&&(ig.muiSupportAuto=!0);const dq=e=>{const{classes:t,disableUnderline:n}=e,o=fn({root:["root",!n&&"underline"],input:["input"]},WW,t);return{...t,...o}},fq=at(u0,{shouldForwardProp:e=>Ta(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...l0(e,t),!n.disableUnderline&&t.underline]}})(rn(({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"},[`&.${Ac.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ac.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(.${Ac.disabled}, .${Ac.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ac.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Lr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),pq=at(d0,{name:"MuiInput",slot:"Input",overridesResolver:c0})({}),ok=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:c="input",multiline:f=!1,slotProps:u,slots:h={},type:y="text",...v}=r,S=dq(r),w={root:{ownerState:{disableUnderline:o}}},b=u??s?Ho(u??s,w):w,T=h.root??a.Root??fq,E=h.input??a.Input??pq;return m.jsx(ek,{slots:{root:T,input:E},slotProps:b,fullWidth:l,inputComponent:c,multiline:f,ref:n,type:y,...v,classes:S})});ok.muiName="Input";function hq(e){return dn("MuiInputAdornment",e)}const x2=pn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var S2;const mq=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},gq=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:s}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${nt(o)}`,s,r&&"hiddenLabel",a&&`size${nt(a)}`]};return fn(l,hq,t)},yq=at("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:mq})(rn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${x2.positionStart}&:not(.${x2.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),vq=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:s="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:f,variant:u,...h}=r,y=ul()||{};let v=u;u&&y.variant,y&&!v&&(v=y.variant);const S={...r,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:f,variant:v},x=gq(S);return m.jsx(s0.Provider,{value:null,children:m.jsx(yq,{as:s,ownerState:S,className:Nt(x.root,a),ref:n,...h,children:typeof o=="string"&&!c?m.jsx(It,{color:"textSecondary",children:o}):m.jsxs(C.Fragment,{children:[f==="start"?S2||(S2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});function bq(e){return dn("MuiInputLabel",e)}pn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const xq=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,c={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${nt(r)}`,s],asterisk:[l&&"asterisk"]},f=fn(c,bq,t);return{...t,...f}},Sq=at(cq,{shouldForwardProp:e=>Ta(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_m.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]]}})(rn(({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)"}}]}))),wq=C.forwardRef(function(t,n){const r=hn({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:s,variant:l,className:c,...f}=r,u=ul();let h=s;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const y=Jc({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),v={...r,disableAnimation:o,formControl:u,shrink:h,size:y.size,variant:y.variant,required:y.required,focused:y.focused},S=xq(v);return m.jsx(Sq,{"data-shrink":h,ref:n,className:Nt(S.root,c),...f,ownerState:v,classes:S})});function Cq(e){return dn("MuiLinearProgress",e)}pn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const uw=4,dw=Si`
|
|
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
|
-
`,kq=typeof dw!="string"?Kc`
|
|
229
|
-
animation: ${dw} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
230
|
-
`:null,fw=Si`
|
|
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
|
-
`,Tq=typeof fw!="string"?Kc`
|
|
246
|
-
animation: ${fw} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
247
|
-
`:null,pw=Si`
|
|
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
|
-
`,Eq=typeof pw!="string"?Kc`
|
|
263
|
-
animation: ${pw} 3s infinite linear;
|
|
264
|
-
`:null,Rq=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${nt(r)}`,n],dashed:["dashed",`dashedColor${nt(r)}`],bar1:["bar","bar1",`barColor${nt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${nt(r)}`,n==="buffer"&&`color${nt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return fn(o,Cq,t)},ak=(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),Oq=at("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nt(n.color)}`],t[n.variant]]}})(rn(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t},style:{backgroundColor:ak(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)"}}]}))),Mq=at("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${nt(n.color)}`]]}})(rn(({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(Lr()).map(([t])=>{const n=ak(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Eq||{animation:`${pw} 3s infinite linear`}),$q=at("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${nt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(rn(({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(Lr()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${uw}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${uw}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:kq||{animation:`${dw} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Pq=at("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${nt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(rn(({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(Lr()).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(Lr()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:ak(e,t),transition:`transform .${uw}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:Tq||{animation:`${fw} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Dq=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:s,valueBuffer:l,variant:c="indeterminate",...f}=r,u={...r,color:a,variant:c},h=Rq(u),y=$g(),v={},S={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let x=s-100;y&&(x=-x),S.bar1.transform=`translateX(${x}%)`}if(c==="buffer"&&l!==void 0){let x=(l||0)-100;y&&(x=-x),S.bar2.transform=`translateX(${x}%)`}return m.jsxs(Oq,{className:Nt(h.root,o),ownerState:u,role:"progressbar",...v,ref:n,...f,children:[c==="buffer"?m.jsx(Mq,{className:h.dashed,ownerState:u}):null,m.jsx($q,{className:h.bar1,ownerState:u,style:S.bar1}),c==="determinate"?null:m.jsx(Pq,{className:h.bar2,ownerState:u,style:S.bar2})]})});function Aq(e){return dn("MuiLink",e)}const jq=pn("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Nq=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const a=Ks(e,`palette.${n}.main`)||Ks(e,`palette.${n}`)||t.color;return e.alpha(a,.4)}const r=Ks(e,`palette.${n}.main`,!1)||Ks(e,`palette.${n}`,!1)||t.color,o=Ks(e,`palette.${n}.mainChannel`)||Ks(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ks(r,.4)},w2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Iq=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root",`underline${nt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return fn(a,Aq,t)},Lq=at(It,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${nt(n.underline)}`],n.component==="button"&&t.button]}})(rn(({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(Lr()).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"},[`&.${jq.focusVisible}`]:{outline:"auto"}}}]}))),zq=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiLink"}),o=Xc(),{className:a,color:s="primary",component:l="a",onBlur:c,onFocus:f,TypographyClasses:u,underline:h="always",variant:y="inherit",sx:v,...S}=r,[x,w]=C.useState(!1),b=$=>{Wc($.target)||w(!1),c&&c($)},T=$=>{Wc($.target)&&w(!0),f&&f($)},E={...r,color:s,component:l,focusVisible:x,underline:h,variant:y},M=Iq(E);return m.jsx(Lq,{color:s,className:Nt(M.root,a),classes:u,component:l,onBlur:b,onFocus:T,ref:n,ownerState:E,variant:y,...S,sx:[...w2[s]===void 0?[{color:s}]:[],...Array.isArray(v)?v:[v]],style:{...S.style,...h==="always"&&s!=="inherit"&&!w2[s]&&{"--Link-underlineColor":Nq({theme:o,ownerState:E})}}})}),ad=C.createContext({});function Fq(e){return dn("MuiList",e)}pn("MuiList",["root","padding","dense","subheader"]);const _q=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return fn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Fq,t)},Bq=at("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}}]}),ik=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:f,...u}=r,h=C.useMemo(()=>({dense:l}),[l]),y={...r,component:s,dense:l,disablePadding:c},v=_q(y);return m.jsx(ad.Provider,{value:h,children:m.jsxs(Bq,{as:s,className:Nt(v.root,a),ref:n,ownerState:y,...u,children:[f,o]})})});function Uq(e){return dn("MuiListItemButton",e)}const Vh=pn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Vq=(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]},Hq=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:s,selected:l}=e,f=fn({root:["root",r&&"dense",!a&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},Uq,n);return{...n,...f}},Wq=at(rd,{shouldForwardProp:e=>Ta(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Vq})(rn(({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"}},[`&.${Vh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Vh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Vh.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)}},[`&.${Vh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vh.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}}]}))),kN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:s="div",children:l,dense:c=!1,disableGutters:f=!1,divider:u=!1,focusVisibleClassName:h,selected:y=!1,className:v,...S}=r,x=C.useContext(ad),w=C.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:f}),[o,x.dense,c,f]),b=C.useRef(null);Va(()=>{a&&b.current&&b.current.focus()},[a]);const T={...r,alignItems:o,dense:w.dense,disableGutters:f,divider:u,selected:y},E=Hq(T),M=yo(b,n);return m.jsx(ad.Provider,{value:w,children:m.jsx(Wq,{ref:M,href:S.href||S.to,component:(S.href||S.to)&&s==="div"?"button":s,focusVisibleClassName:Nt(E.focusVisible,h),ownerState:T,className:Nt(E.root,v),...S,classes:E,children:l})})});function qq(e){return dn("MuiListItemIcon",e)}const C2=pn("MuiListItemIcon",["root","alignItemsFlexStart"]),Yq=e=>{const{alignItems:t,classes:n}=e;return fn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},qq,n)},Gq=at("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(rn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Rp=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,s=C.useContext(ad),l={...r,alignItems:s.alignItems},c=Yq(l);return m.jsx(Gq,{className:Nt(c.root,o),ownerState:l,ref:n,...a})});function Kq(e){return dn("MuiListItemText",e)}const Vf=pn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Qq=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return fn({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Kq,t)},Xq=at("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vf.primary}`]:t.primary},{[`& .${Vf.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,[`.${HM.root}:where(& .${Vf.primary})`]:{display:"block"},[`.${HM.root}:where(& .${Vf.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),eu=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:f,secondary:u,secondaryTypographyProps:h,slots:y={},slotProps:v={},...S}=r,{dense:x}=C.useContext(ad);let w=c??o,b=u;const T={...r,disableTypography:s,inset:l,primary:!!w,secondary:!!b,dense:x},E=Qq(T),M={slots:y,slotProps:{primary:f,secondary:h,...v}},[$,D]=Dn("root",{className:Nt(E.root,a),elementType:Xq,externalForwardedProps:{...M,...S},ownerState:T,ref:n}),[I,A]=Dn("primary",{className:E.primary,elementType:It,externalForwardedProps:M,ownerState:T}),[_,W]=Dn("secondary",{className:E.secondary,elementType:It,externalForwardedProps:M,ownerState:T});return w!=null&&w.type!==It&&!s&&(w=m.jsx(I,{variant:x?"body2":"body1",component:A?.variant?void 0:"span",...A,children:w})),b!=null&&b.type!==It&&!s&&(b=m.jsx(_,{variant:"body2",color:"textSecondary",...W,children:b})),m.jsxs($,{...D,children:[w,b]})});function GS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function k2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function TN(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 Hh(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 c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!TN(l,a)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const Zq=C.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:u,variant:h="selectedMenu",...y}=t,v=C.useRef(null),S=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Va(()=>{o&&v.current.focus()},[o]),C.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(E,{direction:M})=>{const $=!v.current.style.width;if(E.clientHeight<v.current.clientHeight&&$){const D=`${xN(Vl(E))}px`;v.current.style[M==="rtl"?"paddingLeft":"paddingRight"]=D,v.current.style.width=`calc(100% + ${D})`}return v.current}}),[]);const x=E=>{const M=v.current,$=E.key;if(E.ctrlKey||E.metaKey||E.altKey){u&&u(E);return}const I=$o(M).activeElement;if($==="ArrowDown")E.preventDefault(),Hh(M,I,f,c,GS);else if($==="ArrowUp")E.preventDefault(),Hh(M,I,f,c,k2);else if($==="Home")E.preventDefault(),Hh(M,null,f,c,GS);else if($==="End")E.preventDefault(),Hh(M,null,f,c,k2);else if($.length===1){const A=S.current,_=$.toLowerCase(),W=performance.now();A.keys.length>0&&(W-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&_!==A.keys[0]&&(A.repeating=!1)),A.lastTime=W,A.keys.push(_);const V=I&&!A.repeating&&TN(I,A);A.previousKeyMatched&&(V||Hh(M,I,!1,c,GS,A))?E.preventDefault():A.previousKeyMatched=!1}u&&u(E)},w=yo(v,n);let b=-1;C.Children.forEach(s,(E,M)=>{if(!C.isValidElement(E)){b===M&&(b+=1,b>=s.length&&(b=-1));return}E.props.disabled||(h==="selectedMenu"&&E.props.selected||b===-1)&&(b=M),b===M&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(b+=1,b>=s.length&&(b=-1))});const T=C.Children.map(s,(E,M)=>{if(M===b){const $={};return a&&($.autoFocus=!0),E.props.tabIndex===void 0&&h==="selectedMenu"&&($.tabIndex=0),C.cloneElement(E,$)}return E});return m.jsx(ik,{role:"menu",ref:w,className:l,onKeyDown:x,tabIndex:o?0:-1,...y,children:T})});function Jq(e){return dn("MuiPopover",e)}pn("MuiPopover",["root","paper"]);function T2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function E2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function R2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function av(e){return typeof e=="function"?e():e}const e7=e=>{const{classes:t}=e;return fn({root:["root"],paper:["paper"]},Jq,t)},t7=at(SN,{name:"MuiPopover",slot:"Root"})({}),EN=at(Ha,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),n7=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:f,className:u,container:h,elevation:y=8,marginThreshold:v=16,open:S,PaperProps:x={},slots:w={},slotProps:b={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:M="auto",TransitionProps:$={},disableScrollLock:D=!1,...I}=r,A=C.useRef(),_={...r,anchorOrigin:s,anchorReference:c,elevation:y,marginThreshold:v,transformOrigin:T,TransitionComponent:E,transitionDuration:M,TransitionProps:$},W=e7(_),V=C.useCallback(()=>{if(c==="anchorPosition")return l;const Te=av(a),ke=(Te&&Te.nodeType===1?Te:$o(A.current).body).getBoundingClientRect();return{top:ke.top+T2(ke,s.vertical),left:ke.left+E2(ke,s.horizontal)}},[a,s.horizontal,s.vertical,l,c]),k=C.useCallback(Te=>({vertical:T2(Te,T.vertical),horizontal:E2(Te,T.horizontal)}),[T.horizontal,T.vertical]),z=C.useCallback(Te=>{const Ce={width:Te.offsetWidth,height:Te.offsetHeight},ke=k(Ce);if(c==="none")return{top:null,left:null,transformOrigin:R2(ke)};const ce=V();let we=ce.top-ke.vertical,Ge=ce.left-ke.horizontal;const Be=we+Ce.height,Ae=Ge+Ce.width,oe=Vl(av(a)),lt=oe.innerHeight-v,Ne=oe.innerWidth-v;if(v!==null&&we<v){const et=we-v;we-=et,ke.vertical+=et}else if(v!==null&&Be>lt){const et=Be-lt;we-=et,ke.vertical+=et}if(v!==null&&Ge<v){const et=Ge-v;Ge-=et,ke.horizontal+=et}else if(Ae>Ne){const et=Ae-Ne;Ge-=et,ke.horizontal+=et}return{top:`${Math.round(we)}px`,left:`${Math.round(Ge)}px`,transformOrigin:R2(ke)}},[a,c,V,k,v]),[F,H]=C.useState(S),N=C.useCallback(()=>{const Te=A.current;if(!Te)return;const Ce=z(Te);Ce.top!==null&&Te.style.setProperty("top",Ce.top),Ce.left!==null&&(Te.style.left=Ce.left),Te.style.transformOrigin=Ce.transformOrigin,H(!0)},[z]);C.useEffect(()=>(D&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[a,D,N]);const X=()=>{N()},Q=()=>{H(!1)};C.useEffect(()=>{S&&N()}),C.useImperativeHandle(o,()=>S?{updatePosition:()=>{N()}}:null,[S,N]),C.useEffect(()=>{if(!S)return;const Te=Gj(()=>{N()}),Ce=Vl(av(a));return Ce.addEventListener("resize",Te),()=>{Te.clear(),Ce.removeEventListener("resize",Te)}},[a,S,N]);let te=M;const Z={slots:{transition:E,...w},slotProps:{transition:$,paper:x,...b}},[K,ne]=Dn("transition",{elementType:ig,externalForwardedProps:Z,ownerState:_,getSlotProps:Te=>({...Te,onEntering:(Ce,ke)=>{Te.onEntering?.(Ce,ke),X()},onExited:Ce=>{Te.onExited?.(Ce),Q()}}),additionalProps:{appear:!0,in:S}});M==="auto"&&!K.muiSupportAuto&&(te=void 0);const le=h||(a?$o(av(a)).body:void 0),[fe,{slots:ae,slotProps:se,...ie}]=Dn("root",{ref:n,elementType:t7,externalForwardedProps:{...Z,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:Kj(typeof b.backdrop=="function"?b.backdrop(_):b.backdrop,{invisible:!0})},container:le,open:S},ownerState:_,className:Nt(W.root,u)}),[pe,me]=Dn("paper",{ref:A,className:W.paper,elementType:EN,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:F?void 0:{opacity:0}},ownerState:_});return m.jsx(fe,{...ie,...!Bc(fe)&&{slots:ae,slotProps:se,disableScrollLock:D},children:m.jsx(K,{...ne,timeout:te,children:m.jsx(pe,{...me,children:f})})})});function r7(e){return dn("MuiMenu",e)}pn("MuiMenu",["root","paper","list"]);const o7={vertical:"top",horizontal:"right"},a7={vertical:"top",horizontal:"left"},i7=e=>{const{classes:t}=e;return fn({root:["root"],paper:["paper"],list:["list"]},r7,t)},s7=at(n7,{shouldForwardProp:e=>Ta(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),l7=at(EN,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),c7=at(Zq,{name:"MuiMenu",slot:"List"})({outline:0}),yd=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:u,PaperProps:h={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:S,...x}={},variant:w="selectedMenu",slots:b={},slotProps:T={},...E}=r,M=$g(),$={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:S,PaperProps:h,transitionDuration:v,TransitionProps:x,variant:w},D=i7($),I=o&&!l&&u,A=C.useRef(null),_=(te,Z)=>{A.current&&A.current.adjustStyleForScrollbar(te,{direction:M?"rtl":"ltr"}),S&&S(te,Z)},W=te=>{te.key==="Tab"&&(te.preventDefault(),f&&f(te,"tabKeyDown"))};let V=-1;C.Children.map(a,(te,Z)=>{C.isValidElement(te)&&(te.props.disabled||(w==="selectedMenu"&&te.props.selected||V===-1)&&(V=Z))});const k={slots:b,slotProps:{list:c,transition:x,paper:h,...T}},z=qs({elementType:b.root,externalSlotProps:T.root,ownerState:$,className:[D.root,s]}),[F,H]=Dn("paper",{className:D.paper,elementType:l7,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:$}),[N,X]=Dn("list",{className:Nt(D.list,c.className),elementType:c7,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:te=>({...te,onKeyDown:Z=>{W(Z),te.onKeyDown?.(Z)}}),ownerState:$}),Q=typeof k.slotProps.transition=="function"?k.slotProps.transition($):k.slotProps.transition;return m.jsx(s7,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?o7:a7,slots:{root:b.root,paper:F,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:z,paper:H,backdrop:typeof T.backdrop=="function"?T.backdrop($):T.backdrop,transition:{...Q,onEntering:(...te)=>{_(...te),Q?.onEntering?.(...te)}}},open:u,ref:n,transitionDuration:v,ownerState:$,...E,classes:y,children:m.jsx(N,{actions:A,autoFocus:o&&(V===-1||l),autoFocusItem:I,variant:w,...X,children:a})})});function u7(e){return dn("MuiMenuItem",e)}const Wh=pn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),d7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},f7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,c=fn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},u7,s);return{...s,...c}},p7=at(rd,{shouldForwardProp:e=>Ta(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:d7})(rn(({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"}},[`&.${Wh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Wh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Wh.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)}},[`&.${Wh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${y2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${y2.inset}`]:{marginLeft:52},[`& .${Vf.root}`]:{marginTop:0,marginBottom:0},[`& .${Vf.inset}`]:{paddingLeft:36},[`& .${C2.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,[`& .${C2.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ca=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:f,role:u="menuitem",tabIndex:h,className:y,...v}=r,S=C.useContext(ad),x=C.useMemo(()=>({dense:s||S.dense||!1,disableGutters:c}),[S.dense,s,c]),w=C.useRef(null);Va(()=>{o&&w.current&&w.current.focus()},[o]);const b={...r,dense:x.dense,divider:l,disableGutters:c},T=f7(r),E=yo(w,n);let M;return r.disabled||(M=h!==void 0?h:-1),m.jsx(ad.Provider,{value:x,children:m.jsx(p7,{ref:E,role:u,tabIndex:M,component:a,focusVisibleClassName:Nt(T.focusVisible,f),className:Nt(T.root,y),...v,ownerState:b,classes:T})})});function h7(e){return dn("MuiNativeSelect",e)}const sk=pn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),m7=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${nt(n)}`,a&&"iconOpen",r&&"disabled"]};return fn(l,h7,t)},RN=at("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${sk.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}}}]})),g7=at(RN,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ta,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${sk.multiple}`]:t.multiple}]}})({}),ON=at("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${sk.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}}]})),y7=at(ON,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})({}),v7=C.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:s,inputRef:l,variant:c="standard",...f}=t,u={...t,disabled:o,variant:c,error:a},h=m7(u);return m.jsxs(C.Fragment,{children:[m.jsx(g7,{ownerState:u,className:Nt(h.select,r),disabled:o,ref:l||n,...f}),t.multiple?null:m.jsx(y7,{as:s,ownerState:u,className:h.icon})]})});var O2;const b7=at("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ta})({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%"}),x7=at("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ta})(rn(({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 S7(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",c={...e,notched:a,withLabel:l};return m.jsx(b7,{"aria-hidden":!0,className:r,ownerState:c,...s,children:m.jsx(x7,{ownerState:c,children:l?m.jsx("span",{children:o}):O2||(O2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const w7=e=>{const{classes:t}=e,r=fn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qW,t);return{...t,...r}},C7=at(u0,{shouldForwardProp:e=>Ta(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:l0})(rn(({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 .${Ni.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ni.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ni.focused} .${Ni.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Lr()).map(([n])=>({props:{color:n},style:{[`&.${Ni.focused} .${Ni.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ni.error} .${Ni.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ni.disabled} .${Ni.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"}}]}})),k7=at(S7,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(rn(({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}})),T7=at(d0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:c0})(rn(({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}}]}))),lk=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:f,slots:u={},slotProps:h={},type:y="text",...v}=r,S=w7(r),x=ul(),w=Jc({props:r,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:a,hiddenLabel:w.hiddenLabel,multiline:c,size:w.size,type:y},T=u.root??o.Root??C7,E=u.input??o.Input??T7,[M,$]=Dn("notchedOutline",{elementType:k7,className:S.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:l!=null&&l!==""&&w.required?m.jsxs(C.Fragment,{children:[l," ","*"]}):l}});return m.jsx(ek,{slots:{root:T,input:E},slotProps:h,renderSuffix:D=>m.jsx(M,{...$,notched:typeof f<"u"?f:!!(D.startAdornment||D.filled||D.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:y,...v,classes:{...S,notchedOutline:null}})});lk.muiName="Input";const E7={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function MN(e){return dn("MuiSelect",e)}const qh=pn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var M2;const R7=at(RN,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qh.select}`]:t.select},{[`&.${qh.select}`]:t[n.variant]},{[`&.${qh.error}`]:t.error},{[`&.${qh.multiple}`]:t.multiple}]}})({[`&.${qh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),O7=at(ON,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})({}),M7=at("input",{shouldForwardProp:e=>r0(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function $2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function $7(e){return e==null||typeof e=="string"&&!e.trim()}const P7=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${nt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return fn(l,MN,t)},D7=C.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:f,defaultValue:u,disabled:h,displayEmpty:y,error:v=!1,IconComponent:S,inputRef:x,labelId:w,MenuProps:b={},multiple:T,name:E,onBlur:M,onChange:$,onClose:D,onFocus:I,onOpen:A,open:_,readOnly:W,renderValue:V,required:k,SelectDisplayProps:z={},tabIndex:F,type:H,value:N,variant:X="standard",...Q}=t,[te,Z]=_c({controlled:N,default:u,name:"Select"}),[K,ne]=_c({controlled:_,default:f,name:"Select"}),le=C.useRef(null),fe=C.useRef(null),[ae,se]=C.useState(null),{current:ie}=C.useRef(_!=null),[pe,me]=C.useState(),Te=yo(n,x),Ce=C.useCallback(st=>{fe.current=st,st&&se(st)},[]),ke=ae?.parentNode;C.useImperativeHandle(Te,()=>({focus:()=>{fe.current.focus()},node:le.current,value:te}),[te]),C.useEffect(()=>{f&&K&&ae&&!ie&&(me(s?null:ke.clientWidth),fe.current.focus())},[ae,s]),C.useEffect(()=>{a&&fe.current.focus()},[a]),C.useEffect(()=>{if(!w)return;const st=$o(fe.current).getElementById(w);if(st){const jt=()=>{getSelection().isCollapsed&&fe.current.focus()};return st.addEventListener("click",jt),()=>{st.removeEventListener("click",jt)}}},[w]);const ce=(st,jt)=>{st?A&&A(jt):D&&D(jt),ie||(me(s?null:ke.clientWidth),ne(st))},we=st=>{st.button===0&&(st.preventDefault(),fe.current.focus(),ce(!0,st))},Ge=st=>{ce(!1,st)},Be=C.Children.toArray(l),Ae=st=>{const jt=Be.find(qt=>qt.props.value===st.target.value);jt!==void 0&&(Z(jt.props.value),$&&$(st,jt))},oe=st=>jt=>{let qt;if(jt.currentTarget.hasAttribute("tabindex")){if(T){qt=Array.isArray(te)?te.slice():[];const mn=te.indexOf(st.props.value);mn===-1?qt.push(st.props.value):qt.splice(mn,1)}else qt=st.props.value;if(st.props.onClick&&st.props.onClick(jt),te!==qt&&(Z(qt),$)){const mn=jt.nativeEvent||jt,$n=new mn.constructor(mn.type,mn);Object.defineProperty($n,"target",{writable:!0,value:{value:qt,name:E}}),$($n,st)}T||ce(!1,jt)}},lt=st=>{W||[" ","ArrowUp","ArrowDown","Enter"].includes(st.key)&&(st.preventDefault(),ce(!0,st))},Ne=ae!==null&&K,et=st=>{!Ne&&M&&(Object.defineProperty(st,"target",{writable:!0,value:{value:te,name:E}}),M(st))};delete Q["aria-invalid"];let mt,Wt;const zt=[];let tt=!1;(db({value:te})||y)&&(V?mt=V(te):tt=!0);const Je=Be.map(st=>{if(!C.isValidElement(st))return null;let jt;if(T){if(!Array.isArray(te))throw new Error(Ul(2));jt=te.some(qt=>$2(qt,st.props.value)),jt&&tt&&zt.push(st.props.children)}else jt=$2(te,st.props.value),jt&&tt&&(Wt=st.props.children);return C.cloneElement(st,{"aria-selected":jt?"true":"false",onClick:oe(st),onKeyUp:qt=>{qt.key===" "&&qt.preventDefault(),st.props.onKeyUp&&st.props.onKeyUp(qt)},role:"option",selected:jt,value:void 0,"data-value":st.props.value})});tt&&(T?zt.length===0?mt=null:mt=zt.reduce((st,jt,qt)=>(st.push(jt),qt<zt.length-1&&st.push(", "),st),[]):mt=Wt);let ct=pe;!s&&ie&&ae&&(ct=ke.clientWidth);let Ie;typeof F<"u"?Ie=F:Ie=h?null:0;const he=z.id||(E?`mui-component-select-${E}`:void 0),qe={...t,variant:X,value:te,open:Ne,error:v},De=P7(qe),wt={...b.PaperProps,...typeof b.slotProps?.paper=="function"?b.slotProps.paper(qe):b.slotProps?.paper},Ct={...b.MenuListProps,...typeof b.slotProps?.list=="function"?b.slotProps.list(qe):b.slotProps?.list},yt=Qc();return m.jsxs(C.Fragment,{children:[m.jsx(R7,{as:"div",ref:Ce,tabIndex:Ie,role:"combobox","aria-controls":Ne?yt:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":Ne?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[w,he].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":k?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:lt,onMouseDown:h||W?null:we,onBlur:et,onFocus:I,...z,ownerState:qe,className:Nt(z.className,De.select,c),id:he,children:$7(mt)?M2||(M2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):mt}),m.jsx(M7,{"aria-invalid":v,value:Array.isArray(te)?te.join(","):te,name:E,ref:le,"aria-hidden":!0,onChange:Ae,tabIndex:-1,disabled:h,className:De.nativeInput,autoFocus:a,required:k,...Q,ownerState:qe}),m.jsx(O7,{as:S,className:De.icon,ownerState:qe}),m.jsx(yd,{id:`menu-${E||""}`,anchorEl:ke,open:Ne,onClose:Ge,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":w,role:"listbox","aria-multiselectable":T?"true":void 0,disableListWrap:!0,id:yt,...Ct},paper:{...wt,style:{minWidth:ct,...wt!=null?wt.style:null}}},children:Je})]})}),A7=e=>{const{classes:t}=e,r=fn({root:["root"]},MN,t);return{...t,...r}},ck={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ta(e)&&e!=="variant"},j7=at(ok,ck)(""),N7=at(lk,ck)(""),I7=at(nk,ck)(""),$N=C.forwardRef(function(t,n){const r=hn({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:u=mN,id:h,input:y,inputProps:v,label:S,labelId:x,MenuProps:w,multiple:b=!1,native:T=!1,onClose:E,onOpen:M,open:$,renderValue:D,SelectDisplayProps:I,variant:A="outlined",..._}=r,W=T?v7:D7,V=ul(),k=Jc({props:r,muiFormControl:V,states:["variant","error"]}),z=k.variant||A,F={...r,variant:z,classes:s},H=A7(F),{root:N,...X}=H,Q=y||{standard:m.jsx(j7,{ownerState:F}),outlined:m.jsx(N7,{label:S,ownerState:F}),filled:m.jsx(I7,{ownerState:F})}[z],te=yo(n,gd(Q));return m.jsx(C.Fragment,{children:C.cloneElement(Q,{inputComponent:W,inputProps:{children:a,error:k.error,IconComponent:u,variant:z,type:void 0,multiple:b,...T?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:x,MenuProps:w,onClose:E,onOpen:M,open:$,renderValue:D,SelectDisplayProps:{id:h,...I}},...v,classes:v?Ho(X,v.classes):X,...y?y.props.inputProps:{}},...(b&&T||f)&&z==="outlined"?{notched:!0}:{},ref:te,className:Nt(Q.props.className,l,H.root),...!y&&{variant:z},..._})})});$N.muiName="Select";function L7(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const z7=2;function wf(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function PN(e,t){return e-t}function P2(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 iv(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 fb(e,t,n){return(e-t)*100/(n-t)}function F7(e,t,n){return(n-t)*e+t}function _7(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 B7(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(_7(t)))}function D2({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(PN)}function sv({sliderRef:e,activeIndex:t,setActive:n}){const r=$o(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 lv(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?L7(e,t):!1}const U7={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}%`})}},V7=e=>e;let cv;function A2(){return cv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?cv=CSS.supports("touch-action","none"):cv=!0),cv}function H7(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:s=!1,max:l=100,min:c=0,name:f,onChange:u,onChangeCommitted:h,orientation:y="horizontal",rootRef:v,scale:S=V7,step:x=1,shiftStep:w=10,tabIndex:b,value:T}=e,E=C.useRef(void 0),[M,$]=C.useState(-1),[D,I]=C.useState(-1),[A,_]=C.useState(!1),W=C.useRef(0),V=C.useRef(null),[k,z]=_c({controlled:T,default:n??c,name:"Slider"}),F=u&&((tt,Je,ct)=>{const Ie=tt.nativeEvent||tt,he=new Ie.constructor(Ie.type,Ie);Object.defineProperty(he,"target",{writable:!0,value:{value:Je,name:f}}),V.current=Je,u(he,Je,ct)}),H=Array.isArray(k);let N=H?k.slice().sort(PN):[k];N=N.map(tt=>tt==null?c:Lf(tt,c,l));const X=s===!0&&x!==null?[...Array(Math.floor((l-c)/x)+1)].map((tt,Je)=>({value:c+x*Je})):s||[],Q=X.map(tt=>tt.value),[te,Z]=C.useState(-1),K=C.useRef(null),ne=yo(v,K),le=tt=>Je=>{const ct=Number(Je.currentTarget.getAttribute("data-index"));Wc(Je.target)&&Z(ct),I(ct),tt?.onFocus?.(Je)},fe=tt=>Je=>{Wc(Je.target)||Z(-1),I(-1),tt?.onBlur?.(Je)},ae=(tt,Je)=>{const ct=Number(tt.currentTarget.getAttribute("data-index")),Ie=N[ct],he=Q.indexOf(Ie);let qe=Je;if(X&&x==null){const De=Q[Q.length-1];qe>=De?qe=De:qe<=Q[0]?qe=Q[0]:qe=qe<Ie?Q[he-1]:Q[he+1]}if(qe=Lf(qe,c,l),H){o&&(qe=Lf(qe,N[ct-1]||-1/0,N[ct+1]||1/0));const De=qe;qe=D2({values:N,newValue:qe,index:ct});let wt=ct;o||(wt=qe.indexOf(De)),sv({sliderRef:K,activeIndex:wt})}z(qe),Z(ct),F&&!lv(qe,k)&&F(tt,qe,ct),h&&h(tt,V.current??qe)},se=tt=>Je=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Je.key)){Je.preventDefault();const ct=Number(Je.currentTarget.getAttribute("data-index")),Ie=N[ct];let he=null;if(x!=null){const qe=Je.shiftKey?w:x;switch(Je.key){case"ArrowUp":he=wf(Ie,qe,1,c,l);break;case"ArrowRight":he=wf(Ie,qe,a?-1:1,c,l);break;case"ArrowDown":he=wf(Ie,qe,-1,c,l);break;case"ArrowLeft":he=wf(Ie,qe,a?1:-1,c,l);break;case"PageUp":he=wf(Ie,w,1,c,l);break;case"PageDown":he=wf(Ie,w,-1,c,l);break;case"Home":he=c;break;case"End":he=l;break}}else if(X){const qe=Q[Q.length-1],De=Q.indexOf(Ie),wt=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ct=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];wt.includes(Je.key)?De===0?he=Q[0]:he=Q[De-1]:Ct.includes(Je.key)&&(De===Q.length-1?he=qe:he=Q[De+1])}he!=null&&ae(Je,he)}tt?.onKeyDown?.(Je)};Va(()=>{r&&K.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&M!==-1&&$(-1),r&&te!==-1&&Z(-1);const ie=tt=>Je=>{tt.onChange?.(Je),ae(Je,Je.target.valueAsNumber)},pe=C.useRef(void 0);let me=y;a&&y==="horizontal"&&(me+="-reverse");const Te=({finger:tt,move:Je=!1})=>{const{current:ct}=K,{width:Ie,height:he,bottom:qe,left:De}=ct.getBoundingClientRect();let wt;me.startsWith("vertical")?wt=(qe-tt.y)/he:wt=(tt.x-De)/Ie,me.includes("-reverse")&&(wt=1-wt);let Ct;if(Ct=F7(wt,c,l),x)Ct=B7(Ct,x,c);else{const st=P2(Q,Ct);Ct=Q[st]}Ct=Lf(Ct,c,l);let yt=0;if(H){Je?yt=pe.current:yt=P2(N,Ct),o&&(Ct=Lf(Ct,N[yt-1]||-1/0,N[yt+1]||1/0));const st=Ct;Ct=D2({values:N,newValue:Ct,index:yt}),o&&Je||(yt=Ct.indexOf(st),pe.current=yt)}return{newValue:Ct,activeIndex:yt}},Ce=Ao(tt=>{const Je=iv(tt,E);if(!Je)return;if(W.current+=1,tt.type==="mousemove"&&tt.buttons===0){ke(tt);return}const{newValue:ct,activeIndex:Ie}=Te({finger:Je,move:!0});sv({sliderRef:K,activeIndex:Ie,setActive:$}),z(ct),!A&&W.current>z7&&_(!0),F&&!lv(ct,k)&&F(tt,ct,Ie)}),ke=Ao(tt=>{const Je=iv(tt,E);if(_(!1),!Je)return;const{newValue:ct}=Te({finger:Je,move:!0});$(-1),tt.type==="touchend"&&I(-1),h&&h(tt,V.current??ct),E.current=void 0,we()}),ce=Ao(tt=>{if(r)return;A2()||tt.preventDefault();const Je=tt.changedTouches[0];Je!=null&&(E.current=Je.identifier);const ct=iv(tt,E);if(ct!==!1){const{newValue:he,activeIndex:qe}=Te({finger:ct});sv({sliderRef:K,activeIndex:qe,setActive:$}),z(he),F&&!lv(he,k)&&F(tt,he,qe)}W.current=0;const Ie=$o(K.current);Ie.addEventListener("touchmove",Ce,{passive:!0}),Ie.addEventListener("touchend",ke,{passive:!0})}),we=C.useCallback(()=>{const tt=$o(K.current);tt.removeEventListener("mousemove",Ce),tt.removeEventListener("mouseup",ke),tt.removeEventListener("touchmove",Ce),tt.removeEventListener("touchend",ke)},[ke,Ce]);C.useEffect(()=>{const{current:tt}=K;return tt.addEventListener("touchstart",ce,{passive:A2()}),()=>{tt.removeEventListener("touchstart",ce),we()}},[we,ce]),C.useEffect(()=>{r&&we()},[r,we]);const Ge=tt=>Je=>{if(tt.onMouseDown?.(Je),r||Je.defaultPrevented||Je.button!==0)return;Je.preventDefault();const ct=iv(Je,E);if(ct!==!1){const{newValue:he,activeIndex:qe}=Te({finger:ct});sv({sliderRef:K,activeIndex:qe,setActive:$}),z(he),F&&!lv(he,k)&&F(Je,he,qe)}W.current=0;const Ie=$o(K.current);Ie.addEventListener("mousemove",Ce,{passive:!0}),Ie.addEventListener("mouseup",ke)},Be=fb(H?N[0]:c,c,l),Ae=fb(N[N.length-1],c,l)-Be,oe=(tt={})=>{const Je=Xu(tt),ct={onMouseDown:Ge(Je||{})},Ie={...Je,...ct};return{...tt,ref:ne,...Ie}},lt=tt=>Je=>{tt.onMouseOver?.(Je);const ct=Number(Je.currentTarget.getAttribute("data-index"));I(ct)},Ne=tt=>Je=>{tt.onMouseLeave?.(Je),I(-1)},et=(tt={})=>{const Je=Xu(tt),ct={onMouseOver:lt(Je||{}),onMouseLeave:Ne(Je||{})};return{...tt,...Je,...ct}},mt=tt=>({pointerEvents:M!==-1&&M!==tt?"none":void 0});let Wt;return y==="vertical"&&(Wt=a?"vertical-rl":"vertical-lr"),{active:M,axis:me,axisProps:U7,dragging:A,focusedThumbIndex:te,getHiddenInputProps:(tt={})=>{const Je=Xu(tt),ct={onChange:ie(Je||{}),onFocus:le(Je||{}),onBlur:fe(Je||{}),onKeyDown:se(Je||{})},Ie={...Je,...ct};return{tabIndex:b,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":S(l),"aria-valuemin":S(c),name:f,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...tt,...Ie,style:{...E7,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Wt}}},getRootProps:oe,getThumbProps:et,marks:X,open:D,range:H,rootRef:ne,trackLeap:Ae,trackOffset:Be,values:N,getThumbStyle:mt}}const W7=e=>!e||!Bc(e);function q7(e){return dn("MuiSlider",e)}const Hi=pn("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"]),Y7=e=>{const{open:t}=e;return{offset:Nt(t&&Hi.valueLabelOpen),circle:Hi.valueLabelCircle,label:Hi.valueLabelLabel}};function G7(e){const{children:t,className:n,value:r}=e,o=Y7(e);return t?C.cloneElement(t,{className:t.props.className},m.jsxs(C.Fragment,{children:[t.props.children,m.jsx("span",{className:Nt(o.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:r})})})]})):null}function j2(e){return e}const K7=at("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nt(n.color)}`],n.size!=="medium"&&t[`size${nt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(rn(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Hi.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Hi.dragging}`]:{[`& .${Hi.thumb}, & .${Hi.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Lr()).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}}]}))),Q7=at("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}}]}),X7=at("span",{name:"MuiSlider",slot:"Track"})(rn(({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(Lr()).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)})}}}))]}))),Z7=at("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${nt(n.color)}`],n.size!=="medium"&&t[`thumbSize${nt(n.size)}`]]}})(rn(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Hi.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Hi.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Hi.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),J7=at(G7,{name:"MuiSlider",slot:"ValueLabel"})(rn(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Hi.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Hi.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),eY=at("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>r0(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(rn(({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}}]}))),tY=at("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>r0(e)&&e!=="markLabelActive"})(rn(({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}}]}))),nY=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:s,color:l,size:c}=e,f={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${nt(l)}`,c&&`size${nt(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${nt(c)}`,l&&`thumbColor${nt(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return fn(f,q7,s)},rY=({children:e})=>e,oY=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSlider"}),o=$g(),{"aria-label":a,"aria-valuetext":s,"aria-labelledby":l,component:c="span",components:f={},componentsProps:u={},color:h="primary",classes:y,className:v,disableSwap:S=!1,disabled:x=!1,getAriaLabel:w,getAriaValueText:b,marks:T=!1,max:E=100,min:M=0,name:$,onChange:D,onChangeCommitted:I,orientation:A="horizontal",shiftStep:_=10,size:W="medium",step:V=1,scale:k=j2,slotProps:z,slots:F,tabIndex:H,track:N="normal",value:X,valueLabelDisplay:Q="off",valueLabelFormat:te=j2,...Z}=r,K={...r,isRtl:o,max:E,min:M,classes:y,disabled:x,disableSwap:S,orientation:A,marks:T,color:h,size:W,step:V,shiftStep:_,scale:k,track:N,valueLabelDisplay:Q,valueLabelFormat:te},{axisProps:ne,getRootProps:le,getHiddenInputProps:fe,getThumbProps:ae,open:se,active:ie,axis:pe,focusedThumbIndex:me,range:Te,dragging:Ce,marks:ke,values:ce,trackOffset:we,trackLeap:Ge,getThumbStyle:Be}=H7({...K,rootRef:n});K.marked=ke.length>0&&ke.some(Jt=>Jt.label),K.dragging=Ce,K.focusedThumbIndex=me;const Ae=nY(K),oe=F?.root??f.Root??K7,lt=F?.rail??f.Rail??Q7,Ne=F?.track??f.Track??X7,et=F?.thumb??f.Thumb??Z7,mt=F?.valueLabel??f.ValueLabel??J7,Wt=F?.mark??f.Mark??eY,zt=F?.markLabel??f.MarkLabel??tY,tt=F?.input??f.Input??"input",Je=z?.root??u.root,ct=z?.rail??u.rail,Ie=z?.track??u.track,he=z?.thumb??u.thumb,qe=z?.valueLabel??u.valueLabel,De=z?.mark??u.mark,wt=z?.markLabel??u.markLabel,Ct=z?.input??u.input,yt=qs({elementType:oe,getSlotProps:le,externalSlotProps:Je,externalForwardedProps:Z,additionalProps:{...W7(oe)&&{as:c}},ownerState:{...K,...Je?.ownerState},className:[Ae.root,v]}),st=qs({elementType:lt,externalSlotProps:ct,ownerState:K,className:Ae.rail}),jt=qs({elementType:Ne,externalSlotProps:Ie,additionalProps:{style:{...ne[pe].offset(we),...ne[pe].leap(Ge)}},ownerState:{...K,...Ie?.ownerState},className:Ae.track}),qt=qs({elementType:et,getSlotProps:ae,externalSlotProps:he,ownerState:{...K,...he?.ownerState},className:Ae.thumb}),mn=qs({elementType:mt,externalSlotProps:qe,ownerState:{...K,...qe?.ownerState},className:Ae.valueLabel}),$n=qs({elementType:Wt,externalSlotProps:De,ownerState:K,className:Ae.mark}),_n=qs({elementType:zt,externalSlotProps:wt,ownerState:K,className:Ae.markLabel}),Un=qs({elementType:tt,getSlotProps:fe,externalSlotProps:Ct,ownerState:K});return m.jsxs(oe,{...yt,children:[m.jsx(lt,{...st}),m.jsx(Ne,{...jt}),ke.filter(Jt=>Jt.value>=M&&Jt.value<=E).map((Jt,An)=>{const xe=fb(Jt.value,M,E),Vn=ne[pe].offset(xe);let Rn;return N===!1?Rn=ce.includes(Jt.value):Rn=N==="normal"&&(Te?Jt.value>=ce[0]&&Jt.value<=ce[ce.length-1]:Jt.value<=ce[0])||N==="inverted"&&(Te?Jt.value<=ce[0]||Jt.value>=ce[ce.length-1]:Jt.value>=ce[0]),m.jsxs(C.Fragment,{children:[m.jsx(Wt,{"data-index":An,...$n,...!Bc(Wt)&&{markActive:Rn},style:{...Vn,...$n.style},className:Nt($n.className,Rn&&Ae.markActive)}),Jt.label!=null?m.jsx(zt,{"aria-hidden":!0,"data-index":An,..._n,...!Bc(zt)&&{markLabelActive:Rn},style:{...Vn,..._n.style},className:Nt(Ae.markLabel,_n.className,Rn&&Ae.markLabelActive),children:Jt.label}):null]},An)}),ce.map((Jt,An)=>{const xe=fb(Jt,M,E),Vn=ne[pe].offset(xe),Rn=Q==="off"?rY:mt;return m.jsx(Rn,{...!Bc(Rn)&&{valueLabelFormat:te,valueLabelDisplay:Q,value:typeof te=="function"?te(k(Jt),An):te,index:An,open:se===An||ie===An||Q==="on",disabled:x},...mn,children:m.jsx(et,{"data-index":An,...qt,className:Nt(Ae.thumb,qt.className,ie===An&&Ae.active,me===An&&Ae.focusVisible),style:{...Vn,...Be(An),...qt.style},children:m.jsx(tt,{"data-index":An,"aria-label":w?w(An):a,"aria-valuenow":k(Jt),"aria-labelledby":l,"aria-valuetext":b?b(k(Jt),An):s,value:ce[An],...Un})})},An)})]})});function aY(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=qu();C.useEffect(()=>{if(!o)return;function b(T){T.defaultPrevented||T.key==="Escape"&&r?.(T,"escapeKeyDown")}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,r]);const l=Ao((b,T)=>{r?.(b,T)}),c=Ao(b=>{!r||b==null||s.start(b,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&c(t),s.clear),[o,t,c,s]);const f=b=>{r?.(b,"clickaway")},u=s.clear,h=C.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),y=b=>T=>{const E=b.onBlur;E?.(T),h()},v=b=>T=>{const E=b.onFocus;E?.(T),u()},S=b=>T=>{const E=b.onMouseEnter;E?.(T),u()},x=b=>T=>{const E=b.onMouseLeave;E?.(T),h()};return C.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,o,h,u]),{getRootProps:(b={})=>{const T={...Xu(e),...Xu(b)};return{role:"presentation",...b,...T,onBlur:y(T),onFocus:v(T),onMouseEnter:S(T),onMouseLeave:x(T)}},onClickAway:f}}function iY(e){return dn("MuiSnackbarContent",e)}pn("MuiSnackbarContent",["root","message","action"]);const sY=e=>{const{classes:t}=e;return fn({root:["root"],action:["action"],message:["message"]},iY,t)},lY=at(Ha,{name:"MuiSnackbarContent",slot:"Root"})(rn(({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(W1(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:W1(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),cY=at("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),uY=at("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),dY=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:s,role:l="alert",...c}=r,f=r,u=sY(f);return m.jsxs(lY,{role:l,elevation:6,className:Nt(u.root,a),ownerState:f,ref:n,...c,children:[m.jsx(cY,{className:u.message,ownerState:f,children:s}),o?m.jsx(uY,{className:u.action,ownerState:f,children:o}):null]})});function fY(e){return dn("MuiSnackbar",e)}pn("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pY=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${nt(n.vertical)}${nt(n.horizontal)}`]};return fn(r,fY,t)},hY=at("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${nt(n.anchorOrigin.vertical)}${nt(n.anchorOrigin.horizontal)}`]]}})(rn(({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%)"}}}]}))),f0=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSnackbar"}),o=Xc(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:u,className:h,ClickAwayListenerProps:y,ContentProps:v,disableWindowBlurListener:S=!1,message:x,onBlur:w,onClose:b,onFocus:T,onMouseEnter:E,onMouseLeave:M,open:$,resumeHideDuration:D,slots:I={},slotProps:A={},TransitionComponent:_,transitionDuration:W=a,TransitionProps:{onEnter:V,onExited:k,...z}={},...F}=r,H={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:f,disableWindowBlurListener:S,TransitionComponent:_,transitionDuration:W},N=pY(H),{getRootProps:X,onClickAway:Q}=aY({...H}),[te,Z]=C.useState(!0),K=ce=>{Z(!0),k&&k(ce)},ne=(ce,we)=>{Z(!1),V&&V(ce,we)},le={slots:{transition:_,...I},slotProps:{content:v,clickAwayListener:y,transition:z,...A}},[fe,ae]=Dn("root",{ref:n,className:[N.root,h],elementType:hY,getSlotProps:X,externalForwardedProps:{...le,...F},ownerState:H}),[se,{ownerState:ie,...pe}]=Dn("clickAwayListener",{elementType:X8,externalForwardedProps:le,getSlotProps:ce=>({onClickAway:(...we)=>{const Ge=we[0];ce.onClickAway?.(...we),!Ge?.defaultMuiPrevented&&Q(...we)}}),ownerState:H}),[me,Te]=Dn("content",{elementType:dY,shouldForwardComponentProp:!0,externalForwardedProps:le,additionalProps:{message:x,action:s},ownerState:H}),[Ce,ke]=Dn("transition",{elementType:ig,externalForwardedProps:le,getSlotProps:ce=>({onEnter:(...we)=>{ce.onEnter?.(...we),ne(...we)},onExited:(...we)=>{ce.onExited?.(...we),K(...we)}}),additionalProps:{appear:!0,in:$,timeout:W,direction:l==="top"?"down":"up"},ownerState:H});return!$&&te?null:m.jsx(se,{...pe,...I.clickAwayListener&&{ownerState:ie},children:m.jsx(fe,{...ae,children:m.jsx(Ce,{...ke,children:u||m.jsx(me,{...Te})})})})});function mY(e){return dn("MuiTooltip",e)}const fo=pn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function gY(e){return Math.round(e*1e5)/1e5}const yY=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${nt(a.split("-")[0])}`],arrow:["arrow"]};return fn(s,mY,t)},vY=at(i0,{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]}})(rn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${fo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${fo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${fo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${fo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${fo.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${fo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${fo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${fo.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),bY=at("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${nt(n.placement.split("-")[0])}`]]}})(rn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${fo.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${fo.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${fo.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${gY(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${fo.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${fo.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${fo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${fo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${fo.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${fo.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),xY=at("span",{name:"MuiTooltip",slot:"Arrow"})(rn(({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 uv=!1;const N2=new o0;let Yh={x:0,y:0};function dv(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Xi=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:l={},componentsProps:c={},describeChild:f=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:y=!1,disableTouchListener:v=!1,enterDelay:S=100,enterNextDelay:x=0,enterTouchDelay:w=700,followCursor:b=!1,id:T,leaveDelay:E=0,leaveTouchDelay:M=1500,onClose:$,onOpen:D,open:I,placement:A="bottom",PopperComponent:_,PopperProps:W={},slotProps:V={},slots:k={},title:z,TransitionComponent:F,TransitionProps:H,...N}=r,X=C.isValidElement(a)?a:m.jsx("span",{children:a}),Q=Xc(),te=$g(),[Z,K]=C.useState(),[ne,le]=C.useState(null),fe=C.useRef(!1),ae=y||b,se=qu(),ie=qu(),pe=qu(),me=qu(),[Te,Ce]=_c({controlled:I,default:!1,name:"Tooltip",state:"open"});let ke=Te;const ce=Qc(T),we=C.useRef(),Ge=Ao(()=>{we.current!==void 0&&(document.body.style.WebkitUserSelect=we.current,we.current=void 0),me.clear()});C.useEffect(()=>Ge,[Ge]);const Be=en=>{N2.clear(),uv=!0,Ce(!0),D&&!ke&&D(en)},Ae=Ao(en=>{N2.start(800+E,()=>{uv=!1}),Ce(!1),$&&ke&&$(en),se.start(Q.transitions.duration.shortest,()=>{fe.current=!1})}),oe=en=>{fe.current&&en.type!=="touchstart"||(Z&&Z.removeAttribute("title"),ie.clear(),pe.clear(),S||uv&&x?ie.start(uv?x:S,()=>{Be(en)}):Be(en))},lt=en=>{ie.clear(),pe.start(E,()=>{Ae(en)})},[,Ne]=C.useState(!1),et=en=>{Wc(en.target)||(Ne(!1),lt(en))},mt=en=>{Z||K(en.currentTarget),Wc(en.target)&&(Ne(!0),oe(en))},Wt=en=>{fe.current=!0;const $t=X.props;$t.onTouchStart&&$t.onTouchStart(en)},zt=en=>{Wt(en),pe.clear(),se.clear(),Ge(),we.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",me.start(w,()=>{document.body.style.WebkitUserSelect=we.current,oe(en)})},tt=en=>{X.props.onTouchEnd&&X.props.onTouchEnd(en),Ge(),pe.start(M,()=>{Ae(en)})};C.useEffect(()=>{if(!ke)return;function en($t){$t.key==="Escape"&&Ae($t)}return document.addEventListener("keydown",en),()=>{document.removeEventListener("keydown",en)}},[Ae,ke]);const Je=yo(gd(X),K,n);!z&&z!==0&&(ke=!1);const ct=C.useRef(),Ie=en=>{const $t=X.props;$t.onMouseMove&&$t.onMouseMove(en),Yh={x:en.clientX,y:en.clientY},ct.current&&ct.current.update()},he={},qe=typeof z=="string";f?(he.title=!ke&&qe&&!h?z:null,he["aria-describedby"]=ke?ce:null):(he["aria-label"]=qe?z:null,he["aria-labelledby"]=ke&&!qe?ce:null);const De={...he,...N,...X.props,className:Nt(N.className,X.props.className),onTouchStart:Wt,ref:Je,...b?{onMouseMove:Ie}:{}},wt={};v||(De.onTouchStart=zt,De.onTouchEnd=tt),h||(De.onMouseOver=dv(oe,De.onMouseOver),De.onMouseLeave=dv(lt,De.onMouseLeave),ae||(wt.onMouseOver=oe,wt.onMouseLeave=lt)),u||(De.onFocus=dv(mt,De.onFocus),De.onBlur=dv(et,De.onBlur),ae||(wt.onFocus=mt,wt.onBlur=et));const Ct={...r,isRtl:te,arrow:o,disableInteractive:ae,placement:A,PopperComponentProp:_,touch:fe.current},yt=typeof V.popper=="function"?V.popper(Ct):V.popper,st=C.useMemo(()=>{let en=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return W.popperOptions?.modifiers&&(en=en.concat(W.popperOptions.modifiers)),yt?.popperOptions?.modifiers&&(en=en.concat(yt.popperOptions.modifiers)),{...W.popperOptions,...yt?.popperOptions,modifiers:en}},[ne,W.popperOptions,yt?.popperOptions]),jt=yY(Ct),qt=typeof V.transition=="function"?V.transition(Ct):V.transition,mn={slots:{popper:l.Popper,transition:l.Transition??F,tooltip:l.Tooltip,arrow:l.Arrow,...k},slotProps:{arrow:V.arrow??c.arrow,popper:{...W,...yt??c.popper},tooltip:V.tooltip??c.tooltip,transition:{...H,...qt??c.transition}}},[$n,_n]=Dn("popper",{elementType:vY,externalForwardedProps:mn,ownerState:Ct,className:Nt(jt.popper,W?.className)}),[Un,Jt]=Dn("transition",{elementType:ig,externalForwardedProps:mn,ownerState:Ct}),[An,xe]=Dn("tooltip",{elementType:bY,className:jt.tooltip,externalForwardedProps:mn,ownerState:Ct}),[Vn,Rn]=Dn("arrow",{elementType:xY,className:jt.arrow,externalForwardedProps:mn,ownerState:Ct,ref:le});return m.jsxs(C.Fragment,{children:[C.cloneElement(X,De),m.jsx($n,{as:_??i0,placement:A,anchorEl:b?{getBoundingClientRect:()=>({top:Yh.y,left:Yh.x,right:Yh.x,bottom:Yh.y,width:0,height:0})}:Z,popperRef:ct,open:Z?ke:!1,id:ce,transition:!0,...wt,..._n,popperOptions:st,children:({TransitionProps:en})=>m.jsx(Un,{timeout:Q.transitions.duration.shorter,...en,...Jt,children:m.jsxs(An,{...xe,children:[z,o?m.jsx(Vn,{...Rn}):null]})})})]})}),fr=BC({createStyledComponent:at("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>hn({props:e,name:"MuiStack"})});function SY(e){return dn("MuiSwitch",e)}const ba=pn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),wY=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:s}=e,l={root:["root",n&&`edge${nt(n)}`,`size${nt(r)}`],switchBase:["switchBase",`color${nt(o)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=fn(l,SY,t);return{...t,...c}},CY=at("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(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,[`& .${ba.thumb}`]:{width:16,height:16},[`& .${ba.switchBase}`]:{padding:4,[`&.${ba.checked}`]:{transform:"translateX(16px)"}}}}]}),kY=at(vN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ba.input}`]:t.input},n.color!=="default"&&t[`color${nt(n.color)}`]]}})(rn(({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}),[`&.${ba.checked}`]:{transform:"translateX(20px)"},[`&.${ba.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ba.checked} + .${ba.track}`]:{opacity:.5},[`&.${ba.disabled} + .${ba.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ba.input}`]:{left:"-100%",width:"300%"}})),rn(({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(Lr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${ba.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"}},[`&.${ba.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)}`}},[`&.${ba.checked} + .${ba.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),TY=at("span",{name:"MuiSwitch",slot:"Track"})(rn(({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}`}))),EY=at("span",{name:"MuiSwitch",slot:"Thumb"})(rn(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),DN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:s=!1,size:l="medium",sx:c,slots:f={},slotProps:u={},...h}=r,y={...r,color:a,edge:s,size:l},v=wY(y),S={slots:f,slotProps:u},[x,w]=Dn("root",{className:Nt(v.root,o),elementType:CY,externalForwardedProps:S,ownerState:y,additionalProps:{sx:c}}),[b,T]=Dn("thumb",{className:v.thumb,elementType:EY,externalForwardedProps:S,ownerState:y}),E=m.jsx(b,{...T}),[M,$]=Dn("track",{className:v.track,elementType:TY,externalForwardedProps:S,ownerState:y});return m.jsxs(x,{...w,children:[m.jsx(kY,{type:"checkbox",icon:E,checkedIcon:E,ref:n,ownerState:y,...h,classes:{...v,root:v.switchBase},slots:{...f.switchBase&&{root:f.switchBase},...f.input&&{input:f.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(y):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(y):u.input}}}),m.jsx(M,{...$})]})}),AN=C.createContext();function RY(e){return dn("MuiTable",e)}pn("MuiTable",["root","stickyHeader"]);const OY=e=>{const{classes:t,stickyHeader:n}=e;return fn({root:["root",n&&"stickyHeader"]},RY,t)},MY=at("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(rn(({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"}}]}))),I2="table",jg=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTable"}),{className:o,component:a=I2,padding:s="normal",size:l="medium",stickyHeader:c=!1,...f}=r,u={...r,component:a,padding:s,size:l,stickyHeader:c},h=OY(u),y=C.useMemo(()=>({padding:s,size:l,stickyHeader:c}),[s,l,c]);return m.jsx(AN.Provider,{value:y,children:m.jsx(MY,{as:a,role:a===I2?null:"table",ref:n,className:Nt(h.root,o),ownerState:u,...f})})}),p0=C.createContext();function $Y(e){return dn("MuiTableBody",e)}pn("MuiTableBody",["root"]);const PY=e=>{const{classes:t}=e;return fn({root:["root"]},$Y,t)},DY=at("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),AY={variant:"body"},L2="tbody",Ng=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTableBody"}),{className:o,component:a=L2,...s}=r,l={...r,component:a},c=PY(l);return m.jsx(p0.Provider,{value:AY,children:m.jsx(DY,{className:Nt(c.root,o),as:a,ref:n,role:a===L2?null:"rowgroup",ownerState:l,...s})})});function jY(e){return dn("MuiTableCell",e)}const NY=pn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),IY=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${nt(r)}`,o!=="normal"&&`padding${nt(o)}`,`size${nt(a)}`]};return fn(l,jY,t)},LY=at("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${nt(n.size)}`],n.padding!=="normal"&&t[`padding${nt(n.padding)}`],n.align!=="inherit"&&t[`align${nt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(rn(({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",[`&.${NY.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=hn({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:l,scope:c,size:f,sortDirection:u,variant:h,...y}=r,v=C.useContext(AN),S=C.useContext(p0),x=S&&S.variant==="head";let w;s?w=s:w=x?"th":"td";let b=c;w==="td"?b=void 0:!b&&x&&(b="col");const T=h||S&&S.variant,E={...r,align:o,component:w,padding:l||(v&&v.padding?v.padding:"normal"),size:f||(v&&v.size?v.size:"medium"),sortDirection:u,stickyHeader:T==="head"&&v&&v.stickyHeader,variant:T},M=IY(E);let $=null;return u&&($=u==="asc"?"ascending":"descending"),m.jsx(LY,{as:w,ref:n,className:Nt(M.root,a),"aria-sort":$,scope:b,ownerState:E,...y})});function zY(e){return dn("MuiTableContainer",e)}pn("MuiTableContainer",["root"]);const FY=e=>{const{classes:t}=e;return fn({root:["root"]},zY,t)},_Y=at("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),BY=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=r,l={...r,component:a},c=FY(l);return m.jsx(_Y,{ref:n,as:a,className:Nt(c.root,o),ownerState:l,...s})});function UY(e){return dn("MuiTableHead",e)}pn("MuiTableHead",["root"]);const VY=e=>{const{classes:t}=e;return fn({root:["root"]},UY,t)},HY=at("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),WY={variant:"head"},z2="thead",Ig=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTableHead"}),{className:o,component:a=z2,...s}=r,l={...r,component:a},c=VY(l);return m.jsx(p0.Provider,{value:WY,children:m.jsx(HY,{as:a,className:Nt(c.root,o),ref:n,role:a===z2?null:"rowgroup",ownerState:l,...s})})});function qY(e){return dn("MuiTableRow",e)}const F2=pn("MuiTableRow",["root","selected","hover","head","footer"]),YY=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return fn({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},qY,t)},GY=at("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(rn(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${F2.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${F2.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}`)}}}))),_2="tr",al=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTableRow"}),{className:o,component:a=_2,hover:s=!1,selected:l=!1,...c}=r,f=C.useContext(p0),u={...r,component:a,hover:s,selected:l,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},h=YY(u);return m.jsx(GY,{as:a,ref:n,className:Nt(h.root,o),role:a===_2?null:"row",ownerState:u,...c})});function KY(e){return dn("MuiTextField",e)}pn("MuiTextField",["root"]);const QY={standard:ok,filled:nk,outlined:lk},XY=e=>{const{classes:t}=e;return fn({root:["root"]},KY,t)},ZY=at(sw,{name:"MuiTextField",slot:"Root"})({}),Ia=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:l,color:c="primary",defaultValue:f,disabled:u=!1,error:h=!1,FormHelperTextProps:y,fullWidth:v=!1,helperText:S,id:x,InputLabelProps:w,inputProps:b,InputProps:T,inputRef:E,label:M,maxRows:$,minRows:D,multiline:I=!1,name:A,onBlur:_,onChange:W,onFocus:V,placeholder:k,required:z=!1,rows:F,select:H=!1,SelectProps:N,slots:X={},slotProps:Q={},type:te,value:Z,variant:K="outlined",...ne}=r,le={...r,autoFocus:a,color:c,disabled:u,error:h,fullWidth:v,multiline:I,required:z,select:H,variant:K},fe=XY(le),ae=Qc(x),se=S&&ae?`${ae}-helper-text`:void 0,ie=M&&ae?`${ae}-label`:void 0,pe=QY[K],me={slots:X,slotProps:{input:T,inputLabel:w,htmlInput:b,formHelperText:y,select:N,...Q}},Te={},Ce=me.slotProps.inputLabel;K==="outlined"&&(Ce&&typeof Ce.shrink<"u"&&(Te.notched=Ce.shrink),Te.label=M),H&&((!N||!N.native)&&(Te.id=void 0),Te["aria-describedby"]=void 0);const[ke,ce]=Dn("root",{elementType:ZY,shouldForwardComponentProp:!0,externalForwardedProps:{...me,...ne},ownerState:le,className:Nt(fe.root,l),ref:n,additionalProps:{disabled:u,error:h,fullWidth:v,required:z,color:c,variant:K}}),[we,Ge]=Dn("input",{elementType:pe,externalForwardedProps:me,additionalProps:Te,ownerState:le}),[Be,Ae]=Dn("inputLabel",{elementType:wq,externalForwardedProps:me,ownerState:le}),[oe,lt]=Dn("htmlInput",{elementType:"input",externalForwardedProps:me,ownerState:le}),[Ne,et]=Dn("formHelperText",{elementType:lw,externalForwardedProps:me,ownerState:le}),[mt,Wt]=Dn("select",{elementType:$N,externalForwardedProps:me,ownerState:le}),zt=m.jsx(we,{"aria-describedby":se,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:v,multiline:I,name:A,rows:F,maxRows:$,minRows:D,type:te,value:Z,id:ae,inputRef:E,onBlur:_,onChange:W,onFocus:V,placeholder:k,inputProps:lt,slots:{input:X.htmlInput?oe:void 0},...Ge});return m.jsxs(ke,{...ce,children:[M!=null&&M!==""&&m.jsx(Be,{htmlFor:ae,id:ie,...Ae,children:M}),H?m.jsx(mt,{"aria-describedby":se,id:ae,labelId:ie,value:Z,input:zt,...Wt,children:s}):zt,S&&m.jsx(Ne,{id:se,...et,children:S})]})});var vd=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(){}},JY={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},eG=class{#e=JY;#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)}},Yu=new eG;function tG(e){setTimeout(e,0)}var id=typeof window>"u"||"Deno"in globalThis;function ca(){}function nG(e,t){return typeof e=="function"?e(t):e}function hw(e){return typeof e=="number"&&e>=0&&e!==1/0}function jN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Uc(e,t){return typeof e=="function"?e(t):e}function _i(e,t){return typeof e=="function"?e(t):e}function B2(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==uk(s,t.options))return!1}else if(!sg(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function U2(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(sd(t.options.mutationKey)!==sd(a))return!1}else if(!sg(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function uk(e,t){return(t?.queryKeyHashFn||sd)(e)}function sd(e){return JSON.stringify(e,(t,n)=>mw(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function sg(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>sg(e[n],t[n])):!1}var rG=Object.prototype.hasOwnProperty;function dk(e,t){if(e===t)return e;const n=V2(e)&&V2(t);if(!n&&!(mw(e)&&mw(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 c=0;for(let f=0;f<s;f++){const u=n?f:a[f],h=e[u],y=t[u];if(h===y){l[u]=h,(n?f<o:rG.call(e,u))&&c++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){l[u]=y;continue}const v=dk(h,y);l[u]=v,v===h&&c++}return o===s&&c===o?e:l}function lg(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 V2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mw(e){if(!H2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!H2(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function H2(e){return Object.prototype.toString.call(e)==="[object Object]"}function oG(e){return new Promise(t=>{Yu.setTimeout(t,e)})}function gw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dk(e,t):t}function aG(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function iG(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fk=Symbol();function NN(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===fk?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function IN(e,t){return typeof e=="function"?e(...t):!!e}var sG=class extends vd{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!id&&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"}},pk=new sG;function yw(){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 lG=tG;function cG(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=lG;const a=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||s()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var po=cG(),uG=class extends vd{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!id&&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}},pb=new uG;function dG(e){return Math.min(1e3*2**e,3e4)}function LN(e){return(e??"online")==="online"?pb.isOnline():!0}var vw=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function zN(e){let t=!1,n=0,r;const o=yw(),a=()=>o.status!=="pending",s=x=>{if(!a()){const w=new vw(x);y(w),e.onCancel?.(w)}},l=()=>{t=!0},c=()=>{t=!1},f=()=>pk.isFocused()&&(e.networkMode==="always"||pb.isOnline())&&e.canRun(),u=()=>LN(e.networkMode)&&e.canRun(),h=x=>{a()||(r?.(),o.resolve(x))},y=x=>{a()||(r?.(),o.reject(x))},v=()=>new Promise(x=>{r=w=>{(a()||f())&&x(w)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),S=()=>{if(a())return;let x;const w=n===0?e.initialPromise:void 0;try{x=w??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(h).catch(b=>{if(a())return;const T=e.retry??(id?0:3),E=e.retryDelay??dG,M=typeof E=="function"?E(n,b):E,$=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,b);if(t||!$){y(b);return}n++,e.onFail?.(n,b),oG(M).then(()=>f()?void 0:v()).then(()=>{t?y(b):S()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:l,continueRetry:c,canStart:u,start:()=>(u()?S():v().then(S),o)}}var FN=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hw(this.gcTime)&&(this.#e=Yu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(id?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Yu.clearTimeout(this.#e),this.#e=void 0)}},fG=class extends FN{#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=W2(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=W2(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=gw(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(ca).catch(ca):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>_i(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fk||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Uc(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:!jN(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(c=>c.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=NN(this.options,t),f=(()=>{const u={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(u),u})();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=zN({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:l=>{l instanceof vw&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(l,c)=>{this.#i({type:"failed",failureCount:l,error:c})},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 vw){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,..._N(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),po.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function _N(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:LN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function W2(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 hk=class extends vd{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#s=yw(),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),q2(this.#t,this.options)?this.#g():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bw(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bw(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 _i(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&&!lg(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Y2(this.#t,n,this.options,t)&&this.#g(),this.updateResult(),r&&(this.#t!==n||_i(this.options.enabled,this.#t)!==_i(t.enabled,this.#t)||Uc(this.options.staleTime,this.#t)!==Uc(t.staleTime,this.#t))&&this.#y();const o=this.#h();r&&(this.#t!==n||_i(this.options.enabled,this.#t)!==_i(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 hG(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(ca)),t}#y(){this.#x();const e=Uc(this.options.staleTime,this.#t);if(id||this.#o.isStale||!hw(e))return;const n=jN(this.#o.dataUpdatedAt,e)+1;this.#u=Yu.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,!(id||_i(this.options.enabled,this.#t)===!1||!hw(this.#f)||this.#f===0)&&(this.#p=Yu.setInterval(()=>{(this.options.refetchIntervalInBackground||pk.isFocused())&&this.#g()},this.#f))}#b(){this.#y(),this.#v(this.#h())}#x(){this.#u&&(Yu.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#p&&(Yu.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,c=e!==n?e.state:this.#n,{state:f}=e;let u={...f},h=!1,y;if(t._optimisticResults){const A=this.hasListeners(),_=!A&&q2(e,t),W=A&&Y2(e,n,t,r);(_||W)&&(u={...u,..._N(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:v,errorUpdatedAt:S,status:x}=u;y=u.data;let w=!1;if(t.placeholderData!==void 0&&y===void 0&&x==="pending"){let A;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(A=o.data,w=!0):A=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,A!==void 0&&(x="success",y=gw(o?.data,A,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=gw(o?.data,y,t),this.#l=y,this.#i=null}catch(A){this.#i=A}this.#i&&(v=this.#i,y=this.#l,S=Date.now(),x="error");const b=u.fetchStatus==="fetching",T=x==="pending",E=x==="error",M=T&&b,$=y!==void 0,I={status:x,fetchStatus:u.fetchStatus,isPending:T,isSuccess:x==="success",isError:E,isInitialLoading:M,isLoading:M,data:y,dataUpdatedAt:u.dataUpdatedAt,error:v,errorUpdatedAt:S,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!T,isLoadingError:E&&!$,isPaused:u.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:E&&$,isStale:mk(e,t),refetch:this.refetch,promise:this.#s,isEnabled:_i(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const A=V=>{I.status==="error"?V.reject(I.error):I.data!==void 0&&V.resolve(I.data)},_=()=>{const V=this.#s=I.promise=yw();A(V)},W=this.#s;switch(W.status){case"pending":e.queryHash===n.queryHash&&A(W);break;case"fulfilled":(I.status==="error"||I.data!==W.value)&&_();break;case"rejected":(I.status!=="error"||I.error!==W.reason)&&_();break}}return I}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#d=this.#t),lg(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#m.size)return!0;const a=new Set(o??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#o).some(s=>{const l=s;return this.#o[l]!==e[l]&&a.has(l)})};this.#C({listeners:n()})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#C(e){po.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function pG(e,t){return _i(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function q2(e,t){return pG(e,t)||e.state.data!==void 0&&bw(e,t,t.refetchOnMount)}function bw(e,t,n){if(_i(t.enabled,e)!==!1&&Uc(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&mk(e,t)}return!1}function Y2(e,t,n,r){return(e!==t||_i(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&mk(e,n)}function mk(e,t){return _i(t.enabled,e)!==!1&&e.isStaleByTime(Uc(t.staleTime,e))}function hG(e,t){return!lg(e.getCurrentResult(),t)}function G2(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:[]},c=0;const f=async()=>{let u=!1;const h=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},y=NN(t.options,t.fetchOptions),v=async(S,x,w)=>{if(u)return Promise.reject();if(x==null&&S.pages.length)return Promise.resolve(S);const T=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:x,direction:w?"backward":"forward",meta:t.options.meta};return h(D),D})(),E=await y(T),{maxPages:M}=t.options,$=w?iG:aG;return{pages:$(S.pages,E,M),pageParams:$(S.pageParams,x,M)}};if(o&&a.length){const S=o==="backward",x=S?mG:K2,w={pages:a,pageParams:s},b=x(r,w);l=await v(w,b,S)}else{const S=e??a.length;do{const x=c===0?s[0]??r.initialPageParam:K2(r,l);if(c>0&&x==null)break;l=await v(l,x),c++}while(c<S)}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 K2(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 mG(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var gG=class extends FN{#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||BN(),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=zN({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:o})}const a=await this.#o.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#n.config.onError?.(a,e,this.state.context,this,n),await this.options.onError?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,a,e,this.state.context,n),a}finally{this.#r({type:"error",error:a})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),po.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function BN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yG=class extends vd{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 gG({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=fv(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=fv(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=fv(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=fv(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){po.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>U2(t,n))}findAll(e={}){return this.getAll().filter(t=>U2(e,t))}notify(e){po.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return po.batch(()=>Promise.all(e.map(t=>t.continue().catch(ca))))}};function fv(e){return e.options.scope?.id}var vG=class extends vd{#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),lg(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&sd(n.mutationKey)!==sd(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??BN();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){po.batch(()=>{if(this.#o&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#o.onSuccess?.(t.data,n,r,o),this.#o.onSettled?.(t.data,null,n,r,o)):t?.type==="error"&&(this.#o.onError?.(t.error,n,r,o),this.#o.onSettled?.(void 0,t.error,n,r,o))}this.listeners.forEach(n=>{n(this.#t)})})}};function Q2(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function bG(e,t,n){const r=e.slice(0);return r[t]=n,r}var xG=class extends vd{#e;#t;#n;#o;#r;#a;#s;#i;#c=[];constructor(e,t,n){super(),this.#e=e,this.#o=n,this.#n=[],this.#r=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#p(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#o=t,po.batch(()=>{const n=this.#r,r=this.#u(this.#n);this.#c=r,r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const o=r.map(u=>u.observer),a=o.map(u=>u.getCurrentResult()),s=n.length!==o.length,l=o.some((u,h)=>u!==n[h]),c=s||l,f=c?!0:a.some((u,h)=>{const y=this.#t[h];return!y||!lg(u,y)});!c&&!f||(c&&(this.#r=o),this.#t=a,this.hasListeners()&&(c&&(Q2(n,o).forEach(u=>{u.destroy()}),Q2(o,n).forEach(u=>{u.subscribe(h=>{this.#p(u,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=dk(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 hk(this.#e,o)})}),n}#p(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#t=bG(this.#t,n,t),this.#f())}#f(){if(this.hasListeners()){const e=this.#a,t=this.#l(this.#t,this.#c),n=this.#d(t,this.#o?.combine);e!==n&&po.batch(()=>{this.listeners.forEach(r=>{r(this.#t)})})}}},SG=class extends vd{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??uk(r,t);let a=this.get(o);return a||(a=new fG({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){po.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>B2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>B2(e,n)):t}notify(e){po.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){po.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){po.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},wG=class{#e;#t;#n;#o;#r;#a;#s;#i;constructor(e={}){this.#e=e.queryCache||new SG,this.#t=e.mutationCache||new yG,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=pk.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=pb.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(Uc(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=nG(t,a);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return po.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;po.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return po.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=po.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ca).catch(ca)}invalidateQueries(e,t={}){return po.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=po.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(ca)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ca)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Uc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ca).catch(ca)}fetchInfiniteQuery(e){return e.behavior=G2(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ca).catch(ca)}ensureInfiniteQueryData(e){return e.behavior=G2(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return pb.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(sd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{sg(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(sd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{sg(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=uk(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===fk&&(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()}},UN=C.createContext(void 0),bd=e=>{const t=C.useContext(UN);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},CG=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(UN.Provider,{value:e,children:t})),VN=C.createContext(!1),HN=()=>C.useContext(VN);VN.Provider;function kG(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var TG=C.createContext(kG()),WN=()=>C.useContext(TG),qN=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},YN=e=>{C.useEffect(()=>{e.clearReset()},[e])},GN=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||IN(n,[e.error,r])),KN=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))}},QN=(e,t)=>e.isLoading&&e.isFetching&&!t,xw=(e,t)=>e?.suspense&&t.isPending,hb=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function EG({queries:e,...t},n){const r=bd(n),o=HN(),a=WN(),s=C.useMemo(()=>e.map(x=>{const w=r.defaultQueryOptions(x);return w._optimisticResults=o?"isRestoring":"optimistic",w}),[e,r,o]);s.forEach(x=>{KN(x),qN(x,a)}),YN(a);const[l]=C.useState(()=>new xG(r,s,t)),[c,f,u]=l.getOptimisticResult(s,t.combine),h=!o&&t.subscribed!==!1;C.useSyncExternalStore(C.useCallback(x=>h?l.subscribe(po.batchCalls(x)):ca,[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C.useEffect(()=>{l.setQueries(s,t)},[s,t,l]);const v=c.some((x,w)=>xw(s[w],x))?c.flatMap((x,w)=>{const b=s[w];if(b){const T=new hk(r,b);if(xw(b,x))return hb(b,T,a);QN(x,o)&&hb(b,T,a)}return[]}):[];if(v.length>0)throw Promise.all(v);const S=c.find((x,w)=>{const b=s[w];return b&&GN({result:x,errorResetBoundary:a,throwOnError:b.throwOnError,query:r.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(S?.error)throw S.error;return f(u())}function RG(e,t,n){const r=HN(),o=WN(),a=bd(n),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",KN(s),qN(s,o),YN(o);const l=!a.getQueryCache().get(s.queryHash),[c]=C.useState(()=>new t(a,s)),f=c.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(h=>{const y=u?c.subscribe(po.batchCalls(h)):ca;return c.updateResult(),y},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),C.useEffect(()=>{c.setOptions(s)},[s,c]),xw(s,f))throw hb(s,c,o);if(GN({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&&!id&&QN(f,r)&&(l?hb(s,c,o):a.getQueryCache().get(s.queryHash)?.promise)?.catch(ca).finally(()=>{c.updateResult()}),s.notifyOnChangeProps?f:c.trackResult(f)}function XN(e,t){return RG(e,hk,t)}function OG(e,t){const n=bd(t),[r]=C.useState(()=>new vG(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const o=C.useSyncExternalStore(C.useCallback(s=>r.subscribe(po.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=C.useCallback((s,l)=>{r.mutate(s,l).catch(ca)},[r]);if(o.error&&IN(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function ZN(e,t){return function(){return e.apply(t,arguments)}}const{toString:MG}=Object.prototype,{getPrototypeOf:Yc}=Object,{iterator:Lg,toStringTag:JN}=Symbol,cg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eI=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),tI=(e,t,n)=>e===Object.prototype||!n&&t===null,$G=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(eI(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},ug=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const o=Yc(n);if(tI(n,o,n===e))return!1;if(cg(n,t))return!0;n=o}return!1},PG=(e,t)=>e!=null&&ug(e,t)?e[t]:void 0,DG=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Yc(e);if(t===null&&$G(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let a=e;for(;a!=null&&o.indexOf(a)===-1;){o.push(a);const s=a===e?t:Yc(a);if(tI(a,s,a===e))break;const l=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(a));for(const c of l)eI(c)||cg(r,c)||(n[c]=e[c],r[c]=!0);a=s}return n},gk=(e=>t=>{const n=MG.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),os=e=>(e=e.toLowerCase(),t=>gk(t)===e),h0=e=>t=>typeof t===e,{isArray:ld}=Array,cd=h0("undefined");function Op(e){return e!==null&&!cd(e)&&e.constructor!==null&&!cd(e.constructor)&&Fa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nI=os("ArrayBuffer");function AG(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nI(e.buffer),t}const jG=h0("string"),Fa=h0("function"),rI=h0("number"),Mp=e=>e!==null&&typeof e=="object",NG=e=>e===!0||e===!1,Vv=e=>{if(!Mp(e))return!1;const t=Yc(e);return(t===null||t===Object.prototype||Yc(t)===null)&&!ug(e,JN)&&!ug(e,Lg)},IG=e=>{if(!Mp(e)||Op(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},LG=os("Date"),zG=os("File"),FG=e=>!!(e&&typeof e.uri<"u"),_G=e=>e&&typeof e.getParts<"u",BG=os("Blob"),UG=os("FileList"),VG=os("Set"),HG=e=>Mp(e)&&Fa(e.pipe);function WG(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const X2=WG(),Z2=typeof X2.FormData<"u"?X2.FormData:void 0,qG=e=>{if(!e)return!1;if(Z2&&e instanceof Z2)return!0;const t=Yc(e);if(!t||t===Object.prototype||!Fa(e.append))return!1;const n=gk(e);return n==="formdata"||n==="object"&&Fa(e.toString)&&e.toString()==="[object FormData]"},YG=os("URLSearchParams"),[GG,KG,QG,XG]=["ReadableStream","Request","Response","Headers"].map(os),ZG=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ld(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Op(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 oI(e,t){if(Op(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 Gu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,aI=e=>!cd(e)&&e!==Gu;function Sw(...e){const{caseless:t,skipUndefined:n}=aI(this)&&this||{},r={},o=(a,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const l=t&&typeof s=="string"&&oI(r,s)||s,c=cg(r,l)?r[l]:void 0;Vv(c)&&Vv(a)?r[l]=Sw(c,a):Vv(a)?r[l]=Sw({},a):ld(a)?r[l]=a.slice():(!n||!cd(a))&&(r[l]=a)};for(let a=0,s=e.length;a<s;a++){const l=e[a];if(!l||Op(l)||(zg(l,o),typeof l!="object"||ld(l)))continue;const c=Object.getOwnPropertySymbols(l);for(let f=0;f<c.length;f++){const u=c[f];uK.call(l,u)&&o(l[u],u)}}return r}const JG=(e,t,n,{allOwnKeys:r}={})=>(zg(t,(o,a)=>{n&&Fa(o)?Object.defineProperty(e,a,{__proto__:null,value:ZN(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),eK=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tK=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},nK=(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&&Yc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rK=(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},oK=e=>{if(!e)return null;if(ld(e))return e;let t=e.length;if(!rI(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},aK=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yc(Uint8Array)),iK=(e,t)=>{const r=(e&&e[Lg]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},sK=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lK=os("HTMLFormElement"),cK=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:uK}=Object.prototype,dK=os("RegExp"),iI=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zg(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},fK=e=>{iI(e,(t,n)=>{if(Fa(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Fa(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+"'")})}})},pK=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return ld(e)?r(e):r(String(e).split(t)),n},hK=()=>{},mK=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gK(e){return!!(e&&Fa(e.append)&&e[JN]==="FormData"&&e[Lg])}const yK=e=>{const t=new WeakSet,n=r=>{if(Mp(r)){if(t.has(r))return;if(Op(r))return r;if(!("toJSON"in r)){t.add(r);let o;if(VG(r)){o=[];for(const a of r){const s=n(a);!cd(s)&&o.push(s)}}else o=ld(r)?[]:{},zg(r,(a,s)=>{const l=n(a);!cd(l)&&(o[s]=l)});return t.delete(r),o}}return r};return n(e)},vK=os("AsyncFunction"),bK=e=>e&&(Mp(e)||Fa(e))&&Fa(e.then)&&Fa(e.catch),sI=((e,t)=>e?setImmediate:t?((n,r)=>(Gu.addEventListener("message",({source:o,data:a})=>{o===Gu&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Gu.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Fa(Gu.postMessage)),xK=typeof queueMicrotask<"u"?queueMicrotask.bind(Gu):typeof process<"u"&&process.nextTick||sI,lI=e=>e!=null&&Fa(e[Lg]),SK=e=>e!=null&&ug(e,Lg)&&lI(e),Me={isArray:ld,isArrayBuffer:nI,isBuffer:Op,isFormData:qG,isArrayBufferView:AG,isString:jG,isNumber:rI,isBoolean:NG,isObject:Mp,isPlainObject:Vv,isEmptyObject:IG,isReadableStream:GG,isRequest:KG,isResponse:QG,isHeaders:XG,isUndefined:cd,isDate:LG,isFile:zG,isReactNativeBlob:FG,isReactNative:_G,isBlob:BG,isRegExp:dK,isFunction:Fa,isStream:HG,isURLSearchParams:YG,isTypedArray:aK,isFileList:UG,forEach:zg,merge:Sw,extend:JG,trim:ZG,stripBOM:eK,inherits:tK,toFlatObject:nK,kindOf:gk,kindOfTest:os,endsWith:rK,toArray:oK,forEachEntry:iK,matchAll:sK,isHTMLForm:lK,hasOwnProperty:cg,hasOwnProp:cg,hasOwnInPrototypeChain:ug,getSafeProp:PG,toSafeFlatObject:DG,reduceDescriptors:iI,freezeMethods:fK,toObjectSet:pK,toCamelCase:cK,noop:hK,toFiniteNumber:mK,findKey:oI,global:Gu,isContextDefined:aI,isSpecCompliantForm:gK,toJSONObject:yK,isAsyncFn:vK,isThenable:bK,setImmediate:sI,asap:xK,isIterable:lI,isSafeIterable:SK},wK=Me.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"]),CK=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();const l=Me.hasOwnProp(t,n);!n||l&&Me.hasOwnProp(wK,n)||(n==="set-cookie"?l?t[n].push(r):t[n]=[r]:t[n]=l?t[n]+", "+r:r)}),t};function kK(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const TK=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),EK=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function yk(e,t){return Me.isArray(e)?e.map(n=>yk(n,t)):kK(String(e).replace(t,""))}const RK=e=>yk(e,TK),OK=e=>yk(e,EK);function cI(e){const t=Object.create(null);return Me.forEach(e.toJSON(),(n,r)=>{t[r]=OK(n)}),t}const J2=Symbol("internals");function Gh(e){return e&&String(e).trim().toLowerCase()}function Hv(e){return e===!1||e==null?e:Me.isArray(e)?e.map(Hv):RK(String(e))}function MK(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 $K=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function KS(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function PK(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(o===34||o===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function DK(e){const t=Object.create(null),n=String(e);let r=0,o=!1,a=!1;function s(l){const c=KS(n.slice(r,l)),f=c.indexOf("=");if(f<1)return;const u=KS(c.slice(0,f));if(!$K.test(u))return;const h=u.toLowerCase();if(h==="__proto__"||h==="constructor"||h==="prototype")return;const y=KS(c.slice(f+1));t[h]=PK(y)}for(let l=0;l<n.length;l++){const c=n.charCodeAt(l);o?a?a=!1:c===92?a=!0:c===34&&(o=!1):c===34?o=!0:(c===44||c===59)&&(s(l),r=l+1)}return s(n.length),t}const AK=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function QS(e,t,n,r,o){if(Me.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Me.isString(t)){if(Me.isString(r))return t.indexOf(r)!==-1;if(Me.isRegExp(r))return r.test(t)}}function jK(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function NK(e,t){const n=Me.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}let ua=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,c,f){const u=Gh(c);if(!u)return;const h=Me.findKey(o,u);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||c]=Hv(l))}const s=(l,c)=>Me.forEach(l,(f,u)=>a(f,u,c));if(Me.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Me.isString(t)&&(t=t.trim())&&!AK(t))s(CK(t),n);else if(Me.isObject(t)&&Me.isSafeIterable(t)){let l=Object.create(null),c,f;for(const u of t){if(!Me.isArray(u))throw new TypeError("Object iterator must return a key-value pair");f=u[0],Me.hasOwnProp(l,f)?(c=l[f],l[f]=Me.isArray(c)?[...c,u[1]]:[c,u[1]]):l[f]=u[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Gh(t),t){const r=Me.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return MK(o);if(Me.isFunction(n))return n.call(this,o,r);if(Me.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Gh(t),t){const r=Me.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||QS(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=Gh(s),s){const l=Me.findKey(r,s);l&&(!n||QS(r,r[l],l,n))&&(delete r[l],o=!0)}}return Me.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||QS(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Me.forEach(this,(o,a)=>{const s=Me.findKey(r,a);if(s){n[s]=Hv(o),delete n[a];return}const l=t?jK(a):String(a).trim();l!==a&&delete n[a],n[l]=Hv(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Me.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Me.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(){const t=this.get("set-cookie");return Me.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return DK(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[J2]=this[J2]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=Gh(s);r[l]||(NK(o,s),r[l]=!0)}return Me.isArray(t)?t.forEach(a):a(t),this}};ua.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Me.reduceDescriptors(ua.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Me.freezeMethods(ua);const mb="[REDACTED ****]";function IK(e){if(Me.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Me.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function LK(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),r=[],o=a=>{if(a===null||typeof a!="object"||Me.isBuffer(a))return a;if(r.indexOf(a)!==-1)return;a instanceof ua&&(a=a.toJSON()),r.push(a);let s;if(Me.isArray(a))s=[],a.forEach((l,c)=>{const f=o(l);Me.isUndefined(f)||(s[c]=f)});else{if(!Me.isPlainObject(a)&&IK(a))return r.pop(),a;s=Object.create(null);for(const[l,c]of Object.entries(a)){const f=n.has(l.toLowerCase())?mb:o(c);Me.isUndefined(f)||(s[l]=f)}}return r.pop(),s};return o(e)}function e$(e){try{return String(e)}catch{return""}}function zK(e){return e.errors.map(n=>{try{return n&&n.message?e$(n.message):e$(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let _t=class uI extends Error{static from(t,n,r,o,a,s){let l=t.message;!l&&Me.isArray(t.errors)&&t.errors.length&&(l=zK(t));const c=new uI(l,n||t.code,r,o,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),s&&Object.assign(c,s),c}constructor(t,n,r,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&Me.hasOwnProp(t,"redact")?t.redact:void 0,r=Me.isArray(n)&&n.length>0?LK(t,n):Me.toJSONObject(t);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:r,code:this.code,status:this.status}}};_t.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";_t.ERR_BAD_OPTION="ERR_BAD_OPTION";_t.ECONNABORTED="ECONNABORTED";_t.ETIMEDOUT="ETIMEDOUT";_t.ECONNREFUSED="ECONNREFUSED";_t.ERR_NETWORK="ERR_NETWORK";_t.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";_t.ERR_DEPRECATED="ERR_DEPRECATED";_t.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";_t.ERR_BAD_REQUEST="ERR_BAD_REQUEST";_t.ERR_CANCELED="ERR_CANCELED";_t.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";_t.ERR_INVALID_URL="ERR_INVALID_URL";_t.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const FK=null,dI=100;function ww(e){return Me.isPlainObject(e)||Me.isArray(e)}function fI(e){return Me.endsWith(e,"[]")?e.slice(0,-2):e}function XS(e,t,n){return e?e.concat(t).map(function(o,a){return o=fI(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function _K(e){return Me.isArray(e)&&!e.some(ww)}const BK=Me.toFlatObject(Me,{},null,function(t){return/^is[A-Z]/.test(t)});function m0(e,t,n){if(!Me.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(T,E)=>{const M=Me.getSafeProp(n,T);return Me.isUndefined(M)?E:M},o=r("metaTokens",!0),a=r("visitor")||x,s=r("dots",!1),l=r("indexes",!1),c=r("Blob")||typeof Blob<"u"&&Blob,f=r("maxDepth",dI),u=c&&Me.isSpecCompliantForm(t),h=[];if(!Me.isFunction(a))throw new TypeError("visitor must be a function");function y(T){if(T===null)return"";if(Me.isDate(T))return T.toISOString();if(Me.isBoolean(T))return T.toString();if(!u&&Me.isBlob(T))throw new _t("Blob is not supported. Use a Buffer instead.");if(Me.isArrayBuffer(T)||Me.isTypedArray(T)){if(u&&typeof c=="function")return new c([T]);throw new _t("Blob is not supported. Use a Buffer instead.",_t.ERR_NOT_SUPPORT)}return T}function v(T){if(T>f)throw new _t("Object is too deeply nested ("+T+" levels). Max depth: "+f,_t.ERR_FORM_DATA_DEPTH_EXCEEDED)}function S(T,E){if(f===1/0)return JSON.stringify(T);const M=[];return JSON.stringify(T,function(D,I){if(!Me.isObject(I))return I;for(;M.length&&M[M.length-1]!==this;)M.pop();return M.push(I),v(E+M.length-1),I})}function x(T,E,M){let $=T;if(Me.isReactNative(t)&&Me.isReactNativeBlob(T))return t.append(XS(M,E,s),y(T)),!1;if(T&&!M&&typeof T=="object"){if(Me.endsWith(E,"{}"))E=o?E:E.slice(0,-2),T=S(T,1);else if(Me.isArray(T)&&_K(T)||(Me.isFileList(T)||Me.endsWith(E,"[]"))&&($=Me.toArray(T)))return E=fI(E),$.forEach(function(I,A){!(Me.isUndefined(I)||I===null)&&t.append(l===!0?XS([E],A,s):l===null?E:E+"[]",y(I))}),!1}return ww(T)?!0:(t.append(XS(M,E,s),y(T)),!1)}const w=Object.assign(BK,{defaultVisitor:x,convertValue:y,isVisitable:ww});function b(T,E,M=0){if(!Me.isUndefined(T)){if(v(M),h.indexOf(T)!==-1)throw new Error("Circular reference detected in "+E.join("."));h.push(T),Me.forEach(T,function(D,I){(!(Me.isUndefined(D)||D===null)&&a.call(t,D,Me.isString(I)?I.trim():I,E,w))===!0&&b(D,E?E.concat(I):[I],M+1)}),h.pop()}}if(!Me.isObject(e))throw new TypeError("data must be an object");return b(e),t}function t$(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function vk(e,t){this._pairs=[],e&&m0(e,this,t)}const pI=vk.prototype;pI.append=function(t,n){this._pairs.push([t,n])};pI.toString=function(t){const n=t?r=>t.call(this,r,t$):t$;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function UK(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hI(e,t,n){if(!t)return e;e=e||"";const r=Me.isFunction(n)?{serialize:n}:n,o=Me.getSafeProp(r,"encode")||UK,a=Me.getSafeProp(r,"serialize");let s;if(a?s=a(t,r):s=Me.isURLSearchParams(t)?t.toString():new vk(t,r).toString(o),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}const Kh=Symbol("internals");function mI(e){return e?e.length:0}function n$(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Qh(e,t){const n=e.handlers,r=mI(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(a,s){n[a.index]!==a.handler&&t.handlerEntries.delete(s)}):t.handlerEntries.clear()),t.handlersLength=r}class r${constructor(){this.handlers=[],this[Kh]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const o={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},a=this[Kh];this.handlers==null&&(this.handlers=[]),Qh(this,a);const s=a.nextId++;return this.handlers.push(o),a.handlerEntries.set(s,{handler:o,index:this.handlers.length-1}),a.handlersLength=this.handlers.length,s}eject(t){const n=this[Kh];Qh(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(n$(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Qh(this,this[Kh]))}forEach(t){const n=this[Kh];Qh(this,n),n.iterationDepth++;try{Me.forEach(this.handlers,function(o){o!==null&&t(o)})}finally{--n.iterationDepth||(Qh(this,n),n$(this.handlers),n.handlersLength=mI(this.handlers))}}}const bk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},VK=typeof URLSearchParams<"u"?URLSearchParams:vk,HK=typeof FormData<"u"?FormData:null,WK=typeof Blob<"u"?Blob:null,qK={isBrowser:!0,classes:{URLSearchParams:VK,FormData:HK,Blob:WK},protocols:["http","https","file","blob","url","data"]},xk=typeof window<"u"&&typeof document<"u",Cw=typeof navigator=="object"&&navigator||void 0,YK=xk&&(!Cw||["ReactNative","NativeScript","NS"].indexOf(Cw.product)<0),GK=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",KK=xk&&window.location.href||"http://localhost",QK=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xk,hasStandardBrowserEnv:YK,hasStandardBrowserWebWorkerEnv:GK,navigator:Cw,origin:KK},Symbol.toStringTag,{value:"Module"})),Vo={...QK,...qK};function XK(e,t){return m0(e,new Vo.classes.URLSearchParams,{visitor:function(n,r,o,a){return Vo.isNode&&Me.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}const o$=dI;function gI(e){if(e>o$)throw new _t("FormData field is too deeply nested ("+e+" levels). Max depth: "+o$,_t.ERR_FORM_DATA_DEPTH_EXCEEDED)}function ZK(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)gI(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function JK(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 yI(e){function t(n,r,o,a){gI(a);let s=n[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=a>=n.length;return s=!s&&Me.isArray(o)?o.length:s,c?(Me.hasOwnProp(o,s)?o[s]=Me.isArray(o[s])?o[s].concat(r):[o[s],r]:o[s]=r,!l):((!Me.hasOwnProp(o,s)||!Me.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&Me.isArray(o[s])&&(o[s]=JK(o[s])),!l)}if(Me.isFormData(e)&&Me.isFunction(e.entries)){const n={};return Me.forEachEntry(e,(r,o)=>{t(ZK(r),o,n,0)}),n}return null}const vI=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Cf=(e,t)=>e!=null&&Me.hasOwnProp(e,t)?e[t]:void 0;function eQ(e,t,n){if(Me.isString(e))try{return(t||JSON.parse)(e),Me.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Fg={transitional:bk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Me.isObject(t);if(a&&Me.isHTMLForm(t)&&(t=new FormData(t)),Me.isFormData(t))return o?JSON.stringify(yI(t)):t;if(Me.isArrayBuffer(t)||Me.isBuffer(t)||Me.isStream(t)||Me.isFile(t)||Me.isBlob(t)||Me.isReadableStream(t))return t;if(Me.isArrayBufferView(t))return t.buffer;if(Me.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){const c=Cf(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return XK(t,c).toString();if((l=Me.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=Cf(this,"env"),u=f&&f.FormData;return m0(l?{"files[]":t}:t,u&&new u,c)}}return a||o?(n.setContentType("application/json",!1),eQ(t)):t}],transformResponse:[function(t){const n=Cf(this,"transitional")||Fg.transitional,r=n&&n.forcedJSONParsing,o=Cf(this,"responseType"),a=o==="json";if(Me.isResponse(t)||Me.isReadableStream(t))return t;if(t&&Me.isString(t)&&(r&&!o||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,Cf(this,"parseReviver"))}catch(c){if(l)throw c.name==="SyntaxError"?_t.from(c,_t.ERR_BAD_RESPONSE,this,null,Cf(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vo.classes.FormData,Blob:Vo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Me.forEach(vI,e=>{Fg.headers[e]={}});function ZS(e,t){const n=this||Fg,r=t||n,o=ua.from(r.headers);let a=r.data;return Me.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function bI(e){return!!(e&&e.__CANCEL__)}let _g=class extends _t{constructor(t,n,r){super(t??"canceled",_t.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function xI(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _t("Request failed with status code "+n.status,n.status>=400&&n.status<500?_t.ERR_BAD_REQUEST:_t.ERR_BAD_RESPONSE,n.config,n.request,n))}const tQ=/[\t\n\r]/g;function SI(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(tQ,"")}function JS(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function nQ(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(c){const f=Date.now(),u=r[a];s||(s=f),n[o]=c,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 v=u&&f-u;return v?Math.round(y*1e3/v):void 0}}function rQ(e,t){let n=0,r=1e3/t,o,a;const s=(u,h=Date.now())=>{n=h,o=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const h=Date.now(),y=h-n;y>=r?s(u,h):(o=u,a||(a=setTimeout(()=>{a=null,s(o)},r-y)))},()=>o&&s(o),(...u)=>s(u)]}const gb=(e,t,n=3)=>{let r=0;const o=nQ(50,250);return rQ(a=>{if(!a||!Me.isNumber(a.loaded))return;const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=Math.max(0,l!=null?Math.min(s,l):s),f=Math.max(0,c-r),u=o(f);r=Math.max(r,c);const h={loaded:c,total:l,progress:l?c/l:void 0,bytes:f,rate:u||void 0,estimated:u&&l?(l-c)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},a$=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},i$=(e,t=Me.asap)=>(...n)=>t(()=>e(...n)),oQ=Vo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vo.origin),Vo.navigator&&/(msie|trident)/i.test(Vo.navigator.userAgent)):()=>!0,aQ=Vo.hasStandardBrowserEnv?{write(e,t,n,r,o,a,s){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];Me.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),Me.isString(r)&&l.push(`path=${r}`),Me.isString(o)&&l.push(`domain=${o}`),a===!0&&l.push("secure"),Me.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function iQ(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sQ(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const lQ=/^https?:(?!\/\/)/i;function cQ(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${mb}`)}function uQ(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${mb}@`),n=t.indexOf("#"),o=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${mb}`);return n===-1?o:`${o}#${cQ(t.slice(n+1))}`}function s$(e,t){if(typeof e=="string"){const n=SI(e);if(lQ.test(n))throw new _t(`Invalid URL ${JSON.stringify(uQ(n))}: missing "//" after protocol`,_t.ERR_INVALID_URL,t)}}function wI(e,t,n,r){s$(t,r);let o=!iQ(t);return e&&(o||n===!1)?(s$(e,r),sQ(e,t)):t}const l$=e=>e instanceof ua?{...e}:e,dQ=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function ud(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,h,y,v){return Me.isPlainObject(u)&&Me.isPlainObject(h)?Me.merge.call({caseless:v},u,h):Me.isPlainObject(h)?Me.merge({},h):Me.isArray(h)?h.slice():h}function o(u,h,y,v){if(Me.isUndefined(h)){if(!Me.isUndefined(u))return r(void 0,u,y,v)}else return r(u,h,y,v)}function a(u,h){if(!Me.isUndefined(h))return r(void 0,h)}function s(u,h){if(Me.isUndefined(h)){if(!Me.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function l(u){const h=Me.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Me.isUndefined(h))if(Me.isPlainObject(h)){if(Me.hasOwnProp(h,u))return h[u]}else return;const y=Me.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Me.isPlainObject(y)&&Me.hasOwnProp(y,u))return y[u]}function c(u,h,y){if(Me.hasOwnProp(t,y))return r(u,h);if(Me.hasOwnProp(e,y))return r(void 0,u)}const f={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage: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,allowedSocketPaths:s,responseEncoding:s,validateStatus:c,headers:(u,h,y)=>o(l$(u),l$(h),y,!0)};return Me.forEach(dQ({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const y=Me.hasOwnProp(f,h)?f[h]:o,v=Me.hasOwnProp(e,h)?e[h]:void 0,S=Me.hasOwnProp(t,h)?t[h]:void 0,x=y(v,S,h);Me.isUndefined(x)&&y!==c||(n[h]=x)}),Me.hasOwnProp(t,"validateStatus")&&Me.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(Me.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const fQ=["content-type","content-length"];function pQ(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{fQ.includes(r.toLowerCase())&&e.set(r,o)})}const hQ=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function CI(e){const t=ud({},e),n=y=>Me.hasOwnProp(t,y)?t[y]:void 0,r=n("data");let o=n("withXSRFToken");const a=n("xsrfHeaderName"),s=n("xsrfCookieName");let l=n("headers");const c=n("auth"),f=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");if(t.headers=l=ua.from(l),t.url=hI(wI(f,h,u,t),n("params"),n("paramsSerializer")),c){const y=Me.getSafeProp(c,"username")||"",v=Me.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(y+":"+(v?hQ(v):"")))}catch(S){throw _t.from(S,_t.ERR_BAD_OPTION_VALUE,e)}}if(Me.isFormData(r)){const y=Me.getSafeProp(r,"getHeaders");Vo.hasStandardBrowserEnv||Vo.hasStandardBrowserWebWorkerEnv||Me.isReactNative(r)?l.setContentType(void 0):Me.isFunction(y)&&pQ(l,y.call(r),n("formDataHeaderPolicy"))}if(Vo.hasStandardBrowserEnv&&(Me.isFunction(o)&&(o=o(t)),o===!0||o==null&&oQ(t.url))){const v=a&&s&&aQ.read(s);v&&l.set(a,v)}return t}const mQ=typeof XMLHttpRequest<"u",gQ=mQ&&function(e){return new Promise(function(n,r){const o=CI(e);let a=o.data;const s=ua.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=o,u,h,y,v,S,x;function w(){v&&v(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function T(M){if(!b)return;if(b.status===0&&(JS(SI(o.url))||JS(Vo.origin))!=="file"&&!(b.responseURL&&b.responseURL.startsWith("file:"))){r(new _t("Request aborted",_t.ECONNABORTED,e,b)),w(),b=null;return}try{M?x&&x(M):S&&S()}catch(A){setTimeout(()=>{throw A})}if(!b)return;const $=ua.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),I={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:$,config:e,request:b};xI(function(_){n(_),w()},function(_){r(_),w()},I),b=null}"onloadend"in b?b.onloadend=T:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(T)},b.onabort=function(){b&&(r(new _t("Request aborted",_t.ECONNABORTED,e,b)),w(),b=null)},b.onerror=function($){const D=$&&$.message?$.message:"Network Error",I=new _t(D,_t.ERR_NETWORK,e,b);I.event=$||null,r(I),w(),b=null},b.ontimeout=function(){let $=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const D=o.transitional||bk;o.timeoutErrorMessage&&($=o.timeoutErrorMessage),r(new _t($,D.clarifyTimeoutError?_t.ETIMEDOUT:_t.ECONNABORTED,e,b)),w(),b=null},a===void 0&&s.setContentType(null),"setRequestHeader"in b&&Me.forEach(cI(s),function($,D){b.setRequestHeader(D,$)}),Me.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),f&&([y,S,x]=gb(f,!0),b.addEventListener("progress",y)),c&&b.upload&&([h,v]=gb(c),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(u=M=>{b&&(r(!M||M.type?new _g(null,e,b):M),b.abort(),w(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const E=JS(o.url);if(E&&!Vo.protocols.includes(E)){r(new _t("Unsupported protocol "+E+":",_t.ERR_BAD_REQUEST,e)),w();return}b.send(a||null)})},yQ=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(c){if(!r){r=!0,s();const f=c instanceof Error?c:this.reason;n.abort(f instanceof _t?f:new _g(f instanceof Error?f.message:f))}};let a=t&&setTimeout(()=>{a=null,o(new _t(`timeout of ${t}ms exceeded`,_t.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>{if(!r){if(c.aborted){o.call(c);return}c.addEventListener("abort",o,{once:!0})}});const{signal:l}=n;return l.unsubscribe=()=>Me.asap(s),l},vQ=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},bQ=async function*(e,t){for await(const n of xQ(e))yield*vQ(n,t)},xQ=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()}},c$=(e,t,n,r)=>{const o=bQ(e,t);let a=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:u}=await o.next();if(f){l(),c.close();return}let h=u.byteLength;if(n){let y=a+=h;n(y)}c.enqueue(new Uint8Array(u))}catch(f){throw l(f),f}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},u$=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,kI=(e,t,n)=>t+2<n&&u$(e.charCodeAt(t+1))&&u$(e.charCodeAt(t+2)),d$=e=>e<=57?e-48:(e&223)-55,SQ=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,wQ=e=>e===9||e===10||e===12||e===13||e===32,CQ=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},kQ=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},TQ=e=>{const t=e.length;let n=0,r=0,o=!1;for(let a=0;a<t;a++){let s=e.charCodeAt(a);if(s===37&&kI(e,a,t)&&(s=d$(e.charCodeAt(a+1))*16+d$(e.charCodeAt(a+2)),a+=2),!wQ(s)){if(s===61){r++;continue}if(!SQ(s)||r>0){o=!0;continue}n++}}return o||r>2||r>0&&(n+r)%4!==0||n%4===1?kQ(e):CQ(n)},EQ=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);let s=0;for(let l=0,c=o.length;l<c;l++){const f=o.charCodeAt(l);if(f===37&&kI(o,l,c))s+=1,l+=2;else if(f<128)s+=1;else if(f<2048)s+=2;else if(f>=55296&&f<=56319&&l+1<c){const u=o.charCodeAt(l+1);u>=56320&&u<=57343?(s+=4,l++):s+=3}else s+=3}return s};function RQ(e){const t=typeof e=="string"?e.indexOf("#"):-1;return EQ(t===-1?e:e.slice(0,t),TQ)}const Sk="1.20.0",f$=64*1024,OQ={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:pv}=Me,MQ=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),p$=e=>{if(!Me.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},h$=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$Q=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},PQ=e=>{const t=Me.global!==void 0&&Me.global!==null?Me.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Me.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:a,Response:s}=e,l=o?pv(o):typeof fetch=="function",c=pv(a),f=pv(s);if(!l)return!1;const u=l&&pv(n),h=l&&(typeof r=="function"?(b=>T=>b.encode(T))(new r):async b=>new Uint8Array(await new a(b).arrayBuffer())),y=c&&u&&h$(()=>{let b=!1;const T=new a(Vo.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),E=T.headers.has("Content-Type");return T.body!=null&&T.body.cancel(),b&&!E}),v=f&&u&&h$(()=>Me.isReadableStream(new s("").body)),S={stream:v&&(b=>b.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!S[b]&&(S[b]=(T,E)=>{let M=T&&T[b];if(M)return M.call(T);throw new _t(`Response type '${b}' is not supported`,_t.ERR_NOT_SUPPORT,E)})});const x=async b=>{if(b==null)return 0;if(Me.isBlob(b))return b.size;if(Me.isSpecCompliantForm(b))return(await new a(Vo.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(Me.isArrayBufferView(b)||Me.isArrayBuffer(b))return b.byteLength;if(Me.isURLSearchParams(b)&&(b=b+""),Me.isString(b))return(await h(b)).byteLength},w=async(b,T)=>{const E=Me.toFiniteNumber(b.getContentLength());return E??x(T)};return async b=>{let{url:T,method:E,data:M,signal:$,cancelToken:D,timeout:I,onDownloadProgress:A,onUploadProgress:_,responseType:W,headers:V,withCredentials:k="same-origin",fetchOptions:z,maxContentLength:F,maxBodyLength:H,maxRedirects:N}=CI(b);const X=Me.isNumber(F)&&F>-1,Q=Me.isNumber(H)&&H>-1,te=ie=>Me.hasOwnProp(b,ie)?b[ie]:void 0;let Z=o||fetch;W=W?(W+"").toLowerCase():"text";let K=yQ([$,D&&D.toAbortSignal()],I),ne=null;const le=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let fe,ae=null;const se=()=>new _t("Request body larger than maxBodyLength limit",_t.ERR_BAD_REQUEST,b,ne);try{let ie;const pe=te("auth");if(pe){const oe=Me.getSafeProp(pe,"username")||"",lt=Me.getSafeProp(pe,"password")||"";ie={username:oe,password:lt}}if($Q(T)){const oe=new URL(T,Vo.origin);if(!ie&&(oe.username||oe.password)){const lt=p$(oe.username),Ne=p$(oe.password);ie={username:lt,password:Ne}}(oe.username||oe.password)&&(oe.username="",oe.password="",T=oe.href)}if(ie&&(V.delete("authorization"),V.set("Authorization","Basic "+btoa(MQ((ie.username||"")+":"+(ie.password||""))))),X&&typeof T=="string"&&T.startsWith("data:")&&RQ(T)>F)throw new _t("maxContentLength size of "+F+" exceeded",_t.ERR_BAD_RESPONSE,b,ne);if(Q&&E!=="get"&&E!=="head"){const oe=await x(M);if(typeof oe=="number"&&isFinite(oe)&&(fe=oe,oe>H))throw se()}const me=Q&&(Me.isReadableStream(M)||Me.isStream(M)),Te=(oe,lt,Ne)=>c$(oe,f$,et=>{if(Q&&et>H)throw ae=se();lt&<(et)},Ne);if(y&&E!=="get"&&E!=="head"&&(_||me)){if(fe=fe??await w(V,M),fe!==0||me){let oe=new a(T,{method:"POST",body:M,duplex:"half"}),lt;if(Me.isFormData(M)&&(lt=oe.headers.get("content-type"))&&V.setContentType(lt),oe.body){const[Ne,et]=_&&a$(fe,gb(i$(_)))||[];M=Te(oe.body,Ne,et)}}}else if(me&&!c&&u&&E!=="get"&&E!=="head")M=Te(M);else if(me&&c&&!y&&E!=="get"&&E!=="head")throw new _t("Stream request bodies are not supported by the current fetch implementation",_t.ERR_NOT_SUPPORT,b,ne);Me.isString(k)||(k=k?"include":"omit");const Ce=c&&"credentials"in a.prototype;if(Me.isFormData(M)){const oe=V.getContentType();oe&&/^multipart\/form-data/i.test(oe)&&!/boundary=/i.test(oe)&&V.delete("content-type")}V.set("User-Agent","axios/"+Sk,!1);const ke=z==null?z:Object.assign(Object.create(null),z);ke&&(delete ke.body,delete ke.headers,delete ke.method,delete ke.signal,delete ke.duplex,delete ke.credentials);const ce=Object.assign(Object.create(null),ke,{signal:K,method:E.toUpperCase(),headers:cI(V.normalize()),body:M,duplex:"half",credentials:Ce?k:void 0});c&&(Me.forEach(OQ,(oe,lt)=>{ce[lt]===void 0&&(ce[lt]=oe)}),ce.signal===void 0&&(ce.signal=null),ce.body===void 0&&(ce.body=null)),N===0&&(ce.redirect="manual",ke&&(ke.redirect="manual")),ne=c&&new a(T,ce);let we=await(c?Z(ne,ke):Z(T,ce));const Ge=ua.from(we.headers);if(X){const oe=Me.toFiniteNumber(Ge.getContentLength());if(oe!=null&&oe>F)throw new _t("maxContentLength size of "+F+" exceeded",_t.ERR_BAD_RESPONSE,b,ne)}const Be=v&&(W==="stream"||W==="response");if(v&&we.body&&(A||X||Be&&le)){const oe={};["status","statusText","headers"].forEach(zt=>{oe[zt]=we[zt]});const lt=Me.toFiniteNumber(Ge.getContentLength()),[Ne,et]=A&&a$(lt,gb(i$(A),!0))||[];let mt=0;const Wt=zt=>{if(X&&(mt=zt,mt>F))throw new _t("maxContentLength size of "+F+" exceeded",_t.ERR_BAD_RESPONSE,b,ne);Ne&&Ne(zt)};we=new s(c$(we.body,f$,Wt,()=>{et&&et(),le&&le()}),oe)}W=W||"text";let Ae=await S[Me.findKey(S,W)||"text"](we,b);if(X&&!v&&!Be){let oe;if(Ae!=null&&(typeof Ae.byteLength=="number"?oe=Ae.byteLength:typeof Ae.size=="number"?oe=Ae.size:typeof Ae=="string"&&(oe=typeof r=="function"?new r().encode(Ae).byteLength:Ae.length)),typeof oe=="number"&&oe>F)throw new _t("maxContentLength size of "+F+" exceeded",_t.ERR_BAD_RESPONSE,b,ne)}return!Be&&le&&le(),await new Promise((oe,lt)=>{xI(oe,lt,{data:Ae,headers:ua.from(we.headers),status:we.status,statusText:we.statusText,config:b,request:ne})})}catch(ie){if(le&&le(),K&&K.aborted&&K.reason instanceof _t){const pe=K.reason;throw pe.config=b,ne&&(pe.request=ne),ie!==pe&&Object.defineProperty(pe,"cause",{__proto__:null,value:ie,writable:!0,enumerable:!1,configurable:!0}),pe}if(ae)throw ne&&!ae.request&&(ae.request=ne),ae;if(ie instanceof _t)throw ne&&!ie.request&&(ie.request=ne),ie;if(ie&&ie.name==="TypeError"&&/Load failed|fetch/i.test(ie.message)){const pe=new _t("Network Error",_t.ERR_NETWORK,b,ne,ie&&ie.response);throw Object.defineProperty(pe,"cause",{__proto__:null,value:ie.cause||ie,writable:!0,enumerable:!1,configurable:!0}),pe}throw _t.from(ie,ie&&ie.code,b,ne,ie&&ie.response)}}},DQ=new Map,TI=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let s=a.length,l=s,c,f,u=DQ;for(;l--;)c=a[l],f=u.get(c),f===void 0&&u.set(c,f=l?new Map:PQ(t)),u=f;return f};TI();const wk={http:FK,xhr:gQ,fetch:{get:TI}};Me.forEach(wk,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const m$=e=>`- ${e}`,AQ=e=>Me.isFunction(e)||e===null||e===!1;function jQ(e,t){e=Me.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,!AQ(r)&&(o=wk[(l=String(r)).toLowerCase()],o===void 0))throw new _t(`Unknown adapter '${l}'`);if(o&&(Me.isFunction(o)||(o=o.get(t))))break;a[l||"#"+s]=o}if(!o){const s=Object.entries(a).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since :
|
|
268
|
-
`+s.map(m$).join(`
|
|
269
|
-
`):" "+m$(s[0]):"as no adapter specified";throw new _t("There is no suitable adapter to dispatch the request "+l,_t.ERR_NOT_SUPPORT)}return o}const EI={getAdapter:jQ,adapters:wk};function e1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _g(null,e)}function t1(e){const t=Me.toSafeFlatObject(e);return e1(t),t.headers=ua.from(Me.getSafeProp(t,"headers")),t.data=ZS.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),EI.getAdapter(t.adapter||Fg.adapter,t)(t).then(function(o){e1(t),t.response=o;try{o.data=ZS.call(t,t.transformResponse,o)}finally{delete t.response}return o.headers=ua.from(o.headers),o},function(o){if(!bI(o)&&(e1(t),o&&o.response)){t.response=o.response;try{o.response.data=ZS.call(t,t.transformResponse,o.response)}finally{delete t.response}o.response.headers=ua.from(o.response.headers)}return Promise.reject(o)})}const g0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{g0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const g$={};g0.transitional=function(t,n,r){function o(a,s){return"[Axios v"+Sk+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new _t(o(s," has been removed"+(n?" in "+n:"")),_t.ERR_DEPRECATED);return n&&!g$[s]&&(g$[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}};g0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function NQ(e,t,n){if(typeof e!="object"||e===null)throw new _t("options must be an object",_t.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){const l=e[a],c=l===void 0||s(l,a,e);if(c!==!0)throw new _t("option "+a+" must be "+c,_t.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _t("Unknown option "+a,_t.ERR_BAD_OPTION)}}const Wv={assertOptions:NQ,validators:g0},aa=Wv.validators;let Ju=class{constructor(t){this.defaults=t||{},this.interceptors={request:new r$,response:new r$}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack;let s="";if(typeof a=="string"){const l=a.indexOf(`
|
|
270
|
-
`);s=l===-1?"":a.slice(l+1)}if(!r.stack)r.stack=s;else if(s){const l=s.indexOf(`
|
|
271
|
-
`),c=l===-1?-1:s.indexOf(`
|
|
272
|
-
`,l+1),f=c===-1?"":s.slice(c+1);String(r.stack).endsWith(f)||(r.stack+=`
|
|
273
|
-
`+s)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ud(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Wv.assertOptions(r,{silentJSONParsing:aa.transitional(aa.boolean),forcedJSONParsing:aa.transitional(aa.boolean),clarifyTimeoutError:aa.transitional(aa.boolean),legacyInterceptorReqResOrdering:aa.transitional(aa.boolean),advertiseZstdAcceptEncoding:aa.transitional(aa.boolean),validateStatusUndefinedResolves:aa.transitional(aa.boolean)},!1),o!=null&&(Me.isFunction(o)?n.paramsSerializer={serialize:o}:Wv.assertOptions(o,{encode:aa.function,serialize:aa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Wv.assertOptions(n,{baseUrl:aa.spelling("baseURL"),withXsrfToken:aa.spelling("withXSRFToken")},!0),n.method=(Me.getSafeProp(n,"method")||Me.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&Me.merge(a.common,a[n.method]);a&&Me.forEach(vI.concat("common"),S=>{delete a[S]}),n.headers=ua.concat(s,a);const l=[];let c=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(n)===!1)return;c=c&&x.synchronous;const w=n.transitional||bk;w&&w.legacyInterceptorReqResOrdering?l.unshift(x.fulfilled,x.rejected):l.push(x.fulfilled,x.rejected)});const f=[];this.interceptors.response.forEach(function(x){f.push(x.fulfilled,x.rejected)});let u,h=0,y;if(!c){const S=[t1.bind(this),void 0];for(S.unshift(...l),S.push(...f),y=S.length,u=Promise.resolve(n);h<y;)u=u.then(S[h++],S[h++]);return u}y=l.length;let v=n;for(;h<y;){const S=l[h++],x=l[h++];try{v=S?S(v):v}catch(w){if(!x){u=Promise.reject(w);break}try{const b=x.call(this,w);Me.isThenable(b)&&(u=Promise.resolve(b).then(()=>t1.call(this,v)))}catch(b){u=Promise.reject(b)}break}}if(!u)try{u=t1.call(this,v)}catch(S){u=Promise.reject(S)}for(h=0,y=f.length;h<y;)u=u.then(f[h++],f[h++]);return u}getUri(t){t=ud(this.defaults,t);const n=wI(t.baseURL,t.url,t.allowAbsoluteUrls,t);return hI(n,t.params,t.paramsSerializer)}};Me.forEach(["delete","get","head","options"],function(t){Ju.prototype[t]=function(n,r){return this.request(ud(r||{},{method:t,url:n,data:r&&Me.hasOwnProp(r,"data")?r.data:void 0}))}});Me.forEach(["post","put","patch","query"],function(t){function n(r){return function(a,s,l){return this.request(ud(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Ju.prototype[t]=n(),t!=="query"&&(Ju.prototype[t+"Form"]=n(!0))});let IQ=class RI{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 _g(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 RI(function(o){t=o}),cancel:t}}};function LQ(e){return function(n){return e.apply(null,n)}}function zQ(e){return Me.isObject(e)&&e.isAxiosError===!0}const qv={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(qv).forEach(([e,t])=>{qv[t]===void 0&&(qv[t]=e)});function OI(e){const t=new Ju(e),n=ZN(Ju.prototype.request,t);return Me.extend(n,Ju.prototype,t,{allOwnKeys:!0}),Me.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return OI(ud(e,o))},n}const Ut=OI(Fg);Ut.Axios=Ju;Ut.CanceledError=_g;Ut.CancelToken=IQ;Ut.isCancel=bI;Ut.VERSION=Sk;Ut.toFormData=m0;Ut.AxiosError=_t;Ut.Cancel=Ut.CanceledError;Ut.all=function(t){return Promise.all(t)};Ut.spread=LQ;Ut.isAxiosError=zQ;Ut.mergeConfig=ud;Ut.AxiosHeaders=ua;Ut.formToJSON=e=>yI(Me.isHTMLForm(e)?new FormData(e):e);Ut.getAdapter=EI.getAdapter;Ut.HttpStatusCode=qv;Ut.default=Ut;const{Axios:Lge,AxiosError:zge,CanceledError:Fge,isCancel:_ge,CancelToken:Bge,VERSION:Uge,all:Vge,Cancel:Hge,isAxiosError:Wge,spread:qge,toFormData:Yge,AxiosHeaders:Gge,HttpStatusCode:Kge,formToJSON:Qge,getAdapter:Xge,mergeConfig:Zge,create:Jge}=Ut,xn="http://localhost/api/v0".replace(/\/+$/,"");let Ts=class{constructor(t,n=xn,r=Ut){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},FQ=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const wn={},Cn="https://example.com",ht=function(e,t,n){if(n==null)throw new FQ(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function kw(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)||t instanceof Set?t.forEach(r=>kw(e,r,n)):Object.keys(t).forEach(r=>kw(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);kw(n,t),e.search=n.toString()},_Q=function(e,t){return t instanceof Set?Array.from(t):t},Uo=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:{},_Q):e||""},Tn=function(e){return e.pathname+e.search+e.hash},En=function(e,t,n,r){return(o=t,a=n)=>{const s={...e.options,url:(o.defaults.baseURL?"":r?.basePath??a)+e.url};return o.request(s)}},MI={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},y$={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},xa={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},hv={Version:"version",Package:"package"},BQ=function(e){return{createConnection:async(t,n,r,o={})=>{ht("createConnection","environmentName",t),ht("createConnection","connectionName",n),ht("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 c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Uo(r,c,e),{url:Tn(s),options:c}},deleteConnection:async(t,n,r={})=>{ht("deleteConnection","environmentName",t),ht("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},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:Tn(a),options:l}},getConnection:async(t,n,r={})=>{ht("getConnection","environmentName",t),ht("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},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:Tn(a),options:l}},getTable:async(t,n,r,o,a={})=>{ht("getTable","environmentName",t),ht("getTable","connectionName",n),ht("getTable","schemaName",r),ht("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 c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:Tn(l),options:f}},getTableInPackage:async(t,n,r,o,a,s={})=>{ht("getTableInPackage","environmentName",t),ht("getTableInPackage","packageName",n),ht("getTableInPackage","connectionName",r),ht("getTableInPackage","schemaName",o),ht("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))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"GET",...f,...s},h={},y={};h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},{url:Tn(c),options:u}},listConnections:async(t,n={})=>{ht("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={},c={};l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},{url:Tn(o),options:s}},listSchemas:async(t,n,r={})=>{ht("listSchemas","environmentName",t),ht("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},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:Tn(a),options:l}},listSchemasInPackage:async(t,n,r,o={})=>{ht("listSchemasInPackage","environmentName",t),ht("listSchemasInPackage","packageName",n),ht("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 c={method:"GET",...l,...o},f={},u={};f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:Tn(s),options:c}},listTables:async(t,n,r,o,a={})=>{ht("listTables","environmentName",t),ht("listTables","connectionName",n),ht("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 c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};o&&(h.tableNames=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:Tn(l),options:f}},listTablesInPackage:async(t,n,r,o,a,s={})=>{ht("listTablesInPackage","environmentName",t),ht("listTablesInPackage","packageName",n),ht("listTablesInPackage","connectionName",r),ht("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))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"GET",...f,...s},h={},y={};a&&(y.tableNames=a),h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},{url:Tn(c),options:u}},postQuerydata:async(t,n,r,o={})=>{ht("postQuerydata","environmentName",t),ht("postQuerydata","connectionName",n),ht("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 c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Uo(r,c,e),{url:Tn(s),options:c}},postQuerydataInPackage:async(t,n,r,o,a={})=>{ht("postQuerydataInPackage","environmentName",t),ht("postQuerydataInPackage","packageName",n),ht("postQuerydataInPackage","connectionName",r),ht("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 c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};u["Content-Type"]="application/json",u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},f.data=Uo(o,f,e),{url:Tn(l),options:f}},postSqlsource:async(t,n,r,o={})=>{ht("postSqlsource","environmentName",t),ht("postSqlsource","connectionName",n),ht("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 c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Uo(r,c,e),{url:Tn(s),options:c}},postSqlsourceInPackage:async(t,n,r,o,a={})=>{ht("postSqlsourceInPackage","environmentName",t),ht("postSqlsourceInPackage","packageName",n),ht("postSqlsourceInPackage","connectionName",r),ht("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 c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};u["Content-Type"]="application/json",u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},f.data=Uo(o,f,e),{url:Tn(l),options:f}},postTemporarytable:async(t,n,r,o={})=>{ht("postTemporarytable","environmentName",t),ht("postTemporarytable","connectionName",n),ht("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 c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Uo(r,c,e),{url:Tn(s),options:c}},postTemporarytableInPackage:async(t,n,r,o,a={})=>{ht("postTemporarytableInPackage","environmentName",t),ht("postTemporarytableInPackage","packageName",n),ht("postTemporarytableInPackage","connectionName",r),ht("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 c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};u["Content-Type"]="application/json",u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},f.data=Uo(o,f,e),{url:Tn(l),options:f}},updateConnection:async(t,n,r,o={})=>{ht("updateConnection","environmentName",t),ht("updateConnection","connectionName",n),ht("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 c={method:"PATCH",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Uo(r,c,e),{url:Tn(s),options:c}}}},Ko=function(e){const t=BQ(e);return{async createConnection(n,r,o,a){const s=await t.createConnection(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.createConnection"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)},async deleteConnection(n,r,o){const a=await t.deleteConnection(n,r,o),s=e?.serverIndex??0,l=wn["ConnectionsApi.deleteConnection"]?.[s]?.url;return(c,f)=>En(a,Ut,xn,e)(c,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(c,f)=>En(a,Ut,xn,e)(c,l||f)},async getTable(n,r,o,a,s){const l=await t.getTable(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.getTable"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async getTableInPackage(n,r,o,a,s,l){const c=await t.getTableInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ConnectionsApi.getTableInPackage"]?.[f]?.url;return(h,y)=>En(c,Ut,xn,e)(h,u||y)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,s=wn["ConnectionsApi.listConnections"]?.[a]?.url;return(l,c)=>En(o,Ut,xn,e)(l,s||c)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),s=e?.serverIndex??0,l=wn["ConnectionsApi.listSchemas"]?.[s]?.url;return(c,f)=>En(a,Ut,xn,e)(c,l||f)},async listSchemasInPackage(n,r,o,a){const s=await t.listSchemasInPackage(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.listSchemasInPackage"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)},async listTables(n,r,o,a,s){const l=await t.listTables(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.listTables"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async listTablesInPackage(n,r,o,a,s,l){const c=await t.listTablesInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ConnectionsApi.listTablesInPackage"]?.[f]?.url;return(h,y)=>En(c,Ut,xn,e)(h,u||y)},async postQuerydata(n,r,o,a){const s=await t.postQuerydata(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.postQuerydata"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)},async postQuerydataInPackage(n,r,o,a,s){const l=await t.postQuerydataInPackage(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async postSqlsource(n,r,o,a){const s=await t.postSqlsource(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.postSqlsource"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)},async postSqlsourceInPackage(n,r,o,a,s){const l=await t.postSqlsourceInPackage(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async postTemporarytable(n,r,o,a){const s=await t.postTemporarytable(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.postTemporarytable"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)},async postTemporarytableInPackage(n,r,o,a,s){const l=await t.postTemporarytableInPackage(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async updateConnection(n,r,o,a){const s=await t.updateConnection(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.updateConnection"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)}}};let UQ=class extends Ts{createConnection(t,n,r,o){return Ko(this.configuration).createConnection(t,n,r,o).then(a=>a(this.axios,this.basePath))}deleteConnection(t,n,r){return Ko(this.configuration).deleteConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getConnection(t,n,r){return Ko(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getTable(t,n,r,o,a){return Ko(this.configuration).getTable(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getTableInPackage(t,n,r,o,a,s){return Ko(this.configuration).getTableInPackage(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}listConnections(t,n){return Ko(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ko(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listSchemasInPackage(t,n,r,o){return Ko(this.configuration).listSchemasInPackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,o,a){return Ko(this.configuration).listTables(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listTablesInPackage(t,n,r,o,a,s){return Ko(this.configuration).listTablesInPackage(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}postQuerydata(t,n,r,o){return Ko(this.configuration).postQuerydata(t,n,r,o).then(a=>a(this.axios,this.basePath))}postQuerydataInPackage(t,n,r,o,a){return Ko(this.configuration).postQuerydataInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}postSqlsource(t,n,r,o){return Ko(this.configuration).postSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}postSqlsourceInPackage(t,n,r,o,a){return Ko(this.configuration).postSqlsourceInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}postTemporarytable(t,n,r,o){return Ko(this.configuration).postTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}postTemporarytableInPackage(t,n,r,o,a){return Ko(this.configuration).postTemporarytableInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}updateConnection(t,n,r,o){return Ko(this.configuration).updateConnection(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const VQ=function(e){return{getDashboard:async(t,n,r,o,a={})=>{ht("getDashboard","environmentName",t),ht("getDashboard","packageName",n),ht("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 c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};o!==void 0&&(h.versionId=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:Tn(l),options:f}},listDashboards:async(t,n,r,o={})=>{ht("listDashboards","environmentName",t),ht("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 c={method:"GET",...l,...o},f={},u={};r!==void 0&&(u.versionId=r),f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:Tn(s),options:c}}}},v$=function(e){const t=VQ(e);return{async getDashboard(n,r,o,a,s){const l=await t.getDashboard(n,r,o,a,s),c=e?.serverIndex??0,f=wn["DashboardsApi.getDashboard"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async listDashboards(n,r,o,a){const s=await t.listDashboards(n,r,o,a),l=e?.serverIndex??0,c=wn["DashboardsApi.listDashboards"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)}}};let HQ=class extends Ts{getDashboard(t,n,r,o,a){return v$(this.configuration).getDashboard(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listDashboards(t,n,r,o){return v$(this.configuration).listDashboards(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const WQ=function(e){return{listDataApps:async(t,n,r={})=>{ht("listDataApps","environmentName",t),ht("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},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:Tn(a),options:l}}}},qQ=function(e){const t=WQ(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(c,f)=>En(a,Ut,xn,e)(c,l||f)}}};let YQ=class extends Ts{listDataApps(t,n,r){return qQ(this.configuration).listDataApps(t,n,r).then(o=>o(this.axios,this.basePath))}};const GQ=function(e){return{listDatabases:async(t,n,r,o={})=>{ht("listDatabases","environmentName",t),ht("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 c={method:"GET",...l,...o},f={},u={};r!==void 0&&(u.versionId=r),f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:Tn(s),options:c}}}},KQ=function(e){const t=GQ(e);return{async listDatabases(n,r,o,a){const s=await t.listDatabases(n,r,o,a),l=e?.serverIndex??0,c=wn["DatabasesApi.listDatabases"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)}}};let QQ=class extends Ts{listDatabases(t,n,r,o){return KQ(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const XQ=function(e){return{createEnvironment:async(t,n={})=>{ht("createEnvironment","environment",t);const r="/environments",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},c={};l["Content-Type"]="application/json",l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=Uo(t,s,e),{url:Tn(o),options:s}},deleteEnvironment:async(t,n={})=>{ht("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={},c={};l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},{url:Tn(o),options:s}},getEnvironment:async(t,n,r={})=>{ht("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},c={},f={};n!==void 0&&(f.reload=n),c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...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={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:Tn(r),options:a}},updateEnvironment:async(t,n,r={})=>{ht("updateEnvironment","environmentName",t),ht("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},c={},f={};c["Content-Type"]="application/json",c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},l.data=Uo(n,l,e),{url:Tn(a),options:l}}}},Xh=function(e){const t=XQ(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,c)=>En(o,Ut,xn,e)(l,s||c)},async deleteEnvironment(n,r){const o=await t.deleteEnvironment(n,r),a=e?.serverIndex??0,s=wn["EnvironmentsApi.deleteEnvironment"]?.[a]?.url;return(l,c)=>En(o,Ut,xn,e)(l,s||c)},async getEnvironment(n,r,o){const a=await t.getEnvironment(n,r,o),s=e?.serverIndex??0,l=wn["EnvironmentsApi.getEnvironment"]?.[s]?.url;return(c,f)=>En(a,Ut,xn,e)(c,l||f)},async listEnvironments(n){const r=await t.listEnvironments(n),o=e?.serverIndex??0,a=wn["EnvironmentsApi.listEnvironments"]?.[o]?.url;return(s,l)=>En(r,Ut,xn,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(c,f)=>En(a,Ut,xn,e)(c,l||f)}}};let ZQ=class extends Ts{createEnvironment(t,n){return Xh(this.configuration).createEnvironment(t,n).then(r=>r(this.axios,this.basePath))}deleteEnvironment(t,n){return Xh(this.configuration).deleteEnvironment(t,n).then(r=>r(this.axios,this.basePath))}getEnvironment(t,n,r){return Xh(this.configuration).getEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}listEnvironments(t){return Xh(this.configuration).listEnvironments(t).then(n=>n(this.axios,this.basePath))}updateEnvironment(t,n,r){return Xh(this.configuration).updateEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}};const JQ=function(e){return{createMaterialization:async(t,n,r,o={})=>{ht("createMaterialization","environmentName",t),ht("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 c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Uo(r,c,e),{url:Tn(s),options:c}},deleteMaterialization:async(t,n,r,o,a={})=>{ht("deleteMaterialization","environmentName",t),ht("deleteMaterialization","packageName",n),ht("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 c;e&&(c=e.baseOptions);const f={method:"DELETE",...c,...a},u={},h={};o!==void 0&&(h.dropTables=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:Tn(l),options:f}},getMaterialization:async(t,n,r,o={})=>{ht("getMaterialization","environmentName",t),ht("getMaterialization","packageName",n),ht("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 c={method:"GET",...l,...o},f={},u={};f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:Tn(s),options:c}},listMaterializations:async(t,n,r,o,a={})=>{ht("listMaterializations","environmentName",t),ht("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 c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};r!==void 0&&(h.limit=r),o!==void 0&&(h.offset=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:Tn(l),options:f}},materializationAction:async(t,n,r,o,a={})=>{ht("materializationAction","environmentName",t),ht("materializationAction","packageName",n),ht("materializationAction","materializationId",r),ht("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 c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};o!==void 0&&(h.action=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:Tn(l),options:f}}}},Zh=function(e){const t=JQ(e);return{async createMaterialization(n,r,o,a){const s=await t.createMaterialization(n,r,o,a),l=e?.serverIndex??0,c=wn["MaterializationsApi.createMaterialization"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)},async deleteMaterialization(n,r,o,a,s){const l=await t.deleteMaterialization(n,r,o,a,s),c=e?.serverIndex??0,f=wn["MaterializationsApi.deleteMaterialization"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async getMaterialization(n,r,o,a){const s=await t.getMaterialization(n,r,o,a),l=e?.serverIndex??0,c=wn["MaterializationsApi.getMaterialization"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)},async listMaterializations(n,r,o,a,s){const l=await t.listMaterializations(n,r,o,a,s),c=e?.serverIndex??0,f=wn["MaterializationsApi.listMaterializations"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async materializationAction(n,r,o,a,s){const l=await t.materializationAction(n,r,o,a,s),c=e?.serverIndex??0,f=wn["MaterializationsApi.materializationAction"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)}}};let eX=class extends Ts{createMaterialization(t,n,r,o){return Zh(this.configuration).createMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}deleteMaterialization(t,n,r,o,a){return Zh(this.configuration).deleteMaterialization(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getMaterialization(t,n,r,o){return Zh(this.configuration).getMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}listMaterializations(t,n,r,o,a){return Zh(this.configuration).listMaterializations(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}materializationAction(t,n,r,o,a){return Zh(this.configuration).materializationAction(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}};const tX={Stop:"stop"},nX=function(e){return{compileModelSource:async(t,n,r,o,a={})=>{ht("compileModelSource","environmentName",t),ht("compileModelSource","packageName",n),ht("compileModelSource","path",r),ht("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 c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};u["Content-Type"]="application/json",u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},f.data=Uo(o,f,e),{url:Tn(l),options:f}},executeQueryModel:async(t,n,r,o,a,s={})=>{ht("executeQueryModel","environmentName",t),ht("executeQueryModel","packageName",n),ht("executeQueryModel","path",r),ht("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))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"POST",...f,...s},h={},y={};a!==void 0&&(y.includeHiddenFilesAndSources=a),h["Content-Type"]="application/json",h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},u.data=Uo(o,u,e),{url:Tn(c),options:u}},getModel:async(t,n,r,o,a,s={})=>{ht("getModel","environmentName",t),ht("getModel","packageName",n),ht("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))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"GET",...f,...s},h={},y={};o!==void 0&&(y.versionId=o),a!==void 0&&(y.includeHiddenFilesAndSources=a),h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},{url:Tn(c),options:u}},listModels:async(t,n,r,o,a={})=>{ht("listModels","environmentName",t),ht("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 c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};r!==void 0&&(h.versionId=r),o!==void 0&&(h.includeHiddenFilesAndSources=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:Tn(l),options:f}},updateModelSource:async(t,n,r,o,a,s={})=>{ht("updateModelSource","environmentName",t),ht("updateModelSource","packageName",n),ht("updateModelSource","path",r),ht("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))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"PUT",...f,...s},h={},y={};a!==void 0&&(y.versionId=a),h["Content-Type"]="application/json",h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},u.data=Uo(o,u,e),{url:Tn(c),options:u}}}},Jh=function(e){const t=nX(e);return{async compileModelSource(n,r,o,a,s){const l=await t.compileModelSource(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ModelsApi.compileModelSource"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async executeQueryModel(n,r,o,a,s,l){const c=await t.executeQueryModel(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ModelsApi.executeQueryModel"]?.[f]?.url;return(h,y)=>En(c,Ut,xn,e)(h,u||y)},async getModel(n,r,o,a,s,l){const c=await t.getModel(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ModelsApi.getModel"]?.[f]?.url;return(h,y)=>En(c,Ut,xn,e)(h,u||y)},async listModels(n,r,o,a,s){const l=await t.listModels(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ModelsApi.listModels"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async updateModelSource(n,r,o,a,s,l){const c=await t.updateModelSource(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ModelsApi.updateModelSource"]?.[f]?.url;return(h,y)=>En(c,Ut,xn,e)(h,u||y)}}};let rX=class extends Ts{compileModelSource(t,n,r,o,a){return Jh(this.configuration).compileModelSource(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}executeQueryModel(t,n,r,o,a,s){return Jh(this.configuration).executeQueryModel(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}getModel(t,n,r,o,a,s){return Jh(this.configuration).getModel(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,o,a){return Jh(this.configuration).listModels(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}updateModelSource(t,n,r,o,a,s){return Jh(this.configuration).updateModelSource(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}};const oX=function(e){return{executeNotebookCell:async(t,n,r,o,a,s,l,c,f={})=>{ht("executeNotebookCell","environmentName",t),ht("executeNotebookCell","packageName",n),ht("executeNotebookCell","path",r),ht("executeNotebookCell","cellIndex",o);const u="/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(u,Cn);let y;e&&(y=e.baseOptions);const v={method:"GET",...y,...f},S={},x={};a!==void 0&&(x.versionId=a),s!==void 0&&(x.filter_params=s),l!==void 0&&(x.bypass_filters=l),c!==void 0&&(x.givens=c),S.Accept="application/json",kn(h,x);let w=y&&y.headers?y.headers:{};return v.headers={...S,...w,...f.headers},{url:Tn(h),options:v}},getNotebook:async(t,n,r,o,a={})=>{ht("getNotebook","environmentName",t),ht("getNotebook","packageName",n),ht("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 c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};o!==void 0&&(h.versionId=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:Tn(l),options:f}},listNotebooks:async(t,n,r,o={})=>{ht("listNotebooks","environmentName",t),ht("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 c={method:"GET",...l,...o},f={},u={};r!==void 0&&(u.versionId=r),f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:Tn(s),options:c}}}},n1=function(e){const t=oX(e);return{async executeNotebookCell(n,r,o,a,s,l,c,f,u){const h=await t.executeNotebookCell(n,r,o,a,s,l,c,f,u),y=e?.serverIndex??0,v=wn["NotebooksApi.executeNotebookCell"]?.[y]?.url;return(S,x)=>En(h,Ut,xn,e)(S,v||x)},async getNotebook(n,r,o,a,s){const l=await t.getNotebook(n,r,o,a,s),c=e?.serverIndex??0,f=wn["NotebooksApi.getNotebook"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,f||h)},async listNotebooks(n,r,o,a){const s=await t.listNotebooks(n,r,o,a),l=e?.serverIndex??0,c=wn["NotebooksApi.listNotebooks"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)}}};let aX=class extends Ts{executeNotebookCell(t,n,r,o,a,s,l,c,f){return n1(this.configuration).executeNotebookCell(t,n,r,o,a,s,l,c,f).then(u=>u(this.axios,this.basePath))}getNotebook(t,n,r,o,a){return n1(this.configuration).getNotebook(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,o){return n1(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const iX=function(e){return{createPackage:async(t,n,r={})=>{ht("createPackage","environmentName",t),ht("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},c={},f={};c["Content-Type"]="application/json",c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},l.data=Uo(n,l,e),{url:Tn(a),options:l}},deletePackage:async(t,n,r={})=>{ht("deletePackage","environmentName",t),ht("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},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:Tn(a),options:l}},getPackage:async(t,n,r,o,a={})=>{ht("getPackage","environmentName",t),ht("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 c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};r!==void 0&&(h.versionId=r),o!==void 0&&(h.reload=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:Tn(l),options:f}},listPackages:async(t,n={})=>{ht("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={},c={};l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},{url:Tn(o),options:s}},updatePackage:async(t,n,r,o={})=>{ht("updatePackage","environmentName",t),ht("updatePackage","packageName",n),ht("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 c={method:"PATCH",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Uo(r,c,e),{url:Tn(s),options:c}}}},em=function(e){const t=iX(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(c,f)=>En(a,Ut,xn,e)(c,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(c,f)=>En(a,Ut,xn,e)(c,l||f)},async getPackage(n,r,o,a,s){const l=await t.getPackage(n,r,o,a,s),c=e?.serverIndex??0,f=wn["PackagesApi.getPackage"]?.[c]?.url;return(u,h)=>En(l,Ut,xn,e)(u,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,c)=>En(o,Ut,xn,e)(l,s||c)},async updatePackage(n,r,o,a){const s=await t.updatePackage(n,r,o,a),l=e?.serverIndex??0,c=wn["PackagesApi.updatePackage"]?.[l]?.url;return(f,u)=>En(s,Ut,xn,e)(f,c||u)}}};let sX=class extends Ts{createPackage(t,n,r){return em(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return em(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return em(this.configuration).getPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return em(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return em(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const lX=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={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...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={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...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={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:Tn(r),options:a}},updateTheme:async(t,n={})=>{ht("updateTheme","theme",t);const r="/theme",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...n},l={},c={};l["Content-Type"]="application/json",l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=Uo(t,s,e),{url:Tn(o),options:s}}}},mv=function(e){const t=lX(e);return{async deleteTheme(n){const r=await t.deleteTheme(n),o=e?.serverIndex??0,a=wn["PublisherApi.deleteTheme"]?.[o]?.url;return(s,l)=>En(r,Ut,xn,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)=>En(r,Ut,xn,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)=>En(r,Ut,xn,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,c)=>En(o,Ut,xn,e)(l,s||c)}}};let cX=class extends Ts{deleteTheme(t){return mv(this.configuration).deleteTheme(t).then(n=>n(this.axios,this.basePath))}getStatus(t){return mv(this.configuration).getStatus(t).then(n=>n(this.axios,this.basePath))}getTheme(t){return mv(this.configuration).getTheme(t).then(n=>n(this.axios,this.basePath))}updateTheme(t,n){return mv(this.configuration).updateTheme(t,n).then(r=>r(this.axios,this.basePath))}};const uX=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={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:Tn(r),options:a}},startWatching:async(t,n={})=>{ht("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={},c={};l["Content-Type"]="application/json",l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=Uo(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={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:Tn(r),options:a}},streamPackageEvents:async(t,n,r={})=>{ht("streamPackageEvents","environmentName",t),ht("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},c={},f={};c.Accept="text/event-stream,application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:Tn(a),options:l}}}},gv=function(e){const t=uX(e);return{async getWatchStatus(n){const r=await t.getWatchStatus(n),o=e?.serverIndex??0,a=wn["WatchModeApi.getWatchStatus"]?.[o]?.url;return(s,l)=>En(r,Ut,xn,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,c)=>En(o,Ut,xn,e)(l,s||c)},async stopWatching(n){const r=await t.stopWatching(n),o=e?.serverIndex??0,a=wn["WatchModeApi.stopWatching"]?.[o]?.url;return(s,l)=>En(r,Ut,xn,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(c,f)=>En(a,Ut,xn,e)(c,l||f)}}};let dX=class extends Ts{getWatchStatus(t){return gv(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return gv(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return gv(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}streamPackageEvents(t,n,r){return gv(this.configuration).streamPackageEvents(t,n,r).then(o=>o(this.axios,this.basePath))}},fX=class{apiKey;username;password;accessToken;awsv4;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.awsv4=t.awsv4,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){return t!==null&&/^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(t)}};const Wr={blue:"#2563eb",violet:"#7c3aed",pink:"#be185d",red:"#dc2626",orange:"#c2410c",amber:"#b45309",lime:"#4d7c0f",emerald:"#059669",teal:"#0f766e",cyan:"#0e7490"},Ck={environment:Wr.emerald,package:Wr.teal,connection:Wr.orange},pi='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',pX=at(T8)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),hX=at(M8)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),$I=at(N8)({padding:"0"}),mX=at("div")(({theme:e})=>({backgroundColor:e.palette.background.default,padding:"0 8px 0px 8px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"})),gX=at("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Ff=at("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"}),yX=at("div")({height:"100%"}),PI=at("div")({height:"75vh",width:"100%",overflowY:"auto"}),vX=[Wr.blue,Wr.orange,Wr.emerald,Wr.pink,Wr.violet,Wr.amber,Wr.cyan,Wr.lime],bX="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",b$={palette:{series:vX,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:Wr.blue,dark:Wr.blue}},font:{family:bX,size:12}},xX=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor"];function DI(e,t){const n=b$.palette??{},r=b$.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 xX){const v=h.palette?.[y];v&&(l[y]={...l[y],...v})}typeof h.font?.family=="string"&&(a=h.font.family),typeof h.font?.size=="number"&&(s=h.font.size)}const c=t==="dark",f=h=>l[h][t]??n[h]?.[t],u=f("background");return{mode:t,series:o,font:{family:a,size:s},background:u,tableHeader:f("tableHeader"),tableHeaderBackground:f("tableHeaderBackground"),tableBody:f("tableBody"),tile:f("tile"),tileTitle:f("tileTitle"),mapColor:f("mapColor"),tableBackground:u,border:c?"1px solid #334155":"1px solid #e2e8f0",cardBorder:c?"1px solid #475569":"1px solid #cbd5e1",pinnedBorder:c?"1px solid #475569":"1px solid #cbd5e1",valueColor:c?"#f1f5f9":"#0f172a",foreground:c?"#e2e8f0":"#0f172a",axisFaint:c?"#475569":"#cbd5e1",dashboardRoot:c?"#0f172a":"#ffffff",drillLink:c?"#60a5fa":Wr.blue}}function SX(e,t,n){const r=t??e??"light";return r==="auto"?n?"dark":"light":r}const AI=C.createContext(void 0);function wX({layers:e,mode:t,userChoice:n,setMode:r,allowUserToggle:o=!0,children:a}){const s=C.useMemo(()=>DI(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(AI.Provider,{value:l,children:a})}function dl(){return C.useContext(AI)||{theme:DI([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const kk=new wG({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),CX={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},Tw="publisher:themeMode";function kX(){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(Tw);if(e==="light"||e==="dark"||e==="auto")return e}catch{}}function TX(e){if(!(typeof window>"u"))try{e===void 0?window.localStorage.removeItem(Tw):window.localStorage.setItem(Tw,e)}catch{}}function EX(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}Ut.defaults.baseURL||(Ut.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const jI=C.createContext(void 0),RX=(e,t)=>{const n=`${window.location.protocol}//${window.location.host}/api/v0`,r=Ut.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 fX({basePath:n});return{models:new rX(o,n,r),publisher:new cX(o,n,r),environments:new ZQ(o,n,r),packages:new sX(o,n,r),dashboards:new HQ(o,n,r),dataApps:new YQ(o,n,r),notebooks:new aX(o,n,r),connections:new UQ(o,n,r),databases:new QQ(o,n,r),materializations:new eX(o,n,r),watchMode:new dX(o,n,r)}},OX=e=>m.jsx(CG,{client:kk,children:m.jsx(MX,{...e})}),MX=({children:e,getAccessToken:t,baseURL:n,mutable:r,theme:o})=>{const a=C.useMemo(()=>RX(n,t),[n,t]),s=n||`${window.location.protocol}//${window.location.host}/api/v0`,l=XN({queryKey:["status"],queryFn:async()=>(await a.publisher.getStatus()).data});l.error&&console.error("Failed to fetch publisher status:",l.error);const c=l.data?.frozenConfig,f=l.data?.theme,u=l.isLoading;let h;l.isLoading||l.error?h=r:c?h=!1:h=r??!0;const y=C.useMemo(()=>[f,o],[f,o]),[v,S]=C.useState(kX),[x,w]=C.useState(EX);C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const D=window.matchMedia("(prefers-color-scheme: dark)"),I=A=>w(A.matches);return D.addEventListener("change",I),()=>D.removeEventListener("change",I)},[]);const b=C.useCallback(D=>{S(D),TX(D)},[]),T=f?.allowUserToggle??!0,E=T?v:void 0,M=C.useMemo(()=>SX(f?.defaultMode,E,x),[f?.defaultMode,E,x]),$={server:s,getAccessToken:t,apiClients:a,mutable:h,isLoadingStatus:u,instanceTheme:f};return m.jsx(jI.Provider,{value:$,children:m.jsx(wX,{layers:y,mode:M,userChoice:E,setMode:b,allowUserToggle:T,children:e})})},Br=()=>{const e=C.useContext(jI);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e};var $u={},vs={},x$;function $p(){if(x$)return vs;x$=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.isChainOp=e,vs.isStringCondition=t,vs.isStringFilter=n,vs.isBooleanFilter=r,vs.isNumberFilter=o,vs.isTemporalFilter=a,vs.isFilterExpression=s,vs.isFilterable=l;function e(c){return["and","or",","].includes(c)}function t(c){return["starts","ends","contains","="].includes(c.operator)}function n(c){return typeof c=="object"&&c!==null&&"operator"in c&&typeof c.operator=="string"&&["starts","ends","contains","=","~","null","none","empty","and","or",",","()"].includes(c.operator)}function r(c){return typeof c=="object"&&c!==null&&"operator"in c&&typeof c.operator=="string"&&["null","none","true","false","=false","=true"].includes(c.operator)}function o(c){return typeof c=="object"&&c!==null&&"operator"in c&&typeof c.operator=="string"&&["range","<=",">=","!=","=",">","<","and","or","()","null","none"].includes(c.operator)}function a(c){return typeof c=="object"&&c!==null&&"operator"in c&&typeof c.operator=="string"&&["literal","before","after","to","for","in","and","or","in_last","this","last","next","()","null","none"].includes(c.operator)}function s(c){return typeof c=="object"&&c!==null&&"operator"in c}function l(c){return["string","number","boolean","timestamp","timestamptz","date"].includes(c)}return vs}var tm={},S$;function $X(){return S$||(S$=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.BooleanFilterExpression=void 0,tm.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}}),tm}var r1={},ia={},w$;function y0(){if(w$)return ia;w$=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.maybeNot=t,ia.unescape=n,ia.escape=r,ia.matchOp=a,ia.conjoin=l,ia.joinNumbers=c,ia.mkRange=f,ia.mkValues=u,ia.numNot=h,ia.temporalNot=y,ia.joinTemporal=v,ia.timeLiteral=S,ia.mkUnits=x;const e=$p();function t(w){const[b,T]=w;return b&&T&&(0,e.isStringFilter)(T)?{...T,not:!0}:T}function n(w){return w.replace(/\\(.)/g,"$1")}function r(w){const b=w.toLowerCase();return b==="null"||b==="empty"||b==="none"?"\\"+w:w.replace(/([,; |()\\%_-])/g,"\\$1")}function o(w){let b=!1,T=!1,E=0,M=!1;const $=w.length;for(let D=0;D<$;D+=1){const I=w[D];if(I===" "||I===" "){E+=1;continue}E=0,I==="%"?(M=!0,D===0&&(b=!0),T=!0):(T=!1,I==="\\"?D+=1:I==="_"&&(M=!0))}return{hasLike:M,percentEnd:T&&$>1,percentStart:b&&$>1,endSpace:E}}function a(w){let b=w.trimStart();const{hasLike:T,percentEnd:E,percentStart:M,endSpace:$}=o(b);if($>0&&(b=b.slice(0,-$)),T){if(M&&E){const D=b.slice(1,-1);if(!o(D).hasLike&&D.length>0)return{operator:"contains",values:[n(D)]}}else if(E){const D=b.slice(0,-1);if(!o(D).hasLike)return{operator:"starts",values:[n(D)]}}else if(M){const D=b.slice(1);if(!o(D).hasLike)return{operator:"ends",values:[n(D)]}}return{operator:"~",escaped_values:[b]}}return b.toLowerCase()==="null"?{operator:"null"}:b.toLowerCase()==="empty"?{operator:"empty"}:b.toLowerCase()==="none"?{operator:"none"}:{operator:"=",values:[n(b)]}}function s(w,b){var T,E;return w.operator===b.operator&&((T=w.not)!==null&&T!==void 0?T:!1)===((E=b.not)!==null&&E!==void 0?E:!1)}function l(w,b,T){if(b=b.toLowerCase(),(0,e.isStringFilter)(w)&&(0,e.isStringFilter)(T)){if(b===","){if(w.operator==="~"&&s(w,T))return{...w,escaped_values:[...w.escaped_values,...T.escaped_values]};if((0,e.isStringCondition)(w)&&s(w,T))return{...w,values:[...w.values,...T.values]}}const E=b===","?",":b==="|"?"or":b===";"?"and":void 0;if(E)return w.operator===E?{...w,members:[...w.members,T]}:{operator:E,members:[w,T]}}return null}function c(w,b,T){if(b=b.toLowerCase(),(0,e.isNumberFilter)(w)&&(0,e.isNumberFilter)(T)){if(b==="or"&&w.operator==="="&&s(w,T)){const E={operator:"=",values:[...w.values,...T.values]};return w.not&&(E.not=!0),E}if(b==="and"||b==="or")return w.operator===b?{...w,members:[...w.members,T]}:{operator:b,members:[w,T]}}return null}function f(w,b,T,E){return{operator:"range",startValue:b,startOperator:w==="("?">":">=",endValue:T,endOperator:E===")"?"<":"<="}}function u(w,b){return{values:[w,...b]}}function h(w,b){return(0,e.isNumberFilter)(w)&&b?w.operator==="="?{operator:"!=",values:w.values}:w.operator==="!="?{operator:"=",values:w.values}:{...w,not:!0}:w}function y(w,b){if((0,e.isTemporalFilter)(w)&&b){if("not"in w){const T={...w};return w.not?delete T.not:T.not=!0,T}return{...w,not:!0}}return w}function v(w,b,T){return b=b.toLowerCase(),(0,e.isTemporalFilter)(w)&&(0,e.isTemporalFilter)(T)&&(b==="and"||b==="or")?w.operator===b?{...w,members:[...w.members,T]}:{operator:b,members:[w,T]}:null}function S(w,b){const T={moment:"literal",literal:w};return b&&(T.units=b),T}function x(w){switch(w.toLowerCase()){case"second":case"seconds":return"second";case"minute":case"minutes":return"minute";case"hour":case"hours":return"hour";case"day":case"days":return"day";case"week":case"weeks":return"week";case"month":case"months":return"month";case"quarter":case"quarters":return"quarter";case"year":case"years":return"year"}}return ia}var o1,C$;function PX(){if(C$)return o1;C$=1;const{numNot:e,mkRange:t,joinNumbers:n,mkValues:r}=y0();function o(c,f){function u(){this.constructor=c}u.prototype=f.prototype,c.prototype=new u}function a(c,f,u,h){var y=Error.call(this,c);return Object.setPrototypeOf&&Object.setPrototypeOf(y,a.prototype),y.expected=f,y.found=u,y.location=h,y.name="SyntaxError",y}o(a,Error);function s(c,f,u){return u=u||" ",c.length>f?c:(f-=c.length,u+=u.repeat(f),c+u.slice(0,f))}a.prototype.format=function(c){var f="Error: "+this.message;if(this.location){var u=null,h;for(h=0;h<c.length;h++)if(c[h].source===this.location.source){u=c[h].text.split(/\r\n|\n|\r/g);break}var y=this.location.start,v=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,S=this.location.source+":"+v.line+":"+v.column;if(u){var x=this.location.end,w=s("",v.line.toString().length," "),b=u[y.line-1],T=y.line===x.line?x.column:b.length+1,E=T-y.column||1;f+=`
|
|
274
|
-
--> `+S+`
|
|
275
|
-
`+w+` |
|
|
276
|
-
`+v.line+" | "+b+`
|
|
277
|
-
`+w+" | "+s("",y.column-1," ")+s("",E,"^")}else f+=`
|
|
278
|
-
at `+S}return f},a.buildMessage=function(c,f){var u={literal:function(b){return'"'+y(b.text)+'"'},class:function(b){var T=b.parts.map(function(E){return Array.isArray(E)?v(E[0])+"-"+v(E[1]):v(E)});return"["+(b.inverted?"^":"")+T.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(b){return b.description}};function h(b){return b.charCodeAt(0).toString(16).toUpperCase()}function y(b){return b.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(T){return"\\x0"+h(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+h(T)})}function v(b){return b.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(T){return"\\x0"+h(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+h(T)})}function S(b){return u[b.type](b)}function x(b){var T=b.map(S),E,M;if(T.sort(),T.length>0){for(E=1,M=1;E<T.length;E++)T[E-1]!==T[E]&&(T[M]=T[E],M++);T.length=M}switch(T.length){case 1:return T[0];case 2:return T[0]+" or "+T[1];default:return T.slice(0,-1).join(", ")+", or "+T[T.length-1]}}function w(b){return b?'"'+y(b)+'"':"end of input"}return"Expected "+x(c)+" but "+w(f)+" found."};function l(c,f){f=f!==void 0?f:{};var u={},h=f.grammarSource,y={numberFilter:kt},v=kt,S="(",x=")",w="!=",b=",",T="=",E="<=",M=">=",$="[",D="]",I="-",A=".",_="not",W="null",V="none",k="and",z="or",F="to",H=/^[<>]/,N=/^[0-9]/,X=/^[Ee]/,Q=/^[+\-]/,te=/^[a-zA-Z]/,Z=/^[ \t]/,K=Fn("(",!1),ne=Fn(")",!1),le=Fn("!=",!1),fe=Fn(",",!1),ae=Fn("=",!1),se=Fn("<=",!1),ie=Fn(">=",!1),pe=on(["<",">"],!1,!1),me=Fn("[",!1),Te=Fn("]",!1),Ce=Fn("-",!1),ke=on([["0","9"]],!1,!1),ce=Fn(".",!1),we=on(["E","e"],!1,!1),Ge=on(["+","-"],!1,!1),Be=Fn("not",!0),Ae=Fn("null",!0),oe=Fn("none",!0),lt=Fn("and",!0),Ne=Fn("or",!0),et=Fn("to",!0),mt=on([["a","z"],["A","Z"]],!1,!1),Wt=ge("whitespace"),zt=on([" "," "],!1,!1),tt=function(ye,Re){return Re.reduce((it,[,xt,,Et])=>n(it,xt,Et),ye)},Je=function(ye,Re){return e(Re,ye)},ct=function(ye){return ye},Ie=function(){return{operator:"null"}},he=function(){return{operator:"none"}},qe=function(ye){return{operator:"()",expr:ye}},De=function(ye,Re,it,xt){return t(ye,Re,it,xt)},wt=function(ye,Re){return{operator:"!=",...r(ye,Re.map(it=>it[3]))}},Ct=function(ye,Re){return{operator:"=",...r(ye,Re.map(it=>it[3]))}},yt=function(ye,Re){return{operator:ye,values:[Re]}},st=function(ye,Re){return{operator:"=",...r(ye,Re.map(it=>it[3]))}},jt=function(){return"["},qt=function(){return"("},mn=function(){return"]"},$n=function(){return")"},_n=function(ye){return ye},Un=function(){return"or"},Jt=function(){return"and"},An=function(){return"not"},xe=f.peg$currPos|0,Vn=[{line:1,column:1}],Rn=xe,en=f.peg$maxFailExpected||[],$t=f.peg$silentFails|0,zr;if(f.startRule){if(!(f.startRule in y))throw new Error(`Can't start parsing from rule "`+f.startRule+'".');v=y[f.startRule]}function Fn(ye,Re){return{type:"literal",text:ye,ignoreCase:Re}}function on(ye,Re,it){return{type:"class",parts:ye,inverted:Re,ignoreCase:it}}function Ln(){return{type:"end"}}function ge(ye){return{type:"other",description:ye}}function Ee(ye){var Re=Vn[ye],it;if(Re)return Re;if(ye>=Vn.length)it=Vn.length-1;else for(it=ye;!Vn[--it];);for(Re=Vn[it],Re={line:Re.line,column:Re.column};it<ye;)c.charCodeAt(it)===10?(Re.line++,Re.column=1):Re.column++,it++;return Vn[ye]=Re,Re}function Le(ye,Re,it){var xt=Ee(ye),Et=Ee(Re),Rt={source:h,start:{offset:ye,line:xt.line,column:xt.column},end:{offset:Re,line:Et.line,column:Et.column}};return Rt}function Ve(ye){xe<Rn||(xe>Rn&&(Rn=xe,en=[]),en.push(ye))}function rt(ye,Re,it){return new a(a.buildMessage(ye,Re),ye,Re,it)}function kt(){var ye,Re,it,xt,Et,Rt,At,Zt;if(ye=xe,Re=bt(),Re!==u){for(it=[],xt=xe,Et=nn(),Rt=Ft(),Rt!==u?(At=nn(),Zt=bt(),Zt!==u?(Et=[Et,Rt,At,Zt],xt=Et):(xe=xt,xt=u)):(xe=xt,xt=u);xt!==u;)it.push(xt),xt=xe,Et=nn(),Rt=Ft(),Rt!==u?(At=nn(),Zt=bt(),Zt!==u?(Et=[Et,Rt,At,Zt],xt=Et):(xe=xt,xt=u)):(xe=xt,xt=u);ye=tt(Re,it)}else xe=ye,ye=u;return ye}function bt(){var ye,Re,it;return ye=xe,Re=ue(),Re!==u?(nn(),it=Tt(),it!==u?ye=Je(Re,it):(xe=ye,ye=u)):(xe=ye,ye=u),ye===u&&(ye=xe,Re=Tt(),Re!==u&&(Re=ct(Re)),ye=Re),ye}function Tt(){var ye,Re,it,xt,Et,Rt,At,Zt,bn,tr;if(ye=xe,Re=de(),Re!==u&&(Re=Ie()),ye=Re,ye===u&&(ye=xe,Re=ze(),Re!==u&&(Re=he()),ye=Re,ye===u&&(ye=xe,c.charCodeAt(xe)===40?(Re=S,xe++):(Re=u,$t===0&&Ve(K)),Re!==u?(it=nn(),xt=kt(),xt!==u?(Et=nn(),c.charCodeAt(xe)===41?(Rt=x,xe++):(Rt=u,$t===0&&Ve(ne)),Rt!==u?ye=qe(xt):(xe=ye,ye=u)):(xe=ye,ye=u)):(xe=ye,ye=u),ye===u&&(ye=xe,Re=Pt(),Re!==u?(it=nn(),xt=Dt(),xt!==u?(Et=nn(),Rt=Mt(),Rt!==u?(At=nn(),Zt=Dt(),Zt!==u?(bn=nn(),tr=Kt(),tr!==u?ye=De(Re,xt,Zt,tr):(xe=ye,ye=u)):(xe=ye,ye=u)):(xe=ye,ye=u)):(xe=ye,ye=u)):(xe=ye,ye=u),ye===u)))){if(ye=xe,c.substr(xe,2)===w?(Re=w,xe+=2):(Re=u,$t===0&&Ve(le)),Re!==u)if(it=nn(),xt=Dt(),xt!==u){for(Et=[],Rt=xe,At=nn(),c.charCodeAt(xe)===44?(Zt=b,xe++):(Zt=u,$t===0&&Ve(fe)),Zt!==u?(bn=nn(),tr=Dt(),tr!==u?(At=[At,Zt,bn,tr],Rt=At):(xe=Rt,Rt=u)):(xe=Rt,Rt=u);Rt!==u;)Et.push(Rt),Rt=xe,At=nn(),c.charCodeAt(xe)===44?(Zt=b,xe++):(Zt=u,$t===0&&Ve(fe)),Zt!==u?(bn=nn(),tr=Dt(),tr!==u?(At=[At,Zt,bn,tr],Rt=At):(xe=Rt,Rt=u)):(xe=Rt,Rt=u);ye=wt(xt,Et)}else xe=ye,ye=u;else xe=ye,ye=u;if(ye===u){if(ye=xe,c.charCodeAt(xe)===61?(Re=T,xe++):(Re=u,$t===0&&Ve(ae)),Re!==u)if(it=nn(),xt=Dt(),xt!==u){for(Et=[],Rt=xe,At=nn(),c.charCodeAt(xe)===44?(Zt=b,xe++):(Zt=u,$t===0&&Ve(fe)),Zt!==u?(bn=nn(),tr=Dt(),tr!==u?(At=[At,Zt,bn,tr],Rt=At):(xe=Rt,Rt=u)):(xe=Rt,Rt=u);Rt!==u;)Et.push(Rt),Rt=xe,At=nn(),c.charCodeAt(xe)===44?(Zt=b,xe++):(Zt=u,$t===0&&Ve(fe)),Zt!==u?(bn=nn(),tr=Dt(),tr!==u?(At=[At,Zt,bn,tr],Rt=At):(xe=Rt,Rt=u)):(xe=Rt,Rt=u);ye=Ct(xt,Et)}else xe=ye,ye=u;else xe=ye,ye=u;if(ye===u&&(ye=xe,Re=xe,c.substr(xe,2)===E?(it=E,xe+=2):(it=u,$t===0&&Ve(se)),it===u&&(c.substr(xe,2)===M?(it=M,xe+=2):(it=u,$t===0&&Ve(ie)),it===u&&(it=c.charAt(xe),H.test(it)?xe++:(it=u,$t===0&&Ve(pe)))),it!==u?Re=c.substring(Re,xe):Re=it,Re!==u?(it=nn(),xt=Dt(),xt!==u?ye=yt(Re,xt):(xe=ye,ye=u)):(xe=ye,ye=u),ye===u))if(ye=xe,Re=Dt(),Re!==u){for(it=[],xt=xe,Et=nn(),c.charCodeAt(xe)===44?(Rt=b,xe++):(Rt=u,$t===0&&Ve(fe)),Rt!==u?(At=nn(),Zt=Dt(),Zt!==u?(Et=[Et,Rt,At,Zt],xt=Et):(xe=xt,xt=u)):(xe=xt,xt=u);xt!==u;)it.push(xt),xt=xe,Et=nn(),c.charCodeAt(xe)===44?(Rt=b,xe++):(Rt=u,$t===0&&Ve(fe)),Rt!==u?(At=nn(),Zt=Dt(),Zt!==u?(Et=[Et,Rt,At,Zt],xt=Et):(xe=xt,xt=u)):(xe=xt,xt=u);ye=st(Re,it)}else xe=ye,ye=u}}return ye}function Pt(){var ye,Re;return ye=xe,c.charCodeAt(xe)===91?(Re=$,xe++):(Re=u,$t===0&&Ve(me)),Re!==u&&(Re=jt()),ye=Re,ye===u&&(ye=xe,c.charCodeAt(xe)===40?(Re=S,xe++):(Re=u,$t===0&&Ve(K)),Re!==u&&(Re=qt()),ye=Re),ye}function Kt(){var ye,Re;return ye=xe,c.charCodeAt(xe)===93?(Re=D,xe++):(Re=u,$t===0&&Ve(Te)),Re!==u&&(Re=mn()),ye=Re,ye===u&&(ye=xe,c.charCodeAt(xe)===41?(Re=x,xe++):(Re=u,$t===0&&Ve(ne)),Re!==u&&(Re=$n()),ye=Re),ye}function Dt(){var ye,Re,it,xt,Et,Rt,At,Zt,bn,tr;if(ye=xe,Re=xe,it=xe,c.charCodeAt(xe)===45?(xt=I,xe++):(xt=u,$t===0&&Ve(Ce)),xt===u&&(xt=null),Et=xe,Rt=[],At=c.charAt(xe),N.test(At)?xe++:(At=u,$t===0&&Ve(ke)),At!==u)for(;At!==u;)Rt.push(At),At=c.charAt(xe),N.test(At)?xe++:(At=u,$t===0&&Ve(ke));else Rt=u;if(Rt!==u){for(c.charCodeAt(xe)===46?(At=A,xe++):(At=u,$t===0&&Ve(ce)),At===u&&(At=null),Zt=[],bn=c.charAt(xe),N.test(bn)?xe++:(bn=u,$t===0&&Ve(ke));bn!==u;)Zt.push(bn),bn=c.charAt(xe),N.test(bn)?xe++:(bn=u,$t===0&&Ve(ke));Rt=[Rt,At,Zt],Et=Rt}else xe=Et,Et=u;if(Et===u){for(Et=xe,Rt=[],At=c.charAt(xe),N.test(At)?xe++:(At=u,$t===0&&Ve(ke));At!==u;)Rt.push(At),At=c.charAt(xe),N.test(At)?xe++:(At=u,$t===0&&Ve(ke));if(c.charCodeAt(xe)===46?(At=A,xe++):(At=u,$t===0&&Ve(ce)),At!==u){if(Zt=[],bn=c.charAt(xe),N.test(bn)?xe++:(bn=u,$t===0&&Ve(ke)),bn!==u)for(;bn!==u;)Zt.push(bn),bn=c.charAt(xe),N.test(bn)?xe++:(bn=u,$t===0&&Ve(ke));else Zt=u;Zt!==u?(Rt=[Rt,At,Zt],Et=Rt):(xe=Et,Et=u)}else xe=Et,Et=u}if(Et!==u){if(Rt=xe,At=c.charAt(xe),X.test(At)?xe++:(At=u,$t===0&&Ve(we)),At!==u){if(Zt=c.charAt(xe),Q.test(Zt)?xe++:(Zt=u,$t===0&&Ve(Ge)),Zt===u&&(Zt=null),bn=[],tr=c.charAt(xe),N.test(tr)?xe++:(tr=u,$t===0&&Ve(ke)),tr!==u)for(;tr!==u;)bn.push(tr),tr=c.charAt(xe),N.test(tr)?xe++:(tr=u,$t===0&&Ve(ke));else bn=u;bn!==u?(At=[At,Zt,bn],Rt=At):(xe=Rt,Rt=u)}else xe=Rt,Rt=u;Rt===u&&(Rt=null),xt=[xt,Et,Rt],it=xt}else xe=it,it=u;return it!==u?Re=c.substring(Re,xe):Re=it,Re!==u&&(Re=_n(Re)),ye=Re,ye}function Ft(){var ye,Re;return ye=xe,Re=Ue(),Re!==u&&(Re=Un()),ye=Re,ye===u&&(ye=xe,Re=ft(),Re!==u&&(Re=Jt()),ye=Re),ye}function ue(){var ye,Re,it,xt;return ye=xe,Re=c.substr(xe,3),Re.toLowerCase()===_?xe+=3:(Re=u,$t===0&&Ve(Be)),Re!==u?(it=xe,$t++,xt=Yt(),$t--,xt===u?it=void 0:(xe=it,it=u),it!==u?ye=An():(xe=ye,ye=u)):(xe=ye,ye=u),ye}function de(){var ye,Re,it,xt;return ye=xe,Re=c.substr(xe,4),Re.toLowerCase()===W?xe+=4:(Re=u,$t===0&&Ve(Ae)),Re!==u?(it=xe,$t++,xt=Yt(),$t--,xt===u?it=void 0:(xe=it,it=u),it!==u?(Re=[Re,it],ye=Re):(xe=ye,ye=u)):(xe=ye,ye=u),ye}function ze(){var ye,Re,it,xt;return ye=xe,Re=c.substr(xe,4),Re.toLowerCase()===V?xe+=4:(Re=u,$t===0&&Ve(oe)),Re!==u?(it=xe,$t++,xt=Yt(),$t--,xt===u?it=void 0:(xe=it,it=u),it!==u?(Re=[Re,it],ye=Re):(xe=ye,ye=u)):(xe=ye,ye=u),ye}function ft(){var ye,Re,it,xt;return ye=xe,Re=c.substr(xe,3),Re.toLowerCase()===k?xe+=3:(Re=u,$t===0&&Ve(lt)),Re!==u?(it=xe,$t++,xt=Yt(),$t--,xt===u?it=void 0:(xe=it,it=u),it!==u?(Re=[Re,it],ye=Re):(xe=ye,ye=u)):(xe=ye,ye=u),ye}function Ue(){var ye,Re,it,xt;return ye=xe,Re=c.substr(xe,2),Re.toLowerCase()===z?xe+=2:(Re=u,$t===0&&Ve(Ne)),Re!==u?(it=xe,$t++,xt=Yt(),$t--,xt===u?it=void 0:(xe=it,it=u),it!==u?(Re=[Re,it],ye=Re):(xe=ye,ye=u)):(xe=ye,ye=u),ye}function Mt(){var ye,Re,it,xt;return ye=xe,Re=c.substr(xe,2),Re.toLowerCase()===F?xe+=2:(Re=u,$t===0&&Ve(et)),Re!==u?(it=xe,$t++,xt=Yt(),$t--,xt===u?it=void 0:(xe=it,it=u),it!==u?(Re=[Re,it],ye=Re):(xe=ye,ye=u)):(xe=ye,ye=u),ye}function Yt(){var ye;return ye=c.charAt(xe),te.test(ye)?xe++:(ye=u,$t===0&&Ve(mt)),ye}function nn(){var ye,Re;for($t++,ye=[],Re=c.charAt(xe),Z.test(Re)?xe++:(Re=u,$t===0&&Ve(zt));Re!==u;)ye.push(Re),Re=c.charAt(xe),Z.test(Re)?xe++:(Re=u,$t===0&&Ve(zt));return $t--,Re=u,$t===0&&Ve(Wt),ye}if(zr=v(),f.peg$library)return{peg$result:zr,peg$currPos:xe,peg$FAILED:u,peg$maxFailExpected:en,peg$maxFailPos:Rn};if(zr!==u&&xe===c.length)return zr;throw zr!==u&&xe<c.length&&Ve(Ln()),rt(en,Rn<c.length?c.charAt(Rn):null,Rn<c.length?Le(Rn,Rn+1):Le(Rn,Rn))}return o1={StartRules:["numberFilter"],SyntaxError:a,parse:l},o1}var yv={},k$;function Tk(){if(k$)return yv;k$=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.run_parser=n;const e=$p();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,c=s?s.end.offset-1:r.length-1;return{parsed:null,log:[{message:a.message,startIndex:l,endIndex:Math.max(l,c),severity:"error"}]}}throw a}}return yv}var T$;function DX(){return T$||(T$=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberFilterExpression=void 0;const t=$p(),n=PX(),r=Tk();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)}`}}})(r1)),r1}var a1={},i1,E$;function AX(){if(E$)return i1;E$=1;const{conjoin:e,maybeNot:t,matchOp:n}=y0();function r(l,c){function f(){this.constructor=l}f.prototype=c.prototype,l.prototype=new f}function o(l,c,f,u){var h=Error.call(this,l);return Object.setPrototypeOf&&Object.setPrototypeOf(h,o.prototype),h.expected=c,h.found=f,h.location=u,h.name="SyntaxError",h}r(o,Error);function a(l,c,f){return f=f||" ",l.length>c?l:(c-=l.length,f+=f.repeat(c),l+f.slice(0,c))}o.prototype.format=function(l){var c="Error: "+this.message;if(this.location){var f=null,u;for(u=0;u<l.length;u++)if(l[u].source===this.location.source){f=l[u].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,v=this.location.source+":"+y.line+":"+y.column;if(f){var S=this.location.end,x=a("",y.line.toString().length," "),w=f[h.line-1],b=h.line===S.line?S.column:w.length+1,T=b-h.column||1;c+=`
|
|
279
|
-
--> `+v+`
|
|
280
|
-
`+x+` |
|
|
281
|
-
`+y.line+" | "+w+`
|
|
282
|
-
`+x+" | "+a("",h.column-1," ")+a("",T,"^")}else c+=`
|
|
283
|
-
at `+v}return c},o.buildMessage=function(l,c){var f={literal:function(w){return'"'+h(w.text)+'"'},class:function(w){var b=w.parts.map(function(T){return Array.isArray(T)?y(T[0])+"-"+y(T[1]):y(T)});return"["+(w.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(w){return w.description}};function u(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(b){return"\\x0"+u(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+u(b)})}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(b){return"\\x0"+u(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+u(b)})}function v(w){return f[w.type](w)}function S(w){var b=w.map(v),T,E;if(b.sort(),b.length>0){for(T=1,E=1;T<b.length;T++)b[T-1]!==b[T]&&(b[E]=b[T],E++);b.length=E}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function x(w){return w?'"'+h(w)+'"':"end of input"}return"Expected "+S(l)+" but "+x(c)+" found."};function s(l,c){c=c!==void 0?c:{};var f={},u=c.grammarSource,h={stringFilter:mt},y=mt,v="-",S="(",x=")",w="\\",b=",",T=";",E="|",M=/^[^\n,;()|]/,$=/^[ \t]/,D=ce("-",!1),I=ce("(",!1),A=ce(")",!1),_=Ae("match string"),W=ce("\\",!1),V=Ge(),k=we([`
|
|
284
|
-
`,",",";","(",")","|"],!0,!1),z=ce(",",!1),F=ce(";",!1),H=ce("|",!1),N=Ae("whitespace"),X=we([" "," "],!1,!1),Q=function(Ie,he){return he.reduce((qe,[,De,,wt])=>e(qe,De,wt),Ie)},te=function(Ie){return t([!0,Ie])},Z=function(Ie){return Ie},K=function(Ie){return{operator:"()",expr:Ie}},ne=function(Ie){return n(Ie)},le=function(Ie){return Ie},fe=function(){return","},ae=function(){return";"},se=function(){return"|"},ie=c.peg$currPos|0,pe=[{line:1,column:1}],me=ie,Te=c.peg$maxFailExpected||[],Ce=c.peg$silentFails|0,ke;if(c.startRule){if(!(c.startRule in h))throw new Error(`Can't start parsing from rule "`+c.startRule+'".');y=h[c.startRule]}function ce(Ie,he){return{type:"literal",text:Ie,ignoreCase:he}}function we(Ie,he,qe){return{type:"class",parts:Ie,inverted:he,ignoreCase:qe}}function Ge(){return{type:"any"}}function Be(){return{type:"end"}}function Ae(Ie){return{type:"other",description:Ie}}function oe(Ie){var he=pe[Ie],qe;if(he)return he;if(Ie>=pe.length)qe=pe.length-1;else for(qe=Ie;!pe[--qe];);for(he=pe[qe],he={line:he.line,column:he.column};qe<Ie;)l.charCodeAt(qe)===10?(he.line++,he.column=1):he.column++,qe++;return pe[Ie]=he,he}function lt(Ie,he,qe){var De=oe(Ie),wt=oe(he),Ct={source:u,start:{offset:Ie,line:De.line,column:De.column},end:{offset:he,line:wt.line,column:wt.column}};return Ct}function Ne(Ie){ie<me||(ie>me&&(me=ie,Te=[]),Te.push(Ie))}function et(Ie,he,qe){return new o(o.buildMessage(Ie,he),Ie,he,qe)}function mt(){var Ie,he,qe,De,wt,Ct,yt,st;if(Ie=ie,ct(),he=Wt(),he!==f){for(qe=[],De=ie,wt=ct(),Ct=Je(),Ct!==f?(yt=ct(),st=Wt(),st!==f?(wt=[wt,Ct,yt,st],De=wt):(ie=De,De=f)):(ie=De,De=f);De!==f;)qe.push(De),De=ie,wt=ct(),Ct=Je(),Ct!==f?(yt=ct(),st=Wt(),st!==f?(wt=[wt,Ct,yt,st],De=wt):(ie=De,De=f)):(ie=De,De=f);Ie=Q(he,qe)}else ie=Ie,Ie=f;return Ie}function Wt(){var Ie,he,qe;return Ie=ie,l.charCodeAt(ie)===45?(he=v,ie++):(he=f,Ce===0&&Ne(D)),he!==f?(ct(),qe=zt(),qe!==f?Ie=te(qe):(ie=Ie,Ie=f)):(ie=Ie,Ie=f),Ie===f&&(Ie=ie,he=zt(),he!==f&&(he=Z(he)),Ie=he),Ie}function zt(){var Ie,he,qe,De;return Ie=ie,l.charCodeAt(ie)===40?(he=S,ie++):(he=f,Ce===0&&Ne(I)),he!==f?(ct(),qe=mt(),qe!==f?(ct(),l.charCodeAt(ie)===41?(De=x,ie++):(De=f,Ce===0&&Ne(A)),De!==f?Ie=K(qe):(ie=Ie,Ie=f)):(ie=Ie,Ie=f)):(ie=Ie,Ie=f),Ie===f&&(Ie=ie,he=tt(),he!==f&&(he=ne(he)),Ie=he),Ie}function tt(){var Ie,he,qe,De,wt,Ct;if(Ce++,Ie=ie,he=ie,qe=[],De=ie,l.charCodeAt(ie)===92?(wt=w,ie++):(wt=f,Ce===0&&Ne(W)),wt!==f?(l.length>ie?(Ct=l.charAt(ie),ie++):(Ct=f,Ce===0&&Ne(V)),Ct!==f?(wt=[wt,Ct],De=wt):(ie=De,De=f)):(ie=De,De=f),De===f&&(De=l.charAt(ie),M.test(De)?ie++:(De=f,Ce===0&&Ne(k))),De!==f)for(;De!==f;)qe.push(De),De=ie,l.charCodeAt(ie)===92?(wt=w,ie++):(wt=f,Ce===0&&Ne(W)),wt!==f?(l.length>ie?(Ct=l.charAt(ie),ie++):(Ct=f,Ce===0&&Ne(V)),Ct!==f?(wt=[wt,Ct],De=wt):(ie=De,De=f)):(ie=De,De=f),De===f&&(De=l.charAt(ie),M.test(De)?ie++:(De=f,Ce===0&&Ne(k)));else qe=f;return qe!==f?he=l.substring(he,ie):he=qe,he!==f&&(he=le(he)),Ie=he,Ce--,Ie===f&&(he=f,Ce===0&&Ne(_)),Ie}function Je(){var Ie,he;return Ie=ie,l.charCodeAt(ie)===44?(he=b,ie++):(he=f,Ce===0&&Ne(z)),he!==f&&(he=fe()),Ie=he,Ie===f&&(Ie=ie,l.charCodeAt(ie)===59?(he=T,ie++):(he=f,Ce===0&&Ne(F)),he!==f&&(he=ae()),Ie=he,Ie===f&&(Ie=ie,l.charCodeAt(ie)===124?(he=E,ie++):(he=f,Ce===0&&Ne(H)),he!==f&&(he=se()),Ie=he)),Ie}function ct(){var Ie,he;for(Ce++,Ie=[],he=l.charAt(ie),$.test(he)?ie++:(he=f,Ce===0&&Ne(X));he!==f;)Ie.push(he),he=l.charAt(ie),$.test(he)?ie++:(he=f,Ce===0&&Ne(X));return Ce--,he=f,Ce===0&&Ne(N),Ie}if(ke=y(),c.peg$library)return{peg$result:ke,peg$currPos:ie,peg$FAILED:f,peg$maxFailExpected:Te,peg$maxFailPos:me};if(ke!==f&&ie===l.length)return ke;throw ke!==f&&ie<l.length&&Ne(Be()),et(Te,me<l.length?l.charAt(me):null,me<l.length?lt(me,me+1):lt(me,me))}return i1={StartRules:["stringFilter"],SyntaxError:o,parse:s},i1}var R$;function jX(){return R$||(R$=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StringFilterExpression=void 0;const t=$p(),n=AX(),r=y0(),o=Tk();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"}}}})(a1)),a1}var s1={},l1,O$;function NX(){if(O$)return l1;O$=1;const{temporalNot:e,joinTemporal:t,timeLiteral:n,mkUnits:r}=y0();function o(c,f){function u(){this.constructor=c}u.prototype=f.prototype,c.prototype=new u}function a(c,f,u,h){var y=Error.call(this,c);return Object.setPrototypeOf&&Object.setPrototypeOf(y,a.prototype),y.expected=f,y.found=u,y.location=h,y.name="SyntaxError",y}o(a,Error);function s(c,f,u){return u=u||" ",c.length>f?c:(f-=c.length,u+=u.repeat(f),c+u.slice(0,f))}a.prototype.format=function(c){var f="Error: "+this.message;if(this.location){var u=null,h;for(h=0;h<c.length;h++)if(c[h].source===this.location.source){u=c[h].text.split(/\r\n|\n|\r/g);break}var y=this.location.start,v=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,S=this.location.source+":"+v.line+":"+v.column;if(u){var x=this.location.end,w=s("",v.line.toString().length," "),b=u[y.line-1],T=y.line===x.line?x.column:b.length+1,E=T-y.column||1;f+=`
|
|
285
|
-
--> `+S+`
|
|
286
|
-
`+w+` |
|
|
287
|
-
`+v.line+" | "+b+`
|
|
288
|
-
`+w+" | "+s("",y.column-1," ")+s("",E,"^")}else f+=`
|
|
289
|
-
at `+S}return f},a.buildMessage=function(c,f){var u={literal:function(b){return'"'+y(b.text)+'"'},class:function(b){var T=b.parts.map(function(E){return Array.isArray(E)?v(E[0])+"-"+v(E[1]):v(E)});return"["+(b.inverted?"^":"")+T.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(b){return b.description}};function h(b){return b.charCodeAt(0).toString(16).toUpperCase()}function y(b){return b.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(T){return"\\x0"+h(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+h(T)})}function v(b){return b.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(T){return"\\x0"+h(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+h(T)})}function S(b){return u[b.type](b)}function x(b){var T=b.map(S),E,M;if(T.sort(),T.length>0){for(E=1,M=1;E<T.length;E++)T[E-1]!==T[E]&&(T[M]=T[E],M++);T.length=M}switch(T.length){case 1:return T[0];case 2:return T[0]+" or "+T[1];default:return T.slice(0,-1).join(", ")+", or "+T[T.length-1]}}function w(b){return b?'"'+y(b)+'"':"end of input"}return"Expected "+x(c)+" but "+w(f)+" found."};function l(c,f){f=f!==void 0?f:{};var u={},h=f.grammarSource,y={temporalFilter:pu},v=pu,S="(",x=")",w="second",b="minute",T="hour",E="day",M="week",$="month",D="quarter",I="year",A="s",_="-",W=":",V="not",k="null",z="none",F="to",H="now",N="last",X="this",Q="next",te="ago",Z="from",K="before",ne="after",le="through",fe="starting",ae="for",se="today",ie="yesterday",pe="tomorrow",me="and",Te="or",Ce="monday",ke="tuesday",ce="wednesday",we="thursday",Ge="friday",Be="saturday",Ae="sunday",oe=/^[0-9]/,lt=/^[ Tt]/,Ne=/^[.,]/,et=/^[Ww]/,mt=/^[Kk]/,Wt=/^[Qq]/,zt=/^[1234]/,tt=/^[a-zA-Z]/,Je=/^[ \t]/,ct=jn("(",!1),Ie=jn(")",!1),he=Io([["0","9"]],!1,!1),qe=jn("second",!0),De=jn("minute",!0),wt=jn("hour",!0),Ct=jn("day",!0),yt=jn("week",!0),st=jn("month",!0),jt=jn("quarter",!0),qt=jn("year",!0),mn=jn("s",!0),$n=jn("-",!1),_n=Io([" ","T","t"],!1,!1),Un=jn(":",!1),Jt=Io([".",","],!1,!1),An=Io(["W","w"],!1,!1),xe=Io(["K","k"],!1,!1),Vn=Io(["Q","q"],!1,!1),Rn=Io(["1","2","3","4"],!1,!1),en=jn("not",!0),$t=jn("null",!0),zr=jn("none",!0),Fn=jn("to",!0),on=jn("now",!0),Ln=jn("last",!0),ge=jn("this",!0),Ee=jn("next",!0),Le=jn("ago",!0),Ve=jn("from",!0),rt=jn("before",!0),kt=jn("after",!0),bt=jn("through",!0),Tt=jn("starting",!0),Pt=jn("for",!0),Kt=jn("today",!0),Dt=jn("yesterday",!0),Ft=jn("tomorrow",!0),ue=jn("and",!0),de=jn("or",!0),ze=jn("monday",!0),ft=jn("tuesday",!0),Ue=jn("wednesday",!0),Mt=jn("thursday",!0),Yt=jn("friday",!0),nn=jn("saturday",!0),ye=jn("sunday",!0),Re=Io([["a","z"],["A","Z"]],!1,!1),it=du("optional whitespace"),xt=Io([" "," "],!1,!1),Et=du("whitespace"),Rt=function(B,G){return G.reduce((q,[,Se,,Qt])=>t(q,Se,Qt),B)},At=function(B){return e(B,!0)},Zt=function(B){return B},bn=function(){return{operator:"null"}},tr=function(){return{operator:"none"}},Xt=function(B){return{operator:"()",expr:B}},Pr=function(B){return{operator:"before",before:B}},oo=function(B){return{operator:"before",before:B,not:!0}},To=function(B){return{operator:"after",after:B}},is=function(B){return{operator:"after",after:B,not:!0}},ea=function(B,G){return{operator:B,...G}},cr=function(B,G){return{operator:"to",fromMoment:B,toMoment:G}},Fr=function(B,G){return{...G,operator:"for",begin:B}},Ya=function(B){return{operator:"in",in:B}},fl=function(B){return{operator:"in_last",...B}},ss=function(){return"last"},ki=function(){return"next"},ru=function(B,G){return{units:G,n:B}},pl=function(B){return B},ls=function(B){return r(B)},Xl=function(){return{moment:"now"}},Ms=function(){return{moment:"today"}},hl=function(){return{moment:"yesterday"}},ou=function(){return{moment:"tomorrow"}},Td=function(B){return{moment:"ago",...B}},jp=function(B){return{moment:"from_now",...B}},ml=function(B){return{moment:B.toLowerCase(),which:"next"}},Zl=function(B){return{moment:B.toLowerCase(),which:"last"}},Jl=function(B,G){return{moment:B,units:G}},$s=function(B){return{moment:B.toLowerCase(),which:"last"}},cs=function(B){return B},au=function(){return"this"},iu=function(){return"next"},Ed=function(){return"last"},gl=function(B){return n(B)},Ea=function(B){return n(B,"week")},su=function(B){return n(B,"quarter")},yl=function(B){return n(B,"minute")},Ti=function(B){return n(B,"hour")},lu=function(B){return n(B,"day")},ec=function(B){return n(B,"month")},cu=function(B){return n(B,"year")},tc=function(B){return B},eo=function(){return"or"},uu=function(){return"and"},j=f.peg$currPos|0,vo=[{line:1,column:1}],to=j,Ga=f.peg$maxFailExpected||[],Oe=f.peg$silentFails|0,us;if(f.startRule){if(!(f.startRule in y))throw new Error(`Can't start parsing from rule "`+f.startRule+'".');v=y[f.startRule]}function jn(B,G){return{type:"literal",text:B,ignoreCase:G}}function Io(B,G,q){return{type:"class",parts:B,inverted:G,ignoreCase:q}}function Ps(){return{type:"end"}}function du(B){return{type:"other",description:B}}function Rd(B){var G=vo[B],q;if(G)return G;if(B>=vo.length)q=vo.length-1;else for(q=B;!vo[--q];);for(G=vo[q],G={line:G.line,column:G.column};q<B;)c.charCodeAt(q)===10?(G.line++,G.column=1):G.column++,q++;return vo[B]=G,G}function Od(B,G,q){var Se=Rd(B),Qt=Rd(G),Vt={source:h,start:{offset:B,line:Se.line,column:Se.column},end:{offset:G,line:Qt.line,column:Qt.column}};return Vt}function Ze(B){j<to||(j>to&&(to=j,Ga=[]),Ga.push(B))}function fu(B,G,q){return new a(a.buildMessage(B,G),B,G,q)}function pu(){var B,G,q,Se,Qt,Vt,On,Yn;if(B=j,G=nc(),G!==u){for(q=[],Se=j,Qt=fs(),Vt=$d(),Vt!==u?(On=fs(),Yn=nc(),Yn!==u?(Qt=[Qt,Vt,On,Yn],Se=Qt):(j=Se,Se=u)):(j=Se,Se=u);Se!==u;)q.push(Se),Se=j,Qt=fs(),Vt=$d(),Vt!==u?(On=fs(),Yn=nc(),Yn!==u?(Qt=[Qt,Vt,On,Yn],Se=Qt):(j=Se,Se=u)):(j=Se,Se=u);B=Rt(G,q)}else j=B,B=u;return B}function nc(){var B,G,q,Se;return B=j,G=hu(),G!==u?(q=Gr(),q!==u?(Se=Md(),Se!==u?B=At(Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=Md(),G!==u&&(G=Zt(G)),B=G),B}function Md(){var B,G,q,Se,Qt,Vt;return B=j,G=Lp(),G!==u&&(G=bn()),B=G,B===u&&(B=j,G=Pd(),G!==u&&(G=tr()),B=G,B===u&&(B=j,c.charCodeAt(j)===40?(G=S,j++):(G=u,Oe===0&&Ze(ct)),G!==u?(q=fs(),Se=pu(),Se!==u?(Qt=fs(),c.charCodeAt(j)===41?(Vt=x,j++):(Vt=u,Oe===0&&Ze(Ie)),Vt!==u?B=Xt(Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=Up(),G!==u?(q=Gr(),q!==u?(Se=ta(),Se!==u?B=Pr(Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=js(),G!==u?(q=Gr(),q!==u?(Se=ta(),Se!==u?B=oo(Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=Vp(),G!==u?(q=Gr(),q!==u?(Se=ta(),Se!==u?B=To(Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=gu(),G!==u?(q=Gr(),q!==u?(Se=ta(),Se!==u?B=is(Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=Ds(),G!==u?(q=Gr(),q!==u?(Se=vl(),Se!==u?B=ea(G,Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=ta(),G!==u?(q=Gr(),q!==u?(Se=zp(),Se!==u?(Qt=Gr(),Qt!==u?(Vt=ta(),Vt!==u?B=cr(G,Vt):(j=B,B=u)):(j=B,B=u)):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=ta(),G!==u?(q=Gr(),q!==u?(Se=Hp(),Se!==u?(Qt=Gr(),Qt!==u?(Vt=vl(),Vt!==u?B=Fr(G,Vt):(j=B,B=u)):(j=B,B=u)):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=ta(),G!==u&&(G=Ya(G)),B=G,B===u&&(B=j,G=vl(),G!==u&&(G=fl(G)),B=G))))))))))),B}function Ds(){var B,G;return B=j,G=mu(),G!==u&&(G=ss()),B=G,B===u&&(B=j,G=rc(),G!==u&&(G=ki()),B=G),B}function vl(){var B,G,q,Se;return B=j,G=ds(),G!==u?(q=Gr(),q!==u?(Se=As(),Se!==u?B=ru(G,Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B}function ds(){var B,G,q,Se;if(B=j,G=j,q=[],Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he)),Se!==u)for(;Se!==u;)q.push(Se),Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he));else q=u;return q!==u?G=c.substring(G,j):G=q,G!==u&&(G=pl(G)),B=G,B}function As(){var B,G,q,Se,Qt;return B=j,G=j,q=c.substr(j,6),q.toLowerCase()===w?j+=6:(q=u,Oe===0&&Ze(qe)),q===u&&(q=c.substr(j,6),q.toLowerCase()===b?j+=6:(q=u,Oe===0&&Ze(De)),q===u&&(q=c.substr(j,4),q.toLowerCase()===T?j+=4:(q=u,Oe===0&&Ze(wt)),q===u&&(q=c.substr(j,3),q.toLowerCase()===E?j+=3:(q=u,Oe===0&&Ze(Ct)),q===u&&(q=c.substr(j,4),q.toLowerCase()===M?j+=4:(q=u,Oe===0&&Ze(yt)),q===u&&(q=c.substr(j,5),q.toLowerCase()===$?j+=5:(q=u,Oe===0&&Ze(st)),q===u&&(q=c.substr(j,7),q.toLowerCase()===D?j+=7:(q=u,Oe===0&&Ze(jt)),q===u&&(q=c.substr(j,4),q.toLowerCase()===I?j+=4:(q=u,Oe===0&&Ze(qt))))))))),q!==u?G=c.substring(G,j):G=q,G!==u?(q=c.charAt(j),q.toLowerCase()===A?j++:(q=u,Oe===0&&Ze(mn)),q===u&&(q=null),Se=j,Oe++,Qt=nr(),Oe--,Qt===u?Se=void 0:(j=Se,Se=u),Se!==u?B=ls(G):(j=B,B=u)):(j=B,B=u),B}function ta(){var B,G,q,Se,Qt,Vt;return B=j,G=Dd(),G!==u&&(G=Xl()),B=G,B===u&&(B=j,G=Ad(),G!==u&&(G=Ms()),B=G,B===u&&(B=j,G=jd(),G!==u&&(G=hl()),B=G,B===u&&(B=j,G=Nd(),G!==u&&(G=ou()),B=G,B===u&&(B=j,G=vl(),G!==u?(q=Gr(),q!==u?(Se=_p(),Se!==u?B=Td(G):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=vl(),G!==u?(q=Gr(),q!==u?(Se=Bp(),Se!==u?(Qt=Gr(),Qt!==u?(Vt=Dd(),Vt!==u?B=jp(G):(j=B,B=u)):(j=B,B=u)):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=rc(),G!==u?(q=Gr(),q!==u?(Se=bl(),Se!==u?B=ml(Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=mu(),G!==u?(q=Gr(),q!==u?(Se=bl(),Se!==u?B=Zl(Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=Np(),G!==u?(q=Gr(),q!==u?(Se=As(),Se!==u?B=Jl(G,Se):(j=B,B=u)):(j=B,B=u)):(j=B,B=u),B===u&&(B=j,G=bl(),G!==u&&(G=$s(G)),B=G,B===u&&(B=j,G=Ip(),G!==u&&(G=cs(G)),B=G)))))))))),B}function Np(){var B,G;return B=j,G=Fp(),G!==u&&(G=au()),B=G,B===u&&(B=j,G=rc(),G!==u&&(G=iu()),B=G,B===u&&(B=j,G=mu(),G!==u&&(G=Ed()),B=G)),B}function Ip(){var B,G,q,Se,Qt,Vt,On,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr,Ka,ha,zn,Sl,ma,ps,na,no,wl,bo;if(B=j,G=j,q=j,Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he)),Se!==u)if(Qt=c.charAt(j),oe.test(Qt)?j++:(Qt=u,Oe===0&&Ze(he)),Qt!==u)if(Vt=c.charAt(j),oe.test(Vt)?j++:(Vt=u,Oe===0&&Ze(he)),Vt!==u)if(On=c.charAt(j),oe.test(On)?j++:(On=u,Oe===0&&Ze(he)),On!==u)if(c.charCodeAt(j)===45?(Yn=_,j++):(Yn=u,Oe===0&&Ze($n)),Yn!==u)if(Gn=c.charAt(j),oe.test(Gn)?j++:(Gn=u,Oe===0&&Ze(he)),Gn!==u)if(Gt=c.charAt(j),oe.test(Gt)?j++:(Gt=u,Oe===0&&Ze(he)),Gt!==u)if(c.charCodeAt(j)===45?(wr=_,j++):(wr=u,Oe===0&&Ze($n)),wr!==u)if(Cr=c.charAt(j),oe.test(Cr)?j++:(Cr=u,Oe===0&&Ze(he)),Cr!==u)if(ln=c.charAt(j),oe.test(ln)?j++:(ln=u,Oe===0&&Ze(he)),ln!==u)if(gr=c.charAt(j),lt.test(gr)?j++:(gr=u,Oe===0&&Ze(_n)),gr!==u)if(Ur=c.charAt(j),oe.test(Ur)?j++:(Ur=u,Oe===0&&Ze(he)),Ur!==u)if(Hr=c.charAt(j),oe.test(Hr)?j++:(Hr=u,Oe===0&&Ze(he)),Hr!==u)if(c.charCodeAt(j)===58?(Ka=W,j++):(Ka=u,Oe===0&&Ze(Un)),Ka!==u)if(ha=c.charAt(j),oe.test(ha)?j++:(ha=u,Oe===0&&Ze(he)),ha!==u)if(zn=c.charAt(j),oe.test(zn)?j++:(zn=u,Oe===0&&Ze(he)),zn!==u)if(c.charCodeAt(j)===58?(Sl=W,j++):(Sl=u,Oe===0&&Ze(Un)),Sl!==u)if(ma=c.charAt(j),oe.test(ma)?j++:(ma=u,Oe===0&&Ze(he)),ma!==u)if(ps=c.charAt(j),oe.test(ps)?j++:(ps=u,Oe===0&&Ze(he)),ps!==u){if(na=j,no=c.charAt(j),Ne.test(no)?j++:(no=u,Oe===0&&Ze(Jt)),no!==u){for(wl=[],bo=c.charAt(j),oe.test(bo)?j++:(bo=u,Oe===0&&Ze(he));bo!==u;)wl.push(bo),bo=c.charAt(j),oe.test(bo)?j++:(bo=u,Oe===0&&Ze(he));no=[no,wl],na=no}else j=na,na=u;na===u&&(na=null),Se=[Se,Qt,Vt,On,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr,Ka,ha,zn,Sl,ma,ps,na],q=Se}else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;else j=q,q=u;return q!==u?G=c.substring(G,j):G=q,G!==u&&(G=gl(G)),B=G,B===u&&(B=j,G=j,q=j,Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he)),Se!==u?(Qt=c.charAt(j),oe.test(Qt)?j++:(Qt=u,Oe===0&&Ze(he)),Qt!==u?(Vt=c.charAt(j),oe.test(Vt)?j++:(Vt=u,Oe===0&&Ze(he)),Vt!==u?(On=c.charAt(j),oe.test(On)?j++:(On=u,Oe===0&&Ze(he)),On!==u?(c.charCodeAt(j)===45?(Yn=_,j++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(j),oe.test(Gn)?j++:(Gn=u,Oe===0&&Ze(he)),Gn!==u?(Gt=c.charAt(j),oe.test(Gt)?j++:(Gt=u,Oe===0&&Ze(he)),Gt!==u?(c.charCodeAt(j)===45?(wr=_,j++):(wr=u,Oe===0&&Ze($n)),wr!==u?(Cr=c.charAt(j),oe.test(Cr)?j++:(Cr=u,Oe===0&&Ze(he)),Cr!==u?(ln=c.charAt(j),oe.test(ln)?j++:(ln=u,Oe===0&&Ze(he)),ln!==u?(c.charCodeAt(j)===45?(gr=_,j++):(gr=u,Oe===0&&Ze($n)),gr!==u?(Ur=c.charAt(j),et.test(Ur)?j++:(Ur=u,Oe===0&&Ze(An)),Ur!==u?(Hr=c.charAt(j),mt.test(Hr)?j++:(Hr=u,Oe===0&&Ze(xe)),Hr!==u?(Se=[Se,Qt,Vt,On,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr],q=Se):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u),q!==u?G=c.substring(G,j):G=q,G!==u&&(G=Ea(G)),B=G,B===u&&(B=j,G=j,q=j,Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he)),Se!==u?(Qt=c.charAt(j),oe.test(Qt)?j++:(Qt=u,Oe===0&&Ze(he)),Qt!==u?(Vt=c.charAt(j),oe.test(Vt)?j++:(Vt=u,Oe===0&&Ze(he)),Vt!==u?(On=c.charAt(j),oe.test(On)?j++:(On=u,Oe===0&&Ze(he)),On!==u?(c.charCodeAt(j)===45?(Yn=_,j++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(j),Wt.test(Gn)?j++:(Gn=u,Oe===0&&Ze(Vn)),Gn!==u?(Gt=c.charAt(j),zt.test(Gt)?j++:(Gt=u,Oe===0&&Ze(Rn)),Gt!==u?(Se=[Se,Qt,Vt,On,Yn,Gn,Gt],q=Se):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u),q!==u?G=c.substring(G,j):G=q,G!==u&&(G=su(G)),B=G,B===u&&(B=j,G=j,q=j,Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he)),Se!==u?(Qt=c.charAt(j),oe.test(Qt)?j++:(Qt=u,Oe===0&&Ze(he)),Qt!==u?(Vt=c.charAt(j),oe.test(Vt)?j++:(Vt=u,Oe===0&&Ze(he)),Vt!==u?(On=c.charAt(j),oe.test(On)?j++:(On=u,Oe===0&&Ze(he)),On!==u?(c.charCodeAt(j)===45?(Yn=_,j++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(j),oe.test(Gn)?j++:(Gn=u,Oe===0&&Ze(he)),Gn!==u?(Gt=c.charAt(j),oe.test(Gt)?j++:(Gt=u,Oe===0&&Ze(he)),Gt!==u?(c.charCodeAt(j)===45?(wr=_,j++):(wr=u,Oe===0&&Ze($n)),wr!==u?(Cr=c.charAt(j),oe.test(Cr)?j++:(Cr=u,Oe===0&&Ze(he)),Cr!==u?(ln=c.charAt(j),oe.test(ln)?j++:(ln=u,Oe===0&&Ze(he)),ln!==u?(gr=c.charAt(j),lt.test(gr)?j++:(gr=u,Oe===0&&Ze(_n)),gr!==u?(Ur=c.charAt(j),oe.test(Ur)?j++:(Ur=u,Oe===0&&Ze(he)),Ur!==u?(Hr=c.charAt(j),oe.test(Hr)?j++:(Hr=u,Oe===0&&Ze(he)),Hr!==u?(c.charCodeAt(j)===58?(Ka=W,j++):(Ka=u,Oe===0&&Ze(Un)),Ka!==u?(ha=c.charAt(j),oe.test(ha)?j++:(ha=u,Oe===0&&Ze(he)),ha!==u?(zn=c.charAt(j),oe.test(zn)?j++:(zn=u,Oe===0&&Ze(he)),zn!==u?(Se=[Se,Qt,Vt,On,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr,Ka,ha,zn],q=Se):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u),q!==u?G=c.substring(G,j):G=q,G!==u&&(G=yl(G)),B=G,B===u&&(B=j,G=j,q=j,Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he)),Se!==u?(Qt=c.charAt(j),oe.test(Qt)?j++:(Qt=u,Oe===0&&Ze(he)),Qt!==u?(Vt=c.charAt(j),oe.test(Vt)?j++:(Vt=u,Oe===0&&Ze(he)),Vt!==u?(On=c.charAt(j),oe.test(On)?j++:(On=u,Oe===0&&Ze(he)),On!==u?(c.charCodeAt(j)===45?(Yn=_,j++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(j),oe.test(Gn)?j++:(Gn=u,Oe===0&&Ze(he)),Gn!==u?(Gt=c.charAt(j),oe.test(Gt)?j++:(Gt=u,Oe===0&&Ze(he)),Gt!==u?(c.charCodeAt(j)===45?(wr=_,j++):(wr=u,Oe===0&&Ze($n)),wr!==u?(Cr=c.charAt(j),oe.test(Cr)?j++:(Cr=u,Oe===0&&Ze(he)),Cr!==u?(ln=c.charAt(j),oe.test(ln)?j++:(ln=u,Oe===0&&Ze(he)),ln!==u?(gr=c.charAt(j),lt.test(gr)?j++:(gr=u,Oe===0&&Ze(_n)),gr!==u?(Ur=c.charAt(j),oe.test(Ur)?j++:(Ur=u,Oe===0&&Ze(he)),Ur!==u?(Hr=c.charAt(j),oe.test(Hr)?j++:(Hr=u,Oe===0&&Ze(he)),Hr!==u?(Se=[Se,Qt,Vt,On,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr],q=Se):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u),q!==u?G=c.substring(G,j):G=q,G!==u&&(G=Ti(G)),B=G,B===u&&(B=j,G=j,q=j,Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he)),Se!==u?(Qt=c.charAt(j),oe.test(Qt)?j++:(Qt=u,Oe===0&&Ze(he)),Qt!==u?(Vt=c.charAt(j),oe.test(Vt)?j++:(Vt=u,Oe===0&&Ze(he)),Vt!==u?(On=c.charAt(j),oe.test(On)?j++:(On=u,Oe===0&&Ze(he)),On!==u?(c.charCodeAt(j)===45?(Yn=_,j++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(j),oe.test(Gn)?j++:(Gn=u,Oe===0&&Ze(he)),Gn!==u?(Gt=c.charAt(j),oe.test(Gt)?j++:(Gt=u,Oe===0&&Ze(he)),Gt!==u?(c.charCodeAt(j)===45?(wr=_,j++):(wr=u,Oe===0&&Ze($n)),wr!==u?(Cr=c.charAt(j),oe.test(Cr)?j++:(Cr=u,Oe===0&&Ze(he)),Cr!==u?(ln=c.charAt(j),oe.test(ln)?j++:(ln=u,Oe===0&&Ze(he)),ln!==u?(Se=[Se,Qt,Vt,On,Yn,Gn,Gt,wr,Cr,ln],q=Se):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u),q!==u?G=c.substring(G,j):G=q,G!==u&&(G=lu(G)),B=G,B===u&&(B=j,G=j,q=j,Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he)),Se!==u?(Qt=c.charAt(j),oe.test(Qt)?j++:(Qt=u,Oe===0&&Ze(he)),Qt!==u?(Vt=c.charAt(j),oe.test(Vt)?j++:(Vt=u,Oe===0&&Ze(he)),Vt!==u?(On=c.charAt(j),oe.test(On)?j++:(On=u,Oe===0&&Ze(he)),On!==u?(c.charCodeAt(j)===45?(Yn=_,j++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(j),oe.test(Gn)?j++:(Gn=u,Oe===0&&Ze(he)),Gn!==u?(Gt=c.charAt(j),oe.test(Gt)?j++:(Gt=u,Oe===0&&Ze(he)),Gt!==u?(Se=[Se,Qt,Vt,On,Yn,Gn,Gt],q=Se):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u),q!==u?G=c.substring(G,j):G=q,G!==u&&(G=ec(G)),B=G,B===u&&(B=j,G=j,q=j,Se=c.charAt(j),oe.test(Se)?j++:(Se=u,Oe===0&&Ze(he)),Se!==u?(Qt=c.charAt(j),oe.test(Qt)?j++:(Qt=u,Oe===0&&Ze(he)),Qt!==u?(Vt=c.charAt(j),oe.test(Vt)?j++:(Vt=u,Oe===0&&Ze(he)),Vt!==u?(On=c.charAt(j),oe.test(On)?j++:(On=u,Oe===0&&Ze(he)),On!==u?(Se=[Se,Qt,Vt,On],q=Se):(j=q,q=u)):(j=q,q=u)):(j=q,q=u)):(j=q,q=u),q!==u?G=c.substring(G,j):G=q,G!==u&&(G=cu(G)),B=G))))))),B}function bl(){var B,G,q;return B=j,G=j,q=Ns(),q===u&&(q=Wp(),q===u&&(q=qp(),q===u&&(q=Yp(),q===u&&(q=zd(),q===u&&(q=Fd(),q===u&&(q=xl())))))),q!==u?G=c.substring(G,j):G=q,G!==u&&(G=tc(G)),B=G,B}function $d(){var B,G;return B=j,G=Ld(),G!==u&&(G=eo()),B=G,B===u&&(B=j,G=Id(),G!==u&&(G=uu()),B=G),B}function hu(){var B,G,q,Se;return B=j,G=c.substr(j,3),G.toLowerCase()===V?j+=3:(G=u,Oe===0&&Ze(en)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Lp(){var B,G,q,Se;return B=j,G=c.substr(j,4),G.toLowerCase()===k?j+=4:(G=u,Oe===0&&Ze($t)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Pd(){var B,G,q,Se;return B=j,G=c.substr(j,4),G.toLowerCase()===z?j+=4:(G=u,Oe===0&&Ze(zr)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function zp(){var B,G,q,Se;return B=j,G=c.substr(j,2),G.toLowerCase()===F?j+=2:(G=u,Oe===0&&Ze(Fn)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Dd(){var B,G,q,Se;return B=j,G=c.substr(j,3),G.toLowerCase()===H?j+=3:(G=u,Oe===0&&Ze(on)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function mu(){var B,G,q,Se;return B=j,G=c.substr(j,4),G.toLowerCase()===N?j+=4:(G=u,Oe===0&&Ze(Ln)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Fp(){var B,G,q,Se;return B=j,G=c.substr(j,4),G.toLowerCase()===X?j+=4:(G=u,Oe===0&&Ze(ge)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function rc(){var B,G,q,Se;return B=j,G=c.substr(j,4),G.toLowerCase()===Q?j+=4:(G=u,Oe===0&&Ze(Ee)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function _p(){var B,G,q,Se;return B=j,G=c.substr(j,3),G.toLowerCase()===te?j+=3:(G=u,Oe===0&&Ze(Le)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Bp(){var B,G,q,Se;return B=j,G=c.substr(j,4),G.toLowerCase()===Z?j+=4:(G=u,Oe===0&&Ze(Ve)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Up(){var B,G,q,Se;return B=j,G=c.substr(j,6),G.toLowerCase()===K?j+=6:(G=u,Oe===0&&Ze(rt)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Vp(){var B,G,q,Se;return B=j,G=c.substr(j,5),G.toLowerCase()===ne?j+=5:(G=u,Oe===0&&Ze(kt)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function gu(){var B,G,q,Se;return B=j,G=c.substr(j,7),G.toLowerCase()===le?j+=7:(G=u,Oe===0&&Ze(bt)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function js(){var B,G,q,Se;return B=j,G=c.substr(j,8),G.toLowerCase()===fe?j+=8:(G=u,Oe===0&&Ze(Tt)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Hp(){var B,G,q,Se;return B=j,G=c.substr(j,3),G.toLowerCase()===ae?j+=3:(G=u,Oe===0&&Ze(Pt)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Ad(){var B,G,q,Se;return B=j,G=c.substr(j,5),G.toLowerCase()===se?j+=5:(G=u,Oe===0&&Ze(Kt)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function jd(){var B,G,q,Se;return B=j,G=c.substr(j,9),G.toLowerCase()===ie?j+=9:(G=u,Oe===0&&Ze(Dt)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Nd(){var B,G,q,Se;return B=j,G=c.substr(j,8),G.toLowerCase()===pe?j+=8:(G=u,Oe===0&&Ze(Ft)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Id(){var B,G,q,Se;return B=j,G=c.substr(j,3),G.toLowerCase()===me?j+=3:(G=u,Oe===0&&Ze(ue)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Ld(){var B,G,q,Se;return B=j,G=c.substr(j,2),G.toLowerCase()===Te?j+=2:(G=u,Oe===0&&Ze(de)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Ns(){var B,G,q,Se;return B=j,G=c.substr(j,6),G.toLowerCase()===Ce?j+=6:(G=u,Oe===0&&Ze(ze)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Wp(){var B,G,q,Se;return B=j,G=c.substr(j,7),G.toLowerCase()===ke?j+=7:(G=u,Oe===0&&Ze(ft)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function qp(){var B,G,q,Se;return B=j,G=c.substr(j,9),G.toLowerCase()===ce?j+=9:(G=u,Oe===0&&Ze(Ue)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Yp(){var B,G,q,Se;return B=j,G=c.substr(j,8),G.toLowerCase()===we?j+=8:(G=u,Oe===0&&Ze(Mt)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function zd(){var B,G,q,Se;return B=j,G=c.substr(j,6),G.toLowerCase()===Ge?j+=6:(G=u,Oe===0&&Ze(Yt)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function Fd(){var B,G,q,Se;return B=j,G=c.substr(j,8),G.toLowerCase()===Be?j+=8:(G=u,Oe===0&&Ze(nn)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function xl(){var B,G,q,Se;return B=j,G=c.substr(j,6),G.toLowerCase()===Ae?j+=6:(G=u,Oe===0&&Ze(ye)),G!==u?(q=j,Oe++,Se=nr(),Oe--,Se===u?q=void 0:(j=q,q=u),q!==u?(G=[G,q],B=G):(j=B,B=u)):(j=B,B=u),B}function nr(){var B;return B=c.charAt(j),tt.test(B)?j++:(B=u,Oe===0&&Ze(Re)),B}function fs(){var B,G;for(Oe++,B=[],G=c.charAt(j),Je.test(G)?j++:(G=u,Oe===0&&Ze(xt));G!==u;)B.push(G),G=c.charAt(j),Je.test(G)?j++:(G=u,Oe===0&&Ze(xt));return Oe--,G=u,Oe===0&&Ze(it),B}function Gr(){var B,G;if(Oe++,B=[],G=c.charAt(j),Je.test(G)?j++:(G=u,Oe===0&&Ze(xt)),G!==u)for(;G!==u;)B.push(G),G=c.charAt(j),Je.test(G)?j++:(G=u,Oe===0&&Ze(xt));else B=u;return Oe--,B===u&&(G=u,Oe===0&&Ze(Et)),B}if(us=v(),f.peg$library)return{peg$result:us,peg$currPos:j,peg$FAILED:u,peg$maxFailExpected:Ga,peg$maxFailPos:to};if(us!==u&&j===c.length)return us;throw us!==u&&j<c.length&&Ze(Ps()),fu(Ga,to<c.length?c.charAt(to):null,to<c.length?Od(to,to+1):Od(to,to))}return l1={StartRules:["temporalFilter"],SyntaxError:a,parse:l},l1}var M$;function IX(){return M$||(M$=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=void 0;const t=$p(),n=NX(),r=Tk();e.TemporalFilterExpression={parse(l){if(l.match(/^\s*$/))return{parsed:null,log:[]};const c=(0,r.run_parser)(l,n.parse);return c.parsed&&(0,t.isTemporalFilter)(c.parsed)?{parsed:c.parsed,log:[]}:{parsed:null,log:c.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(c=>e.TemporalFilterExpression.unparse(c)).join(" or ");case"and":return l.members.map(c=>e.TemporalFilterExpression.unparse(c)).join(" and ")}}};function o(l,c){return"not"in l&&l.not?"not "+c:c}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`}}})(s1)),s1}var $$;function LX(){return $$||($$=1,(function(e){var t=$u&&$u.__createBinding||(Object.create?(function(l,c,f,u){u===void 0&&(u=f);var h=Object.getOwnPropertyDescriptor(c,f);(!h||("get"in h?!c.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,u,h)}):(function(l,c,f,u){u===void 0&&(u=f),l[u]=c[f]})),n=$u&&$u.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&t(c,l,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=e.StringFilterExpression=e.NumberFilterExpression=e.BooleanFilterExpression=void 0,n($p(),e);var r=$X();Object.defineProperty(e,"BooleanFilterExpression",{enumerable:!0,get:function(){return r.BooleanFilterExpression}});var o=DX();Object.defineProperty(e,"NumberFilterExpression",{enumerable:!0,get:function(){return o.NumberFilterExpression}});var a=jX();Object.defineProperty(e,"StringFilterExpression",{enumerable:!0,get:function(){return a.StringFilterExpression}});var s=IX();Object.defineProperty(e,"TemporalFilterExpression",{enumerable:!0,get:function(){return s.TemporalFilterExpression}})})($u)),$u}var wi=LX();function Bu(){return Bu=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},Bu.apply(this,arguments)}const zX=["children","options"],P$=["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"}),D$={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},FX=["style","script","pre"],_X=["src","href","data","formAction","srcDoc","action"],BX=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,UX=/mailto:/i,VX=/\n{2,}$/,A$=/^(\s*>[\s\S]*?)(?=\n\n|$)/,HX=/^ *> ?/gm,WX=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,qX=/^ {2,}\n/,YX=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,j$=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,N$=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,GX=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,KX=/^(?:\n *)*\n/,QX=/\r\n?/g,XX=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,ZX=/^\[\^([^\]]+)]/,JX=/\f/g,eZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,tZ=/^\s*?\[(x|\s)\]/,I$=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,L$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,z$=/^([^\n]+)\n *(=|-){3,} *\n/,c1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,nZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,F$=/^<!--[\s\S]*?(?:-->)/,rZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,u1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,oZ=/^\{.*\}$/,aZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,iZ=/^<([^ >]+@[^ >]+)>/,sZ=/^<([^ >]+:\/[^ >]+)>/,lZ=/-([a-z])?/gi,_$=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,cZ=/^[^\n]+(?: \n|\n{2,})/,uZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,dZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,fZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,pZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,hZ=/\t/g,mZ=/(^ *\||\| *$)/g,gZ=/^ *:-+: *$/,yZ=/^ *:-+ *$/,vZ=/^ *-+: *$/,v0=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,b0="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",bZ=RegExp(`^([*_])\\1${v0(1)}${b0}\\1\\1(?!\\1)`),xZ=RegExp(`^([*_])${v0(0)}${b0}\\1(?!\\1)`),SZ=RegExp(`^(==)${v0(0)}${b0}\\1`),wZ=RegExp(`^(~~)${v0(0)}${b0}\\1`),CZ=/^(:[a-zA-Z0-9-_]+:)/,kZ=/^\\([^0-9A-Za-z\s])/,TZ=/\\([^0-9A-Za-z\s])/g,EZ=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,RZ=/^\n+/,OZ=/^([ \t]*)/,MZ=/(?:^|\n)( *)$/,Ek="(?:\\d+\\.)",Rk="(?:[*+-])";function NI(e){return"( *)("+(e===1?Ek:Rk)+") +"}const II=NI(1),LI=NI(2);function zI(e){return RegExp("^"+(e===1?II:LI))}const $Z=zI(1),PZ=zI(2);function FI(e){return RegExp("^"+(e===1?II:LI)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Ek:Rk)+" )[^\\n]*)*(\\n|$)","gm")}const DZ=FI(1),AZ=FI(2);function _I(e){const t=e===1?Ek:Rk;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const BI=_I(1),UI=_I(2);function B$(e,t){const n=t===1,r=n?BI:UI,o=n?DZ:AZ,a=n?$Z:PZ;return{t:s=>a.test(s),o:pp(function(s,l){const c=MZ.exec(l.prevCapture);return c&&(l.list||!l.inline&&!l.simple)?r.exec(s=c[1]+s):null}),i:1,u(s,l,c){const f=n?+s[2]:void 0,u=s[0].replace(VX,`
|
|
290
|
-
`).match(o);let h=!1;return{items:u.map(function(y,v){const S=a.exec(y)[0].length,x=RegExp("^ {1,"+S+"}","gm"),w=y.replace(x,"").replace(a,""),b=v===u.length-1,T=w.indexOf(`
|
|
291
|
-
|
|
292
|
-
`)!==-1||b&&h;h=T;const E=c.inline,M=c.list;let $;c.list=!0,T?(c.inline=!1,$=Bm(w)+`
|
|
293
|
-
|
|
294
|
-
`):(c.inline=!0,$=Bm(w));const D=l($,c);return c.inline=E,c.list=M,D}),ordered:n,start:f}},l:(s,l,c)=>e(s.ordered?"ol":"ul",{key:c.key,start:s.type==="20"?s.start:void 0},s.items.map(function(f,u){return e("li",{key:u},l(f,c))}))}}const jZ=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),NZ=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Bm(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Yv(e,t){return e.startsWith(t)}function IZ(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Yv(e,n[r]))return!0;return!1}return n(e,t)}function nm(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 LZ(e){return vZ.test(e)?"right":gZ.test(e)?"center":yZ.test(e)?"left":null}function U$(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],s="";function l(){if(!s)return;const c=a[a.length-1];c.push.apply(c,t(s,n)),s=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((c,f,u)=>{c.trim()==="|"&&(l(),r)?f!==0&&f!==u.length-1&&a.push([]):s+=c}),l(),n.inTable=o,a}function zZ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(mZ,"").split("|").map(LZ):[],o=e[3]?(function(s,l,c){return s.trim().split(`
|
|
295
|
-
`).map(function(f){return U$(f,l,c,!0)})})(e[3],t,n):[],a=U$(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 V$(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function pp(e){return e.inline=1,e}function Rc(e){return pp(function(t,n){return n.inline?e.exec(t):null})}function Oc(e){return pp(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Il(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function vv(e){return pp(function(t){return e.exec(t)})}const FZ=/(javascript|vbscript|data(?!:image)):/i;function _Z(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(FZ.test(t))return null}catch{return null}return e}function Vs(e){return e&&e.replace(TZ,"$1")}function Gv(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 BZ(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 UZ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const d1=(e,t,n)=>({children:Gv(t,e[2],n)});function f1(){return{}}function p1(){return null}function VZ(...e){return e.filter(Boolean).join(" ")}function h1(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 HZ(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Bu({},D$,t.namedCodesToUnicode):D$;const n=t.slugify||nm,r=t.sanitizer||_Z,o=t.createElement||C.createElement,a=[A$,j$,N$,t.enforceAtxHeadings?L$:I$,z$,_$,BI,UI],s=[...a,cZ,c1,F$,u1];function l(b,T,...E){const M=h1(t.overrides,b+".props",{});return o((function($,D){const I=h1(D,$);return I?typeof I=="function"||typeof I=="object"&&"render"in I?I:h1(D,$+".component",$):$})(b,t.overrides),Bu({},T,M,{className:VZ(T?.className,M.className)||void 0}),...E)}function c(b){b=b.replace(eZ,"");let T=!1;t.forceInline?T=!0:t.forceBlock||(T=pZ.test(b)===!1);const E=S(v(T?b:Bm(b).replace(RZ,"")+`
|
|
296
|
-
|
|
297
|
-
`,{inline:T}));for(;typeof E[E.length-1]=="string"&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const M=t.wrapper||(T?"span":"div");let $;if(E.length>1||t.forceWrapper)$=E;else{if(E.length===1)return $=E[0],typeof $=="string"?l("span",{key:"outer"},$):$;$=null}return o(M,{key:"outer"},$)}function f(b,T){if(!T||!T.trim())return null;const E=T.match(BX);return E?E.reduce(function(M,$){const D=$.indexOf("=");if(D!==-1){const I=(function(V){return V.indexOf("-")!==-1&&V.match(rZ)===null&&(V=V.replace(lZ,function(k,z){return z.toUpperCase()})),V})($.slice(0,D)).trim(),A=(function(V){const k=V[0];return(k==='"'||k==="'")&&V.length>=2&&V[V.length-1]===k?V.slice(1,-1):V})($.slice(D+1).trim()),_=P$[I]||I;if(_==="ref")return M;const W=M[_]=(function(V,k,z,F){return k==="style"?(function(H){const N=[];let X="",Q=!1,te=!1,Z="";if(!H)return N;for(let ne=0;ne<H.length;ne++){const le=H[ne];if(le!=='"'&&le!=="'"||Q||(te?le===Z&&(te=!1,Z=""):(te=!0,Z=le)),le==="("&&X.endsWith("url")?Q=!0:le===")"&&Q&&(Q=!1),le!==";"||te||Q)X+=le;else{const fe=X.trim();if(fe){const ae=fe.indexOf(":");if(ae>0){const se=fe.slice(0,ae).trim(),ie=fe.slice(ae+1).trim();N.push([se,ie])}}X=""}}const K=X.trim();if(K){const ne=K.indexOf(":");if(ne>0){const le=K.slice(0,ne).trim(),fe=K.slice(ne+1).trim();N.push([le,fe])}}return N})(z).reduce(function(H,[N,X]){return H[N.replace(/(-[a-z])/g,Q=>Q[1].toUpperCase())]=F(X,V,N),H},{}):_X.indexOf(k)!==-1?F(Vs(z),V,k):(z.match(oZ)&&(z=Vs(z.slice(1,z.length-1))),z==="true"||z!=="false"&&z)})(b,I,A,r);typeof W=="string"&&(c1.test(W)||u1.test(W))&&(M[_]=c(W.trim()))}else $!=="style"&&(M[P$[$]||$]=!0);return M},{}):null}const u=[],h={},y={0:{t:[">"],o:Il(A$),i:1,u(b,T,E){const[,M,$]=b[0].replace(HX,"").match(WX);return{alert:M,children:T($,E)}},l(b,T,E){const M={key:E.key};return b.alert&&(M.className="markdown-alert-"+n(b.alert.toLowerCase(),nm),b.children.unshift({attrs:{},children:[{type:"27",text:b.alert}],noInnerParse:!0,type:"11",tag:"header"})),l("blockquote",M,T(b.children,E))}},1:{o:vv(qX),i:1,u:f1,l:(b,T,E)=>l("br",{key:E.key})},2:{t:b=>{const T=b[0];return T==="-"||T==="*"||T==="_"},o:Il(YX),i:1,u:f1,l:(b,T,E)=>l("hr",{key:E.key})},3:{t:[" "],o:Il(N$),i:0,u:b=>({lang:void 0,text:Vs(Bm(b[0].replace(/^ {4}/gm,"")))}),l:(b,T,E)=>l("pre",{key:E.key},l("code",Bu({},b.attrs,{className:b.lang?"lang-"+b.lang:""}),b.text))},4:{t:["```","~~~"],o:Il(j$),i:0,u:b=>({attrs:f("code",b[3]||""),lang:b[2]||void 0,text:b[4],type:"3"})},5:{t:["`"],o:Oc(GX),i:3,u:b=>({text:Vs(b[2])}),l:(b,T,E)=>l("code",{key:E.key},b.text)},6:{t:["[^"],o:Il(XX),i:0,u:b=>(u.push({footnote:b[2],identifier:b[1]}),{}),l:p1},7:{t:["[^"],o:Rc(ZX),i:1,u:b=>({target:"#"+n(b[1],nm),text:b[1]}),l:(b,T,E)=>l("a",{key:E.key,href:r(b.target,"a","href")},l("sup",{key:E.key},b.text))},8:{t:["[ ]","[x]"],o:Rc(tZ),i:1,u:b=>({completed:b[1].toLowerCase()==="x"}),l:(b,T,E)=>l("input",{checked:b.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Il(t.enforceAtxHeadings?L$:I$),i:1,u:(b,T,E)=>({children:Gv(T,b[2],E),id:n(b[2],nm),level:b[1].length}),l:(b,T,E)=>l("h"+b.level,{id:b.id,key:E.key},T(b.children,E))},10:{o:Il(z$),i:0,u:(b,T,E)=>({children:Gv(T,b[1],E),level:b[2]==="="?1:2,type:"9"})},11:{t:["<"],o:vv(c1),i:1,u(b,T,E){const[,M]=b[3].match(OZ),$=RegExp("^"+M,"gm"),D=b[3].replace($,""),I=(A=D,s.some(z=>z.test(A))?UZ:Gv);var A;const _=b[1].toLowerCase(),W=FX.indexOf(_)!==-1,V=(W?_:b[1]).trim(),k={attrs:f(V,b[2]),noInnerParse:W,tag:V};if(E.inAnchor=E.inAnchor||_==="a",W)k.text=b[3];else{const z=E.inHTML;E.inHTML=!0,k.children=I(T,D,E),E.inHTML=z}return E.inAnchor=!1,k},l:(b,T,E)=>l(b.tag,Bu({key:E.key},b.attrs),b.text||(b.children?T(b.children,E):""))},13:{t:["<"],o:vv(u1),i:1,u(b){const T=b[1].trim();return{attrs:f(T,b[2]||""),tag:T}},l:(b,T,E)=>l(b.tag,Bu({},b.attrs,{key:E.key}))},12:{t:["<!--"],o:vv(F$),i:1,u:()=>({}),l:p1},14:{t:["!["],o:Oc(NZ),i:1,u:b=>({alt:Vs(b[1]),target:Vs(b[2]),title:Vs(b[3])}),l:(b,T,E)=>l("img",{key:E.key,alt:b.alt||void 0,title:b.title||void 0,src:r(b.target,"img","src")})},15:{t:["["],o:Rc(jZ),i:3,u:(b,T,E)=>({children:BZ(T,b[1],E),target:Vs(b[2]),title:Vs(b[3])}),l:(b,T,E)=>l("a",{key:E.key,href:r(b.target,"a","href"),title:b.title},T(b.children,E))},16:{t:["<"],o:Rc(sZ),i:0,u:b=>({children:[{text:b[1],type:"27"}],target:b[1],type:"15"})},17:{t:(b,T)=>!T.inAnchor&&!t.disableAutoLink&&(Yv(b,"http://")||Yv(b,"https://")),o:Rc(aZ),i:0,u:b=>({children:[{text:b[1],type:"27"}],target:b[1],title:void 0,type:"15"})},18:{t:["<"],o:Rc(iZ),i:0,u(b){let T=b[1],E=b[1];return UX.test(E)||(E="mailto:"+E),{children:[{text:T.replace("mailto:",""),type:"27"}],target:E,type:"15"}}},20:B$(l,1),33:B$(l,2),19:{o:Il(KX),i:3,u:f1,l:()=>`
|
|
298
|
-
`},21:{o:pp(function(b,T){if(T.inline||T.simple||T.inHTML&&b.indexOf(`
|
|
299
|
-
|
|
300
|
-
`)===-1&&T.prevCapture.indexOf(`
|
|
301
|
-
|
|
302
|
-
`)===-1)return null;let E="";b.split(`
|
|
303
|
-
`).every($=>($+=`
|
|
304
|
-
`,!a.some(D=>D.test($))&&(E+=$,!!$.trim())));const M=Bm(E);return M===""?null:[E,,M]}),i:3,u:d1,l:(b,T,E)=>l("p",{key:E.key},T(b.children,E))},22:{t:["["],o:Rc(uZ),i:0,u:b=>(h[b[1]]={target:b[2],title:b[4]},{}),l:p1},23:{t:["!["],o:Oc(dZ),i:0,u:b=>({alt:b[1]?Vs(b[1]):void 0,ref:b[2]}),l:(b,T,E)=>h[b.ref]?l("img",{key:E.key,alt:b.alt,src:r(h[b.ref].target,"img","src"),title:h[b.ref].title}):null},24:{t:b=>b[0]==="["&&b.indexOf("](")===-1,o:Rc(fZ),i:0,u:(b,T,E)=>({children:T(b[1],E),fallbackChildren:b[0],ref:b[2]}),l:(b,T,E)=>h[b.ref]?l("a",{key:E.key,href:r(h[b.ref].target,"a","href"),title:h[b.ref].title},T(b.children,E)):l("span",{key:E.key},b.fallbackChildren)},25:{t:["|"],o:Il(_$),i:1,u:zZ,l(b,T,E){const M=b;return l("table",{key:E.key},l("thead",null,l("tr",null,M.header.map(function($,D){return l("th",{key:D,style:V$(M,D)},T($,E))}))),l("tbody",null,M.cells.map(function($,D){return l("tr",{key:D},$.map(function(I,A){return l("td",{key:A,style:V$(M,A)},T(I,E))}))})))}},27:{o:pp(function(b,T){let E;return Yv(b,":")&&(E=CZ.exec(b)),E||EZ.exec(b)}),i:4,u(b){const T=b[0];return{text:T.indexOf("&")===-1?T:T.replace(nZ,(E,M)=>t.namedCodesToUnicode[M]||E)}},l:b=>b.text},28:{t:["**","__"],o:Oc(bZ),i:2,u:(b,T,E)=>({children:T(b[2],E)}),l:(b,T,E)=>l("strong",{key:E.key},T(b.children,E))},29:{t:b=>{const T=b[0];return(T==="*"||T==="_")&&b[1]!==T},o:Oc(xZ),i:3,u:(b,T,E)=>({children:T(b[2],E)}),l:(b,T,E)=>l("em",{key:E.key},T(b.children,E))},30:{t:["\\"],o:Oc(kZ),i:1,u:b=>({text:b[1],type:"27"})},31:{t:["=="],o:Oc(SZ),i:3,u:d1,l:(b,T,E)=>l("mark",{key:E.key},T(b.children,E))},32:{t:["~~"],o:Oc(wZ),i:3,u:d1,l:(b,T,E)=>l("del",{key:E.key},T(b.children,E))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const v=(function(b){var T=Object.keys(b);function E(M,$){var D=[];if($.prevCapture=$.prevCapture||"",M.trim())for(;M;)for(var I=0;I<T.length;){var A=T[I],_=b[A];if(!_.t||IZ(M,$,_.t)){var W=_.o(M,$);if(W&&W[0]){M=M.substring(W[0].length);var V=_.u(W,E,$);$.prevCapture+=W[0],V.type||(V.type=A),D.push(V);break}I++}else I++}return $.prevCapture="",D}return T.sort(function(M,$){return b[M].i-b[$].i||(M<$?-1:1)}),function(M,$){return E((function(D){return D.replace(QX,`
|
|
305
|
-
`).replace(JX,"").replace(hZ," ")})(M),$)}})(y),S=(x=(function(b,T){return function(E,M,$){const D=b[E.type].l;return T?T(()=>D(E,M,$),E,M,$):D(E,M,$)}})(y,t.renderRule),function b(T,E={}){if(Array.isArray(T)){const M=E.key,$=[];let D=!1;for(let I=0;I<T.length;I++){E.key=I;const A=b(T[I],E),_=typeof A=="string";_&&D?$[$.length-1]+=A:A!==null&&$.push(A),D=_}return E.key=M,$}return x(T,b,E)});var x;const w=c(e);return u.length?l("div",null,w,l("footer",{key:"footer"},u.map(function(b){return l("div",{id:n(b.identifier,nm),key:b.identifier},b.identifier,S(v(b.footnote,{inline:!0})))}))):w}const WZ=e=>{let{children:t="",options:n}=e,r=(function(o,a){if(o==null)return{};var s,l,c={},f=Object.keys(o);for(l=0;l<f.length;l++)a.indexOf(s=f[l])>=0||(c[s]=o[s]);return c})(e,zX);return C.cloneElement(HZ(t,n),r)},x0=Wa(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"})),Ok=Wa(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"})),S0=Wa(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"})),qZ=Wa(m.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function Kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function YZ(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 Ew={exports:{}},GZ=Ew.exports,H$;function KZ(){return H$||(H$=1,(function(e,t){(function(n,r){e.exports=r()})(GZ,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",f="day",u="week",h="month",y="quarter",v="year",S="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+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var H=["th","st","nd","rd"],N=F%100;return"["+F+(H[(N-20)%10]||H[N]||H[0])+"]"}},E=function(F,H,N){var X=String(F);return!X||X.length>=H?F:""+Array(H+1-X.length).join(N)+F},M={s:E,z:function(F){var H=-F.utcOffset(),N=Math.abs(H),X=Math.floor(N/60),Q=N%60;return(H<=0?"+":"-")+E(X,2,"0")+":"+E(Q,2,"0")},m:function F(H,N){if(H.date()<N.date())return-F(N,H);var X=12*(N.year()-H.year())+(N.month()-H.month()),Q=H.clone().add(X,h),te=N-Q<0,Z=H.clone().add(X+(te?-1:1),h);return+(-(X+(N-Q)/(te?Q-Z:Z-Q))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:h,y:v,w:u,d:f,D:S,h:c,m:l,s,ms:a,Q:y}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},$="en",D={};D[$]=T;var I="$isDayjsObject",A=function(F){return F instanceof k||!(!F||!F[I])},_=function F(H,N,X){var Q;if(!H)return $;if(typeof H=="string"){var te=H.toLowerCase();D[te]&&(Q=te),N&&(D[te]=N,Q=te);var Z=H.split("-");if(!Q&&Z.length>1)return F(Z[0])}else{var K=H.name;D[K]=H,Q=K}return!X&&Q&&($=Q),Q||!X&&$},W=function(F,H){if(A(F))return F.clone();var N=typeof H=="object"?H:{};return N.date=F,N.args=arguments,new k(N)},V=M;V.l=_,V.i=A,V.w=function(F,H){return W(F,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var k=(function(){function F(N){this.$L=_(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[I]=!0}var H=F.prototype;return H.parse=function(N){this.$d=(function(X){var Q=X.date,te=X.utc;if(Q===null)return new Date(NaN);if(V.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var Z=Q.match(w);if(Z){var K=Z[2]-1||0,ne=(Z[7]||"0").substring(0,3);return te?new Date(Date.UTC(Z[1],K,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ne)):new Date(Z[1],K,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ne)}}return new Date(Q)})(N),this.init()},H.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},H.$utils=function(){return V},H.isValid=function(){return this.$d.toString()!==x},H.isSame=function(N,X){var Q=W(N);return this.startOf(X)<=Q&&Q<=this.endOf(X)},H.isAfter=function(N,X){return W(N)<this.startOf(X)},H.isBefore=function(N,X){return this.endOf(X)<W(N)},H.$g=function(N,X,Q){return V.u(N)?this[X]:this.set(Q,N)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(N,X){var Q=this,te=!!V.u(X)||X,Z=V.p(N),K=function(me,Te){var Ce=V.w(Q.$u?Date.UTC(Q.$y,Te,me):new Date(Q.$y,Te,me),Q);return te?Ce:Ce.endOf(f)},ne=function(me,Te){return V.w(Q.toDate()[me].apply(Q.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(Te)),Q)},le=this.$W,fe=this.$M,ae=this.$D,se="set"+(this.$u?"UTC":"");switch(Z){case v:return te?K(1,0):K(31,11);case h:return te?K(1,fe):K(0,fe+1);case u:var ie=this.$locale().weekStart||0,pe=(le<ie?le+7:le)-ie;return K(te?ae-pe:ae+(6-pe),fe);case f:case S:return ne(se+"Hours",0);case c:return ne(se+"Minutes",1);case l:return ne(se+"Seconds",2);case s:return ne(se+"Milliseconds",3);default:return this.clone()}},H.endOf=function(N){return this.startOf(N,!1)},H.$set=function(N,X){var Q,te=V.p(N),Z="set"+(this.$u?"UTC":""),K=(Q={},Q[f]=Z+"Date",Q[S]=Z+"Date",Q[h]=Z+"Month",Q[v]=Z+"FullYear",Q[c]=Z+"Hours",Q[l]=Z+"Minutes",Q[s]=Z+"Seconds",Q[a]=Z+"Milliseconds",Q)[te],ne=te===f?this.$D+(X-this.$W):X;if(te===h||te===v){var le=this.clone().set(S,1);le.$d[K](ne),le.init(),this.$d=le.set(S,Math.min(this.$D,le.daysInMonth())).$d}else K&&this.$d[K](ne);return this.init(),this},H.set=function(N,X){return this.clone().$set(N,X)},H.get=function(N){return this[V.p(N)]()},H.add=function(N,X){var Q,te=this;N=Number(N);var Z=V.p(X),K=function(fe){var ae=W(te);return V.w(ae.date(ae.date()+Math.round(fe*N)),te)};if(Z===h)return this.set(h,this.$M+N);if(Z===v)return this.set(v,this.$y+N);if(Z===f)return K(1);if(Z===u)return K(7);var ne=(Q={},Q[l]=r,Q[c]=o,Q[s]=n,Q)[Z]||1,le=this.$d.getTime()+N*ne;return V.w(le,this)},H.subtract=function(N,X){return this.add(-1*N,X)},H.format=function(N){var X=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||x;var te=N||"YYYY-MM-DDTHH:mm:ssZ",Z=V.z(this),K=this.$H,ne=this.$m,le=this.$M,fe=Q.weekdays,ae=Q.months,se=Q.meridiem,ie=function(Te,Ce,ke,ce){return Te&&(Te[Ce]||Te(X,te))||ke[Ce].slice(0,ce)},pe=function(Te){return V.s(K%12||12,Te,"0")},me=se||function(Te,Ce,ke){var ce=Te<12?"AM":"PM";return ke?ce.toLowerCase():ce};return te.replace(b,(function(Te,Ce){return Ce||(function(ke){switch(ke){case"YY":return String(X.$y).slice(-2);case"YYYY":return V.s(X.$y,4,"0");case"M":return le+1;case"MM":return V.s(le+1,2,"0");case"MMM":return ie(Q.monthsShort,le,ae,3);case"MMMM":return ie(ae,le);case"D":return X.$D;case"DD":return V.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return ie(Q.weekdaysMin,X.$W,fe,2);case"ddd":return ie(Q.weekdaysShort,X.$W,fe,3);case"dddd":return fe[X.$W];case"H":return String(K);case"HH":return V.s(K,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return me(K,ne,!0);case"A":return me(K,ne,!1);case"m":return String(ne);case"mm":return V.s(ne,2,"0");case"s":return String(X.$s);case"ss":return V.s(X.$s,2,"0");case"SSS":return V.s(X.$ms,3,"0");case"Z":return Z}return null})(Te)||Z.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(N,X,Q){var te,Z=this,K=V.p(X),ne=W(N),le=(ne.utcOffset()-this.utcOffset())*r,fe=this-ne,ae=function(){return V.m(Z,ne)};switch(K){case v:te=ae()/12;break;case h:te=ae();break;case y:te=ae()/3;break;case u:te=(fe-le)/6048e5;break;case f:te=(fe-le)/864e5;break;case c:te=fe/o;break;case l:te=fe/r;break;case s:te=fe/n;break;default:te=fe}return Q?te:V.a(te)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return D[this.$L]},H.locale=function(N,X){if(!N)return this.$L;var Q=this.clone(),te=_(N,X,!0);return te&&(Q.$L=te),Q},H.clone=function(){return V.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()},F})(),z=k.prototype;return W.prototype=z,[["$ms",a],["$s",s],["$m",l],["$H",c],["$W",f],["$M",h],["$y",v],["$D",S]].forEach((function(F){z[F[1]]=function(H){return this.$g(H,F[0],F[1])}})),W.extend=function(F,H){return F.$i||(F(H,k,W),F.$i=!0),W},W.locale=_,W.isDayjs=A,W.unix=function(F){return W(1e3*F)},W.en=D[$],W.Ls=D,W.p={},W}))})(Ew)),Ew.exports}var QZ=KZ();const $r=Kl(QZ);var Rw={exports:{}},XZ=Rw.exports,W$;function ZZ(){return W$||(W$=1,(function(e,t){(function(n,r){e.exports=r()})(XZ,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,s,l){var c=s.prototype;l.utc=function(x){var w={date:x,utc:!0,args:arguments};return new s(w)},c.utc=function(x){var w=l(this.toDate(),{locale:this.$L,utc:!0});return x?w.add(this.utcOffset(),n):w},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var f=c.parse;c.parse=function(x){x.utc&&(this.$u=!0),this.$utils().u(x.$offset)||(this.$offset=x.$offset),f.call(this,x)};var u=c.init;c.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 u.call(this)};var h=c.utcOffset;c.utcOffset=function(x,w){var b=this.$utils().u;if(b(x))return this.$u?0:b(this.$offset)?h.call(this):this.$offset;if(typeof x=="string"&&(x=(function($){$===void 0&&($="");var D=$.match(r);if(!D)return null;var I=(""+D[0]).match(o)||["-",0,0],A=I[0],_=60*+I[1]+ +I[2];return _===0?0:A==="+"?_:-_})(x),x===null))return this;var T=Math.abs(x)<=16?60*x:x;if(T===0)return this.utc(w);var E=this.clone();if(w)return E.$offset=T,E.$u=!1,E;var M=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(E=this.local().add(T+M,n)).$offset=T,E.$x.$localOffset=M,E};var y=c.format;c.format=function(x){var w=x||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,w)},c.valueOf=function(){var x=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*x},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var v=c.toDate;c.toDate=function(x){return x==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var S=c.diff;c.diff=function(x,w,b){if(x&&this.$u===x.$u)return S.call(this,x,w,b);var T=this.local(),E=l(x).local();return S.call(T,E,w,b)}}}))})(Rw)),Rw.exports}var JZ=ZZ();const Mk=Kl(JZ);$r.extend(Mk);function Uu(e){return(e??"").startsWith("filter<")}function eJ(e){const{parsed:t}=wi.BooleanFilterExpression.parse(e);if(!(!t||t.not))return t.operator==="true"||t.operator==="false"?t.operator:void 0}function Hf(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function $k(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":wi.StringFilterExpression.unparse({operator:"=",values:[...t]})}function tJ(e){if(e.trim()==="")return[];const{parsed:t}=wi.StringFilterExpression.parse(e);return VI(t)?t.values:[e]}function nJ(e){return e===void 0||e.trim()===""?!0:VI(wi.StringFilterExpression.parse(e).parsed)}function VI(e){return e!==null&&wi.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function rJ(e){return wi.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function oJ(e){const t=e.trim();if(t==="")return;const{parsed:n}=wi.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 aJ(e,t){return wi.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function iJ(e){const t=e.trim();if(t==="")return;const{parsed:n}=wi.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 yb=[{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 sJ(e){const t=yb.find(n=>n.key===e);return t?wi.TemporalFilterExpression.unparse(t.clause):void 0}function lJ(e){const t=e.trim();if(t==="")return;const{parsed:n}=wi.TemporalFilterExpression.parse(t);if(n!==null)for(const r of yb){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 cJ=/^\d{4}-\d{2}-\d{2}$/;function uJ(e,t){const n=$r.utc(t,"YYYY-MM-DD").add(1,"day");return wi.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function dJ(e){const t=e.trim();if(t==="")return;const{parsed:n}=wi.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=q$(n.fromMoment),o=q$(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 q$(e){return e.moment==="literal"&&cJ.test(e.literal)?e.literal:void 0}const m1="self";function HI(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(Y$)).filter(Y$):[]}function WI(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function qI(e){return e.tag?.tag("drill")?.text("given")??e.name}function w0(e){if(typeof e=="string"){const t=$k([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 YI(e){return e instanceof Date?w0(e)??"":String(e)}function fJ(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=HI(t);if(n.length===0)return;const r=w0(e.value);if(r!==void 0)return{to:n,given:qI(t),value:r,rawValue:e.value,label:YI(e.value)}}function Y$(e){return typeof e=="string"&&e!==""}function pJ(e,t){if(t!==void 0&&!Uu(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 Hf(t)==="string"&&typeof e=="number"?Number.isFinite(e)?$k([String(e)]):void 0:Hf(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:w0(e)}function hJ({declaredTypes:e,setGiven:t,documentName:n}){const r=C.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);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,c)=>{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 u=e.get(f),h=pJ(c,u);if(h===void 0){console.warn(`Drill declined: ${JSON.stringify(c)} cannot be a value for given "${f}"`+(u?` of type ${u}`:""));return}t(f,h)},[e,n,o,t]);return{resolveGiven:o,canSelf:a,onSelf:s}}function mJ(e,t){if(e!=null){if(e instanceof Date)return QI(e,t);if(!Array.isArray(e))return String(e)}}function gJ(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 yJ=/^(\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 GI(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 vJ(e,t=!1){const n=GI(e);if(n==="")return;const r=yJ.exec(n);if(!r)return;const[,o,a,s,l,c,f,u,h]=r,y={year:Number(o),month:Number(a),day:Number(s),hour:Number(l??0),minute:Number(c??0),second:Number(f??0),milli:Number((u??"").slice(0,3).padEnd(3,"0")||0)},v=Date.UTC(y.year,y.month-1,y.day,y.hour,y.minute,y.second,y.milli),S=new Date(v);if(!(S.getUTCFullYear()===y.year&&S.getUTCMonth()===y.month-1&&S.getUTCDate()===y.day&&S.getUTCHours()===y.hour&&S.getUTCMinutes()===y.minute&&S.getUTCSeconds()===y.second)||h!==void 0&&l===void 0)return;const x=bJ(h);if(x===void 0)return;const w=new Date(v-x*6e4);if(!(t&&h!==void 0&&w.getUTCDate()!==y.day))return w}function bJ(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 xJ(e){return!SJ.has(e??"")}const SJ=new Set(["boolean","number","date","timestamp","timestamptz"]);function KI(e,t){if(t===""&&!xJ(e))return null;if(Uu(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=GI(t);return vJ(n,e==="date")??n}default:return t}}function Pk(e,t){const n={};for(const[r,o]of e){const a=mJ(o,t.get(r));a!==void 0&&(n[r]=a)}return n}function QI(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?QI(s,t.get(a)):s));return o}function G$(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,KI(t.get(r),o));return n}function K$(e,t){const n=Array.from(e.keys()).filter(o=>!t.has(o));if(n.length===0)return e;const r=new Map(e);for(const o of n)r.delete(o);return r}function Q$(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function wJ(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function X$(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function CJ({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:a}){const s=C.useMemo(()=>G$(t??{},e),[e,JSON.stringify(t)]),l=C.useRef(null),c=C.useRef(null),f=C.useRef({documentKey:o,params:n}),u=V=>V!==null&&wJ(n??{},V,e);u(l.current)&&(c.current=null),(f.current.documentKey!==o||!X$(n??{},f.current.params??{})&&!u(l.current)&&!u(c.current))&&(f.current={documentKey:o,params:n});const h=f.current.params,y=JSON.stringify(t),v=JSON.stringify(h),S=C.useMemo(()=>G$({...t??{},...h??{}},e),[e,y,v]),x=C.useMemo(()=>JSON.stringify([o??null,Q$(t),Q$(h)]),[o,y,v]),[w,b]=C.useState(null),T=w?.key===x?w:null;C.useEffect(()=>{w!==null&&w.key!==x&&b(null)},[w,x]);const E=C.useMemo(()=>K$(T?.draft??S,e),[T,S,e]),M=C.useMemo(()=>K$(T?.applied??S,e),[T,S,e]),$=C.useCallback(V=>V?.key===x?V:{key:x,draft:S,applied:S},[x,S]),D=C.useMemo(()=>Pk(M,e),[M,e]);l.current===null&&(l.current=D),C.useEffect(()=>{r&&(X$(l.current??{},D)||(c.current=l.current,l.current=D,r(D)))},[D,r]);const I=C.useCallback((V,k)=>{b(z=>{const F=$(z),H=new Map(F.draft);return k===null?H.delete(V):H.set(V,k),{key:F.key,draft:H,applied:a?H:F.applied}})},[a,$]),A=C.useCallback(()=>{b(V=>({key:$(V).key,draft:s,applied:s}))},[$,s]),_=C.useCallback(()=>{b(V=>{const k=$(V);return{key:k.key,draft:k.draft,applied:k.draft}})},[$]),W=C.useMemo(()=>{if(a)return!1;if(E.size!==M.size)return!0;for(const[V,k]of E){const z=M.get(V);if(k instanceof Date&&z instanceof Date){if(k.getTime()!==z.getTime())return!0}else if(Array.isArray(k)&&Array.isArray(z)){if(String(k)!==String(z))return!0}else if(k!==z)return!0}return!1},[a,E,M]);return{draft:E,applied:M,setGiven:I,reset:A,apply:_,pending:W}}const kJ=1e3;function XI(e){const t=e.split(".");return t[t.length-1]}function TJ(e,t){return`run: ${e} -> {
|
|
306
|
-
group_by: ${t}
|
|
307
|
-
order_by: ${XI(t)} asc
|
|
308
|
-
limit: ${kJ}
|
|
309
|
-
}`}function EJ(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 RJ(e,t,n,r,o,a){const{apiClients:s}=Br(),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]),c=EG({queries:l.map(h=>{const y=EJ(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 v=h.suggest??{},S=await s.models.executeQueryModel(e,t,n,v.query!==void 0?{queryName:v.query,compactJson:!0,versionId:o,givens:y}:{query:TJ(v.source,v.dimension),compactJson:!0,versionId:o,givens:y});return OJ(S.data.result,v.dimension===void 0?void 0:XI(v.dimension))}}})}),f=C.useMemo(()=>{const h=new Map;return l.forEach((y,v)=>{const S=c[v]?.data;y.name&&S&&h.set(y.name,S)}),h},[l,JSON.stringify(c.map(h=>h.data))]),u=C.useMemo(()=>{const h=new Set;return l.forEach((y,v)=>{y.name&&c[v]?.isError&&h.add(y.name)}),h},[l,c.map(h=>h.isError).join("|")]);return{options:f,isLoading:c.some(h=>h.isLoading),failed:u}}function OJ(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),c=t!==void 0&&Object.prototype.hasOwnProperty.call(s,t)?t:l[0],f=c===void 0?void 0:s[c];if(f==null)continue;const u=String(f);o.has(u)||(o.add(u),r.push(u))}return r}function Dk({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:a,autorun:s,environmentName:l,packageName:c,modelPath:f,versionId:u,documentName:h}){const y=C.useMemo(()=>new Map(e.filter(M=>M.name!==void 0).map(M=>[M.name,M.type])),[e]),v=C.useCallback(M=>{t&&o?.(M,Array.from(y.keys()))},[t,o,y]),S=CJ({declaredTypes:y,startingValues:n,params:r,onParamsChange:t?v:void 0,documentKey:a,autorun:s}),{options:x,isLoading:w,failed:b}=RJ(l,c,f,e,u,{values:S.applied,declaredTypes:y}),{canSelf:T,onSelf:E}=hJ({declaredTypes:y,setGiven:S.setGiven,documentName:h});return{...S,declaredTypes:y,options:x,optionsLoading:w,optionsFailed:b,canSelf:T,onSelf:E,panel:{givens:e,values:S.draft,onChange:S.setGiven,onReset:S.reset,options:x,optionsLoading:w,optionsFailed:b,apply:s?void 0:{onApply:S.apply,pending:S.pending}}}}function ka({error:e,context:t}){const n=e.data?.message||"Unknown Error";return m.jsxs(m.Fragment,{children:[t&&m.jsx(It,{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 Z$=e=>e,MJ=()=>{let e=Z$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Z$}}},ZI=MJ();function Wl(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 St(e){if(typeof e!="string")throw new Error(Wl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function J$(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var eP={exports:{}},g1,tP;function $J(){if(tP)return g1;tP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return g1=e,g1}var y1,nP;function PJ(){if(nP)return y1;nP=1;var e=$J();function t(){}function n(){}return n.resetWarningCache=t,y1=function(){function r(s,l,c,f,u,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},y1}var rP;function DJ(){return rP||(rP=1,eP.exports=PJ()()),eP.exports}var AJ=DJ();const ot=Kl(AJ);function JI(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=JI(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=JI(e))&&(r&&(r+=" "),r+=t);return r}function sn(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let c=0;c<a.length;c+=1){const f=a[c];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}var oP={exports:{}},Ir={};/**
|
|
310
|
-
* @license React
|
|
311
|
-
* react-is.production.js
|
|
312
|
-
*
|
|
313
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
314
|
-
*
|
|
315
|
-
* This source code is licensed under the MIT license found in the
|
|
316
|
-
* LICENSE file in the root directory of this source tree.
|
|
317
|
-
*/var aP;function jJ(){if(aP)return Ir;aP=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"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function S(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 c:case f:case y:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case h:case u:return x;case a:return x;default:return w}}case t:return w}}}return Ir.ContextConsumer=a,Ir.ContextProvider=s,Ir.Element=e,Ir.ForwardRef=l,Ir.Fragment=n,Ir.Lazy=h,Ir.Memo=u,Ir.Portal=t,Ir.Profiler=o,Ir.StrictMode=r,Ir.Suspense=c,Ir.SuspenseList=f,Ir.isContextConsumer=function(x){return S(x)===a},Ir.isContextProvider=function(x){return S(x)===s},Ir.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Ir.isForwardRef=function(x){return S(x)===l},Ir.isFragment=function(x){return S(x)===n},Ir.isLazy=function(x){return S(x)===h},Ir.isMemo=function(x){return S(x)===u},Ir.isPortal=function(x){return S(x)===t},Ir.isProfiler=function(x){return S(x)===o},Ir.isStrictMode=function(x){return S(x)===r},Ir.isSuspense=function(x){return S(x)===c},Ir.isSuspenseList=function(x){return S(x)===f},Ir.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===c||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===u||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===v||x.getModuleId!==void 0)},Ir.typeOf=S,Ir}var iP;function NJ(){return iP||(iP=1,oP.exports=jJ()),oP.exports}var eL=NJ();function Zs(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 tL(e){if(C.isValidElement(e)||eL.isValidElementType(e)||!Zs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=tL(e[n])}),t}function da(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Zs(e)&&Zs(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||eL.isValidElementType(t[o])?r[o]=t[o]:Zs(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Zs(e[o])?r[o]=da(e[o],t[o],n):n.clone?r[o]=Zs(t[o])?tL(t[o]):t[o]:r[o]=t[o]}),r}function Um(e,t){return t?da(e,t,{clone:!1}):e}function sP(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 IJ(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function LJ(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 zJ(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 c=t(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const C0={xs:0,sm:600,md:900,lg:1200,xl:1536},lP={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${C0[e]}px)`},FJ={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:C0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ql(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||lP;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||lP;return Object.keys(t).reduce((a,s)=>{if(IJ(o.keys,s)){const l=LJ(r.containerQueries?r:FJ,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||C0).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 _J(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function cP(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function k0(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 vb(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=k0(e,n)||r,t&&(o=t(o,r,e)),o}function Co(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,f=k0(c,r)||{};return ql(s,l,u=>{let h=vb(f,o,u);return u===h&&typeof u=="string"&&(h=vb(f,o,`${t}${u==="default"?"":St(u)}`,u)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function BJ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const UJ={m:"margin",p:"padding"},VJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},uP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},HJ=BJ(e=>{if(e.length>2)if(uP[e])e=uP[e];else return[e];const[t,n]=e.split(""),r=UJ[t],o=VJ[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Ak=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jk=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ak,...jk];function Ug(e,t,n,r){const o=k0(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 Nk(e){return Ug(e,"spacing",8)}function Vg(e,t){return typeof t=="string"||t==null?t:e(t)}function WJ(e,t){return n=>e.reduce((r,o)=>(r[o]=Vg(t,n),r),{})}function qJ(e,t,n,r){if(!t.includes(n))return null;const o=HJ(n),a=WJ(o,r),s=e[n];return ql(e,s,a)}function nL(e,t){const n=Nk(e.theme);return Object.keys(e).map(r=>qJ(e,t,r,n)).reduce(Um,{})}function co(e){return nL(e,Ak)}co.propTypes={};co.filterProps=Ak;function uo(e){return nL(e,jk)}uo.propTypes={};uo.filterProps=jk;function T0(...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]?Um(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Vi(e){return typeof e!="number"?e:`${e}px solid`}function as(e,t){return Co({prop:e,themeKey:"borders",transform:t})}const YJ=as("border",Vi),GJ=as("borderTop",Vi),KJ=as("borderRight",Vi),QJ=as("borderBottom",Vi),XJ=as("borderLeft",Vi),ZJ=as("borderColor"),JJ=as("borderTopColor"),eee=as("borderRightColor"),tee=as("borderBottomColor"),nee=as("borderLeftColor"),ree=as("outline",Vi),oee=as("outlineColor"),E0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ug(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Vg(t,r)});return ql(e,e.borderRadius,n)}return null};E0.propTypes={};E0.filterProps=["borderRadius"];T0(YJ,GJ,KJ,QJ,XJ,ZJ,JJ,eee,tee,nee,E0,ree,oee);const R0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ug(e.theme,"spacing",8),n=r=>({gap:Vg(t,r)});return ql(e,e.gap,n)}return null};R0.propTypes={};R0.filterProps=["gap"];const O0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ug(e.theme,"spacing",8),n=r=>({columnGap:Vg(t,r)});return ql(e,e.columnGap,n)}return null};O0.propTypes={};O0.filterProps=["columnGap"];const M0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ug(e.theme,"spacing",8),n=r=>({rowGap:Vg(t,r)});return ql(e,e.rowGap,n)}return null};M0.propTypes={};M0.filterProps=["rowGap"];const aee=Co({prop:"gridColumn"}),iee=Co({prop:"gridRow"}),see=Co({prop:"gridAutoFlow"}),lee=Co({prop:"gridAutoColumns"}),cee=Co({prop:"gridAutoRows"}),uee=Co({prop:"gridTemplateColumns"}),dee=Co({prop:"gridTemplateRows"}),fee=Co({prop:"gridTemplateAreas"}),pee=Co({prop:"gridArea"});T0(R0,O0,M0,aee,iee,see,lee,cee,uee,dee,fee,pee);function Zf(e,t){return t==="grey"?t:e}const hee=Co({prop:"color",themeKey:"palette",transform:Zf}),mee=Co({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zf}),gee=Co({prop:"backgroundColor",themeKey:"palette",transform:Zf});T0(hee,mee,gee);function mi(e){return e<=1&&e!==0?`${e*100}%`:e}const yee=Co({prop:"width",transform:mi}),Ik=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||C0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:mi(n)}};return ql(e,e.maxWidth,t)}return null};Ik.filterProps=["maxWidth"];const vee=Co({prop:"minWidth",transform:mi}),bee=Co({prop:"height",transform:mi}),xee=Co({prop:"maxHeight",transform:mi}),See=Co({prop:"minHeight",transform:mi});Co({prop:"size",cssProperty:"width",transform:mi});Co({prop:"size",cssProperty:"height",transform:mi});const wee=Co({prop:"boxSizing"});T0(yee,Ik,vee,bee,xee,See,wee);const Hg={border:{themeKey:"borders",transform:Vi},borderTop:{themeKey:"borders",transform:Vi},borderRight:{themeKey:"borders",transform:Vi},borderBottom:{themeKey:"borders",transform:Vi},borderLeft:{themeKey:"borders",transform:Vi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:E0},color:{themeKey:"palette",transform:Zf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zf},backgroundColor:{themeKey:"palette",transform:Zf},p:{style:uo},pt:{style:uo},pr:{style:uo},pb:{style:uo},pl:{style:uo},px:{style:uo},py:{style:uo},padding:{style:uo},paddingTop:{style:uo},paddingRight:{style:uo},paddingBottom:{style:uo},paddingLeft:{style:uo},paddingX:{style:uo},paddingY:{style:uo},paddingInline:{style:uo},paddingInlineStart:{style:uo},paddingInlineEnd:{style:uo},paddingBlock:{style:uo},paddingBlockStart:{style:uo},paddingBlockEnd:{style:uo},m:{style:co},mt:{style:co},mr:{style:co},mb:{style:co},ml:{style:co},mx:{style:co},my:{style:co},margin:{style:co},marginTop:{style:co},marginRight:{style:co},marginBottom:{style:co},marginLeft:{style:co},marginX:{style:co},marginY:{style:co},marginInline:{style:co},marginInlineStart:{style:co},marginInlineEnd:{style:co},marginBlock:{style:co},marginBlockStart:{style:co},marginBlockEnd:{style:co},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:R0},rowGap:{style:M0},columnGap:{style:O0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mi},maxWidth:{style:Ik},minWidth:{transform:mi},height:{transform:mi},maxHeight:{transform:mi},minHeight:{transform:mi},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 Cee(...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 kee(e,t){return typeof e=="function"?e(t):e}function Tee(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:u,style:h}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=k0(o,f)||{};return h?h(s):ql(s,r,v=>{let S=vb(y,u,v);return v===S&&typeof v=="string"&&(S=vb(y,u,`${n}${v==="default"?"":St(v)}`,v)),c===!1?S:{[c]:S}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??Hg;function l(c){let f=c;if(typeof c=="function")f=c(o);else if(typeof c!="object")return c;if(!f)return null;const u=_J(o.breakpoints),h=Object.keys(u);let y=u;return Object.keys(f).forEach(v=>{const S=kee(f[v],o);if(S!=null)if(typeof S=="object")if(s[v])y=Um(y,e(v,S,o,s));else{const x=ql({theme:o},S,w=>({[v]:w}));Cee(x,S)?y[v]=t({sx:S,theme:o,nested:!0}):y=Um(y,x)}else y=Um(y,e(v,S,o,s))}),!a&&o.modularCssLayers?{"@layer sx":sP(o,cP(h,y))}:sP(o,cP(h,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const hp=Tee();hp.filterProps=["sx"];const Eee=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Hg;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Ree(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Eee(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return Zs(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}function Oee(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Lk(e,t=0,n=1){return Oee(e,t,n)}function Mee(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 Gc(e){if(e.type)return e;if(e.charAt(0)==="#")return Gc(Mee(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Wl(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(Wl(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const $ee=e=>{const t=Gc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Mm=(e,t)=>{try{return $ee(e)}catch{return e}};function $0(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 rL(e){e=Gc(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,u=(f+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),$0({type:l,values:c})}function Ow(e){e=Gc(e);let t=e.type==="hsl"||e.type==="hsla"?Gc(rL(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 Pee(e,t){const n=Ow(e),r=Ow(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function bb(e,t){return e=Gc(e),t=Lk(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$0(e)}function Pu(e,t,n){try{return bb(e,t)}catch{return e}}function P0(e,t){if(e=Gc(e),t=Lk(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 $0(e)}function Or(e,t,n){try{return P0(e,t)}catch{return e}}function D0(e,t){if(e=Gc(e),t=Lk(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 $0(e)}function Mr(e,t,n){try{return D0(e,t)}catch{return e}}function Mw(e,t=.15){return Ow(e)>.5?P0(e,t):D0(e,t)}function bv(e,t,n){try{return Mw(e,t)}catch{return e}}const dg={black:"#000",white:"#fff"},Dee={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"},kf={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Tf={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},rm={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ef={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Rf={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Of={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function oL(){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:dg.white,default:dg.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 aL=oL();function iL(){return{text:{primary:dg.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:dg.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 $w=iL();function dP(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=D0(e.main,o):t==="dark"&&(e.dark=P0(e.main,a)))}function fP(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 Aee(e="light"){return e==="dark"?{main:Ef[200],light:Ef[50],dark:Ef[400]}:{main:Ef[700],light:Ef[400],dark:Ef[800]}}function jee(e="light"){return e==="dark"?{main:kf[200],light:kf[50],dark:kf[400]}:{main:kf[500],light:kf[300],dark:kf[700]}}function Nee(e="light"){return e==="dark"?{main:Tf[500],light:Tf[300],dark:Tf[700]}:{main:Tf[700],light:Tf[400],dark:Tf[800]}}function Iee(e="light"){return e==="dark"?{main:Rf[400],light:Rf[300],dark:Rf[700]}:{main:Rf[700],light:Rf[500],dark:Rf[900]}}function Lee(e="light"){return e==="dark"?{main:Of[400],light:Of[300],dark:Of[700]}:{main:Of[800],light:Of[500],dark:Of[900]}}function zee(e="light"){return e==="dark"?{main:rm[400],light:rm[300],dark:rm[700]}:{main:"#ed6c02",light:rm[500],dark:rm[900]}}function Fee(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function zk(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,s=e.primary||Aee(t),l=e.secondary||jee(t),c=e.error||Nee(t),f=e.info||Iee(t),u=e.success||Lee(t),h=e.warning||zee(t);function y(x){return o?Fee(x):Pee(x,$w.text.primary)>=n?$w.text.primary:aL.text.primary}const v=({color:x,name:w,mainShade:b=500,lightShade:T=300,darkShade:E=700})=>{if(x={...x},!x.main&&x[b]&&(x.main=x[b]),!x.hasOwnProperty("main"))throw new Error(Wl(11,w?` (${w})`:"",b));if(typeof x.main!="string")throw new Error(Wl(12,w?` (${w})`:"",JSON.stringify(x.main)));return o?(fP(o,x,"light",T,r),fP(o,x,"dark",E,r)):(dP(x,"light",T,r),dP(x,"dark",E,r)),x.contrastText||(x.contrastText=y(x.main)),x};let S;return t==="light"?S=oL():t==="dark"&&(S=iL()),da({common:{...dg},mode:t,primary:v({color:s,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:h,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:u,name:"success"}),grey:Dee,contrastThreshold:n,getContrastText:y,augmentColor:v,tonalOffset:r,...S},a)}function _ee(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 Bee={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 Uee(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Vee=/[A-Z]|^ms/g,Hee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sL=function(e){return e.charCodeAt(1)===45},pP=function(e){return e!=null&&typeof e!="boolean"},v1=Uee(function(e){return sL(e)?e:e.replace(Vee,"-$&").toLowerCase()}),hP=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Hee,function(n,r,o){return zc={name:r,styles:o,next:zc},r})}return Bee[e]!==1&&!sL(e)&&typeof t=="number"&&t!==0?t+"px":t};function xb(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 zc={name:o.name,styles:o.styles,next:zc},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)zc={name:s.name,styles:s.styles,next:zc},s=s.next;var l=a.styles+";";return l}return Wee(e,t,n)}}var c=n;return c}function Wee(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xb(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;pP(l)&&(r+=v1(a)+":"+hP(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var c=0;c<s.length;c++)pP(s[c])&&(r+=v1(a)+":"+hP(a,s[c])+";");else{var f=xb(e,t,s);switch(a){case"animation":case"animationName":{r+=v1(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var mP=/label:\s*([^\s;{]+)\s*(;|$)/g,zc;function qee(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="";zc=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=xb(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=xb(n,t,e[l]),r){var c=a;o+=c[l]}mP.lastIndex=0;for(var f="",u;(u=mP.exec(o))!==null;)f+="-"+u[1];var h=_ee(o)+f;return{name:h,styles:o,next:zc}}function Yee(e,t){return rb(e,t)}function Gee(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const gP=[];function ed(e){return gP[0]=e,qee(gP)}const No=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Kee(e){return Object.keys(e).length===0}function lL(e=null){const t=C.useContext(Cp);return!t||Kee(t)?e:t}const Qee=C.createContext(),Es=()=>C.useContext(Qee)??!1;function fg(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 c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const f=c;r[a][f]=fg(s[f],l[f],n)}}}else a==="className"&&n&&t.className?r.className=Lt(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 Xee=C.createContext(void 0);function Zee(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?fg(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?fg(o,r,t.components.mergeClassNameAndStyle):r}function Jee({props:e,name:t}){const n=C.useContext(Xee);return Zee({props:e,name:t,theme:{components:n}})}let yP=0;function ete(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(yP+=1,n(`mui-${yP}`))},[t]),r}const tte={...rp},vP=tte.useId;function Rs(e){if(vP!==void 0){const t=vP();return e??t}return ete(e)}const nte=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 rte(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=nte(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,v){const S=s.indexOf(v);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(S!==-1&&typeof t[s[S]]=="number"?t[s[S]]:v)-r/100}${n})`}function u(y){return s.indexOf(y)+1<s.length?f(y,s[s.indexOf(y)+1]):l(y)}function h(y){const v=s.indexOf(y);return v===0?l(s[1]):v===s.length-1?c(s[v]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:c,between:f,only:u,not:h,unit:n,...o}}const ote={borderRadius:4};function ate(e=8,t=Nk({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 ite(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 Fk(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=rte(n),c=ate(o);let f=da({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...ote,...a}},s);return f=zJ(f),f.applyStyles=ite,f=t.reduce((u,h)=>da(u,h),f),f.unstable_sxConfig={...Hg,...s?.unstable_sxConfig},f.unstable_sx=function(u){return hp({sx:u,theme:this})},f}const ste=Fk();function lte(e=ste){return lL(e)}const bP=(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])})},cte=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...a,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,l],Array.isArray(c)?[...s,l]:s):t([...a,l],c,s))})}r(e)},ute=(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 b1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return cte(e,(l,c,f)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,h=ute(l,c);Object.assign(o,{[u]:h}),bP(a,l,`var(${u})`,f),bP(s,l,`var(${u}, ${h})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function dte(e,t={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...f}=e,{vars:u,css:h,varsWithDefaults:y}=b1(f,t);let v=y;const S={},{[c]:x,...w}=s;if(Object.entries(w||{}).forEach(([T,E])=>{const{vars:M,css:$,varsWithDefaults:D}=b1(E,t);v=da(v,D),S[T]={css:$,vars:M}}),x){const{css:T,vars:E,varsWithDefaults:M}=b1(x,t);v=da(v,M),S[c]={css:T,vars:E}}function b(T,E){let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),T){if(M==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${s[T]?.palette?.mode||T})`]:{":root":E}};if(M)return e.defaultColorScheme===T?`:root, ${M.replace("%s",String(T))}`:M.replace("%s",String(T))}return":root"}return{vars:v,generateThemeVars:()=>{let T={...u};return Object.entries(S).forEach(([,{vars:E}])=>{T=da(T,E)}),T},generateStyleSheets:()=>{const T=[],E=e.defaultColorScheme||"light";function M(I,A){Object.keys(A).length&&T.push(typeof I=="string"?{[I]:{...A}}:I)}M(n(void 0,{...h}),h);const{[E]:$,...D}=S;if($){const{css:I}=$,A=s[E]?.palette?.mode,_=!r&&A?{colorScheme:A,...I}:{...I};M(n(E,{..._}),_)}return Object.entries(D).forEach(([I,{css:A}])=>{const _=s[I]?.palette?.mode,W=!r&&_?{colorScheme:_,...A}:{...A};M(n(I,{...W}),W)}),a&&T.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),T}}}function fte(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 pte(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 hte={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 cn(e,t,n="Mui"){const r=hte[t];return r?`${n}-${r}`:`${ZI.generate(e)}-${t}`}function mte(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function gte(e){return Math.round(e*1e5)/1e5}const xP={textTransform:"uppercase"},SP='"Roboto", "Helvetica", "Arial", sans-serif';function yte(e,t){const{fontFamily:n=SP,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:f,pxToRem:u,...h}=typeof t=="function"?t(e):t,y=r/14,v=u||(w=>`${w/c*y}rem`),S=(w,b,T,E,M)=>({fontFamily:n,fontWeight:w,fontSize:v(b),lineHeight:T,...n===SP?{letterSpacing:`${gte(E/b)}em`}:{},...M,...f}),x={h1:S(o,96,1.167,-1.5),h2:S(o,60,1.2,-.5),h3:S(a,48,1.167,0),h4:S(a,34,1.235,.25),h5:S(a,24,1.334,0),h6:S(s,20,1.6,.15),subtitle1:S(a,16,1.75,.15),subtitle2:S(s,14,1.57,.1),body1:S(a,16,1.5,.15),body2:S(a,14,1.43,.15),button:S(s,14,1.75,.4,xP),caption:S(a,12,1.66,.4),overline:S(a,12,2.66,1,xP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return da({htmlFontSize:c,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},h,{clone:!1})}const vte=.2,bte=.14,xte=.12;function Zr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${vte})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${bte})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xte})`].join(",")}const Ste=["none",Zr(0,2,1,-1,0,1,1,0,0,1,3,0),Zr(0,3,1,-2,0,2,2,0,0,1,5,0),Zr(0,3,3,-2,0,3,4,0,0,1,8,0),Zr(0,2,4,-1,0,4,5,0,0,1,10,0),Zr(0,3,5,-1,0,5,8,0,0,1,14,0),Zr(0,3,5,-1,0,6,10,0,0,1,18,0),Zr(0,4,5,-2,0,7,10,1,0,2,16,1),Zr(0,5,5,-3,0,8,10,1,0,3,14,2),Zr(0,5,6,-3,0,9,12,1,0,3,16,2),Zr(0,6,6,-3,0,10,14,1,0,4,18,3),Zr(0,6,7,-4,0,11,15,1,0,4,20,3),Zr(0,7,8,-4,0,12,17,2,0,5,22,4),Zr(0,7,8,-4,0,13,19,2,0,5,24,4),Zr(0,7,9,-4,0,14,21,2,0,5,26,4),Zr(0,8,9,-5,0,15,22,2,0,6,28,5),Zr(0,8,10,-5,0,16,24,2,0,6,30,5),Zr(0,8,11,-5,0,17,26,2,0,6,32,5),Zr(0,9,11,-5,0,18,28,2,0,7,34,6),Zr(0,9,12,-6,0,19,29,2,0,7,36,6),Zr(0,10,13,-6,0,20,31,3,0,8,38,7),Zr(0,10,13,-6,0,21,33,3,0,8,40,7),Zr(0,10,14,-6,0,22,35,3,0,8,42,7),Zr(0,11,14,-7,0,23,36,3,0,9,44,8),Zr(0,11,15,-7,0,24,38,3,0,9,46,8)],wte={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)"},Cte={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wP(e){return`${Math.round(e)}ms`}function kte(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Tte(e){const t={...wte,...e.easing},n={...Cte,...e.duration};return{getAutoHeightDuration:kte,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=o;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:wP(a)} ${s} ${typeof l=="string"?l:wP(l)}`).join(",")},...e,easing:t,duration:n}}const Ete={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Rte(e){return Zs(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function cL(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];!Rte(l)||s.startsWith("unstable_")?delete r[s]:Zs(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
318
|
-
|
|
319
|
-
const theme = ${JSON.stringify(t,null,2)};
|
|
320
|
-
|
|
321
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
322
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
323
|
-
|
|
324
|
-
export default theme;`}function CP(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ote=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 Mte(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})`:bb(t,Ote(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${CP(n)})`:D0(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${CP(n)})`:P0(t,n)}})}function Pw(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:c,colorSpace:f,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Wl(20));const h=zk({...a,colorSpace:f}),y=Fk(e);let v=da(y,{mixins:mte(y.breakpoints,r),palette:h,shadows:Ste.slice(),typography:yte(h,l),transitions:Tte(s),zIndex:{...Ete}});return v=da(v,u),v=t.reduce((S,x)=>da(S,x),v),v.unstable_sxConfig={...Hg,...u?.unstable_sxConfig},v.unstable_sx=function(S){return hp({sx:S,theme:this})},v.toRuntimeSource=cL,Mte(v),v}function Dw(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 $te=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Dw(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function uL(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function dL(e){return e==="dark"?$te:[]}function Pte(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=zk({...t,colorSpace:o});return{palette:s,opacity:{...uL(s.mode),...n},overlays:r||dL(s.mode),...a}}function Dte(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 Ate=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],jte=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 Ate(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 Nte(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function dt(e,t,n){!e[t]&&n&&(e[t]=n)}function $m(e){return typeof e!="string"||!e.startsWith("hsl")?e:rL(e)}function Ll(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Mm($m(e[t])))}function Ite(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Hs=e=>{try{return e()}catch{}},Lte=(e="mui")=>_j(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]=Pte({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=Pw({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...uL(a),...n?.opacity},overlays:n?.overlays||dL(a)},l}function zte(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=Dte,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...u}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),v=Lte(a),{[y]:S,light:x,dark:w,...b}=n,T={...b};let E=S;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(Wl(21,y));let M;s&&(M="oklch");const $=x1(M,T,E,u,y);x&&!T.light&&x1(M,T,x,void 0,"light"),w&&!T.dark&&x1(M,T,w,void 0,"dark");let D={defaultColorScheme:y,...$,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:f,getCssVar:v,colorSchemes:T,font:{...fte($.typography),...$.font},spacing:Ite(u.spacing)};Object.keys(D.colorSchemes).forEach(V=>{const k=D.colorSchemes[V].palette,z=H=>{const N=H.split("-"),X=N[1],Q=N[2];return v(H,k[X][Q])};k.mode==="light"&&(dt(k.common,"background","#fff"),dt(k.common,"onBackground","#000")),k.mode==="dark"&&(dt(k.common,"background","#000"),dt(k.common,"onBackground","#fff"));function F(H,N,X){if(M){let Q;return H===Pu&&(Q=`transparent ${((1-X)*100).toFixed(0)}%`),H===Or&&(Q=`#000 ${(X*100).toFixed(0)}%`),H===Mr&&(Q=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${M}, ${N}, ${Q})`}return H(N,X)}if(Nte(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){dt(k.Alert,"errorColor",F(Or,k.error.light,.6)),dt(k.Alert,"infoColor",F(Or,k.info.light,.6)),dt(k.Alert,"successColor",F(Or,k.success.light,.6)),dt(k.Alert,"warningColor",F(Or,k.warning.light,.6)),dt(k.Alert,"errorFilledBg",z("palette-error-main")),dt(k.Alert,"infoFilledBg",z("palette-info-main")),dt(k.Alert,"successFilledBg",z("palette-success-main")),dt(k.Alert,"warningFilledBg",z("palette-warning-main")),dt(k.Alert,"errorFilledColor",Hs(()=>k.getContrastText(k.error.main))),dt(k.Alert,"infoFilledColor",Hs(()=>k.getContrastText(k.info.main))),dt(k.Alert,"successFilledColor",Hs(()=>k.getContrastText(k.success.main))),dt(k.Alert,"warningFilledColor",Hs(()=>k.getContrastText(k.warning.main))),dt(k.Alert,"errorStandardBg",F(Mr,k.error.light,.9)),dt(k.Alert,"infoStandardBg",F(Mr,k.info.light,.9)),dt(k.Alert,"successStandardBg",F(Mr,k.success.light,.9)),dt(k.Alert,"warningStandardBg",F(Mr,k.warning.light,.9)),dt(k.Alert,"errorIconColor",z("palette-error-main")),dt(k.Alert,"infoIconColor",z("palette-info-main")),dt(k.Alert,"successIconColor",z("palette-success-main")),dt(k.Alert,"warningIconColor",z("palette-warning-main")),dt(k.AppBar,"defaultBg",z("palette-grey-100")),dt(k.Avatar,"defaultBg",z("palette-grey-400")),dt(k.Button,"inheritContainedBg",z("palette-grey-300")),dt(k.Button,"inheritContainedHoverBg",z("palette-grey-A100")),dt(k.Chip,"defaultBorder",z("palette-grey-400")),dt(k.Chip,"defaultAvatarColor",z("palette-grey-700")),dt(k.Chip,"defaultIconColor",z("palette-grey-700")),dt(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),dt(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),dt(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),dt(k.LinearProgress,"primaryBg",F(Mr,k.primary.main,.62)),dt(k.LinearProgress,"secondaryBg",F(Mr,k.secondary.main,.62)),dt(k.LinearProgress,"errorBg",F(Mr,k.error.main,.62)),dt(k.LinearProgress,"infoBg",F(Mr,k.info.main,.62)),dt(k.LinearProgress,"successBg",F(Mr,k.success.main,.62)),dt(k.LinearProgress,"warningBg",F(Mr,k.warning.main,.62)),dt(k.Skeleton,"bg",M?F(Pu,k.text.primary,.11):`rgba(${z("palette-text-primaryChannel")} / 0.11)`),dt(k.Slider,"primaryTrack",F(Mr,k.primary.main,.62)),dt(k.Slider,"secondaryTrack",F(Mr,k.secondary.main,.62)),dt(k.Slider,"errorTrack",F(Mr,k.error.main,.62)),dt(k.Slider,"infoTrack",F(Mr,k.info.main,.62)),dt(k.Slider,"successTrack",F(Mr,k.success.main,.62)),dt(k.Slider,"warningTrack",F(Mr,k.warning.main,.62));const H=M?F(Or,k.background.default,.6825):bv(k.background.default,.8);dt(k.SnackbarContent,"bg",H),dt(k.SnackbarContent,"color",Hs(()=>M?$w.text.primary:k.getContrastText(H))),dt(k.SpeedDialAction,"fabHoverBg",bv(k.background.paper,.15)),dt(k.StepConnector,"border",z("palette-grey-400")),dt(k.StepContent,"border",z("palette-grey-400")),dt(k.Switch,"defaultColor",z("palette-common-white")),dt(k.Switch,"defaultDisabledColor",z("palette-grey-100")),dt(k.Switch,"primaryDisabledColor",F(Mr,k.primary.main,.62)),dt(k.Switch,"secondaryDisabledColor",F(Mr,k.secondary.main,.62)),dt(k.Switch,"errorDisabledColor",F(Mr,k.error.main,.62)),dt(k.Switch,"infoDisabledColor",F(Mr,k.info.main,.62)),dt(k.Switch,"successDisabledColor",F(Mr,k.success.main,.62)),dt(k.Switch,"warningDisabledColor",F(Mr,k.warning.main,.62)),dt(k.TableCell,"border",F(Mr,F(Pu,k.divider,1),.88)),dt(k.Tooltip,"bg",F(Pu,k.grey[700],.92))}if(k.mode==="dark"){dt(k.Alert,"errorColor",F(Mr,k.error.light,.6)),dt(k.Alert,"infoColor",F(Mr,k.info.light,.6)),dt(k.Alert,"successColor",F(Mr,k.success.light,.6)),dt(k.Alert,"warningColor",F(Mr,k.warning.light,.6)),dt(k.Alert,"errorFilledBg",z("palette-error-dark")),dt(k.Alert,"infoFilledBg",z("palette-info-dark")),dt(k.Alert,"successFilledBg",z("palette-success-dark")),dt(k.Alert,"warningFilledBg",z("palette-warning-dark")),dt(k.Alert,"errorFilledColor",Hs(()=>k.getContrastText(k.error.dark))),dt(k.Alert,"infoFilledColor",Hs(()=>k.getContrastText(k.info.dark))),dt(k.Alert,"successFilledColor",Hs(()=>k.getContrastText(k.success.dark))),dt(k.Alert,"warningFilledColor",Hs(()=>k.getContrastText(k.warning.dark))),dt(k.Alert,"errorStandardBg",F(Or,k.error.light,.9)),dt(k.Alert,"infoStandardBg",F(Or,k.info.light,.9)),dt(k.Alert,"successStandardBg",F(Or,k.success.light,.9)),dt(k.Alert,"warningStandardBg",F(Or,k.warning.light,.9)),dt(k.Alert,"errorIconColor",z("palette-error-main")),dt(k.Alert,"infoIconColor",z("palette-info-main")),dt(k.Alert,"successIconColor",z("palette-success-main")),dt(k.Alert,"warningIconColor",z("palette-warning-main")),dt(k.AppBar,"defaultBg",z("palette-grey-900")),dt(k.AppBar,"darkBg",z("palette-background-paper")),dt(k.AppBar,"darkColor",z("palette-text-primary")),dt(k.Avatar,"defaultBg",z("palette-grey-600")),dt(k.Button,"inheritContainedBg",z("palette-grey-800")),dt(k.Button,"inheritContainedHoverBg",z("palette-grey-700")),dt(k.Chip,"defaultBorder",z("palette-grey-700")),dt(k.Chip,"defaultAvatarColor",z("palette-grey-300")),dt(k.Chip,"defaultIconColor",z("palette-grey-300")),dt(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),dt(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),dt(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),dt(k.LinearProgress,"primaryBg",F(Or,k.primary.main,.5)),dt(k.LinearProgress,"secondaryBg",F(Or,k.secondary.main,.5)),dt(k.LinearProgress,"errorBg",F(Or,k.error.main,.5)),dt(k.LinearProgress,"infoBg",F(Or,k.info.main,.5)),dt(k.LinearProgress,"successBg",F(Or,k.success.main,.5)),dt(k.LinearProgress,"warningBg",F(Or,k.warning.main,.5)),dt(k.Skeleton,"bg",M?F(Pu,k.text.primary,.13):`rgba(${z("palette-text-primaryChannel")} / 0.13)`),dt(k.Slider,"primaryTrack",F(Or,k.primary.main,.5)),dt(k.Slider,"secondaryTrack",F(Or,k.secondary.main,.5)),dt(k.Slider,"errorTrack",F(Or,k.error.main,.5)),dt(k.Slider,"infoTrack",F(Or,k.info.main,.5)),dt(k.Slider,"successTrack",F(Or,k.success.main,.5)),dt(k.Slider,"warningTrack",F(Or,k.warning.main,.5));const H=M?F(Mr,k.background.default,.985):bv(k.background.default,.98);dt(k.SnackbarContent,"bg",H),dt(k.SnackbarContent,"color",Hs(()=>M?aL.text.primary:k.getContrastText(H))),dt(k.SpeedDialAction,"fabHoverBg",bv(k.background.paper,.15)),dt(k.StepConnector,"border",z("palette-grey-600")),dt(k.StepContent,"border",z("palette-grey-600")),dt(k.Switch,"defaultColor",z("palette-grey-300")),dt(k.Switch,"defaultDisabledColor",z("palette-grey-600")),dt(k.Switch,"primaryDisabledColor",F(Or,k.primary.main,.55)),dt(k.Switch,"secondaryDisabledColor",F(Or,k.secondary.main,.55)),dt(k.Switch,"errorDisabledColor",F(Or,k.error.main,.55)),dt(k.Switch,"infoDisabledColor",F(Or,k.info.main,.55)),dt(k.Switch,"successDisabledColor",F(Or,k.success.main,.55)),dt(k.Switch,"warningDisabledColor",F(Or,k.warning.main,.55)),dt(k.TableCell,"border",F(Or,F(Pu,k.divider,1),.68)),dt(k.Tooltip,"bg",F(Pu,k.grey[700],.92))}Ll(k.background,"default"),Ll(k.background,"paper"),Ll(k.common,"background"),Ll(k.common,"onBackground"),Ll(k,"divider"),Object.keys(k).forEach(H=>{const N=k[H];H!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&dt(k[H],"mainChannel",Mm($m(N.main))),N.light&&dt(k[H],"lightChannel",Mm($m(N.light))),N.dark&&dt(k[H],"darkChannel",Mm($m(N.dark))),N.contrastText&&dt(k[H],"contrastTextChannel",Mm($m(N.contrastText))),H==="text"&&(Ll(k[H],"primary"),Ll(k[H],"secondary")),H==="action"&&(N.active&&Ll(k[H],"active"),N.selected&&Ll(k[H],"selected")))})}),D=t.reduce((V,k)=>da(V,k),D);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:jte(D),enableContrastVars:s},{vars:A,generateThemeVars:_,generateStyleSheets:W}=dte(D,I);return D.vars=A,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([V,k])=>{D[V]=k}),D.generateThemeVars=_,D.generateStyleSheets=W,D.generateSpacing=function(){return MC(u.spacing,Nk(this))},D.getColorSchemeSelector=pte(c),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=l,D.unstable_sxConfig={...Hg,...u?.unstable_sxConfig},D.unstable_sx=function(V){return hp({sx:V,theme:this})},D.toRuntimeSource=cL,D}function kP(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:zk({...n===!0?{}:n.palette,mode:t})})}function fL(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",c=o?.[l],f={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Pw(e,...t);let u=n;"palette"in e||f[l]&&(f[l]!==!0?u=f[l].palette:l==="dark"&&(u={mode:"dark"}));const h=Pw({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},kP(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},kP(h,"light",f.light)),h}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),zte({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const A0=fL(),Pp="$$material";function xd(){const e=Tp(A0);return e[Pp]||e}function Fte(e){return m.jsx(DC,{...e,defaultTheme:A0,themeId:Pp})}function _te(e){const{variants:t,...n}=e,r={variants:t,style:ed(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ed(o.style))}),r}const Bte=Fk();function S1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ku(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ute(e){return e?(t,n)=>n[e]:null}function Vte(e,t,n){e.theme=Wte(e.theme)?n:e.theme[t]||e.theme}function Kv(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Kv(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?Ku(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?Ku(ed(s),n):s}return pL(e,r.variants,[o],n)}return r?.isProcessed?n?Ku(ed(r.style),n):r.style:n?Ku(ed(r),n):r}function pL(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?Ku(ed(s.style(o)),r):s.style(o))):n.push(r?Ku(ed(s.style),r):s.style)}return n}function Hte(e={}){const{themeId:t,defaultTheme:n=Bte,rootShouldForwardProp:r=S1,slotShouldForwardProp:o=S1}=e;function a(s){Vte(s,t,n)}return(s,l={})=>{Gee(s,$=>$.filter(D=>D!==hp));const{name:c,slot:f,skipVariantsResolver:u,skipSx:h,overridesResolver:y=Ute(Yte(f)),...v}=l,S=c&&c.startsWith("Mui")||f?"components":"custom",x=u!==void 0?u:f&&f!=="Root"&&f!=="root"||!1,w=h||!1;let b=S1;f==="Root"||f==="root"?b=r:f?b=o:qte(s)&&(b=void 0);const T=Yee(s,{shouldForwardProp:b,label:void 0,...v}),E=$=>{if($.__emotion_real===$)return $;if(typeof $=="function")return function(D){return Kv(D,$,D.theme.modularCssLayers?S:void 0)};if(Zs($)){const D=_te($);return function(I){return D.variants?Kv(I,D,I.theme.modularCssLayers?S:void 0):I.theme.modularCssLayers?Ku(D.style,S):D.style}}return $},M=(...$)=>{const D=[],I=$.map(E),A=[];if(D.push(a),c&&y&&A.push(function(V){const k=V.theme.components?.[c]?.styleOverrides;if(!k)return null;const z={};for(const F in k)z[F]=Kv(V,k[F],V.theme.modularCssLayers?"theme":void 0);return y(V,z)}),c&&!x&&A.push(function(V){const k=V.theme?.components?.[c]?.variants;return k?pL(V,k,[],V.theme.modularCssLayers?"theme":void 0):null}),w||A.push(hp),Array.isArray(I[0])){const V=I.shift(),k=new Array(D.length).fill(""),z=new Array(A.length).fill("");let F;F=[...k,...V,...z],F.raw=[...k,...V.raw,...z],D.unshift(F)}const _=[...D,...I,...A],W=T(..._);return s.muiName&&(W.muiName=s.muiName),W};return T.withConfig&&(M.withConfig=T.withConfig),M}}function Wte(e){for(const t in e)return!1;return!0}function qte(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yte(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function hL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qa=e=>hL(e)&&e!=="classes",Qe=Hte({themeId:Pp,defaultTheme:A0,rootShouldForwardProp:qa});function Gte(e){return function(t){return m.jsx(Fte,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}function Kte(){return Ree}const Wn=zj;function qn(e){return Jee(e)}function tn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=cn(e,o,n)}),r}function Qte(e){return cn("MuiSvgIcon",e)}tn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Xte=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${St(t)}`,`fontSize${St(n)}`]};return sn(o,Qte,r)},Zte=Qe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${St(n.color)}`],t[`fontSize${St(n.fontSize)}`]]}})(Wn(({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}}]}))),Sb=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:f=!1,titleAccess:u,viewBox:h="0 0 24 24",...y}=n,v=C.isValidElement(r)&&r.type==="svg",S={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:h,hasSvgAsChild:v},x={};f||(x.viewBox=h);const w=Xte(S);return m.jsxs(Zte,{as:s,className:Lt(w.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:t,...x,...y,...v&&r.props,ownerState:S,children:[v?r.props.children:r,u?m.jsx("title",{children:u}):null]})});Sb.muiName="SvgIcon";function lr(e,t){function n(r,o){return m.jsx(Sb,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=Sb.muiName,C.memo(C.forwardRef(n))}function mL(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 Qv(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function jo(e){return e&&e.ownerDocument||document}function Yl(e){return jo(e).defaultView||window}function Aw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function yi(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=C.useRef(t!==void 0),[s,l]=C.useState(n),c=a?t:s,f=C.useCallback(u=>{a||l(u)},[]);return[c,f]}function Bt(e){const t=C.useRef(e);return No(()=>{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 Jte(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function gL(e,t){if(!e)return t;function n(s,l){const c={};return Object.keys(l).forEach(f=>{Jte(f,l[f])&&typeof s[f]=="function"&&(c[f]=(...u)=>{s[f](...u),l[f](...u)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,f=Lt(s?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!f&&{className:f},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),a=Lt(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 _k=lr(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));function Wg({label:e,onClick:t,disabled:n}){return m.jsx(Jo,{variant:"contained",color:"primary",startIcon:m.jsx(_k,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function qg({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:a,ariaHasPopup:s}){const l=m.jsx("span",{children:m.jsx(Jo,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":a,"aria-haspopup":s,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?m.jsx(Xi,{title:o,children:l}):l}const mp=lr(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 pa({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:a=!1,actions:s,children:l}){const c=C.useId();return m.jsxs(up,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":c,children:[m.jsxs(fp,{id:c,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(Jr,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:m.jsx(mp,{fontSize:"small"})})]}),m.jsxs(dp,{sx:{px:3,pb:1,pt:1},children:[r&&m.jsx(It,{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(CN,{sx:{px:3,pb:3,pt:2,gap:1},children:s})]})}function hye({left:e,children:t}){const{theme:n}=dl();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 ene=lr(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 tne(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function Bk(e,{enabled:t=!0}={}){const{apiClients:n}=Br();return ho({queryKey:tne(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,...CX})}function yL({onNavigate:e,onSelf:t,selfLabel:n="Filter this view",canSelf:r,onRows:o}){const[a,s]=C.useState(null),l=C.useCallback((S,x)=>S.filter(w=>w===m1?t!==void 0&&(r?.(x)??!0):e!==void 0),[e,t,r]),c=C.useCallback((S,x,w)=>{if(x===m1){t?.(S.given,S.rawValue);return}e?.({dashboard:x,givens:{[S.given]:S.value}},w)},[e,t]),f=C.useCallback(S=>{if(!(!o||S.isHeader||!S.field)&&(S.field.wasDimension?.()??!1)&&w0(S.value)!==void 0)return{field:S.field.name,rawValue:S.value,label:YI(S.value),...S.context===void 0?{}:{context:S.context}}},[o]),u=C.useCallback(S=>{const x=fJ(S),w=f(S),b=x?l(x.to,x.given):[];if(b.length===0){w&&o?.(w);return}if(b.length===1&&x){c(x,b[0],S.event);return}s({...x?{intent:x}:{},destinations:b,event:S.event,top:S.event?.clientY??0,left:S.event?.clientX??0,label:x?.label??w?.label??""})},[c,l,o,f]),h=C.useCallback(S=>l(HI(S),qI(S)).length>0||o!==void 0&&(S.wasDimension?.()??!1),[l,o]),y=C.useMemo(()=>({onClick:u,canDrill:h}),[u,h]),v=C.useCallback(()=>s(null),[]);return{drill:y,drillMenu:m.jsxs(yd,{open:a!==null,onClose:v,anchorReference:"anchorPosition",anchorPosition:{top:a?.top??0,left:a?.left??0},children:[m.jsx(ub,{sx:{lineHeight:"32px"},children:a?`${a.label} →`:""}),Array.from(new Set(a?.destinations??[])).map(S=>m.jsx(Ca,{onClick:()=>{v(),a?.intent&&c(a.intent,S,a.event)},children:S===m1?n:WI(S)},S))]})}}function fa({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(Pg,{size:t,color:n,thickness:r}),e&&m.jsx(It,{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 vL=lr(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 Jf({sx:e,...t}){const{theme:n}=dl();return m.jsx(Jr,{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 nne=new Set(["warn","error"]);function rne(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!nne.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(`
|
|
325
|
-
`)}}const one=new Set(["bar","line","chart","scatter_chart"]),ane=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function mye(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":one.has(e)?"container":"content"}function gye(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&ane.has(e)}function yye(e){return e==="dashboard"?3:2}function ine(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function vye(e,t){const n=ine(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const sne=400,lne=700,cne=600,une=800,dne=400,TP=2e3;function fne(e){return e===void 0?TP:Math.min(e,TP)}function pne({sizing:e,contentHeight:t,maxHeight:n}){return e==="container"?n??dne:t===void 0||t<=0?fne(n):n===void 0?t:Math.min(n,t)}const hne=C.lazy(()=>Bo(()=>import("./RenderedResult-BRgIgxWh.es-DiE7kPNX.js"),[]).then(e=>e.c));function Uk({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o}){const a=C.useRef(null),[s,l]=C.useState(void 0),[c,f]=C.useState(void 0),[u,h]=C.useState(!1),y=rne(r);if(!e)return null;if(n>0&&e.length>n&&!u)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(qZ,{sx:{fontSize:48,color:"#757575"}}),m.jsx(It,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),m.jsx(Jo,{variant:"contained",color:"primary",onClick:()=>h(!0),children:"Proceed"})]});const v=m.jsx(fa,{text:"Loading...",centered:!0,size:32}),S=pne({sizing:s,contentHeight:c,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:v,children:m.jsx(hne,{result:e,height:S,onSizeChange:f,onSizing:l,drill:o})}),y&&m.jsx(Ht,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:m.jsx(Xi,{title:y.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:m.jsx(Jf,{"aria-label":"Render tag warnings",children:m.jsx(vL,{fontSize:"small",color:y.severity==="error"?"error":"warning"})})})})]})}function Vk({state:e,context:t,loadingText:n="Running…",maxHeight:r,maxResultSize:o,drill:a,transform:s}){const{data:l,isSuccess:c,isError:f,error:u}=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(ka,{context:t,error:u})}):c?m.jsx(Uk,{result:y,maxHeight:r,maxResultSize:o,renderLogs:l.data.renderLogs,drill:a}):m.jsx(fa,{text:n})}const mne=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"]),gne={value:`# big_value
|
|
326
|
-
`},yne=/^#\(malloy\)[\s\S]*\bcalculation\b/;function vne(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&yne.test(t.value.trim())):!1}function bne(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(vne))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 xne(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(mne.has(o))return!0}return!1}function Sne(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!bne(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return xne(r)?e:JSON.stringify({...t,annotations:[gne,...n]})}const bL=20,wne={radius:"8px",padding:`${bL}px`};function bye(e,t=wne){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 Cne({borderless:e=!1,sx:t,children:n}){const{theme:r}=dl();return m.jsx(Ha,{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":`${bL}px`},...Array.isArray(t)?t:[t]],children:n})}function kne({title:e,subtitle:t,tooltip:n,action:r}){const{theme:o}=dl();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(It,{variant:"subtitle2",sx:{fontWeight:500,color:o.tileTitle,fontFamily:o.font.family},title:n,children:e}),t!==void 0&&m.jsx(It,{variant:"caption",sx:{display:"block",color:o.tileTitle,fontFamily:o.font.family,opacity:.8},children:t})]}),r]})}function EP(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?WI(t):e}function RP({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:a,label:s,subtitle:l,borderless:c,givens:f,declaredTypes:u,givenNames:h,height:y,maxResultSize:v,drill:S,onExplore:x}){const{theme:w}=dl(),b=Bk({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:a!==void 0?`run: ${a}`:void 0,givens:Bg(f,u,h)});return m.jsxs(Cne,{borderless:c,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(kne,{title:s??EP(a),subtitle:l,tooltip:a,action:x&&m.jsx(Xi,{title:"Explore from here",children:m.jsx(Jr,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${s??EP(a)}`,onClick:x,sx:{mt:-.5,mr:-.5,color:w.tileTitle},children:m.jsx(ene,{fontSize:"small"})})})}),m.jsx(Vk,{state:b,context:a??o??r,maxHeight:y,maxResultSize:v,drill:S,transform:a!==void 0?Sne:void 0})]})}const ko=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},j0=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},Tne=/^(https?|mailto|tel):/i,Ene=/^[a-z][a-z0-9+.-]*:/i;function Rne({href:e,title:t,children:n,context:r}){const o=!!e&&Ene.test(e),a=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!a||!r){const h=o&&!Tne.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}`),c=l.pathname.slice(1)+l.search+l.hash,f=`/${r.environmentName}/${r.packageName}/${c}`,{onNavigate:u}=r;return m.jsx("a",{href:f,title:t,onClick:u?h=>{h.preventDefault(),u(f,h)}:void 0,children:n})}const One={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 Vm({children:e,variant:t="caption",links:n,sx:r}){return m.jsx(Ht,{sx:[One[t],...Array.isArray(r)?r:[r]],children:m.jsx(WZ,{options:{overrides:{a:{component:Rne,props:{context:n}}}},children:e})})}const OP={};function xL(e,t){const n=C.useRef(OP);return n.current===OP&&(n.current=e(t)),n}const Mne=[];function $ne(e){C.useEffect(e,Mne)}class Hk{static create(){return new Hk}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 Wk(){const e=xL(Hk.create).current;return $ne(e.disposeEffect),e}function wb(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 Dp(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}function je(){return je=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},je.apply(null,arguments)}function Bn(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 jw(e,t){return jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},jw(e,t)}function qk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jw(e,t)}function Pne(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Dne(e,t){e.classList?e.classList.add(t):Pne(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function MP(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ane(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=MP(e.className,t):e.setAttribute("class",MP(e.className&&e.className.baseVal||"",t))}const $P={disabled:!1},Cb=un.createContext(null);var SL=function(e){return e.scrollTop},Pm="unmounted",Fu="exited",_u="entering",_f="entered",Nw="exiting",Os=(function(e){qk(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,c;return a.appearStatus=null,r.in?l?(c=Fu,a.appearStatus=_u):c=_f:r.unmountOnExit||r.mountOnEnter?c=Pm:c=Fu,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===Pm?{status:Fu}: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!==_u&&a!==_f&&(o=_u):(a===_u||a===_f)&&(o=Nw)}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===_u){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ic.findDOMNode(this);a&&SL(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fu&&this.setState({status:Pm})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[Ic.findDOMNode(this),s],c=l[0],f=l[1],u=this.getTimeouts(),h=s?u.appear:u.enter;if(!r&&!a||$P.disabled){this.safeSetState({status:_f},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:_u},function(){o.props.onEntering(c,f),o.onTransitionEnd(h,function(){o.safeSetState({status:_f},function(){o.props.onEntered(c,f)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Ic.findDOMNode(this);if(!o||$P.disabled){this.safeSetState({status:Fu},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Nw},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Fu},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:Ic.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],c=l[0],f=l[1];this.props.addEndListener(c,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Pm)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Bn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return un.createElement(Cb.Provider,{value:null},typeof a=="function"?a(r,s):un.cloneElement(un.Children.only(a),s))},t})(un.Component);Os.contextType=Cb;Os.propTypes={};function Mf(){}Os.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mf,onEntering:Mf,onEntered:Mf,onExit:Mf,onExiting:Mf,onExited:Mf};Os.UNMOUNTED=Pm;Os.EXITED=Fu;Os.ENTERING=_u;Os.ENTERED=_f;Os.EXITING=Nw;var jne=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Dne(e,n)})},w1=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Ane(e,n)})},Yk=(function(e){qk(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,c){var f=r.resolveArguments(l,c),u=f[0],h=f[1];r.removeClasses(u,"exit"),r.addClass(u,h?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var f=r.resolveArguments(l,c),u=f[0],h=f[1],y=h?"appear":"enter";r.addClass(u,y,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var f=r.resolveArguments(l,c),u=f[0],h=f[1],y=h?"appear":"enter";r.removeClasses(u,y),r.addClass(u,y,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),f=c[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 c=r.resolveArguments(l),f=c[0];r.addClass(f,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),f=c[0];r.removeClasses(f,"exit"),r.addClass(f,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,f=typeof c=="string",u=f&&c?c+"-":"",h=f?""+u+l:c[l],y=f?h+"-active":c[l+"Active"],v=f?h+"-done":c[l+"Done"];return{baseClassName:h,activeClassName:y,doneClassName:v}},r}var n=t.prototype;return n.addClass=function(r,o,a){var s=this.getClassNames(o)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;o==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&r&&SL(r),s&&(this.appliedClasses[o][a]=s,jne(r,s))},n.removeClasses=function(r,o){var a=this.appliedClasses[o],s=a.base,l=a.active,c=a.done;this.appliedClasses[o]={},s&&w1(r,s),l&&w1(r,l),c&&w1(r,c)},n.render=function(){var r=this.props;r.classNames;var o=Bn(r,["classNames"]);return un.createElement(Os,je({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(un.Component);Yk.defaultProps={classNames:""};Yk.propTypes={};function Nne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gk(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 Ine(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}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 c in t){if(r[c])for(s=0;s<r[c].length;s++){var f=r[c][s];l[r[c][s]]=n(f)}l[c]=n(c)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Qu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Lne(e,t){return Gk(e.children,function(n){return C.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Qu(n,"appear",e),enter:Qu(n,"enter",e),exit:Qu(n,"exit",e)})})}function zne(e,t,n){var r=Gk(e.children),o=Ine(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,c=a in r,f=t[a],u=C.isValidElement(f)&&!f.props.in;c&&(!l||u)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Qu(s,"exit",e),enter:Qu(s,"enter",e)}):!c&&l&&!u?o[a]=C.cloneElement(s,{in:!1}):c&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:Qu(s,"exit",e),enter:Qu(s,"enter",e)}))}}),o}var Fne=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},_ne={component:"div",childFactory:function(e){return e}},Yg=(function(e){qk(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(Nne(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?Lne(r,s):zne(r,a,s),firstRender:!1}},n.handleExited=function(r,o){var a=Gk(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(s){var l=je({},s.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,s=Bn(r,["component","childFactory"]),l=this.state.contextValue,c=Fne(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?un.createElement(Cb.Provider,{value:l},c):un.createElement(Cb.Provider,{value:l},un.createElement(o,s,c))},t})(un.Component);Yg.propTypes={};Yg.defaultProps=_ne;const wL=e=>e.scrollTop;function kb(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 Iw(e){return`scale(${e}, ${e**2})`}const Bne={entering:{opacity:1,transform:Iw(1)},entered:{opacity:1,transform:"none"}},C1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),pg=C.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:f,onExit:u,onExited:h,onExiting:y,style:v,timeout:S="auto",TransitionComponent:x=Os,...w}=e,b=Wk(),T=C.useRef(),E=xd(),M=C.useRef(null),$=mr(M,Dp(o),t),D=z=>F=>{if(z){const H=M.current;F===void 0?z(H):z(H,F)}},I=D(f),A=D((z,F)=>{wL(z);const{duration:H,delay:N,easing:X}=kb({style:v,timeout:S,easing:a},{mode:"enter"});let Q;S==="auto"?(Q=E.transitions.getAutoHeightDuration(z.clientHeight),T.current=Q):Q=H,z.style.transition=[E.transitions.create("opacity",{duration:Q,delay:N}),E.transitions.create("transform",{duration:C1?Q:Q*.666,delay:N,easing:X})].join(","),l&&l(z,F)}),_=D(c),W=D(y),V=D(z=>{const{duration:F,delay:H,easing:N}=kb({style:v,timeout:S,easing:a},{mode:"exit"});let X;S==="auto"?(X=E.transitions.getAutoHeightDuration(z.clientHeight),T.current=X):X=F,z.style.transition=[E.transitions.create("opacity",{duration:X,delay:H}),E.transitions.create("transform",{duration:C1?X:X*.666,delay:C1?H:H||X*.333,easing:N})].join(","),z.style.opacity=0,z.style.transform=Iw(.75),u&&u(z)}),k=D(h);return m.jsx(x,{appear:r,in:s,nodeRef:M,onEnter:A,onEntered:_,onEntering:I,onExit:V,onExited:k,onExiting:W,addEndListener:z=>{S==="auto"&&b.start(T.current||0,z),n&&n(M.current,z)},timeout:S==="auto"?null:S,...w,children:(z,{ownerState:F,...H})=>C.cloneElement(o,{style:{opacity:0,transform:Iw(.75),visibility:z==="exited"&&!s?"hidden":void 0,...Bne[z],...v,...o.props.style},ref:$,...H})})});pg&&(pg.muiSupportAuto=!0);function Une(e){return cn("MuiPaper",e)}tn("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 Vne=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return sn(a,Une,o)},Hne=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}`]]}})(Wn(({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)"}}]}))),Sd=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiPaper"}),r=xd(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...f}=n,u={...n,component:a,elevation:s,square:l,variant:c},h=Vne(u);return m.jsx(Hne,{as:a,ownerState:u,className:Lt(h.root,o),ref:t,...f,style:{...c==="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(${bb("#fff",Dw(s))}, ${bb("#fff",Dw(s))})`}},...f.style}})});function gp(e){return typeof e=="string"}function CL(e,t,n){return e===void 0||gp(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function N0(e,t,n){return typeof e=="function"?e(t,n):e}function PP(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 kL(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const v=Lt(n?.className,a,o?.className,r?.className),S={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return v.length>0&&(x.className=v),Object.keys(S).length>0&&(x.style=S),{props:x,internalRef:void 0}}const s=wb({...o,...r}),l=PP(r),c=PP(o),f=t(s),u=Lt(f?.className,n?.className,a,o?.className,r?.className),h={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...c,...l};return u.length>0&&(y.className=u),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:f.ref}}function sr(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:f,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,v=u[e]||r,S=N0(h[e],o),{props:{component:x,...w},internalRef:b}=kL({className:n,...c,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:S}),T=mr(b,S?.ref,t.ref),E=e==="root"?x||f:x,M=CL(v,{...e==="root"&&!f&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...w,...E&&!l&&{as:E},...E&&l&&{component:E},ref:T},o);return[v,M]}function TL(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:fg(t.components[n].defaultProps,r)}function Wne({props:e,name:t,defaultTheme:n,themeId:r}){let o=lte(n);return o=o[r]||o,TL({theme:o,name:t,props:e})}function qr({props:e,name:t}){return Wne({props:e,name:t,defaultTheme:A0,themeId:Pp})}const EL=ot.oneOfType([ot.func,ot.object]);function DP(e){try{return e.matches(":focus-visible")}catch{}return!1}class Tb{static create(){return new Tb}static use(){const t=xL(Tb.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=Yne(),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 qne(){return Tb.use()}function Yne(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Gne(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:f}=e,[u,h]=C.useState(!1),y=Lt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},S=Lt(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&h(!0),C.useEffect(()=>{if(!l&&c!=null){const x=setTimeout(c,f);return()=>{clearTimeout(x)}}},[c,l,f]),m.jsx("span",{className:y,style:v,children:m.jsx("span",{className:S})})}const Bi=tn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Lw=550,Kne=80,Qne=Si`
|
|
327
|
-
0% {
|
|
328
|
-
transform: scale(0);
|
|
329
|
-
opacity: 0.1;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
100% {
|
|
333
|
-
transform: scale(1);
|
|
334
|
-
opacity: 0.3;
|
|
335
|
-
}
|
|
336
|
-
`,Xne=Si`
|
|
337
|
-
0% {
|
|
338
|
-
opacity: 1;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
100% {
|
|
342
|
-
opacity: 0;
|
|
343
|
-
}
|
|
344
|
-
`,Zne=Si`
|
|
345
|
-
0% {
|
|
346
|
-
transform: scale(1);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
50% {
|
|
350
|
-
transform: scale(0.92);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
100% {
|
|
354
|
-
transform: scale(1);
|
|
355
|
-
}
|
|
356
|
-
`,Jne=Qe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ere=Qe(Gne,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
357
|
-
opacity: 0;
|
|
358
|
-
position: absolute;
|
|
359
|
-
|
|
360
|
-
&.${Bi.rippleVisible} {
|
|
361
|
-
opacity: 0.3;
|
|
362
|
-
transform: scale(1);
|
|
363
|
-
animation-name: ${Qne};
|
|
364
|
-
animation-duration: ${Lw}ms;
|
|
365
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
&.${Bi.ripplePulsate} {
|
|
369
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
& .${Bi.child} {
|
|
373
|
-
opacity: 1;
|
|
374
|
-
display: block;
|
|
375
|
-
width: 100%;
|
|
376
|
-
height: 100%;
|
|
377
|
-
border-radius: 50%;
|
|
378
|
-
background-color: currentColor;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
& .${Bi.childLeaving} {
|
|
382
|
-
opacity: 0;
|
|
383
|
-
animation-name: ${Xne};
|
|
384
|
-
animation-duration: ${Lw}ms;
|
|
385
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
& .${Bi.childPulsate} {
|
|
389
|
-
position: absolute;
|
|
390
|
-
/* @noflip */
|
|
391
|
-
left: 0px;
|
|
392
|
-
top: 0;
|
|
393
|
-
animation-name: ${Zne};
|
|
394
|
-
animation-duration: 2500ms;
|
|
395
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
396
|
-
animation-iteration-count: infinite;
|
|
397
|
-
animation-delay: 200ms;
|
|
398
|
-
}
|
|
399
|
-
`,tre=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...s}=n,[l,c]=C.useState([]),f=C.useRef(0),u=C.useRef(null);C.useEffect(()=>{u.current&&(u.current(),u.current=null)},[l]);const h=C.useRef(!1),y=Wk(),v=C.useRef(null),S=C.useRef(null),x=C.useCallback(E=>{const{pulsate:M,rippleX:$,rippleY:D,rippleSize:I,cb:A}=E;c(_=>[..._,m.jsx(ere,{classes:{ripple:Lt(o.ripple,Bi.ripple),rippleVisible:Lt(o.rippleVisible,Bi.rippleVisible),ripplePulsate:Lt(o.ripplePulsate,Bi.ripplePulsate),child:Lt(o.child,Bi.child),childLeaving:Lt(o.childLeaving,Bi.childLeaving),childPulsate:Lt(o.childPulsate,Bi.childPulsate)},timeout:Lw,pulsate:M,rippleX:$,rippleY:D,rippleSize:I},f.current)]),f.current+=1,u.current=A},[o]),w=C.useCallback((E={},M={},$=()=>{})=>{const{pulsate:D=!1,center:I=r||M.pulsate,fakeElement:A=!1}=M;if(E?.type==="mousedown"&&h.current){h.current=!1;return}E?.type==="touchstart"&&(h.current=!0);const _=A?null:S.current,W=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,k,z;if(I||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)V=Math.round(W.width/2),k=Math.round(W.height/2);else{const{clientX:F,clientY:H}=E.touches&&E.touches.length>0?E.touches[0]:E;V=Math.round(F-W.left),k=Math.round(H-W.top)}if(I)z=Math.sqrt((2*W.width**2+W.height**2)/3),z%2===0&&(z+=1);else{const F=Math.max(Math.abs((_?_.clientWidth:0)-V),V)*2+2,H=Math.max(Math.abs((_?_.clientHeight:0)-k),k)*2+2;z=Math.sqrt(F**2+H**2)}E?.touches?v.current===null&&(v.current=()=>{x({pulsate:D,rippleX:V,rippleY:k,rippleSize:z,cb:$})},y.start(Kne,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:D,rippleX:V,rippleY:k,rippleSize:z,cb:$})},[r,x,y]),b=C.useCallback(()=>{w({},{pulsate:!0})},[w]),T=C.useCallback((E,M)=>{if(y.clear(),E?.type==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{T(E,M)});return}v.current=null,c($=>$.length>0?$.slice(1):$),u.current=M},[y]);return C.useImperativeHandle(t,()=>({pulsate:b,start:w,stop:T}),[b,w,T]),m.jsx(Jne,{className:Lt(Bi.root,o.root,a),ref:S,...s,children:m.jsx(Yg,{component:null,exit:!0,children:l})})});function nre(e){return cn("MuiButtonBase",e)}const rre=tn("MuiButtonBase",["root","disabled","focusVisible"]),ore=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=sn({root:["root",t&&"disabled",n&&"focusVisible"]},nre,o);return n&&r&&(a.root+=` ${r}`),a},are=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"},[`&.${rre.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dd=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:u=!1,focusRipple:h=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:S,onClick:x,onContextMenu:w,onDragLeave:b,onFocus:T,onFocusVisible:E,onKeyDown:M,onKeyUp:$,onMouseDown:D,onMouseLeave:I,onMouseUp:A,onTouchEnd:_,onTouchMove:W,onTouchStart:V,tabIndex:k=0,TouchRippleProps:z,touchRippleRef:F,type:H,...N}=n,X=C.useRef(null),Q=qne(),te=mr(Q.ref,F),[Z,K]=C.useState(!1);c&&Z&&K(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{K(!0),X.current.focus()}}),[]);const ne=Q.shouldMount&&!f&&!c;C.useEffect(()=>{Z&&h&&!f&&Q.pulsate()},[f,h,Z,Q]);const le=zl(Q,"start",D,u),fe=zl(Q,"stop",w,u),ae=zl(Q,"stop",b,u),se=zl(Q,"stop",A,u),ie=zl(Q,"stop",et=>{Z&&et.preventDefault(),I&&I(et)},u),pe=zl(Q,"start",V,u),me=zl(Q,"stop",_,u),Te=zl(Q,"stop",W,u),Ce=zl(Q,"stop",et=>{DP(et.target)||K(!1),S&&S(et)},!1),ke=Bt(et=>{X.current||(X.current=et.currentTarget),DP(et.target)&&(K(!0),E&&E(et)),T&&T(et)}),ce=()=>{const et=X.current;return l&&l!=="button"&&!(et.tagName==="A"&&et.href)},we=Bt(et=>{h&&!et.repeat&&Z&&et.key===" "&&Q.stop(et,()=>{Q.start(et)}),et.target===et.currentTarget&&ce()&&et.key===" "&&et.preventDefault(),M&&M(et),et.target===et.currentTarget&&ce()&&et.key==="Enter"&&!c&&(et.preventDefault(),x&&x(et))}),Ge=Bt(et=>{h&&et.key===" "&&Z&&!et.defaultPrevented&&Q.stop(et,()=>{Q.pulsate(et)}),$&&$(et),x&&et.target===et.currentTarget&&ce()&&et.key===" "&&!et.defaultPrevented&&x(et)});let Be=l;Be==="button"&&(N.href||N.to)&&(Be=v);const Ae={};Be==="button"?(Ae.type=H===void 0?"button":H,Ae.disabled=c):(!N.href&&!N.to&&(Ae.role="button"),c&&(Ae["aria-disabled"]=c));const oe=mr(t,X),lt={...n,centerRipple:o,component:l,disabled:c,disableRipple:f,disableTouchRipple:u,focusRipple:h,tabIndex:k,focusVisible:Z},Ne=ore(lt);return m.jsxs(are,{as:Be,className:Lt(Ne.root,s),ownerState:lt,onBlur:Ce,onClick:x,onContextMenu:fe,onFocus:ke,onKeyDown:we,onKeyUp:Ge,onMouseDown:le,onMouseLeave:ie,onMouseUp:se,onDragLeave:ae,onTouchEnd:me,onTouchMove:Te,onTouchStart:pe,ref:oe,tabIndex:c?-1:k,type:H,...Ae,...N,children:[a,ne?m.jsx(tre,{ref:te,center:o,...z}):null]})});function zl(e,t,n,r=!1){return Bt(o=>(n&&n(o),r||e[t](o),!0))}function ire(e){return typeof e.main=="string"}function sre(e,t=[]){if(!ire(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Sa(e=[]){return([,t])=>t&&sre(t,e)}function lre(e){return cn("MuiCircularProgress",e)}tn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Mc=44,zw=Si`
|
|
400
|
-
0% {
|
|
401
|
-
transform: rotate(0deg);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
100% {
|
|
405
|
-
transform: rotate(360deg);
|
|
406
|
-
}
|
|
407
|
-
`,Fw=Si`
|
|
408
|
-
0% {
|
|
409
|
-
stroke-dasharray: 1px, 200px;
|
|
410
|
-
stroke-dashoffset: 0;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
50% {
|
|
414
|
-
stroke-dasharray: 100px, 200px;
|
|
415
|
-
stroke-dashoffset: -15px;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
100% {
|
|
419
|
-
stroke-dasharray: 1px, 200px;
|
|
420
|
-
stroke-dashoffset: -126px;
|
|
421
|
-
}
|
|
422
|
-
`,cre=typeof zw!="string"?Kc`
|
|
423
|
-
animation: ${zw} 1.4s linear infinite;
|
|
424
|
-
`:null,ure=typeof Fw!="string"?Kc`
|
|
425
|
-
animation: ${Fw} 1.4s ease-in-out infinite;
|
|
426
|
-
`:null,dre=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${St(r)}`],svg:["svg"],circle:["circle",`circle${St(n)}`,o&&"circleDisableShrink"]};return sn(a,lre,t)},fre=Qe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${St(n.color)}`]]}})(Wn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:cre||{animation:`${zw} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Sa()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),pre=Qe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),hre=Qe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${St(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Wn(({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:ure||{animation:`${Fw} 1.4s ease-in-out infinite`}}]}))),RL=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:f=0,variant:u="indeterminate",...h}=n,y={...n,color:o,disableShrink:a,size:s,thickness:c,value:f,variant:u},v=dre(y),S={},x={},w={};if(u==="determinate"){const b=2*Math.PI*((Mc-c)/2);S.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),S.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,x.transform="rotate(-90deg)"}return m.jsx(fre,{className:Lt(v.root,r),style:{width:s,height:s,...x,...l},ownerState:y,ref:t,role:"progressbar",...w,...h,children:m.jsx(pre,{className:v.svg,ownerState:y,viewBox:`${Mc/2} ${Mc/2} ${Mc} ${Mc}`,children:m.jsx(hre,{className:v.circle,style:S,ownerState:y,cx:Mc,cy:Mc,r:(Mc-c)/2,fill:"none",strokeWidth:c})})})});function mre(e){return cn("MuiButton",e)}const Du=tn("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"]),gre=C.createContext({}),yre=C.createContext(void 0),vre=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:c}=e,f={root:["root",s&&"loading",a,`${a}${St(t)}`,`size${St(o)}`,`${a}Size${St(o)}`,`color${St(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${St(l)}`],startIcon:["icon","startIcon",`iconSize${St(o)}`],endIcon:["icon","endIcon",`iconSize${St(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=sn(f,mre,c);return{...c,...u}},OL=[{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}}}],bre=Qe(dd,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${St(n.color)}`],t[`size${St(n.size)}`],t[`${n.variant}Size${St(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Wn(({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"},[`&.${Du.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]},[`&.${Du.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Du.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)",[`&.${Du.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(Sa()).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"},[`&.${Du.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Du.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}),[`&.${Du.loading}`]:{color:"transparent"}}}]}})),xre=Qe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${St(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}},...OL]})),Sre=Qe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${St(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}},...OL]})),wre=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}}]})),AP=Qe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),mo=C.forwardRef(function(e,t){const n=C.useContext(gre),r=C.useContext(yre),o=fg(n,e),a=qn({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:f,disabled:u=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:S,fullWidth:x=!1,id:w,loading:b=null,loadingIndicator:T,loadingPosition:E="center",size:M="medium",startIcon:$,type:D,variant:I="text",...A}=a,_=Rs(w),W=T??m.jsx(RL,{"aria-labelledby":_,color:"inherit",size:16}),V={...a,color:l,component:c,disabled:u,disableElevation:h,disableFocusRipple:y,fullWidth:x,loading:b,loadingIndicator:W,loadingPosition:E,size:M,type:D,variant:I},k=vre(V),z=($||b&&E==="start")&&m.jsx(xre,{className:k.startIcon,ownerState:V,children:$||m.jsx(AP,{className:k.loadingIconPlaceholder,ownerState:V})}),F=(v||b&&E==="end")&&m.jsx(Sre,{className:k.endIcon,ownerState:V,children:v||m.jsx(AP,{className:k.loadingIconPlaceholder,ownerState:V})}),H=r||"",N=typeof b=="boolean"?m.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:b&&m.jsx(wre,{className:k.loadingIndicator,ownerState:V,children:W})}):null;return m.jsxs(bre,{ownerState:V,className:Lt(n.className,k.root,f,H),component:c,disabled:u||b,focusRipple:!y,focusVisibleClassName:Lt(k.focusVisible,S),ref:t,type:D,id:b?_:w,...A,classes:k,children:[z,E!=="end"&&N,s,E==="end"&&N,F]})});function Cre(e){return cn("MuiIconButton",e)}const jP=tn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),kre=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${St(r)}`,o&&`edge${St(o)}`,`size${St(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return sn(l,Cre,t)},Tre=Qe(dd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${St(n.color)}`],n.edge&&t[`edge${St(n.edge)}`],t[`size${St(n.size)}`]]}})(Wn(({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}}]})),Wn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Sa()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Sa()).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)}}],[`&.${jP.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${jP.loading}`]:{color:"transparent"}}))),Ere=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"}}]})),tu=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:f="medium",id:u,loading:h=null,loadingIndicator:y,...v}=n,S=Rs(u),x=y??m.jsx(RL,{"aria-labelledby":S,color:"inherit",size:16}),w={...n,edge:r,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:x,size:f},b=kre(w);return m.jsxs(Tre,{id:h?S:u,className:Lt(b.root,a),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:t,...v,ownerState:w,children:[typeof h=="boolean"&&m.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:m.jsx(Ere,{className:b.loadingIndicator,ownerState:w,children:h&&x})}),o]})});function xv(e){return parseInt(e,10)||0}const Rre={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ore(e){for(const t in e)return!1;return!0}function NP(e){return Ore(e)||e.outerHeightStyle===0&&!e.overflowing}const Mre=C.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:s,...l}=e,{current:c}=C.useRef(s!=null),f=C.useRef(null),u=mr(t,f),h=C.useRef(null),y=C.useRef(null),v=C.useCallback(()=>{const T=f.current,E=y.current;if(!T||!E)return;const M=Yl(T).getComputedStyle(T);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};E.style.width=M.width,E.value=T.value||e.placeholder||"x",E.value.slice(-1)===`
|
|
427
|
-
`&&(E.value+=" ");const $=M.boxSizing,D=xv(M.paddingBottom)+xv(M.paddingTop),I=xv(M.borderBottomWidth)+xv(M.borderTopWidth),A=E.scrollHeight;E.value="x";const _=E.scrollHeight;let W=A;o&&(W=Math.max(Number(o)*_,W)),r&&(W=Math.min(Number(r)*_,W)),W=Math.max(W,_);const V=W+($==="border-box"?D+I:0),k=Math.abs(W-A)<=1;return{outerHeightStyle:V,overflowing:k}},[r,o,e.placeholder]),S=Bt(()=>{const T=f.current,E=v();if(!T||!E||NP(E))return!1;const M=E.outerHeightStyle;return h.current!=null&&h.current!==M}),x=C.useCallback(()=>{const T=f.current,E=v();if(!T||!E||NP(E))return;const M=E.outerHeightStyle;h.current!==M&&(h.current=M,T.style.height=`${M}px`),T.style.overflow=E.overflowing?"hidden":""},[v]),w=C.useRef(-1);No(()=>{const T=mL(x),E=f?.current;if(!E)return;const M=Yl(E);M.addEventListener("resize",T);let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(()=>{S()&&($.unobserve(E),cancelAnimationFrame(w.current),x(),w.current=requestAnimationFrame(()=>{$.observe(E)}))}),$.observe(E)),()=>{T.clear(),cancelAnimationFrame(w.current),M.removeEventListener("resize",T),$&&$.disconnect()}},[v,x,S]),No(()=>{x()});const b=T=>{c||x();const E=T.target,M=E.value.length,$=E.value.endsWith(`
|
|
428
|
-
`),D=E.selectionStart===M;$&&D&&E.setSelectionRange(M,M),n&&n(T)};return m.jsxs(C.Fragment,{children:[m.jsx("textarea",{value:s,onChange:b,ref:u,rows:o,style:a,...l}),m.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...Rre.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function wd({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const I0=C.createContext(void 0);function Ci(){return C.useContext(I0)}function IP(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Eb(e,t=!1){return e&&(IP(e.value)&&e.value!==""||t&&IP(e.defaultValue)&&e.defaultValue!=="")}function $re(e){return e.startAdornment}function Pre(e){return cn("MuiInputBase",e)}const di=tn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var LP;const L0=(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${St(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},z0=(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]},Dre=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:c,hiddenLabel:f,multiline:u,readOnly:h,size:y,startAdornment:v,type:S}=e,x={root:["root",`color${St(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${St(y)}`,u&&"multiline",v&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",S==="search"&&"inputTypeSearch",u&&"inputMultiline",y==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return sn(x,Pre,t)},F0=Qe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:L0})(Wn(({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",[`&.${di.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%"}}]}))),_0=Qe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:z0})(Wn(({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] + .${di.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},[`&.${di.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"}}]}})),zP=Gte({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Kk=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:s,color:l,components:c={},componentsProps:f={},defaultValue:u,disabled:h,disableInjectingGlobalStyles:y,endAdornment:v,error:S,fullWidth:x=!1,id:w,inputComponent:b="input",inputProps:T={},inputRef:E,margin:M,maxRows:$,minRows:D,multiline:I=!1,name:A,onBlur:_,onChange:W,onClick:V,onFocus:k,onKeyDown:z,onKeyUp:F,placeholder:H,readOnly:N,renderSuffix:X,rows:Q,size:te,slotProps:Z={},slots:K={},startAdornment:ne,type:le="text",value:fe,...ae}=n,se=T.value!=null?T.value:fe,{current:ie}=C.useRef(se!=null),pe=C.useRef(),me=C.useCallback(qe=>{},[]),Te=mr(pe,E,T.ref,me),[Ce,ke]=C.useState(!1),ce=Ci(),we=wd({props:n,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=ce?ce.focused:Ce,C.useEffect(()=>{!ce&&h&&Ce&&(ke(!1),_&&_())},[ce,h,Ce,_]);const Ge=ce&&ce.onFilled,Be=ce&&ce.onEmpty,Ae=C.useCallback(qe=>{Eb(qe)?Ge&&Ge():Be&&Be()},[Ge,Be]);No(()=>{ie&&Ae({value:se})},[se,Ae,ie]);const oe=qe=>{k&&k(qe),T.onFocus&&T.onFocus(qe),ce&&ce.onFocus?ce.onFocus(qe):ke(!0)},lt=qe=>{_&&_(qe),T.onBlur&&T.onBlur(qe),ce&&ce.onBlur?ce.onBlur(qe):ke(!1)},Ne=(qe,...De)=>{if(!ie){const wt=qe.target||pe.current;if(wt==null)throw new Error(Wl(1));Ae({value:wt.value})}T.onChange&&T.onChange(qe,...De),W&&W(qe,...De)};C.useEffect(()=>{Ae(pe.current)},[]);const et=qe=>{pe.current&&qe.currentTarget===qe.target&&pe.current.focus(),V&&V(qe)};let mt=b,Wt=T;I&&mt==="input"&&(Q?Wt={type:void 0,minRows:Q,maxRows:Q,...Wt}:Wt={type:void 0,maxRows:$,minRows:D,...Wt},mt=Mre);const zt=qe=>{Ae(qe.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};C.useEffect(()=>{ce&&ce.setAdornedStart(!!ne)},[ce,ne]);const tt={...n,color:we.color||"primary",disabled:we.disabled,endAdornment:v,error:we.error,focused:we.focused,formControl:ce,fullWidth:x,hiddenLabel:we.hiddenLabel,multiline:I,size:we.size,startAdornment:ne,type:le},Je=Dre(tt),ct=K.root||c.Root||F0,Ie=Z.root||f.root||{},he=K.input||c.Input||_0;return Wt={...Wt,...Z.input??f.input},m.jsxs(C.Fragment,{children:[!y&&typeof zP=="function"&&(LP||(LP=m.jsx(zP,{}))),m.jsxs(ct,{...Ie,ref:t,onClick:et,...ae,...!gp(ct)&&{ownerState:{...tt,...Ie.ownerState}},className:Lt(Je.root,Ie.className,s,N&&"MuiInputBase-readOnly"),children:[ne,m.jsx(I0.Provider,{value:null,children:m.jsx(he,{"aria-invalid":we.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:u,disabled:we.disabled,id:w,onAnimationStart:zt,name:A,placeholder:H,readOnly:N,required:we.required,rows:Q,value:se,onKeyDown:z,onKeyUp:F,type:le,...Wt,...!gp(he)&&{as:mt,ownerState:{...tt,...Wt.ownerState}},ref:Te,className:Lt(Je.input,Wt.className,N&&"MuiInputBase-readOnly"),onBlur:lt,onChange:Ne,onFocus:oe})}),v,X?X({...we,startAdornment:ne}):null]})]})});function Are(e){return cn("MuiInput",e)}const jc={...di,...tn("MuiInput",["root","underline","input"])},jre=e=>{const{classes:t,disableUnderline:n}=e,r=sn({root:["root",!n&&"underline"],input:["input"]},Are,t);return{...t,...r}},Nre=Qe(F0,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...L0(e,t),!n.disableUnderline&&t.underline]}})(Wn(({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"},[`&.${jc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jc.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(.${jc.disabled}, .${jc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${jc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Sa()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),Ire=Qe(_0,{name:"MuiInput",slot:"Input",overridesResolver:z0})({}),Qk=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:f,slots:u={},type:h="text",...y}=n,v=jre(n),S={root:{ownerState:{disableUnderline:r}}},x=f??a?da(f??a,S):S,w=u.root??o.Root??Nre,b=u.input??o.Input??Ire;return m.jsx(Kk,{slots:{root:w,input:b},slotProps:x,fullWidth:s,inputComponent:l,multiline:c,ref:t,type:h,...y,classes:v})});Qk.muiName="Input";function Lre(e){return cn("MuiFilledInput",e)}const fi={...di,...tn("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},zre=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${St(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=sn(c,Lre,t);return{...t,...f}},Fre=Qe(F0,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...L0(e,t),!n.disableUnderline&&t.underline]}})(Wn(({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}},[`&.${fi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${fi.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"},[`&.${fi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fi.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(.${fi.disabled}, .${fi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Sa()).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}}]}})),_re=Qe(_0,{name:"MuiFilledInput",slot:"Input",overridesResolver:z0})(Wn(({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}}]}))),Xk=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:f=!1,slotProps:u,slots:h={},type:y="text",...v}=n,S={...n,disableUnderline:r,fullWidth:s,inputComponent:c,multiline:f,type:y},x=zre(n),w={root:{ownerState:S},input:{ownerState:S}},b=u??a?da(w,u??a):w,T=h.root??o.Root??Fre,E=h.input??o.Input??_re;return m.jsx(Kk,{slots:{root:T,input:E},slotProps:b,fullWidth:s,inputComponent:c,multiline:f,ref:t,type:y,...v,classes:x})});Xk.muiName="Input";var FP;const Bre=Qe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:qa})({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%"}),Ure=Qe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:qa})(Wn(({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 Vre(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",c={...e,notched:a,withLabel:l};return m.jsx(Bre,{"aria-hidden":!0,className:r,ownerState:c,...s,children:m.jsx(Ure,{ownerState:c,children:l?m.jsx("span",{children:o}):FP||(FP=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function Hre(e){return cn("MuiOutlinedInput",e)}const Ii={...di,...tn("MuiOutlinedInput",["root","notchedOutline","input"])},Wre=e=>{const{classes:t}=e,n=sn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Hre,t);return{...t,...n}},qre=Qe(F0,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:L0})(Wn(({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 .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ii.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ii.focused} .${Ii.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Sa()).map(([n])=>({props:{color:n},style:{[`&.${Ii.focused} .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ii.error} .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ii.disabled} .${Ii.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"}}]}})),Yre=Qe(Vre,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Wn(({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}})),Gre=Qe(_0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:z0})(Wn(({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}}]}))),Zk=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:f={},slotProps:u={},type:h="text",...y}=n,v=Wre(n),S=Ci(),x=wd({props:n,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...n,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:S,fullWidth:o,hiddenLabel:x.hiddenLabel,multiline:l,size:x.size,type:h},b=f.root??r.Root??qre,T=f.input??r.Input??Gre,[E,M]=sr("notchedOutline",{elementType:Yre,className:v.notchedOutline,shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{slots:f,slotProps:u},additionalProps:{label:s!=null&&s!==""&&x.required?m.jsxs(C.Fragment,{children:[s," ","*"]}):s}});return m.jsx(Kk,{slots:{root:b,input:T},slotProps:u,renderSuffix:$=>m.jsx(E,{...M,notched:typeof c<"u"?c:!!($.startAdornment||$.filled||$.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:h,...y,classes:{...v,notchedOutline:null}})});Zk.muiName="Input";function Kre(e){return cn("MuiFormLabel",e)}const Hm=tn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Qre=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,c={root:["root",`color${St(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return sn(c,Kre,t)},Xre=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]}})(Wn(({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(Sa()).map(([t])=>({props:{color:t},style:{[`&.${Hm.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Hm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Hm.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Zre=Qe("span",{name:"MuiFormLabel",slot:"Asterisk"})(Wn(({theme:e})=>({[`&.${Hm.error}`]:{color:(e.vars||e).palette.error.main}}))),Jre=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:a,component:s="label",disabled:l,error:c,filled:f,focused:u,required:h,...y}=n,v=Ci(),S=wd({props:n,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),x={...n,color:S.color||"primary",component:s,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},w=Qre(x);return m.jsxs(Xre,{as:s,ownerState:x,className:Lt(w.root,o),ref:t,...y,children:[r,S.required&&m.jsxs(Zre,{ownerState:x,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});function eoe(e){return cn("MuiInputLabel",e)}tn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const toe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,c={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${St(r)}`,s],asterisk:[l&&"asterisk"]},f=sn(c,eoe,t);return{...t,...f}},noe=Qe(Jre,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hm.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]]}})(Wn(({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)"}}]}))),ML=C.forwardRef(function(e,t){const n=qn({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:s,className:l,...c}=n,f=Ci();let u=a;typeof u>"u"&&f&&(u=f.filled||f.focused||f.adornedStart);const h=wd({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),y={...n,disableAnimation:r,formControl:f,shrink:u,size:h.size,variant:h.variant,required:h.required,focused:h.focused},v=toe(y);return m.jsx(noe,{"data-shrink":u,ref:t,className:Lt(v.root,l),...c,ownerState:y,classes:v})});function roe(e){return cn("MuiFormControl",e)}tn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ooe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${St(n)}`,r&&"fullWidth"]};return sn(o,roe,t)},aoe=Qe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${St(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%"}}]}),$L=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:f,fullWidth:u=!1,hiddenLabel:h=!1,margin:y="none",required:v=!1,size:S="medium",variant:x="outlined",...w}=n,b={...n,color:a,component:s,disabled:l,error:c,fullWidth:u,hiddenLabel:h,margin:y,required:v,size:S,variant:x},T=ooe(b),[E,M]=C.useState(()=>{let F=!1;return r&&C.Children.forEach(r,H=>{if(!Qv(H,["Input","Select"]))return;const N=Qv(H,["Select"])?H.props.input:H;N&&$re(N.props)&&(F=!0)}),F}),[$,D]=C.useState(()=>{let F=!1;return r&&C.Children.forEach(r,H=>{Qv(H,["Input","Select"])&&(Eb(H.props,!0)||Eb(H.props.inputProps,!0))&&(F=!0)}),F}),[I,A]=C.useState(!1);l&&I&&A(!1);const _=f!==void 0&&!l?f:I;let W;C.useRef(!1);const V=C.useCallback(()=>{D(!0)},[]),k=C.useCallback(()=>{D(!1)},[]),z=C.useMemo(()=>({adornedStart:E,setAdornedStart:M,color:a,disabled:l,error:c,filled:$,focused:_,fullWidth:u,hiddenLabel:h,size:S,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:k,onFilled:V,registerEffect:W,required:v,variant:x}),[E,a,l,c,$,_,u,h,W,k,V,v,S,x]);return m.jsx(I0.Provider,{value:z,children:m.jsx(aoe,{as:s,ownerState:b,className:Lt(T.root,o),ref:t,...w,children:r})})});function ioe(e){return cn("MuiFormHelperText",e)}const _P=tn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var BP;const soe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:c}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${St(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return sn(f,ioe,t)},loe=Qe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${St(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${_P.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_P.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}}]}))),PL=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:s,error:l,filled:c,focused:f,margin:u,required:h,variant:y,...v}=n,S=Ci(),x=wd({props:n,muiFormControl:S,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 b=soe(w);return m.jsx(loe,{as:a,className:Lt(b.root,o),ref:t,...v,ownerState:w,children:r===" "?BP||(BP=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?{}:N0(n,r),{props:l,internalRef:c}=kL({...a,externalSlotProps:s}),f=mr(c,s?.ref,e.additionalProps?.ref);return CL(t,{...l,ref:f},r)}const Bl=C.createContext({});function coe(e){return cn("MuiList",e)}tn("MuiList",["root","padding","dense","subheader"]);const uoe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return sn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},coe,t)},doe=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}}]}),DL=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...f}=n,u=C.useMemo(()=>({dense:s}),[s]),h={...n,component:a,dense:s,disablePadding:l},y=uoe(h);return m.jsx(Bl.Provider,{value:u,children:m.jsxs(doe,{as:a,className:Lt(y.root,o),ref:t,ownerState:h,...f,children:[c,r]})})});function AL(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function k1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function UP(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function jL(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function om(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!jL(l,a)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const foe=C.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:f,variant:u="selectedMenu",...h}=e,y=C.useRef(null),v=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});No(()=>{r&&y.current.focus()},[r]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:E})=>{const M=!y.current.style.width;if(T.clientHeight<y.current.clientHeight&&M){const $=`${AL(Yl(T))}px`;y.current.style[E==="rtl"?"paddingLeft":"paddingRight"]=$,y.current.style.width=`calc(100% + ${$})`}return y.current}}),[]);const S=T=>{const E=y.current,M=T.key;if(T.ctrlKey||T.metaKey||T.altKey){f&&f(T);return}const $=jo(E).activeElement;if(M==="ArrowDown")T.preventDefault(),om(E,$,c,l,k1);else if(M==="ArrowUp")T.preventDefault(),om(E,$,c,l,UP);else if(M==="Home")T.preventDefault(),om(E,null,c,l,k1);else if(M==="End")T.preventDefault(),om(E,null,c,l,UP);else if(M.length===1){const D=v.current,I=M.toLowerCase(),A=performance.now();D.keys.length>0&&(A-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&I!==D.keys[0]&&(D.repeating=!1)),D.lastTime=A,D.keys.push(I);const _=$&&!D.repeating&&jL($,D);D.previousKeyMatched&&(_||om(E,$,!1,l,k1,D))?T.preventDefault():D.previousKeyMatched=!1}f&&f(T)},x=mr(y,t);let w=-1;C.Children.forEach(a,(T,E)=>{if(!C.isValidElement(T)){w===E&&(w+=1,w>=a.length&&(w=-1));return}T.props.disabled||(u==="selectedMenu"&&T.props.selected||w===-1)&&(w=E),w===E&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const b=C.Children.map(a,(T,E)=>{if(E===w){const M={};return o&&(M.autoFocus=!0),T.props.tabIndex===void 0&&u==="selectedMenu"&&(M.tabIndex=0),C.cloneElement(T,M)}return T});return m.jsx(DL,{role:"menu",ref:x,className:s,onKeyDown:S,tabIndex:r?0:-1,...h,children:b})});function poe(e){const t=jo(e);return t.body===e?Yl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Wm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VP(e){return parseInt(Yl(e).getComputedStyle(e).paddingRight,10)||0}function hoe(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 HP(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),c=!hoe(s);l&&c&&Wm(s,o)})}function T1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function moe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(poe(r)){const a=AL(Yl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${VP(r)+a}px`;const s=jo(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${VP(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=jo(r).body;else{const a=r.parentElement,s=Yl(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 goe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class yoe{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&&Wm(t.modalRef,!1);const o=goe(n);HP(n,t.mount,t.modalRef,o,!0);const a=T1(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=T1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=moe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=T1(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&&Wm(t.modalRef,n),HP(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Wm(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const voe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function boe(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 xoe(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 Soe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||xoe(e))}function woe(e){const t=[],n=[];return Array.from(e.querySelectorAll(voe)).forEach((r,o)=>{const a=boe(r);a===-1||!Soe(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 Coe(){return!0}function NL(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=woe,isEnabled:s=Coe,open:l}=e,c=C.useRef(!1),f=C.useRef(null),u=C.useRef(null),h=C.useRef(null),y=C.useRef(null),v=C.useRef(!1),S=C.useRef(null),x=mr(Dp(t),S),w=C.useRef(null);C.useEffect(()=>{!l||!S.current||(v.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!S.current)return;const E=jo(S.current);return S.current.contains(E.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),v.current&&S.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),C.useEffect(()=>{if(!l||!S.current)return;const E=jo(S.current),M=I=>{w.current=I,!(r||!s()||I.key!=="Tab")&&E.activeElement===S.current&&I.shiftKey&&(c.current=!0,u.current&&u.current.focus())},$=()=>{const I=S.current;if(I===null)return;if(!E.hasFocus()||!s()||c.current){c.current=!1;return}if(I.contains(E.activeElement)||r&&E.activeElement!==f.current&&E.activeElement!==u.current)return;if(E.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!v.current)return;let A=[];if((E.activeElement===f.current||E.activeElement===u.current)&&(A=a(S.current)),A.length>0){const _=!!(w.current?.shiftKey&&w.current?.key==="Tab"),W=A[0],V=A[A.length-1];typeof W!="string"&&typeof V!="string"&&(_?V.focus():W.focus())}else I.focus()};E.addEventListener("focusin",$),E.addEventListener("keydown",M,!0);const D=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(D),E.removeEventListener("focusin",$),E.removeEventListener("keydown",M,!0)}},[n,r,o,s,l,a]);const b=E=>{h.current===null&&(h.current=E.relatedTarget),v.current=!0,y.current=E.target;const M=t.props.onFocus;M&&M(E)},T=E=>{h.current===null&&(h.current=E.relatedTarget),v.current=!0};return m.jsxs(C.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:b}),m.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:u,"data-testid":"sentinelEnd"})]})}function koe(e){return typeof e=="function"?e():e}const IL=C.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=C.useState(null),l=mr(C.isValidElement(n)?Dp(n):null,t);if(No(()=>{o||s(koe(r)||document.body)},[r,o]),No(()=>{if(a&&!o)return Aw(t,a),()=>{Aw(t,null)}},[t,a,o]),o){if(C.isValidElement(n)){const c={ref:l};return C.cloneElement(n,c)}return n}return a&&_b.createPortal(n,a)}),Toe={entering:{opacity:1},entered:{opacity:1}},fd=C.forwardRef(function(e,t){const n=xd(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:f,onEntered:u,onEntering:h,onExit:y,onExited:v,onExiting:S,style:x,timeout:w=r,TransitionComponent:b=Os,...T}=e,E=C.useRef(null),M=mr(E,Dp(s),t),$=k=>z=>{if(k){const F=E.current;z===void 0?k(F):k(F,z)}},D=$(h),I=$((k,z)=>{wL(k);const F=kb({style:x,timeout:w,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",F),k.style.transition=n.transitions.create("opacity",F),f&&f(k,z)}),A=$(u),_=$(S),W=$(k=>{const z=kb({style:x,timeout:w,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),y&&y(k)}),V=$(v);return m.jsx(b,{appear:a,in:c,nodeRef:E,onEnter:I,onEntered:A,onEntering:D,onExit:W,onExited:V,onExiting:_,addEndListener:k=>{o&&o(E.current,k)},timeout:w,...T,children:(k,{ownerState:z,...F})=>C.cloneElement(s,{style:{opacity:0,visibility:k==="exited"&&!c?"hidden":void 0,...Toe[k],...x,...s.props.style},ref:M,...F})})});function Eoe(e){return cn("MuiBackdrop",e)}tn("MuiBackdrop",["root","invisible"]);const Roe=e=>{const{classes:t,invisible:n}=e;return sn({root:["root",n&&"invisible"]},Eoe,t)},Ooe=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"}}]}),LL=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:f={},slotProps:u={},slots:h={},TransitionComponent:y,transitionDuration:v,...S}=n,x={...n,component:a,invisible:s},w=Roe(x),b={transition:y,root:c.Root,...h},T={...f,...u},E={component:a,slots:b,slotProps:T},[M,$]=sr("root",{elementType:Ooe,externalForwardedProps:E,className:Lt(w.root,o),ownerState:x}),[D,I]=sr("transition",{elementType:fd,externalForwardedProps:E,ownerState:x});return m.jsx(D,{in:l,timeout:v,...S,...I,children:m.jsx(M,{"aria-hidden":!0,...$,classes:w,ref:t,children:r})})});function Moe(e){return typeof e=="function"?e():e}function $oe(e){return e?e.props.hasOwnProperty("in"):!1}const WP=()=>{},Sv=new yoe;function Poe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:f,rootRef:u}=e,h=C.useRef({}),y=C.useRef(null),v=C.useRef(null),S=mr(v,u),[x,w]=C.useState(!f),b=$oe(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const E=()=>jo(y.current),M=()=>(h.current.modalRef=v.current,h.current.mount=y.current,h.current),$=()=>{Sv.mount(M(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},D=Bt(()=>{const k=Moe(t)||E().body;Sv.add(M(),k),v.current&&$()}),I=()=>Sv.isTopModal(M()),A=Bt(k=>{y.current=k,k&&(f&&I()?$():v.current&&Wm(v.current,T))}),_=C.useCallback(()=>{Sv.remove(M(),T)},[T]);C.useEffect(()=>()=>{_()},[_]),C.useEffect(()=>{f?D():(!b||!o)&&_()},[f,_,b,o,D]);const W=k=>z=>{k.onKeyDown?.(z),!(z.key!=="Escape"||z.which===229||!I())&&(n||(z.stopPropagation(),c&&c(z,"escapeKeyDown")))},V=k=>z=>{k.onClick?.(z),z.target===z.currentTarget&&c&&c(z,"backdropClick")};return{getRootProps:(k={})=>{const z=wb(e);delete z.onTransitionEnter,delete z.onTransitionExited;const F={...z,...k};return{role:"presentation",...F,onKeyDown:W(F),ref:S}},getBackdropProps:(k={})=>{const z=k;return{"aria-hidden":!0,...z,onClick:V(z),open:f}},getTransitionProps:()=>{const k=()=>{w(!1),a&&a()},z=()=>{w(!0),s&&s(),o&&_()};return{onEnter:J$(k,l?.props.onEnter??WP),onExited:J$(z,l?.props.onExited??WP)}},rootRef:S,portalRef:A,isTopModal:I,exited:x,hasTransition:b}}function Doe(e){return cn("MuiModal",e)}tn("MuiModal",["root","hidden","backdrop"]);const Aoe=e=>{const{open:t,exited:n,classes:r}=e;return sn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Doe,r)},joe=Qe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Wn(({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"}}]}))),Noe=Qe(LL,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),zL=C.forwardRef(function(e,t){const n=qn({name:"MuiModal",props:e}),{BackdropComponent:r=Noe,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:f,component:u,components:h={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:b=!1,disableScrollLock:T=!1,hideBackdrop:E=!1,keepMounted:M=!1,onClose:$,onTransitionEnter:D,onTransitionExited:I,open:A,slotProps:_={},slots:W={},theme:V,...k}=n,z={...n,closeAfterTransition:l,disableAutoFocus:v,disableEnforceFocus:S,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:b,disableScrollLock:T,hideBackdrop:E,keepMounted:M},{getRootProps:F,getBackdropProps:H,getTransitionProps:N,portalRef:X,isTopModal:Q,exited:te,hasTransition:Z}=Poe({...z,rootRef:t}),K={...z,exited:te},ne=Aoe(K),le={};if(c.props.tabIndex===void 0&&(le.tabIndex="-1"),Z){const{onEnter:me,onExited:Te}=N();le.onEnter=me,le.onExited=Te}const fe={slots:{root:h.Root,backdrop:h.Backdrop,...W},slotProps:{...y,..._}},[ae,se]=sr("root",{ref:t,elementType:joe,externalForwardedProps:{...fe,...k,component:u},getSlotProps:F,ownerState:K,className:Lt(s,ne?.root,!K.open&&K.exited&&ne?.hidden)}),[ie,pe]=sr("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:fe,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:me=>H({...me,onClick:Te=>{me?.onClick&&me.onClick(Te)}}),className:Lt(o?.className,ne?.backdrop),ownerState:K});return!M&&!A&&(!Z||te)?null:m.jsx(IL,{ref:X,container:f,disablePortal:w,children:m.jsxs(ae,{...se,children:[!E&&r?m.jsx(ie,{...pe}):null,m.jsx(NL,{disableEnforceFocus:S,disableAutoFocus:v,disableRestoreFocus:b,isEnabled:Q,open:A,children:C.cloneElement(c,le)})]})})});function Ioe(e){return cn("MuiPopover",e)}tn("MuiPopover",["root","paper"]);function qP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function YP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function GP(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function wv(e){return typeof e=="function"?e():e}const Loe=e=>{const{classes:t}=e;return sn({root:["root"],paper:["paper"]},Ioe,t)},zoe=Qe(zL,{name:"MuiPopover",slot:"Root"})({}),FL=Qe(Sd,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Foe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:f,container:u,elevation:h=8,marginThreshold:y=16,open:v,PaperProps:S={},slots:x={},slotProps:w={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:E="auto",TransitionProps:M={},disableScrollLock:$=!1,...D}=n,I=C.useRef(),A={...n,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:y,transformOrigin:b,TransitionComponent:T,transitionDuration:E,TransitionProps:M},_=Loe(A),W=C.useCallback(()=>{if(l==="anchorPosition")return s;const me=wv(o),Te=(me&&me.nodeType===1?me:jo(I.current).body).getBoundingClientRect();return{top:Te.top+qP(Te,a.vertical),left:Te.left+YP(Te,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),V=C.useCallback(me=>({vertical:qP(me,b.vertical),horizontal:YP(me,b.horizontal)}),[b.horizontal,b.vertical]),k=C.useCallback(me=>{const Te={width:me.offsetWidth,height:me.offsetHeight},Ce=V(Te);if(l==="none")return{top:null,left:null,transformOrigin:GP(Ce)};const ke=W();let ce=ke.top-Ce.vertical,we=ke.left-Ce.horizontal;const Ge=ce+Te.height,Be=we+Te.width,Ae=Yl(wv(o)),oe=Ae.innerHeight-y,lt=Ae.innerWidth-y;if(y!==null&&ce<y){const Ne=ce-y;ce-=Ne,Ce.vertical+=Ne}else if(y!==null&&Ge>oe){const Ne=Ge-oe;ce-=Ne,Ce.vertical+=Ne}if(y!==null&&we<y){const Ne=we-y;we-=Ne,Ce.horizontal+=Ne}else if(Be>lt){const Ne=Be-lt;we-=Ne,Ce.horizontal+=Ne}return{top:`${Math.round(ce)}px`,left:`${Math.round(we)}px`,transformOrigin:GP(Ce)}},[o,l,W,V,y]),[z,F]=C.useState(v),H=C.useCallback(()=>{const me=I.current;if(!me)return;const Te=k(me);Te.top!==null&&me.style.setProperty("top",Te.top),Te.left!==null&&(me.style.left=Te.left),me.style.transformOrigin=Te.transformOrigin,F(!0)},[k]);C.useEffect(()=>($&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[o,$,H]);const N=()=>{H()},X=()=>{F(!1)};C.useEffect(()=>{v&&H()}),C.useImperativeHandle(r,()=>v?{updatePosition:()=>{H()}}:null,[v,H]),C.useEffect(()=>{if(!v)return;const me=mL(()=>{H()}),Te=Yl(wv(o));return Te.addEventListener("resize",me),()=>{me.clear(),Te.removeEventListener("resize",me)}},[o,v,H]);let Q=E;const te={slots:{transition:T,...x},slotProps:{transition:M,paper:S,...w}},[Z,K]=sr("transition",{elementType:pg,externalForwardedProps:te,ownerState:A,getSlotProps:me=>({...me,onEntering:(Te,Ce)=>{me.onEntering?.(Te,Ce),N()},onExited:Te=>{me.onExited?.(Te),X()}}),additionalProps:{appear:!0,in:v}});E==="auto"&&!Z.muiSupportAuto&&(Q=void 0);const ne=u||(o?jo(wv(o)).body:void 0),[le,{slots:fe,slotProps:ae,...se}]=sr("root",{ref:t,elementType:zoe,externalForwardedProps:{...te,...D},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:gL(typeof w.backdrop=="function"?w.backdrop(A):w.backdrop,{invisible:!0})},container:ne,open:v},ownerState:A,className:Lt(_.root,f)}),[ie,pe]=sr("paper",{ref:I,className:_.paper,elementType:FL,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:z?void 0:{opacity:0}},ownerState:A});return m.jsx(le,{...se,...!gp(le)&&{slots:fe,slotProps:ae,disableScrollLock:$},children:m.jsx(Z,{...K,timeout:Q,children:m.jsx(ie,{...pe,children:c})})})});function _oe(e){return cn("MuiMenu",e)}tn("MuiMenu",["root","paper","list"]);const Boe={vertical:"top",horizontal:"right"},Uoe={vertical:"top",horizontal:"left"},Voe=e=>{const{classes:t}=e;return sn({root:["root"],paper:["paper"],list:["list"]},_oe,t)},Hoe=Qe(Foe,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Woe=Qe(FL,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qoe=Qe(foe,{name:"MuiMenu",slot:"List"})({outline:0}),Yoe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:f,PaperProps:u={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:v,...S}={},variant:x="selectedMenu",slots:w={},slotProps:b={},...T}=n,E=Es(),M={...n,autoFocus:r,disableAutoFocusItem:s,MenuListProps:l,onEntering:v,PaperProps:u,transitionDuration:y,TransitionProps:S,variant:x},$=Voe(M),D=r&&!s&&f,I=C.useRef(null),A=(Q,te)=>{I.current&&I.current.adjustStyleForScrollbar(Q,{direction:E?"rtl":"ltr"}),v&&v(Q,te)},_=Q=>{Q.key==="Tab"&&(Q.preventDefault(),c&&c(Q,"tabKeyDown"))};let W=-1;C.Children.map(o,(Q,te)=>{C.isValidElement(Q)&&(Q.props.disabled||(x==="selectedMenu"&&Q.props.selected||W===-1)&&(W=te))});const V={slots:w,slotProps:{list:l,transition:S,paper:u,...b}},k=xr({elementType:w.root,externalSlotProps:b.root,ownerState:M,className:[$.root,a]}),[z,F]=sr("paper",{className:$.paper,elementType:Woe,externalForwardedProps:V,shouldForwardComponentProp:!0,ownerState:M}),[H,N]=sr("list",{className:Lt($.list,l.className),elementType:qoe,shouldForwardComponentProp:!0,externalForwardedProps:V,getSlotProps:Q=>({...Q,onKeyDown:te=>{_(te),Q.onKeyDown?.(te)}}),ownerState:M}),X=typeof V.slotProps.transition=="function"?V.slotProps.transition(M):V.slotProps.transition;return m.jsx(Hoe,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Boe:Uoe,slots:{root:w.root,paper:z,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:k,paper:F,backdrop:typeof b.backdrop=="function"?b.backdrop(M):b.backdrop,transition:{...X,onEntering:(...Q)=>{A(...Q),X?.onEntering?.(...Q)}}},open:f,ref:t,transitionDuration:y,ownerState:M,...T,classes:h,children:m.jsx(H,{actions:I,autoFocus:r&&(W===-1||s),autoFocusItem:D,variant:x,...N,children:o})})});function Goe(e){return cn("MuiNativeSelect",e)}const Jk=tn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Koe=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${St(n)}`,a&&"iconOpen",r&&"disabled"]};return sn(l,Goe,t)},_L=Qe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Jk.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}}}]})),Qoe=Qe(_L,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qa,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Jk.multiple}`]:t.multiple}]}})({}),BL=Qe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Jk.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}}]})),Xoe=Qe(BL,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),Zoe=C.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:s,variant:l="standard",...c}=e,f={...e,disabled:r,variant:l,error:o},u=Koe(f);return m.jsxs(C.Fragment,{children:[m.jsx(Qoe,{ownerState:f,className:Lt(u.select,n),disabled:r,ref:s||t,...c}),e.multiple?null:m.jsx(Xoe,{as:a,ownerState:f,className:u.icon})]})});function UL(e){return cn("MuiSelect",e)}const am=tn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var KP;const Joe=Qe(_L,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${am.select}`]:t.select},{[`&.${am.select}`]:t[n.variant]},{[`&.${am.error}`]:t.error},{[`&.${am.multiple}`]:t.multiple}]}})({[`&.${am.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),eae=Qe(BL,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),tae=Qe("input",{shouldForwardProp:e=>hL(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function QP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function nae(e){return e==null||typeof e=="string"&&!e.trim()}const rae=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${St(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return sn(l,UL,t)},oae=C.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:f,disabled:u,displayEmpty:h,error:y=!1,IconComponent:v,inputRef:S,labelId:x,MenuProps:w={},multiple:b,name:T,onBlur:E,onChange:M,onClose:$,onFocus:D,onOpen:I,open:A,readOnly:_,renderValue:W,required:V,SelectDisplayProps:k={},tabIndex:z,type:F,value:H,variant:N="standard",...X}=e,[Q,te]=yi({controlled:H,default:f,name:"Select"}),[Z,K]=yi({controlled:A,default:c,name:"Select"}),ne=C.useRef(null),le=C.useRef(null),[fe,ae]=C.useState(null),{current:se}=C.useRef(A!=null),[ie,pe]=C.useState(),me=mr(t,S),Te=C.useCallback(yt=>{le.current=yt,yt&&ae(yt)},[]),Ce=fe?.parentNode;C.useImperativeHandle(me,()=>({focus:()=>{le.current.focus()},node:ne.current,value:Q}),[Q]),C.useEffect(()=>{c&&Z&&fe&&!se&&(pe(a?null:Ce.clientWidth),le.current.focus())},[fe,a]),C.useEffect(()=>{o&&le.current.focus()},[o]),C.useEffect(()=>{if(!x)return;const yt=jo(le.current).getElementById(x);if(yt){const st=()=>{getSelection().isCollapsed&&le.current.focus()};return yt.addEventListener("click",st),()=>{yt.removeEventListener("click",st)}}},[x]);const ke=(yt,st)=>{yt?I&&I(st):$&&$(st),se||(pe(a?null:Ce.clientWidth),K(yt))},ce=yt=>{yt.button===0&&(yt.preventDefault(),le.current.focus(),ke(!0,yt))},we=yt=>{ke(!1,yt)},Ge=C.Children.toArray(s),Be=yt=>{const st=Ge.find(jt=>jt.props.value===yt.target.value);st!==void 0&&(te(st.props.value),M&&M(yt,st))},Ae=yt=>st=>{let jt;if(st.currentTarget.hasAttribute("tabindex")){if(b){jt=Array.isArray(Q)?Q.slice():[];const qt=Q.indexOf(yt.props.value);qt===-1?jt.push(yt.props.value):jt.splice(qt,1)}else jt=yt.props.value;if(yt.props.onClick&&yt.props.onClick(st),Q!==jt&&(te(jt),M)){const qt=st.nativeEvent||st,mn=new qt.constructor(qt.type,qt);Object.defineProperty(mn,"target",{writable:!0,value:{value:jt,name:T}}),M(mn,yt)}b||ke(!1,st)}},oe=yt=>{_||[" ","ArrowUp","ArrowDown","Enter"].includes(yt.key)&&(yt.preventDefault(),ke(!0,yt))},lt=fe!==null&&Z,Ne=yt=>{!lt&&E&&(Object.defineProperty(yt,"target",{writable:!0,value:{value:Q,name:T}}),E(yt))};delete X["aria-invalid"];let et,mt;const Wt=[];let zt=!1;(Eb({value:Q})||h)&&(W?et=W(Q):zt=!0);const tt=Ge.map(yt=>{if(!C.isValidElement(yt))return null;let st;if(b){if(!Array.isArray(Q))throw new Error(Wl(2));st=Q.some(jt=>QP(jt,yt.props.value)),st&&zt&&Wt.push(yt.props.children)}else st=QP(Q,yt.props.value),st&&zt&&(mt=yt.props.children);return C.cloneElement(yt,{"aria-selected":st?"true":"false",onClick:Ae(yt),onKeyUp:jt=>{jt.key===" "&&jt.preventDefault(),yt.props.onKeyUp&&yt.props.onKeyUp(jt)},role:"option",selected:st,value:void 0,"data-value":yt.props.value})});zt&&(b?Wt.length===0?et=null:et=Wt.reduce((yt,st,jt)=>(yt.push(st),jt<Wt.length-1&&yt.push(", "),yt),[]):et=mt);let Je=ie;!a&&se&&fe&&(Je=Ce.clientWidth);let ct;typeof z<"u"?ct=z:ct=u?null:0;const Ie=k.id||(T?`mui-component-select-${T}`:void 0),he={...e,variant:N,value:Q,open:lt,error:y},qe=rae(he),De={...w.PaperProps,...typeof w.slotProps?.paper=="function"?w.slotProps.paper(he):w.slotProps?.paper},wt={...w.MenuListProps,...typeof w.slotProps?.list=="function"?w.slotProps.list(he):w.slotProps?.list},Ct=Rs();return m.jsxs(C.Fragment,{children:[m.jsx(Joe,{as:"div",ref:Te,tabIndex:ct,role:"combobox","aria-controls":lt?Ct:void 0,"aria-disabled":u?"true":void 0,"aria-expanded":lt?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[x,Ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":V?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:oe,onMouseDown:u||_?null:ce,onBlur:Ne,onFocus:D,...k,ownerState:he,className:Lt(k.className,qe.select,l),id:Ie,children:nae(et)?KP||(KP=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):et}),m.jsx(tae,{"aria-invalid":y,value:Array.isArray(Q)?Q.join(","):Q,name:T,ref:ne,"aria-hidden":!0,onChange:Be,tabIndex:-1,disabled:u,className:qe.nativeInput,autoFocus:o,required:V,...X,ownerState:he}),m.jsx(eae,{as:v,className:qe.icon,ownerState:he}),m.jsx(Yoe,{id:`menu-${T||""}`,anchorEl:Ce,open:lt,onClose:we,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,slotProps:{...w.slotProps,list:{"aria-labelledby":x,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:Ct,...wt},paper:{...De,style:{minWidth:Je,...De!=null?De.style:null}}},children:tt})]})}),VL=lr(m.jsx("path",{d:"M7 10l5 5 5-5z"})),aae=e=>{const{classes:t}=e,n=sn({root:["root"]},UL,t);return{...t,...n}},eT={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>qa(e)&&e!=="variant"},iae=Qe(Qk,eT)(""),sae=Qe(Zk,eT)(""),lae=Qe(Xk,eT)(""),HL=C.forwardRef(function(e,t){const n=qn({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:f=VL,id:u,input:h,inputProps:y,label:v,labelId:S,MenuProps:x,multiple:w=!1,native:b=!1,onClose:T,onOpen:E,open:M,renderValue:$,SelectDisplayProps:D,variant:I="outlined",...A}=n,_=b?Zoe:oae,W=Ci(),V=wd({props:n,muiFormControl:W,states:["variant","error"]}),k=V.variant||I,z={...n,variant:k,classes:a},F=aae(z),{root:H,...N}=F,X=h||{standard:m.jsx(iae,{ownerState:z}),outlined:m.jsx(sae,{label:v,ownerState:z}),filled:m.jsx(lae,{ownerState:z})}[k],Q=mr(t,Dp(X));return m.jsx(C.Fragment,{children:C.cloneElement(X,{inputComponent:_,inputProps:{children:o,error:V.error,IconComponent:f,variant:k,type:void 0,multiple:w,...b?{id:u}:{autoWidth:r,defaultOpen:l,displayEmpty:c,labelId:S,MenuProps:x,onClose:T,onOpen:E,open:M,renderValue:$,SelectDisplayProps:{id:u,...D}},...y,classes:y?da(N,y.classes):N,...h?h.props.inputProps:{}},...(w&&b||c)&&k==="outlined"?{notched:!0}:{},ref:Q,className:Lt(X.props.className,s,F.root),...!h&&{variant:k},...A})})});HL.muiName="Select";function cae(e){return cn("MuiTextField",e)}tn("MuiTextField",["root"]);const uae={standard:Qk,filled:Xk,outlined:Zk},dae=e=>{const{classes:t}=e;return sn({root:["root"]},cae,t)},fae=Qe($L,{name:"MuiTextField",slot:"Root"})({}),hr=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:f=!1,error:u=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:v,id:S,InputLabelProps:x,inputProps:w,InputProps:b,inputRef:T,label:E,maxRows:M,minRows:$,multiline:D=!1,name:I,onBlur:A,onChange:_,onFocus:W,placeholder:V,required:k=!1,rows:z,select:F=!1,SelectProps:H,slots:N={},slotProps:X={},type:Q,value:te,variant:Z="outlined",...K}=n,ne={...n,autoFocus:o,color:l,disabled:f,error:u,fullWidth:y,multiline:D,required:k,select:F,variant:Z},le=dae(ne),fe=Rs(S),ae=v&&fe?`${fe}-helper-text`:void 0,se=E&&fe?`${fe}-label`:void 0,ie=uae[Z],pe={slots:N,slotProps:{input:b,inputLabel:x,htmlInput:w,formHelperText:h,select:H,...X}},me={},Te=pe.slotProps.inputLabel;Z==="outlined"&&(Te&&typeof Te.shrink<"u"&&(me.notched=Te.shrink),me.label=E),F&&((!H||!H.native)&&(me.id=void 0),me["aria-describedby"]=void 0);const[Ce,ke]=sr("root",{elementType:fae,shouldForwardComponentProp:!0,externalForwardedProps:{...pe,...K},ownerState:ne,className:Lt(le.root,s),ref:t,additionalProps:{disabled:f,error:u,fullWidth:y,required:k,color:l,variant:Z}}),[ce,we]=sr("input",{elementType:ie,externalForwardedProps:pe,additionalProps:me,ownerState:ne}),[Ge,Be]=sr("inputLabel",{elementType:ML,externalForwardedProps:pe,ownerState:ne}),[Ae,oe]=sr("htmlInput",{elementType:"input",externalForwardedProps:pe,ownerState:ne}),[lt,Ne]=sr("formHelperText",{elementType:PL,externalForwardedProps:pe,ownerState:ne}),[et,mt]=sr("select",{elementType:HL,externalForwardedProps:pe,ownerState:ne}),Wt=m.jsx(ce,{"aria-describedby":ae,autoComplete:r,autoFocus:o,defaultValue:c,fullWidth:y,multiline:D,name:I,rows:z,maxRows:M,minRows:$,type:Q,value:te,id:fe,inputRef:T,onBlur:A,onChange:_,onFocus:W,placeholder:V,inputProps:oe,slots:{input:N.htmlInput?Ae:void 0},...we});return m.jsxs(Ce,{...ke,children:[E!=null&&E!==""&&m.jsx(Ge,{htmlFor:fe,id:se,...Be,children:E}),F?m.jsx(et,{"aria-describedby":ae,id:fe,labelId:se,value:te,input:Wt,...mt,children:a}):Wt,v&&m.jsx(lt,{id:ae,...Ne,children:v})]})});function pae(e){return cn("MuiTypography",e)}const XP=tn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),hae={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mae=Kte(),gae=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${St(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return sn(l,pae,s)},yae=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${St(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Wn(({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(Sa()).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${St(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}}]}))),ZP={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}=qn({props:e,name:"MuiTypography"}),o=!hae[n],a=mae({...r,...o&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:f=!1,noWrap:u=!1,paragraph:h=!1,variant:y="body1",variantMapping:v=ZP,...S}=a,x={...a,align:s,color:n,className:l,component:c,gutterBottom:f,noWrap:u,paragraph:h,variant:y,variantMapping:v},w=c||(h?"p":v[y]||ZP[y])||"span",b=gae(x);return m.jsx(yae,{as:w,ref:t,className:Lt(b.root,l),...S,ownerState:x,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...S.style}})}),vae=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function JP({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 eD(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function bae(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:c,getOptionLabel:f})=>{let u=s?c.trim():c;n&&(u=u.toLowerCase()),t&&(u=eD(u));const h=u?l.filter(y=>{let v=(a||f)(y);return n&&(v=v.toLowerCase()),t&&(v=eD(v)),o==="start"?v.startsWith(u):v.includes(u)}):l;return typeof r=="number"?h.slice(0,r):h}}const xae=bae(),tD=5,Sae=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),wae=[];function nD(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function Cae(e){const{unstable_isActiveElementInListbox:t=Sae,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:f="useAutocomplete",defaultValue:u=e.multiple?wae:null,disableClearable:h=!1,disableCloseOnSelect:y=!1,disabled:v,disabledItemsFocusable:S=!1,disableListWrap:x=!1,filterOptions:w=xae,filterSelectedOptions:b=!1,freeSolo:T=!1,getOptionDisabled:E,getOptionKey:M,getOptionLabel:$=ue=>ue.label??ue,groupBy:D,handleHomeEndKeys:I=!e.freeSolo,id:A,includeInputInList:_=!1,inputValue:W,isOptionEqualToValue:V=(ue,de)=>ue===de,multiple:k=!1,onChange:z,onClose:F,onHighlightChange:H,onInputChange:N,onOpen:X,open:Q,openOnFocus:te=!1,options:Z,readOnly:K=!1,renderValue:ne,selectOnFocus:le=!e.freeSolo,value:fe}=e,ae=Rs(A);let se=$;se=ue=>{const de=$(ue);return typeof de!="string"?String(de):de};const ie=C.useRef(!1),pe=C.useRef(!0),me=C.useRef(null),Te=C.useRef(null),[Ce,ke]=C.useState(null),[ce,we]=C.useState(-1),Ge=o?0:-1,Be=C.useRef(Ge),Ae=C.useRef(nD(u??fe,k,se)).current,[oe,lt]=yi({controlled:fe,default:u,name:f}),[Ne,et]=yi({controlled:W,default:Ae,name:f,state:"inputValue"}),[mt,Wt]=C.useState(!1),zt=C.useCallback((ue,de,ze)=>{if(!(k?oe.length<de.length:de!==null)&&!l)return;const ft=nD(de,k,se,ne);Ne!==ft&&(et(ft),N&&N(ue,ft,ze))},[se,Ne,k,N,et,l,oe,ne]),[tt,Je]=yi({controlled:Q,default:!1,name:f,state:"open"}),[ct,Ie]=C.useState(!0),he=!k&&oe!=null&&Ne===se(oe),qe=tt&&!K,De=qe?w(Z.filter(ue=>!(b&&(k?oe:[oe]).some(de=>de!==null&&V(ue,de)))),{inputValue:he&&ct?"":Ne,getOptionLabel:se}):[],wt=vae({filteredOptions:De,value:oe,inputValue:Ne});C.useEffect(()=>{const ue=oe!==wt.value;mt&&!ue||T&&!ue||zt(null,oe,"reset")},[oe,zt,mt,wt.value,T]);const Ct=tt&&De.length>0&&!K,yt=Bt(ue=>{if(ue===-1)me.current.focus();else{const de=ne?"data-item-index":"data-tag-index";Ce.querySelector(`[${de}="${ue}"]`).focus()}});C.useEffect(()=>{k&&ce>oe.length-1&&(we(-1),yt(-1))},[oe,k,ce,yt]);function st(ue,de){if(!Te.current||ue<0||ue>=De.length)return-1;let ze=ue;for(;;){const ft=Te.current.querySelector(`[data-option-index="${ze}"]`),Ue=S?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&ft.hasAttribute("tabindex")&&!Ue)return ze;if(de==="next"?ze=(ze+1)%De.length:ze=(ze-1+De.length)%De.length,ze===ue)return-1}}const jt=Bt(({event:ue,index:de,reason:ze})=>{if(Be.current=de,de===-1?me.current.removeAttribute("aria-activedescendant"):me.current.setAttribute("aria-activedescendant",`${ae}-option-${de}`),H&&["mouse","keyboard","touch"].includes(ze)&&H(ue,de===-1?null:De[de],ze),!Te.current)return;const ft=Te.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));let Ue=Te.current;if(Te.current.getAttribute("role")!=="listbox"&&(Ue=Te.current.parentElement.querySelector('[role="listbox"]')),!Ue)return;if(de===-1){Ue.scrollTop=0;return}const Mt=Te.current.querySelector(`[data-option-index="${de}"]`);if(Mt&&(Mt.classList.add(`${n}-focused`),ze==="keyboard"&&Mt.classList.add(`${n}-focusVisible`),Ue.scrollHeight>Ue.clientHeight&&ze!=="mouse"&&ze!=="touch")){const Yt=Mt,nn=Ue.clientHeight+Ue.scrollTop,ye=Yt.offsetTop+Yt.offsetHeight;ye>nn?Ue.scrollTop=ye-Ue.clientHeight:Yt.offsetTop-Yt.offsetHeight*(D?1.3:0)<Ue.scrollTop&&(Ue.scrollTop=Yt.offsetTop-Yt.offsetHeight*(D?1.3:0))}}),qt=Bt(({event:ue,diff:de,direction:ze="next",reason:ft})=>{if(!qe)return;const Ue=st((()=>{const Mt=De.length-1;if(de==="reset")return Ge;if(de==="start")return 0;if(de==="end")return Mt;const Yt=Be.current+de;return Yt<0?Yt===-1&&_?-1:x&&Be.current!==-1||Math.abs(de)>1?0:Mt:Yt>Mt?Yt===Mt+1&&_?-1:x||Math.abs(de)>1?Mt:0:Yt})(),ze);if(jt({index:Ue,reason:ft,event:ue}),r&&de!=="reset")if(Ue===-1)me.current.value=Ne;else{const Mt=se(De[Ue]);me.current.value=Mt,Mt.toLowerCase().indexOf(Ne.toLowerCase())===0&&Ne.length>0&&me.current.setSelectionRange(Ne.length,Mt.length)}}),mn=!JP({array1:wt.filteredOptions,array2:De,parser:se}),$n=()=>{const ue=(de,ze)=>{const ft=de?se(de):"",Ue=ze?se(ze):"";return ft===Ue};if(Be.current!==-1&&!JP({array1:wt.filteredOptions,array2:De,parser:se})&&wt.inputValue===Ne&&(k?oe.length===wt.value.length&&wt.value.every((de,ze)=>se(oe[ze])===se(de)):ue(wt.value,oe))){const de=wt.filteredOptions[Be.current];if(de)return De.findIndex(ze=>se(ze)===se(de))}return-1},_n=C.useCallback(()=>{if(!qe)return;const ue=$n();if(ue!==-1){Be.current=ue;return}const de=k?oe[0]:oe;if(De.length===0||de==null){qt({diff:"reset"});return}if(Te.current){if(de!=null){const ze=De[Be.current];if(k&&ze&&oe.findIndex(Ue=>V(ze,Ue))!==-1)return;const ft=De.findIndex(Ue=>V(Ue,de));ft===-1?qt({diff:"reset"}):jt({index:ft});return}if(Be.current>=De.length-1){jt({index:De.length-1});return}jt({index:Be.current})}},[De.length,k?!1:oe,b,qt,jt,qe,Ne,k]),Un=Bt(ue=>{Aw(Te,ue),ue&&_n()});C.useEffect(()=>{mn&&_n()},[_n,mn]);const Jt=ue=>{tt||(Je(!0),Ie(!0),X&&X(ue))},An=(ue,de)=>{tt&&(Je(!1),F&&F(ue,de))},xe=(ue,de,ze,ft)=>{if(k){if(oe.length===de.length&&oe.every((Ue,Mt)=>Ue===de[Mt]))return}else if(oe===de)return;z&&z(ue,de,ze,ft),lt(de)},Vn=C.useRef(!1),Rn=(ue,de,ze="selectOption",ft="options")=>{let Ue=ze,Mt=de;if(k){Mt=Array.isArray(oe)?oe.slice():[];const Yt=Mt.findIndex(nn=>V(de,nn));Yt===-1?Mt.push(de):ft!=="freeSolo"&&(Mt.splice(Yt,1),Ue="removeOption")}zt(ue,Mt,Ue),xe(ue,Mt,Ue,{option:de}),!y&&(!ue||!ue.ctrlKey&&!ue.metaKey)&&An(ue,Ue),(s===!0||s==="touch"&&Vn.current||s==="mouse"&&!Vn.current)&&me.current.blur()};function en(ue,de){if(ue===-1)return-1;let ze=ue;for(;;){if(de==="next"&&ze===oe.length||de==="previous"&&ze===-1)return-1;const ft=ne?"data-item-index":"data-tag-index",Ue=Ce.querySelector(`[${ft}="${ze}"]`);if(!Ue||!Ue.hasAttribute("tabindex")||Ue.disabled||Ue.getAttribute("aria-disabled")==="true")ze+=de==="next"?1:-1;else return ze}}const $t=(ue,de)=>{if(!k)return;Ne===""&&An(ue,"toggleInput");let ze=ce;ce===-1?Ne===""&&de==="previous"&&(ze=oe.length-1):(ze+=de==="next"?1:-1,ze<0&&(ze=0),ze===oe.length&&(ze=-1)),ze=en(ze,de),we(ze),yt(ze)},zr=ue=>{ie.current=!0,et(""),N&&N(ue,"","clear"),xe(ue,k?[]:null,"clear")},Fn=ue=>de=>{if(ue.onKeyDown&&ue.onKeyDown(de),!de.defaultMuiPrevented&&(ce!==-1&&!["ArrowLeft","ArrowRight"].includes(de.key)&&(we(-1),yt(-1)),de.which!==229))switch(de.key){case"Home":qe&&I&&(de.preventDefault(),qt({diff:"start",direction:"next",reason:"keyboard",event:de}));break;case"End":qe&&I&&(de.preventDefault(),qt({diff:"end",direction:"previous",reason:"keyboard",event:de}));break;case"PageUp":de.preventDefault(),qt({diff:-tD,direction:"previous",reason:"keyboard",event:de}),Jt(de);break;case"PageDown":de.preventDefault(),qt({diff:tD,direction:"next",reason:"keyboard",event:de}),Jt(de);break;case"ArrowDown":de.preventDefault(),qt({diff:1,direction:"next",reason:"keyboard",event:de}),Jt(de);break;case"ArrowUp":de.preventDefault(),qt({diff:-1,direction:"previous",reason:"keyboard",event:de}),Jt(de);break;case"ArrowLeft":!k&&ne?yt(0):$t(de,"previous");break;case"ArrowRight":!k&&ne?yt(-1):$t(de,"next");break;case"Enter":if(Be.current!==-1&&qe){const ze=De[Be.current],ft=E?E(ze):!1;if(de.preventDefault(),ft)return;Rn(de,ze,"selectOption"),r&&me.current.setSelectionRange(me.current.value.length,me.current.value.length)}else T&&Ne!==""&&he===!1&&(k&&de.preventDefault(),Rn(de,Ne,"createOption","freeSolo"));break;case"Escape":qe?(de.preventDefault(),de.stopPropagation(),An(de,"escape")):c&&(Ne!==""||k&&oe.length>0||ne)&&(de.preventDefault(),de.stopPropagation(),zr(de));break;case"Backspace":if(k&&!K&&Ne===""&&oe.length>0){const ze=ce===-1?oe.length-1:ce,ft=oe.slice();ft.splice(ze,1),xe(de,ft,"removeOption",{option:oe[ze]})}!k&&ne&&!K&&(lt(null),yt(-1));break;case"Delete":if(k&&!K&&Ne===""&&oe.length>0&&ce!==-1){const ze=ce,ft=oe.slice();ft.splice(ze,1),xe(de,ft,"removeOption",{option:oe[ze]})}!k&&ne&&!K&&(lt(null),yt(-1));break}},on=ue=>{Wt(!0),te&&!ie.current&&Jt(ue)},Ln=ue=>{if(t(Te)){me.current.focus();return}Wt(!1),pe.current=!0,ie.current=!1,a&&Be.current!==-1&&qe?Rn(ue,De[Be.current],"blur"):a&&T&&Ne!==""?Rn(ue,Ne,"blur","freeSolo"):l&&zt(ue,oe,"blur"),An(ue,"blur")},ge=ue=>{const de=ue.target.value;Ne!==de&&(et(de),Ie(!1),N&&N(ue,de,"input")),de===""?!h&&!k&&xe(ue,null,"clear"):Jt(ue)},Ee=ue=>{const de=Number(ue.currentTarget.getAttribute("data-option-index"));Be.current!==de&&jt({event:ue,index:de,reason:"mouse"})},Le=ue=>{jt({event:ue,index:Number(ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Vn.current=!0},Ve=ue=>{const de=Number(ue.currentTarget.getAttribute("data-option-index"));Rn(ue,De[de],"selectOption"),Vn.current=!1},rt=ue=>de=>{const ze=oe.slice();ze.splice(ue,1),xe(de,ze,"removeOption",{option:oe[ue]})},kt=ue=>{xe(ue,null,"removeOption",{option:oe})},bt=ue=>{tt?An(ue,"toggleInput"):Jt(ue)},Tt=ue=>{ue.currentTarget.contains(ue.target)&&ue.target.getAttribute("id")!==ae&&ue.preventDefault()},Pt=ue=>{ue.currentTarget.contains(ue.target)&&(me.current.focus(),le&&pe.current&&me.current.selectionEnd-me.current.selectionStart===0&&me.current.select(),pe.current=!1)},Kt=ue=>{!v&&(Ne===""||!tt)&&bt(ue)};let Dt=T&&Ne.length>0;Dt=Dt||(k?oe.length>0:oe!==null);let Ft=De;return D&&(Ft=De.reduce((ue,de,ze)=>{const ft=D(de);return ue.length>0&&ue[ue.length-1].group===ft?ue[ue.length-1].options.push(de):ue.push({key:ze,index:ze,group:ft,options:[de]}),ue},[])),v&&mt&&Ln(),{getRootProps:(ue={})=>({...ue,onKeyDown:Fn(ue),onMouseDown:Tt,onClick:Pt}),getInputLabelProps:()=>({id:`${ae}-label`,htmlFor:ae}),getInputProps:()=>({id:ae,value:Ne,onBlur:Ln,onFocus:on,onChange:ge,onMouseDown:Kt,"aria-activedescendant":qe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ct?`${ae}-listbox`:void 0,"aria-expanded":Ct,autoComplete:"off",ref:me,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:zr}),getItemProps:({index:ue=0}={})=>({...k&&{key:ue},...ne?{"data-item-index":ue}:{"data-tag-index":ue},tabIndex:-1,...!K&&{onDelete:k?rt(ue):kt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:bt}),getTagProps:({index:ue})=>({key:ue,"data-tag-index":ue,tabIndex:-1,...!K&&{onDelete:rt(ue)}}),getListboxProps:()=>({role:"listbox",id:`${ae}-listbox`,"aria-labelledby":`${ae}-label`,ref:Un,onMouseDown:ue=>{ue.preventDefault()}}),getOptionProps:({index:ue,option:de})=>{const ze=(k?oe:[oe]).some(Ue=>Ue!=null&&V(de,Ue)),ft=E?E(de):!1;return{key:M?.(de)??se(de),tabIndex:-1,role:"option",id:`${ae}-option-${ue}`,onMouseMove:Ee,onClick:Ve,onTouchStart:Le,"data-option-index":ue,"aria-disabled":ft,"aria-selected":ze}},id:ae,inputValue:Ne,value:oe,dirty:Dt,expanded:qe&&Ce,popupOpen:qe,focused:mt||ce!==-1,anchorEl:Ce,setAnchorEl:ke,focusedItem:ce,focusedTag:ce,groupedOptions:Ft}}var _a="top",Zi="bottom",Ji="right",Ba="left",tT="auto",Gg=[_a,Zi,Ji,Ba],yp="start",hg="end",kae="clippingParents",WL="viewport",im="popper",Tae="reference",rD=Gg.reduce(function(e,t){return e.concat([t+"-"+yp,t+"-"+hg])},[]),qL=[].concat(Gg,[tT]).reduce(function(e,t){return e.concat([t,t+"-"+yp,t+"-"+hg])},[]),Eae="beforeRead",Rae="read",Oae="afterRead",Mae="beforeMain",$ae="main",Pae="afterMain",Dae="beforeWrite",Aae="write",jae="afterWrite",Nae=[Eae,Rae,Oae,Mae,$ae,Pae,Dae,Aae,jae];function il(e){return e?(e.nodeName||"").toLowerCase():null}function bi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pd(e){var t=bi(e).Element;return e instanceof t||e instanceof Element}function Yi(e){var t=bi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nT(e){if(typeof ShadowRoot>"u")return!1;var t=bi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Iae(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Yi(a)||!il(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 Lae(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(c,f){return c[f]="",c},{});!Yi(o)||!il(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const zae={name:"applyStyles",enabled:!0,phase:"write",fn:Iae,effect:Lae,requires:["computeStyles"]};function rl(e){return e.split("-")[0]}var td=Math.max,Rb=Math.min,vp=Math.round;function _w(){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 YL(){return!/^((?!chrome|android).)*safari/i.test(_w())}function bp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Yi(e)&&(o=e.offsetWidth>0&&vp(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&vp(r.height)/e.offsetHeight||1);var s=pd(e)?bi(e):window,l=s.visualViewport,c=!YL()&&n,f=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/a,h=r.width/o,y=r.height/a;return{width:h,height:y,top:u,right:f+h,bottom:u+y,left:f,x:f,y:u}}function rT(e){var t=bp(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 GL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gl(e){return bi(e).getComputedStyle(e)}function Fae(e){return["table","td","th"].indexOf(il(e))>=0}function nu(e){return((pd(e)?e.ownerDocument:e.document)||window.document).documentElement}function B0(e){return il(e)==="html"?e:e.assignedSlot||e.parentNode||(nT(e)?e.host:null)||nu(e)}function oD(e){return!Yi(e)||Gl(e).position==="fixed"?null:e.offsetParent}function _ae(e){var t=/firefox/i.test(_w()),n=/Trident/i.test(_w());if(n&&Yi(e)){var r=Gl(e);if(r.position==="fixed")return null}var o=B0(e);for(nT(o)&&(o=o.host);Yi(o)&&["html","body"].indexOf(il(o))<0;){var a=Gl(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 Kg(e){for(var t=bi(e),n=oD(e);n&&Fae(n)&&Gl(n).position==="static";)n=oD(n);return n&&(il(n)==="html"||il(n)==="body"&&Gl(n).position==="static")?t:n||_ae(e)||t}function oT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qm(e,t,n){return td(e,Rb(t,n))}function Bae(e,t,n){var r=qm(e,t,n);return r>n?n:r}function KL(){return{top:0,right:0,bottom:0,left:0}}function QL(e){return Object.assign({},KL(),e)}function XL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Uae=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,QL(typeof e!="number"?e:XL(e,Gg))};function Vae(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=rl(n.placement),c=oT(l),f=[Ba,Ji].indexOf(l)>=0,u=f?"height":"width";if(!(!a||!s)){var h=Uae(o.padding,n),y=rT(a),v=c==="y"?_a:Ba,S=c==="y"?Zi:Ji,x=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],w=s[c]-n.rects.reference[c],b=Kg(a),T=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,E=x/2-w/2,M=h[v],$=T-y[u]-h[S],D=T/2-y[u]/2+E,I=qm(M,D,$),A=c;n.modifiersData[r]=(t={},t[A]=I,t.centerOffset=I-D,t)}}function Hae(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)||GL(t.elements.popper,o)&&(t.elements.arrow=o))}const Wae={name:"arrow",enabled:!0,phase:"main",fn:Vae,effect:Hae,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xp(e){return e.split("-")[1]}var qae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yae(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:vp(n*o)/o||0,y:vp(r*o)/o||0}}function aD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,h=e.isFixed,y=s.x,v=y===void 0?0:y,S=s.y,x=S===void 0?0:S,w=typeof u=="function"?u({x:v,y:x}):{x:v,y:x};v=w.x,x=w.y;var b=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),E=Ba,M=_a,$=window;if(f){var D=Kg(n),I="clientHeight",A="clientWidth";if(D===bi(n)&&(D=nu(n),Gl(D).position!=="static"&&l==="absolute"&&(I="scrollHeight",A="scrollWidth")),D=D,o===_a||(o===Ba||o===Ji)&&a===hg){M=Zi;var _=h&&D===$&&$.visualViewport?$.visualViewport.height:D[I];x-=_-r.height,x*=c?1:-1}if(o===Ba||(o===_a||o===Zi)&&a===hg){E=Ji;var W=h&&D===$&&$.visualViewport?$.visualViewport.width:D[A];v-=W-r.width,v*=c?1:-1}}var V=Object.assign({position:l},f&&qae),k=u===!0?Yae({x:v,y:x},bi(n)):{x:v,y:x};if(v=k.x,x=k.y,c){var z;return Object.assign({},V,(z={},z[M]=T?"0":"",z[E]=b?"0":"",z.transform=($.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",z))}return Object.assign({},V,(t={},t[M]=T?x+"px":"",t[E]=b?v+"px":"",t.transform="",t))}function Gae(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,c=l===void 0?!0:l,f={placement:rl(t.placement),variation:xp(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,aD(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,aD(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Kae={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gae,data:{}};var Cv={passive:!0};function Qae(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,c=bi(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(u){u.addEventListener("scroll",n.update,Cv)}),l&&c.addEventListener("resize",n.update,Cv),function(){a&&f.forEach(function(u){u.removeEventListener("scroll",n.update,Cv)}),l&&c.removeEventListener("resize",n.update,Cv)}}const Xae={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qae,data:{}};var Zae={left:"right",right:"left",bottom:"top",top:"bottom"};function Xv(e){return e.replace(/left|right|bottom|top/g,function(t){return Zae[t]})}var Jae={start:"end",end:"start"};function iD(e){return e.replace(/start|end/g,function(t){return Jae[t]})}function aT(e){var t=bi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function iT(e){return bp(nu(e)).left+aT(e).scrollLeft}function eie(e,t){var n=bi(e),r=nu(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var f=YL();(f||!f&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+iT(e),y:c}}function tie(e){var t,n=nu(e),r=aT(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=td(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=td(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+iT(e),c=-r.scrollTop;return Gl(o||n).direction==="rtl"&&(l+=td(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function sT(e){var t=Gl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ZL(e){return["html","body","#document"].indexOf(il(e))>=0?e.ownerDocument.body:Yi(e)&&sT(e)?e:ZL(B0(e))}function Ym(e,t){var n;t===void 0&&(t=[]);var r=ZL(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=bi(r),s=o?[a].concat(a.visualViewport||[],sT(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Ym(B0(s)))}function Bw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nie(e,t){var n=bp(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 sD(e,t,n){return t===WL?Bw(eie(e,n)):pd(t)?nie(t,n):Bw(tie(nu(e)))}function rie(e){var t=Ym(B0(e)),n=["absolute","fixed"].indexOf(Gl(e).position)>=0,r=n&&Yi(e)?Kg(e):e;return pd(r)?t.filter(function(o){return pd(o)&&GL(o,r)&&il(o)!=="body"}):[]}function oie(e,t,n,r){var o=t==="clippingParents"?rie(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,f){var u=sD(e,f,r);return c.top=td(u.top,c.top),c.right=Rb(u.right,c.right),c.bottom=Rb(u.bottom,c.bottom),c.left=td(u.left,c.left),c},sD(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 JL(e){var t=e.reference,n=e.element,r=e.placement,o=r?rl(r):null,a=r?xp(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case _a:c={x:s,y:t.y-n.height};break;case Zi:c={x:s,y:t.y+t.height};break;case Ji:c={x:t.x+t.width,y:l};break;case Ba:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var f=o?oT(o):null;if(f!=null){var u=f==="y"?"height":"width";switch(a){case yp:c[f]=c[f]-(t[u]/2-n[u]/2);break;case hg:c[f]=c[f]+(t[u]/2-n[u]/2);break}}return c}function mg(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,c=l===void 0?kae:l,f=n.rootBoundary,u=f===void 0?WL:f,h=n.elementContext,y=h===void 0?im:h,v=n.altBoundary,S=v===void 0?!1:v,x=n.padding,w=x===void 0?0:x,b=QL(typeof w!="number"?w:XL(w,Gg)),T=y===im?Tae:im,E=e.rects.popper,M=e.elements[S?T:y],$=oie(pd(M)?M:M.contextElement||nu(e.elements.popper),c,u,s),D=bp(e.elements.reference),I=JL({reference:D,element:E,placement:o}),A=Bw(Object.assign({},E,I)),_=y===im?A:D,W={top:$.top-_.top+b.top,bottom:_.bottom-$.bottom+b.bottom,left:$.left-_.left+b.left,right:_.right-$.right+b.right},V=e.modifiersData.offset;if(y===im&&V){var k=V[o];Object.keys(W).forEach(function(z){var F=[Ji,Zi].indexOf(z)>=0?1:-1,H=[_a,Zi].indexOf(z)>=0?"y":"x";W[z]+=k[H]*F})}return W}function aie(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?qL:c,u=xp(r),h=u?l?rD:rD.filter(function(S){return xp(S)===u}):Gg,y=h.filter(function(S){return f.indexOf(S)>=0});y.length===0&&(y=h);var v=y.reduce(function(S,x){return S[x]=mg(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[rl(x)],S},{});return Object.keys(v).sort(function(S,x){return v[S]-v[x]})}function iie(e){if(rl(e)===tT)return[];var t=Xv(e);return[iD(e),t,iD(t)]}function sie(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,c=n.fallbackPlacements,f=n.padding,u=n.boundary,h=n.rootBoundary,y=n.altBoundary,v=n.flipVariations,S=v===void 0?!0:v,x=n.allowedAutoPlacements,w=t.options.placement,b=rl(w),T=b===w,E=c||(T||!S?[Xv(w)]:iie(w)),M=[w].concat(E).reduce(function(fe,ae){return fe.concat(rl(ae)===tT?aie(t,{placement:ae,boundary:u,rootBoundary:h,padding:f,flipVariations:S,allowedAutoPlacements:x}):ae)},[]),$=t.rects.reference,D=t.rects.popper,I=new Map,A=!0,_=M[0],W=0;W<M.length;W++){var V=M[W],k=rl(V),z=xp(V)===yp,F=[_a,Zi].indexOf(k)>=0,H=F?"width":"height",N=mg(t,{placement:V,boundary:u,rootBoundary:h,altBoundary:y,padding:f}),X=F?z?Ji:Ba:z?Zi:_a;$[H]>D[H]&&(X=Xv(X));var Q=Xv(X),te=[];if(a&&te.push(N[k]<=0),l&&te.push(N[X]<=0,N[Q]<=0),te.every(function(fe){return fe})){_=V,A=!1;break}I.set(V,te)}if(A)for(var Z=S?3:1,K=function(fe){var ae=M.find(function(se){var ie=I.get(se);if(ie)return ie.slice(0,fe).every(function(pe){return pe})});if(ae)return _=ae,"break"},ne=Z;ne>0;ne--){var le=K(ne);if(le==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const lie={name:"flip",enabled:!0,phase:"main",fn:sie,requiresIfExists:["offset"],data:{_skip:!1}};function lD(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 cD(e){return[_a,Ji,Zi,Ba].some(function(t){return e[t]>=0})}function cie(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=mg(t,{elementContext:"reference"}),l=mg(t,{altBoundary:!0}),c=lD(s,r),f=lD(l,o,a),u=cD(c),h=cD(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const uie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cie};function die(e,t,n){var r=rl(e),o=[Ba,_a].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[Ba,Ji].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function fie(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=qL.reduce(function(u,h){return u[h]=die(h,t.rects,a),u},{}),l=s[t.placement],c=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const pie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fie};function hie(e){var t=e.state,n=e.name;t.modifiersData[n]=JL({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const mie={name:"popperOffsets",enabled:!0,phase:"read",fn:hie,data:{}};function gie(e){return e==="x"?"y":"x"}function yie(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,c=n.boundary,f=n.rootBoundary,u=n.altBoundary,h=n.padding,y=n.tether,v=y===void 0?!0:y,S=n.tetherOffset,x=S===void 0?0:S,w=mg(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:u}),b=rl(t.placement),T=xp(t.placement),E=!T,M=oT(b),$=gie(M),D=t.modifiersData.popperOffsets,I=t.rects.reference,A=t.rects.popper,_=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(D){if(a){var z,F=M==="y"?_a:Ba,H=M==="y"?Zi:Ji,N=M==="y"?"height":"width",X=D[M],Q=X+w[F],te=X-w[H],Z=v?-A[N]/2:0,K=T===yp?I[N]:A[N],ne=T===yp?-A[N]:-I[N],le=t.elements.arrow,fe=v&&le?rT(le):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:KL(),se=ae[F],ie=ae[H],pe=qm(0,I[N],fe[N]),me=E?I[N]/2-Z-pe-se-W.mainAxis:K-pe-se-W.mainAxis,Te=E?-I[N]/2+Z+pe+ie+W.mainAxis:ne+pe+ie+W.mainAxis,Ce=t.elements.arrow&&Kg(t.elements.arrow),ke=Ce?M==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,ce=(z=V?.[M])!=null?z:0,we=X+me-ce-ke,Ge=X+Te-ce,Be=qm(v?Rb(Q,we):Q,X,v?td(te,Ge):te);D[M]=Be,k[M]=Be-X}if(l){var Ae,oe=M==="x"?_a:Ba,lt=M==="x"?Zi:Ji,Ne=D[$],et=$==="y"?"height":"width",mt=Ne+w[oe],Wt=Ne-w[lt],zt=[_a,Ba].indexOf(b)!==-1,tt=(Ae=V?.[$])!=null?Ae:0,Je=zt?mt:Ne-I[et]-A[et]-tt+W.altAxis,ct=zt?Ne+I[et]+A[et]-tt-W.altAxis:Wt,Ie=v&&zt?Bae(Je,Ne,ct):qm(v?Je:mt,Ne,v?ct:Wt);D[$]=Ie,k[$]=Ie-Ne}t.modifiersData[r]=k}}const vie={name:"preventOverflow",enabled:!0,phase:"main",fn:yie,requiresIfExists:["offset"]};function bie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xie(e){return e===bi(e)||!Yi(e)?aT(e):bie(e)}function Sie(e){var t=e.getBoundingClientRect(),n=vp(t.width)/e.offsetWidth||1,r=vp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function wie(e,t,n){n===void 0&&(n=!1);var r=Yi(t),o=Yi(t)&&Sie(t),a=nu(t),s=bp(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((il(t)!=="body"||sT(a))&&(l=xie(t)),Yi(t)?(c=bp(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=iT(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Cie(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 c=t.get(l);c&&o(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function kie(e){var t=Cie(e);return Nae.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Tie(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Eie(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 uD={placement:"bottom",modifiers:[],strategy:"absolute"};function dD(){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 Rie(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?uD:o;return function(s,l,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},uD,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},u=[],h=!1,y={state:f,setOptions:function(x){var w=typeof x=="function"?x(f.options):x;S(),f.options=Object.assign({},a,f.options,w),f.scrollParents={reference:pd(s)?Ym(s):s.contextElement?Ym(s.contextElement):[],popper:Ym(l)};var b=kie(Eie([].concat(r,f.options.modifiers)));return f.orderedModifiers=b.filter(function(T){return T.enabled}),v(),y.update()},forceUpdate:function(){if(!h){var x=f.elements,w=x.reference,b=x.popper;if(dD(w,b)){f.rects={reference:wie(w,Kg(b),f.options.strategy==="fixed"),popper:rT(b)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(A){return f.modifiersData[A.name]=Object.assign({},A.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var E=f.orderedModifiers[T],M=E.fn,$=E.options,D=$===void 0?{}:$,I=E.name;typeof M=="function"&&(f=M({state:f,options:D,name:I,instance:y})||f)}}}},update:Tie(function(){return new Promise(function(x){y.forceUpdate(),x(f)})}),destroy:function(){S(),h=!0}};if(!dD(s,l))return y;y.setOptions(c).then(function(x){!h&&c.onFirstUpdate&&c.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var w=x.name,b=x.options,T=b===void 0?{}:b,E=x.effect;if(typeof E=="function"){var M=E({state:f,name:w,instance:y,options:T}),$=function(){};u.push(M||$)}})}function S(){u.forEach(function(x){return x()}),u=[]}return y}}var Oie=[Xae,mie,Kae,zae,pie,lie,vie,Wae,uie],Mie=Rie({defaultModifiers:Oie});function $ie(e){return cn("MuiPopper",e)}tn("MuiPopper",["root"]);function Pie(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 Uw(e){return typeof e=="function"?e():e}function Die(e){return e.nodeType!==void 0}const Aie=e=>{const{classes:t}=e;return sn({root:["root"]},$ie,t)},jie={},Nie=C.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:f,popperRef:u,slotProps:h={},slots:y={},TransitionProps:v,ownerState:S,...x}=e,w=C.useRef(null),b=mr(w,t),T=C.useRef(null),E=mr(T,u),M=C.useRef(E);No(()=>{M.current=E},[E]),C.useImperativeHandle(u,()=>T.current,[]);const $=Pie(c,o),[D,I]=C.useState($),[A,_]=C.useState(Uw(n));C.useEffect(()=>{T.current&&T.current.forceUpdate()}),C.useEffect(()=>{n&&_(Uw(n))},[n]),No(()=>{if(!A||!l)return;const F=X=>{I(X.placement)};let H=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{F(X)}}];s!=null&&(H=H.concat(s)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const N=Mie(A,w.current,{placement:$,...f,modifiers:H});return M.current(N),()=>{N.destroy(),M.current(null)}},[A,a,s,l,f,$]);const W={placement:D};v!==null&&(W.TransitionProps=v);const V=Aie(e),k=y.root??"div",z=xr({elementType:k,externalSlotProps:h.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:V.root});return m.jsx(k,{...z,children:typeof r=="function"?r(W):r})}),Iie=C.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:f,placement:u="bottom",popperOptions:h=jie,popperRef:y,style:v,transition:S=!1,slotProps:x={},slots:w={},...b}=e,[T,E]=C.useState(!0),M=()=>{E(!1)},$=()=>{E(!0)};if(!l&&!f&&(!S||T))return null;let D;if(o)D=o;else if(n){const _=Uw(n);D=_&&Die(_)?jo(_).body:jo(null).body}const I=!f&&l&&(!S||T)?"none":void 0,A=S?{in:f,onEnter:M,onExited:$}:void 0;return m.jsx(IL,{disablePortal:s,container:D,children:m.jsx(Nie,{anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:t,open:S?!T:f,placement:u,popperOptions:h,popperRef:y,slotProps:x,slots:w,...b,style:{position:"fixed",top:0,left:0,display:I,...v},TransitionProps:A,children:r})})}),Lie=Qe(Iie,{name:"MuiPopper",slot:"Root"})({}),lT=C.forwardRef(function(e,t){const n=Es(),r=qn({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:f,keepMounted:u,modifiers:h,open:y,placement:v,popperOptions:S,popperRef:x,transition:w,slots:b,slotProps:T,...E}=r,M=b?.root??s?.Root,$={anchorEl:o,container:c,disablePortal:f,keepMounted:u,modifiers:h,open:y,placement:v,popperOptions:S,popperRef:x,transition:w,...E};return m.jsx(Lie,{as:a,direction:n?"rtl":"ltr",slots:{root:M},slotProps:T??l,...$,ref:t})});function zie(e){return cn("MuiListSubheader",e)}tn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Fie=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${St(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return sn(s,zie,t)},_ie=Qe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${St(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Wn(({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=qn({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...f}=n,u={...n,color:o,component:a,disableGutters:s,disableSticky:l,inset:c},h=Fie(u);return m.jsx(_ie,{as:a,className:Lt(h.root,r),ref:t,ownerState:u,...f})});Vw&&(Vw.muiSkipListHighlight=!0);const Bie=lr(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 Uie(e){return cn("MuiChip",e)}const ir=tn("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"]),Vie=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:c}=e,f={root:["root",c,n&&"disabled",`size${St(r)}`,`color${St(o)}`,l&&"clickable",l&&`clickableColor${St(o)}`,s&&"deletable",s&&`deletableColor${St(o)}`,`${c}${St(o)}`],label:["label",`label${St(r)}`],avatar:["avatar",`avatar${St(r)}`,`avatarColor${St(o)}`],icon:["icon",`icon${St(r)}`,`iconColor${St(a)}`],deleteIcon:["deleteIcon",`deleteIcon${St(r)}`,`deleteIconColor${St(o)}`,`deleteIcon${St(c)}Color${St(o)}`]};return sn(f,Uie,t)},Hie=Qe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:c}=n;return[{[`& .${ir.avatar}`]:t.avatar},{[`& .${ir.avatar}`]:t[`avatar${St(l)}`]},{[`& .${ir.avatar}`]:t[`avatarColor${St(r)}`]},{[`& .${ir.icon}`]:t.icon},{[`& .${ir.icon}`]:t[`icon${St(l)}`]},{[`& .${ir.icon}`]:t[`iconColor${St(o)}`]},{[`& .${ir.deleteIcon}`]:t.deleteIcon},{[`& .${ir.deleteIcon}`]:t[`deleteIcon${St(l)}`]},{[`& .${ir.deleteIcon}`]:t[`deleteIconColor${St(r)}`]},{[`& .${ir.deleteIcon}`]:t[`deleteIcon${St(c)}Color${St(r)}`]},t.root,t[`size${St(l)}`],t[`color${St(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${St(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${St(r)}`],t[c],t[`${c}${St(r)}`]]}})(Wn(({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",[`&.${ir.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ir.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ir.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ir.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ir.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ir.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ir.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,[`& .${ir.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ir.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Sa(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ir.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:{[`& .${ir.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ir.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ir.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(Sa(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ir.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}`)},[`&.${ir.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(Sa(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ir.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]}`,[`&.${ir.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ir.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ir.avatar}`]:{marginLeft:4},[`& .${ir.avatarSmall}`]:{marginLeft:2},[`& .${ir.icon}`]:{marginLeft:4},[`& .${ir.iconSmall}`]:{marginLeft:2},[`& .${ir.deleteIcon}`]:{marginRight:5},[`& .${ir.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Sa()).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)}`,[`&.${ir.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${ir.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${ir.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Wie=Qe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${St(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 fD(e){return e.key==="Backspace"||e.key==="Delete"}const ez=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:f=!1,icon:u,label:h,onClick:y,onDelete:v,onKeyDown:S,onKeyUp:x,size:w="medium",variant:b="filled",tabIndex:T,skipFocusWhenDisabled:E=!1,slots:M={},slotProps:$={},...D}=n,I=C.useRef(null),A=mr(I,t),_=ae=>{ae.stopPropagation(),v&&v(ae)},W=ae=>{ae.currentTarget===ae.target&&fD(ae)&&ae.preventDefault(),S&&S(ae)},V=ae=>{ae.currentTarget===ae.target&&v&&fD(ae)&&v(ae),x&&x(ae)},k=a!==!1&&y?!0:a,z=k||v?dd:l||"div",F={...n,component:z,disabled:f,size:w,color:s,iconColor:C.isValidElement(u)&&u.props.color||s,onDelete:!!v,clickable:k,variant:b},H=Vie(F),N=z===dd?{component:l||"div",focusVisibleClassName:H.focusVisible,...v&&{disableRipple:!0}}:{};let X=null;v&&(X=c&&C.isValidElement(c)?C.cloneElement(c,{className:Lt(c.props.className,H.deleteIcon),onClick:_}):m.jsx(Bie,{className:H.deleteIcon,onClick:_}));let Q=null;r&&C.isValidElement(r)&&(Q=C.cloneElement(r,{className:Lt(H.avatar,r.props.className)}));let te=null;u&&C.isValidElement(u)&&(te=C.cloneElement(u,{className:Lt(H.icon,u.props.className)}));const Z={slots:M,slotProps:$},[K,ne]=sr("root",{elementType:Hie,externalForwardedProps:{...Z,...D},ownerState:F,shouldForwardComponentProp:!0,ref:A,className:Lt(H.root,o),additionalProps:{disabled:k&&f?!0:void 0,tabIndex:E&&f?-1:T,...N},getSlotProps:ae=>({...ae,onClick:se=>{ae.onClick?.(se),y?.(se)},onKeyDown:se=>{ae.onKeyDown?.(se),W(se)},onKeyUp:se=>{ae.onKeyUp?.(se),V(se)}})}),[le,fe]=sr("label",{elementType:Wie,externalForwardedProps:Z,ownerState:F,className:H.label});return m.jsxs(K,{as:z,...ne,children:[Q||te,m.jsx(le,{...fe,children:h}),X]})}),qie=lr(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 Yie(e){return cn("MuiAutocomplete",e)}const Qn=tn("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 pD,hD;const Gie=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:f,size:u}=e,h={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${St(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return sn(h,Yie,t)},Kie=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${St(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}},[`& .${jc.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${jc.root}.${di.sizeSmall}`]:{[`& .${jc.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ii.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}},[`& .${Ii.root}.${di.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Qn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${fi.root}`]:{paddingTop:19,paddingLeft:8,[`.${Qn.hasPopupIcon}&, .${Qn.hasClearIcon}&`]:{paddingRight:39},[`.${Qn.hasPopupIcon}.${Qn.hasClearIcon}&`]:{paddingRight:65},[`& .${fi.input}`]:{padding:"7px 4px"},[`& .${Qn.endAdornment}`]:{right:9}},[`& .${fi.root}.${di.sizeSmall}`]:{paddingBottom:1,[`& .${fi.input}`]:{padding:"2.5px 4px"}},[`& .${di.hiddenLabel}`]:{paddingTop:8},[`& .${fi.root}.${di.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Qn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${fi.root}.${di.hiddenLabel}.${di.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"}}}]}),Qie=Qe("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Xie=Qe(tu,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),Zie=Qe(tu,{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)"}}]}),Jie=Qe(lT,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Wn(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),ese=Qe(Sd,{name:"MuiAutocomplete",slot:"Paper"})(Wn(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),tse=Qe("div",{name:"MuiAutocomplete",slot:"Loading"})(Wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),nse=Qe("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),rse=Qe("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Wn(({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}`)}}}}))),ose=Qe(Vw,{name:"MuiAutocomplete",slot:"GroupLabel"})(Wn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),ase=Qe("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Qn.option}`]:{paddingLeft:24}}),ise=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:f=pD||(pD=m.jsx(qie,{fontSize:"small"})),clearOnBlur:u=!n.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:v="Close",componentsProps:S,defaultValue:x=n.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:b=!1,disabled:T=!1,disabledItemsFocusable:E=!1,disableListWrap:M=!1,disablePortal:$=!1,filterOptions:D,filterSelectedOptions:I=!1,forcePopupIcon:A="auto",freeSolo:_=!1,fullWidth:W=!1,getLimitTagsText:V=ye=>`+${ye}`,getOptionDisabled:k,getOptionKey:z,getOptionLabel:F,isOptionEqualToValue:H,groupBy:N,handleHomeEndKeys:X=!n.freeSolo,id:Q,includeInputInList:te=!1,inputValue:Z,limitTags:K=-1,ListboxComponent:ne,ListboxProps:le,loading:fe=!1,loadingText:ae="Loading…",multiple:se=!1,noOptionsText:ie="No options",onChange:pe,onClose:me,onHighlightChange:Te,onInputChange:Ce,onOpen:ke,open:ce,openOnFocus:we=!1,openText:Ge="Open",options:Be,PaperComponent:Ae,PopperComponent:oe,popupIcon:lt=hD||(hD=m.jsx(VL,{})),readOnly:Ne=!1,renderGroup:et,renderInput:mt,renderOption:Wt,renderTags:zt,renderValue:tt,selectOnFocus:Je=!n.freeSolo,size:ct="medium",slots:Ie={},slotProps:he={},value:qe,...De}=n,{getRootProps:wt,getInputProps:Ct,getInputLabelProps:yt,getPopupIndicatorProps:st,getClearProps:jt,getItemProps:qt,getListboxProps:mn,getOptionProps:$n,value:_n,dirty:Un,expanded:Jt,id:An,popupOpen:xe,focused:Vn,focusedItem:Rn,anchorEl:en,setAnchorEl:$t,inputValue:zr,groupedOptions:Fn}=Cae({...n,componentName:"Autocomplete"}),on=!w&&!T&&Un&&!Ne,Ln=(!_||A===!0)&&A!==!1,{onMouseDown:ge}=Ct(),{ref:Ee,...Le}=mn(),Ve=F||(ye=>ye.label??ye),rt={...n,disablePortal:$,expanded:Jt,focused:Vn,fullWidth:W,getOptionLabel:Ve,hasClearIcon:on,hasPopupIcon:Ln,inputFocused:Rn===-1,popupOpen:xe,size:ct},kt=Gie(rt),bt={slots:{paper:Ae,popper:oe,...Ie},slotProps:{chip:l,listbox:le,...S,...he}},[Tt,Pt]=sr("listbox",{elementType:rse,externalForwardedProps:bt,ownerState:rt,className:kt.listbox,additionalProps:Le,ref:Ee}),[Kt,Dt]=sr("paper",{elementType:Sd,externalForwardedProps:bt,ownerState:rt,className:kt.paper}),[Ft,ue]=sr("popper",{elementType:lT,externalForwardedProps:bt,ownerState:rt,className:kt.popper,additionalProps:{disablePortal:$,style:{width:en?en.clientWidth:null},role:"presentation",anchorEl:en,open:xe}});let de;const ze=ye=>({className:kt.tag,disabled:T,...qt(ye)});if(se?_n.length>0&&(zt?de=zt(_n,ze,rt):tt?de=tt(_n,ze,rt):de=_n.map((ye,Re)=>{const{key:it,...xt}=ze({index:Re});return m.jsx(ez,{label:Ve(ye),size:ct,...xt,...bt.slotProps.chip},it)})):tt&&_n!=null&&(de=tt(_n,ze,rt)),K>-1&&Array.isArray(de)){const ye=de.length-K;!Vn&&ye>0&&(de=de.splice(0,K),de.push(m.jsx("span",{className:kt.tag,children:V(ye)},de.length)))}const ft=et||(ye=>m.jsxs("li",{children:[m.jsx(ose,{className:kt.groupLabel,ownerState:rt,component:"div",children:ye.group}),m.jsx(ase,{className:kt.groupUl,ownerState:rt,children:ye.children})]},ye.key)),Ue=Wt||((ye,Re)=>{const{key:it,...xt}=ye;return m.jsx("li",{...xt,children:Ve(Re)},it)}),Mt=(ye,Re)=>{const it=$n({option:ye,index:Re});return Ue({...it,className:kt.option},ye,{selected:it["aria-selected"],index:Re,inputValue:zr},rt)},Yt=bt.slotProps.clearIndicator,nn=bt.slotProps.popupIndicator;return m.jsxs(C.Fragment,{children:[m.jsx(Kie,{ref:t,className:Lt(kt.root,c),ownerState:rt,...wt(De),children:mt({id:An,disabled:T,fullWidth:!0,size:ct==="small"?"small":void 0,InputLabelProps:yt(),InputProps:{ref:$t,className:kt.inputRoot,startAdornment:de,onMouseDown:ye=>{ye.target===ye.currentTarget&&ge(ye)},...(on||Ln)&&{endAdornment:m.jsxs(Qie,{className:kt.endAdornment,ownerState:rt,children:[on?m.jsx(Xie,{...jt(),"aria-label":y,title:y,ownerState:rt,...Yt,className:Lt(kt.clearIndicator,Yt?.className),children:f}):null,Ln?m.jsx(Zie,{...st(),disabled:T,"aria-label":xe?v:Ge,title:xe?v:Ge,ownerState:rt,...nn,className:Lt(kt.popupIndicator,nn?.className),children:lt}):null]})}},inputProps:{className:kt.input,disabled:T,readOnly:Ne,...Ct()}})}),en?m.jsx(Jie,{as:Ft,...ue,children:m.jsxs(ese,{as:Kt,...Dt,children:[fe&&Fn.length===0?m.jsx(tse,{className:kt.loading,ownerState:rt,children:ae}):null,Fn.length===0&&!_&&!fe?m.jsx(nse,{className:kt.noOptions,ownerState:rt,role:"presentation",onMouseDown:ye=>{ye.preventDefault()},children:ie}):null,Fn.length>0?m.jsx(Tt,{as:ne,...Pt,children:Fn.map((ye,Re)=>N?ft({key:ye.key,group:ye.group,children:ye.options.map((it,xt)=>Mt(it,ye.index+xt))}):Mt(ye,Re))}):null]})}):null]})});var Hw={exports:{}},sse=Hw.exports,mD;function lse(){return mD||(mD=1,(function(e,t){(function(n,r){e.exports=r()})(sse,(function(){var n="week",r="year";return function(o,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(f),h=s(this).endOf(n);if(u.isBefore(h))return 1}var y=s(this).startOf(r).date(f).startOf(n).subtract(1,"millisecond"),v=this.diff(y,n,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(Hw)),Hw.exports}var cse=lse();const use=Kl(cse);var Ww={exports:{}},dse=Ww.exports,gD;function fse(){return gD||(gD=1,(function(e,t){(function(n,r){e.exports=r()})(dse,(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]+/,c={},f=function(w){return(w=+w)+(w>68?1900:2e3)},u=function(w){return function(b){this[w]=+b}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var T=b.match(/([+-]|\d\d)/g),E=60*T[1]+(+T[2]||0);return E===0?0:T[0]==="+"?-E:E})(w)}],y=function(w){var b=c[w];return b&&(b.indexOf?b:b.s.concat(b.f))},v=function(w,b){var T,E=c.meridiem;if(E){for(var M=1;M<=24;M+=1)if(w.indexOf(E(M,0,b))>-1){T=M>12;break}}else T=w===(b?"pm":"PM");return T},S={A:[l,function(w){this.afternoon=v(w,!1)}],a:[l,function(w){this.afternoon=v(w,!0)}],Q:[o,function(w){this.month=3*(w-1)+1}],S:[o,function(w){this.milliseconds=100*+w}],SS:[a,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[a,u("day")],Do:[l,function(w){var b=c.ordinal,T=w.match(/\d+/);if(this.day=T[0],b)for(var E=1;E<=31;E+=1)b(E).replace(/\[|\]/g,"")===w&&(this.day=E)}],w:[s,u("week")],ww:[a,u("week")],M:[s,u("month")],MM:[a,u("month")],MMM:[l,function(w){var b=y("months"),T=(y("monthsShort")||b.map((function(E){return E.slice(0,3)}))).indexOf(w)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[l,function(w){var b=y("months").indexOf(w)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(w){this.year=f(w)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function x(w){var b,T;b=w,T=c&&c.formats;for(var E=(w=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(W,V,k){var z=k&&k.toUpperCase();return V||T[k]||n[k]||T[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(F,H,N){return H||N.slice(1)}))}))).match(r),M=E.length,$=0;$<M;$+=1){var D=E[$],I=S[D],A=I&&I[0],_=I&&I[1];E[$]=_?{regex:A,parser:_}:D.replace(/^\[|\]$/g,"")}return function(W){for(var V={},k=0,z=0;k<M;k+=1){var F=E[k];if(typeof F=="string")z+=F.length;else{var H=F.regex,N=F.parser,X=W.slice(z),Q=H.exec(X)[0];N.call(V,Q),W=W.replace(Q,"")}}return(function(te){var Z=te.afternoon;if(Z!==void 0){var K=te.hours;Z?K<12&&(te.hours+=12):K===12&&(te.hours=0),delete te.afternoon}})(V),V}}return function(w,b,T){T.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(f=w.parseTwoDigitYear);var E=b.prototype,M=E.parse;E.parse=function($){var D=$.date,I=$.utc,A=$.args;this.$u=I;var _=A[1];if(typeof _=="string"){var W=A[2]===!0,V=A[3]===!0,k=W||V,z=A[2];V&&(z=A[2]),c=this.$locale(),!W&&z&&(c=T.Ls[z]),this.$d=(function(X,Q,te,Z){try{if(["x","X"].indexOf(Q)>-1)return new Date((Q==="X"?1e3:1)*X);var K=x(Q)(X),ne=K.year,le=K.month,fe=K.day,ae=K.hours,se=K.minutes,ie=K.seconds,pe=K.milliseconds,me=K.zone,Te=K.week,Ce=new Date,ke=fe||(ne||le?1:Ce.getDate()),ce=ne||Ce.getFullYear(),we=0;ne&&!le||(we=le>0?le-1:Ce.getMonth());var Ge,Be=ae||0,Ae=se||0,oe=ie||0,lt=pe||0;return me?new Date(Date.UTC(ce,we,ke,Be,Ae,oe,lt+60*me.offset*1e3)):te?new Date(Date.UTC(ce,we,ke,Be,Ae,oe,lt)):(Ge=new Date(ce,we,ke,Be,Ae,oe,lt),Te&&(Ge=Z(Ge).week(Te).toDate()),Ge)}catch{return new Date("")}})(D,_,I,T),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),k&&D!=this.format(_)&&(this.$d=new Date("")),c={}}else if(_ instanceof Array)for(var F=_.length,H=1;H<=F;H+=1){A[1]=_[H-1];var N=T.apply(this,A);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}H===F&&(this.$d=new Date(""))}else M.call(this,$)}}}))})(Ww)),Ww.exports}var pse=fse();const hse=Kl(pse);var qw={exports:{}},mse=qw.exports,yD;function gse(){return yD||(yD=1,(function(e,t){(function(n,r){e.exports=r()})(mse,(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(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,u=(function(h,y){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,S,x){var w=x&&x.toUpperCase();return S||y[x]||n[x]||y[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,T,E){return T||E.slice(1)}))}))})(c,f===void 0?{}:f);return l.call(this,u)}}}))})(qw)),qw.exports}var yse=gse();const vse=Kl(yse);var Yw={exports:{}},bse=Yw.exports,vD;function xse(){return vD||(vD=1,(function(e,t){(function(n,r){e.exports=r()})(bse,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,c){var f=o(a),u=o(s),h=(c=c||"()")[0]==="(",y=c[1]===")";return(h?this.isAfter(f,l):!this.isBefore(f,l))&&(y?this.isBefore(u,l):!this.isAfter(u,l))||(h?this.isBefore(f,l):!this.isAfter(f,l))&&(y?this.isAfter(u,l):!this.isBefore(u,l))}}}))})(Yw)),Yw.exports}var Sse=xse();const wse=Kl(Sse);var Gw={exports:{}},Cse=Gw.exports,bD;function kse(){return bD||(bD=1,(function(e,t){(function(n,r){e.exports=r()})(Cse,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return a.bind(this)(s);var f=this.$utils(),u=(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 c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.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)(u)}}}))})(Gw)),Gw.exports}var Tse=kse();const Ese=Kl(Tse);$r.extend(vse);$r.extend(use);$r.extend(wse);$r.extend(Ese);const Rse={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"},Ose={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"},E1=["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(`
|
|
429
|
-
`),xD=["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(`
|
|
430
|
-
`),Mse=(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=Rse,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(E1);return $r.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(E1);if(!this.hasTimezonePlugin())throw new Error(xD);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(E1);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(xD)}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,c,f)=>c||f.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,l,c)=>{const f=c&&c.toUpperCase();return l||o[c]||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 c=[];for(;l<a;){const f=Math.floor(s/7);c[f]=c[f]||[],c[f].push(l),l=this.addDays(l,1),s+=1}return c},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const a=this.startOfYear(r),s=this.endOfYear(o),l=[];let c=a;for(;this.isBefore(c,s);)l.push(c),c=this.addYears(c,1);return l},this.dayjs=Mse($r,t),this.locale=t,this.formats=je({},Ose,n),$r.extend(hse)}getDayOfWeek(t){return t.day()+1}}function $se(e,t,n,r,o){const[a,s]=C.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return No(()=>{if(!n)return;const l=n(e),c=()=>{s(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),a}const Pse={...rp},tz=Pse.useSyncExternalStore;function Dse(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,c]=C.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const f=n(e);return[()=>f.matches,u=>(f.addEventListener("change",u),()=>{f.removeEventListener("change",u)})]},[a,n,e]);return tz(c,l,s)}function nz(e={}){const{themeId:t}=e;return function(n,r={}){let o=lL();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:c=null,noSsr:f=!1}=TL({name:"MuiUseMediaQuery",props:r,theme:o});let u=typeof n=="function"?n(o):n;return u=u.replace(/^@media( ?)/m,""),u.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(`
|
|
431
|
-
`)),(tz!==void 0?Dse:$se)(u,s,l,c,f)}}nz();const rz=nz({themeId:Pp}),Ase={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},sm=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),jse=({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}},Ob=(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},Gm=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:s,timezone:l})=>{const c=Ob(s,s.date(void 0,l),e);n&&s.isBefore(o,c)&&(o=c),t&&s.isAfter(r,c)&&(r=c);let f=e,u=e;for(s.isBefore(e,o)&&(f=o,u=null),s.isAfter(e,r)&&(u&&(u=r),f=null);f||u;){if(f&&s.isAfter(f,r)&&(f=null),u&&s.isBefore(u,o)&&(u=null),f){if(!a(f))return f;f=s.addDays(f,1)}if(u){if(!a(u))return u;u=s.addDays(u,-1)}}return null},Nse=(e,t)=>t==null||!e.isValid(t)?null:t,es=(e,t,n)=>t==null||!e.isValid(t)?n:t,Ise=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),cT=(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},oz=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Lse=["year","month","day"],SD=e=>Lse.includes(e),uT=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return sm(n,["year"])?o.year:sm(n,["month"])?o.month:sm(n,["day"])?o.dayOfMonth:sm(n,["month","year"])?`${o.month} ${o.year}`:sm(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},zse=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Fse=["hours","minutes","seconds"],_se=e=>Fse.includes(e),wD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Bse=(e,t)=>(n,r)=>e?t.isAfter(n,r):wD(n,t)>wD(r,t),Qs={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Use=e=>Math.max(...e.map(t=>Qs[t.type]??1)),lm=(e,t,n)=>{if(t===Qs.year)return e.startOfYear(n);if(t===Qs.month)return e.startOfMonth(n);if(t===Qs.day)return e.startOfDay(n);let r=n;return t<Qs.minutes&&(r=e.setMinutes(r,0)),t<Qs.seconds&&(r=e.setSeconds(r,0)),t<Qs.milliseconds&&(r=e.setMilliseconds(r,0)),r},Vse=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let a=o?o():lm(t,n,oz(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=lm(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=lm(t,n,e.maxDate));const s=Bse(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=lm(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ob(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=lm(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ob(t,a,e.maxTime))),a},az=(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(`
|
|
432
|
-
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Hse=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},U0=(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))},iz=(e,t,n,r)=>{switch(n){case"month":return cT(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return U0(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[]}},CD="s",Wse=["0","1","2","3","4","5","6","7","8","9"],qse=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),CD)==="0"?Wse:Array.from({length:10}).map((n,r)=>e.formatByString(e.setSeconds(t,r),CD))},hd=(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("")},dT=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),kD=(e,t)=>{const n=hd(e,t);return n!==" "&&!Number.isNaN(Number(n))},sz=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},lz=(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=sz(a,o.maxLength)),dT(a,r)},Yse=(e,t,n,r,o,a,s,l)=>{const c=Hse(r),f=r==="Home",u=r==="End",h=n.value===""||f||u,y=()=>{const S=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),x=T=>lz(e,T,S,a,n),w=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let b;if(h){if(n.type==="year"&&!u&&!f)return e.formatByString(e.date(void 0,t),n.format);c>0||f?b=S.minimum:b=S.maximum}else b=parseInt(hd(n.value,a),10)+c*w;return b%w!==0&&((c<0||f)&&(b+=w-(w+b)%w),(c>0||u)&&(b-=b%w)),b>S.maximum?x(S.minimum+(b-S.maximum-1)%(S.maximum-S.minimum+1)):b<S.minimum?x(S.maximum-(S.minimum-b-1)%(S.maximum-S.minimum+1)):x(b)},v=()=>{const S=iz(e,t,n.type,n.format);if(S.length===0)return n.value;if(h)return c>0||f?S[0]:S[S.length-1];const x=((S.indexOf(n.value)+c)%S.length+S.length)%S.length;return S[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():v()},fT=(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(hd(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}`),t==="input-rtl"&&(r=`${r}`),r},TD=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Gse=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,cz=(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")}},Kse=(e,t,n)=>{const r=t.some(c=>c.type==="day"),o=[],a=[];for(let c=0;c<t.length;c+=1){const f=t[c];r&&f.type==="weekDay"||(o.push(f.format),a.push(fT(f,"non-input",n)))}const s=o.join(" "),l=a.join(" ");return e.parse(l,s)},Qse=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Xse=(e,t,n)=>{const r=e.map(o=>{const a=fT(o,n?"input-rtl":"input-ltr",t);return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return n?`${r}`:r},Zse=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),a=e.endOfDay(r),{maxDaysInMonth:s,longestMonth:l}=cT(e,r).reduce((c,f)=>{const u=e.getDaysInMonth(f);return u>c.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:f}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:Gse(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:c})=>({minimum:1,maximum:c!=null&&e.isValid(c)?e.getDaysInMonth(c):s,longestMonth:l}),weekDay:({format:c,contentType:f})=>{if(f==="digit"){const u=U0(e,c).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const f=e.getHours(a);return hd(e.formatByString(e.endOfDay(r),c),t)!==f.toString()?{minimum:1,maximum:Number(hd(e.formatByString(e.startOfDay(r),c),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})}},Jse=(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=U0(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}},ED={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},RD=(e,t,n,r,o)=>[...n].sort((a,s)=>ED[a.type]-ED[s.type]).reduce((a,s)=>!o||s.modified?Jse(e,s,t,a):a,r),ele=()=>navigator.userAgent.toLowerCase().includes("android"),tle=(e,t)=>{const n={};if(!t)return e.forEach((c,f)=>{const u=f===0?null:f-1,h=f===e.length-1?null:f+1;n[f]={leftIndex:u,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((c,f)=>f>=a&&c.endSeparator?.includes(" ")&&c.endSeparator!==" / "),s===-1&&(s=e.length-1);for(let c=s;c>=a;c-=1)o[c]=l,r[l]=c,l-=1;a=s+1}return e.forEach((c,f)=>{const u=o[f],h=u===0?null:r[u-1],y=u===e.length-1?null:r[u+1];n[f]={leftIndex:h,rightIndex:y}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Qw=(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},nle=(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}},rle=(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}},ole=["value","referenceDate"],sl={emptyValue:null,getTodayValue:oz,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Bn(e,ole);return t!=null&&r.utils.isValid(t)?t:n??Vse(r)},cleanValue:Nse,areValuesEqual:Ise,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)},ale={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&n?n:r(t),getV7HiddenInputValueFromSections:Qse,getV6InputValueFromSections:Xse,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)},ile=["localeText"],Xw=C.createContext(null),Mb=function(e){const{localeText:t}=e,n=Bn(e,ile),{utils:r,localeText:o}=C.useContext(Xw)??{utils:void 0,localeText:void 0},a=qr({props:n,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:f,adapterLocale:u,localeText:h}=a,y=C.useMemo(()=>je({},h,o,t),[h,o,t]),v=C.useMemo(()=>{if(!l)return r||null;const w=new l({locale:u,formats:c,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(`
|
|
433
|
-
`));return w},[l,u,c,f,r]),S=C.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),x=C.useMemo(()=>({utils:v,defaultDates:S,localeText:y}),[S,v,y]);return m.jsx(Xw.Provider,{value:x,children:s})},sle=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:je({},e)}}}}),uz=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)}},dz={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"},lle=dz;sle(dz);const Cd=()=>{const e=C.useContext(Xw);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(`
|
|
434
|
-
`));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(`
|
|
435
|
-
`));const t=C.useMemo(()=>je({},lle,e.localeText),[e.localeText]);return C.useMemo(()=>je({},e,{localeText:t}),[e,t])},Yr=()=>Cd().utils,Qg=()=>Cd().defaultDates,V0=e=>{const t=Yr(),n=C.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function cle(e){return cn("MuiPickersToolbar",e)}tn("MuiPickersToolbar",["root","content"]);const ule=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],dle=e=>{const{classes:t}=e;return sn({root:["root"],content:["content"]},cle,t)},fle=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"}}]})),ple=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"}}]}),hle=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,toolbarTitle:a,hidden:s,titleId:l}=n,c=Bn(n,ule),f=n,u=dle(f);return s?null:m.jsxs(fle,je({ref:t,className:Lt(u.root,o),ownerState:f},c,{children:[m.jsx(br,{color:"text.secondary",variant:"overline",id:l,children:a}),m.jsx(ple,{className:u.content,ownerState:f,children:r})]}))}),Ql=()=>Cd().localeText;function mle(e){return cn("MuiDatePickerToolbar",e)}tn("MuiDatePickerToolbar",["root","title"]);const gle=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],yle=e=>{const{classes:t}=e;return sn({root:["root"],title:["title"]},mle,t)},vle=Qe(hle,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ble=Qe(br,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),xle=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=n,f=Bn(n,gle),u=Yr(),h=Ql(),y=yle(n),v=C.useMemo(()=>{if(!r)return s;const x=uT(u,{format:a,views:l},!0);return u.formatByString(r,x)},[r,a,s,u,l]),S=n;return m.jsx(vle,je({ref:t,toolbarTitle:h.datePickerToolbarTitle,isLandscape:o,className:Lt(y.root,c)},f,{children:m.jsx(ble,{variant:"h4",align:o?"left":"center",ownerState:S,className:y.title,children:v})}))});function fz(e,t){const n=Yr(),r=Qg(),o=qr({props:e,name:t}),a=C.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:je({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return je({},o,{localeText:a},jse({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:es(n,o.minDate,r.minDate),maxDate:es(n,o.maxDate,r.maxDate),slots:je({toolbar:xle},o.slots)})}const Xg=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:s,disablePast:l,disableFuture:c}=e,f=r.utils.date(void 0,n),u=es(r.utils,e.minDate,r.defaultDates.minDate),h=es(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(c&&r.utils.isAfterDay(t,f)):return"disableFuture";case!!(l&&r.utils.isBeforeDay(t,f)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(h&&r.utils.isAfterDay(t,h)):return"maxDate";default:return null}};Xg.valueManager=sl;const pz=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Sle=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],wle=["minDateTime","maxDateTime"],Cle=[...pz,...Sle,...wle],hz=e=>Cle.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function mz(e){const{props:t,validator:n,value:r,timezone:o,onError:a}=e,s=Cd(),l=C.useRef(n.valueManager.defaultErrorState),c=n({adapter:s,value:r,timezone:o,props:t}),f=n.valueManager.hasError(c);C.useEffect(()=>{a&&!n.valueManager.isSameError(c,l.current)&&a(c,r),l.current=c},[n,a,c,r]);const u=Bt(h=>n({adapter:s,value:h,timezone:o,props:t}));return{validationError:c,hasValidationError:f,getValidationErrorForNewValue:u}}function kle(e){return cn("MuiInputAdornment",e)}const OD=tn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var MD;const Tle=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${St(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Ele=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:s}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${St(o)}`,s,r&&"hiddenLabel",a&&`size${St(a)}`]};return sn(l,kle,t)},Rle=Qe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Tle})(Wn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${OD.positionStart}&:not(.${OD.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),gz=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:f,...u}=n,h=Ci()||{};let y=f;f&&h.variant,h&&!y&&(y=h.variant);const v={...n,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:y},S=Ele(v);return m.jsx(I0.Provider,{value:null,children:m.jsx(Rle,{as:a,ownerState:v,className:Lt(S.root,o),ref:t,...u,children:typeof r=="string"&&!l?m.jsx(br,{color:"textSecondary",children:r}):m.jsxs(C.Fragment,{children:[c==="start"?MD||(MD=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]})})})});function Ole(e){return cn("MuiPickersPopper",e)}tn("MuiPickersPopper",["root","paper"]);function Mle(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const $le=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},ja=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ja(t.shadowRoot):t:null},Ple="@media (pointer: fine)",Dle="@media (prefers-reduced-motion: reduce)",ep=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),$D=ep&&ep[1]?parseInt(ep[1],10):null,PD=ep&&ep[2]?parseInt(ep[2],10):null,Ale=$D&&$D<10||PD&&PD<13||!1,yz=()=>rz(Dle,{defaultMatches:!1})||Ale,jle=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Nle=e=>{const{classes:t}=e;return sn({root:["root"],paper:["paper"]},Ole,t)},Ile=Qe(lT,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Lle=Qe(Sd,{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 zle(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Fle(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 c(){a.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),a.current=!1}},[e]);const s=Bt(c=>{if(!a.current)return;const f=r.current;r.current=!1;const u=jo(o.current);if(!o.current||"clientX"in c&&zle(c,u))return;if(n.current){n.current=!1;return}let h;c.composedPath?h=c.composedPath().indexOf(o.current)>-1:h=!u.documentElement.contains(c.target)||o.current.contains(c.target),!h&&!f&&t(c)}),l=()=>{r.current=!0};return C.useEffect(()=>{if(e){const c=jo(o.current),f=()=>{n.current=!0};return c.addEventListener("touchstart",s),c.addEventListener("touchmove",f),()=>{c.removeEventListener("touchstart",s),c.removeEventListener("touchmove",f)}}},[e,s]),C.useEffect(()=>{if(e){const c=jo(o.current);return c.addEventListener("click",s),()=>{c.removeEventListener("click",s),r.current=!1}}},[e,s]),[o,l,l]}const _le=C.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:s,paperClasses:l,onPaperClick:c,onPaperTouchStart:f}=e,u=Bn(e,jle),h=je({},o,{placement:r}),y=xr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:h});return m.jsx(n,je({},u,y,{onClick:v=>{c(v),y.onClick?.(v)},onTouchStart:v=>{f(v),y.onTouchStart?.(v)},ownerState:h,children:a}))});function Ble(e){const t=qr({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:a,onBlur:s,onDismiss:l,open:c,role:f,placement:u,slots:h,slotProps:y,reduceAnimations:v}=t;C.useEffect(()=>{function H(N){c&&N.key==="Escape"&&l()}return document.addEventListener("keydown",H),()=>{document.removeEventListener("keydown",H)}},[l,c]);const S=C.useRef(null);C.useEffect(()=>{f==="tooltip"||a&&!a()||(c?S.current=ja(document):S.current&&S.current instanceof HTMLElement&&setTimeout(()=>{S.current instanceof HTMLElement&&S.current.focus()}))},[c,f,a]);const[x,w,b]=Fle(c,s??l),T=C.useRef(null),E=mr(T,o),M=mr(E,x),$=t,D=Nle($),I=yz(),A=v??I,_=H=>{H.key==="Escape"&&(H.stopPropagation(),l())},W=h?.desktopTransition??A?fd:pg,V=h?.desktopTrapFocus??NL,k=h?.desktopPaper??Lle,z=h?.popper??Ile,F=xr({elementType:z,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:f,open:c,anchorEl:n,placement:u,onKeyDown:_},className:D.root,ownerState:t});return m.jsx(z,je({},F,{children:({TransitionProps:H,placement:N})=>m.jsx(V,je({open:c,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:f==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:m.jsx(W,je({},H,y?.desktopTransition,{children:m.jsx(_le,{PaperComponent:k,ownerState:$,popperPlacement:N,ref:M,onPaperClick:w,onPaperTouchStart:b,paperClasses:D.paper,paperSlotProps:y?.desktopPaper,children:r})}))}))}))}const Ule=({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}},pT=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:a})=>{const s=Yr(),l=C.useRef(n),c=t??l.current??a.emptyValue,f=C.useMemo(()=>a.getTimezone(s,c),[s,a,c]),u=Bt(S=>f==null?S:a.setTimezone(s,f,S));let h;e?h=e:f?h=f:r?h=s.getTimezone(r):h="default";const y=C.useMemo(()=>a.setTimezone(s,h,c),[a,s,h,c]),v=Bt((S,...x)=>{const w=u(S);o?.(w,...x)});return{value:y,handleValueChange:v,timezone:h}},hT=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:a,valueManager:s})=>{const[l,c]=yi({name:e,state:"value",controlled:n,default:r??s.emptyValue}),f=Bt((u,...h)=>{c(u),a?.(u,...h)});return pT({timezone:t,value:l,defaultValue:void 0,referenceDate:o,onChange:f,valueManager:s})},Vle=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},Hle=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},Wle=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},qle=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:s,value:l,defaultValue:c,closeOnSelect:f=r==="desktop",timezone:u,referenceDate:h}=e,{current:y}=C.useRef(c),{current:v}=C.useRef(l!==void 0),[S,x]=C.useState(u),w=Yr(),b=Cd(),{isOpen:T,setIsOpen:E}=Ule(e),{timezone:M,value:$,handleValueChange:D}=pT({timezone:u,value:l,defaultValue:y,referenceDate:h,onChange:s,valueManager:t}),[I,A]=C.useState(()=>{let pe;return $!==void 0?pe=$:y!==void 0?pe=y:pe=t.emptyValue,{draft:pe,lastPublishedValue:pe,lastCommittedValue:pe,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),_=t.getTimezone(w,I.draft);S!==u&&(x(u),u&&_&&u!==_&&A(pe=>je({},pe,{draft:t.setTimezone(w,u,pe.draft)})));const{getValidationErrorForNewValue:W}=mz({props:e,validator:o,timezone:M,value:I.draft,onError:e.onError}),V=Bt(pe=>{const me={action:pe,dateState:I,hasChanged:Ge=>!t.areValuesEqual(w,pe.value,Ge),isControlled:v,closeOnSelect:f},Te=Vle(me),Ce=Hle(me),ke=Wle(me);A(Ge=>je({},Ge,{draft:pe.value,lastPublishedValue:Te?pe.value:Ge.lastPublishedValue,lastCommittedValue:Ce?pe.value:Ge.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ce=null;const we=()=>(ce||(ce={validationError:pe.name==="setValueFromField"?pe.context.validationError:W(pe.value)},pe.name==="setValueFromShortcut"&&(ce.shortcut=pe.shortcut)),ce);Te&&D(pe.value,we()),Ce&&a&&a(pe.value,we()),ke&&E(!1)});if(I.lastControlledValue!==l){const pe=t.areValuesEqual(w,I.draft,$);A(me=>je({},me,{lastControlledValue:l},pe?{}:{lastCommittedValue:$,lastPublishedValue:$,draft:$,hasBeenModifiedSinceMount:!0}))}const k=Bt(()=>{V({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=Bt(()=>{V({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),F=Bt(()=>{V({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),H=Bt(()=>{V({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),N=Bt(()=>{V({value:t.getTodayValue(w,M,n),name:"setValueFromAction",pickerAction:"today"})}),X=Bt(pe=>{pe.preventDefault(),E(!0)}),Q=Bt(pe=>{pe?.preventDefault(),E(!1)}),te=Bt((pe,me="partial")=>V({name:"setValueFromView",value:pe,selectionState:me})),Z=Bt((pe,me,Te)=>V({name:"setValueFromShortcut",value:pe,changeImportance:me,shortcut:Te})),K=Bt((pe,me)=>V({name:"setValueFromField",value:pe,context:me})),ne={onClear:k,onAccept:z,onDismiss:F,onCancel:H,onSetToday:N,onOpen:X,onClose:Q},le={value:I.draft,onChange:K},fe=C.useMemo(()=>t.cleanValue(w,I.draft),[w,t,I.draft]),ae={value:fe,onChange:te,onClose:Q,open:T},se=je({},ne,{value:fe,onChange:te,onSelectShortcut:Z,isValid:pe=>{const me=o({adapter:b,value:pe,timezone:M,props:e});return!t.hasError(me)}}),ie=C.useMemo(()=>({onOpen:X,onClose:Q,open:T}),[T,Q,X]);return{open:T,fieldProps:le,viewProps:ae,layoutProps:se,actions:ne,contextValue:ie}};function vz({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:s,onFocusedViewChange:l}){const c=C.useRef(n),f=C.useRef(o),u=C.useRef(o.includes(n)?n:o[0]),[h,y]=yi({name:"useViews",state:"view",controlled:r,default:u.current}),v=C.useRef(a?h:null),[S,x]=yi({name:"useViews",state:"focusedView",controlled:s,default:v.current});C.useEffect(()=>{(c.current&&c.current!==n||f.current&&f.current.some(I=>!o.includes(I)))&&(y(o.includes(n)?n:o[0]),f.current=o,c.current=n)},[n,y,h,o]);const w=o.indexOf(h),b=o[w-1]??null,T=o[w+1]??null,E=Bt((I,A)=>{x(A?I:_=>I===_?null:_),l?.(I,A)}),M=Bt(I=>{E(I,!0),I!==h&&(y(I),t&&t(I))}),$=Bt(()=>{T&&M(T)}),D=Bt((I,A,_)=>{const W=A==="finish",V=_?o.indexOf(_)<o.length-1:!!T;if(e(I,W&&V?"partial":A,_),_&&_!==h){const k=o[o.indexOf(_)+1];k&&M(k)}else W&&$()});return{view:h,setView:M,focusedView:S,setFocusedView:E,nextView:T,previousView:b,defaultView:o.includes(n)?n:o[0],goToNextView:$,setValueAndGoToNextView:D}}const Yle=["className","sx"],Gle=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:a})=>{const{onChange:s,open:l,onClose:c}=t,{view:f,views:u,openTo:h,onViewChange:y,viewRenderers:v,timezone:S}=e,x=Bn(e,Yle),{view:w,setView:b,defaultView:T,focusedView:E,setFocusedView:M,setValueAndGoToNextView:$}=vz({view:f,views:u,openTo:h,onChange:s,onViewChange:y,autoFocus:r}),{hasUIView:D,viewModeLookup:I}=C.useMemo(()=>u.reduce((z,F)=>{let H;return v[F]!=null?H="UI":H="field",z.viewModeLookup[F]=H,H==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[v,u]),A=C.useMemo(()=>u.reduce((z,F)=>v[F]!=null&&_se(F)?z+1:z,0),[v,u]),_=I[w],W=Bt(()=>_==="UI"),[V,k]=C.useState(_==="UI"?w:null);return V!==w&&I[w]==="UI"&&k(w),No(()=>{_==="field"&&l&&(c(),setTimeout(()=>{a?.current?.setSelectedSections(w),a?.current?.focusField(w)}))},[w]),No(()=>{if(!l)return;let z=w;_==="field"&&V!=null&&(z=V),z!==T&&I[z]==="UI"&&I[T]==="UI"&&(z=T),z!==w&&b(z),M(z,!0)},[l]),{hasUIView:D,shouldRestoreFocus:W,layoutProps:{views:u,view:V,onViewChange:b},renderCurrentView:()=>{if(V==null)return null;const z=v[V];if(z==null)return null;const F=je({},x,n,t,{views:u,timezone:S,onChange:$,view:V,onViewChange:b,focusedView:E,onFocusedViewChange:M,showViewSwitcher:A>1,timeViewsCount:A});return o?o(v,V,F):z(F)}}};function DD(){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 Kle=(e,t)=>{const[n,r]=C.useState(DD);return No(()=>{const o=()=>{r(DD())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Mle(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Qle=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=Kle(n.views,o),s=Es();return{layoutProps:je({},n,t,{isLandscape:a,isRtl:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Xle(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 bz=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:a,autoFocusView:s,rendererInterceptor:l,fieldRef:c})=>{const f=qle({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=Gle({props:e,additionalViewProps:o,autoFocusView:s,fieldRef:c,propsFromPickerValue:f.viewProps,rendererInterceptor:l}),h=Qle({props:e,wrapperVariant:r,propsFromPickerValue:f.layoutProps,propsFromPickerViews:u.layoutProps}),y=Xle({props:e,pickerValueResponse:f});return{open:f.open,actions:f.actions,fieldProps:f.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:h.layoutProps,contextValue:f.contextValue,ownerState:y}};function xz(e){return cn("MuiPickersLayout",e)}const Au=tn("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Zle(e){return cn("MuiDialogActions",e)}tn("MuiDialogActions",["root","spacing"]);const Jle=e=>{const{classes:t,disableSpacing:n}=e;return sn({root:["root",!n&&"spacing"]},Zle,t)},ece=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}}}]}),tce=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...a}=n,s={...n,disableSpacing:o},l=Jle(s);return m.jsx(ece,{className:Lt(l.root,r),ownerState:s,ref:t,...a})}),nce=["onAccept","onClear","onCancel","onSetToday","actions"];function rce(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,s=Bn(e,nce),l=Ql();if(a==null||a.length===0)return null;const c=a?.map(f=>{switch(f){case"clear":return m.jsx(mo,{onClick:n,children:l.clearButtonLabel},f);case"cancel":return m.jsx(mo,{onClick:r,children:l.cancelButtonLabel},f);case"accept":return m.jsx(mo,{onClick:t,children:l.okButtonLabel},f);case"today":return m.jsx(mo,{onClick:o,children:l.todayButtonLabel},f);default:return null}});return m.jsx(tce,je({},s,{children:c}))}function oce(e){return cn("MuiListItem",e)}tn("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const ace=tn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function ice(e){return cn("MuiListItemSecondaryAction",e)}tn("MuiListItemSecondaryAction",["root","disableGutters"]);const sce=e=>{const{disableGutters:t,classes:n}=e;return sn({root:["root",t&&"disableGutters"]},ice,n)},lce=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}}]}),Sz=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,a=C.useContext(Bl),s={...n,disableGutters:a.disableGutters},l=sce(s);return m.jsx(lce,{className:Lt(l.root,r),ownerState:s,ref:t,...o})});Sz.muiName="ListItemSecondaryAction";const cce=(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]},uce=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:s,hasSecondaryAction:l}=e;return sn({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},oce,n)},dce=Qe("div",{name:"MuiListItem",slot:"Root",overridesResolver:cce})(Wn(({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:{[`& > .${ace.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}}]}))),fce=Qe("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),pce=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:f="li",ContainerProps:{className:u,...h}={},dense:y=!1,disableGutters:v=!1,disablePadding:S=!1,divider:x=!1,secondaryAction:w,slotProps:b={},slots:T={},...E}=n,M=C.useContext(Bl),$=C.useMemo(()=>({dense:y||M.dense||!1,alignItems:r,disableGutters:v}),[r,M.dense,y,v]),D=C.useRef(null),I=C.Children.toArray(o),A=I.length&&Qv(I[I.length-1],["ListItemSecondaryAction"]),_={...n,alignItems:r,dense:$.dense,disableGutters:v,disablePadding:S,divider:x,hasSecondaryAction:A},W=uce(_),V=mr(D,t),k=T.root||l.Root||dce,z=b.root||c.root||{},F={className:Lt(W.root,z.className,a),...E};let H=s||"li";return A?(H=!F.component&&!s?"div":H,f==="li"&&(H==="li"?H="div":F.component==="li"&&(F.component="div")),m.jsx(Bl.Provider,{value:$,children:m.jsxs(fce,{as:f,className:Lt(W.container,u),ref:V,ownerState:_,...h,children:[m.jsx(k,{...z,...!gp(k)&&{as:H,ownerState:{..._,...z.ownerState}},...F,children:I}),I.pop()]})})):m.jsx(Bl.Provider,{value:$,children:m.jsxs(k,{...z,as:H,ref:V,...!gp(k)&&{ownerState:{..._,...z.ownerState}},...F,children:[I,w&&m.jsx(Sz,{children:w})]})})}),gg=36,H0=2,W0=320,hce=280,mT=336,mce=["items","changeImportance","isLandscape","onChange","isValid"],gce=["getValue"];function yce(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,a=Bn(e,mce);if(t==null||t.length===0)return null;const s=t.map(l=>{let{getValue:c}=l,f=Bn(l,gce);const u=c({isValid:o});return je({},f,{label:f.label,onClick:()=>{r(u,n,f)},disabled:!o(u)})});return m.jsx(DL,je({dense:!0,sx:[{maxHeight:mT,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(l=>m.jsx(pce,{children:m.jsx(ez,je({},l))},l.id??l.label))}))}function vce(e){return e.view!==null}const bce=e=>{const{classes:t,isLandscape:n}=e;return sn({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},xz,t)},xce=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:a,view:s,views:l,onViewChange:c,value:f,onChange:u,onSelectShortcut:h,isValid:y,isLandscape:v,disabled:S,readOnly:x,children:w,slots:b,slotProps:T}=e,E=bce(e),M=b?.actionBar??rce,$=xr({elementType:M,externalSlotProps:T?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:a,actions:t==="desktop"?[]:["cancel","accept"]},className:E.actionBar,ownerState:je({},e,{wrapperVariant:t})}),D=m.jsx(M,je({},$)),I=b?.toolbar,A=xr({elementType:I,externalSlotProps:T?.toolbar,additionalProps:{isLandscape:v,onChange:u,value:f,view:s,onViewChange:c,views:l,disabled:S,readOnly:x},className:E.toolbar,ownerState:je({},e,{wrapperVariant:t})}),_=vce(A)&&I?m.jsx(I,je({},A)):null,W=w,V=b?.tabs,k=s&&V?m.jsx(V,je({view:s,onViewChange:c,className:E.tabs},T?.tabs)):null,z=b?.shortcuts??yce,F=xr({elementType:z,externalSlotProps:T?.shortcuts,additionalProps:{isValid:y,isLandscape:v,onChange:h},className:E.shortcuts,ownerState:{isValid:y,isLandscape:v,onChange:h,wrapperVariant:t}}),H=s&&z?m.jsx(z,je({},F)):null;return{toolbar:_,content:W,tabs:k,actionBar:D,shortcuts:H}},Sce=e=>{const{isLandscape:t,classes:n}=e;return sn({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},xz,n)},wce=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",[`& .${Au.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Au.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Au.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Au.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Au.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Au.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Au.shortcuts}`]:{gridColumn:3}}}]}),Cce=Qe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),wz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:s,shortcuts:l}=xce(n),{sx:c,className:f,isLandscape:u,wrapperVariant:h}=n,y=Sce(n);return m.jsxs(wce,{ref:t,sx:c,className:Lt(y.root,f),ownerState:n,children:[u?l:r,u?r:l,m.jsx(Cce,{className:y.contentWrapper,children:h==="desktop"?m.jsxs(C.Fragment,{children:[o,a]}):m.jsxs(C.Fragment,{children:[a,o]})}),s]})}),kce=C.createContext(null);function Cz(e){const{contextValue:t,localeText:n,children:r}=e;return m.jsx(kce.Provider,{value:t,children:m.jsx(Mb,{localeText:n,children:r})})}const Tce=["props","getOpenDialogAriaText"],Ece=["ownerState"],Rce=["ownerState"],Oce=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Bn(e,Tce);const{slots:o,slotProps:a,className:s,sx:l,format:c,formatDensity:f,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:y,timezone:v,name:S,label:x,inputRef:w,readOnly:b,disabled:T,autoFocus:E,localeText:M,reduceAnimations:$}=t,D=C.useRef(null),I=C.useRef(null),A=Rs(),_=a?.toolbar?.hidden??!1,{open:W,actions:V,hasUIView:k,layoutProps:z,renderCurrentView:F,shouldRestoreFocus:H,fieldProps:N,contextValue:X,ownerState:Q}=bz(je({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),te=o.inputAdornment??gz,Z=xr({elementType:te,externalSlotProps:a?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),K=Bn(Z,Ece),ne=o.openPickerButton??tu,le=xr({elementType:ne,externalSlotProps:a?.openPickerButton,additionalProps:{disabled:T||b,onClick:W?V.onClose:V.onOpen,"aria-label":n(N.value),edge:K.position},ownerState:t}),fe=Bn(le,Rce),ae=o.openPickerIcon,se=xr({elementType:ae,externalSlotProps:a?.openPickerIcon,ownerState:Q}),ie=o.field,pe=xr({elementType:ie,externalSlotProps:a?.field,additionalProps:je({},N,_&&{id:A},{readOnly:b,disabled:T,className:s,sx:l,format:c,formatDensity:f,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:y,timezone:v,label:x,name:S,autoFocus:E&&!t.open,focused:W?!0:void 0},w?{inputRef:w}:{}),ownerState:t});k&&(pe.InputProps=je({},pe.InputProps,{ref:D},!t.disableOpenPicker&&{[`${K.position}Adornment`]:m.jsx(te,je({},K,{children:m.jsx(ne,je({},fe,{children:m.jsx(ae,je({},se))}))}))}));const me=je({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},pe.slots),Te=o.layout??wz;let Ce=A;_&&(x?Ce=`${A}-label`:Ce=void 0);const ke=je({},a,{toolbar:je({},a?.toolbar,{titleId:A}),popper:je({"aria-labelledby":Ce},a?.popper)}),ce=mr(I,pe.unstableFieldRef);return{renderPicker:()=>m.jsxs(Cz,{contextValue:X,localeText:M,children:[m.jsx(ie,je({},pe,{slots:me,slotProps:ke,unstableFieldRef:ce})),m.jsx(Ble,je({role:"dialog",placement:"bottom-start",anchorEl:D.current},V,{open:W,slots:o,slotProps:ke,shouldRestoreFocus:H,reduceAnimations:$,children:m.jsx(Te,je({},z,ke?.layout,{slots:o,slotProps:ke,children:F()}))}))]})}},Mce=lr(m.jsx("path",{d:"M7 10l5 5 5-5z"})),$ce=lr(m.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),Pce=lr(m.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Dce=lr(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"}));lr(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"})]}));lr(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"}));lr(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 Ace=lr(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"})),jce=({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},Nce=({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},Ice=(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}},Lce=({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 c=az(e,s),f=cz(e,c.contentType,c.type,s),u=n?f:c.contentType==="digit",h=t!=null&&e.isValid(t);let y=h?e.formatByString(t,s):"",v=null;if(u)if(f)v=y===""?e.formatByString(a,s).length:y.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);v=c.maxLength,h&&(y=dT(sz(hd(y,o),v),o))}return je({},c,{format:s,maxLength:v,value:y,placeholder:Ice(e,r,c,s),hasLeadingZerosInFormat:f,hasLeadingZerosInInput:u,startSeparator:l,endSeparator:"",modified:!1})},zce=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),a=[];let s="";const l=Object.keys(t.formatTokenMap).sort((v,S)=>S.length-v.length),c=/^([a-zA-Z]+)/,f=new RegExp(`^(${l.join("|")})*$`),u=new RegExp(`^(${l.join("|")})`),h=v=>r.find(S=>S.start<=v&&S.end>=v);let y=0;for(;y<n.length;){const v=h(y),S=v!=null,x=c.exec(n.slice(y))?.[1];if(!S&&x!=null&&f.test(x)){let w=x;for(;w.length>0;){const b=u.exec(w)[1];w=w.slice(b.length),a.push(Lce(je({},e,{now:o,token:b,startSeparator:s}))),s=""}y+=x.length}else{const w=n[y];S&&v?.start===y||v?.end===y||(a.length===0?s+=w:a[a.length-1].endSeparator+=w),y+=1}}return a.length===0&&s.length>0&&a.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),a},Fce=({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}),AD=e=>{let t=jce(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Nce(je({},e,{expandedFormat:t})),r=zce(je({},e,{expandedFormat:t,escapedParts:n}));return Fce(je({},e,{sections:r}))},_ce=e=>{const t=Yr(),n=Ql(),r=Cd(),o=Es(),{valueManager:a,fieldValueManager:s,valueType:l,validator:c,internalProps:f,internalProps:{value:u,defaultValue:h,referenceDate:y,onChange:v,format:S,formatDensity:x="dense",selectedSections:w,onSelectedSectionsChange:b,shouldRespectLeadingZeros:T=!1,timezone:E,enableAccessibleFieldDOMStructure:M=!1}}=e,{timezone:$,value:D,handleValueChange:I}=pT({timezone:E,value:u,defaultValue:h,referenceDate:y,onChange:v,valueManager:a}),A=C.useMemo(()=>qse(t),[t]),_=C.useMemo(()=>Zse(t,A,$),[t,A,$]),W=C.useCallback((ae,se=null)=>s.getSectionsFromValue(t,ae,se,ie=>AD({utils:t,localeText:n,localizedDigits:A,format:S,date:ie,formatDensity:x,shouldRespectLeadingZeros:T,enableAccessibleFieldDOMStructure:M,isRtl:o})),[s,S,n,A,o,T,t,x,M]),[V,k]=C.useState(()=>{const ae=W(D),se={sections:ae,value:D,referenceValue:a.emptyValue,tempValueStrAndroid:null},ie=Use(ae),pe=a.getInitialReferenceValue({referenceDate:y,value:D,utils:t,props:f,granularity:ie,timezone:$});return je({},se,{referenceValue:pe})}),[z,F]=yi({controlled:w,default:null,name:"useField",state:"selectedSections"}),H=ae=>{F(ae),b?.(ae)},N=C.useMemo(()=>Qw(z,V.sections),[z,V.sections]),X=N==="all"?0:N,Q=({value:ae,referenceValue:se,sections:ie})=>{if(k(me=>je({},me,{sections:ie,value:ae,referenceValue:se,tempValueStrAndroid:null})),a.areValuesEqual(t,V.value,ae))return;const pe={validationError:c({adapter:r,value:ae,timezone:$,props:f})};I(ae,pe)},te=(ae,se)=>{const ie=[...V.sections];return ie[ae]=je({},ie[ae],{value:se,modified:!0}),ie},Z=()=>{Q({value:a.emptyValue,referenceValue:V.referenceValue,sections:W(a.emptyValue)})},K=()=>{if(X==null)return;const ae=V.sections[X],se=s.getActiveDateManager(t,V,ae),ie=se.getSections(V.sections).filter(Ce=>Ce.value!=="").length===(ae.value===""?0:1),pe=te(X,""),me=ie?null:t.getInvalidDate(),Te=se.getNewValuesFromNewActiveDate(me);Q(je({},Te,{sections:pe}))},ne=ae=>{const se=(me,Te)=>{const Ce=t.parse(me,S);if(Ce==null||!t.isValid(Ce))return null;const ke=AD({utils:t,localeText:n,localizedDigits:A,format:S,date:Ce,formatDensity:x,shouldRespectLeadingZeros:T,enableAccessibleFieldDOMStructure:M,isRtl:o});return RD(t,Ce,ke,Te,!1)},ie=s.parseValueStr(ae,V.referenceValue,se),pe=s.updateReferenceValue(t,ie,V.referenceValue);Q({value:ie,referenceValue:pe,sections:W(ie,V.sections)})},le=({activeSection:ae,newSectionValue:se,shouldGoToNextSection:ie})=>{ie&&X<V.sections.length-1&&H(X+1);const pe=s.getActiveDateManager(t,V,ae),me=te(X,se),Te=pe.getSections(me),Ce=Kse(t,Te,A);let ke,ce;if(Ce!=null&&t.isValid(Ce)){const we=RD(t,Ce,Te,pe.referenceDate,!0);ke=pe.getNewValuesFromNewActiveDate(we),ce=!0}else ke=pe.getNewValuesFromNewActiveDate(Ce),ce=(Ce!=null&&!t.isValid(Ce))!=(pe.date!=null&&!t.isValid(pe.date));return ce?Q(je({},ke,{sections:me})):k(we=>je({},we,ke,{sections:me,tempValueStrAndroid:null}))},fe=ae=>k(se=>je({},se,{tempValueStrAndroid:ae}));return C.useEffect(()=>{const ae=W(V.value);k(se=>je({},se,{sections:ae}))},[S,t.locale,o]),C.useEffect(()=>{let ae;a.areValuesEqual(t,V.value,D)?ae=a.getTimezone(t,V.value)!==a.getTimezone(t,D):ae=!0,ae&&k(se=>je({},se,{value:D,referenceValue:s.updateReferenceValue(t,D,se.referenceValue),sections:W(D)}))},[D]),{state:V,activeSectionIndex:X,parsedSelectedSections:N,setSelectedSections:H,clearValue:Z,clearActiveSection:K,updateSectionValue:le,updateValueFromValueStr:ne,setTempAndroidValueStr:fe,getSectionsFromValue:W,sectionsValueBoundaries:_,localizedDigits:A,timezone:$}},Bce=5e3,$f=e=>e.saveQuery!=null,Uce=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:a})=>{const s=Yr(),[l,c]=C.useState(null),f=Bt(()=>c(null));C.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&f()},[e,l,f]),C.useEffect(()=>{if(l!=null){const v=setTimeout(()=>f(),Bce);return()=>{clearTimeout(v)}}return()=>{}},[l,f]);const u=({keyPressed:v,sectionIndex:S},x,w)=>{const b=v.toLowerCase(),T=e[S];if(l!=null&&(!w||w(l.value))&&l.sectionIndex===S){const M=`${l.value}${b}`,$=x(M,T);if(!$f($))return c({sectionIndex:S,value:M,sectionType:T.type}),$}const E=x(b,T);return $f(E)&&!E.saveQuery?(f(),null):(c({sectionIndex:S,value:b,sectionType:T.type}),$f(E)?null:E)},h=v=>{const S=(w,b,T)=>{const E=b.filter(M=>M.toLowerCase().startsWith(T));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},x=(w,b,T,E)=>{const M=$=>iz(s,a,b.type,$);if(b.contentType==="letter")return S(b.format,M(b.format),w);if(T&&E!=null&&az(s,T).contentType==="letter"){const $=M(T),D=S(T,$,w);return $f(D)?{saveQuery:!1}:je({},D,{sectionValue:E(D.sectionValue,$)})}return{saveQuery:!1}};return u(v,(w,b)=>{switch(b.type){case"month":{const T=E=>TD(s,E,s.formats.month,b.format);return x(w,b,s.formats.month,T)}case"weekDay":{const T=(E,M)=>M.indexOf(E).toString();return x(w,b,s.formats.weekday,T)}case"meridiem":return x(w,b);default:return{saveQuery:!1}}})},y=v=>{const S=(x,w)=>{const b=hd(x,r),T=Number(b),E=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(T>E.maximum)return{saveQuery:!1};if(T<E.minimum)return{saveQuery:!0};const M=T*10>E.maximum||b.length===E.maximum.toString().length;return{sectionValue:lz(s,T,E,r,w),shouldGoToNextSection:M}};return u(v,(x,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return S(x,w);if(w.type==="month"){cz(s,"digit","month","MM");const b=S(x,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if($f(b))return b;const T=TD(s,b.sectionValue,"MM",w.format);return je({},b,{sectionValue:T})}if(w.type==="weekDay"){const b=S(x,w);if($f(b))return b;const T=U0(s,w.format)[Number(b.sectionValue)-1];return je({},b,{sectionValue:T})}return{saveQuery:!1}},x=>kD(x,r))};return{applyCharacterEditing:Bt(v=>{const S=e[v.sectionIndex],x=kD(v.keyPressed,r)?y(je({},v,{keyPressed:dT(v.keyPressed,r)})):h(v);if(x==null){o(null);return}t({activeSection:S,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:f}},Vce=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:a,onFocus:s,onInput:l,onPaste:c,focused:f,autoFocus:u=!1},fieldValueManager:h,applyCharacterEditing:y,resetCharacterQuery:v,setSelectedSections:S,parsedSelectedSections:x,state:w,clearActiveSection:b,clearValue:T,updateSectionValue:E,updateValueFromValueStr:M,sectionOrder:$,areAllSectionsEmpty:D,sectionsValueBoundaries:I}=e,A=C.useRef(null),_=mr(r,A),W=Ql(),V=Yr(),k=Rs(),[z,F]=C.useState(!1),H=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!A.current)return;const ce=document.getSelection();if(!ce)return;if(x==null){ce.rangeCount>0&&A.current.getRoot().contains(ce.getRangeAt(0).startContainer)&&ce.removeAllRanges(),z&&A.current.getRoot().blur();return}if(!A.current.getRoot().contains(ja(document)))return;const we=new window.Range;let Ge;x==="all"?Ge=A.current.getRoot():w.sections[x].type==="empty"?Ge=A.current.getSectionContainer(x):Ge=A.current.getSectionContent(x),we.selectNodeContents(Ge),Ge.focus(),ce.removeAllRanges(),ce.addRange(we)},getActiveSectionIndexFromDOM:()=>{const ce=ja(document);return!ce||!A.current||!A.current.getRoot().contains(ce)?null:A.current.getSectionIndexFromDOMElement(ce)},focusField:(ce=0)=>{if(!A.current||H.getActiveSectionIndexFromDOM()!=null)return;const we=Qw(ce,w.sections);F(!0),A.current.getSectionContent(we).focus()},setSelectedSections:ce=>{if(!A.current)return;const we=Qw(ce,w.sections);F((we==="all"?0:we)!==null),S(ce)},isFieldFocused:()=>{const ce=ja(document);return!!A.current&&A.current.getRoot().contains(ce)}}),[x,S,w.sections,z]),N=Bt(ce=>{if(!A.current)return;const we=w.sections[ce];A.current.getSectionContent(ce).innerHTML=we.value||we.placeholder,H.syncSelectionToDOM()}),X=Bt((ce,...we)=>{ce.isDefaultPrevented()||!A.current||(F(!0),a?.(ce,...we),x==="all"?setTimeout(()=>{const Ge=document.getSelection().getRangeAt(0).startOffset;if(Ge===0){S($.startIndex);return}let Be=0,Ae=0;for(;Ae<Ge&&Be<w.sections.length;){const oe=w.sections[Be];Be+=1,Ae+=`${oe.startSeparator}${oe.value||oe.placeholder}${oe.endSeparator}`.length}S(Be-1)}):z?A.current.getRoot().contains(ce.target)||S($.startIndex):(F(!0),S($.startIndex)))}),Q=Bt(ce=>{if(l?.(ce),!A.current||x!=="all")return;const we=ce.target.textContent??"";A.current.getRoot().innerHTML=w.sections.map(Ge=>`${Ge.startSeparator}${Ge.value||Ge.placeholder}${Ge.endSeparator}`).join(""),H.syncSelectionToDOM(),we.length===0||we.charCodeAt(0)===10?(v(),T(),S("all")):we.length>1?M(we):(x==="all"&&S(0),y({keyPressed:we,sectionIndex:0}))}),te=Bt(ce=>{if(c?.(ce),n||x!=="all"){ce.preventDefault();return}const we=ce.clipboardData.getData("text");ce.preventDefault(),v(),M(we)}),Z=Bt((...ce)=>{s?.(...ce),!(z||!A.current)&&(F(!0),A.current.getSectionIndexFromDOMElement(ja(document))!=null||S($.startIndex))}),K=Bt((...ce)=>{o?.(...ce),setTimeout(()=>{if(!A.current)return;const we=ja(document);!A.current.getRoot().contains(we)&&(F(!1),S(null))})}),ne=Bt(ce=>we=>{we.isDefaultPrevented()||S(ce)}),le=Bt(ce=>{ce.preventDefault()}),fe=Bt(ce=>()=>{S(ce)}),ae=Bt(ce=>{if(ce.preventDefault(),n||t||typeof x!="number")return;const we=w.sections[x],Ge=ce.clipboardData.getData("text"),Be=/^[a-zA-Z]+$/.test(Ge),Ae=/^[0-9]+$/.test(Ge),oe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Ge);we.contentType==="letter"&&Be||we.contentType==="digit"&&Ae||we.contentType==="digit-with-letter"&&oe?(v(),E({activeSection:we,newSectionValue:Ge,shouldGoToNextSection:!0})):!Be&&!Ae&&(v(),M(Ge))}),se=Bt(ce=>{ce.preventDefault(),ce.dataTransfer.dropEffect="none"}),ie=Bt(ce=>{if(!A.current)return;const we=ce.target,Ge=we.textContent??"",Be=A.current.getSectionIndexFromDOMElement(we),Ae=w.sections[Be];if(n||!A.current){N(Be);return}if(Ge.length===0){if(Ae.value===""){N(Be);return}const oe=ce.nativeEvent.inputType;if(oe==="insertParagraph"||oe==="insertLineBreak"){N(Be);return}v(),b();return}y({keyPressed:Ge,sectionIndex:Be}),N(Be)});No(()=>{if(!(!z||!A.current)){if(x==="all")A.current.getRoot().focus();else if(typeof x=="number"){const ce=A.current.getSectionContent(x);ce&&ce.focus()}}},[x,z]);const pe=C.useMemo(()=>w.sections.reduce((ce,we)=>(ce[we.type]=I[we.type]({currentDate:null,contentType:we.contentType,format:we.format}),ce),{}),[I,w.sections]),me=x==="all",Te=C.useMemo(()=>w.sections.map((ce,we)=>{const Ge=!me&&!t&&!n;return{container:{"data-sectionindex":we,onClick:ne(we)},content:{tabIndex:me||we>0?-1:0,contentEditable:!me&&!t&&!n,role:"spinbutton",id:`${k}-${ce.type}`,"aria-labelledby":`${k}-${ce.type}`,"aria-readonly":n,"aria-valuenow":rle(ce,V),"aria-valuemin":pe[ce.type].minimum,"aria-valuemax":pe[ce.type].maximum,"aria-valuetext":ce.value?nle(ce,V):W.empty,"aria-label":W[ce.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:ce.value||ce.placeholder,onInput:ie,onPaste:ae,onFocus:fe(we),onDragOver:se,onMouseUp:le,inputMode:ce.contentType==="letter"?"text":"numeric"},before:{children:ce.startSeparator},after:{children:ce.endSeparator}}}),[w.sections,fe,ae,se,ie,ne,le,t,n,me,W,V,pe,k]),Ce=Bt(ce=>{M(ce.target.value)}),ke=C.useMemo(()=>D?"":h.getV7HiddenInputValueFromSections(w.sections),[D,w.sections,h]);return C.useEffect(()=>{if(A.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(`
|
|
436
|
-
`));u&&A.current&&A.current.getSectionContent($.startIndex).focus()},[]),{interactions:H,returnedValue:{autoFocus:u,readOnly:n,focused:f??z,sectionListRef:_,onBlur:K,onClick:X,onFocus:Z,onInput:Q,onPaste:te,enableAccessibleFieldDOMStructure:!0,elements:Te,tabIndex:x===0?-1:0,contentEditable:me,value:ke,onChange:Ce,areAllSectionsEmpty:D}}},Wf=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Hce=(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],c=fT(l,n?"input-rtl":"input-ltr",t),f=`${l.startSeparator}${c}${l.endSeparator}`,u=Wf(f).length,h=f.length,y=Wf(c),v=o+(y===""?0:c.indexOf(y[0]))+l.startSeparator.length,S=v+y.length;a.push(je({},l,{start:r,end:r+u,startInInput:v,endInInput:S})),r+=u,o+=h}return a},Wce=e=>{const t=Es(),n=C.useRef(void 0),r=C.useRef(void 0),{forwardedProps:{onFocus:o,onClick:a,onPaste:s,onBlur:l,inputRef:c,placeholder:f},internalProps:{readOnly:u=!1,disabled:h=!1},parsedSelectedSections:y,activeSectionIndex:v,state:S,fieldValueManager:x,valueManager:w,applyCharacterEditing:b,resetCharacterQuery:T,updateSectionValue:E,updateValueFromValueStr:M,clearActiveSection:$,clearValue:D,setTempAndroidValueStr:I,setSelectedSections:A,getSectionsFromValue:_,areAllSectionsEmpty:W,localizedDigits:V}=e,k=C.useRef(null),z=mr(c,k),F=C.useMemo(()=>Hce(S.sections,V,t),[S.sections,V,t]),H=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!k.current)return;if(y==null){k.current.scrollLeft&&(k.current.scrollLeft=0);return}if(k.current!==ja(document))return;const se=k.current.scrollTop;if(y==="all")k.current.select();else{const ie=F[y],pe=ie.type==="empty"?ie.startInInput-ie.startSeparator.length:ie.startInInput,me=ie.type==="empty"?ie.endInInput+ie.endSeparator.length:ie.endInInput;(pe!==k.current.selectionStart||me!==k.current.selectionEnd)&&k.current===ja(document)&&k.current.setSelectionRange(pe,me),clearTimeout(r.current),r.current=setTimeout(()=>{k.current&&k.current===ja(document)&&k.current.selectionStart===k.current.selectionEnd&&(k.current.selectionStart!==pe||k.current.selectionEnd!==me)&&H.syncSelectionToDOM()})}k.current.scrollTop=se},getActiveSectionIndexFromDOM:()=>{const se=k.current.selectionStart??0,ie=k.current.selectionEnd??0;if(se===0&&ie===0)return null;const pe=se<=F[0].startInInput?1:F.findIndex(me=>me.startInInput-me.startSeparator.length>se);return pe===-1?F.length-1:pe-1},focusField:(se=0)=>{ja(document)!==k.current&&(k.current?.focus(),A(se))},setSelectedSections:se=>A(se),isFieldFocused:()=>k.current===ja(document)}),[k,y,F,A]),N=()=>{const se=k.current.selectionStart??0;let ie;se<=F[0].startInInput||se>=F[F.length-1].endInInput?ie=1:ie=F.findIndex(me=>me.startInInput-me.startSeparator.length>se);const pe=ie===-1?F.length-1:ie-1;A(pe)},X=Bt((...se)=>{o?.(...se);const ie=k.current;clearTimeout(n.current),n.current=setTimeout(()=>{!ie||ie!==k.current||v==null&&(ie.value.length&&Number(ie.selectionEnd)-Number(ie.selectionStart)===ie.value.length?A("all"):N())})}),Q=Bt((se,...ie)=>{se.isDefaultPrevented()||(a?.(se,...ie),N())}),te=Bt(se=>{if(s?.(se),se.preventDefault(),u||h)return;const ie=se.clipboardData.getData("text");if(typeof y=="number"){const pe=S.sections[y],me=/^[a-zA-Z]+$/.test(ie),Te=/^[0-9]+$/.test(ie),Ce=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ie);if(pe.contentType==="letter"&&me||pe.contentType==="digit"&&Te||pe.contentType==="digit-with-letter"&&Ce){T(),E({activeSection:pe,newSectionValue:ie,shouldGoToNextSection:!0});return}if(me||Te)return}T(),M(ie)}),Z=Bt((...se)=>{l?.(...se),A(null)}),K=Bt(se=>{if(u)return;const ie=se.target.value;if(ie===""){T(),D();return}const pe=se.nativeEvent.data,me=pe&&pe.length>1,Te=me?pe:ie,Ce=Wf(Te);if(y==="all"&&A(v),v==null||me){M(me?pe:Ce);return}let ke;if(y==="all"&&Ce.length===1)ke=Ce;else{const ce=Wf(x.getV6InputValueFromSections(F,V,t));let we=-1,Ge=-1;for(let oe=0;oe<ce.length;oe+=1)we===-1&&ce[oe]!==Ce[oe]&&(we=oe),Ge===-1&&ce[ce.length-oe-1]!==Ce[Ce.length-oe-1]&&(Ge=oe);const Be=F[v];if(we<Be.start||ce.length-Ge-1>Be.end)return;const Ae=Ce.length-ce.length+Be.end-Wf(Be.endSeparator||"").length;ke=Ce.slice(Be.start+Wf(Be.startSeparator||"").length,Ae)}if(ke.length===0){ele()&&I(Te),T(),$();return}b({keyPressed:ke,sectionIndex:v})}),ne=C.useMemo(()=>f!==void 0?f:x.getV6InputValueFromSections(_(w.emptyValue),V,t),[f,x,_,w.emptyValue,V,t]),le=C.useMemo(()=>S.tempValueStrAndroid??x.getV6InputValueFromSections(S.sections,V,t),[S.sections,x,S.tempValueStrAndroid,V,t]);C.useEffect(()=>(k.current&&k.current===ja(document)&&A("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const fe=C.useMemo(()=>v==null||S.sections[v].contentType==="letter"?"text":"numeric",[v,S.sections]),ae=!(k.current&&k.current===ja(document))&&W;return{interactions:H,returnedValue:{readOnly:u,onBlur:Z,onClick:Q,onFocus:X,onPaste:te,inputRef:z,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:fe,autoComplete:"off",value:ae?"":le,onChange:K}}},qce=e=>{const t=Yr(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:a=!1,disabled:s=!1,readOnly:l=!1},forwardedProps:{onKeyDown:c,error:f,clearable:u,onClear:h},fieldValueManager:y,valueManager:v,validator:S}=e,x=Es(),w=_ce(e),{state:b,activeSectionIndex:T,parsedSelectedSections:E,setSelectedSections:M,clearValue:$,clearActiveSection:D,updateSectionValue:I,setTempAndroidValueStr:A,sectionsValueBoundaries:_,localizedDigits:W,timezone:V}=w,k=Uce({sections:b.sections,updateSectionValue:I,sectionsValueBoundaries:_,localizedDigits:W,setTempAndroidValueStr:A,timezone:V}),{resetCharacterQuery:z}=k,F=v.areValuesEqual(t,b.value,v.emptyValue),H=a?Vce:Wce,N=C.useMemo(()=>tle(b.sections,x&&!a),[b.sections,x,a]),{returnedValue:X,interactions:Q}=H(je({},e,w,k,{areAllSectionsEmpty:F,sectionOrder:N})),te=Bt(ae=>{if(c?.(ae),!s)switch(!0){case((ae.ctrlKey||ae.metaKey)&&String.fromCharCode(ae.keyCode)==="A"&&!ae.shiftKey&&!ae.altKey):{ae.preventDefault(),M("all");break}case ae.key==="ArrowRight":{if(ae.preventDefault(),E==null)M(N.startIndex);else if(E==="all")M(N.endIndex);else{const se=N.neighbors[E].rightIndex;se!==null&&M(se)}break}case ae.key==="ArrowLeft":{if(ae.preventDefault(),E==null)M(N.endIndex);else if(E==="all")M(N.startIndex);else{const se=N.neighbors[E].leftIndex;se!==null&&M(se)}break}case ae.key==="Delete":{if(ae.preventDefault(),l)break;E==null||E==="all"?$():D(),z();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ae.key):{if(ae.preventDefault(),l||T==null)break;E==="all"&&M(T);const se=b.sections[T],ie=y.getActiveDateManager(t,b,se),pe=Yse(t,V,se,ae.key,_,W,ie.date,{minutesStep:o});I({activeSection:se,newSectionValue:pe,shouldGoToNextSection:!1});break}}});No(()=>{Q.syncSelectionToDOM()});const{hasValidationError:Z}=mz({props:n,validator:S,timezone:V,value:b.value,onError:n.onError}),K=C.useMemo(()=>f!==void 0?f:Z,[Z,f]);C.useEffect(()=>{!K&&T==null&&z()},[b.referenceValue,T,K]),C.useEffect(()=>{b.tempValueStrAndroid!=null&&T!=null&&(z(),D())},[b.sections]),C.useImperativeHandle(r,()=>({getSections:()=>b.sections,getActiveSectionIndex:Q.getActiveSectionIndexFromDOM,setSelectedSections:Q.setSelectedSections,focusField:Q.focusField,isFieldFocused:Q.isFieldFocused}));const ne=Bt((ae,...se)=>{ae.preventDefault(),h?.(ae,...se),$(),Q.isFieldFocused()?M(N.startIndex):Q.focusField(0)}),le={onKeyDown:te,onClear:ne,error:K,clearable:!!(u&&!F&&!l&&!s)},fe={disabled:s,readOnly:l};return je({},e.forwardedProps,le,fe,X)},Yce=["clearable","onClear","InputProps","sx","slots","slotProps"],Gce=["ownerState"],Kce=e=>{const t=Ql(),{clearable:n,onClear:r,InputProps:o,sx:a,slots:s,slotProps:l}=e,c=Bn(e,Yce),f=s?.clearButton??tu,u=xr({elementType:f,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),h=Bn(u,Gce),y=s?.clearIcon??Ace,v=xr({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return je({},c,{InputProps:je({},o,{endAdornment:m.jsxs(C.Fragment,{children:[n&&m.jsx(gz,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:m.jsx(f,je({},h,{onClick:r,children:m.jsx(y,je({fontSize:"small"},v))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a)?a:[a]]})},Qce=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Xce=(e,t)=>C.useMemo(()=>{const n=je({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return Qce.forEach(o),pz.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),Zce=e=>{const t=Yr(),n=Qg();return je({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:es(t,e.minDate,n.minDate),maxDate:es(t,e.maxDate,n.maxDate)})},Jce=e=>{const t=Zce(e),{forwardedProps:n,internalProps:r}=Xce(t,"date");return qce({forwardedProps:n,internalProps:r,valueManager:sl,fieldValueManager:ale,validator:Xg,valueType:"date"})};function eue(e){return cn("MuiPickersTextField",e)}tn("MuiPickersTextField",["root","focused","disabled","error","required"]);function tue(e){return cn("MuiPickersInputBase",e)}const tp=tn("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function nue(e){return cn("MuiPickersSectionList",e)}const cm=tn("MuiPickersSectionList",["root","section","sectionContent"]),rue=["slots","slotProps","elements","sectionListRef"],kz=Qe("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Tz=Qe("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Ez=Qe("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Rz=Qe("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),oue=e=>{const{classes:t}=e;return sn({root:["root"],section:["section"],sectionContent:["sectionContent"]},nue,t)};function aue(e){const{slots:t,slotProps:n,element:r,classes:o}=e,a=t?.section??Tz,s=xr({elementType:a,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),l=t?.sectionContent??Rz,c=xr({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),f=t?.sectionSeparator??Ez,u=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,je({},s,{children:[m.jsx(f,je({},u)),m.jsx(l,je({},c)),m.jsx(f,je({},h))]}))}const iue=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:o,elements:a,sectionListRef:s}=n,l=Bn(n,rue),c=oue(n),f=C.useRef(null),u=mr(t,f),h=S=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${S} before the mount of the component.`);return f.current};C.useImperativeHandle(s,()=>({getRoot(){return h("getRoot")},getSectionContainer(S){return h("getSectionContainer").querySelector(`.${cm.section}[data-sectionindex="${S}"]`)},getSectionContent(S){return h("getSectionContent").querySelector(`.${cm.section}[data-sectionindex="${S}"] .${cm.sectionContent}`)},getSectionIndexFromDOMElement(S){const x=h("getSectionIndexFromDOMElement");if(S==null||!x.contains(S))return null;let w=null;return S.classList.contains(cm.section)?w=S:S.classList.contains(cm.sectionContent)&&(w=S.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const y=r?.root??kz,v=xr({elementType:y,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:u,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return m.jsx(y,je({},v,{children:v.contentEditable?a.map(({content:S,before:x,after:w})=>`${x.children}${S.children}${w.children}`).join(""):m.jsx(C.Fragment,{children:a.map((S,x)=>m.jsx(aue,{slots:r,slotProps:o,element:S,classes:c},x))})}))}),sue=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],lue=e=>Math.round(e*1e5)/1e5,q0=Qe("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>je({},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:`${lue(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),gT=Qe(kz,{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}}]})),cue=Qe(Tz,{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"})),uue=Qe(Rz,{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"})),due=Qe(Ez,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),fue=Qe("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(je({},Ase)),pue=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:a,readOnly:s,color:l,size:c,endAdornment:f,startAdornment:u}=e,h={root:["root",t&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",a&&"fullWidth",`color${St(l)}`,c==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!f&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return sn(h,tue,o)},yT=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:o,value:a,onChange:s,id:l,endAdornment:c,startAdornment:f,renderSuffix:u,slots:h,slotProps:y,contentEditable:v,tabIndex:S,onInput:x,onPaste:w,onKeyDown:b,name:T,readOnly:E,inputProps:M,inputRef:$,sectionListRef:D}=n,I=Bn(n,sue),A=C.useRef(null),_=mr(t,A),W=mr(M?.ref,$),V=Es(),k=Ci();if(!k)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const z=te=>{if(k.disabled){te.stopPropagation();return}k.onFocus?.(te)};C.useEffect(()=>{k&&k.setAdornedStart(!!f)},[k,f]),C.useEffect(()=>{k&&(o?k.onEmpty():k.onFilled())},[k,o]);const F=je({},n,k,{isRtl:V}),H=pue(F),N=h?.root||q0,X=xr({elementType:N,externalSlotProps:y?.root,externalForwardedProps:I,additionalProps:{"aria-invalid":k.error,ref:_},className:H.root,ownerState:F}),Q=h?.input||gT;return m.jsxs(N,je({},X,{children:[f,m.jsx(iue,{sectionListRef:D,elements:r,contentEditable:v,tabIndex:S,className:H.sectionsContainer,onFocus:z,onBlur:k.onBlur,onInput:x,onPaste:w,onKeyDown:b,slots:{root:Q,section:cue,sectionContent:uue,sectionSeparator:due},slotProps:{root:{ownerState:F},sectionContent:{className:tp.sectionContent},sectionSeparator:({position:te})=>({className:te==="before"?tp.sectionBefore:tp.sectionAfter})}}),c,u?u(je({},k)):null,m.jsx(fue,je({name:T,className:H.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:E,required:k.required,disabled:k.disabled},M,{ref:W}))]}))});function hue(e){return cn("MuiPickersOutlinedInput",e)}const bs=je({},tp,tn("MuiPickersOutlinedInput",["root","notchedOutline","input"])),mue=["children","className","label","notched","shrink"],gue=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}}),jD=Qe("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),yue=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 vue(e){const{className:t,label:n}=e,r=Bn(e,mue),o=n!=null&&n!=="",a=je({},e,{withLabel:o});return m.jsx(gue,je({"aria-hidden":!0,className:t},r,{ownerState:a,children:m.jsx(yue,{ownerState:a,children:o?m.jsx(jD,{children:n}):m.jsx(jD,{className:"notranslate",children:""})})}))}const bue=["label","autoFocus","ownerState","notched"],xue=Qe(q0,{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 .${bs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${bs.focused} .${bs.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${bs.disabled}`]:{[`& .${bs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${bs.error} .${bs.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:{[`&.${bs.focused}:not(.${bs.error}) .${bs.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),Sue=Qe(gT,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),wue=e=>{const{classes:t}=e,n=sn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},hue,t);return je({},t,n)},Oz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:o,notched:a}=n,s=Bn(n,bue),l=Ci(),c=je({},n,o,l,{color:l?.color||"primary"}),f=wue(c);return m.jsx(yT,je({slots:{root:xue,input:Sue},renderSuffix:u=>m.jsx(vue,{shrink:!!(a||u.adornedStart||u.focused||u.filled),notched:!!(a||u.adornedStart||u.focused||u.filled),className:f.notchedOutline,label:r!=null&&r!==""&&l?.required?m.jsxs(C.Fragment,{children:[r," ","*"]}):r,ownerState:c})},s,{label:r,classes:f,ref:t}))});Oz.muiName="Input";function Cue(e){return cn("MuiPickersFilledInput",e)}const ju=je({},tp,tn("MuiPickersFilledInput",["root","underline","input"])),kue=["label","autoFocus","disableUnderline","ownerState"],Tue=Qe(q0,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>zv(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}},[`&.${ju.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ju.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"},[`&.${ju.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ju.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(.${ju.disabled}, .${ju.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ju.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),Eue=Qe(gT,{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}}]}),Rue=e=>{const{classes:t,disableUnderline:n}=e,r=sn({root:["root",!n&&"underline"],input:["input"]},Cue,t);return je({},t,r)},Mz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Bn(n,kue),l=Ci(),c=je({},n,a,l,{color:l?.color||"primary"}),f=Rue(c);return m.jsx(yT,je({slots:{root:Tue,input:Eue},slotProps:{root:{disableUnderline:o}}},s,{label:r,classes:f,ref:t}))});Mz.muiName="Input";function Oue(e){return cn("MuiPickersFilledInput",e)}const um=je({},tp,tn("MuiPickersInput",["root","input"])),Mue=["label","autoFocus","disableUnderline","ownerState"],$ue=Qe(q0,{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"},[`&.${um.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${um.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(.${um.disabled}, .${um.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${um.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),Pue=e=>{const{classes:t,disableUnderline:n}=e,r=sn({root:["root",!n&&"underline"],input:["input"]},Oue,t);return je({},t,r)},$z=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Bn(n,Mue),l=Ci(),c=je({},n,a,l,{disableUnderline:o,color:l?.color||"primary"}),f=Pue(c);return m.jsx(yT,je({slots:{root:$ue}},s,{label:r,classes:f,ref:t}))});$z.muiName="Input";const Due=["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"],Aue={standard:$z,filled:Mz,outlined:Oz},jue=Qe($L,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),Nue=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return sn({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},eue,r)},Iue=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersTextField"}),{onFocus:r,onBlur:o,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:f="outlined",required:u=!1,InputProps:h,inputProps:y,inputRef:v,sectionListRef:S,elements:x,areAllSectionsEmpty:w,onClick:b,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:$,endAdornment:D,startAdornment:I,tabIndex:A,contentEditable:_,focused:W,value:V,onChange:k,fullWidth:z,id:F,name:H,helperText:N,FormHelperTextProps:X,label:Q,InputLabelProps:te}=n,Z=Bn(n,Due),K=C.useRef(null),ne=mr(t,K),le=Rs(F),fe=N&&le?`${le}-helper-text`:void 0,ae=Q&&le?`${le}-label`:void 0,se=je({},n,{color:s,disabled:l,error:c,focused:W,required:u,variant:f}),ie=Nue(se),pe=Aue[f];return m.jsxs(jue,je({className:Lt(ie.root,a),ref:ne,focused:W,onFocus:r,onBlur:o,disabled:l,variant:f,error:c,color:s,fullWidth:z,required:u,ownerState:se},Z,{children:[m.jsx(ML,je({htmlFor:le,id:ae},te,{children:Q})),m.jsx(pe,je({elements:x,areAllSectionsEmpty:w,onClick:b,onKeyDown:T,onKeyUp:E,onInput:$,onPaste:M,endAdornment:D,startAdornment:I,tabIndex:A,contentEditable:_,value:V,onChange:k,id:le,fullWidth:z,inputProps:y,inputRef:v,sectionListRef:S,label:Q,name:H,role:"group","aria-labelledby":ae,"aria-describedby":fe,"aria-live":fe?"polite":void 0},h)),N&&m.jsx(PL,je({id:fe},X,{children:N}))]}))}),Lue=["enableAccessibleFieldDOMStructure"],zue=["InputProps","readOnly"],Fue=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],_ue=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Bn(e,Lue);if(t){const{InputProps:h,readOnly:y}=n,v=Bn(n,zue);return je({},v,{InputProps:je({},h??{},{readOnly:y})})}const{onPaste:r,onKeyDown:o,inputMode:a,readOnly:s,InputProps:l,inputProps:c,inputRef:f}=n,u=Bn(n,Fue);return je({},u,{InputProps:je({},l??{},{readOnly:s}),inputProps:je({},c??{},{inputMode:a,onPaste:r,onKeyDown:o,ref:f})})},Bue=["slots","slotProps","InputProps","inputProps"],Pz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiDateField"}),{slots:r,slotProps:o,InputProps:a,inputProps:s}=n,l=Bn(n,Bue),c=n,f=r?.textField??(e.enableAccessibleFieldDOMStructure?Iue:hr),u=xr({elementType:f,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:t},ownerState:c});u.inputProps=je({},s,u.inputProps),u.InputProps=je({},a,u.InputProps);const h=Jce(u),y=_ue(h),v=Kce(je({},y,{slots:r,slotProps:o}));return m.jsx(f,je({},v))}),Dz=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s,timezone:l})=>{const c=Cd();return C.useCallback(f=>Xg({adapter:c,value:f,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s}})!==null,[c,e,t,n,r,o,a,s,l])},Uue=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return je({},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))),je({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return je({},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 je({},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")}},Vue=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:f,shouldDisableDate:u,timezone:h}=e,y=Yr(),v=C.useRef(Uue(!!f,a,y)).current,S=C.useMemo(()=>sl.getInitialReferenceValue({value:t,utils:y,timezone:h,props:e,referenceDate:n,granularity:Qs.day}),[n,h]),[x,w]=C.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:S,currentMonth:y.startOfMonth(S),slideDirection:"left"});C.useEffect(()=>{w({type:"changeMonthTimezone",newTimezone:y.getTimezone(S)})},[S,y]);const b=C.useCallback(D=>{w(je({type:"changeMonth"},D)),c&&c(D.newMonth)},[c]),T=C.useCallback(D=>{const I=D;y.isSameMonth(I,x.currentMonth)||b({newMonth:y.startOfMonth(I),direction:y.isAfterDay(I,x.currentMonth)?"left":"right"})},[x.currentMonth,b,y]),E=Dz({shouldDisableDate:u,minDate:l,maxDate:s,disableFuture:r,disablePast:o,timezone:h}),M=C.useCallback(()=>{w({type:"finishMonthSwitchingAnimation"})},[]),$=Bt((D,I)=>{E(D)||w({type:"changeFocusedDay",focusedDay:D,withoutMonthSwitchingAnimation:I})});return{referenceDate:S,calendarState:x,changeMonth:T,changeFocusedDay:$,isDateDisabled:E,onMonthSwitchingAnimationEnd:M,handleChangeMonth:b}},Hue=e=>cn("MuiPickersFadeTransitionGroup",e);tn("MuiPickersFadeTransitionGroup",["root"]);const Wue=e=>{const{classes:t}=e;return sn({root:["root"]},Hue,t)},que=Qe(Yg,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Az(e){const t=qr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=Wue(t),l=xd();return o?n:m.jsx(que,{className:Lt(s.root,r),children:m.jsx(fd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},a)})}function Yue(e){return cn("MuiPickersDay",e)}const Nu=tn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Gue=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Kue=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:l,classes:c}=e,f=s&&!l;return sn({root:["root",t&&!f&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&l&&"dayOutsideMonth",f&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Yue,c)},jz=({theme:e})=>je({},e.typography.caption,{width:gg,height:gg,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})`:ks(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ks(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Nu.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Nu.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}},[`&.${Nu.disabled}:not(.${Nu.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nu.disabled}&.${Nu.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${H0}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Nu.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Nz=(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]},Que=Qe(dd,{name:"MuiPickersDay",slot:"Root",overridesResolver:Nz})(jz),Xue=Qe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Nz})(({theme:e})=>je({},jz({theme:e}),{opacity:0,pointerEvents:"none"})),dm=()=>{},Zue=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:f,onClick:u,onDaySelect:h,onFocus:y=dm,onBlur:v=dm,onKeyDown:S=dm,onMouseDown:x=dm,onMouseEnter:w=dm,outsideCurrentMonth:b,selected:T=!1,showDaysOutsideCurrentMonth:E=!1,children:M,today:$=!1}=n,D=Bn(n,Gue),I=je({},n,{autoFocus:r,disabled:s,disableHighlightToday:l,disableMargin:c,selected:T,showDaysOutsideCurrentMonth:E,today:$}),A=Kue(I),_=Yr(),W=C.useRef(null),V=mr(W,t);No(()=>{r&&!s&&!f&&!b&&W.current.focus()},[r,s,f,b]);const k=F=>{x(F),b&&F.preventDefault()},z=F=>{s||h(a),b&&F.currentTarget.focus(),u&&u(F)};return b&&!E?m.jsx(Xue,{className:Lt(A.root,A.hiddenDaySpacingFiller,o),ownerState:I,role:D.role}):m.jsx(Que,je({className:Lt(A.root,o),ref:V,centerRipple:!0,disabled:s,tabIndex:T?0:-1,onKeyDown:F=>S(F,a),onFocus:F=>y(F,a),onBlur:F=>v(F,a),onMouseEnter:F=>w(F,a),onClick:z,onMouseDown:k},D,{ownerState:I,children:M||_.format(a,"dayOfMonth")}))}),Jue=C.memo(Zue),ede=e=>cn("MuiPickersSlideTransition",e),ji=tn("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),tde=["children","className","reduceAnimations","slideDirection","transKey","classes"],nde=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return sn(r,ede,t)},rde=Qe(Yg,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ji["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ji["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ji.slideEnterActive}`]:t.slideEnterActive},{[`.${ji.slideExit}`]:t.slideExit},{[`.${ji["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ji["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},[`& .${ji["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ji["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ji.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ji.slideExit}`]:{transform:"translate(0%)"},[`& .${ji["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ji["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function ode(e){const t=qr({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=Bn(t,tde),l=nde(t),c=xd();if(o)return m.jsx("div",{className:Lt(l.root,r),children:n});const f={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return m.jsx(rde,{className:Lt(l.root,r),childFactory:u=>C.cloneElement(u,{classNames:f}),role:"presentation",children:m.jsx(Yk,je({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:f},s,{children:n}),a)})}const ade=e=>cn("MuiDayCalendar",e);tn("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const ide=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],sde=["ownerState"],lde=e=>{const{classes:t}=e;return sn({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},ade,t)},Iz=(gg+H0*2)*6,cde=Qe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ude=Qe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),dde=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})),fde=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})),pde=Qe(br,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>je({},e.typography.caption,{width:gg,height:gg,padding:0,margin:`0 ${H0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),hde=Qe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Iz}),mde=Qe(ode,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Iz}),gde=Qe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),yde=Qe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${H0}px 0`,display:"flex",justifyContent:"center"});function vde(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:a,currentMonthNumber:s,isViewFocused:l}=e,c=Bn(e,ide);const{disabled:f,disableHighlightToday:u,isMonthSwitchingAnimating:h,showDaysOutsideCurrentMonth:y,slots:v,slotProps:S,timezone:x}=t,w=Yr(),b=V0(x),T=r!==null&&w.isSameDay(n,r),E=o.some(k=>w.isSameDay(k,n)),M=w.isSameDay(n,b),$=v?.day??Jue,D=xr({elementType:$,externalSlotProps:S?.day,additionalProps:je({disableHighlightToday:u,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:h,"data-timestamp":w.toJsDate(n).valueOf()},c),ownerState:je({},t,{day:n,selected:E})}),I=Bn(D,sde),A=C.useMemo(()=>f||a(n),[f,a,n]),_=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]),V=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($,je({},I,{day:n,disabled:A,autoFocus:l&&T,today:M,outsideCurrentMonth:_,isFirstVisibleCell:W,isLastVisibleCell:V,selected:E,tabIndex:T?0:-1,"aria-selected":E,"aria-current":M?"date":void 0}))}function bde(e){const t=qr({props:e,name:"MuiDayCalendar"}),n=Yr(),{onFocusedDayChange:r,className:o,currentMonth:a,selectedDays:s,focusedDay:l,loading:c,onSelectedDaysChange:f,onMonthSwitchingAnimationEnd:u,readOnly:h,reduceAnimations:y,renderLoading:v=()=>m.jsx("span",{children:"..."}),slideDirection:S,TransitionProps:x,disablePast:w,disableFuture:b,minDate:T,maxDate:E,shouldDisableDate:M,shouldDisableMonth:$,shouldDisableYear:D,dayOfWeekFormatter:I=Be=>n.format(Be,"weekdayShort").charAt(0).toUpperCase(),hasFocus:A,onFocusedViewChange:_,gridLabelId:W,displayWeekNumber:V,fixedWeekNumber:k,autoFocus:z,timezone:F}=t,H=V0(F),N=lde(t),X=Es(),Q=Dz({shouldDisableDate:M,shouldDisableMonth:$,shouldDisableYear:D,minDate:T,maxDate:E,disablePast:w,disableFuture:b,timezone:F}),te=Ql(),[Z,K]=yi({name:"DayCalendar",state:"hasFocus",controlled:A,default:z??!1}),[ne,le]=C.useState(()=>l||H),fe=Bt(Be=>{h||f(Be)}),ae=Be=>{Q(Be)||(r(Be),le(Be),_?.(!0),K(!0))},se=Bt((Be,Ae)=>{switch(Be.key){case"ArrowUp":ae(n.addDays(Ae,-7)),Be.preventDefault();break;case"ArrowDown":ae(n.addDays(Ae,7)),Be.preventDefault();break;case"ArrowLeft":{const oe=n.addDays(Ae,X?1:-1),lt=n.addMonths(Ae,X?1:-1),Ne=Gm({utils:n,date:oe,minDate:X?oe:n.startOfMonth(lt),maxDate:X?n.endOfMonth(lt):oe,isDateDisabled:Q,timezone:F});ae(Ne||oe),Be.preventDefault();break}case"ArrowRight":{const oe=n.addDays(Ae,X?-1:1),lt=n.addMonths(Ae,X?-1:1),Ne=Gm({utils:n,date:oe,minDate:X?n.startOfMonth(lt):oe,maxDate:X?oe:n.endOfMonth(lt),isDateDisabled:Q,timezone:F});ae(Ne||oe),Be.preventDefault();break}case"Home":ae(n.startOfWeek(Ae)),Be.preventDefault();break;case"End":ae(n.endOfWeek(Ae)),Be.preventDefault();break;case"PageUp":ae(n.addMonths(Ae,1)),Be.preventDefault();break;case"PageDown":ae(n.addMonths(Ae,-1)),Be.preventDefault();break}}),ie=Bt((Be,Ae)=>ae(Ae)),pe=Bt((Be,Ae)=>{Z&&n.isSameDay(ne,Ae)&&_?.(!1)}),me=n.getMonth(a),Te=n.getYear(a),Ce=C.useMemo(()=>s.filter(Be=>!!Be).map(Be=>n.startOfDay(Be)),[n,s]),ke=`${Te}-${me}`,ce=C.useMemo(()=>C.createRef(),[ke]),we=C.useMemo(()=>{const Be=n.startOfMonth(a),Ae=n.endOfMonth(a);return Q(ne)||n.isAfterDay(ne,Ae)||n.isBeforeDay(ne,Be)?Gm({utils:n,date:ne,minDate:Be,maxDate:Ae,disablePast:w,disableFuture:b,isDateDisabled:Q,timezone:F}):ne},[a,b,w,ne,Q,n,F]),Ge=C.useMemo(()=>{const Be=n.getWeekArray(a);let Ae=n.addMonths(a,1);for(;k&&Be.length<k;){const oe=n.getWeekArray(Ae),lt=n.isSameDay(Be[Be.length-1][0],oe[0][0]);oe.slice(lt?1:0).forEach(Ne=>{Be.length<k&&Be.push(Ne)}),Ae=n.addMonths(Ae,1)}return Be},[a,k,n]);return m.jsxs(cde,{role:"grid","aria-labelledby":W,className:N.root,children:[m.jsxs(ude,{role:"row",className:N.header,children:[V&&m.jsx(fde,{variant:"caption",role:"columnheader","aria-label":te.calendarWeekNumberHeaderLabel,className:N.weekNumberLabel,children:te.calendarWeekNumberHeaderText}),zse(n,H).map((Be,Ae)=>m.jsx(dde,{variant:"caption",role:"columnheader","aria-label":n.format(Be,"weekday"),className:N.weekDayLabel,children:I(Be)},Ae.toString()))]}),c?m.jsx(hde,{className:N.loadingContainer,children:v()}):m.jsx(mde,je({transKey:ke,onExited:u,reduceAnimations:y,slideDirection:S,className:Lt(o,N.slideTransition)},x,{nodeRef:ce,children:m.jsx(gde,{ref:ce,role:"rowgroup",className:N.monthContainer,children:Ge.map((Be,Ae)=>m.jsxs(yde,{role:"row",className:N.weekContainer,"aria-rowindex":Ae+1,children:[V&&m.jsx(pde,{className:N.weekNumber,role:"rowheader","aria-label":te.calendarWeekNumberAriaLabelText(n.getWeekNumber(Be[0])),children:te.calendarWeekNumberText(n.getWeekNumber(Be[0]))}),Be.map((oe,lt)=>m.jsx(vde,{parentProps:t,day:oe,selectedDays:Ce,focusableDay:we,onKeyDown:se,onFocus:ie,onBlur:pe,onDaySelect:fe,isDateDisabled:Q,currentMonthNumber:me,isViewFocused:Z,"aria-colindex":lt+1},oe.toString()))]},`week-${Be[0]}`))})}))]})}function xde(e){return cn("MuiPickersMonth",e)}const kv=tn("MuiPickersMonth",["root","monthButton","disabled","selected"]),Sde=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],wde=e=>{const{disabled:t,selected:n,classes:r}=e;return sn({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},xde,r)},Cde=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%"}}]}),kde=Qe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${kv.disabled}`]:t.disabled},{[`&.${kv.selected}`]:t.selected}]})(({theme:e})=>je({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})`:ks(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ks(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${kv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${kv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Tde=C.memo(function(e){const t=qr({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:c,onClick:f,onKeyDown:u,onFocus:h,onBlur:y,"aria-current":v,"aria-label":S,slots:x,slotProps:w}=t,b=Bn(t,Sde),T=C.useRef(null),E=wde(t);No(()=>{n&&T.current?.focus()},[n]);const M=x?.monthButton??kde,$=xr({elementType:M,externalSlotProps:w?.monthButton,additionalProps:{children:o,disabled:a,tabIndex:c,ref:T,type:"button",role:"radio","aria-current":v,"aria-checked":s,"aria-label":S,onClick:D=>f(D,l),onKeyDown:D=>u(D,l),onFocus:D=>h(D,l),onBlur:D=>y(D,l)},ownerState:t,className:E.monthButton});return m.jsx(Cde,je({className:Lt(E.root,r),ownerState:t},b,{children:m.jsx(M,je({},$))}))});function Ede(e){return cn("MuiMonthCalendar",e)}tn("MuiMonthCalendar",["root"]);const Rde=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Ode=e=>{const{classes:t}=e;return sn({root:["root"]},Ede,t)};function Mde(e,t){const n=Yr(),r=Qg(),o=qr({props:e,name:t});return je({disableFuture:!1,disablePast:!1},o,{minDate:es(n,o.minDate,r.minDate),maxDate:es(n,o.maxDate,r.maxDate)})}const $de=Qe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:W0,boxSizing:"border-box"}),Pde=C.forwardRef(function(e,t){const n=Mde(e,"MuiMonthCalendar"),{className:r,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:f,maxDate:u,minDate:h,onChange:y,shouldDisableMonth:v,readOnly:S,autoFocus:x=!1,onMonthFocus:w,hasFocus:b,onFocusedViewChange:T,monthsPerRow:E=3,timezone:M,gridLabelId:$,slots:D,slotProps:I}=n,A=Bn(n,Rde),{value:_,handleValueChange:W,timezone:V}=hT({name:"MonthCalendar",timezone:M,value:o,defaultValue:a,referenceDate:s,onChange:y,valueManager:sl}),k=V0(V),z=Es(),F=Yr(),H=C.useMemo(()=>sl.getInitialReferenceValue({value:_,utils:F,props:n,timezone:V,referenceDate:s,granularity:Qs.month}),[]),N=n,X=Ode(N),Q=C.useMemo(()=>F.getMonth(k),[F,k]),te=C.useMemo(()=>_!=null?F.getMonth(_):null,[_,F]),[Z,K]=C.useState(()=>te||F.getMonth(H)),[ne,le]=yi({name:"MonthCalendar",state:"hasFocus",controlled:b,default:x??!1}),fe=Bt(Ce=>{le(Ce),T&&T(Ce)}),ae=C.useCallback(Ce=>{const ke=F.startOfMonth(f&&F.isAfter(k,h)?k:h),ce=F.startOfMonth(c&&F.isBefore(k,u)?k:u),we=F.startOfMonth(Ce);return F.isBefore(we,ke)||F.isAfter(we,ce)?!0:v?v(we):!1},[c,f,u,h,k,v,F]),se=Bt((Ce,ke)=>{if(S)return;const ce=F.setMonth(_??H,ke);W(ce)}),ie=Bt(Ce=>{ae(F.setMonth(_??H,Ce))||(K(Ce),fe(!0),w&&w(Ce))});C.useEffect(()=>{K(Ce=>te!==null&&Ce!==te?te:Ce)},[te]);const pe=Bt((Ce,ke)=>{switch(Ce.key){case"ArrowUp":ie((12+ke-3)%12),Ce.preventDefault();break;case"ArrowDown":ie((12+ke+3)%12),Ce.preventDefault();break;case"ArrowLeft":ie((12+ke+(z?1:-1))%12),Ce.preventDefault();break;case"ArrowRight":ie((12+ke+(z?-1:1))%12),Ce.preventDefault();break}}),me=Bt((Ce,ke)=>{ie(ke)}),Te=Bt((Ce,ke)=>{Z===ke&&fe(!1)});return m.jsx($de,je({ref:t,className:Lt(X.root,r),ownerState:N,role:"radiogroup","aria-labelledby":$},A,{children:cT(F,_??H).map(Ce=>{const ke=F.getMonth(Ce),ce=F.format(Ce,"monthShort"),we=F.format(Ce,"month"),Ge=ke===te,Be=l||ae(Ce);return m.jsx(Tde,{selected:Ge,value:ke,onClick:se,onKeyDown:pe,autoFocus:ne&&ke===Z,disabled:Be,tabIndex:ke===Z&&!Be?0:-1,onFocus:me,onBlur:Te,"aria-current":Q===ke?"date":void 0,"aria-label":we,monthsPerRow:E,slots:D,slotProps:I,children:ce},ce)})}))});function Dde(e){return cn("MuiPickersYear",e)}const Tv=tn("MuiPickersYear",["root","yearButton","selected","disabled"]),Ade=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],jde=e=>{const{disabled:t,selected:n,classes:r}=e;return sn({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Dde,r)},Nde=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%"}}]}),Ide=Qe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Tv.disabled}`]:t.disabled},{[`&.${Tv.selected}`]:t.selected}]})(({theme:e})=>je({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})`:ks(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ks(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Tv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Tv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Lde=C.memo(function(e){const t=qr({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:c,onClick:f,onKeyDown:u,onFocus:h,onBlur:y,"aria-current":v,slots:S,slotProps:x}=t,w=Bn(t,Ade),b=C.useRef(null),T=jde(t);No(()=>{n&&b.current?.focus()},[n]);const E=S?.yearButton??Ide,M=xr({elementType:E,externalSlotProps:x?.yearButton,additionalProps:{children:o,disabled:a,tabIndex:c,ref:b,type:"button",role:"radio","aria-current":v,"aria-checked":s,onClick:$=>f($,l),onKeyDown:$=>u($,l),onFocus:$=>h($,l),onBlur:$=>y($,l)},ownerState:t,className:T.yearButton});return m.jsx(Nde,je({className:Lt(T.root,r),ownerState:t},w,{children:m.jsx(E,je({},M))}))});function zde(e){return cn("MuiYearCalendar",e)}tn("MuiYearCalendar",["root"]);const Fde=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],_de=e=>{const{classes:t}=e;return sn({root:["root"]},zde,t)};function Bde(e,t){const n=Yr(),r=Qg(),o=qr({props:e,name:t});return je({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:es(n,o.minDate,r.minDate),maxDate:es(n,o.maxDate,r.maxDate)})}const Ude=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:W0,maxHeight:hce,boxSizing:"border-box",position:"relative"}),Vde=C.forwardRef(function(e,t){const n=Bde(e,"MuiYearCalendar"),{autoFocus:r,className:o,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:f,disablePast:u,maxDate:h,minDate:y,onChange:v,readOnly:S,shouldDisableYear:x,onYearFocus:w,hasFocus:b,onFocusedViewChange:T,yearsOrder:E="asc",yearsPerRow:M,timezone:$,gridLabelId:D,slots:I,slotProps:A}=n,_=Bn(n,Fde),{value:W,handleValueChange:V,timezone:k}=hT({name:"YearCalendar",timezone:$,value:a,defaultValue:s,referenceDate:l,onChange:v,valueManager:sl}),z=V0(k),F=Es(),H=Yr(),N=C.useMemo(()=>sl.getInitialReferenceValue({value:W,utils:H,props:n,timezone:k,referenceDate:l,granularity:Qs.year}),[]),X=n,Q=_de(X),te=C.useMemo(()=>H.getYear(z),[H,z]),Z=C.useMemo(()=>W!=null?H.getYear(W):null,[W,H]),[K,ne]=C.useState(()=>Z||H.getYear(N)),[le,fe]=yi({name:"YearCalendar",state:"hasFocus",controlled:b,default:r??!1}),ae=Bt(Ae=>{fe(Ae),T&&T(Ae)}),se=C.useCallback(Ae=>{if(u&&H.isBeforeYear(Ae,z)||f&&H.isAfterYear(Ae,z)||y&&H.isBeforeYear(Ae,y)||h&&H.isAfterYear(Ae,h))return!0;if(!x)return!1;const oe=H.startOfYear(Ae);return x(oe)},[f,u,h,y,z,x,H]),ie=Bt((Ae,oe)=>{if(S)return;const lt=H.setYear(W??N,oe);V(lt)}),pe=Bt(Ae=>{se(H.setYear(W??N,Ae))||(ne(Ae),ae(!0),w?.(Ae))});C.useEffect(()=>{ne(Ae=>Z!==null&&Ae!==Z?Z:Ae)},[Z]);const me=E!=="desc"?M*1:M*-1,Te=F&&E==="asc"||!F&&E==="desc"?-1:1,Ce=Bt((Ae,oe)=>{switch(Ae.key){case"ArrowUp":pe(oe-me),Ae.preventDefault();break;case"ArrowDown":pe(oe+me),Ae.preventDefault();break;case"ArrowLeft":pe(oe-Te),Ae.preventDefault();break;case"ArrowRight":pe(oe+Te),Ae.preventDefault();break}}),ke=Bt((Ae,oe)=>{pe(oe)}),ce=Bt((Ae,oe)=>{K===oe&&ae(!1)}),we=C.useRef(null),Ge=mr(t,we);C.useEffect(()=>{if(r||we.current===null)return;const Ae=we.current.querySelector('[tabindex="0"]');if(!Ae)return;const oe=Ae.offsetHeight,lt=Ae.offsetTop,Ne=we.current.clientHeight,et=we.current.scrollTop,mt=lt+oe;oe>Ne||lt<et||(we.current.scrollTop=mt-Ne/2-oe/2)},[r]);const Be=H.getYearRange([y,h]);return E==="desc"&&Be.reverse(),m.jsx(Ude,je({ref:Ge,className:Lt(Q.root,o),ownerState:X,role:"radiogroup","aria-labelledby":D},_,{children:Be.map(Ae=>{const oe=H.getYear(Ae),lt=oe===Z,Ne=c||se(Ae);return m.jsx(Lde,{selected:lt,value:oe,onClick:ie,onKeyDown:Ce,autoFocus:le&&oe===K,disabled:Ne,tabIndex:oe===K&&!Ne?0:-1,onFocus:ke,onBlur:ce,"aria-current":te===oe?"date":void 0,yearsPerRow:M,slots:I,slotProps:A,children:H.format(Ae,"year")},H.format(Ae,"year"))})}))}),Hde=e=>cn("MuiPickersCalendarHeader",e),Wde=tn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function qde(e){return cn("MuiPickersArrowSwitcher",e)}tn("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Yde=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Gde=["ownerState"],Kde=["ownerState"],Qde=Qe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Xde=Qe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ND=Qe(tu,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Zde=e=>{const{classes:t}=e;return sn({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},qde,t)},Jde=C.forwardRef(function(e,t){const n=Es(),r=qr({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:f,onGoToNext:u,nextLabel:h,isPreviousDisabled:y,isPreviousHidden:v,onGoToPrevious:S,previousLabel:x,labelId:w}=r,b=Bn(r,Yde),T=r,E=Zde(T),M={isDisabled:c,isHidden:f,goTo:u,label:h},$={isDisabled:y,isHidden:v,goTo:S,label:x},D=s?.previousIconButton??ND,I=xr({elementType:D,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:$.label,"aria-label":$.label,disabled:$.isDisabled,edge:"end",onClick:$.goTo},ownerState:je({},T,{hidden:$.isHidden}),className:Lt(E.button,E.previousIconButton)}),A=s?.nextIconButton??ND,_=xr({elementType:A,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:je({},T,{hidden:M.isHidden}),className:Lt(E.button,E.nextIconButton)}),W=s?.leftArrowIcon??$ce,V=xr({elementType:W,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:E.leftArrowIcon}),k=Bn(V,Gde),z=s?.rightArrowIcon??Pce,F=xr({elementType:z,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:E.rightArrowIcon}),H=Bn(F,Kde);return m.jsxs(Qde,je({ref:t,className:Lt(E.root,a),ownerState:T},b,{children:[m.jsx(D,je({},I,{children:n?m.jsx(z,je({},H)):m.jsx(W,je({},k))})),o?m.jsx(br,{variant:"subtitle1",component:"span",id:w,children:o}):m.jsx(Xde,{className:E.spacer,ownerState:T}),m.jsx(A,je({},_,{children:n?m.jsx(W,je({},k)):m.jsx(z,je({},H))}))]}))});function efe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Yr();return C.useMemo(()=>{const a=o.date(void 0,r),s=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(s,e)},[t,n,e,o,r])}function tfe(e,{disablePast:t,minDate:n,timezone:r}){const o=Yr();return C.useMemo(()=>{const a=o.date(void 0,r),s=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(s,e)},[t,n,e,o,r])}const nfe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],rfe=["ownerState"],ofe=e=>{const{classes:t}=e;return sn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Hde,t)},afe=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}),ife=Qe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>je({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),sfe=Qe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),lfe=Qe(tu,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Wde.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),cfe=Qe(Mce,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),ufe=C.forwardRef(function(e,t){const n=Ql(),r=Yr(),o=qr({props:e,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:f,disablePast:u,maxDate:h,minDate:y,onMonthChange:v,onViewChange:S,view:x,reduceAnimations:w,views:b,labelId:T,className:E,timezone:M,format:$=`${r.formats.month} ${r.formats.year}`}=o,D=Bn(o,nfe),I=o,A=ofe(o),_=a?.switchViewButton??lfe,W=xr({elementType:_,externalSlotProps:s?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(x)},ownerState:I,className:A.switchViewButton}),V=a?.switchViewIcon??cfe,k=xr({elementType:V,externalSlotProps:s?.switchViewIcon,ownerState:I,className:A.switchViewIcon}),z=Bn(k,rfe),F=()=>v(r.addMonths(l,1),"left"),H=()=>v(r.addMonths(l,-1),"right"),N=efe(l,{disableFuture:f,maxDate:h,timezone:M}),X=tfe(l,{disablePast:u,minDate:y,timezone:M}),Q=()=>{if(!(b.length===1||!S||c))if(b.length===2)S(b.find(Z=>Z!==x)||b[0]);else{const Z=b.indexOf(x)!==0?0:1;S(b[Z])}};if(b.length===1&&b[0]==="year")return null;const te=r.formatByString(l,$);return m.jsxs(afe,je({},D,{ownerState:I,className:Lt(A.root,E),ref:t,children:[m.jsxs(ife,{role:"presentation",onClick:Q,ownerState:I,"aria-live":"polite",className:A.labelContainer,children:[m.jsx(Az,{reduceAnimations:w,transKey:te,children:m.jsx(sfe,{id:T,ownerState:I,className:A.label,children:te})}),b.length>1&&!c&&m.jsx(_,je({},W,{children:m.jsx(V,je({},z))}))]}),m.jsx(fd,{in:x==="day",appear:!w,enter:!w,children:m.jsx(Jde,{slots:a,slotProps:s,onGoToPrevious:H,isPreviousDisabled:X,previousLabel:n.previousMonth,onGoToNext:F,isNextDisabled:N,nextLabel:n.nextMonth})})]}))}),dfe=Qe("div")({overflow:"hidden",width:W0,maxHeight:mT,display:"flex",flexDirection:"column",margin:"0 auto"}),ffe=e=>cn("MuiDateCalendar",e);tn("MuiDateCalendar",["root","viewTransitionContainer"]);const pfe=["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"],hfe=e=>{const{classes:t}=e;return sn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ffe,t)};function mfe(e,t){const n=Yr(),r=Qg(),o=yz(),a=qr({props:e,name:t});return je({},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:es(n,a.minDate,r.minDate),maxDate:es(n,a.maxDate,r.maxDate)})}const gfe=Qe(dfe,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:mT}),yfe=Qe(Az,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),vfe=C.forwardRef(function(e,t){const n=Yr(),r=Rs(),o=mfe(e,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:f,disableFuture:u,disablePast:h,onChange:y,onYearChange:v,onMonthChange:S,reduceAnimations:x,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:T,view:E,views:M,openTo:$,className:D,disabled:I,readOnly:A,minDate:_,maxDate:W,disableHighlightToday:V,focusedView:k,onFocusedViewChange:z,showDaysOutsideCurrentMonth:F,fixedWeekNumber:H,dayOfWeekFormatter:N,slots:X,slotProps:Q,loading:te,renderLoading:Z,displayWeekNumber:K,yearsOrder:ne,yearsPerRow:le,monthsPerRow:fe,timezone:ae}=o,se=Bn(o,pfe),{value:ie,handleValueChange:pe,timezone:me}=hT({name:"DateCalendar",timezone:ae,value:l,defaultValue:c,referenceDate:f,onChange:y,valueManager:sl}),{view:Te,setView:Ce,focusedView:ke,setFocusedView:ce,goToNextView:we,setValueAndGoToNextView:Ge}=vz({view:E,views:M,openTo:$,onChange:pe,onViewChange:s,autoFocus:a,focusedView:k,onFocusedViewChange:z}),{referenceDate:Be,calendarState:Ae,changeFocusedDay:oe,changeMonth:lt,handleChangeMonth:Ne,isDateDisabled:et,onMonthSwitchingAnimationEnd:mt}=Vue({value:ie,referenceDate:f,reduceAnimations:x,onMonthChange:S,minDate:_,maxDate:W,shouldDisableDate:w,disablePast:h,disableFuture:u,timezone:me}),Wt=I&&ie||_,zt=I&&ie||W,tt=`${r}-grid-label`,Je=ke!==null,ct=X?.calendarHeader??ufe,Ie=xr({elementType:ct,externalSlotProps:Q?.calendarHeader,additionalProps:{views:M,view:Te,currentMonth:Ae.currentMonth,onViewChange:Ce,onMonthChange:(mn,$n)=>Ne({newMonth:mn,direction:$n}),minDate:Wt,maxDate:zt,disabled:I,disablePast:h,disableFuture:u,reduceAnimations:x,timezone:me,labelId:tt},ownerState:o}),he=Bt(mn=>{const $n=n.startOfMonth(mn),_n=n.endOfMonth(mn),Un=et(mn)?Gm({utils:n,date:mn,minDate:n.isBefore(_,$n)?$n:_,maxDate:n.isAfter(W,_n)?_n:W,disablePast:h,disableFuture:u,isDateDisabled:et,timezone:me}):mn;Un?(Ge(Un,"finish"),S?.($n)):(we(),lt($n)),oe(Un,!0)}),qe=Bt(mn=>{const $n=n.startOfYear(mn),_n=n.endOfYear(mn),Un=et(mn)?Gm({utils:n,date:mn,minDate:n.isBefore(_,$n)?$n:_,maxDate:n.isAfter(W,_n)?_n:W,disablePast:h,disableFuture:u,isDateDisabled:et,timezone:me}):mn;Un?(Ge(Un,"finish"),v?.(Un)):(we(),lt($n)),oe(Un,!0)}),De=Bt(mn=>pe(mn&&Ob(n,mn,ie??Be),"finish",Te));C.useEffect(()=>{ie!=null&&n.isValid(ie)&<(ie)},[ie]);const wt=o,Ct=hfe(wt),yt={disablePast:h,disableFuture:u,maxDate:W,minDate:_},st={disableHighlightToday:V,readOnly:A,disabled:I,timezone:me,gridLabelId:tt,slots:X,slotProps:Q},jt=C.useRef(Te);C.useEffect(()=>{jt.current!==Te&&(ke===jt.current&&ce(Te,!0),jt.current=Te)},[ke,ce,Te]);const qt=C.useMemo(()=>[ie],[ie]);return m.jsxs(gfe,je({ref:t,className:Lt(Ct.root,D),ownerState:wt},se,{children:[m.jsx(ct,je({},Ie,{slots:X,slotProps:Q})),m.jsx(yfe,{reduceAnimations:x,className:Ct.viewTransitionContainer,transKey:Te,ownerState:wt,children:m.jsxs("div",{children:[Te==="year"&&m.jsx(Vde,je({},yt,st,{value:ie,onChange:qe,shouldDisableYear:T,hasFocus:Je,onFocusedViewChange:mn=>ce("year",mn),yearsOrder:ne,yearsPerRow:le,referenceDate:Be})),Te==="month"&&m.jsx(Pde,je({},yt,st,{hasFocus:Je,className:D,value:ie,onChange:he,shouldDisableMonth:b,onFocusedViewChange:mn=>ce("month",mn),monthsPerRow:fe,referenceDate:Be})),Te==="day"&&m.jsx(bde,je({},Ae,yt,st,{onMonthSwitchingAnimationEnd:mt,onFocusedDayChange:oe,reduceAnimations:x,selectedDays:qt,onSelectedDaysChange:De,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:T,hasFocus:Je,onFocusedViewChange:mn=>ce("day",mn),showDaysOutsideCurrentMonth:F,fixedWeekNumber:H,dayOfWeekFormatter:N,displayWeekNumber:K,loading:te,renderLoading:Z}))]})})]}))}),np=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:c,className:f,classes:u,disableFuture:h,disablePast:y,minDate:v,maxDate:S,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:b,reduceAnimations:T,onMonthChange:E,monthsPerRow:M,onYearChange:$,yearsOrder:D,yearsPerRow:I,slots:A,slotProps:_,loading:W,renderLoading:V,disableHighlightToday:k,readOnly:z,disabled:F,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:N,sx:X,autoFocus:Q,fixedWeekNumber:te,displayWeekNumber:Z,timezone:K})=>m.jsx(vfe,{view:e,onViewChange:t,views:n.filter(SD),focusedView:r&&SD(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:c,className:f,classes:u,disableFuture:h,disablePast:y,minDate:v,maxDate:S,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:b,reduceAnimations:T,onMonthChange:E,monthsPerRow:M,onYearChange:$,yearsOrder:D,yearsPerRow:I,slots:A,slotProps:_,loading:W,renderLoading:V,disableHighlightToday:k,readOnly:z,disabled:F,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:N,sx:X,autoFocus:Q,fixedWeekNumber:te,displayWeekNumber:Z,timezone:K}),Lz=C.forwardRef(function(e,t){const n=Ql(),r=Yr(),o=fz(e,"MuiDesktopDatePicker"),a=je({day:np,month:np,year:np},o.viewRenderers),s=je({},o,{viewRenderers:a,format:uT(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:je({openPickerIcon:Dce,field:Pz},o.slots),slotProps:je({},o.slotProps,{field:c=>je({},N0(o.slotProps?.field,c),hz(o),{ref:t}),toolbar:je({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:l}=Oce({props:s,valueManager:sl,valueType:"date",getOpenDialogAriaText:uz({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Xg});return l()});Lz.propTypes={autoFocus:ot.bool,className:ot.string,closeOnSelect:ot.bool,dayOfWeekFormatter:ot.func,defaultValue:ot.object,disabled:ot.bool,disableFuture:ot.bool,disableHighlightToday:ot.bool,disableOpenPicker:ot.bool,disablePast:ot.bool,displayWeekNumber:ot.bool,enableAccessibleFieldDOMStructure:ot.any,fixedWeekNumber:ot.number,format:ot.string,formatDensity:ot.oneOf(["dense","spacious"]),inputRef:EL,label:ot.node,loading:ot.bool,localeText:ot.object,maxDate:ot.object,minDate:ot.object,monthsPerRow:ot.oneOf([3,4]),name:ot.string,onAccept:ot.func,onChange:ot.func,onClose:ot.func,onError:ot.func,onMonthChange:ot.func,onOpen:ot.func,onSelectedSectionsChange:ot.func,onViewChange:ot.func,onYearChange:ot.func,open:ot.bool,openTo:ot.oneOf(["day","month","year"]),orientation:ot.oneOf(["landscape","portrait"]),readOnly:ot.bool,reduceAnimations:ot.bool,referenceDate:ot.object,renderLoading:ot.func,selectedSections:ot.oneOfType([ot.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),ot.number]),shouldDisableDate:ot.func,shouldDisableMonth:ot.func,shouldDisableYear:ot.func,showDaysOutsideCurrentMonth:ot.bool,slotProps:ot.object,slots:ot.object,sx:ot.oneOfType([ot.arrayOf(ot.oneOfType([ot.func,ot.object,ot.bool])),ot.func,ot.object]),timezone:ot.string,value:ot.object,view:ot.oneOf(["day","month","year"]),viewRenderers:ot.shape({day:ot.func,month:ot.func,year:ot.func}),views:ot.arrayOf(ot.oneOf(["day","month","year"]).isRequired),yearsOrder:ot.oneOf(["asc","desc"]),yearsPerRow:ot.oneOf([3,4])};function bfe(e){return cn("MuiDialogContent",e)}tn("MuiDialogContent",["root","dividers"]);const xfe=tn("MuiDialogTitle",["root"]),Sfe=e=>{const{classes:t,dividers:n}=e;return sn({root:["root",n&&"dividers"]},bfe,t)},wfe=Qe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Wn(({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:{[`.${xfe.root} + &`]:{paddingTop:0}}}]}))),Cfe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...a}=n,s={...n,dividers:o},l=Sfe(s);return m.jsx(wfe,{className:Lt(l.root,r),ownerState:s,ref:t,...a})});function kfe(e){return cn("MuiDialog",e)}const Km=tn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Tfe=C.createContext({}),Efe=Qe(LL,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Rfe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${St(n)}`],paper:["paper",`paperScroll${St(n)}`,`paperWidth${St(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return sn(s,kfe,t)},Ofe=Qe(zL,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Mfe=Qe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${St(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"}}}]}),$fe=Qe(Sd,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${St(n.scroll)}`],t[`paperWidth${St(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Wn(({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)`,[`&.${Km.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}`,[`&.${Km.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,[`&.${Km.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Pfe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiDialog"}),r=xd(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:f,children:u,className:h,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:S=!1,maxWidth:x="sm",onClick:w,onClose:b,open:T,PaperComponent:E=Sd,PaperProps:M={},scroll:$="paper",slots:D={},slotProps:I={},TransitionComponent:A=fd,transitionDuration:_=o,TransitionProps:W,...V}=n,k={...n,disableEscapeKeyDown:y,fullScreen:v,fullWidth:S,maxWidth:x,scroll:$},z=Rfe(k),F=C.useRef(),H=ke=>{F.current=ke.target===ke.currentTarget},N=ke=>{w&&w(ke),F.current&&(F.current=null,b&&b(ke,"backdropClick"))},X=Rs(s),Q=C.useMemo(()=>({titleId:X}),[X]),te={transition:A,...D},Z={transition:W,paper:M,backdrop:f,...I},K={slots:te,slotProps:Z},[ne,le]=sr("root",{elementType:Ofe,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:k,className:Lt(z.root,h),ref:t}),[fe,ae]=sr("backdrop",{elementType:Efe,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:k}),[se,ie]=sr("paper",{elementType:$fe,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:k,className:Lt(z.paper,M.className)}),[pe,me]=sr("container",{elementType:Mfe,externalForwardedProps:K,ownerState:k,className:z.container}),[Te,Ce]=sr("transition",{elementType:fd,externalForwardedProps:K,ownerState:k,additionalProps:{appear:!0,in:T,timeout:_,role:"presentation"}});return m.jsx(ne,{closeAfterTransition:!0,slots:{backdrop:fe},slotProps:{backdrop:{transitionDuration:_,as:c,...ae}},disableEscapeKeyDown:y,onClose:b,open:T,onClick:N,...le,...V,children:m.jsx(Te,{...Ce,children:m.jsx(pe,{onMouseDown:H,...me,children:m.jsx(se,{as:E,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":X,"aria-modal":l,...ie,children:m.jsx(Tfe.Provider,{value:Q,children:u})})})})})}),Dfe=Qe(Pfe)({[`& .${Km.container}`]:{outline:0},[`& .${Km.paper}`]:{outline:0,minWidth:W0}}),Afe=Qe(Cfe)({"&:first-of-type":{padding:0}});function jfe(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:a}=e,s=o?.dialog??Dfe,l=o?.mobileTransition??fd;return m.jsx(s,je({open:r,onClose:n},a?.dialog,{TransitionComponent:l,TransitionProps:a?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:a?.mobilePaper,children:m.jsx(Afe,{children:t})}))}const Nfe=["props","getOpenDialogAriaText"],Ife=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Bn(e,Nfe);const{slots:o,slotProps:a,className:s,sx:l,format:c,formatDensity:f,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:y,timezone:v,name:S,label:x,inputRef:w,readOnly:b,disabled:T,localeText:E}=t,M=C.useRef(null),$=Rs(),D=a?.toolbar?.hidden??!1,{open:I,actions:A,layoutProps:_,renderCurrentView:W,fieldProps:V,contextValue:k}=bz(je({},r,{props:t,fieldRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),z=o.field,F=xr({elementType:z,externalSlotProps:a?.field,additionalProps:je({},V,D&&{id:$},!(T||b)&&{onClick:A.onOpen,onKeyDown:$le(A.onOpen)},{readOnly:b??!0,disabled:T,className:s,sx:l,format:c,formatDensity:f,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:y,timezone:v,label:x,name:S},w?{inputRef:w}:{}),ownerState:t});F.inputProps=je({},F.inputProps,{"aria-label":n(V.value)});const H=je({textField:o.textField},F.slots),N=o.layout??wz;let X=$;D&&(x?X=`${$}-label`:X=void 0);const Q=je({},a,{toolbar:je({},a?.toolbar,{titleId:$}),mobilePaper:je({"aria-labelledby":X},a?.mobilePaper)}),te=mr(M,F.unstableFieldRef);return{renderPicker:()=>m.jsxs(Cz,{contextValue:k,localeText:E,children:[m.jsx(z,je({},F,{slots:H,slotProps:Q,unstableFieldRef:te})),m.jsx(jfe,je({},A,{open:I,slots:o,slotProps:Q,children:m.jsx(N,je({},_,Q?.layout,{slots:o,slotProps:Q,children:W()}))}))]})}},zz=C.forwardRef(function(e,t){const n=Ql(),r=Yr(),o=fz(e,"MuiMobileDatePicker"),a=je({day:np,month:np,year:np},o.viewRenderers),s=je({},o,{viewRenderers:a,format:uT(r,o,!1),slots:je({field:Pz},o.slots),slotProps:je({},o.slotProps,{field:c=>je({},N0(o.slotProps?.field,c),hz(o),{ref:t}),toolbar:je({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:l}=Ife({props:s,valueManager:sl,valueType:"date",getOpenDialogAriaText:uz({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Xg});return l()});zz.propTypes={autoFocus:ot.bool,className:ot.string,closeOnSelect:ot.bool,dayOfWeekFormatter:ot.func,defaultValue:ot.object,disabled:ot.bool,disableFuture:ot.bool,disableHighlightToday:ot.bool,disableOpenPicker:ot.bool,disablePast:ot.bool,displayWeekNumber:ot.bool,enableAccessibleFieldDOMStructure:ot.any,fixedWeekNumber:ot.number,format:ot.string,formatDensity:ot.oneOf(["dense","spacious"]),inputRef:EL,label:ot.node,loading:ot.bool,localeText:ot.object,maxDate:ot.object,minDate:ot.object,monthsPerRow:ot.oneOf([3,4]),name:ot.string,onAccept:ot.func,onChange:ot.func,onClose:ot.func,onError:ot.func,onMonthChange:ot.func,onOpen:ot.func,onSelectedSectionsChange:ot.func,onViewChange:ot.func,onYearChange:ot.func,open:ot.bool,openTo:ot.oneOf(["day","month","year"]),orientation:ot.oneOf(["landscape","portrait"]),readOnly:ot.bool,reduceAnimations:ot.bool,referenceDate:ot.object,renderLoading:ot.func,selectedSections:ot.oneOfType([ot.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),ot.number]),shouldDisableDate:ot.func,shouldDisableMonth:ot.func,shouldDisableYear:ot.func,showDaysOutsideCurrentMonth:ot.bool,slotProps:ot.object,slots:ot.object,sx:ot.oneOfType([ot.arrayOf(ot.oneOfType([ot.func,ot.object,ot.bool])),ot.func,ot.object]),timezone:ot.string,value:ot.object,view:ot.oneOf(["day","month","year"]),viewRenderers:ot.shape({day:ot.func,month:ot.func,year:ot.func}),views:ot.arrayOf(ot.oneOf(["day","month","year"]).isRequired),yearsOrder:ot.oneOf(["asc","desc"]),yearsPerRow:ot.oneOf([3,4])};const Lfe=["desktopModeMediaQuery"],$b=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=Ple}=n,o=Bn(n,Lfe);return rz(r,{defaultMatches:!0})?m.jsx(Lz,je({ref:t},o)):m.jsx(zz,je({ref:t},o))});function zfe(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}const yg=lr(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 Fz(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"?Ffe(n):n}function Ffe(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"?`
|
|
437
|
-
`:r==="t"?" ":r==="r"?"\r":r):e}$r.extend(Mk);const ID=14,_fe=42;function Bfe(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(`
|
|
438
|
-
`):void 0}function Ufe({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:a}){const s=e.label??e.name??"",l=e.type??"string",c=Bfe(e),f=Fz(l,e.default),u=f!==void 0?`Default: ${f===""?"(empty)":f}`:void 0,h=c||u?m.jsxs(m.Fragment,{children:[c,c&&u?m.jsx("br",{}):null,u]}):void 0,y=l==="string"||Hf(l)==="string",v=!Uu(l)||typeof t!="string"||nJ(t),S=H=>m.jsx(Ia,{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(R1,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),x=Uu(l),w=e.control==="multiselect"&&x,b=Uu(l),T=e.control==="select"||e.control==="multiselect",E=T?b?typeof t=="string"?tJ(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(T&&y&&v&&!(!w&&E.length>1)){const H=N=>{const X=b?$k(N):void 0;if(N.length===0||X===""){n(null);return}n(b?X:N[0])};return m.jsx(s8,{multiple:w,disableCloseOnSelect:w,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:a?"Options unavailable":"No matching values",value:w?E:E[0]??null,onChange:(N,X)=>H(X===null?[]:Array.isArray(X)?X:[X]),renderInput:N=>m.jsx(Ia,{...N,label:s,size:"small",placeholder:E.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:{...N.InputProps,endAdornment:m.jsxs(m.Fragment,{children:[o&&m.jsx(Pg,{size:16}),N.InputProps.endAdornment]})}}}),fullWidth:!0})}const M=Uu(l)&&Hf(l)==="number",{rangeMin:$,rangeMax:D}=e,I=M&&typeof t=="string"?oJ(t):void 0,A=M&&typeof t=="string"?iJ(t):void 0;if((M||l==="number")&&$!==void 0&&D!==void 0&&(!M||t===void 0||t===null||t===""||I!==void 0||A!==void 0)){const H=A??(I!==void 0?[I,D]:void 0),N=M?H?.[0]:typeof t=="number"?t:void 0;if(N===void 0&&t!==void 0&&t!==null&&t!=="")return S("number");const X=N??$,Q=H??[$,D],te=Q[1]>=D?`≥ ${Q[0]}`:`${Q[0]} to ${Q[1]}`,Z=M&&t==="",K=N!==void 0||Z;return m.jsxs(sw,{fullWidth:!0,children:[m.jsxs(Ht,{sx:{height:_fe,px:`${ID}px`,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m.jsxs(fr,{direction:"row",alignItems:"center",spacing:1,children:[m.jsx(It,{variant:"body2",color:"text.secondary",noWrap:!0,children:s}),m.jsx(It,{variant:"body2",sx:{fontWeight:600},children:K?Z?"Any":M?te:String(X):M?"Any":f??"Unset"}),K&&m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:()=>n(null),sx:{p:0},children:m.jsx(yg,{fontSize:"small"})})]}),m.jsx(oY,{size:"small",min:$,max:D,value:M?Q:X,disableSwap:M,valueLabelDisplay:"auto","aria-label":M?void 0:s,getAriaLabel:M?ne=>ne===0?`${s} from`:`${s} to`:void 0,sx:{py:0,mt:.5},onChange:(ne,le)=>{if(M){const[fe,ae]=Array.isArray(le)?[le[0],le[1]]:[le,le];if(fe<=$&&ae>=D){n(null);return}n(ae>=D?rJ(fe):aJ(fe,ae));return}n(Array.isArray(le)?le[0]:le)}})]}),h&&m.jsx(lw,{sx:{mx:`${ID}px`},children:h})]})}const _=Uu(l)?Hf(l):void 0,W=_==="date"||_==="timestamp"||_==="timestamptz",V=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),k=t==null||V;if(W&&!V){const H=Hfe(t);if(H!==void 0)return m.jsx(Wfe,{label:s,state:H,onChange:n,helperNode:h,defaultDisplay:f})}if(W&&k){const H=V?$r.utc(t):null;return m.jsx(Mb,{dateAdapter:Kw,children:m.jsx($b,{label:s,value:H?.isValid()?H:null,onChange:N=>n(N?N.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:h},field:{clearable:!0,onClear:()=>n(null)}}})})}if(Hf(l)==="boolean"){const H=typeof t=="string"?eJ(t):void 0;if(t==null||t===""||H!==void 0)return m.jsx(Vfe,{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 S("true or false");const N=e.default?.trim()==="true";return m.jsxs(sw,{children:[m.jsxs(fr,{direction:"row",alignItems:"center",children:[m.jsx(rk,{control:m.jsx(K8,{checked:H?t:N,onChange:X=>n(X.target.checked)}),label:s}),H&&m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:()=>n(null),edge:"end",children:m.jsx(yg,{fontSize:"small"})})]}),h&&m.jsx(lw,{children:h})]})}if(l==="number"){const H=typeof t=="number"?t:"",N=t!=null;return N&&t!==""&&typeof t!="number"?S("number"):m.jsx(Ia,{label:s,type:"number",value:H,onChange:X=>{const Q=X.target.value;n(Q===""?null:Number(Q))},placeholder:f,helperText:h,slotProps:{input:{endAdornment:N&&m.jsx(R1,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(l==="date"||l==="timestamp"||l==="timestamptz"){const H=t instanceof Date?t:typeof t=="string"?(X=>X instanceof Date?X:null)(KI(l,t)):null,N=H?$r.utc(H):null;return t!=null&&t!==""&&H===null?S("date"):m.jsx(Mb,{dateAdapter:Kw,children:m.jsx($b,{label:s,value:N,onChange:X=>n(X?gJ(X,H??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:h},field:{clearable:!0,onClear:()=>n(null)}}})})}const z=typeof t=="string"?t:"",F=t!=null;return m.jsx(Ia,{label:s,value:z,onChange:H=>n(H.target.value),placeholder:F?void 0:f??(l.startsWith("filter<")?l:void 0),helperText:h,slotProps:{input:{endAdornment:F&&m.jsx(R1,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function R1({onClear:e}){return m.jsx(vq,{position:"end",children:m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:e,edge:"end",children:m.jsx(yg,{fontSize:"small"})})})}const Ev="__any__";function Vfe({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:a}){const s=t??(n?Ev:"");return m.jsx(Ht,{"data-testid":"boolean-filter",children:m.jsxs(Ia,{select:!0,label:e,value:s,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===Ev?"Any":a||"Any"},input:{endAdornment:s!==""?m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:()=>r(null),sx:{mr:2},children:m.jsx(yg,{fontSize:"small"})}):void 0}},onChange:l=>{l.target.value!==Ev&&r(l.target.value)},children:[n&&m.jsx(Ca,{value:Ev,children:"Any"}),m.jsx(Ca,{value:"true",children:"true"}),m.jsx(Ca,{value:"false",children:"false"})]})})}function Hfe(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=lJ(e);if(t!==void 0)return{kind:"preset",key:t};const n=dJ(e);if(n!==void 0)return{kind:"days",...n}}const Rv="__custom__",O1="__any__";function Wfe({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"),[c,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 u=t.kind!=="unset",h=s?Rv:t.kind==="preset"?t.key:t.kind==="any"?O1:"",y=S=>{f(S),S.from&&S.to&&!$r.utc(S.to).isBefore($r.utc(S.from))&&n(uJ(S.from,S.to))},v=S=>{const x=S?$r.utc(S):null;return x?.isValid()?x:null};return m.jsxs(fr,{direction:"row",spacing:1,"data-testid":"time-range",children:[m.jsxs(Ia,{select:!0,label:e,value:h,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:S=>{if(S===Rv)return"Custom range";if(S===O1)return"Any time";const x=yb.find(w=>w.key===S);return x?x.label:o??"Any time"}},input:{endAdornment:u?m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:()=>{l(!1),f({}),n(null)},sx:{mr:2},children:m.jsx(yg,{fontSize:"small"})}):void 0}},onChange:S=>{const x=S.target.value;if(x===Rv){l(!0);return}l(!1);const w=sJ(x);w!==void 0&&n(w)},children:[t.kind==="any"&&m.jsx(Ca,{value:O1,children:"Any time"}),yb.map(S=>m.jsx(Ca,{value:S.key,children:S.label},S.key)),m.jsx(Ca,{value:Rv,children:"Custom range"})]}),s&&m.jsxs(Mb,{dateAdapter:Kw,children:[m.jsx($b,{label:"From",value:v(c.from),onChange:S=>y({...c,from:S?S.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),m.jsx($b,{label:"To",value:v(c.to),minDate:v(c.from)??void 0,onChange:S=>y({...c,to:S?S.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function vT({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:a,optionsLoading:s,optionsFailed:l,apply:c,title:f}){const{theme:u}=dl();if(e.length===0)return null;const h=Array.from(t.values()).some(S=>S!==null),y=e.map(S=>m.jsx(Ht,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:m.jsx(Ufe,{given:S,value:S.name?t.get(S.name):void 0,onChange:x=>S.name&&n(S.name,x),options:S.name?a?.get(S.name):void 0,optionsLoading:s,optionsFailed:S.name?l?.has(S.name):void 0})},S.name)),v=m.jsxs(fr,{direction:"row",alignItems:"center",spacing:1,children:[c&&m.jsx(Jo,{variant:"contained",size:"small",disableElevation:!0,onClick:c.onApply,disabled:!c.pending,sx:{textTransform:"none"},children:"Apply"}),h&&m.jsx(Jo,{variant:"text",size:"small",onClick:r,sx:{textTransform:"none"},children:"Reset"})]});return o==="bar"?m.jsx(Ha,{elevation:0,sx:{p:2,border:u.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:v})]})}):m.jsxs(Ha,{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(It,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary"},children:f??"Parameters"}),v]}),m.jsx(Ht,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:y})]})}const qfe=lr(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));function Yfe(e){return e!=null}function Gfe(e,t){const n=[],r=[];for(const a of e){if(a.name===void 0||Yfe(t.get(a.name)))continue;if(a.default==null){n.push(a.name);continue}const s=Fz(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 Kfe(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 Qfe({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:a,givens:s,gate:l}){return un.useEffect(()=>{o&&o(t)},[t,o]),m.jsx($I,{children:m.jsxs(w6,{spacing:2,component:"section",children:[m.jsx(Zfe,{sourceAndPath:e[t],existingQuery:n,onChange:c=>{r&&r(c)},resourceUri:a,givens:s,gate:l}),m.jsx(Mj,{height:"5px"})]})})}function M1(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Xfe({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:a,givens:s,gate:l}){const[c,f]=un.useState(n||M1()),[u,h]=un.useState(void 0);un.useEffect(()=>{n&&f(n)},[n]);const[y,v]=un.useState([]),{MalloyExplorerProvider:S,QueryPanel:x,ResizableCollapsiblePanel:w,ResultPanel:b,SourcePanel:T}=r;un.useEffect(()=>{t&&t(c)},[t,c]);const{environmentName:E,packageName:M,versionId:$}=ko(a),{apiClients:D}=Br(),I=un.useRef(void 0),A=Js({mutationFn:()=>{I.current=l,h({executionState:"running",query:c?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:()=>{A.reset(),h(void 0)},response:{}});const k=typeof c?.malloyQuery=="string"?c.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:c?.malloyQuery}).toMalloy();return f({...c,query:k}),D.models.executeQueryModel(E,M,e.modelPath,{query:k,sourceName:void 0,queryName:void 0,versionId:$,...s&&Object.keys(s).length>0?{givens:s}:{}})},onSuccess:k=>{if(k){const z=JSON.parse(k.data.result);f({...c,malloyResult:z});const F=I.current;h(H=>H?{...H,executionState:"finished",response:{result:z,...F?.defaultsNote?{messages:[{severity:"INFO",title:F.defaultsNote}]}:{}}}:void 0)}},onError:k=>{console.error("Query execution error:",k);const z=k?.data?.message??k?.message??"The query could not be run.",F=[{severity:"ERROR",title:z}],H=I.current?.missing??[];(k?.status===403||/Access denied for source/i.test(z))&&H.length>0&&F.push({severity:"WARN",title:Kfe(H)}),h(N=>N?{...N,executionState:"finished",response:{messages:F}}:void 0)}}),[_,W]=un.useState(e.sourceInfo.name);un.useEffect(()=>{_!==e.sourceInfo.name&&(W(e.sourceInfo.name),f(M1()),h(void 0))},[e,_]);const V=un.useCallback(k=>{f({...c,malloyQuery:k,malloyResult:void 0})},[c]);return _!==e.sourceInfo.name?m.jsx("div",{children:"Loading..."}):m.jsx(PI,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:m.jsx(S,{source:e.sourceInfo,query:c?.malloyQuery,topValues:[],onFocusedNestViewPathChange:v,focusedNestViewPath:y,onQueryChange:V,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(T,{onRefresh:()=>f(M1())})}),m.jsx(w,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:m.jsx(x,{runQuery:()=>{console.log(`running query with: ${c?.malloyQuery}`);try{A.mutate()}catch(k){console.error("Error running query:",k)}}})}),m.jsx(b,{source:e.sourceInfo,draftQuery:c?.malloyQuery,setDraftQuery:k=>f({...c,malloyQuery:k}),submittedQuery:u,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function Zfe(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([Bo(()=>import("./index-ufFZR_K-.js"),__vite__mapDeps([0,1,2,3,4,5,6])),Bo(()=>import("./index-CCNqF0-G.js").then(c=>c.i),__vite__mapDeps([4,3,2]))]).then(([c,f])=>{l&&(n(c),o(f),s(!1))}).catch(c=>{console.error("Failed to load Malloy components:",c),l&&s(!1)}),()=>{l=!1}},[]),a||!t||!r?m.jsx(yX,{children:m.jsx(PI,{children:m.jsx(Mj,{sx:{alignItems:"center",justifyContent:"center",height:"200px",color:"text.secondary"},children:"Loading explorer..."})})}):m.jsx(Xfe,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function bT(e,t=!0){const{modelPath:n,environmentName:r,packageName:o,versionId:a}=ko(e),{apiClients:s}=Br();return ho({queryKey:["package",r,o,n,a],queryFn:async()=>(await s.models.getModel(r,o,n,a)).data,enabled:t})}function _z({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:a,givens:s,onGivensChange:l,startingGivens:c}){const[f,u]=un.useState(r);un.useEffect(()=>{u(r)},[r]);const{data:h,isError:y,isLoading:v,error:S}=bT(a,!e),{environmentName:x,packageName:w,modelPath:b,versionId:T}=ko(a),E=e||h,M=un.useMemo(()=>E?.givens??[],[E]),$=Dk({specs:M,loaded:!!E,params:s,onGivensChange:l,startingValues:c,documentKey:a,autorun:!0,environmentName:x??"",packageName:w??"",modelPath:b,versionId:T,documentName:b}),D=C.useMemo(()=>Bg($.applied,$.declaredTypes),[$.applied,$.declaredTypes]),I=C.useMemo(()=>Gfe(M,$.applied),[M,$.applied]);if(v&&!e)return m.jsx(fa,{text:"Fetching Model..."});if(y&&!e)return console.log("error",S),m.jsx(ka,{error:S,context:`ModelExplorer > ${b}`});if(!E)return m.jsx(fa,{text:"Loading..."});const A=(E?.sourceInfos||[]).map((W,V)=>{try{return JSON.parse(W)?.name||`Source ${V+1}`}catch{return`Source ${V+1}`}}),_=A[f]||"";return m.jsxs(pX,{variant:"outlined",children:[m.jsx(hX,{children:m.jsx(fr,{sx:{flexDirection:"row"},children:m.jsx(ise,{size:"small",id:"size-small-standard",disablePortal:!0,options:A,value:_,onChange:(W,V)=>{if(!V)return;const k=A.indexOf(V);k>=0&&(u(k),o?.(k))},renderInput:W=>m.jsx(hr,{...W}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),m.jsx(vT,{...$.panel}),m.jsx($I,{children:m.jsxs(fr,{spacing:2,component:"section",children:[Array.isArray(E.sourceInfos)&&E.sourceInfos.length>0&&m.jsx(Qfe,{sourceAndPaths:E.sourceInfos.map(W=>({sourceInfo:JSON.parse(W),modelPath:b})),selectedSourceIndex:f,existingQuery:n,onQueryChange:t,resourceUri:a,givens:D,gate:I}),m.jsx(Ht,{height:"5px"})]})})]})}function xT({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:s,initialSelectedSourceIndex:l,onChange:c,onSourceChange:f,givens:u,onGivensChange:h,startingGivens:y}){return m.jsxs(up,{open:e,onClose:t,fullScreen:!0,children:[m.jsxs(fp,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,m.jsx(Jr,{onClick:t,sx:{color:"text.secondary"},children:m.jsx(mp,{})})]}),m.jsx(dp,{children:a?m.jsx(_z,{resourceUri:n,data:r,existingQuery:s,initialSelectedSourceIndex:l,onChange:c,onSourceChange:f,givens:u,onGivensChange:h,startingGivens:y}):m.jsx("div",{children:"No valid import statement found in cell"})})]})}const Bz=C.createContext(void 0);function Jfe({children:e,documentStorage:t}){const n=C.useMemo(()=>({documentStorage:t}),[t]);return m.jsx(Bz.Provider,{value:n,children:e})}function epe(){return C.useContext(Bz)}class Uz extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const xye=e=>e instanceof Uz||e instanceof Error&&e.name==="DocumentNotFoundError";function ho(e){const{server:t}=Br(),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 XN(n,kk)}function Js(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 OG(t,kk)}const tpe=2,npe=16;function rpe(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function ope({tiles:e,columns:t,keyOf:n,renderTile:r}){return m.jsx(Ht,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},gap:`${npe}px`},children:e.map((o,a)=>m.jsx(Ht,{sx:{display:"grid",minWidth:0,gridColumn:{md:rpe(o,t)}},children:r(o,a)},n(o,a)))})}function ape(e,t){if(e==null||e==="")return;const n=r=>`'${zfe(r)}'`;switch(t===void 0?ipe(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=LD(e);return r&&`@${r}`}case"timestamp":{const r=LD(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 ipe(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 LD(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 spe="[A-Za-z_][A-Za-z0-9_]*",zD=e=>new RegExp(`^${spe}$`).test(e),lpe=/^##[ \t]*artifact\b/;function FD(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 cpe(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 ST(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(cpe(e[s],o[1].length,a)){n.push([r,s]),r=s;break}}return n}function Vz(e){const t=new Set;for(const[n,r]of ST(e))for(let o=n;o<=r;o++)t.add(o);return t}function Sye(e,t){const n=new Set,r=new Set;for(const[o,a]of ST(e,t)){const s=FD(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=FD(o);s?.level===1&&!s.block&&n.add(a)}),n}const upe=e=>{const t=Vz(e);return e.findIndex((n,r)=>!t.has(r)&&lpe.test(n.trim()))},dpe=/^##"([ \t]|$)/;function wye(e){const t=upe(e),n=Vz(e),r=h=>t<0||h<t,o=h=>t>=0&&h>t,a=[];e.forEach((h,y)=>{!n.has(y)&&dpe.test(h.trim())&&a.push({at:y,text:h.trim().slice(3).trim(),block:!1})});for(const[h,y]of ST(e)){if(!/^[ \t]*##\|"([ \t]|$)/.test(e[h]))continue;const v=[e[h].trim().slice(4),...e.slice(h+1,y)].map(S=>S.trim()).join(`
|
|
439
|
-
`).trim();v.length>0&&a.push({at:h,text:v,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)),c=s.some(h=>h.text.trim())?s:l,f=c.map(h=>h.text).join(`
|
|
440
|
-
`),u=h=>h.filter(y=>!y.block).map(y=>y.at);return{read:u(c),blankAbove:c===l?u(s):[],below:u(l),belowBlock:l.some(h=>h.block),inBlock:c.some(h=>h.block),...f.trim()?{text:f}:{}}}function Cye(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 fpe(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 _D=()=>typeof performance<"u"?performance.now():Date.now(),Hz=200;function ppe(e){const t=ape(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${Hz} }`}function wT(e){const t=fpe(e);if(!(!t||t.refinement!==void 0||!zD(t.source)||!zD(t.view)))return{source:t.source,view:t.view}}const hpe=e=>wT(e)?.source;function mpe({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onClose:s,onDone:l}){const{theme:c}=dl(),f=e?ppe(e):void 0;return m.jsxs(up,{open:e!==void 0,onClose:s,maxWidth:"lg",fullWidth:!0,children:[m.jsxs(fp,{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(It,{component:"div",variant:"caption",sx:{color:c.tileTitle,mt:.25},children:e?`The first ${Hz} rows of ${e.source} behind this value, with the tile's own filters and the controls applied.`:""})]}),m.jsx(Jr,{onClick:s,"aria-label":"Close",size:"small",sx:{color:"text.secondary",ml:1},children:m.jsx(mp,{fontSize:"small"})})]}),m.jsxs(dp,{dividers:!0,sx:{p:0,minHeight:240},children:[f===void 0&&e&&m.jsx(It,{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(gpe,{query:f,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:a,...l?{onDone:l}:{}})]}),m.jsxs(CN,{sx:{px:3,py:1.5},children:[f!==void 0&&m.jsx(It,{variant:"caption",sx:{mr:"auto",color:c.tileTitle,fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:f,children:f}),m.jsx(Jo,{onClick:s,children:"Close"})]})]})}function gpe({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onDone:s}){const l=Bk({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:a}),{isSuccess:c,isError:f}=l,u=C.useRef(void 0);return C.useEffect(()=>{u.current=_D()},[e]),C.useEffect(()=>{u.current===void 0||!c&&!f||(s?.(c,_D()-u.current),u.current=void 0)},[c,f,s]),m.jsx(Ht,{sx:{p:1},children:m.jsx(Vk,{state:l,context:e})})}function ype({tile:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onClose:s}){const l=j0({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r}}),{data:c}=bT(l,e!==void 0),f=C.useMemo(()=>{const h=hpe(e);if(!c||h===void 0)return 0;const y=(c.sourceInfos??[]).findIndex(v=>{try{return JSON.parse(v)?.name===h}catch{return!1}});return y<0?0:y},[c,e]),u=C.useMemo(()=>{if(e===void 0)return;const h=wT(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||!c?null:m.jsx(xT,{open:!0,onClose:s,resourceUri:l,data:c,title:`Explore: ${e}`,existingQuery:u,initialSelectedSourceIndex:f,startingGivens:a})}function kye({resourceUri:e,dashboard:t,givens:n,onGivensChange:r,onNavigate:o,height:a,maxResultSize:s,onEvent:l}){const c=ko(e),{apiClients:f}=Br(),u=c.environmentName??"",h=c.packageName??"",y=c.versionId,v=!!c.environmentName&&!!c.packageName,{data:S,isSuccess:x,isError:w,error:b}=ho({queryKey:["dashboard",u,h,y,t],queryFn:()=>f.dashboards.getDashboard(u,h,t,y),enabled:v}),T=S?.data,E=C.useMemo(()=>T?.givens??[],[T]),M=Dk({specs:E,loaded:x,startingValues:T?.startingGivens,params:n,onGivensChange:r,documentKey:`${u}/${h}/${y??""}/${t}`,autorun:T?.autorun!==!1,environmentName:u,packageName:h,modelPath:T?.path,versionId:y,documentName:t}),{applied:$,declaredTypes:D,canSelf:I,onSelf:A}=M,[_,W]=C.useState(void 0),[V,k]=C.useState(void 0),z=C.useCallback(ne=>{const le=wT(ne.context);le!==void 0&&W({...le,field:ne.field,rawValue:ne.rawValue,label:ne.label})},[]),F=C.useMemo(()=>Bg($,D),[$,D]),H=C.useMemo(()=>Pk($,D),[$,D]),{drill:N,drillMenu:X}=yL({onNavigate:o,onSelf:A,canSelf:I,selfLabel:"Filter this dashboard",onRows:z}),Q=C.useCallback(ne=>({canDrill:N.canDrill,onClick:le=>N.onClick({...le,context:ne})}),[N]);if(!v)return m.jsxs(Lc,{severity:"error",children:["A dashboard resource URI must name an environment and a package. Received: ",e]});if(w)return m.jsx(ka,{context:`${u} > ${h} > ${t}`,error:b});if(!x||!T)return m.jsx(fa,{text:"Loading dashboard…"});if(T.error)return m.jsxs(fr,{spacing:2,children:[m.jsx(BD,{manifest:T}),m.jsx(Lc,{severity:"error",children:T.error})]});const te=T.path,Z=T.tiles??[],K=T.dashboardColumns??tpe;return m.jsxs(fr,{spacing:2,children:[m.jsx(BD,{manifest:T}),m.jsx(vT,{...M.panel,layout:"bar"}),te===void 0?m.jsx(Lc,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):T.query!==void 0?m.jsx(RP,{environmentName:u,packageName:h,versionId:y,modelPath:te,queryName:T.query,givens:$,declaredTypes:D,height:a,maxResultSize:s,drill:N}):Z.length>0?m.jsx(ope,{tiles:Z,columns:K,keyOf:(ne,le)=>`${le}:${ne.query}`,renderTile:ne=>m.jsx(RP,{environmentName:u,packageName:h,versionId:y,modelPath:te,tile:ne.query,label:ne.label,subtitle:ne.subtitle,borderless:ne.borderless,givens:$,declaredTypes:D,givenNames:ne.givenNames,height:a??sne,maxResultSize:s,drill:Q(ne.query),onExplore:()=>{k(ne.query),l?.({type:"dashboard.explored",tile:ne.query})}})}):m.jsx(Lc,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),X,te!==void 0&&m.jsxs(m.Fragment,{children:[m.jsx(mpe,{request:_,environmentName:u,packageName:h,...y===void 0?{}:{versionId:y},modelPath:te,givens:F,onClose:()=>W(void 0),onDone:(ne,le)=>{_&&l?.({type:"dashboard.rows_shown",source:_.source,view:_.view,field:_.field,ok:ne,durationMs:le})}}),m.jsx(ype,{tile:V,environmentName:u,packageName:h,...y===void 0?{}:{versionId:y},modelPath:te,givens:H,onClose:()=>k(void 0)})]})]})}function BD({manifest:e}){return m.jsx(vpe,{title:e.title??e.name,...e.description?{description:e.description}:{}})}function vpe({title:e,description:t}){return m.jsxs(Ht,{children:[m.jsx(It,{variant:"h5",sx:{fontWeight:600},children:e}),t&&m.jsx(Vm,{variant:"caption",children:t})]})}const bpe=lr(m.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}));function Wz({label:e,href:t,onClick:n}){return m.jsxs(zq,{...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(bpe,{sx:{fontSize:18}}),"Back to ",e]})}function Tye(){const e=kg();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 qz=lr(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"})),xpe="publisher:resize";function Spe(e){return typeof e=="object"&&e!==null&&e.type===xpe&&typeof e.height=="number"}function Yz(e){return e.replace(/\/api\/v0\/?$/,"")}function wpe({server:e,environmentName:t,packageName:n,path:r}){const o=r.startsWith("public/")?r.slice(7):r;return`${Yz(e)}/environments/${encodeURIComponent(t)}/packages/${encodeURIComponent(n)}/`+o}function Cpe(e){try{const{environmentName:t,packageName:n,modelPath:r}=ko(e);return!t||!n||!r?null:{environmentName:t,packageName:n,dataAppPath:r}}catch{return null}}function Eye({resourceUri:e}){const{server:t,apiClients:n}=Br(),r=Cpe(e),o=r?.environmentName??"",a=r?.packageName??"",s=r?.dataAppPath??"",l=C.useMemo(()=>wpe({server:t,environmentName:o,packageName:a,path:s}),[t,o,a,s]),c=ho({queryKey:["data-apps",o,a],queryFn:()=>n.dataApps.listDataApps(o,a),enabled:!!r}).data?.data?.find(S=>S.path===s),f=c?.title??s,u=c?.fit==="viewport",h=C.useRef(null),[y,v]=C.useState(120);return C.useEffect(()=>{if(u)return;function S(x){Spe(x.data)&&x.source===h.current?.contentWindow&&x.data.height>0&&v(Math.ceil(x.data.height))}return window.addEventListener("message",S),()=>window.removeEventListener("message",S)},[u]),r?m.jsxs(Ht,{sx:{p:3,...u?{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(It,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:f}),m.jsx(It,{variant:"caption",color:"text.secondary",sx:{fontFamily:pi},children:s}),m.jsx(Ht,{sx:{flex:1}}),m.jsx(Xi,{title:"Open standalone in new tab",children:m.jsx(Jr,{size:"small",href:l,target:"_blank",rel:"noopener noreferrer","aria-label":"Open standalone in new tab",sx:{color:"text.secondary"},children:m.jsx(qz,{fontSize:"small"})})})]}),m.jsx(Ht,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1.5,overflow:"hidden",backgroundColor:"background.paper",...u?{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:u?"100%":y,border:0}})})]}):m.jsxs(Ht,{sx:{p:3,maxWidth:1200,mx:"auto"},children:[m.jsx(It,{variant:"h6",sx:{fontWeight:600},children:"Can't open data app"}),m.jsxs(It,{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:pi,ml:1},children:e})]})]})}function ws({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(It,{id:a,variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em",lineHeight:1.2},children:e}),t!==void 0&&m.jsxs(It,{variant:"caption",color:"text.secondary",children:["(",t,")"]})]}),r]}),n&&m.jsx(It,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:n}),m.jsx(Ht,{children:o})]})}function kpe({resourceUri:e}){const{environmentName:t}=ko(e),{apiClients:n}=Br(),[r,o]=C.useState(!1),a=90,{data:s,isSuccess:l,isError:c,error:f}=ho({queryKey:["about",t],queryFn:()=>n.environments.getEnvironment(t,!1)}),u=s?.data?.readme||"",h=u.split(/\s+/),y=h.length>a,v=h.slice(0,a).join(" ");return m.jsxs(m.Fragment,{children:[!l&&!c&&m.jsx(fa,{text:"Fetching About..."}),l&&u&&m.jsxs(ws,{title:"Readme",children:[m.jsx(Vm,{variant:"caption",children:r||!y?u:v}),y&&m.jsx(Ht,{sx:{mt:1},children:m.jsx(qg,{label:r?"Read less":"Read more",onClick:()=>o(!r)})})]}),c&&m.jsx(ka,{error:f,context:`${t} > About`})]})}function Tpe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=Wk();C.useEffect(()=>{if(!o)return;function w(b){b.defaultPrevented||b.key==="Escape"&&r?.(b,"escapeKeyDown")}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[o,r]);const l=Bt((w,b)=>{r?.(w,b)}),c=Bt(w=>{!r||w==null||s.start(w,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&c(t),s.clear),[o,t,c,s]);const f=w=>{r?.(w,"clickaway")},u=s.clear,h=C.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),y=w=>b=>{const T=w.onBlur;T?.(b),h()},v=w=>b=>{const T=w.onFocus;T?.(b),u()},S=w=>b=>{const T=w.onMouseEnter;T?.(b),u()},x=w=>b=>{const T=w.onMouseLeave;T?.(b),h()};return C.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,o,h,u]),{getRootProps:(w={})=>{const b={...wb(e),...wb(w)};return{role:"presentation",...w,...b,onBlur:y(b),onFocus:v(b),onMouseEnter:S(b),onMouseLeave:x(b)}},onClickAway:f}}function UD(e){return e.substring(2).toLowerCase()}function Epe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Rpe(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),c=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const u=mr(Dp(t),l),h=Bt(S=>{const x=f.current;f.current=!1;const w=jo(l.current);if(!c.current||!l.current||"clientX"in S&&Epe(S,w))return;if(s.current){s.current=!1;return}let b;S.composedPath?b=S.composedPath().includes(l.current):b=!w.documentElement.contains(S.target)||l.current.contains(S.target),!b&&(n||!x)&&o(S)}),y=S=>x=>{f.current=!0;const w=t.props[S];w&&w(x)},v={ref:u};return a!==!1&&(v[a]=y(a)),C.useEffect(()=>{if(a!==!1){const S=UD(a),x=jo(l.current),w=()=>{s.current=!0};return x.addEventListener(S,h),x.addEventListener("touchmove",w),()=>{x.removeEventListener(S,h),x.removeEventListener("touchmove",w)}}},[h,a]),r!==!1&&(v[r]=y(r)),C.useEffect(()=>{if(r!==!1){const S=UD(r),x=jo(l.current);return x.addEventListener(S,h),()=>{x.removeEventListener(S,h)}}},[h,r]),C.cloneElement(t,v)}function Ope(e){return cn("MuiSnackbarContent",e)}tn("MuiSnackbarContent",["root","message","action"]);const Mpe=e=>{const{classes:t}=e;return sn({root:["root"],action:["action"],message:["message"]},Ope,t)},$pe=Qe(Sd,{name:"MuiSnackbarContent",slot:"Root"})(Wn(({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(Mw(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Mw(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Ppe=Qe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Dpe=Qe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ape=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:s="alert",...l}=n,c=n,f=Mpe(c);return m.jsxs($pe,{role:s,elevation:6,className:Lt(f.root,o),ownerState:c,ref:t,...l,children:[m.jsx(Ppe,{className:f.message,ownerState:c,children:a}),r?m.jsx(Dpe,{className:f.action,ownerState:c,children:r}):null]})});function jpe(e){return cn("MuiSnackbar",e)}tn("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Npe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${St(n.vertical)}${St(n.horizontal)}`]};return sn(r,jpe,t)},Ipe=Qe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${St(n.anchorOrigin.vertical)}${St(n.anchorOrigin.horizontal)}`]]}})(Wn(({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%)"}}}]}))),Lpe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiSnackbar"}),r=xd(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:f,className:u,ClickAwayListenerProps:h,ContentProps:y,disableWindowBlurListener:v=!1,message:S,onBlur:x,onClose:w,onFocus:b,onMouseEnter:T,onMouseLeave:E,open:M,resumeHideDuration:$,slots:D={},slotProps:I={},TransitionComponent:A,transitionDuration:_=o,TransitionProps:{onEnter:W,onExited:V,...k}={},...z}=n,F={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:v,TransitionComponent:A,transitionDuration:_},H=Npe(F),{getRootProps:N,onClickAway:X}=Tpe({...F}),[Q,te]=C.useState(!0),Z=ke=>{te(!0),V&&V(ke)},K=(ke,ce)=>{te(!1),W&&W(ke,ce)},ne={slots:{transition:A,...D},slotProps:{content:y,clickAwayListener:h,transition:k,...I}},[le,fe]=sr("root",{ref:t,className:[H.root,u],elementType:Ipe,getSlotProps:N,externalForwardedProps:{...ne,...z},ownerState:F}),[ae,{ownerState:se,...ie}]=sr("clickAwayListener",{elementType:Rpe,externalForwardedProps:ne,getSlotProps:ke=>({onClickAway:(...ce)=>{const we=ce[0];ke.onClickAway?.(...ce),!we?.defaultMuiPrevented&&X(...ce)}}),ownerState:F}),[pe,me]=sr("content",{elementType:Ape,shouldForwardComponentProp:!0,externalForwardedProps:ne,additionalProps:{message:S,action:a},ownerState:F}),[Te,Ce]=sr("transition",{elementType:pg,externalForwardedProps:ne,getSlotProps:ke=>({onEnter:(...ce)=>{ke.onEnter?.(...ce),K(...ce)},onExited:(...ce)=>{ke.onExited?.(...ce),Z(...ce)}}),additionalProps:{appear:!0,in:M,timeout:_,direction:s==="top"?"down":"up"},ownerState:F});return!M&&Q?null:m.jsx(ae,{...ie,...D.clickAwayListener&&{ownerState:se},children:m.jsx(le,{...fe,children:m.jsx(Te,{...Ce,children:f||m.jsx(pe,{...me})})})})});let Zw;function zpe(e){Zw=e}function VD(e){if(Zw)try{Zw(e)}catch{}}function Fl(e,t,n){return(async r=>{const o=Date.now();try{const a=await n(r);return VD({type:"console.mutation",resource:e,action:t,ok:!0,durationMs:Date.now()-o}),a}catch(a){throw VD({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 Ap({mutationFn:e,success:t,invalidates:n,closeDialog:r,resource:o,action:a}){const s=bd(),[l,c]=C.useState(""),f=Js({mutationFn:Fl(o,a,e),onSuccess(){r();for(const u of n)s.invalidateQueries({queryKey:u});c(t)},onError(u){c(u instanceof Error?u.message:"An unknown error occurred")}});return{mutate:f.mutate,isPending:f.isPending,notice:m.jsx(Lpe,{open:l!=="",autoHideDuration:6e3,onClose:()=>c(""),message:l})}}const Gz="https://docs.malloydata.dev/documentation",HD=`${Gz}/user_guides/publishing`,Ov="https://github.com/malloydata/publisher/blob/main/docs",Pc={docsHome:`${Gz}/`,publishing:`${HD}/publishing`,mcpAgents:`${HD}/mcp_agents`,surfaces:`${Ov}/choosing-a-surface.md`,givens:`${Ov}/givens.md`,materialization:`${Ov}/materialization.md`,connections:`${Ov}/connections.md`};function Fpe({resourceUri:e}){const[t,n]=C.useState(!1),{apiClients:r}=Br(),{environmentName:o}=ko(e),a=Ap({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 c=new FormData(l.currentTarget),f=c.get("name")?.toString(),u=c.get("description")?.toString(),h=c.get("location")?.toString();a.mutate({name:f,description:u,location:h})};return m.jsxs(m.Fragment,{children:[m.jsx(Wg,{label:"Package",onClick:()=>n(!0)}),m.jsx(pa,{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:Pc.publishing,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.primary"},children:"package format"}),"."]}),actions:m.jsxs(m.Fragment,{children:[m.jsx(Jo,{disabled:a.isPending,onClick:()=>n(!1),children:"Cancel"}),m.jsx(Jo,{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(Ia,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),m.jsx(Ia,{id:"description",name:"description",label:"Description",multiline:!0,rows:3,fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),m.jsx(Ia,{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 _pe=lr(m.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}));function Y0({icon:e,tint:t,label:n,mono:r,description:o,rightLabel:a,trailingAction:s,onClick:l,ariaLabel:c}){const f=!!l;return m.jsxs(Ht,{onClick:l,onKeyDown:f?u=>{l&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),l(u))}:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,"aria-label":c,sx:u=>({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:u.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(It,{variant:"body2",sx:{...r?{fontFamily:pi}:{},flexShrink:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),o&&m.jsx(It,{variant:"body2",color:"text.secondary",sx:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o})]}),a&&m.jsx(It,{variant:"caption",color:"text.secondary",sx:{flexShrink:0},children:a}),s&&m.jsx(Ht,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:s})]})}const Kz=lr(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"})),Bpe=tn("MuiBox",["root"]),Upe=fL(),Na=jC({themeId:Pp,defaultTheme:Upe,defaultClassName:Bpe.root,generateClassName:ZI.generate}),G0=BC({createStyledComponent:Qe("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>qn({props:e,name:"MuiStack"})}),WD=tn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function Vpe(e){return cn("MuiListItemIcon",e)}const qD=tn("MuiListItemIcon",["root","alignItemsFlexStart"]),Hpe=e=>{const{alignItems:t,classes:n}=e;return sn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Vpe,n)},Wpe=Qe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Wn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),CT=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,a=C.useContext(Bl),s={...n,alignItems:a.alignItems},l=Hpe(s);return m.jsx(Wpe,{className:Lt(l.root,r),ownerState:s,ref:t,...o})});function qpe(e){return cn("MuiListItemText",e)}const qf=tn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ype=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return sn({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},qpe,t)},Gpe=Qe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qf.primary}`]:t.primary},{[`& .${qf.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,[`.${XP.root}:where(& .${qf.primary})`]:{display:"block"},[`.${XP.root}:where(& .${qf.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),kT=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:f,secondaryTypographyProps:u,slots:h={},slotProps:y={},...v}=n,{dense:S}=C.useContext(Bl);let x=l??r,w=f;const b={...n,disableTypography:a,inset:s,primary:!!x,secondary:!!w,dense:S},T=Ype(b),E={slots:h,slotProps:{primary:c,secondary:u,...y}},[M,$]=sr("root",{className:Lt(T.root,o),elementType:Gpe,externalForwardedProps:{...E,...v},ownerState:b,ref:t}),[D,I]=sr("primary",{className:T.primary,elementType:br,externalForwardedProps:E,ownerState:b}),[A,_]=sr("secondary",{className:T.secondary,elementType:br,externalForwardedProps:E,ownerState:b});return x!=null&&x.type!==br&&!a&&(x=m.jsx(D,{variant:S?"body2":"body1",component:I?.variant?void 0:"span",...I,children:x})),w!=null&&w.type!==br&&!a&&(w=m.jsx(A,{variant:"body2",color:"textSecondary",..._,children:w})),m.jsxs(M,{...$,children:[x,w]})});function Kpe(e){return cn("MuiMenuItem",e)}const fm=tn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Qpe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Xpe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,l=sn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},Kpe,s);return{...s,...l}},Zpe=Qe(dd,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Qpe})(Wn(({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"}},[`&.${fm.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${fm.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${fm.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)}},[`&.${fm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WD.inset}`]:{marginLeft:52},[`& .${qf.root}`]:{marginTop:0,marginBottom:0},[`& .${qf.inset}`]:{paddingLeft:36},[`& .${qD.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,[`& .${qD.root} svg`]:{fontSize:"1.25rem"}}}]}))),Xo=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:f="menuitem",tabIndex:u,className:h,...y}=n,v=C.useContext(Bl),S=C.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),x=C.useRef(null);No(()=>{r&&x.current&&x.current.focus()},[r]);const w={...n,dense:S.dense,divider:s,disableGutters:l},b=Xpe(n),T=mr(x,t);let E;return n.disabled||(E=u!==void 0?u:-1),m.jsx(Bl.Provider,{value:S,children:m.jsx(Zpe,{ref:T,role:f,tabIndex:E,component:o,focusVisibleClassName:Lt(b.focusVisible,c),className:Lt(b.root,h),...y,ownerState:w,classes:b})})}),_l={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:[]},Dm={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",trino:"trinoConnection",databricks:"databricksConnection",mysql:"mysqlConnection",duckdb:"duckdbConnection",motherduck:"motherduckConnection",ducklake:"ducklakeConnection",publisher:"publisherConnection"},Qz=Object.values(y$).filter(e=>e!==y$.Publisher),Jw={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",gcs:"gcsConnection",s3:"s3Connection",azure:"azureConnection"},vg=[{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"}}],bg=[{label:"Key ID",name:"keyId",type:"text",required:!0},{label:"Secret",name:"secret",type:"password",required:!0}],Jpe=[{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 Pb(e){return e==="postgres"||e==="bigquery"||e==="snowflake"?_l[e]||[]:e==="s3"?vg:e==="gcs"?bg:e==="azure"?Jpe:[]}function ehe({onSubmit:e,isSubmitting:t}){const[n,r]=C.useState(!1),[o,a]=C.useState("postgres"),[s,l]=C.useState([]),[c,f]=C.useState("postgres"),[u,h]=C.useState("s3"),[y,v]=C.useState("config"),S=()=>{r(!0)},x=()=>{r(!1),l([]),a("postgres"),f("postgres"),h("s3"),v("config")},w=async M=>{M.preventDefault();const $=new FormData(M.currentTarget),D=$.get("name")?.toString(),I=$.get("type")?.toString(),A=_l[I];if(!D)throw new Error("Name is required");if(!I)throw new Error("Type is required");let _;if(I==="ducklake"){const W={};if(c==="postgres"){const z=_l.postgres,F={};if(z.forEach(H=>{const N=$.get(`ducklake_pg_${H.name}`)?.toString();N&&(F[H.name]=N)}),Object.keys(F).length===0)throw new Error("DuckLake requires catalog connection");W.postgresConnection=F}const V=$.get("ducklake_bucketUrl")?.toString();if(!V)throw new Error("DuckLake requires a bucket URL");const k={bucketUrl:V};if(u==="s3"){const z={};if(vg.forEach(F=>{const H=$.get(`ducklake_s3_${F.name}`)?.toString();H&&(z[F.name]=H)}),z.provider==="credential_chain")delete z.accessKeyId,delete z.secretAccessKey,delete z.sessionToken;else{if(delete z.chain,!z.accessKeyId)throw new Error("S3 Access Key ID is required");if(!z.secretAccessKey)throw new Error("S3 Secret Access Key is required")}Object.keys(z).length>0&&(k.s3Connection=z)}else if(u==="gcs"){const z={};if(bg.forEach(F=>{const H=$.get(`ducklake_gcs_${F.name}`)?.toString();H&&(z[F.name]=H)}),!z.keyId)throw new Error("GCS Key ID is required");if(!z.secret)throw new Error("GCS Secret is required");Object.keys(z).length>0&&(k.gcsConnection=z)}_={name:D,type:I,ducklakeConnection:{catalog:W,storage:k}}}else if(I==="duckdb"){if(s.length===0)throw new Error("DuckDB connection must have at least one attached database");const W=s.map((V,k)=>{const z=V.dbType,F=$.get(`attachedDb_${k}_name`)?.toString();if(!F)throw new Error(`Attached database at index ${k} must have a name`);const H={name:F,type:z},N=Pb(z);if(N&&N.length>0){const X={};if(N.forEach(te=>{const Z=$.get(`attachedDb_${k}_${te.name}`)?.toString();Z&&(X[te.name]=Z)}),z==="s3"){if(X.provider==="credential_chain")delete X.accessKeyId,delete X.secretAccessKey,delete X.sessionToken;else if(delete X.chain,!X.accessKeyId||!X.secretAccessKey)throw new Error(`Attached database "${F}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`)}const Q=Jw[z];Q&&(H[Q]=X)}return H});_={name:D,type:I,duckdbConnection:{attachedDatabases:W}}}else{const W={};if(A.forEach(V=>{const k=$.get(V.name)?.toString();k&&(W[V.name]=k)}),I==="postgres"){if(!W.connectionString?.trim()){const V=["host","port","databaseName","userName","password"];for(const k of V)if(!W[k])throw new Error(`${A.find(z=>z.name===k)?.label||k} is required`)}}else if(I==="bigquery"){if(!W.serviceAccountKeyJson)throw new Error("Service Account Key JSON is required")}else if(I==="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(I==="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(I==="mysql"){const V=["host","port","database","user","password"];for(const k of V)if(!W[k])throw new Error(`${A.find(z=>z.name===k)?.label||k} is required`)}else if(I==="motherduck"){if(!W.accessToken)throw new Error("Access Token is required")}else if(I==="databricks"){if(!W.host)throw new Error("Host is required");if(!W.path)throw new Error("HTTP Path is required");const V=W.oauthClientId&&W.oauthClientSecret;if(!W.token&&!V)throw new Error("Either Access Token or OAuth Client ID + Secret is required")}_={name:D,type:I,[Dm[I]]:W}}await e(_),x()},b=()=>{l([...s,{name:"",dbType:"postgres"}])},T=M=>{l(s.filter(($,D)=>D!==M))},E=(M,$)=>{const D=[...s];D[M]={...D[M],dbType:$},l(D)};return m.jsxs(un.Fragment,{children:[m.jsx(Wg,{label:"Connection",onClick:S}),m.jsx(pa,{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(mo,{disabled:t,onClick:x,children:"Cancel"}),m.jsx(mo,{type:"submit",form:"connection-form",variant:"contained",loading:t,children:"Create connection"})]}),children:m.jsx("form",{onSubmit:w,id:"connection-form",children:m.jsxs(G0,{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:M=>a(M.target.value),children:Qz.map(M=>m.jsx(Xo,{value:M,children:M},M))}),o==="ducklake"?m.jsxs(Na,{sx:{mt:2},children:[m.jsxs(Na,{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:c,select:!0,onChange:M=>f(M.target.value),children:m.jsx(Xo,{value:"postgres",children:"PostgreSQL"})}),c==="postgres"&&m.jsx(m.Fragment,{children:_l.postgres.map(M=>m.jsx(hr,{id:`ducklake_pg_${M.name}`,name:`ducklake_pg_${M.name}`,label:M.label,type:M.type,fullWidth:!0,size:"small"},`pg_${M.name}`))})]}),m.jsxs(Na,{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:u,select:!0,onChange:M=>h(M.target.value),children:[m.jsx(Xo,{value:"s3",children:"S3"}),m.jsx(Xo,{value:"gcs",children:"GCS"})]}),m.jsx(hr,{required:!0,id:"ducklake_bucketUrl",name:"ducklake_bucketUrl",label:u==="s3"?"Bucket URL (e.g. s3://my-bucket/path)":"Bucket URL (e.g. gs://my-bucket/path)",type:"text",fullWidth:!0,size:"small"}),u==="s3"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),vg.filter(M=>M.visibleWhen?y===M.visibleWhen.value:!0).map(M=>m.jsx(hr,{id:`ducklake_s3_${M.name}`,name:`ducklake_s3_${M.name}`,label:M.label,type:M.selectOptions?void 0:M.type,fullWidth:!0,size:"small",required:M.required,select:!!M.selectOptions,defaultValue:M.selectOptions?y:void 0,onChange:M.name==="provider"?$=>v($.target.value):void 0,placeholder:M.name==="region"?"us-east-1":void 0,children:M.selectOptions?.map($=>m.jsx(Xo,{value:$.value,children:$.label},$.value))},`s3_${M.name}`))]}),u==="gcs"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),bg.map(M=>m.jsx(hr,{id:`ducklake_gcs_${M.name}`,name:`ducklake_gcs_${M.name}`,label:M.label,type:M.type,fullWidth:!0,size:"small",required:M.required},`gcs_${M.name}`))]})]})]}):o==="duckdb"?m.jsxs(Na,{sx:{mt:2},children:[m.jsxs(Na,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsx(br,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),m.jsx(qg,{label:"Database",icon:m.jsx(_k,{}),onClick:b,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((M,$)=>{const D=Pb(M.dbType);return m.jsxs(Na,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsxs(Na,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsxs(br,{variant:"subtitle2",children:["Database ",$+1]}),m.jsx(tu,{onClick:()=>T($),size:"small",color:"error",children:m.jsx(Kz,{fontSize:"small"})})]}),m.jsx(hr,{required:!0,id:`attachedDb_${$}_name`,name:`attachedDb_${$}_name`,label:"Database Name",type:"text",fullWidth:!0,size:"small",defaultValue:M.name}),m.jsx(hr,{id:`attachedDb_${$}_type`,name:`attachedDb_${$}_type`,label:"Database Type",fullWidth:!0,size:"small",value:M.dbType,select:!0,onChange:I=>E($,I.target.value),children:Object.values(MI).map(I=>m.jsx(Xo,{value:I,children:I},I))}),D.filter(I=>I.visibleWhen?(M[I.visibleWhen.field]||D.find(A=>A.name===I.visibleWhen?.field)?.selectOptions?.[0]?.value)===I.visibleWhen.value:!0).map(I=>m.jsx(hr,{id:`attachedDb_${$}_${I.name}`,name:`attachedDb_${$}_${I.name}`,label:I.label,type:I.selectOptions?void 0:I.type,fullWidth:!0,size:"small",required:I.required,select:!!I.selectOptions,defaultValue:I.selectOptions?.[0]?.value,onChange:I.selectOptions?A=>{const _=[...s];_[$]={..._[$],[I.name]:A.target.value},l(_)}:void 0,children:I.selectOptions?.map(A=>m.jsx(Xo,{value:A.value,children:A.label},A.value))},I.name))]},$)})]}):_l[o].map(M=>m.jsx(hr,{id:M.name,name:M.name,label:M.label,type:M.type,fullWidth:!0,size:"small",required:M.required},M.name))]})})})]})}function the({connection:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),s=()=>{a(!0)},l=()=>{a(!1),t()};return m.jsxs(un.Fragment,{children:[m.jsxs(Xo,{"aria-label":`Delete connection ${e?.name??""}`.trim(),onClick:c=>{c.stopPropagation(),s()},sx:{color:"error.main"},children:[m.jsx(CT,{sx:{color:"inherit"},children:m.jsx(x0,{fontSize:"small"})}),m.jsx(kT,{children:"Delete"})]}),m.jsx(pa,{open:o,onClose:l,title:"Delete connection",actions:m.jsxs(m.Fragment,{children:[m.jsx(mo,{onClick:l,children:"Cancel"}),m.jsx(mo,{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 YD=new Set(["password","connectionString","privateKey","privateKeyPass","serviceAccountKeyJson","token","oauthClientSecret","accessToken","peakaKey","secret","secretAccessKey","sessionToken","clientSecret","sasUrl"]);function GD(e){const t=e.duckdbConnection?.attachedDatabases;return!t||t.length===0?[]:t.map(n=>({name:n.name||"",dbType:n.type||"postgres"}))}function KD(e){const t=e.ducklakeConnection;return t&&t.storage?.gcsConnection?"gcs":"s3"}function nhe({connection:e,onSubmit:t,isSubmitting:n,onCloseDialog:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(e.type),c=un.useMemo(()=>new Set(e.withheldFields??[]),[e.withheldFields]),[f,u]=C.useState(()=>GD(e)),[h,y]=C.useState("postgres"),[v,S]=C.useState(()=>KD(e)),[x,w]=C.useState(()=>e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),b=()=>{u(GD(e)),l(e.type),w(e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),y("postgres"),S(KD(e)),a(!0)},T=()=>{a(!1),r?.()},E=async _=>{_.preventDefault();const W=new FormData(_.currentTarget),V=W.get("name")?.toString(),k=W.get("type")?.toString(),z=_l[k];if(!V)throw new Error("Name is required");if(!k)throw new Error("Type is required");let F;if(k==="ducklake"){const H={};if(h==="postgres"){const Q=_l.postgres,te={};if(Q.forEach(Z=>{const K=W.get(`ducklake_pg_${Z.name}`)?.toString();K&&(te[Z.name]=K)}),Object.keys(te).length===0)throw new Error("DuckLake requires catalog connection");H.postgresConnection=te}const N=W.get("ducklake_bucketUrl")?.toString();if(!N)throw new Error("DuckLake requires a bucket URL");const X={bucketUrl:N};if(v==="s3"){const Q={};vg.forEach(Z=>{const K=W.get(`ducklake_s3_${Z.name}`)?.toString();K&&(Q[Z.name]=K)});const te=e.ducklakeConnection?.storage?.s3Connection;if(te&&(!Q.provider&&te.provider&&(Q.provider=te.provider),!Q.chain&&te.chain&&(Q.chain=te.chain),!Q.accessKeyId&&te.accessKeyId&&(Q.accessKeyId=te.accessKeyId)),Q.provider==="credential_chain")delete Q.accessKeyId,delete Q.secretAccessKey,delete Q.sessionToken;else if(delete Q.chain,!Q.accessKeyId)throw new Error("S3 Access Key ID is required");Object.keys(Q).length>0&&(X.s3Connection=Q)}else if(v==="gcs"){const Q={};bg.forEach(Z=>{const K=W.get(`ducklake_gcs_${Z.name}`)?.toString();K&&(Q[Z.name]=K)});const te=e.ducklakeConnection?.storage?.gcsConnection;if(te&&!Q.keyId&&te.keyId&&(Q.keyId=te.keyId),!Q.keyId)throw new Error("GCS Key ID is required");Object.keys(Q).length>0&&(X.gcsConnection=Q)}F={name:V,type:k,ducklakeConnection:{catalog:H,storage:X}}}else if(k==="duckdb"){if(f.length===0)throw new Error("DuckDB connection must have at least one attached database");const H=f.map((N,X)=>{const Q=N.dbType,te=W.get(`attachedDb_${X}_name`)?.toString();if(!te)throw new Error(`Attached database at index ${X} must have a name`);const Z={name:te,type:Q},K=Pb(Q);if(K&&K.length>0){const ne={};if(K.forEach(fe=>{const ae=W.get(`attachedDb_${X}_${fe.name}`)?.toString();ae&&(ne[fe.name]=ae)}),Q==="s3"){if(ne.provider==="credential_chain")delete ne.accessKeyId,delete ne.secretAccessKey,delete ne.sessionToken;else if(delete ne.chain,!ne.accessKeyId||!ne.secretAccessKey)throw new Error(`Attached database "${te}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`)}const le=Jw[Q];le&&(Z[le]=ne)}return Z});F={name:V,type:k,duckdbConnection:{attachedDatabases:H}}}else{const H=e[Dm[k]]||{},N={};if(z.forEach(X=>{const Q=W.get(X.name)?.toString(),te=H[X.name];Q?N[X.name]=Q:YD.has(X.name)||(Q!==void 0?N[X.name]=Q:te&&(N[X.name]=te))}),k==="postgres"){const X=["host","port","databaseName","userName"],Q=c.has("postgresConnection.connectionString");if(!(N.connectionString?.trim()||Q)){const te=X;for(const Z of te)if(!N[Z])throw new Error(`${z.find(K=>K.name===Z)?.label||Z} is required`)}}else if(k==="snowflake"){if(!N.account)throw new Error("Account is required");if(!N.username)throw new Error("Username is required");if(!N.warehouse)throw new Error("Warehouse is required")}else if(k==="trino"){if(!N.server)throw new Error("Server is required");if(!N.user)throw new Error("User is required")}else if(k==="mysql"){const X=["host","port","database","user"];for(const Q of X)if(!N[Q])throw new Error(`${z.find(te=>te.name===Q)?.label||Q} is required`)}else if(k==="databricks"){if(!N.host)throw new Error("Host is required");if(!N.path)throw new Error("HTTP Path is required")}F={name:V,type:k,[Dm[k]]:N}}await t(F),T()},M=()=>{u([...f,{name:"",dbType:"postgres"}])},$=_=>{u(f.filter((W,V)=>V!==_))},D=(_,W)=>{const V=[...f];V[_]={...V[_],dbType:W},u(V)},I=(_,W)=>{const V=e.duckdbConnection?.attachedDatabases;if(!V||!V[_])return"";const k=V[_],z=Jw[k.type||""];return z&&k[z]?k[z][W]??"":""},A=_=>{const W=e.ducklakeConnection;if(!W)return"";if(_.startsWith("pg_")){const V=_.replace("pg_","");return W.catalog?.postgresConnection?.[V]??""}if(_==="bucketUrl")return W.storage?.bucketUrl??"";if(_.startsWith("s3_")){const V=_.replace("s3_","");return W.storage?.s3Connection?.[V]??""}if(_.startsWith("gcs_")){const V=_.replace("gcs_","");return W.storage?.gcsConnection?.[V]??""}return""};return m.jsxs(un.Fragment,{children:[m.jsxs(Xo,{"aria-label":`Edit connection ${e?.name??""}`.trim(),onClick:_=>{_.preventDefault(),_.stopPropagation(),b()},children:[m.jsx(CT,{children:m.jsx(Ok,{fontSize:"small"})}),m.jsx(kT,{children:"Edit"})]}),m.jsx(pa,{open:o,onClose:T,title:"Edit connection",description:"Change how packages in this environment reach your database.",actions:m.jsxs(m.Fragment,{children:[m.jsx(mo,{disabled:n,onClick:T,children:"Cancel"}),m.jsx(mo,{type:"submit",form:"connection-form",variant:"contained",loading:n,children:"Save changes"})]}),children:m.jsx("form",{onSubmit:E,id:"connection-form",children:m.jsxs(G0,{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:_=>l(_.target.value),children:Qz.map(_=>m.jsx(Xo,{value:_,children:_},_))}),s==="ducklake"?m.jsxs(Na,{sx:{mt:2},children:[m.jsxs(Na,{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:_=>y(_.target.value),children:m.jsx(Xo,{value:"postgres",children:"PostgreSQL"})}),h==="postgres"&&m.jsx(m.Fragment,{children:_l.postgres.map(_=>m.jsx(hr,{id:`ducklake_pg_${_.name}`,name:`ducklake_pg_${_.name}`,label:_.label,type:_.type,fullWidth:!0,size:"small",defaultValue:A(`pg_${_.name}`)},`pg_${_.name}`))})]}),m.jsxs(Na,{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:v,select:!0,onChange:_=>S(_.target.value),children:[m.jsx(Xo,{value:"s3",children:"S3"}),m.jsx(Xo,{value:"gcs",children:"GCS"})]}),m.jsx(hr,{required:!0,id:"ducklake_bucketUrl",name:"ducklake_bucketUrl",label:v==="s3"?"Bucket URL (e.g. s3://my-bucket/path)":"Bucket URL (e.g. gs://my-bucket/path)",type:"text",fullWidth:!0,size:"small",defaultValue:A("bucketUrl")}),v==="s3"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),vg.filter(_=>_.visibleWhen?x===_.visibleWhen.value:!0).map(_=>m.jsx(hr,{id:`ducklake_s3_${_.name}`,name:`ducklake_s3_${_.name}`,label:_.label,type:_.selectOptions?void 0:_.type,fullWidth:!0,size:"small",required:_.required&&_.name!=="secretAccessKey",select:!!_.selectOptions,defaultValue:_.selectOptions?x:A(`s3_${_.name}`),onChange:_.name==="provider"?W=>w(W.target.value):void 0,placeholder:_.name==="region"?"us-east-1":_.name==="secretAccessKey"&&c.has("ducklakeConnection.storage.s3Connection.secretAccessKey")?"Leave empty to keep existing":void 0,children:_.selectOptions?.map(W=>m.jsx(Xo,{value:W.value,children:W.label},W.value))},`s3_${_.name}`))]}),v==="gcs"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),bg.map(_=>m.jsx(hr,{id:`ducklake_gcs_${_.name}`,name:`ducklake_gcs_${_.name}`,label:_.label,type:_.type,fullWidth:!0,size:"small",required:_.required&&_.name!=="secret",defaultValue:A(`gcs_${_.name}`),placeholder:_.name==="secret"&&c.has("ducklakeConnection.storage.gcsConnection.secret")?"Leave empty to keep existing":void 0},`gcs_${_.name}`))]})]})]}):s==="duckdb"?m.jsxs(Na,{sx:{mt:2},children:[m.jsxs(Na,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsx(br,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),m.jsx(qg,{label:"Database",icon:m.jsx(_k,{}),onClick:M,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((_,W)=>{const V=Pb(_.dbType);return m.jsxs(Na,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsxs(Na,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsxs(br,{variant:"subtitle2",children:["Database ",W+1]}),m.jsx(tu,{"aria-label":`Remove attached database ${W+1}`,onClick:()=>$(W),size:"small",color:"error",children:m.jsx(Kz,{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:_.name}),m.jsx(hr,{id:`attachedDb_${W}_type`,name:`attachedDb_${W}_type`,label:"Database Type",fullWidth:!0,size:"small",value:_.dbType,select:!0,onChange:k=>D(W,k.target.value),children:Object.values(MI).map(k=>m.jsx(Xo,{value:k,children:k},k))}),V.filter(k=>k.visibleWhen?(_[k.visibleWhen.field]||I(W,k.visibleWhen.field)||V.find(z=>z.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:I(W,k.name)||k.selectOptions?.[0]?.value,onChange:k.selectOptions?z=>{const F=[...f];F[W]={...F[W],[k.name]:z.target.value},u(F)}:void 0,children:k.selectOptions?.map(z=>m.jsx(Xo,{value:z.value,children:z.label},z.value))},k.name))]},W)})]}):_l[s].map(_=>{const W=e?.[Dm[s]??""]?.[_.name??""]??"",V=_.type==="password"||YD.has(_.name),k=c.has(`${Dm[s]??""}.${_.name}`);return m.jsx(hr,{id:_.name,name:_.name,label:_.label,type:_.type,fullWidth:!0,size:"small",required:_.required&&!V&&!W,defaultValue:W,placeholder:k?"Leave empty to keep existing":void 0,helperText:V?k?"Stored value is not shown. Leave empty to keep it.":"No value stored.":void 0},_.name)})]})})})]})}function QD(e,t){return!e||e.type!=="duckdb"?!1:(e.duckdbConnection?.attachedDatabases||[]).some(n=>n.type==="azure"&&n.name===t)}function rhe(e){return e.startsWith("gs://")||e.startsWith("s3://")||e.startsWith("https://")||e.startsWith("abfss://")||e.startsWith("az://")}function ohe({connectionName:e,resourceUri:t,schema:n,connection:r}){const{apiClients:o}=Br(),{environmentName:a}=ko(t),[s,l]=un.useState(null),[c,f]=un.useState(n||null),[u,h]=un.useState(!1),{data:y,isError:v,isLoading:S,error:x}=ho({queryKey:["schemas",a,e],queryFn:()=>o.connections.listSchemas(a,e)}),w=y?.data||[];return m.jsxs(Uf,{container:!0,spacing:1,children:[!n&&m.jsx(Uf,{size:{xs:12,md:4},children:m.jsxs(Ha,{sx:{p:1,m:0},children:[m.jsxs(Ht,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[m.jsx(It,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),m.jsx(rk,{control:m.jsx(DN,{checked:u,onChange:b=>h(b.target.checked)}),label:"Hidden Schemas"})]}),m.jsx(qc,{sx:{mt:"2px"}}),m.jsxs(Ht,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[S&&m.jsx(fa,{text:"Loading schemas..."}),v&&m.jsx(ka,{error:x,context:`${a} > ${e} > Schemas`}),!S&&!v&&w.length===0&&m.jsx(It,{variant:"body2",children:"No Schemas"}),!S&&!v&&w.length>0&&m.jsx(ik,{dense:!0,disablePadding:!0,children:w.map(b=>{const T=b.name;return b.isHidden&&!u?null:m.jsx(kN,{selected:c===T,onClick:()=>{f(T),l(null)},children:m.jsx(eu,{primary:T})},T)})})]})]})}),m.jsx(Uf,{size:{xs:12,md:n?6:4},children:c&&m.jsx(Ha,{sx:{p:1,m:0},children:m.jsx(she,{connectionName:e,schemaName:c,onTableSelect:b=>{l(b)},resourceUri:t,connection:r})})}),m.jsx(Uf,{size:{xs:12,md:n?6:4},children:c&&s&&m.jsx(ahe,{environmentName:a,connectionName:e,schemaName:c,tableResource:s})})]})}function ahe({environmentName:e,connectionName:t,schemaName:n,tableResource:r}){const{apiClients:o}=Br(),{data:a,isLoading:s,isError:l,error:c}=ho({queryKey:["connectionTableDetail",e,t,n,r],queryFn:()=>o.connections.getTable(e,t,n,r),enabled:!!n&&!!r}),f={resource:a?.data?.resource??r,columns:a?.data?.columns??[]};return m.jsxs(Ha,{sx:{p:1,m:0},children:[l&&m.jsx(ka,{error:c,context:`${e} > ${t} > ${n} > ${r}`}),!l&&m.jsx(ihe,{table:f,loading:s})]})}function ihe({table:e,loading:t}){return t?m.jsx(fa,{text:"Loading columns..."}):m.jsxs(m.Fragment,{children:[m.jsxs(It,{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(qc,{}),m.jsx(Ht,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:m.jsx(BY,{children:m.jsxs(jg,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[m.jsx(Ig,{children:m.jsxs(al,{children:[m.jsx(Xn,{children:"NAME"}),m.jsx(Xn,{children:"TYPE"})]})}),m.jsx(Ng,{children:e.columns?.sort((n,r)=>n.name.localeCompare(r.name))?.map(n=>m.jsxs(al,{children:[m.jsx(Xn,{children:n.name}),m.jsx(Xn,{children:n.type})]},n.name))})]})})})]})}function she({connectionName:e,schemaName:t,onTableSelect:n,resourceUri:r,connection:o}){const{environmentName:a}=ko(r),{apiClients:s}=Br(),[l,c]=C.useState(""),{data:f,isSuccess:u,isError:h,error:y,isLoading:v}=ho({queryKey:["tablesInSchema",a,e,t],queryFn:()=>s.connections.listTables(a,e,t)}),S=QD(o,t),x=b=>S?b:b.split(".").pop()||b,w=u&&f?.data?f.data.filter(b=>x(b.resource).toLowerCase().includes(l.toLowerCase())).sort((b,T)=>x(b.resource).localeCompare(x(T.resource))):[];return m.jsxs(m.Fragment,{children:[m.jsx(It,{variant:"overline",fontWeight:"bold",children:rhe(t)||QD(o,t)?`Files in ${t}`:`Tables in ${t}`}),m.jsx(qc,{}),m.jsx(Ht,{sx:{mt:1,mb:1},children:m.jsx(Ia,{size:"small",fullWidth:!0,placeholder:"Search tables...",value:l,onChange:b=>c(b.target.value),variant:"outlined"})}),m.jsx(qc,{}),m.jsxs(Ht,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[v&&m.jsx(fa,{text:"Fetching Tables..."}),h&&m.jsx(ka,{error:y,context:`${a} > ${e} > ${t}`}),u&&w.length===0&&m.jsx(It,{variant:"body2",children:"No Tables"}),u&&f?.data&&f.data.length>0&&m.jsx(ik,{dense:!0,disablePadding:!0,children:w.map(b=>{let T=x(b.resource);return!S&&b.resource.includes("://")&&(T=b.resource.split("/").pop()||b.resource),m.jsx(kN,{onClick:()=>n(b.resource),children:m.jsx(eu,{primary:T,secondary:b.columns.length>0?`${b.columns.length} columns`:void 0})},b.resource)})})]})]})}const lhe={bigquery:"BigQuery",snowflake:"Snowflake",postgres:"PostgreSQL",mysql:"MySQL",trino:"Trino",databricks:"Databricks",duckdb:"DuckDB",ducklake:"DuckLake",s3:"S3",gcs:"GCS",azure:"Azure"};function che(e){return e?lhe[e]??e:""}function uhe({resourceUri:e}){const{apiClients:t,mutable:n}=Br(),r=bd(),{environmentName:o}=ko(e),[a,s]=C.useState(""),[l,c]=C.useState(null),f=j0({environmentName:o,connectionName:l}),{data:u,isSuccess:h,isError:y,error:v}=ho({queryKey:["connections",o],queryFn:()=>t.connections.listConnections(o)}),S=Js({mutationFn:Fl("connection","create",E=>t.environments.updateEnvironment(o,{name:o,connections:[...u.data,E]})),onSuccess(){s("Connection added successfully"),r.invalidateQueries({queryKey:["connections",o]})},onError(E){s(E.message)}}),x=Js({mutationFn:Fl("connection","update",E=>t.environments.updateEnvironment(o,{name:o,connections:u.data.map(M=>M.name===E.name?E:M)})),onSuccess(E,M){s(`Connection ${M.name} updated successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(E){s(E.message)}}),w=Js({mutationFn:Fl("connection","delete",E=>{if(!E.name)throw new Error("Cannot delete a connection with no name");return t.connections.deleteConnection(o,E.name)}),onSuccess(E,M){s(`Connection ${M.name} deleted successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(E){s(E.message)}}),b=h?[...u.data].sort((E,M)=>(E.name??"").localeCompare(M.name??"")):[],T=S.isPending||x.isPending||w.isPending;return m.jsxs(ws,{title:"Connections",...h?{count:b.length}:{},description:"Database connections available to packages in this environment",...n&&h?{action:m.jsx(ehe,{onSubmit:E=>S.mutateAsync(E),isSubmitting:S.isPending})}:{},children:[!h&&!y&&m.jsx(It,{variant:"body2",color:"text.secondary",children:"Fetching Connections..."}),y&&m.jsx(ka,{error:v,context:`${o} > Connections`}),h&&b.length===0&&m.jsx(It,{variant:"body2",color:"text.secondary",children:"No connections yet."}),h&&b.length>0&&m.jsx(fr,{children:b.map(E=>m.jsx(dhe,{connection:E,mutable:n,isMutating:T,onOpenExplorer:()=>c(E.name??null),onEdit:M=>x.mutateAsync(M),onDelete:M=>w.mutateAsync(M)},E.name))}),m.jsx(f0,{open:a!=="",autoHideDuration:6e3,onClose:()=>s(""),message:a}),m.jsx(pa,{open:l!==null,onClose:()=>c(null),maxWidth:"lg",title:`Connection explorer: ${l??""}`,showClose:!0,children:l&&m.jsx(ohe,{resourceUri:f,connectionName:l,connection:u?.data?.find(E=>E.name===l)})})]})}function dhe({connection:e,mutable:t,isMutating:n,onOpenExplorer:r,onEdit:o,onDelete:a}){const[s,l]=C.useState(null),c=!!s,f=h=>{h.stopPropagation(),l(h.currentTarget)},u=()=>l(null);return m.jsx(Y0,{icon:m.jsx(_pe,{sx:{fontSize:18}}),tint:Ck.connection,label:e.name??"",ariaLabel:e.name??"",description:che(e.type),onClick:r,...t?{trailingAction:m.jsxs(m.Fragment,{children:[m.jsx(Jr,{size:"small",onClick:f,"aria-label":`Connection actions for ${e.name??""}`.trim(),children:m.jsx(S0,{fontSize:"small"})}),m.jsxs(yd,{anchorEl:s,open:c,onClose:u,onClick:h=>h.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[m.jsx(nhe,{connection:e,onSubmit:o,isSubmitting:n,onCloseDialog:u}),m.jsx(the,{connection:e,onCloseDialog:u,isMutating:n,onDelete:()=>a(e)})]})]})}:{}})}const fhe=lr([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 phe({resourceUri:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=Br(),a=()=>{r(!0)},s=()=>{r(!1),t()},{environmentName:l,packageName:c}=ko(e),f=Ap({mutationFn:()=>o.packages.deletePackage(l,c),success:"Package deleted",invalidates:[["packages",l]],closeDialog:s,resource:"package",action:"delete"});return m.jsxs(un.Fragment,{children:[m.jsxs(Ca,{onClick:a,children:[m.jsx(Rp,{children:m.jsx(x0,{fontSize:"small"})}),m.jsx(eu,{children:"Delete"})]}),m.jsx(pa,{open:n,onClose:s,title:"Delete package",actions:m.jsxs(m.Fragment,{children:[m.jsx(mo,{onClick:s,children:"Cancel"}),m.jsx(mo,{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:c}),"? The package stops being served and this cannot be undone."]})}),f.notice]})}function hhe({package:e,resourceUri:t,onCloseDialog:n}){const[r,o]=C.useState(!1),{apiClients:a}=Br(),s=()=>{o(!0)},l=()=>{o(!1),n()},{packageName:c,environmentName:f}=ko(t),u=Ap({mutationFn(y){return a.packages.updatePackage(f,c,{name:c,description:y.description})},success:"Package updated",invalidates:[["packages",f]],closeDialog:l,resource:"package",action:"update"}),h=y=>{y.preventDefault();const v=new FormData(y.currentTarget).get("description")?.toString();u.mutate({description:v})};return m.jsxs(un.Fragment,{children:[m.jsxs(Ca,{onClick:s,children:[m.jsx(Rp,{children:m.jsx(Ok,{fontSize:"small"})}),m.jsx(eu,{children:"Edit"})]}),m.jsx(pa,{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(mo,{disabled:u.isPending,onClick:l,children:"Cancel"}),m.jsx(mo,{type:"submit",form:"package-form",variant:"contained",loading:u.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}})]})})}),u.notice]})}function mhe({onSelectPackage:e,resourceUri:t}){const{apiClients:n}=Br(),{environmentName:r}=ko(t),{data:o,isSuccess:a,isError:s,error:l}=ho({queryKey:["packages",r],queryFn:()=>n.packages.listPackages(r)});if(s)return m.jsx(ka,{error:l,context:`${r} > Packages`});if(!a)return m.jsx(fa,{text:"Fetching Packages..."});const c=[...o.data].sort((f,u)=>f.name.localeCompare(u.name));return m.jsx(fr,{children:c.map(f=>{const u=j0({environmentName:r,packageName:f.name});return m.jsx(ghe,{pkg:f,packageResourceUri:u,onSelectPackage:e},f.name)})})}function ghe({pkg:e,packageResourceUri:t,onSelectPackage:n}){const{mutable:r}=Br(),[o,a]=C.useState(null),s=!!o,l=f=>{f.stopPropagation(),a(f.currentTarget)},c=()=>a(null);return m.jsx(Y0,{icon:m.jsx(fhe,{sx:{fontSize:18}}),tint:Ck.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(Jr,{size:"small",onClick:l,"aria-label":`Package actions for ${e.name}`,children:m.jsx(S0,{fontSize:"small"})}),m.jsxs(yd,{anchorEl:o,open:s,onClose:c,onClick:f=>f.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[m.jsx(hhe,{package:e,resourceUri:t,onCloseDialog:c}),m.jsx(phe,{resourceUri:t,onCloseDialog:c})]})]})}:{}})}function Rye({onSelectPackage:e,resourceUri:t}){const{apiClients:n,mutable:r}=Br(),{environmentName:o}=ko(t),a=ho({queryKey:["packages",o],queryFn:()=>n.packages.listPackages(o)});return C.useEffect(()=>{window.scrollTo({top:0,behavior:"auto"})},[]),m.jsxs(tk,{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(Wz,{label:"Publisher",onClick:s=>e("/",s)})}),m.jsx(It,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:o}),m.jsx(It,{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(ws,{title:"Packages",...a.isSuccess?{count:a.data.data.length}:{},description:"Published packages available for use in this environment",...r?{action:m.jsx(Fpe,{resourceUri:t})}:{},children:m.jsx(mhe,{onSelectPackage:e,resourceUri:t})}),m.jsx(uhe,{resourceUri:t}),m.jsx(kpe,{resourceUri:t})]})}$r.extend(Mk);function Oye(){const[e]=r_(),t=kg(),n=ns(),r=C.useMemo(()=>Object.fromEntries(e.entries()),[e]),o=C.useRef(new Set),a=C.useCallback((s,l)=>{const c=new Set([...l,...o.current]);o.current=new Set([...o.current,...Object.keys(s),...l]);const f=new URLSearchParams(n.search);for(const u of c)Object.prototype.hasOwnProperty.call(s,u)||f.delete(u);for(const[u,h]of Object.entries(s))f.set(u,h);t({search:f.toString(),hash:n.hash},{replace:!0})},[t,n]);return{params:r,onGivensChange:a}}const yhe=lr(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"})),Xz=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(" ")+"..."},Zz=(e,t)=>{const n=(e.readme||void 0)?.split(`
|
|
441
|
-
`)??[];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(`
|
|
442
|
-
`)};function XD(){const[e,t]=C.useState(!1),{apiClients:n}=Br(),r=()=>{t(!0)},o=()=>{t(!1)},a=Ap({mutationFn(l){return n.environments.createEnvironment({name:l.name,readme:Zz({name:l.name,readme:""},l.description)})},success:"Environment created",invalidates:[["environments"]],closeDialog:o,resource:"environment",action:"create"}),s=async l=>{l.preventDefault();const c=new FormData(l.currentTarget),f=c.get("name")?.toString(),u=c.get("description")?.toString();if(!f)throw new Error("Name is required");a.mutate({name:f,description:u})};return m.jsxs(un.Fragment,{children:[m.jsx(Wg,{label:"Environment",onClick:r}),m.jsx(pa,{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(mo,{disabled:a.isPending,onClick:o,children:"Cancel"}),m.jsx(mo,{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(G0,{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 vhe({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=Br(),a=()=>{r(!0)},s=()=>{r(!1),t()},l=Ap({mutationFn:()=>o.environments.deleteEnvironment(e.name),success:"Environment deleted",invalidates:[["environments"]],closeDialog:s,resource:"environment",action:"delete"});return m.jsxs(un.Fragment,{children:[m.jsxs(Ca,{onClick:a,children:[m.jsx(Rp,{children:m.jsx(x0,{fontSize:"small"})}),m.jsx(eu,{children:"Delete"})]}),m.jsx(pa,{open:n,onClose:s,title:"Delete environment",actions:m.jsxs(m.Fragment,{children:[m.jsx(mo,{onClick:s,children:"Cancel"}),m.jsx(mo,{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 bhe({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=Br(),a=()=>{r(!0)},s=()=>{r(!1),t()},l=Ap({mutationFn(f){return o.environments.updateEnvironment(e.name,{name:e.name,readme:Zz({name:e.name,readme:e.readme},f.description)})},success:"Environment updated",invalidates:[["environments"]],closeDialog:s,resource:"environment",action:"update"}),c=f=>{f.preventDefault();const u=new FormData(f.currentTarget).get("description")?.toString();l.mutate({description:u})};return m.jsxs(un.Fragment,{children:[m.jsxs(Ca,{onClick:a,children:[m.jsx(Rp,{children:m.jsx(Ok,{fontSize:"small"})}),m.jsx(eu,{children:"Edit"})]}),m.jsx(pa,{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(mo,{disabled:l.isPending,onClick:s,children:"Cancel"}),m.jsx(mo,{type:"submit",form:"environment-form",variant:"contained",loading:l.isPending,children:"Save changes"})]}),children:m.jsx("form",{onSubmit:c,id:"environment-form",children:m.jsxs(G0,{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:Xz(e.readme),InputLabelProps:{shrink:!0}})]})})}),l.notice]})}const xhe=[{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:Pc.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:Pc.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:Pc.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:Pc.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:Pc.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:Pc.connections}];function She({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 Mye({onClickEnvironment:e}){const{apiClients:t,mutable:n}=Br(),{data:r,isSuccess:o,isError:a,error:s}=ho({queryKey:["environments"],queryFn:()=>t.environments.listEnvironments()});if(a)return m.jsx(ka,{error:s,context:"Environments List"});if(!o)return m.jsx(fa,{text:"Loading environments..."});const l=r.data??[];return m.jsxs(tk,{maxWidth:"md",sx:{py:6},children:[m.jsxs(Ht,{sx:{mb:5},children:[m.jsx(It,{variant:"h3",component:"h1",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Publisher"}),m.jsx(It,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"The analytics engine for Malloy."}),m.jsx(It,{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(Uf,{container:!0,spacing:4,sx:{mb:5},children:xhe.map(c=>m.jsx(Uf,{size:{xs:12,sm:6},children:m.jsxs(fr,{spacing:1,children:[m.jsx(It,{variant:"body2",component:"a",href:c.href,target:"_blank",rel:"noopener noreferrer",sx:{fontWeight:500,color:"text.primary",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:c.title}),m.jsx(It,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.6},children:c.body})]})},c.title))}),m.jsx(qc,{sx:{my:4}}),l.length>0?m.jsx(ws,{title:"Environments",count:l.length,description:"Published environments available on this server",...n?{action:m.jsx(XD,{})}:{},children:m.jsx(fr,{children:l.map(c=>m.jsx(whe,{environment:c,...e?{onClickEnvironment:e}:{}},c.name))})}):m.jsxs(Ht,{sx:{mb:4},children:[m.jsx(It,{variant:"h5",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Get started"}),m.jsx(It,{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(XD,{}):m.jsx(Jo,{variant:"contained",color:"primary",href:Pc.publishing,target:"_blank",rel:"noopener noreferrer",children:"Learn how to create models"})]}),m.jsx(qc,{sx:{my:4}}),m.jsxs(It,{variant:"body2",color:"text.secondary",sx:{maxWidth:720,lineHeight:1.6,mt:2},children:["Join the"," ",m.jsx(She,{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 whe({environment:e,onClickEnvironment:t}){const{mutable:n}=Br(),[r,o]=C.useState(null),a=!!r,s=Xz(e.readme),l=f=>{f.stopPropagation(),o(f.currentTarget)},c=()=>o(null);return m.jsx(Y0,{icon:m.jsx(yhe,{sx:{fontSize:18}}),tint:Ck.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(Jr,{size:"small",onClick:l,"aria-label":`Environment actions for ${e.name}`,children:m.jsx(S0,{fontSize:"small"})}),m.jsxs(yd,{anchorEl:r,open:a,onClose:c,onClick:f=>f.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[m.jsx(bhe,{environment:e,onCloseDialog:c}),m.jsx(vhe,{environment:e,onCloseDialog:c})]})]})}:{}})}var Pf={},ii={},pm={},Df={},ZD={},JD;function Che(){return JD||(JD=1,Object.defineProperty(ZD,"__esModule",{value:!0})),ZD}var hm={},mm={},eA;function kd(){if(eA)return mm;eA=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.CronField=void 0;let e=class Jz{#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(Jz.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=>c=>new RegExp(`^\\d{0,2}${c}$`).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,c)=>this.#o.indexOf(l)!==c);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 mm.CronField=e,mm}var tA;function khe(){if(tA)return hm;tA=1,Object.defineProperty(hm,"__esModule",{value:!0}),hm.CronDayOfMonth=void 0;const e=kd(),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 hm.CronDayOfMonth=o,hm}var gm={},nA;function The(){if(nA)return gm;nA=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.CronDayOfWeek=void 0;const e=kd(),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 gm.CronDayOfWeek=o,gm}var ym={},rA;function Ehe(){if(rA)return ym;rA=1,Object.defineProperty(ym,"__esModule",{value:!0}),ym.CronHour=void 0;const e=kd(),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 ym.CronHour=o,ym}var vm={},oA;function Rhe(){if(oA)return vm;oA=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.CronMinute=void 0;const e=kd(),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 vm.CronMinute=o,vm}var bm={},aA={},Aa={},iA;function Ohe(){if(iA)return Aa;iA=1,Object.defineProperty(Aa,"__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 c="numeric",f="short",u="long",h={year:c,month:c,day:c},y={year:c,month:f,day:c},v={year:c,month:f,day:c,weekday:f},S={year:c,month:u,day:c},x={year:c,month:u,day:c,weekday:u},w={hour:c,minute:c},b={hour:c,minute:c,second:c},T={hour:c,minute:c,second:c,timeZoneName:f},E={hour:c,minute:c,second:c,timeZoneName:u},M={hour:c,minute:c,hourCycle:"h23"},$={hour:c,minute:c,second:c,hourCycle:"h23"},D={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:f},I={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:u},A={year:c,month:c,day:c,hour:c,minute:c},_={year:c,month:c,day:c,hour:c,minute:c,second:c},W={year:c,month:f,day:c,hour:c,minute:c},V={year:c,month:f,day:c,hour:c,minute:c,second:c},k={year:c,month:f,day:c,weekday:f,hour:c,minute:c},z={year:c,month:u,day:c,hour:c,minute:c,timeZoneName:f},F={year:c,month:u,day:c,hour:c,minute:c,second:c,timeZoneName:f},H={year:c,month:u,day:c,weekday:u,hour:c,minute:c,timeZoneName:u},N={year:c,month:u,day:c,weekday:u,hour:c,minute:c,second:c,timeZoneName:u};class X{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(O,L){throw new l}formatOffset(O,L){throw new l}offset(O){throw new l}equals(O){throw new l}get isValid(){throw new l}}let Q=null;class te extends X{static get instance(){return Q===null&&(Q=new te),Q}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(O,{format:L,locale:Y}){return ru(O,L,Y)}formatOffset(O,L){return Ms(this.offset(O),L)}offset(O){return-new Date(O).getTimezoneOffset()}equals(O){return O.type==="system"}get isValid(){return!0}}const Z=new Map;function K(U){let O=Z.get(U);return O===void 0&&(O=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:U,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Z.set(U,O)),O}const ne={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function le(U,O){const L=U.format(O).replace(/\u200E/g,""),Y=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(L),[,ee,ve,$e,Fe,We,Ot,vn]=Y;return[$e,ee,ve,Fe,We,Ot,vn]}function fe(U,O){const L=U.formatToParts(O),Y=[];for(let ee=0;ee<L.length;ee++){const{type:ve,value:$e}=L[ee],Fe=ne[ve];ve==="era"?Y[Fe]=$e:Ue(Fe)||(Y[Fe]=parseInt($e,10))}return Y}const ae=new Map;class se extends X{static create(O){let L=ae.get(O);return L===void 0&&ae.set(O,L=new se(O)),L}static resetCache(){ae.clear(),Z.clear()}static isValidSpecifier(O){return this.isValidZone(O)}static isValidZone(O){if(!O)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:O}).format(),!0}catch{return!1}}constructor(O){super(),this.zoneName=O,this.valid=se.isValidZone(O)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(O,{format:L,locale:Y}){return ru(O,L,Y,this.name)}formatOffset(O,L){return Ms(this.offset(O),L)}offset(O){if(!this.valid)return NaN;const L=new Date(O);if(isNaN(L))return NaN;const Y=K(this.name);let[ee,ve,$e,Fe,We,Ot,vn]=Y.formatToParts?fe(Y,L):le(Y,L);Fe==="BC"&&(ee=-Math.abs(ee)+1);const Nn=Ya({year:ee,month:ve,day:$e,hour:We===24?0:We,minute:Ot,second:vn,millisecond:0});let ur=+L;const Sn=ur%1e3;return ur-=Sn>=0?Sn:1e3+Sn,(Nn-ur)/(60*1e3)}equals(O){return O.type==="iana"&&O.name===this.name}get isValid(){return this.valid}}let ie={};function pe(U,O={}){const L=JSON.stringify([U,O]);let Y=ie[L];return Y||(Y=new Intl.ListFormat(U,O),ie[L]=Y),Y}const me=new Map;function Te(U,O={}){const L=JSON.stringify([U,O]);let Y=me.get(L);return Y===void 0&&(Y=new Intl.DateTimeFormat(U,O),me.set(L,Y)),Y}const Ce=new Map;function ke(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 ce=new Map;function we(U,O={}){const{base:L,...Y}=O,ee=JSON.stringify([U,Y]);let ve=ce.get(ee);return ve===void 0&&(ve=new Intl.RelativeTimeFormat(U,O),ce.set(ee,ve)),ve}let Ge=null;function Be(){return Ge||(Ge=new Intl.DateTimeFormat().resolvedOptions().locale,Ge)}const Ae=new Map;function oe(U){let O=Ae.get(U);return O===void 0&&(O=new Intl.DateTimeFormat(U).resolvedOptions(),Ae.set(U,O)),O}const lt=new Map;function Ne(U){let O=lt.get(U);if(!O){const L=new Intl.Locale(U);O="getWeekInfo"in L?L.getWeekInfo():L.weekInfo,"minimalDays"in O||(O={...qe,...O}),lt.set(U,O)}return O}function et(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=Te(U).resolvedOptions(),ee=U}catch{const Fe=U.substring(0,L);Y=Te(Fe).resolvedOptions(),ee=Fe}const{numberingSystem:ve,calendar:$e}=Y;return[ee,ve,$e]}}function mt(U,O,L){return(L||O)&&(U.includes("-u-")||(U+="-u"),L&&(U+=`-ca-${L}`),O&&(U+=`-nu-${O}`)),U}function Wt(U){const O=[];for(let L=1;L<=12;L++){const Y=yn.utc(2009,L,1);O.push(U(Y))}return O}function zt(U){const O=[];for(let L=1;L<=7;L++){const Y=yn.utc(2016,11,13+L);O.push(U(Y))}return O}function tt(U,O,L,Y){const ee=U.listingMode();return ee==="error"?null:ee==="en"?L(O):Y(O)}function Je(U){return U.numberingSystem&&U.numberingSystem!=="latn"?!1:U.numberingSystem==="latn"||!U.locale||U.locale.startsWith("en")||oe(U.locale).numberingSystem==="latn"}class ct{constructor(O,L,Y){this.padTo=Y.padTo||0,this.floor=Y.floor||!1;const{padTo:ee,floor:ve,...$e}=Y;if(!L||Object.keys($e).length>0){const Fe={useGrouping:!1,...Y};Y.padTo>0&&(Fe.minimumIntegerDigits=Y.padTo),this.inf=ke(O,Fe)}}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):is(O,3);return Xt(L,this.padTo)}}}class Ie{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 $e=-1*(O.offset/60),Fe=$e>=0?`Etc/GMT+${$e}`:`Etc/GMT${$e}`;O.offset!==0&&se.create(Fe).valid?(ee=Fe,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=Te(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&&Re()&&(this.rtf=we(O,Y))}format(O,L){return this.rtf?this.rtf.format(O,L):ec(L,O,this.opts.numeric,this.opts.style!=="long")}formatToParts(O,L){return this.rtf?this.rtf.formatToParts(O,L):[]}}const qe={firstDay:1,minimalDays:4,weekend:[6,7]};class De{static fromOpts(O){return De.create(O.locale,O.numberingSystem,O.outputCalendar,O.weekSettings,O.defaultToEN)}static create(O,L,Y,ee,ve=!1){const $e=O||on.defaultLocale,Fe=$e||(ve?"en-US":Be()),We=L||on.defaultNumberingSystem,Ot=Y||on.defaultOutputCalendar,vn=Zt(ee)||on.defaultWeekSettings;return new De(Fe,We,Ot,vn,$e)}static resetCache(){Ge=null,me.clear(),Ce.clear(),ce.clear(),Ae.clear(),lt.clear()}static fromObject({locale:O,numberingSystem:L,outputCalendar:Y,weekSettings:ee}={}){return De.create(O,L,Y,ee)}constructor(O,L,Y,ee,ve){const[$e,Fe,We]=et(O);this.locale=$e,this.numberingSystem=L||Fe||null,this.outputCalendar=Y||We||null,this.weekSettings=ee,this.intl=mt(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=Je(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:De.create(O.locale||this.specifiedLocale,O.numberingSystem||this.numberingSystem,O.outputCalendar||this.outputCalendar,Zt(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 tt(this,O,ml,()=>{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 $e=Y?Fe=>this.dtFormatter(Fe,ee).format():Fe=>this.extract(Fe,ee,"month");this.monthsCache[ve][O]=Wt($e)}return this.monthsCache[ve][O]})}weekdays(O,L=!1){return tt(this,O,cs,()=>{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]=zt(ve=>this.extract(ve,Y,"weekday"))),this.weekdaysCache[ee][O]})}meridiems(){return tt(this,void 0,()=>au,()=>{if(!this.meridiemCache){const O={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[yn.utc(2016,11,13,9),yn.utc(2016,11,13,19)].map(L=>this.extract(L,O,"dayperiod"))}return this.meridiemCache})}eras(O){return tt(this,O,Ea,()=>{const L={era:O};return this.eraCache[O]||(this.eraCache[O]=[yn.utc(-40,1,1),yn.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(),$e=ve.find(Fe=>Fe.type.toLowerCase()===Y);return $e?$e.value:null}numberFormatter(O={}){return new ct(this.intl,O.forceSimple||this.fastNumbers,O)}dtFormatter(O,L={}){return new Ie(O,this.intl,L)}relFormatter(O={}){return new he(this.intl,this.isEnglish(),O)}listFormatter(O={}){return pe(this.intl,O)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||oe(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:it()?Ne(this.locale):qe}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 wt=null;class Ct extends X{static get utcInstance(){return wt===null&&(wt=new Ct(0)),wt}static instance(O){return O===0?Ct.utcInstance:new Ct(O)}static parseSpecifier(O){if(O){const L=O.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(L)return new Ct(pl(L[1],L[2]))}return null}constructor(O){super(),this.fixed=O}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ms(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ms(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(O,L){return Ms(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 yt extends X{constructor(O){super(),this.zoneName=O}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function st(U,O){if(Ue(U)||U===null)return O;if(U instanceof X)return U;if(nn(U)){const L=U.toLowerCase();return L==="default"?O:L==="local"||L==="system"?te.instance:L==="utc"||L==="gmt"?Ct.utcInstance:Ct.parseSpecifier(L)||se.create(U)}else return Mt(U)?Ct.instance(U):typeof U=="object"&&"offset"in U&&typeof U.offset=="function"?U:new yt(U)}const jt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},qt={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]},mn=jt.hanidec.replace(/[\[|\]]/g,"").split("");function $n(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(jt.hanidec)!==-1)O+=mn.indexOf(U[L]);else for(const ee in qt){const[ve,$e]=qt[ee];Y>=ve&&Y<=$e&&(O+=Y-ve)}}return parseInt(O,10)}else return O}const _n=new Map;function Un(){_n.clear()}function Jt({numberingSystem:U},O=""){const L=U||"latn";let Y=_n.get(L);Y===void 0&&(Y=new Map,_n.set(L,Y));let ee=Y.get(O);return ee===void 0&&(ee=new RegExp(`${jt[L]}${O}`),Y.set(O,ee)),ee}let An=()=>Date.now(),xe="system",Vn=null,Rn=null,en=null,$t=60,zr,Fn=null;class on{static get now(){return An}static set now(O){An=O}static set defaultZone(O){xe=O}static get defaultZone(){return st(xe,te.instance)}static get defaultLocale(){return Vn}static set defaultLocale(O){Vn=O}static get defaultNumberingSystem(){return Rn}static set defaultNumberingSystem(O){Rn=O}static get defaultOutputCalendar(){return en}static set defaultOutputCalendar(O){en=O}static get defaultWeekSettings(){return Fn}static set defaultWeekSettings(O){Fn=Zt(O)}static get twoDigitCutoffYear(){return $t}static set twoDigitCutoffYear(O){$t=O%100}static get throwOnInvalid(){return zr}static set throwOnInvalid(O){zr=O}static resetCaches(){De.resetCache(),se.resetCache(),yn.resetCache(),Un()}}class Ln{constructor(O,L){this.reason=O,this.explanation=L}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ge=[0,31,59,90,120,151,181,212,243,273,304,334],Ee=[0,31,60,91,121,152,182,213,244,274,305,335];function Le(U,O){return new Ln("unit out of range",`you specified ${O} (of type ${typeof O}) as a ${U}, which is invalid`)}function Ve(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 rt(U,O,L){return L+(ea(U)?Ee:ge)[O-1]}function kt(U,O){const L=ea(U)?Ee:ge,Y=L.findIndex(ve=>ve<O),ee=O-L[Y];return{month:Y+1,day:ee}}function bt(U,O){return(U-O+7)%7+1}function Tt(U,O=4,L=1){const{year:Y,month:ee,day:ve}=U,$e=rt(Y,ee,ve),Fe=bt(Ve(Y,ee,ve),L);let We=Math.floor(($e-Fe+14-O)/7),Ot;return We<1?(Ot=Y-1,We=ss(Ot,O,L)):We>ss(Y,O,L)?(Ot=Y+1,We=1):Ot=Y,{weekYear:Ot,weekNumber:We,weekday:Fe,...hl(U)}}function Pt(U,O=4,L=1){const{weekYear:Y,weekNumber:ee,weekday:ve}=U,$e=bt(Ve(Y,1,O),L),Fe=cr(Y);let We=ee*7+ve-$e-7+O,Ot;We<1?(Ot=Y-1,We+=cr(Ot)):We>Fe?(Ot=Y+1,We-=cr(Y)):Ot=Y;const{month:vn,day:Nn}=kt(Ot,We);return{year:Ot,month:vn,day:Nn,...hl(U)}}function Kt(U){const{year:O,month:L,day:Y}=U,ee=rt(O,L,Y);return{year:O,ordinal:ee,...hl(U)}}function Dt(U){const{year:O,ordinal:L}=U,{month:Y,day:ee}=kt(O,L);return{year:O,month:Y,day:ee,...hl(U)}}function Ft(U,O){if(!Ue(U.localWeekday)||!Ue(U.localWeekNumber)||!Ue(U.localWeekYear)){if(!Ue(U.weekday)||!Ue(U.weekNumber)||!Ue(U.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return Ue(U.localWeekday)||(U.weekday=U.localWeekday),Ue(U.localWeekNumber)||(U.weekNumber=U.localWeekNumber),Ue(U.localWeekYear)||(U.weekYear=U.localWeekYear),delete U.localWeekday,delete U.localWeekNumber,delete U.localWeekYear,{minDaysInFirstWeek:O.getMinDaysInFirstWeek(),startOfWeek:O.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function ue(U,O=4,L=1){const Y=Yt(U.weekYear),ee=bn(U.weekNumber,1,ss(U.weekYear,O,L)),ve=bn(U.weekday,1,7);return Y?ee?ve?!1:Le("weekday",U.weekday):Le("week",U.weekNumber):Le("weekYear",U.weekYear)}function de(U){const O=Yt(U.year),L=bn(U.ordinal,1,cr(U.year));return O?L?!1:Le("ordinal",U.ordinal):Le("year",U.year)}function ze(U){const O=Yt(U.year),L=bn(U.month,1,12),Y=bn(U.day,1,Fr(U.year,U.month));return O?L?Y?!1:Le("day",U.day):Le("month",U.month):Le("year",U.year)}function ft(U){const{hour:O,minute:L,second:Y,millisecond:ee}=U,ve=bn(O,0,23)||O===24&&L===0&&Y===0&&ee===0,$e=bn(L,0,59),Fe=bn(Y,0,59),We=bn(ee,0,999);return ve?$e?Fe?We?!1:Le("millisecond",ee):Le("second",Y):Le("minute",L):Le("hour",O)}function Ue(U){return typeof U>"u"}function Mt(U){return typeof U=="number"}function Yt(U){return typeof U=="number"&&U%1===0}function nn(U){return typeof U=="string"}function ye(U){return Object.prototype.toString.call(U)==="[object Date]"}function Re(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function it(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function xt(U){return Array.isArray(U)?U:[U]}function Et(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 Rt(U,O){return O.reduce((L,Y)=>(L[Y]=U[Y],L),{})}function At(U,O){return Object.prototype.hasOwnProperty.call(U,O)}function Zt(U){if(U==null)return null;if(typeof U!="object")throw new s("Week settings must be an object");if(!bn(U.firstDay,1,7)||!bn(U.minimalDays,1,7)||!Array.isArray(U.weekend)||U.weekend.some(O=>!bn(O,1,7)))throw new s("Invalid week settings");return{firstDay:U.firstDay,minimalDays:U.minimalDays,weekend:Array.from(U.weekend)}}function bn(U,O,L){return Yt(U)&&U>=O&&U<=L}function tr(U,O){return U-O*Math.floor(U/O)}function Xt(U,O=2){const L=U<0;let Y;return L?Y="-"+(""+-U).padStart(O,"0"):Y=(""+U).padStart(O,"0"),Y}function Pr(U){if(!(Ue(U)||U===null||U===""))return parseInt(U,10)}function oo(U){if(!(Ue(U)||U===null||U===""))return parseFloat(U)}function To(U){if(!(Ue(U)||U===null||U==="")){const O=parseFloat("0."+U)*1e3;return Math.floor(O)}}function is(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 ea(U){return U%4===0&&(U%100!==0||U%400===0)}function cr(U){return ea(U)?366:365}function Fr(U,O){const L=tr(O-1,12)+1,Y=U+(O-L)/12;return L===2?ea(Y)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][L-1]}function Ya(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 fl(U,O,L){return-bt(Ve(U,1,O),L)+O-1}function ss(U,O=4,L=1){const Y=fl(U,O,L),ee=fl(U+1,O,L);return(cr(U)-Y+ee)/7}function ki(U){return U>99?U:U>on.twoDigitCutoffYear?1900+U:2e3+U}function ru(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 $e={timeZoneName:O,...ve},Fe=new Intl.DateTimeFormat(L,$e).formatToParts(ee).find(We=>We.type.toLowerCase()==="timezonename");return Fe?Fe.value:null}function pl(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 ls(U){const O=Number(U);if(typeof U=="boolean"||U===""||!Number.isFinite(O))throw new s(`Invalid unit value ${U}`);return O}function Xl(U,O){const L={};for(const Y in U)if(At(U,Y)){const ee=U[Y];if(ee==null)continue;L[O(Y)]=ls(ee)}return L}function Ms(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}${Xt(L,2)}:${Xt(Y,2)}`;case"narrow":return`${ee}${L}${Y>0?`:${Y}`:""}`;case"techie":return`${ee}${Xt(L,2)}${Xt(Y,2)}`;default:throw new RangeError(`Value format ${O} is out of range for property format`)}}function hl(U){return Rt(U,["hour","minute","second","millisecond"])}const ou=["January","February","March","April","May","June","July","August","September","October","November","December"],Td=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jp=["J","F","M","A","M","J","J","A","S","O","N","D"];function ml(U){switch(U){case"narrow":return[...jp];case"short":return[...Td];case"long":return[...ou];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Zl=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Jl=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],$s=["M","T","W","T","F","S","S"];function cs(U){switch(U){case"narrow":return[...$s];case"short":return[...Jl];case"long":return[...Zl];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const au=["AM","PM"],iu=["Before Christ","Anno Domini"],Ed=["BC","AD"],gl=["B","A"];function Ea(U){switch(U){case"narrow":return[...gl];case"short":return[...Ed];case"long":return[...iu];default:return null}}function su(U){return au[U.hour<12?0:1]}function yl(U,O){return cs(O)[U.weekday-1]}function Ti(U,O){return ml(O)[U.month-1]}function lu(U,O){return Ea(O)[U.year<0?0:1]}function ec(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 Nn=U==="days";switch(O){case 1:return Nn?"tomorrow":`next ${ee[U][0]}`;case-1:return Nn?"yesterday":`last ${ee[U][0]}`;case 0:return Nn?"today":`this ${ee[U][0]}`}}const $e=Object.is(O,-0)||O<0,Fe=Math.abs(O),We=Fe===1,Ot=ee[U],vn=Y?We?Ot[1]:Ot[2]||Ot[1]:We?ee[U][0]:U;return $e?`${Fe} ${vn} ago`:`in ${Fe} ${vn}`}function cu(U,O){let L="";for(const Y of U)Y.literal?L+=Y.val:L+=O(Y.val);return L}const tc={D:h,DD:y,DDD:S,DDDD:x,t:w,tt:b,ttt:T,tttt:E,T:M,TT:$,TTT:D,TTTT:I,f:A,ff:W,fff:z,ffff:H,F:_,FF:V,FFF:F,FFFF:N};class eo{static create(O,L={}){return new eo(O,L)}static parseFormat(O){let L=null,Y="",ee=!1;const ve=[];for(let $e=0;$e<O.length;$e++){const Fe=O.charAt($e);Fe==="'"?((Y.length>0||ee)&&ve.push({literal:ee||/^\s+$/.test(Y),val:Y===""?"'":Y}),L=null,Y="",ee=!ee):ee||Fe===L?Y+=Fe:(Y.length>0&&ve.push({literal:/^\s+$/.test(Y),val:Y}),Y=Fe,L=Fe)}return Y.length>0&&ve.push({literal:ee||/^\s+$/.test(Y),val:Y}),ve}static macroTokenToFormatOpts(O){return tc[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 Xt(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,Kr)=>this.loc.extract(O,Sn,Kr),$e=Sn=>O.isOffsetFixed&&O.offset===0&&Sn.allowZ?"Z":O.isValid?O.zone.formatOffset(O.ts,Sn.format):"",Fe=()=>Y?su(O):ve({hour:"numeric",hourCycle:"h12"},"dayperiod"),We=(Sn,Kr)=>Y?Ti(O,Sn):ve(Kr?{month:Sn}:{month:Sn,day:"numeric"},"month"),Ot=(Sn,Kr)=>Y?yl(O,Sn):ve(Kr?{weekday:Sn}:{weekday:Sn,month:"long",day:"numeric"},"weekday"),vn=Sn=>{const Kr=eo.macroTokenToFormatOpts(Sn);return Kr?this.formatWithSystemDefault(O,Kr):Sn},Nn=Sn=>Y?lu(O,Sn):ve({era:Sn},"era"),ur=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 $e({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return $e({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return $e({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 Fe();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 We("short",!0);case"LLLL":return We("long",!0);case"LLLLL":return We("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 We("short",!1);case"MMMM":return We("long",!1);case"MMMMM":return We("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 Nn("short");case"GG":return Nn("long");case"GGGGG":return Nn("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 vn(Sn)}};return cu(eo.parseFormat(L),ur)}formatDurationFromString(O,L){const Y=this.opts.signMode==="negativeLargestOnly"?-1:1,ee=vn=>{switch(vn[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=(vn,Nn)=>ur=>{const Sn=ee(ur);if(Sn){const Kr=Nn.isNegativeDuration&&Sn!==Nn.largestUnit?Y:1;let Lo;return this.opts.signMode==="negativeLargestOnly"&&Sn!==Nn.largestUnit?Lo="never":this.opts.signMode==="all"?Lo="always":Lo="auto",this.num(vn.get(Sn)*Kr,ur.length,Lo)}else return ur},$e=eo.parseFormat(L),Fe=$e.reduce((vn,{literal:Nn,val:ur})=>Nn?vn:vn.concat(ur),[]),We=O.shiftTo(...Fe.map(ee).filter(vn=>vn)),Ot={isNegativeDuration:We<0,largestUnit:Object.keys(We.values)[0]};return cu($e,ve(We,Ot))}}const uu=/[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 vo(...U){return O=>U.reduce(([L,Y,ee],ve)=>{const[$e,Fe,We]=ve(O,ee);return[{...L,...$e},Fe||Y,We]},[{},null,1]).slice(0,2)}function to(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 Ga(...U){return(O,L)=>{const Y={};let ee;for(ee=0;ee<U.length;ee++)Y[U[ee]]=Pr(O[L+ee]);return[Y,null,L+ee]}}const Oe=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,us=`(?:${Oe.source}?(?:\\[(${uu.source})\\])?)?`,jn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Io=RegExp(`${jn.source}${us}`),Ps=RegExp(`(?:[Tt]${Io.source})?`),du=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Rd=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Od=/(\d{4})-?(\d{3})/,Ze=Ga("weekYear","weekNumber","weekDay"),fu=Ga("year","ordinal"),pu=/(\d{4})-(\d\d)-(\d\d)/,nc=RegExp(`${jn.source} ?(?:${Oe.source}|(${uu.source}))?`),Md=RegExp(`(?: ${nc.source})?`);function Ds(U,O,L){const Y=U[O];return Ue(Y)?L:Pr(Y)}function vl(U,O){return[{year:Ds(U,O),month:Ds(U,O+1,1),day:Ds(U,O+2,1)},null,O+3]}function ds(U,O){return[{hours:Ds(U,O,0),minutes:Ds(U,O+1,0),seconds:Ds(U,O+2,0),milliseconds:To(U[O+3])},null,O+4]}function As(U,O){const L=!U[O]&&!U[O+1],Y=pl(U[O+1],U[O+2]),ee=L?null:Ct.instance(Y);return[{},ee,O+3]}function ta(U,O){const L=U[O]?se.create(U[O]):null;return[{},L,O+1]}const Np=RegExp(`^T?${jn.source}$`),Ip=/^-?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 bl(U){const[O,L,Y,ee,ve,$e,Fe,We,Ot]=U,vn=O[0]==="-",Nn=We&&We[0]==="-",ur=(Sn,Kr=!1)=>Sn!==void 0&&(Kr||Sn&&vn)?-Sn:Sn;return[{years:ur(oo(L)),months:ur(oo(Y)),weeks:ur(oo(ee)),days:ur(oo(ve)),hours:ur(oo($e)),minutes:ur(oo(Fe)),seconds:ur(oo(We),We==="-0"),milliseconds:ur(To(Ot),Nn)}]}const $d={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function hu(U,O,L,Y,ee,ve,$e){const Fe={year:O.length===2?ki(Pr(O)):Pr(O),month:Td.indexOf(L)+1,day:Pr(Y),hour:Pr(ee),minute:Pr(ve)};return $e&&(Fe.second=Pr($e)),U&&(Fe.weekday=U.length>3?Zl.indexOf(U)+1:Jl.indexOf(U)+1),Fe}const Lp=/^(?:(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 Pd(U){const[,O,L,Y,ee,ve,$e,Fe,We,Ot,vn,Nn]=U,ur=hu(O,ee,Y,L,ve,$e,Fe);let Sn;return We?Sn=$d[We]:Ot?Sn=0:Sn=pl(vn,Nn),[ur,new Ct(Sn)]}function zp(U){return U.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Dd=/^(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$/,mu=/^(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$/,Fp=/^(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 rc(U){const[,O,L,Y,ee,ve,$e,Fe]=U;return[hu(O,ee,Y,L,ve,$e,Fe),Ct.utcInstance]}function _p(U){const[,O,L,Y,ee,ve,$e,Fe]=U;return[hu(O,Fe,L,Y,ee,ve,$e),Ct.utcInstance]}const Bp=j(du,Ps),Up=j(Rd,Ps),Vp=j(Od,Ps),gu=j(Io),js=vo(vl,ds,As,ta),Hp=vo(Ze,ds,As,ta),Ad=vo(fu,ds,As,ta),jd=vo(ds,As,ta);function Nd(U){return to(U,[Bp,js],[Up,Hp],[Vp,Ad],[gu,jd])}function Id(U){return to(zp(U),[Lp,Pd])}function Ld(U){return to(U,[Dd,rc],[mu,rc],[Fp,_p])}function Ns(U){return to(U,[Ip,bl])}const Wp=vo(ds);function qp(U){return to(U,[Np,Wp])}const Yp=j(pu,Md),zd=j(nc),Fd=vo(ds,As,ta);function xl(U){return to(U,[Yp,js],[zd,Fd])}const nr="Invalid Duration",fs={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Gr={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...fs},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},...fs},Se=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Qt=Se.slice(0).reverse();function Vt(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 Gt(Y)}function On(U,O){var L;let Y=(L=O.milliseconds)!=null?L:0;for(const ee of Qt.slice(1))O[ee]&&(Y+=O[ee]*U[ee].milliseconds);return Y}function Yn(U,O){const L=On(U,O)<0?-1:1;Se.reduceRight((Y,ee)=>{if(Ue(O[ee]))return Y;if(Y){const ve=O[Y]*L,$e=U[ee][Y],Fe=Math.floor(ve/$e);O[ee]+=Fe*L,O[Y]-=Fe*$e*L}return ee},null),Se.reduce((Y,ee)=>{if(Ue(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 Gt{constructor(O){const L=O.conversionAccuracy==="longterm"||!1;let Y=L?q:Gr;O.matrix&&(Y=O.matrix),this.values=O.values,this.loc=O.loc||De.create(),this.conversionAccuracy=L?"longterm":"casual",this.invalid=O.invalid||null,this.matrix=Y,this.isLuxonDuration=!0}static fromMillis(O,L){return Gt.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 Gt({values:Xl(O,Gt.normalizeUnit),loc:De.fromObject(L),conversionAccuracy:L.conversionAccuracy,matrix:L.matrix})}static fromDurationLike(O){if(Mt(O))return Gt.fromMillis(O);if(Gt.isDuration(O))return O;if(typeof O=="object")return Gt.fromObject(O);throw new s(`Unknown duration argument ${O} of type ${typeof O}`)}static fromISO(O,L){const[Y]=Ns(O);return Y?Gt.fromObject(Y,L):Gt.invalid("unparsable",`the input "${O}" can't be parsed as ISO 8601`)}static fromISOTime(O,L){const[Y]=qp(O);return Y?Gt.fromObject(Y,L):Gt.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 Ln?O:new Ln(O,L);if(on.throwOnInvalid)throw new r(Y);return new Gt({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?eo.create(this.loc,Y).formatDurationFromString(this,O):nr}toHuman(O={}){if(!this.isValid)return nr;const L=O.showZeros!==!1,Y=Se.map(ee=>{const ve=this.values[ee];return Ue(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+=is(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},yn.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?On(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(O){if(!this.isValid)return this;const L=Gt.fromDurationLike(O),Y={};for(const ee of Se)(At(L.values,ee)||At(this.values,ee))&&(Y[ee]=L.get(ee)+this.get(ee));return Vt(this,{values:Y},!0)}minus(O){if(!this.isValid)return this;const L=Gt.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]=ls(O(this.values[Y],Y));return Vt(this,{values:L},!0)}get(O){return this[Gt.normalizeUnit(O)]}set(O){if(!this.isValid)return this;const L={...this.values,...Xl(O,Gt.normalizeUnit)};return Vt(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 Vt(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),Vt(this,{values:O},!0)}rescale(){if(!this.isValid)return this;const O=Gn(this.normalize().shiftToAll().toObject());return Vt(this,{values:O},!0)}shiftTo(...O){if(!this.isValid)return this;if(O.length===0)return this;O=O.map($e=>Gt.normalizeUnit($e));const L={},Y={},ee=this.toObject();let ve;for(const $e of Se)if(O.indexOf($e)>=0){ve=$e;let Fe=0;for(const Ot in Y)Fe+=this.matrix[Ot][$e]*Y[Ot],Y[Ot]=0;Mt(ee[$e])&&(Fe+=ee[$e]);const We=Math.trunc(Fe);L[$e]=We,Y[$e]=(Fe*1e3-We*1e3)/1e3}else Mt(ee[$e])&&(Y[$e]=ee[$e]);for(const $e in Y)Y[$e]!==0&&(L[ve]+=$e===ve?Y[$e]:Y[$e]/this.matrix[ve][$e]);return Yn(this.matrix,L),Vt(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 Vt(this,{values:O},!0)}removeZeros(){if(!this.isValid)return this;const O=Gn(this.values);return Vt(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?ln.invalid("missing or invalid start"):!O||!O.isValid?ln.invalid("missing or invalid end"):O<U?ln.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 ln{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 Ln?O:new Ln(O,L);if(on.throwOnInvalid)throw new n(Y);return new ln({invalid:Y})}static fromDateTimes(O,L){const Y=ei(O),ee=ei(L);return Cr(Y,ee)??new ln({start:Y,end:ee})}static after(O,L){const Y=Gt.fromDurationLike(L),ee=ei(O);return ln.fromDateTimes(ee,ee.plus(Y))}static before(O,L){const Y=Gt.fromDurationLike(L),ee=ei(O);return ln.fromDateTimes(ee.minus(Y),ee)}static fromISO(O,L){const[Y,ee]=(O||"").split("/",2);if(Y&&ee){let ve,$e;try{ve=yn.fromISO(Y,L),$e=ve.isValid}catch{$e=!1}let Fe,We;try{Fe=yn.fromISO(ee,L),We=Fe.isValid}catch{We=!1}if($e&&We)return ln.fromDateTimes(ve,Fe);if($e){const Ot=Gt.fromISO(ee,L);if(Ot.isValid)return ln.after(ve,Ot)}else if(We){const Ot=Gt.fromISO(Y,L);if(Ot.isValid)return ln.before(Fe,Ot)}}return ln.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?ln.fromDateTimes(O||this.s,L||this.e):this}splitAt(...O){if(!this.isValid)return[];const L=O.map(ei).filter($e=>this.contains($e)).sort(($e,Fe)=>$e.toMillis()-Fe.toMillis()),Y=[];let{s:ee}=this,ve=0;for(;ee<this.e;){const $e=L[ve]||this.e,Fe=+$e>+this.e?this.e:$e;Y.push(ln.fromDateTimes(ee,Fe)),ee=Fe,ve+=1}return Y}splitBy(O){const L=Gt.fromDurationLike(O);if(!this.isValid||!L.isValid||L.as("milliseconds")===0)return[];let{s:Y}=this,ee=1,ve;const $e=[];for(;Y<this.e;){const Fe=this.start.plus(L.mapUnits(We=>We*ee));ve=+Fe>+this.e?this.e:Fe,$e.push(ln.fromDateTimes(Y,ve)),Y=ve,ee+=1}return $e}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:ln.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 ln.fromDateTimes(L,Y)}static merge(O){const[L,Y]=O.sort((ee,ve)=>ee.s-ve.s).reduce(([ee,ve],$e)=>ve?ve.overlaps($e)||ve.abutsStart($e)?[ee,ve.union($e)]:[ee.concat([ve]),$e]:[ee,$e],[[],null]);return Y&&L.push(Y),L}static xor(O){let L=null,Y=0;const ee=[],ve=O.map(We=>[{time:We.s,type:"s"},{time:We.e,type:"e"}]),$e=Array.prototype.concat(...ve),Fe=$e.sort((We,Ot)=>We.time-Ot.time);for(const We of Fe)Y+=We.type==="s"?1:-1,Y===1?L=We.time:(L&&+L!=+We.time&&ee.push(ln.fromDateTimes(L,We.time)),L=null);return ln.merge(ee)}difference(...O){return ln.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?eo.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):Gt.invalid(this.invalidReason)}mapEndpoints(O){return ln.fromDateTimes(O(this.s),O(this.e))}}class gr{static hasDST(O=on.defaultZone){const L=yn.now().setZone(O).set({month:12});return!O.isUniversal&&L.offset!==L.set({month:6}).offset}static isValidIANAZone(O){return se.isValidZone(O)}static normalizeZone(O){return st(O,on.defaultZone)}static getStartOfWeek({locale:O=null,locObj:L=null}={}){return(L||De.create(O)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:O=null,locObj:L=null}={}){return(L||De.create(O)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:O=null,locObj:L=null}={}){return(L||De.create(O)).getWeekendDays().slice()}static months(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null,outputCalendar:ve="gregory"}={}){return(ee||De.create(L,Y,ve)).months(O)}static monthsFormat(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null,outputCalendar:ve="gregory"}={}){return(ee||De.create(L,Y,ve)).months(O,!0)}static weekdays(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null}={}){return(ee||De.create(L,Y,null)).weekdays(O)}static weekdaysFormat(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null}={}){return(ee||De.create(L,Y,null)).weekdays(O,!0)}static meridiems({locale:O=null}={}){return De.create(O).meridiems()}static eras(O="short",{locale:L=null}={}){return De.create(L,null,"gregory").eras(O)}static features(){return{relative:Re(),localeWeek:it()}}}function Ur(U,O){const L=ee=>ee.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),Y=L(O)-L(U);return Math.floor(Gt.fromMillis(Y).as("days"))}function Hr(U,O,L){const Y=[["years",(We,Ot)=>Ot.year-We.year],["quarters",(We,Ot)=>Ot.quarter-We.quarter+(Ot.year-We.year)*4],["months",(We,Ot)=>Ot.month-We.month+(Ot.year-We.year)*12],["weeks",(We,Ot)=>{const vn=Ur(We,Ot);return(vn-vn%7)/7}],["days",Ur]],ee={},ve=U;let $e,Fe;for(const[We,Ot]of Y)L.indexOf(We)>=0&&($e=We,ee[We]=Ot(U,O),Fe=ve.plus(ee),Fe>O?(ee[We]--,U=ve.plus(ee),U>O&&(Fe=U,ee[We]--,U=ve.plus(ee))):U=Fe);return[U,ee,Fe,$e]}function Ka(U,O,L,Y){let[ee,ve,$e,Fe]=Hr(U,O,L);const We=O-ee,Ot=L.filter(Nn=>["hours","minutes","seconds","milliseconds"].indexOf(Nn)>=0);Ot.length===0&&($e<O&&($e=ee.plus({[Fe]:1})),$e!==ee&&(ve[Fe]=(ve[Fe]||0)+We/($e-ee)));const vn=Gt.fromObject(ve,Y);return Ot.length>0?Gt.fromMillis(We,Y).shiftTo(...Ot).plus(vn):vn}const ha="missing Intl.DateTimeFormat.formatToParts support";function zn(U,O=L=>L){return{regex:U,deser:([L])=>O($n(L))}}const Sl="[ ]",ma=new RegExp(Sl,"g");function ps(U){return U.replace(/\./g,"\\.?").replace(ma,Sl)}function na(U){return U.replace(/\./g,"").replace(ma," ").toLowerCase()}function no(U,O){return U===null?null:{regex:RegExp(U.map(ps).join("|")),deser:([L])=>U.findIndex(Y=>na(L)===na(Y))+O}}function wl(U,O){return{regex:U,deser:([,L,Y])=>pl(L,Y),groups:O}}function bo(U){return{regex:U,deser:([O])=>O}}function oc(U){return U.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Gp(U,O){const L=Jt(O),Y=Jt(O,"{2}"),ee=Jt(O,"{3}"),ve=Jt(O,"{4}"),$e=Jt(O,"{6}"),Fe=Jt(O,"{1,2}"),We=Jt(O,"{1,3}"),Ot=Jt(O,"{1,6}"),vn=Jt(O,"{1,9}"),Nn=Jt(O,"{2,4}"),ur=Jt(O,"{4,6}"),Sn=Lo=>({regex:RegExp(oc(Lo.val)),deser:([Ra])=>Ra,literal:!0}),Kr=(Lo=>{if(U.literal)return Sn(Lo);switch(Lo.val){case"G":return no(O.eras("short"),0);case"GG":return no(O.eras("long"),0);case"y":return zn(Ot);case"yy":return zn(Nn,ki);case"yyyy":return zn(ve);case"yyyyy":return zn(ur);case"yyyyyy":return zn($e);case"M":return zn(Fe);case"MM":return zn(Y);case"MMM":return no(O.months("short",!0),1);case"MMMM":return no(O.months("long",!0),1);case"L":return zn(Fe);case"LL":return zn(Y);case"LLL":return no(O.months("short",!1),1);case"LLLL":return no(O.months("long",!1),1);case"d":return zn(Fe);case"dd":return zn(Y);case"o":return zn(We);case"ooo":return zn(ee);case"HH":return zn(Y);case"H":return zn(Fe);case"hh":return zn(Y);case"h":return zn(Fe);case"mm":return zn(Y);case"m":return zn(Fe);case"q":return zn(Fe);case"qq":return zn(Y);case"s":return zn(Fe);case"ss":return zn(Y);case"S":return zn(We);case"SSS":return zn(ee);case"u":return bo(vn);case"uu":return bo(Fe);case"uuu":return zn(L);case"a":return no(O.meridiems(),0);case"kkkk":return zn(ve);case"kk":return zn(Nn,ki);case"W":return zn(Fe);case"WW":return zn(Y);case"E":case"c":return zn(L);case"EEE":return no(O.weekdays("short",!1),1);case"EEEE":return no(O.weekdays("long",!1),1);case"ccc":return no(O.weekdays("short",!0),1);case"cccc":return no(O.weekdays("long",!0),1);case"Z":case"ZZ":return wl(new RegExp(`([+-]${Fe.source})(?::(${Y.source}))?`),2);case"ZZZ":return wl(new RegExp(`([+-]${Fe.source})(${Y.source})?`),2);case"z":return bo(/[a-z_+-/]{1,256}?/i);case" ":return bo(/[^\S\n\r]/);default:return Sn(Lo)}})(U)||{invalidReason:ha};return Kr.token=U,Kr}const Zg={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 Cl(U,O,L){const{type:Y,value:ee}=U;if(Y==="literal"){const We=/^\s+$/.test(ee);return{literal:!We,val:We?" ":ee}}const ve=O[Y];let $e=Y;Y==="hour"&&(O.hour12!=null?$e=O.hour12?"hour12":"hour24":O.hourCycle!=null?O.hourCycle==="h11"||O.hourCycle==="h12"?$e="hour12":$e="hour24":$e=L.hour12?"hour12":"hour24");let Fe=Zg[$e];if(typeof Fe=="object"&&(Fe=Fe[ve]),Fe)return{literal:!1,val:Fe}}function Jg(U){return[`^${U.map(O=>O.regex).reduce((O,L)=>`${O}(${L.source})`,"")}$`,U]}function ey(U,O,L){const Y=U.match(O);if(Y){const ee={};let ve=1;for(const $e in L)if(At(L,$e)){const Fe=L[$e],We=Fe.groups?Fe.groups+1:1;!Fe.literal&&Fe.token&&(ee[Fe.token.val[0]]=Fe.deser(Y.slice(ve,ve+We))),ve+=We}return[Y,ee]}else return[Y,{}]}function ty(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 Ue(U.z)||(L=se.create(U.z)),Ue(U.Z)||(L||(L=new Ct(U.Z)),Y=U.Z),Ue(U.q)||(U.M=(U.q-1)*3+1),Ue(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),Ue(U.u)||(U.S=To(U.u)),[Object.keys(U).reduce((ee,ve)=>{const $e=O(ve);return $e&&(ee[$e]=U[ve]),ee},{}),L,Y]}let Kp=null;function K0(){return Kp||(Kp=yn.fromMillis(1555555555555)),Kp}function Q0(U,O){if(U.literal)return U;const L=eo.macroTokenToFormatOpts(U.val),Y=Zp(L,O);return Y==null||Y.includes(void 0)?U:Y}function Qp(U,O){return Array.prototype.concat(...U.map(L=>Q0(L,O)))}class Xp{constructor(O,L){if(this.locale=O,this.format=L,this.tokens=Qp(eo.parseFormat(L),O),this.units=this.tokens.map(Y=>Gp(Y,O)),this.disqualifyingUnit=this.units.find(Y=>Y.invalidReason),!this.disqualifyingUnit){const[Y,ee]=Jg(this.units);this.regex=RegExp(Y,"i"),this.handlers=ee}}explainFromTokens(O){if(this.isValid){const[L,Y]=ey(O,this.regex,this.handlers),[ee,ve,$e]=Y?ty(Y):[null,null,void 0];if(At(Y,"a")&&At(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:$e}}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 _d(U,O,L){return new Xp(U,L).explainFromTokens(O)}function Qa(U,O,L){const{result:Y,zone:ee,specificOffset:ve,invalidReason:$e}=_d(U,O,L);return[Y,ee,ve,$e]}function Zp(U,O){if(!U)return null;const L=eo.create(O,U).dtFormatter(K0()),Y=L.formatToParts(),ee=L.resolvedOptions();return Y.map(ve=>Cl(ve,U,ee))}const ra="Invalid DateTime",ga=864e13;function Ei(U){return new Ln("unsupported zone",`the zone "${U.name}" is not supported`)}function yu(U){return U.weekData===null&&(U.weekData=Tt(U.c)),U.weekData}function ac(U){return U.localWeekData===null&&(U.localWeekData=Tt(U.c,U.loc.getMinDaysInFirstWeek(),U.loc.getStartOfWeek())),U.localWeekData}function Ri(U,O){const L={ts:U.ts,zone:U.zone,c:U.c,o:U.o,loc:U.loc,invalid:U.invalid};return new yn({...L,...O,old:L})}function Bd(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 hs(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 vu(U,O,L){return Bd(Ya(U),O,L)}function bu(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,Fr(Y,ee))+Math.trunc(O.days)+Math.trunc(O.weeks)*7},$e=Gt.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"),Fe=Ya(ve);let[We,Ot]=Bd(Fe,L,U.zone);return $e!==0&&(We+=$e,Ot=U.zone.offset(We)),{ts:We,o:Ot}}function Xa(U,O,L,Y,ee,ve){const{setZone:$e,zone:Fe}=L;if(U&&Object.keys(U).length!==0||O){const We=O||Fe,Ot=yn.fromObject(U,{...L,zone:We,specificOffset:ve});return $e?Ot:Ot.setZone(Fe)}else return yn.invalid(new Ln("unparsable",`the input "${ee}" can't be parsed as ${Y}`))}function Ud(U,O,L=!0){return U.isValid?eo.create(De.create("en-US"),{allowZ:L,forceSimple:!0}).formatDateTimeFromString(U,O):null}function Wo(U,O,L){const Y=U.c.year>9999||U.c.year<0;let ee="";if(Y&&U.c.year>=0&&(ee+="+"),ee+=Xt(U.c.year,Y?6:4),L==="year")return ee;if(O){if(ee+="-",ee+=Xt(U.c.month),L==="month")return ee;ee+="-"}else if(ee+=Xt(U.c.month),L==="month")return ee;return ee+=Xt(U.c.day),ee}function Vd(U,O,L,Y,ee,ve,$e){let Fe=!L||U.c.millisecond!==0||U.c.second!==0,We="";switch($e){case"day":case"month":case"year":break;default:if(We+=Xt(U.c.hour),$e==="hour")break;if(O){if(We+=":",We+=Xt(U.c.minute),$e==="minute")break;Fe&&(We+=":",We+=Xt(U.c.second))}else{if(We+=Xt(U.c.minute),$e==="minute")break;Fe&&(We+=Xt(U.c.second))}if($e==="second")break;Fe&&(!Y||U.c.millisecond!==0)&&(We+=".",We+=Xt(U.c.millisecond,3))}return ee&&(U.isOffsetFixed&&U.offset===0&&!ve?We+="Z":U.o<0?(We+="-",We+=Xt(Math.trunc(-U.o/60)),We+=":",We+=Xt(Math.trunc(-U.o%60))):(We+="+",We+=Xt(Math.trunc(U.o/60)),We+=":",We+=Xt(Math.trunc(U.o%60)))),ve&&(We+="["+U.zone.ianaName+"]"),We}const Oi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ny={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Hd={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Mi=["year","month","day","hour","minute","second","millisecond"],Jp=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],eh=["year","ordinal","hour","minute","second","millisecond"];function ms(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 kl(U){switch(U.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return ms(U)}}function Wd(U){if(Za===void 0&&(Za=on.now()),U.type!=="iana")return U.offset(Za);const O=U.name;let L=Ja.get(O);return L===void 0&&(L=U.offset(Za),Ja.set(O,L)),L}function xu(U,O){const L=st(O.zone,on.defaultZone);if(!L.isValid)return yn.invalid(Ei(L));const Y=De.fromObject(O);let ee,ve;if(Ue(U.year))ee=on.now();else{for(const We of Mi)Ue(U[We])&&(U[We]=Oi[We]);const $e=ze(U)||ft(U);if($e)return yn.invalid($e);const Fe=Wd(L);[ee,ve]=vu(U,Fe,L)}return new yn({ts:ee,zone:L,loc:Y,o:ve})}function ya(U,O,L){const Y=Ue(L.round)?!0:L.round,ee=Ue(L.rounding)?"trunc":L.rounding,ve=(Fe,We)=>(Fe=is(Fe,Y||L.calendary?0:2,L.calendary?"round":ee),O.loc.clone(L).relFormatter(L).format(Fe,We)),$e=Fe=>L.calendary?O.hasSame(U,Fe)?0:O.startOf(Fe).diff(U.startOf(Fe),Fe).get(Fe):O.diff(U,Fe).get(Fe);if(L.unit)return ve($e(L.unit),L.unit);for(const Fe of L.units){const We=$e(Fe);if(Math.abs(We)>=1)return ve(We,Fe)}return ve(U>O?-0:0,L.units[L.units.length-1])}function va(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 Za;const Ja=new Map;class yn{constructor(O){const L=O.zone||on.defaultZone;let Y=O.invalid||(Number.isNaN(O.ts)?new Ln("invalid input"):null)||(L.isValid?null:Ei(L));this.ts=Ue(O.ts)?on.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 $e=Mt(O.o)&&!O.old?O.o:L.offset(this.ts);ee=hs(this.ts,$e),Y=Number.isNaN(ee.year)?new Ln("invalid input"):null,ee=Y?null:ee,ve=Y?null:$e}this._zone=L,this.loc=O.loc||De.create(),this.invalid=Y,this.weekData=null,this.localWeekData=null,this.c=ee,this.o=ve,this.isLuxonDateTime=!0}static now(){return new yn({})}static local(){const[O,L]=va(arguments),[Y,ee,ve,$e,Fe,We,Ot]=L;return xu({year:Y,month:ee,day:ve,hour:$e,minute:Fe,second:We,millisecond:Ot},O)}static utc(){const[O,L]=va(arguments),[Y,ee,ve,$e,Fe,We,Ot]=L;return O.zone=Ct.utcInstance,xu({year:Y,month:ee,day:ve,hour:$e,minute:Fe,second:We,millisecond:Ot},O)}static fromJSDate(O,L={}){const Y=ye(O)?O.valueOf():NaN;if(Number.isNaN(Y))return yn.invalid("invalid input");const ee=st(L.zone,on.defaultZone);return ee.isValid?new yn({ts:Y,zone:ee,loc:De.fromObject(L)}):yn.invalid(Ei(ee))}static fromMillis(O,L={}){if(Mt(O))return O<-ga||O>ga?yn.invalid("Timestamp out of range"):new yn({ts:O,zone:st(L.zone,on.defaultZone),loc:De.fromObject(L)});throw new s(`fromMillis requires a numerical input, but received a ${typeof O} with value ${O}`)}static fromSeconds(O,L={}){if(Mt(O))return new yn({ts:O*1e3,zone:st(L.zone,on.defaultZone),loc:De.fromObject(L)});throw new s("fromSeconds requires a numerical input")}static fromObject(O,L={}){O=O||{};const Y=st(L.zone,on.defaultZone);if(!Y.isValid)return yn.invalid(Ei(Y));const ee=De.fromObject(L),ve=Xl(O,kl),{minDaysInFirstWeek:$e,startOfWeek:Fe}=Ft(ve,ee),We=on.now(),Ot=Ue(L.specificOffset)?Y.offset(We):L.specificOffset,vn=!Ue(ve.ordinal),Nn=!Ue(ve.year),ur=!Ue(ve.month)||!Ue(ve.day),Sn=Nn||ur,Kr=ve.weekYear||ve.weekNumber;if((Sn||vn)&&Kr)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(ur&&vn)throw new o("Can't mix ordinal dates with month/day");const Lo=Kr||ve.weekday&&!Sn;let Ra,Oa,Ma=hs(We,Ot);Lo?(Ra=Jp,Oa=ny,Ma=Tt(Ma,$e,Fe)):vn?(Ra=eh,Oa=Hd,Ma=Kt(Ma)):(Ra=Mi,Oa=Oi);let $i=!1;for(const Is of Ra){const oy=ve[Is];Ue(oy)?$i?ve[Is]=Oa[Is]:ve[Is]=Ma[Is]:$i=!0}const th=Lo?ue(ve,$e,Fe):vn?de(ve):ze(ve),qd=th||ft(ve);if(qd)return yn.invalid(qd);const Su=Lo?Pt(ve,$e,Fe):vn?Dt(ve):ve,[Yd,Tl]=vu(Su,Ot,Y),ao=new yn({ts:Yd,zone:Y,o:Tl,loc:ee});return ve.weekday&&Sn&&O.weekday!==ao.weekday?yn.invalid("mismatched weekday",`you can't specify both a weekday of ${ve.weekday} and a date of ${ao.toISO()}`):ao.isValid?ao:yn.invalid(ao.invalid)}static fromISO(O,L={}){const[Y,ee]=Nd(O);return Xa(Y,ee,L,"ISO 8601",O)}static fromRFC2822(O,L={}){const[Y,ee]=Id(O);return Xa(Y,ee,L,"RFC 2822",O)}static fromHTTP(O,L={}){const[Y,ee]=Ld(O);return Xa(Y,ee,L,"HTTP",L)}static fromFormat(O,L,Y={}){if(Ue(O)||Ue(L))throw new s("fromFormat requires an input string and a format");const{locale:ee=null,numberingSystem:ve=null}=Y,$e=De.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0}),[Fe,We,Ot,vn]=Qa($e,O,L);return vn?yn.invalid(vn):Xa(Fe,We,Y,`format ${L}`,O,Ot)}static fromString(O,L,Y={}){return yn.fromFormat(O,L,Y)}static fromSQL(O,L={}){const[Y,ee]=xl(O);return Xa(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 Ln?O:new Ln(O,L);if(on.throwOnInvalid)throw new t(Y);return new yn({invalid:Y})}static isDateTime(O){return O&&O.isLuxonDateTime||!1}static parseFormatForOpts(O,L={}){const Y=Zp(O,De.fromObject(L));return Y?Y.map(ee=>ee?ee.val:null).join(""):null}static expandFormat(O,L={}){return Qp(eo.parseFormat(O),De.fromObject(L)).map(Y=>Y.val).join("")}static resetCache(){Za=void 0,Ja.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?yu(this).weekYear:NaN}get weekNumber(){return this.isValid?yu(this).weekNumber:NaN}get weekday(){return this.isValid?yu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ac(this).weekday:NaN}get localWeekNumber(){return this.isValid?ac(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ac(this).weekYear:NaN}get ordinal(){return this.isValid?Kt(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=Ya(this.c),ee=this.zone.offset(Y-O),ve=this.zone.offset(Y+O),$e=this.zone.offset(Y-ee*L),Fe=this.zone.offset(Y-ve*L);if($e===Fe)return[this];const We=Y-$e*L,Ot=Y-Fe*L,vn=hs(We,$e),Nn=hs(Ot,Fe);return vn.hour===Nn.hour&&vn.minute===Nn.minute&&vn.second===Nn.second&&vn.millisecond===Nn.millisecond?[Ri(this,{ts:We}),Ri(this,{ts:Ot})]:[this]}get isInLeapYear(){return ea(this.year)}get daysInMonth(){return Fr(this.year,this.month)}get daysInYear(){return this.isValid?cr(this.year):NaN}get weeksInWeekYear(){return this.isValid?ss(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ss(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(O={}){const{locale:L,numberingSystem:Y,calendar:ee}=eo.create(this.loc.clone(O),O).resolvedOptions(this);return{locale:L,numberingSystem:Y,outputCalendar:ee}}toUTC(O=0,L={}){return this.setZone(Ct.instance(O),L)}toLocal(){return this.setZone(on.defaultZone)}setZone(O,{keepLocalTime:L=!1,keepCalendarTime:Y=!1}={}){if(O=st(O,on.defaultZone),O.equals(this.zone))return this;if(O.isValid){let ee=this.ts;if(L||Y){const ve=O.offset(this.ts),$e=this.toObject();[ee]=vu($e,ve,O)}return Ri(this,{ts:ee,zone:O})}else return yn.invalid(Ei(O))}reconfigure({locale:O,numberingSystem:L,outputCalendar:Y}={}){const ee=this.loc.clone({locale:O,numberingSystem:L,outputCalendar:Y});return Ri(this,{loc:ee})}setLocale(O){return this.reconfigure({locale:O})}set(O){if(!this.isValid)return this;const L=Xl(O,kl),{minDaysInFirstWeek:Y,startOfWeek:ee}=Ft(L,this.loc),ve=!Ue(L.weekYear)||!Ue(L.weekNumber)||!Ue(L.weekday),$e=!Ue(L.ordinal),Fe=!Ue(L.year),We=!Ue(L.month)||!Ue(L.day),Ot=Fe||We,vn=L.weekYear||L.weekNumber;if((Ot||$e)&&vn)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(We&&$e)throw new o("Can't mix ordinal dates with month/day");let Nn;ve?Nn=Pt({...Tt(this.c,Y,ee),...L},Y,ee):Ue(L.ordinal)?(Nn={...this.toObject(),...L},Ue(L.day)&&(Nn.day=Math.min(Fr(Nn.year,Nn.month),Nn.day))):Nn=Dt({...Kt(this.c),...L});const[ur,Sn]=vu(Nn,this.o,this.zone);return Ri(this,{ts:ur,o:Sn})}plus(O){if(!this.isValid)return this;const L=Gt.fromDurationLike(O);return Ri(this,bu(this,L))}minus(O){if(!this.isValid)return this;const L=Gt.fromDurationLike(O).negate();return Ri(this,bu(this,L))}startOf(O,{useLocaleWeeks:L=!1}={}){if(!this.isValid)return this;const Y={},ee=Gt.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:$e}=this;$e<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?eo.create(this.loc.redefaultToEN(L)).formatDateTimeFromString(this,O):ra}toLocaleString(O=h,L={}){return this.isValid?eo.create(this.loc.clone(L),O).formatDateTime(this):ra}toLocaleParts(O={}){return this.isValid?eo.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:$e="milliseconds"}={}){if(!this.isValid)return null;$e=ms($e);const Fe=O==="extended";let We=Wo(this,Fe,$e);return Mi.indexOf($e)>=3&&(We+="T"),We+=Vd(this,Fe,L,Y,ee,ve,$e),We}toISODate({format:O="extended",precision:L="day"}={}){return this.isValid?Wo(this,O==="extended",ms(L)):null}toISOWeekDate(){return Ud(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:O=!1,suppressSeconds:L=!1,includeOffset:Y=!0,includePrefix:ee=!1,extendedZone:ve=!1,format:$e="extended",precision:Fe="milliseconds"}={}){return this.isValid?(Fe=ms(Fe),(ee&&Mi.indexOf(Fe)>=3?"T":"")+Vd(this,$e==="extended",L,O,Y,ve,Fe)):null}toRFC2822(){return Ud(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ud(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Wo(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")),Ud(this,ee,!0)}toSQL(O={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(O)}`:null}toString(){return this.isValid?this.toISO():ra}[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 Gt.invalid("created by diffing an invalid DateTime");const ee={locale:this.locale,numberingSystem:this.numberingSystem,...Y},ve=xt(L).map(Gt.normalizeUnit),$e=O.valueOf()>this.valueOf(),Fe=$e?this:O,We=$e?O:this,Ot=Ka(Fe,We,ve,ee);return $e?Ot.negate():Ot}diffNow(O="milliseconds",L={}){return this.diff(yn.now(),O,L)}until(O){return this.isValid?ln.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||yn.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),ya(L,this.plus(Y),{...O,numeric:"always",units:ee,unit:ve})}toRelativeCalendar(O={}){return this.isValid?ya(O.base||yn.fromObject({},{zone:this.zone}),this,{...O,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...O){if(!O.every(yn.isDateTime))throw new s("min requires all arguments be DateTimes");return Et(O,L=>L.valueOf(),Math.min)}static max(...O){if(!O.every(yn.isDateTime))throw new s("max requires all arguments be DateTimes");return Et(O,L=>L.valueOf(),Math.max)}static fromFormatExplain(O,L,Y={}){const{locale:ee=null,numberingSystem:ve=null}=Y,$e=De.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0});return _d($e,O,L)}static fromStringExplain(O,L,Y={}){return yn.fromFormatExplain(O,L,Y)}static buildFormatParser(O,L={}){const{locale:Y=null,numberingSystem:ee=null}=L,ve=De.fromOpts({locale:Y,numberingSystem:ee,defaultToEN:!0});return new Xp(ve,O)}static fromFormatParser(O,L,Y={}){if(Ue(O)||Ue(L))throw new s("fromFormatParser requires an input string and a format parser");const{locale:ee=null,numberingSystem:ve=null}=Y,$e=De.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0});if(!$e.equals(L.locale))throw new s(`fromFormatParser called with a locale of ${$e}, but the format parser was created for ${L.locale}`);const{result:Fe,zone:We,specificOffset:Ot,invalidReason:vn}=L.explainFromTokens(O);return vn?yn.invalid(vn):Xa(Fe,We,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 v}static get DATE_FULL(){return S}static get DATE_HUGE(){return x}static get TIME_SIMPLE(){return w}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return T}static get TIME_WITH_LONG_OFFSET(){return E}static get TIME_24_SIMPLE(){return M}static get TIME_24_WITH_SECONDS(){return $}static get TIME_24_WITH_SHORT_OFFSET(){return D}static get TIME_24_WITH_LONG_OFFSET(){return I}static get DATETIME_SHORT(){return A}static get DATETIME_SHORT_WITH_SECONDS(){return _}static get DATETIME_MED(){return W}static get DATETIME_MED_WITH_SECONDS(){return V}static get DATETIME_MED_WITH_WEEKDAY(){return k}static get DATETIME_FULL(){return z}static get DATETIME_FULL_WITH_SECONDS(){return F}static get DATETIME_HUGE(){return H}static get DATETIME_HUGE_WITH_SECONDS(){return N}}function ei(U){if(yn.isDateTime(U))return U;if(U&&U.valueOf&&Mt(U.valueOf()))return yn.fromJSDate(U);if(U&&typeof U=="object")return yn.fromObject(U);throw new s(`Unknown datetime argument: ${U}, of type ${typeof U}`)}const ry="3.7.2";return Aa.DateTime=yn,Aa.Duration=Gt,Aa.FixedOffsetZone=Ct,Aa.IANAZone=se,Aa.Info=gr,Aa.Interval=ln,Aa.InvalidZone=yt,Aa.Settings=on,Aa.SystemZone=te,Aa.VERSION=ry,Aa.Zone=X,Aa}var sA;function TT(){return sA||(sA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CronDate=e.DAYS_IN_MONTH=e.DateMathOp=e.TimeUnit=void 0;const t=Ohe();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 c={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,c):typeof s=="number"?this.#e=t.DateTime.fromMillis(s,c):(this.#e=t.DateTime.fromISO(s,c),this.#e.isValid||(this.#e=t.DateTime.fromRFC2822(s,c)),this.#e.isValid||(this.#e=t.DateTime.fromSQL(s,c)),this.#e.isValid||(this.#e=t.DateTime.fromFormat(s,"EEE, d MMM yyyy HH:mm:ss",c))):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 c=o.#o(this.#e.year);return s===e.DAYS_IN_MONTH[l-1]-(c?0:1)}return s===e.DAYS_IN_MONTH[l-1]}isLastWeekdayOfMonth(){const{day:s,month:l}=this.#e;let c;return l===2?c=e.DAYS_IN_MONTH[l-1]-(o.#o(this.#e.year)?0:1):c=e.DAYS_IN_MONTH[l-1],s>c-7}applyDateOperation(s,l,c){if(l===n.Month||l===n.Day){this.invokeDateOperation(s,l);return}const f=this.getHours();this.invokeDateOperation(s,l);const u=this.getHours(),h=u-f;h===2?c!==24&&(this.dstStart=f+1):h===0&&this.getMinutes()===0&&this.getSeconds()===0&&c!==24&&(this.dstEnd=u)}#r(){return this.#e.toUTC()}}e.CronDate=o,e.default=o})(aA)),aA}var lA;function Mhe(){if(lA)return bm;lA=1,Object.defineProperty(bm,"__esModule",{value:!0}),bm.CronMonth=void 0;const e=TT(),t=kd(),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 bm.CronMonth=a,bm}var xm={},cA;function $he(){if(cA)return xm;cA=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.CronSecond=void 0;const e=kd(),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 xm.CronSecond=o,xm}var uA;function ET(){return uA||(uA=1,(function(e){var t=Df&&Df.__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=Df&&Df.__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(Che(),e),n(khe(),e),n(The(),e),n(kd(),e),n(Ehe(),e),n(Rhe(),e),n(Mhe(),e),n($he(),e)})(Df)),Df}var dA;function e5(){if(dA)return pm;dA=1,Object.defineProperty(pm,"__esModule",{value:!0}),pm.CronFieldCollection=void 0;const e=ET();let t=class Am{#e;#t;#n;#o;#r;#a;static from(r,o){return new Am({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:c}){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(!c)throw new Error("Validation error, Field dayOfWeek is missing");if(l.values.length===1&&!s.hasLastChar&&c.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=c,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,c)=>{if(a===void 0){a={start:s,count:1};return}const f=c[l-1]||a.start,u=c[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&&u!==void 0){const h=s-f,y=u-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,u)=>{if(typeof r.start!="number")throw new Error("Unexpected range start");return u%a===0?r.start+u:null};if(typeof r.start!="number")throw new Error("Unexpected range start");const c={length:r.end-r.start+1};return Array.from(c,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=Am.compactField(a);if(s.length===1){const l=Am.#s(r,s[0],o);if(l)return l}return s.map(l=>{const c=l.count===1?l.start.toString():Am.#i(l,o);return r instanceof e.CronDayOfWeek&&r.nthDay>0?`${c}#${r.nthDay}`:c}).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 pm.CronFieldCollection=t,pm}var fA={},pA;function t5(){return pA||(pA=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=TT();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 c=new t.CronDate(l,this.#t);this.#o&&c.getTime()<this.#o.getTime()?l=this.#o:this.#r&&c.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 c=new t.CronDate(a);return c.setEndOfDay(),this.#s=s,this.#i=l.getUTCOffset()!==c.getUTCOffset(),this.#i}#u(a,s,l){const c=this.#a.second.values,f=a.getSeconds(),u=this.#a.second.findNearestValue(f,l);if(u!==null){a.setSeconds(u);return}a.applyDateOperation(s,t.TimeUnit.Minute,this.#a.hour.values.length),a.setSeconds(this.#l(c,l))}#p(a,s,l){const c=this.#a.minute.values,f=this.#a.second.values,u=a.getMinutes(),h=this.#a.minute.findNearestValue(u,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(c,l)),a.setSeconds(this.#l(f,l))}static#f(a,s){const l=s.isLastWeekdayOfMonth();return a.some(c=>{const f=parseInt(c.toString().charAt(0),10)%7;if(Number.isNaN(f))throw new Error(`Invalid last weekday of the month expression: ${c}`);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:c,month:f}=this.#a,u=new t.CronDate(a,this.#t);return!(!s.values.includes(u.getSeconds())||!l.values.includes(u.getMinutes())||!c.values.includes(u.getHours())||!f.values.includes(u.getMonth()+1)||!this.#m(u)||this.#a.dayOfWeek.nthDay>0&&Math.ceil(u.getDate()/7)!==this.#a.dayOfWeek.nthDay)}toString(){return this.#e.expression||this.stringify(!0)}#m(a){const s=this.#a.dayOfMonth.isWildcard,l=!s,c=this.#a.dayOfWeek.isWildcard,f=!c,u=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&&(u||h)||u&&!f||s&&!c&&h)}#g(a,s,l){const c=this.#a.hour.values,f=c,u=a.getHours(),h=r.#c(u,c),y=a.dstEnd===u;if(a.dstStart!==null&&a.dstStart===u-1&&r.#c(a.dstStart,c))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 v=this.#a.hour.findNearestValue(u,l);if(v===null)return a.applyDateOperation(s,t.TimeUnit.Day,f.length),!1;if(this.#d(a)){const S=l?u-v:v-u;for(let x=0;x<S&&(a.applyDateOperation(s,t.TimeUnit.Hour,f.length),!(!l&&a.getHours()>=v||l&&a.getHours()<=v));x++);}else a.setHours(v);return a.setMinutes(this.#l(this.#a.minute.values,l)),a.setSeconds(this.#l(this.#a.second.values,l)),!1}#y(a){if(!this.#o&&!this.#r)return;const s=a.getTime();if(this.#o&&s<this.#o.getTime())throw new Error(e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(this.#r&&s>this.#r.getTime())throw new Error(e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)}#h(a=!1){const s=a?t.DateMathOp.Subtract:t.DateMathOp.Add,l=new t.CronDate(this.#n),c=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(c===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})(fA)),fA}var Mv={},hA;function Phe(){if(hA)return Mv;hA=1,Object.defineProperty(Mv,"__esModule",{value:!0}),Mv.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 Mv}var mA;function eC(){if(mA)return ii;mA=1,Object.defineProperty(ii,"__esModule",{value:!0}),ii.CronExpressionParser=ii.DayOfWeek=ii.Months=ii.CronUnit=ii.PredefinedExpressions=void 0;const e=e5(),t=t5(),n=Phe(),r=ET();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||(ii.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||(ii.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||(ii.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||(ii.DayOfWeek=l={}));let c=class si{static parse(u,h={}){const{strict:y=!1,hashSeed:v}=h,S=(0,n.seededRandom)(v);u=o[u]||u;const x=si.#e(u,y);if(!(x.dayOfMonth==="*"||x.dayOfWeek==="*"||!y))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");const w=si.#t(a.Second,x.second,r.CronSecond.constraints,S),b=si.#t(a.Minute,x.minute,r.CronMinute.constraints,S),T=si.#t(a.Hour,x.hour,r.CronHour.constraints,S),E=si.#t(a.Month,x.month,r.CronMonth.constraints,S),M=si.#t(a.DayOfMonth,x.dayOfMonth,r.CronDayOfMonth.constraints,S),{dayOfWeek:$,nthDayOfWeek:D}=si.#d(x.dayOfWeek),I=si.#t(a.DayOfWeek,$,r.CronDayOfWeek.constraints,S),A=new e.CronFieldCollection({second:new r.CronSecond(w,{rawValue:x.second}),minute:new r.CronMinute(b,{rawValue:x.minute}),hour:new r.CronHour(T,{rawValue:x.hour}),dayOfMonth:new r.CronDayOfMonth(M,{rawValue:x.dayOfMonth}),month:new r.CronMonth(E,{rawValue:x.month}),dayOfWeek:new r.CronDayOfWeek(I,{rawValue:x.dayOfWeek,nthDayOfWeek:D})});return new t.CronExpression(A,{...h,expression:u})}static#e(u,h){if(h&&!u.length)throw new Error("Invalid cron expression");u=u||"0 * * * * *";const y=u.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 v=["*","*","*","*","*","0"];y.length<v.length&&y.unshift(...v.slice(y.length));const[S,x,w,b,T,E]=y;return{second:S,minute:x,hour:w,dayOfMonth:b,month:T,dayOfWeek:E}}static#t(u,h,y,v){if((u===a.Month||u===a.DayOfWeek)&&(h=h.replace(/[a-z]{3}/gi,S=>{S=S.toLowerCase();const x=s[S]||l[S];if(x===void 0)throw new Error(`Validation error, cannot resolve alias "${S}"`);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,v),this.#r(u,h,y)}static#n(u,h){return u.replace(/[*?]/g,h.min+"-"+h.max)}static#o(u,h,y){const v=y();return u.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(S,x,w,b)=>{if(x&&w&&b){const T=parseInt(x,10),E=parseInt(w,10),M=parseInt(b,10);if(T>E)throw new Error(`Invalid range: ${T}-${E}, min > max`);if(M<=0)throw new Error(`Invalid step: ${M}, must be positive`);const $=Math.max(T,h.min),D=Math.floor(v*M),I=[];for(let A=Math.floor($/M)*M+D;A<=E;A+=M)A>=$&&I.push(A);return I.join(",")}else if(x&&w){const T=parseInt(x,10),E=parseInt(w,10);if(T>E)throw new Error(`Invalid range: ${T}-${E}, min > max`);return String(Math.floor(v*(E-T+1))+T)}else if(b){const T=parseInt(b,10);if(T<=0)throw new Error(`Invalid step: ${T}, must be positive`);const E=Math.floor(v*T),M=[];for(let $=Math.floor(h.min/T)*T+E;$<=h.max;$+=T)$>=h.min&&M.push($);return M.join(",")}else return String(Math.floor(v*(h.max-h.min+1)+h.min))})}static#r(u,h,y){const v=[];function S(x,w){if(Array.isArray(x))v.push(...x);else if(si.#u(w,x))v.push(x);else{const b=parseInt(x.toString(),10);if(!(b>=w.min&&b<=w.max))throw new Error(`Constraint error, got value ${x} expected range ${w.min}-${w.max}`);v.push(u===a.DayOfWeek?b%7:x)}}return h.split(",").forEach(x=>{if(!(x.length>0))throw new Error("Invalid list value format");S(si.#a(u,x,y),y)}),v}static#a(u,h,y){const v=h.split("/");if(v.length>2)throw new Error(`Invalid repeat: ${h}`);return v.length===2?(v[0].includes("-")||(v[0]=`${v[0]}-${y.max}`),si.#l(u,v[0],parseInt(v[1],10),y)):si.#l(u,h,1,y)}static#s(u,h,y){if(!(!isNaN(u)&&!isNaN(h)&&u>=y.min&&h<=y.max))throw new Error(`Constraint error, got range ${u}-${h} expected range ${y.min}-${y.max}`);if(u>h)throw new Error(`Invalid range: ${u}-${h}, min(${u}) > max(${h})`)}static#i(u){if(!(!isNaN(u)&&u>0))throw new Error(`Constraint error, cannot repeat at every ${u} time.`)}static#c(u,h,y,v){const S=[];u===a.DayOfWeek&&y%7===0&&S.push(0);for(let x=h;x<=y;x+=v)S.indexOf(x)===-1&&S.push(x);return S}static#l(u,h,y,v){const S=h.split("-");if(S.length<=1)return isNaN(+h)?h:+h;const[x,w]=S.map(b=>parseInt(b,10));return this.#s(x,w,v),this.#i(y),this.#c(u,x,w,y)}static#d(u){const h=u.split("#");if(h.length<=1)return{dayOfWeek:h[0]};const y=+h[h.length-1],v=u.match(/([,-/])/);if(v!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${v?.[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(u,h){return u.chars.some(y=>h.toString().includes(y))}};return ii.CronExpressionParser=c,ii}var xs={};const Dhe={},Ahe=Object.freeze(Object.defineProperty({__proto__:null,default:Dhe},Symbol.toStringTag,{value:"Module"})),gA=YZ(Ahe);var yA;function jhe(){if(yA)return xs;yA=1;var e=xs&&xs.__createBinding||(Object.create?(function(a,s,l,c){c===void 0&&(c=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,c,f)}):(function(a,s,l,c){c===void 0&&(c=l),a[c]=s[l]})),t=xs&&xs.__setModuleDefault||(Object.create?(function(a,s){Object.defineProperty(a,"default",{enumerable:!0,value:s})}):function(a,s){a.default=s}),n=xs&&xs.__importStar||(function(){var a=function(s){return a=Object.getOwnPropertyNames||function(l){var c=[];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c[c.length]=f);return c},a(s)};return function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var c=a(s),f=0;f<c.length;f++)c[f]!=="default"&&e(l,s,c[f]);return t(l,s),l}})();Object.defineProperty(xs,"__esModule",{value:!0}),xs.CronFileParser=void 0;const r=eC();let o=class Zv{static async parseFile(s){const{readFile:l}=await Promise.resolve().then(()=>n(gA)),c=await l(s,"utf8");return Zv.#e(c)}static parseFileSync(s){const{readFileSync:l}=gA,c=l(s,"utf8");return Zv.#e(c)}static#e(s){const l=s.split(`
|
|
443
|
-
`),c={variables:{},expressions:[],errors:{}};for(const f of l){const u=f.trim();if(u.length===0||u.startsWith("#"))continue;const h=u.match(/^(.*)=(.*)$/);if(h){const[,y,v]=h;c.variables[y]=v.replace(/["']/g,"");continue}try{const y=Zv.#t(u);c.expressions.push(y.interval)}catch(y){c.errors[u]=y}}return c}static#t(s){const l=s.split(" ");return{interval:r.CronExpressionParser.parse(l.slice(0,5).join(" ")),command:l.slice(5,l.length)}}};return xs.CronFileParser=o,xs}var vA;function Nhe(){return vA||(vA=1,(function(e){var t=Pf&&Pf.__createBinding||(Object.create?(function(f,u,h,y){y===void 0&&(y=h);var v=Object.getOwnPropertyDescriptor(u,h);(!v||("get"in v?!u.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return u[h]}}),Object.defineProperty(f,y,v)}):(function(f,u,h,y){y===void 0&&(y=h),f[y]=u[h]})),n=Pf&&Pf.__exportStar||function(f,u){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(u,h)&&t(u,f,h)};Object.defineProperty(e,"__esModule",{value:!0}),e.CronFileParser=e.CronExpressionParser=e.CronExpression=e.CronFieldCollection=e.CronDate=void 0;const r=eC();var o=TT();Object.defineProperty(e,"CronDate",{enumerable:!0,get:function(){return o.CronDate}});var a=e5();Object.defineProperty(e,"CronFieldCollection",{enumerable:!0,get:function(){return a.CronFieldCollection}});var s=t5();Object.defineProperty(e,"CronExpression",{enumerable:!0,get:function(){return s.CronExpression}});var l=eC();Object.defineProperty(e,"CronExpressionParser",{enumerable:!0,get:function(){return l.CronExpressionParser}});var c=jhe();Object.defineProperty(e,"CronFileParser",{enumerable:!0,get:function(){return c.CronFileParser}}),n(ET(),e),e.default=r.CronExpressionParser})(Pf)),Pf}var Ihe=Nhe(),bA={exports:{}},xA;function Lhe(){return xA||(xA=1,(function(e,t){(function(n,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:((s,l,c)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=c(515),u=(function(){function h(y,v,S){v===void 0&&(v=!0),S===void 0&&(S=!1),this.expression=y,this.dayOfWeekStartIndexZero=v,this.monthStartIndexZero=S}return h.prototype.parse=function(){var y,v,S=(y=this.expression)!==null&&y!==void 0?y:"";if(S==="@reboot")return v=["@reboot","","","","","",""],v;if(S.startsWith("@")){var x=this.parseSpecial(this.expression);v=this.extractParts(x)}else v=this.extractParts(this.expression);return this.normalize(v),this.validate(v),v},h.prototype.parseSpecial=function(y){var v={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},S=v[y];if(!S)throw new Error("Unknown special expression.");return S},h.prototype.extractParts=function(y){if(!this.expression)throw new Error("cron expression is empty");for(var v=y.trim().split(/[ ]+/),S=0;S<v.length;S++)if(v[S].includes(",")){var x=v[S].split(",").map(function(b){return b.trim()}).filter(function(b){return b!==""}).map(function(b){return isNaN(Number(b))?b:Number(b)}).filter(function(b){return b!==null&&b!==""});x.length===0&&x.push("*"),x.sort(function(b,T){return b!==null&&T!==null?b-T:0}),v[S]=x.map(function(b){return b!==null?b.toString():""}).join(",")}if(v.length<5)throw new Error("Expression has only ".concat(v.length," part").concat(v.length==1?"":"s",". At least 5 parts are required."));if(v.length==5)v.unshift(""),v.push("");else if(v.length==6){var w=/\d{4}$/.test(v[5])||v[4]=="?"||v[2]=="?";w?v.unshift(""):v.push("")}else if(v.length>7)throw new Error("Expression has ".concat(v.length," parts; too many!"));return v},h.prototype.normalize=function(y){var v=this;if(y[3]=y[3].replace("?","*"),y[5]=y[5].replace("?","*"),y[2]=y[2].replace("?","*"),y[0].indexOf("0/")==0&&(y[0]=y[0].replace("0/","*/")),y[1].indexOf("0/")==0&&(y[1]=y[1].replace("0/","*/")),y[2].indexOf("0/")==0&&(y[2]=y[2].replace("0/","*/")),y[3].indexOf("1/")==0&&(y[3]=y[3].replace("1/","*/")),y[4].indexOf("1/")==0&&(y[4]=y[4].replace("1/","*/")),y[6].indexOf("1/")==0&&(y[6]=y[6].replace("1/","*/")),y[5]=y[5].replace(/(^\d)|([^#/\s]\d)/g,function($){var D=$.replace(/\D/,""),I=D;return v.dayOfWeekStartIndexZero?D=="7"&&(I="0"):I=(parseInt(D)-1).toString(),$.replace(D,I)}),y[5]=="L"&&(y[5]="6"),y[3]=="?"&&(y[3]="*"),y[3].indexOf("W")>-1&&(y[3].indexOf(",")>-1||y[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var S={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var x in S)y[5]=y[5].replace(new RegExp(x,"gi"),S[x].toString());y[4]=y[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function($){var D=$.replace(/\D/,""),I=D;return v.monthStartIndexZero&&(I=(parseInt(D)+1).toString()),$.replace(D,I)});var w={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var b in w)y[4]=y[4].replace(new RegExp(b,"gi"),w[b].toString());y[0]=="0"&&(y[0]=""),!/\*|\-|\,|\//.test(y[2])&&(/\*|\//.test(y[1])||/\*|\//.test(y[0]))&&(y[2]+="-".concat(y[2]));for(var T=0;T<y.length;T++)if(y[T].indexOf(",")!=-1&&(y[T]=y[T].split(",").filter(function($){return $!==""}).join(",")||"*"),y[T]=="*/1"&&(y[T]="*"),y[T].indexOf("/")>-1&&!/^\*|\-|\,/.test(y[T])){var E=null;switch(T){case 4:E="12";break;case 5:E="6";break;case 6:E="9999";break;default:E=null;break}if(E!==null){var M=y[T].split("/");y[T]="".concat(M[0],"-").concat(E,"/").concat(M[1])}}},h.prototype.validate=function(y){var v="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(y[0],v),this.validateOnlyExpectedCharactersFound(y[1],v),this.validateOnlyExpectedCharactersFound(y[2],v),this.validateOnlyExpectedCharactersFound(y[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(y[4],v),this.validateOnlyExpectedCharactersFound(y[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(y[6],v),this.validateAnyRanges(y)},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,v){var S=y.match(new RegExp("[^".concat(v,"]+"),"gi"));if(S&&S.length)throw new Error("Expression contains invalid values: '".concat(S.toString(),"'"))},h})();l.CronParser=u}),333:((s,l,c)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=c(823),u=c(949),h=(function(){function y(v,S){if(this.expression=v,this.options=S,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],S.use24HourTimeFormat===void 0&&(S.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return y.toString=function(v,S){var x=S===void 0?{}:S,w=x.throwExceptionOnParseError,b=w===void 0?!0:w,T=x.verbose,E=T===void 0?!1:T,M=x.dayOfWeekStartIndexZero,$=M===void 0?!0:M,D=x.monthStartIndexZero,I=D===void 0?!1:D,A=x.use24HourTimeFormat,_=x.locale,W=_===void 0?null:_,V={throwExceptionOnParseError:b,verbose:E,dayOfWeekStartIndexZero:$,monthStartIndexZero:I,use24HourTimeFormat:A,locale:W};V.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var k=new y(v,V);return k.getFullDescription()},y.initialize=function(v,S){S===void 0&&(S="en"),y.specialCharacters=["/","-",",","*"],y.defaultLocale=S,v.load(y.locales)},y.prototype.getFullDescription=function(){var v,S,x="";try{var w=new u.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=w.parse(),this.expressionParts[0]==="@reboot")return((S=(v=this.i18n).atReboot)===null||S===void 0?void 0:S.call(v))||"Run once, at startup";var b=this.getTimeOfDayDescription(),T=this.getDayOfMonthDescription(),E=this.getMonthDescription(),M=this.getDayOfWeekDescription(),$=this.getYearDescription();x+=b+T+M+E+$,x=this.transformVerbosity(x,!!this.options.verbose),x=x.charAt(0).toLocaleUpperCase()+x.substr(1)}catch(D){if(!this.options.throwExceptionOnParseError)x=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(D)}return x},y.prototype.getTimeOfDayDescription=function(){var v=this.expressionParts[0],S=this.expressionParts[1],x=this.expressionParts[2],w="";if(!f.StringUtilities.containsAny(S,y.specialCharacters)&&!f.StringUtilities.containsAny(x,y.specialCharacters)&&!f.StringUtilities.containsAny(v,y.specialCharacters))w+=this.i18n.atSpace()+this.formatTime(x,S,v);else if(!v&&S.indexOf("-")>-1&&!(S.indexOf(",")>-1)&&!(S.indexOf("/")>-1)&&!f.StringUtilities.containsAny(x,y.specialCharacters)){var b=S.split("-");w+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(x,b[0],""),this.formatTime(x,b[1],""))}else if(!v&&x.indexOf(",")>-1&&x.indexOf("-")==-1&&x.indexOf("/")==-1&&!f.StringUtilities.containsAny(S,y.specialCharacters)){var T=x.split(",");w+=this.i18n.at();for(var E=0;E<T.length;E++)w+=" ",w+=this.formatTime(T[E],S,""),E<T.length-2&&(w+=","),E==T.length-2&&(w+=this.i18n.spaceAnd())}else{var M=this.getSecondsDescription(),$=this.getMinutesDescription(),D=this.getHoursDescription();if(w+=M,w&&$&&(w+=", "),w+=$,$===D)return w;w&&D&&(w+=", "),w+=D}return w},y.prototype.getSecondsDescription=function(){var v=this,S=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(x){return x},function(x){return f.StringUtilities.format(v.i18n.everyX0Seconds(x),x)},function(x){return v.i18n.secondsX0ThroughX1PastTheMinute()},function(x){return x=="0"?"":parseInt(x)<20?v.i18n.atX0SecondsPastTheMinute(x):v.i18n.atX0SecondsPastTheMinuteGt20()||v.i18n.atX0SecondsPastTheMinute(x)});return S},y.prototype.getMinutesDescription=function(){var v=this,S=this.expressionParts[0],x=this.expressionParts[2],w=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(b){return b},function(b){return f.StringUtilities.format(v.i18n.everyX0Minutes(b),b)},function(b){return v.i18n.minutesX0ThroughX1PastTheHour()},function(b){try{return b=="0"&&x.indexOf("/")==-1&&S==""?v.i18n.everyHour():parseInt(b)<20?v.i18n.atX0MinutesPastTheHour(b):v.i18n.atX0MinutesPastTheHourGt20()||v.i18n.atX0MinutesPastTheHour(b)}catch{return v.i18n.atX0MinutesPastTheHour(b)}});return w},y.prototype.getHoursDescription=function(){var v=this,S=this.expressionParts[2],x=0,w=[];S.split("/")[0].split(",").forEach(function(E){var M=E.split("-");M.length===2&&w.push({value:M[1],index:x+1}),x+=M.length});var b=0,T=this.getSegmentDescription(S,this.i18n.everyHour(),function(E){var M=w.find(function(D){return D.value===E&&D.index===b}),$=M&&v.expressionParts[1]!=="0";return b++,$?v.formatTime(E,"59",""):v.formatTime(E,"0","")},function(E){return f.StringUtilities.format(v.i18n.everyX0Hours(E),E)},function(E){return v.i18n.betweenX0AndX1()},function(E){return v.i18n.atX0()});return T},y.prototype.getDayOfWeekDescription=function(){var v=this,S=this.i18n.daysOfTheWeek(),x=null;return this.expressionParts[5]=="*"?x="":x=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(w,b){var T=w;w.indexOf("#")>-1?T=w.substring(0,w.indexOf("#")):w.indexOf("L")>-1&&(T=T.replace("L",""));var E=parseInt(T),M=v.i18n.daysOfTheWeekInCase?v.i18n.daysOfTheWeekInCase(b)[E]:S[E];if(w.indexOf("#")>-1){var $=null,D=w.substring(w.indexOf("#")+1),I=w.substring(0,w.indexOf("#"));switch(D){case"1":$=v.i18n.first(I);break;case"2":$=v.i18n.second(I);break;case"3":$=v.i18n.third(I);break;case"4":$=v.i18n.fourth(I);break;case"5":$=v.i18n.fifth(I);break}M=$+" "+M}return M},function(w){return parseInt(w)==1?"":f.StringUtilities.format(v.i18n.commaEveryX0DaysOfTheWeek(w),w)},function(w){var b=w.substring(0,w.indexOf("-")),T=v.expressionParts[3]!="*";return T?v.i18n.commaAndX0ThroughX1(b):v.i18n.commaX0ThroughX1(b)},function(w){var b=null;if(w.indexOf("#")>-1){var T=w.substring(w.indexOf("#")+1),E=w.substring(0,w.indexOf("#"));b=v.i18n.commaOnThe(T,E).trim()+v.i18n.spaceX0OfTheMonth()}else if(w.indexOf("L")>-1)b=v.i18n.commaOnTheLastX0OfTheMonth(w.replace("L",""));else{var M=v.expressionParts[3]!="*";b=M?v.i18n.commaAndOnX0():v.i18n.commaOnlyOnX0(w)}return b}),x},y.prototype.getMonthDescription=function(){var v=this,S=this.i18n.monthsOfTheYear(),x=this.getSegmentDescription(this.expressionParts[4],"",function(w,b){return b&&v.i18n.monthsOfTheYearInCase?v.i18n.monthsOfTheYearInCase(b)[parseInt(w)-1]:S[parseInt(w)-1]},function(w){return parseInt(w)==1?"":f.StringUtilities.format(v.i18n.commaEveryX0Months(w),w)},function(w){return v.i18n.commaMonthX0ThroughMonthX1()||v.i18n.commaX0ThroughX1()},function(w){return v.i18n.commaOnlyInMonthX0?v.i18n.commaOnlyInMonthX0():v.i18n.commaOnlyInX0()});return x},y.prototype.getDayOfMonthDescription=function(){var v=this,S=null,x=this.expressionParts[3];switch(x){case"L":S=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":S=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var w=x.match(/(\d{1,2}W)|(W\d{1,2})/);if(w){var b=parseInt(w[0].replace("W","")),T=b==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),b.toString());S=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),T);break}else{var E=x.match(/L-(\d{1,2})/);if(E){var M=E[1];S=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(M),M);break}else{if(x=="*"&&this.expressionParts[5]!="*")return"";S=this.getSegmentDescription(x,this.i18n.commaEveryDay(),function($){return $=="L"?v.i18n.lastDay():v.i18n.dayX0?f.StringUtilities.format(v.i18n.dayX0(),$):$},function($){return $=="1"?v.i18n.commaEveryDay():v.i18n.commaEveryX0Days($)},function($){return v.i18n.commaBetweenDayX0AndX1OfTheMonth($)},function($){return v.i18n.commaOnDayX0OfTheMonth($)})}break}}return S},y.prototype.getYearDescription=function(){var v=this,S=this.getSegmentDescription(this.expressionParts[6],"",function(x){return/^\d+$/.test(x)?new Date(parseInt(x),1).getFullYear().toString():x},function(x){return f.StringUtilities.format(v.i18n.commaEveryX0Years(x),x)},function(x){return v.i18n.commaYearX0ThroughYearX1()||v.i18n.commaX0ThroughX1()},function(x){return v.i18n.commaOnlyInYearX0?v.i18n.commaOnlyInYearX0():v.i18n.commaOnlyInX0()});return S},y.prototype.getSegmentDescription=function(v,S,x,w,b,T){var E=null,M=v.indexOf("/")>-1,$=v.indexOf("-")>-1,D=v.indexOf(",")>-1;if(!v)E="";else if(v==="*")E=S;else if(!M&&!$&&!D)E=f.StringUtilities.format(T(v),x(v));else if(D){for(var I=v.split(","),A="",_=0;_<I.length;_++)if(_>0&&I.length>2&&(A+=",",_<I.length-1&&(A+=" ")),_>0&&I.length>1&&(_==I.length-1||I.length==2)&&(A+="".concat(this.i18n.spaceAnd()," ")),I[_].indexOf("/")>-1||I[_].indexOf("-")>-1){var W=I[_].indexOf("-")>-1&&I[_].indexOf("/")==-1,V=this.getSegmentDescription(I[_],S,x,w,W?this.i18n.commaX0ThroughX1:b,T);W&&(V=V.replace(", ","")),A+=V}else M?A+=this.getSegmentDescription(I[_],S,x,w,b,T):A+=x(I[_]);M?E=A:E=f.StringUtilities.format(T(v),A)}else if(M){var I=v.split("/");if(E=f.StringUtilities.format(w(I[1]),I[1]),I[0].indexOf("-")>-1){var k=this.generateRangeSegmentDescription(I[0],b,x);k.indexOf(", ")!=0&&(E+=", "),E+=k}else if(I[0].indexOf("*")==-1){var z=f.StringUtilities.format(T(I[0]),x(I[0]));z=z.replace(", ",""),E+=f.StringUtilities.format(this.i18n.commaStartingX0(),z)}}else $&&(E=this.generateRangeSegmentDescription(v,b,x));return E},y.prototype.generateRangeSegmentDescription=function(v,S,x){var w="",b=v.split("-"),T=x(b[0],1),E=x(b[1],2),M=S(v);return w+=f.StringUtilities.format(M,T,E),w},y.prototype.formatTime=function(v,S,x){var w=0,b=0,T=parseInt(v)+w,E=parseInt(S)+b;E>=60?(E-=60,T+=1):E<0&&(E+=60,T-=1),T>=24?T=T-24:T<0&&(T=24+T);var M="",$=!1;this.options.use24HourTimeFormat||($=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),M=$?"".concat(this.getPeriod(T)," "):" ".concat(this.getPeriod(T)),T>12&&(T-=12),T===0&&(T=12));var D="";return x&&(D=":".concat(("00"+x).substring(x.length))),"".concat($?M:"").concat(("00"+T.toString()).substring(T.toString().length),":").concat(("00"+E.toString()).substring(E.toString().length)).concat(D).concat($?"":M)},y.prototype.transformVerbosity=function(v,S){if(!S&&(v=v.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),v=v.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),v=v.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),v=v.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var x=0,w=Object.entries(this.i18n.conciseVerbosityReplacements());x<w.length;x++){var b=w[x],T=b[0],E=b[1];v=v.replace(new RegExp(T,"g"),E)}return v},y.prototype.getPeriod=function(v){return v>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},y.locales={},y})();l.ExpressionDescriptor=h}),747:((s,l,c)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=c(486),u=(function(){function h(){}return h.prototype.load=function(y){y.en=new f.en},h})();l.enLocaleLoader=u}),486:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var c=(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=c}),515:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0});function c(u,h){if(!u)throw new Error(h)}var f=(function(){function u(){}return u.secondRange=function(h){for(var y=h.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var S=parseInt(y[v],10);c(S>=0&&S<=59,"seconds part must be >= 0 and <= 59")}},u.minuteRange=function(h){for(var y=h.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var S=parseInt(y[v],10);c(S>=0&&S<=59,"minutes part must be >= 0 and <= 59")}},u.hourRange=function(h){for(var y=h.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var S=parseInt(y[v],10);c(S>=0&&S<=23,"hours part must be >= 0 and <= 23")}},u.dayOfMonthRange=function(h){for(var y=h.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var S=parseInt(y[v],10);c(S>=1&&S<=31,"DOM part must be >= 1 and <= 31")}},u.monthRange=function(h,y){for(var v=h.split(","),S=0;S<v.length;S++)if(!isNaN(parseInt(v[S],10))){var x=parseInt(v[S],10);c(x>=1&&x<=12,y?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},u.dayOfWeekRange=function(h,y){for(var v=h.split(","),S=0;S<v.length;S++)if(!isNaN(parseInt(v[S],10))){var x=parseInt(v[S],10);c(x>=0&&x<=6,y?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},u})();l.default=f}),823:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var c=(function(){function f(){}return f.format=function(u){for(var h=[],y=1;y<arguments.length;y++)h[y-1]=arguments[y];return u.replace(/%s/g,function(v){return h.shift()})},f.containsAny=function(u,h){return h.some(function(y){return u.indexOf(y)>-1})},f})();l.StringUtilities=c})},r={};function o(s){var l=r[s];if(l!==void 0)return l.exports;var c=r[s]={exports:{}};return n[s](c,c.exports,o),c.exports}var a={};return(()=>{var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0;var l=o(333),c=o(747);l.ExpressionDescriptor.initialize(new c.enLocaleLoader),s.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;s.toString=f})(),a})())})(bA)),bA.exports}var zhe=Lhe();const Fhe=Kl(zhe),_he=new Set(["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC","SUN","MON","TUE","WED","THU","FRI","SAT"]);function Bhe(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)&&!_he.has(n.toUpperCase()))return!1}return!0}function n5(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(!Bhe(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=Fhe.toString(t,{use24HourTimeFormat:!0,verbose:!1}),r=Ihe.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 r5(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 Uhe({onSubmit:e,isSubmitting:t,disabled:n,disabledReason:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),c=()=>a(!1),f=async()=>{try{await e({forceRefresh:s}),a(!1)}catch{}},u=m.jsx("span",{children:m.jsx(Wg,{label:"Materialization",onClick:()=>a(!0),disabled:n})});return m.jsxs(m.Fragment,{children:[n&&r?m.jsx(Xi,{title:r,children:u}):u,m.jsx(pa,{open:o,onClose:c,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(Jo,{onClick:c,children:"Cancel"}),m.jsx(Jo,{variant:"contained",loading:t,onClick:f,children:"Materialize"})]}),children:m.jsx(tq,{children:m.jsx(rk,{control:m.jsx(DN,{checked:s,onChange:h=>l(h.target.checked)}),label:"Force refresh (rebuild even if unchanged)"})})})]})}function Jv({children:e}){return m.jsx(It,{variant:"caption",component:"h6",sx:{display:"block",textTransform:"uppercase",letterSpacing:"0.06em",fontWeight:600,color:"text.secondary",mb:1},children:e})}function Db(e){return e===xa.Pending||e===xa.ManifestRowsReady}function Vhe(e){return e===xa.ManifestFileReady||e===xa.Failed||e===xa.Cancelled}function o5(e){switch(e){case xa.ManifestFileReady:return"Done";case xa.Failed:return"Failed";case xa.Cancelled:return"Cancelled";case xa.Pending:case xa.ManifestRowsReady:return"Pending";default:return"Unknown"}}function tC(e){switch(e){case xa.ManifestRowsReady:return"info";case xa.ManifestFileReady:return"success";case xa.Failed:return"error";case xa.Cancelled:return"warning";case xa.Pending:default:return"default"}}function Hhe(e){const t=Object.values(RT(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 a5(e,t){const n=[`${e.sourcesBuilt??0} built`,`${e.sourcesReused??0} reused`];return e.sourcesRefused&&n.push(`${e.sourcesRefused} refused`),n.join(t)}function RT(e){return e.metadata??{}}function Whe(e){return e.trigger==="SCHEDULER"?"Scheduled":"Manual"}function i5(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 c=Math.floor(s/60),f=s%60;return`${c}h ${f}m`}function nC(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 qhe(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 Yhe({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(Jv,{children:"Build manifest"}),t&&m.jsxs(It,{variant:"caption",color:"text.secondary",children:["Built ",nC(t)]})]}),n.length===0?m.jsx(It,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"No materialized tables yet."}):m.jsxs(jg,{size:"small",children:[m.jsx(Ig,{children:m.jsxs(al,{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(Ng,{children:n.map(([r,o])=>m.jsxs(al,{children:[m.jsx(Xn,{sx:{fontFamily:pi},children:o.sourceName??r}),m.jsx(Xn,{sx:{fontFamily:pi},children:o.physicalTableName??"-"}),m.jsx(Xn,{sx:{fontFamily:pi},children:o.connectionName??"-"}),m.jsx(Xn,{children:o.realization??"-"}),m.jsx(Xn,{align:"right",children:o.rowCount??"-"})]},r))})]})]})}function s5({meta:e}){const t=e.trigger==="SCHEDULER";return m.jsx(Xi,{title:t?"Fired by the materialization schedule":"Triggered manually",children:m.jsx(It,{variant:"body2",color:"text.secondary",children:Whe(e)})})}function Ghe({materialization:e,buildPlan:t,onClose:n}){const r=e?RT(e):{},o=e?Hhe(e):[],a=Object.values(t?.sources??{});return m.jsx(up,{open:e!==null,onClose:n,maxWidth:"md",fullWidth:!0,"aria-labelledby":"materialization-detail-title",children:e&&m.jsxs(m.Fragment,{children:[m.jsxs(fp,{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(hN,{size:"small",label:o5(e.status),color:tC(e.status),variant:Db(e.status)?"filled":"outlined"}),m.jsx(s5,{meta:r})]}),m.jsx(It,{variant:"subtitle1",sx:{fontWeight:600},children:e.packageName??"Materialization"}),m.jsx(It,{variant:"caption",color:"text.secondary",sx:{fontFamily:pi,wordBreak:"break-all"},children:e.id}),m.jsx(Jr,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8},children:m.jsx(mp,{fontSize:"small"})})]}),m.jsxs(dp,{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(Sm,{label:"Started",value:nC(e.startedAt??e.createdAt)}),m.jsx(Sm,{label:"Completed",value:nC(e.completedAt)}),m.jsx(Sm,{label:"Duration",value:i5(e.startedAt,e.completedAt)}),m.jsx(Sm,{label:"Sources",value:a5(r," · ")}),m.jsx(Sm,{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(Jv,{children:m.jsx(Ht,{component:"span",sx:{color:"error.main"},children:"Error"})}),m.jsx(It,{variant:"body2",sx:{fontFamily:pi,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(Jv,{children:m.jsx(Ht,{component:"span",sx:{color:"warning.main"},children:"Refused sources"})}),m.jsx(It,{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(It,{variant:"body2",sx:{fontFamily:pi},children:s.name}),m.jsx(It,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"pre-wrap"},children:s.message})]},s.name))]}),m.jsxs(Ht,{sx:{mb:3},children:[m.jsx(Jv,{children:"Build plan"}),a.length===0?m.jsx(It,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"This package has no persist sources."}):m.jsxs(jg,{size:"small",children:[m.jsx(Ig,{children:m.jsxs(al,{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(Ng,{children:a.map(s=>m.jsxs(al,{children:[m.jsx(Xn,{sx:{fontFamily:pi},children:s.name}),m.jsx(Xn,{sx:{fontFamily:pi},children:s.connectionName}),m.jsx(Xn,{children:s.dialect??"-"}),m.jsx(Xn,{align:"right",children:s.columns?.length??0}),m.jsx(Xn,{sx:{fontFamily:pi,fontSize:"0.75rem",wordBreak:"break-all",maxWidth:220},children:s.sourceEntityId})]},s.sourceID))})]})]}),m.jsx(Yhe,{entries:e.manifest?.entries,builtAt:e.manifest?.builtAt})]})]})})}function Sm({label:e,value:t}){return m.jsxs(Ht,{children:[m.jsx(It,{variant:"caption",color:"text.secondary",display:"block",children:e}),m.jsx(It,{variant:"body2",children:t})]})}const Khe=lr(m.jsx("path",{d:"M6 6h12v12H6z"}));function Qhe(e){return cn("PrivateSwitchBase",e)}tn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Xhe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${St(o)}`],input:["input"]};return sn(a,Qhe,t)},Zhe=Qe(dd,{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}}]}),Jhe=Qe("input",{name:"MuiSwitchBase",shouldForwardProp:qa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),eme=C.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:u,inputProps:h,inputRef:y,name:v,onBlur:S,onChange:x,onFocus:w,readOnly:b,required:T=!1,tabIndex:E,type:M,value:$,slots:D={},slotProps:I={},...A}=e,[_,W]=yi({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),V=Ci(),k=fe=>{w&&w(fe),V&&V.onFocus&&V.onFocus(fe)},z=fe=>{S&&S(fe),V&&V.onBlur&&V.onBlur(fe)},F=fe=>{if(fe.nativeEvent.defaultPrevented)return;const ae=fe.target.checked;W(ae),x&&x(fe,ae)};let H=s;V&&typeof H>"u"&&(H=V.disabled);const N=M==="checkbox"||M==="radio",X={...e,checked:_,disabled:H,disableFocusRipple:l,edge:c},Q=Xhe(X),te={slots:D,slotProps:{input:h,...I}},[Z,K]=sr("root",{ref:t,elementType:Zhe,className:Q.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...A},getSlotProps:fe=>({...fe,onFocus:ae=>{fe.onFocus?.(ae),k(ae)},onBlur:ae=>{fe.onBlur?.(ae),z(ae)}}),ownerState:X,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:H,role:void 0,tabIndex:null}}),[ne,le]=sr("input",{ref:y,elementType:Jhe,className:Q.input,externalForwardedProps:te,getSlotProps:fe=>({...fe,onChange:ae=>{fe.onChange?.(ae),F(ae)}}),ownerState:X,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:H,id:N?u:void 0,name:v,readOnly:b,required:T,tabIndex:E,type:M,...M==="checkbox"&&$===void 0?{}:{value:$}}});return m.jsxs(Z,{...K,children:[m.jsx(ne,{...le}),_?o:f]})}),tme=lr(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"})),nme=lr(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"})),rme=lr(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 ome(e){return cn("MuiCheckbox",e)}const $1=tn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ame=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${St(r)}`,`size${St(o)}`]},s=sn(a,ome,t);return{...t,...s}},ime=Qe(eme,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${St(n.size)}`],n.color!=="default"&&t[`color${St(n.color)}`]]}})(Wn(({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(Sa()).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(Sa()).map(([t])=>({props:{color:t},style:{[`&.${$1.checked}, &.${$1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${$1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),sme=m.jsx(nme,{}),lme=m.jsx(tme,{}),cme=m.jsx(rme,{}),ume=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiCheckbox"}),{checkedIcon:r=sme,color:o="primary",icon:a=lme,indeterminate:s=!1,indeterminateIcon:l=cme,inputProps:c,size:f="medium",disableRipple:u=!1,className:h,slots:y={},slotProps:v={},...S}=n,x=s?l:a,w=s?l:r,b={...n,disableRipple:u,color:o,indeterminate:s,size:f},T=ame(b),E=v.input??c,[M,$]=sr("root",{ref:t,elementType:ime,className:Lt(T.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:v,...S},ownerState:b,additionalProps:{type:"checkbox",icon:C.cloneElement(x,{fontSize:x.props.fontSize??f}),checkedIcon:C.cloneElement(w,{fontSize:w.props.fontSize??f}),disableRipple:u,slots:y,slotProps:{input:gL(typeof E=="function"?E(b):E,{"data-indeterminate":s})}}});return m.jsx(M,{...$,classes:T})});function dme(e){return cn("MuiFormControlLabel",e)}const jm=tn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),fme=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${St(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return sn(s,dme,t)},pme=Qe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jm.label}`]:t.label},t.root,t[`labelPlacement${St(n.labelPlacement)}`]]}})(Wn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${jm.disabled}`]:{cursor:"default"},[`& .${jm.label}`]:{[`&.${jm.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}}]}))),hme=Qe("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Wn(({theme:e})=>({[`&.${jm.error}`]:{color:(e.vars||e).palette.error.main}}))),mme=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:f,label:u,labelPlacement:h="end",name:y,onChange:v,required:S,slots:x={},slotProps:w={},value:b,...T}=n,E=Ci(),M=l??s.props.disabled??E?.disabled,$=S??s.props.required,D={disabled:M,required:$};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof s.props[F]>"u"&&typeof n[F]<"u"&&(D[F]=n[F])});const I=wd({props:n,muiFormControl:E,states:["error"]}),A={...n,disabled:M,labelPlacement:h,required:$,error:I.error},_=fme(A),W={slots:x,slotProps:{...a,...w}},[V,k]=sr("typography",{elementType:br,externalForwardedProps:W,ownerState:A});let z=u;return z!=null&&z.type!==br&&!c&&(z=m.jsx(V,{component:"span",...k,className:Lt(_.label,k?.className),children:z})),m.jsxs(pme,{className:Lt(_.root,o),ownerState:A,ref:t,...T,children:[C.cloneElement(s,D),$?m.jsxs("div",{children:[z,m.jsxs(hme,{ownerState:A,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):z]})});function gme({materialization:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),c=()=>a(!0),f=()=>{a(!1),l(!1),t()};return m.jsxs(un.Fragment,{children:[m.jsxs(Xo,{"aria-label":`Delete materialization ${e?.id??""}`.trim(),onClick:u=>{u.stopPropagation(),c()},sx:{color:"error.main"},children:[m.jsx(CT,{sx:{color:"inherit"},children:m.jsx(x0,{fontSize:"small"})}),m.jsx(kT,{children:"Delete"})]}),m.jsxs(pa,{open:o,onClose:f,title:"Delete materialization",actions:m.jsxs(m.Fragment,{children:[m.jsx(mo,{onClick:f,children:"Cancel"}),m.jsx(mo,{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(mme,{control:m.jsx(ume,{checked:s,onChange:u=>l(u.target.checked)}),label:"Also drop the materialized tables this run produced"})]})]})}function yme({materializations:e,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a}){return e.length===0?m.jsx(It,{variant:"body2",color:"text.secondary",sx:{py:1,fontStyle:"italic"},children:"No materializations yet."}):m.jsxs(jg,{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(Ig,{children:m.jsxs(al,{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(Ng,{children:e.map(s=>m.jsx(vme,{materialization:s,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a},s.id))})]})}function vme({materialization:e,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a}){const[s,l]=C.useState(null),c=!!s,f=()=>l(null),u=RT(e),h=u.sourcesBuilt!==void 0||u.sourcesReused!==void 0?a5(u,", "):"-",y=Db(e.status),v=Vhe(e.status),S=e.error??void 0,x=t&&(y||v);return m.jsxs(al,{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(It,{variant:"body2",sx:{fontWeight:500,color:tC(e.status)==="default"?"text.primary":`${tC(e.status)}.main`},children:o5(e.status)}),S&&m.jsx(Xi,{title:S,children:m.jsx(vL,{fontSize:"small",color:"error"})})]})}),m.jsx(Xn,{children:m.jsx(s5,{meta:u})}),m.jsx(Xn,{children:qhe(e.startedAt??e.createdAt)}),m.jsx(Xn,{children:i5(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(Jr,{size:"small","aria-label":`Materialization actions for ${e.id??""}`.trim(),onClick:w=>l(w.currentTarget),children:m.jsx(S0,{fontSize:"small"})}),m.jsxs(yd,{anchorEl:s,open:c,onClose:f,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[t&&y&&m.jsxs(Ca,{"aria-label":`Stop materialization ${e.id??""}`.trim(),disabled:n,onClick:()=>{f(),r(e)},children:[m.jsx(Rp,{children:m.jsx(Khe,{fontSize:"small"})}),m.jsx(eu,{children:"Stop"})]}),t&&v&&m.jsx(gme,{materialization:e,isMutating:n,onCloseDialog:f,onDelete:w=>o(e,w)})]})]})})]})}const bme=lr(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"})),xme={package:"Materialized artifacts are shared across versions",version:"Materialized artifacts are per published version"};function Sme({scope:e,disabled:t,disabledReason:n,isSubmitting:r,onChange:o}){const[a,s]=C.useState(null),l=async c=>{s(null),c!==e&&await o(c).catch(()=>{})};return m.jsxs(m.Fragment,{children:[m.jsx(qg,{label:"Scope",icon:m.jsx(bme,{}),onClick:c=>s(c.currentTarget),disabled:t||r,...n?{disabledReason:n}:{},ariaHasPopup:"menu",ariaLabel:`Scope: ${e}`}),m.jsx(yd,{anchorEl:a,open:!!a,onClose:()=>s(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:["package","version"].map(c=>m.jsxs(Ca,{selected:c===e,onClick:()=>void l(c),children:[m.jsx(Rp,{sx:{minWidth:32},children:c===e&&m.jsx(qfe,{fontSize:"small"})}),m.jsx(eu,{primary:c,secondary:xme[c]})]},c))})]})}const wme=lr([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")]),SA="0 6 * * *";function Cme({currentSchedule:e,isSubmitting:t,disabled:n,disabledReason:r,onSubmit:o}){const[a,s]=C.useState(!1),[l,c]=C.useState(e??SA),f=()=>{c(e??SA),s(!0)},u=()=>s(!1),h=n5(l),y=async v=>{try{await o(v),s(!1)}catch{}};return m.jsxs(m.Fragment,{children:[m.jsx(qg,{label:"Schedule",icon:m.jsx(wme,{}),onClick:f,disabled:n,...r?{disabledReason:r}:{},ariaHasPopup:"dialog",ariaLabel:e?"Edit schedule":"Set schedule"}),m.jsxs(pa,{open:a,onClose:u,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(Jo,{color:"error",loading:t,onClick:()=>y(null),sx:{mr:"auto"},children:"Clear schedule"}),m.jsx(Jo,{onClick:u,children:"Cancel"}),m.jsx(Jo,{variant:"contained",loading:t,disabled:!h.valid,onClick:()=>y(l.trim()),children:"Save schedule"})]}),children:[m.jsx(Ia,{autoFocus:!0,fullWidth:!0,size:"small",label:"Cron expression",value:l,onChange:v=>c(v.target.value),error:l.trim()!==""&&!h.valid,helperText:h.valid?`${h.description} · next run ${r5(h.nextRun)}`:h.error,slotProps:{htmlInput:{style:{fontFamily:pi}}}}),m.jsxs(Lc,{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 kme=3e3;function Tme({resourceUri:e}){const{apiClients:t,mutable:n}=Br(),r=bd(),{environmentName:o,packageName:a}=ko(e),[s,l]=C.useState(""),[c,f]=C.useState(null);if(!a)throw new Error("Materializations requires a package in the resource URI");const u=ho({queryKey:["materializations",o,a],queryFn:()=>t.materializations.listMaterializations(o,a),refetchInterval:z=>(z.state.data?.data??[]).some(F=>Db(F.status))?kme:!1}),h=ho({queryKey:["package",o,a],queryFn:()=>t.packages.getPackage(o,a)}),y=()=>r.invalidateQueries({queryKey:["materializations",o,a]}),v=Js({mutationFn:Fl("materialization","create",z=>t.materializations.createMaterialization(o,a,{forceRefresh:z.forceRefresh})),onSuccess(){l("Materialization requested"),y()},onError(z){l(z.message),y()}}),S=Js({mutationFn:Fl("materialization","update",z=>t.materializations.materializationAction(o,a,z.id,tX.Stop)),onSuccess(){l("Materialization stopped"),y()},onError(z){l(z.message)}}),x=Js({mutationFn:Fl("materialization","delete",({materialization:z,dropTables:F})=>t.materializations.deleteMaterialization(o,a,z.id,F)),onSuccess(){l("Materialization deleted"),y()},onError(z){l(z.message)}}),w=h.data?.data,b=Js({mutationFn:Fl("schedule","update",z=>t.packages.updatePackage(o,a,{name:a,description:w?.description,...z?{scope:hv.Version}:{},materialization:{schedule:z}})),onSuccess(z,F){l(F?"Schedule updated":"Schedule cleared"),r.invalidateQueries({queryKey:["package",o,a]})},onError(z){l(z.message)}}),T=Js({mutationFn:Fl("scope","update",z=>t.packages.updatePackage(o,a,{name:a,description:w?.description,scope:z})),onSuccess(){l("Scope updated"),r.invalidateQueries({queryKey:["package",o,a]})},onError(z){l(z.message)}}),E=u.data?.data??[],M=E.find(z=>z.id===c)??null,$=E.some(z=>Db(z.status)),D=v.isPending||S.isPending||x.isPending,I=w?.materialization?.schedule??null,A=w?.scope===hv.Version?"version":"package",_=!!w?.manifestLocation,W=!!w?.materialization?.freshness,V=I?n5(I):null,k=_?"Control-plane managed: refresh is driven by the control plane, not the built-in scheduler.":[V?V.valid?`${V.description} (${I}), next run ${r5(V.nextRun)}`:`Unrecognized cron expression (${I})`:W?"Refreshed by a freshness policy; a cron schedule does not apply":"On demand only, no schedule set",`scope: ${A}`].join(" · ");return m.jsxs(m.Fragment,{children:[m.jsxs(ws,{title:"Materializations",count:u.isSuccess?E.length:void 0,action:n&&m.jsxs(fr,{direction:"row",spacing:1,alignItems:"center",children:[!_&&m.jsx(Sme,{scope:A,disabled:!!I,disabledReason:"A schedule requires version scope. Clear the schedule to change it.",isSubmitting:T.isPending,onChange:z=>T.mutateAsync(z==="version"?hv.Version:hv.Package)}),!_&&m.jsx(Cme,{currentSchedule:I,isSubmitting:b.isPending,disabled:W,disabledReason:"This package declares a freshness policy; a schedule and freshness are mutually exclusive.",onSubmit:z=>b.mutateAsync(z)}),m.jsx(Uhe,{onSubmit:z=>v.mutateAsync(z),isSubmitting:v.isPending,disabled:$,disabledReason:"A materialization is already pending or running for this package."})]}),children:[h.isSuccess&&m.jsx(It,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:k}),u.isError&&m.jsx(ka,{error:u.error,context:`${o} > ${a} > Materializations`}),!u.isSuccess&&!u.isError&&m.jsx(fa,{text:"Loading materializations..."}),u.isSuccess&&m.jsx(yme,{materializations:E,mutable:n,isMutating:D,onStop:z=>S.mutate(z),onDelete:(z,F)=>x.mutate({materialization:z,dropTables:F}),onViewDetails:z=>f(z.id??null)})]}),m.jsx(Ghe,{materialization:M,buildPlan:h.data?.data?.buildPlan??null,onClose:()=>f(null)}),m.jsx(f0,{open:s!=="",autoHideDuration:6e3,onClose:()=>l(""),message:s})]})}const l5=lr(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"})),Ab=lr(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"})),Eme=lr(m.jsx("path",{d:"M8 5v14l11-7z"})),P1={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"}]}}},Rme={...P1,patterns:[...P1.patterns,{include:"#docvar"}],repository:{...P1.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},Ome={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"}]}}},Mme="github-light",$me="github-dark";let D1;function Pme(){return D1||(D1=(async()=>{const[{createHighlighterCore:e},{createOnigurumaEngine:t},{default:n},{default:r},{default:o},{default:a},{default:s}]=await Promise.all([Bo(()=>import("./core-B8oMW4sm.es-hOkwvru5.js"),__vite__mapDeps([7,8])),Bo(()=>import("./engine-oniguruma-C4vnmooL.es-jdkXmgTr.js"),[]),Bo(()=>import("./sql-DCkt643-.es-COK4E0Yg.js"),[]),Bo(()=>import("./json-71t8ZF9g.es-BQoSv7ci.js"),[]),Bo(()=>import("./typescript-buWNZFwO.es-Dj6nwHGl.js"),[]),Bo(()=>import("./github-light-JYsPkUQd.es-DAi9KRSo.js"),[]),Bo(()=>import("./github-dark-DenFmJkN.es-DHJKELXO.js"),[])]);return e({engine:t(Bo(()=>import("./wasm-DQxwEHae.es-CG6Dc4jp.js"),[])),themes:[a,s],langs:[n,r,o,{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...Rme},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...Ome}]})})()),D1}async function rC(e,t,n="light"){return(await Pme()).codeToHtml(e,{lang:t,theme:n==="dark"?$me:Mme})}function c5({open:e,onClose:t,result:n,title:r="Results",renderLogs:o,drill:a}){return m.jsx(pa,{open:e,onClose:t,title:r,maxWidth:!1,showClose:!0,children:m.jsx(Ht,{sx:{height:"70vh",overflow:"auto"},children:m.jsx(Uk,{result:n,maxHeight:une,maxResultSize:1e6,renderLogs:o,drill:a})})})}function Dme({queryName:e,annotations:t,resourceUri:n,runOnDemand:r=!1,maxResultSize:o=0}){const[a,s]=un.useState(),[l,c]=un.useState(!1),[f,u]=un.useState(!1),{packageName:h,environmentName:y,versionId:v,modelPath:S}=ko(n),x=!r||f,w=Bk({environmentName:y,packageName:h,modelPath:S,versionId:v,queryName:e},{enabled:x}),b=w.data,{mode:T}=dl();return C.useEffect(()=>{if(t&&t.length>0){const E=t.map(M=>`// ${M}`).join(`
|
|
444
|
-
`);rC(E,"typescript",T).then(M=>{s(M)})}},[t,T]),m.jsxs(Ht,{children:[a&&m.jsx(Ht,{sx:{marginBottom:"16px"},children:m.jsx(It,{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(It,{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(Jf,{"aria-label":"Expand results",onClick:()=>c(!0),children:m.jsx(Ab,{})})]}),m.jsxs(Ff,{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(It,{variant:"body2",color:"text.secondary",children:"Click Run to execute the query"}),m.jsx(Jo,{variant:"contained",startIcon:m.jsx(Eme,{}),onClick:()=>u(!0),children:"Run Query"})]}),x&&m.jsx(Vk,{state:w,context:e,maxHeight:cne,maxResultSize:o})]}),m.jsx(c5,{open:l,onClose:()=>c(!1),result:b?.data?.result||"",renderLogs:b?.data?.renderLogs,title:`Query: ${e}`})]})}function $ye({onChange:e,resourceUri:t,runOnDemand:n=!1,maxResultSize:r=0,givens:o,onGivensChange:a}){const{modelPath:s}=ko(t),{data:l,isError:c,isLoading:f,error:u}=bT(t),[h,y]=un.useState(!1),[v,S]=un.useState(),[x,w]=un.useState(0),[b,T]=C.useState(""),[E,M]=un.useState({}),$=o??E,D=a??(k=>M(k)),I=l?.modelDef,A=un.useMemo(()=>{if(!I)return!1;try{const k=JSON.parse(I);return Array.isArray(k.imports)&&k.imports.length>0}catch{return!1}},[I]);if(f)return m.jsx(fa,{text:"Fetching Model..."});if(c)return console.log("error",u),m.jsx(ka,{error:u,context:`Model > ${s}`});const _=k=>{S(k),e&&e(k)},W=k=>{w(k)},V=()=>{const k=window.location.href;navigator.clipboard.writeText(k).then(()=>T("URL copied to clipboard!")).catch(()=>T("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(It,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"}),m.jsx(Xi,{title:"Click to copy link",children:m.jsx(l5,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer"},onClick:V})})]}),m.jsx(_z,{data:l,onChange:_,onSourceChange:W,existingQuery:v,initialSelectedSourceIndex:x,resourceUri:t,givens:$,onGivensChange:D}),m.jsx(Jf,{"aria-label":"Expand results",sx:{position:"absolute",top:"90px",right:"4px",zIndex:2},onClick:()=>y(!0),children:m.jsx(Ab,{})})]}),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(It,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),l.queries.map(k=>m.jsx(Dme,{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(It,{variant:"body1",sx:{color:"text.secondary",marginBottom:"8px"},children:"This model exposes no sources or queries."}),A&&m.jsxs(It,{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(xT,{open:h,onClose:()=>y(!1),resourceUri:t,data:l,title:`Model: ${s.split("/").pop()}`,existingQuery:v,initialSelectedSourceIndex:x,onChange:_,onSourceChange:W,givens:$,onGivensChange:D})]}),m.jsx(f0,{open:b!=="",autoHideDuration:6e3,onClose:()=>T(""),message:b})]})}function Ame({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 jme(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 Nme(e){return e.kind?e.kind==="query":e.type==="code"}const u5=e=>e.proseLines!==void 0;function OT({text:e,proseLines:t}){return(e??"").split(`
|
|
445
|
-
`).filter((n,r)=>!t?.some(([o,a])=>r>=o&&r<=a))}function Ime(e){if(u5(e)||e.caption!==void 0)return e.caption;const t=[];for(const n of OT(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 Lme(e){return u5(e)?OT(e).join(`
|
|
446
|
-
`):e.text.split(`
|
|
447
|
-
`).filter(t=>!t.trimStart().startsWith("##")).join(`
|
|
448
|
-
`)}function zme(e){const t=e.codeLine!==void 0?(e.text.split(`
|
|
449
|
-
`)[e.codeLine]??"").trim():OT(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 Fme=lr(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),_me=lr(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Bme=lr(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"})),Ume=lr(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 Vme(e){const{environmentName:t,packageName:n}=ko(e.resourceUri);if(!t||!n)throw new Error("Environment and Package name must be provided for query embedding.");return JSON.stringify({...e})}function Hme({cell:e,hideCodeCellIcon:t,hideEmbeddingIcon:n,resourceUri:r,showCopyLink:o,maxResultSize:a,isExecuting:s,pendingRerun:l,onNavigate:c,onDrillSelf:f,canDrillSelf:u,onDrillNavigate:h,givens:y,givenSpecs:v}){const[S,x]=un.useState(!1),[w,b]=un.useState(!1),[T,E]=un.useState(!1),[M,$]=un.useState(),[D,I]=un.useState(),[A,_]=un.useState(!1),[W,V]=C.useState(!1),k=C.useId(),[z,F]=C.useState(""),{environmentName:H,packageName:N,modelPath:X}=ko(r),Q={environmentName:H,packageName:N,sourcePath:X,onNavigate:c},{drill:te,drillMenu:Z}=yL({onNavigate:h,onSelf:f,canSelf:u,selfLabel:"Filter this notebook"}),K=/import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/,ne=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/,le=!!e.text&&(K.test(e.text)||ne.test(e.text)),fe=()=>{if(!e.newSources||e.newSources.length===0)return 0;let ke=[],ce="";if(e.text){const we=e.text.match(K);we&&(ke=we[1].split(",").map(Be=>Be.trim()));const Ge=e.text.match(ne);Ge&&(ce=Ge[1].trim())}for(let we=0;we<e.newSources.length;we++)try{const Ge=JSON.parse(e.newSources[we]);if(ke.length>0&&ke.includes(Ge.name)||ce&&ce===Ge.path)return we}catch{continue}return 0},ae=un.useMemo(()=>e.newSources&&e.newSources.length>0?{sourceInfos:e.newSources,resource:r,givens:v}:void 0,[e.newSources,r,v]),se=Vme({query:e.text,resourceUri:r}),{mode:ie}=dl();C.useEffect(()=>{e.type==="code"&&rC(Lme(e),"malloy",ie).then(ke=>{$(ke)})},[e,ie]),C.useEffect(()=>{rC(se,"typescript",ie).then(ke=>{I(ke)})},[se,ie]);const pe=e.kind==="query"?Ime(e):void 0,me=e.markdown?m.jsx(Vm,{variant:"document",links:Q,children:e.markdown}):null,Te=()=>{const ke=window.location.href;navigator.clipboard.writeText(ke).then(()=>F("URL copied to clipboard!")).catch(()=>F("Failed to copy URL"))},Ce=m.jsxs(up,{open:S,onClose:()=>x(!1),maxWidth:"lg",fullWidth:!0,children:[m.jsxs(fp,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",m.jsx(Jr,{onClick:()=>x(!1),sx:{color:"text.secondary"},children:m.jsx(mp,{})})]}),m.jsx(dp,{children:m.jsx(Ht,{sx:ke=>({border:`1px solid ${ke.palette.divider}`,borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:ke.palette.background.paper,color:ke.palette.text.primary}),children:m.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:M}})})})]});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(Vm,{variant:"document",links:Q,children:e.text}),m.jsx(Xi,{title:"Click to copy link",children:m.jsx(l5,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer",marginTop:"26px"},onClick:Te})})]}):m.jsx(Vm,{variant:"document",links:Q,children:e.text}),m.jsx(f0,{open:z!=="",autoHideDuration:6e3,onClose:()=>F(""),message:z})]})})||e.kind==="definition"&&m.jsxs(Ht,{children:[me,m.jsxs(Ht,{component:"button",type:"button","aria-expanded":W,"aria-controls":k,onClick:()=>V(ke=>!ke),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(_me,{fontSize:"small"}):m.jsx(Fme,{fontSize:"small"}),zme(e)]}),W&&m.jsx(Ff,{id:k,sx:{mt:1,padding:"12px 24px"},children:m.jsx("pre",{className:"code-display",style:{margin:0,overflow:"auto"},dangerouslySetInnerHTML:{__html:M??""}})})]})||e.type==="code"&&m.jsxs(Ht,{children:[me,pe&&m.jsx(It,{variant:"body2",sx:{color:"text.secondary",mb:1},children:pe}),(!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(Ff,{sx:{position:"relative",padding:"0"},children:m.jsxs(Ht,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[M&&m.jsx("span",{dangerouslySetInnerHTML:{__html:M},style:{fontFamily:"monospace",fontSize:"14px",flex:1,marginRight:"8px"}}),le&&m.jsx(Jf,{"aria-label":"Data sources",sx:{flexShrink:0},onClick:()=>_(!0),children:m.jsx(Ab,{})})]})})}),m.jsx(xT,{open:A,onClose:()=>_(!1),title:"Data Sources",hasValidImport:le,resourceUri:r,data:ae,initialSelectedSourceIndex:fe(),startingGivens:y}),Ce,m.jsxs(up,{open:w,onClose:()=>b(!1),maxWidth:"lg",fullWidth:!0,children:[m.jsxs(fp,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",m.jsx(Jr,{onClick:()=>b(!1),sx:{color:"text.secondary"},children:m.jsx(mp,{})})]}),m.jsx(dp,{children:m.jsxs(fr,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[m.jsx(It,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:D}}),m.jsx(Xi,{title:"Copy Embeddable Code",children:m.jsx(Jr,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"text.secondary"},onClick:()=>{navigator.clipboard.writeText(se)},children:m.jsx(Ume,{})})})]})})]}),m.jsx(c5,{open:T,onClose:()=>E(!1),result:e.result||"",title:"Results",drill:te}),s&&!e.result&&!e.error&&!le&&!(e.newSources&&e.newSources.length>0)&&m.jsx(Ff,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:m.jsx(Pg,{size:32})}),!e.result&&e.error&&m.jsxs(Ff,{sx:{p:2},children:[m.jsx(It,{variant:"body2",sx:{color:"error.main"},children:"This cell could not be run."}),m.jsx(It,{variant:"body2",component:"pre",sx:{color:"text.secondary",whiteSpace:"pre-wrap",m:0,mt:1},children:e.error})]}),e.result&&l&&m.jsx(Dq,{"aria-label":"a re-run is pending",sx:{mb:1,height:2,borderRadius:1}}),e.result&&m.jsxs(Ff,{sx:{position:"relative"},children:[m.jsx(Ht,{sx:{paddingTop:"24px"},children:m.jsx(Uk,{result:e.result,maxHeight:lne,maxResultSize:a,drill:te})}),Z,m.jsxs(fr,{sx:{position:"absolute",top:"-12px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!t&&m.jsx(Jf,{"aria-label":"Malloy code",onClick:ke=>{ke.stopPropagation(),x(!0)},children:m.jsx(Bme,{})}),m.jsx(Jf,{"aria-label":"Expand results",onClick:()=>E(!0),children:m.jsx(Ab,{})})]})]})]})}const Wme=4,qme=400;function Yme(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 Gme({resourceUri:e,maxResultSize:t=0,givens:n,onGivensChange:r,onNavigate:o,onDrillNavigate:a}){const{apiClients:s}=Br(),{environmentName:l,packageName:c,versionId:f,modelPath:u}=ko(e),{data:h,isSuccess:y,isError:v,error:S}=ho({queryKey:[e],queryFn:async()=>(await s.notebooks.getNotebook(l,c,u,f)).data}),[x,w]=C.useState([]),[b,T]=C.useState(!1),[E,M]=C.useState(!1),$=C.useRef(void 0),[D,I]=C.useState(null),A=jme(h),_=h?.autorun!==!1,W=Dk({specs:A,loaded:y,startingValues:h?.startingGivens,params:n,onGivensChange:r,documentKey:e,autorun:_,environmentName:l,packageName:c,modelPath:u,versionId:f,documentName:u}),{applied:V,declaredTypes:k,canSelf:z,onSelf:F}=W,H=C.useCallback(ie=>{const pe=Bg(ie,k);return Object.keys(pe).length>0?JSON.stringify(pe):void 0},[k]),N=C.useMemo(()=>Pk(V,k),[V,k]),X=C.useRef(0),Q=C.useRef(null),te=C.useRef(null),Z=C.useRef(void 0);C.useEffect(()=>()=>{Q.current?.abort(),te.current=null,clearTimeout(Z.current?.timer),Z.current=void 0},[]);const K=C.useCallback(async(ie=new Map)=>{if(!y||!h?.notebookCells)return;const pe=++X.current;Q.current?.abort();const me=new AbortController;Q.current=me,w(h.notebookCells.map(Ce=>({...Ce}))),T(!0),I(null);const Te=H(ie);try{const Ce=[];for(let ce=0;ce<h.notebookCells.length;ce++){const we=h.notebookCells[ce];if(!Nme(we))continue;const Ge=ce,Be=async()=>{try{const Ae=await s.notebooks.executeNotebookCell(l,c,u,Ge,f,void 0,void 0,Te,{signal:me.signal});if(X.current!==pe)return;const oe=Ae.data,lt=oe.result,Ne=we.newSources||oe.newSources;w(et=>{const mt=[...et];return mt[Ge]||(mt[Ge]={...we}),mt[Ge]={...mt[Ge],result:lt,newSources:Ne},mt})}catch(Ae){if(me.signal.aborted||X.current!==pe)return;console.error(`Error executing cell ${Ge}:`,Ae);const oe=Yme(Ae);w(lt=>{const Ne=[...lt];return Ne[Ge]||(Ne[Ge]={...we}),Ne[Ge]={...Ne[Ge],error:oe},Ne})}};Ce.push(Be)}const ke=[];for(const ce of Ce){const we=ce().then(()=>{ke.splice(ke.indexOf(we),1)});ke.push(we),ke.length>=Wme&&await Promise.race(ke)}await Promise.all(ke)}catch(Ce){if(me.signal.aborted||X.current!==pe)return;console.error("Error executing notebook cells:",Ce),I(Ce)}finally{X.current===pe&&(T(!1),Q.current=null)}},[y,h,H,l,c,u,f,s.notebooks]),ne=C.useRef(0),le=C.useRef(void 0);le.current!==h&&(le.current=h,ne.current+=1);const fe=ne.current;C.useEffect(()=>{const ie=`${e}|${fe}`,pe=`${ie}|${H(V)??""}`;$.current!==void 0&&$.current!==ie&&(Q.current?.abort(),Q.current=null),$.current=ie;const me=Ame({ready:y&&!!h?.notebookCells,lastRunKey:te.current,pendingKey:Z.current?.key,runKey:pe,documentKey:ie});if(me.cancelPending&&(clearTimeout(Z.current?.timer),Z.current=void 0,M(!1)),me.dispatch==="none")return;const Te=()=>{Z.current=void 0,M(!1),te.current=pe,K(V)};if(me.dispatch==="now"){Te();return}M(!0),Z.current={key:pe,timer:setTimeout(Te,qme)}},[y,h,fe,e,V,H,K]);const ae=x.length>0?x:h?.notebookCells||[],se=h?.format==="malloy"?ae.findIndex(ie=>ie.type==="markdown"):0;return m.jsx(mX,{children:m.jsx(gX,{children:m.jsxs(fr,{spacing:3,component:"section",children:[m.jsx(vT,{...W.panel}),!y&&!v&&m.jsx(fa,{text:"Fetching Notebook..."}),y&&ae.map((ie,pe)=>m.jsx(Hme,{cell:ie,showCopyLink:pe===se,resourceUri:e,maxResultSize:t,isExecuting:b,givens:N,givenSpecs:A,pendingRerun:E,onNavigate:o,onDrillNavigate:a,onDrillSelf:A.length>0?F:void 0,canDrillSelf:z},pe)),v&&S.status===404&&m.jsxs(It,{variant:"body2",sx:{color:"text.secondary"},children:[m.jsx("code",{children:`${l} > ${c} > ${u}`})," ","not found."]}),v&&S.status!==404&&m.jsx(ka,{error:S,context:`${l} > ${c} > ${u}`}),D&&m.jsx(ka,{error:{message:D.message,status:500,name:"ExecutionError"},context:"Notebook Execution"})]})})})}const Kme=lr(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 Qme(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)}function Xme({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(`
|
|
450
|
-
`)}function Zme({open:e,environmentName:t,packageName:n,models:r,existing:o,onClose:a,onCreated:s}){const{apiClients:l}=Br(),[c,f]=C.useState(""),[u,h]=C.useState(""),[y,v]=C.useState(""),[S,x]=C.useState(!1),[w,b]=C.useState(!1),[T,E]=C.useState(void 0),M=ho({queryKey:["new-dashboard-models",t,n,r],queryFn:async()=>await Promise.all(r.map(async k=>{try{const z=await l.models.getModel(t,n,k);return{path:k,sources:z.data.sources??[]}}catch{return{path:k,sources:[]}}})),enabled:e&&r.length>0}),$=C.useMemo(()=>{const k=new Map;for(const z of M.data??[]){const F=[];for(const H of z.sources)if(typeof H.name=="string")for(const N of H.views??[])typeof N.name=="string"&&F.push({source:H.name,view:N.name});F.length>0&&k.set(z.path,F)}return k},[M.data]),D=C.useMemo(()=>$.get(c)??[],[$,c]),I=D.find(k=>`${k.source}::${k.view}`===u);C.useEffect(()=>{if(!e)return;const k=[...$.keys()];c===""&&k.length>0&&f(k[0])},[e,$,c]),C.useEffect(()=>{!e||D.length===0||I===void 0&&h(`${D[0].source}::${D[0].view}`)},[e,D,I]),C.useEffect(()=>{!e||S||I===void 0||v(I.view.replace(/_/g," "))},[e,S,I]),C.useEffect(()=>{e||(f(""),h(""),v(""),x(!1),E(void 0))},[e]);const A=Qme(y),_=o.includes(A),W=I!==void 0&&A!==""&&!_,V=async()=>{if(!(!W||I===void 0)){b(!0),E(void 0);try{await l.models.updateModelSource(t,n,`dashboards/${A}.malloy`,{source:Xme({title:y,modelPath:c,source:I.source,view:I.view})}),s(A)}catch(k){const z=k.response?.data?.message;E(z??(k instanceof Error?k.message:String(k)))}finally{b(!1)}}};return m.jsx(pa,{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(Jo,{onClick:a,disabled:w,children:"Cancel"}),m.jsx(Jo,{variant:"contained",disabled:!W||w,onClick:()=>void V(),children:"Create dashboard"})]}),children:m.jsxs(fr,{sx:{gap:2,pt:1},children:[M.isSuccess&&$.size===0&&m.jsx(Lc,{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(Ia,{select:!0,size:"small",label:"Model",value:c,disabled:$.size===0,onChange:k=>{f(k.target.value),h("")},inputProps:{"aria-label":"Model"},helperText:M.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(Ca,{value:k,children:k},k))}),m.jsx(Ia,{select:!0,size:"small",label:"First tile",value:I?u:"",disabled:D.length===0,onChange:k=>h(k.target.value),inputProps:{"aria-label":"First tile"},helperText:D.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:D.map(k=>m.jsxs(Ca,{value:`${k.source}::${k.view}`,children:[k.source," → ",k.view]},`${k.source}::${k.view}`))}),m.jsx(Ia,{size:"small",label:"Title",value:y,onChange:k=>{x(!0),v(k.target.value)},inputProps:{"aria-label":"Dashboard title"},error:_,helperText:_?`dashboards/${A}.malloy already exists in this package.`:A?`Written as dashboards/${A}.malloy, and opened in the builder.`:"Names the file too."}),T&&m.jsx(Lc,{severity:"error",children:T})]})})}const Jme={dashboard:Wr.blue,report:Wr.violet,model:Wr.cyan,dataApp:Wr.pink,data:Wr.lime,materialization:Wr.amber};function ege({type:e,size:t=18,sx:n,...r}){return m.jsx(Sb,{...r,viewBox:"0 0 24 24",sx:{width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",...n},children:tge[e]()})}const tge={report:nge,model:rge,data:oge,materialization:age,dataApp:sge,dashboard:ige};function nge(){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 rge(){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 oge(){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 age(){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 ige(){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 sge(){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 lge="README.malloynb",cge=e=>e?.toLowerCase()==="notebooks/readme.malloy",uge=e=>/^notebooks\/([^/]+)\.malloy$/.exec(e??"")?.[1];function Pye({onClickPackageFile:e,resourceUri:t}){const{apiClients:n,server:r,mutable:o}=Br(),a=bd(),s=e??(K=>{window.location.href=K}),{environmentName:l,packageName:c,versionId:f}=ko(t),[u,h]=C.useState(null),[y,v]=C.useState(!1),S=epe()?.documentStorage,[x,w]=C.useState([]),b=`${l}/${c}/dashboards/`,T=C.useCallback(async()=>{if(!S)return;const K=await S.listWorkspaces(!0),ne=[];for(const le of K)for(const fe of await S.listDocuments(le,"dashboard"))fe.path.startsWith(b)&&ne.push({locator:fe,where:le.description});w(ne)},[S,b]);C.useEffect(()=>{T()},[T]);const E=K=>K.path.slice(b.length).replace(/\.malloy$/,""),M=ho({queryKey:["package",l,c,f],queryFn:()=>n.packages.getPackage(l,c,f,!1)}),$=ho({queryKey:["notebooks",l,c,f],queryFn:()=>n.notebooks.listNotebooks(l,c,f)}),D=ho({queryKey:["models",l,c,f],queryFn:()=>n.models.listModels(l,c,f)}),I=ho({queryKey:["databases",l,c,f],queryFn:()=>n.databases.listDatabases(l,c,f)}),A=ho({queryKey:["data-apps",l,c],queryFn:async()=>{try{return await n.dataApps.listDataApps(l,c)}catch(K){const ne=K?.response?.status;if(ne===404||ne===void 0)return{data:[]};throw K}}}).data?.data??[],_=ho({queryKey:["dashboards",l,c,f],queryFn:async()=>{try{return await n.dashboards.listDashboards(l,c,f)}catch(K){const ne=K?.response?.status;if(ne===404||ne===void 0)return{data:[]};throw K}}}),W=K=>K.title&&K.title!==K.name?K.title:K.name??"",V=K=>K.title&&K.title!==K.path?K.title:K.path??"",k=(_.data?.data??[]).slice().sort((K,ne)=>W(K).localeCompare(W(ne))),z=($.data?.data??[]).slice().sort((K,ne)=>V(K).localeCompare(V(ne))),F=new Set(k.map(K=>K.path).filter(K=>K!==void 0)),H=(D.data?.data??[]).slice().filter(K=>!F.has(K.path)).sort((K,ne)=>K.path.localeCompare(ne.path)),N=(I.data?.data??[]).slice().sort((K,ne)=>K.path.localeCompare(ne.path)),X=M.data?.data?.description??"",Q=(z.find(K=>K.path===lge)??z.find(K=>cge(K.path)))?.path,te=j0({environmentName:l,packageName:c,versionId:f,modelPath:Q}),Z=!$.isSuccess&&!$.isError||!_.isSuccess&&!_.isError;return M.isError?m.jsx(ka,{error:M.error,context:`${l} > ${c}`}):m.jsxs(tk,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:3,py:6},children:[m.jsxs(Ht,{sx:{mb:4},children:[m.jsx(Wz,{label:l,onClick:K=>s(`/${l}/`,K)}),m.jsx(It,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:c}),X&&m.jsx(It,{variant:"body2",color:"text.secondary",children:X})]}),Z&&m.jsx(fa,{text:"Loading package..."}),m.jsx(Zme,{open:y,environmentName:l,packageName:c,models:H.map(K=>K.path).filter(K=>typeof K=="string"&&K.endsWith(".malloy")&&!K.startsWith("dashboards/")),existing:k.map(K=>K.name).filter(K=>typeof K=="string"),onClose:()=>v(!1),onCreated:K=>{v(!1),a.invalidateQueries({queryKey:["dashboards"]}),s(`/${l}/${c}/dashboards/${encodeURIComponent(K)}/edit`)}}),!Z&&m.jsxs(m.Fragment,{children:[_.isError&&m.jsx(Ht,{sx:{mb:4},children:m.jsx(Lc,{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(ws,{title:"Dashboards",count:k.length,action:o?m.jsx(Wg,{label:"Dashboard",onClick:()=>v(!0)}):void 0,children:[k.length===0&&m.jsx(A1,{label:"No dashboards yet"}),k.map(K=>{const ne=!!K.title&&K.title!==K.name;return m.jsx(Af,{type:"dashboard",label:ne?K.title:K.name,rightLabel:ne?K.name:void 0,onClick:le=>s(`/${l}/${c}/dashboards/`+encodeURIComponent(K.name??""),le)},K.name)})]}),x.length>0&&m.jsx(ws,{title:"Drafts",count:x.length,children:x.map(({locator:K,where:ne})=>m.jsx(Af,{type:"dashboard",label:E(K),rightLabel:ne,onClick:le=>s(`/${l}/${c}/dashboards/${encodeURIComponent(E(K))}/edit`,le),trailingAction:m.jsx(Xi,{title:"Delete this draft",children:m.jsx(Jr,{size:"small","aria-label":`Delete draft ${E(K)}`,onClick:le=>{le.stopPropagation(),S?.deleteDocument(K).then(T)},children:m.jsx(Kme,{fontSize:"small"})})})},K.path))}),z.length>0&&m.jsx(ws,{title:"Notebooks",count:z.length,children:z.map(K=>{const ne=!!K.title&&K.title!==K.path,le=uge(K.path);return m.jsx(Af,{type:"report",label:ne?K.title:K.path,rightLabel:ne?K.path:void 0,onClick:fe=>s(le===void 0?`/${l}/${c}/${K.path}`:`/${l}/${c}/notebooks/${encodeURIComponent(le)}`,fe)},K.path)})}),A.length>0&&m.jsx(ws,{title:"Data Apps",count:A.length,children:A.map(K=>{const ne=!!K.title&&K.title!==K.path,le=`${Yz(r)}${K.resource}`;return m.jsx(Af,{type:"dataApp",label:ne?K.title:K.path,rightLabel:ne?K.path:void 0,onClick:fe=>{e?e(`/${l}/${c}/data-apps/${K.path}`,fe):fe&&(fe.metaKey||fe.ctrlKey)?window.open(le,"_blank"):window.location.href=le},trailingAction:m.jsx(Xi,{title:"Open standalone in new tab",children:m.jsx(Jr,{size:"small",href:le,target:"_blank",rel:"noopener noreferrer","aria-label":"Open standalone in new tab",onClick:fe=>fe.stopPropagation(),sx:{color:"text.secondary"},children:m.jsx(qz,{fontSize:"small"})})})},K.path)})}),m.jsxs(ws,{title:"Semantic Models",count:H.length,children:[H.map(K=>m.jsx(Af,{type:"model",label:K.path,onClick:ne=>s(`/${l}/${c}/${K.path}`,ne)},K.path)),H.length===0&&m.jsx(A1,{label:"No models"})]}),m.jsxs(ws,{title:"Package Data",count:N.length,children:[N.map(K=>m.jsx(Af,{type:"data",label:K.path,rightLabel:K.info?dge(K.info.rowCount):"Unreadable",onClick:()=>h(K)},K.path)),N.length===0&&m.jsx(A1,{label:"No data files"})]}),m.jsx(Tme,{resourceUri:t}),Q&&m.jsx(Ht,{sx:{mt:6},children:m.jsx(Gme,{resourceUri:te,onNavigate:s})})]}),m.jsxs(pa,{open:u!==null,onClose:()=>h(null),title:u?.path??"Columns",showClose:!0,children:[u?.error&&m.jsx(It,{variant:"body2",color:"error",children:u.error}),u?.info?.columns&&m.jsxs(jg,{size:"small",children:[m.jsx(Ig,{children:m.jsxs(al,{children:[m.jsx(Xn,{children:"Column"}),m.jsx(Xn,{children:"Type"})]})}),m.jsx(Ng,{children:u.info.columns.map(K=>m.jsxs(al,{children:[m.jsx(Xn,{component:"th",scope:"row",children:K.name}),m.jsx(Xn,{children:K.type})]},K.name))})]})]})]})}function Af({type:e,label:t,rightLabel:n,onClick:r,trailingAction:o}){return m.jsx(Y0,{icon:m.jsx(ege,{type:e}),tint:Jme[e],label:t,mono:!0,...n===void 0?{}:{rightLabel:n},...r===void 0?{}:{onClick:r},...o===void 0?{}:{trailingAction:o}})}function A1({label:e}){return m.jsx(It,{variant:"body2",color:"text.secondary",sx:{py:1,fontStyle:"italic"},children:e})}function dge(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 oC={name:"Local",description:"Stored in this browser only",writeable:!0},aC="publisher:document:";class fge{async listWorkspaces(t){return[oC]}async listDocuments(t,n){if(t.name!==oC.name)return[];const r=[];for(let o=0;o<localStorage.length;o++){const a=localStorage.key(o),s=a===null?void 0:pge(a);s&&(n===void 0||s.type===n)&&r.push(s)}return r}async getDocument(t){const n=localStorage.getItem(wm(t));if(n===null)throw wA(t);return n}async saveDocument(t,n){localStorage.setItem(wm(t),n)}async deleteDocument(t){const n=wm(t);if(localStorage.getItem(n)===null)throw wA(t);localStorage.removeItem(n)}async moveDocument(t,n){const r=await this.getDocument(t);localStorage.setItem(wm(n),r),localStorage.removeItem(wm(t))}}function wm(e){return`${aC}${e.type}:${e.path}`}function pge(e){if(!e.startsWith(aC))return;const t=e.slice(aC.length),n=t.indexOf(":");if(n<=0)return;const r=t.slice(0,n);if(!(r!=="dashboard"&&r!=="notebook"))return{workspace:oC.name,type:r,path:t.slice(n+1)}}function wA(e){return new Uz(`No ${e.type} at ${e.workspace}/${e.path}`)}const CA="[publisher.dashboard]",kA="[publisher.console]";function Dye(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(CA,r):console.info(CA,r)}}function hge(e){const t={...e,at:new Date().toISOString()};e.ok?console.info(kA,t):console.warn(kA,t)}const Oo={white:"#FFFFFF",offWhite:"#F8FAFC",grey:{light:"#E2E8F0",mid:"#64748B"},black:"#0F172A",semantic:{success:{main:Wr.emerald,light:"#D1FAE5",dark:"#047857"},warning:{main:Wr.amber,light:"#FEF3C7",dark:"#92400E"},error:{main:Wr.red,light:"#FEE2E2",dark:"#B91C1C"},info:{main:Wr.blue,light:"#DBEAFE",dark:"#1D4ED8"}}},Aye='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',$v='"Inter", "Helvetica Neue", "Arial", sans-serif',Qo={50:Oo.offWhite,100:"#F1F5F9",200:Oo.grey.light,300:"#CBD5E1",400:"#94A3B8",500:Oo.grey.mid,600:"#475569",700:"#334155",800:"#1E293B",900:Oo.black},jye={headerHeight:56},j1="0 1px 3px rgba(0, 0, 0, 0.1)",mge="#0f172a",gge="#1e293b",yge="#f1f5f9",vge="#cbd5e1",bge="#334155",d5=(e="light")=>{const t=e==="dark",n=t?mge:Oo.white,r=t?gge:Oo.white,o=t?yge:Oo.black,a=t?vge:Oo.grey.mid,s=t?bge:Oo.grey.light,l=t?"#60a5fa":Wr.blue,c=t?"#93c5fd":"#1d4ed8",f=t?"#0f172a":"#ffffff";return n0({cssVariables:{nativeColor:!0},palette:{mode:e,primary:{main:l,light:Oo.grey.light,dark:c,contrastText:f},secondary:{main:Oo.grey.mid,light:Oo.grey.light,dark:Oo.black},grey:Qo,success:Oo.semantic.success,warning:Oo.semantic.warning,error:Oo.semantic.error,info:Oo.semantic.info,background:{default:n,paper:r},text:{primary:o,secondary:a},divider:s},typography:{fontFamily:$v,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":`${Qo[300]} ${Qo[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:t?"#1e293b":Qo[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:t?"#475569":Qo[300],borderRadius:"4px","&:hover":{background:t?"#64748b":Qo[400]}},"&::-webkit-scrollbar-corner":{background:t?"#1e293b":Qo[100]}},"div[data-radix-popper-content-wrapper]":{zIndex:"1300 !important"}}},MuiButton:{styleOverrides:{root:{borderRadius:20,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:j1}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},"&.Mui-disabled":{backgroundColor:t?"rgba(255, 255, 255, 0.06)":Qo[200],color:t?"#64748b":Qo[500]}},outlined:{color:o,borderColor:t?"#475569":Qo[300],"&:hover":{borderColor:t?"#64748b":Qo[400],backgroundColor:t?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.04)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:j1,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:$v,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?Qo[600]:Qo[300]}`,borderRadius:8,transition:"border-color 120ms ease-in",backgroundColor:r,"&:hover":{borderColor:t?"#64748b":Qo[400]},"&.Mui-focused":{borderColor:t?Qo[400]:Qo[500],outline:"none"}}}},MuiMenuItem:{styleOverrides:{root:{fontFamily:$v,fontSize:"0.875rem"}}},MuiInputBase:{styleOverrides:{root:{fontFamily:$v}}},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:Qo[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)":Oo.offWhite},"&.Mui-selected":{backgroundColor:t?"rgba(255, 255, 255, 0.12)":Oo.offWhite,color:o,"& .MuiListItemIcon-root":{color:o},"& .MuiListItemText-primary":{color:o},"&:hover":{backgroundColor:t?"rgba(255, 255, 255, 0.16)":Oo.grey.light}}}}},MuiAppBar:{styleOverrides:{root:{backgroundColor:r,color:o,boxShadow:j1}}}}})};d5("light");function xge({children:e}){const{mode:t}=dl(),n=C.useMemo(()=>d5(t),[t]);return m.jsxs(rV,{theme:n,children:[m.jsx(n9,{}),e]})}const Sge=C.lazy(()=>Bo(()=>import("./HomePage-D3MvQaZn.js"),[])),wge=C.lazy(()=>Bo(()=>import("./MainPage-B0ozqtQO.js"),__vite__mapDeps([9,10]))),Cge=C.lazy(()=>Bo(()=>import("./ModelPage-lQj4Axqu.js"),[])),kge=C.lazy(()=>Bo(()=>import("./PackagePage-BT0YKNKU.js"),[])),Tge=C.lazy(()=>Bo(()=>import("./EnvironmentPage-UMS7Py4Q.js"),[])),Ege=C.lazy(()=>Bo(()=>import("./RouteError-BQnzPJvb.js"),[])),Rge=C.lazy(()=>Bo(()=>import("./ThemeEditorPage-D6t7w9Js.js"),__vite__mapDeps([11,10,12]))),Oge=(e="/",t=new fge,n)=>(zpe(hge),Q3([{path:e,element:m.jsx(OX,{children:m.jsx(Jfe,{documentStorage:t,children:m.jsx(xge,{children:m.jsx(C.Suspense,{fallback:m.jsx(fa,{}),children:m.jsx(wge,{headerProps:n})})})})}),errorElement:m.jsx(Ege,{}),children:[{index:!0,element:m.jsx(Sge,{})},{path:"settings/theme",element:m.jsx(Rge,{})},{path:"settings",element:m.jsx(k3,{to:"/settings/theme",replace:!0})},{path:":environmentName",element:m.jsx(Tge,{})},{path:":environmentName/:packageName",element:m.jsx(kge,{})},{path:":environmentName/:packageName/*",element:m.jsx(Cge,{})}]}])),Mge=Oge("/");NF.createRoot(document.getElementById("root")).render(m.jsx(C.StrictMode,{children:m.jsx(c_,{router:Mge})}));export{Pc as $,Dn as A,rd as B,nt as C,SN as D,Ta as E,el as F,dl as G,Xi as H,Jr as I,kg as J,ns as K,Pge as L,Mye as M,Ht as N,hN as O,Ha as P,ik as Q,rp as R,K1 as S,It as T,Br as U,XN as V,kN as W,Rp as X,eu as Y,jye as Z,Dge as _,Va as a,kne as a$,fa as a0,Oye as a1,Dye as a2,Wz as a3,hye as a4,qg as a5,kye as a6,j0 as a7,Bo as a8,fr as a9,bL as aA,mye as aB,bye as aC,gye as aD,vye as aE,ine as aF,yye as aG,Ic as aH,_b as aI,wi as aJ,LX as aK,TA as aL,tpe as aM,_D as aN,vpe as aO,ope as aP,ko as aQ,epe as aR,ho as aS,xye as aT,ka as aU,qfe as aV,fpe as aW,npe as aX,_k as aY,qc as aZ,Cne as a_,un as aa,Gme as ab,Eye as ac,$ye as ad,wpe as ae,Aye as af,zq as ag,Pye as ah,Rye as ai,p3 as aj,tk as ak,HM as al,Ia as am,n7 as an,DI as ao,b$ as ap,Ca as aq,bd as ar,OG as as,Lc as at,T8 as au,M8 as av,f0 as aw,pa as ax,Jo as ay,xX as az,dn as b,K8 as b0,rk as b1,DN as b2,Dk as b3,RP as b4,sne as b5,EP as b6,vT as b7,Sye as b8,ST as b9,Vz as ba,FD as bb,wye as bc,lpe as bd,upe as be,Cye as bf,lr as bg,s8 as bh,ape as bi,rg as bj,Lr as bk,$ge as bl,Wa as c,pn as d,W1 as e,Tye as f,wU as g,hn as h,qs as i,m as j,Nt as k,fn as l,rn as m,Xc as n,cl as o,yo as p,gd as q,C as r,at as s,Vl as t,PC as u,Gj as v,Jj as w,sb as x,$g as y,Kj as z};
|