react-schema-form 1.0.16 → 1.0.18

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.
@@ -1,27 +1,29 @@
1
- (function(Mt,ke){typeof exports=="object"&&typeof module<"u"?ke(exports,require("react"),require("@emotion/styled"),require("@emotion/react"),require("react-dom"),require("@uiw/react-markdown-editor"),require("@mui/material")):typeof define=="function"&&define.amd?define(["exports","react","@emotion/styled","@emotion/react","react-dom","@uiw/react-markdown-editor","@mui/material"],ke):(Mt=typeof globalThis<"u"?globalThis:Mt||self,ke(Mt["react-schema-form"]={},Mt.React,Mt.EmotionStyled,Mt.EmotionReact,Mt["React-dom"],Mt.UiwReactMarkdownEditor,Mt.MuiMaterial))})(this,(function(Mt,ke,Yv,Or,Nn,Jv,Jr){"use strict";function Xu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const j=Xu(ke),Xv=Xu(Nn);var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var To={exports:{}},An={};var Zu;function Zv(){if(Zu)return An;Zu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,a){var l=null;if(a!==void 0&&(l=""+a),i.key!==void 0&&(l=""+i.key),"key"in i){a={};for(var s in i)s!=="key"&&(a[s]=i[s])}else a=i;return i=a.ref,{$$typeof:e,type:n,key:l,ref:i!==void 0?i:null,props:a}}return An.Fragment=t,An.jsx=r,An.jsxs=r,An}var Mn={};var Qu;function Qv(){return Qu||(Qu=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===R?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case b:return"Fragment";case p:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case x:return"SuspenseList";case M:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case f:return"Portal";case S:return C.displayName||"Context";case _:return(C._context.displayName||"Context")+".Consumer";case w:var V=C.render;return C=C.displayName,C||(C=V.displayName||V.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case P:return V=C.displayName||null,V!==null?V:e(C.type)||"Memo";case k:V=C._payload,C=C._init;try{return e(C(V))}catch{}}return null}function t(C){return""+C}function r(C){try{t(C);var V=!1}catch{V=!0}if(V){V=console;var A=V.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return A.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(C)}}function n(C){if(C===b)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===k)return"<...>";try{var V=e(C);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function i(){var C=O.A;return C===null?null:C.getOwner()}function a(){return Error("react-stack-top-frame")}function l(C){if(q.call(C,"key")){var V=Object.getOwnPropertyDescriptor(C,"key").get;if(V&&V.isReactWarning)return!1}return C.key!==void 0}function s(C,V){function A(){W||(W=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}A.isReactWarning=!0,Object.defineProperty(C,"key",{get:A,configurable:!0})}function c(){var C=e(this.type);return le[C]||(le[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function u(C,V,A,T,$,D){var K=A.ref;return C={$$typeof:g,type:C,key:V,props:A,_owner:T},(K!==void 0?K:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function d(C,V,A,T,$,D){var K=V.children;if(K!==void 0)if(T)if(N(K)){for(T=0;T<K.length;T++)m(K[T]);Object.freeze&&Object.freeze(K)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(K);if(q.call(V,"key")){K=e(C);var re=Object.keys(V).filter(function(te){return te!=="key"});T=0<re.length?"{key: someKey, "+re.join(": ..., ")+": ...}":"{key: someKey}",z[K+T]||(re=0<re.length?"{"+re.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(Qt,Ge){typeof exports=="object"&&typeof module<"u"?Ge(exports,require("react"),require("@emotion/styled"),require("@emotion/react"),require("react-dom"),require("@uiw/react-markdown-editor"),require("@mui/material")):typeof define=="function"&&define.amd?define(["exports","react","@emotion/styled","@emotion/react","react-dom","@uiw/react-markdown-editor","@mui/material"],Ge):(Qt=typeof globalThis<"u"?globalThis:Qt||self,Ge(Qt["react-schema-form"]={},Qt.React,Qt.EmotionStyled,Qt.EmotionReact,Qt["React-dom"],Qt.UiwReactMarkdownEditor,Qt.MuiMaterial))})(this,(function(Qt,Ge,bw,Jn,Io,vw,Rr){"use strict";function Ep(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=Ep(Ge),Sw=Ep(Io);var Bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qs={exports:{}},$o={};var kp;function xw(){if(kp)return $o;kp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,s,i){var l=null;if(i!==void 0&&(l=""+i),s.key!==void 0&&(l=""+s.key),"key"in s){i={};for(var a in s)a!=="key"&&(i[a]=s[a])}else i=s;return s=i.ref,{$$typeof:e,type:o,key:l,ref:s!==void 0?s:null,props:i}}return $o.Fragment=t,$o.jsx=n,$o.jsxs=n,$o}var Do={};var _p;function ww(){return _p||(_p=1,process.env.NODE_ENV!=="production"&&(function(){function e(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===k?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case g:return"Fragment";case y:return"Profiler";case v:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case f:return"Portal";case w:return E.displayName||"Context";case S:return(E._context.displayName||"Context")+".Consumer";case x:var q=E.render;return E=E.displayName,E||(E=q.displayName||q.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case I:return q=E.displayName||null,q!==null?q:e(E.type)||"Memo";case $:q=E._payload,E=E._init;try{return e(E(q))}catch{}}return null}function t(E){return""+E}function n(E){try{t(E);var q=!1}catch{q=!0}if(q){q=console;var z=q.error,R=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return z.call(q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",R),t(E)}}function o(E){if(E===g)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===$)return"<...>";try{var q=e(E);return q?"<"+q+">":"<...>"}catch{return"<...>"}}function s(){var E=C.A;return E===null?null:E.getOwner()}function i(){return Error("react-stack-top-frame")}function l(E){if(N.call(E,"key")){var q=Object.getOwnPropertyDescriptor(E,"key").get;if(q&&q.isReactWarning)return!1}return E.key!==void 0}function a(E,q){function z(){F||(F=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",q))}z.isReactWarning=!0,Object.defineProperty(E,"key",{get:z,configurable:!0})}function c(){var E=e(this.type);return W[E]||(W[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function u(E,q,z,R,A,U){var X=z.ref;return E={$$typeof:b,type:E,key:q,props:z,_owner:R},(X!==void 0?X:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:c}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function d(E,q,z,R,A,U){var X=q.children;if(X!==void 0)if(R)if(D(X)){for(R=0;R<X.length;R++)p(X[R]);Object.freeze&&Object.freeze(X)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(X);if(N.call(q,"key")){X=e(E);var se=Object.keys(q).filter(function(J){return J!=="key"});R=0<se.length?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}",L[X+R]||(se=0<se.length?"{"+se.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,T,K,re,K),z[K+T]=!0)}if(K=null,A!==void 0&&(r(A),K=""+A),l(V)&&(r(V.key),K=""+V.key),"key"in V){A={};for(var ie in V)ie!=="key"&&(A[ie]=V[ie])}else A=V;return K&&s(A,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,K,A,i(),$,D)}function m(C){h(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===k&&(C._payload.status==="fulfilled"?h(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function h(C){return typeof C=="object"&&C!==null&&C.$$typeof===g}var y=ke,g=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),S=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),O=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,N=Array.isArray,U=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(C){return C()}};var W,le={},ce=y.react_stack_bottom_frame.bind(y,a)(),ue=U(n(a)),z={};Mn.Fragment=b,Mn.jsx=function(C,V,A){var T=1e4>O.recentlyCreatedOwnerStacks++;return d(C,V,A,!1,T?Error("react-stack-top-frame"):ce,T?U(n(C)):ue)},Mn.jsxs=function(C,V,A){var T=1e4>O.recentlyCreatedOwnerStacks++;return d(C,V,A,!0,T?Error("react-stack-top-frame"):ce,T?U(n(C)):ue)}})()),Mn}var ed;function eb(){return ed||(ed=1,process.env.NODE_ENV==="production"?To.exports=Zv():To.exports=Qv()),To.exports}var F=eb(),Ma,td;function tb(){if(td)return Ma;td=1;function e(){this.__data__=[],this.size=0}return Ma=e,Ma}var Da,rd;function Po(){if(rd)return Da;rd=1;function e(t,r){return t===r||t!==t&&r!==r}return Da=e,Da}var qa,nd;function $o(){if(nd)return qa;nd=1;var e=Po();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return qa=t,qa}var La,od;function rb(){if(od)return La;od=1;var e=$o(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,l=e(a,i);if(l<0)return!1;var s=a.length-1;return l==s?a.pop():r.call(a,l,1),--this.size,!0}return La=n,La}var Fa,id;function nb(){if(id)return Fa;id=1;var e=$o();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Fa=t,Fa}var za,ad;function ob(){if(ad)return za;ad=1;var e=$o();function t(r){return e(this.__data__,r)>-1}return za=t,za}var Va,sd;function ib(){if(sd)return Va;sd=1;var e=$o();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Va=t,Va}var Ba,ld;function Ro(){if(ld)return Ba;ld=1;var e=tb(),t=rb(),r=nb(),n=ob(),i=ib();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ba=a,Ba}var Ua,cd;function ab(){if(cd)return Ua;cd=1;var e=Ro();function t(){this.__data__=new e,this.size=0}return Ua=t,Ua}var Wa,ud;function sb(){if(ud)return Wa;ud=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Wa=e,Wa}var Ha,dd;function lb(){if(dd)return Ha;dd=1;function e(t){return this.__data__.get(t)}return Ha=e,Ha}var Ka,fd;function cb(){if(fd)return Ka;fd=1;function e(t){return this.__data__.has(t)}return Ka=e,Ka}var Ga,pd;function hd(){if(pd)return Ga;pd=1;var e=typeof Co=="object"&&Co&&Co.Object===Object&&Co;return Ga=e,Ga}var Ya,md;function pr(){if(md)return Ya;md=1;var e=hd(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ya=r,Ya}var Ja,yd;function Xa(){if(yd)return Ja;yd=1;var e=pr(),t=e.Symbol;return Ja=t,Ja}var Za,gd;function ub(){if(gd)return Za;gd=1;var e=Xa(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(l){var s=r.call(l,i),c=l[i];try{l[i]=void 0;var u=!0}catch{}var d=n.call(l);return u&&(s?l[i]=c:delete l[i]),d}return Za=a,Za}var Qa,vd;function db(){if(vd)return Qa;vd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qa=r,Qa}var es,bd;function Dn(){if(bd)return es;bd=1;var e=Xa(),t=ub(),r=db(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function l(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return es=l,es}var ts,_d;function xr(){if(_d)return ts;_d=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ts=e,ts}var rs,wd;function ns(){if(wd)return rs;wd=1;var e=Dn(),t=xr(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function l(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==a}return rs=l,rs}var os,Sd;function fb(){if(Sd)return os;Sd=1;var e=pr(),t=e["__core-js_shared__"];return os=t,os}var is,Ed;function pb(){if(Ed)return is;Ed=1;var e=fb(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return is=r,is}var as,Od;function xd(){if(Od)return as;Od=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return as=r,as}var ss,Cd;function hb(){if(Cd)return ss;Cd=1;var e=ns(),t=pb(),r=xr(),n=xd(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,d=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(h){if(!r(h)||t(h))return!1;var y=e(h)?d:a;return y.test(n(h))}return ss=m,ss}var ls,Td;function mb(){if(Td)return ls;Td=1;function e(t,r){return t?.[r]}return ls=e,ls}var cs,Pd;function Xr(){if(Pd)return cs;Pd=1;var e=hb(),t=mb();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return cs=r,cs}var us,$d;function ds(){if($d)return us;$d=1;var e=Xr(),t=pr(),r=e(t,"Map");return us=r,us}var fs,Rd;function ko(){if(Rd)return fs;Rd=1;var e=Xr(),t=e(Object,"create");return fs=t,fs}var ps,kd;function yb(){if(kd)return ps;kd=1;var e=ko();function t(){this.__data__=e?e(null):{},this.size=0}return ps=t,ps}var hs,Id;function gb(){if(Id)return hs;Id=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return hs=e,hs}var ms,jd;function vb(){if(jd)return ms;jd=1;var e=ko(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var l=this.__data__;if(e){var s=l[a];return s===t?void 0:s}return n.call(l,a)?l[a]:void 0}return ms=i,ms}var ys,Nd;function bb(){if(Nd)return ys;Nd=1;var e=ko(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return ys=n,ys}var gs,Ad;function _b(){if(Ad)return gs;Ad=1;var e=ko(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return gs=r,gs}var vs,Md;function wb(){if(Md)return vs;Md=1;var e=yb(),t=gb(),r=vb(),n=bb(),i=_b();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,vs=a,vs}var bs,Dd;function Sb(){if(Dd)return bs;Dd=1;var e=wb(),t=Ro(),r=ds();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return bs=n,bs}var _s,qd;function Eb(){if(qd)return _s;qd=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return _s=e,_s}var ws,Ld;function Io(){if(Ld)return ws;Ld=1;var e=Eb();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ws=t,ws}var Ss,Fd;function Ob(){if(Fd)return Ss;Fd=1;var e=Io();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ss=t,Ss}var Es,zd;function xb(){if(zd)return Es;zd=1;var e=Io();function t(r){return e(this,r).get(r)}return Es=t,Es}var Os,Vd;function Cb(){if(Vd)return Os;Vd=1;var e=Io();function t(r){return e(this,r).has(r)}return Os=t,Os}var xs,Bd;function Tb(){if(Bd)return xs;Bd=1;var e=Io();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return xs=t,xs}var Cs,Ud;function Pb(){if(Ud)return Cs;Ud=1;var e=Sb(),t=Ob(),r=xb(),n=Cb(),i=Tb();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Cs=a,Cs}var Ts,Wd;function $b(){if(Wd)return Ts;Wd=1;var e=Ro(),t=ds(),r=Pb(),n=200;function i(a,l){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,l]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,l),this.size=s.size,this}return Ts=i,Ts}var Ps,Hd;function Kd(){if(Hd)return Ps;Hd=1;var e=Ro(),t=ab(),r=sb(),n=lb(),i=cb(),a=$b();function l(s){var c=this.__data__=new e(s);this.size=c.size}return l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=n,l.prototype.has=i,l.prototype.set=a,Ps=l,Ps}var $s,Gd;function Yd(){if(Gd)return $s;Gd=1;var e=Xr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return $s=t,$s}var Rs,Jd;function ks(){if(Jd)return Rs;Jd=1;var e=Yd();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Rs=t,Rs}var Is,Xd;function Zd(){if(Xd)return Is;Xd=1;var e=ks(),t=Po();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return Is=r,Is}var js,Qd;function Rb(){if(Qd)return js;Qd=1;function e(t){return function(r,n,i){for(var a=-1,l=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++a];if(n(l[u],u,l)===!1)break}return r}}return js=e,js}var Ns,ef;function kb(){if(ef)return Ns;ef=1;var e=Rb(),t=e();return Ns=t,Ns}var qn={exports:{}};qn.exports;var tf;function rf(){return tf||(tf=1,(function(e,t){var r=pr(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a?r.Buffer:void 0,s=l?l.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var m=u.length,h=s?s(m):new u.constructor(m);return u.copy(h),h}e.exports=c})(qn,qn.exports)),qn.exports}var As,nf;function Ib(){if(nf)return As;nf=1;var e=pr(),t=e.Uint8Array;return As=t,As}var Ms,of;function Ds(){if(of)return Ms;of=1;var e=Ib();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Ms=t,Ms}var qs,af;function sf(){if(af)return qs;af=1;var e=Ds();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return qs=t,qs}var Ls,lf;function cf(){if(lf)return Ls;lf=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Ls=e,Ls}var Fs,uf;function jb(){if(uf)return Fs;uf=1;var e=xr(),t=Object.create,r=(function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var a=new n;return n.prototype=void 0,a}})();return Fs=r,Fs}var zs,df;function ff(){if(df)return zs;df=1;function e(t,r){return function(n){return t(r(n))}}return zs=e,zs}var Vs,pf;function Bs(){if(pf)return Vs;pf=1;var e=ff(),t=e(Object.getPrototypeOf,Object);return Vs=t,Vs}var Us,hf;function Ws(){if(hf)return Us;hf=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Us=t,Us}var Hs,mf;function yf(){if(mf)return Hs;mf=1;var e=jb(),t=Bs(),r=Ws();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Hs=n,Hs}var Ks,gf;function Zr(){if(gf)return Ks;gf=1;function e(t){return t!=null&&typeof t=="object"}return Ks=e,Ks}var Gs,vf;function Nb(){if(vf)return Gs;vf=1;var e=Dn(),t=Zr(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Gs=n,Gs}var Ys,bf;function _f(){if(bf)return Ys;bf=1;var e=Nb(),t=Zr(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(l){return t(l)&&n.call(l,"callee")&&!i.call(l,"callee")};return Ys=a,Ys}var Js,wf;function jo(){if(wf)return Js;wf=1;var e=Array.isArray;return Js=e,Js}var Xs,Sf;function Ef(){if(Sf)return Xs;Sf=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Xs=t,Xs}var Zs,Of;function No(){if(Of)return Zs;Of=1;var e=ns(),t=Ef();function r(n){return n!=null&&t(n.length)&&!e(n)}return Zs=r,Zs}var Qs,xf;function Ab(){if(xf)return Qs;xf=1;var e=No(),t=Zr();function r(n){return t(n)&&e(n)}return Qs=r,Qs}var Ln={exports:{}},el,Cf;function Mb(){if(Cf)return el;Cf=1;function e(){return!1}return el=e,el}Ln.exports;var Tf;function tl(){return Tf||(Tf=1,(function(e,t){var r=pr(),n=Mb(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===i,s=l?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(Ln,Ln.exports)),Ln.exports}var rl,Pf;function Db(){if(Pf)return rl;Pf=1;var e=Dn(),t=Bs(),r=Zr(),n="[object Object]",i=Function.prototype,a=Object.prototype,l=i.toString,s=a.hasOwnProperty,c=l.call(Object);function u(d){if(!r(d)||e(d)!=n)return!1;var m=t(d);if(m===null)return!0;var h=s.call(m,"constructor")&&m.constructor;return typeof h=="function"&&h instanceof h&&l.call(h)==c}return rl=u,rl}var nl,$f;function qb(){if($f)return nl;$f=1;var e=Dn(),t=Ef(),r=Zr(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",m="[object Object]",h="[object RegExp]",y="[object Set]",g="[object String]",f="[object WeakMap]",b="[object ArrayBuffer]",v="[object DataView]",p="[object Float32Array]",_="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",x="[object Uint8Array]",P="[object Uint8ClampedArray]",k="[object Uint16Array]",M="[object Uint32Array]",R={};R[p]=R[_]=R[S]=R[w]=R[E]=R[x]=R[P]=R[k]=R[M]=!0,R[n]=R[i]=R[b]=R[a]=R[v]=R[l]=R[s]=R[c]=R[u]=R[d]=R[m]=R[h]=R[y]=R[g]=R[f]=!1;function O(q){return r(q)&&t(q.length)&&!!R[e(q)]}return nl=O,nl}var ol,Rf;function il(){if(Rf)return ol;Rf=1;function e(t){return function(r){return t(r)}}return ol=e,ol}var Fn={exports:{}};Fn.exports;var kf;function al(){return kf||(kf=1,(function(e,t){var r=hd(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a&&r.process,s=(function(){try{var c=i&&i.require&&i.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}})();e.exports=s})(Fn,Fn.exports)),Fn.exports}var sl,If;function jf(){if(If)return sl;If=1;var e=qb(),t=il(),r=al(),n=r&&r.isTypedArray,i=n?t(n):e;return sl=i,sl}var ll,Nf;function Af(){if(Nf)return ll;Nf=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return ll=e,ll}var cl,Mf;function Df(){if(Mf)return cl;Mf=1;var e=ks(),t=Po(),r=Object.prototype,n=r.hasOwnProperty;function i(a,l,s){var c=a[l];(!(n.call(a,l)&&t(c,s))||s===void 0&&!(l in a))&&e(a,l,s)}return cl=i,cl}var ul,qf;function mn(){if(qf)return ul;qf=1;var e=Df(),t=ks();function r(n,i,a,l){var s=!a;a||(a={});for(var c=-1,u=i.length;++c<u;){var d=i[c],m=l?l(a[d],n[d],d,a,n):void 0;m===void 0&&(m=n[d]),s?t(a,d,m):e(a,d,m)}return a}return ul=r,ul}var dl,Lf;function Lb(){if(Lf)return dl;Lf=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return dl=e,dl}var fl,Ff;function zf(){if(Ff)return fl;Ff=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return fl=r,fl}var pl,Vf;function Bf(){if(Vf)return pl;Vf=1;var e=Lb(),t=_f(),r=jo(),n=tl(),i=zf(),a=jf(),l=Object.prototype,s=l.hasOwnProperty;function c(u,d){var m=r(u),h=!m&&t(u),y=!m&&!h&&n(u),g=!m&&!h&&!y&&a(u),f=m||h||y||g,b=f?e(u.length,String):[],v=b.length;for(var p in u)(d||s.call(u,p))&&!(f&&(p=="length"||y&&(p=="offset"||p=="parent")||g&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||i(p,v)))&&b.push(p);return b}return pl=c,pl}var hl,Uf;function Fb(){if(Uf)return hl;Uf=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return hl=e,hl}var ml,Wf;function zb(){if(Wf)return ml;Wf=1;var e=xr(),t=Ws(),r=Fb(),n=Object.prototype,i=n.hasOwnProperty;function a(l){if(!e(l))return r(l);var s=t(l),c=[];for(var u in l)u=="constructor"&&(s||!i.call(l,u))||c.push(u);return c}return ml=a,ml}var yl,Hf;function yn(){if(Hf)return yl;Hf=1;var e=Bf(),t=zb(),r=No();function n(i){return r(i)?e(i,!0):t(i)}return yl=n,yl}var gl,Kf;function Vb(){if(Kf)return gl;Kf=1;var e=mn(),t=yn();function r(n){return e(n,t(n))}return gl=r,gl}var vl,Gf;function Bb(){if(Gf)return vl;Gf=1;var e=Zd(),t=rf(),r=sf(),n=cf(),i=yf(),a=_f(),l=jo(),s=Ab(),c=tl(),u=ns(),d=xr(),m=Db(),h=jf(),y=Af(),g=Vb();function f(b,v,p,_,S,w,E){var x=y(b,p),P=y(v,p),k=E.get(P);if(k){e(b,p,k);return}var M=w?w(x,P,p+"",b,v,E):void 0,R=M===void 0;if(R){var O=l(P),q=!O&&c(P),N=!O&&!q&&h(P);M=P,O||q||N?l(x)?M=x:s(x)?M=n(x):q?(R=!1,M=t(P,!0)):N?(R=!1,M=r(P,!0)):M=[]:m(P)||a(P)?(M=x,a(x)?M=g(x):(!d(x)||u(x))&&(M=i(P))):R=!1}R&&(E.set(P,M),S(M,P,_,w,E),E.delete(P)),e(b,p,M)}return vl=f,vl}var bl,Yf;function Ub(){if(Yf)return bl;Yf=1;var e=Kd(),t=Zd(),r=kb(),n=Bb(),i=xr(),a=yn(),l=Af();function s(c,u,d,m,h){c!==u&&r(u,function(y,g){if(h||(h=new e),i(y))n(c,u,g,d,s,m,h);else{var f=m?m(l(c,g),y,g+"",c,u,h):void 0;f===void 0&&(f=y),t(c,g,f)}},a)}return bl=s,bl}var _l,Jf;function Xf(){if(Jf)return _l;Jf=1;function e(t){return t}return _l=e,_l}var wl,Zf;function Wb(){if(Zf)return wl;Zf=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return wl=e,wl}var Sl,Qf;function Hb(){if(Qf)return Sl;Qf=1;var e=Wb(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var l=arguments,s=-1,c=t(l.length-i,0),u=Array(c);++s<c;)u[s]=l[i+s];s=-1;for(var d=Array(i+1);++s<i;)d[s]=l[s];return d[i]=a(u),e(n,this,d)}}return Sl=r,Sl}var El,ep;function Kb(){if(ep)return El;ep=1;function e(t){return function(){return t}}return El=e,El}var Ol,tp;function Gb(){if(tp)return Ol;tp=1;var e=Kb(),t=Yd(),r=Xf(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ol=n,Ol}var xl,rp;function Yb(){if(rp)return xl;rp=1;var e=800,t=16,r=Date.now;function n(i){var a=0,l=0;return function(){var s=r(),c=t-(s-l);if(l=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return xl=n,xl}var Cl,np;function Jb(){if(np)return Cl;np=1;var e=Gb(),t=Yb(),r=t(e);return Cl=r,Cl}var Tl,op;function Xb(){if(op)return Tl;op=1;var e=Xf(),t=Hb(),r=Jb();function n(i,a){return r(t(i,a,e),i+"")}return Tl=n,Tl}var Pl,ip;function Zb(){if(ip)return Pl;ip=1;var e=Po(),t=No(),r=zf(),n=xr();function i(a,l,s){if(!n(s))return!1;var c=typeof l;return(c=="number"?t(s)&&r(l,s.length):c=="string"&&l in s)?e(s[l],a):!1}return Pl=i,Pl}var $l,ap;function sp(){if(ap)return $l;ap=1;var e=Xb(),t=Zb();function r(n){return e(function(i,a){var l=-1,s=a.length,c=s>1?a[s-1]:void 0,u=s>2?a[2]:void 0;for(c=n.length>3&&typeof c=="function"?(s--,c):void 0,u&&t(a[0],a[1],u)&&(c=s<3?void 0:c,s=1),i=Object(i);++l<s;){var d=a[l];d&&n(i,d,l,c)}return i})}return $l=r,$l}var Rl,lp;function Qb(){if(lp)return Rl;lp=1;var e=Ub(),t=sp(),r=t(function(n,i,a){e(n,i,a)});return Rl=r,Rl}var e0=Qb();const t0=Ut(e0);var kl,cp;function r0(){if(cp)return kl;cp=1;function e(t){return t==null}return kl=e,kl}var n0=r0();const up=Ut(n0);var o0=xr();const i0=Ut(o0);var Il,dp;function a0(){if(dp)return Il;dp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return Il=e,Il}var jl,fp;function s0(){if(fp)return jl;fp=1;var e=ff(),t=e(Object.keys,Object);return jl=t,jl}var Nl,pp;function l0(){if(pp)return Nl;pp=1;var e=Ws(),t=s0(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var l=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&l.push(s);return l}return Nl=i,Nl}var Al,hp;function Ml(){if(hp)return Al;hp=1;var e=Bf(),t=l0(),r=No();function n(i){return r(i)?e(i):t(i)}return Al=n,Al}var Dl,mp;function c0(){if(mp)return Dl;mp=1;var e=mn(),t=Ml();function r(n,i){return n&&e(i,t(i),n)}return Dl=r,Dl}var ql,yp;function u0(){if(yp)return ql;yp=1;var e=mn(),t=yn();function r(n,i){return n&&e(i,t(i),n)}return ql=r,ql}var Ll,gp;function d0(){if(gp)return Ll;gp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,l=[];++n<i;){var s=t[n];r(s,n,t)&&(l[a++]=s)}return l}return Ll=e,Ll}var Fl,vp;function bp(){if(vp)return Fl;vp=1;function e(){return[]}return Fl=e,Fl}var zl,_p;function Vl(){if(_p)return zl;_p=1;var e=d0(),t=bp(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(s){return n.call(l,s)}))}:t;return zl=a,zl}var Bl,wp;function f0(){if(wp)return Bl;wp=1;var e=mn(),t=Vl();function r(n,i){return e(n,t(n),i)}return Bl=r,Bl}var Ul,Sp;function Ep(){if(Sp)return Ul;Sp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Ul=e,Ul}var Wl,Op;function xp(){if(Op)return Wl;Op=1;var e=Ep(),t=Bs(),r=Vl(),n=bp(),i=Object.getOwnPropertySymbols,a=i?function(l){for(var s=[];l;)e(s,r(l)),l=t(l);return s}:n;return Wl=a,Wl}var Hl,Cp;function p0(){if(Cp)return Hl;Cp=1;var e=mn(),t=xp();function r(n,i){return e(n,t(n),i)}return Hl=r,Hl}var Kl,Tp;function Pp(){if(Tp)return Kl;Tp=1;var e=Ep(),t=jo();function r(n,i,a){var l=i(n);return t(n)?l:e(l,a(n))}return Kl=r,Kl}var Gl,$p;function h0(){if($p)return Gl;$p=1;var e=Pp(),t=Vl(),r=Ml();function n(i){return e(i,r,t)}return Gl=n,Gl}var Yl,Rp;function m0(){if(Rp)return Yl;Rp=1;var e=Pp(),t=xp(),r=yn();function n(i){return e(i,r,t)}return Yl=n,Yl}var Jl,kp;function y0(){if(kp)return Jl;kp=1;var e=Xr(),t=pr(),r=e(t,"DataView");return Jl=r,Jl}var Xl,Ip;function g0(){if(Ip)return Xl;Ip=1;var e=Xr(),t=pr(),r=e(t,"Promise");return Xl=r,Xl}var Zl,jp;function v0(){if(jp)return Zl;jp=1;var e=Xr(),t=pr(),r=e(t,"Set");return Zl=r,Zl}var Ql,Np;function b0(){if(Np)return Ql;Np=1;var e=Xr(),t=pr(),r=e(t,"WeakMap");return Ql=r,Ql}var ec,Ap;function tc(){if(Ap)return ec;Ap=1;var e=y0(),t=ds(),r=g0(),n=v0(),i=b0(),a=Dn(),l=xd(),s="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",m="[object WeakMap]",h="[object DataView]",y=l(e),g=l(t),f=l(r),b=l(n),v=l(i),p=a;return(e&&p(new e(new ArrayBuffer(1)))!=h||t&&p(new t)!=s||r&&p(r.resolve())!=u||n&&p(new n)!=d||i&&p(new i)!=m)&&(p=function(_){var S=a(_),w=S==c?_.constructor:void 0,E=w?l(w):"";if(E)switch(E){case y:return h;case g:return s;case f:return u;case b:return d;case v:return m}return S}),ec=p,ec}var rc,Mp;function _0(){if(Mp)return rc;Mp=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,a=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(a.index=n.index,a.input=n.input),a}return rc=r,rc}var nc,Dp;function w0(){if(Dp)return nc;Dp=1;var e=Ds();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return nc=t,nc}var oc,qp;function S0(){if(qp)return oc;qp=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return oc=t,oc}var ic,Lp;function E0(){if(Lp)return ic;Lp=1;var e=Xa(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return ic=n,ic}var ac,Fp;function O0(){if(Fp)return ac;Fp=1;var e=Ds(),t=w0(),r=S0(),n=E0(),i=sf(),a="[object Boolean]",l="[object Date]",s="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",m="[object String]",h="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",f="[object Float32Array]",b="[object Float64Array]",v="[object Int8Array]",p="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",w="[object Uint8ClampedArray]",E="[object Uint16Array]",x="[object Uint32Array]";function P(k,M,R){var O=k.constructor;switch(M){case y:return e(k);case a:case l:return new O(+k);case g:return t(k,R);case f:case b:case v:case p:case _:case S:case w:case E:case x:return i(k,R);case s:return new O;case c:case m:return new O(k);case u:return r(k);case d:return new O;case h:return n(k)}}return ac=P,ac}var sc,zp;function x0(){if(zp)return sc;zp=1;var e=tc(),t=Zr(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return sc=n,sc}var lc,Vp;function C0(){if(Vp)return lc;Vp=1;var e=x0(),t=il(),r=al(),n=r&&r.isMap,i=n?t(n):e;return lc=i,lc}var cc,Bp;function T0(){if(Bp)return cc;Bp=1;var e=tc(),t=Zr(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return cc=n,cc}var uc,Up;function P0(){if(Up)return uc;Up=1;var e=T0(),t=il(),r=al(),n=r&&r.isSet,i=n?t(n):e;return uc=i,uc}var dc,Wp;function $0(){if(Wp)return dc;Wp=1;var e=Kd(),t=a0(),r=Df(),n=c0(),i=u0(),a=rf(),l=cf(),s=f0(),c=p0(),u=h0(),d=m0(),m=tc(),h=_0(),y=O0(),g=yf(),f=jo(),b=tl(),v=C0(),p=xr(),_=P0(),S=Ml(),w=yn(),E=1,x=2,P=4,k="[object Arguments]",M="[object Array]",R="[object Boolean]",O="[object Date]",q="[object Error]",N="[object Function]",U="[object GeneratorFunction]",W="[object Map]",le="[object Number]",ce="[object Object]",ue="[object RegExp]",z="[object Set]",C="[object String]",V="[object Symbol]",A="[object WeakMap]",T="[object ArrayBuffer]",$="[object DataView]",D="[object Float32Array]",K="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",te="[object Int32Array]",L="[object Uint8Array]",I="[object Uint8ClampedArray]",G="[object Uint16Array]",X="[object Uint32Array]",ne={};ne[k]=ne[M]=ne[T]=ne[$]=ne[R]=ne[O]=ne[D]=ne[K]=ne[re]=ne[ie]=ne[te]=ne[W]=ne[le]=ne[ce]=ne[ue]=ne[z]=ne[C]=ne[V]=ne[L]=ne[I]=ne[G]=ne[X]=!0,ne[q]=ne[N]=ne[A]=!1;function he(ve,fe,Te,be,Ee,ge){var $e,Ie=fe&E,ot=fe&x,Qe=fe&P;if(Te&&($e=Ee?Te(ve,be,Ee,ge):Te(ve)),$e!==void 0)return $e;if(!p(ve))return ve;var _t=f(ve);if(_t){if($e=h(ve),!Ie)return l(ve,$e)}else{var et=m(ve),Tt=et==N||et==U;if(b(ve))return a(ve,Ie);if(et==ce||et==k||Tt&&!Ee){if($e=ot||Tt?{}:g(ve),!Ie)return ot?c(ve,i($e,ve)):s(ve,n($e,ve))}else{if(!ne[et])return Ee?ve:{};$e=y(ve,et,Ie)}}ge||(ge=new e);var Je=ge.get(ve);if(Je)return Je;ge.set(ve,$e),_(ve)?ve.forEach(function(dt){$e.add(he(dt,fe,Te,dt,ve,ge))}):v(ve)&&ve.forEach(function(dt,ft){$e.set(ft,he(dt,fe,Te,ft,ve,ge))});var Oe=Qe?ot?d:u:ot?w:S,He=_t?void 0:Oe(ve);return t(He||ve,function(dt,ft){He&&(ft=dt,dt=ve[ft]),r($e,ft,he(dt,fe,Te,ft,ve,ge))}),$e}return dc=he,dc}var fc,Hp;function R0(){if(Hp)return fc;Hp=1;var e=$0(),t=1,r=4;function n(i){return e(i,t|r)}return fc=n,fc}var k0=R0();const Ao=Ut(k0);var pc,Kp;function I0(){if(Kp)return pc;Kp=1;var e=mn(),t=sp(),r=yn(),n=t(function(i,a){e(a,r(a),i)});return pc=n,pc}var hc,Gp;function j0(){return Gp||(Gp=1,hc=I0()),hc}var N0=j0();const A0=Ut(N0);var mc,Yp;function M0(){if(Yp)return mc;Yp=1;function e(t){return t===void 0}return mc=e,mc}var D0=M0();const q0=Ut(D0);var yc={},Jp;function L0(){return Jp||(Jp=1,(function(e){(function(t){var r={"'":/\\\'/g,'"':/\\\"/g},n={parse:function(i){if(typeof i!="string")throw new TypeError("ObjectPath.parse must be passed a string");for(var a=0,l=[],s,c,u,d;a<i.length;)if(s=i.indexOf(".",a),c=i.indexOf("[",a),s===-1&&c===-1)l.push(i.slice(a,i.length)),a=i.length;else if(c===-1||s!==-1&&s<c)l.push(i.slice(a,s)),a=s+1;else if(c>a&&(l.push(i.slice(a,c)),a=c),u=i.slice(c+1,c+2),u!=='"'&&u!=="'")d=i.indexOf("]",c),d===-1&&(d=i.length),l.push(i.slice(a+1,d)),a=i.slice(d+1,d+2)==="."?d+2:d+1;else{for(d=i.indexOf(u+"]",c),d===-1&&(d=i.length);i.slice(d-1,d)==="\\"&&c<i.length;)c++,d=i.indexOf(u+"]",c);l.push(i.slice(a+2,d).replace(r[u],u).replace(/\\+/g,function(m){return new Array(Math.ceil(m.length/2)+1).join("\\")})),a=i.slice(d+2,d+3)==="."?d+3:d+2}return l},stringify:function(i,a,l){Array.isArray(i)||(i=[i]),a=a==='"'?'"':"'";var s=new RegExp("(\\\\|"+a+")","g");return i.map(function(c,u){let d=c.toString();return!l&&/^[A-z_]\w*$/.exec(d)?u!==0?"."+d:d:!l&&/^\d+$/.exec(d)?"["+d+"]":(d=d.replace(s,"\\$1"),"["+a+d+a+"]")}).join("")},normalize:function(i,a,l){return n.stringify(Array.isArray(i)?i:n.parse(i),a,l)},registerModule:function(i){i.module("ObjectPath",[]).provider("ObjectPath",function(){this.parse=n.parse,this.stringify=n.stringify,this.normalize=n.normalize,this.$get=function(){return n}})}};e.ObjectPath=n})()})(yc)),yc}var gc,Xp;function F0(){return Xp||(Xp=1,gc=L0().ObjectPath),gc}var z0=F0();const Rt=Ut(z0);var Mo={exports:{}},vc={},Cr={},Qr={},bc={},_c={},wc={},Zp;function Do(){return Zp||(Zp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(p){if(super(),!e.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(p){super(),this._items=typeof p=="string"?[p]:p}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const p=this._items[0];return p===""||p==='""'}get str(){var p;return(p=this._str)!==null&&p!==void 0?p:this._str=this._items.reduce((_,S)=>`${_}${S}`,"")}get names(){var p;return(p=this._names)!==null&&p!==void 0?p:this._names=this._items.reduce((_,S)=>(S instanceof r&&(_[S.str]=(_[S.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function i(v,...p){const _=[v[0]];let S=0;for(;S<p.length;)s(_,p[S]),_.push(v[++S]);return new n(_)}e._=i;const a=new n("+");function l(v,...p){const _=[y(v[0])];let S=0;for(;S<p.length;)_.push(a),s(_,p[S]),_.push(a,y(v[++S]));return c(_),new n(_)}e.str=l;function s(v,p){p instanceof n?v.push(...p._items):p instanceof r?v.push(p):v.push(m(p))}e.addCodeArg=s;function c(v){let p=1;for(;p<v.length-1;){if(v[p]===a){const _=u(v[p-1],v[p+1]);if(_!==void 0){v.splice(p-1,3,_);continue}v[p++]="+"}p++}}function u(v,p){if(p==='""')return v;if(v==='""')return p;if(typeof v=="string")return p instanceof r||v[v.length-1]!=='"'?void 0:typeof p!="string"?`${v.slice(0,-1)}${p}"`:p[0]==='"'?v.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(v instanceof r))return`"${v}${p.slice(1)}`}function d(v,p){return p.emptyStr()?v:v.emptyStr()?p:l`${v}${p}`}e.strConcat=d;function m(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:y(Array.isArray(v)?v.join(","):v)}function h(v){return new n(y(v))}e.stringify=h;function y(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function g(v){return typeof v=="string"&&e.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}e.getProperty=g;function f(v){if(typeof v=="string"&&e.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}e.getEsmExportName=f;function b(v){return new n(v.toString())}e.regexpCode=b})(wc)),wc}var Sc={},Qp;function eh(){return Qp||(Qp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Do();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:u,parent:d}={}){this._names={},this._prefixes=u,this._parent=d}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const d=this._names[u]||this._nameGroup(u);return`${u}${d.index++}`}_nameGroup(u){var d,m;if(!((m=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||m===void 0)&&m.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=i;class a extends t.Name{constructor(u,d){super(d),this.prefix=u}setValue(u,{property:d,itemIndex:m}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(d)}[${m}]`}}e.ValueScopeName=a;const l=(0,t._)`\n`;class s extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?l:t.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,d){var m;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(u),{prefix:y}=h,g=(m=d.key)!==null&&m!==void 0?m:d.ref;let f=this._values[y];if(f){const p=f.get(g);if(p)return p}else f=this._values[y]=new Map;f.set(g,h);const b=this._scope[y]||(this._scope[y]=[]),v=b.length;return b[v]=d.ref,h.setValue(d,{property:y,itemIndex:v}),h}getValue(u,d){const m=this._values[u];if(m)return m.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${u}${m.scopePath}`})}scopeCode(u=this._values,d,m){return this._reduceValues(u,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},d,m)}_reduceValues(u,d,m={},h){let y=t.nil;for(const g in u){const f=u[g];if(!f)continue;const b=m[g]=m[g]||new Map;f.forEach(v=>{if(b.has(v))return;b.set(v,n.Started);let p=d(v);if(p){const _=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${_} ${v} = ${p};${this.opts._n}`}else if(p=h?.(v))y=(0,t._)`${y}${p}${this.opts._n}`;else throw new r(v);b.set(v,n.Completed)})}return y}}e.ValueScope=s})(Sc)),Sc}var th;function De(){return th||(th=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Do(),r=eh();var n=Do();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=eh();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(T,$){return this}}class l extends a{constructor(T,$,D){super(),this.varKind=T,this.name=$,this.rhs=D}render({es5:T,_n:$}){const D=T?r.varKinds.var:this.varKind,K=this.rhs===void 0?"":` = ${this.rhs}`;return`${D} ${this.name}${K};`+$}optimizeNames(T,$){if(T[this.name.str])return this.rhs&&(this.rhs=N(this.rhs,T,$)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(T,$,D){super(),this.lhs=T,this.rhs=$,this.sideEffects=D}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,$){if(!(this.lhs instanceof t.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=N(this.rhs,T,$),this}get names(){const T=this.lhs instanceof t.Name?{}:{...this.lhs.names};return q(T,this.rhs)}}class c extends s{constructor(T,$,D,K){super(T,D,K),this.op=$}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class u extends a{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class d extends a{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class m extends a{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class h extends a{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,$){return this.code=N(this.code,T,$),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends a{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce(($,D)=>$+D.render(T),"")}optimizeNodes(){const{nodes:T}=this;let $=T.length;for(;$--;){const D=T[$].optimizeNodes();Array.isArray(D)?T.splice($,1,...D):D?T[$]=D:T.splice($,1)}return T.length>0?this:void 0}optimizeNames(T,$){const{nodes:D}=this;let K=D.length;for(;K--;){const re=D[K];re.optimizeNames(T,$)||(U(T,re.names),D.splice(K,1))}return D.length>0?this:void 0}get names(){return this.nodes.reduce((T,$)=>O(T,$.names),{})}}class g extends y{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class f extends y{}class b extends g{}b.kind="else";class v extends g{constructor(T,$){super($),this.condition=T}render(T){let $=`if(${this.condition})`+super.render(T);return this.else&&($+="else "+this.else.render(T)),$}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let $=this.else;if($){const D=$.optimizeNodes();$=this.else=Array.isArray(D)?new b(D):D}if($)return T===!1?$ instanceof v?$:$.nodes:this.nodes.length?this:new v(W(T),$ instanceof v?[$]:$.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,$){var D;if(this.else=(D=this.else)===null||D===void 0?void 0:D.optimizeNames(T,$),!!(super.optimizeNames(T,$)||this.else))return this.condition=N(this.condition,T,$),this}get names(){const T=super.names;return q(T,this.condition),this.else&&O(T,this.else.names),T}}v.kind="if";class p extends g{}p.kind="for";class _ extends p{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,$){if(super.optimizeNames(T,$))return this.iteration=N(this.iteration,T,$),this}get names(){return O(super.names,this.iteration.names)}}class S extends p{constructor(T,$,D,K){super(),this.varKind=T,this.name=$,this.from=D,this.to=K}render(T){const $=T.es5?r.varKinds.var:this.varKind,{name:D,from:K,to:re}=this;return`for(${$} ${D}=${K}; ${D}<${re}; ${D}++)`+super.render(T)}get names(){const T=q(super.names,this.from);return q(T,this.to)}}class w extends p{constructor(T,$,D,K){super(),this.loop=T,this.varKind=$,this.name=D,this.iterable=K}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,$){if(super.optimizeNames(T,$))return this.iterable=N(this.iterable,T,$),this}get names(){return O(super.names,this.iterable.names)}}class E extends g{constructor(T,$,D){super(),this.name=T,this.args=$,this.async=D}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}E.kind="func";class x extends y{render(T){return"return "+super.render(T)}}x.kind="return";class P extends g{render(T){let $="try"+super.render(T);return this.catch&&($+=this.catch.render(T)),this.finally&&($+=this.finally.render(T)),$}optimizeNodes(){var T,$;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(T,$){var D,K;return super.optimizeNames(T,$),(D=this.catch)===null||D===void 0||D.optimizeNames(T,$),(K=this.finally)===null||K===void 0||K.optimizeNames(T,$),this}get names(){const T=super.names;return this.catch&&O(T,this.catch.names),this.finally&&O(T,this.finally.names),T}}class k extends g{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}k.kind="catch";class M extends g{render(T){return"finally"+super.render(T)}}M.kind="finally";class R{constructor(T,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
7
- `:""},this._extScope=T,this._scope=new r.Scope({parent:T}),this._nodes=[new f]}toString(){return this._root.render(this.opts)}name(T){return this._scope.name(T)}scopeName(T){return this._extScope.name(T)}scopeValue(T,$){const D=this._extScope.value(T,$);return(this._values[D.prefix]||(this._values[D.prefix]=new Set)).add(D),D}getScopeValue(T,$){return this._extScope.getValue(T,$)}scopeRefs(T){return this._extScope.scopeRefs(T,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(T,$,D,K){const re=this._scope.toName($);return D!==void 0&&K&&(this._constants[re.str]=D),this._leafNode(new l(T,re,D)),re}const(T,$,D){return this._def(r.varKinds.const,T,$,D)}let(T,$,D){return this._def(r.varKinds.let,T,$,D)}var(T,$,D){return this._def(r.varKinds.var,T,$,D)}assign(T,$,D){return this._leafNode(new s(T,$,D))}add(T,$){return this._leafNode(new c(T,e.operators.ADD,$))}code(T){return typeof T=="function"?T():T!==t.nil&&this._leafNode(new h(T)),this}object(...T){const $=["{"];for(const[D,K]of T)$.length>1&&$.push(","),$.push(D),(D!==K||this.opts.es5)&&($.push(":"),(0,t.addCodeArg)($,K));return $.push("}"),new t._Code($)}if(T,$,D){if(this._blockNode(new v(T)),$&&D)this.code($).else().code(D).endIf();else if($)this.code($).endIf();else if(D)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(T){return this._elseNode(new v(T))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(v,b)}_for(T,$){return this._blockNode(T),$&&this.code($).endFor(),this}for(T,$){return this._for(new _(T),$)}forRange(T,$,D,K,re=this.opts.es5?r.varKinds.var:r.varKinds.let){const ie=this._scope.toName(T);return this._for(new S(re,ie,$,D),()=>K(ie))}forOf(T,$,D,K=r.varKinds.const){const re=this._scope.toName(T);if(this.opts.es5){const ie=$ instanceof t.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,t._)`${ie}.length`,te=>{this.var(re,(0,t._)`${ie}[${te}]`),D(re)})}return this._for(new w("of",K,re,$),()=>D(re))}forIn(T,$,D,K=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(T,(0,t._)`Object.keys(${$})`,D);const re=this._scope.toName(T);return this._for(new w("in",K,re,$),()=>D(re))}endFor(){return this._endBlockNode(p)}label(T){return this._leafNode(new u(T))}break(T){return this._leafNode(new d(T))}return(T){const $=new x;if(this._blockNode($),this.code(T),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(T,$,D){if(!$&&!D)throw new Error('CodeGen: "try" without "catch" and "finally"');const K=new P;if(this._blockNode(K),this.code(T),$){const re=this.name("e");this._currNode=K.catch=new k(re),$(re)}return D&&(this._currNode=K.finally=new M,this.code(D)),this._endBlockNode(k,M)}throw(T){return this._leafNode(new m(T))}block(T,$){return this._blockStarts.push(this._nodes.length),T&&this.code(T).endBlock($),this}endBlock(T){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const D=this._nodes.length-$;if(D<0||T!==void 0&&D!==T)throw new Error(`CodeGen: wrong number of nodes: ${D} vs ${T} expected`);return this._nodes.length=$,this}func(T,$=t.nil,D,K){return this._blockNode(new E(T,$,D)),K&&this.code(K).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(T=1){for(;T-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(T){return this._currNode.nodes.push(T),this}_blockNode(T){this._currNode.nodes.push(T),this._nodes.push(T)}_endBlockNode(T,$){const D=this._currNode;if(D instanceof T||$&&D instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${T.kind}/${$.kind}`:T.kind}"`)}_elseNode(T){const $=this._currNode;if(!($ instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=T,this}get _root(){return this._nodes[0]}get _currNode(){const T=this._nodes;return T[T.length-1]}set _currNode(T){const $=this._nodes;$[$.length-1]=T}}e.CodeGen=R;function O(A,T){for(const $ in T)A[$]=(A[$]||0)+(T[$]||0);return A}function q(A,T){return T instanceof t._CodeOrName?O(A,T.names):A}function N(A,T,$){if(A instanceof t.Name)return D(A);if(!K(A))return A;return new t._Code(A._items.reduce((re,ie)=>(ie instanceof t.Name&&(ie=D(ie)),ie instanceof t._Code?re.push(...ie._items):re.push(ie),re),[]));function D(re){const ie=$[re.str];return ie===void 0||T[re.str]!==1?re:(delete T[re.str],ie)}function K(re){return re instanceof t._Code&&re._items.some(ie=>ie instanceof t.Name&&T[ie.str]===1&&$[ie.str]!==void 0)}}function U(A,T){for(const $ in T)A[$]=(A[$]||0)-(T[$]||0)}function W(A){return typeof A=="boolean"||typeof A=="number"||A===null?!A:(0,t._)`!${V(A)}`}e.not=W;const le=C(e.operators.AND);function ce(...A){return A.reduce(le)}e.and=ce;const ue=C(e.operators.OR);function z(...A){return A.reduce(ue)}e.or=z;function C(A){return(T,$)=>T===t.nil?$:$===t.nil?T:(0,t._)`${V(T)} ${A} ${V($)}`}function V(A){return A instanceof t.Name?A:(0,t._)`(${A})`}})(_c)),_c}var qe={},rh;function Ge(){if(rh)return qe;rh=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.checkStrictMode=qe.getErrorPath=qe.Type=qe.useFunc=qe.setEvaluated=qe.evaluatedPropsToName=qe.mergeEvaluated=qe.eachItem=qe.unescapeJsonPointer=qe.escapeJsonPointer=qe.escapeFragment=qe.unescapeFragment=qe.schemaRefOrVal=qe.schemaHasRulesButRef=qe.schemaHasRules=qe.checkUnknownRules=qe.alwaysValidSchema=qe.toHash=void 0;const e=De(),t=Do();function r(w){const E={};for(const x of w)E[x]=!0;return E}qe.toHash=r;function n(w,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(i(w,E),!a(E,w.self.RULES.all))}qe.alwaysValidSchema=n;function i(w,E=w.schema){const{opts:x,self:P}=w;if(!x.strictSchema||typeof E=="boolean")return;const k=P.RULES.keywords;for(const M in E)k[M]||S(w,`unknown keyword: "${M}"`)}qe.checkUnknownRules=i;function a(w,E){if(typeof w=="boolean")return!w;for(const x in w)if(E[x])return!0;return!1}qe.schemaHasRules=a;function l(w,E){if(typeof w=="boolean")return!w;for(const x in w)if(x!=="$ref"&&E.all[x])return!0;return!1}qe.schemaHasRulesButRef=l;function s({topSchemaRef:w,schemaPath:E},x,P,k){if(!k){if(typeof x=="number"||typeof x=="boolean")return x;if(typeof x=="string")return(0,e._)`${x}`}return(0,e._)`${w}${E}${(0,e.getProperty)(P)}`}qe.schemaRefOrVal=s;function c(w){return m(decodeURIComponent(w))}qe.unescapeFragment=c;function u(w){return encodeURIComponent(d(w))}qe.escapeFragment=u;function d(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}qe.escapeJsonPointer=d;function m(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}qe.unescapeJsonPointer=m;function h(w,E){if(Array.isArray(w))for(const x of w)E(x);else E(w)}qe.eachItem=h;function y({mergeNames:w,mergeToName:E,mergeValues:x,resultToName:P}){return(k,M,R,O)=>{const q=R===void 0?M:R instanceof e.Name?(M instanceof e.Name?w(k,M,R):E(k,M,R),R):M instanceof e.Name?(E(k,R,M),M):x(M,R);return O===e.Name&&!(q instanceof e.Name)?P(k,q):q}}qe.mergeEvaluated={props:y({mergeNames:(w,E,x)=>w.if((0,e._)`${x} !== true && ${E} !== undefined`,()=>{w.if((0,e._)`${E} === true`,()=>w.assign(x,!0),()=>w.assign(x,(0,e._)`${x} || {}`).code((0,e._)`Object.assign(${x}, ${E})`))}),mergeToName:(w,E,x)=>w.if((0,e._)`${x} !== true`,()=>{E===!0?w.assign(x,!0):(w.assign(x,(0,e._)`${x} || {}`),f(w,x,E))}),mergeValues:(w,E)=>w===!0?!0:{...w,...E},resultToName:g}),items:y({mergeNames:(w,E,x)=>w.if((0,e._)`${x} !== true && ${E} !== undefined`,()=>w.assign(x,(0,e._)`${E} === true ? true : ${x} > ${E} ? ${x} : ${E}`)),mergeToName:(w,E,x)=>w.if((0,e._)`${x} !== true`,()=>w.assign(x,E===!0?!0:(0,e._)`${x} > ${E} ? ${x} : ${E}`)),mergeValues:(w,E)=>w===!0?!0:Math.max(w,E),resultToName:(w,E)=>w.var("items",E)})};function g(w,E){if(E===!0)return w.var("props",!0);const x=w.var("props",(0,e._)`{}`);return E!==void 0&&f(w,x,E),x}qe.evaluatedPropsToName=g;function f(w,E,x){Object.keys(x).forEach(P=>w.assign((0,e._)`${E}${(0,e.getProperty)(P)}`,!0))}qe.setEvaluated=f;const b={};function v(w,E){return w.scopeValue("func",{ref:E,code:b[E.code]||(b[E.code]=new t._Code(E.code))})}qe.useFunc=v;var p;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(p||(qe.Type=p={}));function _(w,E,x){if(w instanceof e.Name){const P=E===p.Num;return x?P?(0,e._)`"[" + ${w} + "]"`:(0,e._)`"['" + ${w} + "']"`:P?(0,e._)`"/" + ${w}`:(0,e._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return x?(0,e.getProperty)(w).toString():"/"+d(w)}qe.getErrorPath=_;function S(w,E,x=w.opts.strictSchema){if(x){if(E=`strict mode: ${E}`,x===!0)throw new Error(E);w.self.logger.warn(E)}}return qe.checkStrictMode=S,qe}var qo={},nh;function Dr(){if(nh)return qo;nh=1,Object.defineProperty(qo,"__esModule",{value:!0});const e=De(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return qo.default=t,qo}var oh;function Lo(){return oh||(oh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=De(),r=Ge(),n=Dr();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:v})=>v?(0,t.str)`"${b}" keyword must be ${v} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function i(b,v=e.keywordError,p,_){const{it:S}=b,{gen:w,compositeRule:E,allErrors:x}=S,P=m(b,v,p);_??(E||x)?c(w,P):u(S,(0,t._)`[${P}]`)}e.reportError=i;function a(b,v=e.keywordError,p){const{it:_}=b,{gen:S,compositeRule:w,allErrors:E}=_,x=m(b,v,p);c(S,x),w||E||u(_,n.default.vErrors)}e.reportExtraError=a;function l(b,v){b.assign(n.default.errors,v),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(v,()=>b.assign((0,t._)`${n.default.vErrors}.length`,v),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=l;function s({gen:b,keyword:v,schemaValue:p,data:_,errsCount:S,it:w}){if(S===void 0)throw new Error("ajv implementation error");const E=b.name("err");b.forRange("i",S,n.default.errors,x=>{b.const(E,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${E}.instancePath === undefined`,()=>b.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(n.default.instancePath,w.errorPath))),b.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${w.errSchemaPath}/${v}`),w.opts.verbose&&(b.assign((0,t._)`${E}.schema`,p),b.assign((0,t._)`${E}.data`,_))})}e.extendErrors=s;function c(b,v){const p=b.const("err",v);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${p}]`),(0,t._)`${n.default.vErrors}.push(${p})`),b.code((0,t._)`${n.default.errors}++`)}function u(b,v){const{gen:p,validateName:_,schemaEnv:S}=b;S.$async?p.throw((0,t._)`new ${b.ValidationError}(${v})`):(p.assign((0,t._)`${_}.errors`,v),p.return(!1))}const d={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function m(b,v,p){const{createErrors:_}=b.it;return _===!1?(0,t._)`{}`:h(b,v,p)}function h(b,v,p={}){const{gen:_,it:S}=b,w=[y(S,p),g(b,p)];return f(b,v,w),_.object(...w)}function y({errorPath:b},{instancePath:v}){const p=v?(0,t.str)`${b}${(0,r.getErrorPath)(v,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,p)]}function g({keyword:b,it:{errSchemaPath:v}},{schemaPath:p,parentSchema:_}){let S=_?v:(0,t.str)`${v}/${b}`;return p&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(p,r.Type.Str)}`),[d.schemaPath,S]}function f(b,{params:v,message:p},_){const{keyword:S,data:w,schemaValue:E,it:x}=b,{opts:P,propertyName:k,topSchemaRef:M,schemaPath:R}=x;_.push([d.keyword,S],[d.params,typeof v=="function"?v(b):v||(0,t._)`{}`]),P.messages&&_.push([d.message,typeof p=="function"?p(b):p]),P.verbose&&_.push([d.schema,E],[d.parentSchema,(0,t._)`${M}${R}`],[n.default.data,w]),k&&_.push([d.propertyName,k])}})(bc)),bc}var ih;function V0(){if(ih)return Qr;ih=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.boolOrEmptySchema=Qr.topBoolOrEmptySchema=void 0;const e=Lo(),t=De(),r=Dr(),n={message:"boolean schema is false"};function i(s){const{gen:c,schema:u,validateName:d}=s;u===!1?l(s,!1):typeof u=="object"&&u.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${d}.errors`,null),c.return(!0))}Qr.topBoolOrEmptySchema=i;function a(s,c){const{gen:u,schema:d}=s;d===!1?(u.var(c,!1),l(s)):u.var(c,!0)}Qr.boolOrEmptySchema=a;function l(s,c){const{gen:u,data:d}=s,m={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,e.reportError)(m,n,void 0,c)}return Qr}var Pt={},en={},ah;function sh(){if(ah)return en;ah=1,Object.defineProperty(en,"__esModule",{value:!0}),en.getRules=en.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}en.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return en.getRules=n,en}var Tr={},lh;function ch(){if(lh)return Tr;lh=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.shouldUseRule=Tr.shouldUseGroup=Tr.schemaHasRulesForType=void 0;function e({schema:n,self:i},a){const l=i.RULES.types[a];return l&&l!==!0&&t(n,l)}Tr.schemaHasRulesForType=e;function t(n,i){return i.rules.some(a=>r(n,a))}Tr.shouldUseGroup=t;function r(n,i){var a;return n[i.keyword]!==void 0||((a=i.definition.implements)===null||a===void 0?void 0:a.some(l=>n[l]!==void 0))}return Tr.shouldUseRule=r,Tr}var uh;function Fo(){if(uh)return Pt;uh=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.reportTypeError=Pt.checkDataTypes=Pt.checkDataType=Pt.coerceAndCheckDataType=Pt.getJSONTypes=Pt.getSchemaTypes=Pt.DataType=void 0;const e=sh(),t=ch(),r=Lo(),n=De(),i=Ge();var a;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(a||(Pt.DataType=a={}));function l(p){const _=s(p.type);if(_.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!_.length&&p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&_.push("null")}return _}Pt.getSchemaTypes=l;function s(p){const _=Array.isArray(p)?p:p?[p]:[];if(_.every(e.isJSONType))return _;throw new Error("type must be JSONType or JSONType[]: "+_.join(","))}Pt.getJSONTypes=s;function c(p,_){const{gen:S,data:w,opts:E}=p,x=d(_,E.coerceTypes),P=_.length>0&&!(x.length===0&&_.length===1&&(0,t.schemaHasRulesForType)(p,_[0]));if(P){const k=g(_,w,E.strictNumbers,a.Wrong);S.if(k,()=>{x.length?m(p,_,x):b(p)})}return P}Pt.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function d(p,_){return _?p.filter(S=>u.has(S)||_==="array"&&S==="array"):[]}function m(p,_,S){const{gen:w,data:E,opts:x}=p,P=w.let("dataType",(0,n._)`typeof ${E}`),k=w.let("coerced",(0,n._)`undefined`);x.coerceTypes==="array"&&w.if((0,n._)`${P} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>w.assign(E,(0,n._)`${E}[0]`).assign(P,(0,n._)`typeof ${E}`).if(g(_,E,x.strictNumbers),()=>w.assign(k,E))),w.if((0,n._)`${k} !== undefined`);for(const R of S)(u.has(R)||R==="array"&&x.coerceTypes==="array")&&M(R);w.else(),b(p),w.endIf(),w.if((0,n._)`${k} !== undefined`,()=>{w.assign(E,k),h(p,k)});function M(R){switch(R){case"string":w.elseIf((0,n._)`${P} == "number" || ${P} == "boolean"`).assign(k,(0,n._)`"" + ${E}`).elseIf((0,n._)`${E} === null`).assign(k,(0,n._)`""`);return;case"number":w.elseIf((0,n._)`${P} == "boolean" || ${E} === null
8
- || (${P} == "string" && ${E} && ${E} == +${E})`).assign(k,(0,n._)`+${E}`);return;case"integer":w.elseIf((0,n._)`${P} === "boolean" || ${E} === null
9
- || (${P} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(k,(0,n._)`+${E}`);return;case"boolean":w.elseIf((0,n._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(k,!1).elseIf((0,n._)`${E} === "true" || ${E} === 1`).assign(k,!0);return;case"null":w.elseIf((0,n._)`${E} === "" || ${E} === 0 || ${E} === false`),w.assign(k,null);return;case"array":w.elseIf((0,n._)`${P} === "string" || ${P} === "number"
10
- || ${P} === "boolean" || ${E} === null`).assign(k,(0,n._)`[${E}]`)}}}function h({gen:p,parentData:_,parentDataProperty:S},w){p.if((0,n._)`${_} !== undefined`,()=>p.assign((0,n._)`${_}[${S}]`,w))}function y(p,_,S,w=a.Correct){const E=w===a.Correct?n.operators.EQ:n.operators.NEQ;let x;switch(p){case"null":return(0,n._)`${_} ${E} null`;case"array":x=(0,n._)`Array.isArray(${_})`;break;case"object":x=(0,n._)`${_} && typeof ${_} == "object" && !Array.isArray(${_})`;break;case"integer":x=P((0,n._)`!(${_} % 1) && !isNaN(${_})`);break;case"number":x=P();break;default:return(0,n._)`typeof ${_} ${E} ${p}`}return w===a.Correct?x:(0,n.not)(x);function P(k=n.nil){return(0,n.and)((0,n._)`typeof ${_} == "number"`,k,S?(0,n._)`isFinite(${_})`:n.nil)}}Pt.checkDataType=y;function g(p,_,S,w){if(p.length===1)return y(p[0],_,S,w);let E;const x=(0,i.toHash)(p);if(x.array&&x.object){const P=(0,n._)`typeof ${_} != "object"`;E=x.null?P:(0,n._)`!${_} || ${P}`,delete x.null,delete x.array,delete x.object}else E=n.nil;x.number&&delete x.integer;for(const P in x)E=(0,n.and)(E,y(P,_,S,w));return E}Pt.checkDataTypes=g;const f={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:_})=>typeof p=="string"?(0,n._)`{type: ${p}}`:(0,n._)`{type: ${_}}`};function b(p){const _=v(p);(0,r.reportError)(_,f)}Pt.reportTypeError=b;function v(p){const{gen:_,data:S,schema:w}=p,E=(0,i.schemaRefOrVal)(p,w,"type");return{gen:_,keyword:"type",data:S,schema:w.type,schemaCode:E,schemaValue:E,parentSchema:w,params:{},it:p}}return Pt}var zn={},dh;function B0(){if(dh)return zn;dh=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.assignDefaults=void 0;const e=De(),t=Ge();function r(i,a){const{properties:l,items:s}=i.schema;if(a==="object"&&l)for(const c in l)n(i,c,l[c].default);else a==="array"&&Array.isArray(s)&&s.forEach((c,u)=>n(i,u,c.default))}zn.assignDefaults=r;function n(i,a,l){const{gen:s,compositeRule:c,data:u,opts:d}=i;if(l===void 0)return;const m=(0,e._)`${u}${(0,e.getProperty)(a)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${m}`);return}let h=(0,e._)`${m} === undefined`;d.useDefaults==="empty"&&(h=(0,e._)`${h} || ${m} === null || ${m} === ""`),s.if(h,(0,e._)`${m} = ${(0,e.stringify)(l)}`)}return zn}var ar={},tt={},fh;function sr(){if(fh)return tt;fh=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.validateUnion=tt.validateArray=tt.usePattern=tt.callValidateCode=tt.schemaProperties=tt.allSchemaProperties=tt.noPropertyInData=tt.propertyInData=tt.isOwnProperty=tt.hasPropFunc=tt.reportMissingProp=tt.checkMissingProp=tt.checkReportMissingProp=void 0;const e=De(),t=Ge(),r=Dr(),n=Ge();function i(p,_){const{gen:S,data:w,it:E}=p;S.if(d(S,w,_,E.opts.ownProperties),()=>{p.setParams({missingProperty:(0,e._)`${_}`},!0),p.error()})}tt.checkReportMissingProp=i;function a({gen:p,data:_,it:{opts:S}},w,E){return(0,e.or)(...w.map(x=>(0,e.and)(d(p,_,x,S.ownProperties),(0,e._)`${E} = ${x}`)))}tt.checkMissingProp=a;function l(p,_){p.setParams({missingProperty:_},!0),p.error()}tt.reportMissingProp=l;function s(p){return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}tt.hasPropFunc=s;function c(p,_,S){return(0,e._)`${s(p)}.call(${_}, ${S})`}tt.isOwnProperty=c;function u(p,_,S,w){const E=(0,e._)`${_}${(0,e.getProperty)(S)} !== undefined`;return w?(0,e._)`${E} && ${c(p,_,S)}`:E}tt.propertyInData=u;function d(p,_,S,w){const E=(0,e._)`${_}${(0,e.getProperty)(S)} === undefined`;return w?(0,e.or)(E,(0,e.not)(c(p,_,S))):E}tt.noPropertyInData=d;function m(p){return p?Object.keys(p).filter(_=>_!=="__proto__"):[]}tt.allSchemaProperties=m;function h(p,_){return m(_).filter(S=>!(0,t.alwaysValidSchema)(p,_[S]))}tt.schemaProperties=h;function y({schemaCode:p,data:_,it:{gen:S,topSchemaRef:w,schemaPath:E,errorPath:x},it:P},k,M,R){const O=R?(0,e._)`${p}, ${_}, ${w}${E}`:_,q=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,x)],[r.default.parentData,P.parentData],[r.default.parentDataProperty,P.parentDataProperty],[r.default.rootData,r.default.rootData]];P.opts.dynamicRef&&q.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const N=(0,e._)`${O}, ${S.object(...q)}`;return M!==e.nil?(0,e._)`${k}.call(${M}, ${N})`:(0,e._)`${k}(${N})`}tt.callValidateCode=y;const g=(0,e._)`new RegExp`;function f({gen:p,it:{opts:_}},S){const w=_.unicodeRegExp?"u":"",{regExp:E}=_.code,x=E(S,w);return p.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,e._)`${E.code==="new RegExp"?g:(0,n.useFunc)(p,E)}(${S}, ${w})`})}tt.usePattern=f;function b(p){const{gen:_,data:S,keyword:w,it:E}=p,x=_.name("valid");if(E.allErrors){const k=_.let("valid",!0);return P(()=>_.assign(k,!1)),k}return _.var(x,!0),P(()=>_.break()),x;function P(k){const M=_.const("len",(0,e._)`${S}.length`);_.forRange("i",0,M,R=>{p.subschema({keyword:w,dataProp:R,dataPropType:t.Type.Num},x),_.if((0,e.not)(x),k)})}}tt.validateArray=b;function v(p){const{gen:_,schema:S,keyword:w,it:E}=p;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(M=>(0,t.alwaysValidSchema)(E,M))&&!E.opts.unevaluated)return;const P=_.let("valid",!1),k=_.name("_valid");_.block(()=>S.forEach((M,R)=>{const O=p.subschema({keyword:w,schemaProp:R,compositeRule:!0},k);_.assign(P,(0,e._)`${P} || ${k}`),p.mergeValidEvaluated(O,k)||_.if((0,e.not)(P))})),p.result(P,()=>p.reset(),()=>p.error(!0))}return tt.validateUnion=v,tt}var ph;function U0(){if(ph)return ar;ph=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.validateKeywordUsage=ar.validSchemaType=ar.funcKeywordCode=ar.macroKeywordCode=void 0;const e=De(),t=Dr(),r=sr(),n=Lo();function i(h,y){const{gen:g,keyword:f,schema:b,parentSchema:v,it:p}=h,_=y.macro.call(p.self,b,v,p),S=u(g,f,_);p.opts.validateSchema!==!1&&p.self.validateSchema(_,!0);const w=g.name("valid");h.subschema({schema:_,schemaPath:e.nil,errSchemaPath:`${p.errSchemaPath}/${f}`,topSchemaRef:S,compositeRule:!0},w),h.pass(w,()=>h.error(!0))}ar.macroKeywordCode=i;function a(h,y){var g;const{gen:f,keyword:b,schema:v,parentSchema:p,$data:_,it:S}=h;c(S,y);const w=!_&&y.compile?y.compile.call(S.self,v,p,S):y.validate,E=u(f,b,w),x=f.let("valid");h.block$data(x,P),h.ok((g=y.valid)!==null&&g!==void 0?g:x);function P(){if(y.errors===!1)R(),y.modifying&&l(h),O(()=>h.error());else{const q=y.async?k():M();y.modifying&&l(h),O(()=>s(h,q))}}function k(){const q=f.let("ruleErrs",null);return f.try(()=>R((0,e._)`await `),N=>f.assign(x,!1).if((0,e._)`${N} instanceof ${S.ValidationError}`,()=>f.assign(q,(0,e._)`${N}.errors`),()=>f.throw(N))),q}function M(){const q=(0,e._)`${E}.errors`;return f.assign(q,null),R(e.nil),q}function R(q=y.async?(0,e._)`await `:e.nil){const N=S.opts.passContext?t.default.this:t.default.self,U=!("compile"in y&&!_||y.schema===!1);f.assign(x,(0,e._)`${q}${(0,r.callValidateCode)(h,E,N,U)}`,y.modifying)}function O(q){var N;f.if((0,e.not)((N=y.valid)!==null&&N!==void 0?N:x),q)}}ar.funcKeywordCode=a;function l(h){const{gen:y,data:g,it:f}=h;y.if(f.parentData,()=>y.assign(g,(0,e._)`${f.parentData}[${f.parentDataProperty}]`))}function s(h,y){const{gen:g}=h;g.if((0,e._)`Array.isArray(${y})`,()=>{g.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(h)},()=>h.error())}function c({schemaEnv:h},y){if(y.async&&!h.$async)throw new Error("async keyword in sync schema")}function u(h,y,g){if(g===void 0)throw new Error(`keyword "${y}" failed to compile`);return h.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,e.stringify)(g)})}function d(h,y,g=!1){return!y.length||y.some(f=>f==="array"?Array.isArray(h):f==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==f||g&&typeof h>"u")}ar.validSchemaType=d;function m({schema:h,opts:y,self:g,errSchemaPath:f},b,v){if(Array.isArray(b.keyword)?!b.keyword.includes(v):b.keyword!==v)throw new Error("ajv implementation error");const p=b.dependencies;if(p?.some(_=>!Object.prototype.hasOwnProperty.call(h,_)))throw new Error(`parent schema must have dependencies of ${v}: ${p.join(",")}`);if(b.validateSchema&&!b.validateSchema(h[v])){const S=`keyword "${v}" value is invalid at path "${f}": `+g.errorsText(b.validateSchema.errors);if(y.validateSchema==="log")g.logger.error(S);else throw new Error(S)}}return ar.validateKeywordUsage=m,ar}var Pr={},hh;function W0(){if(hh)return Pr;hh=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.extendSubschemaMode=Pr.extendSubschemaData=Pr.getSubschema=void 0;const e=De(),t=Ge();function r(a,{keyword:l,schemaProp:s,schema:c,schemaPath:u,errSchemaPath:d,topSchemaRef:m}){if(l!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const h=a.schema[l];return s===void 0?{schema:h,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${a.errSchemaPath}/${l}`}:{schema:h[s],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}${(0,e.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${l}/${(0,t.escapeFragment)(s)}`}}if(c!==void 0){if(u===void 0||d===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:m,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}Pr.getSubschema=r;function n(a,l,{dataProp:s,dataPropType:c,data:u,dataTypes:d,propertyName:m}){if(u!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=l;if(s!==void 0){const{errorPath:g,dataPathArr:f,opts:b}=l,v=h.let("data",(0,e._)`${l.data}${(0,e.getProperty)(s)}`,!0);y(v),a.errorPath=(0,e.str)`${g}${(0,t.getErrorPath)(s,c,b.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${s}`,a.dataPathArr=[...f,a.parentDataProperty]}if(u!==void 0){const g=u instanceof e.Name?u:h.let("data",u,!0);y(g),m!==void 0&&(a.propertyName=m)}d&&(a.dataTypes=d);function y(g){a.data=g,a.dataLevel=l.dataLevel+1,a.dataTypes=[],l.definedProperties=new Set,a.parentData=l.data,a.dataNames=[...l.dataNames,g]}}Pr.extendSubschemaData=n;function i(a,{jtdDiscriminator:l,jtdMetadata:s,compositeRule:c,createErrors:u,allErrors:d}){c!==void 0&&(a.compositeRule=c),u!==void 0&&(a.createErrors=u),d!==void 0&&(a.allErrors=d),a.jtdDiscriminator=l,a.jtdMetadata=s}return Pr.extendSubschemaMode=i,Pr}var Dt={},Ec,mh;function yh(){return mh||(mh=1,Ec=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var l=a[i];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}),Ec}var Oc={exports:{}},gh;function H0(){if(gh)return Oc.exports;gh=1;var e=Oc.exports=function(n,i,a){typeof i=="function"&&(a=i,i={}),a=i.cb||a;var l=typeof a=="function"?a:a.pre||function(){},s=a.post||function(){};t(i,l,s,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,i,a,l,s,c,u,d,m,h){if(l&&typeof l=="object"&&!Array.isArray(l)){i(l,s,c,u,d,m,h);for(var y in l){var g=l[y];if(Array.isArray(g)){if(y in e.arrayKeywords)for(var f=0;f<g.length;f++)t(n,i,a,g[f],s+"/"+y+"/"+f,c,s,y,l,f)}else if(y in e.propsKeywords){if(g&&typeof g=="object")for(var b in g)t(n,i,a,g[b],s+"/"+y+"/"+r(b),c,s,y,l,b)}else(y in e.keywords||n.allKeys&&!(y in e.skipKeywords))&&t(n,i,a,g,s+"/"+y,c,s,y,l)}a(l,s,c,u,d,m,h)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Oc.exports}var vh;function zo(){if(vh)return Dt;vh=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.getSchemaRefs=Dt.resolveUrl=Dt.normalizeId=Dt._getFullPath=Dt.getFullPath=Dt.inlineRef=void 0;const e=Ge(),t=yh(),r=H0(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(f,b=!0){return typeof f=="boolean"?!0:b===!0?!l(f):b?s(f)<=b:!1}Dt.inlineRef=i;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(f){for(const b in f){if(a.has(b))return!0;const v=f[b];if(Array.isArray(v)&&v.some(l)||typeof v=="object"&&l(v))return!0}return!1}function s(f){let b=0;for(const v in f){if(v==="$ref")return 1/0;if(b++,!n.has(v)&&(typeof f[v]=="object"&&(0,e.eachItem)(f[v],p=>b+=s(p)),b===1/0))return 1/0}return b}function c(f,b="",v){v!==!1&&(b=m(b));const p=f.parse(b);return u(f,p)}Dt.getFullPath=c;function u(f,b){return f.serialize(b).split("#")[0]+"#"}Dt._getFullPath=u;const d=/#\/?$/;function m(f){return f?f.replace(d,""):""}Dt.normalizeId=m;function h(f,b,v){return v=m(v),f.resolve(b,v)}Dt.resolveUrl=h;const y=/^[a-z_][-a-z0-9._]*$/i;function g(f,b){if(typeof f=="boolean")return{};const{schemaId:v,uriResolver:p}=this.opts,_=m(f[v]||b),S={"":_},w=c(p,_,!1),E={},x=new Set;return r(f,{allKeys:!0},(M,R,O,q)=>{if(q===void 0)return;const N=w+R;let U=S[q];typeof M[v]=="string"&&(U=W.call(this,M[v])),le.call(this,M.$anchor),le.call(this,M.$dynamicAnchor),S[R]=U;function W(ce){const ue=this.opts.uriResolver.resolve;if(ce=m(U?ue(U,ce):ce),x.has(ce))throw k(ce);x.add(ce);let z=this.refs[ce];return typeof z=="string"&&(z=this.refs[z]),typeof z=="object"?P(M,z.schema,ce):ce!==m(N)&&(ce[0]==="#"?(P(M,E[ce],ce),E[ce]=M):this.refs[ce]=N),ce}function le(ce){if(typeof ce=="string"){if(!y.test(ce))throw new Error(`invalid anchor "${ce}"`);W.call(this,`#${ce}`)}}}),E;function P(M,R,O){if(R!==void 0&&!t(M,R))throw k(O)}function k(M){return new Error(`reference "${M}" resolves to more than one schema`)}}return Dt.getSchemaRefs=g,Dt}var bh;function Vo(){if(bh)return Cr;bh=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.getData=Cr.KeywordCxt=Cr.validateFunctionCode=void 0;const e=V0(),t=Fo(),r=ch(),n=Fo(),i=B0(),a=U0(),l=W0(),s=De(),c=Dr(),u=zo(),d=Ge(),m=Lo();function h(L){if(w(L)&&(x(L),S(L))){b(L);return}y(L,()=>(0,e.topBoolOrEmptySchema)(L))}Cr.validateFunctionCode=h;function y({gen:L,validateName:I,schema:G,schemaEnv:X,opts:ne},he){ne.code.es5?L.func(I,(0,s._)`${c.default.data}, ${c.default.valCxt}`,X.$async,()=>{L.code((0,s._)`"use strict"; ${p(G,ne)}`),f(L,ne),L.code(he)}):L.func(I,(0,s._)`${c.default.data}, ${g(ne)}`,X.$async,()=>L.code(p(G,ne)).code(he))}function g(L){return(0,s._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${L.dynamicRef?(0,s._)`, ${c.default.dynamicAnchors}={}`:s.nil}}={}`}function f(L,I){L.if(c.default.valCxt,()=>{L.var(c.default.instancePath,(0,s._)`${c.default.valCxt}.${c.default.instancePath}`),L.var(c.default.parentData,(0,s._)`${c.default.valCxt}.${c.default.parentData}`),L.var(c.default.parentDataProperty,(0,s._)`${c.default.valCxt}.${c.default.parentDataProperty}`),L.var(c.default.rootData,(0,s._)`${c.default.valCxt}.${c.default.rootData}`),I.dynamicRef&&L.var(c.default.dynamicAnchors,(0,s._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{L.var(c.default.instancePath,(0,s._)`""`),L.var(c.default.parentData,(0,s._)`undefined`),L.var(c.default.parentDataProperty,(0,s._)`undefined`),L.var(c.default.rootData,c.default.data),I.dynamicRef&&L.var(c.default.dynamicAnchors,(0,s._)`{}`)})}function b(L){const{schema:I,opts:G,gen:X}=L;y(L,()=>{G.$comment&&I.$comment&&q(L),M(L),X.let(c.default.vErrors,null),X.let(c.default.errors,0),G.unevaluated&&v(L),P(L),N(L)})}function v(L){const{gen:I,validateName:G}=L;L.evaluated=I.const("evaluated",(0,s._)`${G}.evaluated`),I.if((0,s._)`${L.evaluated}.dynamicProps`,()=>I.assign((0,s._)`${L.evaluated}.props`,(0,s._)`undefined`)),I.if((0,s._)`${L.evaluated}.dynamicItems`,()=>I.assign((0,s._)`${L.evaluated}.items`,(0,s._)`undefined`))}function p(L,I){const G=typeof L=="object"&&L[I.schemaId];return G&&(I.code.source||I.code.process)?(0,s._)`/*# sourceURL=${G} */`:s.nil}function _(L,I){if(w(L)&&(x(L),S(L))){E(L,I);return}(0,e.boolOrEmptySchema)(L,I)}function S({schema:L,self:I}){if(typeof L=="boolean")return!L;for(const G in L)if(I.RULES.all[G])return!0;return!1}function w(L){return typeof L.schema!="boolean"}function E(L,I){const{schema:G,gen:X,opts:ne}=L;ne.$comment&&G.$comment&&q(L),R(L),O(L);const he=X.const("_errs",c.default.errors);P(L,he),X.var(I,(0,s._)`${he} === ${c.default.errors}`)}function x(L){(0,d.checkUnknownRules)(L),k(L)}function P(L,I){if(L.opts.jtd)return W(L,[],!1,I);const G=(0,t.getSchemaTypes)(L.schema),X=(0,t.coerceAndCheckDataType)(L,G);W(L,G,!X,I)}function k(L){const{schema:I,errSchemaPath:G,opts:X,self:ne}=L;I.$ref&&X.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(I,ne.RULES)&&ne.logger.warn(`$ref: keywords ignored in schema at path "${G}"`)}function M(L){const{schema:I,opts:G}=L;I.default!==void 0&&G.useDefaults&&G.strictSchema&&(0,d.checkStrictMode)(L,"default is ignored in the schema root")}function R(L){const I=L.schema[L.opts.schemaId];I&&(L.baseId=(0,u.resolveUrl)(L.opts.uriResolver,L.baseId,I))}function O(L){if(L.schema.$async&&!L.schemaEnv.$async)throw new Error("async schema in sync schema")}function q({gen:L,schemaEnv:I,schema:G,errSchemaPath:X,opts:ne}){const he=G.$comment;if(ne.$comment===!0)L.code((0,s._)`${c.default.self}.logger.log(${he})`);else if(typeof ne.$comment=="function"){const ve=(0,s.str)`${X}/$comment`,fe=L.scopeValue("root",{ref:I.root});L.code((0,s._)`${c.default.self}.opts.$comment(${he}, ${ve}, ${fe}.schema)`)}}function N(L){const{gen:I,schemaEnv:G,validateName:X,ValidationError:ne,opts:he}=L;G.$async?I.if((0,s._)`${c.default.errors} === 0`,()=>I.return(c.default.data),()=>I.throw((0,s._)`new ${ne}(${c.default.vErrors})`)):(I.assign((0,s._)`${X}.errors`,c.default.vErrors),he.unevaluated&&U(L),I.return((0,s._)`${c.default.errors} === 0`))}function U({gen:L,evaluated:I,props:G,items:X}){G instanceof s.Name&&L.assign((0,s._)`${I}.props`,G),X instanceof s.Name&&L.assign((0,s._)`${I}.items`,X)}function W(L,I,G,X){const{gen:ne,schema:he,data:ve,allErrors:fe,opts:Te,self:be}=L,{RULES:Ee}=be;if(he.$ref&&(Te.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(he,Ee))){ne.block(()=>K(L,"$ref",Ee.all.$ref.definition));return}Te.jtd||ce(L,I),ne.block(()=>{for(const $e of Ee.rules)ge($e);ge(Ee.post)});function ge($e){(0,r.shouldUseGroup)(he,$e)&&($e.type?(ne.if((0,n.checkDataType)($e.type,ve,Te.strictNumbers)),le(L,$e),I.length===1&&I[0]===$e.type&&G&&(ne.else(),(0,n.reportTypeError)(L)),ne.endIf()):le(L,$e),fe||ne.if((0,s._)`${c.default.errors} === ${X||0}`))}}function le(L,I){const{gen:G,schema:X,opts:{useDefaults:ne}}=L;ne&&(0,i.assignDefaults)(L,I.type),G.block(()=>{for(const he of I.rules)(0,r.shouldUseRule)(X,he)&&K(L,he.keyword,he.definition,I.type)})}function ce(L,I){L.schemaEnv.meta||!L.opts.strictTypes||(ue(L,I),L.opts.allowUnionTypes||z(L,I),C(L,L.dataTypes))}function ue(L,I){if(I.length){if(!L.dataTypes.length){L.dataTypes=I;return}I.forEach(G=>{A(L.dataTypes,G)||$(L,`type "${G}" not allowed by context "${L.dataTypes.join(",")}"`)}),T(L,I)}}function z(L,I){I.length>1&&!(I.length===2&&I.includes("null"))&&$(L,"use allowUnionTypes to allow union type keyword")}function C(L,I){const G=L.self.RULES.all;for(const X in G){const ne=G[X];if(typeof ne=="object"&&(0,r.shouldUseRule)(L.schema,ne)){const{type:he}=ne.definition;he.length&&!he.some(ve=>V(I,ve))&&$(L,`missing type "${he.join(",")}" for keyword "${X}"`)}}}function V(L,I){return L.includes(I)||I==="number"&&L.includes("integer")}function A(L,I){return L.includes(I)||I==="integer"&&L.includes("number")}function T(L,I){const G=[];for(const X of L.dataTypes)A(I,X)?G.push(X):I.includes("integer")&&X==="number"&&G.push("integer");L.dataTypes=G}function $(L,I){const G=L.schemaEnv.baseId+L.errSchemaPath;I+=` at "${G}" (strictTypes)`,(0,d.checkStrictMode)(L,I,L.opts.strictTypes)}class D{constructor(I,G,X){if((0,a.validateKeywordUsage)(I,G,X),this.gen=I.gen,this.allErrors=I.allErrors,this.keyword=X,this.data=I.data,this.schema=I.schema[X],this.$data=G.$data&&I.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(I,this.schema,X,this.$data),this.schemaType=G.schemaType,this.parentSchema=I.schema,this.params={},this.it=I,this.def=G,this.$data)this.schemaCode=I.gen.const("vSchema",te(this.$data,I));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,G.schemaType,G.allowUndefined))throw new Error(`${X} value must be ${JSON.stringify(G.schemaType)}`);("code"in G?G.trackErrors:G.errors!==!1)&&(this.errsCount=I.gen.const("_errs",c.default.errors))}result(I,G,X){this.failResult((0,s.not)(I),G,X)}failResult(I,G,X){this.gen.if(I),X?X():this.error(),G?(this.gen.else(),G(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(I,G){this.failResult((0,s.not)(I),void 0,G)}fail(I){if(I===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(I),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(I){if(!this.$data)return this.fail(I);const{schemaCode:G}=this;this.fail((0,s._)`${G} !== undefined && (${(0,s.or)(this.invalid$data(),I)})`)}error(I,G,X){if(G){this.setParams(G),this._error(I,X),this.setParams({});return}this._error(I,X)}_error(I,G){(I?m.reportExtraError:m.reportError)(this,this.def.error,G)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(I){this.allErrors||this.gen.if(I)}setParams(I,G){G?Object.assign(this.params,I):this.params=I}block$data(I,G,X=s.nil){this.gen.block(()=>{this.check$data(I,X),G()})}check$data(I=s.nil,G=s.nil){if(!this.$data)return;const{gen:X,schemaCode:ne,schemaType:he,def:ve}=this;X.if((0,s.or)((0,s._)`${ne} === undefined`,G)),I!==s.nil&&X.assign(I,!0),(he.length||ve.validateSchema)&&(X.elseIf(this.invalid$data()),this.$dataError(),I!==s.nil&&X.assign(I,!1)),X.else()}invalid$data(){const{gen:I,schemaCode:G,schemaType:X,def:ne,it:he}=this;return(0,s.or)(ve(),fe());function ve(){if(X.length){if(!(G instanceof s.Name))throw new Error("ajv implementation error");const Te=Array.isArray(X)?X:[X];return(0,s._)`${(0,n.checkDataTypes)(Te,G,he.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}function fe(){if(ne.validateSchema){const Te=I.scopeValue("validate$data",{ref:ne.validateSchema});return(0,s._)`!${Te}(${G})`}return s.nil}}subschema(I,G){const X=(0,l.getSubschema)(this.it,I);(0,l.extendSubschemaData)(X,this.it,I),(0,l.extendSubschemaMode)(X,I);const ne={...this.it,...X,items:void 0,props:void 0};return _(ne,G),ne}mergeEvaluated(I,G){const{it:X,gen:ne}=this;X.opts.unevaluated&&(X.props!==!0&&I.props!==void 0&&(X.props=d.mergeEvaluated.props(ne,I.props,X.props,G)),X.items!==!0&&I.items!==void 0&&(X.items=d.mergeEvaluated.items(ne,I.items,X.items,G)))}mergeValidEvaluated(I,G){const{it:X,gen:ne}=this;if(X.opts.unevaluated&&(X.props!==!0||X.items!==!0))return ne.if(G,()=>this.mergeEvaluated(I,s.Name)),!0}}Cr.KeywordCxt=D;function K(L,I,G,X){const ne=new D(L,G,I);"code"in G?G.code(ne,X):ne.$data&&G.validate?(0,a.funcKeywordCode)(ne,G):"macro"in G?(0,a.macroKeywordCode)(ne,G):(G.compile||G.validate)&&(0,a.funcKeywordCode)(ne,G)}const re=/^\/(?:[^~]|~0|~1)*$/,ie=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function te(L,{dataLevel:I,dataNames:G,dataPathArr:X}){let ne,he;if(L==="")return c.default.rootData;if(L[0]==="/"){if(!re.test(L))throw new Error(`Invalid JSON-pointer: ${L}`);ne=L,he=c.default.rootData}else{const be=ie.exec(L);if(!be)throw new Error(`Invalid JSON-pointer: ${L}`);const Ee=+be[1];if(ne=be[2],ne==="#"){if(Ee>=I)throw new Error(Te("property/index",Ee));return X[I-Ee]}if(Ee>I)throw new Error(Te("data",Ee));if(he=G[I-Ee],!ne)return he}let ve=he;const fe=ne.split("/");for(const be of fe)be&&(he=(0,s._)`${he}${(0,s.getProperty)((0,d.unescapeJsonPointer)(be))}`,ve=(0,s._)`${ve} && ${he}`);return ve;function Te(be,Ee){return`Cannot access ${be} ${Ee} levels up, current level is ${I}`}}return Cr.getData=te,Cr}var Bo={},_h;function xc(){if(_h)return Bo;_h=1,Object.defineProperty(Bo,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Bo.default=e,Bo}var Uo={},wh;function Wo(){if(wh)return Uo;wh=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=zo();class t extends Error{constructor(n,i,a,l){super(l||`can't resolve reference ${a} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Uo.default=t,Uo}var Wt={},Sh;function Cc(){if(Sh)return Wt;Sh=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.resolveSchema=Wt.getCompilingSchema=Wt.resolveRef=Wt.compileSchema=Wt.SchemaEnv=void 0;const e=De(),t=xc(),r=Dr(),n=zo(),i=Ge(),a=Vo();class l{constructor(v){var p;this.refs={},this.dynamicAnchors={};let _;typeof v.schema=="object"&&(_=v.schema),this.schema=v.schema,this.schemaId=v.schemaId,this.root=v.root||this,this.baseId=(p=v.baseId)!==null&&p!==void 0?p:(0,n.normalizeId)(_?.[v.schemaId||"$id"]),this.schemaPath=v.schemaPath,this.localRefs=v.localRefs,this.meta=v.meta,this.$async=_?.$async,this.refs={}}}Wt.SchemaEnv=l;function s(b){const v=d.call(this,b);if(v)return v;const p=(0,n.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:_,lines:S}=this.opts.code,{ownProperties:w}=this.opts,E=new e.CodeGen(this.scope,{es5:_,lines:S,ownProperties:w});let x;b.$async&&(x=E.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const P=E.scopeName("validate");b.validateName=P;const k={gen:E,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:E.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,e.stringify)(b.schema)}:{ref:b.schema}),validateName:P,ValidationError:x,schema:b.schema,schemaEnv:b,rootId:p,baseId:b.baseId||p,schemaPath:e.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let M;try{this._compilations.add(b),(0,a.validateFunctionCode)(k),E.optimize(this.opts.code.optimize);const R=E.toString();M=`${E.scopeRefs(r.default.scope)}return ${R}`,this.opts.code.process&&(M=this.opts.code.process(M,b));const q=new Function(`${r.default.self}`,`${r.default.scope}`,M)(this,this.scope.get());if(this.scope.value(P,{ref:q}),q.errors=null,q.schema=b.schema,q.schemaEnv=b,b.$async&&(q.$async=!0),this.opts.code.source===!0&&(q.source={validateName:P,validateCode:R,scopeValues:E._values}),this.opts.unevaluated){const{props:N,items:U}=k;q.evaluated={props:N instanceof e.Name?void 0:N,items:U instanceof e.Name?void 0:U,dynamicProps:N instanceof e.Name,dynamicItems:U instanceof e.Name},q.source&&(q.source.evaluated=(0,e.stringify)(q.evaluated))}return b.validate=q,b}catch(R){throw delete b.validate,delete b.validateName,M&&this.logger.error("Error compiling schema, function code:",M),R}finally{this._compilations.delete(b)}}Wt.compileSchema=s;function c(b,v,p){var _;p=(0,n.resolveUrl)(this.opts.uriResolver,v,p);const S=b.refs[p];if(S)return S;let w=h.call(this,b,p);if(w===void 0){const E=(_=b.localRefs)===null||_===void 0?void 0:_[p],{schemaId:x}=this.opts;E&&(w=new l({schema:E,schemaId:x,root:b,baseId:v}))}if(w!==void 0)return b.refs[p]=u.call(this,w)}Wt.resolveRef=c;function u(b){return(0,n.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:s.call(this,b)}function d(b){for(const v of this._compilations)if(m(v,b))return v}Wt.getCompilingSchema=d;function m(b,v){return b.schema===v.schema&&b.root===v.root&&b.baseId===v.baseId}function h(b,v){let p;for(;typeof(p=this.refs[v])=="string";)v=p;return p||this.schemas[v]||y.call(this,b,v)}function y(b,v){const p=this.opts.uriResolver.parse(v),_=(0,n._getFullPath)(this.opts.uriResolver,p);let S=(0,n.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&_===S)return f.call(this,p,b);const w=(0,n.normalizeId)(_),E=this.refs[w]||this.schemas[w];if(typeof E=="string"){const x=y.call(this,b,E);return typeof x?.schema!="object"?void 0:f.call(this,p,x)}if(typeof E?.schema=="object"){if(E.validate||s.call(this,E),w===(0,n.normalizeId)(v)){const{schema:x}=E,{schemaId:P}=this.opts,k=x[P];return k&&(S=(0,n.resolveUrl)(this.opts.uriResolver,S,k)),new l({schema:x,schemaId:P,root:b,baseId:S})}return f.call(this,p,E)}}Wt.resolveSchema=y;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function f(b,{baseId:v,schema:p,root:_}){var S;if(((S=b.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const x of b.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const P=p[(0,i.unescapeFragment)(x)];if(P===void 0)return;p=P;const k=typeof p=="object"&&p[this.opts.schemaId];!g.has(x)&&k&&(v=(0,n.resolveUrl)(this.opts.uriResolver,v,k))}let w;if(typeof p!="boolean"&&p.$ref&&!(0,i.schemaHasRulesButRef)(p,this.RULES)){const x=(0,n.resolveUrl)(this.opts.uriResolver,v,p.$ref);w=y.call(this,_,x)}const{schemaId:E}=this.opts;if(w=w||new l({schema:p,schemaId:E,root:_,baseId:v}),w.schema!==w.root.schema)return w}return Wt}const K0={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Ho={},Vn={exports:{}},Tc,Eh;function Oh(){if(Eh)return Tc;Eh=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(h){let y="",g=0,f=0;for(f=0;f<h.length;f++)if(g=h[f].charCodeAt(0),g!==48){if(!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";y+=h[f];break}for(f+=1;f<h.length;f++){if(g=h[f].charCodeAt(0),!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";y+=h[f]}return y}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function i(h){return h.length=0,!0}function a(h,y,g){if(h.length){const f=r(h);if(f!=="")y.push(f);else return g.error=!0,!1;h.length=0}return!0}function l(h){let y=0;const g={error:!1,address:"",zone:""},f=[],b=[];let v=!1,p=!1,_=a;for(let S=0;S<h.length;S++){const w=h[S];if(!(w==="["||w==="]"))if(w===":"){if(v===!0&&(p=!0),!_(b,f,g))break;if(++y>7){g.error=!0;break}S>0&&h[S-1]===":"&&(v=!0),f.push(":");continue}else if(w==="%"){if(!_(b,f,g))break;_=i}else{b.push(w);continue}}return b.length&&(_===i?g.zone=b.join(""):p?f.push(b.join("")):f.push(r(b))),g.address=f.join(""),g}function s(h){if(c(h,":")<2)return{host:h,isIPV6:!1};const y=l(h);if(y.error)return{host:h,isIPV6:!1};{let g=y.address,f=y.address;return y.zone&&(g+="%"+y.zone,f+="%25"+y.zone),{host:g,isIPV6:!0,escapedHost:f}}}function c(h,y){let g=0;for(let f=0;f<h.length;f++)h[f]===y&&g++;return g}function u(h){let y=h;const g=[];let f=-1,b=0;for(;b=y.length;){if(b===1){if(y===".")break;if(y==="/"){g.push("/");break}else{g.push(y);break}}else if(b===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){g.push("/");break}}else if(b===3&&y==="/.."){g.length!==0&&g.pop(),g.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),g.length!==0&&g.pop();continue}}if((f=y.indexOf("/",1))===-1){g.push(y);break}else g.push(y.slice(0,f)),y=y.slice(f)}return g.join("")}function d(h,y){const g=y!==!0?escape:unescape;return h.scheme!==void 0&&(h.scheme=g(h.scheme)),h.userinfo!==void 0&&(h.userinfo=g(h.userinfo)),h.host!==void 0&&(h.host=g(h.host)),h.path!==void 0&&(h.path=g(h.path)),h.query!==void 0&&(h.query=g(h.query)),h.fragment!==void 0&&(h.fragment=g(h.fragment)),h}function m(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let g=unescape(h.host);if(!t(g)){const f=s(g);f.isIPV6===!0?g=`[${f.escapedHost}]`:g=h.host}y.push(g)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return Tc={nonSimpleDomain:n,recomposeAuthority:m,normalizeComponentEncoding:d,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:s,stringArrayToHexStripped:r},Tc}var Pc,xh;function G0(){if(xh)return Pc;xh=1;const{isUUID:e}=Oh(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(w){return r.indexOf(w)!==-1}function i(w){return w.secure===!0?!0:w.secure===!1?!1:w.scheme?w.scheme.length===3&&(w.scheme[0]==="w"||w.scheme[0]==="W")&&(w.scheme[1]==="s"||w.scheme[1]==="S")&&(w.scheme[2]==="s"||w.scheme[2]==="S"):!1}function a(w){return w.host||(w.error=w.error||"HTTP URIs must have a host."),w}function l(w){const E=String(w.scheme).toLowerCase()==="https";return(w.port===(E?443:80)||w.port==="")&&(w.port=void 0),w.path||(w.path="/"),w}function s(w){return w.secure=i(w),w.resourceName=(w.path||"/")+(w.query?"?"+w.query:""),w.path=void 0,w.query=void 0,w}function c(w){if((w.port===(i(w)?443:80)||w.port==="")&&(w.port=void 0),typeof w.secure=="boolean"&&(w.scheme=w.secure?"wss":"ws",w.secure=void 0),w.resourceName){const[E,x]=w.resourceName.split("?");w.path=E&&E!=="/"?E:void 0,w.query=x,w.resourceName=void 0}return w.fragment=void 0,w}function u(w,E){if(!w.path)return w.error="URN can not be parsed",w;const x=w.path.match(t);if(x){const P=E.scheme||w.scheme||"urn";w.nid=x[1].toLowerCase(),w.nss=x[2];const k=`${P}:${E.nid||w.nid}`,M=S(k);w.path=void 0,M&&(w=M.parse(w,E))}else w.error=w.error||"URN can not be parsed.";return w}function d(w,E){if(w.nid===void 0)throw new Error("URN without nid cannot be serialized");const x=E.scheme||w.scheme||"urn",P=w.nid.toLowerCase(),k=`${x}:${E.nid||P}`,M=S(k);M&&(w=M.serialize(w,E));const R=w,O=w.nss;return R.path=`${P||E.nid}:${O}`,E.skipEscape=!0,R}function m(w,E){const x=w;return x.uuid=x.nss,x.nss=void 0,!E.tolerant&&(!x.uuid||!e(x.uuid))&&(x.error=x.error||"UUID is not valid."),x}function h(w){const E=w;return E.nss=(w.uuid||"").toLowerCase(),E}const y={scheme:"http",domainHost:!0,parse:a,serialize:l},g={scheme:"https",domainHost:y.domainHost,parse:a,serialize:l},f={scheme:"ws",domainHost:!0,parse:s,serialize:c},b={scheme:"wss",domainHost:f.domainHost,parse:f.parse,serialize:f.serialize},_={http:y,https:g,ws:f,wss:b,urn:{scheme:"urn",parse:u,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:m,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(_,null);function S(w){return w&&(_[w]||_[w.toLowerCase()])||void 0}return Pc={wsIsSecure:i,SCHEMES:_,isValidSchemeName:n,getSchemeHandler:S},Pc}var Ch;function Y0(){if(Ch)return Vn.exports;Ch=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizeComponentEncoding:n,isIPv4:i,nonSimpleDomain:a}=Oh(),{SCHEMES:l,getSchemeHandler:s}=G0();function c(b,v){return typeof b=="string"?b=h(g(b,v),v):typeof b=="object"&&(b=g(h(b,v),v)),b}function u(b,v,p){const _=p?Object.assign({scheme:"null"},p):{scheme:"null"},S=d(g(b,_),g(v,_),_,!0);return _.skipEscape=!0,h(S,_)}function d(b,v,p,_){const S={};return _||(b=g(h(b,p),p),v=g(h(v,p),p)),p=p||{},!p.tolerant&&v.scheme?(S.scheme=v.scheme,S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.path?(v.path[0]==="/"?S.path=t(v.path):((b.userinfo!==void 0||b.host!==void 0||b.port!==void 0)&&!b.path?S.path="/"+v.path:b.path?S.path=b.path.slice(0,b.path.lastIndexOf("/")+1)+v.path:S.path=v.path,S.path=t(S.path)),S.query=v.query):(S.path=b.path,v.query!==void 0?S.query=v.query:S.query=b.query),S.userinfo=b.userinfo,S.host=b.host,S.port=b.port),S.scheme=b.scheme),S.fragment=v.fragment,S}function m(b,v,p){return typeof b=="string"?(b=unescape(b),b=h(n(g(b,p),!0),{...p,skipEscape:!0})):typeof b=="object"&&(b=h(n(b,!0),{...p,skipEscape:!0})),typeof v=="string"?(v=unescape(v),v=h(n(g(v,p),!0),{...p,skipEscape:!0})):typeof v=="object"&&(v=h(n(v,!0),{...p,skipEscape:!0})),b.toLowerCase()===v.toLowerCase()}function h(b,v){const p={host:b.host,scheme:b.scheme,userinfo:b.userinfo,port:b.port,path:b.path,query:b.query,nid:b.nid,nss:b.nss,uuid:b.uuid,fragment:b.fragment,reference:b.reference,resourceName:b.resourceName,secure:b.secure,error:""},_=Object.assign({},v),S=[],w=s(_.scheme||p.scheme);w&&w.serialize&&w.serialize(p,_),p.path!==void 0&&(_.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").join(":")))),_.reference!=="suffix"&&p.scheme&&S.push(p.scheme,":");const E=r(p);if(E!==void 0&&(_.reference!=="suffix"&&S.push("//"),S.push(E),p.path&&p.path[0]!=="/"&&S.push("/")),p.path!==void 0){let x=p.path;!_.absolutePath&&(!w||!w.absolutePath)&&(x=t(x)),E===void 0&&x[0]==="/"&&x[1]==="/"&&(x="/%2F"+x.slice(2)),S.push(x)}return p.query!==void 0&&S.push("?",p.query),p.fragment!==void 0&&S.push("#",p.fragment),S.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(b,v){const p=Object.assign({},v),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let S=!1;p.reference==="suffix"&&(p.scheme?b=p.scheme+":"+b:b="//"+b);const w=b.match(y);if(w){if(_.scheme=w[1],_.userinfo=w[3],_.host=w[4],_.port=parseInt(w[5],10),_.path=w[6]||"",_.query=w[7],_.fragment=w[8],isNaN(_.port)&&(_.port=w[5]),_.host)if(i(_.host)===!1){const P=e(_.host);_.host=P.host.toLowerCase(),S=P.isIPV6}else S=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",p.reference&&p.reference!=="suffix"&&p.reference!==_.reference&&(_.error=_.error||"URI is not a "+p.reference+" reference.");const E=s(p.scheme||_.scheme);if(!p.unicodeSupport&&(!E||!E.unicodeSupport)&&_.host&&(p.domainHost||E&&E.domainHost)&&S===!1&&a(_.host))try{_.host=URL.domainToASCII(_.host.toLowerCase())}catch(x){_.error=_.error||"Host's domain name can not be converted to ASCII: "+x}(!E||E&&!E.skipNormalize)&&(b.indexOf("%")!==-1&&(_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),_.host!==void 0&&(_.host=unescape(_.host))),_.path&&(_.path=escape(unescape(_.path))),_.fragment&&(_.fragment=encodeURI(decodeURIComponent(_.fragment)))),E&&E.parse&&E.parse(_,p)}else _.error=_.error||"URI can not be parsed.";return _}const f={SCHEMES:l,normalize:c,resolve:u,resolveComponent:d,equal:m,serialize:h,parse:g};return Vn.exports=f,Vn.exports.default=f,Vn.exports.fastUri=f,Vn.exports}var Th;function J0(){if(Th)return Ho;Th=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=Y0();return e.code='require("ajv/dist/runtime/uri").default',Ho.default=e,Ho}var Ph;function X0(){return Ph||(Ph=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Vo();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=De();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=xc(),i=Wo(),a=sh(),l=Cc(),s=De(),c=zo(),u=Fo(),d=Ge(),m=K0,h=J0(),y=(z,C)=>new RegExp(z,C);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],f=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function _(z){var C,V,A,T,$,D,K,re,ie,te,L,I,G,X,ne,he,ve,fe,Te,be,Ee,ge,$e,Ie,ot;const Qe=z.strict,_t=(C=z.code)===null||C===void 0?void 0:C.optimize,et=_t===!0||_t===void 0?1:_t||0,Tt=(A=(V=z.code)===null||V===void 0?void 0:V.regExp)!==null&&A!==void 0?A:y,Je=(T=z.uriResolver)!==null&&T!==void 0?T:h.default;return{strictSchema:(D=($=z.strictSchema)!==null&&$!==void 0?$:Qe)!==null&&D!==void 0?D:!0,strictNumbers:(re=(K=z.strictNumbers)!==null&&K!==void 0?K:Qe)!==null&&re!==void 0?re:!0,strictTypes:(te=(ie=z.strictTypes)!==null&&ie!==void 0?ie:Qe)!==null&&te!==void 0?te:"log",strictTuples:(I=(L=z.strictTuples)!==null&&L!==void 0?L:Qe)!==null&&I!==void 0?I:"log",strictRequired:(X=(G=z.strictRequired)!==null&&G!==void 0?G:Qe)!==null&&X!==void 0?X:!1,code:z.code?{...z.code,optimize:et,regExp:Tt}:{optimize:et,regExp:Tt},loopRequired:(ne=z.loopRequired)!==null&&ne!==void 0?ne:p,loopEnum:(he=z.loopEnum)!==null&&he!==void 0?he:p,meta:(ve=z.meta)!==null&&ve!==void 0?ve:!0,messages:(fe=z.messages)!==null&&fe!==void 0?fe:!0,inlineRefs:(Te=z.inlineRefs)!==null&&Te!==void 0?Te:!0,schemaId:(be=z.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(Ee=z.addUsedSchema)!==null&&Ee!==void 0?Ee:!0,validateSchema:(ge=z.validateSchema)!==null&&ge!==void 0?ge:!0,validateFormats:($e=z.validateFormats)!==null&&$e!==void 0?$e:!0,unicodeRegExp:(Ie=z.unicodeRegExp)!==null&&Ie!==void 0?Ie:!0,int32range:(ot=z.int32range)!==null&&ot!==void 0?ot:!0,uriResolver:Je}}class S{constructor(C={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,C=this.opts={...C,..._(C)};const{es5:V,lines:A}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:f,es5:V,lines:A}),this.logger=O(C.logger);const T=C.validateFormats;C.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,b,C,"NOT SUPPORTED"),w.call(this,v,C,"DEPRECATED","warn"),this._metaOpts=M.call(this),C.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),C.keywords&&k.call(this,C.keywords),typeof C.meta=="object"&&this.addMetaSchema(C.meta),x.call(this),C.validateFormats=T}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:C,meta:V,schemaId:A}=this.opts;let T=m;A==="id"&&(T={...m},T.id=T.$id,delete T.$id),V&&C&&this.addMetaSchema(T,T[A],!1)}defaultMeta(){const{meta:C,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof C=="object"?C[V]||C:void 0}validate(C,V){let A;if(typeof C=="string"){if(A=this.getSchema(C),!A)throw new Error(`no schema with key or ref "${C}"`)}else A=this.compile(C);const T=A(V);return"$async"in A||(this.errors=A.errors),T}compile(C,V){const A=this._addSchema(C,V);return A.validate||this._compileSchemaEnv(A)}compileAsync(C,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:A}=this.opts;return T.call(this,C,V);async function T(te,L){await $.call(this,te.$schema);const I=this._addSchema(te,L);return I.validate||D.call(this,I)}async function $(te){te&&!this.getSchema(te)&&await T.call(this,{$ref:te},!0)}async function D(te){try{return this._compileSchemaEnv(te)}catch(L){if(!(L instanceof i.default))throw L;return K.call(this,L),await re.call(this,L.missingSchema),D.call(this,te)}}function K({missingSchema:te,missingRef:L}){if(this.refs[te])throw new Error(`AnySchema ${te} is loaded but ${L} cannot be resolved`)}async function re(te){const L=await ie.call(this,te);this.refs[te]||await $.call(this,L.$schema),this.refs[te]||this.addSchema(L,te,V)}async function ie(te){const L=this._loading[te];if(L)return L;try{return await(this._loading[te]=A(te))}finally{delete this._loading[te]}}}addSchema(C,V,A,T=this.opts.validateSchema){if(Array.isArray(C)){for(const D of C)this.addSchema(D,void 0,A,T);return this}let $;if(typeof C=="object"){const{schemaId:D}=this.opts;if($=C[D],$!==void 0&&typeof $!="string")throw new Error(`schema ${D} must be string`)}return V=(0,c.normalizeId)(V||$),this._checkUnique(V),this.schemas[V]=this._addSchema(C,A,V,T,!0),this}addMetaSchema(C,V,A=this.opts.validateSchema){return this.addSchema(C,V,!0,A),this}validateSchema(C,V){if(typeof C=="boolean")return!0;let A;if(A=C.$schema,A!==void 0&&typeof A!="string")throw new Error("$schema must be a string");if(A=A||this.opts.defaultMeta||this.defaultMeta(),!A)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const T=this.validate(A,C);if(!T&&V){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return T}getSchema(C){let V;for(;typeof(V=E.call(this,C))=="string";)C=V;if(V===void 0){const{schemaId:A}=this.opts,T=new l.SchemaEnv({schema:{},schemaId:A});if(V=l.resolveSchema.call(this,T,C),!V)return;this.refs[C]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(C){if(C instanceof RegExp)return this._removeAllSchemas(this.schemas,C),this._removeAllSchemas(this.refs,C),this;switch(typeof C){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=E.call(this,C);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[C],delete this.refs[C],this}case"object":{const V=C;this._cache.delete(V);let A=C[this.opts.schemaId];return A&&(A=(0,c.normalizeId)(A),delete this.schemas[A],delete this.refs[A]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(C){for(const V of C)this.addKeyword(V);return this}addKeyword(C,V){let A;if(typeof C=="string")A=C,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=A);else if(typeof C=="object"&&V===void 0){if(V=C,A=V.keyword,Array.isArray(A)&&!A.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(N.call(this,A,V),!V)return(0,d.eachItem)(A,$=>U.call(this,$)),this;le.call(this,V);const T={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,d.eachItem)(A,T.type.length===0?$=>U.call(this,$,T):$=>T.type.forEach(D=>U.call(this,$,T,D))),this}getKeyword(C){const V=this.RULES.all[C];return typeof V=="object"?V.definition:!!V}removeKeyword(C){const{RULES:V}=this;delete V.keywords[C],delete V.all[C];for(const A of V.rules){const T=A.rules.findIndex($=>$.keyword===C);T>=0&&A.rules.splice(T,1)}return this}addFormat(C,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[C]=V,this}errorsText(C=this.errors,{separator:V=", ",dataVar:A="data"}={}){return!C||C.length===0?"No errors":C.map(T=>`${A}${T.instancePath} ${T.message}`).reduce((T,$)=>T+V+$)}$dataMetaSchema(C,V){const A=this.RULES.all;C=JSON.parse(JSON.stringify(C));for(const T of V){const $=T.split("/").slice(1);let D=C;for(const K of $)D=D[K];for(const K in A){const re=A[K];if(typeof re!="object")continue;const{$data:ie}=re.definition,te=D[K];ie&&te&&(D[K]=ue(te))}}return C}_removeAllSchemas(C,V){for(const A in C){const T=C[A];(!V||V.test(A))&&(typeof T=="string"?delete C[A]:T&&!T.meta&&(this._cache.delete(T.schema),delete C[A]))}}_addSchema(C,V,A,T=this.opts.validateSchema,$=this.opts.addUsedSchema){let D;const{schemaId:K}=this.opts;if(typeof C=="object")D=C[K];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof C!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(C);if(re!==void 0)return re;A=(0,c.normalizeId)(D||A);const ie=c.getSchemaRefs.call(this,C,A);return re=new l.SchemaEnv({schema:C,schemaId:K,meta:V,baseId:A,localRefs:ie}),this._cache.set(re.schema,re),$&&!A.startsWith("#")&&(A&&this._checkUnique(A),this.refs[A]=re),T&&this.validateSchema(C,!0),re}_checkUnique(C){if(this.schemas[C]||this.refs[C])throw new Error(`schema with key or id "${C}" already exists`)}_compileSchemaEnv(C){if(C.meta?this._compileMetaSchema(C):l.compileSchema.call(this,C),!C.validate)throw new Error("ajv implementation error");return C.validate}_compileMetaSchema(C){const V=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,C)}finally{this.opts=V}}}S.ValidationError=n.default,S.MissingRefError=i.default,e.default=S;function w(z,C,V,A="error"){for(const T in z){const $=T;$ in C&&this.logger[A](`${V}: option ${T}. ${z[$]}`)}}function E(z){return z=(0,c.normalizeId)(z),this.schemas[z]||this.refs[z]}function x(){const z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(const C in z)this.addSchema(z[C],C)}function P(){for(const z in this.opts.formats){const C=this.opts.formats[z];C&&this.addFormat(z,C)}}function k(z){if(Array.isArray(z)){this.addVocabulary(z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const C in z){const V=z[C];V.keyword||(V.keyword=C),this.addKeyword(V)}}function M(){const z={...this.opts};for(const C of g)delete z[C];return z}const R={log(){},warn(){},error(){}};function O(z){if(z===!1)return R;if(z===void 0)return console;if(z.log&&z.warn&&z.error)return z;throw new Error("logger must implement log, warn and error methods")}const q=/^[a-z_$][a-z0-9_$:-]*$/i;function N(z,C){const{RULES:V}=this;if((0,d.eachItem)(z,A=>{if(V.keywords[A])throw new Error(`Keyword ${A} is already defined`);if(!q.test(A))throw new Error(`Keyword ${A} has invalid name`)}),!!C&&C.$data&&!("code"in C||"validate"in C))throw new Error('$data keyword must have "code" or "validate" function')}function U(z,C,V){var A;const T=C?.post;if(V&&T)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let D=T?$.post:$.rules.find(({type:re})=>re===V);if(D||(D={type:V,rules:[]},$.rules.push(D)),$.keywords[z]=!0,!C)return;const K={keyword:z,definition:{...C,type:(0,u.getJSONTypes)(C.type),schemaType:(0,u.getJSONTypes)(C.schemaType)}};C.before?W.call(this,D,K,C.before):D.rules.push(K),$.all[z]=K,(A=C.implements)===null||A===void 0||A.forEach(re=>this.addKeyword(re))}function W(z,C,V){const A=z.rules.findIndex(T=>T.keyword===V);A>=0?z.rules.splice(A,0,C):(z.rules.push(C),this.logger.warn(`rule ${V} is not defined`))}function le(z){let{metaSchema:C}=z;C!==void 0&&(z.$data&&this.opts.$data&&(C=ue(C)),z.validateSchema=this.compile(C,!0))}const ce={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ue(z){return{anyOf:[z,ce]}}})(vc)),vc}var Ko={},Go={},Yo={},$h;function Z0(){if($h)return Yo;$h=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Yo.default=e,Yo}var qr={},Rh;function Q0(){if(Rh)return qr;Rh=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.callRef=qr.getValidate=void 0;const e=Wo(),t=sr(),r=De(),n=Dr(),i=Cc(),a=Ge(),l={keyword:"$ref",schemaType:"string",code(u){const{gen:d,schema:m,it:h}=u,{baseId:y,schemaEnv:g,validateName:f,opts:b,self:v}=h,{root:p}=g;if((m==="#"||m==="#/")&&y===p.baseId)return S();const _=i.resolveRef.call(v,p,y,m);if(_===void 0)throw new e.default(h.opts.uriResolver,y,m);if(_ instanceof i.SchemaEnv)return w(_);return E(_);function S(){if(g===p)return c(u,f,g,g.$async);const x=d.scopeValue("root",{ref:p});return c(u,(0,r._)`${x}.validate`,p,p.$async)}function w(x){const P=s(u,x);c(u,P,x,x.$async)}function E(x){const P=d.scopeValue("schema",b.code.source===!0?{ref:x,code:(0,r.stringify)(x)}:{ref:x}),k=d.name("valid"),M=u.subschema({schema:x,dataTypes:[],schemaPath:r.nil,topSchemaRef:P,errSchemaPath:m},k);u.mergeEvaluated(M),u.ok(k)}}};function s(u,d){const{gen:m}=u;return d.validate?m.scopeValue("validate",{ref:d.validate}):(0,r._)`${m.scopeValue("wrapper",{ref:d})}.validate`}qr.getValidate=s;function c(u,d,m,h){const{gen:y,it:g}=u,{allErrors:f,schemaEnv:b,opts:v}=g,p=v.passContext?n.default.this:r.nil;h?_():S();function _(){if(!b.$async)throw new Error("async schema referenced by sync schema");const x=y.let("valid");y.try(()=>{y.code((0,r._)`await ${(0,t.callValidateCode)(u,d,p)}`),E(d),f||y.assign(x,!0)},P=>{y.if((0,r._)`!(${P} instanceof ${g.ValidationError})`,()=>y.throw(P)),w(P),f||y.assign(x,!1)}),u.ok(x)}function S(){u.result((0,t.callValidateCode)(u,d,p),()=>E(d),()=>w(d))}function w(x){const P=(0,r._)`${x}.errors`;y.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${P} : ${n.default.vErrors}.concat(${P})`),y.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function E(x){var P;if(!g.opts.unevaluated)return;const k=(P=m?.validate)===null||P===void 0?void 0:P.evaluated;if(g.props!==!0)if(k&&!k.dynamicProps)k.props!==void 0&&(g.props=a.mergeEvaluated.props(y,k.props,g.props));else{const M=y.var("props",(0,r._)`${x}.evaluated.props`);g.props=a.mergeEvaluated.props(y,M,g.props,r.Name)}if(g.items!==!0)if(k&&!k.dynamicItems)k.items!==void 0&&(g.items=a.mergeEvaluated.items(y,k.items,g.items));else{const M=y.var("items",(0,r._)`${x}.evaluated.items`);g.items=a.mergeEvaluated.items(y,M,g.items,r.Name)}}}return qr.callRef=c,qr.default=l,qr}var kh;function e_(){if(kh)return Go;kh=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Z0(),t=Q0(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Go.default=r,Go}var Jo={},Xo={},Ih;function t_(){if(Ih)return Xo;Ih=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=De(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:a,schemaCode:l})=>(0,e.str)`must be ${r[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>(0,e._)`{comparison: ${r[a].okStr}, limit: ${l}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{keyword:l,data:s,schemaCode:c}=a;a.fail$data((0,e._)`${s} ${r[l].fail} ${c} || isNaN(${s})`)}};return Xo.default=i,Xo}var Zo={},jh;function r_(){if(jh)return Zo;jh=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=De(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:a,schemaCode:l,it:s}=n,c=s.opts.multipleOfPrecision,u=i.let("res"),d=c?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,e._)`${u} !== parseInt(${u})`;n.fail$data((0,e._)`(${l} === 0 || (${u} = ${a}/${l}, ${d}))`)}};return Zo.default=r,Zo}var Qo={},ei={},Nh;function n_(){if(Nh)return ei;Nh=1,Object.defineProperty(ei,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,a;for(;i<r;)n++,a=t.charCodeAt(i++),a>=55296&&a<=56319&&i<r&&(a=t.charCodeAt(i),(a&64512)===56320&&i++);return n}return ei.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',ei}var Ah;function o_(){if(Ah)return Qo;Ah=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=De(),t=Ge(),r=n_(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:l}){const s=a==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${l} characters`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:l,data:s,schemaCode:c,it:u}=a,d=l==="maxLength"?e.operators.GT:e.operators.LT,m=u.opts.unicode===!1?(0,e._)`${s}.length`:(0,e._)`${(0,t.useFunc)(a.gen,r.default)}(${s})`;a.fail$data((0,e._)`${m} ${d} ${c}`)}};return Qo.default=i,Qo}var ti={},Mh;function i_(){if(Mh)return ti;Mh=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=sr(),t=De(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,t.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,t._)`{pattern: ${i}}`},code(i){const{data:a,$data:l,schema:s,schemaCode:c,it:u}=i,d=u.opts.unicodeRegExp?"u":"",m=l?(0,t._)`(new RegExp(${c}, ${d}))`:(0,e.usePattern)(i,s);i.fail$data((0,t._)`!${m}.test(${a})`)}};return ti.default=n,ti}var ri={},Dh;function a_(){if(Dh)return ri;Dh=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=De(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:l}=n,s=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${a}).length ${s} ${l}`)}};return ri.default=r,ri}var ni={},qh;function s_(){if(qh)return ni;qh=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=sr(),t=De(),r=Ge(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,t.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,t._)`{missingProperty: ${a}}`},code(a){const{gen:l,schema:s,schemaCode:c,data:u,$data:d,it:m}=a,{opts:h}=m;if(!d&&s.length===0)return;const y=s.length>=h.loopRequired;if(m.allErrors?g():f(),h.strictRequired){const p=a.parentSchema.properties,{definedProperties:_}=a.it;for(const S of s)if(p?.[S]===void 0&&!_.has(S)){const w=m.schemaEnv.baseId+m.errSchemaPath,E=`required property "${S}" is not defined at "${w}" (strictRequired)`;(0,r.checkStrictMode)(m,E,m.opts.strictRequired)}}function g(){if(y||d)a.block$data(t.nil,b);else for(const p of s)(0,e.checkReportMissingProp)(a,p)}function f(){const p=l.let("missing");if(y||d){const _=l.let("valid",!0);a.block$data(_,()=>v(p,_)),a.ok(_)}else l.if((0,e.checkMissingProp)(a,s,p)),(0,e.reportMissingProp)(a,p),l.else()}function b(){l.forOf("prop",c,p=>{a.setParams({missingProperty:p}),l.if((0,e.noPropertyInData)(l,u,p,h.ownProperties),()=>a.error())})}function v(p,_){a.setParams({missingProperty:p}),l.forOf(p,c,()=>{l.assign(_,(0,e.propertyInData)(l,u,p,h.ownProperties)),l.if((0,t.not)(_),()=>{a.error(),l.break()})},t.nil)}}};return ni.default=i,ni}var oi={},Lh;function l_(){if(Lh)return oi;Lh=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=De(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:l}=n,s=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${a}.length ${s} ${l}`)}};return oi.default=r,oi}var ii={},ai={},Fh;function $c(){if(Fh)return ai;Fh=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=yh();return e.code='require("ajv/dist/runtime/equal").default',ai.default=e,ai}var zh;function c_(){if(zh)return ii;zh=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=Fo(),t=De(),r=Ge(),n=$c(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:l,j:s}})=>(0,t.str)`must NOT have duplicate items (items ## ${s} and ${l} are identical)`,params:({params:{i:l,j:s}})=>(0,t._)`{i: ${l}, j: ${s}}`},code(l){const{gen:s,data:c,$data:u,schema:d,parentSchema:m,schemaCode:h,it:y}=l;if(!u&&!d)return;const g=s.let("valid"),f=m.items?(0,e.getSchemaTypes)(m.items):[];l.block$data(g,b,(0,t._)`${h} === false`),l.ok(g);function b(){const S=s.let("i",(0,t._)`${c}.length`),w=s.let("j");l.setParams({i:S,j:w}),s.assign(g,!0),s.if((0,t._)`${S} > 1`,()=>(v()?p:_)(S,w))}function v(){return f.length>0&&!f.some(S=>S==="object"||S==="array")}function p(S,w){const E=s.name("item"),x=(0,e.checkDataTypes)(f,E,y.opts.strictNumbers,e.DataType.Wrong),P=s.const("indices",(0,t._)`{}`);s.for((0,t._)`;${S}--;`,()=>{s.let(E,(0,t._)`${c}[${S}]`),s.if(x,(0,t._)`continue`),f.length>1&&s.if((0,t._)`typeof ${E} == "string"`,(0,t._)`${E} += "_"`),s.if((0,t._)`typeof ${P}[${E}] == "number"`,()=>{s.assign(w,(0,t._)`${P}[${E}]`),l.error(),s.assign(g,!1).break()}).code((0,t._)`${P}[${E}] = ${S}`)})}function _(S,w){const E=(0,r.useFunc)(s,n.default),x=s.name("outer");s.label(x).for((0,t._)`;${S}--;`,()=>s.for((0,t._)`${w} = ${S}; ${w}--;`,()=>s.if((0,t._)`${E}(${c}[${S}], ${c}[${w}])`,()=>{l.error(),s.assign(g,!1).break(x)})))}}};return ii.default=a,ii}var si={},Vh;function u_(){if(Vh)return si;Vh=1,Object.defineProperty(si,"__esModule",{value:!0});const e=De(),t=Ge(),r=$c(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,e._)`{allowedValue: ${a}}`},code(a){const{gen:l,data:s,$data:c,schemaCode:u,schema:d}=a;c||d&&typeof d=="object"?a.fail$data((0,e._)`!${(0,t.useFunc)(l,r.default)}(${s}, ${u})`):a.fail((0,e._)`${d} !== ${s}`)}};return si.default=i,si}var li={},Bh;function d_(){if(Bh)return li;Bh=1,Object.defineProperty(li,"__esModule",{value:!0});const e=De(),t=Ge(),r=$c(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,e._)`{allowedValues: ${a}}`},code(a){const{gen:l,data:s,$data:c,schema:u,schemaCode:d,it:m}=a;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const h=u.length>=m.opts.loopEnum;let y;const g=()=>y??(y=(0,t.useFunc)(l,r.default));let f;if(h||c)f=l.let("valid"),a.block$data(f,b);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const p=l.const("vSchema",d);f=(0,e.or)(...u.map((_,S)=>v(p,S)))}a.pass(f);function b(){l.assign(f,!1),l.forOf("v",d,p=>l.if((0,e._)`${g()}(${s}, ${p})`,()=>l.assign(f,!0).break()))}function v(p,_){const S=u[_];return typeof S=="object"&&S!==null?(0,e._)`${g()}(${s}, ${p}[${_}])`:(0,e._)`${s} === ${S}`}}};return li.default=i,li}var Uh;function f_(){if(Uh)return Jo;Uh=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=t_(),t=r_(),r=o_(),n=i_(),i=a_(),a=s_(),l=l_(),s=c_(),c=u_(),u=d_(),d=[e.default,t.default,r.default,n.default,i.default,a.default,l.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return Jo.default=d,Jo}var ci={},gn={},Wh;function Hh(){if(Wh)return gn;Wh=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.validateAdditionalItems=void 0;const e=De(),t=Ge(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{parentSchema:l,it:s}=a,{items:c}=l;if(!Array.isArray(c)){(0,t.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(a,c)}};function i(a,l){const{gen:s,schema:c,data:u,keyword:d,it:m}=a;m.items=!0;const h=s.const("len",(0,e._)`${u}.length`);if(c===!1)a.setParams({len:l.length}),a.pass((0,e._)`${h} <= ${l.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(m,c)){const g=s.var("valid",(0,e._)`${h} <= ${l.length}`);s.if((0,e.not)(g),()=>y(g)),a.ok(g)}function y(g){s.forRange("i",l.length,h,f=>{a.subschema({keyword:d,dataProp:f,dataPropType:t.Type.Num},g),m.allErrors||s.if((0,e.not)(g),()=>s.break())})}}return gn.validateAdditionalItems=i,gn.default=n,gn}var ui={},vn={},Kh;function Gh(){if(Kh)return vn;Kh=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.validateTuple=void 0;const e=De(),t=Ge(),r=sr(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:l,it:s}=a;if(Array.isArray(l))return i(a,"additionalItems",l);s.items=!0,!(0,t.alwaysValidSchema)(s,l)&&a.ok((0,r.validateArray)(a))}};function i(a,l,s=a.schema){const{gen:c,parentSchema:u,data:d,keyword:m,it:h}=a;f(u),h.opts.unevaluated&&s.length&&h.items!==!0&&(h.items=t.mergeEvaluated.items(c,s.length,h.items));const y=c.name("valid"),g=c.const("len",(0,e._)`${d}.length`);s.forEach((b,v)=>{(0,t.alwaysValidSchema)(h,b)||(c.if((0,e._)`${g} > ${v}`,()=>a.subschema({keyword:m,schemaProp:v,dataProp:v},y)),a.ok(y))});function f(b){const{opts:v,errSchemaPath:p}=h,_=s.length,S=_===b.minItems&&(_===b.maxItems||b[l]===!1);if(v.strictTuples&&!S){const w=`"${m}" is ${_}-tuple, but minItems or maxItems/${l} are not specified or different at path "${p}"`;(0,t.checkStrictMode)(h,w,v.strictTuples)}}}return vn.validateTuple=i,vn.default=n,vn}var Yh;function p_(){if(Yh)return ui;Yh=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=Gh(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return ui.default=t,ui}var di={},Jh;function h_(){if(Jh)return di;Jh=1,Object.defineProperty(di,"__esModule",{value:!0});const e=De(),t=Ge(),r=sr(),n=Hh(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:l}})=>(0,e.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,e._)`{limit: ${l}}`},code(l){const{schema:s,parentSchema:c,it:u}=l,{prefixItems:d}=c;u.items=!0,!(0,t.alwaysValidSchema)(u,s)&&(d?(0,n.validateAdditionalItems)(l,d):l.ok((0,r.validateArray)(l)))}};return di.default=a,di}var fi={},Xh;function m_(){if(Xh)return fi;Xh=1,Object.defineProperty(fi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:a}})=>a===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${a} valid item(s)`,params:({params:{min:i,max:a}})=>a===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${a}}`},code(i){const{gen:a,schema:l,parentSchema:s,data:c,it:u}=i;let d,m;const{minContains:h,maxContains:y}=s;u.opts.next?(d=h===void 0?1:h,m=y):d=1;const g=a.const("len",(0,e._)`${c}.length`);if(i.setParams({min:d,max:m}),m===void 0&&d===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(m!==void 0&&d>m){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(u,l)){let _=(0,e._)`${g} >= ${d}`;m!==void 0&&(_=(0,e._)`${_} && ${g} <= ${m}`),i.pass(_);return}u.items=!0;const f=a.name("valid");m===void 0&&d===1?v(f,()=>a.if(f,()=>a.break())):d===0?(a.let(f,!0),m!==void 0&&a.if((0,e._)`${c}.length > 0`,b)):(a.let(f,!1),b()),i.result(f,()=>i.reset());function b(){const _=a.name("_valid"),S=a.let("count",0);v(_,()=>a.if(_,()=>p(S)))}function v(_,S){a.forRange("i",0,g,w=>{i.subschema({keyword:"contains",dataProp:w,dataPropType:t.Type.Num,compositeRule:!0},_),S()})}function p(_){a.code((0,e._)`${_}++`),m===void 0?a.if((0,e._)`${_} >= ${d}`,()=>a.assign(f,!0).break()):(a.if((0,e._)`${_} > ${m}`,()=>a.assign(f,!1).break()),d===1?a.assign(f,!0):a.if((0,e._)`${_} >= ${d}`,()=>a.assign(f,!0)))}}};return fi.default=n,fi}var Rc={},Zh;function y_(){return Zh||(Zh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=De(),r=Ge(),n=sr();e.error={message:({params:{property:c,depsCount:u,deps:d}})=>{const m=u===1?"property":"properties";return(0,t.str)`must have ${m} ${d} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:d,missingProperty:m}})=>(0,t._)`{property: ${c},
11
- missingProperty: ${m},
6
+ <%s key={someKey} {...props} />`,R,X,se,X),L[X+R]=!0)}if(X=null,z!==void 0&&(n(z),X=""+z),l(q)&&(n(q.key),X=""+q.key),"key"in q){z={};for(var te in q)te!=="key"&&(z[te]=q[te])}else z=q;return X&&a(z,typeof E=="function"?E.displayName||E.name||"Unknown":E),u(E,X,z,s(),A,U)}function p(E){h(E)?E._store&&(E._store.validated=1):typeof E=="object"&&E!==null&&E.$$typeof===$&&(E._payload.status==="fulfilled"?h(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function h(E){return typeof E=="object"&&E!==null&&E.$$typeof===b}var m=Ge,b=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),C=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=Object.prototype.hasOwnProperty,D=Array.isArray,j=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(E){return E()}};var F,W={},Y=m.react_stack_bottom_frame.bind(m,i)(),H=j(o(i)),L={};Do.Fragment=g,Do.jsx=function(E,q,z){var R=1e4>C.recentlyCreatedOwnerStacks++;return d(E,q,z,!1,R?Error("react-stack-top-frame"):Y,R?j(o(E)):H)},Do.jsxs=function(E,q,z){var R=1e4>C.recentlyCreatedOwnerStacks++;return d(E,q,z,!0,R?Error("react-stack-top-frame"):Y,R?j(o(E)):H)}})()),Do}var Rp;function Cw(){return Rp||(Rp=1,process.env.NODE_ENV==="production"?qs.exports=xw():qs.exports=ww()),qs.exports}var _=Cw(),wl,Ip;function Pw(){if(Ip)return wl;Ip=1;function e(){this.__data__=[],this.size=0}return wl=e,wl}var Cl,$p;function zs(){if($p)return Cl;$p=1;function e(t,n){return t===n||t!==t&&n!==n}return Cl=e,Cl}var Pl,Dp;function Us(){if(Dp)return Pl;Dp=1;var e=zs();function t(n,o){for(var s=n.length;s--;)if(e(n[s][0],o))return s;return-1}return Pl=t,Pl}var Tl,Mp;function Tw(){if(Mp)return Tl;Mp=1;var e=Us(),t=Array.prototype,n=t.splice;function o(s){var i=this.__data__,l=e(i,s);if(l<0)return!1;var a=i.length-1;return l==a?i.pop():n.call(i,l,1),--this.size,!0}return Tl=o,Tl}var Ol,Np;function Ow(){if(Np)return Ol;Np=1;var e=Us();function t(n){var o=this.__data__,s=e(o,n);return s<0?void 0:o[s][1]}return Ol=t,Ol}var El,jp;function Ew(){if(jp)return El;jp=1;var e=Us();function t(n){return e(this.__data__,n)>-1}return El=t,El}var kl,Ap;function kw(){if(Ap)return kl;Ap=1;var e=Us();function t(n,o){var s=this.__data__,i=e(s,n);return i<0?(++this.size,s.push([n,o])):s[i][1]=o,this}return kl=t,kl}var _l,Fp;function Ws(){if(Fp)return _l;Fp=1;var e=Pw(),t=Tw(),n=Ow(),o=Ew(),s=kw();function i(l){var a=-1,c=l==null?0:l.length;for(this.clear();++a<c;){var u=l[a];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=o,i.prototype.set=s,_l=i,_l}var Rl,Vp;function _w(){if(Vp)return Rl;Vp=1;var e=Ws();function t(){this.__data__=new e,this.size=0}return Rl=t,Rl}var Il,Lp;function Rw(){if(Lp)return Il;Lp=1;function e(t){var n=this.__data__,o=n.delete(t);return this.size=n.size,o}return Il=e,Il}var $l,Bp;function Iw(){if(Bp)return $l;Bp=1;function e(t){return this.__data__.get(t)}return $l=e,$l}var Dl,qp;function $w(){if(qp)return Dl;qp=1;function e(t){return this.__data__.has(t)}return Dl=e,Dl}var Ml,zp;function Up(){if(zp)return Ml;zp=1;var e=typeof Bs=="object"&&Bs&&Bs.Object===Object&&Bs;return Ml=e,Ml}var Nl,Wp;function Bn(){if(Wp)return Nl;Wp=1;var e=Up(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Nl=n,Nl}var jl,Hp;function Al(){if(Hp)return jl;Hp=1;var e=Bn(),t=e.Symbol;return jl=t,jl}var Fl,Yp;function Dw(){if(Yp)return Fl;Yp=1;var e=Al(),t=Object.prototype,n=t.hasOwnProperty,o=t.toString,s=e?e.toStringTag:void 0;function i(l){var a=n.call(l,s),c=l[s];try{l[s]=void 0;var u=!0}catch{}var d=o.call(l);return u&&(a?l[s]=c:delete l[s]),d}return Fl=i,Fl}var Vl,Kp;function Mw(){if(Kp)return Vl;Kp=1;var e=Object.prototype,t=e.toString;function n(o){return t.call(o)}return Vl=n,Vl}var Ll,Gp;function Mo(){if(Gp)return Ll;Gp=1;var e=Al(),t=Dw(),n=Mw(),o="[object Null]",s="[object Undefined]",i=e?e.toStringTag:void 0;function l(a){return a==null?a===void 0?s:o:i&&i in Object(a)?t(a):n(a)}return Ll=l,Ll}var Bl,Xp;function Zn(){if(Xp)return Bl;Xp=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Bl=e,Bl}var ql,Qp;function zl(){if(Qp)return ql;Qp=1;var e=Mo(),t=Zn(),n="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",i="[object Proxy]";function l(a){if(!t(a))return!1;var c=e(a);return c==o||c==s||c==n||c==i}return ql=l,ql}var Ul,Jp;function Nw(){if(Jp)return Ul;Jp=1;var e=Bn(),t=e["__core-js_shared__"];return Ul=t,Ul}var Wl,Zp;function jw(){if(Zp)return Wl;Zp=1;var e=Nw(),t=(function(){var o=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function n(o){return!!t&&t in o}return Wl=n,Wl}var Hl,eh;function th(){if(eh)return Hl;eh=1;var e=Function.prototype,t=e.toString;function n(o){if(o!=null){try{return t.call(o)}catch{}try{return o+""}catch{}}return""}return Hl=n,Hl}var Yl,nh;function Aw(){if(nh)return Yl;nh=1;var e=zl(),t=jw(),n=Zn(),o=th(),s=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,l=Function.prototype,a=Object.prototype,c=l.toString,u=a.hasOwnProperty,d=RegExp("^"+c.call(u).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(h){if(!n(h)||t(h))return!1;var m=e(h)?d:i;return m.test(o(h))}return Yl=p,Yl}var Kl,rh;function Fw(){if(rh)return Kl;rh=1;function e(t,n){return t?.[n]}return Kl=e,Kl}var Gl,oh;function Ir(){if(oh)return Gl;oh=1;var e=Aw(),t=Fw();function n(o,s){var i=t(o,s);return e(i)?i:void 0}return Gl=n,Gl}var Xl,sh;function Ql(){if(sh)return Xl;sh=1;var e=Ir(),t=Bn(),n=e(t,"Map");return Xl=n,Xl}var Jl,ih;function Hs(){if(ih)return Jl;ih=1;var e=Ir(),t=e(Object,"create");return Jl=t,Jl}var Zl,ah;function Vw(){if(ah)return Zl;ah=1;var e=Hs();function t(){this.__data__=e?e(null):{},this.size=0}return Zl=t,Zl}var ec,lh;function Lw(){if(lh)return ec;lh=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return ec=e,ec}var tc,ch;function Bw(){if(ch)return tc;ch=1;var e=Hs(),t="__lodash_hash_undefined__",n=Object.prototype,o=n.hasOwnProperty;function s(i){var l=this.__data__;if(e){var a=l[i];return a===t?void 0:a}return o.call(l,i)?l[i]:void 0}return tc=s,tc}var nc,uh;function qw(){if(uh)return nc;uh=1;var e=Hs(),t=Object.prototype,n=t.hasOwnProperty;function o(s){var i=this.__data__;return e?i[s]!==void 0:n.call(i,s)}return nc=o,nc}var rc,dh;function zw(){if(dh)return rc;dh=1;var e=Hs(),t="__lodash_hash_undefined__";function n(o,s){var i=this.__data__;return this.size+=this.has(o)?0:1,i[o]=e&&s===void 0?t:s,this}return rc=n,rc}var oc,fh;function Uw(){if(fh)return oc;fh=1;var e=Vw(),t=Lw(),n=Bw(),o=qw(),s=zw();function i(l){var a=-1,c=l==null?0:l.length;for(this.clear();++a<c;){var u=l[a];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=o,i.prototype.set=s,oc=i,oc}var sc,ph;function Ww(){if(ph)return sc;ph=1;var e=Uw(),t=Ws(),n=Ql();function o(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return sc=o,sc}var ic,hh;function Hw(){if(hh)return ic;hh=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return ic=e,ic}var ac,mh;function Ys(){if(mh)return ac;mh=1;var e=Hw();function t(n,o){var s=n.__data__;return e(o)?s[typeof o=="string"?"string":"hash"]:s.map}return ac=t,ac}var lc,yh;function Yw(){if(yh)return lc;yh=1;var e=Ys();function t(n){var o=e(this,n).delete(n);return this.size-=o?1:0,o}return lc=t,lc}var cc,gh;function Kw(){if(gh)return cc;gh=1;var e=Ys();function t(n){return e(this,n).get(n)}return cc=t,cc}var uc,bh;function Gw(){if(bh)return uc;bh=1;var e=Ys();function t(n){return e(this,n).has(n)}return uc=t,uc}var dc,vh;function Xw(){if(vh)return dc;vh=1;var e=Ys();function t(n,o){var s=e(this,n),i=s.size;return s.set(n,o),this.size+=s.size==i?0:1,this}return dc=t,dc}var fc,Sh;function Qw(){if(Sh)return fc;Sh=1;var e=Ww(),t=Yw(),n=Kw(),o=Gw(),s=Xw();function i(l){var a=-1,c=l==null?0:l.length;for(this.clear();++a<c;){var u=l[a];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=o,i.prototype.set=s,fc=i,fc}var pc,xh;function Jw(){if(xh)return pc;xh=1;var e=Ws(),t=Ql(),n=Qw(),o=200;function s(i,l){var a=this.__data__;if(a instanceof e){var c=a.__data__;if(!t||c.length<o-1)return c.push([i,l]),this.size=++a.size,this;a=this.__data__=new n(c)}return a.set(i,l),this.size=a.size,this}return pc=s,pc}var hc,wh;function Ch(){if(wh)return hc;wh=1;var e=Ws(),t=_w(),n=Rw(),o=Iw(),s=$w(),i=Jw();function l(a){var c=this.__data__=new e(a);this.size=c.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=s,l.prototype.set=i,hc=l,hc}var mc,Ph;function Th(){if(Ph)return mc;Ph=1;var e=Ir(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return mc=t,mc}var yc,Oh;function gc(){if(Oh)return yc;Oh=1;var e=Th();function t(n,o,s){o=="__proto__"&&e?e(n,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[o]=s}return yc=t,yc}var bc,Eh;function kh(){if(Eh)return bc;Eh=1;var e=gc(),t=zs();function n(o,s,i){(i!==void 0&&!t(o[s],i)||i===void 0&&!(s in o))&&e(o,s,i)}return bc=n,bc}var vc,_h;function Zw(){if(_h)return vc;_h=1;function e(t){return function(n,o,s){for(var i=-1,l=Object(n),a=s(n),c=a.length;c--;){var u=a[t?c:++i];if(o(l[u],u,l)===!1)break}return n}}return vc=e,vc}var Sc,Rh;function eC(){if(Rh)return Sc;Rh=1;var e=Zw(),t=e();return Sc=t,Sc}var No={exports:{}};No.exports;var Ih;function $h(){return Ih||(Ih=1,(function(e,t){var n=Bn(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===o,l=i?n.Buffer:void 0,a=l?l.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var p=u.length,h=a?a(p):new u.constructor(p);return u.copy(h),h}e.exports=c})(No,No.exports)),No.exports}var xc,Dh;function tC(){if(Dh)return xc;Dh=1;var e=Bn(),t=e.Uint8Array;return xc=t,xc}var wc,Mh;function Cc(){if(Mh)return wc;Mh=1;var e=tC();function t(n){var o=new n.constructor(n.byteLength);return new e(o).set(new e(n)),o}return wc=t,wc}var Pc,Nh;function jh(){if(Nh)return Pc;Nh=1;var e=Cc();function t(n,o){var s=o?e(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}return Pc=t,Pc}var Tc,Ah;function Fh(){if(Ah)return Tc;Ah=1;function e(t,n){var o=-1,s=t.length;for(n||(n=Array(s));++o<s;)n[o]=t[o];return n}return Tc=e,Tc}var Oc,Vh;function nC(){if(Vh)return Oc;Vh=1;var e=Zn(),t=Object.create,n=(function(){function o(){}return function(s){if(!e(s))return{};if(t)return t(s);o.prototype=s;var i=new o;return o.prototype=void 0,i}})();return Oc=n,Oc}var Ec,Lh;function Bh(){if(Lh)return Ec;Lh=1;function e(t,n){return function(o){return t(n(o))}}return Ec=e,Ec}var kc,qh;function _c(){if(qh)return kc;qh=1;var e=Bh(),t=e(Object.getPrototypeOf,Object);return kc=t,kc}var Rc,zh;function Ic(){if(zh)return Rc;zh=1;var e=Object.prototype;function t(n){var o=n&&n.constructor,s=typeof o=="function"&&o.prototype||e;return n===s}return Rc=t,Rc}var $c,Uh;function Wh(){if(Uh)return $c;Uh=1;var e=nC(),t=_c(),n=Ic();function o(s){return typeof s.constructor=="function"&&!n(s)?e(t(s)):{}}return $c=o,$c}var Dc,Hh;function $r(){if(Hh)return Dc;Hh=1;function e(t){return t!=null&&typeof t=="object"}return Dc=e,Dc}var Mc,Yh;function rC(){if(Yh)return Mc;Yh=1;var e=Mo(),t=$r(),n="[object Arguments]";function o(s){return t(s)&&e(s)==n}return Mc=o,Mc}var Nc,Kh;function Gh(){if(Kh)return Nc;Kh=1;var e=rC(),t=$r(),n=Object.prototype,o=n.hasOwnProperty,s=n.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(l){return t(l)&&o.call(l,"callee")&&!s.call(l,"callee")};return Nc=i,Nc}var jc,Xh;function Ks(){if(Xh)return jc;Xh=1;var e=Array.isArray;return jc=e,jc}var Ac,Qh;function Jh(){if(Qh)return Ac;Qh=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Ac=t,Ac}var Fc,Zh;function Gs(){if(Zh)return Fc;Zh=1;var e=zl(),t=Jh();function n(o){return o!=null&&t(o.length)&&!e(o)}return Fc=n,Fc}var Vc,em;function oC(){if(em)return Vc;em=1;var e=Gs(),t=$r();function n(o){return t(o)&&e(o)}return Vc=n,Vc}var jo={exports:{}},Lc,tm;function sC(){if(tm)return Lc;tm=1;function e(){return!1}return Lc=e,Lc}jo.exports;var nm;function Bc(){return nm||(nm=1,(function(e,t){var n=Bn(),o=sC(),s=t&&!t.nodeType&&t,i=s&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===s,a=l?n.Buffer:void 0,c=a?a.isBuffer:void 0,u=c||o;e.exports=u})(jo,jo.exports)),jo.exports}var qc,rm;function iC(){if(rm)return qc;rm=1;var e=Mo(),t=_c(),n=$r(),o="[object Object]",s=Function.prototype,i=Object.prototype,l=s.toString,a=i.hasOwnProperty,c=l.call(Object);function u(d){if(!n(d)||e(d)!=o)return!1;var p=t(d);if(p===null)return!0;var h=a.call(p,"constructor")&&p.constructor;return typeof h=="function"&&h instanceof h&&l.call(h)==c}return qc=u,qc}var zc,om;function aC(){if(om)return zc;om=1;var e=Mo(),t=Jh(),n=$r(),o="[object Arguments]",s="[object Array]",i="[object Boolean]",l="[object Date]",a="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",p="[object Object]",h="[object RegExp]",m="[object Set]",b="[object String]",f="[object WeakMap]",g="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",S="[object Float64Array]",w="[object Int8Array]",x="[object Int16Array]",P="[object Int32Array]",T="[object Uint8Array]",I="[object Uint8ClampedArray]",$="[object Uint16Array]",M="[object Uint32Array]",k={};k[y]=k[S]=k[w]=k[x]=k[P]=k[T]=k[I]=k[$]=k[M]=!0,k[o]=k[s]=k[g]=k[i]=k[v]=k[l]=k[a]=k[c]=k[u]=k[d]=k[p]=k[h]=k[m]=k[b]=k[f]=!1;function C(N){return n(N)&&t(N.length)&&!!k[e(N)]}return zc=C,zc}var Uc,sm;function Wc(){if(sm)return Uc;sm=1;function e(t){return function(n){return t(n)}}return Uc=e,Uc}var Ao={exports:{}};Ao.exports;var im;function Hc(){return im||(im=1,(function(e,t){var n=Up(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===o,l=i&&n.process,a=(function(){try{var c=s&&s.require&&s.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}})();e.exports=a})(Ao,Ao.exports)),Ao.exports}var Yc,am;function lm(){if(am)return Yc;am=1;var e=aC(),t=Wc(),n=Hc(),o=n&&n.isTypedArray,s=o?t(o):e;return Yc=s,Yc}var Kc,cm;function um(){if(cm)return Kc;cm=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Kc=e,Kc}var Gc,dm;function fm(){if(dm)return Gc;dm=1;var e=gc(),t=zs(),n=Object.prototype,o=n.hasOwnProperty;function s(i,l,a){var c=i[l];(!(o.call(i,l)&&t(c,a))||a===void 0&&!(l in i))&&e(i,l,a)}return Gc=s,Gc}var Xc,pm;function Jr(){if(pm)return Xc;pm=1;var e=fm(),t=gc();function n(o,s,i,l){var a=!i;i||(i={});for(var c=-1,u=s.length;++c<u;){var d=s[c],p=l?l(i[d],o[d],d,i,o):void 0;p===void 0&&(p=o[d]),a?t(i,d,p):e(i,d,p)}return i}return Xc=n,Xc}var Qc,hm;function lC(){if(hm)return Qc;hm=1;function e(t,n){for(var o=-1,s=Array(t);++o<t;)s[o]=n(o);return s}return Qc=e,Qc}var Jc,mm;function ym(){if(mm)return Jc;mm=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(o,s){var i=typeof o;return s=s??e,!!s&&(i=="number"||i!="symbol"&&t.test(o))&&o>-1&&o%1==0&&o<s}return Jc=n,Jc}var Zc,gm;function bm(){if(gm)return Zc;gm=1;var e=lC(),t=Gh(),n=Ks(),o=Bc(),s=ym(),i=lm(),l=Object.prototype,a=l.hasOwnProperty;function c(u,d){var p=n(u),h=!p&&t(u),m=!p&&!h&&o(u),b=!p&&!h&&!m&&i(u),f=p||h||m||b,g=f?e(u.length,String):[],v=g.length;for(var y in u)(d||a.call(u,y))&&!(f&&(y=="length"||m&&(y=="offset"||y=="parent")||b&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||s(y,v)))&&g.push(y);return g}return Zc=c,Zc}var eu,vm;function cC(){if(vm)return eu;vm=1;function e(t){var n=[];if(t!=null)for(var o in Object(t))n.push(o);return n}return eu=e,eu}var tu,Sm;function uC(){if(Sm)return tu;Sm=1;var e=Zn(),t=Ic(),n=cC(),o=Object.prototype,s=o.hasOwnProperty;function i(l){if(!e(l))return n(l);var a=t(l),c=[];for(var u in l)u=="constructor"&&(a||!s.call(l,u))||c.push(u);return c}return tu=i,tu}var nu,xm;function Zr(){if(xm)return nu;xm=1;var e=bm(),t=uC(),n=Gs();function o(s){return n(s)?e(s,!0):t(s)}return nu=o,nu}var ru,wm;function dC(){if(wm)return ru;wm=1;var e=Jr(),t=Zr();function n(o){return e(o,t(o))}return ru=n,ru}var ou,Cm;function fC(){if(Cm)return ou;Cm=1;var e=kh(),t=$h(),n=jh(),o=Fh(),s=Wh(),i=Gh(),l=Ks(),a=oC(),c=Bc(),u=zl(),d=Zn(),p=iC(),h=lm(),m=um(),b=dC();function f(g,v,y,S,w,x,P){var T=m(g,y),I=m(v,y),$=P.get(I);if($){e(g,y,$);return}var M=x?x(T,I,y+"",g,v,P):void 0,k=M===void 0;if(k){var C=l(I),N=!C&&c(I),D=!C&&!N&&h(I);M=I,C||N||D?l(T)?M=T:a(T)?M=o(T):N?(k=!1,M=t(I,!0)):D?(k=!1,M=n(I,!0)):M=[]:p(I)||i(I)?(M=T,i(T)?M=b(T):(!d(T)||u(T))&&(M=s(I))):k=!1}k&&(P.set(I,M),w(M,I,S,x,P),P.delete(I)),e(g,y,M)}return ou=f,ou}var su,Pm;function pC(){if(Pm)return su;Pm=1;var e=Ch(),t=kh(),n=eC(),o=fC(),s=Zn(),i=Zr(),l=um();function a(c,u,d,p,h){c!==u&&n(u,function(m,b){if(h||(h=new e),s(m))o(c,u,b,d,a,p,h);else{var f=p?p(l(c,b),m,b+"",c,u,h):void 0;f===void 0&&(f=m),t(c,b,f)}},i)}return su=a,su}var iu,Tm;function Om(){if(Tm)return iu;Tm=1;function e(t){return t}return iu=e,iu}var au,Em;function hC(){if(Em)return au;Em=1;function e(t,n,o){switch(o.length){case 0:return t.call(n);case 1:return t.call(n,o[0]);case 2:return t.call(n,o[0],o[1]);case 3:return t.call(n,o[0],o[1],o[2])}return t.apply(n,o)}return au=e,au}var lu,km;function mC(){if(km)return lu;km=1;var e=hC(),t=Math.max;function n(o,s,i){return s=t(s===void 0?o.length-1:s,0),function(){for(var l=arguments,a=-1,c=t(l.length-s,0),u=Array(c);++a<c;)u[a]=l[s+a];a=-1;for(var d=Array(s+1);++a<s;)d[a]=l[a];return d[s]=i(u),e(o,this,d)}}return lu=n,lu}var cu,_m;function yC(){if(_m)return cu;_m=1;function e(t){return function(){return t}}return cu=e,cu}var uu,Rm;function gC(){if(Rm)return uu;Rm=1;var e=yC(),t=Th(),n=Om(),o=t?function(s,i){return t(s,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:n;return uu=o,uu}var du,Im;function bC(){if(Im)return du;Im=1;var e=800,t=16,n=Date.now;function o(s){var i=0,l=0;return function(){var a=n(),c=t-(a-l);if(l=a,c>0){if(++i>=e)return arguments[0]}else i=0;return s.apply(void 0,arguments)}}return du=o,du}var fu,$m;function vC(){if($m)return fu;$m=1;var e=gC(),t=bC(),n=t(e);return fu=n,fu}var pu,Dm;function SC(){if(Dm)return pu;Dm=1;var e=Om(),t=mC(),n=vC();function o(s,i){return n(t(s,i,e),s+"")}return pu=o,pu}var hu,Mm;function xC(){if(Mm)return hu;Mm=1;var e=zs(),t=Gs(),n=ym(),o=Zn();function s(i,l,a){if(!o(a))return!1;var c=typeof l;return(c=="number"?t(a)&&n(l,a.length):c=="string"&&l in a)?e(a[l],i):!1}return hu=s,hu}var mu,Nm;function jm(){if(Nm)return mu;Nm=1;var e=SC(),t=xC();function n(o){return e(function(s,i){var l=-1,a=i.length,c=a>1?i[a-1]:void 0,u=a>2?i[2]:void 0;for(c=o.length>3&&typeof c=="function"?(a--,c):void 0,u&&t(i[0],i[1],u)&&(c=a<3?void 0:c,a=1),s=Object(s);++l<a;){var d=i[l];d&&o(s,d,l,c)}return s})}return mu=n,mu}var yu,Am;function wC(){if(Am)return yu;Am=1;var e=pC(),t=jm(),n=t(function(o,s,i){e(o,s,i)});return yu=n,yu}var CC=wC();const PC=Vt(CC);var gu,Fm;function TC(){if(Fm)return gu;Fm=1;function e(t){return t==null}return gu=e,gu}var OC=TC();const Vm=Vt(OC);var EC=Zn();const kC=Vt(EC);var bu,Lm;function _C(){if(Lm)return bu;Lm=1;function e(t,n){for(var o=-1,s=t==null?0:t.length;++o<s&&n(t[o],o,t)!==!1;);return t}return bu=e,bu}var vu,Bm;function RC(){if(Bm)return vu;Bm=1;var e=Bh(),t=e(Object.keys,Object);return vu=t,vu}var Su,qm;function IC(){if(qm)return Su;qm=1;var e=Ic(),t=RC(),n=Object.prototype,o=n.hasOwnProperty;function s(i){if(!e(i))return t(i);var l=[];for(var a in Object(i))o.call(i,a)&&a!="constructor"&&l.push(a);return l}return Su=s,Su}var xu,zm;function wu(){if(zm)return xu;zm=1;var e=bm(),t=IC(),n=Gs();function o(s){return n(s)?e(s):t(s)}return xu=o,xu}var Cu,Um;function $C(){if(Um)return Cu;Um=1;var e=Jr(),t=wu();function n(o,s){return o&&e(s,t(s),o)}return Cu=n,Cu}var Pu,Wm;function DC(){if(Wm)return Pu;Wm=1;var e=Jr(),t=Zr();function n(o,s){return o&&e(s,t(s),o)}return Pu=n,Pu}var Tu,Hm;function MC(){if(Hm)return Tu;Hm=1;function e(t,n){for(var o=-1,s=t==null?0:t.length,i=0,l=[];++o<s;){var a=t[o];n(a,o,t)&&(l[i++]=a)}return l}return Tu=e,Tu}var Ou,Ym;function Km(){if(Ym)return Ou;Ym=1;function e(){return[]}return Ou=e,Ou}var Eu,Gm;function ku(){if(Gm)return Eu;Gm=1;var e=MC(),t=Km(),n=Object.prototype,o=n.propertyIsEnumerable,s=Object.getOwnPropertySymbols,i=s?function(l){return l==null?[]:(l=Object(l),e(s(l),function(a){return o.call(l,a)}))}:t;return Eu=i,Eu}var _u,Xm;function NC(){if(Xm)return _u;Xm=1;var e=Jr(),t=ku();function n(o,s){return e(o,t(o),s)}return _u=n,_u}var Ru,Qm;function Jm(){if(Qm)return Ru;Qm=1;function e(t,n){for(var o=-1,s=n.length,i=t.length;++o<s;)t[i+o]=n[o];return t}return Ru=e,Ru}var Iu,Zm;function ey(){if(Zm)return Iu;Zm=1;var e=Jm(),t=_c(),n=ku(),o=Km(),s=Object.getOwnPropertySymbols,i=s?function(l){for(var a=[];l;)e(a,n(l)),l=t(l);return a}:o;return Iu=i,Iu}var $u,ty;function jC(){if(ty)return $u;ty=1;var e=Jr(),t=ey();function n(o,s){return e(o,t(o),s)}return $u=n,$u}var Du,ny;function ry(){if(ny)return Du;ny=1;var e=Jm(),t=Ks();function n(o,s,i){var l=s(o);return t(o)?l:e(l,i(o))}return Du=n,Du}var Mu,oy;function AC(){if(oy)return Mu;oy=1;var e=ry(),t=ku(),n=wu();function o(s){return e(s,n,t)}return Mu=o,Mu}var Nu,sy;function FC(){if(sy)return Nu;sy=1;var e=ry(),t=ey(),n=Zr();function o(s){return e(s,n,t)}return Nu=o,Nu}var ju,iy;function VC(){if(iy)return ju;iy=1;var e=Ir(),t=Bn(),n=e(t,"DataView");return ju=n,ju}var Au,ay;function LC(){if(ay)return Au;ay=1;var e=Ir(),t=Bn(),n=e(t,"Promise");return Au=n,Au}var Fu,ly;function BC(){if(ly)return Fu;ly=1;var e=Ir(),t=Bn(),n=e(t,"Set");return Fu=n,Fu}var Vu,cy;function qC(){if(cy)return Vu;cy=1;var e=Ir(),t=Bn(),n=e(t,"WeakMap");return Vu=n,Vu}var Lu,uy;function Bu(){if(uy)return Lu;uy=1;var e=VC(),t=Ql(),n=LC(),o=BC(),s=qC(),i=Mo(),l=th(),a="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",m=l(e),b=l(t),f=l(n),g=l(o),v=l(s),y=i;return(e&&y(new e(new ArrayBuffer(1)))!=h||t&&y(new t)!=a||n&&y(n.resolve())!=u||o&&y(new o)!=d||s&&y(new s)!=p)&&(y=function(S){var w=i(S),x=w==c?S.constructor:void 0,P=x?l(x):"";if(P)switch(P){case m:return h;case b:return a;case f:return u;case g:return d;case v:return p}return w}),Lu=y,Lu}var qu,dy;function zC(){if(dy)return qu;dy=1;var e=Object.prototype,t=e.hasOwnProperty;function n(o){var s=o.length,i=new o.constructor(s);return s&&typeof o[0]=="string"&&t.call(o,"index")&&(i.index=o.index,i.input=o.input),i}return qu=n,qu}var zu,fy;function UC(){if(fy)return zu;fy=1;var e=Cc();function t(n,o){var s=o?e(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}return zu=t,zu}var Uu,py;function WC(){if(py)return Uu;py=1;var e=/\w*$/;function t(n){var o=new n.constructor(n.source,e.exec(n));return o.lastIndex=n.lastIndex,o}return Uu=t,Uu}var Wu,hy;function HC(){if(hy)return Wu;hy=1;var e=Al(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function o(s){return n?Object(n.call(s)):{}}return Wu=o,Wu}var Hu,my;function YC(){if(my)return Hu;my=1;var e=Cc(),t=UC(),n=WC(),o=HC(),s=jh(),i="[object Boolean]",l="[object Date]",a="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",p="[object String]",h="[object Symbol]",m="[object ArrayBuffer]",b="[object DataView]",f="[object Float32Array]",g="[object Float64Array]",v="[object Int8Array]",y="[object Int16Array]",S="[object Int32Array]",w="[object Uint8Array]",x="[object Uint8ClampedArray]",P="[object Uint16Array]",T="[object Uint32Array]";function I($,M,k){var C=$.constructor;switch(M){case m:return e($);case i:case l:return new C(+$);case b:return t($,k);case f:case g:case v:case y:case S:case w:case x:case P:case T:return s($,k);case a:return new C;case c:case p:return new C($);case u:return n($);case d:return new C;case h:return o($)}}return Hu=I,Hu}var Yu,yy;function KC(){if(yy)return Yu;yy=1;var e=Bu(),t=$r(),n="[object Map]";function o(s){return t(s)&&e(s)==n}return Yu=o,Yu}var Ku,gy;function GC(){if(gy)return Ku;gy=1;var e=KC(),t=Wc(),n=Hc(),o=n&&n.isMap,s=o?t(o):e;return Ku=s,Ku}var Gu,by;function XC(){if(by)return Gu;by=1;var e=Bu(),t=$r(),n="[object Set]";function o(s){return t(s)&&e(s)==n}return Gu=o,Gu}var Xu,vy;function QC(){if(vy)return Xu;vy=1;var e=XC(),t=Wc(),n=Hc(),o=n&&n.isSet,s=o?t(o):e;return Xu=s,Xu}var Qu,Sy;function JC(){if(Sy)return Qu;Sy=1;var e=Ch(),t=_C(),n=fm(),o=$C(),s=DC(),i=$h(),l=Fh(),a=NC(),c=jC(),u=AC(),d=FC(),p=Bu(),h=zC(),m=YC(),b=Wh(),f=Ks(),g=Bc(),v=GC(),y=Zn(),S=QC(),w=wu(),x=Zr(),P=1,T=2,I=4,$="[object Arguments]",M="[object Array]",k="[object Boolean]",C="[object Date]",N="[object Error]",D="[object Function]",j="[object GeneratorFunction]",F="[object Map]",W="[object Number]",Y="[object Object]",H="[object RegExp]",L="[object Set]",E="[object String]",q="[object Symbol]",z="[object WeakMap]",R="[object ArrayBuffer]",A="[object DataView]",U="[object Float32Array]",X="[object Float64Array]",se="[object Int8Array]",te="[object Int16Array]",J="[object Int32Array]",B="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",G="[object Uint32Array]",ne={};ne[$]=ne[M]=ne[R]=ne[A]=ne[k]=ne[C]=ne[U]=ne[X]=ne[se]=ne[te]=ne[J]=ne[F]=ne[W]=ne[Y]=ne[H]=ne[L]=ne[E]=ne[q]=ne[B]=ne[V]=ne[Q]=ne[G]=!0,ne[N]=ne[D]=ne[z]=!1;function ae(re,ce,be,oe,fe,ve){var ke,je=ce&P,Ue=ce&T,Ve=ce&I;if(be&&(ke=fe?be(re,oe,fe,ve):be(re)),ke!==void 0)return ke;if(!y(re))return re;var Ze=f(re);if(Ze){if(ke=h(re),!je)return l(re,ke)}else{var Qe=p(re),Ae=Qe==D||Qe==j;if(g(re))return i(re,je);if(Qe==Y||Qe==$||Ae&&!fe){if(ke=Ue||Ae?{}:b(re),!je)return Ue?c(re,s(ke,re)):a(re,o(ke,re))}else{if(!ne[Qe])return fe?re:{};ke=m(re,Qe,je)}}ve||(ve=new e);var Ne=ve.get(re);if(Ne)return Ne;ve.set(re,ke),S(re)?re.forEach(function(Ye){ke.add(ae(Ye,ce,be,Ye,re,ve))}):v(re)&&re.forEach(function(Ye,Ke){ke.set(Ke,ae(Ye,ce,be,Ke,re,ve))});var Te=Ve?Ue?d:u:Ue?x:w,Le=Ze?void 0:Te(re);return t(Le||re,function(Ye,Ke){Le&&(Ke=Ye,Ye=re[Ke]),n(ke,Ke,ae(Ye,ce,be,Ke,re,ve))}),ke}return Qu=ae,Qu}var Ju,xy;function ZC(){if(xy)return Ju;xy=1;var e=JC(),t=1,n=4;function o(s){return e(s,t|n)}return Ju=o,Ju}var eP=ZC();const Xs=Vt(eP);var Zu,wy;function tP(){if(wy)return Zu;wy=1;var e=Jr(),t=jm(),n=Zr(),o=t(function(s,i){e(i,n(i),s)});return Zu=o,Zu}var ed,Cy;function nP(){return Cy||(Cy=1,ed=tP()),ed}var rP=nP();const oP=Vt(rP);var td,Py;function sP(){if(Py)return td;Py=1;function e(t){return t===void 0}return td=e,td}var iP=sP();const aP=Vt(iP);var nd={},Ty;function lP(){return Ty||(Ty=1,(function(e){(function(t){var n={"'":/\\\'/g,'"':/\\\"/g},o={parse:function(s){if(typeof s!="string")throw new TypeError("ObjectPath.parse must be passed a string");for(var i=0,l=[],a,c,u,d;i<s.length;)if(a=s.indexOf(".",i),c=s.indexOf("[",i),a===-1&&c===-1)l.push(s.slice(i,s.length)),i=s.length;else if(c===-1||a!==-1&&a<c)l.push(s.slice(i,a)),i=a+1;else if(c>i&&(l.push(s.slice(i,c)),i=c),u=s.slice(c+1,c+2),u!=='"'&&u!=="'")d=s.indexOf("]",c),d===-1&&(d=s.length),l.push(s.slice(i+1,d)),i=s.slice(d+1,d+2)==="."?d+2:d+1;else{for(d=s.indexOf(u+"]",c),d===-1&&(d=s.length);s.slice(d-1,d)==="\\"&&c<s.length;)c++,d=s.indexOf(u+"]",c);l.push(s.slice(i+2,d).replace(n[u],u).replace(/\\+/g,function(p){return new Array(Math.ceil(p.length/2)+1).join("\\")})),i=s.slice(d+2,d+3)==="."?d+3:d+2}return l},stringify:function(s,i,l){Array.isArray(s)||(s=[s]),i=i==='"'?'"':"'";var a=new RegExp("(\\\\|"+i+")","g");return s.map(function(c,u){let d=c.toString();return!l&&/^[A-z_]\w*$/.exec(d)?u!==0?"."+d:d:!l&&/^\d+$/.exec(d)?"["+d+"]":(d=d.replace(a,"\\$1"),"["+i+d+i+"]")}).join("")},normalize:function(s,i,l){return o.stringify(Array.isArray(s)?s:o.parse(s),i,l)},registerModule:function(s){s.module("ObjectPath",[]).provider("ObjectPath",function(){this.parse=o.parse,this.stringify=o.stringify,this.normalize=o.normalize,this.$get=function(){return o}})}};e.ObjectPath=o})()})(nd)),nd}var rd,Oy;function cP(){return Oy||(Oy=1,rd=lP().ObjectPath),rd}var uP=cP();const Ut=Vt(uP);var Qs={exports:{}},od={},er={},Dr={},sd={},id={},ad={},Ey;function Js(){return Ey||(Ey=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class o extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((S,w)=>`${S}${w}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((S,w)=>(w instanceof n&&(S[w.str]=(S[w.str]||0)+1),S),{})}}e._Code=o,e.nil=new o("");function s(v,...y){const S=[v[0]];let w=0;for(;w<y.length;)a(S,y[w]),S.push(v[++w]);return new o(S)}e._=s;const i=new o("+");function l(v,...y){const S=[m(v[0])];let w=0;for(;w<y.length;)S.push(i),a(S,y[w]),S.push(i,m(v[++w]));return c(S),new o(S)}e.str=l;function a(v,y){y instanceof o?v.push(...y._items):y instanceof n?v.push(y):v.push(p(y))}e.addCodeArg=a;function c(v){let y=1;for(;y<v.length-1;){if(v[y]===i){const S=u(v[y-1],v[y+1]);if(S!==void 0){v.splice(y-1,3,S);continue}v[y++]="+"}y++}}function u(v,y){if(y==='""')return v;if(v==='""')return y;if(typeof v=="string")return y instanceof n||v[v.length-1]!=='"'?void 0:typeof y!="string"?`${v.slice(0,-1)}${y}"`:y[0]==='"'?v.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(v instanceof n))return`"${v}${y.slice(1)}`}function d(v,y){return y.emptyStr()?v:v.emptyStr()?y:l`${v}${y}`}e.strConcat=d;function p(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:m(Array.isArray(v)?v.join(","):v)}function h(v){return new o(m(v))}e.stringify=h;function m(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function b(v){return typeof v=="string"&&e.IDENTIFIER.test(v)?new o(`.${v}`):s`[${v}]`}e.getProperty=b;function f(v){if(typeof v=="string"&&e.IDENTIFIER.test(v))return new o(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}e.getEsmExportName=f;function g(v){return new o(v.toString())}e.regexpCode=g})(ad)),ad}var ld={},ky;function _y(){return ky||(ky=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Js();class n extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var o;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(o||(e.UsedValueState=o={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:u,parent:d}={}){this._names={},this._prefixes=u,this._parent=d}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const d=this._names[u]||this._nameGroup(u);return`${u}${d.index++}`}_nameGroup(u){var d,p;if(!((p=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||p===void 0)&&p.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=s;class i extends t.Name{constructor(u,d){super(d),this.prefix=u}setValue(u,{property:d,itemIndex:p}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(d)}[${p}]`}}e.ValueScopeName=i;const l=(0,t._)`\n`;class a extends s{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?l:t.nil}}get(){return this._scope}name(u){return new i(u,this._newName(u))}value(u,d){var p;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(u),{prefix:m}=h,b=(p=d.key)!==null&&p!==void 0?p:d.ref;let f=this._values[m];if(f){const y=f.get(b);if(y)return y}else f=this._values[m]=new Map;f.set(b,h);const g=this._scope[m]||(this._scope[m]=[]),v=g.length;return g[v]=d.ref,h.setValue(d,{property:m,itemIndex:v}),h}getValue(u,d){const p=this._values[u];if(p)return p.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,t._)`${u}${p.scopePath}`})}scopeCode(u=this._values,d,p){return this._reduceValues(u,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},d,p)}_reduceValues(u,d,p={},h){let m=t.nil;for(const b in u){const f=u[b];if(!f)continue;const g=p[b]=p[b]||new Map;f.forEach(v=>{if(g.has(v))return;g.set(v,o.Started);let y=d(v);if(y){const S=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${S} ${v} = ${y};${this.opts._n}`}else if(y=h?.(v))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(v);g.set(v,o.Completed)})}return m}}e.ValueScope=a})(ld)),ld}var Ry;function nt(){return Ry||(Ry=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Js(),n=_y();var o=Js();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}});var s=_y();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class i{optimizeNodes(){return this}optimizeNames(R,A){return this}}class l extends i{constructor(R,A,U){super(),this.varKind=R,this.name=A,this.rhs=U}render({es5:R,_n:A}){const U=R?n.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${X};`+A}optimizeNames(R,A){if(R[this.name.str])return this.rhs&&(this.rhs=D(this.rhs,R,A)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends i{constructor(R,A,U){super(),this.lhs=R,this.rhs=A,this.sideEffects=U}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,A){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=D(this.rhs,R,A),this}get names(){const R=this.lhs instanceof t.Name?{}:{...this.lhs.names};return N(R,this.rhs)}}class c extends a{constructor(R,A,U,X){super(R,U,X),this.op=A}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class u extends i{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}}class d extends i{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}}class p extends i{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class h extends i{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,A){return this.code=D(this.code,R,A),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends i{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((A,U)=>A+U.render(R),"")}optimizeNodes(){const{nodes:R}=this;let A=R.length;for(;A--;){const U=R[A].optimizeNodes();Array.isArray(U)?R.splice(A,1,...U):U?R[A]=U:R.splice(A,1)}return R.length>0?this:void 0}optimizeNames(R,A){const{nodes:U}=this;let X=U.length;for(;X--;){const se=U[X];se.optimizeNames(R,A)||(j(R,se.names),U.splice(X,1))}return U.length>0?this:void 0}get names(){return this.nodes.reduce((R,A)=>C(R,A.names),{})}}class b extends m{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class f extends m{}class g extends b{}g.kind="else";class v extends b{constructor(R,A){super(A),this.condition=R}render(R){let A=`if(${this.condition})`+super.render(R);return this.else&&(A+="else "+this.else.render(R)),A}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===!0)return this.nodes;let A=this.else;if(A){const U=A.optimizeNodes();A=this.else=Array.isArray(U)?new g(U):U}if(A)return R===!1?A instanceof v?A:A.nodes:this.nodes.length?this:new v(F(R),A instanceof v?[A]:A.nodes);if(!(R===!1||!this.nodes.length))return this}optimizeNames(R,A){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames(R,A),!!(super.optimizeNames(R,A)||this.else))return this.condition=D(this.condition,R,A),this}get names(){const R=super.names;return N(R,this.condition),this.else&&C(R,this.else.names),R}}v.kind="if";class y extends b{}y.kind="for";class S extends y{constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,A){if(super.optimizeNames(R,A))return this.iteration=D(this.iteration,R,A),this}get names(){return C(super.names,this.iteration.names)}}class w extends y{constructor(R,A,U,X){super(),this.varKind=R,this.name=A,this.from=U,this.to=X}render(R){const A=R.es5?n.varKinds.var:this.varKind,{name:U,from:X,to:se}=this;return`for(${A} ${U}=${X}; ${U}<${se}; ${U}++)`+super.render(R)}get names(){const R=N(super.names,this.from);return N(R,this.to)}}class x extends y{constructor(R,A,U,X){super(),this.loop=R,this.varKind=A,this.name=U,this.iterable=X}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,A){if(super.optimizeNames(R,A))return this.iterable=D(this.iterable,R,A),this}get names(){return C(super.names,this.iterable.names)}}class P extends b{constructor(R,A,U){super(),this.name=R,this.args=A,this.async=U}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}}P.kind="func";class T extends m{render(R){return"return "+super.render(R)}}T.kind="return";class I extends b{render(R){let A="try"+super.render(R);return this.catch&&(A+=this.catch.render(R)),this.finally&&(A+=this.finally.render(R)),A}optimizeNodes(){var R,A;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(A=this.finally)===null||A===void 0||A.optimizeNodes(),this}optimizeNames(R,A){var U,X;return super.optimizeNames(R,A),(U=this.catch)===null||U===void 0||U.optimizeNames(R,A),(X=this.finally)===null||X===void 0||X.optimizeNames(R,A),this}get names(){const R=super.names;return this.catch&&C(R,this.catch.names),this.finally&&C(R,this.finally.names),R}}class $ extends b{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}$.kind="catch";class M extends b{render(R){return"finally"+super.render(R)}}M.kind="finally";class k{constructor(R,A={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...A,_n:A.lines?`
7
+ `:""},this._extScope=R,this._scope=new n.Scope({parent:R}),this._nodes=[new f]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,A){const U=this._extScope.value(R,A);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue(R,A){return this._extScope.getValue(R,A)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,A,U,X){const se=this._scope.toName(A);return U!==void 0&&X&&(this._constants[se.str]=U),this._leafNode(new l(R,se,U)),se}const(R,A,U){return this._def(n.varKinds.const,R,A,U)}let(R,A,U){return this._def(n.varKinds.let,R,A,U)}var(R,A,U){return this._def(n.varKinds.var,R,A,U)}assign(R,A,U){return this._leafNode(new a(R,A,U))}add(R,A){return this._leafNode(new c(R,e.operators.ADD,A))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new h(R)),this}object(...R){const A=["{"];for(const[U,X]of R)A.length>1&&A.push(","),A.push(U),(U!==X||this.opts.es5)&&(A.push(":"),(0,t.addCodeArg)(A,X));return A.push("}"),new t._Code(A)}if(R,A,U){if(this._blockNode(new v(R)),A&&U)this.code(A).else().code(U).endIf();else if(A)this.code(A).endIf();else if(U)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(R){return this._elseNode(new v(R))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(v,g)}_for(R,A){return this._blockNode(R),A&&this.code(A).endFor(),this}for(R,A){return this._for(new S(R),A)}forRange(R,A,U,X,se=this.opts.es5?n.varKinds.var:n.varKinds.let){const te=this._scope.toName(R);return this._for(new w(se,te,A,U),()=>X(te))}forOf(R,A,U,X=n.varKinds.const){const se=this._scope.toName(R);if(this.opts.es5){const te=A instanceof t.Name?A:this.var("_arr",A);return this.forRange("_i",0,(0,t._)`${te}.length`,J=>{this.var(se,(0,t._)`${te}[${J}]`),U(se)})}return this._for(new x("of",X,se,A),()=>U(se))}forIn(R,A,U,X=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${A})`,U);const se=this._scope.toName(R);return this._for(new x("in",X,se,A),()=>U(se))}endFor(){return this._endBlockNode(y)}label(R){return this._leafNode(new u(R))}break(R){return this._leafNode(new d(R))}return(R){const A=new T;if(this._blockNode(A),this.code(R),A.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(T)}try(R,A,U){if(!A&&!U)throw new Error('CodeGen: "try" without "catch" and "finally"');const X=new I;if(this._blockNode(X),this.code(R),A){const se=this.name("e");this._currNode=X.catch=new $(se),A(se)}return U&&(this._currNode=X.finally=new M,this.code(U)),this._endBlockNode($,M)}throw(R){return this._leafNode(new p(R))}block(R,A){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(A),this}endBlock(R){const A=this._blockStarts.pop();if(A===void 0)throw new Error("CodeGen: not in self-balancing block");const U=this._nodes.length-A;if(U<0||R!==void 0&&U!==R)throw new Error(`CodeGen: wrong number of nodes: ${U} vs ${R} expected`);return this._nodes.length=A,this}func(R,A=t.nil,U,X){return this._blockNode(new P(R,A,U)),X&&this.code(X).endFunc(),this}endFunc(){return this._endBlockNode(P)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,A){const U=this._currNode;if(U instanceof R||A&&U instanceof A)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${A?`${R.kind}/${A.kind}`:R.kind}"`)}_elseNode(R){const A=this._currNode;if(!(A instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=A.else=R,this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const A=this._nodes;A[A.length-1]=R}}e.CodeGen=k;function C(z,R){for(const A in R)z[A]=(z[A]||0)+(R[A]||0);return z}function N(z,R){return R instanceof t._CodeOrName?C(z,R.names):z}function D(z,R,A){if(z instanceof t.Name)return U(z);if(!X(z))return z;return new t._Code(z._items.reduce((se,te)=>(te instanceof t.Name&&(te=U(te)),te instanceof t._Code?se.push(...te._items):se.push(te),se),[]));function U(se){const te=A[se.str];return te===void 0||R[se.str]!==1?se:(delete R[se.str],te)}function X(se){return se instanceof t._Code&&se._items.some(te=>te instanceof t.Name&&R[te.str]===1&&A[te.str]!==void 0)}}function j(z,R){for(const A in R)z[A]=(z[A]||0)-(R[A]||0)}function F(z){return typeof z=="boolean"||typeof z=="number"||z===null?!z:(0,t._)`!${q(z)}`}e.not=F;const W=E(e.operators.AND);function Y(...z){return z.reduce(W)}e.and=Y;const H=E(e.operators.OR);function L(...z){return z.reduce(H)}e.or=L;function E(z){return(R,A)=>R===t.nil?A:A===t.nil?R:(0,t._)`${q(R)} ${z} ${q(A)}`}function q(z){return z instanceof t.Name?z:(0,t._)`(${z})`}})(id)),id}var rt={},Iy;function ut(){if(Iy)return rt;Iy=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.checkStrictMode=rt.getErrorPath=rt.Type=rt.useFunc=rt.setEvaluated=rt.evaluatedPropsToName=rt.mergeEvaluated=rt.eachItem=rt.unescapeJsonPointer=rt.escapeJsonPointer=rt.escapeFragment=rt.unescapeFragment=rt.schemaRefOrVal=rt.schemaHasRulesButRef=rt.schemaHasRules=rt.checkUnknownRules=rt.alwaysValidSchema=rt.toHash=void 0;const e=nt(),t=Js();function n(x){const P={};for(const T of x)P[T]=!0;return P}rt.toHash=n;function o(x,P){return typeof P=="boolean"?P:Object.keys(P).length===0?!0:(s(x,P),!i(P,x.self.RULES.all))}rt.alwaysValidSchema=o;function s(x,P=x.schema){const{opts:T,self:I}=x;if(!T.strictSchema||typeof P=="boolean")return;const $=I.RULES.keywords;for(const M in P)$[M]||w(x,`unknown keyword: "${M}"`)}rt.checkUnknownRules=s;function i(x,P){if(typeof x=="boolean")return!x;for(const T in x)if(P[T])return!0;return!1}rt.schemaHasRules=i;function l(x,P){if(typeof x=="boolean")return!x;for(const T in x)if(T!=="$ref"&&P.all[T])return!0;return!1}rt.schemaHasRulesButRef=l;function a({topSchemaRef:x,schemaPath:P},T,I,$){if(!$){if(typeof T=="number"||typeof T=="boolean")return T;if(typeof T=="string")return(0,e._)`${T}`}return(0,e._)`${x}${P}${(0,e.getProperty)(I)}`}rt.schemaRefOrVal=a;function c(x){return p(decodeURIComponent(x))}rt.unescapeFragment=c;function u(x){return encodeURIComponent(d(x))}rt.escapeFragment=u;function d(x){return typeof x=="number"?`${x}`:x.replace(/~/g,"~0").replace(/\//g,"~1")}rt.escapeJsonPointer=d;function p(x){return x.replace(/~1/g,"/").replace(/~0/g,"~")}rt.unescapeJsonPointer=p;function h(x,P){if(Array.isArray(x))for(const T of x)P(T);else P(x)}rt.eachItem=h;function m({mergeNames:x,mergeToName:P,mergeValues:T,resultToName:I}){return($,M,k,C)=>{const N=k===void 0?M:k instanceof e.Name?(M instanceof e.Name?x($,M,k):P($,M,k),k):M instanceof e.Name?(P($,k,M),M):T(M,k);return C===e.Name&&!(N instanceof e.Name)?I($,N):N}}rt.mergeEvaluated={props:m({mergeNames:(x,P,T)=>x.if((0,e._)`${T} !== true && ${P} !== undefined`,()=>{x.if((0,e._)`${P} === true`,()=>x.assign(T,!0),()=>x.assign(T,(0,e._)`${T} || {}`).code((0,e._)`Object.assign(${T}, ${P})`))}),mergeToName:(x,P,T)=>x.if((0,e._)`${T} !== true`,()=>{P===!0?x.assign(T,!0):(x.assign(T,(0,e._)`${T} || {}`),f(x,T,P))}),mergeValues:(x,P)=>x===!0?!0:{...x,...P},resultToName:b}),items:m({mergeNames:(x,P,T)=>x.if((0,e._)`${T} !== true && ${P} !== undefined`,()=>x.assign(T,(0,e._)`${P} === true ? true : ${T} > ${P} ? ${T} : ${P}`)),mergeToName:(x,P,T)=>x.if((0,e._)`${T} !== true`,()=>x.assign(T,P===!0?!0:(0,e._)`${T} > ${P} ? ${T} : ${P}`)),mergeValues:(x,P)=>x===!0?!0:Math.max(x,P),resultToName:(x,P)=>x.var("items",P)})};function b(x,P){if(P===!0)return x.var("props",!0);const T=x.var("props",(0,e._)`{}`);return P!==void 0&&f(x,T,P),T}rt.evaluatedPropsToName=b;function f(x,P,T){Object.keys(T).forEach(I=>x.assign((0,e._)`${P}${(0,e.getProperty)(I)}`,!0))}rt.setEvaluated=f;const g={};function v(x,P){return x.scopeValue("func",{ref:P,code:g[P.code]||(g[P.code]=new t._Code(P.code))})}rt.useFunc=v;var y;(function(x){x[x.Num=0]="Num",x[x.Str=1]="Str"})(y||(rt.Type=y={}));function S(x,P,T){if(x instanceof e.Name){const I=P===y.Num;return T?I?(0,e._)`"[" + ${x} + "]"`:(0,e._)`"['" + ${x} + "']"`:I?(0,e._)`"/" + ${x}`:(0,e._)`"/" + ${x}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return T?(0,e.getProperty)(x).toString():"/"+d(x)}rt.getErrorPath=S;function w(x,P,T=x.opts.strictSchema){if(T){if(P=`strict mode: ${P}`,T===!0)throw new Error(P);x.self.logger.warn(P)}}return rt.checkStrictMode=w,rt}var Zs={},$y;function ur(){if($y)return Zs;$y=1,Object.defineProperty(Zs,"__esModule",{value:!0});const e=nt(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Zs.default=t,Zs}var Dy;function ei(){return Dy||(Dy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=nt(),n=ut(),o=ur();e.keywordError={message:({keyword:g})=>(0,t.str)`must pass "${g}" keyword validation`},e.keyword$DataError={message:({keyword:g,schemaType:v})=>v?(0,t.str)`"${g}" keyword must be ${v} ($data)`:(0,t.str)`"${g}" keyword is invalid ($data)`};function s(g,v=e.keywordError,y,S){const{it:w}=g,{gen:x,compositeRule:P,allErrors:T}=w,I=p(g,v,y);S??(P||T)?c(x,I):u(w,(0,t._)`[${I}]`)}e.reportError=s;function i(g,v=e.keywordError,y){const{it:S}=g,{gen:w,compositeRule:x,allErrors:P}=S,T=p(g,v,y);c(w,T),x||P||u(S,o.default.vErrors)}e.reportExtraError=i;function l(g,v){g.assign(o.default.errors,v),g.if((0,t._)`${o.default.vErrors} !== null`,()=>g.if(v,()=>g.assign((0,t._)`${o.default.vErrors}.length`,v),()=>g.assign(o.default.vErrors,null)))}e.resetErrorsCount=l;function a({gen:g,keyword:v,schemaValue:y,data:S,errsCount:w,it:x}){if(w===void 0)throw new Error("ajv implementation error");const P=g.name("err");g.forRange("i",w,o.default.errors,T=>{g.const(P,(0,t._)`${o.default.vErrors}[${T}]`),g.if((0,t._)`${P}.instancePath === undefined`,()=>g.assign((0,t._)`${P}.instancePath`,(0,t.strConcat)(o.default.instancePath,x.errorPath))),g.assign((0,t._)`${P}.schemaPath`,(0,t.str)`${x.errSchemaPath}/${v}`),x.opts.verbose&&(g.assign((0,t._)`${P}.schema`,y),g.assign((0,t._)`${P}.data`,S))})}e.extendErrors=a;function c(g,v){const y=g.const("err",v);g.if((0,t._)`${o.default.vErrors} === null`,()=>g.assign(o.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${o.default.vErrors}.push(${y})`),g.code((0,t._)`${o.default.errors}++`)}function u(g,v){const{gen:y,validateName:S,schemaEnv:w}=g;w.$async?y.throw((0,t._)`new ${g.ValidationError}(${v})`):(y.assign((0,t._)`${S}.errors`,v),y.return(!1))}const d={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function p(g,v,y){const{createErrors:S}=g.it;return S===!1?(0,t._)`{}`:h(g,v,y)}function h(g,v,y={}){const{gen:S,it:w}=g,x=[m(w,y),b(g,y)];return f(g,v,x),S.object(...x)}function m({errorPath:g},{instancePath:v}){const y=v?(0,t.str)`${g}${(0,n.getErrorPath)(v,n.Type.Str)}`:g;return[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,y)]}function b({keyword:g,it:{errSchemaPath:v}},{schemaPath:y,parentSchema:S}){let w=S?v:(0,t.str)`${v}/${g}`;return y&&(w=(0,t.str)`${w}${(0,n.getErrorPath)(y,n.Type.Str)}`),[d.schemaPath,w]}function f(g,{params:v,message:y},S){const{keyword:w,data:x,schemaValue:P,it:T}=g,{opts:I,propertyName:$,topSchemaRef:M,schemaPath:k}=T;S.push([d.keyword,w],[d.params,typeof v=="function"?v(g):v||(0,t._)`{}`]),I.messages&&S.push([d.message,typeof y=="function"?y(g):y]),I.verbose&&S.push([d.schema,P],[d.parentSchema,(0,t._)`${M}${k}`],[o.default.data,x]),$&&S.push([d.propertyName,$])}})(sd)),sd}var My;function dP(){if(My)return Dr;My=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.boolOrEmptySchema=Dr.topBoolOrEmptySchema=void 0;const e=ei(),t=nt(),n=ur(),o={message:"boolean schema is false"};function s(a){const{gen:c,schema:u,validateName:d}=a;u===!1?l(a,!1):typeof u=="object"&&u.$async===!0?c.return(n.default.data):(c.assign((0,t._)`${d}.errors`,null),c.return(!0))}Dr.topBoolOrEmptySchema=s;function i(a,c){const{gen:u,schema:d}=a;d===!1?(u.var(c,!1),l(a)):u.var(c,!0)}Dr.boolOrEmptySchema=i;function l(a,c){const{gen:u,data:d}=a,p={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(p,o,void 0,c)}return Dr}var qt={},Mr={},Ny;function jy(){if(Ny)return Mr;Ny=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.getRules=Mr.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function n(s){return typeof s=="string"&&t.has(s)}Mr.isJSONType=n;function o(){const s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}return Mr.getRules=o,Mr}var tr={},Ay;function Fy(){if(Ay)return tr;Ay=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.shouldUseRule=tr.shouldUseGroup=tr.schemaHasRulesForType=void 0;function e({schema:o,self:s},i){const l=s.RULES.types[i];return l&&l!==!0&&t(o,l)}tr.schemaHasRulesForType=e;function t(o,s){return s.rules.some(i=>n(o,i))}tr.shouldUseGroup=t;function n(o,s){var i;return o[s.keyword]!==void 0||((i=s.definition.implements)===null||i===void 0?void 0:i.some(l=>o[l]!==void 0))}return tr.shouldUseRule=n,tr}var Vy;function ti(){if(Vy)return qt;Vy=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.reportTypeError=qt.checkDataTypes=qt.checkDataType=qt.coerceAndCheckDataType=qt.getJSONTypes=qt.getSchemaTypes=qt.DataType=void 0;const e=jy(),t=Fy(),n=ei(),o=nt(),s=ut();var i;(function(y){y[y.Correct=0]="Correct",y[y.Wrong=1]="Wrong"})(i||(qt.DataType=i={}));function l(y){const S=a(y.type);if(S.includes("null")){if(y.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!S.length&&y.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');y.nullable===!0&&S.push("null")}return S}qt.getSchemaTypes=l;function a(y){const S=Array.isArray(y)?y:y?[y]:[];if(S.every(e.isJSONType))return S;throw new Error("type must be JSONType or JSONType[]: "+S.join(","))}qt.getJSONTypes=a;function c(y,S){const{gen:w,data:x,opts:P}=y,T=d(S,P.coerceTypes),I=S.length>0&&!(T.length===0&&S.length===1&&(0,t.schemaHasRulesForType)(y,S[0]));if(I){const $=b(S,x,P.strictNumbers,i.Wrong);w.if($,()=>{T.length?p(y,S,T):g(y)})}return I}qt.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function d(y,S){return S?y.filter(w=>u.has(w)||S==="array"&&w==="array"):[]}function p(y,S,w){const{gen:x,data:P,opts:T}=y,I=x.let("dataType",(0,o._)`typeof ${P}`),$=x.let("coerced",(0,o._)`undefined`);T.coerceTypes==="array"&&x.if((0,o._)`${I} == 'object' && Array.isArray(${P}) && ${P}.length == 1`,()=>x.assign(P,(0,o._)`${P}[0]`).assign(I,(0,o._)`typeof ${P}`).if(b(S,P,T.strictNumbers),()=>x.assign($,P))),x.if((0,o._)`${$} !== undefined`);for(const k of w)(u.has(k)||k==="array"&&T.coerceTypes==="array")&&M(k);x.else(),g(y),x.endIf(),x.if((0,o._)`${$} !== undefined`,()=>{x.assign(P,$),h(y,$)});function M(k){switch(k){case"string":x.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign($,(0,o._)`"" + ${P}`).elseIf((0,o._)`${P} === null`).assign($,(0,o._)`""`);return;case"number":x.elseIf((0,o._)`${I} == "boolean" || ${P} === null
8
+ || (${I} == "string" && ${P} && ${P} == +${P})`).assign($,(0,o._)`+${P}`);return;case"integer":x.elseIf((0,o._)`${I} === "boolean" || ${P} === null
9
+ || (${I} === "string" && ${P} && ${P} == +${P} && !(${P} % 1))`).assign($,(0,o._)`+${P}`);return;case"boolean":x.elseIf((0,o._)`${P} === "false" || ${P} === 0 || ${P} === null`).assign($,!1).elseIf((0,o._)`${P} === "true" || ${P} === 1`).assign($,!0);return;case"null":x.elseIf((0,o._)`${P} === "" || ${P} === 0 || ${P} === false`),x.assign($,null);return;case"array":x.elseIf((0,o._)`${I} === "string" || ${I} === "number"
10
+ || ${I} === "boolean" || ${P} === null`).assign($,(0,o._)`[${P}]`)}}}function h({gen:y,parentData:S,parentDataProperty:w},x){y.if((0,o._)`${S} !== undefined`,()=>y.assign((0,o._)`${S}[${w}]`,x))}function m(y,S,w,x=i.Correct){const P=x===i.Correct?o.operators.EQ:o.operators.NEQ;let T;switch(y){case"null":return(0,o._)`${S} ${P} null`;case"array":T=(0,o._)`Array.isArray(${S})`;break;case"object":T=(0,o._)`${S} && typeof ${S} == "object" && !Array.isArray(${S})`;break;case"integer":T=I((0,o._)`!(${S} % 1) && !isNaN(${S})`);break;case"number":T=I();break;default:return(0,o._)`typeof ${S} ${P} ${y}`}return x===i.Correct?T:(0,o.not)(T);function I($=o.nil){return(0,o.and)((0,o._)`typeof ${S} == "number"`,$,w?(0,o._)`isFinite(${S})`:o.nil)}}qt.checkDataType=m;function b(y,S,w,x){if(y.length===1)return m(y[0],S,w,x);let P;const T=(0,s.toHash)(y);if(T.array&&T.object){const I=(0,o._)`typeof ${S} != "object"`;P=T.null?I:(0,o._)`!${S} || ${I}`,delete T.null,delete T.array,delete T.object}else P=o.nil;T.number&&delete T.integer;for(const I in T)P=(0,o.and)(P,m(I,S,w,x));return P}qt.checkDataTypes=b;const f={message:({schema:y})=>`must be ${y}`,params:({schema:y,schemaValue:S})=>typeof y=="string"?(0,o._)`{type: ${y}}`:(0,o._)`{type: ${S}}`};function g(y){const S=v(y);(0,n.reportError)(S,f)}qt.reportTypeError=g;function v(y){const{gen:S,data:w,schema:x}=y,P=(0,s.schemaRefOrVal)(y,x,"type");return{gen:S,keyword:"type",data:w,schema:x.type,schemaCode:P,schemaValue:P,parentSchema:x,params:{},it:y}}return qt}var Fo={},Ly;function fP(){if(Ly)return Fo;Ly=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.assignDefaults=void 0;const e=nt(),t=ut();function n(s,i){const{properties:l,items:a}=s.schema;if(i==="object"&&l)for(const c in l)o(s,c,l[c].default);else i==="array"&&Array.isArray(a)&&a.forEach((c,u)=>o(s,u,c.default))}Fo.assignDefaults=n;function o(s,i,l){const{gen:a,compositeRule:c,data:u,opts:d}=s;if(l===void 0)return;const p=(0,e._)`${u}${(0,e.getProperty)(i)}`;if(c){(0,t.checkStrictMode)(s,`default is ignored for: ${p}`);return}let h=(0,e._)`${p} === undefined`;d.useDefaults==="empty"&&(h=(0,e._)`${h} || ${p} === null || ${p} === ""`),a.if(h,(0,e._)`${p} = ${(0,e.stringify)(l)}`)}return Fo}var Rn={},bt={},By;function In(){if(By)return bt;By=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.validateUnion=bt.validateArray=bt.usePattern=bt.callValidateCode=bt.schemaProperties=bt.allSchemaProperties=bt.noPropertyInData=bt.propertyInData=bt.isOwnProperty=bt.hasPropFunc=bt.reportMissingProp=bt.checkMissingProp=bt.checkReportMissingProp=void 0;const e=nt(),t=ut(),n=ur(),o=ut();function s(y,S){const{gen:w,data:x,it:P}=y;w.if(d(w,x,S,P.opts.ownProperties),()=>{y.setParams({missingProperty:(0,e._)`${S}`},!0),y.error()})}bt.checkReportMissingProp=s;function i({gen:y,data:S,it:{opts:w}},x,P){return(0,e.or)(...x.map(T=>(0,e.and)(d(y,S,T,w.ownProperties),(0,e._)`${P} = ${T}`)))}bt.checkMissingProp=i;function l(y,S){y.setParams({missingProperty:S},!0),y.error()}bt.reportMissingProp=l;function a(y){return y.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}bt.hasPropFunc=a;function c(y,S,w){return(0,e._)`${a(y)}.call(${S}, ${w})`}bt.isOwnProperty=c;function u(y,S,w,x){const P=(0,e._)`${S}${(0,e.getProperty)(w)} !== undefined`;return x?(0,e._)`${P} && ${c(y,S,w)}`:P}bt.propertyInData=u;function d(y,S,w,x){const P=(0,e._)`${S}${(0,e.getProperty)(w)} === undefined`;return x?(0,e.or)(P,(0,e.not)(c(y,S,w))):P}bt.noPropertyInData=d;function p(y){return y?Object.keys(y).filter(S=>S!=="__proto__"):[]}bt.allSchemaProperties=p;function h(y,S){return p(S).filter(w=>!(0,t.alwaysValidSchema)(y,S[w]))}bt.schemaProperties=h;function m({schemaCode:y,data:S,it:{gen:w,topSchemaRef:x,schemaPath:P,errorPath:T},it:I},$,M,k){const C=k?(0,e._)`${y}, ${S}, ${x}${P}`:S,N=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,T)],[n.default.parentData,I.parentData],[n.default.parentDataProperty,I.parentDataProperty],[n.default.rootData,n.default.rootData]];I.opts.dynamicRef&&N.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const D=(0,e._)`${C}, ${w.object(...N)}`;return M!==e.nil?(0,e._)`${$}.call(${M}, ${D})`:(0,e._)`${$}(${D})`}bt.callValidateCode=m;const b=(0,e._)`new RegExp`;function f({gen:y,it:{opts:S}},w){const x=S.unicodeRegExp?"u":"",{regExp:P}=S.code,T=P(w,x);return y.scopeValue("pattern",{key:T.toString(),ref:T,code:(0,e._)`${P.code==="new RegExp"?b:(0,o.useFunc)(y,P)}(${w}, ${x})`})}bt.usePattern=f;function g(y){const{gen:S,data:w,keyword:x,it:P}=y,T=S.name("valid");if(P.allErrors){const $=S.let("valid",!0);return I(()=>S.assign($,!1)),$}return S.var(T,!0),I(()=>S.break()),T;function I($){const M=S.const("len",(0,e._)`${w}.length`);S.forRange("i",0,M,k=>{y.subschema({keyword:x,dataProp:k,dataPropType:t.Type.Num},T),S.if((0,e.not)(T),$)})}}bt.validateArray=g;function v(y){const{gen:S,schema:w,keyword:x,it:P}=y;if(!Array.isArray(w))throw new Error("ajv implementation error");if(w.some(M=>(0,t.alwaysValidSchema)(P,M))&&!P.opts.unevaluated)return;const I=S.let("valid",!1),$=S.name("_valid");S.block(()=>w.forEach((M,k)=>{const C=y.subschema({keyword:x,schemaProp:k,compositeRule:!0},$);S.assign(I,(0,e._)`${I} || ${$}`),y.mergeValidEvaluated(C,$)||S.if((0,e.not)(I))})),y.result(I,()=>y.reset(),()=>y.error(!0))}return bt.validateUnion=v,bt}var qy;function pP(){if(qy)return Rn;qy=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.validateKeywordUsage=Rn.validSchemaType=Rn.funcKeywordCode=Rn.macroKeywordCode=void 0;const e=nt(),t=ur(),n=In(),o=ei();function s(h,m){const{gen:b,keyword:f,schema:g,parentSchema:v,it:y}=h,S=m.macro.call(y.self,g,v,y),w=u(b,f,S);y.opts.validateSchema!==!1&&y.self.validateSchema(S,!0);const x=b.name("valid");h.subschema({schema:S,schemaPath:e.nil,errSchemaPath:`${y.errSchemaPath}/${f}`,topSchemaRef:w,compositeRule:!0},x),h.pass(x,()=>h.error(!0))}Rn.macroKeywordCode=s;function i(h,m){var b;const{gen:f,keyword:g,schema:v,parentSchema:y,$data:S,it:w}=h;c(w,m);const x=!S&&m.compile?m.compile.call(w.self,v,y,w):m.validate,P=u(f,g,x),T=f.let("valid");h.block$data(T,I),h.ok((b=m.valid)!==null&&b!==void 0?b:T);function I(){if(m.errors===!1)k(),m.modifying&&l(h),C(()=>h.error());else{const N=m.async?$():M();m.modifying&&l(h),C(()=>a(h,N))}}function $(){const N=f.let("ruleErrs",null);return f.try(()=>k((0,e._)`await `),D=>f.assign(T,!1).if((0,e._)`${D} instanceof ${w.ValidationError}`,()=>f.assign(N,(0,e._)`${D}.errors`),()=>f.throw(D))),N}function M(){const N=(0,e._)`${P}.errors`;return f.assign(N,null),k(e.nil),N}function k(N=m.async?(0,e._)`await `:e.nil){const D=w.opts.passContext?t.default.this:t.default.self,j=!("compile"in m&&!S||m.schema===!1);f.assign(T,(0,e._)`${N}${(0,n.callValidateCode)(h,P,D,j)}`,m.modifying)}function C(N){var D;f.if((0,e.not)((D=m.valid)!==null&&D!==void 0?D:T),N)}}Rn.funcKeywordCode=i;function l(h){const{gen:m,data:b,it:f}=h;m.if(f.parentData,()=>m.assign(b,(0,e._)`${f.parentData}[${f.parentDataProperty}]`))}function a(h,m){const{gen:b}=h;b.if((0,e._)`Array.isArray(${m})`,()=>{b.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${m} : ${t.default.vErrors}.concat(${m})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,o.extendErrors)(h)},()=>h.error())}function c({schemaEnv:h},m){if(m.async&&!h.$async)throw new Error("async keyword in sync schema")}function u(h,m,b){if(b===void 0)throw new Error(`keyword "${m}" failed to compile`);return h.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,e.stringify)(b)})}function d(h,m,b=!1){return!m.length||m.some(f=>f==="array"?Array.isArray(h):f==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==f||b&&typeof h>"u")}Rn.validSchemaType=d;function p({schema:h,opts:m,self:b,errSchemaPath:f},g,v){if(Array.isArray(g.keyword)?!g.keyword.includes(v):g.keyword!==v)throw new Error("ajv implementation error");const y=g.dependencies;if(y?.some(S=>!Object.prototype.hasOwnProperty.call(h,S)))throw new Error(`parent schema must have dependencies of ${v}: ${y.join(",")}`);if(g.validateSchema&&!g.validateSchema(h[v])){const w=`keyword "${v}" value is invalid at path "${f}": `+b.errorsText(g.validateSchema.errors);if(m.validateSchema==="log")b.logger.error(w);else throw new Error(w)}}return Rn.validateKeywordUsage=p,Rn}var nr={},zy;function hP(){if(zy)return nr;zy=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.extendSubschemaMode=nr.extendSubschemaData=nr.getSubschema=void 0;const e=nt(),t=ut();function n(i,{keyword:l,schemaProp:a,schema:c,schemaPath:u,errSchemaPath:d,topSchemaRef:p}){if(l!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const h=i.schema[l];return a===void 0?{schema:h,schemaPath:(0,e._)`${i.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${i.errSchemaPath}/${l}`}:{schema:h[a],schemaPath:(0,e._)`${i.schemaPath}${(0,e.getProperty)(l)}${(0,e.getProperty)(a)}`,errSchemaPath:`${i.errSchemaPath}/${l}/${(0,t.escapeFragment)(a)}`}}if(c!==void 0){if(u===void 0||d===void 0||p===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:p,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}nr.getSubschema=n;function o(i,l,{dataProp:a,dataPropType:c,data:u,dataTypes:d,propertyName:p}){if(u!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=l;if(a!==void 0){const{errorPath:b,dataPathArr:f,opts:g}=l,v=h.let("data",(0,e._)`${l.data}${(0,e.getProperty)(a)}`,!0);m(v),i.errorPath=(0,e.str)`${b}${(0,t.getErrorPath)(a,c,g.jsPropertySyntax)}`,i.parentDataProperty=(0,e._)`${a}`,i.dataPathArr=[...f,i.parentDataProperty]}if(u!==void 0){const b=u instanceof e.Name?u:h.let("data",u,!0);m(b),p!==void 0&&(i.propertyName=p)}d&&(i.dataTypes=d);function m(b){i.data=b,i.dataLevel=l.dataLevel+1,i.dataTypes=[],l.definedProperties=new Set,i.parentData=l.data,i.dataNames=[...l.dataNames,b]}}nr.extendSubschemaData=o;function s(i,{jtdDiscriminator:l,jtdMetadata:a,compositeRule:c,createErrors:u,allErrors:d}){c!==void 0&&(i.compositeRule=c),u!==void 0&&(i.createErrors=u),d!==void 0&&(i.allErrors=d),i.jtdDiscriminator=l,i.jtdMetadata=a}return nr.extendSubschemaMode=s,nr}var Jt={},cd,Uy;function Wy(){return Uy||(Uy=1,cd=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,s,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(s=o;s--!==0;)if(!e(t[s],n[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[s]))return!1;for(s=o;s--!==0;){var l=i[s];if(!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n}),cd}var ud={exports:{}},Hy;function mP(){if(Hy)return ud.exports;Hy=1;var e=ud.exports=function(o,s,i){typeof s=="function"&&(i=s,s={}),i=s.cb||i;var l=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};t(s,l,a,o,"",o)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(o,s,i,l,a,c,u,d,p,h){if(l&&typeof l=="object"&&!Array.isArray(l)){s(l,a,c,u,d,p,h);for(var m in l){var b=l[m];if(Array.isArray(b)){if(m in e.arrayKeywords)for(var f=0;f<b.length;f++)t(o,s,i,b[f],a+"/"+m+"/"+f,c,a,m,l,f)}else if(m in e.propsKeywords){if(b&&typeof b=="object")for(var g in b)t(o,s,i,b[g],a+"/"+m+"/"+n(g),c,a,m,l,g)}else(m in e.keywords||o.allKeys&&!(m in e.skipKeywords))&&t(o,s,i,b,a+"/"+m,c,a,m,l)}i(l,a,c,u,d,p,h)}}function n(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}return ud.exports}var Yy;function ni(){if(Yy)return Jt;Yy=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.getSchemaRefs=Jt.resolveUrl=Jt.normalizeId=Jt._getFullPath=Jt.getFullPath=Jt.inlineRef=void 0;const e=ut(),t=Wy(),n=mP(),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function s(f,g=!0){return typeof f=="boolean"?!0:g===!0?!l(f):g?a(f)<=g:!1}Jt.inlineRef=s;const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(f){for(const g in f){if(i.has(g))return!0;const v=f[g];if(Array.isArray(v)&&v.some(l)||typeof v=="object"&&l(v))return!0}return!1}function a(f){let g=0;for(const v in f){if(v==="$ref")return 1/0;if(g++,!o.has(v)&&(typeof f[v]=="object"&&(0,e.eachItem)(f[v],y=>g+=a(y)),g===1/0))return 1/0}return g}function c(f,g="",v){v!==!1&&(g=p(g));const y=f.parse(g);return u(f,y)}Jt.getFullPath=c;function u(f,g){return f.serialize(g).split("#")[0]+"#"}Jt._getFullPath=u;const d=/#\/?$/;function p(f){return f?f.replace(d,""):""}Jt.normalizeId=p;function h(f,g,v){return v=p(v),f.resolve(g,v)}Jt.resolveUrl=h;const m=/^[a-z_][-a-z0-9._]*$/i;function b(f,g){if(typeof f=="boolean")return{};const{schemaId:v,uriResolver:y}=this.opts,S=p(f[v]||g),w={"":S},x=c(y,S,!1),P={},T=new Set;return n(f,{allKeys:!0},(M,k,C,N)=>{if(N===void 0)return;const D=x+k;let j=w[N];typeof M[v]=="string"&&(j=F.call(this,M[v])),W.call(this,M.$anchor),W.call(this,M.$dynamicAnchor),w[k]=j;function F(Y){const H=this.opts.uriResolver.resolve;if(Y=p(j?H(j,Y):Y),T.has(Y))throw $(Y);T.add(Y);let L=this.refs[Y];return typeof L=="string"&&(L=this.refs[L]),typeof L=="object"?I(M,L.schema,Y):Y!==p(D)&&(Y[0]==="#"?(I(M,P[Y],Y),P[Y]=M):this.refs[Y]=D),Y}function W(Y){if(typeof Y=="string"){if(!m.test(Y))throw new Error(`invalid anchor "${Y}"`);F.call(this,`#${Y}`)}}}),P;function I(M,k,C){if(k!==void 0&&!t(M,k))throw $(C)}function $(M){return new Error(`reference "${M}" resolves to more than one schema`)}}return Jt.getSchemaRefs=b,Jt}var Ky;function ri(){if(Ky)return er;Ky=1,Object.defineProperty(er,"__esModule",{value:!0}),er.getData=er.KeywordCxt=er.validateFunctionCode=void 0;const e=dP(),t=ti(),n=Fy(),o=ti(),s=fP(),i=pP(),l=hP(),a=nt(),c=ur(),u=ni(),d=ut(),p=ei();function h(B){if(x(B)&&(T(B),w(B))){g(B);return}m(B,()=>(0,e.topBoolOrEmptySchema)(B))}er.validateFunctionCode=h;function m({gen:B,validateName:V,schema:Q,schemaEnv:G,opts:ne},ae){ne.code.es5?B.func(V,(0,a._)`${c.default.data}, ${c.default.valCxt}`,G.$async,()=>{B.code((0,a._)`"use strict"; ${y(Q,ne)}`),f(B,ne),B.code(ae)}):B.func(V,(0,a._)`${c.default.data}, ${b(ne)}`,G.$async,()=>B.code(y(Q,ne)).code(ae))}function b(B){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${B.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function f(B,V){B.if(c.default.valCxt,()=>{B.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),B.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),B.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),B.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),V.dynamicRef&&B.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{B.var(c.default.instancePath,(0,a._)`""`),B.var(c.default.parentData,(0,a._)`undefined`),B.var(c.default.parentDataProperty,(0,a._)`undefined`),B.var(c.default.rootData,c.default.data),V.dynamicRef&&B.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function g(B){const{schema:V,opts:Q,gen:G}=B;m(B,()=>{Q.$comment&&V.$comment&&N(B),M(B),G.let(c.default.vErrors,null),G.let(c.default.errors,0),Q.unevaluated&&v(B),I(B),D(B)})}function v(B){const{gen:V,validateName:Q}=B;B.evaluated=V.const("evaluated",(0,a._)`${Q}.evaluated`),V.if((0,a._)`${B.evaluated}.dynamicProps`,()=>V.assign((0,a._)`${B.evaluated}.props`,(0,a._)`undefined`)),V.if((0,a._)`${B.evaluated}.dynamicItems`,()=>V.assign((0,a._)`${B.evaluated}.items`,(0,a._)`undefined`))}function y(B,V){const Q=typeof B=="object"&&B[V.schemaId];return Q&&(V.code.source||V.code.process)?(0,a._)`/*# sourceURL=${Q} */`:a.nil}function S(B,V){if(x(B)&&(T(B),w(B))){P(B,V);return}(0,e.boolOrEmptySchema)(B,V)}function w({schema:B,self:V}){if(typeof B=="boolean")return!B;for(const Q in B)if(V.RULES.all[Q])return!0;return!1}function x(B){return typeof B.schema!="boolean"}function P(B,V){const{schema:Q,gen:G,opts:ne}=B;ne.$comment&&Q.$comment&&N(B),k(B),C(B);const ae=G.const("_errs",c.default.errors);I(B,ae),G.var(V,(0,a._)`${ae} === ${c.default.errors}`)}function T(B){(0,d.checkUnknownRules)(B),$(B)}function I(B,V){if(B.opts.jtd)return F(B,[],!1,V);const Q=(0,t.getSchemaTypes)(B.schema),G=(0,t.coerceAndCheckDataType)(B,Q);F(B,Q,!G,V)}function $(B){const{schema:V,errSchemaPath:Q,opts:G,self:ne}=B;V.$ref&&G.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(V,ne.RULES)&&ne.logger.warn(`$ref: keywords ignored in schema at path "${Q}"`)}function M(B){const{schema:V,opts:Q}=B;V.default!==void 0&&Q.useDefaults&&Q.strictSchema&&(0,d.checkStrictMode)(B,"default is ignored in the schema root")}function k(B){const V=B.schema[B.opts.schemaId];V&&(B.baseId=(0,u.resolveUrl)(B.opts.uriResolver,B.baseId,V))}function C(B){if(B.schema.$async&&!B.schemaEnv.$async)throw new Error("async schema in sync schema")}function N({gen:B,schemaEnv:V,schema:Q,errSchemaPath:G,opts:ne}){const ae=Q.$comment;if(ne.$comment===!0)B.code((0,a._)`${c.default.self}.logger.log(${ae})`);else if(typeof ne.$comment=="function"){const re=(0,a.str)`${G}/$comment`,ce=B.scopeValue("root",{ref:V.root});B.code((0,a._)`${c.default.self}.opts.$comment(${ae}, ${re}, ${ce}.schema)`)}}function D(B){const{gen:V,schemaEnv:Q,validateName:G,ValidationError:ne,opts:ae}=B;Q.$async?V.if((0,a._)`${c.default.errors} === 0`,()=>V.return(c.default.data),()=>V.throw((0,a._)`new ${ne}(${c.default.vErrors})`)):(V.assign((0,a._)`${G}.errors`,c.default.vErrors),ae.unevaluated&&j(B),V.return((0,a._)`${c.default.errors} === 0`))}function j({gen:B,evaluated:V,props:Q,items:G}){Q instanceof a.Name&&B.assign((0,a._)`${V}.props`,Q),G instanceof a.Name&&B.assign((0,a._)`${V}.items`,G)}function F(B,V,Q,G){const{gen:ne,schema:ae,data:re,allErrors:ce,opts:be,self:oe}=B,{RULES:fe}=oe;if(ae.$ref&&(be.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(ae,fe))){ne.block(()=>X(B,"$ref",fe.all.$ref.definition));return}be.jtd||Y(B,V),ne.block(()=>{for(const ke of fe.rules)ve(ke);ve(fe.post)});function ve(ke){(0,n.shouldUseGroup)(ae,ke)&&(ke.type?(ne.if((0,o.checkDataType)(ke.type,re,be.strictNumbers)),W(B,ke),V.length===1&&V[0]===ke.type&&Q&&(ne.else(),(0,o.reportTypeError)(B)),ne.endIf()):W(B,ke),ce||ne.if((0,a._)`${c.default.errors} === ${G||0}`))}}function W(B,V){const{gen:Q,schema:G,opts:{useDefaults:ne}}=B;ne&&(0,s.assignDefaults)(B,V.type),Q.block(()=>{for(const ae of V.rules)(0,n.shouldUseRule)(G,ae)&&X(B,ae.keyword,ae.definition,V.type)})}function Y(B,V){B.schemaEnv.meta||!B.opts.strictTypes||(H(B,V),B.opts.allowUnionTypes||L(B,V),E(B,B.dataTypes))}function H(B,V){if(V.length){if(!B.dataTypes.length){B.dataTypes=V;return}V.forEach(Q=>{z(B.dataTypes,Q)||A(B,`type "${Q}" not allowed by context "${B.dataTypes.join(",")}"`)}),R(B,V)}}function L(B,V){V.length>1&&!(V.length===2&&V.includes("null"))&&A(B,"use allowUnionTypes to allow union type keyword")}function E(B,V){const Q=B.self.RULES.all;for(const G in Q){const ne=Q[G];if(typeof ne=="object"&&(0,n.shouldUseRule)(B.schema,ne)){const{type:ae}=ne.definition;ae.length&&!ae.some(re=>q(V,re))&&A(B,`missing type "${ae.join(",")}" for keyword "${G}"`)}}}function q(B,V){return B.includes(V)||V==="number"&&B.includes("integer")}function z(B,V){return B.includes(V)||V==="integer"&&B.includes("number")}function R(B,V){const Q=[];for(const G of B.dataTypes)z(V,G)?Q.push(G):V.includes("integer")&&G==="number"&&Q.push("integer");B.dataTypes=Q}function A(B,V){const Q=B.schemaEnv.baseId+B.errSchemaPath;V+=` at "${Q}" (strictTypes)`,(0,d.checkStrictMode)(B,V,B.opts.strictTypes)}class U{constructor(V,Q,G){if((0,i.validateKeywordUsage)(V,Q,G),this.gen=V.gen,this.allErrors=V.allErrors,this.keyword=G,this.data=V.data,this.schema=V.schema[G],this.$data=Q.$data&&V.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(V,this.schema,G,this.$data),this.schemaType=Q.schemaType,this.parentSchema=V.schema,this.params={},this.it=V,this.def=Q,this.$data)this.schemaCode=V.gen.const("vSchema",J(this.$data,V));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,Q.schemaType,Q.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(Q.schemaType)}`);("code"in Q?Q.trackErrors:Q.errors!==!1)&&(this.errsCount=V.gen.const("_errs",c.default.errors))}result(V,Q,G){this.failResult((0,a.not)(V),Q,G)}failResult(V,Q,G){this.gen.if(V),G?G():this.error(),Q?(this.gen.else(),Q(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(V,Q){this.failResult((0,a.not)(V),void 0,Q)}fail(V){if(V===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(V),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(V){if(!this.$data)return this.fail(V);const{schemaCode:Q}=this;this.fail((0,a._)`${Q} !== undefined && (${(0,a.or)(this.invalid$data(),V)})`)}error(V,Q,G){if(Q){this.setParams(Q),this._error(V,G),this.setParams({});return}this._error(V,G)}_error(V,Q){(V?p.reportExtraError:p.reportError)(this,this.def.error,Q)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(V){this.allErrors||this.gen.if(V)}setParams(V,Q){Q?Object.assign(this.params,V):this.params=V}block$data(V,Q,G=a.nil){this.gen.block(()=>{this.check$data(V,G),Q()})}check$data(V=a.nil,Q=a.nil){if(!this.$data)return;const{gen:G,schemaCode:ne,schemaType:ae,def:re}=this;G.if((0,a.or)((0,a._)`${ne} === undefined`,Q)),V!==a.nil&&G.assign(V,!0),(ae.length||re.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),V!==a.nil&&G.assign(V,!1)),G.else()}invalid$data(){const{gen:V,schemaCode:Q,schemaType:G,def:ne,it:ae}=this;return(0,a.or)(re(),ce());function re(){if(G.length){if(!(Q instanceof a.Name))throw new Error("ajv implementation error");const be=Array.isArray(G)?G:[G];return(0,a._)`${(0,o.checkDataTypes)(be,Q,ae.opts.strictNumbers,o.DataType.Wrong)}`}return a.nil}function ce(){if(ne.validateSchema){const be=V.scopeValue("validate$data",{ref:ne.validateSchema});return(0,a._)`!${be}(${Q})`}return a.nil}}subschema(V,Q){const G=(0,l.getSubschema)(this.it,V);(0,l.extendSubschemaData)(G,this.it,V),(0,l.extendSubschemaMode)(G,V);const ne={...this.it,...G,items:void 0,props:void 0};return S(ne,Q),ne}mergeEvaluated(V,Q){const{it:G,gen:ne}=this;G.opts.unevaluated&&(G.props!==!0&&V.props!==void 0&&(G.props=d.mergeEvaluated.props(ne,V.props,G.props,Q)),G.items!==!0&&V.items!==void 0&&(G.items=d.mergeEvaluated.items(ne,V.items,G.items,Q)))}mergeValidEvaluated(V,Q){const{it:G,gen:ne}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return ne.if(Q,()=>this.mergeEvaluated(V,a.Name)),!0}}er.KeywordCxt=U;function X(B,V,Q,G){const ne=new U(B,Q,V);"code"in Q?Q.code(ne,G):ne.$data&&Q.validate?(0,i.funcKeywordCode)(ne,Q):"macro"in Q?(0,i.macroKeywordCode)(ne,Q):(Q.compile||Q.validate)&&(0,i.funcKeywordCode)(ne,Q)}const se=/^\/(?:[^~]|~0|~1)*$/,te=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function J(B,{dataLevel:V,dataNames:Q,dataPathArr:G}){let ne,ae;if(B==="")return c.default.rootData;if(B[0]==="/"){if(!se.test(B))throw new Error(`Invalid JSON-pointer: ${B}`);ne=B,ae=c.default.rootData}else{const oe=te.exec(B);if(!oe)throw new Error(`Invalid JSON-pointer: ${B}`);const fe=+oe[1];if(ne=oe[2],ne==="#"){if(fe>=V)throw new Error(be("property/index",fe));return G[V-fe]}if(fe>V)throw new Error(be("data",fe));if(ae=Q[V-fe],!ne)return ae}let re=ae;const ce=ne.split("/");for(const oe of ce)oe&&(ae=(0,a._)`${ae}${(0,a.getProperty)((0,d.unescapeJsonPointer)(oe))}`,re=(0,a._)`${re} && ${ae}`);return re;function be(oe,fe){return`Cannot access ${oe} ${fe} levels up, current level is ${V}`}}return er.getData=J,er}var oi={},Gy;function dd(){if(Gy)return oi;Gy=1,Object.defineProperty(oi,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}return oi.default=e,oi}var si={},Xy;function ii(){if(Xy)return si;Xy=1,Object.defineProperty(si,"__esModule",{value:!0});const e=ni();class t extends Error{constructor(o,s,i,l){super(l||`can't resolve reference ${i} from id ${s}`),this.missingRef=(0,e.resolveUrl)(o,s,i),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(o,this.missingRef))}}return si.default=t,si}var ln={},Qy;function fd(){if(Qy)return ln;Qy=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.resolveSchema=ln.getCompilingSchema=ln.resolveRef=ln.compileSchema=ln.SchemaEnv=void 0;const e=nt(),t=dd(),n=ur(),o=ni(),s=ut(),i=ri();class l{constructor(v){var y;this.refs={},this.dynamicAnchors={};let S;typeof v.schema=="object"&&(S=v.schema),this.schema=v.schema,this.schemaId=v.schemaId,this.root=v.root||this,this.baseId=(y=v.baseId)!==null&&y!==void 0?y:(0,o.normalizeId)(S?.[v.schemaId||"$id"]),this.schemaPath=v.schemaPath,this.localRefs=v.localRefs,this.meta=v.meta,this.$async=S?.$async,this.refs={}}}ln.SchemaEnv=l;function a(g){const v=d.call(this,g);if(v)return v;const y=(0,o.getFullPath)(this.opts.uriResolver,g.root.baseId),{es5:S,lines:w}=this.opts.code,{ownProperties:x}=this.opts,P=new e.CodeGen(this.scope,{es5:S,lines:w,ownProperties:x});let T;g.$async&&(T=P.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const I=P.scopeName("validate");g.validateName=I;const $={gen:P,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:P.scopeValue("schema",this.opts.code.source===!0?{ref:g.schema,code:(0,e.stringify)(g.schema)}:{ref:g.schema}),validateName:I,ValidationError:T,schema:g.schema,schemaEnv:g,rootId:y,baseId:g.baseId||y,schemaPath:e.nil,errSchemaPath:g.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let M;try{this._compilations.add(g),(0,i.validateFunctionCode)($),P.optimize(this.opts.code.optimize);const k=P.toString();M=`${P.scopeRefs(n.default.scope)}return ${k}`,this.opts.code.process&&(M=this.opts.code.process(M,g));const N=new Function(`${n.default.self}`,`${n.default.scope}`,M)(this,this.scope.get());if(this.scope.value(I,{ref:N}),N.errors=null,N.schema=g.schema,N.schemaEnv=g,g.$async&&(N.$async=!0),this.opts.code.source===!0&&(N.source={validateName:I,validateCode:k,scopeValues:P._values}),this.opts.unevaluated){const{props:D,items:j}=$;N.evaluated={props:D instanceof e.Name?void 0:D,items:j instanceof e.Name?void 0:j,dynamicProps:D instanceof e.Name,dynamicItems:j instanceof e.Name},N.source&&(N.source.evaluated=(0,e.stringify)(N.evaluated))}return g.validate=N,g}catch(k){throw delete g.validate,delete g.validateName,M&&this.logger.error("Error compiling schema, function code:",M),k}finally{this._compilations.delete(g)}}ln.compileSchema=a;function c(g,v,y){var S;y=(0,o.resolveUrl)(this.opts.uriResolver,v,y);const w=g.refs[y];if(w)return w;let x=h.call(this,g,y);if(x===void 0){const P=(S=g.localRefs)===null||S===void 0?void 0:S[y],{schemaId:T}=this.opts;P&&(x=new l({schema:P,schemaId:T,root:g,baseId:v}))}if(x!==void 0)return g.refs[y]=u.call(this,x)}ln.resolveRef=c;function u(g){return(0,o.inlineRef)(g.schema,this.opts.inlineRefs)?g.schema:g.validate?g:a.call(this,g)}function d(g){for(const v of this._compilations)if(p(v,g))return v}ln.getCompilingSchema=d;function p(g,v){return g.schema===v.schema&&g.root===v.root&&g.baseId===v.baseId}function h(g,v){let y;for(;typeof(y=this.refs[v])=="string";)v=y;return y||this.schemas[v]||m.call(this,g,v)}function m(g,v){const y=this.opts.uriResolver.parse(v),S=(0,o._getFullPath)(this.opts.uriResolver,y);let w=(0,o.getFullPath)(this.opts.uriResolver,g.baseId,void 0);if(Object.keys(g.schema).length>0&&S===w)return f.call(this,y,g);const x=(0,o.normalizeId)(S),P=this.refs[x]||this.schemas[x];if(typeof P=="string"){const T=m.call(this,g,P);return typeof T?.schema!="object"?void 0:f.call(this,y,T)}if(typeof P?.schema=="object"){if(P.validate||a.call(this,P),x===(0,o.normalizeId)(v)){const{schema:T}=P,{schemaId:I}=this.opts,$=T[I];return $&&(w=(0,o.resolveUrl)(this.opts.uriResolver,w,$)),new l({schema:T,schemaId:I,root:g,baseId:w})}return f.call(this,y,P)}}ln.resolveSchema=m;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function f(g,{baseId:v,schema:y,root:S}){var w;if(((w=g.fragment)===null||w===void 0?void 0:w[0])!=="/")return;for(const T of g.fragment.slice(1).split("/")){if(typeof y=="boolean")return;const I=y[(0,s.unescapeFragment)(T)];if(I===void 0)return;y=I;const $=typeof y=="object"&&y[this.opts.schemaId];!b.has(T)&&$&&(v=(0,o.resolveUrl)(this.opts.uriResolver,v,$))}let x;if(typeof y!="boolean"&&y.$ref&&!(0,s.schemaHasRulesButRef)(y,this.RULES)){const T=(0,o.resolveUrl)(this.opts.uriResolver,v,y.$ref);x=m.call(this,S,T)}const{schemaId:P}=this.opts;if(x=x||new l({schema:y,schemaId:P,root:S,baseId:v}),x.schema!==x.root.schema)return x}return ln}const yP={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var ai={},Vo={exports:{}},pd,Jy;function Zy(){if(Jy)return pd;Jy=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function n(h){let m="",b=0,f=0;for(f=0;f<h.length;f++)if(b=h[f].charCodeAt(0),b!==48){if(!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";m+=h[f];break}for(f+=1;f<h.length;f++){if(b=h[f].charCodeAt(0),!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";m+=h[f]}return m}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(h){return h.length=0,!0}function i(h,m,b){if(h.length){const f=n(h);if(f!=="")m.push(f);else return b.error=!0,!1;h.length=0}return!0}function l(h){let m=0;const b={error:!1,address:"",zone:""},f=[],g=[];let v=!1,y=!1,S=i;for(let w=0;w<h.length;w++){const x=h[w];if(!(x==="["||x==="]"))if(x===":"){if(v===!0&&(y=!0),!S(g,f,b))break;if(++m>7){b.error=!0;break}w>0&&h[w-1]===":"&&(v=!0),f.push(":");continue}else if(x==="%"){if(!S(g,f,b))break;S=s}else{g.push(x);continue}}return g.length&&(S===s?b.zone=g.join(""):y?f.push(g.join("")):f.push(n(g))),b.address=f.join(""),b}function a(h){if(c(h,":")<2)return{host:h,isIPV6:!1};const m=l(h);if(m.error)return{host:h,isIPV6:!1};{let b=m.address,f=m.address;return m.zone&&(b+="%"+m.zone,f+="%25"+m.zone),{host:b,isIPV6:!0,escapedHost:f}}}function c(h,m){let b=0;for(let f=0;f<h.length;f++)h[f]===m&&b++;return b}function u(h){let m=h;const b=[];let f=-1,g=0;for(;g=m.length;){if(g===1){if(m===".")break;if(m==="/"){b.push("/");break}else{b.push(m);break}}else if(g===2){if(m[0]==="."){if(m[1]===".")break;if(m[1]==="/"){m=m.slice(2);continue}}else if(m[0]==="/"&&(m[1]==="."||m[1]==="/")){b.push("/");break}}else if(g===3&&m==="/.."){b.length!==0&&b.pop(),b.push("/");break}if(m[0]==="."){if(m[1]==="."){if(m[2]==="/"){m=m.slice(3);continue}}else if(m[1]==="/"){m=m.slice(2);continue}}else if(m[0]==="/"&&m[1]==="."){if(m[2]==="/"){m=m.slice(2);continue}else if(m[2]==="."&&m[3]==="/"){m=m.slice(3),b.length!==0&&b.pop();continue}}if((f=m.indexOf("/",1))===-1){b.push(m);break}else b.push(m.slice(0,f)),m=m.slice(f)}return b.join("")}function d(h,m){const b=m!==!0?escape:unescape;return h.scheme!==void 0&&(h.scheme=b(h.scheme)),h.userinfo!==void 0&&(h.userinfo=b(h.userinfo)),h.host!==void 0&&(h.host=b(h.host)),h.path!==void 0&&(h.path=b(h.path)),h.query!==void 0&&(h.query=b(h.query)),h.fragment!==void 0&&(h.fragment=b(h.fragment)),h}function p(h){const m=[];if(h.userinfo!==void 0&&(m.push(h.userinfo),m.push("@")),h.host!==void 0){let b=unescape(h.host);if(!t(b)){const f=a(b);f.isIPV6===!0?b=`[${f.escapedHost}]`:b=h.host}m.push(b)}return(typeof h.port=="number"||typeof h.port=="string")&&(m.push(":"),m.push(String(h.port))),m.length?m.join(""):void 0}return pd={nonSimpleDomain:o,recomposeAuthority:p,normalizeComponentEncoding:d,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:a,stringArrayToHexStripped:n},pd}var hd,eg;function gP(){if(eg)return hd;eg=1;const{isUUID:e}=Zy(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function o(x){return n.indexOf(x)!==-1}function s(x){return x.secure===!0?!0:x.secure===!1?!1:x.scheme?x.scheme.length===3&&(x.scheme[0]==="w"||x.scheme[0]==="W")&&(x.scheme[1]==="s"||x.scheme[1]==="S")&&(x.scheme[2]==="s"||x.scheme[2]==="S"):!1}function i(x){return x.host||(x.error=x.error||"HTTP URIs must have a host."),x}function l(x){const P=String(x.scheme).toLowerCase()==="https";return(x.port===(P?443:80)||x.port==="")&&(x.port=void 0),x.path||(x.path="/"),x}function a(x){return x.secure=s(x),x.resourceName=(x.path||"/")+(x.query?"?"+x.query:""),x.path=void 0,x.query=void 0,x}function c(x){if((x.port===(s(x)?443:80)||x.port==="")&&(x.port=void 0),typeof x.secure=="boolean"&&(x.scheme=x.secure?"wss":"ws",x.secure=void 0),x.resourceName){const[P,T]=x.resourceName.split("?");x.path=P&&P!=="/"?P:void 0,x.query=T,x.resourceName=void 0}return x.fragment=void 0,x}function u(x,P){if(!x.path)return x.error="URN can not be parsed",x;const T=x.path.match(t);if(T){const I=P.scheme||x.scheme||"urn";x.nid=T[1].toLowerCase(),x.nss=T[2];const $=`${I}:${P.nid||x.nid}`,M=w($);x.path=void 0,M&&(x=M.parse(x,P))}else x.error=x.error||"URN can not be parsed.";return x}function d(x,P){if(x.nid===void 0)throw new Error("URN without nid cannot be serialized");const T=P.scheme||x.scheme||"urn",I=x.nid.toLowerCase(),$=`${T}:${P.nid||I}`,M=w($);M&&(x=M.serialize(x,P));const k=x,C=x.nss;return k.path=`${I||P.nid}:${C}`,P.skipEscape=!0,k}function p(x,P){const T=x;return T.uuid=T.nss,T.nss=void 0,!P.tolerant&&(!T.uuid||!e(T.uuid))&&(T.error=T.error||"UUID is not valid."),T}function h(x){const P=x;return P.nss=(x.uuid||"").toLowerCase(),P}const m={scheme:"http",domainHost:!0,parse:i,serialize:l},b={scheme:"https",domainHost:m.domainHost,parse:i,serialize:l},f={scheme:"ws",domainHost:!0,parse:a,serialize:c},g={scheme:"wss",domainHost:f.domainHost,parse:f.parse,serialize:f.serialize},S={http:m,https:b,ws:f,wss:g,urn:{scheme:"urn",parse:u,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:p,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(S,null);function w(x){return x&&(S[x]||S[x.toLowerCase()])||void 0}return hd={wsIsSecure:s,SCHEMES:S,isValidSchemeName:o,getSchemeHandler:w},hd}var tg;function bP(){if(tg)return Vo.exports;tg=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizeComponentEncoding:o,isIPv4:s,nonSimpleDomain:i}=Zy(),{SCHEMES:l,getSchemeHandler:a}=gP();function c(g,v){return typeof g=="string"?g=h(b(g,v),v):typeof g=="object"&&(g=b(h(g,v),v)),g}function u(g,v,y){const S=y?Object.assign({scheme:"null"},y):{scheme:"null"},w=d(b(g,S),b(v,S),S,!0);return S.skipEscape=!0,h(w,S)}function d(g,v,y,S){const w={};return S||(g=b(h(g,y),y),v=b(h(v,y),y)),y=y||{},!y.tolerant&&v.scheme?(w.scheme=v.scheme,w.userinfo=v.userinfo,w.host=v.host,w.port=v.port,w.path=t(v.path||""),w.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(w.userinfo=v.userinfo,w.host=v.host,w.port=v.port,w.path=t(v.path||""),w.query=v.query):(v.path?(v.path[0]==="/"?w.path=t(v.path):((g.userinfo!==void 0||g.host!==void 0||g.port!==void 0)&&!g.path?w.path="/"+v.path:g.path?w.path=g.path.slice(0,g.path.lastIndexOf("/")+1)+v.path:w.path=v.path,w.path=t(w.path)),w.query=v.query):(w.path=g.path,v.query!==void 0?w.query=v.query:w.query=g.query),w.userinfo=g.userinfo,w.host=g.host,w.port=g.port),w.scheme=g.scheme),w.fragment=v.fragment,w}function p(g,v,y){return typeof g=="string"?(g=unescape(g),g=h(o(b(g,y),!0),{...y,skipEscape:!0})):typeof g=="object"&&(g=h(o(g,!0),{...y,skipEscape:!0})),typeof v=="string"?(v=unescape(v),v=h(o(b(v,y),!0),{...y,skipEscape:!0})):typeof v=="object"&&(v=h(o(v,!0),{...y,skipEscape:!0})),g.toLowerCase()===v.toLowerCase()}function h(g,v){const y={host:g.host,scheme:g.scheme,userinfo:g.userinfo,port:g.port,path:g.path,query:g.query,nid:g.nid,nss:g.nss,uuid:g.uuid,fragment:g.fragment,reference:g.reference,resourceName:g.resourceName,secure:g.secure,error:""},S=Object.assign({},v),w=[],x=a(S.scheme||y.scheme);x&&x.serialize&&x.serialize(y,S),y.path!==void 0&&(S.skipEscape?y.path=unescape(y.path):(y.path=escape(y.path),y.scheme!==void 0&&(y.path=y.path.split("%3A").join(":")))),S.reference!=="suffix"&&y.scheme&&w.push(y.scheme,":");const P=n(y);if(P!==void 0&&(S.reference!=="suffix"&&w.push("//"),w.push(P),y.path&&y.path[0]!=="/"&&w.push("/")),y.path!==void 0){let T=y.path;!S.absolutePath&&(!x||!x.absolutePath)&&(T=t(T)),P===void 0&&T[0]==="/"&&T[1]==="/"&&(T="/%2F"+T.slice(2)),w.push(T)}return y.query!==void 0&&w.push("?",y.query),y.fragment!==void 0&&w.push("#",y.fragment),w.join("")}const m=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function b(g,v){const y=Object.assign({},v),S={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let w=!1;y.reference==="suffix"&&(y.scheme?g=y.scheme+":"+g:g="//"+g);const x=g.match(m);if(x){if(S.scheme=x[1],S.userinfo=x[3],S.host=x[4],S.port=parseInt(x[5],10),S.path=x[6]||"",S.query=x[7],S.fragment=x[8],isNaN(S.port)&&(S.port=x[5]),S.host)if(s(S.host)===!1){const I=e(S.host);S.host=I.host.toLowerCase(),w=I.isIPV6}else w=!0;S.scheme===void 0&&S.userinfo===void 0&&S.host===void 0&&S.port===void 0&&S.query===void 0&&!S.path?S.reference="same-document":S.scheme===void 0?S.reference="relative":S.fragment===void 0?S.reference="absolute":S.reference="uri",y.reference&&y.reference!=="suffix"&&y.reference!==S.reference&&(S.error=S.error||"URI is not a "+y.reference+" reference.");const P=a(y.scheme||S.scheme);if(!y.unicodeSupport&&(!P||!P.unicodeSupport)&&S.host&&(y.domainHost||P&&P.domainHost)&&w===!1&&i(S.host))try{S.host=URL.domainToASCII(S.host.toLowerCase())}catch(T){S.error=S.error||"Host's domain name can not be converted to ASCII: "+T}(!P||P&&!P.skipNormalize)&&(g.indexOf("%")!==-1&&(S.scheme!==void 0&&(S.scheme=unescape(S.scheme)),S.host!==void 0&&(S.host=unescape(S.host))),S.path&&(S.path=escape(unescape(S.path))),S.fragment&&(S.fragment=encodeURI(decodeURIComponent(S.fragment)))),P&&P.parse&&P.parse(S,y)}else S.error=S.error||"URI can not be parsed.";return S}const f={SCHEMES:l,normalize:c,resolve:u,resolveComponent:d,equal:p,serialize:h,parse:b};return Vo.exports=f,Vo.exports.default=f,Vo.exports.fastUri=f,Vo.exports}var ng;function vP(){if(ng)return ai;ng=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=bP();return e.code='require("ajv/dist/runtime/uri").default',ai.default=e,ai}var rg;function SP(){return rg||(rg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=ri();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=nt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const o=dd(),s=ii(),i=jy(),l=fd(),a=nt(),c=ni(),u=ti(),d=ut(),p=yP,h=vP(),m=(L,E)=>new RegExp(L,E);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],f=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function S(L){var E,q,z,R,A,U,X,se,te,J,B,V,Q,G,ne,ae,re,ce,be,oe,fe,ve,ke,je,Ue;const Ve=L.strict,Ze=(E=L.code)===null||E===void 0?void 0:E.optimize,Qe=Ze===!0||Ze===void 0?1:Ze||0,Ae=(z=(q=L.code)===null||q===void 0?void 0:q.regExp)!==null&&z!==void 0?z:m,Ne=(R=L.uriResolver)!==null&&R!==void 0?R:h.default;return{strictSchema:(U=(A=L.strictSchema)!==null&&A!==void 0?A:Ve)!==null&&U!==void 0?U:!0,strictNumbers:(se=(X=L.strictNumbers)!==null&&X!==void 0?X:Ve)!==null&&se!==void 0?se:!0,strictTypes:(J=(te=L.strictTypes)!==null&&te!==void 0?te:Ve)!==null&&J!==void 0?J:"log",strictTuples:(V=(B=L.strictTuples)!==null&&B!==void 0?B:Ve)!==null&&V!==void 0?V:"log",strictRequired:(G=(Q=L.strictRequired)!==null&&Q!==void 0?Q:Ve)!==null&&G!==void 0?G:!1,code:L.code?{...L.code,optimize:Qe,regExp:Ae}:{optimize:Qe,regExp:Ae},loopRequired:(ne=L.loopRequired)!==null&&ne!==void 0?ne:y,loopEnum:(ae=L.loopEnum)!==null&&ae!==void 0?ae:y,meta:(re=L.meta)!==null&&re!==void 0?re:!0,messages:(ce=L.messages)!==null&&ce!==void 0?ce:!0,inlineRefs:(be=L.inlineRefs)!==null&&be!==void 0?be:!0,schemaId:(oe=L.schemaId)!==null&&oe!==void 0?oe:"$id",addUsedSchema:(fe=L.addUsedSchema)!==null&&fe!==void 0?fe:!0,validateSchema:(ve=L.validateSchema)!==null&&ve!==void 0?ve:!0,validateFormats:(ke=L.validateFormats)!==null&&ke!==void 0?ke:!0,unicodeRegExp:(je=L.unicodeRegExp)!==null&&je!==void 0?je:!0,int32range:(Ue=L.int32range)!==null&&Ue!==void 0?Ue:!0,uriResolver:Ne}}class w{constructor(E={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,E=this.opts={...E,...S(E)};const{es5:q,lines:z}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:f,es5:q,lines:z}),this.logger=C(E.logger);const R=E.validateFormats;E.validateFormats=!1,this.RULES=(0,i.getRules)(),x.call(this,g,E,"NOT SUPPORTED"),x.call(this,v,E,"DEPRECATED","warn"),this._metaOpts=M.call(this),E.formats&&I.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),E.keywords&&$.call(this,E.keywords),typeof E.meta=="object"&&this.addMetaSchema(E.meta),T.call(this),E.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:E,meta:q,schemaId:z}=this.opts;let R=p;z==="id"&&(R={...p},R.id=R.$id,delete R.$id),q&&E&&this.addMetaSchema(R,R[z],!1)}defaultMeta(){const{meta:E,schemaId:q}=this.opts;return this.opts.defaultMeta=typeof E=="object"?E[q]||E:void 0}validate(E,q){let z;if(typeof E=="string"){if(z=this.getSchema(E),!z)throw new Error(`no schema with key or ref "${E}"`)}else z=this.compile(E);const R=z(q);return"$async"in z||(this.errors=z.errors),R}compile(E,q){const z=this._addSchema(E,q);return z.validate||this._compileSchemaEnv(z)}compileAsync(E,q){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return R.call(this,E,q);async function R(J,B){await A.call(this,J.$schema);const V=this._addSchema(J,B);return V.validate||U.call(this,V)}async function A(J){J&&!this.getSchema(J)&&await R.call(this,{$ref:J},!0)}async function U(J){try{return this._compileSchemaEnv(J)}catch(B){if(!(B instanceof s.default))throw B;return X.call(this,B),await se.call(this,B.missingSchema),U.call(this,J)}}function X({missingSchema:J,missingRef:B}){if(this.refs[J])throw new Error(`AnySchema ${J} is loaded but ${B} cannot be resolved`)}async function se(J){const B=await te.call(this,J);this.refs[J]||await A.call(this,B.$schema),this.refs[J]||this.addSchema(B,J,q)}async function te(J){const B=this._loading[J];if(B)return B;try{return await(this._loading[J]=z(J))}finally{delete this._loading[J]}}}addSchema(E,q,z,R=this.opts.validateSchema){if(Array.isArray(E)){for(const U of E)this.addSchema(U,void 0,z,R);return this}let A;if(typeof E=="object"){const{schemaId:U}=this.opts;if(A=E[U],A!==void 0&&typeof A!="string")throw new Error(`schema ${U} must be string`)}return q=(0,c.normalizeId)(q||A),this._checkUnique(q),this.schemas[q]=this._addSchema(E,z,q,R,!0),this}addMetaSchema(E,q,z=this.opts.validateSchema){return this.addSchema(E,q,!0,z),this}validateSchema(E,q){if(typeof E=="boolean")return!0;let z;if(z=E.$schema,z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const R=this.validate(z,E);if(!R&&q){const A="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(A);else throw new Error(A)}return R}getSchema(E){let q;for(;typeof(q=P.call(this,E))=="string";)E=q;if(q===void 0){const{schemaId:z}=this.opts,R=new l.SchemaEnv({schema:{},schemaId:z});if(q=l.resolveSchema.call(this,R,E),!q)return;this.refs[E]=q}return q.validate||this._compileSchemaEnv(q)}removeSchema(E){if(E instanceof RegExp)return this._removeAllSchemas(this.schemas,E),this._removeAllSchemas(this.refs,E),this;switch(typeof E){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const q=P.call(this,E);return typeof q=="object"&&this._cache.delete(q.schema),delete this.schemas[E],delete this.refs[E],this}case"object":{const q=E;this._cache.delete(q);let z=E[this.opts.schemaId];return z&&(z=(0,c.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(E){for(const q of E)this.addKeyword(q);return this}addKeyword(E,q){let z;if(typeof E=="string")z=E,typeof q=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),q.keyword=z);else if(typeof E=="object"&&q===void 0){if(q=E,z=q.keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(D.call(this,z,q),!q)return(0,d.eachItem)(z,A=>j.call(this,A)),this;W.call(this,q);const R={...q,type:(0,u.getJSONTypes)(q.type),schemaType:(0,u.getJSONTypes)(q.schemaType)};return(0,d.eachItem)(z,R.type.length===0?A=>j.call(this,A,R):A=>R.type.forEach(U=>j.call(this,A,R,U))),this}getKeyword(E){const q=this.RULES.all[E];return typeof q=="object"?q.definition:!!q}removeKeyword(E){const{RULES:q}=this;delete q.keywords[E],delete q.all[E];for(const z of q.rules){const R=z.rules.findIndex(A=>A.keyword===E);R>=0&&z.rules.splice(R,1)}return this}addFormat(E,q){return typeof q=="string"&&(q=new RegExp(q)),this.formats[E]=q,this}errorsText(E=this.errors,{separator:q=", ",dataVar:z="data"}={}){return!E||E.length===0?"No errors":E.map(R=>`${z}${R.instancePath} ${R.message}`).reduce((R,A)=>R+q+A)}$dataMetaSchema(E,q){const z=this.RULES.all;E=JSON.parse(JSON.stringify(E));for(const R of q){const A=R.split("/").slice(1);let U=E;for(const X of A)U=U[X];for(const X in z){const se=z[X];if(typeof se!="object")continue;const{$data:te}=se.definition,J=U[X];te&&J&&(U[X]=H(J))}}return E}_removeAllSchemas(E,q){for(const z in E){const R=E[z];(!q||q.test(z))&&(typeof R=="string"?delete E[z]:R&&!R.meta&&(this._cache.delete(R.schema),delete E[z]))}}_addSchema(E,q,z,R=this.opts.validateSchema,A=this.opts.addUsedSchema){let U;const{schemaId:X}=this.opts;if(typeof E=="object")U=E[X];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof E!="boolean")throw new Error("schema must be object or boolean")}let se=this._cache.get(E);if(se!==void 0)return se;z=(0,c.normalizeId)(U||z);const te=c.getSchemaRefs.call(this,E,z);return se=new l.SchemaEnv({schema:E,schemaId:X,meta:q,baseId:z,localRefs:te}),this._cache.set(se.schema,se),A&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=se),R&&this.validateSchema(E,!0),se}_checkUnique(E){if(this.schemas[E]||this.refs[E])throw new Error(`schema with key or id "${E}" already exists`)}_compileSchemaEnv(E){if(E.meta?this._compileMetaSchema(E):l.compileSchema.call(this,E),!E.validate)throw new Error("ajv implementation error");return E.validate}_compileMetaSchema(E){const q=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,E)}finally{this.opts=q}}}w.ValidationError=o.default,w.MissingRefError=s.default,e.default=w;function x(L,E,q,z="error"){for(const R in L){const A=R;A in E&&this.logger[z](`${q}: option ${R}. ${L[A]}`)}}function P(L){return L=(0,c.normalizeId)(L),this.schemas[L]||this.refs[L]}function T(){const L=this.opts.schemas;if(L)if(Array.isArray(L))this.addSchema(L);else for(const E in L)this.addSchema(L[E],E)}function I(){for(const L in this.opts.formats){const E=this.opts.formats[L];E&&this.addFormat(L,E)}}function $(L){if(Array.isArray(L)){this.addVocabulary(L);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const E in L){const q=L[E];q.keyword||(q.keyword=E),this.addKeyword(q)}}function M(){const L={...this.opts};for(const E of b)delete L[E];return L}const k={log(){},warn(){},error(){}};function C(L){if(L===!1)return k;if(L===void 0)return console;if(L.log&&L.warn&&L.error)return L;throw new Error("logger must implement log, warn and error methods")}const N=/^[a-z_$][a-z0-9_$:-]*$/i;function D(L,E){const{RULES:q}=this;if((0,d.eachItem)(L,z=>{if(q.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!N.test(z))throw new Error(`Keyword ${z} has invalid name`)}),!!E&&E.$data&&!("code"in E||"validate"in E))throw new Error('$data keyword must have "code" or "validate" function')}function j(L,E,q){var z;const R=E?.post;if(q&&R)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:A}=this;let U=R?A.post:A.rules.find(({type:se})=>se===q);if(U||(U={type:q,rules:[]},A.rules.push(U)),A.keywords[L]=!0,!E)return;const X={keyword:L,definition:{...E,type:(0,u.getJSONTypes)(E.type),schemaType:(0,u.getJSONTypes)(E.schemaType)}};E.before?F.call(this,U,X,E.before):U.rules.push(X),A.all[L]=X,(z=E.implements)===null||z===void 0||z.forEach(se=>this.addKeyword(se))}function F(L,E,q){const z=L.rules.findIndex(R=>R.keyword===q);z>=0?L.rules.splice(z,0,E):(L.rules.push(E),this.logger.warn(`rule ${q} is not defined`))}function W(L){let{metaSchema:E}=L;E!==void 0&&(L.$data&&this.opts.$data&&(E=H(E)),L.validateSchema=this.compile(E,!0))}const Y={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function H(L){return{anyOf:[L,Y]}}})(od)),od}var li={},ci={},ui={},og;function xP(){if(og)return ui;og=1,Object.defineProperty(ui,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return ui.default=e,ui}var dr={},sg;function wP(){if(sg)return dr;sg=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.callRef=dr.getValidate=void 0;const e=ii(),t=In(),n=nt(),o=ur(),s=fd(),i=ut(),l={keyword:"$ref",schemaType:"string",code(u){const{gen:d,schema:p,it:h}=u,{baseId:m,schemaEnv:b,validateName:f,opts:g,self:v}=h,{root:y}=b;if((p==="#"||p==="#/")&&m===y.baseId)return w();const S=s.resolveRef.call(v,y,m,p);if(S===void 0)throw new e.default(h.opts.uriResolver,m,p);if(S instanceof s.SchemaEnv)return x(S);return P(S);function w(){if(b===y)return c(u,f,b,b.$async);const T=d.scopeValue("root",{ref:y});return c(u,(0,n._)`${T}.validate`,y,y.$async)}function x(T){const I=a(u,T);c(u,I,T,T.$async)}function P(T){const I=d.scopeValue("schema",g.code.source===!0?{ref:T,code:(0,n.stringify)(T)}:{ref:T}),$=d.name("valid"),M=u.subschema({schema:T,dataTypes:[],schemaPath:n.nil,topSchemaRef:I,errSchemaPath:p},$);u.mergeEvaluated(M),u.ok($)}}};function a(u,d){const{gen:p}=u;return d.validate?p.scopeValue("validate",{ref:d.validate}):(0,n._)`${p.scopeValue("wrapper",{ref:d})}.validate`}dr.getValidate=a;function c(u,d,p,h){const{gen:m,it:b}=u,{allErrors:f,schemaEnv:g,opts:v}=b,y=v.passContext?o.default.this:n.nil;h?S():w();function S(){if(!g.$async)throw new Error("async schema referenced by sync schema");const T=m.let("valid");m.try(()=>{m.code((0,n._)`await ${(0,t.callValidateCode)(u,d,y)}`),P(d),f||m.assign(T,!0)},I=>{m.if((0,n._)`!(${I} instanceof ${b.ValidationError})`,()=>m.throw(I)),x(I),f||m.assign(T,!1)}),u.ok(T)}function w(){u.result((0,t.callValidateCode)(u,d,y),()=>P(d),()=>x(d))}function x(T){const I=(0,n._)`${T}.errors`;m.assign(o.default.vErrors,(0,n._)`${o.default.vErrors} === null ? ${I} : ${o.default.vErrors}.concat(${I})`),m.assign(o.default.errors,(0,n._)`${o.default.vErrors}.length`)}function P(T){var I;if(!b.opts.unevaluated)return;const $=(I=p?.validate)===null||I===void 0?void 0:I.evaluated;if(b.props!==!0)if($&&!$.dynamicProps)$.props!==void 0&&(b.props=i.mergeEvaluated.props(m,$.props,b.props));else{const M=m.var("props",(0,n._)`${T}.evaluated.props`);b.props=i.mergeEvaluated.props(m,M,b.props,n.Name)}if(b.items!==!0)if($&&!$.dynamicItems)$.items!==void 0&&(b.items=i.mergeEvaluated.items(m,$.items,b.items));else{const M=m.var("items",(0,n._)`${T}.evaluated.items`);b.items=i.mergeEvaluated.items(m,M,b.items,n.Name)}}}return dr.callRef=c,dr.default=l,dr}var ig;function CP(){if(ig)return ci;ig=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=xP(),t=wP(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return ci.default=n,ci}var di={},fi={},ag;function PP(){if(ag)return fi;ag=1,Object.defineProperty(fi,"__esModule",{value:!0});const e=nt(),t=e.operators,n={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},o={message:({keyword:i,schemaCode:l})=>(0,e.str)`must be ${n[i].okStr} ${l}`,params:({keyword:i,schemaCode:l})=>(0,e._)`{comparison: ${n[i].okStr}, limit: ${l}}`},s={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:o,code(i){const{keyword:l,data:a,schemaCode:c}=i;i.fail$data((0,e._)`${a} ${n[l].fail} ${c} || isNaN(${a})`)}};return fi.default=s,fi}var pi={},lg;function TP(){if(lg)return pi;lg=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=nt(),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:o})=>(0,e.str)`must be multiple of ${o}`,params:({schemaCode:o})=>(0,e._)`{multipleOf: ${o}}`},code(o){const{gen:s,data:i,schemaCode:l,it:a}=o,c=a.opts.multipleOfPrecision,u=s.let("res"),d=c?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,e._)`${u} !== parseInt(${u})`;o.fail$data((0,e._)`(${l} === 0 || (${u} = ${i}/${l}, ${d}))`)}};return pi.default=n,pi}var hi={},mi={},cg;function OP(){if(cg)return mi;cg=1,Object.defineProperty(mi,"__esModule",{value:!0});function e(t){const n=t.length;let o=0,s=0,i;for(;s<n;)o++,i=t.charCodeAt(s++),i>=55296&&i<=56319&&s<n&&(i=t.charCodeAt(s),(i&64512)===56320&&s++);return o}return mi.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',mi}var ug;function EP(){if(ug)return hi;ug=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=nt(),t=ut(),n=OP(),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:l}){const a=i==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${l} characters`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:l,data:a,schemaCode:c,it:u}=i,d=l==="maxLength"?e.operators.GT:e.operators.LT,p=u.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(i.gen,n.default)}(${a})`;i.fail$data((0,e._)`${p} ${d} ${c}`)}};return hi.default=s,hi}var yi={},dg;function kP(){if(dg)return yi;dg=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=In(),t=ut(),n=nt(),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,n.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,n._)`{pattern: ${i}}`},code(i){const{gen:l,data:a,$data:c,schema:u,schemaCode:d,it:p}=i,h=p.opts.unicodeRegExp?"u":"";if(c){const{regExp:m}=p.opts.code,b=m.code==="new RegExp"?(0,n._)`new RegExp`:(0,t.useFunc)(l,m),f=l.let("valid");l.try(()=>l.assign(f,(0,n._)`${b}(${d}, ${h}).test(${a})`),()=>l.assign(f,!1)),i.fail$data((0,n._)`!${f}`)}else{const m=(0,e.usePattern)(i,u);i.fail$data((0,n._)`!${m}.test(${a})`)}}};return yi.default=s,yi}var gi={},fg;function _P(){if(fg)return gi;fg=1,Object.defineProperty(gi,"__esModule",{value:!0});const e=nt(),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const i=o==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${s} properties`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:i,schemaCode:l}=o,a=s==="maxProperties"?e.operators.GT:e.operators.LT;o.fail$data((0,e._)`Object.keys(${i}).length ${a} ${l}`)}};return gi.default=n,gi}var bi={},pg;function RP(){if(pg)return bi;pg=1,Object.defineProperty(bi,"__esModule",{value:!0});const e=In(),t=nt(),n=ut(),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:i}})=>(0,t.str)`must have required property '${i}'`,params:({params:{missingProperty:i}})=>(0,t._)`{missingProperty: ${i}}`},code(i){const{gen:l,schema:a,schemaCode:c,data:u,$data:d,it:p}=i,{opts:h}=p;if(!d&&a.length===0)return;const m=a.length>=h.loopRequired;if(p.allErrors?b():f(),h.strictRequired){const y=i.parentSchema.properties,{definedProperties:S}=i.it;for(const w of a)if(y?.[w]===void 0&&!S.has(w)){const x=p.schemaEnv.baseId+p.errSchemaPath,P=`required property "${w}" is not defined at "${x}" (strictRequired)`;(0,n.checkStrictMode)(p,P,p.opts.strictRequired)}}function b(){if(m||d)i.block$data(t.nil,g);else for(const y of a)(0,e.checkReportMissingProp)(i,y)}function f(){const y=l.let("missing");if(m||d){const S=l.let("valid",!0);i.block$data(S,()=>v(y,S)),i.ok(S)}else l.if((0,e.checkMissingProp)(i,a,y)),(0,e.reportMissingProp)(i,y),l.else()}function g(){l.forOf("prop",c,y=>{i.setParams({missingProperty:y}),l.if((0,e.noPropertyInData)(l,u,y,h.ownProperties),()=>i.error())})}function v(y,S){i.setParams({missingProperty:y}),l.forOf(y,c,()=>{l.assign(S,(0,e.propertyInData)(l,u,y,h.ownProperties)),l.if((0,t.not)(S),()=>{i.error(),l.break()})},t.nil)}}};return bi.default=s,bi}var vi={},hg;function IP(){if(hg)return vi;hg=1,Object.defineProperty(vi,"__esModule",{value:!0});const e=nt(),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const i=o==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${s} items`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:i,schemaCode:l}=o,a=s==="maxItems"?e.operators.GT:e.operators.LT;o.fail$data((0,e._)`${i}.length ${a} ${l}`)}};return vi.default=n,vi}var Si={},xi={},mg;function md(){if(mg)return xi;mg=1,Object.defineProperty(xi,"__esModule",{value:!0});const e=Wy();return e.code='require("ajv/dist/runtime/equal").default',xi.default=e,xi}var yg;function $P(){if(yg)return Si;yg=1,Object.defineProperty(Si,"__esModule",{value:!0});const e=ti(),t=nt(),n=ut(),o=md(),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:l,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${l} are identical)`,params:({params:{i:l,j:a}})=>(0,t._)`{i: ${l}, j: ${a}}`},code(l){const{gen:a,data:c,$data:u,schema:d,parentSchema:p,schemaCode:h,it:m}=l;if(!u&&!d)return;const b=a.let("valid"),f=p.items?(0,e.getSchemaTypes)(p.items):[];l.block$data(b,g,(0,t._)`${h} === false`),l.ok(b);function g(){const w=a.let("i",(0,t._)`${c}.length`),x=a.let("j");l.setParams({i:w,j:x}),a.assign(b,!0),a.if((0,t._)`${w} > 1`,()=>(v()?y:S)(w,x))}function v(){return f.length>0&&!f.some(w=>w==="object"||w==="array")}function y(w,x){const P=a.name("item"),T=(0,e.checkDataTypes)(f,P,m.opts.strictNumbers,e.DataType.Wrong),I=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${w}--;`,()=>{a.let(P,(0,t._)`${c}[${w}]`),a.if(T,(0,t._)`continue`),f.length>1&&a.if((0,t._)`typeof ${P} == "string"`,(0,t._)`${P} += "_"`),a.if((0,t._)`typeof ${I}[${P}] == "number"`,()=>{a.assign(x,(0,t._)`${I}[${P}]`),l.error(),a.assign(b,!1).break()}).code((0,t._)`${I}[${P}] = ${w}`)})}function S(w,x){const P=(0,n.useFunc)(a,o.default),T=a.name("outer");a.label(T).for((0,t._)`;${w}--;`,()=>a.for((0,t._)`${x} = ${w}; ${x}--;`,()=>a.if((0,t._)`${P}(${c}[${w}], ${c}[${x}])`,()=>{l.error(),a.assign(b,!1).break(T)})))}}};return Si.default=i,Si}var wi={},gg;function DP(){if(gg)return wi;gg=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=nt(),t=ut(),n=md(),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:i})=>(0,e._)`{allowedValue: ${i}}`},code(i){const{gen:l,data:a,$data:c,schemaCode:u,schema:d}=i;c||d&&typeof d=="object"?i.fail$data((0,e._)`!${(0,t.useFunc)(l,n.default)}(${a}, ${u})`):i.fail((0,e._)`${d} !== ${a}`)}};return wi.default=s,wi}var Ci={},bg;function MP(){if(bg)return Ci;bg=1,Object.defineProperty(Ci,"__esModule",{value:!0});const e=nt(),t=ut(),n=md(),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:i})=>(0,e._)`{allowedValues: ${i}}`},code(i){const{gen:l,data:a,$data:c,schema:u,schemaCode:d,it:p}=i;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const h=u.length>=p.opts.loopEnum;let m;const b=()=>m??(m=(0,t.useFunc)(l,n.default));let f;if(h||c)f=l.let("valid"),i.block$data(f,g);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const y=l.const("vSchema",d);f=(0,e.or)(...u.map((S,w)=>v(y,w)))}i.pass(f);function g(){l.assign(f,!1),l.forOf("v",d,y=>l.if((0,e._)`${b()}(${a}, ${y})`,()=>l.assign(f,!0).break()))}function v(y,S){const w=u[S];return typeof w=="object"&&w!==null?(0,e._)`${b()}(${a}, ${y}[${S}])`:(0,e._)`${a} === ${w}`}}};return Ci.default=s,Ci}var vg;function NP(){if(vg)return di;vg=1,Object.defineProperty(di,"__esModule",{value:!0});const e=PP(),t=TP(),n=EP(),o=kP(),s=_P(),i=RP(),l=IP(),a=$P(),c=DP(),u=MP(),d=[e.default,t.default,n.default,o.default,s.default,i.default,l.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return di.default=d,di}var Pi={},eo={},Sg;function xg(){if(Sg)return eo;Sg=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.validateAdditionalItems=void 0;const e=nt(),t=ut(),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{parentSchema:l,it:a}=i,{items:c}=l;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}s(i,c)}};function s(i,l){const{gen:a,schema:c,data:u,keyword:d,it:p}=i;p.items=!0;const h=a.const("len",(0,e._)`${u}.length`);if(c===!1)i.setParams({len:l.length}),i.pass((0,e._)`${h} <= ${l.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(p,c)){const b=a.var("valid",(0,e._)`${h} <= ${l.length}`);a.if((0,e.not)(b),()=>m(b)),i.ok(b)}function m(b){a.forRange("i",l.length,h,f=>{i.subschema({keyword:d,dataProp:f,dataPropType:t.Type.Num},b),p.allErrors||a.if((0,e.not)(b),()=>a.break())})}}return eo.validateAdditionalItems=s,eo.default=o,eo}var Ti={},to={},wg;function Cg(){if(wg)return to;wg=1,Object.defineProperty(to,"__esModule",{value:!0}),to.validateTuple=void 0;const e=nt(),t=ut(),n=In(),o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(i){const{schema:l,it:a}=i;if(Array.isArray(l))return s(i,"additionalItems",l);a.items=!0,!(0,t.alwaysValidSchema)(a,l)&&i.ok((0,n.validateArray)(i))}};function s(i,l,a=i.schema){const{gen:c,parentSchema:u,data:d,keyword:p,it:h}=i;f(u),h.opts.unevaluated&&a.length&&h.items!==!0&&(h.items=t.mergeEvaluated.items(c,a.length,h.items));const m=c.name("valid"),b=c.const("len",(0,e._)`${d}.length`);a.forEach((g,v)=>{(0,t.alwaysValidSchema)(h,g)||(c.if((0,e._)`${b} > ${v}`,()=>i.subschema({keyword:p,schemaProp:v,dataProp:v},m)),i.ok(m))});function f(g){const{opts:v,errSchemaPath:y}=h,S=a.length,w=S===g.minItems&&(S===g.maxItems||g[l]===!1);if(v.strictTuples&&!w){const x=`"${p}" is ${S}-tuple, but minItems or maxItems/${l} are not specified or different at path "${y}"`;(0,t.checkStrictMode)(h,x,v.strictTuples)}}}return to.validateTuple=s,to.default=o,to}var Pg;function jP(){if(Pg)return Ti;Pg=1,Object.defineProperty(Ti,"__esModule",{value:!0});const e=Cg(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};return Ti.default=t,Ti}var Oi={},Tg;function AP(){if(Tg)return Oi;Tg=1,Object.defineProperty(Oi,"__esModule",{value:!0});const e=nt(),t=ut(),n=In(),o=xg(),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:l}})=>(0,e.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,e._)`{limit: ${l}}`},code(l){const{schema:a,parentSchema:c,it:u}=l,{prefixItems:d}=c;u.items=!0,!(0,t.alwaysValidSchema)(u,a)&&(d?(0,o.validateAdditionalItems)(l,d):l.ok((0,n.validateArray)(l)))}};return Oi.default=i,Oi}var Ei={},Og;function FP(){if(Og)return Ei;Og=1,Object.defineProperty(Ei,"__esModule",{value:!0});const e=nt(),t=ut(),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:s,max:i}})=>i===void 0?(0,e.str)`must contain at least ${s} valid item(s)`:(0,e.str)`must contain at least ${s} and no more than ${i} valid item(s)`,params:({params:{min:s,max:i}})=>i===void 0?(0,e._)`{minContains: ${s}}`:(0,e._)`{minContains: ${s}, maxContains: ${i}}`},code(s){const{gen:i,schema:l,parentSchema:a,data:c,it:u}=s;let d,p;const{minContains:h,maxContains:m}=a;u.opts.next?(d=h===void 0?1:h,p=m):d=1;const b=i.const("len",(0,e._)`${c}.length`);if(s.setParams({min:d,max:p}),p===void 0&&d===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&d>p){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,t.alwaysValidSchema)(u,l)){let S=(0,e._)`${b} >= ${d}`;p!==void 0&&(S=(0,e._)`${S} && ${b} <= ${p}`),s.pass(S);return}u.items=!0;const f=i.name("valid");p===void 0&&d===1?v(f,()=>i.if(f,()=>i.break())):d===0?(i.let(f,!0),p!==void 0&&i.if((0,e._)`${c}.length > 0`,g)):(i.let(f,!1),g()),s.result(f,()=>s.reset());function g(){const S=i.name("_valid"),w=i.let("count",0);v(S,()=>i.if(S,()=>y(w)))}function v(S,w){i.forRange("i",0,b,x=>{s.subschema({keyword:"contains",dataProp:x,dataPropType:t.Type.Num,compositeRule:!0},S),w()})}function y(S){i.code((0,e._)`${S}++`),p===void 0?i.if((0,e._)`${S} >= ${d}`,()=>i.assign(f,!0).break()):(i.if((0,e._)`${S} > ${p}`,()=>i.assign(f,!1).break()),d===1?i.assign(f,!0):i.if((0,e._)`${S} >= ${d}`,()=>i.assign(f,!0)))}}};return Ei.default=o,Ei}var yd={},Eg;function VP(){return Eg||(Eg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=nt(),n=ut(),o=In();e.error={message:({params:{property:c,depsCount:u,deps:d}})=>{const p=u===1?"property":"properties";return(0,t.str)`must have ${p} ${d} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:d,missingProperty:p}})=>(0,t._)`{property: ${c},
11
+ missingProperty: ${p},
12
12
  depsCount: ${u},
13
- deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,d]=a(c);l(c,u),s(c,d)}};function a({schema:c}){const u={},d={};for(const m in c){if(m==="__proto__")continue;const h=Array.isArray(c[m])?u:d;h[m]=c[m]}return[u,d]}function l(c,u=c.schema){const{gen:d,data:m,it:h}=c;if(Object.keys(u).length===0)return;const y=d.let("missing");for(const g in u){const f=u[g];if(f.length===0)continue;const b=(0,n.propertyInData)(d,m,g,h.opts.ownProperties);c.setParams({property:g,depsCount:f.length,deps:f.join(", ")}),h.allErrors?d.if(b,()=>{for(const v of f)(0,n.checkReportMissingProp)(c,v)}):(d.if((0,t._)`${b} && (${(0,n.checkMissingProp)(c,f,y)})`),(0,n.reportMissingProp)(c,y),d.else())}}e.validatePropertyDeps=l;function s(c,u=c.schema){const{gen:d,data:m,keyword:h,it:y}=c,g=d.name("valid");for(const f in u)(0,r.alwaysValidSchema)(y,u[f])||(d.if((0,n.propertyInData)(d,m,f,y.opts.ownProperties),()=>{const b=c.subschema({keyword:h,schemaProp:f},g);c.mergeValidEvaluated(b,g)},()=>d.var(g,!0)),c.ok(g))}e.validateSchemaDeps=s,e.default=i})(Rc)),Rc}var pi={},Qh;function g_(){if(Qh)return pi;Qh=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:a,schema:l,data:s,it:c}=i;if((0,t.alwaysValidSchema)(c,l))return;const u=a.name("valid");a.forIn("key",s,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},u),a.if((0,e.not)(u),()=>{i.error(!0),c.allErrors||a.break()})}),i.ok(u)}};return pi.default=n,pi}var hi={},em;function tm(){if(em)return hi;em=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=sr(),t=De(),r=Dr(),n=Ge(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:s,schema:c,parentSchema:u,data:d,errsCount:m,it:h}=l;if(!m)throw new Error("ajv implementation error");const{allErrors:y,opts:g}=h;if(h.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,c))return;const f=(0,e.allSchemaProperties)(u.properties),b=(0,e.allSchemaProperties)(u.patternProperties);v(),l.ok((0,t._)`${m} === ${r.default.errors}`);function v(){s.forIn("key",d,E=>{!f.length&&!b.length?S(E):s.if(p(E),()=>S(E))})}function p(E){let x;if(f.length>8){const P=(0,n.schemaRefOrVal)(h,u.properties,"properties");x=(0,e.isOwnProperty)(s,P,E)}else f.length?x=(0,t.or)(...f.map(P=>(0,t._)`${E} === ${P}`)):x=t.nil;return b.length&&(x=(0,t.or)(x,...b.map(P=>(0,t._)`${(0,e.usePattern)(l,P)}.test(${E})`))),(0,t.not)(x)}function _(E){s.code((0,t._)`delete ${d}[${E}]`)}function S(E){if(g.removeAdditional==="all"||g.removeAdditional&&c===!1){_(E);return}if(c===!1){l.setParams({additionalProperty:E}),l.error(),y||s.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(h,c)){const x=s.name("valid");g.removeAdditional==="failing"?(w(E,x,!1),s.if((0,t.not)(x),()=>{l.reset(),_(E)})):(w(E,x),y||s.if((0,t.not)(x),()=>s.break()))}}function w(E,x,P){const k={keyword:"additionalProperties",dataProp:E,dataPropType:n.Type.Str};P===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(k,x)}}};return hi.default=a,hi}var mi={},rm;function v_(){if(rm)return mi;rm=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=Vo(),t=sr(),r=Ge(),n=tm(),i={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:l,schema:s,parentSchema:c,data:u,it:d}=a;d.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(d,n.default,"additionalProperties"));const m=(0,t.allSchemaProperties)(s);for(const b of m)d.definedProperties.add(b);d.opts.unevaluated&&m.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(l,(0,r.toHash)(m),d.props));const h=m.filter(b=>!(0,r.alwaysValidSchema)(d,s[b]));if(h.length===0)return;const y=l.name("valid");for(const b of h)g(b)?f(b):(l.if((0,t.propertyInData)(l,u,b,d.opts.ownProperties)),f(b),d.allErrors||l.else().var(y,!0),l.endIf()),a.it.definedProperties.add(b),a.ok(y);function g(b){return d.opts.useDefaults&&!d.compositeRule&&s[b].default!==void 0}function f(b){a.subschema({keyword:"properties",schemaProp:b,dataProp:b},y)}}};return mi.default=i,mi}var yi={},nm;function b_(){if(nm)return yi;nm=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=sr(),t=De(),r=Ge(),n=Ge(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:l,schema:s,data:c,parentSchema:u,it:d}=a,{opts:m}=d,h=(0,e.allSchemaProperties)(s),y=h.filter(S=>(0,r.alwaysValidSchema)(d,s[S]));if(h.length===0||y.length===h.length&&(!d.opts.unevaluated||d.props===!0))return;const g=m.strictSchema&&!m.allowMatchingProperties&&u.properties,f=l.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,n.evaluatedPropsToName)(l,d.props));const{props:b}=d;v();function v(){for(const S of h)g&&p(S),d.allErrors?_(S):(l.var(f,!0),_(S),l.if(f))}function p(S){for(const w in g)new RegExp(S).test(w)&&(0,r.checkStrictMode)(d,`property ${w} matches pattern ${S} (use allowMatchingProperties)`)}function _(S){l.forIn("key",c,w=>{l.if((0,t._)`${(0,e.usePattern)(a,S)}.test(${w})`,()=>{const E=y.includes(S);E||a.subschema({keyword:"patternProperties",schemaProp:S,dataProp:w,dataPropType:n.Type.Str},f),d.opts.unevaluated&&b!==!0?l.assign((0,t._)`${b}[${w}]`,!0):!E&&!d.allErrors&&l.if((0,t.not)(f),()=>l.break())})})}}};return yi.default=i,yi}var gi={},om;function __(){if(om)return gi;om=1,Object.defineProperty(gi,"__esModule",{value:!0});const e=Ge(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:a}=r;if((0,e.alwaysValidSchema)(a,i)){r.fail();return}const l=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),r.failResult(l,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return gi.default=t,gi}var vi={},im;function w_(){if(im)return vi;im=1,Object.defineProperty(vi,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sr().validateUnion,error:{message:"must match a schema in anyOf"}};return vi.default=t,vi}var bi={},am;function S_(){if(am)return bi;am=1,Object.defineProperty(bi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:a,schema:l,parentSchema:s,it:c}=i;if(!Array.isArray(l))throw new Error("ajv implementation error");if(c.opts.discriminator&&s.discriminator)return;const u=l,d=a.let("valid",!1),m=a.let("passing",null),h=a.name("_valid");i.setParams({passing:m}),a.block(y),i.result(d,()=>i.reset(),()=>i.error(!0));function y(){u.forEach((g,f)=>{let b;(0,t.alwaysValidSchema)(c,g)?a.var(h,!0):b=i.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},h),f>0&&a.if((0,e._)`${h} && ${d}`).assign(d,!1).assign(m,(0,e._)`[${m}, ${f}]`).else(),a.if(h,()=>{a.assign(d,!0),a.assign(m,f),b&&i.mergeEvaluated(b,e.Name)})})}}};return bi.default=n,bi}var _i={},sm;function E_(){if(sm)return _i;sm=1,Object.defineProperty(_i,"__esModule",{value:!0});const e=Ge(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:a}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const l=n.name("valid");i.forEach((s,c)=>{if((0,e.alwaysValidSchema)(a,s))return;const u=r.subschema({keyword:"allOf",schemaProp:c},l);r.ok(l),r.mergeEvaluated(u)})}};return _i.default=t,_i}var wi={},lm;function O_(){if(lm)return wi;lm=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,e.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,e._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:l,parentSchema:s,it:c}=a;s.then===void 0&&s.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=i(c,"then"),d=i(c,"else");if(!u&&!d)return;const m=l.let("valid",!0),h=l.name("_valid");if(y(),a.reset(),u&&d){const f=l.let("ifClause");a.setParams({ifClause:f}),l.if(h,g("then",f),g("else",f))}else u?l.if(h,g("then")):l.if((0,e.not)(h),g("else"));a.pass(m,()=>a.error(!0));function y(){const f=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);a.mergeEvaluated(f)}function g(f,b){return()=>{const v=a.subschema({keyword:f},h);l.assign(m,h),a.mergeValidEvaluated(v,m),b?l.assign(b,(0,e._)`${f}`):a.setParams({ifClause:f})}}}};function i(a,l){const s=a.schema[l];return s!==void 0&&!(0,t.alwaysValidSchema)(a,s)}return wi.default=n,wi}var Si={},cm;function x_(){if(cm)return Si;cm=1,Object.defineProperty(Si,"__esModule",{value:!0});const e=Ge(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Si.default=t,Si}var um;function C_(){if(um)return ci;um=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=Hh(),t=p_(),r=Gh(),n=h_(),i=m_(),a=y_(),l=g_(),s=tm(),c=v_(),u=b_(),d=__(),m=w_(),h=S_(),y=E_(),g=O_(),f=x_();function b(v=!1){const p=[d.default,m.default,h.default,y.default,g.default,f.default,l.default,s.default,a.default,c.default,u.default];return v?p.push(t.default,n.default):p.push(e.default,r.default),p.push(i.default),p}return ci.default=b,ci}var Ei={},Oi={},dm;function T_(){if(dm)return Oi;dm=1,Object.defineProperty(Oi,"__esModule",{value:!0});const e=De(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:a,data:l,$data:s,schema:c,schemaCode:u,it:d}=n,{opts:m,errSchemaPath:h,schemaEnv:y,self:g}=d;if(!m.validateFormats)return;s?f():b();function f(){const v=a.scopeValue("formats",{ref:g.formats,code:m.code.formats}),p=a.const("fDef",(0,e._)`${v}[${u}]`),_=a.let("fType"),S=a.let("format");a.if((0,e._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>a.assign(_,(0,e._)`${p}.type || "string"`).assign(S,(0,e._)`${p}.validate`),()=>a.assign(_,(0,e._)`"string"`).assign(S,p)),n.fail$data((0,e.or)(w(),E()));function w(){return m.strictSchema===!1?e.nil:(0,e._)`${u} && !${S}`}function E(){const x=y.$async?(0,e._)`(${p}.async ? await ${S}(${l}) : ${S}(${l}))`:(0,e._)`${S}(${l})`,P=(0,e._)`(typeof ${S} == "function" ? ${x} : ${S}.test(${l}))`;return(0,e._)`${S} && ${S} !== true && ${_} === ${i} && !${P}`}}function b(){const v=g.formats[c];if(!v){w();return}if(v===!0)return;const[p,_,S]=E(v);p===i&&n.pass(x());function w(){if(m.strictSchema===!1){g.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${c}" ignored in schema at path "${h}"`}}function E(P){const k=P instanceof RegExp?(0,e.regexpCode)(P):m.code.formats?(0,e._)`${m.code.formats}${(0,e.getProperty)(c)}`:void 0,M=a.scopeValue("formats",{key:c,ref:P,code:k});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${M}.validate`]:["string",P,M]}function x(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${l})`}return typeof _=="function"?(0,e._)`${S}(${l})`:(0,e._)`${S}.test(${l})`}}}};return Oi.default=r,Oi}var fm;function P_(){if(fm)return Ei;fm=1,Object.defineProperty(Ei,"__esModule",{value:!0});const t=[T_().default];return Ei.default=t,Ei}var tn={},pm;function $_(){return pm||(pm=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.contentVocabulary=tn.metadataVocabulary=void 0,tn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],tn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),tn}var hm;function R_(){if(hm)return Ko;hm=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=e_(),t=f_(),r=C_(),n=P_(),i=$_(),a=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Ko.default=a,Ko}var xi={},Bn={},mm;function k_(){if(mm)return Bn;mm=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Bn.DiscrError=e={})),Bn}var ym;function I_(){if(ym)return xi;ym=1,Object.defineProperty(xi,"__esModule",{value:!0});const e=De(),t=k_(),r=Cc(),n=Wo(),i=Ge(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:s,tagName:c}})=>s===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:s,tag:c,tagName:u}})=>(0,e._)`{error: ${s}, tag: ${u}, tagValue: ${c}}`},code(s){const{gen:c,data:u,schema:d,parentSchema:m,it:h}=s,{oneOf:y}=m;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=d.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const f=c.let("valid",!1),b=c.const("tag",(0,e._)`${u}${(0,e.getProperty)(g)}`);c.if((0,e._)`typeof ${b} == "string"`,()=>v(),()=>s.error(!1,{discrError:t.DiscrError.Tag,tag:b,tagName:g})),s.ok(f);function v(){const S=_();c.if(!1);for(const w in S)c.elseIf((0,e._)`${b} === ${w}`),c.assign(f,p(S[w]));c.else(),s.error(!1,{discrError:t.DiscrError.Mapping,tag:b,tagName:g}),c.endIf()}function p(S){const w=c.name("valid"),E=s.subschema({keyword:"oneOf",schemaProp:S},w);return s.mergeEvaluated(E,e.Name),w}function _(){var S;const w={},E=P(m);let x=!0;for(let R=0;R<y.length;R++){let O=y[R];if(O?.$ref&&!(0,i.schemaHasRulesButRef)(O,h.self.RULES)){const N=O.$ref;if(O=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,N),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new n.default(h.opts.uriResolver,h.baseId,N)}const q=(S=O?.properties)===null||S===void 0?void 0:S[g];if(typeof q!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);x=x&&(E||P(O)),k(q,R)}if(!x)throw new Error(`discriminator: "${g}" must be required`);return w;function P({required:R}){return Array.isArray(R)&&R.includes(g)}function k(R,O){if(R.const)M(R.const,O);else if(R.enum)for(const q of R.enum)M(q,O);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function M(R,O){if(typeof R!="string"||R in w)throw new Error(`discriminator: "${g}" values must be unique strings`);w[R]=O}}}};return xi.default=l,xi}const j_={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var gm;function vm(){return gm||(gm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=X0(),n=R_(),i=I_(),a=j_,l=["/properties"],s="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,l):a;this.addMetaSchema(g,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=Vo();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=De();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var m=xc();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var h=Wo();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(Mo,Mo.exports)),Mo.exports}var N_=vm();const A_=Ut(N_);var Ci={exports:{}},kc={},bm;function M_(){return bm||(bm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(R,O){return{validate:R,compare:O}}e.fullFormats={date:t(a,l),time:t(c(!0),u),"date-time":t(h(!0),y),"iso-time":t(c(),d),"iso-date-time":t(h(),g),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:M,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:_,int32:{type:"number",validate:E},int64:{type:"number",validate:x},float:{type:"number",validate:P},double:{type:"number",validate:P},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,y),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,g),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(R){return R%4===0&&(R%100!==0||R%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(R){const O=n.exec(R);if(!O)return!1;const q=+O[1],N=+O[2],U=+O[3];return N>=1&&N<=12&&U>=1&&U<=(N===2&&r(q)?29:i[N])}function l(R,O){if(R&&O)return R>O?1:R<O?-1:0}const s=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(R){return function(q){const N=s.exec(q);if(!N)return!1;const U=+N[1],W=+N[2],le=+N[3],ce=N[4],ue=N[5]==="-"?-1:1,z=+(N[6]||0),C=+(N[7]||0);if(z>23||C>59||R&&!ce)return!1;if(U<=23&&W<=59&&le<60)return!0;const V=W-C*ue,A=U-z*ue-(V<0?1:0);return(A===23||A===-1)&&(V===59||V===-1)&&le<61}}function u(R,O){if(!(R&&O))return;const q=new Date("2020-01-01T"+R).valueOf(),N=new Date("2020-01-01T"+O).valueOf();if(q&&N)return q-N}function d(R,O){if(!(R&&O))return;const q=s.exec(R),N=s.exec(O);if(q&&N)return R=q[1]+q[2]+q[3],O=N[1]+N[2]+N[3],R>O?1:R<O?-1:0}const m=/t|\s/i;function h(R){const O=c(R);return function(N){const U=N.split(m);return U.length===2&&a(U[0])&&O(U[1])}}function y(R,O){if(!(R&&O))return;const q=new Date(R).valueOf(),N=new Date(O).valueOf();if(q&&N)return q-N}function g(R,O){if(!(R&&O))return;const[q,N]=R.split(m),[U,W]=O.split(m),le=l(q,U);if(le!==void 0)return le||u(N,W)}const f=/\/|:/,b=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function v(R){return f.test(R)&&b.test(R)}const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function _(R){return p.lastIndex=0,p.test(R)}const S=-2147483648,w=2**31-1;function E(R){return Number.isInteger(R)&&R<=w&&R>=S}function x(R){return Number.isInteger(R)}function P(){return!0}const k=/[^\\]\\Z/;function M(R){if(k.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}})(kc)),kc}var Ic={},_m;function D_(){return _m||(_m=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=vm(),r=De(),n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:s,schemaCode:c})=>(0,r.str)`should be ${i[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>(0,r._)`{comparison: ${i[s].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:c,data:u,schemaCode:d,keyword:m,it:h}=s,{opts:y,self:g}=h;if(!y.validateFormats)return;const f=new t.KeywordCxt(h,g.RULES.all.format.definition,"format");f.$data?b():v();function b(){const _=c.scopeValue("formats",{ref:g.formats,code:y.code.formats}),S=c.const("fmt",(0,r._)`${_}[${f.schemaCode}]`);s.fail$data((0,r.or)((0,r._)`typeof ${S} != "object"`,(0,r._)`${S} instanceof RegExp`,(0,r._)`typeof ${S}.compare != "function"`,p(S)))}function v(){const _=f.schema,S=g.formats[_];if(!S||S===!0)return;if(typeof S!="object"||S instanceof RegExp||typeof S.compare!="function")throw new Error(`"${m}": format "${_}" does not define "compare" function`);const w=c.scopeValue("formats",{key:_,ref:S,code:y.code.formats?(0,r._)`${y.code.formats}${(0,r.getProperty)(_)}`:void 0});s.fail$data(p(w))}function p(_){return(0,r._)`${_}.compare(${u}, ${d}) ${i[m].fail} 0`}},dependencies:["format"]};const l=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=l})(Ic)),Ic}var wm;function q_(){return wm||(wm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=M_(),n=D_(),i=De(),a=new i.Name("fullFormats"),l=new i.Name("fastFormats"),s=(u,d={keywords:!0})=>{if(Array.isArray(d))return c(u,d,r.fullFormats,a),u;const[m,h]=d.mode==="fast"?[r.fastFormats,l]:[r.fullFormats,a],y=d.formats||r.formatNames;return c(u,y,m,h),d.keywords&&(0,n.default)(u),u};s.get=(u,d="full")=>{const h=(d==="fast"?r.fastFormats:r.fullFormats)[u];if(!h)throw new Error(`Unknown format "${u}"`);return h};function c(u,d,m,h){var y,g;(y=(g=u.opts.code).formats)!==null&&y!==void 0||(g.formats=(0,i._)`require("ajv-formats/dist/formats").${h}`);for(const f of d)u.addFormat(f,m[f])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(Ci,Ci.exports)),Ci.exports}var L_=q_();const F_=Ut(L_),Ti=new A_({allErrors:!0,strict:!1,keywords:["readonly"]});F_(Ti);const jc=new Map,z_=(e,t)=>{try{return t.split(/[.[\]'"]/).filter(Boolean).reduce((r,n)=>r&&r[n],e)}catch{return}},V_=(e,t)=>{try{const r=Ao(t);if(!e)return!0;const n=e.match(/^(.*?)\s*(===|!==|>)\s*('([^']*)'|"([^"]*)'|([0-9.]+))$/);if(!n){console.warn(`Unsupported condition format: ${e}`);return}const i=n[1].trim(),a=n[2],l=n[3],s=n[4],c=n[5],u=n[6],d=z_(r,i);let m;if(s!==void 0)m=s;else if(c!==void 0)m=c;else if(u!==void 0)m=parseFloat(u);else{console.warn(`Could not determine the type of the right-hand value in: ${e}`);return}switch(a){case"===":return d===m;case"!==":return d!==m;case">":return d>m;case"<":return d<m;default:console.warn(`Unsupported operator: ${a}`);return}}catch(r){console.error("Custom evaluation error:",r);return}},Ft=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},Nc=e=>{const t=[];return e.forEach(r=>{t.push({name:r,value:r})}),t},Sm=(e,t)=>{if(!t)return e;const r=[],n=Object.keys(e).length===0?t:e;return t.forEach((i,a)=>{r.push({name:n[a],value:i})}),r},Xt=(e,t,r)=>{r=r||{};const n=r.global&&r.global.formDefaults?Ao(r.global.formDefaults):{};return r.global&&r.global.supressPropertyTitles===!0?n.title=t.title:n.title=t.title||e,t.description&&(n.description=t.description),(r.required===!0||t.required===!0)&&(n.required=!0),t.maxLength&&(n.maxlength=t.maxLength),t.minLength&&(n.minlength=t.minLength),(t.readOnly||t.readonly)&&(n.readonly=!0),t.minimum&&(n.minimum=t.minimum+(t.exclusiveMinimum?1:0)),t.maximum&&(n.maximum=t.maximum-(t.exclusiveMaximum?1:0)),t.validationMessage&&(n.validationMessage=t.validationMessage),t.enumNames&&(n.titleMap=Sm(t.enumNames,t.enum)),n.schema=t,n},B_=(e,t,r)=>{if(Ft(t.type)==="tBoolean"&&!t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="tBoolean",r.lookup[Rt.stringify(r.path)]=n,n}},Em=(e,t,r)=>{if(Ft(t.type)==="string"&&!t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="text",r.lookup[Rt.stringify(r.path)]=n,n}},Om=(e,t,r)=>{if(Ft(t.type)==="number"){const n=Xt(e,t,r);return n.key=r.path,n.type="number",r.lookup[Rt.stringify(r.path)]=n,n}},xm=(e,t,r)=>{if(Ft(t.type)==="integer"){const n=Xt(e,t,r);return n.key=r.path,n.type="number",r.lookup[Rt.stringify(r.path)]=n,n}},U_=(e,t,r)=>{if(Ft(t.type)==="date"){const n=Xt(e,t,r);return n.key=r.path,n.type="date",r.lookup[Rt.stringify(r.path)]=n,n}},Cm=(e,t,r)=>{if(Ft(t.type)==="boolean"){const n=Xt(e,t,r);return n.key=r.path,n.type="checkbox",r.lookup[Rt.stringify(r.path)]=n,n}},Tm=(e,t,r)=>{if(Ft(t.type)==="string"&&t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="select",!n.titleMap&&!t.isObject&&(n.titleMap=Nc(t.enum)),r.lookup[Rt.stringify(r.path)]=n,n}},Pm=e=>Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"?Pm(r):(r==null||r==="")&&delete e[t]}),$m=(e,t,r)=>{if(Ft(t.type)==="array"&&t.items&&t.items.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="checkboxes",n.titleMap||(n.titleMap=Nc(t.items.enum)),r.lookup[Rt.stringify(r.path)]=n,n}},Un=(e,t,r)=>{const n=Lr[Ft(t.type)];if(n){let i;for(let a=0;a<n.length;a+=1)if(i=n[a](e,t,r),i)return i.schema["x-schema-form"]&&i0(i.schema["x-schema-form"])&&(i=A0(i,i.schema["x-schema-form"])),i}},Rm=(e,t,r)=>{if(Ft(t.type)==="object"){const n=Xt(e,t,r);return n.type="fieldset",n.items=[],r.lookup[Rt.stringify(r.path)]=n,t.properties&&Object.keys(t.properties).forEach(i=>{if(Object.prototype.hasOwnProperty.call(t.properties,i)){const a=r.path.slice();if(a.push(i),r.ignore[Rt.stringify(a)]!==!0){const l=t.required&&t.required.indexOf(i)!==-1,s=Un(i,t.properties[i],{path:a,required:l||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});s&&n.items.push(s)}}}),n}},W_=(e,t,r)=>{if(Ft(t.type)==="array"){const n=Xt(e,t,r);if(n.type="tuple",n.key=r.path,r.lookup[Rt.stringify(r.path)]=n,Array.isArray(t.items)){const i=t.required&&t.required.indexOf(r.path[r.path.length-1]);return n.items=t.items.reduce((a,l,s)=>{const c=r.path.slice();c.push(s);const u=Un(e,l,{path:c,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});return u&&a.push(u),a},[]),n}}},km=(e,t,r)=>{if(Ft(t.type)==="array"){const n=Xt(e,t,r);if(n.type="array",n.key=r.path,r.lookup[Rt.stringify(r.path)]=n,typeof t.items<"u"){const i=t.required&&t.required.indexOf(r.path[r.path.length-1])!==-1,a=r.path.slice();a.push("");const l=Un(e,t.items,{path:a,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});l?n.items=[l]:n.items=t.items}return n}},Lr={string:[Tm,Em],object:[Rm],number:[Om],integer:[xm],boolean:[Cm],array:[$m,W_,km],date:[U_],tBoolean:[B_]},Im=(e,t,r)=>{const n=[],i={};if(t=t||{},r=r||{},Ft(e.type)==="object")e.properties&&Object.keys(e.properties).forEach(a=>{if(Object.prototype.hasOwnProperty.call(e.properties,a)&&t[a]!==!0){const l=e.required&&e.required.indexOf(a)!==-1,s=Un(a,e.properties[a],{path:[a],lookup:i,ignore:t,required:l,global:r});s&&n.push(s)}});else throw new Error('Not implemented. Only type "object" allowed at root level of schema.');return{form:n,lookup:i}},jm=e=>e,H_=(e,t)=>{Lr[e]||(Lr[e]=[]),Lr[e].push(t)},K_=(e,t)=>{Lr[e]||(Lr[e]=[]),Lr[e].unshift(t)},G_=(e,t,r,n)=>{n=typeof n<"u"?n:!0,r=r||[];const i=(a,l,s)=>{if(l(a,s),a.properties&&Object.keys(a.properties).forEach(c=>{if(Object.prototype.hasOwnProperty.call(a.properties,c)){const u=s.slice();u.push(c),i(a.properties[c],l,u)}}),!n&&a.items){const c=s.slice();c.push(""),i(a.items,l,c)}};i(e,t,r||[])},Ac=(e,t)=>{t(e),e.items&&e.items.forEach(r=>{Ac(r,t)}),e.tabs&&e.tabs.forEach(r=>{r.items.forEach(n=>{Ac(n,t)})})},Mc=(e,t,r,n,i)=>{t=t||["*"],n=n||{},i=i||e.readonly||e.readOnly;const a=Im(e,r,n),l=t.indexOf("*");l!==-1&&(t=t.slice(0,l).concat(a.form).concat(t.slice(l+1)));const{lookup:s}=a;return jm(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=Rt.parse(c.key)),c&&c.itemForm){c.items=[];const u=Rt.stringify(c.key);s[u].items.forEach(m=>{const h=Ao(c.itemForm);h.key=m.key,c.items.push(h)})}if(c&&c.key){const u=Rt.stringify(c.key);if(s[u]){const d=s[u];Object.keys(d).forEach(m=>{Object.prototype.hasOwnProperty.call(d,m)&&c[m]===void 0&&(c[m]=d[m])})}}return i===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=Mc(e,c.items,r,n,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=Mc(e,u.items,r,n,c.readonly)}),c&&c.type==="checkbox"&&q0(c.schema.default)&&(c.schema.default=!1),c}))};function Y_(e,t,r,n){const i=/^\d+$/;t||(t=this);const a=typeof e=="string"?Rt.parse(e):e;if(typeof r<"u"&&a.length===1||(typeof r<"u"&&typeof t[a[0]]>"u"&&(t[a[0]]=a.length>=2&&i.test(a[1])?[]:{}),typeof n<"u"&&["number","integer"].indexOf(n)>-1&&typeof r>"u"))return t[a[0]]=r,t;let l=t[a[0]];for(let s=1;s<a.length;s+=1){if(a[s]==="")return;if(typeof r<"u"){if(s===a.length-1)return l[a[s]]=r,r;let c=l[a[s]];(typeof c>"u"||c===null)&&(c=i.test(a[s+1])?[]:{},l[a[s]]=c),l=c}else l&&(l=l[a[s]])}return l}const Nm=(e,t)=>{if(jc.has(e))return jc.get(e);try{const r=Ti.compile(t);return jc.set(e,r),r}catch{return null}};function J_(e){const t=JSON.stringify(e);let r=0;for(let n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return r.toString(16)}const lr={traverseForm:Ac,traverseSchema:G_,prependRule:K_,appendRule:H_,postProcessFn:jm,getDefaults:Im,defaultFormDefinition:Un,defaults:Lr,array:km,fieldset:Rm,checkboxes:$m,select:Tm,checkbox:Cm,integer:xm,number:Om,text:Em,stdFormObj:Xt,canonicalTitleMap:Sm,enumToTitleMap:Nc,stripNullType:Ft,merge:Mc,validate:(e,t)=>{if(!e||!e.schema)return{valid:!0};(t===""||e.type==="number"&&(t===null||isNaN(parseFloat(t))))&&(t=void 0);const r=e.key[e.key.length-1],{schema:n}=e,i={type:"object",properties:{},$schema:"http://json-schema.org/draft-07/schema#"},a=e.key[e.key.length-1];i.properties[a]=n,e.required&&(i.required=[a]);const l=Nm(r,i);return l?l(t===void 0?{}:{[e.key[e.key.length-1]]:t})?{valid:!0}:{valid:!1,error:Ti.errorsText(l.errors,{})}:{valid:!1,error:"Invalid Schema"}},validateBySchema:(e,t)=>{e.$schema||(e.$schema="http://json-schema.org/draft-07/schema#");let r=J_(e);const n=Nm(r,e);return n?n(t===void 0?{}:t)?{valid:!0}:{valid:!1,error:Ti.errorsText(n.errors,{})}:{valid:!1,error:"Invalid Schema"}},safeEval:V_,selectOrSet:Y_,getValueFromModel:(e,t)=>{let r;return Array.isArray(t)?(t.reduce((n,i)=>n&&n[i],e),r=t.reduce((n,i)=>n&&n[i],e)):r=e[t],r},getTitleByValue:(e,t)=>{for(let r=0;r<e.length;r+=1){const n=e[r];if(n.value===t)return n.name}},removeEmpty:Pm};var Pi={exports:{}},$i={exports:{}},Xe={};var Am;function X_(){if(Am)return Xe;Am=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function _(w){if(typeof w=="object"&&w!==null){var E=w.$$typeof;switch(E){case t:switch(w=w.type,w){case c:case u:case n:case a:case i:case m:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case g:case y:case l:return w;default:return E}}case r:return E}}}function S(w){return _(w)===u}return Xe.AsyncMode=c,Xe.ConcurrentMode=u,Xe.ContextConsumer=s,Xe.ContextProvider=l,Xe.Element=t,Xe.ForwardRef=d,Xe.Fragment=n,Xe.Lazy=g,Xe.Memo=y,Xe.Portal=r,Xe.Profiler=a,Xe.StrictMode=i,Xe.Suspense=m,Xe.isAsyncMode=function(w){return S(w)||_(w)===c},Xe.isConcurrentMode=S,Xe.isContextConsumer=function(w){return _(w)===s},Xe.isContextProvider=function(w){return _(w)===l},Xe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Xe.isForwardRef=function(w){return _(w)===d},Xe.isFragment=function(w){return _(w)===n},Xe.isLazy=function(w){return _(w)===g},Xe.isMemo=function(w){return _(w)===y},Xe.isPortal=function(w){return _(w)===r},Xe.isProfiler=function(w){return _(w)===a},Xe.isStrictMode=function(w){return _(w)===i},Xe.isSuspense=function(w){return _(w)===m},Xe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===u||w===a||w===i||w===m||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===y||w.$$typeof===l||w.$$typeof===s||w.$$typeof===d||w.$$typeof===b||w.$$typeof===v||w.$$typeof===p||w.$$typeof===f)},Xe.typeOf=_,Xe}var Ze={};var Mm;function Z_(){return Mm||(Mm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function _(I){return typeof I=="string"||typeof I=="function"||I===n||I===u||I===a||I===i||I===m||I===h||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===y||I.$$typeof===l||I.$$typeof===s||I.$$typeof===d||I.$$typeof===b||I.$$typeof===v||I.$$typeof===p||I.$$typeof===f)}function S(I){if(typeof I=="object"&&I!==null){var G=I.$$typeof;switch(G){case t:var X=I.type;switch(X){case c:case u:case n:case a:case i:case m:return X;default:var ne=X&&X.$$typeof;switch(ne){case s:case d:case g:case y:case l:return ne;default:return G}}case r:return G}}}var w=c,E=u,x=s,P=l,k=t,M=d,R=n,O=g,q=y,N=r,U=a,W=i,le=m,ce=!1;function ue(I){return ce||(ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(I)||S(I)===c}function z(I){return S(I)===u}function C(I){return S(I)===s}function V(I){return S(I)===l}function A(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function T(I){return S(I)===d}function $(I){return S(I)===n}function D(I){return S(I)===g}function K(I){return S(I)===y}function re(I){return S(I)===r}function ie(I){return S(I)===a}function te(I){return S(I)===i}function L(I){return S(I)===m}Ze.AsyncMode=w,Ze.ConcurrentMode=E,Ze.ContextConsumer=x,Ze.ContextProvider=P,Ze.Element=k,Ze.ForwardRef=M,Ze.Fragment=R,Ze.Lazy=O,Ze.Memo=q,Ze.Portal=N,Ze.Profiler=U,Ze.StrictMode=W,Ze.Suspense=le,Ze.isAsyncMode=ue,Ze.isConcurrentMode=z,Ze.isContextConsumer=C,Ze.isContextProvider=V,Ze.isElement=A,Ze.isForwardRef=T,Ze.isFragment=$,Ze.isLazy=D,Ze.isMemo=K,Ze.isPortal=re,Ze.isProfiler=ie,Ze.isStrictMode=te,Ze.isSuspense=L,Ze.isValidElementType=_,Ze.typeOf=S})()),Ze}var Dm;function qm(){return Dm||(Dm=1,process.env.NODE_ENV==="production"?$i.exports=X_():$i.exports=Z_()),$i.exports}var Dc,Lm;function Q_(){if(Lm)return Dc;Lm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},s=0;s<10;s++)l["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Dc=i()?Object.assign:function(a,l){for(var s,c=n(a),u,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var m in s)t.call(s,m)&&(c[m]=s[m]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(c[u[h]]=s[u[h]])}}return c},Dc}var qc,Fm;function Lc(){if(Fm)return qc;Fm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qc=e,qc}var Fc,zm;function Vm(){return zm||(zm=1,Fc=Function.call.bind(Object.prototype.hasOwnProperty)),Fc}var zc,Bm;function ew(){if(Bm)return zc;Bm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lc(),r={},n=Vm();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(a,l,s,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(n(a,d)){var m;try{if(typeof a[d]!="function"){var h=Error((c||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=a[d](l,d,c,s,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var y=u?u():"";e("Failed "+s+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},zc=i,zc}var Vc,Um;function tw(){if(Um)return Vc;Um=1;var e=qm(),t=Q_(),r=Lc(),n=Vm(),i=ew(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return Vc=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(z){var C=z&&(u&&z[u]||z[d]);if(typeof C=="function")return C}var h="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:p(),arrayOf:_,element:S(),elementType:w(),instanceOf:E,node:M(),objectOf:P,oneOf:x,oneOfType:k,shape:O,exact:q};function g(z,C){return z===C?z!==0||1/z===1/C:z!==z&&C!==C}function f(z,C){this.message=z,this.data=C&&typeof C=="object"?C:{},this.stack=""}f.prototype=Error.prototype;function b(z){if(process.env.NODE_ENV!=="production")var C={},V=0;function A($,D,K,re,ie,te,L){if(re=re||h,te=te||K,L!==r){if(c){var I=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 I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var G=re+":"+K;!C[G]&&V<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),C[G]=!0,V++)}}return D[K]==null?$?D[K]===null?new f("The "+ie+" `"+te+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+ie+" `"+te+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:z(D,K,re,ie,te)}var T=A.bind(null,!1);return T.isRequired=A.bind(null,!0),T}function v(z){function C(V,A,T,$,D,K){var re=V[A],ie=W(re);if(ie!==z){var te=le(re);return new f("Invalid "+$+" `"+D+"` of type "+("`"+te+"` supplied to `"+T+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return b(C)}function p(){return b(l)}function _(z){function C(V,A,T,$,D){if(typeof z!="function")return new f("Property `"+D+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var K=V[A];if(!Array.isArray(K)){var re=W(K);return new f("Invalid "+$+" `"+D+"` of type "+("`"+re+"` supplied to `"+T+"`, expected an array."))}for(var ie=0;ie<K.length;ie++){var te=z(K,ie,T,$,D+"["+ie+"]",r);if(te instanceof Error)return te}return null}return b(C)}function S(){function z(C,V,A,T,$){var D=C[V];if(!s(D)){var K=W(D);return new f("Invalid "+T+" `"+$+"` of type "+("`"+K+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return b(z)}function w(){function z(C,V,A,T,$){var D=C[V];if(!e.isValidElementType(D)){var K=W(D);return new f("Invalid "+T+" `"+$+"` of type "+("`"+K+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return b(z)}function E(z){function C(V,A,T,$,D){if(!(V[A]instanceof z)){var K=z.name||h,re=ue(V[A]);return new f("Invalid "+$+" `"+D+"` of type "+("`"+re+"` supplied to `"+T+"`, expected ")+("instance of `"+K+"`."))}return null}return b(C)}function x(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function C(V,A,T,$,D){for(var K=V[A],re=0;re<z.length;re++)if(g(K,z[re]))return null;var ie=JSON.stringify(z,function(L,I){var G=le(I);return G==="symbol"?String(I):I});return new f("Invalid "+$+" `"+D+"` of value `"+String(K)+"` "+("supplied to `"+T+"`, expected one of "+ie+"."))}return b(C)}function P(z){function C(V,A,T,$,D){if(typeof z!="function")return new f("Property `"+D+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var K=V[A],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+D+"` of type "+("`"+re+"` supplied to `"+T+"`, expected an object."));for(var ie in K)if(n(K,ie)){var te=z(K,ie,T,$,D+"."+ie,r);if(te instanceof Error)return te}return null}return b(C)}function k(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var C=0;C<z.length;C++){var V=z[C];if(typeof V!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ce(V)+" at index "+C+"."),l}function A(T,$,D,K,re){for(var ie=[],te=0;te<z.length;te++){var L=z[te],I=L(T,$,D,K,re,r);if(I==null)return null;I.data&&n(I.data,"expectedType")&&ie.push(I.data.expectedType)}var G=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new f("Invalid "+K+" `"+re+"` supplied to "+("`"+D+"`"+G+"."))}return b(A)}function M(){function z(C,V,A,T,$){return N(C[V])?null:new f("Invalid "+T+" `"+$+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return b(z)}function R(z,C,V,A,T){return new f((z||"React class")+": "+C+" type `"+V+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function O(z){function C(V,A,T,$,D){var K=V[A],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+D+"` of type `"+re+"` "+("supplied to `"+T+"`, expected `object`."));for(var ie in z){var te=z[ie];if(typeof te!="function")return R(T,$,D,ie,le(te));var L=te(K,ie,T,$,D+"."+ie,r);if(L)return L}return null}return b(C)}function q(z){function C(V,A,T,$,D){var K=V[A],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+D+"` of type `"+re+"` "+("supplied to `"+T+"`, expected `object`."));var ie=t({},V[A],z);for(var te in ie){var L=z[te];if(n(z,te)&&typeof L!="function")return R(T,$,D,te,le(L));if(!L)return new f("Invalid "+$+" `"+D+"` key `"+te+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(V[A],null," ")+`
14
- Valid keys: `+JSON.stringify(Object.keys(z),null," "));var I=L(K,te,T,$,D+"."+te,r);if(I)return I}return null}return b(C)}function N(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(N);if(z===null||s(z))return!0;var C=m(z);if(C){var V=C.call(z),A;if(C!==z.entries){for(;!(A=V.next()).done;)if(!N(A.value))return!1}else for(;!(A=V.next()).done;){var T=A.value;if(T&&!N(T[1]))return!1}}else return!1;return!0;default:return!1}}function U(z,C){return z==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function W(z){var C=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":U(C,z)?"symbol":C}function le(z){if(typeof z>"u"||z===null)return""+z;var C=W(z);if(C==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return C}function ce(z){var C=le(z);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function ue(z){return!z.constructor||!z.constructor.name?h:z.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Vc}var Bc,Wm;function rw(){if(Wm)return Bc;Wm=1;var e=Lc();function t(){}function r(){}return r.resetWarningCache=t,Bc=function(){function n(l,s,c,u,d,m){if(m!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Bc}var Hm;function nw(){if(Hm)return Pi.exports;if(Hm=1,process.env.NODE_ENV!=="production"){var e=qm(),t=!0;Pi.exports=tw()(e.isElement,t)}else Pi.exports=rw()();return Pi.exports}var ow=nw();const o=Ut(ow);function Km(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Km(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function xe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Km(e))&&(n&&(n+=" "),n+=t);return n}function Be(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let l="",s=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(l+=(s===!0?"":" ")+t(u),s=!1,r&&r[u]&&(l+=" "+r[u]))}n[i]=l}return n}let Gm=0;function iw(e){const[t,r]=j.useState(e),n=e||t;return j.useEffect(()=>{t==null&&(Gm+=1,r(`mui-${Gm}`))},[t]),n}const Ym={...j}.useId;function bn(e){if(Ym!==void 0){const t=Ym();return e??t}return iw(e)}const zt=o.oneOfType([o.func,o.object]);function hr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function pe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ri={exports:{}},it={};var Jm;function aw(){if(Jm)return it;Jm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case r:case i:case n:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case l:case s:case m:case d:return f;case a:return f;default:return b}}case t:return b}}}return it.ContextConsumer=a,it.ContextProvider=l,it.Element=e,it.ForwardRef=s,it.Fragment=r,it.Lazy=m,it.Memo=d,it.Portal=t,it.Profiler=i,it.StrictMode=n,it.Suspense=c,it.SuspenseList=u,it.isContextConsumer=function(f){return g(f)===a},it.isContextProvider=function(f){return g(f)===l},it.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},it.isForwardRef=function(f){return g(f)===s},it.isFragment=function(f){return g(f)===r},it.isLazy=function(f){return g(f)===m},it.isMemo=function(f){return g(f)===d},it.isPortal=function(f){return g(f)===t},it.isProfiler=function(f){return g(f)===i},it.isStrictMode=function(f){return g(f)===n},it.isSuspense=function(f){return g(f)===c},it.isSuspenseList=function(f){return g(f)===u},it.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===s||f.$$typeof===y||f.getModuleId!==void 0)},it.typeOf=g,it}var at={};var Xm;function sw(){return Xm||(Xm=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case n:case a:case i:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case s:case c:case h:case m:return f;case l:return f;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");at.ContextConsumer=l,at.ContextProvider=s,at.Element=t,at.ForwardRef=c,at.Fragment=n,at.Lazy=h,at.Memo=m,at.Portal=r,at.Profiler=a,at.StrictMode=i,at.Suspense=u,at.SuspenseList=d,at.isContextConsumer=function(f){return e(f)===l},at.isContextProvider=function(f){return e(f)===s},at.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},at.isForwardRef=function(f){return e(f)===c},at.isFragment=function(f){return e(f)===n},at.isLazy=function(f){return e(f)===h},at.isMemo=function(f){return e(f)===m},at.isPortal=function(f){return e(f)===r},at.isProfiler=function(f){return e(f)===a},at.isStrictMode=function(f){return e(f)===i},at.isSuspense=function(f){return e(f)===u},at.isSuspenseList=function(f){return e(f)===d},at.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===a||f===i||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===s||f.$$typeof===l||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},at.typeOf=e})()),at}var Zm;function lw(){return Zm||(Zm=1,process.env.NODE_ENV==="production"?Ri.exports=aw():Ri.exports=sw()),Ri.exports}var ki=lw();function mr(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 Qm(e){if(j.isValidElement(e)||ki.isValidElementType(e)||!mr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Qm(e[r])}),t}function kt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return mr(e)&&mr(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])||ki.isValidElementType(t[i])?n[i]=t[i]:mr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&mr(e[i])?n[i]=kt(e[i],t[i],r):r.clone?n[i]=mr(t[i])?Qm(t[i]):t[i]:n[i]=t[i]}),n}function Wn(e,t){return t?kt(e,t,{clone:!1}):e}const Fr=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function ey(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(i.match(a)?.[1]||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function cw(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function uw(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
15
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:hr(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function dw(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function r(a,l){a.up=(...s)=>t(e.breakpoints.up(...s),l),a.down=(...s)=>t(e.breakpoints.down(...s),l),a.between=(...s)=>t(e.breakpoints.between(...s),l),a.only=(...s)=>t(e.breakpoints.only(...s),l),a.not=(...s)=>{const c=t(e.breakpoints.not(...s),l);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},i=a=>(r(n,a),n);return r(i),{...e,containerQueries:i}}const Ii={xs:0,sm:600,md:900,lg:1200,xl:1536},ty={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ii[e]}px)`},fw={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ii[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function $r(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||ty;return t.reduce((l,s,c)=>(l[a.up(a.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const a=n.breakpoints||ty;return Object.keys(t).reduce((l,s)=>{if(cw(a.keys,s)){const c=uw(n.containerQueries?n:fw,s);c&&(l[c]=r(t[s],s))}else if(Object.keys(a.values||Ii).includes(s)){const c=a.up(s);l[c]=r(t[s],s)}else{const c=s;l[c]=t[c]}return l},{})}return r(t)}function pw(e={}){return e.keys?.reduce((r,n)=>{const i=e.up(n);return r[i]={},r},{})||{}}function ry(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function ji(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Ni(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=ji(e,r)||n,t&&(i=t(i,n,e)),i}function wt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=l=>{if(l[t]==null)return null;const s=l[t],c=l.theme,u=ji(c,n)||{};return $r(l,s,m=>{let h=Ni(u,i,m);return m===h&&typeof m=="string"&&(h=Ni(u,i,`${t}${m==="default"?"":pe(m)}`,m)),r===!1?h:{[r]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Fr}:{},a.filterProps=[t],a}function hw(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const mw={m:"margin",p:"padding"},yw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ny={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gw=hw(e=>{if(e.length>2)if(ny[e])e=ny[e];else return[e];const[t,r]=e.split(""),n=mw[t],i=yw[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Ai=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vw=[...Ai,...Mi];function Hn(e,t,r,n){const i=ji(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof i=="string"?i.startsWith("var(")&&a===0?0:i.startsWith("var(")&&a===1?i:`calc(${a} * ${i})`:i*a):Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>i.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${l} > ${i.length-1}, you need to add the missing values.`].join(`
13
+ deps: ${d}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,d]=i(c);l(c,u),a(c,d)}};function i({schema:c}){const u={},d={};for(const p in c){if(p==="__proto__")continue;const h=Array.isArray(c[p])?u:d;h[p]=c[p]}return[u,d]}function l(c,u=c.schema){const{gen:d,data:p,it:h}=c;if(Object.keys(u).length===0)return;const m=d.let("missing");for(const b in u){const f=u[b];if(f.length===0)continue;const g=(0,o.propertyInData)(d,p,b,h.opts.ownProperties);c.setParams({property:b,depsCount:f.length,deps:f.join(", ")}),h.allErrors?d.if(g,()=>{for(const v of f)(0,o.checkReportMissingProp)(c,v)}):(d.if((0,t._)`${g} && (${(0,o.checkMissingProp)(c,f,m)})`),(0,o.reportMissingProp)(c,m),d.else())}}e.validatePropertyDeps=l;function a(c,u=c.schema){const{gen:d,data:p,keyword:h,it:m}=c,b=d.name("valid");for(const f in u)(0,n.alwaysValidSchema)(m,u[f])||(d.if((0,o.propertyInData)(d,p,f,m.opts.ownProperties),()=>{const g=c.subschema({keyword:h,schemaProp:f},b);c.mergeValidEvaluated(g,b)},()=>d.var(b,!0)),c.ok(b))}e.validateSchemaDeps=a,e.default=s})(yd)),yd}var ki={},kg;function LP(){if(kg)return ki;kg=1,Object.defineProperty(ki,"__esModule",{value:!0});const e=nt(),t=ut(),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:s})=>(0,e._)`{propertyName: ${s.propertyName}}`},code(s){const{gen:i,schema:l,data:a,it:c}=s;if((0,t.alwaysValidSchema)(c,l))return;const u=i.name("valid");i.forIn("key",a,d=>{s.setParams({propertyName:d}),s.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},u),i.if((0,e.not)(u),()=>{s.error(!0),c.allErrors||i.break()})}),s.ok(u)}};return ki.default=o,ki}var _i={},_g;function Rg(){if(_g)return _i;_g=1,Object.defineProperty(_i,"__esModule",{value:!0});const e=In(),t=nt(),n=ur(),o=ut(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:a,schema:c,parentSchema:u,data:d,errsCount:p,it:h}=l;if(!p)throw new Error("ajv implementation error");const{allErrors:m,opts:b}=h;if(h.props=!0,b.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(h,c))return;const f=(0,e.allSchemaProperties)(u.properties),g=(0,e.allSchemaProperties)(u.patternProperties);v(),l.ok((0,t._)`${p} === ${n.default.errors}`);function v(){a.forIn("key",d,P=>{!f.length&&!g.length?w(P):a.if(y(P),()=>w(P))})}function y(P){let T;if(f.length>8){const I=(0,o.schemaRefOrVal)(h,u.properties,"properties");T=(0,e.isOwnProperty)(a,I,P)}else f.length?T=(0,t.or)(...f.map(I=>(0,t._)`${P} === ${I}`)):T=t.nil;return g.length&&(T=(0,t.or)(T,...g.map(I=>(0,t._)`${(0,e.usePattern)(l,I)}.test(${P})`))),(0,t.not)(T)}function S(P){a.code((0,t._)`delete ${d}[${P}]`)}function w(P){if(b.removeAdditional==="all"||b.removeAdditional&&c===!1){S(P);return}if(c===!1){l.setParams({additionalProperty:P}),l.error(),m||a.break();return}if(typeof c=="object"&&!(0,o.alwaysValidSchema)(h,c)){const T=a.name("valid");b.removeAdditional==="failing"?(x(P,T,!1),a.if((0,t.not)(T),()=>{l.reset(),S(P)})):(x(P,T),m||a.if((0,t.not)(T),()=>a.break()))}}function x(P,T,I){const $={keyword:"additionalProperties",dataProp:P,dataPropType:o.Type.Str};I===!1&&Object.assign($,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema($,T)}}};return _i.default=i,_i}var Ri={},Ig;function BP(){if(Ig)return Ri;Ig=1,Object.defineProperty(Ri,"__esModule",{value:!0});const e=ri(),t=In(),n=ut(),o=Rg(),s={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:l,schema:a,parentSchema:c,data:u,it:d}=i;d.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&o.default.code(new e.KeywordCxt(d,o.default,"additionalProperties"));const p=(0,t.allSchemaProperties)(a);for(const g of p)d.definedProperties.add(g);d.opts.unevaluated&&p.length&&d.props!==!0&&(d.props=n.mergeEvaluated.props(l,(0,n.toHash)(p),d.props));const h=p.filter(g=>!(0,n.alwaysValidSchema)(d,a[g]));if(h.length===0)return;const m=l.name("valid");for(const g of h)b(g)?f(g):(l.if((0,t.propertyInData)(l,u,g,d.opts.ownProperties)),f(g),d.allErrors||l.else().var(m,!0),l.endIf()),i.it.definedProperties.add(g),i.ok(m);function b(g){return d.opts.useDefaults&&!d.compositeRule&&a[g].default!==void 0}function f(g){i.subschema({keyword:"properties",schemaProp:g,dataProp:g},m)}}};return Ri.default=s,Ri}var Ii={},$g;function qP(){if($g)return Ii;$g=1,Object.defineProperty(Ii,"__esModule",{value:!0});const e=In(),t=nt(),n=ut(),o=ut(),s={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:l,schema:a,data:c,parentSchema:u,it:d}=i,{opts:p}=d,h=(0,e.allSchemaProperties)(a),m=h.filter(w=>(0,n.alwaysValidSchema)(d,a[w]));if(h.length===0||m.length===h.length&&(!d.opts.unevaluated||d.props===!0))return;const b=p.strictSchema&&!p.allowMatchingProperties&&u.properties,f=l.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,o.evaluatedPropsToName)(l,d.props));const{props:g}=d;v();function v(){for(const w of h)b&&y(w),d.allErrors?S(w):(l.var(f,!0),S(w),l.if(f))}function y(w){for(const x in b)new RegExp(w).test(x)&&(0,n.checkStrictMode)(d,`property ${x} matches pattern ${w} (use allowMatchingProperties)`)}function S(w){l.forIn("key",c,x=>{l.if((0,t._)`${(0,e.usePattern)(i,w)}.test(${x})`,()=>{const P=m.includes(w);P||i.subschema({keyword:"patternProperties",schemaProp:w,dataProp:x,dataPropType:o.Type.Str},f),d.opts.unevaluated&&g!==!0?l.assign((0,t._)`${g}[${x}]`,!0):!P&&!d.allErrors&&l.if((0,t.not)(f),()=>l.break())})})}}};return Ii.default=s,Ii}var $i={},Dg;function zP(){if(Dg)return $i;Dg=1,Object.defineProperty($i,"__esModule",{value:!0});const e=ut(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:o,schema:s,it:i}=n;if((0,e.alwaysValidSchema)(i,s)){n.fail();return}const l=o.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),n.failResult(l,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return $i.default=t,$i}var Di={},Mg;function UP(){if(Mg)return Di;Mg=1,Object.defineProperty(Di,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:In().validateUnion,error:{message:"must match a schema in anyOf"}};return Di.default=t,Di}var Mi={},Ng;function WP(){if(Ng)return Mi;Ng=1,Object.defineProperty(Mi,"__esModule",{value:!0});const e=nt(),t=ut(),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:s})=>(0,e._)`{passingSchemas: ${s.passing}}`},code(s){const{gen:i,schema:l,parentSchema:a,it:c}=s;if(!Array.isArray(l))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const u=l,d=i.let("valid",!1),p=i.let("passing",null),h=i.name("_valid");s.setParams({passing:p}),i.block(m),s.result(d,()=>s.reset(),()=>s.error(!0));function m(){u.forEach((b,f)=>{let g;(0,t.alwaysValidSchema)(c,b)?i.var(h,!0):g=s.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},h),f>0&&i.if((0,e._)`${h} && ${d}`).assign(d,!1).assign(p,(0,e._)`[${p}, ${f}]`).else(),i.if(h,()=>{i.assign(d,!0),i.assign(p,f),g&&s.mergeEvaluated(g,e.Name)})})}}};return Mi.default=o,Mi}var Ni={},jg;function HP(){if(jg)return Ni;jg=1,Object.defineProperty(Ni,"__esModule",{value:!0});const e=ut(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:o,schema:s,it:i}=n;if(!Array.isArray(s))throw new Error("ajv implementation error");const l=o.name("valid");s.forEach((a,c)=>{if((0,e.alwaysValidSchema)(i,a))return;const u=n.subschema({keyword:"allOf",schemaProp:c},l);n.ok(l),n.mergeEvaluated(u)})}};return Ni.default=t,Ni}var ji={},Ag;function YP(){if(Ag)return ji;Ag=1,Object.defineProperty(ji,"__esModule",{value:!0});const e=nt(),t=ut(),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,e.str)`must match "${i.ifClause}" schema`,params:({params:i})=>(0,e._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:l,parentSchema:a,it:c}=i;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=s(c,"then"),d=s(c,"else");if(!u&&!d)return;const p=l.let("valid",!0),h=l.name("_valid");if(m(),i.reset(),u&&d){const f=l.let("ifClause");i.setParams({ifClause:f}),l.if(h,b("then",f),b("else",f))}else u?l.if(h,b("then")):l.if((0,e.not)(h),b("else"));i.pass(p,()=>i.error(!0));function m(){const f=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);i.mergeEvaluated(f)}function b(f,g){return()=>{const v=i.subschema({keyword:f},h);l.assign(p,h),i.mergeValidEvaluated(v,p),g?l.assign(g,(0,e._)`${f}`):i.setParams({ifClause:f})}}}};function s(i,l){const a=i.schema[l];return a!==void 0&&!(0,t.alwaysValidSchema)(i,a)}return ji.default=o,ji}var Ai={},Fg;function KP(){if(Fg)return Ai;Fg=1,Object.defineProperty(Ai,"__esModule",{value:!0});const e=ut(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:o,it:s}){o.if===void 0&&(0,e.checkStrictMode)(s,`"${n}" without "if" is ignored`)}};return Ai.default=t,Ai}var Vg;function GP(){if(Vg)return Pi;Vg=1,Object.defineProperty(Pi,"__esModule",{value:!0});const e=xg(),t=jP(),n=Cg(),o=AP(),s=FP(),i=VP(),l=LP(),a=Rg(),c=BP(),u=qP(),d=zP(),p=UP(),h=WP(),m=HP(),b=YP(),f=KP();function g(v=!1){const y=[d.default,p.default,h.default,m.default,b.default,f.default,l.default,a.default,i.default,c.default,u.default];return v?y.push(t.default,o.default):y.push(e.default,n.default),y.push(s.default),y}return Pi.default=g,Pi}var Fi={},Vi={},Lg;function XP(){if(Lg)return Vi;Lg=1,Object.defineProperty(Vi,"__esModule",{value:!0});const e=nt(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,e.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,e._)`{format: ${o}}`},code(o,s){const{gen:i,data:l,$data:a,schema:c,schemaCode:u,it:d}=o,{opts:p,errSchemaPath:h,schemaEnv:m,self:b}=d;if(!p.validateFormats)return;a?f():g();function f(){const v=i.scopeValue("formats",{ref:b.formats,code:p.code.formats}),y=i.const("fDef",(0,e._)`${v}[${u}]`),S=i.let("fType"),w=i.let("format");i.if((0,e._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>i.assign(S,(0,e._)`${y}.type || "string"`).assign(w,(0,e._)`${y}.validate`),()=>i.assign(S,(0,e._)`"string"`).assign(w,y)),o.fail$data((0,e.or)(x(),P()));function x(){return p.strictSchema===!1?e.nil:(0,e._)`${u} && !${w}`}function P(){const T=m.$async?(0,e._)`(${y}.async ? await ${w}(${l}) : ${w}(${l}))`:(0,e._)`${w}(${l})`,I=(0,e._)`(typeof ${w} == "function" ? ${T} : ${w}.test(${l}))`;return(0,e._)`${w} && ${w} !== true && ${S} === ${s} && !${I}`}}function g(){const v=b.formats[c];if(!v){x();return}if(v===!0)return;const[y,S,w]=P(v);y===s&&o.pass(T());function x(){if(p.strictSchema===!1){b.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${c}" ignored in schema at path "${h}"`}}function P(I){const $=I instanceof RegExp?(0,e.regexpCode)(I):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(c)}`:void 0,M=i.scopeValue("formats",{key:c,ref:I,code:$});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,e._)`${M}.validate`]:["string",I,M]}function T(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!m.$async)throw new Error("async format in sync schema");return(0,e._)`await ${w}(${l})`}return typeof S=="function"?(0,e._)`${w}(${l})`:(0,e._)`${w}.test(${l})`}}}};return Vi.default=n,Vi}var Bg;function QP(){if(Bg)return Fi;Bg=1,Object.defineProperty(Fi,"__esModule",{value:!0});const t=[XP().default];return Fi.default=t,Fi}var Nr={},qg;function JP(){return qg||(qg=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.contentVocabulary=Nr.metadataVocabulary=void 0,Nr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Nr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Nr}var zg;function ZP(){if(zg)return li;zg=1,Object.defineProperty(li,"__esModule",{value:!0});const e=CP(),t=NP(),n=GP(),o=QP(),s=JP(),i=[e.default,t.default,(0,n.default)(),o.default,s.metadataVocabulary,s.contentVocabulary];return li.default=i,li}var Li={},Lo={},Ug;function eT(){if(Ug)return Lo;Ug=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Lo.DiscrError=e={})),Lo}var Wg;function tT(){if(Wg)return Li;Wg=1,Object.defineProperty(Li,"__esModule",{value:!0});const e=nt(),t=eT(),n=fd(),o=ii(),s=ut(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:c}})=>a===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:a,tag:c,tagName:u}})=>(0,e._)`{error: ${a}, tag: ${u}, tagValue: ${c}}`},code(a){const{gen:c,data:u,schema:d,parentSchema:p,it:h}=a,{oneOf:m}=p;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=d.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!m)throw new Error("discriminator: requires oneOf keyword");const f=c.let("valid",!1),g=c.const("tag",(0,e._)`${u}${(0,e.getProperty)(b)}`);c.if((0,e._)`typeof ${g} == "string"`,()=>v(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:g,tagName:b})),a.ok(f);function v(){const w=S();c.if(!1);for(const x in w)c.elseIf((0,e._)`${g} === ${x}`),c.assign(f,y(w[x]));c.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:g,tagName:b}),c.endIf()}function y(w){const x=c.name("valid"),P=a.subschema({keyword:"oneOf",schemaProp:w},x);return a.mergeEvaluated(P,e.Name),x}function S(){var w;const x={},P=I(p);let T=!0;for(let k=0;k<m.length;k++){let C=m[k];if(C?.$ref&&!(0,s.schemaHasRulesButRef)(C,h.self.RULES)){const D=C.$ref;if(C=n.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,D),C instanceof n.SchemaEnv&&(C=C.schema),C===void 0)throw new o.default(h.opts.uriResolver,h.baseId,D)}const N=(w=C?.properties)===null||w===void 0?void 0:w[b];if(typeof N!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);T=T&&(P||I(C)),$(N,k)}if(!T)throw new Error(`discriminator: "${b}" must be required`);return x;function I({required:k}){return Array.isArray(k)&&k.includes(b)}function $(k,C){if(k.const)M(k.const,C);else if(k.enum)for(const N of k.enum)M(N,C);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function M(k,C){if(typeof k!="string"||k in x)throw new Error(`discriminator: "${b}" values must be unique strings`);x[k]=C}}}};return Li.default=l,Li}const nT={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var Hg;function Yg(){return Hg||(Hg=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=SP(),o=ZP(),s=tT(),i=nT,l=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends n.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(i,l):i;this.addMetaSchema(b,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=ri();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=nt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var p=dd();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var h=ii();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(Qs,Qs.exports)),Qs.exports}var rT=Yg();const oT=Vt(rT);var Bi={exports:{}},gd={},Kg;function sT(){return Kg||(Kg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(k,C){return{validate:k,compare:C}}e.fullFormats={date:t(i,l),time:t(c(!0),u),"date-time":t(h(!0),m),"iso-time":t(c(),d),"iso-date-time":t(h(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:M,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:S,int32:{type:"number",validate:P},int64:{type:"number",validate:T},float:{type:"number",validate:I},double:{type:"number",validate:I},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,b),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(k){return k%4===0&&(k%100!==0||k%400===0)}const o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(k){const C=o.exec(k);if(!C)return!1;const N=+C[1],D=+C[2],j=+C[3];return D>=1&&D<=12&&j>=1&&j<=(D===2&&n(N)?29:s[D])}function l(k,C){if(k&&C)return k>C?1:k<C?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(k){return function(N){const D=a.exec(N);if(!D)return!1;const j=+D[1],F=+D[2],W=+D[3],Y=D[4],H=D[5]==="-"?-1:1,L=+(D[6]||0),E=+(D[7]||0);if(L>23||E>59||k&&!Y)return!1;if(j<=23&&F<=59&&W<60)return!0;const q=F-E*H,z=j-L*H-(q<0?1:0);return(z===23||z===-1)&&(q===59||q===-1)&&W<61}}function u(k,C){if(!(k&&C))return;const N=new Date("2020-01-01T"+k).valueOf(),D=new Date("2020-01-01T"+C).valueOf();if(N&&D)return N-D}function d(k,C){if(!(k&&C))return;const N=a.exec(k),D=a.exec(C);if(N&&D)return k=N[1]+N[2]+N[3],C=D[1]+D[2]+D[3],k>C?1:k<C?-1:0}const p=/t|\s/i;function h(k){const C=c(k);return function(D){const j=D.split(p);return j.length===2&&i(j[0])&&C(j[1])}}function m(k,C){if(!(k&&C))return;const N=new Date(k).valueOf(),D=new Date(C).valueOf();if(N&&D)return N-D}function b(k,C){if(!(k&&C))return;const[N,D]=k.split(p),[j,F]=C.split(p),W=l(N,j);if(W!==void 0)return W||u(D,F)}const f=/\/|:/,g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function v(k){return f.test(k)&&g.test(k)}const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function S(k){return y.lastIndex=0,y.test(k)}const w=-2147483648,x=2**31-1;function P(k){return Number.isInteger(k)&&k<=x&&k>=w}function T(k){return Number.isInteger(k)}function I(){return!0}const $=/[^\\]\\Z/;function M(k){if($.test(k))return!1;try{return new RegExp(k),!0}catch{return!1}}})(gd)),gd}var bd={},Gg;function iT(){return Gg||(Gg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Yg(),n=nt(),o=n.operators,s={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},i={message:({keyword:a,schemaCode:c})=>(0,n.str)`should be ${s[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,n._)`{comparison: ${s[a].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:i,code(a){const{gen:c,data:u,schemaCode:d,keyword:p,it:h}=a,{opts:m,self:b}=h;if(!m.validateFormats)return;const f=new t.KeywordCxt(h,b.RULES.all.format.definition,"format");f.$data?g():v();function g(){const S=c.scopeValue("formats",{ref:b.formats,code:m.code.formats}),w=c.const("fmt",(0,n._)`${S}[${f.schemaCode}]`);a.fail$data((0,n.or)((0,n._)`typeof ${w} != "object"`,(0,n._)`${w} instanceof RegExp`,(0,n._)`typeof ${w}.compare != "function"`,y(w)))}function v(){const S=f.schema,w=b.formats[S];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${p}": format "${S}" does not define "compare" function`);const x=c.scopeValue("formats",{key:S,ref:w,code:m.code.formats?(0,n._)`${m.code.formats}${(0,n.getProperty)(S)}`:void 0});a.fail$data(y(x))}function y(S){return(0,n._)`${S}.compare(${u}, ${d}) ${s[p].fail} 0`}},dependencies:["format"]};const l=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=l})(bd)),bd}var Xg;function aT(){return Xg||(Xg=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=sT(),o=iT(),s=nt(),i=new s.Name("fullFormats"),l=new s.Name("fastFormats"),a=(u,d={keywords:!0})=>{if(Array.isArray(d))return c(u,d,n.fullFormats,i),u;const[p,h]=d.mode==="fast"?[n.fastFormats,l]:[n.fullFormats,i],m=d.formats||n.formatNames;return c(u,m,p,h),d.keywords&&(0,o.default)(u),u};a.get=(u,d="full")=>{const h=(d==="fast"?n.fastFormats:n.fullFormats)[u];if(!h)throw new Error(`Unknown format "${u}"`);return h};function c(u,d,p,h){var m,b;(m=(b=u.opts.code).formats)!==null&&m!==void 0||(b.formats=(0,s._)`require("ajv-formats/dist/formats").${h}`);for(const f of d)u.addFormat(f,p[f])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(Bi,Bi.exports)),Bi.exports}var lT=aT();const cT=Vt(lT),qi=new oT({allErrors:!0,strict:!1,keywords:["readonly"]});cT(qi);const vd=new Map,uT=(e,t)=>{try{return t.split(/[.[\]'"]/).filter(Boolean).reduce((n,o)=>n&&n[o],e)}catch{return}},dT=(e,t)=>{try{const n=Xs(t);if(!e)return!0;const o=e.match(/^(.*?)\s*(===|!==|>)\s*('([^']*)'|"([^"]*)'|([0-9.]+))$/);if(!o){console.warn(`Unsupported condition format: ${e}`);return}const s=o[1].trim(),i=o[2],l=o[3],a=o[4],c=o[5],u=o[6],d=uT(n,s);let p;if(a!==void 0)p=a;else if(c!==void 0)p=c;else if(u!==void 0)p=parseFloat(u);else{console.warn(`Could not determine the type of the right-hand value in: ${e}`);return}switch(i){case"===":return d===p;case"!==":return d!==p;case">":return d>p;case"<":return d<p;default:console.warn(`Unsupported operator: ${i}`);return}}catch(n){console.error("Custom evaluation error:",n);return}},tn=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},Sd=e=>{const t=[];return e.forEach(n=>{t.push({name:n,value:n})}),t},Qg=(e,t)=>{if(!t)return e;const n=[],o=Object.keys(e).length===0?t:e;return t.forEach((s,i)=>{n.push({name:o[i],value:s})}),n},yn=(e,t,n)=>{n=n||{};const o=n.global&&n.global.formDefaults?Xs(n.global.formDefaults):{};return n.global&&n.global.supressPropertyTitles===!0?o.title=t.title:o.title=t.title||e,t.description&&(o.description=t.description),(n.required===!0||t.required===!0)&&(o.required=!0),t.maxLength&&(o.maxlength=t.maxLength),t.minLength&&(o.minlength=t.minLength),(t.readOnly||t.readonly)&&(o.readonly=!0),t.minimum&&(o.minimum=t.minimum+(t.exclusiveMinimum?1:0)),t.maximum&&(o.maximum=t.maximum-(t.exclusiveMaximum?1:0)),t.validationMessage&&(o.validationMessage=t.validationMessage),t.enumNames&&(o.titleMap=Qg(t.enumNames,t.enum)),o.schema=t,o},fT=(e,t,n)=>{if(tn(t.type)==="tBoolean"&&!t.enum){const o=yn(e,t,n);return o.key=n.path,o.type="tBoolean",n.lookup[Ut.stringify(n.path)]=o,o}},Jg=(e,t,n)=>{if(tn(t.type)==="string"&&!t.enum){const o=yn(e,t,n);return o.key=n.path,o.type="text",n.lookup[Ut.stringify(n.path)]=o,o}},Zg=(e,t,n)=>{if(tn(t.type)==="number"){const o=yn(e,t,n);return o.key=n.path,o.type="number",n.lookup[Ut.stringify(n.path)]=o,o}},eb=(e,t,n)=>{if(tn(t.type)==="integer"){const o=yn(e,t,n);return o.key=n.path,o.type="number",n.lookup[Ut.stringify(n.path)]=o,o}},pT=(e,t,n)=>{if(tn(t.type)==="date"){const o=yn(e,t,n);return o.key=n.path,o.type="date",n.lookup[Ut.stringify(n.path)]=o,o}},tb=(e,t,n)=>{if(tn(t.type)==="boolean"){const o=yn(e,t,n);return o.key=n.path,o.type="checkbox",n.lookup[Ut.stringify(n.path)]=o,o}},nb=(e,t,n)=>{if(tn(t.type)==="string"&&t.enum){const o=yn(e,t,n);return o.key=n.path,o.type="select",!o.titleMap&&!t.isObject&&(o.titleMap=Sd(t.enum)),n.lookup[Ut.stringify(n.path)]=o,o}},rb=e=>Object.entries(e).forEach(([t,n])=>{n&&typeof n=="object"?rb(n):(n==null||n==="")&&delete e[t]}),ob=(e,t,n)=>{if(tn(t.type)==="array"&&t.items&&t.items.enum){const o=yn(e,t,n);return o.key=n.path,o.type="checkboxes",o.titleMap||(o.titleMap=Sd(t.items.enum)),n.lookup[Ut.stringify(n.path)]=o,o}},Bo=(e,t,n)=>{const o=fr[tn(t.type)];if(o){let s;for(let i=0;i<o.length;i+=1)if(s=o[i](e,t,n),s)return s.schema["x-schema-form"]&&kC(s.schema["x-schema-form"])&&(s=oP(s,s.schema["x-schema-form"])),s}},sb=(e,t,n)=>{if(tn(t.type)==="object"){const o=yn(e,t,n);return o.type="fieldset",o.items=[],n.lookup[Ut.stringify(n.path)]=o,t.properties&&Object.keys(t.properties).forEach(s=>{if(Object.prototype.hasOwnProperty.call(t.properties,s)){const i=n.path.slice();if(i.push(s),n.ignore[Ut.stringify(i)]!==!0){const l=t.required&&t.required.indexOf(s)!==-1,a=Bo(s,t.properties[s],{path:i,required:l||!1,lookup:n.lookup,ignore:n.ignore,global:n.global});a&&o.items.push(a)}}}),o}},hT=(e,t,n)=>{if(tn(t.type)==="array"){const o=yn(e,t,n);if(o.type="tuple",o.key=n.path,n.lookup[Ut.stringify(n.path)]=o,Array.isArray(t.items)){const s=t.required&&t.required.indexOf(n.path[n.path.length-1]);return o.items=t.items.reduce((i,l,a)=>{const c=n.path.slice();c.push(a);const u=Bo(e,l,{path:c,required:s||!1,lookup:n.lookup,ignore:n.ignore,global:n.global});return u&&i.push(u),i},[]),o}}},ib=(e,t,n)=>{if(tn(t.type)==="array"){const o=yn(e,t,n);if(o.type="array",o.key=n.path,n.lookup[Ut.stringify(n.path)]=o,typeof t.items<"u"){const s=t.required&&t.required.indexOf(n.path[n.path.length-1])!==-1,i=n.path.slice();i.push("");const l=Bo(e,t.items,{path:i,required:s||!1,lookup:n.lookup,ignore:n.ignore,global:n.global});l?o.items=[l]:o.items=t.items}return o}},fr={string:[nb,Jg],object:[sb],number:[Zg],integer:[eb],boolean:[tb],array:[ob,hT,ib],date:[pT],tBoolean:[fT]},ab=(e,t,n)=>{const o=[],s={};if(t=t||{},n=n||{},tn(e.type)==="object")e.properties&&Object.keys(e.properties).forEach(i=>{if(Object.prototype.hasOwnProperty.call(e.properties,i)&&t[i]!==!0){const l=e.required&&e.required.indexOf(i)!==-1,a=Bo(i,e.properties[i],{path:[i],lookup:s,ignore:t,required:l,global:n});a&&o.push(a)}});else throw new Error('Not implemented. Only type "object" allowed at root level of schema.');return{form:o,lookup:s}},lb=e=>e,mT=(e,t)=>{fr[e]||(fr[e]=[]),fr[e].push(t)},yT=(e,t)=>{fr[e]||(fr[e]=[]),fr[e].unshift(t)},gT=(e,t,n,o)=>{o=typeof o<"u"?o:!0,n=n||[];const s=(i,l,a)=>{if(l(i,a),i.properties&&Object.keys(i.properties).forEach(c=>{if(Object.prototype.hasOwnProperty.call(i.properties,c)){const u=a.slice();u.push(c),s(i.properties[c],l,u)}}),!o&&i.items){const c=a.slice();c.push(""),s(i.items,l,c)}};s(e,t,n||[])},xd=(e,t)=>{t(e),e.items&&e.items.forEach(n=>{xd(n,t)}),e.tabs&&e.tabs.forEach(n=>{n.items.forEach(o=>{xd(o,t)})})},wd=(e,t,n,o,s)=>{t=t||["*"],o=o||{},s=s||e.readonly||e.readOnly;const i=ab(e,n,o),l=t.indexOf("*");l!==-1&&(t=t.slice(0,l).concat(i.form).concat(t.slice(l+1)));const{lookup:a}=i;return lb(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=Ut.parse(c.key)),c&&c.itemForm){c.items=[];const u=Ut.stringify(c.key);a[u].items.forEach(p=>{const h=Xs(c.itemForm);h.key=p.key,c.items.push(h)})}if(c&&c.key){const u=Ut.stringify(c.key);if(a[u]){const d=a[u];Object.keys(d).forEach(p=>{Object.prototype.hasOwnProperty.call(d,p)&&c[p]===void 0&&(c[p]=d[p])})}}return s===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=wd(e,c.items,n,o,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=wd(e,u.items,n,o,c.readonly)}),c&&c.type==="checkbox"&&aP(c.schema.default)&&(c.schema.default=!1),c}))};function bT(e,t,n,o){const s=/^\d+$/;t||(t=this);const i=typeof e=="string"?Ut.parse(e):e;if(typeof n<"u"&&i.length===1||(typeof n<"u"&&typeof t[i[0]]>"u"&&(t[i[0]]=i.length>=2&&s.test(i[1])?[]:{}),typeof o<"u"&&["number","integer"].indexOf(o)>-1&&typeof n>"u"))return t[i[0]]=n,t;let l=t[i[0]];for(let a=1;a<i.length;a+=1){if(i[a]==="")return;if(typeof n<"u"){if(a===i.length-1)return l[i[a]]=n,n;let c=l[i[a]];(typeof c>"u"||c===null)&&(c=s.test(i[a+1])?[]:{},l[i[a]]=c),l=c}else l&&(l=l[i[a]])}return l}const cb=(e,t)=>{if(vd.has(e))return vd.get(e);try{const n=qi.compile(t);return vd.set(e,n),n}catch{return null}};function vT(e){const t=JSON.stringify(e);let n=0;for(let o=0;o<t.length;o++)n=(n<<5)-n+t.charCodeAt(o),n|=0;return n.toString(16)}const $n={traverseForm:xd,traverseSchema:gT,prependRule:yT,appendRule:mT,postProcessFn:lb,getDefaults:ab,defaultFormDefinition:Bo,defaults:fr,array:ib,fieldset:sb,checkboxes:ob,select:nb,checkbox:tb,integer:eb,number:Zg,text:Jg,stdFormObj:yn,canonicalTitleMap:Qg,enumToTitleMap:Sd,stripNullType:tn,merge:wd,validate:(e,t)=>{if(!e||!e.schema)return{valid:!0};(t===""||e.type==="number"&&(t===null||isNaN(parseFloat(t))))&&(t=void 0);const n=e.key[e.key.length-1],{schema:o}=e,s={type:"object",properties:{},$schema:"http://json-schema.org/draft-07/schema#"},i=e.key[e.key.length-1];s.properties[i]=o,e.required&&(s.required=[i]);const l=cb(n,s);return l?l(t===void 0?{}:{[e.key[e.key.length-1]]:t})?{valid:!0}:{valid:!1,error:qi.errorsText(l.errors,{})}:{valid:!1,error:"Invalid Schema"}},validateBySchema:(e,t)=>{e.$schema||(e.$schema="http://json-schema.org/draft-07/schema#");let n=vT(e);const o=cb(n,e);return o?o(t===void 0?{}:t)?{valid:!0}:{valid:!1,error:qi.errorsText(o.errors,{})}:{valid:!1,error:"Invalid Schema"}},safeEval:dT,selectOrSet:bT,getValueFromModel:(e,t)=>{let n;return Array.isArray(t)?(t.reduce((o,s)=>o&&o[s],e),n=t.reduce((o,s)=>o&&o[s],e)):n=e[t],n},getTitleByValue:(e,t)=>{for(let n=0;n<e.length;n+=1){const o=e[n];if(o.value===t)return o.name}},removeEmpty:rb};var zi={exports:{}},Ui={exports:{}},mt={};var ub;function ST(){if(ub)return mt;ub=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function S(x){if(typeof x=="object"&&x!==null){var P=x.$$typeof;switch(P){case t:switch(x=x.type,x){case c:case u:case o:case i:case s:case p:return x;default:switch(x=x&&x.$$typeof,x){case a:case d:case b:case m:case l:return x;default:return P}}case n:return P}}}function w(x){return S(x)===u}return mt.AsyncMode=c,mt.ConcurrentMode=u,mt.ContextConsumer=a,mt.ContextProvider=l,mt.Element=t,mt.ForwardRef=d,mt.Fragment=o,mt.Lazy=b,mt.Memo=m,mt.Portal=n,mt.Profiler=i,mt.StrictMode=s,mt.Suspense=p,mt.isAsyncMode=function(x){return w(x)||S(x)===c},mt.isConcurrentMode=w,mt.isContextConsumer=function(x){return S(x)===a},mt.isContextProvider=function(x){return S(x)===l},mt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},mt.isForwardRef=function(x){return S(x)===d},mt.isFragment=function(x){return S(x)===o},mt.isLazy=function(x){return S(x)===b},mt.isMemo=function(x){return S(x)===m},mt.isPortal=function(x){return S(x)===n},mt.isProfiler=function(x){return S(x)===i},mt.isStrictMode=function(x){return S(x)===s},mt.isSuspense=function(x){return S(x)===p},mt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===o||x===u||x===i||x===s||x===p||x===h||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===m||x.$$typeof===l||x.$$typeof===a||x.$$typeof===d||x.$$typeof===g||x.$$typeof===v||x.$$typeof===y||x.$$typeof===f)},mt.typeOf=S,mt}var yt={};var db;function xT(){return db||(db=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function S(V){return typeof V=="string"||typeof V=="function"||V===o||V===u||V===i||V===s||V===p||V===h||typeof V=="object"&&V!==null&&(V.$$typeof===b||V.$$typeof===m||V.$$typeof===l||V.$$typeof===a||V.$$typeof===d||V.$$typeof===g||V.$$typeof===v||V.$$typeof===y||V.$$typeof===f)}function w(V){if(typeof V=="object"&&V!==null){var Q=V.$$typeof;switch(Q){case t:var G=V.type;switch(G){case c:case u:case o:case i:case s:case p:return G;default:var ne=G&&G.$$typeof;switch(ne){case a:case d:case b:case m:case l:return ne;default:return Q}}case n:return Q}}}var x=c,P=u,T=a,I=l,$=t,M=d,k=o,C=b,N=m,D=n,j=i,F=s,W=p,Y=!1;function H(V){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(V)||w(V)===c}function L(V){return w(V)===u}function E(V){return w(V)===a}function q(V){return w(V)===l}function z(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function R(V){return w(V)===d}function A(V){return w(V)===o}function U(V){return w(V)===b}function X(V){return w(V)===m}function se(V){return w(V)===n}function te(V){return w(V)===i}function J(V){return w(V)===s}function B(V){return w(V)===p}yt.AsyncMode=x,yt.ConcurrentMode=P,yt.ContextConsumer=T,yt.ContextProvider=I,yt.Element=$,yt.ForwardRef=M,yt.Fragment=k,yt.Lazy=C,yt.Memo=N,yt.Portal=D,yt.Profiler=j,yt.StrictMode=F,yt.Suspense=W,yt.isAsyncMode=H,yt.isConcurrentMode=L,yt.isContextConsumer=E,yt.isContextProvider=q,yt.isElement=z,yt.isForwardRef=R,yt.isFragment=A,yt.isLazy=U,yt.isMemo=X,yt.isPortal=se,yt.isProfiler=te,yt.isStrictMode=J,yt.isSuspense=B,yt.isValidElementType=S,yt.typeOf=w})()),yt}var fb;function pb(){return fb||(fb=1,process.env.NODE_ENV==="production"?Ui.exports=ST():Ui.exports=xT()),Ui.exports}var Cd,hb;function wT(){if(hb)return Cd;hb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var l={},a=0;a<10;a++)l["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cd=s()?Object.assign:function(i,l){for(var a,c=o(i),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var p in a)t.call(a,p)&&(c[p]=a[p]);if(e){u=e(a);for(var h=0;h<u.length;h++)n.call(a,u[h])&&(c[u[h]]=a[u[h]])}}return c},Cd}var Pd,mb;function Td(){if(mb)return Pd;mb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pd=e,Pd}var Od,yb;function gb(){return yb||(yb=1,Od=Function.call.bind(Object.prototype.hasOwnProperty)),Od}var Ed,bb;function CT(){if(bb)return Ed;bb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Td(),n={},o=gb();e=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(i,l,a,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(o(i,d)){var p;try{if(typeof i[d]!="function"){var h=Error((c||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=i[d](l,d,c,a,null,t)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var m=u?u():"";e("Failed "+a+" type: "+p.message+(m??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ed=s,Ed}var kd,vb;function PT(){if(vb)return kd;vb=1;var e=pb(),t=wT(),n=Td(),o=gb(),s=CT(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var c="Warning: "+a;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return kd=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(L){var E=L&&(u&&L[u]||L[d]);if(typeof E=="function")return E}var h="<<anonymous>>",m={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(),arrayOf:S,element:w(),elementType:x(),instanceOf:P,node:M(),objectOf:I,oneOf:T,oneOfType:$,shape:C,exact:N};function b(L,E){return L===E?L!==0||1/L===1/E:L!==L&&E!==E}function f(L,E){this.message=L,this.data=E&&typeof E=="object"?E:{},this.stack=""}f.prototype=Error.prototype;function g(L){if(process.env.NODE_ENV!=="production")var E={},q=0;function z(A,U,X,se,te,J,B){if(se=se||h,J=J||X,B!==n){if(c){var V=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 V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Q=se+":"+X;!E[Q]&&q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),E[Q]=!0,q++)}}return U[X]==null?A?U[X]===null?new f("The "+te+" `"+J+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new f("The "+te+" `"+J+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:L(U,X,se,te,J)}var R=z.bind(null,!1);return R.isRequired=z.bind(null,!0),R}function v(L){function E(q,z,R,A,U,X){var se=q[z],te=F(se);if(te!==L){var J=W(se);return new f("Invalid "+A+" `"+U+"` of type "+("`"+J+"` supplied to `"+R+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return g(E)}function y(){return g(l)}function S(L){function E(q,z,R,A,U){if(typeof L!="function")return new f("Property `"+U+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var X=q[z];if(!Array.isArray(X)){var se=F(X);return new f("Invalid "+A+" `"+U+"` of type "+("`"+se+"` supplied to `"+R+"`, expected an array."))}for(var te=0;te<X.length;te++){var J=L(X,te,R,A,U+"["+te+"]",n);if(J instanceof Error)return J}return null}return g(E)}function w(){function L(E,q,z,R,A){var U=E[q];if(!a(U)){var X=F(U);return new f("Invalid "+R+" `"+A+"` of type "+("`"+X+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return g(L)}function x(){function L(E,q,z,R,A){var U=E[q];if(!e.isValidElementType(U)){var X=F(U);return new f("Invalid "+R+" `"+A+"` of type "+("`"+X+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return g(L)}function P(L){function E(q,z,R,A,U){if(!(q[z]instanceof L)){var X=L.name||h,se=H(q[z]);return new f("Invalid "+A+" `"+U+"` of type "+("`"+se+"` supplied to `"+R+"`, expected ")+("instance of `"+X+"`."))}return null}return g(E)}function T(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),l;function E(q,z,R,A,U){for(var X=q[z],se=0;se<L.length;se++)if(b(X,L[se]))return null;var te=JSON.stringify(L,function(B,V){var Q=W(V);return Q==="symbol"?String(V):V});return new f("Invalid "+A+" `"+U+"` of value `"+String(X)+"` "+("supplied to `"+R+"`, expected one of "+te+"."))}return g(E)}function I(L){function E(q,z,R,A,U){if(typeof L!="function")return new f("Property `"+U+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var X=q[z],se=F(X);if(se!=="object")return new f("Invalid "+A+" `"+U+"` of type "+("`"+se+"` supplied to `"+R+"`, expected an object."));for(var te in X)if(o(X,te)){var J=L(X,te,R,A,U+"."+te,n);if(J instanceof Error)return J}return null}return g(E)}function $(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var E=0;E<L.length;E++){var q=L[E];if(typeof q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(q)+" at index "+E+"."),l}function z(R,A,U,X,se){for(var te=[],J=0;J<L.length;J++){var B=L[J],V=B(R,A,U,X,se,n);if(V==null)return null;V.data&&o(V.data,"expectedType")&&te.push(V.data.expectedType)}var Q=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new f("Invalid "+X+" `"+se+"` supplied to "+("`"+U+"`"+Q+"."))}return g(z)}function M(){function L(E,q,z,R,A){return D(E[q])?null:new f("Invalid "+R+" `"+A+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return g(L)}function k(L,E,q,z,R){return new f((L||"React class")+": "+E+" type `"+q+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function C(L){function E(q,z,R,A,U){var X=q[z],se=F(X);if(se!=="object")return new f("Invalid "+A+" `"+U+"` of type `"+se+"` "+("supplied to `"+R+"`, expected `object`."));for(var te in L){var J=L[te];if(typeof J!="function")return k(R,A,U,te,W(J));var B=J(X,te,R,A,U+"."+te,n);if(B)return B}return null}return g(E)}function N(L){function E(q,z,R,A,U){var X=q[z],se=F(X);if(se!=="object")return new f("Invalid "+A+" `"+U+"` of type `"+se+"` "+("supplied to `"+R+"`, expected `object`."));var te=t({},q[z],L);for(var J in te){var B=L[J];if(o(L,J)&&typeof B!="function")return k(R,A,U,J,W(B));if(!B)return new f("Invalid "+A+" `"+U+"` key `"+J+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(q[z],null," ")+`
14
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var V=B(X,J,R,A,U+"."+J,n);if(V)return V}return null}return g(E)}function D(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(D);if(L===null||a(L))return!0;var E=p(L);if(E){var q=E.call(L),z;if(E!==L.entries){for(;!(z=q.next()).done;)if(!D(z.value))return!1}else for(;!(z=q.next()).done;){var R=z.value;if(R&&!D(R[1]))return!1}}else return!1;return!0;default:return!1}}function j(L,E){return L==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function F(L){var E=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":j(E,L)?"symbol":E}function W(L){if(typeof L>"u"||L===null)return""+L;var E=F(L);if(E==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return E}function Y(L){var E=W(L);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function H(L){return!L.constructor||!L.constructor.name?h:L.constructor.name}return m.checkPropTypes=s,m.resetWarningCache=s.resetWarningCache,m.PropTypes=m,m},kd}var _d,Sb;function TT(){if(Sb)return _d;Sb=1;var e=Td();function t(){}function n(){}return n.resetWarningCache=t,_d=function(){function o(l,a,c,u,d,p){if(p!==e){var h=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 h.name="Invariant Violation",h}}o.isRequired=o;function s(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},_d}var xb;function OT(){if(xb)return zi.exports;if(xb=1,process.env.NODE_ENV!=="production"){var e=pb(),t=!0;zi.exports=PT()(e.isElement,t)}else zi.exports=TT()();return zi.exports}var ET=OT();const r=Vt(ET);function wb(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=wb(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ce(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=wb(e))&&(o&&(o+=" "),o+=t);return o}function $e(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let l="",a=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(l+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(l+=" "+n[u]))}o[s]=l}return o}let Cb=0;function kT(e){const[t,n]=O.useState(e),o=e||t;return O.useEffect(()=>{t==null&&(Cb+=1,n(`mui-${Cb}`))},[t]),o}const Pb={...O}.useId;function qn(e){if(Pb!==void 0){const t=Pb();return e??t}return kT(e)}const $t=r.oneOfType([r.func,r.object]);function rr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function we(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":rr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Wi={exports:{}},wt={};var Tb;function _T(){if(Tb)return wt;Tb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var g=f.$$typeof;switch(g){case e:switch(f=f.type,f){case n:case s:case o:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case l:case a:case p:case d:return f;case i:return f;default:return g}}case t:return g}}}return wt.ContextConsumer=i,wt.ContextProvider=l,wt.Element=e,wt.ForwardRef=a,wt.Fragment=n,wt.Lazy=p,wt.Memo=d,wt.Portal=t,wt.Profiler=s,wt.StrictMode=o,wt.Suspense=c,wt.SuspenseList=u,wt.isContextConsumer=function(f){return b(f)===i},wt.isContextProvider=function(f){return b(f)===l},wt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},wt.isForwardRef=function(f){return b(f)===a},wt.isFragment=function(f){return b(f)===n},wt.isLazy=function(f){return b(f)===p},wt.isMemo=function(f){return b(f)===d},wt.isPortal=function(f){return b(f)===t},wt.isProfiler=function(f){return b(f)===s},wt.isStrictMode=function(f){return b(f)===o},wt.isSuspense=function(f){return b(f)===c},wt.isSuspenseList=function(f){return b(f)===u},wt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===l||f.$$typeof===i||f.$$typeof===a||f.$$typeof===m||f.getModuleId!==void 0)},wt.typeOf=b,wt}var Ct={};var Ob;function RT(){return Ob||(Ob=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var g=f.$$typeof;switch(g){case t:switch(f=f.type,f){case o:case i:case s:case u:case d:case m:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case h:case p:return f;case l:return f;default:return g}}case n:return g}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Ct.ContextConsumer=l,Ct.ContextProvider=a,Ct.Element=t,Ct.ForwardRef=c,Ct.Fragment=o,Ct.Lazy=h,Ct.Memo=p,Ct.Portal=n,Ct.Profiler=i,Ct.StrictMode=s,Ct.Suspense=u,Ct.SuspenseList=d,Ct.isContextConsumer=function(f){return e(f)===l},Ct.isContextProvider=function(f){return e(f)===a},Ct.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ct.isForwardRef=function(f){return e(f)===c},Ct.isFragment=function(f){return e(f)===o},Ct.isLazy=function(f){return e(f)===h},Ct.isMemo=function(f){return e(f)===p},Ct.isPortal=function(f){return e(f)===n},Ct.isProfiler=function(f){return e(f)===i},Ct.isStrictMode=function(f){return e(f)===s},Ct.isSuspense=function(f){return e(f)===u},Ct.isSuspenseList=function(f){return e(f)===d},Ct.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===i||f===s||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===a||f.$$typeof===l||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},Ct.typeOf=e})()),Ct}var Eb;function IT(){return Eb||(Eb=1,process.env.NODE_ENV==="production"?Wi.exports=_T():Wi.exports=RT()),Wi.exports}var Hi=IT();function zn(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 kb(e){if(O.isValidElement(e)||Hi.isValidElementType(e)||!zn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=kb(e[n])}),t}function Wt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return zn(e)&&zn(t)&&Object.keys(t).forEach(s=>{O.isValidElement(t[s])||Hi.isValidElementType(t[s])?o[s]=t[s]:zn(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&zn(e[s])?o[s]=Wt(e[s],t[s],n):n.clone?o[s]=zn(t[s])?kb(t[s]):t[s]:o[s]=t[s]}),o}function qo(e,t){return t?Wt(e,t,{clone:!1}):e}const pr=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.string,r.object,r.array]):{};function _b(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(s.match(i)?.[1]||0)});return n.length?n.reduce((o,s)=>{const i=t[s];return delete o[s],o[s]=i,o},{...t}):t}function $T(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function DT(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
15
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,s]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(i)}function MT(e){const t=(i,l)=>i.replace("@media",l?`@container ${l}`:"@container");function n(i,l){i.up=(...a)=>t(e.breakpoints.up(...a),l),i.down=(...a)=>t(e.breakpoints.down(...a),l),i.between=(...a)=>t(e.breakpoints.between(...a),l),i.only=(...a)=>t(e.breakpoints.only(...a),l),i.not=(...a)=>{const c=t(e.breakpoints.not(...a),l);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},s=i=>(n(o,i),o);return n(s),{...e,containerQueries:s}}const Yi={xs:0,sm:600,md:900,lg:1200,xl:1536},Rb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yi[e]}px)`},NT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Yi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function or(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||Rb;return t.reduce((l,a,c)=>(l[i.up(i.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const i=o.breakpoints||Rb;return Object.keys(t).reduce((l,a)=>{if($T(i.keys,a)){const c=DT(o.containerQueries?o:NT,a);c&&(l[c]=n(t[a],a))}else if(Object.keys(i.values||Yi).includes(a)){const c=i.up(a);l[c]=n(t[a],a)}else{const c=a;l[c]=t[c]}return l},{})}return n(t)}function jT(e={}){return e.keys?.reduce((n,o)=>{const s=e.up(o);return n[s]={},n},{})||{}}function Ib(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function Ki(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,i)=>s&&s[i]?s[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function Gi(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=Ki(e,n)||o,t&&(s=t(s,o,e)),s}function At(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,i=l=>{if(l[t]==null)return null;const a=l[t],c=l.theme,u=Ki(c,o)||{};return or(l,a,p=>{let h=Gi(u,s,p);return p===h&&typeof p=="string"&&(h=Gi(u,s,`${t}${p==="default"?"":we(p)}`,p)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:pr}:{},i.filterProps=[t],i}function AT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const FT={m:"margin",p:"padding"},VT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$b={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},LT=AT(e=>{if(e.length>2)if($b[e])e=$b[e];else return[e];const[t,n]=e.split(""),o=FT[t],s=VT[n]||"";return Array.isArray(s)?s.map(i=>o+i):[o+s]}),Xi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],BT=[...Xi,...Qi];function zo(e,t,n,o){const s=Ki(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof s=="string"?s.startsWith("var(")&&i===0?0:s.startsWith("var(")&&i===1?s:`calc(${i} * ${s})`:s*i):Array.isArray(s)?i=>{if(typeof i=="string")return i;const l=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>s.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${l} > ${s.length-1}, you need to add the missing values.`].join(`
16
16
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
17
- `)));const s=i[l];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
18
- `)),()=>{})}function Uc(e){return Hn(e,"spacing",8,"spacing")}function Kn(e,t){return typeof t=="string"||t==null?t:e(t)}function bw(e,t){return r=>e.reduce((n,i)=>(n[i]=Kn(t,r),n),{})}function _w(e,t,r,n){if(!t.includes(r))return null;const i=gw(r),a=bw(i,n),l=e[r];return $r(e,l,a)}function oy(e,t){const r=Uc(e.theme);return Object.keys(e).map(n=>_w(e,t,n,r)).reduce(Wn,{})}function vt(e){return oy(e,Ai)}vt.propTypes=process.env.NODE_ENV!=="production"?Ai.reduce((e,t)=>(e[t]=Fr,e),{}):{},vt.filterProps=Ai;function bt(e){return oy(e,Mi)}bt.propTypes=process.env.NODE_ENV!=="production"?Mi.reduce((e,t)=>(e[t]=Fr,e),{}):{},bt.filterProps=Mi,process.env.NODE_ENV!=="production"&&vw.reduce((e,t)=>(e[t]=Fr,e),{});function Di(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Wn(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Zt(e){return typeof e!="number"?e:`${e}px solid`}function Qt(e,t){return wt({prop:e,themeKey:"borders",transform:t})}const ww=Qt("border",Zt),Sw=Qt("borderTop",Zt),Ew=Qt("borderRight",Zt),Ow=Qt("borderBottom",Zt),xw=Qt("borderLeft",Zt),Cw=Qt("borderColor"),Tw=Qt("borderTopColor"),Pw=Qt("borderRightColor"),$w=Qt("borderBottomColor"),Rw=Qt("borderLeftColor"),kw=Qt("outline",Zt),Iw=Qt("outlineColor"),qi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Kn(t,n)});return $r(e,e.borderRadius,r)}return null};qi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Fr}:{},qi.filterProps=["borderRadius"],Di(ww,Sw,Ew,Ow,xw,Cw,Tw,Pw,$w,Rw,qi,kw,Iw);const Li=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hn(e.theme,"spacing",8,"gap"),r=n=>({gap:Kn(t,n)});return $r(e,e.gap,r)}return null};Li.propTypes=process.env.NODE_ENV!=="production"?{gap:Fr}:{},Li.filterProps=["gap"];const Fi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Kn(t,n)});return $r(e,e.columnGap,r)}return null};Fi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Fr}:{},Fi.filterProps=["columnGap"];const zi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Kn(t,n)});return $r(e,e.rowGap,r)}return null};zi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Fr}:{},zi.filterProps=["rowGap"];const jw=wt({prop:"gridColumn"}),Nw=wt({prop:"gridRow"}),Aw=wt({prop:"gridAutoFlow"}),Mw=wt({prop:"gridAutoColumns"}),Dw=wt({prop:"gridAutoRows"}),qw=wt({prop:"gridTemplateColumns"}),Lw=wt({prop:"gridTemplateRows"}),Fw=wt({prop:"gridTemplateAreas"}),zw=wt({prop:"gridArea"});Di(Li,Fi,zi,jw,Nw,Aw,Mw,Dw,qw,Lw,Fw,zw);function _n(e,t){return t==="grey"?t:e}const Vw=wt({prop:"color",themeKey:"palette",transform:_n}),Bw=wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_n}),Uw=wt({prop:"backgroundColor",themeKey:"palette",transform:_n});Di(Vw,Bw,Uw);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const Ww=wt({prop:"width",transform:Ht}),Wc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Ii[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ht(r)}};return $r(e,e.maxWidth,t)}return null};Wc.filterProps=["maxWidth"];const Hw=wt({prop:"minWidth",transform:Ht}),Kw=wt({prop:"height",transform:Ht}),Gw=wt({prop:"maxHeight",transform:Ht}),Yw=wt({prop:"minHeight",transform:Ht});wt({prop:"size",cssProperty:"width",transform:Ht}),wt({prop:"size",cssProperty:"height",transform:Ht});const Jw=wt({prop:"boxSizing"});Di(Ww,Wc,Hw,Kw,Gw,Yw,Jw);const Gn={border:{themeKey:"borders",transform:Zt},borderTop:{themeKey:"borders",transform:Zt},borderRight:{themeKey:"borders",transform:Zt},borderBottom:{themeKey:"borders",transform:Zt},borderLeft:{themeKey:"borders",transform:Zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qi},color:{themeKey:"palette",transform:_n},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_n},backgroundColor:{themeKey:"palette",transform:_n},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:vt},mt:{style:vt},mr:{style:vt},mb:{style:vt},ml:{style:vt},mx:{style:vt},my:{style:vt},margin:{style:vt},marginTop:{style:vt},marginRight:{style:vt},marginBottom:{style:vt},marginLeft:{style:vt},marginX:{style:vt},marginY:{style:vt},marginInline:{style:vt},marginInlineStart:{style:vt},marginInlineEnd:{style:vt},marginBlock:{style:vt},marginBlockStart:{style:vt},marginBlockEnd:{style:vt},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:Li},rowGap:{style:zi},columnGap:{style:Fi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:Wc},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},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 Xw(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Zw(e,t){return typeof e=="function"?e(t):e}function Qw(){function e(r,n,i,a){const l={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:m}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const h=ji(i,u)||{};return m?m(l):$r(l,n,g=>{let f=Ni(h,d,g);return g===f&&typeof g=="string"&&(f=Ni(h,d,`${r}${g==="default"?"":pe(g)}`,g)),c===!1?f:{[c]:f}})}function t(r){const{sx:n,theme:i={},nested:a}=r||{};if(!n)return null;const l=i.unstable_sxConfig??Gn;function s(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const d=pw(i.breakpoints),m=Object.keys(d);let h=d;return Object.keys(u).forEach(y=>{const g=Zw(u[y],i);if(g!=null)if(typeof g=="object")if(l[y])h=Wn(h,e(y,g,i,l));else{const f=$r({theme:i},g,b=>({[y]:b}));Xw(f,g)?h[y]=t({sx:g,theme:i,nested:!0}):h=Wn(h,f)}else h=Wn(h,e(y,g,i,l))}),!a&&i.modularCssLayers?{"@layer sx":ey(i,ry(m,h))}:ey(i,ry(m,h))}return Array.isArray(n)?n.map(s):s(n)}return t}const wn=Qw();wn.filterProps=["sx"];const eS=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Gn;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function tS(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=eS(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const s=t(...l);return mr(s)?{...n,...s}:n}:a={...n,...t},{...i,sx:a}}function rS(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nS={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 oS(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var iS=/[A-Z]|^ms/g,aS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iy=function(t){return t.charCodeAt(1)===45},ay=function(t){return t!=null&&typeof t!="boolean"},Hc=oS(function(e){return iy(e)?e:e.replace(iS,"-$&").toLowerCase()}),sy=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(aS,function(n,i,a){return zr={name:i,styles:a,next:zr},i})}return nS[t]!==1&&!iy(t)&&typeof r=="number"&&r!==0?r+"px":r};function Vi(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return zr={name:i.name,styles:i.styles,next:zr},i.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)zr={name:l.name,styles:l.styles,next:zr},l=l.next;var s=a.styles+";";return s}return sS(e,t,r)}}var c=r;return c}function sS(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Vi(e,t,r[i])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var s=l;ay(s)&&(n+=Hc(a)+":"+sy(a,s)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)ay(l[c])&&(n+=Hc(a)+":"+sy(a,l[c])+";");else{var u=Vi(e,t,l);switch(a){case"animation":case"animationName":{n+=Hc(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var ly=/label:\s*([^\s;{]+)\s*(;|$)/g,zr;function lS(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";zr=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Vi(r,t,a);else{var l=a;i+=l[0]}for(var s=1;s<e.length;s++)if(i+=Vi(r,t,e[s]),n){var c=a;i+=c[s]}ly.lastIndex=0;for(var u="",d;(d=ly.exec(i))!==null;)u+="-"+d[1];var m=rS(i)+u;return{name:m,styles:i,next:zr}}function cS(e){return e==null||Object.keys(e).length===0}function cy(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(cS(i)?r:i):t;return F.jsx(Or.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(cy.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function uS(e,t){const r=Yv(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
19
- `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}function dS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const uy=[];function Vr(e){return uy[0]=e,lS(uy)}const fS=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function pS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=fS(t),l=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function u(h,y){const g=l.indexOf(y);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[l[g]]=="number"?t[l[g]]:y)-n/100}${r})`}function d(h){return l.indexOf(h)+1<l.length?u(h,l[l.indexOf(h)+1]):s(h)}function m(h){const y=l.indexOf(h);return y===0?s(l[1]):y===l.length-1?c(l[y]):u(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:s,down:c,between:u,only:d,not:m,unit:r,...i}}const hS={borderRadius:4};function dy(e=8,t=Uc({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function mS(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Kc(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...l}=e,s=pS(r),c=dy(i);let u=kt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...hS,...a}},l);return u=dw(u),u.applyStyles=mS,u=t.reduce((d,m)=>kt(d,m),u),u.unstable_sxConfig={...Gn,...l?.unstable_sxConfig},u.unstable_sx=function(m){return wn({sx:m,theme:this})},u}function yS(e){return Object.keys(e).length===0}function gS(e=null){const t=j.useContext(Or.ThemeContext);return!t||yS(t)?e:t}const vS=Kc();function fy(e=vS){return gS(e)}function Gc(e){const t=Vr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function py({styles:e,themeId:t,defaultTheme:r={}}){const n=fy(r),i=t&&n[t]||n;let a=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(a)?a=a.map(l=>Gc(typeof l=="function"?l(i):l)):a=Gc(a)),F.jsx(cy,{styles:a})}process.env.NODE_ENV!=="production"&&(py.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const hy=e=>e,bS=(()=>{let e=hy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hy}}})(),_S={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 Fe(e,t,r="Mui"){const n=_S[t];return n?`${r}-${n}`:`${bS.generate(e)}-${t}`}function Le(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Fe(e,i,r)}),n}function my(e,t=""){return e.displayName||e.name||t}function yy(e,t,r){const n=my(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function wS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return my(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ki.ForwardRef:return yy(e,e.render,"ForwardRef");case ki.Memo:return yy(e,e.type,"memo");default:return}}}function gy(e){const{variants:t,...r}=e,n={variants:t,style:Vr(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Vr(i.style))}),n}const SS=Kc();function Yc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ES(e){return e?(t,r)=>r[e]:null}function OS(e,t,r){e.theme=TS(e.theme)?r:e.theme[t]||e.theme}function Bi(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>Bi(e,i,r));if(Array.isArray(n?.variants)){let i;if(n.isProcessed)i=r?rn(n.style,r):n.style;else{const{variants:a,...l}=n;i=r?rn(Vr(l),r):l}return vy(e,n.variants,[i],r)}return n?.isProcessed?r?rn(Vr(n.style),r):n.style:r?rn(Vr(n),r):n}function vy(e,t,r=[],n=void 0){let i;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(i))continue}else for(const s in l.props)if(e[s]!==l.props[s]&&e.ownerState?.[s]!==l.props[s])continue e;typeof l.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?rn(Vr(l.style(i)),n):l.style(i))):r.push(n?rn(Vr(l.style),n):l.style)}return r}function by(e={}){const{themeId:t,defaultTheme:r=SS,rootShouldForwardProp:n=Yc,slotShouldForwardProp:i=Yc}=e;function a(s){OS(s,t,r)}return(s,c={})=>{dS(s,E=>E.filter(x=>x!==wn));const{name:u,slot:d,skipVariantsResolver:m,skipSx:h,overridesResolver:y=ES(_y(d)),...g}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",b=m!==void 0?m:d&&d!=="Root"&&d!=="root"||!1,v=h||!1;let p=Yc;d==="Root"||d==="root"?p=n:d?p=i:PS(s)&&(p=void 0);const _=uS(s,{shouldForwardProp:p,label:CS(u,d),...g}),S=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(P){return Bi(P,E,P.theme.modularCssLayers?f:void 0)};if(mr(E)){const x=gy(E);return function(k){return x.variants?Bi(k,x,k.theme.modularCssLayers?f:void 0):k.theme.modularCssLayers?rn(x.style,f):x.style}}return E},w=(...E)=>{const x=[],P=E.map(S),k=[];if(x.push(a),u&&y&&k.push(function(q){const U=q.theme.components?.[u]?.styleOverrides;if(!U)return null;const W={};for(const le in U)W[le]=Bi(q,U[le],q.theme.modularCssLayers?"theme":void 0);return y(q,W)}),u&&!b&&k.push(function(q){const U=q.theme?.components?.[u]?.variants;return U?vy(q,U,[],q.theme.modularCssLayers?"theme":void 0):null}),v||k.push(wn),Array.isArray(P[0])){const O=P.shift(),q=new Array(x.length).fill(""),N=new Array(k.length).fill("");let U;U=[...q,...O,...N],U.raw=[...q,...O.raw,...N],x.unshift(U)}const M=[...x,...P,...k],R=_(...M);return s.muiName&&(R.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=xS(u,d,s)),R};return _.withConfig&&(w.withConfig=_.withConfig),w}}function xS(e,t,r){return e?`${e}${pe(t||"")}`:`Styled(${wS(r)})`}function CS(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${_y(t||"Root")}`),r}function TS(e){for(const t in e)return!1;return!0}function PS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _y(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Ui=by();function Wi(e,t,r=!1){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=i;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const l=e[a],s=t[a];if(!s)n[a]=l||{};else if(!l)n[a]=s;else{n[a]={...s};for(const c in l)if(Object.prototype.hasOwnProperty.call(l,c)){const u=c;n[a][u]=Wi(l[u],s[u],r)}}}else a==="className"&&r&&t.className?n.className=xe(e?.className,t?.className):a==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[a]===void 0&&(n[a]=e[a])}return n}const yr=typeof window<"u"?j.useLayoutEffect:j.useEffect;function $S(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Jc(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),$S(e,t,r)}function RS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Br(e){if(e.type)return e;if(e.charAt(0)==="#")return Br(RS(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
20
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:hr(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
21
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:hr(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const kS=e=>{const t=Br(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Yn=(e,t)=>{try{return kS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Hi(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function wy(e){e=Br(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),l=(u,d=(u+r/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),Hi({type:s,values:c})}function Xc(e){e=Br(e);let t=e.type==="hsl"||e.type==="hsla"?Br(wy(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Sy(e,t){const r=Xc(e),n=Xc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ki(e,t){return e=Br(e),t=Jc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hi(e)}function nn(e,t,r){try{return Ki(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Gi(e,t){if(e=Br(e),t=Jc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Hi(e)}function rt(e,t,r){try{return Gi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Yi(e,t){if(e=Br(e),t=Jc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Hi(e)}function nt(e,t,r){try{return Yi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function IS(e,t=.15){return Xc(e)>.5?Gi(e,t):Yi(e,t)}function Ji(e,t,r){try{return IS(e,t)}catch{return e}}const jS="exact-prop: ​";function Ey(e){return process.env.NODE_ENV==="production"?e:{...e,[jS]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}const NS=j.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Oy=()=>j.useContext(NS)??!1,AS=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function MS(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Wi(i.defaultProps,n,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Wi(i,n,t.components.mergeClassNameAndStyle):n}function DS({props:e,name:t}){const r=j.useContext(AS);return MS({props:e,name:t,theme:{components:r}})}const xy={theme:void 0};function qS(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(xy.theme=i.theme,a=gy(e(xy)),t=a,r=i.theme),a}}function LS(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.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}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const Cy=(e,t,r,n=[])=>{let i=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},FS=(e,t,r)=>{function n(i,a=[],l=[]){Object.entries(i).forEach(([s,c])=>{(!r||r&&!r([...a,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...a,s],Array.isArray(c)?[...l,s]:l):t([...a,s],c,l))})}n(e)},zS=(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 Zc(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},l={};return FS(e,(s,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const d=`--${r?`${r}-`:""}${s.join("-")}`,m=zS(s,c);Object.assign(i,{[d]:m}),Cy(a,s,`var(${d})`,u),Cy(l,s,`var(${d}, ${m})`,u)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function VS(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:l={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:m,varsWithDefaults:h}=Zc(u,t);let y=h;const g={},{[c]:f,...b}=l;if(Object.entries(b||{}).forEach(([S,w])=>{const{vars:E,css:x,varsWithDefaults:P}=Zc(w,t);y=kt(y,P),g[S]={css:x,vars:E}}),f){const{css:S,vars:w,varsWithDefaults:E}=Zc(f,t);y=kt(y,E),g[c]={css:S,vars:w}}function v(S,w){let E=i;if(i==="class"&&(E=".%s"),i==="data"&&(E="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(E=`[${i}="%s"]`),S){if(E==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${l[S]?.palette?.mode||S})`]:{":root":w}};if(E)return e.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...d};return Object.entries(g).forEach(([,{vars:w}])=>{S=kt(S,w)}),S},generateStyleSheets:()=>{const S=[],w=e.defaultColorScheme||"light";function E(k,M){Object.keys(M).length&&S.push(typeof k=="string"?{[k]:{...M}}:k)}E(r(void 0,{...m}),m);const{[w]:x,...P}=g;if(x){const{css:k}=x,M=l[w]?.palette?.mode,R=!n&&M?{colorScheme:M,...k}:{...k};E(r(w,{...R}),R)}return Object.entries(P).forEach(([k,{css:M}])=>{const R=l[k]?.palette?.mode,O=!n&&R?{colorScheme:R,...M}:{...M};E(r(k,{...O}),O)}),a&&S.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)"}}),S}}}function BS(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function Qc(e,t){return j.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Jn={black:"#000",white:"#fff"},US={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"},Sn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},En={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},On={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},xn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Cn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ty(){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:Jn.white,default:Jn.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 Py=Ty();function $y(){return{text:{primary:Jn.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:Jn.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 eu=$y();function Ry(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Yi(e.main,i):t==="dark"&&(e.dark=Gi(e.main,a)))}function ky(e,t,r,n,i){const a=i.light||i,l=i.dark||i*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function WS(e="light"){return e==="dark"?{main:On[200],light:On[50],dark:On[400]}:{main:On[700],light:On[400],dark:On[800]}}function HS(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[500],light:Sn[300],dark:Sn[700]}}function KS(e="light"){return e==="dark"?{main:En[500],light:En[300],dark:En[700]}:{main:En[700],light:En[400],dark:En[800]}}function GS(e="light"){return e==="dark"?{main:xn[400],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[500],dark:xn[900]}}function YS(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function JS(e="light"){return e==="dark"?{main:Xn[400],light:Xn[300],dark:Xn[700]}:{main:"#ed6c02",light:Xn[500],dark:Xn[900]}}function XS(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function tu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:i,...a}=e,l=e.primary||WS(t),s=e.secondary||HS(t),c=e.error||KS(t),u=e.info||GS(t),d=e.success||YS(t),m=e.warning||JS(t);function h(b){if(i)return XS(b);const v=Sy(b,eu.text.primary)>=r?eu.text.primary:Py.text.primary;if(process.env.NODE_ENV!=="production"){const p=Sy(b,v);p<3&&console.error([`MUI: The contrast ratio of ${p}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
22
- `))}return v}const y=({color:b,name:v,mainShade:p=500,lightShade:_=300,darkShade:S=700})=>{if(b={...b},!b.main&&b[p]&&(b.main=b[p]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
23
- The color object needs to have a \`main\` property or a \`${p}\` property.`:hr(11,v?` (${v})`:"",p));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
24
- \`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
17
+ `)));const a=s[l];return i>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
18
+ `)),()=>{})}function Rd(e){return zo(e,"spacing",8,"spacing")}function Uo(e,t){return typeof t=="string"||t==null?t:e(t)}function qT(e,t){return n=>e.reduce((o,s)=>(o[s]=Uo(t,n),o),{})}function zT(e,t,n,o){if(!t.includes(n))return null;const s=LT(n),i=qT(s,o),l=e[n];return or(e,l,i)}function Db(e,t){const n=Rd(e.theme);return Object.keys(e).map(o=>zT(e,t,o,n)).reduce(qo,{})}function Nt(e){return Db(e,Xi)}Nt.propTypes=process.env.NODE_ENV!=="production"?Xi.reduce((e,t)=>(e[t]=pr,e),{}):{},Nt.filterProps=Xi;function jt(e){return Db(e,Qi)}jt.propTypes=process.env.NODE_ENV!=="production"?Qi.reduce((e,t)=>(e[t]=pr,e),{}):{},jt.filterProps=Qi,process.env.NODE_ENV!=="production"&&BT.reduce((e,t)=>(e[t]=pr,e),{});function Ji(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(i=>{o[i]=s}),o),{}),n=o=>Object.keys(o).reduce((s,i)=>t[i]?qo(s,t[i](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function gn(e){return typeof e!="number"?e:`${e}px solid`}function bn(e,t){return At({prop:e,themeKey:"borders",transform:t})}const UT=bn("border",gn),WT=bn("borderTop",gn),HT=bn("borderRight",gn),YT=bn("borderBottom",gn),KT=bn("borderLeft",gn),GT=bn("borderColor"),XT=bn("borderTopColor"),QT=bn("borderRightColor"),JT=bn("borderBottomColor"),ZT=bn("borderLeftColor"),eO=bn("outline",gn),tO=bn("outlineColor"),Zi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=zo(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Uo(t,o)});return or(e,e.borderRadius,n)}return null};Zi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:pr}:{},Zi.filterProps=["borderRadius"],Ji(UT,WT,HT,YT,KT,GT,XT,QT,JT,ZT,Zi,eO,tO);const ea=e=>{if(e.gap!==void 0&&e.gap!==null){const t=zo(e.theme,"spacing",8,"gap"),n=o=>({gap:Uo(t,o)});return or(e,e.gap,n)}return null};ea.propTypes=process.env.NODE_ENV!=="production"?{gap:pr}:{},ea.filterProps=["gap"];const ta=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=zo(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Uo(t,o)});return or(e,e.columnGap,n)}return null};ta.propTypes=process.env.NODE_ENV!=="production"?{columnGap:pr}:{},ta.filterProps=["columnGap"];const na=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=zo(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Uo(t,o)});return or(e,e.rowGap,n)}return null};na.propTypes=process.env.NODE_ENV!=="production"?{rowGap:pr}:{},na.filterProps=["rowGap"];const nO=At({prop:"gridColumn"}),rO=At({prop:"gridRow"}),oO=At({prop:"gridAutoFlow"}),sO=At({prop:"gridAutoColumns"}),iO=At({prop:"gridAutoRows"}),aO=At({prop:"gridTemplateColumns"}),lO=At({prop:"gridTemplateRows"}),cO=At({prop:"gridTemplateAreas"}),uO=At({prop:"gridArea"});Ji(ea,ta,na,nO,rO,oO,sO,iO,aO,lO,cO,uO);function no(e,t){return t==="grey"?t:e}const dO=At({prop:"color",themeKey:"palette",transform:no}),fO=At({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:no}),pO=At({prop:"backgroundColor",themeKey:"palette",transform:no});Ji(dO,fO,pO);function cn(e){return e<=1&&e!==0?`${e*100}%`:e}const hO=At({prop:"width",transform:cn}),Id=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Yi[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:cn(n)}};return or(e,e.maxWidth,t)}return null};Id.filterProps=["maxWidth"];const mO=At({prop:"minWidth",transform:cn}),yO=At({prop:"height",transform:cn}),gO=At({prop:"maxHeight",transform:cn}),bO=At({prop:"minHeight",transform:cn});At({prop:"size",cssProperty:"width",transform:cn}),At({prop:"size",cssProperty:"height",transform:cn});const vO=At({prop:"boxSizing"});Ji(hO,Id,mO,yO,gO,bO,vO);const Wo={border:{themeKey:"borders",transform:gn},borderTop:{themeKey:"borders",transform:gn},borderRight:{themeKey:"borders",transform:gn},borderBottom:{themeKey:"borders",transform:gn},borderLeft:{themeKey:"borders",transform:gn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zi},color:{themeKey:"palette",transform:no},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:no},backgroundColor:{themeKey:"palette",transform:no},p:{style:jt},pt:{style:jt},pr:{style:jt},pb:{style:jt},pl:{style:jt},px:{style:jt},py:{style:jt},padding:{style:jt},paddingTop:{style:jt},paddingRight:{style:jt},paddingBottom:{style:jt},paddingLeft:{style:jt},paddingX:{style:jt},paddingY:{style:jt},paddingInline:{style:jt},paddingInlineStart:{style:jt},paddingInlineEnd:{style:jt},paddingBlock:{style:jt},paddingBlockStart:{style:jt},paddingBlockEnd:{style:jt},m:{style:Nt},mt:{style:Nt},mr:{style:Nt},mb:{style:Nt},ml:{style:Nt},mx:{style:Nt},my:{style:Nt},margin:{style:Nt},marginTop:{style:Nt},marginRight:{style:Nt},marginBottom:{style:Nt},marginLeft:{style:Nt},marginX:{style:Nt},marginY:{style:Nt},marginInline:{style:Nt},marginInlineStart:{style:Nt},marginInlineEnd:{style:Nt},marginBlock:{style:Nt},marginBlockStart:{style:Nt},marginBlockEnd:{style:Nt},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:ea},rowGap:{style:na},columnGap:{style:ta},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cn},maxWidth:{style:Id},minWidth:{transform:cn},height:{transform:cn},maxHeight:{transform:cn},minHeight:{transform:cn},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 SO(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function xO(e,t){return typeof e=="function"?e(t):e}function wO(){function e(n,o,s,i){const l={[n]:o,theme:s},a=i[n];if(!a)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=a;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const h=Ki(s,u)||{};return p?p(l):or(l,o,b=>{let f=Gi(h,d,b);return b===f&&typeof b=="string"&&(f=Gi(h,d,`${n}${b==="default"?"":we(b)}`,b)),c===!1?f:{[c]:f}})}function t(n){const{sx:o,theme:s={},nested:i}=n||{};if(!o)return null;const l=s.unstable_sxConfig??Wo;function a(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const d=jT(s.breakpoints),p=Object.keys(d);let h=d;return Object.keys(u).forEach(m=>{const b=xO(u[m],s);if(b!=null)if(typeof b=="object")if(l[m])h=qo(h,e(m,b,s,l));else{const f=or({theme:s},b,g=>({[m]:g}));SO(f,b)?h[m]=t({sx:b,theme:s,nested:!0}):h=qo(h,f)}else h=qo(h,e(m,b,s,l))}),!i&&s.modularCssLayers?{"@layer sx":_b(s,Ib(p,h))}:_b(s,Ib(p,h))}return Array.isArray(o)?o.map(a):a(o)}return t}const ro=wO();ro.filterProps=["sx"];const CO=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Wo;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function PO(e){const{sx:t,...n}=e,{systemProps:o,otherProps:s}=CO(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...l)=>{const a=t(...l);return zn(a)?{...o,...a}:o}:i={...o,...t},{...s,sx:i}}function TO(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 OO={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 EO(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var kO=/[A-Z]|^ms/g,_O=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mb=function(t){return t.charCodeAt(1)===45},Nb=function(t){return t!=null&&typeof t!="boolean"},$d=EO(function(e){return Mb(e)?e:e.replace(kO,"-$&").toLowerCase()}),jb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_O,function(o,s,i){return hr={name:s,styles:i,next:hr},s})}return OO[t]!==1&&!Mb(t)&&typeof n=="number"&&n!==0?n+"px":n};function ra(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return hr={name:s.name,styles:s.styles,next:hr},s.name;var i=n;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)hr={name:l.name,styles:l.styles,next:hr},l=l.next;var a=i.styles+";";return a}return RO(e,t,n)}}var c=n;return c}function RO(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=ra(e,t,n[s])+";";else for(var i in n){var l=n[i];if(typeof l!="object"){var a=l;Nb(a)&&(o+=$d(i)+":"+jb(i,a)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)Nb(l[c])&&(o+=$d(i)+":"+jb(i,l[c])+";");else{var u=ra(e,t,l);switch(i){case"animation":case"animationName":{o+=$d(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Ab=/label:\s*([^\s;{]+)\s*(;|$)/g,hr;function IO(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";hr=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,s+=ra(n,t,i);else{var l=i;s+=l[0]}for(var a=1;a<e.length;a++)if(s+=ra(n,t,e[a]),o){var c=i;s+=c[a]}Ab.lastIndex=0;for(var u="",d;(d=Ab.exec(s))!==null;)u+="-"+d[1];var p=TO(s)+u;return{name:p,styles:s,next:hr}}function $O(e){return e==null||Object.keys(e).length===0}function Fb(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?s=>t($O(s)?n:s):t;return _.jsx(Jn.Global,{styles:o})}process.env.NODE_ENV!=="production"&&(Fb.propTypes={defaultTheme:r.object,styles:r.oneOfType([r.array,r.string,r.object,r.func])});function DO(e,t){const n=bw(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const s=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
19
+ `)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function MO(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Vb=[];function mr(e){return Vb[0]=e,IO(Vb)}const NO=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function jO(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,i=NO(t),l=Object.keys(i);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function u(h,m){const b=l.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(b!==-1&&typeof t[l[b]]=="number"?t[l[b]]:m)-o/100}${n})`}function d(h){return l.indexOf(h)+1<l.length?u(h,l[l.indexOf(h)+1]):a(h)}function p(h){const m=l.indexOf(h);return m===0?a(l[1]):m===l.length-1?c(l[m]):u(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:l,values:i,up:a,down:c,between:u,only:d,not:p,unit:n,...s}}const AO={borderRadius:4};function Lb(e=8,t=Rd({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" "));return n.mui=!0,n}function FO(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Dd(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:i={},...l}=e,a=jO(n),c=Lb(s);let u=Wt({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...AO,...i}},l);return u=MT(u),u.applyStyles=FO,u=t.reduce((d,p)=>Wt(d,p),u),u.unstable_sxConfig={...Wo,...l?.unstable_sxConfig},u.unstable_sx=function(p){return ro({sx:p,theme:this})},u}function VO(e){return Object.keys(e).length===0}function Bb(e=null){const t=O.useContext(Jn.ThemeContext);return!t||VO(t)?e:t}const LO=Dd();function Md(e=LO){return Bb(e)}function Nd(e){const t=mr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function qb({styles:e,themeId:t,defaultTheme:n={}}){const o=Md(n),s=t&&o[t]||o;let i=typeof e=="function"?e(s):e;return s.modularCssLayers&&(Array.isArray(i)?i=i.map(l=>Nd(typeof l=="function"?l(s):l)):i=Nd(i)),_.jsx(Fb,{styles:i})}process.env.NODE_ENV!=="production"&&(qb.propTypes={defaultTheme:r.object,styles:r.oneOfType([r.array,r.func,r.number,r.object,r.string,r.bool]),themeId:r.string});const zb=e=>e,BO=(()=>{let e=zb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=zb}}})(),qO={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 Me(e,t,n="Mui"){const o=qO[t];return o?`${n}-${o}`:`${BO.generate(e)}-${t}`}function De(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Me(e,s,n)}),o}function Ub(e,t=""){return e.displayName||e.name||t}function Wb(e,t,n){const o=Ub(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function zO(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ub(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Hi.ForwardRef:return Wb(e,e.render,"ForwardRef");case Hi.Memo:return Wb(e,e.type,"memo");default:return}}}function Hb(e){const{variants:t,...n}=e,o={variants:t,style:mr(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=mr(s.style))}),o}const UO=Dd();function nn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function jr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function WO(e){return e?(t,n)=>n[e]:null}function HO(e,t,n){e.theme=GO(e.theme)?n:e.theme[t]||e.theme}function oa(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(s=>oa(e,s,n));if(Array.isArray(o?.variants)){let s;if(o.isProcessed)s=n?jr(o.style,n):o.style;else{const{variants:i,...l}=o;s=n?jr(mr(l),n):l}return Yb(e,o.variants,[s],n)}return o?.isProcessed?n?jr(mr(o.style),n):o.style:n?jr(mr(o),n):o}function Yb(e,t,n=[],o=void 0){let s;e:for(let i=0;i<t.length;i+=1){const l=t[i];if(typeof l.props=="function"){if(s??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(s))continue}else for(const a in l.props)if(e[a]!==l.props[a]&&e.ownerState?.[a]!==l.props[a])continue e;typeof l.style=="function"?(s??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?jr(mr(l.style(s)),o):l.style(s))):n.push(o?jr(mr(l.style),o):l.style)}return n}function Kb(e={}){const{themeId:t,defaultTheme:n=UO,rootShouldForwardProp:o=nn,slotShouldForwardProp:s=nn}=e;function i(a){HO(a,t,n)}return(a,c={})=>{MO(a,P=>P.filter(T=>T!==ro));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:m=WO(Gb(d)),...b}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",g=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,v=h||!1;let y=nn;d==="Root"||d==="root"?y=o:d?y=s:XO(a)&&(y=void 0);const S=DO(a,{shouldForwardProp:y,label:KO(u,d),...b}),w=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(I){return oa(I,P,I.theme.modularCssLayers?f:void 0)};if(zn(P)){const T=Hb(P);return function($){return T.variants?oa($,T,$.theme.modularCssLayers?f:void 0):$.theme.modularCssLayers?jr(T.style,f):T.style}}return P},x=(...P)=>{const T=[],I=P.map(w),$=[];if(T.push(i),u&&m&&$.push(function(N){const j=N.theme.components?.[u]?.styleOverrides;if(!j)return null;const F={};for(const W in j)F[W]=oa(N,j[W],N.theme.modularCssLayers?"theme":void 0);return m(N,F)}),u&&!g&&$.push(function(N){const j=N.theme?.components?.[u]?.variants;return j?Yb(N,j,[],N.theme.modularCssLayers?"theme":void 0):null}),v||$.push(ro),Array.isArray(I[0])){const C=I.shift(),N=new Array(T.length).fill(""),D=new Array($.length).fill("");let j;j=[...N,...C,...D],j.raw=[...N,...C.raw,...D],T.unshift(j)}const M=[...T,...I,...$],k=S(...M);return a.muiName&&(k.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(k.displayName=YO(u,d,a)),k};return S.withConfig&&(x.withConfig=S.withConfig),x}}function YO(e,t,n){return e?`${e}${we(t||"")}`:`Styled(${zO(n)})`}function KO(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Gb(t||"Root")}`),n}function GO(e){for(const t in e)return!1;return!0}function XO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gb(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const sa=Kb();function Ho(e,t,n=!1){const o={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const i=s;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const l=e[i],a=t[i];if(!a)o[i]=l||{};else if(!l)o[i]=a;else{o[i]={...a};for(const c in l)if(Object.prototype.hasOwnProperty.call(l,c)){const u=c;o[i][u]=Ho(l[u],a[u],n)}}}else i==="className"&&n&&t.className?o.className=Ce(e?.className,t?.className):i==="style"&&n&&t.style?o.style={...e?.style,...t?.style}:o[i]===void 0&&(o[i]=e[i])}return o}function Xb(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Ho(t.components[n].defaultProps,o)}function QO({props:e,name:t,defaultTheme:n,themeId:o}){let s=Md(n);return s=s[o]||s,Xb({theme:s,name:t,props:e})}const Mt=typeof window<"u"?O.useLayoutEffect:O.useEffect;function JO(e,t,n,o,s){const[i,l]=O.useState(()=>s&&n?n(e).matches:o?o(e).matches:t);return Mt(()=>{if(!n)return;const a=n(e),c=()=>{l(a.matches)};return c(),a.addEventListener("change",c),()=>{a.removeEventListener("change",c)}},[e,n]),i}const Qb={...O}.useSyncExternalStore;function ZO(e,t,n,o,s){const i=O.useCallback(()=>t,[t]),l=O.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,s,n]),[a,c]=O.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[i,n,e]);return Qb(c,a,l)}function Jb(e={}){const{themeId:t}=e;return function(o,s={}){let i=Bb();i&&t&&(i=i[t]||i);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:c=l?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=Xb({name:"MuiUseMediaQuery",props:s,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
20
+ `));let p=typeof o=="function"?o(i):o;p=p.replace(/^@media( ?)/m,""),p.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(`
21
+ `));const m=(Qb!==void 0?ZO:JO)(p,a,c,u,d);return process.env.NODE_ENV!=="production"&&O.useDebugValue({query:p,match:m}),m}}Jb();function eE(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function jd(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),eE(e,t,n)}function tE(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(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function yr(e){if(e.type)return e;if(e.charAt(0)==="#")return yr(tE(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
22
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:rr(9,e));let o=e.substring(t+1,e.length-1),s;if(n==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
23
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:rr(10,s))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:s}}const nE=e=>{const t=yr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Yo=(e,t)=>{try{return nE(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ia(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,i)=>i<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Zb(e){e=yr(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,i=o*Math.min(s,1-s),l=(u,d=(u+n/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),ia({type:a,values:c})}function Ad(e){e=yr(e);let t=e.type==="hsl"||e.type==="hsla"?yr(Zb(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 ev(e,t){const n=Ad(e),o=Ad(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function rn(e,t){return e=yr(e),t=jd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ia(e)}function Ar(e,t,n){try{return rn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function aa(e,t){if(e=yr(e),t=jd(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 ia(e)}function vt(e,t,n){try{return aa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function la(e,t){if(e=yr(e),t=jd(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 ia(e)}function St(e,t,n){try{return la(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function rE(e,t=.15){return Ad(e)>.5?aa(e,t):la(e,t)}function ca(e,t,n){try{return rE(e,t)}catch{return e}}const oE="exact-prop: ​";function tv(e){return process.env.NODE_ENV==="production"?e:{...e,[oE]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const sE=O.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const on=()=>O.useContext(sE)??!1,iE=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function aE(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?Ho(s.defaultProps,o,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?Ho(s,o,t.components.mergeClassNameAndStyle):o}function lE({props:e,name:t}){const n=O.useContext(iE);return aE({props:e,name:t,theme:{components:n}})}const nv={theme:void 0};function cE(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(nv.theme=s.theme,i=Hb(e(nv)),t=i,n=s.theme),i}}function uE(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.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}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const rv=(e,t,n,o=[])=>{let s=e;t.forEach((i,l)=>{l===t.length-1?Array.isArray(s)?s[Number(i)]=n:s&&typeof s=="object"&&(s[i]=n):s&&typeof s=="object"&&(s[i]||(s[i]=o.includes(i)?[]:{}),s=s[i])})},dE=(e,t,n)=>{function o(s,i=[],l=[]){Object.entries(s).forEach(([a,c])=>{(!n||n&&!n([...i,a]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,a],Array.isArray(c)?[...l,a]:l):t([...i,a],c,l))})}o(e)},fE=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Fd(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},i={},l={};return dE(e,(a,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(a,c))){const d=`--${n?`${n}-`:""}${a.join("-")}`,p=fE(a,c);Object.assign(s,{[d]:p}),rv(i,a,`var(${d})`,u),rv(l,a,`var(${d}, ${p})`,u)}},a=>a[0]==="vars"),{css:s,vars:i,varsWithDefaults:l}}function pE(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:s,enableContrastVars:i}=t,{colorSchemes:l={},components:a,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=Fd(u,t);let m=h;const b={},{[c]:f,...g}=l;if(Object.entries(g||{}).forEach(([w,x])=>{const{vars:P,css:T,varsWithDefaults:I}=Fd(x,t);m=Wt(m,I),b[w]={css:T,vars:P}}),f){const{css:w,vars:x,varsWithDefaults:P}=Fd(f,t);m=Wt(m,P),b[c]={css:w,vars:x}}function v(w,x){let P=s;if(s==="class"&&(P=".%s"),s==="data"&&(P="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(P=`[${s}="%s"]`),w){if(P==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${l[w]?.palette?.mode||w})`]:{":root":x}};if(P)return e.defaultColorScheme===w?`:root, ${P.replace("%s",String(w))}`:P.replace("%s",String(w))}return":root"}return{vars:m,generateThemeVars:()=>{let w={...d};return Object.entries(b).forEach(([,{vars:x}])=>{w=Wt(w,x)}),w},generateStyleSheets:()=>{const w=[],x=e.defaultColorScheme||"light";function P($,M){Object.keys(M).length&&w.push(typeof $=="string"?{[$]:{...M}}:$)}P(n(void 0,{...p}),p);const{[x]:T,...I}=b;if(T){const{css:$}=T,M=l[x]?.palette?.mode,k=!o&&M?{colorScheme:M,...$}:{...$};P(n(x,{...k}),k)}return Object.entries(I).forEach(([$,{css:M}])=>{const k=l[$]?.palette?.mode,C=!o&&k?{colorScheme:k,...M}:{...M};P(n($,{...C}),C)}),i&&w.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)"}}),w}}}function hE(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@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 Ko(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Go={black:"#000",white:"#fff"},mE={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"},oo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},so={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},io={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ao={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},lo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function ov(){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:Go.white,default:Go.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 sv=ov();function iv(){return{text:{primary:Go.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:Go.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 Vd=iv();function av(e,t,n,o){const s=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=la(e.main,s):t==="dark"&&(e.dark=aa(e.main,i)))}function lv(e,t,n,o,s){const i=s.light||s,l=s.dark||s*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function yE(e="light"){return e==="dark"?{main:io[200],light:io[50],dark:io[400]}:{main:io[700],light:io[400],dark:io[800]}}function gE(e="light"){return e==="dark"?{main:oo[200],light:oo[50],dark:oo[400]}:{main:oo[500],light:oo[300],dark:oo[700]}}function bE(e="light"){return e==="dark"?{main:so[500],light:so[300],dark:so[700]}:{main:so[700],light:so[400],dark:so[800]}}function vE(e="light"){return e==="dark"?{main:ao[400],light:ao[300],dark:ao[700]}:{main:ao[700],light:ao[500],dark:ao[900]}}function SE(e="light"){return e==="dark"?{main:lo[400],light:lo[300],dark:lo[700]}:{main:lo[800],light:lo[500],dark:lo[900]}}function xE(e="light"){return e==="dark"?{main:Xo[400],light:Xo[300],dark:Xo[700]}:{main:"#ed6c02",light:Xo[500],dark:Xo[900]}}function wE(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ld(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:s,...i}=e,l=e.primary||yE(t),a=e.secondary||gE(t),c=e.error||bE(t),u=e.info||vE(t),d=e.success||SE(t),p=e.warning||xE(t);function h(g){if(s)return wE(g);const v=ev(g,Vd.text.primary)>=n?Vd.text.primary:sv.text.primary;if(process.env.NODE_ENV!=="production"){const y=ev(g,v);y<3&&console.error([`MUI: The contrast ratio of ${y}:1 for ${v} on ${g}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
24
+ `))}return v}const m=({color:g,name:v,mainShade:y=500,lightShade:S=300,darkShade:w=700})=>{if(g={...g},!g.main&&g[y]&&(g.main=g[y]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
25
+ The color object needs to have a \`main\` property or a \`${y}\` property.`:rr(11,v?` (${v})`:"",y));if(typeof g.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
26
+ \`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
25
27
 
26
28
  Did you intend to use one of the following approaches?
27
29
 
@@ -33,40 +35,40 @@ const theme1 = createTheme({ palette: {
33
35
 
34
36
  const theme2 = createTheme({ palette: {
35
37
  primary: { main: green[500] },
36
- } });`:hr(12,v?` (${v})`:"",JSON.stringify(b.main)));return i?(ky(i,b,"light",_,n),ky(i,b,"dark",S,n)):(Ry(b,"light",_,n),Ry(b,"dark",S,n)),b.contrastText||(b.contrastText=h(b.main)),b};let g;return t==="light"?g=Ty():t==="dark"&&(g=$y()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),kt({common:{...Jn},mode:t,primary:y({color:l,name:"primary"}),secondary:y({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:m,name:"warning"}),info:y({color:u,name:"info"}),success:y({color:d,name:"success"}),grey:US,contrastThreshold:r,getContrastText:h,augmentColor:y,tonalOffset:n,...g},a)}function ZS(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${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 QS(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function eE(e){return Math.round(e*1e5)/1e5}const Iy={textTransform:"uppercase"},jy='"Roboto", "Helvetica", "Arial", sans-serif';function tE(e,t){const{fontFamily:r=jy,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...m}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=n/14,y=d||(b=>`${b/c*h}rem`),g=(b,v,p,_,S)=>({fontFamily:r,fontWeight:b,fontSize:y(v),lineHeight:p,...r===jy?{letterSpacing:`${eE(_/v)}em`}:{},...S,...u}),f={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(l,14,1.75,.4,Iy),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Iy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kt({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s,...f},m,{clone:!1})}const rE=.2,nE=.14,oE=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${nE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oE})`].join(",")}const iE=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],aE={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)"},sE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ny(e){return`${Math.round(e)}ms`}function lE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function cE(e){const t={...aE,...e.easing},r={...sE,...e.duration};return{getAutoHeightDuration:lE,create:(i=["all"],a={})=>{const{duration:l=r.standard,easing:s=t.easeInOut,delay:c=0,...u}=a;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",m=h=>!Number.isNaN(parseFloat(h));!d(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(l)&&!d(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),d(s)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
37
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof l=="string"?l:Ny(l)} ${s} ${typeof c=="string"?c:Ny(c)}`).join(",")},...e,easing:t,duration:r}}const uE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function dE(e){return mr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ay(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[l,s]=i[a];!dE(s)||l.startsWith("unstable_")?delete n[l]:mr(s)&&(n[l]={...s},r(n[l]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
38
+ } });`:rr(12,v?` (${v})`:"",JSON.stringify(g.main)));return s?(lv(s,g,"light",S,o),lv(s,g,"dark",w,o)):(av(g,"light",S,o),av(g,"dark",w,o)),g.contrastText||(g.contrastText=h(g.main)),g};let b;return t==="light"?b=ov():t==="dark"&&(b=iv()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Wt({common:{...Go},mode:t,primary:m({color:l,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:d,name:"success"}),grey:mE,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:o,...b},i)}function CE(e){const t={};return Object.entries(e).forEach(o=>{const[s,i]=o;typeof i=="object"&&(t[s]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function PE(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function TE(e){return Math.round(e*1e5)/1e5}const cv={textTransform:"uppercase"},uv='"Roboto", "Helvetica", "Arial", sans-serif';function OE(e,t){const{fontFamily:n=uv,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=o/14,m=d||(g=>`${g/c*h}rem`),b=(g,v,y,S,w)=>({fontFamily:n,fontWeight:g,fontSize:m(v),lineHeight:y,...n===uv?{letterSpacing:`${TE(S/v)}em`}:{},...w,...u}),f={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(l,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(l,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(l,14,1.75,.4,cv),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,cv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wt({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a,...f},p,{clone:!1})}const EE=.2,kE=.14,_E=.12;function Dt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${EE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${kE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${_E})`].join(",")}const RE=["none",Dt(0,2,1,-1,0,1,1,0,0,1,3,0),Dt(0,3,1,-2,0,2,2,0,0,1,5,0),Dt(0,3,3,-2,0,3,4,0,0,1,8,0),Dt(0,2,4,-1,0,4,5,0,0,1,10,0),Dt(0,3,5,-1,0,5,8,0,0,1,14,0),Dt(0,3,5,-1,0,6,10,0,0,1,18,0),Dt(0,4,5,-2,0,7,10,1,0,2,16,1),Dt(0,5,5,-3,0,8,10,1,0,3,14,2),Dt(0,5,6,-3,0,9,12,1,0,3,16,2),Dt(0,6,6,-3,0,10,14,1,0,4,18,3),Dt(0,6,7,-4,0,11,15,1,0,4,20,3),Dt(0,7,8,-4,0,12,17,2,0,5,22,4),Dt(0,7,8,-4,0,13,19,2,0,5,24,4),Dt(0,7,9,-4,0,14,21,2,0,5,26,4),Dt(0,8,9,-5,0,15,22,2,0,6,28,5),Dt(0,8,10,-5,0,16,24,2,0,6,30,5),Dt(0,8,11,-5,0,17,26,2,0,6,32,5),Dt(0,9,11,-5,0,18,28,2,0,7,34,6),Dt(0,9,12,-6,0,19,29,2,0,7,36,6),Dt(0,10,13,-6,0,20,31,3,0,8,38,7),Dt(0,10,13,-6,0,21,33,3,0,8,40,7),Dt(0,10,14,-6,0,22,35,3,0,8,42,7),Dt(0,11,14,-7,0,23,36,3,0,9,44,8),Dt(0,11,15,-7,0,24,38,3,0,9,46,8)],IE={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)"},$E={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dv(e){return`${Math.round(e)}ms`}function DE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ME(e){const t={...IE,...e.easing},n={...$E,...e.duration};return{getAutoHeightDuration:DE,create:(s=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",p=h=>!Number.isNaN(parseFloat(h));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(l)&&!d(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
39
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof l=="string"?l:dv(l)} ${a} ${typeof c=="string"?c:dv(c)}`).join(",")},...e,easing:t,duration:n}}const NE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function jE(e){return zn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function fv(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let i=0;i<s.length;i++){const[l,a]=s[i];!jE(a)||l.startsWith("unstable_")?delete o[l]:zn(a)&&(o[l]={...a},n(o[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
38
40
 
39
41
  const theme = ${JSON.stringify(t,null,2)};
40
42
 
41
43
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
42
44
  theme.transitions = createTransitions(theme.transitions || {});
43
45
 
44
- export default theme;`}function My(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const fE=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function pE(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Ki(t,fE(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${My(r)})`:Yi(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${My(r)})`:Gi(t,r)}})}function ru(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:l={},typography:s={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":hr(20));const m=tu({...a,colorSpace:u}),h=Kc(e);let y=kt(h,{mixins:QS(h.breakpoints,n),palette:m,shadows:iE.slice(),typography:tE(m,s),transitions:cE(l),zIndex:{...uE}});if(y=kt(y,d),y=t.reduce((g,f)=>kt(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(b,v)=>{let p;for(p in b){const _=b[p];if(g.includes(p)&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const S=Fe("",p);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${p}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
45
- `))}b[p]={}}}};Object.keys(y.components).forEach(b=>{const v=y.components[b].styleOverrides;v&&b.startsWith("Mui")&&f(v,b)})}return y.unstable_sxConfig={...Gn,...d?.unstable_sxConfig},y.unstable_sx=function(f){return wn({sx:f,theme:this})},y.toRuntimeSource=Ay,pE(y),y}function nu(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 hE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=nu(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Dy(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function qy(e){return e==="dark"?hE:[]}function mE(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:i,...a}=e,l=tu({...t,colorSpace:i});return{palette:l,opacity:{...Dy(l.mode),...r},overlays:n||qy(l.mode),...a}}function yE(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 gE=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],vE=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return gE(e.cssVarPrefix).forEach(s=>{l[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:a?{[a.replace("%s",t)]:l,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...l}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function bE(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function oe(e,t,r){!e[t]&&r&&(e[t]=r)}function Zn(e){return typeof e!="string"||!e.startsWith("hsl")?e:wy(e)}function Rr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Yn(Zn(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
46
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function _E(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gr=e=>{try{return e()}catch{}},wE=(e="mui")=>LS(e);function ou(e,t,r,n,i){if(!r)return;r=r===!0?{}:r;const a=i==="dark"?"dark":"light";if(!n){t[i]=mE({...r,palette:{mode:a,...r?.palette},colorSpace:e});return}const{palette:l,...s}=ru({...n,palette:{mode:a,...r?.palette},colorSpace:e});return t[i]={...r,palette:l,opacity:{...Dy(a),...r?.opacity},overlays:r?.overlays||qy(a)},s}function SE(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",nativeColor:l=!1,shouldSkipGeneratingVar:s=yE,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...d}=e,m=Object.keys(r)[0],h=n||(r.light&&m!=="light"?"light":m),y=wE(a),{[h]:g,light:f,dark:b,...v}=r,p={...v};let _=g;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:hr(21,h));let S;l&&(S="oklch");const w=ou(S,p,_,d,h);f&&!p.light&&ou(S,p,f,void 0,"light"),b&&!p.dark&&ou(S,p,b,void 0,"dark");let E={defaultColorScheme:h,...w,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:y,colorSchemes:p,font:{...ZS(w.typography),...w.font},spacing:_E(d.spacing)};Object.keys(E.colorSchemes).forEach(R=>{const O=E.colorSchemes[R].palette,q=U=>{const W=U.split("-"),le=W[1],ce=W[2];return y(U,O[le][ce])};O.mode==="light"&&(oe(O.common,"background","#fff"),oe(O.common,"onBackground","#000")),O.mode==="dark"&&(oe(O.common,"background","#000"),oe(O.common,"onBackground","#fff"));function N(U,W,le){if(S){let ce;return U===nn&&(ce=`transparent ${((1-le)*100).toFixed(0)}%`),U===rt&&(ce=`#000 ${(le*100).toFixed(0)}%`),U===nt&&(ce=`#fff ${(le*100).toFixed(0)}%`),`color-mix(in ${S}, ${W}, ${ce})`}return U(W,le)}if(bE(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){oe(O.Alert,"errorColor",N(rt,O.error.light,.6)),oe(O.Alert,"infoColor",N(rt,O.info.light,.6)),oe(O.Alert,"successColor",N(rt,O.success.light,.6)),oe(O.Alert,"warningColor",N(rt,O.warning.light,.6)),oe(O.Alert,"errorFilledBg",q("palette-error-main")),oe(O.Alert,"infoFilledBg",q("palette-info-main")),oe(O.Alert,"successFilledBg",q("palette-success-main")),oe(O.Alert,"warningFilledBg",q("palette-warning-main")),oe(O.Alert,"errorFilledColor",gr(()=>O.getContrastText(O.error.main))),oe(O.Alert,"infoFilledColor",gr(()=>O.getContrastText(O.info.main))),oe(O.Alert,"successFilledColor",gr(()=>O.getContrastText(O.success.main))),oe(O.Alert,"warningFilledColor",gr(()=>O.getContrastText(O.warning.main))),oe(O.Alert,"errorStandardBg",N(nt,O.error.light,.9)),oe(O.Alert,"infoStandardBg",N(nt,O.info.light,.9)),oe(O.Alert,"successStandardBg",N(nt,O.success.light,.9)),oe(O.Alert,"warningStandardBg",N(nt,O.warning.light,.9)),oe(O.Alert,"errorIconColor",q("palette-error-main")),oe(O.Alert,"infoIconColor",q("palette-info-main")),oe(O.Alert,"successIconColor",q("palette-success-main")),oe(O.Alert,"warningIconColor",q("palette-warning-main")),oe(O.AppBar,"defaultBg",q("palette-grey-100")),oe(O.Avatar,"defaultBg",q("palette-grey-400")),oe(O.Button,"inheritContainedBg",q("palette-grey-300")),oe(O.Button,"inheritContainedHoverBg",q("palette-grey-A100")),oe(O.Chip,"defaultBorder",q("palette-grey-400")),oe(O.Chip,"defaultAvatarColor",q("palette-grey-700")),oe(O.Chip,"defaultIconColor",q("palette-grey-700")),oe(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(O.LinearProgress,"primaryBg",N(nt,O.primary.main,.62)),oe(O.LinearProgress,"secondaryBg",N(nt,O.secondary.main,.62)),oe(O.LinearProgress,"errorBg",N(nt,O.error.main,.62)),oe(O.LinearProgress,"infoBg",N(nt,O.info.main,.62)),oe(O.LinearProgress,"successBg",N(nt,O.success.main,.62)),oe(O.LinearProgress,"warningBg",N(nt,O.warning.main,.62)),oe(O.Skeleton,"bg",S?N(nn,O.text.primary,.11):`rgba(${q("palette-text-primaryChannel")} / 0.11)`),oe(O.Slider,"primaryTrack",N(nt,O.primary.main,.62)),oe(O.Slider,"secondaryTrack",N(nt,O.secondary.main,.62)),oe(O.Slider,"errorTrack",N(nt,O.error.main,.62)),oe(O.Slider,"infoTrack",N(nt,O.info.main,.62)),oe(O.Slider,"successTrack",N(nt,O.success.main,.62)),oe(O.Slider,"warningTrack",N(nt,O.warning.main,.62));const U=S?N(rt,O.background.default,.6825):Ji(O.background.default,.8);oe(O.SnackbarContent,"bg",U),oe(O.SnackbarContent,"color",gr(()=>S?eu.text.primary:O.getContrastText(U))),oe(O.SpeedDialAction,"fabHoverBg",Ji(O.background.paper,.15)),oe(O.StepConnector,"border",q("palette-grey-400")),oe(O.StepContent,"border",q("palette-grey-400")),oe(O.Switch,"defaultColor",q("palette-common-white")),oe(O.Switch,"defaultDisabledColor",q("palette-grey-100")),oe(O.Switch,"primaryDisabledColor",N(nt,O.primary.main,.62)),oe(O.Switch,"secondaryDisabledColor",N(nt,O.secondary.main,.62)),oe(O.Switch,"errorDisabledColor",N(nt,O.error.main,.62)),oe(O.Switch,"infoDisabledColor",N(nt,O.info.main,.62)),oe(O.Switch,"successDisabledColor",N(nt,O.success.main,.62)),oe(O.Switch,"warningDisabledColor",N(nt,O.warning.main,.62)),oe(O.TableCell,"border",N(nt,N(nn,O.divider,1),.88)),oe(O.Tooltip,"bg",N(nn,O.grey[700],.92))}if(O.mode==="dark"){oe(O.Alert,"errorColor",N(nt,O.error.light,.6)),oe(O.Alert,"infoColor",N(nt,O.info.light,.6)),oe(O.Alert,"successColor",N(nt,O.success.light,.6)),oe(O.Alert,"warningColor",N(nt,O.warning.light,.6)),oe(O.Alert,"errorFilledBg",q("palette-error-dark")),oe(O.Alert,"infoFilledBg",q("palette-info-dark")),oe(O.Alert,"successFilledBg",q("palette-success-dark")),oe(O.Alert,"warningFilledBg",q("palette-warning-dark")),oe(O.Alert,"errorFilledColor",gr(()=>O.getContrastText(O.error.dark))),oe(O.Alert,"infoFilledColor",gr(()=>O.getContrastText(O.info.dark))),oe(O.Alert,"successFilledColor",gr(()=>O.getContrastText(O.success.dark))),oe(O.Alert,"warningFilledColor",gr(()=>O.getContrastText(O.warning.dark))),oe(O.Alert,"errorStandardBg",N(rt,O.error.light,.9)),oe(O.Alert,"infoStandardBg",N(rt,O.info.light,.9)),oe(O.Alert,"successStandardBg",N(rt,O.success.light,.9)),oe(O.Alert,"warningStandardBg",N(rt,O.warning.light,.9)),oe(O.Alert,"errorIconColor",q("palette-error-main")),oe(O.Alert,"infoIconColor",q("palette-info-main")),oe(O.Alert,"successIconColor",q("palette-success-main")),oe(O.Alert,"warningIconColor",q("palette-warning-main")),oe(O.AppBar,"defaultBg",q("palette-grey-900")),oe(O.AppBar,"darkBg",q("palette-background-paper")),oe(O.AppBar,"darkColor",q("palette-text-primary")),oe(O.Avatar,"defaultBg",q("palette-grey-600")),oe(O.Button,"inheritContainedBg",q("palette-grey-800")),oe(O.Button,"inheritContainedHoverBg",q("palette-grey-700")),oe(O.Chip,"defaultBorder",q("palette-grey-700")),oe(O.Chip,"defaultAvatarColor",q("palette-grey-300")),oe(O.Chip,"defaultIconColor",q("palette-grey-300")),oe(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(O.LinearProgress,"primaryBg",N(rt,O.primary.main,.5)),oe(O.LinearProgress,"secondaryBg",N(rt,O.secondary.main,.5)),oe(O.LinearProgress,"errorBg",N(rt,O.error.main,.5)),oe(O.LinearProgress,"infoBg",N(rt,O.info.main,.5)),oe(O.LinearProgress,"successBg",N(rt,O.success.main,.5)),oe(O.LinearProgress,"warningBg",N(rt,O.warning.main,.5)),oe(O.Skeleton,"bg",S?N(nn,O.text.primary,.13):`rgba(${q("palette-text-primaryChannel")} / 0.13)`),oe(O.Slider,"primaryTrack",N(rt,O.primary.main,.5)),oe(O.Slider,"secondaryTrack",N(rt,O.secondary.main,.5)),oe(O.Slider,"errorTrack",N(rt,O.error.main,.5)),oe(O.Slider,"infoTrack",N(rt,O.info.main,.5)),oe(O.Slider,"successTrack",N(rt,O.success.main,.5)),oe(O.Slider,"warningTrack",N(rt,O.warning.main,.5));const U=S?N(nt,O.background.default,.985):Ji(O.background.default,.98);oe(O.SnackbarContent,"bg",U),oe(O.SnackbarContent,"color",gr(()=>S?Py.text.primary:O.getContrastText(U))),oe(O.SpeedDialAction,"fabHoverBg",Ji(O.background.paper,.15)),oe(O.StepConnector,"border",q("palette-grey-600")),oe(O.StepContent,"border",q("palette-grey-600")),oe(O.Switch,"defaultColor",q("palette-grey-300")),oe(O.Switch,"defaultDisabledColor",q("palette-grey-600")),oe(O.Switch,"primaryDisabledColor",N(rt,O.primary.main,.55)),oe(O.Switch,"secondaryDisabledColor",N(rt,O.secondary.main,.55)),oe(O.Switch,"errorDisabledColor",N(rt,O.error.main,.55)),oe(O.Switch,"infoDisabledColor",N(rt,O.info.main,.55)),oe(O.Switch,"successDisabledColor",N(rt,O.success.main,.55)),oe(O.Switch,"warningDisabledColor",N(rt,O.warning.main,.55)),oe(O.TableCell,"border",N(rt,N(nn,O.divider,1),.68)),oe(O.Tooltip,"bg",N(nn,O.grey[700],.92))}Rr(O.background,"default"),Rr(O.background,"paper"),Rr(O.common,"background"),Rr(O.common,"onBackground"),Rr(O,"divider"),Object.keys(O).forEach(U=>{const W=O[U];U!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&oe(O[U],"mainChannel",Yn(Zn(W.main))),W.light&&oe(O[U],"lightChannel",Yn(Zn(W.light))),W.dark&&oe(O[U],"darkChannel",Yn(Zn(W.dark))),W.contrastText&&oe(O[U],"contrastTextChannel",Yn(Zn(W.contrastText))),U==="text"&&(Rr(O[U],"primary"),Rr(O[U],"secondary")),U==="action"&&(W.active&&Rr(O[U],"active"),W.selected&&Rr(O[U],"selected")))})}),E=t.reduce((R,O)=>kt(R,O),E);const x={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:vE(E),enableContrastVars:l},{vars:P,generateThemeVars:k,generateStyleSheets:M}=VS(E,x);return E.vars=P,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([R,O])=>{E[R]=O}),E.generateThemeVars=k,E.generateStyleSheets=M,E.generateSpacing=function(){return dy(d.spacing,Uc(this))},E.getColorSchemeSelector=BS(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...Gn,...d?.unstable_sxConfig},E.unstable_sx=function(O){return wn({sx:O,theme:this})},E.toRuntimeSource=Ay,E}function Ly(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:tu({...r===!0?{}:r.palette,mode:t})})}function EE(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...l}=e,s=a||"light",c=i?.[s],u={...i,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return ru(e,...t);let d=r;"palette"in e||u[s]&&(u[s]!==!0?d=u[s].palette:s==="dark"&&(d={mode:"dark"}));const m=ru({...e,palette:d},...t);return m.defaultColorScheme=s,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Ly(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Ly(m,"light",u.light)),m}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),SE({...l,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const iu=EE(),au="$$material";function su(){const e=fy(iu);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[au]||e}function Fy(e){return F.jsx(py,{...e,defaultTheme:iu,themeId:au})}process.env.NODE_ENV!=="production"&&(Fy.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function zy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const It=e=>zy(e)&&e!=="classes",me=by({themeId:au,defaultTheme:iu,rootShouldForwardProp:It});function OE(e){return function(r){return F.jsx(Fy,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function xE(){return tS}process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function We(e){return DS(e)}function cr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function CE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function TE(e,t,r,n,i){const a=e[t],l=i||t;if(a==null||typeof window>"u")return null;let s;return typeof a=="function"&&!CE(a)&&(s="Did you accidentally provide a plain function component instead?"),a===j.Fragment&&(s="Did you accidentally provide a React.Fragment instead?"),s!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const lu=cr(o.elementType,TE);function Xi(e){return typeof e=="string"}function Vy(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function St(...e){const t=j.useRef(void 0),r=j.useCallback(n=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const l=a,s=l(n);return typeof s=="function"?s:()=>{l(null)}}return a.current=n,()=>{a.current=null}});return()=>{i.forEach(a=>a?.())}},e);return j.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function ur(e){const t=j.useRef(e);return yr(()=>{t.current=e}),j.useRef((...r)=>(0,t.current)(...r)).current}function Kt(e){return e&&e.ownerDocument||document}function kr(e){return Kt(e).defaultView||window}function Zi(e){return parseInt(e,10)||0}const PE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $E(e){for(const t in e)return!1;return!0}function By(e){return $E(e)||e.outerHeightStyle===0&&!e.overflowing}const Uy=j.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:l,value:s,...c}=t,{current:u}=j.useRef(s!=null),d=j.useRef(null),m=St(r,d),h=j.useRef(null),y=j.useRef(null),g=j.useCallback(()=>{const _=d.current,S=y.current;if(!_||!S)return;const E=kr(_).getComputedStyle(_);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=E.width,S.value=_.value||t.placeholder||"x",S.value.slice(-1)===`
47
- `&&(S.value+=" ");const x=E.boxSizing,P=Zi(E.paddingBottom)+Zi(E.paddingTop),k=Zi(E.borderBottomWidth)+Zi(E.borderTopWidth),M=S.scrollHeight;S.value="x";const R=S.scrollHeight;let O=M;a&&(O=Math.max(Number(a)*R,O)),i&&(O=Math.min(Number(i)*R,O)),O=Math.max(O,R);const q=O+(x==="border-box"?P+k:0),N=Math.abs(O-M)<=1;return{outerHeightStyle:q,overflowing:N}},[i,a,t.placeholder]),f=ur(()=>{const _=d.current,S=g();if(!_||!S||By(S))return!1;const w=S.outerHeightStyle;return h.current!=null&&h.current!==w}),b=j.useCallback(()=>{const _=d.current,S=g();if(!_||!S||By(S))return;const w=S.outerHeightStyle;h.current!==w&&(h.current=w,_.style.height=`${w}px`),_.style.overflow=S.overflowing?"hidden":""},[g]),v=j.useRef(-1);yr(()=>{const _=Vy(b),S=d?.current;if(!S)return;const w=kr(S);w.addEventListener("resize",_);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{f()&&(E.unobserve(S),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{E.observe(S)}))}),E.observe(S)),()=>{_.clear(),cancelAnimationFrame(v.current),w.removeEventListener("resize",_),E&&E.disconnect()}},[g,b,f]),yr(()=>{b()});const p=_=>{u||b();const S=_.target,w=S.value.length,E=S.value.endsWith(`
48
- `),x=S.selectionStart===w;E&&x&&S.setSelectionRange(w,w),n&&n(_)};return F.jsxs(j.Fragment,{children:[F.jsx("textarea",{value:s,onChange:p,ref:m,rows:a,style:l,...c}),F.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...PE.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Uy.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function Ur({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Qi=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qi.displayName="FormControlContext");function vr(){return j.useContext(Qi)}const ze=qS;function Wy(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ea(e,t=!1){return e&&(Wy(e.value)&&e.value!==""||t&&Wy(e.defaultValue)&&e.defaultValue!=="")}function RE(e){return e.startAdornment}function kE(e){return Fe("MuiInputBase",e)}const Gt=Le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Hy;const ta=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${pe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ra=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},IE=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:l,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:m,size:h,startAdornment:y,type:g}=e,f={root:["root",`color${pe(r)}`,n&&"disabled",i&&"error",c&&"fullWidth",l&&"focused",s&&"formControl",h&&h!=="medium"&&`size${pe(h)}`,d&&"multiline",y&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",m&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return Be(f,kE,t)},na=me("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ta})(ze(({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",[`&.${Gt.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:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),oa=me("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ra})(ze(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},i=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":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Gt.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Gt.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"}}]}})),Ky=OE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ia=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,color:c,components:u={},componentsProps:d={},defaultValue:m,disabled:h,disableInjectingGlobalStyles:y,endAdornment:g,error:f,fullWidth:b=!1,id:v,inputComponent:p="input",inputProps:_={},inputRef:S,margin:w,maxRows:E,minRows:x,multiline:P=!1,name:k,onBlur:M,onChange:R,onClick:O,onFocus:q,onKeyDown:N,onKeyUp:U,placeholder:W,readOnly:le,renderSuffix:ce,rows:ue,size:z,slotProps:C={},slots:V={},startAdornment:A,type:T="text",value:$,...D}=n,K=_.value!=null?_.value:$,{current:re}=j.useRef(K!=null),ie=j.useRef(),te=j.useCallback(Oe=>{process.env.NODE_ENV!=="production"&&Oe&&Oe.nodeName!=="INPUT"&&!Oe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
49
- `))},[]),L=St(ie,S,_.ref,te),[I,G]=j.useState(!1),X=vr();process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(X)return X.registerEffect()},[X]);const ne=Ur({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=X?X.focused:I,j.useEffect(()=>{!X&&h&&I&&(G(!1),M&&M())},[X,h,I,M]);const he=X&&X.onFilled,ve=X&&X.onEmpty,fe=j.useCallback(Oe=>{ea(Oe)?he&&he():ve&&ve()},[he,ve]);yr(()=>{re&&fe({value:K})},[K,fe,re]);const Te=Oe=>{q&&q(Oe),_.onFocus&&_.onFocus(Oe),X&&X.onFocus?X.onFocus(Oe):G(!0)},be=Oe=>{M&&M(Oe),_.onBlur&&_.onBlur(Oe),X&&X.onBlur?X.onBlur(Oe):G(!1)},Ee=(Oe,...He)=>{if(!re){const dt=Oe.target||ie.current;if(dt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":hr(1));fe({value:dt.value})}_.onChange&&_.onChange(Oe,...He),R&&R(Oe,...He)};j.useEffect(()=>{fe(ie.current)},[]);const ge=Oe=>{ie.current&&Oe.currentTarget===Oe.target&&ie.current.focus(),O&&O(Oe)};let $e=p,Ie=_;P&&$e==="input"&&(ue?(process.env.NODE_ENV!=="production"&&(x||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ie={type:void 0,minRows:ue,maxRows:ue,...Ie}):Ie={type:void 0,maxRows:E,minRows:x,...Ie},$e=Uy);const ot=Oe=>{fe(Oe.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};j.useEffect(()=>{X&&X.setAdornedStart(!!A)},[X,A]);const Qe={...n,color:ne.color||"primary",disabled:ne.disabled,endAdornment:g,error:ne.error,focused:ne.focused,formControl:X,fullWidth:b,hiddenLabel:ne.hiddenLabel,multiline:P,size:ne.size,startAdornment:A,type:T},_t=IE(Qe),et=V.root||u.Root||na,Tt=C.root||d.root||{},Je=V.input||u.Input||oa;return Ie={...Ie,...C.input??d.input},F.jsxs(j.Fragment,{children:[!y&&typeof Ky=="function"&&(Hy||(Hy=F.jsx(Ky,{}))),F.jsxs(et,{...Tt,ref:r,onClick:ge,...D,...!Xi(et)&&{ownerState:{...Qe,...Tt.ownerState}},className:xe(_t.root,Tt.className,s,le&&"MuiInputBase-readOnly"),children:[A,F.jsx(Qi.Provider,{value:null,children:F.jsx(Je,{"aria-invalid":ne.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:m,disabled:ne.disabled,id:v,onAnimationStart:ot,name:k,placeholder:W,readOnly:le,required:ne.required,rows:ue,value:K,onKeyDown:N,onKeyUp:U,type:T,...Ie,...!Xi(Je)&&{as:$e,ownerState:{...Qe,...Ie.ownerState}},ref:L,className:xe(_t.input,Ie.className,le&&"MuiInputBase-readOnly"),onBlur:be,onChange:Ee,onFocus:Te})}),g,ce?ce({...ne,startAdornment:A}):null]})]})});process.env.NODE_ENV!=="production"&&(ia.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:lu,inputProps:o.object,inputRef:zt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function jE(e){return typeof e.main=="string"}function NE(e,t=[]){if(!jE(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function $t(e=[]){return([,t])=>t&&NE(t,e)}function AE(e){return Fe("MuiInput",e)}const Wr={...Gt,...Le("MuiInput",["root","underline","input"])},ME=e=>{const{classes:t,disableUnderline:r}=e,i=Be({root:["root",!r&&"underline"],input:["input"]},AE,t);return{...t,...i}},DE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ta(e,t),!r.disableUnderline&&t.underline]}})(ze(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=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"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),qE=me(oa,{name:"MuiInput",slot:"Input",overridesResolver:ra})({}),aa=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:m={},type:h="text",...y}=n,g=ME(n),b={root:{ownerState:{disableUnderline:i}}},v=d??l?kt(d??l,b):b,p=m.root??a.Root??DE,_=m.input??a.Input??qE;return F.jsx(ia,{slots:{root:p,input:_},slotProps:v,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:h,...y,classes:g})});process.env.NODE_ENV!=="production"&&(aa.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:zt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),aa.muiName="Input";function LE(e){return Fe("MuiFilledInput",e)}const Yt={...Gt,...Le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function cu(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function FE(e){return Fe("MuiSvgIcon",e)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zE=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(r)}`]};return Be(i,FE,n)},VE=me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${pe(r.color)}`],t[`fontSize${pe(r.fontSize)}`]]}})(ze(({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}}]}))),sa=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:h="0 0 24 24",...y}=n,g=j.isValidElement(i)&&i.type==="svg",f={...n,color:l,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},b={};d||(b.viewBox=h);const v=zE(f);return F.jsxs(VE,{as:s,className:xe(v.root,a),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...b,...y,...g&&i.props,ownerState:f,children:[g?i.props.children:i,m?F.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(sa.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),sa.muiName="SvgIcon";function Ct(e,t){function r(n,i){return F.jsx(sa,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=sa.muiName,j.memo(j.forwardRef(r))}function uu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function BE(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=i||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function on(e){const{controlled:t,default:r,name:n,state:i="value"}=e,{current:a}=j.useRef(t!==void 0),[l,s]=j.useState(r),c=a?t:l;if(process.env.NODE_ENV!=="production"){j.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${i} state of ${n} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
50
- `))},[i,n,t]);const{current:d}=j.useRef(r);j.useEffect(()=>{!a&&JSON.stringify(r)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
51
- `))},[JSON.stringify(r)])}const u=j.useCallback(d=>{a||s(d)},[]);return[c,u]}function UE(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Gy(e,t){if(!e)return t;function r(l,s){const c={};return Object.keys(s).forEach(u=>{UE(u,s[u])&&typeof l[u]=="function"&&(c[u]=(...d)=>{l[u](...d),s[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return l=>{const s=typeof t=="function"?t(l):t,c=typeof e=="function"?e({...l,...s}):e,u=xe(l?.className,s?.className,c?.className),d=r(c,s);return{...s,...c,...d,...!!u&&{className:u},...s?.style&&c?.style&&{style:{...s.style,...c.style}},...s?.sx&&c?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,i=r(e,n),a=xe(n?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const WE=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:i,size:a,hiddenLabel:l,multiline:s}=e,c={root:["root",!r&&"underline",n&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${pe(a)}`,l&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Be(c,LE,t);return{...t,...u}},HE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ta(e,t),!r.disableUnderline&&t.underline]}})(ze(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=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:n,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${Yt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Yt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.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"},[`&.${Yt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yt.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):r}`,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(.${Yt.disabled}, .${Yt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:s})=>l.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),KE=me(oa,{name:"MuiFilledInput",slot:"Input",overridesResolver:ra})(ze(({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}}]}))),la=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:m,slots:h={},type:y="text",...g}=n,f={...n,disableUnderline:i,fullWidth:s,inputComponent:u,multiline:d,type:y},b=WE(n),v={root:{ownerState:f},input:{ownerState:f}},p=m??l?kt(v,m??l):v,_=h.root??a.Root??HE,S=h.input??a.Input??KE;return F.jsx(ia,{slots:{root:_,input:S},slotProps:p,fullWidth:s,inputComponent:u,multiline:d,ref:r,type:y,...g,classes:b})});process.env.NODE_ENV!=="production"&&(la.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:zt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),la.muiName="Input";var Yy;const GE=me("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:It})({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%"}),YE=me("legend",{name:"MuiNotchedOutlined",shouldForwardProp:It})(ze(({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 Jy(e){const{children:t,classes:r,className:n,label:i,notched:a,...l}=e,s=i!=null&&i!=="",c={...e,notched:a,withLabel:s};return F.jsx(GE,{"aria-hidden":!0,className:n,ownerState:c,...l,children:F.jsx(YE,{ownerState:c,children:s?F.jsx("span",{children:i}):Yy||(Yy=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Jy.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});function JE(e){return Fe("MuiOutlinedInput",e)}const er={...Gt,...Le("MuiOutlinedInput",["root","notchedOutline","input"])};function Xy(e,t,r){return e===void 0||Xi(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Zy(e,t,r){return typeof e=="function"?e(t,r):e}function Qy(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function eg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function tg(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const y=xe(r?.className,a,i?.className,n?.className),g={...r?.style,...i?.style,...n?.style},f={...r,...i,...n};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const l=Qy({...i,...n}),s=eg(n),c=eg(i),u=t(l),d=xe(u?.className,r?.className,a,i?.className,n?.className),m={...u?.style,...r?.style,...i?.style,...n?.style},h={...u,...r,...c,...s};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function ut(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:s=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...h}=a,y=d[e]||n,g=Zy(m[e],i),{props:{component:f,...b},internalRef:v}=tg({className:r,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),p=St(v,g?.ref,t.ref),_=e==="root"?f||u:f,S=Xy(y,{...e==="root"&&!u&&!d[e]&&l,...e!=="root"&&!d[e]&&l,...b,..._&&!s&&{as:_},..._&&s&&{component:_},ref:p},i);return[y,S]}const XE=e=>{const{classes:t}=e,n=Be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},JE,t);return{...t,...n}},ZE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ta})(ze(({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 .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${er.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${er.focused} .${er.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($t()).map(([r])=>({props:{color:r},style:{[`&.${er.focused} .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${er.error} .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${er.disabled} .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),QE=me(Jy,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ze(({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}})),eO=me(oa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ra})(ze(({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}}]}))),ca=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:s,multiline:c=!1,notched:u,slots:d={},slotProps:m={},type:h="text",...y}=n,g=XE(n),f=vr(),b=Ur({props:n,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...n,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:f,fullWidth:a,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:h},p=d.root??i.Root??ZE,_=d.input??i.Input??eO,[S,w]=ut("notchedOutline",{elementType:QE,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:m},additionalProps:{label:s!=null&&s!==""&&b.required?F.jsxs(j.Fragment,{children:[s," ","*"]}):s}});return F.jsx(ia,{slots:{root:p,input:_},slotProps:m,renderSuffix:E=>F.jsx(S,{...w,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:a,inputComponent:l,multiline:c,ref:r,type:h,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(ca.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:zt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),ca.muiName="Input";function tO(e){return Fe("MuiFormLabel",e)}const Qn=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rO=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:l,required:s}=e,c={root:["root",`color${pe(r)}`,i&&"disabled",a&&"error",l&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Be(c,tO,t)},nO=me("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(ze(({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($t()).map(([t])=>({props:{color:t},style:{[`&.${Qn.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Qn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),oO=me("span",{name:"MuiFormLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${Qn.error}`]:{color:(e.vars||e).palette.error.main}}))),Hr=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:s="label",disabled:c,error:u,filled:d,focused:m,required:h,...y}=n,g=vr(),f=Ur({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...n,color:f.color||"primary",component:s,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},v=rO(b);return F.jsxs(nO,{as:s,ownerState:b,className:xe(v.root,a),ref:r,...y,children:[i,f.required&&F.jsxs(oO,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Hr.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function iO(e){return Fe("MuiInputLabel",e)}Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const aO=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:l,required:s}=e,c={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="medium"&&`size${pe(n)}`,l],asterisk:[s&&"asterisk"]},u=Be(c,iO,t);return{...t,...u}},sO=me(Hr,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qn.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(ze(({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:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="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:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ua=j.forwardRef(function(t,r){const n=We({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:s,className:c,...u}=n,d=vr();let m=l;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const h=Ur({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),y={...n,disableAnimation:i,formControl:d,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=aO(y);return F.jsx(sO,{"data-shrink":m,ref:r,className:xe(g.root,c),...u,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(ua.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function lO(e){return Fe("MuiFormControl",e)}Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const cO=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${pe(r)}`,n&&"fullWidth"]};return Be(i,lO,t)},uO=me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${pe(r.margin)}`],r.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%"}}]}),Tn=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:s="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:m=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:f="medium",variant:b="outlined",...v}=n,p={...n,color:l,component:s,disabled:c,error:u,fullWidth:m,hiddenLabel:h,margin:y,required:g,size:f,variant:b},_=cO(p),[S,w]=j.useState(()=>{let W=!1;return i&&j.Children.forEach(i,le=>{if(!Qc(le,["Input","Select"]))return;const ce=Qc(le,["Select"])?le.props.input:le;ce&&RE(ce.props)&&(W=!0)}),W}),[E,x]=j.useState(()=>{let W=!1;return i&&j.Children.forEach(i,le=>{Qc(le,["Input","Select"])&&(ea(le.props,!0)||ea(le.props.inputProps,!0))&&(W=!0)}),W}),[P,k]=j.useState(!1);c&&P&&k(!1);const M=d!==void 0&&!c?d:P;let R;const O=j.useRef(!1);process.env.NODE_ENV!=="production"&&(R=()=>(O.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
52
- `)),O.current=!0,()=>{O.current=!1}));const q=j.useCallback(()=>{x(!0)},[]),N=j.useCallback(()=>{x(!1)},[]),U=j.useMemo(()=>({adornedStart:S,setAdornedStart:w,color:l,disabled:c,error:u,filled:E,focused:M,fullWidth:m,hiddenLabel:h,size:f,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:N,onFilled:q,registerEffect:R,required:g,variant:b}),[S,l,c,u,E,M,m,h,R,N,q,g,f,b]);return F.jsx(Qi.Provider,{value:U,children:F.jsx(uO,{as:s,ownerState:p,className:xe(_.root,a),ref:r,...v,children:i})})});process.env.NODE_ENV!=="production"&&(Tn.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function dO(e){return Fe("MuiFormHelperText",e)}const rg=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ng;const fO=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:l,focused:s,required:c}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${pe(n)}`,r&&"contained",s&&"focused",l&&"filled",c&&"required"]};return Be(u,dO,t)},pO=me("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${pe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rg.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}}]}))),eo=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:s,error:c,filled:u,focused:d,margin:m,required:h,variant:y,...g}=n,f=vr(),b=Ur({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),v={...n,component:l,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const p=fO(v);return F.jsx(pO,{as:l,className:xe(p.root,a),ref:r,...g,ownerState:v,children:i===" "?ng||(ng=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(eo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function to(e){return parseInt(j.version,10)>=19?e?.props?.ref||null:e?.ref||null}var da={exports:{}},st={};var og;function hO(){if(og)return st;og=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case r:case i:case n:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case l:case s:case m:case d:return f;case a:return f;default:return b}}case t:return b}}}return st.ContextConsumer=a,st.ContextProvider=l,st.Element=e,st.ForwardRef=s,st.Fragment=r,st.Lazy=m,st.Memo=d,st.Portal=t,st.Profiler=i,st.StrictMode=n,st.Suspense=c,st.SuspenseList=u,st.isContextConsumer=function(f){return g(f)===a},st.isContextProvider=function(f){return g(f)===l},st.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},st.isForwardRef=function(f){return g(f)===s},st.isFragment=function(f){return g(f)===r},st.isLazy=function(f){return g(f)===m},st.isMemo=function(f){return g(f)===d},st.isPortal=function(f){return g(f)===t},st.isProfiler=function(f){return g(f)===i},st.isStrictMode=function(f){return g(f)===n},st.isSuspense=function(f){return g(f)===c},st.isSuspenseList=function(f){return g(f)===u},st.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===s||f.$$typeof===y||f.getModuleId!==void 0)},st.typeOf=g,st}var lt={};var ig;function mO(){return ig||(ig=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case n:case a:case i:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case s:case c:case h:case m:return f;case l:return f;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");lt.ContextConsumer=l,lt.ContextProvider=s,lt.Element=t,lt.ForwardRef=c,lt.Fragment=n,lt.Lazy=h,lt.Memo=m,lt.Portal=r,lt.Profiler=a,lt.StrictMode=i,lt.Suspense=u,lt.SuspenseList=d,lt.isContextConsumer=function(f){return e(f)===l},lt.isContextProvider=function(f){return e(f)===s},lt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},lt.isForwardRef=function(f){return e(f)===c},lt.isFragment=function(f){return e(f)===n},lt.isLazy=function(f){return e(f)===h},lt.isMemo=function(f){return e(f)===m},lt.isPortal=function(f){return e(f)===r},lt.isProfiler=function(f){return e(f)===a},lt.isStrictMode=function(f){return e(f)===i},lt.isSuspense=function(f){return e(f)===u},lt.isSuspenseList=function(f){return e(f)===d},lt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===a||f===i||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===s||f.$$typeof===l||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},lt.typeOf=e})()),lt}var ag;function yO(){return ag||(ag=1,process.env.NODE_ENV==="production"?da.exports=hO():da.exports=mO()),da.exports}var du=yO();function Ir(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],l=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function sg(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Zy(r,n),{props:s,internalRef:c}=tg({...a,externalSlotProps:l}),u=St(c,l?.ref,e.additionalProps?.ref);return Xy(t,{...s,ref:u},n)}const fa=j.createContext({});process.env.NODE_ENV!=="production"&&(fa.displayName="ListContext");function gO(e){return Fe("MuiList",e)}Le("MuiList",["root","padding","dense","subheader"]);const vO=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Be({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},gO,t)},bO=me("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.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}}]}),lg=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...d}=n,m=j.useMemo(()=>({dense:s}),[s]),h={...n,component:l,dense:s,disablePadding:c},y=vO(h);return F.jsx(fa.Provider,{value:m,children:F.jsxs(bO,{as:l,className:xe(y.root,a),ref:r,ownerState:h,...d,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(lg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ro(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function cg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function fu(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ug(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function dg(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function no(e,t,r,n,i,a){let l=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(l)return!1;l=!0}const c=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!dg(s,a)||c)s=i(e,s,r);else return s.focus(),!0}return!1}const fg=j.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:l,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:m="selectedMenu",...h}=t,y=j.useRef(null),g=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yr(()=>{i&&y.current.focus()},[i]),j.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:S})=>{const w=!y.current.style.width;if(_.clientHeight<y.current.clientHeight&&w){const E=`${cg(kr(_))}px`;y.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=E,y.current.style.width=`calc(100% + ${E})`}return y.current}}),[]);const f=_=>{const S=y.current,w=_.key;if(_.ctrlKey||_.metaKey||_.altKey){d&&d(_);return}const x=ro(Kt(S));if(w==="ArrowDown")_.preventDefault(),no(S,x,u,c,fu);else if(w==="ArrowUp")_.preventDefault(),no(S,x,u,c,ug);else if(w==="Home")_.preventDefault(),no(S,null,u,c,fu);else if(w==="End")_.preventDefault(),no(S,null,u,c,ug);else if(w.length===1){const P=g.current,k=w.toLowerCase(),M=performance.now();P.keys.length>0&&(M-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&k!==P.keys[0]&&(P.repeating=!1)),P.lastTime=M,P.keys.push(k);const R=x&&!P.repeating&&dg(x,P);P.previousKeyMatched&&(R||no(S,x,!1,c,fu,P))?_.preventDefault():P.previousKeyMatched=!1}d&&d(_)},b=St(y,r);let v=-1;j.Children.forEach(l,(_,S)=>{if(!j.isValidElement(_)){v===S&&(v+=1,v>=l.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&du.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
53
- `)),_.props.disabled||(m==="selectedMenu"&&_.props.selected||v===-1)&&(v=S),v===S&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(v+=1,v>=l.length&&(v=-1))});const p=j.Children.map(l,(_,S)=>{if(S===v){const w={};return a&&(w.autoFocus=!0),_.props.tabIndex===void 0&&m==="selectedMenu"&&(w.tabIndex=0),j.cloneElement(_,w)}return _});return F.jsx(lg,{role:"menu",ref:b,className:s,onKeyDown:f,tabIndex:i?0:-1,...h,children:p})});process.env.NODE_ENV!=="production"&&(fg.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function _O(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function pg(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=_O(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function hg(e,t,r,n){return e[t]===void 0?null:pg(e,t,r,n)}function pu(){return null}hg.isRequired=pg,pu.isRequired=pu;const hu=process.env.NODE_ENV==="production"?pu:hg,mg={};function yg(e,t){const r=j.useRef(mg);return r.current===mg&&(r.current=e(t)),r}const wO=[];function SO(e){j.useEffect(e,wO)}class mu{static create(){return new mu}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function gg(){const e=yg(mu.create).current;return SO(e.disposeEffect),e}function EO(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vg(e,t,r,n,i){const a=e[t],l=i||t;if(a==null||typeof window>"u")return null;let s;const c=a.type;return typeof c=="function"&&!EO(c)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oo=cr(o.element,vg);oo.isRequired=cr(o.element.isRequired,vg);function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yu.apply(null,arguments)}function bg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function gu(e,t){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},gu(e,t)}function _g(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gu(e,t)}const wg={disabled:!1};var OO=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const pa=ke.createContext(null);var xO=function(t){return t.scrollTop},io="unmounted",an="exited",sn="entering",Pn="entered",vu="exiting",br=(function(e){_g(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=i,s=l&&!l.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?s?(c=an,a.appearStatus=sn):c=Pn:n.unmountOnExit||n.mountOnEnter?c=io:c=an,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===io?{status:an}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==sn&&l!==Pn&&(a=sn):(l===sn||l===Pn)&&(a=vu)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,l,s;return a=l=s=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,s=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Nn.findDOMNode(this);l&&xO(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===an&&this.setState({status:io})},r.performEnter=function(i){var a=this,l=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[Nn.findDOMNode(this),s],u=c[0],d=c[1],m=this.getTimeouts(),h=s?m.appear:m.enter;if(!i&&!l||wg.disabled){this.safeSetState({status:Pn},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:sn},function(){a.props.onEntering(u,d),a.onTransitionEnd(h,function(){a.safeSetState({status:Pn},function(){a.props.onEntered(u,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:Nn.findDOMNode(this);if(!a||wg.disabled){this.safeSetState({status:an},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:vu},function(){i.props.onExiting(s),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:an},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(s){l&&(l=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:Nn.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!l||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===io)return null;var a=this.props,l=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 s=bg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(pa.Provider,{value:null},typeof l=="function"?l(i,s):ke.cloneElement(ke.Children.only(l),s))},t})(ke.Component);br.contextType=pa,br.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,r,n,i,a){var l=e[t];return o.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,a)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var r=OO;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return r.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function $n(){}br.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$n,onEntering:$n,onEntered:$n,onExit:$n,onExiting:$n,onExited:$n},br.UNMOUNTED=io,br.EXITED=an,br.ENTERING=sn,br.ENTERED=Pn,br.EXITING=vu;function CO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bu(e,t){var r=function(a){return t&&ke.isValidElement(a)?t(a):a},n=Object.create(null);return e&&ke.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function TO(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var l,s={};for(var c in t){if(n[c])for(l=0;l<n[c].length;l++){var u=n[c][l];s[n[c][l]]=r(u)}s[c]=r(c)}for(l=0;l<i.length;l++)s[i[l]]=r(i[l]);return s}function ln(e,t,r){return r[t]!=null?r[t]:e.props[t]}function PO(e,t){return bu(e.children,function(r){return ke.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:ln(r,"appear",e),enter:ln(r,"enter",e),exit:ln(r,"exit",e)})})}function $O(e,t,r){var n=bu(e.children),i=TO(t,n);return Object.keys(i).forEach(function(a){var l=i[a];if(ke.isValidElement(l)){var s=a in t,c=a in n,u=t[a],d=ke.isValidElement(u)&&!u.props.in;c&&(!s||d)?i[a]=ke.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:ln(l,"exit",e),enter:ln(l,"enter",e)}):!c&&s&&!d?i[a]=ke.cloneElement(l,{in:!1}):c&&s&&ke.isValidElement(u)&&(i[a]=ke.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:ln(l,"exit",e),enter:ln(l,"enter",e)}))}}),i}var RO=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},kO={component:"div",childFactory:function(t){return t}},_u=(function(e){_g(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=a.handleExited.bind(CO(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var l=a.children,s=a.handleExited,c=a.firstRender;return{children:c?PO(i,s):$O(i,l,s),firstRender:!1}},r.handleExited=function(i,a){var l=bu(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var c=yu({},s.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,a=i.component,l=i.childFactory,s=bg(i,["component","childFactory"]),c=this.state.contextValue,u=RO(this.state.children).map(l);return delete s.appear,delete s.enter,delete s.exit,a===null?ke.createElement(pa.Provider,{value:c},u):ke.createElement(pa.Provider,{value:c},ke.createElement(a,s,u))},t})(ke.Component);_u.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},_u.defaultProps=kO;const Sg=e=>e.scrollTop;function ha(e,t){const{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:i.transitionDelay}}function wu(e){return`scale(${e}, ${e**2})`}const IO={entering:{opacity:1,transform:wu(1)},entered:{opacity:1,transform:"none"}},Su=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ma=j.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:h,onExiting:y,style:g,timeout:f="auto",TransitionComponent:b=br,...v}=t,p=gg(),_=j.useRef(),S=su(),w=j.useRef(null),E=St(w,to(a),r),x=U=>W=>{if(U){const le=w.current;W===void 0?U(le):U(le,W)}},P=x(d),k=x((U,W)=>{Sg(U);const{duration:le,delay:ce,easing:ue}=ha({style:g,timeout:f,easing:l},{mode:"enter"});let z;f==="auto"?(z=S.transitions.getAutoHeightDuration(U.clientHeight),_.current=z):z=le,U.style.transition=[S.transitions.create("opacity",{duration:z,delay:ce}),S.transitions.create("transform",{duration:Su?z:z*.666,delay:ce,easing:ue})].join(","),c&&c(U,W)}),M=x(u),R=x(y),O=x(U=>{const{duration:W,delay:le,easing:ce}=ha({style:g,timeout:f,easing:l},{mode:"exit"});let ue;f==="auto"?(ue=S.transitions.getAutoHeightDuration(U.clientHeight),_.current=ue):ue=W,U.style.transition=[S.transitions.create("opacity",{duration:ue,delay:le}),S.transitions.create("transform",{duration:Su?ue:ue*.666,delay:Su?le:le||ue*.333,easing:ce})].join(","),U.style.opacity=0,U.style.transform=wu(.75),m&&m(U)}),q=x(h),N=U=>{f==="auto"&&p.start(_.current||0,U),n&&n(w.current,U)};return F.jsx(b,{appear:i,in:s,nodeRef:w,onEnter:k,onEntered:M,onEntering:P,onExit:O,onExited:q,onExiting:R,addEndListener:N,timeout:f==="auto"?null:f,...v,children:(U,{ownerState:W,...le})=>j.cloneElement(a,{style:{opacity:0,transform:wu(.75),visibility:U==="exited"&&!s?"hidden":void 0,...IO[U],...g,...a.props.style},ref:E,...le})})});process.env.NODE_ENV!=="production"&&(ma.propTypes={addEndListener:o.func,appear:o.bool,children:oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),ma&&(ma.muiSupportAuto=!0);function jO(e){const t=Kt(e);return t.body===e?kr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ao(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Eg(e){return parseFloat(kr(e).getComputedStyle(e).paddingRight)||0}function NO(e){const r=["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 r||n}function Og(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,l=>{const s=!a.includes(l),c=!NO(l);s&&c&&ao(l,i)})}function Eu(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function AO(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(jO(n)){const l=cg(kr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Eg(n)+l}px`;const s=Kt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Eg(c)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Kt(n).body;else{const l=n.parentElement,s=kr(n);a=l?.nodeName==="HTML"&&s.getComputedStyle(l).overflowY==="scroll"?l:n}r.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()=>{r.forEach(({value:a,el:l,property:s})=>{a?l.style.setProperty(s,a):l.style.removeProperty(s)})}}function MO(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class DO{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&ao(t.modalRef,!1);const i=MO(r);Og(r,t.mount,t.modalRef,i,!0);const a=Eu(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Eu(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=AO(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Eu(this.containers,l=>l.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ao(t.modalRef,r),Og(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&ao(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const qO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function LO(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 FO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function zO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||FO(e))}function VO(e){const t=[],r=[];return Array.from(e.querySelectorAll(qO)).forEach((n,i)=>{const a=LO(n);a===-1||!zO(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function BO(){return!0}function ya(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=VO,isEnabled:l=BO,open:s}=e,c=j.useRef(!1),u=j.useRef(null),d=j.useRef(null),m=j.useRef(null),h=j.useRef(null),y=j.useRef(!1),g=j.useRef(null),f=St(to(t),g),b=j.useRef(null);j.useEffect(()=>{!s||!g.current||(y.current=!r)},[r,s]),j.useEffect(()=>{if(!s||!g.current)return;const _=Kt(g.current),S=ro(_);return g.current.contains(S)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
54
- `)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{i||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[s]),j.useEffect(()=>{if(!s||!g.current)return;const _=Kt(g.current),S=x=>{if(b.current=x,n||!l()||x.key!=="Tab")return;ro(_)===g.current&&x.shiftKey&&(c.current=!0,d.current&&d.current.focus())},w=()=>{const x=g.current;if(x===null)return;const P=ro(_);if(!_.hasFocus()||!l()||c.current){c.current=!1;return}if(x.contains(P)||n&&P!==u.current&&P!==d.current)return;if(P!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let k=[];if((P===u.current||P===d.current)&&(k=a(g.current)),k.length>0){const M=!!(b.current?.shiftKey&&b.current?.key==="Tab"),R=k[0],O=k[k.length-1];typeof R!="string"&&typeof O!="string"&&(M?O.focus():R.focus())}else x.focus()};_.addEventListener("focusin",w),_.addEventListener("keydown",S,!0);const E=setInterval(()=>{const x=ro(_);x&&x.tagName==="BODY"&&w()},50);return()=>{clearInterval(E),_.removeEventListener("focusin",w),_.removeEventListener("keydown",S,!0)}},[r,n,i,l,s,a]);const v=_=>{m.current===null&&(m.current=_.relatedTarget),y.current=!0,h.current=_.target;const S=t.props.onFocus;S&&S(_)},p=_=>{m.current===null&&(m.current=_.relatedTarget),y.current=!0};return F.jsxs(j.Fragment,{children:[F.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:u,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:f,onFocus:v}),F.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ya.propTypes={children:oo,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ya.propTypes=Ey(ya.propTypes));function UO(e){return typeof e=="function"?e():e}const so=j.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[l,s]=j.useState(null),c=St(j.isValidElement(n)?to(n):null,r);if(yr(()=>{a||s(UO(i)||document.body)},[i,a]),yr(()=>{if(l&&!a)return uu(r,l),()=>{uu(r,null)}},[r,l,a]),a){if(j.isValidElement(n)){const u={ref:c};return j.cloneElement(n,u)}return n}return l&&Xv.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(so.propTypes={children:o.node,container:o.oneOfType([Ir,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(so.propTypes=Ey(so.propTypes));const WO={entering:{opacity:1},entered:{opacity:1}},xg=j.forwardRef(function(t,r){const n=su(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,easing:c,in:u,onEnter:d,onEntered:m,onEntering:h,onExit:y,onExited:g,onExiting:f,style:b,timeout:v=i,TransitionComponent:p=br,..._}=t,S=j.useRef(null),w=St(S,to(s),r),E=N=>U=>{if(N){const W=S.current;U===void 0?N(W):N(W,U)}},x=E(h),P=E((N,U)=>{Sg(N);const W=ha({style:b,timeout:v,easing:c},{mode:"enter"});N.style.webkitTransition=n.transitions.create("opacity",W),N.style.transition=n.transitions.create("opacity",W),d&&d(N,U)}),k=E(m),M=E(f),R=E(N=>{const U=ha({style:b,timeout:v,easing:c},{mode:"exit"});N.style.webkitTransition=n.transitions.create("opacity",U),N.style.transition=n.transitions.create("opacity",U),y&&y(N)}),O=E(g),q=N=>{a&&a(S.current,N)};return F.jsx(p,{appear:l,in:u,nodeRef:S,onEnter:P,onEntered:k,onEntering:x,onExit:R,onExited:O,onExiting:M,addEndListener:q,timeout:v,..._,children:(N,{ownerState:U,...W})=>j.cloneElement(s,{style:{opacity:0,visibility:N==="exited"&&!u?"hidden":void 0,...WO[N],...b,...s.props.style},ref:w,...W})})});process.env.NODE_ENV!=="production"&&(xg.propTypes={addEndListener:o.func,appear:o.bool,children:oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function HO(e){return Fe("MuiBackdrop",e)}Le("MuiBackdrop",["root","invisible"]);const KO=e=>{const{classes:t,invisible:r}=e;return Be({root:["root",r&&"invisible"]},HO,t)},GO=me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.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"}}]}),Cg=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:s=!1,open:c,components:u={},componentsProps:d={},slotProps:m={},slots:h={},TransitionComponent:y,transitionDuration:g,...f}=n,b={...n,component:l,invisible:s},v=KO(b),p={transition:y,root:u.Root,...h},_={...d,...m},S={component:l,slots:p,slotProps:_},[w,E]=ut("root",{elementType:GO,externalForwardedProps:S,className:xe(v.root,a),ownerState:b}),[x,P]=ut("transition",{elementType:xg,externalForwardedProps:S,ownerState:b});return F.jsx(x,{in:c,timeout:g,...f,...P,children:F.jsx(w,{"aria-hidden":!0,...E,ref:r,children:i})})});process.env.NODE_ENV!=="production"&&(Cg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function YO(e){return typeof e=="function"?e():e}function JO(e){return e?e.props.hasOwnProperty("in"):!1}const Tg=()=>{},ga=new DO;function XO(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,m=j.useRef({}),h=j.useRef(null),y=j.useRef(null),g=St(y,d),[f,b]=j.useState(!u),v=JO(s);let p=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(p=!1);const _=()=>Kt(h.current),S=()=>(m.current.modalRef=y.current,m.current.mount=h.current,m.current),w=()=>{ga.mount(S(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},E=ur(()=>{const U=YO(t)||_().body;ga.add(S(),U),y.current&&w()}),x=()=>ga.isTopModal(S()),P=ur(U=>{h.current=U,U&&(u&&x()?w():y.current&&ao(y.current,p))}),k=j.useCallback(()=>{ga.remove(S(),p)},[p]);j.useEffect(()=>()=>{k()},[k]),j.useEffect(()=>{u?E():(!v||!i)&&k()},[u,k,v,i,E]);const M=U=>W=>{U.onKeyDown?.(W),!(W.key!=="Escape"||W.which===229||!x())&&(r||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},R=U=>W=>{U.onClick?.(W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(U={})=>{const W=Qy(e);delete W.onTransitionEnter,delete W.onTransitionExited;const le={...W,...U};return{role:"presentation",...le,onKeyDown:M(le),ref:g}},getBackdropProps:(U={})=>{const W=U;return{"aria-hidden":!0,...W,onClick:R(W),open:u}},getTransitionProps:()=>{const U=()=>{b(!1),a&&a()},W=()=>{b(!0),l&&l(),i&&k()};return{onEnter:cu(U,s?.props.onEnter??Tg),onExited:cu(W,s?.props.onExited??Tg)}},rootRef:g,portalRef:P,isTopModal:x,exited:f,hasTransition:v}}function ZO(e){return Fe("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const QO=e=>{const{open:t,exited:r,classes:n}=e;return Be({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ZO,n)},e1=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(ze(({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"}}]}))),t1=me(Cg,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Pg=j.forwardRef(function(t,r){const n=We({name:"MuiModal",props:t}),{BackdropComponent:i=t1,BackdropProps:a,classes:l,className:s,closeAfterTransition:c=!1,children:u,container:d,component:m,components:h={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:p=!1,disableScrollLock:_=!1,hideBackdrop:S=!1,keepMounted:w=!1,onClose:E,onTransitionEnter:x,onTransitionExited:P,open:k,slotProps:M={},slots:R={},theme:O,...q}=n,N={...n,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:p,disableScrollLock:_,hideBackdrop:S,keepMounted:w},{getRootProps:U,getBackdropProps:W,getTransitionProps:le,portalRef:ce,isTopModal:ue,exited:z,hasTransition:C}=XO({...N,rootRef:r}),V={...N,exited:z},A=QO(V),T={};if(u.props.tabIndex===void 0&&(T.tabIndex="-1"),C){const{onEnter:te,onExited:L}=le();T.onEnter=te,T.onExited=L}const $={slots:{root:h.Root,backdrop:h.Backdrop,...R},slotProps:{...y,...M}},[D,K]=ut("root",{ref:r,elementType:e1,externalForwardedProps:{...$,...q,component:m},getSlotProps:U,ownerState:V,className:xe(s,A?.root,!V.open&&V.exited&&A?.hidden)}),[re,ie]=ut("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:te=>W({...te,onClick:L=>{te?.onClick&&te.onClick(L)}}),className:xe(a?.className,A?.backdrop),ownerState:V});return!w&&!k&&(!C||z)?null:F.jsx(so,{ref:ce,container:d,disablePortal:v,children:F.jsxs(D,{...K,children:[!S&&i?F.jsx(re,{...ie}):null,F.jsx(ya,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:p,isEnabled:ue,open:k,children:j.cloneElement(u,T)})]})})});process.env.NODE_ENV!=="production"&&(Pg.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:oo.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Ir,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function r1(e){return Fe("MuiPaper",e)}Le("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 n1=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Be(a,r1,i)},o1=me("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(ze(({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)"}}]}))),lo=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiPaper"}),i=su(),{className:a,component:l="div",elevation:s=1,square:c=!1,variant:u="elevation",...d}=n,m={...n,component:l,elevation:s,square:c,variant:u},h=n1(m);return process.env.NODE_ENV!=="production"&&i.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
55
- `)),F.jsx(o1,{as:l,ownerState:m,className:xe(h.root,a),ref:r,...d,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ki("#fff",nu(s))}, ${Ki("#fff",nu(s))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(lo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:cr(hu,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});function i1(e){return Fe("MuiPopover",e)}Le("MuiPopover",["root","paper"]);function $g(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Rg(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function kg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function co(e){return typeof e=="function"?e():e}const a1=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"]},i1,t)},s1=me(Pg,{name:"MuiPopover",slot:"Root"})({}),Ig=me(lo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jg=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:d,container:m,elevation:h=8,marginThreshold:y=16,open:g,PaperProps:f={},slots:b={},slotProps:v={},transformOrigin:p={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:S="auto",TransitionProps:w={},disableScrollLock:E=!1,...x}=n,P=j.useRef(),k={...n,anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:y,transformOrigin:p,TransitionComponent:_,transitionDuration:S,TransitionProps:w},M=a1(k),R=j.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(s||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),s;const te=co(a),L=te&&te.nodeType===1?te:Kt(P.current).body,I=L.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const G=L.getBoundingClientRect();process.env.NODE_ENV!=="test"&&G.top===0&&G.left===0&&G.right===0&&G.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
56
- `))}return{top:I.top+$g(I,l.vertical),left:I.left+Rg(I,l.horizontal)}},[a,l.horizontal,l.vertical,s,c]),O=j.useCallback(te=>({vertical:$g(te,p.vertical),horizontal:Rg(te,p.horizontal)}),[p.horizontal,p.vertical]),q=j.useCallback(te=>{const L={width:te.offsetWidth,height:te.offsetHeight},I=O(L);if(c==="none")return{top:null,left:null,transformOrigin:kg(I)};const G=R();let X=G.top-I.vertical,ne=G.left-I.horizontal;const he=X+L.height,ve=ne+L.width,fe=kr(co(a)),Te=fe.innerHeight-y,be=fe.innerWidth-y;if(y!==null&&X<y){const Ee=X-y;X-=Ee,I.vertical+=Ee}else if(y!==null&&he>Te){const Ee=he-Te;X-=Ee,I.vertical+=Ee}if(process.env.NODE_ENV!=="production"&&L.height>Te&&L.height&&Te&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${L.height-Te}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
57
- `)),y!==null&&ne<y){const Ee=ne-y;ne-=Ee,I.horizontal+=Ee}else if(ve>be){const Ee=ve-be;ne-=Ee,I.horizontal+=Ee}return{top:`${Math.round(X)}px`,left:`${Math.round(ne)}px`,transformOrigin:kg(I)}},[a,c,R,O,y]),[N,U]=j.useState(g),W=j.useCallback(()=>{const te=P.current;if(!te)return;const L=q(te);L.top!==null&&te.style.setProperty("top",L.top),L.left!==null&&(te.style.left=L.left),te.style.transformOrigin=L.transformOrigin,U(!0)},[q]);j.useEffect(()=>(E&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[a,E,W]);const le=()=>{W()},ce=()=>{U(!1)};j.useEffect(()=>{g&&W()}),j.useImperativeHandle(i,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),j.useEffect(()=>{if(!g)return;const te=Vy(()=>{W()}),L=kr(co(a));return L.addEventListener("resize",te),()=>{te.clear(),L.removeEventListener("resize",te)}},[a,g,W]);let ue=S;const z={slots:{transition:_,...b},slotProps:{transition:w,paper:f,...v}},[C,V]=ut("transition",{elementType:ma,externalForwardedProps:z,ownerState:k,getSlotProps:te=>({...te,onEntering:(L,I)=>{te.onEntering?.(L,I),le()},onExited:L=>{te.onExited?.(L),ce()}}),additionalProps:{appear:!0,in:g}});S==="auto"&&!C.muiSupportAuto&&(ue=void 0);const A=m||(a?Kt(co(a)).body:void 0),[T,{slots:$,slotProps:D,...K}]=ut("root",{ref:r,elementType:s1,externalForwardedProps:{...z,...x},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:Gy(typeof v.backdrop=="function"?v.backdrop(k):v.backdrop,{invisible:!0})},container:A,open:g},ownerState:k,className:xe(M.root,d)}),[re,ie]=ut("paper",{ref:P,className:M.paper,elementType:Ig,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:N?void 0:{opacity:0}},ownerState:k});return F.jsx(T,{...K,...!Xi(T)&&{slots:$,slotProps:D,disableScrollLock:E},children:F.jsx(C,{...V,timeout:ue,children:F.jsx(re,{...ie,children:u})})})});process.env.NODE_ENV!=="production"&&(jg.propTypes={action:zt,anchorEl:cr(o.oneOfType([Ir,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=co(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
46
+ export default theme;`}function pv(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const AE=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function FE(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:rn(t,AE(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${pv(n)})`:la(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${pv(n)})`:aa(t,n)}})}function Bd(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:i={},transitions:l={},typography:a={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":rr(20));const p=Ld({...i,colorSpace:u}),h=Dd(e);let m=Wt(h,{mixins:PE(h.breakpoints,o),palette:p,shadows:RE.slice(),typography:OE(p,a),transitions:ME(l),zIndex:{...NE}});if(m=Wt(m,d),m=t.reduce((b,f)=>Wt(b,f),m),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(g,v)=>{let y;for(y in g){const S=g[y];if(b.includes(y)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const w=Me("",y);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(g,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
47
+ `))}g[y]={}}}};Object.keys(m.components).forEach(g=>{const v=m.components[g].styleOverrides;v&&g.startsWith("Mui")&&f(v,g)})}return m.unstable_sxConfig={...Wo,...d?.unstable_sxConfig},m.unstable_sx=function(f){return ro({sx:f,theme:this})},m.toRuntimeSource=fv,FE(m),m}function qd(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 VE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=qd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function hv(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function mv(e){return e==="dark"?VE:[]}function LE(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:s,...i}=e,l=Ld({...t,colorSpace:s});return{palette:l,opacity:{...hv(l.mode),...n},overlays:o||mv(l.mode),...i}}function BE(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 qE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],zE=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let i=s;if(s==="class"&&(i=".%s"),s==="data"&&(i="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(i=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return qE(e.cssVarPrefix).forEach(a=>{l[a]=n[a],delete n[a]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:i?{[i.replace("%s",t)]:l,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function UE(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ye(e,t,n){!e[t]&&n&&(e[t]=n)}function Qo(e){return typeof e!="string"||!e.startsWith("hsl")?e:Zb(e)}function sr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Yo(Qo(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
48
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function WE(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Un=e=>{try{return e()}catch{}},HE=(e="mui")=>uE(e);function zd(e,t,n,o,s){if(!n)return;n=n===!0?{}:n;const i=s==="dark"?"dark":"light";if(!o){t[s]=LE({...n,palette:{mode:i,...n?.palette},colorSpace:e});return}const{palette:l,...a}=Bd({...o,palette:{mode:i,...n?.palette},colorSpace:e});return t[s]={...n,palette:l,opacity:{...hv(i),...n?.opacity},overlays:n?.overlays||mv(i)},a}function YE(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:l=!1,shouldSkipGeneratingVar:a=BE,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=o||(n.light&&p!=="light"?"light":p),m=HE(i),{[h]:b,light:f,dark:g,...v}=n,y={...v};let S=b;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:rr(21,h));let w;l&&(w="oklch");const x=zd(w,y,S,d,h);f&&!y.light&&zd(w,y,f,void 0,"light"),g&&!y.dark&&zd(w,y,g,void 0,"dark");let P={defaultColorScheme:h,...x,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:m,colorSchemes:y,font:{...CE(x.typography),...x.font},spacing:WE(d.spacing)};Object.keys(P.colorSchemes).forEach(k=>{const C=P.colorSchemes[k].palette,N=j=>{const F=j.split("-"),W=F[1],Y=F[2];return m(j,C[W][Y])};C.mode==="light"&&(ye(C.common,"background","#fff"),ye(C.common,"onBackground","#000")),C.mode==="dark"&&(ye(C.common,"background","#000"),ye(C.common,"onBackground","#fff"));function D(j,F,W){if(w){let Y;return j===Ar&&(Y=`transparent ${((1-W)*100).toFixed(0)}%`),j===vt&&(Y=`#000 ${(W*100).toFixed(0)}%`),j===St&&(Y=`#fff ${(W*100).toFixed(0)}%`),`color-mix(in ${w}, ${F}, ${Y})`}return j(F,W)}if(UE(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){ye(C.Alert,"errorColor",D(vt,C.error.light,.6)),ye(C.Alert,"infoColor",D(vt,C.info.light,.6)),ye(C.Alert,"successColor",D(vt,C.success.light,.6)),ye(C.Alert,"warningColor",D(vt,C.warning.light,.6)),ye(C.Alert,"errorFilledBg",N("palette-error-main")),ye(C.Alert,"infoFilledBg",N("palette-info-main")),ye(C.Alert,"successFilledBg",N("palette-success-main")),ye(C.Alert,"warningFilledBg",N("palette-warning-main")),ye(C.Alert,"errorFilledColor",Un(()=>C.getContrastText(C.error.main))),ye(C.Alert,"infoFilledColor",Un(()=>C.getContrastText(C.info.main))),ye(C.Alert,"successFilledColor",Un(()=>C.getContrastText(C.success.main))),ye(C.Alert,"warningFilledColor",Un(()=>C.getContrastText(C.warning.main))),ye(C.Alert,"errorStandardBg",D(St,C.error.light,.9)),ye(C.Alert,"infoStandardBg",D(St,C.info.light,.9)),ye(C.Alert,"successStandardBg",D(St,C.success.light,.9)),ye(C.Alert,"warningStandardBg",D(St,C.warning.light,.9)),ye(C.Alert,"errorIconColor",N("palette-error-main")),ye(C.Alert,"infoIconColor",N("palette-info-main")),ye(C.Alert,"successIconColor",N("palette-success-main")),ye(C.Alert,"warningIconColor",N("palette-warning-main")),ye(C.AppBar,"defaultBg",N("palette-grey-100")),ye(C.Avatar,"defaultBg",N("palette-grey-400")),ye(C.Button,"inheritContainedBg",N("palette-grey-300")),ye(C.Button,"inheritContainedHoverBg",N("palette-grey-A100")),ye(C.Chip,"defaultBorder",N("palette-grey-400")),ye(C.Chip,"defaultAvatarColor",N("palette-grey-700")),ye(C.Chip,"defaultIconColor",N("palette-grey-700")),ye(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ye(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ye(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ye(C.LinearProgress,"primaryBg",D(St,C.primary.main,.62)),ye(C.LinearProgress,"secondaryBg",D(St,C.secondary.main,.62)),ye(C.LinearProgress,"errorBg",D(St,C.error.main,.62)),ye(C.LinearProgress,"infoBg",D(St,C.info.main,.62)),ye(C.LinearProgress,"successBg",D(St,C.success.main,.62)),ye(C.LinearProgress,"warningBg",D(St,C.warning.main,.62)),ye(C.Skeleton,"bg",w?D(Ar,C.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),ye(C.Slider,"primaryTrack",D(St,C.primary.main,.62)),ye(C.Slider,"secondaryTrack",D(St,C.secondary.main,.62)),ye(C.Slider,"errorTrack",D(St,C.error.main,.62)),ye(C.Slider,"infoTrack",D(St,C.info.main,.62)),ye(C.Slider,"successTrack",D(St,C.success.main,.62)),ye(C.Slider,"warningTrack",D(St,C.warning.main,.62));const j=w?D(vt,C.background.default,.6825):ca(C.background.default,.8);ye(C.SnackbarContent,"bg",j),ye(C.SnackbarContent,"color",Un(()=>w?Vd.text.primary:C.getContrastText(j))),ye(C.SpeedDialAction,"fabHoverBg",ca(C.background.paper,.15)),ye(C.StepConnector,"border",N("palette-grey-400")),ye(C.StepContent,"border",N("palette-grey-400")),ye(C.Switch,"defaultColor",N("palette-common-white")),ye(C.Switch,"defaultDisabledColor",N("palette-grey-100")),ye(C.Switch,"primaryDisabledColor",D(St,C.primary.main,.62)),ye(C.Switch,"secondaryDisabledColor",D(St,C.secondary.main,.62)),ye(C.Switch,"errorDisabledColor",D(St,C.error.main,.62)),ye(C.Switch,"infoDisabledColor",D(St,C.info.main,.62)),ye(C.Switch,"successDisabledColor",D(St,C.success.main,.62)),ye(C.Switch,"warningDisabledColor",D(St,C.warning.main,.62)),ye(C.TableCell,"border",D(St,D(Ar,C.divider,1),.88)),ye(C.Tooltip,"bg",D(Ar,C.grey[700],.92))}if(C.mode==="dark"){ye(C.Alert,"errorColor",D(St,C.error.light,.6)),ye(C.Alert,"infoColor",D(St,C.info.light,.6)),ye(C.Alert,"successColor",D(St,C.success.light,.6)),ye(C.Alert,"warningColor",D(St,C.warning.light,.6)),ye(C.Alert,"errorFilledBg",N("palette-error-dark")),ye(C.Alert,"infoFilledBg",N("palette-info-dark")),ye(C.Alert,"successFilledBg",N("palette-success-dark")),ye(C.Alert,"warningFilledBg",N("palette-warning-dark")),ye(C.Alert,"errorFilledColor",Un(()=>C.getContrastText(C.error.dark))),ye(C.Alert,"infoFilledColor",Un(()=>C.getContrastText(C.info.dark))),ye(C.Alert,"successFilledColor",Un(()=>C.getContrastText(C.success.dark))),ye(C.Alert,"warningFilledColor",Un(()=>C.getContrastText(C.warning.dark))),ye(C.Alert,"errorStandardBg",D(vt,C.error.light,.9)),ye(C.Alert,"infoStandardBg",D(vt,C.info.light,.9)),ye(C.Alert,"successStandardBg",D(vt,C.success.light,.9)),ye(C.Alert,"warningStandardBg",D(vt,C.warning.light,.9)),ye(C.Alert,"errorIconColor",N("palette-error-main")),ye(C.Alert,"infoIconColor",N("palette-info-main")),ye(C.Alert,"successIconColor",N("palette-success-main")),ye(C.Alert,"warningIconColor",N("palette-warning-main")),ye(C.AppBar,"defaultBg",N("palette-grey-900")),ye(C.AppBar,"darkBg",N("palette-background-paper")),ye(C.AppBar,"darkColor",N("palette-text-primary")),ye(C.Avatar,"defaultBg",N("palette-grey-600")),ye(C.Button,"inheritContainedBg",N("palette-grey-800")),ye(C.Button,"inheritContainedHoverBg",N("palette-grey-700")),ye(C.Chip,"defaultBorder",N("palette-grey-700")),ye(C.Chip,"defaultAvatarColor",N("palette-grey-300")),ye(C.Chip,"defaultIconColor",N("palette-grey-300")),ye(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ye(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ye(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ye(C.LinearProgress,"primaryBg",D(vt,C.primary.main,.5)),ye(C.LinearProgress,"secondaryBg",D(vt,C.secondary.main,.5)),ye(C.LinearProgress,"errorBg",D(vt,C.error.main,.5)),ye(C.LinearProgress,"infoBg",D(vt,C.info.main,.5)),ye(C.LinearProgress,"successBg",D(vt,C.success.main,.5)),ye(C.LinearProgress,"warningBg",D(vt,C.warning.main,.5)),ye(C.Skeleton,"bg",w?D(Ar,C.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),ye(C.Slider,"primaryTrack",D(vt,C.primary.main,.5)),ye(C.Slider,"secondaryTrack",D(vt,C.secondary.main,.5)),ye(C.Slider,"errorTrack",D(vt,C.error.main,.5)),ye(C.Slider,"infoTrack",D(vt,C.info.main,.5)),ye(C.Slider,"successTrack",D(vt,C.success.main,.5)),ye(C.Slider,"warningTrack",D(vt,C.warning.main,.5));const j=w?D(St,C.background.default,.985):ca(C.background.default,.98);ye(C.SnackbarContent,"bg",j),ye(C.SnackbarContent,"color",Un(()=>w?sv.text.primary:C.getContrastText(j))),ye(C.SpeedDialAction,"fabHoverBg",ca(C.background.paper,.15)),ye(C.StepConnector,"border",N("palette-grey-600")),ye(C.StepContent,"border",N("palette-grey-600")),ye(C.Switch,"defaultColor",N("palette-grey-300")),ye(C.Switch,"defaultDisabledColor",N("palette-grey-600")),ye(C.Switch,"primaryDisabledColor",D(vt,C.primary.main,.55)),ye(C.Switch,"secondaryDisabledColor",D(vt,C.secondary.main,.55)),ye(C.Switch,"errorDisabledColor",D(vt,C.error.main,.55)),ye(C.Switch,"infoDisabledColor",D(vt,C.info.main,.55)),ye(C.Switch,"successDisabledColor",D(vt,C.success.main,.55)),ye(C.Switch,"warningDisabledColor",D(vt,C.warning.main,.55)),ye(C.TableCell,"border",D(vt,D(Ar,C.divider,1),.68)),ye(C.Tooltip,"bg",D(Ar,C.grey[700],.92))}sr(C.background,"default"),sr(C.background,"paper"),sr(C.common,"background"),sr(C.common,"onBackground"),sr(C,"divider"),Object.keys(C).forEach(j=>{const F=C[j];j!=="tonalOffset"&&F&&typeof F=="object"&&(F.main&&ye(C[j],"mainChannel",Yo(Qo(F.main))),F.light&&ye(C[j],"lightChannel",Yo(Qo(F.light))),F.dark&&ye(C[j],"darkChannel",Yo(Qo(F.dark))),F.contrastText&&ye(C[j],"contrastTextChannel",Yo(Qo(F.contrastText))),j==="text"&&(sr(C[j],"primary"),sr(C[j],"secondary")),j==="action"&&(F.active&&sr(C[j],"active"),F.selected&&sr(C[j],"selected")))})}),P=t.reduce((k,C)=>Wt(k,C),P);const T={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:a,getSelector:zE(P),enableContrastVars:l},{vars:I,generateThemeVars:$,generateStyleSheets:M}=pE(P,T);return P.vars=I,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([k,C])=>{P[k]=C}),P.generateThemeVars=$,P.generateStyleSheets=M,P.generateSpacing=function(){return Lb(d.spacing,Rd(this))},P.getColorSchemeSelector=hE(c),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=a,P.unstable_sxConfig={...Wo,...d?.unstable_sxConfig},P.unstable_sx=function(C){return ro({sx:C,theme:this})},P.toRuntimeSource=fv,P}function yv(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ld({...n===!0?{}:n.palette,mode:t})})}function KE(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...l}=e,a=i||"light",c=s?.[a],u={...s,...n?{[a]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Bd(e,...t);let d=n;"palette"in e||u[a]&&(u[a]!==!0?d=u[a].palette:a==="dark"&&(d={mode:"dark"}));const p=Bd({...e,palette:d},...t);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},yv(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},yv(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),YE({...l,colorSchemes:u,defaultColorScheme:a,...typeof o!="boolean"&&o},...t)}const ua=KE(),Jo="$$material";function Fr(){const e=Md(ua);return process.env.NODE_ENV!=="production"&&O.useDebugValue(e),e[Jo]||e}function gv(e){return _.jsx(qb,{...e,defaultTheme:ua,themeId:Jo})}process.env.NODE_ENV!=="production"&&(gv.propTypes={styles:r.oneOfType([r.array,r.func,r.number,r.object,r.string,r.bool])});function bv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ht=e=>bv(e)&&e!=="classes",ie=Kb({themeId:Jo,defaultTheme:ua,rootShouldForwardProp:Ht});function GE(e){return function(n){return _.jsx(gv,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function XE(){return PO}process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function Je(e){return lE(e)}function vn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function QE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function JE(e,t,n,o,s){const i=e[t],l=s||t;if(i==null||typeof window>"u")return null;let a;return typeof i=="function"&&!QE(i)&&(a="Did you accidentally provide a plain function component instead?"),i===O.Fragment&&(a="Did you accidentally provide a React.Fragment instead?"),a!==void 0?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const da=vn(r.elementType,JE);function co(e){return typeof e=="string"}function fa(e,t=166){let n;function o(...s){const i=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function at(...e){const t=O.useRef(void 0),n=O.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const l=i,a=l(o);return typeof a=="function"?a:()=>{l(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i?.())}},e);return O.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function Ee(e){const t=O.useRef(e);return Mt(()=>{t.current=e}),O.useRef((...n)=>(0,t.current)(...n)).current}function Lt(e){return e&&e.ownerDocument||document}function Dn(e){return Lt(e).defaultView||window}function pa(e){return parseInt(e,10)||0}const ZE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function e1(e){for(const t in e)return!1;return!0}function vv(e){return e1(e)||e.outerHeightStyle===0&&!e.overflowing}const Sv=O.forwardRef(function(t,n){const{onChange:o,maxRows:s,minRows:i=1,style:l,value:a,...c}=t,{current:u}=O.useRef(a!=null),d=O.useRef(null),p=at(n,d),h=O.useRef(null),m=O.useRef(null),b=O.useCallback(()=>{const S=d.current,w=m.current;if(!S||!w)return;const P=Dn(S).getComputedStyle(S);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=P.width,w.value=S.value||t.placeholder||"x",w.value.slice(-1)===`
49
+ `&&(w.value+=" ");const T=P.boxSizing,I=pa(P.paddingBottom)+pa(P.paddingTop),$=pa(P.borderBottomWidth)+pa(P.borderTopWidth),M=w.scrollHeight;w.value="x";const k=w.scrollHeight;let C=M;i&&(C=Math.max(Number(i)*k,C)),s&&(C=Math.min(Number(s)*k,C)),C=Math.max(C,k);const N=C+(T==="border-box"?I+$:0),D=Math.abs(C-M)<=1;return{outerHeightStyle:N,overflowing:D}},[s,i,t.placeholder]),f=Ee(()=>{const S=d.current,w=b();if(!S||!w||vv(w))return!1;const x=w.outerHeightStyle;return h.current!=null&&h.current!==x}),g=O.useCallback(()=>{const S=d.current,w=b();if(!S||!w||vv(w))return;const x=w.outerHeightStyle;h.current!==x&&(h.current=x,S.style.height=`${x}px`),S.style.overflow=w.overflowing?"hidden":""},[b]),v=O.useRef(-1);Mt(()=>{const S=fa(g),w=d?.current;if(!w)return;const x=Dn(w);x.addEventListener("resize",S);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{f()&&(P.unobserve(w),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{P.observe(w)}))}),P.observe(w)),()=>{S.clear(),cancelAnimationFrame(v.current),x.removeEventListener("resize",S),P&&P.disconnect()}},[b,g,f]),Mt(()=>{g()});const y=S=>{u||g();const w=S.target,x=w.value.length,P=w.value.endsWith(`
50
+ `),T=w.selectionStart===x;P&&T&&w.setSelectionRange(x,x),o&&o(S)};return _.jsxs(O.Fragment,{children:[_.jsx("textarea",{value:a,onChange:y,ref:p,rows:i,style:l,...c}),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...ZE.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Sv.propTypes={className:r.string,maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),onChange:r.func,placeholder:r.string,style:r.object,value:r.oneOfType([r.arrayOf(r.string),r.number,r.string])});function gr({props:e,states:t,muiFormControl:n}){return t.reduce((o,s)=>(o[s]=e[s],n&&typeof e[s]>"u"&&(o[s]=n[s]),o),{})}const Zo=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(Zo.displayName="FormControlContext");function un(){return O.useContext(Zo)}const Xe=cE;function xv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ha(e,t=!1){return e&&(xv(e.value)&&e.value!==""||t&&xv(e.defaultValue)&&e.defaultValue!=="")}function t1(e){return e.startAdornment}function n1(e){return Me("MuiInputBase",e)}const dn=De("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var wv;const ma=(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${we(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ya=(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]},r1=e=>{const{classes:t,color:n,disabled:o,error:s,endAdornment:i,focused:l,formControl:a,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:h,startAdornment:m,type:b}=e,f={root:["root",`color${we(n)}`,o&&"disabled",s&&"error",c&&"fullWidth",l&&"focused",a&&"formControl",h&&h!=="medium"&&`size${we(h)}`,d&&"multiline",m&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",b==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return $e(f,n1,t)},ga=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ma})(Xe(({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",[`&.${dn.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%"}}]}))),ba=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ya})(Xe(({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})},o={opacity:"0 !important"},s=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] + .${dn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${dn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Cv=GE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),va=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:l,className:a,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:m,endAdornment:b,error:f,fullWidth:g=!1,id:v,inputComponent:y="input",inputProps:S={},inputRef:w,margin:x,maxRows:P,minRows:T,multiline:I=!1,name:$,onBlur:M,onChange:k,onClick:C,onFocus:N,onKeyDown:D,onKeyUp:j,placeholder:F,readOnly:W,renderSuffix:Y,rows:H,size:L,slotProps:E={},slots:q={},startAdornment:z,type:R="text",value:A,...U}=o,X=S.value!=null?S.value:A,{current:se}=O.useRef(X!=null),te=O.useRef(),J=O.useCallback(Te=>{process.env.NODE_ENV!=="production"&&Te&&Te.nodeName!=="INPUT"&&!Te.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
51
+ `))},[]),B=at(te,w,S.ref,J),[V,Q]=O.useState(!1),G=un();process.env.NODE_ENV!=="production"&&O.useEffect(()=>{if(G)return G.registerEffect()},[G]);const ne=gr({props:o,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=G?G.focused:V,O.useEffect(()=>{!G&&h&&V&&(Q(!1),M&&M())},[G,h,V,M]);const ae=G&&G.onFilled,re=G&&G.onEmpty,ce=O.useCallback(Te=>{ha(Te)?ae&&ae():re&&re()},[ae,re]);Mt(()=>{se&&ce({value:X})},[X,ce,se]);const be=Te=>{N&&N(Te),S.onFocus&&S.onFocus(Te),G&&G.onFocus?G.onFocus(Te):Q(!0)},oe=Te=>{M&&M(Te),S.onBlur&&S.onBlur(Te),G&&G.onBlur?G.onBlur(Te):Q(!1)},fe=(Te,...Le)=>{if(!se){const Ye=Te.target||te.current;if(Ye==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":rr(1));ce({value:Ye.value})}S.onChange&&S.onChange(Te,...Le),k&&k(Te,...Le)};O.useEffect(()=>{ce(te.current)},[]);const ve=Te=>{te.current&&Te.currentTarget===Te.target&&te.current.focus(),C&&C(Te)};let ke=y,je=S;I&&ke==="input"&&(H?(process.env.NODE_ENV!=="production"&&(T||P)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),je={type:void 0,minRows:H,maxRows:H,...je}):je={type:void 0,maxRows:P,minRows:T,...je},ke=Sv);const Ue=Te=>{ce(Te.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};O.useEffect(()=>{G&&G.setAdornedStart(!!z)},[G,z]);const Ve={...o,color:ne.color||"primary",disabled:ne.disabled,endAdornment:b,error:ne.error,focused:ne.focused,formControl:G,fullWidth:g,hiddenLabel:ne.hiddenLabel,multiline:I,size:ne.size,startAdornment:z,type:R},Ze=r1(Ve),Qe=q.root||u.Root||ga,Ae=E.root||d.root||{},Ne=q.input||u.Input||ba;return je={...je,...E.input??d.input},_.jsxs(O.Fragment,{children:[!m&&typeof Cv=="function"&&(wv||(wv=_.jsx(Cv,{}))),_.jsxs(Qe,{...Ae,ref:n,onClick:ve,...U,...!co(Qe)&&{ownerState:{...Ve,...Ae.ownerState}},className:Ce(Ze.root,Ae.className,a,W&&"MuiInputBase-readOnly"),children:[z,_.jsx(Zo.Provider,{value:null,children:_.jsx(Ne,{"aria-invalid":ne.error,"aria-describedby":s,autoComplete:i,autoFocus:l,defaultValue:p,disabled:ne.disabled,id:v,onAnimationStart:Ue,name:$,placeholder:F,readOnly:W,required:ne.required,rows:H,value:X,onKeyDown:D,onKeyUp:j,type:R,...je,...!co(Ne)&&{as:ke,ownerState:{...Ve,...je.ownerState}},ref:B,className:Ce(Ze.input,je.className,W&&"MuiInputBase-readOnly"),onBlur:oe,onChange:fe,onFocus:be})}),b,Y?Y({...ne,startAdornment:z}):null]})]})});process.env.NODE_ENV!=="production"&&(va.propTypes={"aria-describedby":r.string,autoComplete:r.string,autoFocus:r.bool,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),components:r.shape({Input:r.elementType,Root:r.elementType}),componentsProps:r.shape({input:r.object,root:r.object}),defaultValue:r.any,disabled:r.bool,disableInjectingGlobalStyles:r.bool,endAdornment:r.node,error:r.bool,fullWidth:r.bool,id:r.string,inputComponent:da,inputProps:r.object,inputRef:$t,margin:r.oneOf(["dense","none"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,onBlur:r.func,onChange:r.func,onClick:r.func,onFocus:r.func,onInvalid:r.func,onKeyDown:r.func,onKeyUp:r.func,placeholder:r.string,readOnly:r.bool,renderSuffix:r.func,required:r.bool,rows:r.oneOfType([r.number,r.string]),size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({input:r.object,root:r.object}),slots:r.shape({input:r.elementType,root:r.elementType}),startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any});function o1(e){return typeof e.main=="string"}function s1(e,t=[]){if(!o1(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function zt(e=[]){return([,t])=>t&&s1(t,e)}function i1(e){return Me("MuiInput",e)}const br={...dn,...De("MuiInput",["root","underline","input"])},a1=e=>{const{classes:t,disableUnderline:n}=e,s=$e({root:["root",!n&&"underline"],input:["input"]},i1,t);return{...t,...s}},l1=ie(ga,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ma(e,t),!n.disableUnderline&&t.underline]}})(Xe(({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:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.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"},[`&.${br.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${br.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(.${br.disabled}, .${br.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${br.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),c1=ie(ba,{name:"MuiInput",slot:"Input",overridesResolver:ya})({}),Sa=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiInput"}),{disableUnderline:s=!1,components:i={},componentsProps:l,fullWidth:a=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...m}=o,b=a1(o),g={root:{ownerState:{disableUnderline:s}}},v=d??l?Wt(d??l,g):g,y=p.root??i.Root??l1,S=p.input??i.Input??c1;return _.jsx(va,{slots:{root:y,input:S},slotProps:v,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:h,...m,classes:b})});process.env.NODE_ENV!=="production"&&(Sa.propTypes={autoComplete:r.string,autoFocus:r.bool,classes:r.object,color:r.oneOfType([r.oneOf(["primary","secondary"]),r.string]),components:r.shape({Input:r.elementType,Root:r.elementType}),componentsProps:r.shape({input:r.object,root:r.object}),defaultValue:r.any,disabled:r.bool,disableUnderline:r.bool,endAdornment:r.node,error:r.bool,fullWidth:r.bool,id:r.string,inputComponent:r.elementType,inputProps:r.object,inputRef:$t,margin:r.oneOf(["dense","none"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,onChange:r.func,placeholder:r.string,readOnly:r.bool,required:r.bool,rows:r.oneOfType([r.number,r.string]),slotProps:r.shape({input:r.object,root:r.object}),slots:r.shape({input:r.elementType,root:r.elementType}),startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any}),Sa.muiName="Input";function u1(e){return Me("MuiFilledInput",e)}const fn={...dn,...De("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function Ud(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function d1(e){return Me("MuiSvgIcon",e)}De("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const f1=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${we(t)}`,`fontSize${we(n)}`]};return $e(s,d1,o)},p1=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${we(n.color)}`],t[`fontSize${we(n.fontSize)}`]]}})(Xe(({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}}]}))),xa=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:l="inherit",component:a="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...m}=o,b=O.isValidElement(s)&&s.type==="svg",f={...o,color:l,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:b},g={};d||(g.viewBox=h);const v=f1(f);return _.jsxs(p1,{as:a,className:Ce(v.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...g,...m,...b&&s.props,ownerState:f,children:[b?s.props.children:s,p?_.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(xa.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,fontSize:r.oneOfType([r.oneOf(["inherit","large","medium","small"]),r.string]),htmlColor:r.string,inheritViewBox:r.bool,shapeRendering:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleAccess:r.string,viewBox:r.string}),xa.muiName="SvgIcon";function Pt(e,t){function n(o,s){return _.jsx(xa,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=xa.muiName,O.memo(O.forwardRef(n))}function Wd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Pv(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function pn(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=O.useRef(t!==void 0),[l,a]=O.useState(n),c=i?t:l;if(process.env.NODE_ENV!=="production"){O.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
52
+ `))},[s,o,t]);const{current:d}=O.useRef(n);O.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
53
+ `))},[JSON.stringify(n)])}const u=O.useCallback(d=>{i||a(d)},[]);return[c,u]}function h1(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Tv(e,t){if(!e)return t;function n(l,a){const c={};return Object.keys(a).forEach(u=>{h1(u,a[u])&&typeof l[u]=="function"&&(c[u]=(...d)=>{l[u](...d),a[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return l=>{const a=typeof t=="function"?t(l):t,c=typeof e=="function"?e({...l,...a}):e,u=Ce(l?.className,a?.className,c?.className),d=n(c,a);return{...a,...c,...d,...!!u&&{className:u},...a?.style&&c?.style&&{style:{...a.style,...c.style}},...a?.sx&&c?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const o=t,s=n(e,o),i=Ce(o?.className,e?.className);return{...t,...e,...s,...!!i&&{className:i},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const m1=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:s,size:i,hiddenLabel:l,multiline:a}=e,c={root:["root",!n&&"underline",o&&"adornedStart",s&&"adornedEnd",i==="small"&&`size${we(i)}`,l&&"hiddenLabel",a&&"multiline"],input:["input"]},u=$e(c,u1,t);return{...t,...u}},y1=ie(ga,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ma(e,t),!n.disableUnderline&&t.underline]}})(Xe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${fn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${fn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:l})=>!l.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"},[`&.${fn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fn.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(.${fn.disabled}, .${fn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zt()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:a})=>l.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),g1=ie(ba,{name:"MuiFilledInput",slot:"Input",overridesResolver:ya})(Xe(({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}}]}))),wa=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:i={},componentsProps:l,fullWidth:a=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:m="text",...b}=o,f={...o,disableUnderline:s,fullWidth:a,inputComponent:u,multiline:d,type:m},g=m1(o),v={root:{ownerState:f},input:{ownerState:f}},y=p??l?Wt(v,p??l):v,S=h.root??i.Root??y1,w=h.input??i.Input??g1;return _.jsx(va,{slots:{root:S,input:w},slotProps:y,fullWidth:a,inputComponent:u,multiline:d,ref:n,type:m,...b,classes:g})});process.env.NODE_ENV!=="production"&&(wa.propTypes={autoComplete:r.string,autoFocus:r.bool,classes:r.object,color:r.oneOfType([r.oneOf(["primary","secondary"]),r.string]),components:r.shape({Input:r.elementType,Root:r.elementType}),componentsProps:r.shape({input:r.object,root:r.object}),defaultValue:r.any,disabled:r.bool,disableUnderline:r.bool,endAdornment:r.node,error:r.bool,fullWidth:r.bool,hiddenLabel:r.bool,id:r.string,inputComponent:r.elementType,inputProps:r.object,inputRef:$t,margin:r.oneOf(["dense","none"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,onChange:r.func,placeholder:r.string,readOnly:r.bool,required:r.bool,rows:r.oneOfType([r.number,r.string]),slotProps:r.shape({input:r.object,root:r.object}),slots:r.shape({input:r.elementType,root:r.elementType}),startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any}),wa.muiName="Input";var Ov;const b1=ie("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})({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%"}),v1=ie("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})(Xe(({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 Ev(e){const{children:t,classes:n,className:o,label:s,notched:i,...l}=e,a=s!=null&&s!=="",c={...e,notched:i,withLabel:a};return _.jsx(b1,{"aria-hidden":!0,className:o,ownerState:c,...l,children:_.jsx(v1,{ownerState:c,children:a?_.jsx("span",{children:s}):Ov||(Ov=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Ev.propTypes={children:r.node,classes:r.object,className:r.string,label:r.node,notched:r.bool.isRequired,style:r.object});function S1(e){return Me("MuiOutlinedInput",e)}const Sn={...dn,...De("MuiOutlinedInput",["root","notchedOutline","input"])};function kv(e,t,n){return e===void 0||co(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function xn(e,t,n){return typeof e=="function"?e(t,n):e}function _v(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Rv(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 Iv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const m=Ce(n?.className,i,s?.className,o?.className),b={...n?.style,...s?.style,...o?.style},f={...n,...s,...o};return m.length>0&&(f.className=m),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const l=_v({...s,...o}),a=Rv(o),c=Rv(s),u=t(l),d=Ce(u?.className,n?.className,i,s?.className,o?.className),p={...u?.style,...n?.style,...s?.style,...o?.style},h={...u,...n,...c,...a};return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:u.ref}}function ot(e,t){const{className:n,elementType:o,ownerState:s,externalForwardedProps:i,internalForwardedProps:l,shouldForwardComponentProp:a=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...h}=i,m=d[e]||o,b=xn(p[e],s),{props:{component:f,...g},internalRef:v}=Iv({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:b}),y=at(v,b?.ref,t.ref),S=e==="root"?f||u:f,w=kv(m,{...e==="root"&&!u&&!d[e]&&l,...e!=="root"&&!d[e]&&l,...g,...S&&!a&&{as:S},...S&&a&&{component:S},ref:y},s);return[m,w]}const x1=e=>{const{classes:t}=e,o=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},S1,t);return{...t,...o}},w1=ie(ga,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ma})(Xe(({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 .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Sn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Sn.focused} .${Sn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(zt()).map(([n])=>({props:{color:n},style:{[`&.${Sn.focused} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Sn.error} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Sn.disabled} .${Sn.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:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),C1=ie(Ev,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Xe(({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}})),P1=ie(ba,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ya})(Xe(({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}}]}))),Ca=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:i=!1,inputComponent:l="input",label:a,multiline:c=!1,notched:u,slots:d={},slotProps:p={},type:h="text",...m}=o,b=x1(o),f=un(),g=gr({props:o,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...o,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:f,fullWidth:i,hiddenLabel:g.hiddenLabel,multiline:c,size:g.size,type:h},y=d.root??s.Root??w1,S=d.input??s.Input??P1,[w,x]=ot("notchedOutline",{elementType:C1,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:a!=null&&a!==""&&g.required?_.jsxs(O.Fragment,{children:[a," ","*"]}):a}});return _.jsx(va,{slots:{root:y,input:S},slotProps:p,renderSuffix:P=>_.jsx(w,{...x,notched:typeof u<"u"?u:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:i,inputComponent:l,multiline:c,ref:n,type:h,...m,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Ca.propTypes={autoComplete:r.string,autoFocus:r.bool,classes:r.object,color:r.oneOfType([r.oneOf(["primary","secondary"]),r.string]),components:r.shape({Input:r.elementType,Root:r.elementType}),defaultValue:r.any,disabled:r.bool,endAdornment:r.node,error:r.bool,fullWidth:r.bool,id:r.string,inputComponent:r.elementType,inputProps:r.object,inputRef:$t,label:r.node,margin:r.oneOf(["dense","none"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,notched:r.bool,onChange:r.func,placeholder:r.string,readOnly:r.bool,required:r.bool,rows:r.oneOfType([r.number,r.string]),slotProps:r.shape({input:r.object,notchedOutline:r.oneOfType([r.func,r.object]),root:r.object}),slots:r.shape({input:r.elementType,notchedOutline:r.elementType,root:r.elementType}),startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any}),Ca.muiName="Input";function T1(e){return Me("MuiFormLabel",e)}const es=De("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),O1=e=>{const{classes:t,color:n,focused:o,disabled:s,error:i,filled:l,required:a}=e,c={root:["root",`color${we(n)}`,s&&"disabled",i&&"error",l&&"filled",o&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return $e(c,T1,t)},E1=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Xe(({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(zt()).map(([t])=>({props:{color:t},style:{[`&.${es.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${es.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${es.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),k1=ie("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xe(({theme:e})=>({[`&.${es.error}`]:{color:(e.vars||e).palette.error.main}}))),vr=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFormLabel"}),{children:s,className:i,color:l,component:a="label",disabled:c,error:u,filled:d,focused:p,required:h,...m}=o,b=un(),f=gr({props:o,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),g={...o,color:f.color||"primary",component:a,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},v=O1(g);return _.jsxs(E1,{as:a,ownerState:g,className:Ce(v.root,i),ref:n,...m,children:[s,f.required&&_.jsxs(k1,{ownerState:g,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(vr.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function _1(e){return Me("MuiInputLabel",e)}De("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const R1=e=>{const{classes:t,formControl:n,size:o,shrink:s,disableAnimation:i,variant:l,required:a}=e,c={root:["root",n&&"formControl",!i&&"animated",s&&"shrink",o&&o!=="medium"&&`size${we(o)}`,l],asterisk:[a&&"asterisk"]},u=$e(c,_1,t);return{...t,...u}},I1=ie(vr,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${es.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]]}})(Xe(({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:o})=>t==="filled"&&n.shrink&&o==="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)"}}]}))),ts=O.forwardRef(function(t,n){const o=Je({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:l,variant:a,className:c,...u}=o,d=un();let p=l;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=gr({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),m={...o,disableAnimation:s,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},b=R1(m);return _.jsx(I1,{"data-shrink":p,ref:n,className:Ce(b.root,c),...u,ownerState:m,classes:b})});process.env.NODE_ENV!=="production"&&(ts.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),disableAnimation:r.bool,disabled:r.bool,error:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,shrink:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function $1(e){return Me("MuiFormControl",e)}De("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const D1=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${we(n)}`,o&&"fullWidth"]};return $e(s,$1,t)},M1=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${we(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%"}}]}),Vr=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFormControl"}),{children:s,className:i,color:l="primary",component:a="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:m="none",required:b=!1,size:f="medium",variant:g="outlined",...v}=o,y={...o,color:l,component:a,disabled:c,error:u,fullWidth:p,hiddenLabel:h,margin:m,required:b,size:f,variant:g},S=D1(y),[w,x]=O.useState(()=>{let F=!1;return s&&O.Children.forEach(s,W=>{if(!Ko(W,["Input","Select"]))return;const Y=Ko(W,["Select"])?W.props.input:W;Y&&t1(Y.props)&&(F=!0)}),F}),[P,T]=O.useState(()=>{let F=!1;return s&&O.Children.forEach(s,W=>{Ko(W,["Input","Select"])&&(ha(W.props,!0)||ha(W.props.inputProps,!0))&&(F=!0)}),F}),[I,$]=O.useState(!1);c&&I&&$(!1);const M=d!==void 0&&!c?d:I;let k;const C=O.useRef(!1);process.env.NODE_ENV!=="production"&&(k=()=>(C.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
54
+ `)),C.current=!0,()=>{C.current=!1}));const N=O.useCallback(()=>{T(!0)},[]),D=O.useCallback(()=>{T(!1)},[]),j=O.useMemo(()=>({adornedStart:w,setAdornedStart:x,color:l,disabled:c,error:u,filled:P,focused:M,fullWidth:p,hiddenLabel:h,size:f,onBlur:()=>{$(!1)},onFocus:()=>{$(!0)},onEmpty:D,onFilled:N,registerEffect:k,required:b,variant:g}),[w,l,c,u,P,M,p,h,k,D,N,b,f,g]);return _.jsx(Zo.Provider,{value:j,children:_.jsx(M1,{as:a,ownerState:y,className:Ce(S.root,i),ref:n,...v,children:s})})});process.env.NODE_ENV!=="production"&&(Vr.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,focused:r.bool,fullWidth:r.bool,hiddenLabel:r.bool,margin:r.oneOf(["dense","none","normal"]),required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function N1(e){return Me("MuiFormHelperText",e)}const $v=De("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Dv;const j1=e=>{const{classes:t,contained:n,size:o,disabled:s,error:i,filled:l,focused:a,required:c}=e,u={root:["root",s&&"disabled",i&&"error",o&&`size${we(o)}`,n&&"contained",a&&"focused",l&&"filled",c&&"required"]};return $e(u,N1,t)},A1=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${we(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$v.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$v.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}}]}))),uo=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFormHelperText"}),{children:s,className:i,component:l="p",disabled:a,error:c,filled:u,focused:d,margin:p,required:h,variant:m,...b}=o,f=un(),g=gr({props:o,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),v={...o,component:l,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete v.ownerState;const y=j1(v);return _.jsx(A1,{as:l,className:Ce(y.root,i),ref:n,...b,ownerState:v,children:s===" "?Dv||(Dv=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});process.env.NODE_ENV!=="production"&&(uo.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function ns(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}var Pa={exports:{}},Tt={};var Mv;function F1(){if(Mv)return Tt;Mv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var g=f.$$typeof;switch(g){case e:switch(f=f.type,f){case n:case s:case o:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case l:case a:case p:case d:return f;case i:return f;default:return g}}case t:return g}}}return Tt.ContextConsumer=i,Tt.ContextProvider=l,Tt.Element=e,Tt.ForwardRef=a,Tt.Fragment=n,Tt.Lazy=p,Tt.Memo=d,Tt.Portal=t,Tt.Profiler=s,Tt.StrictMode=o,Tt.Suspense=c,Tt.SuspenseList=u,Tt.isContextConsumer=function(f){return b(f)===i},Tt.isContextProvider=function(f){return b(f)===l},Tt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Tt.isForwardRef=function(f){return b(f)===a},Tt.isFragment=function(f){return b(f)===n},Tt.isLazy=function(f){return b(f)===p},Tt.isMemo=function(f){return b(f)===d},Tt.isPortal=function(f){return b(f)===t},Tt.isProfiler=function(f){return b(f)===s},Tt.isStrictMode=function(f){return b(f)===o},Tt.isSuspense=function(f){return b(f)===c},Tt.isSuspenseList=function(f){return b(f)===u},Tt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===l||f.$$typeof===i||f.$$typeof===a||f.$$typeof===m||f.getModuleId!==void 0)},Tt.typeOf=b,Tt}var Ot={};var Nv;function V1(){return Nv||(Nv=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var g=f.$$typeof;switch(g){case t:switch(f=f.type,f){case o:case i:case s:case u:case d:case m:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case h:case p:return f;case l:return f;default:return g}}case n:return g}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Ot.ContextConsumer=l,Ot.ContextProvider=a,Ot.Element=t,Ot.ForwardRef=c,Ot.Fragment=o,Ot.Lazy=h,Ot.Memo=p,Ot.Portal=n,Ot.Profiler=i,Ot.StrictMode=s,Ot.Suspense=u,Ot.SuspenseList=d,Ot.isContextConsumer=function(f){return e(f)===l},Ot.isContextProvider=function(f){return e(f)===a},Ot.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ot.isForwardRef=function(f){return e(f)===c},Ot.isFragment=function(f){return e(f)===o},Ot.isLazy=function(f){return e(f)===h},Ot.isMemo=function(f){return e(f)===p},Ot.isPortal=function(f){return e(f)===n},Ot.isProfiler=function(f){return e(f)===i},Ot.isStrictMode=function(f){return e(f)===s},Ot.isSuspense=function(f){return e(f)===u},Ot.isSuspenseList=function(f){return e(f)===d},Ot.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===i||f===s||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===a||f.$$typeof===l||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},Ot.typeOf=e})()),Ot}var jv;function L1(){return jv||(jv=1,process.env.NODE_ENV==="production"?Pa.exports=F1():Pa.exports=V1()),Pa.exports}var Ta=L1();function ir(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=e[t],l=s||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}function st(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,l=s?{}:xn(n,o),{props:a,internalRef:c}=Iv({...i,externalSlotProps:l}),u=at(c,l?.ref,e.additionalProps?.ref);return kv(t,{...a,ref:u},o)}const Sr=O.createContext({});process.env.NODE_ENV!=="production"&&(Sr.displayName="ListContext");function B1(e){return Me("MuiList",e)}De("MuiList",["root","padding","dense","subheader"]);const q1=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return $e({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},B1,t)},z1=ie("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}}]}),Hd=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiList"}),{children:s,className:i,component:l="ul",dense:a=!1,disablePadding:c=!1,subheader:u,...d}=o,p=O.useMemo(()=>({dense:a}),[a]),h={...o,component:l,dense:a,disablePadding:c},m=q1(h);return _.jsx(Sr.Provider,{value:p,children:_.jsxs(z1,{as:l,className:Ce(m.root,i),ref:n,ownerState:h,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(Hd.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function fo(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Av(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Yd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Vv(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 rs(e,t,n,o,s,i){let l=!1,a=s(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const c=o?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Vv(a,i)||c)a=s(e,a,n);else return a.focus(),!0}return!1}const Oa=O.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:i=!1,children:l,className:a,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...h}=t,m=O.useRef(null),b=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mt(()=>{s&&m.current.focus()},[s]),O.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(S,{direction:w})=>{const x=!m.current.style.width;if(S.clientHeight<m.current.clientHeight&&x){const P=`${Av(Dn(S))}px`;m.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=P,m.current.style.width=`calc(100% + ${P})`}return m.current}}),[]);const f=S=>{const w=m.current,x=S.key;if(S.ctrlKey||S.metaKey||S.altKey){d&&d(S);return}const T=fo(Lt(w));if(x==="ArrowDown")S.preventDefault(),rs(w,T,u,c,Yd);else if(x==="ArrowUp")S.preventDefault(),rs(w,T,u,c,Fv);else if(x==="Home")S.preventDefault(),rs(w,null,u,c,Yd);else if(x==="End")S.preventDefault(),rs(w,null,u,c,Fv);else if(x.length===1){const I=b.current,$=x.toLowerCase(),M=performance.now();I.keys.length>0&&(M-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&$!==I.keys[0]&&(I.repeating=!1)),I.lastTime=M,I.keys.push($);const k=T&&!I.repeating&&Vv(T,I);I.previousKeyMatched&&(k||rs(w,T,!1,c,Yd,I))?S.preventDefault():I.previousKeyMatched=!1}d&&d(S)},g=at(m,n);let v=-1;O.Children.forEach(l,(S,w)=>{if(!O.isValidElement(S)){v===w&&(v+=1,v>=l.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Ta.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
55
+ `)),S.props.disabled||(p==="selectedMenu"&&S.props.selected||v===-1)&&(v=w),v===w&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(v+=1,v>=l.length&&(v=-1))});const y=O.Children.map(l,(S,w)=>{if(w===v){const x={};return i&&(x.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(x.tabIndex=0),O.cloneElement(S,x)}return S});return _.jsx(Hd,{role:"menu",ref:g,className:a,onKeyDown:f,tabIndex:s?0:-1,...h,children:y})});process.env.NODE_ENV!=="production"&&(Oa.propTypes={autoFocus:r.bool,autoFocusItem:r.bool,children:r.node,className:r.string,disabledItemsFocusable:r.bool,disableListWrap:r.bool,onKeyDown:r.func,variant:r.oneOf(["menu","selectedMenu"])});function U1(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Lv(e,t,n,o){const s=e[t];if(s==null||!Number.isInteger(s)){const i=U1(s);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Bv(e,t,n,o){return e[t]===void 0?null:Lv(e,t,n,o)}function Kd(){return null}Bv.isRequired=Lv,Kd.isRequired=Kd;const Gd=process.env.NODE_ENV==="production"?Kd:Bv,qv={};function zv(e,t){const n=O.useRef(qv);return n.current===qv&&(n.current=e(t)),n}const W1=[];function H1(e){O.useEffect(e,W1)}class Xd{static create(){return new Xd}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 xr(){const e=zv(Xd.create).current;return H1(e.disposeEffect),e}function Y1(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Uv(e,t,n,o,s){const i=e[t],l=s||t;if(i==null||typeof window>"u")return null;let a;const c=i.type;return typeof c=="function"&&!Y1(c)&&(a="Did you accidentally use a plain function component for an element instead?"),a!==void 0?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const os=vn(r.element,Uv);os.isRequired=vn(r.element.isRequired,Uv);function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},K.apply(null,arguments)}function qe(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Qd(e,t){return Qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Qd(e,t)}function Jd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qd(e,t)}function K1(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function G1(e,t){e.classList?e.classList.add(t):K1(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Wv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function X1(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Wv(e.className,t):e.setAttribute("class",Wv(e.className&&e.className.baseVal||"",t))}const Hv={disabled:!1};var Q1=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.shape({enter:r.number,exit:r.number,appear:r.number}).isRequired]):null,J1=process.env.NODE_ENV!=="production"?r.oneOfType([r.string,r.shape({enter:r.string,exit:r.string,active:r.string}),r.shape({enter:r.string,enterDone:r.string,enterActive:r.string,exit:r.string,exitDone:r.string,exitActive:r.string})]):null;const Ea=Ge.createContext(null);var Yv=function(t){return t.scrollTop},ss="unmounted",Lr="exited",Br="entering",po="entered",Zd="exiting",wn=(function(e){Jd(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var l=s,a=l&&!l.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?a?(c=Lr,i.appearStatus=Br):c=po:o.unmountOnExit||o.mountOnEnter?c=ss:c=Lr,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var l=s.in;return l&&i.status===ss?{status:Lr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==Br&&l!==po&&(i=Br):(l===Br||l===po)&&(i=Zd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i,l,a;return i=l=a=s,s!=null&&typeof s!="number"&&(i=s.exit,l=s.enter,a=s.appear!==void 0?s.appear:l),{exit:i,enter:l,appear:a}},n.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===Br){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Io.findDOMNode(this);l&&Yv(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Lr&&this.setState({status:ss})},n.performEnter=function(s){var i=this,l=this.props.enter,a=this.context?this.context.isMounting:s,c=this.props.nodeRef?[a]:[Io.findDOMNode(this),a],u=c[0],d=c[1],p=this.getTimeouts(),h=a?p.appear:p.enter;if(!s&&!l||Hv.disabled){this.safeSetState({status:po},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Br},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:po},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var s=this,i=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:Io.findDOMNode(this);if(!i||Hv.disabled){this.safeSetState({status:Lr},function(){s.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Zd},function(){s.props.onExiting(a),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:Lr},function(){s.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,l=!0;return this.nextCallback=function(a){l&&(l=!1,i.nextCallback=null,s(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:Io.findDOMNode(this),a=s==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===ss)return null;var i=this.props,l=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=qe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ge.createElement(Ea.Provider,{value:null},typeof l=="function"?l(s,a):Ge.cloneElement(Ge.Children.only(l),a))},t})(Ge.Component);wn.contextType=Ea,wn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:r.shape({current:typeof Element>"u"?r.any:function(e,t,n,o,s,i){var l=e[t];return r.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,o,s,i)}}),children:r.oneOfType([r.func.isRequired,r.element.isRequired]).isRequired,in:r.bool,mountOnEnter:r.bool,unmountOnExit:r.bool,appear:r.bool,enter:r.bool,exit:r.bool,timeout:function(t){var n=Q1;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];return n.apply(void 0,[t].concat(s))},addEndListener:r.func,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}:{};function ho(){}wn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ho,onEntering:ho,onEntered:ho,onExit:ho,onExiting:ho,onExited:ho},wn.UNMOUNTED=ss,wn.EXITED=Lr,wn.ENTERING=Br,wn.ENTERED=po,wn.EXITING=Zd;var Z1=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return G1(t,o)})},ef=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return X1(t,o)})},tf=(function(e){Jd(t,e);function t(){for(var o,s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(a,c){var u=o.resolveArguments(a,c),d=u[0],p=u[1];o.removeClasses(d,"exit"),o.addClass(d,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(a,c)},o.onEntering=function(a,c){var u=o.resolveArguments(a,c),d=u[0],p=u[1],h=p?"appear":"enter";o.addClass(d,h,"active"),o.props.onEntering&&o.props.onEntering(a,c)},o.onEntered=function(a,c){var u=o.resolveArguments(a,c),d=u[0],p=u[1],h=p?"appear":"enter";o.removeClasses(d,h),o.addClass(d,h,"done"),o.props.onEntered&&o.props.onEntered(a,c)},o.onExit=function(a){var c=o.resolveArguments(a),u=c[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(a)},o.onExiting=function(a){var c=o.resolveArguments(a),u=c[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(a)},o.onExited=function(a){var c=o.resolveArguments(a),u=c[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(a)},o.resolveArguments=function(a,c){return o.props.nodeRef?[o.props.nodeRef.current,a]:[a,c]},o.getClassNames=function(a){var c=o.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",p=u?""+d+a:c[a],h=u?p+"-active":c[a+"Active"],m=u?p+"-done":c[a+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:m}},o}var n=t.prototype;return n.addClass=function(s,i,l){var a=this.getClassNames(i)[l+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;i==="appear"&&l==="done"&&u&&(a+=" "+u),l==="active"&&s&&Yv(s),a&&(this.appliedClasses[i][l]=a,Z1(s,a))},n.removeClasses=function(s,i){var l=this.appliedClasses[i],a=l.base,c=l.active,u=l.done;this.appliedClasses[i]={},a&&ef(s,a),c&&ef(s,c),u&&ef(s,u)},n.render=function(){var s=this.props;s.classNames;var i=qe(s,["classNames"]);return Ge.createElement(wn,K({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(Ge.Component);tf.defaultProps={classNames:""},tf.propTypes=process.env.NODE_ENV!=="production"?K({},wn.propTypes,{classNames:J1,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}):{};function ek(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nf(e,t){var n=function(i){return t&&Ge.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Ge.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=n(s)}),o}function tk(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),s=[];for(var i in e)i in t?s.length&&(o[i]=s,s=[]):s.push(i);var l,a={};for(var c in t){if(o[c])for(l=0;l<o[c].length;l++){var u=o[c][l];a[o[c][l]]=n(u)}a[c]=n(c)}for(l=0;l<s.length;l++)a[s[l]]=n(s[l]);return a}function qr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function nk(e,t){return nf(e.children,function(n){return Ge.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:qr(n,"appear",e),enter:qr(n,"enter",e),exit:qr(n,"exit",e)})})}function rk(e,t,n){var o=nf(e.children),s=tk(t,o);return Object.keys(s).forEach(function(i){var l=s[i];if(Ge.isValidElement(l)){var a=i in t,c=i in o,u=t[i],d=Ge.isValidElement(u)&&!u.props.in;c&&(!a||d)?s[i]=Ge.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:qr(l,"exit",e),enter:qr(l,"enter",e)}):!c&&a&&!d?s[i]=Ge.cloneElement(l,{in:!1}):c&&a&&Ge.isValidElement(u)&&(s[i]=Ge.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:qr(l,"exit",e),enter:qr(l,"enter",e)}))}}),s}var ok=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},sk={component:"div",childFactory:function(t){return t}},is=(function(e){Jd(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var l=i.handleExited.bind(ek(i));return i.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},i}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(s,i){var l=i.children,a=i.handleExited,c=i.firstRender;return{children:c?nk(s,a):rk(s,l,a),firstRender:!1}},n.handleExited=function(s,i){var l=nf(this.props.children);s.key in l||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(a){var c=K({},a.children);return delete c[s.key],{children:c}}))},n.render=function(){var s=this.props,i=s.component,l=s.childFactory,a=qe(s,["component","childFactory"]),c=this.state.contextValue,u=ok(this.state.children).map(l);return delete a.appear,delete a.enter,delete a.exit,i===null?Ge.createElement(Ea.Provider,{value:c},u):Ge.createElement(Ea.Provider,{value:c},Ge.createElement(i,a,u))},t})(Ge.Component);is.propTypes=process.env.NODE_ENV!=="production"?{component:r.any,children:r.node,appear:r.bool,enter:r.bool,exit:r.bool,childFactory:r.func}:{},is.defaultProps=sk;const Kv=e=>e.scrollTop;function ka(e,t){const{timeout:n,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:s.transitionDelay}}function rf(e){return`scale(${e}, ${e**2})`}const ik={entering:{opacity:1,transform:rf(1)},entered:{opacity:1,transform:"none"}},of=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),as=O.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:i,easing:l,in:a,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:m,style:b,timeout:f="auto",TransitionComponent:g=wn,...v}=t,y=xr(),S=O.useRef(),w=Fr(),x=O.useRef(null),P=at(x,ns(i),n),T=j=>F=>{if(j){const W=x.current;F===void 0?j(W):j(W,F)}},I=T(d),$=T((j,F)=>{Kv(j);const{duration:W,delay:Y,easing:H}=ka({style:b,timeout:f,easing:l},{mode:"enter"});let L;f==="auto"?(L=w.transitions.getAutoHeightDuration(j.clientHeight),S.current=L):L=W,j.style.transition=[w.transitions.create("opacity",{duration:L,delay:Y}),w.transitions.create("transform",{duration:of?L:L*.666,delay:Y,easing:H})].join(","),c&&c(j,F)}),M=T(u),k=T(m),C=T(j=>{const{duration:F,delay:W,easing:Y}=ka({style:b,timeout:f,easing:l},{mode:"exit"});let H;f==="auto"?(H=w.transitions.getAutoHeightDuration(j.clientHeight),S.current=H):H=F,j.style.transition=[w.transitions.create("opacity",{duration:H,delay:W}),w.transitions.create("transform",{duration:of?H:H*.666,delay:of?W:W||H*.333,easing:Y})].join(","),j.style.opacity=0,j.style.transform=rf(.75),p&&p(j)}),N=T(h),D=j=>{f==="auto"&&y.start(S.current||0,j),o&&o(x.current,j)};return _.jsx(g,{appear:s,in:a,nodeRef:x,onEnter:$,onEntered:M,onEntering:I,onExit:C,onExited:N,onExiting:k,addEndListener:D,timeout:f==="auto"?null:f,...v,children:(j,{ownerState:F,...W})=>O.cloneElement(i,{style:{opacity:0,transform:rf(.75),visibility:j==="exited"&&!a?"hidden":void 0,...ik[j],...b,...i.props.style},ref:P,...W})})});process.env.NODE_ENV!=="production"&&(as.propTypes={addEndListener:r.func,appear:r.bool,children:os.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])}),as&&(as.muiSupportAuto=!0);function ak(e){const t=Lt(e);return t.body===e?Dn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ls(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gv(e){return parseFloat(Dn(e).getComputedStyle(e).paddingRight)||0}function lk(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Xv(e,t,n,o,s){const i=[t,n,...o];[].forEach.call(e.children,l=>{const a=!i.includes(l),c=!lk(l);a&&c&&ls(l,s)})}function sf(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function ck(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(ak(o)){const l=Av(Dn(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Gv(o)+l}px`;const a=Lt(o).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Gv(c)+l}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Lt(o).body;else{const l=o.parentElement,a=Dn(o);i=l?.nodeName==="HTML"&&a.getComputedStyle(l).overflowY==="scroll"?l:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:l,property:a})=>{i?l.style.setProperty(a,i):l.style.removeProperty(a)})}}function uk(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class dk{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&ls(t.modalRef,!1);const s=uk(n);Xv(n,t.mount,t.modalRef,s,!0);const i=sf(this.containers,l=>l.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=sf(this.containers,i=>i.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=ck(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=sf(this.containers,l=>l.modals.includes(t)),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&ls(t.modalRef,n),Xv(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=i.modals[i.modals.length-1];l.modalRef&&ls(l.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const fk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pk(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 hk(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function mk(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||hk(e))}function yk(e){const t=[],n=[];return Array.from(e.querySelectorAll(fk)).forEach((o,s)=>{const i=pk(o);i===-1||!mk(o)||(i===0?t.push(o):n.push({documentOrder:s,tabIndex:i,node:o}))}),n.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function gk(){return!0}function cs(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:i=yk,isEnabled:l=gk,open:a}=e,c=O.useRef(!1),u=O.useRef(null),d=O.useRef(null),p=O.useRef(null),h=O.useRef(null),m=O.useRef(!1),b=O.useRef(null),f=at(ns(t),b),g=O.useRef(null);O.useEffect(()=>{!a||!b.current||(m.current=!n)},[n,a]),O.useEffect(()=>{if(!a||!b.current)return;const S=Lt(b.current),w=fo(S);return b.current.contains(w)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
56
+ `)),b.current.setAttribute("tabIndex","-1")),m.current&&b.current.focus()),()=>{s||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[a]),O.useEffect(()=>{if(!a||!b.current)return;const S=Lt(b.current),w=T=>{if(g.current=T,o||!l()||T.key!=="Tab")return;fo(S)===b.current&&T.shiftKey&&(c.current=!0,d.current&&d.current.focus())},x=()=>{const T=b.current;if(T===null)return;const I=fo(S);if(!S.hasFocus()||!l()||c.current){c.current=!1;return}if(T.contains(I)||o&&I!==u.current&&I!==d.current)return;if(I!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let $=[];if((I===u.current||I===d.current)&&($=i(b.current)),$.length>0){const M=!!(g.current?.shiftKey&&g.current?.key==="Tab"),k=$[0],C=$[$.length-1];typeof k!="string"&&typeof C!="string"&&(M?C.focus():k.focus())}else T.focus()};S.addEventListener("focusin",x),S.addEventListener("keydown",w,!0);const P=setInterval(()=>{const T=fo(S);T&&T.tagName==="BODY"&&x()},50);return()=>{clearInterval(P),S.removeEventListener("focusin",x),S.removeEventListener("keydown",w,!0)}},[n,o,s,l,a,i]);const v=S=>{p.current===null&&(p.current=S.relatedTarget),m.current=!0,h.current=S.target;const w=t.props.onFocus;w&&w(S)},y=S=>{p.current===null&&(p.current=S.relatedTarget),m.current=!0};return _.jsxs(O.Fragment,{children:[_.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:f,onFocus:v}),_.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(cs.propTypes={children:os,disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableRestoreFocus:r.bool,getTabbable:r.func,isEnabled:r.func,open:r.bool.isRequired}),process.env.NODE_ENV!=="production"&&(cs.propTypes=tv(cs.propTypes));function bk(e){return typeof e=="function"?e():e}const us=O.forwardRef(function(t,n){const{children:o,container:s,disablePortal:i=!1}=t,[l,a]=O.useState(null),c=at(O.isValidElement(o)?ns(o):null,n);if(Mt(()=>{i||a(bk(s)||document.body)},[s,i]),Mt(()=>{if(l&&!i)return Wd(n,l),()=>{Wd(n,null)}},[n,l,i]),i){if(O.isValidElement(o)){const u={ref:c};return O.cloneElement(o,u)}return o}return l&&Sw.createPortal(o,l)});process.env.NODE_ENV!=="production"&&(us.propTypes={children:r.node,container:r.oneOfType([ir,r.func]),disablePortal:r.bool}),process.env.NODE_ENV!=="production"&&(us.propTypes=tv(us.propTypes));const vk={entering:{opacity:1},entered:{opacity:1}},wr=O.forwardRef(function(t,n){const o=Fr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:m,onExited:b,onExiting:f,style:g,timeout:v=s,TransitionComponent:y=wn,...S}=t,w=O.useRef(null),x=at(w,ns(a),n),P=D=>j=>{if(D){const F=w.current;j===void 0?D(F):D(F,j)}},T=P(h),I=P((D,j)=>{Kv(D);const F=ka({style:g,timeout:v,easing:c},{mode:"enter"});D.style.webkitTransition=o.transitions.create("opacity",F),D.style.transition=o.transitions.create("opacity",F),d&&d(D,j)}),$=P(p),M=P(f),k=P(D=>{const j=ka({style:g,timeout:v,easing:c},{mode:"exit"});D.style.webkitTransition=o.transitions.create("opacity",j),D.style.transition=o.transitions.create("opacity",j),m&&m(D)}),C=P(b),N=D=>{i&&i(w.current,D)};return _.jsx(y,{appear:l,in:u,nodeRef:w,onEnter:I,onEntered:$,onEntering:T,onExit:k,onExited:C,onExiting:M,addEndListener:N,timeout:v,...S,children:(D,{ownerState:j,...F})=>O.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!u?"hidden":void 0,...vk[D],...g,...a.props.style},ref:x,...F})})});process.env.NODE_ENV!=="production"&&(wr.propTypes={addEndListener:r.func,appear:r.bool,children:os.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function Sk(e){return Me("MuiBackdrop",e)}De("MuiBackdrop",["root","invisible"]);const xk=e=>{const{classes:t,invisible:n}=e;return $e({root:["root",n&&"invisible"]},Sk,t)},wk=ie("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"}}]}),af=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiBackdrop"}),{children:s,className:i,component:l="div",invisible:a=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:m,transitionDuration:b,...f}=o,g={...o,component:l,invisible:a},v=xk(g),y={transition:m,root:u.Root,...h},S={...d,...p},w={component:l,slots:y,slotProps:S},[x,P]=ot("root",{elementType:wk,externalForwardedProps:w,className:Ce(v.root,i),ownerState:g}),[T,I]=ot("transition",{elementType:wr,externalForwardedProps:w,ownerState:g});return _.jsx(T,{in:c,timeout:b,...f,...I,children:_.jsx(x,{"aria-hidden":!0,...P,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(af.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),invisible:r.bool,open:r.bool.isRequired,slotProps:r.shape({root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function Ck(e){return typeof e=="function"?e():e}function Pk(e){return e?e.props.hasOwnProperty("in"):!1}const Qv=()=>{},_a=new dk;function Tk(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:a,onClose:c,open:u,rootRef:d}=e,p=O.useRef({}),h=O.useRef(null),m=O.useRef(null),b=at(m,d),[f,g]=O.useState(!u),v=Pk(a);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const S=()=>Lt(h.current),w=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),x=()=>{_a.mount(w(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},P=Ee(()=>{const j=Ck(t)||S().body;_a.add(w(),j),m.current&&x()}),T=()=>_a.isTopModal(w()),I=Ee(j=>{h.current=j,j&&(u&&T()?x():m.current&&ls(m.current,y))}),$=O.useCallback(()=>{_a.remove(w(),y)},[y]);O.useEffect(()=>()=>{$()},[$]),O.useEffect(()=>{u?P():(!v||!s)&&$()},[u,$,v,s,P]);const M=j=>F=>{j.onKeyDown?.(F),!(F.key!=="Escape"||F.which===229||!T())&&(n||(F.stopPropagation(),c&&c(F,"escapeKeyDown")))},k=j=>F=>{j.onClick?.(F),F.target===F.currentTarget&&c&&c(F,"backdropClick")};return{getRootProps:(j={})=>{const F=_v(e);delete F.onTransitionEnter,delete F.onTransitionExited;const W={...F,...j};return{role:"presentation",...W,onKeyDown:M(W),ref:b}},getBackdropProps:(j={})=>{const F=j;return{"aria-hidden":!0,...F,onClick:k(F),open:u}},getTransitionProps:()=>{const j=()=>{g(!1),i&&i()},F=()=>{g(!0),l&&l(),s&&$()};return{onEnter:Ud(j,a?.props.onEnter??Qv),onExited:Ud(F,a?.props.onExited??Qv)}},rootRef:b,portalRef:I,isTopModal:T,exited:f,hasTransition:v}}function Ok(e){return Me("MuiModal",e)}De("MuiModal",["root","hidden","backdrop"]);const Ek=e=>{const{open:t,exited:n,classes:o}=e;return $e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ok,o)},kk=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Xe(({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"}}]}))),_k=ie(af,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),lf=O.forwardRef(function(t,n){const o=Je({name:"MuiModal",props:t}),{BackdropComponent:s=_k,BackdropProps:i,classes:l,className:a,closeAfterTransition:c=!1,children:u,container:d,component:p,components:h={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:g=!1,disablePortal:v=!1,disableRestoreFocus:y=!1,disableScrollLock:S=!1,hideBackdrop:w=!1,keepMounted:x=!1,onClose:P,onTransitionEnter:T,onTransitionExited:I,open:$,slotProps:M={},slots:k={},theme:C,...N}=o,D={...o,closeAfterTransition:c,disableAutoFocus:b,disableEnforceFocus:f,disableEscapeKeyDown:g,disablePortal:v,disableRestoreFocus:y,disableScrollLock:S,hideBackdrop:w,keepMounted:x},{getRootProps:j,getBackdropProps:F,getTransitionProps:W,portalRef:Y,isTopModal:H,exited:L,hasTransition:E}=Tk({...D,rootRef:n}),q={...D,exited:L},z=Ek(q),R={};if(u.props.tabIndex===void 0&&(R.tabIndex="-1"),E){const{onEnter:J,onExited:B}=W();R.onEnter=J,R.onExited=B}const A={slots:{root:h.Root,backdrop:h.Backdrop,...k},slotProps:{...m,...M}},[U,X]=ot("root",{ref:n,elementType:kk,externalForwardedProps:{...A,...N,component:p},getSlotProps:j,ownerState:q,className:Ce(a,z?.root,!q.open&&q.exited&&z?.hidden)}),[se,te]=ot("backdrop",{ref:i?.ref,elementType:s,externalForwardedProps:A,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:J=>F({...J,onClick:B=>{J?.onClick&&J.onClick(B)}}),className:Ce(i?.className,z?.backdrop),ownerState:q});return!x&&!$&&(!E||L)?null:_.jsx(us,{ref:Y,container:d,disablePortal:v,children:_.jsxs(U,{...X,children:[!w&&s?_.jsx(se,{...te}):null,_.jsx(cs,{disableEnforceFocus:f,disableAutoFocus:b,disableRestoreFocus:y,isEnabled:H,open:$,children:O.cloneElement(u,R)})]})})});process.env.NODE_ENV!=="production"&&(lf.propTypes={BackdropComponent:r.elementType,BackdropProps:r.object,children:os.isRequired,classes:r.object,className:r.string,closeAfterTransition:r.bool,component:r.elementType,components:r.shape({Backdrop:r.elementType,Root:r.elementType}),componentsProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([ir,r.func]),disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableEscapeKeyDown:r.bool,disablePortal:r.bool,disableRestoreFocus:r.bool,disableScrollLock:r.bool,hideBackdrop:r.bool,keepMounted:r.bool,onClose:r.func,onTransitionEnter:r.func,onTransitionExited:r.func,open:r.bool.isRequired,slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Rk(e){return Me("MuiPaper",e)}De("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 Ik=e=>{const{square:t,elevation:n,variant:o,classes:s}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return $e(i,Rk,s)},$k=ie("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}`]]}})(Xe(({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)"}}]}))),Cr=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiPaper"}),s=Fr(),{className:i,component:l="div",elevation:a=1,square:c=!1,variant:u="elevation",...d}=o,p={...o,component:l,elevation:a,square:c,variant:u},h=Ik(p);return process.env.NODE_ENV!=="production"&&s.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
57
+ `)),_.jsx($k,{as:l,ownerState:p,className:Ce(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[a],...s.vars&&{"--Paper-overlay":s.vars.overlays?.[a]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${rn("#fff",qd(a))}, ${rn("#fff",qd(a))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Cr.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:vn(Gd,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["elevation","outlined"]),r.string])});function Dk(e){return Me("MuiPopover",e)}De("MuiPopover",["root","paper"]);function Jv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Zv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function e0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ds(e){return typeof e=="function"?e():e}const Mk=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"]},Dk,t)},Nk=ie(lf,{name:"MuiPopover",slot:"Root"})({}),t0=ie(Cr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),n0=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiPopover"}),{action:s,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:h=8,marginThreshold:m=16,open:b,PaperProps:f={},slots:g={},slotProps:v={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:w="auto",TransitionProps:x={},disableScrollLock:P=!1,...T}=o,I=O.useRef(),$={...o,anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,transformOrigin:y,TransitionComponent:S,transitionDuration:w,TransitionProps:x},M=Mk($),k=O.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(a||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),a;const J=ds(i),B=J&&J.nodeType===1?J:Lt(I.current).body,V=B.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Q=B.getBoundingClientRect();!globalThis.MUI_TEST_ENV&&Q.top===0&&Q.left===0&&Q.right===0&&Q.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
58
+ `))}return{top:V.top+Jv(V,l.vertical),left:V.left+Zv(V,l.horizontal)}},[i,l.horizontal,l.vertical,a,c]),C=O.useCallback(J=>({vertical:Jv(J,y.vertical),horizontal:Zv(J,y.horizontal)}),[y.horizontal,y.vertical]),N=O.useCallback(J=>{const B={width:J.offsetWidth,height:J.offsetHeight},V=C(B);if(c==="none")return{top:null,left:null,transformOrigin:e0(V)};const Q=k();let G=Q.top-V.vertical,ne=Q.left-V.horizontal;const ae=G+B.height,re=ne+B.width,ce=Dn(ds(i)),be=ce.innerHeight-m,oe=ce.innerWidth-m;if(m!==null&&G<m){const fe=G-m;G-=fe,V.vertical+=fe}else if(m!==null&&ae>be){const fe=ae-be;G-=fe,V.vertical+=fe}if(process.env.NODE_ENV!=="production"&&B.height>be&&B.height&&be&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${B.height-be}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
59
+ `)),m!==null&&ne<m){const fe=ne-m;ne-=fe,V.horizontal+=fe}else if(re>oe){const fe=re-oe;ne-=fe,V.horizontal+=fe}return{top:`${Math.round(G)}px`,left:`${Math.round(ne)}px`,transformOrigin:e0(V)}},[i,c,k,C,m]),[D,j]=O.useState(b),F=O.useCallback(()=>{const J=I.current;if(!J)return;const B=N(J);B.top!==null&&J.style.setProperty("top",B.top),B.left!==null&&(J.style.left=B.left),J.style.transformOrigin=B.transformOrigin,j(!0)},[N]);O.useEffect(()=>(P&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[i,P,F]);const W=()=>{F()},Y=()=>{j(!1)};O.useEffect(()=>{b&&F()}),O.useImperativeHandle(s,()=>b?{updatePosition:()=>{F()}}:null,[b,F]),O.useEffect(()=>{if(!b)return;const J=fa(()=>{F()}),B=Dn(ds(i));return B.addEventListener("resize",J),()=>{J.clear(),B.removeEventListener("resize",J)}},[i,b,F]);let H=w;const L={slots:{transition:S,...g},slotProps:{transition:x,paper:f,...v}},[E,q]=ot("transition",{elementType:as,externalForwardedProps:L,ownerState:$,getSlotProps:J=>({...J,onEntering:(B,V)=>{J.onEntering?.(B,V),W()},onExited:B=>{J.onExited?.(B),Y()}}),additionalProps:{appear:!0,in:b}});w==="auto"&&!E.muiSupportAuto&&(H=void 0);const z=p||(i?Lt(ds(i)).body:void 0),[R,{slots:A,slotProps:U,...X}]=ot("root",{ref:n,elementType:Nk,externalForwardedProps:{...L,...T},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:Tv(typeof v.backdrop=="function"?v.backdrop($):v.backdrop,{invisible:!0})},container:z,open:b},ownerState:$,className:Ce(M.root,d)}),[se,te]=ot("paper",{ref:I,className:M.paper,elementType:t0,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:D?void 0:{opacity:0}},ownerState:$});return _.jsx(R,{...X,...!co(R)&&{slots:A,slotProps:U,disableScrollLock:P},children:_.jsx(E,{...q,timeout:H,children:_.jsx(se,{...te,children:u})})})});process.env.NODE_ENV!=="production"&&(n0.propTypes={action:$t,anchorEl:vn(r.oneOfType([ir,r.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ds(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&!globalThis.MUI_TEST_ENV&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
58
60
  `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
59
- `))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([Ir,o.func]),disableScrollLock:o.bool,elevation:hu,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:lu}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function l1(e){return Fe("MuiMenu",e)}Le("MuiMenu",["root","paper","list"]);const c1={vertical:"top",horizontal:"right"},u1={vertical:"top",horizontal:"left"},d1=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"],list:["list"]},l1,t)},f1=me(jg,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),p1=me(Ig,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),h1=me(fg,{name:"MuiMenu",slot:"List"})({outline:0}),Ng=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:m={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:g,...f}={},variant:b="selectedMenu",slots:v={},slotProps:p={},..._}=n,S=Oy(),w={...n,autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:g,PaperProps:m,transitionDuration:y,TransitionProps:f,variant:b},E=d1(w),x=i&&!s&&d,P=j.useRef(null),k=(ue,z)=>{P.current&&P.current.adjustStyleForScrollbar(ue,{direction:S?"rtl":"ltr"}),g&&g(ue,z)},M=ue=>{ue.key==="Tab"&&(ue.preventDefault(),u&&u(ue,"tabKeyDown"))};let R=-1;j.Children.map(a,(ue,z)=>{j.isValidElement(ue)&&(process.env.NODE_ENV!=="production"&&du.isFragment(ue)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
60
- `)),ue.props.disabled||(b==="selectedMenu"&&ue.props.selected||R===-1)&&(R=z))});const O={slots:v,slotProps:{list:c,transition:f,paper:m,...p}},q=sg({elementType:v.root,externalSlotProps:p.root,ownerState:w,className:[E.root,l]}),[N,U]=ut("paper",{className:E.paper,elementType:p1,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:w}),[W,le]=ut("list",{className:xe(E.list,c.className),elementType:h1,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:ue=>({...ue,onKeyDown:z=>{M(z),ue.onKeyDown?.(z)}}),ownerState:w}),ce=typeof O.slotProps.transition=="function"?O.slotProps.transition(w):O.slotProps.transition;return F.jsx(f1,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?c1:u1,slots:{root:v.root,paper:N,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:q,paper:U,backdrop:typeof p.backdrop=="function"?p.backdrop(w):p.backdrop,transition:{...ce,onEntering:(...ue)=>{k(...ue),ce?.onEntering?.(...ue)}}},open:d,ref:r,transitionDuration:y,ownerState:w,..._,classes:h,children:F.jsx(W,{actions:P,autoFocus:i&&(R===-1||s),autoFocusItem:x,variant:b,...le,children:a})})});process.env.NODE_ENV!=="production"&&(Ng.propTypes={anchorEl:o.oneOfType([Ir,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function m1(e){return Fe("MuiNativeSelect",e)}const Ou=Le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),y1=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:l}=e,s={select:["select",r,n&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${pe(r)}`,a&&"iconOpen",n&&"disabled"]};return Be(s,m1,t)},Ag=me("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ou.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}}}]})),g1=me(Ag,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:It,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Ou.multiple}`]:t.multiple}]}})({}),Mg=me("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ou.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}}]})),v1=me(Mg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${pe(r.variant)}`],r.open&&t.iconOpen]}})({}),Dg=j.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:l,inputRef:s,variant:c="standard",...u}=t,d={...t,disabled:i,variant:c,error:a},m=y1(d);return F.jsxs(j.Fragment,{children:[F.jsx(g1,{ownerState:d,className:xe(m.select,n),disabled:i,ref:s||r,...u}),t.multiple?null:F.jsx(v1,{as:l,ownerState:d,className:m.icon})]})});process.env.NODE_ENV!=="production"&&(Dg.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:zt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});function qg(e){return Fe("MuiSelect",e)}const uo=Le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Lg;const b1=me(Ag,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${uo.select}`]:t.select},{[`&.${uo.select}`]:t[r.variant]},{[`&.${uo.error}`]:t.error},{[`&.${uo.multiple}`]:t.multiple}]}})({[`&.${uo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_1=me(Mg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${pe(r.variant)}`],r.open&&t.iconOpen]}})({}),w1=me("input",{shouldForwardProp:e=>zy(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Fg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function S1(e){return e==null||typeof e=="string"&&!e.trim()}const E1=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:l}=e,s={select:["select",r,n&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${pe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Be(s,qg,t)},zg=j.forwardRef(function(t,r){const{"aria-describedby":n,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:c,defaultOpen:u,defaultValue:d,disabled:m,displayEmpty:h,error:y=!1,IconComponent:g,inputRef:f,labelId:b,MenuProps:v={},multiple:p,name:_,onBlur:S,onChange:w,onClose:E,onFocus:x,onKeyDown:P,onMouseDown:k,onOpen:M,open:R,readOnly:O,renderValue:q,required:N,SelectDisplayProps:U={},tabIndex:W,type:le,value:ce,variant:ue="standard",...z}=t,[C,V]=on({controlled:ce,default:d,name:"Select"}),[A,T]=on({controlled:R,default:u,name:"Select"}),$=j.useRef(null),D=j.useRef(null),[K,re]=j.useState(null),{current:ie}=j.useRef(R!=null),[te,L]=j.useState(),I=St(r,f),G=j.useCallback(we=>{D.current=we,we&&re(we)},[]),X=K?.parentNode;j.useImperativeHandle(I,()=>({focus:()=>{D.current.focus()},node:$.current,value:C}),[C]);const ne=K!==null&&A;j.useEffect(()=>{if(!ne||!X||l||typeof ResizeObserver>"u")return;const we=new ResizeObserver(()=>{L(X.clientWidth)});return we.observe(X),()=>{we.disconnect()}},[ne,X,l]),j.useEffect(()=>{u&&A&&K&&!ie&&(L(l?null:X.clientWidth),D.current.focus())},[K,l]),j.useEffect(()=>{a&&D.current.focus()},[a]),j.useEffect(()=>{if(!b)return;const we=Kt(D.current).getElementById(b);if(we){const Me=()=>{getSelection().isCollapsed&&D.current.focus()};return we.addEventListener("click",Me),()=>{we.removeEventListener("click",Me)}}},[b]);const he=(we,Me)=>{we?M&&M(Me):E&&E(Me),ie||(L(l?null:X.clientWidth),T(we))},ve=we=>{k?.(we),we.button===0&&(we.preventDefault(),D.current.focus(),he(!0,we))},fe=we=>{he(!1,we)},Te=j.Children.toArray(s),be=we=>{const Me=Te.find(pt=>pt.props.value===we.target.value);Me!==void 0&&(V(Me.props.value),w&&w(we,Me))},Ee=we=>Me=>{let pt;if(Me.currentTarget.hasAttribute("tabindex")){if(p){pt=Array.isArray(C)?C.slice():[];const xt=C.indexOf(we.props.value);xt===-1?pt.push(we.props.value):pt.splice(xt,1)}else pt=we.props.value;if(we.props.onClick&&we.props.onClick(Me),C!==pt&&(V(pt),w)){const xt=Me.nativeEvent||Me,Lt=new xt.constructor(xt.type,xt);Object.defineProperty(Lt,"target",{writable:!0,value:{value:pt,name:_}}),w(Lt,we)}p||he(!1,Me)}},ge=we=>{O||([" ","ArrowUp","ArrowDown","Enter"].includes(we.key)&&(we.preventDefault(),he(!0,we)),P?.(we))},$e=we=>{!ne&&S&&(Object.defineProperty(we,"target",{writable:!0,value:{value:C,name:_}}),S(we))};delete z["aria-invalid"];let Ie,ot;const Qe=[];let _t=!1,et=!1;(ea({value:C})||h)&&(q?Ie=q(C):_t=!0);const Tt=Te.map(we=>{if(!j.isValidElement(we))return null;process.env.NODE_ENV!=="production"&&du.isFragment(we)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
61
- `));let Me;if(p){if(!Array.isArray(C))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":hr(2));Me=C.some(pt=>Fg(pt,we.props.value)),Me&&_t&&Qe.push(we.props.children)}else Me=Fg(C,we.props.value),Me&&_t&&(ot=we.props.children);return Me&&(et=!0),j.cloneElement(we,{"aria-selected":Me?"true":"false",onClick:Ee(we),onKeyUp:pt=>{pt.key===" "&&pt.preventDefault(),we.props.onKeyUp&&we.props.onKeyUp(pt)},role:"option",selected:Me,value:void 0,"data-value":we.props.value})});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(!et&&!p&&C!==""){const we=Te.map(Me=>Me.props.value);console.warn([`MUI: You have provided an out-of-range value \`${C}\` for the select ${_?`(name="${_}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${we.filter(Me=>Me!=null).map(Me=>`\`${Me}\``).join(", ")||'""'}.`].join(`
62
- `))}},[et,Te,p,_,C]),_t&&(p?Qe.length===0?Ie=null:Ie=Qe.reduce((we,Me,pt)=>(we.push(Me),pt<Qe.length-1&&we.push(", "),we),[]):Ie=ot);let Je=te;!l&&ie&&K&&(Je=X.clientWidth);let Oe;typeof W<"u"?Oe=W:Oe=m?null:0;const He=U.id||(_?`mui-component-select-${_}`:void 0),dt={...t,variant:ue,value:C,open:ne,error:y},ft=E1(dt),Ar={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(dt):v.slotProps?.paper},Et={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(dt):v.slotProps?.list},Ot=bn();return F.jsxs(j.Fragment,{children:[F.jsx(b1,{as:"div",ref:G,tabIndex:Oe,role:"combobox","aria-controls":ne?Ot:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,He].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":N?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:ge,onMouseDown:m||O?null:ve,onBlur:$e,onFocus:x,...U,ownerState:dt,className:xe(U.className,ft.select,c),id:He,children:S1(Ie)?Lg||(Lg=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ie}),F.jsx(w1,{"aria-invalid":y,value:Array.isArray(C)?C.join(","):C,name:_,ref:$,"aria-hidden":!0,onChange:be,tabIndex:-1,disabled:m,className:ft.nativeInput,autoFocus:a,required:N,...z,ownerState:dt}),F.jsx(_1,{as:g,className:ft.icon,ownerState:dt}),F.jsx(Ng,{id:`menu-${_||""}`,anchorEl:X,open:ne,onClose:fe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":p?"true":void 0,disableListWrap:!0,id:Ot,...Et},paper:{...Ar,style:{minWidth:Je,...Ar!=null?Ar.style:null}}},children:Tt})]})});process.env.NODE_ENV!=="production"&&(zg.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:zt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const Vg=Ct(F.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),O1=e=>{const{classes:t}=e,n=Be({root:["root"]},qg,t);return{...t,...n}},xu={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>It(e)&&e!=="variant"},x1=me(aa,xu)(""),C1=me(ca,xu)(""),T1=me(la,xu)(""),fo=j.forwardRef(function(t,r){const n=We({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Vg,id:m,input:h,inputProps:y,label:g,labelId:f,MenuProps:b,multiple:v=!1,native:p=!1,onClose:_,onOpen:S,open:w,renderValue:E,SelectDisplayProps:x,variant:P="outlined",...k}=n,M=p?Dg:zg,R=vr(),O=Ur({props:n,muiFormControl:R,states:["variant","error"]}),q=O.variant||P,N={...n,variant:q,classes:l},U=O1(N),{root:W,...le}=U,ce=h||{standard:F.jsx(x1,{ownerState:N}),outlined:F.jsx(C1,{label:g,ownerState:N}),filled:F.jsx(T1,{ownerState:N})}[q],ue=St(r,to(ce));return F.jsx(j.Fragment,{children:j.cloneElement(ce,{inputComponent:M,inputProps:{children:a,error:O.error,IconComponent:d,variant:q,type:void 0,multiple:v,...p?{id:m}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:f,MenuProps:b,onClose:_,onOpen:S,open:w,renderValue:E,SelectDisplayProps:{id:m,...x}},...y,classes:y?kt(le,y.classes):le,...h?h.props.inputProps:{}},...(v&&p||u)&&q==="outlined"?{notched:!0}:{},ref:ue,className:xe(ce.props.className,s,U.root),...!h&&{variant:q},...k})})});process.env.NODE_ENV!=="production"&&(fo.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),fo.muiName="Select";function P1(e){return Fe("MuiTextField",e)}Le("MuiTextField",["root"]);const $1={standard:aa,filled:la,outlined:ca},R1=e=>{const{classes:t}=e;return Be({root:["root"]},P1,t)},k1=me(Tn,{name:"MuiTextField",slot:"Root"})({}),va=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:s,color:c="primary",defaultValue:u,disabled:d=!1,error:m=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:g,id:f,InputLabelProps:b,inputProps:v,InputProps:p,inputRef:_,label:S,maxRows:w,minRows:E,multiline:x=!1,name:P,onBlur:k,onChange:M,onFocus:R,placeholder:O,required:q=!1,rows:N,select:U=!1,SelectProps:W,slots:le={},slotProps:ce={},type:ue,value:z,variant:C="outlined",...V}=n,A={...n,autoFocus:a,color:c,disabled:d,error:m,fullWidth:y,multiline:x,required:q,select:U,variant:C},T=R1(A);process.env.NODE_ENV!=="production"&&U&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const $=bn(f),D=g&&$?`${$}-helper-text`:void 0,K=S&&$?`${$}-label`:void 0,re=$1[C],ie={slots:le,slotProps:{input:p,inputLabel:b,htmlInput:v,formHelperText:h,select:W,...ce}},te={},L=ie.slotProps.inputLabel;C==="outlined"&&(L&&typeof L.shrink<"u"&&(te.notched=L.shrink),te.label=S),U&&((!W||!W.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[I,G]=ut("root",{elementType:k1,shouldForwardComponentProp:!0,externalForwardedProps:{...ie,...V},ownerState:A,className:xe(T.root,s),ref:r,additionalProps:{disabled:d,error:m,fullWidth:y,required:q,color:c,variant:C}}),[X,ne]=ut("input",{elementType:re,externalForwardedProps:ie,additionalProps:te,ownerState:A}),[he,ve]=ut("inputLabel",{elementType:ua,externalForwardedProps:ie,ownerState:A}),[fe,Te]=ut("htmlInput",{elementType:"input",externalForwardedProps:ie,ownerState:A}),[be,Ee]=ut("formHelperText",{elementType:eo,externalForwardedProps:ie,ownerState:A}),[ge,$e]=ut("select",{elementType:fo,externalForwardedProps:ie,ownerState:A}),Ie=F.jsx(X,{"aria-describedby":D,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:y,multiline:x,name:P,rows:N,maxRows:w,minRows:E,type:ue,value:z,id:$,inputRef:_,onBlur:k,onChange:M,onFocus:R,placeholder:O,inputProps:Te,slots:{input:le.htmlInput?fe:void 0},...ne});return F.jsxs(I,{...G,children:[S!=null&&S!==""&&F.jsx(he,{htmlFor:$,id:K,...ve,children:S}),U?F.jsx(ge,{"aria-describedby":D,id:$,labelId:K,value:z,input:Ie,...$e,children:l}):Ie,g&&F.jsx(be,{id:D,...Ee,children:g})]})});process.env.NODE_ENV!=="production"&&(va.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:zt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const I1=e=>{let t;return e.form&&e.form.key&&(t=lr.selectOrSet(e.form.key,e.model)),t==null&&(e.form.default?t=e.form.default:e.form.schema&&e.form.schema.default&&(t=e.form.schema.default)),t},Bg=e=>{const{errorText:t,form:r,showErrors:n}=e,i=I1(e);if(!n)return{value:i,valid:!0,error:""};const a=lr.validate(r,i||void 0),l=a.valid?void 0:a.error;return{value:i,valid:a.valid,error:(a.valid?null:l)||t}};function qt(e){const{form:t,onChange:r}=e,[n,i]=ke.useState(()=>Bg(e));return ke.useEffect(()=>{i(Bg(e))},[e.model,e.form,e.showErrors,e.errorText]),{...n,onChangeValidate:(l,s)=>{let c=null;const u=t.schema?t.schema.type:t.type;if(s!==void 0)c=s;else switch(u){case"integer":case"number":{c=l;break}case"boolean":c=l.target.checked;break;case"array":c=l;break;case"object":if(t.type==="date"){l.target.value.length>0?c=new Date(l.target.value):c="";break}({value:c}=l.target);break;case"string":t.type==="timestamp"?c=l:{value:c}=l.target;break;default:console.log("type = ",u),l&&l.target?{value:c}=l.target:c=l}const d=lr.validate(t,c);i({value:c,valid:d.valid,error:d.valid?null:d.error}),r(t.key,c)}}}function cn(e){const{form:t,setDefault:r,model:n,localization:{getLocalizedString:i},otherProps:a}=e,l=qt(e),s=e.value!==void 0?e.value:l.value,c=e.valid!==void 0?e.valid:l.valid,u=e.error!==void 0?e.error:l.error,d=e.onChangeValidate!==void 0?e.onChangeValidate:l.onChangeValidate,{key:m}=t;return r(m,n,t,l.value),F.jsx(va,{type:t.type,label:t.title&&i(t.title),placeholder:t.placeholder&&i(t.placeholder),helperText:(u||t.description)&&i(u||t.description),error:!c,onChange:d,value:s||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...a,...t.otherProps})}cn.defaultProps={otherProps:void 0};const j1=e=>{const{form:t,localization:{getLocalizedNumber:r}}=e,{value:n,valid:i,error:a,onChangeValidate:l}=qt(e);let s=n||n===0?n:"";t.useLocalizer&&(s=r(s));const c=u=>{const d=t.schema?t.schema.type:t.type;let m=null;if(d==="integer")m=parseInt(u.target.value,10);else if(d==="number"){const h=u.target.value.split(".");h.length<2?m=parseInt(u.target.value,10):h.length>1&&(h[1].length>0?m=parseFloat(u.target.value):m=`${parseInt(h[0],10)}.`)}l(m)};return F.jsx(cn,{...e,form:{...t,type:"string"},value:s,valid:i,error:a,onChangeValidate:c})},N1=e=>{const{form:t}=e;return F.jsx(cn,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})},A1=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d}=r;return ke.useEffect(()=>{n(u,t,r,a)},[]),F.jsxs(ke.Fragment,{children:[F.jsx(Hr,{required:r.required,children:d&&i(d)}),F.jsx(Jv,{value:a||"",height:r.height,onChange:m=>c(null,m)}),l?null:F.jsx(eo,{error:!0,children:s})]})};function M1(e){const t=j.useRef({});return j.useEffect(()=>{t.current=e}),t.current}function Ug({array1:e,array2:t,parser:r=n=>n}){return e&&t&&e.length===t.length&&e.every((n,i)=>r(n)===r(t[i]))}function Wg(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function D1(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:a,trim:l=!1}=e;return(s,{inputValue:c,getOptionLabel:u})=>{let d=l?c.trim():c;r&&(d=d.toLowerCase()),t&&(d=Wg(d));const m=d?s.filter(h=>{let y=(a||u)(h);return r&&(y=y.toLowerCase()),t&&(y=Wg(y)),i==="start"?y.startsWith(d):y.includes(d)}):s;return typeof n=="number"?m.slice(0,n):m}}const q1=D1(),Hg=5,L1=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),F1=[];function Kg(e,t,r,n){if(t||e==null||n)return"";const i=r(e);return typeof i=="string"?i:""}function z1(e){const{unstable_isActiveElementInListbox:t=L1,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?F1:null,disableClearable:m=!1,disableCloseOnSelect:h=!1,disabled:y,disabledItemsFocusable:g=!1,disableListWrap:f=!1,filterOptions:b=q1,filterSelectedOptions:v=!1,freeSolo:p=!1,getOptionDisabled:_,getOptionKey:S,getOptionLabel:w=ae=>ae.label??ae,groupBy:E,handleHomeEndKeys:x=!e.freeSolo,id:P,includeInputInList:k=!1,inputValue:M,isOptionEqualToValue:R=(ae,Q)=>ae===Q,multiple:O=!1,onChange:q,onClose:N,onHighlightChange:U,onInputChange:W,onOpen:le,open:ce,openOnFocus:ue=!1,options:z,readOnly:C=!1,renderValue:V,selectOnFocus:A=!e.freeSolo,value:T}=e,$=bn(P);let D=w;D=ae=>{const Q=w(ae);if(typeof Q!="string"){if(process.env.NODE_ENV!=="production"){const ye=Q===void 0?"undefined":`${typeof Q} (${Q})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${ye} instead of a string for ${JSON.stringify(ae)}.`)}return String(Q)}return Q};const K=j.useRef(!1),re=j.useRef(!0),ie=j.useRef(null),te=j.useRef(null),[L,I]=j.useState(null),[G,X]=j.useState(-1),ne=i?0:-1,he=j.useRef(ne),ve=j.useRef(Kg(d??T,O,D)).current,[fe,Te]=on({controlled:T,default:d,name:u}),[be,Ee]=on({controlled:M,default:ve,name:u,state:"inputValue"}),[ge,$e]=j.useState(!1),Ie=j.useCallback((ae,Q,ye)=>{if(!(O?fe.length<Q.length:Q!==null)&&!s)return;const Pe=Kg(Q,O,D,V);be!==Pe&&(Ee(Pe),W&&W(ae,Pe,ye))},[D,be,O,W,Ee,s,fe,V]),[ot,Qe]=on({controlled:ce,default:!1,name:u,state:"open"}),[_t,et]=j.useState(!0),Tt=!O&&fe!=null&&be===D(fe),Je=ot&&!C,Oe=Je?b(z.filter(ae=>!(v&&(O?fe:[fe]).some(Q=>Q!==null&&R(ae,Q)))),{inputValue:Tt&&_t?"":be,getOptionLabel:D}):[],He=M1({filteredOptions:Oe,value:fe,inputValue:be});j.useEffect(()=>{const ae=fe!==He.value;ge&&!ae||p&&!ae||Ie(null,fe,"reset")},[fe,Ie,ge,He.value,p]);const dt=ot&&Oe.length>0&&!C,ft=ur(ae=>{if(ae===-1)ie.current.focus();else{const Q=V?"data-item-index":"data-tag-index";L.querySelector(`[${Q}="${ae}"]`).focus()}});j.useEffect(()=>{O&&G>fe.length-1&&(X(-1),ft(-1))},[fe,O,G,ft]);function Ar(ae,Q){if(!te.current||ae<0||ae>=Oe.length)return-1;let ye=ae;for(;;){const Ce=te.current.querySelector(`[data-option-index="${ye}"]`),Pe=g?!1:!Ce||Ce.disabled||Ce.getAttribute("aria-disabled")==="true";if(Ce&&Ce.hasAttribute("tabindex")&&!Pe)return ye;if(Q==="next"?ye=(ye+1)%Oe.length:ye=(ye-1+Oe.length)%Oe.length,ye===ae)return-1}}const Et=ur(({event:ae,index:Q,reason:ye})=>{if(he.current=Q,Q===-1?ie.current.removeAttribute("aria-activedescendant"):ie.current.setAttribute("aria-activedescendant",`${$}-option-${Q}`),U&&["mouse","keyboard","touch"].includes(ye)&&U(ae,Q===-1?null:Oe[Q],ye),!te.current)return;const Ce=te.current.querySelector(`[role="option"].${r}-focused`);Ce&&(Ce.classList.remove(`${r}-focused`),Ce.classList.remove(`${r}-focusVisible`));let Pe=te.current;if(te.current.getAttribute("role")!=="listbox"&&(Pe=te.current.parentElement.querySelector('[role="listbox"]')),!Pe)return;if(Q===-1){Pe.scrollTop=0;return}const ht=te.current.querySelector(`[data-option-index="${Q}"]`);if(ht&&(ht.classList.add(`${r}-focused`),ye==="keyboard"&&ht.classList.add(`${r}-focusVisible`),Pe.scrollHeight>Pe.clientHeight&&ye!=="mouse"&&ye!=="touch")){const Ue=ht,Nt=Pe.clientHeight+Pe.scrollTop,At=Ue.offsetTop+Ue.offsetHeight;At>Nt?Pe.scrollTop=At-Pe.clientHeight:Ue.offsetTop-Ue.offsetHeight*(E?1.3:0)<Pe.scrollTop&&(Pe.scrollTop=Ue.offsetTop-Ue.offsetHeight*(E?1.3:0))}}),Ot=ur(({event:ae,diff:Q,direction:ye="next",reason:Ce})=>{if(!Je)return;const ht=Ar((()=>{const Ue=Oe.length-1;if(Q==="reset")return ne;if(Q==="start")return 0;if(Q==="end")return Ue;const Nt=he.current+Q;return Nt<0?Nt===-1&&k?-1:f&&he.current!==-1||Math.abs(Q)>1?0:Ue:Nt>Ue?Nt===Ue+1&&k?-1:f||Math.abs(Q)>1?Ue:0:Nt})(),ye);if(Et({index:ht,reason:Ce,event:ae}),n&&Q!=="reset")if(ht===-1)ie.current.value=be;else{const Ue=D(Oe[ht]);ie.current.value=Ue,Ue.toLowerCase().indexOf(be.toLowerCase())===0&&be.length>0&&ie.current.setSelectionRange(be.length,Ue.length)}}),we=!Ug({array1:He.filteredOptions,array2:Oe,parser:D}),Me=()=>{const ae=(Q,ye)=>{const Ce=Q?D(Q):"",Pe=ye?D(ye):"";return Ce===Pe};if(he.current!==-1&&!Ug({array1:He.filteredOptions,array2:Oe,parser:D})&&He.inputValue===be&&(O?fe.length===He.value.length&&He.value.every((Q,ye)=>D(fe[ye])===D(Q)):ae(He.value,fe))){const Q=He.filteredOptions[he.current];if(Q)return Oe.findIndex(ye=>D(ye)===D(Q))}return-1},pt=j.useCallback(()=>{if(!Je)return;const ae=Me();if(ae!==-1){he.current=ae;return}const Q=O?fe[0]:fe;if(Oe.length===0||Q==null){Ot({diff:"reset"});return}if(te.current){if(Q!=null){const ye=Oe[he.current];if(O&&ye&&fe.findIndex(Pe=>R(ye,Pe))!==-1)return;const Ce=Oe.findIndex(Pe=>R(Pe,Q));Ce===-1?Ot({diff:"reset"}):Et({index:Ce});return}if(he.current>=Oe.length-1){Et({index:Oe.length-1});return}Et({index:he.current})}},[Oe.length,O?!1:fe,Ot,Et,Je,be,O]),xt=ur(ae=>{uu(te,ae),ae&&pt()});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{(!ie.current||ie.current.nodeName!=="INPUT")&&(ie.current&&ie.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
63
- `)):console.error([`MUI: Unable to find the input element. It was resolved to ${ie.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
64
- `)))},[u]),j.useEffect(()=>{(we||Je)&&pt()},[pt,we,Je]);const Lt=ae=>{ot||(Qe(!0),et(!0),le&&le(ae))},Mr=(ae,Q)=>{ot&&(Qe(!1),N&&N(ae,Q))},Y=(ae,Q,ye,Ce)=>{if(O){if(fe.length===Q.length&&fe.every((Pe,ht)=>Pe===Q[ht]))return}else if(fe===Q)return;q&&q(ae,Q,ye,Ce),Te(Q)},B=j.useRef(!1),ee=(ae,Q,ye="selectOption",Ce="options")=>{let Pe=ye,ht=Q;if(O){if(ht=Array.isArray(fe)?fe.slice():[],process.env.NODE_ENV!=="production"){const Nt=ht.filter(At=>R(Q,At));Nt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Nt.length} matches.`].join(`
65
- `))}const Ue=ht.findIndex(Nt=>R(Q,Nt));Ue===-1?ht.push(Q):Ce!=="freeSolo"&&(ht.splice(Ue,1),Pe="removeOption")}Ie(ae,ht,Pe),Y(ae,ht,Pe,{option:Q}),!h&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&Mr(ae,Pe),(l===!0||l==="touch"&&B.current||l==="mouse"&&!B.current)&&ie.current.blur()};function J(ae,Q){if(ae===-1)return-1;let ye=ae;for(;;){if(Q==="next"&&ye===fe.length||Q==="previous"&&ye===-1)return-1;const Ce=V?"data-item-index":"data-tag-index",Pe=L.querySelector(`[${Ce}="${ye}"]`);if(!Pe||!Pe.hasAttribute("tabindex")||Pe.disabled||Pe.getAttribute("aria-disabled")==="true")ye+=Q==="next"?1:-1;else return ye}}const Se=(ae,Q)=>{if(!O)return;be===""&&Mr(ae,"toggleInput");let ye=G;G===-1&&Q==="previous"?(ye=fe.length-1,p&&be!==""&&(Ee(""),W&&W(ae,"","reset"))):(ye+=Q==="next"?1:-1,ye<0&&(ye=0),ye===fe.length&&(ye=-1)),ye=J(ye,Q),X(ye),ft(ye)},Re=ae=>{K.current=!0,Ee(""),W&&W(ae,"","clear"),Y(ae,O?[]:null,"clear")},je=ae=>Q=>{if(ae.onKeyDown&&ae.onKeyDown(Q),!Q.defaultMuiPrevented&&(G!==-1&&!["ArrowLeft","ArrowRight"].includes(Q.key)&&(X(-1),ft(-1)),Q.which!==229))switch(Q.key){case"Home":Je&&x&&(Q.preventDefault(),Ot({diff:"start",direction:"next",reason:"keyboard",event:Q}));break;case"End":Je&&x&&(Q.preventDefault(),Ot({diff:"end",direction:"previous",reason:"keyboard",event:Q}));break;case"PageUp":Q.preventDefault(),Ot({diff:-Hg,direction:"previous",reason:"keyboard",event:Q}),Lt(Q);break;case"PageDown":Q.preventDefault(),Ot({diff:Hg,direction:"next",reason:"keyboard",event:Q}),Lt(Q);break;case"ArrowDown":Q.preventDefault(),Ot({diff:1,direction:"next",reason:"keyboard",event:Q}),Lt(Q);break;case"ArrowUp":Q.preventDefault(),Ot({diff:-1,direction:"previous",reason:"keyboard",event:Q}),Lt(Q);break;case"ArrowLeft":{const ye=ie.current;if(!(ye&&ye.selectionStart===0&&ye.selectionEnd===0))return;!O&&V&&fe!=null?(p&&be!==""&&(Ee(""),W&&W(Q,"","reset")),X(0),ft(0)):Se(Q,"previous");break}case"ArrowRight":!O&&V?(X(-1),ft(-1)):Se(Q,"next");break;case"Enter":if(he.current!==-1&&Je){const ye=Oe[he.current],Ce=_?_(ye):!1;if(Q.preventDefault(),Ce)return;ee(Q,ye,"selectOption"),n&&ie.current.setSelectionRange(ie.current.value.length,ie.current.value.length)}else p&&be!==""&&Tt===!1&&(O&&Q.preventDefault(),ee(Q,be,"createOption","freeSolo"));break;case"Escape":Je?(Q.preventDefault(),Q.stopPropagation(),Mr(Q,"escape")):c&&(be!==""||O&&fe.length>0||V)&&(Q.preventDefault(),Q.stopPropagation(),Re(Q));break;case"Backspace":if(O&&!C&&be===""&&fe.length>0){const ye=G===-1?fe.length-1:G,Ce=fe.slice();Ce.splice(ye,1),Y(Q,Ce,"removeOption",{option:fe[ye]})}!O&&V&&!C&&be===""&&Y(Q,null,"removeOption",{option:fe});break;case"Delete":if(O&&!C&&be===""&&fe.length>0&&G!==-1){const ye=G,Ce=fe.slice();Ce.splice(ye,1),Y(Q,Ce,"removeOption",{option:fe[ye]})}!O&&V&&!C&&be===""&&Y(Q,null,"removeOption",{option:fe});break}},se=ae=>{$e(!0),G!==-1&&(X(-1),ft(-1)),ue&&!K.current&&Lt(ae)},H=ae=>{if(t(te)){ie.current.focus();return}$e(!1),re.current=!0,K.current=!1,a&&he.current!==-1&&Je?ee(ae,Oe[he.current],"blur"):a&&p&&be!==""?ee(ae,be,"blur","freeSolo"):s&&Ie(ae,fe,"blur"),Mr(ae,"blur")},Z=ae=>{const Q=ae.target.value;be!==Q&&(Ee(Q),et(!1),W&&W(ae,Q,"input")),Q===""?!m&&!O&&!V&&Y(ae,null,"clear"):Lt(ae)},de=ae=>{const Q=Number(ae.currentTarget.getAttribute("data-option-index"));he.current!==Q&&Et({event:ae,index:Q,reason:"mouse"})},_e=ae=>{Et({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),B.current=!0},Ne=ae=>{const Q=Number(ae.currentTarget.getAttribute("data-option-index"));ee(ae,Oe[Q],"selectOption"),B.current=!1},yt=ae=>Q=>{const ye=fe.slice();ye.splice(ae,1),Y(Q,ye,"removeOption",{option:fe[ae]})},gt=ae=>{Y(ae,null,"removeOption",{option:fe})},Ke=ae=>{ot?Mr(ae,"toggleInput"):Lt(ae)},ct=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==$&&ae.preventDefault()},jt=ae=>{ae.currentTarget.contains(ae.target)&&(ie.current.focus(),A&&re.current&&ie.current.selectionEnd-ie.current.selectionStart===0&&ie.current.select(),re.current=!1)},hn=ae=>{!y&&(be===""||!ot)&&Ke(ae)};let ir=p&&be.length>0;ir=ir||(O?fe.length>0:fe!==null);let fr=Oe;if(E){const ae=new Map;let Q=!1;fr=Oe.reduce((ye,Ce,Pe)=>{const ht=E(Ce);return ye.length>0&&ye[ye.length-1].group===ht?ye[ye.length-1].options.push(Ce):(process.env.NODE_ENV!=="production"&&(ae.get(ht)&&!Q&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),Q=!0),ae.set(ht,!0)),ye.push({key:Pe,index:Pe,group:ht,options:[Ce]})),ye},[])}return y&&ge&&H(),{getRootProps:(ae={})=>({...ae,onKeyDown:je(ae),onMouseDown:ct,onClick:jt}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:be,onBlur:H,onFocus:se,onChange:Z,onMouseDown:hn,"aria-activedescendant":Je?"":null,"aria-autocomplete":n?"both":"list","aria-controls":dt?`${$}-listbox`:void 0,"aria-expanded":dt,autoComplete:"off",ref:ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getItemProps:({index:ae=0}={})=>({...O&&{key:ae},...V?{"data-item-index":ae}:{"data-tag-index":ae},tabIndex:-1,...!C&&{onDelete:O?yt(ae):gt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ke}),getTagProps:({index:ae})=>({key:ae,"data-tag-index":ae,tabIndex:-1,...!C&&{onDelete:yt(ae)}}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:xt,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:Q})=>{const ye=(O?fe:[fe]).some(Pe=>Pe!=null&&R(Q,Pe)),Ce=_?_(Q):!1;return{key:S?.(Q)??D(Q),tabIndex:-1,role:"option",id:`${$}-option-${ae}`,onMouseMove:de,onClick:Ne,onTouchStart:_e,"data-option-index":ae,"aria-disabled":Ce,"aria-selected":ye}},id:$,inputValue:be,value:fe,dirty:ir,expanded:Je&&L,popupOpen:Je,focused:ge||G!==-1,anchorEl:L,setAnchorEl:I,focusedItem:G,focusedTag:G,groupedOptions:fr}}var Vt="top",tr="bottom",rr="right",Bt="left",Cu="auto",po=[Vt,tr,rr,Bt],Rn="start",ho="end",V1="clippingParents",Gg="viewport",mo="popper",B1="reference",Yg=po.reduce(function(e,t){return e.concat([t+"-"+Rn,t+"-"+ho])},[]),Jg=[].concat(po,[Cu]).reduce(function(e,t){return e.concat([t,t+"-"+Rn,t+"-"+ho])},[]),U1="beforeRead",W1="read",H1="afterRead",K1="beforeMain",G1="main",Y1="afterMain",J1="beforeWrite",X1="write",Z1="afterWrite",Q1=[U1,W1,H1,K1,G1,Y1,J1,X1,Z1];function _r(e){return e?(e.nodeName||"").toLowerCase():null}function Jt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function un(e){var t=Jt(e).Element;return e instanceof t||e instanceof Element}function nr(e){var t=Jt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tu(e){if(typeof ShadowRoot>"u")return!1;var t=Jt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ex(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!nr(a)||!_r(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(l){var s=i[l];s===!1?a.removeAttribute(l):a.setAttribute(l,s===!0?"":s)}))})}function tx(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=l.reduce(function(c,u){return c[u]="",c},{});!nr(i)||!_r(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const rx={name:"applyStyles",enabled:!0,phase:"write",fn:ex,effect:tx,requires:["computeStyles"]};function wr(e){return e.split("-")[0]}var dn=Math.max,ba=Math.min,kn=Math.round;function Pu(){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 Xg(){return!/^((?!chrome|android).)*safari/i.test(Pu())}function In(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&nr(e)&&(i=e.offsetWidth>0&&kn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&kn(n.height)/e.offsetHeight||1);var l=un(e)?Jt(e):window,s=l.visualViewport,c=!Xg()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,d=(n.top+(c&&s?s.offsetTop:0))/a,m=n.width/i,h=n.height/a;return{width:m,height:h,top:d,right:u+m,bottom:d+h,left:u,x:u,y:d}}function $u(e){var t=In(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Zg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Tu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function jr(e){return Jt(e).getComputedStyle(e)}function nx(e){return["table","td","th"].indexOf(_r(e))>=0}function Kr(e){return((un(e)?e.ownerDocument:e.document)||window.document).documentElement}function _a(e){return _r(e)==="html"?e:e.assignedSlot||e.parentNode||(Tu(e)?e.host:null)||Kr(e)}function Qg(e){return!nr(e)||jr(e).position==="fixed"?null:e.offsetParent}function ox(e){var t=/firefox/i.test(Pu()),r=/Trident/i.test(Pu());if(r&&nr(e)){var n=jr(e);if(n.position==="fixed")return null}var i=_a(e);for(Tu(i)&&(i=i.host);nr(i)&&["html","body"].indexOf(_r(i))<0;){var a=jr(i);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 i;i=i.parentNode}return null}function yo(e){for(var t=Jt(e),r=Qg(e);r&&nx(r)&&jr(r).position==="static";)r=Qg(r);return r&&(_r(r)==="html"||_r(r)==="body"&&jr(r).position==="static")?t:r||ox(e)||t}function Ru(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function go(e,t,r){return dn(e,ba(t,r))}function ix(e,t,r){var n=go(e,t,r);return n>r?r:n}function ev(){return{top:0,right:0,bottom:0,left:0}}function tv(e){return Object.assign({},ev(),e)}function rv(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ax=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,tv(typeof t!="number"?t:rv(t,po))};function sx(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,s=wr(r.placement),c=Ru(s),u=[Bt,rr].indexOf(s)>=0,d=u?"height":"width";if(!(!a||!l)){var m=ax(i.padding,r),h=$u(a),y=c==="y"?Vt:Bt,g=c==="y"?tr:rr,f=r.rects.reference[d]+r.rects.reference[c]-l[c]-r.rects.popper[d],b=l[c]-r.rects.reference[c],v=yo(a),p=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,_=f/2-b/2,S=m[y],w=p-h[d]-m[g],E=p/2-h[d]/2+_,x=go(S,E,w),P=c;r.modifiersData[n]=(t={},t[P]=x,t.centerOffset=x-E,t)}}function lx(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Zg(t.elements.popper,i)&&(t.elements.arrow=i))}const cx={name:"arrow",enabled:!0,phase:"main",fn:sx,effect:lx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jn(e){return e.split("-")[1]}var ux={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dx(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:kn(r*i)/i||0,y:kn(n*i)/i||0}}function nv(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,l=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,m=e.isFixed,h=l.x,y=h===void 0?0:h,g=l.y,f=g===void 0?0:g,b=typeof d=="function"?d({x:y,y:f}):{x:y,y:f};y=b.x,f=b.y;var v=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),_=Bt,S=Vt,w=window;if(u){var E=yo(r),x="clientHeight",P="clientWidth";if(E===Jt(r)&&(E=Kr(r),jr(E).position!=="static"&&s==="absolute"&&(x="scrollHeight",P="scrollWidth")),E=E,i===Vt||(i===Bt||i===rr)&&a===ho){S=tr;var k=m&&E===w&&w.visualViewport?w.visualViewport.height:E[x];f-=k-n.height,f*=c?1:-1}if(i===Bt||(i===Vt||i===tr)&&a===ho){_=rr;var M=m&&E===w&&w.visualViewport?w.visualViewport.width:E[P];y-=M-n.width,y*=c?1:-1}}var R=Object.assign({position:s},u&&ux),O=d===!0?dx({x:y,y:f},Jt(r)):{x:y,y:f};if(y=O.x,f=O.y,c){var q;return Object.assign({},R,(q={},q[S]=p?"0":"",q[_]=v?"0":"",q.transform=(w.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",q))}return Object.assign({},R,(t={},t[S]=p?f+"px":"",t[_]=v?y+"px":"",t.transform="",t))}function fx(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,s=r.roundOffsets,c=s===void 0?!0:s,u={placement:wr(t.placement),variation:jn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const px={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fx,data:{}};var wa={passive:!0};function hx(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,l=n.resize,s=l===void 0?!0:l,c=Jt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,wa)}),s&&c.addEventListener("resize",r.update,wa),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,wa)}),s&&c.removeEventListener("resize",r.update,wa)}}const mx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hx,data:{}};var yx={left:"right",right:"left",bottom:"top",top:"bottom"};function Sa(e){return e.replace(/left|right|bottom|top/g,function(t){return yx[t]})}var gx={start:"end",end:"start"};function ov(e){return e.replace(/start|end/g,function(t){return gx[t]})}function ku(e){var t=Jt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Iu(e){return In(Kr(e)).left+ku(e).scrollLeft}function vx(e,t){var r=Jt(e),n=Kr(e),i=r.visualViewport,a=n.clientWidth,l=n.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;var u=Xg();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s+Iu(e),y:c}}function bx(e){var t,r=Kr(e),n=ku(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=dn(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=dn(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Iu(e),c=-n.scrollTop;return jr(i||r).direction==="rtl"&&(s+=dn(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:l,x:s,y:c}}function ju(e){var t=jr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function iv(e){return["html","body","#document"].indexOf(_r(e))>=0?e.ownerDocument.body:nr(e)&&ju(e)?e:iv(_a(e))}function vo(e,t){var r;t===void 0&&(t=[]);var n=iv(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Jt(n),l=i?[a].concat(a.visualViewport||[],ju(n)?n:[]):n,s=t.concat(l);return i?s:s.concat(vo(_a(l)))}function Nu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _x(e,t){var r=In(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function av(e,t,r){return t===Gg?Nu(vx(e,r)):un(t)?_x(t,r):Nu(bx(Kr(e)))}function wx(e){var t=vo(_a(e)),r=["absolute","fixed"].indexOf(jr(e).position)>=0,n=r&&nr(e)?yo(e):e;return un(n)?t.filter(function(i){return un(i)&&Zg(i,n)&&_r(i)!=="body"}):[]}function Sx(e,t,r,n){var i=t==="clippingParents"?wx(e):[].concat(t),a=[].concat(i,[r]),l=a[0],s=a.reduce(function(c,u){var d=av(e,u,n);return c.top=dn(d.top,c.top),c.right=ba(d.right,c.right),c.bottom=ba(d.bottom,c.bottom),c.left=dn(d.left,c.left),c},av(e,l,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sv(e){var t=e.reference,r=e.element,n=e.placement,i=n?wr(n):null,a=n?jn(n):null,l=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case Vt:c={x:l,y:t.y-r.height};break;case tr:c={x:l,y:t.y+t.height};break;case rr:c={x:t.x+t.width,y:s};break;case Bt:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?Ru(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Rn:c[u]=c[u]-(t[d]/2-r[d]/2);break;case ho:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function bo(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,l=a===void 0?e.strategy:a,s=r.boundary,c=s===void 0?V1:s,u=r.rootBoundary,d=u===void 0?Gg:u,m=r.elementContext,h=m===void 0?mo:m,y=r.altBoundary,g=y===void 0?!1:y,f=r.padding,b=f===void 0?0:f,v=tv(typeof b!="number"?b:rv(b,po)),p=h===mo?B1:mo,_=e.rects.popper,S=e.elements[g?p:h],w=Sx(un(S)?S:S.contextElement||Kr(e.elements.popper),c,d,l),E=In(e.elements.reference),x=sv({reference:E,element:_,placement:i}),P=Nu(Object.assign({},_,x)),k=h===mo?P:E,M={top:w.top-k.top+v.top,bottom:k.bottom-w.bottom+v.bottom,left:w.left-k.left+v.left,right:k.right-w.right+v.right},R=e.modifiersData.offset;if(h===mo&&R){var O=R[i];Object.keys(M).forEach(function(q){var N=[rr,tr].indexOf(q)>=0?1:-1,U=[Vt,tr].indexOf(q)>=0?"y":"x";M[q]+=O[U]*N})}return M}function Ex(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,l=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?Jg:c,d=jn(n),m=d?s?Yg:Yg.filter(function(g){return jn(g)===d}):po,h=m.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=m);var y=h.reduce(function(g,f){return g[f]=bo(e,{placement:f,boundary:i,rootBoundary:a,padding:l})[wr(f)],g},{});return Object.keys(y).sort(function(g,f){return y[g]-y[f]})}function Ox(e){if(wr(e)===Cu)return[];var t=Sa(e);return[ov(e),t,ov(t)]}function xx(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,l=r.altAxis,s=l===void 0?!0:l,c=r.fallbackPlacements,u=r.padding,d=r.boundary,m=r.rootBoundary,h=r.altBoundary,y=r.flipVariations,g=y===void 0?!0:y,f=r.allowedAutoPlacements,b=t.options.placement,v=wr(b),p=v===b,_=c||(p||!g?[Sa(b)]:Ox(b)),S=[b].concat(_).reduce(function(T,$){return T.concat(wr($)===Cu?Ex(t,{placement:$,boundary:d,rootBoundary:m,padding:u,flipVariations:g,allowedAutoPlacements:f}):$)},[]),w=t.rects.reference,E=t.rects.popper,x=new Map,P=!0,k=S[0],M=0;M<S.length;M++){var R=S[M],O=wr(R),q=jn(R)===Rn,N=[Vt,tr].indexOf(O)>=0,U=N?"width":"height",W=bo(t,{placement:R,boundary:d,rootBoundary:m,altBoundary:h,padding:u}),le=N?q?rr:Bt:q?tr:Vt;w[U]>E[U]&&(le=Sa(le));var ce=Sa(le),ue=[];if(a&&ue.push(W[O]<=0),s&&ue.push(W[le]<=0,W[ce]<=0),ue.every(function(T){return T})){k=R,P=!1;break}x.set(R,ue)}if(P)for(var z=g?3:1,C=function($){var D=S.find(function(K){var re=x.get(K);if(re)return re.slice(0,$).every(function(ie){return ie})});if(D)return k=D,"break"},V=z;V>0;V--){var A=C(V);if(A==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const Cx={name:"flip",enabled:!0,phase:"main",fn:xx,requiresIfExists:["offset"],data:{_skip:!1}};function lv(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function cv(e){return[Vt,rr,tr,Bt].some(function(t){return e[t]>=0})}function Tx(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,l=bo(t,{elementContext:"reference"}),s=bo(t,{altBoundary:!0}),c=lv(l,n),u=lv(s,i,a),d=cv(c),m=cv(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const Px={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tx};function $x(e,t,r){var n=wr(e),i=[Bt,Vt].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],s=a[1];return l=l||0,s=(s||0)*i,[Bt,rr].indexOf(n)>=0?{x:s,y:l}:{x:l,y:s}}function Rx(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,l=Jg.reduce(function(d,m){return d[m]=$x(m,t.rects,a),d},{}),s=l[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=l}const kx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rx};function Ix(e){var t=e.state,r=e.name;t.modifiersData[r]=sv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jx={name:"popperOffsets",enabled:!0,phase:"read",fn:Ix,data:{}};function Nx(e){return e==="x"?"y":"x"}function Ax(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,l=r.altAxis,s=l===void 0?!1:l,c=r.boundary,u=r.rootBoundary,d=r.altBoundary,m=r.padding,h=r.tether,y=h===void 0?!0:h,g=r.tetherOffset,f=g===void 0?0:g,b=bo(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:d}),v=wr(t.placement),p=jn(t.placement),_=!p,S=Ru(v),w=Nx(S),E=t.modifiersData.popperOffsets,x=t.rects.reference,P=t.rects.popper,k=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,M=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(E){if(a){var q,N=S==="y"?Vt:Bt,U=S==="y"?tr:rr,W=S==="y"?"height":"width",le=E[S],ce=le+b[N],ue=le-b[U],z=y?-P[W]/2:0,C=p===Rn?x[W]:P[W],V=p===Rn?-P[W]:-x[W],A=t.elements.arrow,T=y&&A?$u(A):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ev(),D=$[N],K=$[U],re=go(0,x[W],T[W]),ie=_?x[W]/2-z-re-D-M.mainAxis:C-re-D-M.mainAxis,te=_?-x[W]/2+z+re+K+M.mainAxis:V+re+K+M.mainAxis,L=t.elements.arrow&&yo(t.elements.arrow),I=L?S==="y"?L.clientTop||0:L.clientLeft||0:0,G=(q=R?.[S])!=null?q:0,X=le+ie-G-I,ne=le+te-G,he=go(y?ba(ce,X):ce,le,y?dn(ue,ne):ue);E[S]=he,O[S]=he-le}if(s){var ve,fe=S==="x"?Vt:Bt,Te=S==="x"?tr:rr,be=E[w],Ee=w==="y"?"height":"width",ge=be+b[fe],$e=be-b[Te],Ie=[Vt,Bt].indexOf(v)!==-1,ot=(ve=R?.[w])!=null?ve:0,Qe=Ie?ge:be-x[Ee]-P[Ee]-ot+M.altAxis,_t=Ie?be+x[Ee]+P[Ee]-ot-M.altAxis:$e,et=y&&Ie?ix(Qe,be,_t):go(y?Qe:ge,be,y?_t:$e);E[w]=et,O[w]=et-be}t.modifiersData[n]=O}}const Mx={name:"preventOverflow",enabled:!0,phase:"main",fn:Ax,requiresIfExists:["offset"]};function Dx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qx(e){return e===Jt(e)||!nr(e)?ku(e):Dx(e)}function Lx(e){var t=e.getBoundingClientRect(),r=kn(t.width)/e.offsetWidth||1,n=kn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Fx(e,t,r){r===void 0&&(r=!1);var n=nr(t),i=nr(t)&&Lx(t),a=Kr(t),l=In(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((_r(t)!=="body"||ju(a))&&(s=qx(t)),nr(t)?(c=In(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Iu(a))),{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function zx(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&i(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function Vx(e){var t=zx(e);return Q1.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Bx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ux(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var uv={placement:"bottom",modifiers:[],strategy:"absolute"};function dv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Wx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?uv:i;return function(s,c,u){u===void 0&&(u=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},uv,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},m=[],h=!1,y={state:d,setOptions:function(v){var p=typeof v=="function"?v(d.options):v;f(),d.options=Object.assign({},a,d.options,p),d.scrollParents={reference:un(s)?vo(s):s.contextElement?vo(s.contextElement):[],popper:vo(c)};var _=Vx(Ux([].concat(n,d.options.modifiers)));return d.orderedModifiers=_.filter(function(S){return S.enabled}),g(),y.update()},forceUpdate:function(){if(!h){var v=d.elements,p=v.reference,_=v.popper;if(dv(p,_)){d.rects={reference:Fx(p,yo(_),d.options.strategy==="fixed"),popper:$u(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(M){return d.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var w=d.orderedModifiers[S],E=w.fn,x=w.options,P=x===void 0?{}:x,k=w.name;typeof E=="function"&&(d=E({state:d,options:P,name:k,instance:y})||d)}}}},update:Bx(function(){return new Promise(function(b){y.forceUpdate(),b(d)})}),destroy:function(){f(),h=!0}};if(!dv(s,c))return y;y.setOptions(u).then(function(b){!h&&u.onFirstUpdate&&u.onFirstUpdate(b)});function g(){d.orderedModifiers.forEach(function(b){var v=b.name,p=b.options,_=p===void 0?{}:p,S=b.effect;if(typeof S=="function"){var w=S({state:d,name:v,instance:y,options:_}),E=function(){};m.push(w||E)}})}function f(){m.forEach(function(b){return b()}),m=[]}return y}}var Hx=[mx,jx,px,rx,kx,Cx,Mx,cx,Px],Kx=Wx({defaultModifiers:Hx});function Gx(e){return Fe("MuiPopper",e)}Le("MuiPopper",["root"]);function Yx(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 Ea(e){return typeof e=="function"?e():e}function Oa(e){return e.nodeType!==void 0}function Jx(e){return!Oa(e)}const Xx=e=>{const{classes:t}=e;return Be({root:["root"]},Gx,t)},Zx={},Qx=j.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:a,disablePortal:l,modifiers:s,open:c,placement:u,popperOptions:d,popperRef:m,slotProps:h={},slots:y={},TransitionProps:g,ownerState:f,...b}=t,v=j.useRef(null),p=St(v,r),_=j.useRef(null),S=St(_,m),w=j.useRef(S);yr(()=>{w.current=S},[S]),j.useImperativeHandle(m,()=>_.current,[]);const E=Yx(u,a),[x,P]=j.useState(E),[k,M]=j.useState(Ea(n));j.useEffect(()=>{_.current&&_.current.forceUpdate()}),j.useEffect(()=>{n&&M(Ea(n))},[n]),yr(()=>{if(!k||!c)return;const U=ce=>{P(ce.placement)};if(process.env.NODE_ENV!=="production"&&k&&Oa(k)&&k.nodeType===1){const ce=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ce.top===0&&ce.left===0&&ce.right===0&&ce.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
66
- `))}let W=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ce})=>{U(ce)}}];s!=null&&(W=W.concat(s)),d&&d.modifiers!=null&&(W=W.concat(d.modifiers));const le=Kx(k,v.current,{placement:E,...d,modifiers:W});return w.current(le),()=>{le.destroy(),w.current(null)}},[k,l,s,c,d,E]);const R={placement:x};g!==null&&(R.TransitionProps=g);const O=Xx(t),q=y.root??"div",N=sg({elementType:q,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:p},ownerState:t,className:O.root});return F.jsx(q,{...N,children:typeof i=="function"?i(R):i})}),fv=j.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:m="bottom",popperOptions:h=Zx,popperRef:y,style:g,transition:f=!1,slotProps:b={},slots:v={},...p}=t,[_,S]=j.useState(!0),w=()=>{S(!1)},E=()=>{S(!0)};if(!c&&!d&&(!f||_))return null;let x;if(a)x=a;else if(n){const M=Ea(n);x=M&&Oa(M)?Kt(M).body:Kt(null).body}const P=!d&&c&&(!f||_)?"none":void 0,k=f?{in:d,onEnter:w,onExited:E}:void 0;return F.jsx(so,{disablePortal:s,container:x,children:F.jsx(Qx,{anchorEl:n,direction:l,disablePortal:s,modifiers:u,ref:r,open:f?!_:d,placement:m,popperOptions:h,popperRef:y,slotProps:b,slots:v,...p,style:{position:"fixed",top:0,left:0,display:P,...g},TransitionProps:k,children:i})})});process.env.NODE_ENV!=="production"&&(fv.propTypes={anchorEl:cr(o.oneOfType([Ir,o.object,o.func]),e=>{if(e.open){const t=Ea(e.anchorEl);if(t&&Oa(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
67
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||Jx(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
68
- `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Ir,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const eC=me(fv,{name:"MuiPopper",slot:"Root"})({}),Au=j.forwardRef(function(t,r){const n=Oy(),i=We({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:s,componentsProps:c,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:y,placement:g,popperOptions:f,popperRef:b,transition:v,slots:p,slotProps:_,...S}=i,w=p?.root??s?.Root,E={anchorEl:a,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:y,placement:g,popperOptions:f,popperRef:b,transition:v,...S};return F.jsx(eC,{as:l,direction:n?"rtl":"ltr",slots:{root:w},slotProps:_??c,...E,ref:r})});process.env.NODE_ENV!=="production"&&(Au.propTypes={anchorEl:o.oneOfType([Ir,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Ir,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function tC(e){return Fe("MuiListSubheader",e)}Le("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rC=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,l={root:["root",r!=="default"&&`color${pe(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Be(l,tC,t)},nC=me("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${pe(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(ze(({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}}]}))),xa=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:l="li",disableGutters:s=!1,disableSticky:c=!1,inset:u=!1,...d}=n,m={...n,color:a,component:l,disableGutters:s,disableSticky:c,inset:u},h=rC(m);return F.jsx(nC,{as:l,className:xe(h.root,i),ref:r,ownerState:m,...d})});xa&&(xa.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(xa.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOf(["default","inherit","primary"]),component:o.elementType,disableGutters:o.bool,disableSticky:o.bool,inset:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function pv(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
69
- `))}return!1}class Ca{static create(){return new Ca}static use(){const t=yg(Ca.create).current,[r,n]=j.useState(!1);return t.shouldMount=r,t.setShouldMount=n,j.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=iC(),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 oC(){return Ca.use()}function iC(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function hv(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:c,timeout:u}=e,[d,m]=j.useState(!1),h=xe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},g=xe(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&m(!0),j.useEffect(()=>{if(!s&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,s,u]),F.jsx("span",{className:h,style:y,children:F.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(hv.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const or=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Mu=550,aC=80,sC=Or.keyframes`
61
+ `))}return null}),anchorOrigin:r.shape({horizontal:r.oneOfType([r.oneOf(["center","left","right"]),r.number]).isRequired,vertical:r.oneOfType([r.oneOf(["bottom","center","top"]),r.number]).isRequired}),anchorPosition:r.shape({left:r.number.isRequired,top:r.number.isRequired}),anchorReference:r.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:r.elementType,BackdropProps:r.object,children:r.node,classes:r.object,className:r.string,container:r.oneOfType([ir,r.func]),disableScrollLock:r.bool,elevation:Gd,marginThreshold:r.number,onClose:r.func,open:r.bool.isRequired,PaperProps:r.shape({component:da}),slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,paper:r.elementType,root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transformOrigin:r.shape({horizontal:r.oneOfType([r.oneOf(["center","left","right"]),r.number]).isRequired,vertical:r.oneOfType([r.oneOf(["bottom","center","top"]),r.number]).isRequired}),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object});function jk(e){return Me("MuiMenu",e)}De("MuiMenu",["root","paper","list"]);const Ak={vertical:"top",horizontal:"right"},Fk={vertical:"top",horizontal:"left"},Vk=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"],list:["list"]},jk,t)},Lk=ie(n0,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Bk=ie(t0,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qk=ie(Oa,{name:"MuiMenu",slot:"List"})({outline:0}),r0=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:l,disableAutoFocusItem:a=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:b,...f}={},variant:g="selectedMenu",slots:v={},slotProps:y={},...S}=o,w=on(),x={...o,autoFocus:s,disableAutoFocusItem:a,MenuListProps:c,onEntering:b,PaperProps:p,transitionDuration:m,TransitionProps:f,variant:g},P=Vk(x),T=s&&!a&&d,I=O.useRef(null),$=(H,L)=>{I.current&&I.current.adjustStyleForScrollbar(H,{direction:w?"rtl":"ltr"}),b&&b(H,L)},M=H=>{H.key==="Tab"&&(H.preventDefault(),u&&u(H,"tabKeyDown"))};let k=-1;O.Children.map(i,(H,L)=>{O.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&Ta.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
62
+ `)),H.props.disabled||(g==="selectedMenu"&&H.props.selected||k===-1)&&(k=L))});const C={slots:v,slotProps:{list:c,transition:f,paper:p,...y}},N=st({elementType:v.root,externalSlotProps:y.root,ownerState:x,className:[P.root,l]}),[D,j]=ot("paper",{className:P.paper,elementType:Bk,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:x}),[F,W]=ot("list",{className:Ce(P.list,c.className),elementType:qk,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:H=>({...H,onKeyDown:L=>{M(L),H.onKeyDown?.(L)}}),ownerState:x}),Y=typeof C.slotProps.transition=="function"?C.slotProps.transition(x):C.slotProps.transition;return _.jsx(Lk,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Ak:Fk,slots:{root:v.root,paper:D,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:N,paper:j,backdrop:typeof y.backdrop=="function"?y.backdrop(x):y.backdrop,transition:{...Y,onEntering:(...H)=>{$(...H),Y?.onEntering?.(...H)}}},open:d,ref:n,transitionDuration:m,ownerState:x,...S,classes:h,children:_.jsx(F,{actions:I,autoFocus:s&&(k===-1||a),autoFocusItem:T,variant:g,...W,children:i})})});process.env.NODE_ENV!=="production"&&(r0.propTypes={anchorEl:r.oneOfType([ir,r.func]),autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,disableAutoFocusItem:r.bool,MenuListProps:r.object,onClose:r.func,open:r.bool.isRequired,PaperProps:r.object,PopoverClasses:r.object,slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),list:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,list:r.elementType,paper:r.elementType,root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transitionDuration:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object,variant:r.oneOf(["menu","selectedMenu"])});function zk(e){return Me("MuiNativeSelect",e)}const cf=De("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Uk=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:i,error:l}=e,a={select:["select",n,o&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"]};return $e(a,zk,t)},o0=ie("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${cf.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}}}]})),Wk=ie(o0,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${cf.multiple}`]:t.multiple}]}})({}),s0=ie("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${cf.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}}]})),Hk=ie(s0,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),i0=O.forwardRef(function(t,n){const{className:o,disabled:s,error:i,IconComponent:l,inputRef:a,variant:c="standard",...u}=t,d={...t,disabled:s,variant:c,error:i},p=Uk(d);return _.jsxs(O.Fragment,{children:[_.jsx(Wk,{ownerState:d,className:Ce(p.select,o),disabled:s,ref:a||n,...u}),t.multiple?null:_.jsx(Hk,{as:l,ownerState:d,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(i0.propTypes={children:r.node,classes:r.object,className:r.string,disabled:r.bool,error:r.bool,IconComponent:r.elementType.isRequired,inputRef:$t,multiple:r.bool,name:r.string,onChange:r.func,value:r.any,variant:r.oneOf(["standard","outlined","filled"])});function a0(e){return Me("MuiSelect",e)}const fs=De("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var l0;const Yk=ie(o0,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${fs.select}`]:t.select},{[`&.${fs.select}`]:t[n.variant]},{[`&.${fs.error}`]:t.error},{[`&.${fs.multiple}`]:t.multiple}]}})({[`&.${fs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Kk=ie(s0,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),Gk=ie("input",{shouldForwardProp:e=>bv(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function c0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Xk(e){return e==null||typeof e=="string"&&!e.trim()}const Qk=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:i,error:l}=e,a={select:["select",n,o&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return $e(a,a0,t)},u0=O.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":s,autoFocus:i,autoWidth:l,children:a,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:b,inputRef:f,labelId:g,MenuProps:v={},multiple:y,name:S,onBlur:w,onChange:x,onClose:P,onFocus:T,onKeyDown:I,onMouseDown:$,onOpen:M,open:k,readOnly:C,renderValue:N,required:D,SelectDisplayProps:j={},tabIndex:F,type:W,value:Y,variant:H="standard",...L}=t,[E,q]=pn({controlled:Y,default:d,name:"Select"}),[z,R]=pn({controlled:k,default:u,name:"Select"}),A=O.useRef(null),U=O.useRef(null),[X,se]=O.useState(null),{current:te}=O.useRef(k!=null),[J,B]=O.useState(),V=at(n,f),Q=O.useCallback(Oe=>{U.current=Oe,Oe&&se(Oe)},[]),G=X?.parentNode;O.useImperativeHandle(V,()=>({focus:()=>{U.current.focus()},node:A.current,value:E}),[E]);const ne=X!==null&&z;O.useEffect(()=>{if(!ne||!G||l||typeof ResizeObserver>"u")return;const Oe=new ResizeObserver(()=>{B(G.clientWidth)});return Oe.observe(G),()=>{Oe.disconnect()}},[ne,G,l]),O.useEffect(()=>{u&&z&&X&&!te&&(B(l?null:G.clientWidth),U.current.focus())},[X,l]),O.useEffect(()=>{i&&U.current.focus()},[i]),O.useEffect(()=>{if(!g)return;const Oe=Lt(U.current).getElementById(g);if(Oe){const Fe=()=>{getSelection().isCollapsed&&U.current.focus()};return Oe.addEventListener("click",Fe),()=>{Oe.removeEventListener("click",Fe)}}},[g]);const ae=(Oe,Fe)=>{Oe?M&&M(Fe):P&&P(Fe),te||(B(l?null:G.clientWidth),R(Oe))},re=Oe=>{$?.(Oe),Oe.button===0&&(Oe.preventDefault(),U.current.focus(),ae(!0,Oe))},ce=Oe=>{ae(!1,Oe)},be=O.Children.toArray(a),oe=Oe=>{const Fe=be.find(tt=>tt.props.value===Oe.target.value);Fe!==void 0&&(q(Fe.props.value),x&&x(Oe,Fe))},fe=Oe=>Fe=>{let tt;if(Fe.currentTarget.hasAttribute("tabindex")){if(y){tt=Array.isArray(E)?E.slice():[];const _t=E.indexOf(Oe.props.value);_t===-1?tt.push(Oe.props.value):tt.splice(_t,1)}else tt=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(Fe),E!==tt&&(q(tt),x)){const _t=Fe.nativeEvent||Fe,gt=new _t.constructor(_t.type,_t);Object.defineProperty(gt,"target",{writable:!0,value:{value:tt,name:S}}),x(gt,Oe)}y||ae(!1,Fe)}},ve=Oe=>{C||([" ","ArrowUp","ArrowDown","Enter"].includes(Oe.key)&&(Oe.preventDefault(),ae(!0,Oe)),I?.(Oe))},ke=Oe=>{!ne&&w&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:E,name:S}}),w(Oe))};delete L["aria-invalid"];let je,Ue;const Ve=[];let Ze=!1,Qe=!1;(ha({value:E})||h)&&(N?je=N(E):Ze=!0);const Ae=be.map(Oe=>{if(!O.isValidElement(Oe))return null;process.env.NODE_ENV!=="production"&&Ta.isFragment(Oe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
63
+ `));let Fe;if(y){if(!Array.isArray(E))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":rr(2));Fe=E.some(tt=>c0(tt,Oe.props.value)),Fe&&Ze&&Ve.push(Oe.props.children)}else Fe=c0(E,Oe.props.value),Fe&&Ze&&(Ue=Oe.props.children);return Fe&&(Qe=!0),O.cloneElement(Oe,{"aria-selected":Fe?"true":"false",onClick:fe(Oe),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),Oe.props.onKeyUp&&Oe.props.onKeyUp(tt)},role:"option",selected:Fe,value:void 0,"data-value":Oe.props.value})});process.env.NODE_ENV!=="production"&&O.useEffect(()=>{if(!Qe&&!y&&E!==""){const Oe=be.map(Fe=>Fe.props.value);console.warn([`MUI: You have provided an out-of-range value \`${E}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Oe.filter(Fe=>Fe!=null).map(Fe=>`\`${Fe}\``).join(", ")||'""'}.`].join(`
64
+ `))}},[Qe,be,y,S,E]),Ze&&(y?Ve.length===0?je=null:je=Ve.reduce((Oe,Fe,tt)=>(Oe.push(Fe),tt<Ve.length-1&&Oe.push(", "),Oe),[]):je=Ue);let Ne=J;!l&&te&&X&&(Ne=G.clientWidth);let Te;typeof F<"u"?Te=F:Te=p?null:0;const Le=j.id||(S?`mui-component-select-${S}`:void 0),Ye={...t,variant:H,value:E,open:ne,error:m},Ke=Qk(Ye),lt={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(Ye):v.slotProps?.paper},pt={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(Ye):v.slotProps?.list},Be=qn();return _.jsxs(O.Fragment,{children:[_.jsx(Yk,{as:"div",ref:Q,tabIndex:Te,role:"combobox","aria-controls":ne?Be:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[g,Le].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":D?"true":void 0,"aria-invalid":m?"true":void 0,onKeyDown:ve,onMouseDown:p||C?null:re,onBlur:ke,onFocus:T,...j,ownerState:Ye,className:Ce(j.className,Ke.select,c),id:Le,children:Xk(je)?l0||(l0=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):je}),_.jsx(Gk,{"aria-invalid":m,value:Array.isArray(E)?E.join(","):E,name:S,ref:A,"aria-hidden":!0,onChange:oe,tabIndex:-1,disabled:p,className:Ke.nativeInput,autoFocus:i,required:D,...L,ownerState:Ye}),_.jsx(Kk,{as:b,className:Ke.icon,ownerState:Ye}),_.jsx(r0,{id:`menu-${S||""}`,anchorEl:G,open:ne,onClose:ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:Be,...pt},paper:{...lt,style:{minWidth:Ne,...lt!=null?lt.style:null}}},children:Ae})]})});process.env.NODE_ENV!=="production"&&(u0.propTypes={"aria-describedby":r.string,"aria-label":r.string,autoFocus:r.bool,autoWidth:r.bool,children:r.node,classes:r.object,className:r.string,defaultOpen:r.bool,defaultValue:r.any,disabled:r.bool,displayEmpty:r.bool,error:r.bool,IconComponent:r.elementType.isRequired,inputRef:$t,labelId:r.string,MenuProps:r.object,multiple:r.bool,name:r.string,onBlur:r.func,onChange:r.func,onClose:r.func,onFocus:r.func,onOpen:r.func,open:r.bool,readOnly:r.bool,renderValue:r.func,required:r.bool,SelectDisplayProps:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.any,value:r.any,variant:r.oneOf(["standard","outlined","filled"])});const d0=Pt(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Jk=e=>{const{classes:t}=e,o=$e({root:["root"]},a0,t);return{...t,...o}},uf={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ht(e)&&e!=="variant"},Zk=ie(Sa,uf)(""),e_=ie(Ca,uf)(""),t_=ie(wa,uf)(""),ps=O.forwardRef(function(t,n){const o=Je({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:i,classes:l={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=d0,id:p,input:h,inputProps:m,label:b,labelId:f,MenuProps:g,multiple:v=!1,native:y=!1,onClose:S,onOpen:w,open:x,renderValue:P,SelectDisplayProps:T,variant:I="outlined",...$}=o,M=y?i0:u0,k=un(),C=gr({props:o,muiFormControl:k,states:["variant","error"]}),N=C.variant||I,D={...o,variant:N,classes:l},j=Jk(D),{root:F,...W}=j,Y=h||{standard:_.jsx(Zk,{ownerState:D}),outlined:_.jsx(e_,{label:b,ownerState:D}),filled:_.jsx(t_,{ownerState:D})}[N],H=at(n,ns(Y));return _.jsx(O.Fragment,{children:O.cloneElement(Y,{inputComponent:M,inputProps:{children:i,error:C.error,IconComponent:d,variant:N,type:void 0,multiple:v,...y?{id:p}:{autoWidth:s,defaultOpen:c,displayEmpty:u,labelId:f,MenuProps:g,onClose:S,onOpen:w,open:x,renderValue:P,SelectDisplayProps:{id:p,...T}},...m,classes:m?Wt(W,m.classes):W,...h?h.props.inputProps:{}},...(v&&y||u)&&N==="outlined"?{notched:!0}:{},ref:H,className:Ce(Y.props.className,a,j.root),...!h&&{variant:N},...$})})});process.env.NODE_ENV!=="production"&&(ps.propTypes={autoWidth:r.bool,children:r.node,classes:r.object,className:r.string,defaultOpen:r.bool,defaultValue:r.any,displayEmpty:r.bool,IconComponent:r.elementType,id:r.string,input:r.element,inputProps:r.object,label:r.node,labelId:r.string,MenuProps:r.object,multiple:r.bool,native:r.bool,onChange:r.func,onClose:r.func,onOpen:r.func,open:r.bool,renderValue:r.func,SelectDisplayProps:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.oneOfType([r.oneOf([""]),r.any]),variant:r.oneOf(["filled","outlined","standard"])}),ps.muiName="Select";function n_(e){return Me("MuiTextField",e)}De("MuiTextField",["root"]);const r_={standard:Sa,filled:wa,outlined:Ca},o_=e=>{const{classes:t}=e;return $e({root:["root"]},n_,t)},s_=ie(Vr,{name:"MuiTextField",slot:"Root"})({}),hs=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:i=!1,children:l,className:a,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:m=!1,helperText:b,id:f,InputLabelProps:g,inputProps:v,InputProps:y,inputRef:S,label:w,maxRows:x,minRows:P,multiline:T=!1,name:I,onBlur:$,onChange:M,onFocus:k,placeholder:C,required:N=!1,rows:D,select:j=!1,SelectProps:F,slots:W={},slotProps:Y={},type:H,value:L,variant:E="outlined",...q}=o,z={...o,autoFocus:i,color:c,disabled:d,error:p,fullWidth:m,multiline:T,required:N,select:j,variant:E},R=o_(z);process.env.NODE_ENV!=="production"&&j&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const A=qn(f),U=b&&A?`${A}-helper-text`:void 0,X=w&&A?`${A}-label`:void 0,se=r_[E],te={slots:W,slotProps:{input:y,inputLabel:g,htmlInput:v,formHelperText:h,select:F,...Y}},J={},B=te.slotProps.inputLabel;E==="outlined"&&(B&&typeof B.shrink<"u"&&(J.notched=B.shrink),J.label=w),j&&((!F||!F.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const[V,Q]=ot("root",{elementType:s_,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...q},ownerState:z,className:Ce(R.root,a),ref:n,additionalProps:{disabled:d,error:p,fullWidth:m,required:N,color:c,variant:E}}),[G,ne]=ot("input",{elementType:se,externalForwardedProps:te,additionalProps:J,ownerState:z}),[ae,re]=ot("inputLabel",{elementType:ts,externalForwardedProps:te,ownerState:z}),[ce,be]=ot("htmlInput",{elementType:"input",externalForwardedProps:te,ownerState:z}),[oe,fe]=ot("formHelperText",{elementType:uo,externalForwardedProps:te,ownerState:z}),[ve,ke]=ot("select",{elementType:ps,externalForwardedProps:te,ownerState:z}),je=_.jsx(G,{"aria-describedby":U,autoComplete:s,autoFocus:i,defaultValue:u,fullWidth:m,multiline:T,name:I,rows:D,maxRows:x,minRows:P,type:H,value:L,id:A,inputRef:S,onBlur:$,onChange:M,onFocus:k,placeholder:C,inputProps:be,slots:{input:W.htmlInput?ce:void 0},...ne});return _.jsxs(V,{...Q,children:[w!=null&&w!==""&&_.jsx(ae,{htmlFor:A,id:X,...re,children:w}),j?_.jsx(ve,{"aria-describedby":U,id:A,labelId:X,value:L,input:je,...ke,children:l}):je,b&&_.jsx(oe,{id:U,...fe,children:b})]})});process.env.NODE_ENV!=="production"&&(hs.propTypes={autoComplete:r.string,autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),defaultValue:r.any,disabled:r.bool,error:r.bool,FormHelperTextProps:r.object,fullWidth:r.bool,helperText:r.node,id:r.string,InputLabelProps:r.object,inputProps:r.object,InputProps:r.object,inputRef:$t,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,onBlur:r.func,onChange:r.func,onFocus:r.func,placeholder:r.string,required:r.bool,rows:r.oneOfType([r.number,r.string]),select:r.bool,SelectProps:r.object,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({formHelperText:r.oneOfType([r.func,r.object]),htmlInput:r.oneOfType([r.func,r.object]),input:r.oneOfType([r.func,r.object]),inputLabel:r.oneOfType([r.func,r.object]),select:r.oneOfType([r.func,r.object])}),slots:r.shape({formHelperText:r.elementType,htmlInput:r.elementType,input:r.elementType,inputLabel:r.elementType,root:r.elementType,select:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any,variant:r.oneOf(["filled","outlined","standard"])});const i_=e=>{let t;return e.form&&e.form.key&&(t=$n.selectOrSet(e.form.key,e.model)),t==null&&(e.form.default?t=e.form.default:e.form.schema&&e.form.schema.default&&(t=e.form.schema.default)),t},f0=e=>{const{errorText:t,form:n,showErrors:o}=e,s=i_(e);if(!o)return{value:s,valid:!0,error:""};const i=$n.validate(n,s||void 0),l=i.valid?void 0:i.error;return{value:s,valid:i.valid,error:(i.valid?null:l)||t}};function Zt(e){const{form:t,onChange:n}=e,[o,s]=Ge.useState(()=>f0(e));return Ge.useEffect(()=>{s(f0(e))},[e.model,e.form,e.showErrors,e.errorText]),{...o,onChangeValidate:(l,a)=>{let c=null;const u=t.schema?t.schema.type:t.type;if(a!==void 0)c=a;else switch(u){case"integer":case"number":{c=l;break}case"boolean":c=l.target.checked;break;case"array":c=l;break;case"object":if(t.type==="date"){l.target.value.length>0?c=new Date(l.target.value):c="";break}({value:c}=l.target);break;case"string":t.type==="timestamp"?c=l:{value:c}=l.target;break;default:console.log("type = ",u),l&&l.target?{value:c}=l.target:c=l}const d=$n.validate(t,c);s({value:c,valid:d.valid,error:d.valid?null:d.error}),n(t.key,c)}}}function mo(e){const{form:t,setDefault:n,model:o,localization:{getLocalizedString:s},otherProps:i}=e,l=Zt(e),a=e.value!==void 0?e.value:l.value,c=e.valid!==void 0?e.valid:l.valid,u=e.error!==void 0?e.error:l.error,d=e.onChangeValidate!==void 0?e.onChangeValidate:l.onChangeValidate,{key:p}=t;return n(p,o,t,l.value),_.jsx(hs,{type:t.type,label:t.title&&s(t.title),placeholder:t.placeholder&&s(t.placeholder),helperText:(u||t.description)&&s(u||t.description),error:!c,onChange:d,value:a||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...i,...t.otherProps})}mo.defaultProps={otherProps:void 0};const a_=e=>{const{form:t,localization:{getLocalizedNumber:n}}=e,{value:o,valid:s,error:i,onChangeValidate:l}=Zt(e);let a=o||o===0?o:"";t.useLocalizer&&(a=n(a));const c=u=>{const d=t.schema?t.schema.type:t.type;let p=null;if(d==="integer")p=parseInt(u.target.value,10);else if(d==="number"){const h=u.target.value.split(".");h.length<2?p=parseInt(u.target.value,10):h.length>1&&(h[1].length>0?p=parseFloat(u.target.value):p=`${parseInt(h[0],10)}.`)}l(p)};return _.jsx(mo,{...e,form:{...t,type:"string"},value:a,valid:s,error:i,onChangeValidate:c})},l_=e=>{const{form:t}=e;return _.jsx(mo,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})},c_=e=>{const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,valid:l,error:a,onChangeValidate:c}=Zt(e),{key:u,title:d}=n;return Ge.useEffect(()=>{o(u,t,n,i)},[]),_.jsxs(Ge.Fragment,{children:[_.jsx(vr,{required:n.required,children:d&&s(d)}),_.jsx(vw,{value:i||"",height:n.height,onChange:p=>c(null,p)}),l?null:_.jsx(uo,{error:!0,children:a})]})};function u_(e){const t=O.useRef({});return O.useEffect(()=>{t.current=e}),t.current}function p0({array1:e,array2:t,parser:n=o=>o}){return e&&t&&e.length===t.length&&e.every((o,s)=>n(o)===n(t[s]))}function h0(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function d_(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:o,matchFrom:s="any",stringify:i,trim:l=!1}=e;return(a,{inputValue:c,getOptionLabel:u})=>{let d=l?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=h0(d));const p=d?a.filter(h=>{let m=(i||u)(h);return n&&(m=m.toLowerCase()),t&&(m=h0(m)),s==="start"?m.startsWith(d):m.includes(d)}):a;return typeof o=="number"?p.slice(0,o):p}}const f_=d_(),m0=5,p_=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),h_=[];function y0(e,t,n,o){if(t||e==null||o)return"";const s=n(e);return typeof s=="string"?s:""}function m_(e){const{unstable_isActiveElementInListbox:t=p_,unstable_classNamePrefix:n="Mui",autoComplete:o=!1,autoHighlight:s=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?h_:null,disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:f=!1,filterOptions:g=f_,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:S,getOptionKey:w,getOptionLabel:x=ge=>ge.label??ge,groupBy:P,handleHomeEndKeys:T=!e.freeSolo,id:I,includeInputInList:$=!1,inputValue:M,isOptionEqualToValue:k=(ge,me)=>ge===me,multiple:C=!1,onChange:N,onClose:D,onHighlightChange:j,onInputChange:F,onOpen:W,open:Y,openOnFocus:H=!1,options:L,readOnly:E=!1,renderValue:q,selectOnFocus:z=!e.freeSolo,value:R}=e,A=qn(I);let U=x;U=ge=>{const me=x(ge);if(typeof me!="string"){if(process.env.NODE_ENV!=="production"){const _e=me===void 0?"undefined":`${typeof me} (${me})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${_e} instead of a string for ${JSON.stringify(ge)}.`)}return String(me)}return me};const X=O.useRef(!1),se=O.useRef(!0),te=O.useRef(null),J=O.useRef(null),[B,V]=O.useState(null),[Q,G]=O.useState(-1),ne=s?0:-1,ae=O.useRef(ne),re=O.useRef(y0(d??R,C,U)).current,[ce,be]=pn({controlled:R,default:d,name:u}),[oe,fe]=pn({controlled:M,default:re,name:u,state:"inputValue"}),[ve,ke]=O.useState(!1),je=O.useCallback((ge,me,_e)=>{if(!(C?ce.length<me.length:me!==null)&&!a)return;const We=y0(me,C,U,q);oe!==We&&(fe(We),F&&F(ge,We,_e))},[U,oe,C,F,fe,a,ce,q]),[Ue,Ve]=pn({controlled:Y,default:!1,name:u,state:"open"}),[Ze,Qe]=O.useState(!0),Ae=!C&&ce!=null&&oe===U(ce),Ne=Ue&&!E,Te=Ne?g(L.filter(ge=>!(v&&(C?ce:[ce]).some(me=>me!==null&&k(ge,me)))),{inputValue:Ae&&Ze?"":oe,getOptionLabel:U}):[],Le=u_({filteredOptions:Te,value:ce,inputValue:oe});O.useEffect(()=>{const ge=ce!==Le.value;ve&&!ge||y&&!ge||je(null,ce,"reset")},[ce,je,ve,Le.value,y]);const Ye=Ue&&Te.length>0&&!E,Ke=Ee(ge=>{if(ge===-1)te.current.focus();else{const me=q?"data-item-index":"data-tag-index";B.querySelector(`[${me}="${ge}"]`).focus()}});O.useEffect(()=>{C&&Q>ce.length-1&&(G(-1),Ke(-1))},[ce,C,Q,Ke]);function lt(ge,me){if(!J.current||ge<0||ge>=Te.length)return-1;let _e=ge;for(;;){const ze=J.current.querySelector(`[data-option-index="${_e}"]`),We=b?!1:!ze||ze.disabled||ze.getAttribute("aria-disabled")==="true";if(ze&&ze.hasAttribute("tabindex")&&!We)return _e;if(me==="next"?_e=(_e+1)%Te.length:_e=(_e-1+Te.length)%Te.length,_e===ge)return-1}}const pt=Ee(({event:ge,index:me,reason:_e})=>{if(ae.current=me,me===-1?te.current.removeAttribute("aria-activedescendant"):te.current.setAttribute("aria-activedescendant",`${A}-option-${me}`),j&&["mouse","keyboard","touch"].includes(_e)&&j(ge,me===-1?null:Te[me],_e),!J.current)return;const ze=J.current.querySelector(`[role="option"].${n}-focused`);ze&&(ze.classList.remove(`${n}-focused`),ze.classList.remove(`${n}-focusVisible`));let We=J.current;if(J.current.getAttribute("role")!=="listbox"&&(We=J.current.parentElement.querySelector('[role="listbox"]')),!We)return;if(me===-1){We.scrollTop=0;return}const It=J.current.querySelector(`[data-option-index="${me}"]`);if(It&&(It.classList.add(`${n}-focused`),_e==="keyboard"&&It.classList.add(`${n}-focusVisible`),We.scrollHeight>We.clientHeight&&_e!=="mouse"&&_e!=="touch")){const ct=It,Gt=We.clientHeight+We.scrollTop,Xt=ct.offsetTop+ct.offsetHeight;Xt>Gt?We.scrollTop=Xt-We.clientHeight:ct.offsetTop-ct.offsetHeight*(P?1.3:0)<We.scrollTop&&(We.scrollTop=ct.offsetTop-ct.offsetHeight*(P?1.3:0))}}),Be=Ee(({event:ge,diff:me,direction:_e="next",reason:ze})=>{if(!Ne)return;const It=lt((()=>{const ct=Te.length-1;if(me==="reset")return ne;if(me==="start")return 0;if(me==="end")return ct;const Gt=ae.current+me;return Gt<0?Gt===-1&&$?-1:f&&ae.current!==-1||Math.abs(me)>1?0:ct:Gt>ct?Gt===ct+1&&$?-1:f||Math.abs(me)>1?ct:0:Gt})(),_e);if(pt({index:It,reason:ze,event:ge}),o&&me!=="reset")if(It===-1)te.current.value=oe;else{const ct=U(Te[It]);te.current.value=ct,ct.toLowerCase().indexOf(oe.toLowerCase())===0&&oe.length>0&&te.current.setSelectionRange(oe.length,ct.length)}}),Oe=!p0({array1:Le.filteredOptions,array2:Te,parser:U}),Fe=()=>{const ge=(me,_e)=>{const ze=me?U(me):"",We=_e?U(_e):"";return ze===We};if(ae.current!==-1&&!p0({array1:Le.filteredOptions,array2:Te,parser:U})&&Le.inputValue===oe&&(C?ce.length===Le.value.length&&Le.value.every((me,_e)=>U(ce[_e])===U(me)):ge(Le.value,ce))){const me=Le.filteredOptions[ae.current];if(me)return Te.findIndex(_e=>U(_e)===U(me))}return-1},tt=O.useCallback(()=>{if(!Ne)return;const ge=Fe();if(ge!==-1){ae.current=ge;return}const me=C?ce[0]:ce;if(Te.length===0||me==null){Be({diff:"reset"});return}if(J.current){if(me!=null){const _e=Te[ae.current];if(C&&_e&&ce.findIndex(We=>k(_e,We))!==-1)return;const ze=Te.findIndex(We=>k(We,me));ze===-1?Be({diff:"reset"}):pt({index:ze});return}if(ae.current>=Te.length-1){pt({index:Te.length-1});return}pt({index:ae.current})}},[Te.length,C?!1:ce,Be,pt,Ne,oe,C]),_t=Ee(ge=>{Wd(J,ge),ge&&tt()});process.env.NODE_ENV!=="production"&&O.useEffect(()=>{(!te.current||te.current.nodeName!=="INPUT")&&(te.current&&te.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
65
+ `)):console.error([`MUI: Unable to find the input element. It was resolved to ${te.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
66
+ `)))},[u]),O.useEffect(()=>{(Oe||Ne&&!h)&&tt()},[tt,Oe,Ne,h]);const gt=ge=>{Ue||(Ve(!0),Qe(!0),W&&W(ge))},mn=(ge,me)=>{Ue&&(Ve(!1),D&&D(ge,me))},de=(ge,me,_e,ze)=>{if(C){if(ce.length===me.length&&ce.every((We,It)=>We===me[It]))return}else if(ce===me)return;N&&N(ge,me,_e,ze),be(me)},Z=O.useRef(!1),he=(ge,me,_e="selectOption",ze="options")=>{let We=_e,It=me;if(C){if(It=Array.isArray(ce)?ce.slice():[],process.env.NODE_ENV!=="production"){const Gt=It.filter(Xt=>k(me,Xt));Gt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Gt.length} matches.`].join(`
67
+ `))}const ct=It.findIndex(Gt=>k(me,Gt));ct===-1?It.push(me):ze!=="freeSolo"&&(It.splice(ct,1),We="removeOption")}je(ge,It,We),de(ge,It,We,{option:me}),!h&&(!ge||!ge.ctrlKey&&!ge.metaKey)&&mn(ge,We),(l===!0||l==="touch"&&Z.current||l==="mouse"&&!Z.current)&&te.current.blur()};function le(ge,me){if(ge===-1)return-1;let _e=ge;for(;;){if(me==="next"&&_e===ce.length||me==="previous"&&_e===-1)return-1;const ze=q?"data-item-index":"data-tag-index",We=B.querySelector(`[${ze}="${_e}"]`);if(!We||!We.hasAttribute("tabindex")||We.disabled||We.getAttribute("aria-disabled")==="true")_e+=me==="next"?1:-1;else return _e}}const Ie=(ge,me)=>{if(!C)return;oe===""&&mn(ge,"toggleInput");let _e=Q;Q===-1&&me==="previous"?(_e=ce.length-1,y&&oe!==""&&(fe(""),F&&F(ge,"","reset"))):(_e+=me==="next"?1:-1,_e<0&&(_e=0),_e===ce.length&&(_e=-1)),_e=le(_e,me),G(_e),Ke(_e)},Se=ge=>{X.current=!0,fe(""),F&&F(ge,"","clear"),de(ge,C?[]:null,"clear")},Pe=ge=>me=>{if(ge.onKeyDown&&ge.onKeyDown(me),!me.defaultMuiPrevented&&(Q!==-1&&!["ArrowLeft","ArrowRight"].includes(me.key)&&(G(-1),Ke(-1)),me.which!==229))switch(me.key){case"Home":Ne&&T&&(me.preventDefault(),Be({diff:"start",direction:"next",reason:"keyboard",event:me}));break;case"End":Ne&&T&&(me.preventDefault(),Be({diff:"end",direction:"previous",reason:"keyboard",event:me}));break;case"PageUp":me.preventDefault(),Be({diff:-m0,direction:"previous",reason:"keyboard",event:me}),gt(me);break;case"PageDown":me.preventDefault(),Be({diff:m0,direction:"next",reason:"keyboard",event:me}),gt(me);break;case"ArrowDown":me.preventDefault(),Be({diff:1,direction:"next",reason:"keyboard",event:me}),gt(me);break;case"ArrowUp":me.preventDefault(),Be({diff:-1,direction:"previous",reason:"keyboard",event:me}),gt(me);break;case"ArrowLeft":{const _e=te.current;if(!(_e&&_e.selectionStart===0&&_e.selectionEnd===0))return;!C&&q&&ce!=null?(y&&oe!==""&&(fe(""),F&&F(me,"","reset")),G(0),Ke(0)):Ie(me,"previous");break}case"ArrowRight":!C&&q?(G(-1),Ke(-1)):Ie(me,"next");break;case"Enter":if(ae.current!==-1&&Ne){const _e=Te[ae.current],ze=S?S(_e):!1;if(me.preventDefault(),ze)return;he(me,_e,"selectOption"),o&&te.current.setSelectionRange(te.current.value.length,te.current.value.length)}else y&&oe!==""&&Ae===!1&&(C&&me.preventDefault(),he(me,oe,"createOption","freeSolo"));break;case"Escape":Ne?(me.preventDefault(),me.stopPropagation(),mn(me,"escape")):c&&(oe!==""||C&&ce.length>0||q)&&(me.preventDefault(),me.stopPropagation(),Se(me));break;case"Backspace":if(C&&!E&&oe===""&&ce.length>0){const _e=Q===-1?ce.length-1:Q,ze=ce.slice();ze.splice(_e,1),de(me,ze,"removeOption",{option:ce[_e]})}!C&&q&&!E&&oe===""&&de(me,null,"removeOption",{option:ce});break;case"Delete":if(C&&!E&&oe===""&&ce.length>0&&Q!==-1){const _e=Q,ze=ce.slice();ze.splice(_e,1),de(me,ze,"removeOption",{option:ce[_e]})}!C&&q&&!E&&oe===""&&de(me,null,"removeOption",{option:ce});break}},pe=ge=>{ke(!0),Q!==-1&&(G(-1),Ke(-1)),H&&!X.current&&gt(ge)},ee=ge=>{if(t(J)){te.current.focus();return}ke(!1),se.current=!0,X.current=!1,i&&ae.current!==-1&&Ne?he(ge,Te[ae.current],"blur"):i&&y&&oe!==""?he(ge,oe,"blur","freeSolo"):a&&je(ge,ce,"blur"),mn(ge,"blur")},ue=ge=>{const me=ge.target.value;oe!==me&&(fe(me),Qe(!1),F&&F(ge,me,"input")),me===""?!p&&!C&&!q&&de(ge,null,"clear"):gt(ge)},xe=ge=>{const me=Number(ge.currentTarget.getAttribute("data-option-index"));ae.current!==me&&pt({event:ge,index:me,reason:"mouse"})},Re=ge=>{pt({event:ge,index:Number(ge.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Z.current=!0},He=ge=>{const me=Number(ge.currentTarget.getAttribute("data-option-index"));he(ge,Te[me],"selectOption"),Z.current=!1},Rt=ge=>me=>{const _e=ce.slice();_e.splice(ge,1),de(me,_e,"removeOption",{option:ce[ge]})},Et=ge=>{de(ge,null,"removeOption",{option:ce})},dt=ge=>{Ue?mn(ge,"toggleInput"):gt(ge)},kt=ge=>{ge.currentTarget.contains(ge.target)&&ge.target.getAttribute("id")!==A&&ge.preventDefault()},Kt=ge=>{ge.currentTarget.contains(ge.target)&&(te.current.focus(),z&&se.current&&te.current.selectionEnd-te.current.selectionStart===0&&te.current.select(),se.current=!1)},Qr=ge=>{!m&&(oe===""||!Ue)&&dt(ge)};let _n=y&&oe.length>0;_n=_n||(C?ce.length>0:ce!==null);let Ln=Te;if(P){const ge=new Map;let me=!1;Ln=Te.reduce((_e,ze,We)=>{const It=P(ze);return _e.length>0&&_e[_e.length-1].group===It?_e[_e.length-1].options.push(ze):(process.env.NODE_ENV!=="production"&&(ge.get(It)&&!me&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),me=!0),ge.set(It,!0)),_e.push({key:We,index:We,group:It,options:[ze]})),_e},[])}return m&&ve&&ee(),{getRootProps:(ge={})=>({...ge,onKeyDown:Pe(ge),onMouseDown:kt,onClick:Kt}),getInputLabelProps:()=>({id:`${A}-label`,htmlFor:A}),getInputProps:()=>({id:A,value:oe,onBlur:ee,onFocus:pe,onChange:ue,onMouseDown:Qr,"aria-activedescendant":Ne?"":null,"aria-autocomplete":o?"both":"list","aria-controls":Ye?`${A}-listbox`:void 0,"aria-expanded":Ye,autoComplete:"off",ref:te,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Se}),getItemProps:({index:ge=0}={})=>({...C&&{key:ge},...q?{"data-item-index":ge}:{"data-tag-index":ge},tabIndex:-1,...!E&&{onDelete:C?Rt(ge):Et}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:dt}),getTagProps:({index:ge})=>({key:ge,"data-tag-index":ge,tabIndex:-1,...!E&&{onDelete:Rt(ge)}}),getListboxProps:()=>({role:"listbox",id:`${A}-listbox`,"aria-labelledby":`${A}-label`,"aria-multiselectable":C||void 0,ref:_t,onMouseDown:ge=>{ge.preventDefault()}}),getOptionProps:({index:ge,option:me})=>{const _e=(C?ce:[ce]).some(We=>We!=null&&k(me,We)),ze=S?S(me):!1;return{key:w?.(me)??U(me),tabIndex:-1,role:"option",id:`${A}-option-${ge}`,onMouseMove:xe,onClick:He,onTouchStart:Re,"data-option-index":ge,"aria-disabled":ze,"aria-selected":_e}},id:A,inputValue:oe,value:ce,dirty:_n,expanded:Ne&&B,popupOpen:Ne,focused:ve||Q!==-1,anchorEl:B,setAnchorEl:V,focusedItem:Q,focusedTag:Q,groupedOptions:Ln}}var sn="top",Cn="bottom",Pn="right",an="left",df="auto",ms=[sn,Cn,Pn,an],yo="start",ys="end",y_="clippingParents",g0="viewport",gs="popper",g_="reference",b0=ms.reduce(function(e,t){return e.concat([t+"-"+yo,t+"-"+ys])},[]),v0=[].concat(ms,[df]).reduce(function(e,t){return e.concat([t,t+"-"+yo,t+"-"+ys])},[]),b_="beforeRead",v_="read",S_="afterRead",x_="beforeMain",w_="main",C_="afterMain",P_="beforeWrite",T_="write",O_="afterWrite",E_=[b_,v_,S_,x_,w_,C_,P_,T_,O_];function Wn(e){return e?(e.nodeName||"").toLowerCase():null}function hn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zr(e){var t=hn(e).Element;return e instanceof t||e instanceof Element}function Tn(e){var t=hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ff(e){if(typeof ShadowRoot>"u")return!1;var t=hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k_(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!Tn(i)||!Wn(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(l){var a=s[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function __(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(o){var s=t.elements[o],i=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),a=l.reduce(function(c,u){return c[u]="",c},{});!Tn(s)||!Wn(s)||(Object.assign(s.style,a),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const R_={name:"applyStyles",enabled:!0,phase:"write",fn:k_,effect:__,requires:["computeStyles"]};function Hn(e){return e.split("-")[0]}var Ur=Math.max,Ra=Math.min,go=Math.round;function pf(){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 S0(){return!/^((?!chrome|android).)*safari/i.test(pf())}function bo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),s=1,i=1;t&&Tn(e)&&(s=e.offsetWidth>0&&go(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&go(o.height)/e.offsetHeight||1);var l=zr(e)?hn(e):window,a=l.visualViewport,c=!S0()&&n,u=(o.left+(c&&a?a.offsetLeft:0))/s,d=(o.top+(c&&a?a.offsetTop:0))/i,p=o.width/s,h=o.height/i;return{width:p,height:h,top:d,right:u+p,bottom:d+h,left:u,x:u,y:d}}function hf(e){var t=bo(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function x0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ff(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ar(e){return hn(e).getComputedStyle(e)}function I_(e){return["table","td","th"].indexOf(Wn(e))>=0}function Pr(e){return((zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ia(e){return Wn(e)==="html"?e:e.assignedSlot||e.parentNode||(ff(e)?e.host:null)||Pr(e)}function w0(e){return!Tn(e)||ar(e).position==="fixed"?null:e.offsetParent}function $_(e){var t=/firefox/i.test(pf()),n=/Trident/i.test(pf());if(n&&Tn(e)){var o=ar(e);if(o.position==="fixed")return null}var s=Ia(e);for(ff(s)&&(s=s.host);Tn(s)&&["html","body"].indexOf(Wn(s))<0;){var i=ar(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function bs(e){for(var t=hn(e),n=w0(e);n&&I_(n)&&ar(n).position==="static";)n=w0(n);return n&&(Wn(n)==="html"||Wn(n)==="body"&&ar(n).position==="static")?t:n||$_(e)||t}function mf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vs(e,t,n){return Ur(e,Ra(t,n))}function D_(e,t,n){var o=vs(e,t,n);return o>n?n:o}function C0(){return{top:0,right:0,bottom:0,left:0}}function P0(e){return Object.assign({},C0(),e)}function T0(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var M_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,P0(typeof t!="number"?t:T0(t,ms))};function N_(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Hn(n.placement),c=mf(a),u=[an,Pn].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!l)){var p=M_(s.padding,n),h=hf(i),m=c==="y"?sn:an,b=c==="y"?Cn:Pn,f=n.rects.reference[d]+n.rects.reference[c]-l[c]-n.rects.popper[d],g=l[c]-n.rects.reference[c],v=bs(i),y=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,S=f/2-g/2,w=p[m],x=y-h[d]-p[b],P=y/2-h[d]/2+S,T=vs(w,P,x),I=c;n.modifiersData[o]=(t={},t[I]=T,t.centerOffset=T-P,t)}}function j_(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||x0(t.elements.popper,s)&&(t.elements.arrow=s))}const A_={name:"arrow",enabled:!0,phase:"main",fn:N_,effect:j_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vo(e){return e.split("-")[1]}var F_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function V_(e,t){var n=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:go(n*s)/s||0,y:go(o*s)/s||0}}function O0(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=l.x,m=h===void 0?0:h,b=l.y,f=b===void 0?0:b,g=typeof d=="function"?d({x:m,y:f}):{x:m,y:f};m=g.x,f=g.y;var v=l.hasOwnProperty("x"),y=l.hasOwnProperty("y"),S=an,w=sn,x=window;if(u){var P=bs(n),T="clientHeight",I="clientWidth";if(P===hn(n)&&(P=Pr(n),ar(P).position!=="static"&&a==="absolute"&&(T="scrollHeight",I="scrollWidth")),P=P,s===sn||(s===an||s===Pn)&&i===ys){w=Cn;var $=p&&P===x&&x.visualViewport?x.visualViewport.height:P[T];f-=$-o.height,f*=c?1:-1}if(s===an||(s===sn||s===Cn)&&i===ys){S=Pn;var M=p&&P===x&&x.visualViewport?x.visualViewport.width:P[I];m-=M-o.width,m*=c?1:-1}}var k=Object.assign({position:a},u&&F_),C=d===!0?V_({x:m,y:f},hn(n)):{x:m,y:f};if(m=C.x,f=C.y,c){var N;return Object.assign({},k,(N={},N[w]=y?"0":"",N[S]=v?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+f+"px)":"translate3d("+m+"px, "+f+"px, 0)",N))}return Object.assign({},k,(t={},t[w]=y?f+"px":"",t[S]=v?m+"px":"",t.transform="",t))}function L_(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:Hn(t.placement),variation:vo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,O0(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,O0(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const B_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:L_,data:{}};var $a={passive:!0};function q_(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,l=o.resize,a=l===void 0?!0:l,c=hn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,$a)}),a&&c.addEventListener("resize",n.update,$a),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,$a)}),a&&c.removeEventListener("resize",n.update,$a)}}const z_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:q_,data:{}};var U_={left:"right",right:"left",bottom:"top",top:"bottom"};function Da(e){return e.replace(/left|right|bottom|top/g,function(t){return U_[t]})}var W_={start:"end",end:"start"};function E0(e){return e.replace(/start|end/g,function(t){return W_[t]})}function yf(e){var t=hn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function gf(e){return bo(Pr(e)).left+yf(e).scrollLeft}function H_(e,t){var n=hn(e),o=Pr(e),s=n.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(s){i=s.width,l=s.height;var u=S0();(u||!u&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:l,x:a+gf(e),y:c}}function Y_(e){var t,n=Pr(e),o=yf(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Ur(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=Ur(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-o.scrollLeft+gf(e),c=-o.scrollTop;return ar(s||n).direction==="rtl"&&(a+=Ur(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function bf(e){var t=ar(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function k0(e){return["html","body","#document"].indexOf(Wn(e))>=0?e.ownerDocument.body:Tn(e)&&bf(e)?e:k0(Ia(e))}function Ss(e,t){var n;t===void 0&&(t=[]);var o=k0(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=hn(o),l=s?[i].concat(i.visualViewport||[],bf(o)?o:[]):o,a=t.concat(l);return s?a:a.concat(Ss(Ia(l)))}function vf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function K_(e,t){var n=bo(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 _0(e,t,n){return t===g0?vf(H_(e,n)):zr(t)?K_(t,n):vf(Y_(Pr(e)))}function G_(e){var t=Ss(Ia(e)),n=["absolute","fixed"].indexOf(ar(e).position)>=0,o=n&&Tn(e)?bs(e):e;return zr(o)?t.filter(function(s){return zr(s)&&x0(s,o)&&Wn(s)!=="body"}):[]}function X_(e,t,n,o){var s=t==="clippingParents"?G_(e):[].concat(t),i=[].concat(s,[n]),l=i[0],a=i.reduce(function(c,u){var d=_0(e,u,o);return c.top=Ur(d.top,c.top),c.right=Ra(d.right,c.right),c.bottom=Ra(d.bottom,c.bottom),c.left=Ur(d.left,c.left),c},_0(e,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function R0(e){var t=e.reference,n=e.element,o=e.placement,s=o?Hn(o):null,i=o?vo(o):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(s){case sn:c={x:l,y:t.y-n.height};break;case Cn:c={x:l,y:t.y+t.height};break;case Pn:c={x:t.x+t.width,y:a};break;case an:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var u=s?mf(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case yo:c[u]=c[u]-(t[d]/2-n[d]/2);break;case ys:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function xs(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.strategy,l=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?y_:a,u=n.rootBoundary,d=u===void 0?g0:u,p=n.elementContext,h=p===void 0?gs:p,m=n.altBoundary,b=m===void 0?!1:m,f=n.padding,g=f===void 0?0:f,v=P0(typeof g!="number"?g:T0(g,ms)),y=h===gs?g_:gs,S=e.rects.popper,w=e.elements[b?y:h],x=X_(zr(w)?w:w.contextElement||Pr(e.elements.popper),c,d,l),P=bo(e.elements.reference),T=R0({reference:P,element:S,placement:s}),I=vf(Object.assign({},S,T)),$=h===gs?I:P,M={top:x.top-$.top+v.top,bottom:$.bottom-x.bottom+v.bottom,left:x.left-$.left+v.left,right:$.right-x.right+v.right},k=e.modifiersData.offset;if(h===gs&&k){var C=k[s];Object.keys(M).forEach(function(N){var D=[Pn,Cn].indexOf(N)>=0?1:-1,j=[sn,Cn].indexOf(N)>=0?"y":"x";M[N]+=C[j]*D})}return M}function Q_(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?v0:c,d=vo(o),p=d?a?b0:b0.filter(function(b){return vo(b)===d}):ms,h=p.filter(function(b){return u.indexOf(b)>=0});h.length===0&&(h=p);var m=h.reduce(function(b,f){return b[f]=xs(e,{placement:f,boundary:s,rootBoundary:i,padding:l})[Hn(f)],b},{});return Object.keys(m).sort(function(b,f){return m[b]-m[f]})}function J_(e){if(Hn(e)===df)return[];var t=Da(e);return[E0(e),t,E0(t)]}function Z_(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,f=n.allowedAutoPlacements,g=t.options.placement,v=Hn(g),y=v===g,S=c||(y||!b?[Da(g)]:J_(g)),w=[g].concat(S).reduce(function(R,A){return R.concat(Hn(A)===df?Q_(t,{placement:A,boundary:d,rootBoundary:p,padding:u,flipVariations:b,allowedAutoPlacements:f}):A)},[]),x=t.rects.reference,P=t.rects.popper,T=new Map,I=!0,$=w[0],M=0;M<w.length;M++){var k=w[M],C=Hn(k),N=vo(k)===yo,D=[sn,Cn].indexOf(C)>=0,j=D?"width":"height",F=xs(t,{placement:k,boundary:d,rootBoundary:p,altBoundary:h,padding:u}),W=D?N?Pn:an:N?Cn:sn;x[j]>P[j]&&(W=Da(W));var Y=Da(W),H=[];if(i&&H.push(F[C]<=0),a&&H.push(F[W]<=0,F[Y]<=0),H.every(function(R){return R})){$=k,I=!1;break}T.set(k,H)}if(I)for(var L=b?3:1,E=function(A){var U=w.find(function(X){var se=T.get(X);if(se)return se.slice(0,A).every(function(te){return te})});if(U)return $=U,"break"},q=L;q>0;q--){var z=E(q);if(z==="break")break}t.placement!==$&&(t.modifiersData[o]._skip=!0,t.placement=$,t.reset=!0)}}const eR={name:"flip",enabled:!0,phase:"main",fn:Z_,requiresIfExists:["offset"],data:{_skip:!1}};function I0(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 $0(e){return[sn,Pn,Cn,an].some(function(t){return e[t]>=0})}function tR(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,l=xs(t,{elementContext:"reference"}),a=xs(t,{altBoundary:!0}),c=I0(l,o),u=I0(a,s,i),d=$0(c),p=$0(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const nR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tR};function rR(e,t,n){var o=Hn(e),s=[an,sn].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*s,[an,Pn].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function oR(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,l=v0.reduce(function(d,p){return d[p]=rR(p,t.rects,i),d},{}),a=l[t.placement],c=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=l}const sR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oR};function iR(e){var t=e.state,n=e.name;t.modifiersData[n]=R0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const aR={name:"popperOffsets",enabled:!0,phase:"read",fn:iR,data:{}};function lR(e){return e==="x"?"y":"x"}function cR(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,h=n.tether,m=h===void 0?!0:h,b=n.tetherOffset,f=b===void 0?0:b,g=xs(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),v=Hn(t.placement),y=vo(t.placement),S=!y,w=mf(v),x=lR(w),P=t.modifiersData.popperOffsets,T=t.rects.reference,I=t.rects.popper,$=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,M=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(P){if(i){var N,D=w==="y"?sn:an,j=w==="y"?Cn:Pn,F=w==="y"?"height":"width",W=P[w],Y=W+g[D],H=W-g[j],L=m?-I[F]/2:0,E=y===yo?T[F]:I[F],q=y===yo?-I[F]:-T[F],z=t.elements.arrow,R=m&&z?hf(z):{width:0,height:0},A=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C0(),U=A[D],X=A[j],se=vs(0,T[F],R[F]),te=S?T[F]/2-L-se-U-M.mainAxis:E-se-U-M.mainAxis,J=S?-T[F]/2+L+se+X+M.mainAxis:q+se+X+M.mainAxis,B=t.elements.arrow&&bs(t.elements.arrow),V=B?w==="y"?B.clientTop||0:B.clientLeft||0:0,Q=(N=k?.[w])!=null?N:0,G=W+te-Q-V,ne=W+J-Q,ae=vs(m?Ra(Y,G):Y,W,m?Ur(H,ne):H);P[w]=ae,C[w]=ae-W}if(a){var re,ce=w==="x"?sn:an,be=w==="x"?Cn:Pn,oe=P[x],fe=x==="y"?"height":"width",ve=oe+g[ce],ke=oe-g[be],je=[sn,an].indexOf(v)!==-1,Ue=(re=k?.[x])!=null?re:0,Ve=je?ve:oe-T[fe]-I[fe]-Ue+M.altAxis,Ze=je?oe+T[fe]+I[fe]-Ue-M.altAxis:ke,Qe=m&&je?D_(Ve,oe,Ze):vs(m?Ve:ve,oe,m?Ze:ke);P[x]=Qe,C[x]=Qe-oe}t.modifiersData[o]=C}}const uR={name:"preventOverflow",enabled:!0,phase:"main",fn:cR,requiresIfExists:["offset"]};function dR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fR(e){return e===hn(e)||!Tn(e)?yf(e):dR(e)}function pR(e){var t=e.getBoundingClientRect(),n=go(t.width)/e.offsetWidth||1,o=go(t.height)/e.offsetHeight||1;return n!==1||o!==1}function hR(e,t,n){n===void 0&&(n=!1);var o=Tn(t),s=Tn(t)&&pR(t),i=Pr(t),l=bo(e,s,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Wn(t)!=="body"||bf(i))&&(a=fR(t)),Tn(t)?(c=bo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=gf(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function mR(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&s(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function yR(e){var t=mR(e);return E_.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function gR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bR(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var D0={placement:"bottom",modifiers:[],strategy:"absolute"};function M0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function vR(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?D0:s;return function(a,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},D0,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},p=[],h=!1,m={state:d,setOptions:function(v){var y=typeof v=="function"?v(d.options):v;f(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:zr(a)?Ss(a):a.contextElement?Ss(a.contextElement):[],popper:Ss(c)};var S=yR(bR([].concat(o,d.options.modifiers)));return d.orderedModifiers=S.filter(function(w){return w.enabled}),b(),m.update()},forceUpdate:function(){if(!h){var v=d.elements,y=v.reference,S=v.popper;if(M0(y,S)){d.rects={reference:hR(y,bs(S),d.options.strategy==="fixed"),popper:hf(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(M){return d.modifiersData[M.name]=Object.assign({},M.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var x=d.orderedModifiers[w],P=x.fn,T=x.options,I=T===void 0?{}:T,$=x.name;typeof P=="function"&&(d=P({state:d,options:I,name:$,instance:m})||d)}}}},update:gR(function(){return new Promise(function(g){m.forceUpdate(),g(d)})}),destroy:function(){f(),h=!0}};if(!M0(a,c))return m;m.setOptions(u).then(function(g){!h&&u.onFirstUpdate&&u.onFirstUpdate(g)});function b(){d.orderedModifiers.forEach(function(g){var v=g.name,y=g.options,S=y===void 0?{}:y,w=g.effect;if(typeof w=="function"){var x=w({state:d,name:v,instance:m,options:S}),P=function(){};p.push(x||P)}})}function f(){p.forEach(function(g){return g()}),p=[]}return m}}var SR=[z_,aR,B_,R_,sR,eR,uR,A_,nR],xR=vR({defaultModifiers:SR});function wR(e){return Me("MuiPopper",e)}De("MuiPopper",["root"]);function CR(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 Ma(e){return typeof e=="function"?e():e}function Na(e){return e.nodeType!==void 0}function PR(e){return!Na(e)}const TR=e=>{const{classes:t}=e;return $e({root:["root"]},wR,t)},OR={},ER=O.forwardRef(function(t,n){const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:a,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:b,ownerState:f,...g}=t,v=O.useRef(null),y=at(v,n),S=O.useRef(null),w=at(S,p),x=O.useRef(w);Mt(()=>{x.current=w},[w]),O.useImperativeHandle(p,()=>S.current,[]);const P=CR(u,i),[T,I]=O.useState(P),[$,M]=O.useState(Ma(o));O.useEffect(()=>{S.current&&S.current.forceUpdate()}),O.useEffect(()=>{o&&M(Ma(o))},[o]),Mt(()=>{if(!$||!c)return;const j=Y=>{I(Y.placement)};if(process.env.NODE_ENV!=="production"&&$&&Na($)&&$.nodeType===1){const Y=$.getBoundingClientRect();!globalThis.MUI_TEST_ENV&&Y.top===0&&Y.left===0&&Y.right===0&&Y.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
68
+ `))}let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{j(Y)}}];a!=null&&(F=F.concat(a)),d&&d.modifiers!=null&&(F=F.concat(d.modifiers));const W=xR($,v.current,{placement:P,...d,modifiers:F});return x.current(W),()=>{W.destroy(),x.current(null)}},[$,l,a,c,d,P]);const k={placement:T};b!==null&&(k.TransitionProps=b);const C=TR(t),N=m.root??"div",D=st({elementType:N,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:C.root});return _.jsx(N,{...D,children:typeof s=="function"?s(k):s})}),N0=O.forwardRef(function(t,n){const{anchorEl:o,children:s,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:h=OR,popperRef:m,style:b,transition:f=!1,slotProps:g={},slots:v={},...y}=t,[S,w]=O.useState(!0),x=()=>{w(!1)},P=()=>{w(!0)};if(!c&&!d&&(!f||S))return null;let T;if(i)T=i;else if(o){const M=Ma(o);T=M&&Na(M)?Lt(M).body:Lt(null).body}const I=!d&&c&&(!f||S)?"none":void 0,$=f?{in:d,onEnter:x,onExited:P}:void 0;return _.jsx(us,{disablePortal:a,container:T,children:_.jsx(ER,{anchorEl:o,direction:l,disablePortal:a,modifiers:u,ref:n,open:f?!S:d,placement:p,popperOptions:h,popperRef:m,slotProps:g,slots:v,...y,style:{position:"fixed",top:0,left:0,display:I,...b},TransitionProps:$,children:s})})});process.env.NODE_ENV!=="production"&&(N0.propTypes={anchorEl:vn(r.oneOfType([ir,r.object,r.func]),e=>{if(e.open){const t=Ma(e.anchorEl);if(t&&Na(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&!globalThis.MUI_TEST_ENV&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
69
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||PR(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
70
+ `))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([ir,r.func]),direction:r.oneOf(["ltr","rtl"]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:r.oneOf(["absolute","fixed"])}),popperRef:$t,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),transition:r.bool});const kR=ie(N0,{name:"MuiPopper",slot:"Root"})({}),ja=O.forwardRef(function(t,n){const o=on(),s=Je({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:f,popperRef:g,transition:v,slots:y,slotProps:S,...w}=s,x=y?.root??a?.Root,P={anchorEl:i,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:f,popperRef:g,transition:v,...w};return _.jsx(kR,{as:l,direction:o?"rtl":"ltr",slots:{root:x},slotProps:S??c,...P,ref:n})});process.env.NODE_ENV!=="production"&&(ja.propTypes={anchorEl:r.oneOfType([ir,r.object,r.func]),children:r.oneOfType([r.node,r.func]),component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([ir,r.func]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:r.oneOf(["absolute","fixed"])}),popperRef:$t,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transition:r.bool});function _R(e){return Me("MuiListSubheader",e)}De("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const RR=e=>{const{classes:t,color:n,disableGutters:o,inset:s,disableSticky:i}=e,l={root:["root",n!=="default"&&`color${we(n)}`,!o&&"gutters",s&&"inset",!i&&"sticky"]};return $e(l,_R,t)},IR=ie("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${we(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Xe(({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}}]}))),Aa=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiListSubheader"}),{className:s,color:i="default",component:l="li",disableGutters:a=!1,disableSticky:c=!1,inset:u=!1,...d}=o,p={...o,color:i,component:l,disableGutters:a,disableSticky:c,inset:u},h=RR(p);return _.jsx(IR,{as:l,className:Ce(h.root,s),ref:n,ownerState:p,...d})});Aa&&(Aa.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Aa.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOf(["default","inherit","primary"]),component:r.elementType,disableGutters:r.bool,disableSticky:r.bool,inset:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function j0(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
71
+ `))}return!1}class Fa{static create(){return new Fa}static use(){const t=zv(Fa.create).current,[n,o]=O.useState(!1);return t.shouldMount=n,t.setShouldMount=o,O.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=DR(),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 $R(){return Fa.use()}function DR(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});return n.resolve=e,n.reject=t,n}function A0(e){const{className:t,classes:n,pulsate:o=!1,rippleX:s,rippleY:i,rippleSize:l,in:a,onExited:c,timeout:u}=e,[d,p]=O.useState(!1),h=Ce(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-(l/2)+i,left:-(l/2)+s},b=Ce(n.child,d&&n.childLeaving,o&&n.childPulsate);return!a&&!d&&p(!0),O.useEffect(()=>{if(!a&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,a,u]),_.jsx("span",{className:h,style:m,children:_.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(A0.propTypes={classes:r.object.isRequired,className:r.string,in:r.bool,onExited:r.func,pulsate:r.bool,rippleSize:r.number,rippleX:r.number,rippleY:r.number,timeout:r.number.isRequired});const On=De("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Sf=550,MR=80,NR=Jn.keyframes`
70
72
  0% {
71
73
  transform: scale(0);
72
74
  opacity: 0.1;
@@ -76,7 +78,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
76
78
  transform: scale(1);
77
79
  opacity: 0.3;
78
80
  }
79
- `,lC=Or.keyframes`
81
+ `,jR=Jn.keyframes`
80
82
  0% {
81
83
  opacity: 1;
82
84
  }
@@ -84,7 +86,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
84
86
  100% {
85
87
  opacity: 0;
86
88
  }
87
- `,cC=Or.keyframes`
89
+ `,AR=Jn.keyframes`
88
90
  0% {
89
91
  transform: scale(1);
90
92
  }
@@ -96,23 +98,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
96
98
  100% {
97
99
  transform: scale(1);
98
100
  }
99
- `,uC=me("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dC=me(hv,{name:"MuiTouchRipple",slot:"Ripple"})`
101
+ `,FR=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),VR=ie(A0,{name:"MuiTouchRipple",slot:"Ripple"})`
100
102
  opacity: 0;
101
103
  position: absolute;
102
104
 
103
- &.${or.rippleVisible} {
105
+ &.${On.rippleVisible} {
104
106
  opacity: 0.3;
105
107
  transform: scale(1);
106
- animation-name: ${sC};
107
- animation-duration: ${Mu}ms;
108
+ animation-name: ${NR};
109
+ animation-duration: ${Sf}ms;
108
110
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
109
111
  }
110
112
 
111
- &.${or.ripplePulsate} {
113
+ &.${On.ripplePulsate} {
112
114
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
113
115
  }
114
116
 
115
- & .${or.child} {
117
+ & .${On.child} {
116
118
  opacity: 1;
117
119
  display: block;
118
120
  width: 100%;
@@ -121,25 +123,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
121
123
  background-color: currentColor;
122
124
  }
123
125
 
124
- & .${or.childLeaving} {
126
+ & .${On.childLeaving} {
125
127
  opacity: 0;
126
- animation-name: ${lC};
127
- animation-duration: ${Mu}ms;
128
+ animation-name: ${jR};
129
+ animation-duration: ${Sf}ms;
128
130
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
129
131
  }
130
132
 
131
- & .${or.childPulsate} {
133
+ & .${On.childPulsate} {
132
134
  position: absolute;
133
135
  /* @noflip */
134
136
  left: 0px;
135
137
  top: 0;
136
- animation-name: ${cC};
138
+ animation-name: ${AR};
137
139
  animation-duration: 2500ms;
138
140
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
139
141
  animation-iteration-count: infinite;
140
142
  animation-delay: 200ms;
141
143
  }
142
- `,mv=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...s}=n,[c,u]=j.useState([]),d=j.useRef(0),m=j.useRef(null);j.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const h=j.useRef(!1),y=gg(),g=j.useRef(null),f=j.useRef(null),b=j.useCallback(S=>{const{pulsate:w,rippleX:E,rippleY:x,rippleSize:P,cb:k}=S;u(M=>[...M,F.jsx(dC,{classes:{ripple:xe(a.ripple,or.ripple),rippleVisible:xe(a.rippleVisible,or.rippleVisible),ripplePulsate:xe(a.ripplePulsate,or.ripplePulsate),child:xe(a.child,or.child),childLeaving:xe(a.childLeaving,or.childLeaving),childPulsate:xe(a.childPulsate,or.childPulsate)},timeout:Mu,pulsate:w,rippleX:E,rippleY:x,rippleSize:P},d.current)]),d.current+=1,m.current=k},[a]),v=j.useCallback((S={},w={},E=()=>{})=>{const{pulsate:x=!1,center:P=i||w.pulsate,fakeElement:k=!1}=w;if(S?.type==="mousedown"&&h.current){h.current=!1;return}S?.type==="touchstart"&&(h.current=!0);const M=k?null:f.current,R=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,q,N;if(P||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)O=Math.round(R.width/2),q=Math.round(R.height/2);else{const{clientX:U,clientY:W}=S.touches&&S.touches.length>0?S.touches[0]:S;O=Math.round(U-R.left),q=Math.round(W-R.top)}if(P)N=Math.sqrt((2*R.width**2+R.height**2)/3),N%2===0&&(N+=1);else{const U=Math.max(Math.abs((M?M.clientWidth:0)-O),O)*2+2,W=Math.max(Math.abs((M?M.clientHeight:0)-q),q)*2+2;N=Math.sqrt(U**2+W**2)}S?.touches?g.current===null&&(g.current=()=>{b({pulsate:x,rippleX:O,rippleY:q,rippleSize:N,cb:E})},y.start(aC,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:x,rippleX:O,rippleY:q,rippleSize:N,cb:E})},[i,b,y]),p=j.useCallback(()=>{v({},{pulsate:!0})},[v]),_=j.useCallback((S,w)=>{if(y.clear(),S?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{_(S,w)});return}g.current=null,u(E=>E.length>0?E.slice(1):E),m.current=w},[y]);return j.useImperativeHandle(r,()=>({pulsate:p,start:v,stop:_}),[p,v,_]),F.jsx(uC,{className:xe(or.root,a.root,l),ref:f,...s,children:F.jsx(_u,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(mv.propTypes={center:o.bool,classes:o.object,className:o.string});function fC(e){return Fe("MuiButtonBase",e)}const pC=Le("MuiButtonBase",["root","disabled","focusVisible"]),hC=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,l=Be({root:["root",t&&"disabled",r&&"focusVisible"]},fC,i);return r&&n&&(l.root+=` ${n}`),l},mC=me("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"},[`&.${pC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fn=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:h=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:b,onContextMenu:v,onDragLeave:p,onFocus:_,onFocusVisible:S,onKeyDown:w,onKeyUp:E,onMouseDown:x,onMouseLeave:P,onMouseUp:k,onTouchEnd:M,onTouchMove:R,onTouchStart:O,tabIndex:q=0,TouchRippleProps:N,touchRippleRef:U,type:W,...le}=n,ce=j.useRef(null),ue=oC(),z=St(ue.ref,U),[C,V]=j.useState(!1);u&&C&&V(!1),j.useImperativeHandle(i,()=>({focusVisible:()=>{V(!0),ce.current.focus()}}),[]);const A=ue.shouldMount&&!d&&!u;j.useEffect(()=>{C&&h&&!d&&ue.pulsate()},[d,h,C,ue]);const T=Nr(ue,"start",x,m),$=Nr(ue,"stop",v,m),D=Nr(ue,"stop",p,m),K=Nr(ue,"stop",k,m),re=Nr(ue,"stop",ge=>{C&&ge.preventDefault(),P&&P(ge)},m),ie=Nr(ue,"start",O,m),te=Nr(ue,"stop",M,m),L=Nr(ue,"stop",R,m),I=Nr(ue,"stop",ge=>{pv(ge.target)||V(!1),f&&f(ge)},!1),G=ur(ge=>{ce.current||(ce.current=ge.currentTarget),pv(ge.target)&&(V(!0),S&&S(ge)),_&&_(ge)}),X=()=>{const ge=ce.current;return c&&c!=="button"&&!(ge.tagName==="A"&&ge.href)},ne=ur(ge=>{h&&!ge.repeat&&C&&ge.key===" "&&ue.stop(ge,()=>{ue.start(ge)}),ge.target===ge.currentTarget&&X()&&ge.key===" "&&ge.preventDefault(),w&&w(ge),ge.target===ge.currentTarget&&X()&&ge.key==="Enter"&&!u&&(ge.preventDefault(),b&&b(ge))}),he=ur(ge=>{h&&ge.key===" "&&C&&!ge.defaultPrevented&&ue.stop(ge,()=>{ue.pulsate(ge)}),E&&E(ge),b&&ge.target===ge.currentTarget&&X()&&ge.key===" "&&!ge.defaultPrevented&&b(ge)});let ve=c;ve==="button"&&(le.href||le.to)&&(ve=g);const fe={};if(ve==="button"){const ge=!!le.formAction;fe.type=W===void 0&&!ge?"button":W,fe.disabled=u}else!le.href&&!le.to&&(fe.role="button"),u&&(fe["aria-disabled"]=u);const Te=St(r,ce),be={...n,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:m,focusRipple:h,tabIndex:q,focusVisible:C},Ee=hC(be);return F.jsxs(mC,{as:ve,className:xe(Ee.root,s),ownerState:be,onBlur:I,onClick:b,onContextMenu:$,onFocus:G,onKeyDown:ne,onKeyUp:he,onMouseDown:T,onMouseLeave:re,onMouseUp:K,onDragLeave:D,onTouchEnd:te,onTouchMove:L,onTouchStart:ie,ref:Te,tabIndex:u?-1:q,type:W,...fe,...le,children:[l,A?F.jsx(mv,{ref:z,center:a,...N}):null]})});function Nr(e,t,r,n=!1){return ur(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(fn.propTypes={action:zt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:lu,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function yC(e){return Fe("MuiCircularProgress",e)}Le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const dr=44,Du=Or.keyframes`
144
+ `,F0=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:i={},className:l,...a}=o,[c,u]=O.useState([]),d=O.useRef(0),p=O.useRef(null);O.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const h=O.useRef(!1),m=xr(),b=O.useRef(null),f=O.useRef(null),g=O.useCallback(w=>{const{pulsate:x,rippleX:P,rippleY:T,rippleSize:I,cb:$}=w;u(M=>[...M,_.jsx(VR,{classes:{ripple:Ce(i.ripple,On.ripple),rippleVisible:Ce(i.rippleVisible,On.rippleVisible),ripplePulsate:Ce(i.ripplePulsate,On.ripplePulsate),child:Ce(i.child,On.child),childLeaving:Ce(i.childLeaving,On.childLeaving),childPulsate:Ce(i.childPulsate,On.childPulsate)},timeout:Sf,pulsate:x,rippleX:P,rippleY:T,rippleSize:I},d.current)]),d.current+=1,p.current=$},[i]),v=O.useCallback((w={},x={},P=()=>{})=>{const{pulsate:T=!1,center:I=s||x.pulsate,fakeElement:$=!1}=x;if(w?.type==="mousedown"&&h.current){h.current=!1;return}w?.type==="touchstart"&&(h.current=!0);const M=$?null:f.current,k=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,N,D;if(I||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)C=Math.round(k.width/2),N=Math.round(k.height/2);else{const{clientX:j,clientY:F}=w.touches&&w.touches.length>0?w.touches[0]:w;C=Math.round(j-k.left),N=Math.round(F-k.top)}if(I)D=Math.sqrt((2*k.width**2+k.height**2)/3),D%2===0&&(D+=1);else{const j=Math.max(Math.abs((M?M.clientWidth:0)-C),C)*2+2,F=Math.max(Math.abs((M?M.clientHeight:0)-N),N)*2+2;D=Math.sqrt(j**2+F**2)}w?.touches?b.current===null&&(b.current=()=>{g({pulsate:T,rippleX:C,rippleY:N,rippleSize:D,cb:P})},m.start(MR,()=>{b.current&&(b.current(),b.current=null)})):g({pulsate:T,rippleX:C,rippleY:N,rippleSize:D,cb:P})},[s,g,m]),y=O.useCallback(()=>{v({},{pulsate:!0})},[v]),S=O.useCallback((w,x)=>{if(m.clear(),w?.type==="touchend"&&b.current){b.current(),b.current=null,m.start(0,()=>{S(w,x)});return}b.current=null,u(P=>P.length>0?P.slice(1):P),p.current=x},[m]);return O.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:S}),[y,v,S]),_.jsx(FR,{className:Ce(On.root,i.root,l),ref:f,...a,children:_.jsx(is,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(F0.propTypes={center:r.bool,classes:r.object,className:r.string});function LR(e){return Me("MuiButtonBase",e)}const BR=De("MuiButtonBase",["root","disabled","focusVisible"]),qR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:s}=e,l=$e({root:["root",t&&"disabled",n&&"focusVisible"]},LR,s);return n&&o&&(l.root+=` ${o}`),l},zR=ie("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"},[`&.${BR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Yn=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:i=!1,children:l,className:a,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:m,LinkComponent:b="a",onBlur:f,onClick:g,onContextMenu:v,onDragLeave:y,onFocus:S,onFocusVisible:w,onKeyDown:x,onKeyUp:P,onMouseDown:T,onMouseLeave:I,onMouseUp:$,onTouchEnd:M,onTouchMove:k,onTouchStart:C,tabIndex:N=0,TouchRippleProps:D,touchRippleRef:j,type:F,...W}=o,Y=O.useRef(null),H=$R(),L=at(H.ref,j),[E,q]=O.useState(!1);u&&E&&q(!1),O.useImperativeHandle(s,()=>({focusVisible:()=>{q(!0),Y.current.focus()}}),[]);const z=H.shouldMount&&!d&&!u;O.useEffect(()=>{E&&h&&!d&&H.pulsate()},[d,h,E,H]);const R=lr(H,"start",T,p),A=lr(H,"stop",v,p),U=lr(H,"stop",y,p),X=lr(H,"stop",$,p),se=lr(H,"stop",ve=>{E&&ve.preventDefault(),I&&I(ve)},p),te=lr(H,"start",C,p),J=lr(H,"stop",M,p),B=lr(H,"stop",k,p),V=lr(H,"stop",ve=>{j0(ve.target)||q(!1),f&&f(ve)},!1),Q=Ee(ve=>{Y.current||(Y.current=ve.currentTarget),j0(ve.target)&&(q(!0),w&&w(ve)),S&&S(ve)}),G=()=>{const ve=Y.current;return c&&c!=="button"&&!(ve.tagName==="A"&&ve.href)},ne=Ee(ve=>{h&&!ve.repeat&&E&&ve.key===" "&&H.stop(ve,()=>{H.start(ve)}),ve.target===ve.currentTarget&&G()&&ve.key===" "&&ve.preventDefault(),x&&x(ve),ve.target===ve.currentTarget&&G()&&ve.key==="Enter"&&!u&&(ve.preventDefault(),g&&g(ve))}),ae=Ee(ve=>{h&&ve.key===" "&&E&&!ve.defaultPrevented&&H.stop(ve,()=>{H.pulsate(ve)}),P&&P(ve),g&&ve.target===ve.currentTarget&&G()&&ve.key===" "&&!ve.defaultPrevented&&g(ve)});let re=c;re==="button"&&(W.href||W.to)&&(re=b);const ce={};if(re==="button"){const ve=!!W.formAction;ce.type=F===void 0&&!ve?"button":F,ce.disabled=u}else!W.href&&!W.to&&(ce.role="button"),u&&(ce["aria-disabled"]=u);const be=at(n,Y),oe={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:N,focusVisible:E},fe=qR(oe);return _.jsxs(zR,{as:re,className:Ce(fe.root,a),ownerState:oe,onBlur:V,onClick:g,onContextMenu:A,onFocus:Q,onKeyDown:ne,onKeyUp:ae,onMouseDown:R,onMouseLeave:se,onMouseUp:X,onDragLeave:U,onTouchEnd:J,onTouchMove:B,onTouchStart:te,ref:be,tabIndex:u?-1:N,type:F,...ce,...W,children:[l,z?_.jsx(F0,{ref:L,center:i,...D}):null]})});function lr(e,t,n,o=!1){return Ee(s=>(n&&n(s),o||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Yn.propTypes={action:$t,centerRipple:r.bool,children:r.node,classes:r.object,className:r.string,component:da,disabled:r.bool,disableRipple:r.bool,disableTouchRipple:r.bool,focusRipple:r.bool,focusVisibleClassName:r.string,formAction:r.oneOfType([r.func,r.string]),href:r.any,LinkComponent:r.elementType,onBlur:r.func,onClick:r.func,onContextMenu:r.func,onDragLeave:r.func,onFocus:r.func,onFocusVisible:r.func,onKeyDown:r.func,onKeyUp:r.func,onMouseDown:r.func,onMouseLeave:r.func,onMouseUp:r.func,onTouchEnd:r.func,onTouchMove:r.func,onTouchStart:r.func,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,TouchRippleProps:r.object,touchRippleRef:r.oneOfType([r.func,r.shape({current:r.shape({pulsate:r.func.isRequired,start:r.func.isRequired,stop:r.func.isRequired})})]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string])});function UR(e){return Me("MuiCircularProgress",e)}De("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Mn=44,xf=Jn.keyframes`
143
145
  0% {
144
146
  transform: rotate(0deg);
145
147
  }
@@ -147,7 +149,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
147
149
  100% {
148
150
  transform: rotate(360deg);
149
151
  }
150
- `,qu=Or.keyframes`
152
+ `,wf=Jn.keyframes`
151
153
  0% {
152
154
  stroke-dasharray: 1px, 200px;
153
155
  stroke-dashoffset: 0;
@@ -162,13 +164,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
162
164
  stroke-dasharray: 1px, 200px;
163
165
  stroke-dashoffset: -126px;
164
166
  }
165
- `,gC=typeof Du!="string"?Or.css`
166
- animation: ${Du} 1.4s linear infinite;
167
- `:null,vC=typeof qu!="string"?Or.css`
168
- animation: ${qu} 1.4s ease-in-out infinite;
169
- `:null,bC=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${pe(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${pe(r)}`,i&&"circleDisableShrink"]};return Be(a,yC,t)},_C=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:gC||{animation:`${Du} 1.4s linear infinite`}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),wC=me("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),SC=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${pe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ze(({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:vC||{animation:`${qu} 1.4s ease-in-out infinite`}}]}))),EC=me("circle",{name:"MuiCircularProgress",slot:"Track"})(ze(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Lu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:l=!1,enableTrackSlot:s=!1,size:c=40,style:u,thickness:d=3.6,value:m=0,variant:h="indeterminate",...y}=n,g={...n,color:a,disableShrink:l,size:c,thickness:d,value:m,variant:h,enableTrackSlot:s},f=bC(g),b={},v={},p={};if(h==="determinate"){const _=2*Math.PI*((dr-d)/2);b.strokeDasharray=_.toFixed(3),p["aria-valuenow"]=Math.round(m),b.strokeDashoffset=`${((100-m)/100*_).toFixed(3)}px`,v.transform="rotate(-90deg)"}return F.jsx(_C,{className:xe(f.root,i),style:{width:c,height:c,...v,...u},ownerState:g,ref:r,role:"progressbar",...p,...y,children:F.jsxs(wC,{className:f.svg,ownerState:g,viewBox:`${dr/2} ${dr/2} ${dr} ${dr}`,children:[s?F.jsx(EC,{className:f.track,ownerState:g,cx:dr,cy:dr,r:(dr-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,F.jsx(SC,{className:f.circle,style:b,ownerState:g,cx:dr,cy:dr,r:(dr-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Lu.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:cr(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function OC(e){return Fe("MuiIconButton",e)}const yv=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),xC=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a,loading:l}=e,s={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${pe(n)}`,i&&`edge${pe(i)}`,`size${pe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Be(s,OC,t)},CC=me(fn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${pe(r.color)}`],r.edge&&t[`edge${pe(r.edge)}`],t[`size${pe(r.size)}`]]}})(ze(({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}}]})),ze(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($t()).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)}}],[`&.${yv.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${yv.loading}`]:{color:"transparent"}}))),TC=me("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"}}]})),Ta=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:m,loading:h=null,loadingIndicator:y,...g}=n,f=bn(m),b=y??F.jsx(Lu,{"aria-labelledby":f,color:"inherit",size:16}),v={...n,edge:i,color:s,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:b,size:d},p=xC(v);return F.jsxs(CC,{id:h?f:m,className:xe(p.root,l),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:r,...g,ownerState:v,children:[typeof h=="boolean"&&F.jsx("span",{className:p.loadingWrapper,style:{display:"contents"},children:F.jsx(TC,{className:p.loadingIndicator,ownerState:v,children:h&&b})}),a]})});process.env.NODE_ENV!=="production"&&(Ta.propTypes={children:cr(o.node,e=>j.Children.toArray(e.children).some(r=>j.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
170
- `)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const PC=Ct(F.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"}),"Cancel");function $C(e){return Fe("MuiChip",e)}const Ve=Le("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"]),RC=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:a,onDelete:l,clickable:s,variant:c}=e,u={root:["root",c,r&&"disabled",`size${pe(n)}`,`color${pe(i)}`,s&&"clickable",s&&`clickableColor${pe(i)}`,l&&"deletable",l&&`deletableColor${pe(i)}`,`${c}${pe(i)}`],label:["label",`label${pe(n)}`],avatar:["avatar",`avatar${pe(n)}`,`avatarColor${pe(i)}`],icon:["icon",`icon${pe(n)}`,`iconColor${pe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${pe(n)}`,`deleteIconColor${pe(i)}`,`deleteIcon${pe(c)}Color${pe(i)}`]};return Be(u,$C,t)},kC=me("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:a,onDelete:l,size:s,variant:c}=r;return[{[`& .${Ve.avatar}`]:t.avatar},{[`& .${Ve.avatar}`]:t[`avatar${pe(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${pe(n)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${pe(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${pe(i)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${pe(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${pe(n)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${pe(c)}Color${pe(n)}`]},t.root,t[`size${pe(s)}`],t[`color${pe(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${pe(n)}`],l&&t.deletable,l&&n!=="default"&&t[`deletableColor${pe(n)}`],t[c],t[`${c}${pe(n)}`]]}})(ze(({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",[`&.${Ve.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ve.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ve.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ve.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ve.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ve.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ve.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,[`& .${Ve.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ve.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter($t(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Ve.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Ve.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Ve.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ve.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($t(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{background:(e.vars||e).palette[r].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}`)},[`&.${Ve.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($t(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].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]}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ve.avatar}`]:{marginLeft:4},[`& .${Ve.avatarSmall}`]:{marginLeft:2},[`& .${Ve.icon}`]:{marginLeft:4},[`& .${Ve.iconSmall}`]:{marginLeft:2},[`& .${Ve.deleteIcon}`]:{marginRight:5},[`& .${Ve.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter($t()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),IC=me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${pe(n)}`]]}})({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 gv(e){return e.key==="Backspace"||e.key==="Delete"}const Fu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:l,color:s="default",component:c,deleteIcon:u,disabled:d=!1,icon:m,label:h,onClick:y,onDelete:g,onKeyDown:f,onKeyUp:b,size:v="medium",variant:p="filled",tabIndex:_,skipFocusWhenDisabled:S=!1,slots:w={},slotProps:E={},...x}=n,P=j.useRef(null),k=St(P,r),M=D=>{D.stopPropagation(),g&&g(D)},R=D=>{D.currentTarget===D.target&&gv(D)&&D.preventDefault(),f&&f(D)},O=D=>{D.currentTarget===D.target&&g&&gv(D)&&g(D),b&&b(D)},q=l!==!1&&y?!0:l,N=q||g?fn:c||"div",U={...n,component:N,disabled:d,size:v,color:s,iconColor:j.isValidElement(m)&&m.props.color||s,onDelete:!!g,clickable:q,variant:p},W=RC(U),le=N===fn?{component:c||"div",focusVisibleClassName:W.focusVisible,...g&&{disableRipple:!0}}:{};let ce=null;g&&(ce=u&&j.isValidElement(u)?j.cloneElement(u,{className:xe(u.props.className,W.deleteIcon),onClick:M}):F.jsx(PC,{className:W.deleteIcon,onClick:M}));let ue=null;i&&j.isValidElement(i)&&(ue=j.cloneElement(i,{className:xe(W.avatar,i.props.className)}));let z=null;m&&j.isValidElement(m)&&(z=j.cloneElement(m,{className:xe(W.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&ue&&z&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const C={slots:w,slotProps:E},[V,A]=ut("root",{elementType:kC,externalForwardedProps:{...C,...x},ownerState:U,shouldForwardComponentProp:!0,ref:k,className:xe(W.root,a),additionalProps:{disabled:q&&d?!0:void 0,tabIndex:S&&d?-1:_,...le},getSlotProps:D=>({...D,onClick:K=>{D.onClick?.(K),y?.(K)},onKeyDown:K=>{D.onKeyDown?.(K),R(K)},onKeyUp:K=>{D.onKeyUp?.(K),O(K)}})}),[T,$]=ut("label",{elementType:IC,externalForwardedProps:C,ownerState:U,className:W.label});return F.jsxs(V,{as:N,...A,children:[ue||z,F.jsx(T,{...$,children:h}),ce]})});process.env.NODE_ENV!=="production"&&(Fu.propTypes={avatar:o.element,children:BE,classes:o.object,className:o.string,clickable:o.bool,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,deleteIcon:o.element,disabled:o.bool,icon:o.element,label:o.node,onClick:o.func,onDelete:o.func,onKeyDown:o.func,onKeyUp:o.func,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),skipFocusWhenDisabled:o.bool,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,variant:o.oneOfType([o.oneOf(["filled","outlined"]),o.string])});const jC=Ct(F.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"}),"Close");function NC(e){return Fe("MuiAutocomplete",e)}const Ae=Le("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 vv,bv;const AC=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:a,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:u,size:d}=e,m={root:["root",n&&"expanded",i&&"focused",a&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${pe(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Be(m,NC,t)},MC=me("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,size:s}=r;return[{[`& .${Ae.tag}`]:t.tag},{[`& .${Ae.tag}`]:t[`tagSize${pe(s)}`]},{[`& .${Ae.inputRoot}`]:t.inputRoot},{[`& .${Ae.input}`]:t.input},{[`& .${Ae.input}`]:l&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Ae.focused} .${Ae.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ae.clearIndicator}`]:{visibility:"visible"}},[`& .${Ae.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ae.inputRoot}`]:{[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:30},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:56},[`& .${Ae.input}`]:{width:0,minWidth:30}},[`& .${Wr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Wr.root}.${Gt.sizeSmall}`]:{[`& .${Wr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${er.root}`]:{padding:9,[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:39},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:65},[`& .${Ae.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ae.endAdornment}`]:{right:9}},[`& .${er.root}.${Gt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ae.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Yt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:39},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:65},[`& .${Yt.input}`]:{padding:"7px 4px"},[`& .${Ae.endAdornment}`]:{right:9}},[`& .${Yt.root}.${Gt.sizeSmall}`]:{paddingBottom:1,[`& .${Yt.input}`]:{padding:"2.5px 4px"}},[`& .${Gt.hiddenLabel}`]:{paddingTop:8},[`& .${Yt.root}.${Gt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ae.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Yt.root}.${Gt.hiddenLabel}.${Gt.sizeSmall}`]:{[`& .${Ae.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ae.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ae.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ae.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ae.inputRoot}`]:{flexWrap:"wrap"}}}]}),DC=me("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),qC=me(Ta,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),LC=me(Ta,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),FC=me(Au,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ae.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(ze(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),zC=me(lo,{name:"MuiAutocomplete",slot:"Paper"})(ze(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),VC=me("div",{name:"MuiAutocomplete",slot:"Loading"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),BC=me("div",{name:"MuiAutocomplete",slot:"NoOptions"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),UC=me("ul",{name:"MuiAutocomplete",slot:"Listbox"})(ze(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ae.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"},[`&.${Ae.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"},[`&.${Ae.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),[`&.${Ae.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}},[`&.${Ae.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),WC=me(xa,{name:"MuiAutocomplete",slot:"GroupLabel"})(ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),HC=me("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Ae.option}`]:{paddingLeft:24}}),zu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:s=!1,ChipProps:c,className:u,clearIcon:d=vv||(vv=F.jsx(jC,{fontSize:"small"})),clearOnBlur:m=!n.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:g="Close",componentsProps:f,defaultValue:b=n.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:p=!1,disabled:_=!1,disabledItemsFocusable:S=!1,disableListWrap:w=!1,disablePortal:E=!1,filterOptions:x,filterSelectedOptions:P=!1,forcePopupIcon:k="auto",freeSolo:M=!1,fullWidth:R=!1,getLimitTagsText:O=Ye=>`+${Ye}`,getOptionDisabled:q,getOptionKey:N,getOptionLabel:U,isOptionEqualToValue:W,groupBy:le,handleHomeEndKeys:ce=!n.freeSolo,id:ue,includeInputInList:z=!1,inputValue:C,limitTags:V=-1,ListboxComponent:A,ListboxProps:T,loading:$=!1,loadingText:D="Loading…",multiple:K=!1,noOptionsText:re="No options",onChange:ie,onClose:te,onHighlightChange:L,onInputChange:I,onOpen:G,open:X,openOnFocus:ne=!1,openText:he="Open",options:ve,PaperComponent:fe,PopperComponent:Te,popupIcon:be=bv||(bv=F.jsx(Vg,{})),readOnly:Ee=!1,renderGroup:ge,renderInput:$e,renderOption:Ie,renderTags:ot,renderValue:Qe,selectOnFocus:_t=!n.freeSolo,size:et="medium",slots:Tt={},slotProps:Je={},value:Oe,...He}=n,{getRootProps:dt,getInputProps:ft,getInputLabelProps:Ar,getPopupIndicatorProps:Et,getClearProps:Ot,getItemProps:we,getListboxProps:Me,getOptionProps:pt,value:xt,dirty:Lt,expanded:Mr,id:Y,popupOpen:B,focused:ee,focusedItem:J,anchorEl:Se,setAnchorEl:Re,inputValue:je,groupedOptions:se}=z1({...n,componentName:"Autocomplete"}),H=!v&&!_&&Lt&&!Ee,Z=(!M||k===!0)&&k!==!1,{onMouseDown:de}=ft(),{ref:_e,...Ne}=Me(),gt=U||(Ye=>Ye.label??Ye),Ke={...n,disablePortal:E,expanded:Mr,focused:ee,fullWidth:R,getOptionLabel:gt,hasClearIcon:H,hasPopupIcon:Z,inputFocused:J===-1,popupOpen:B,size:et},ct=AC(Ke),jt={slots:{paper:fe,popper:Te,...Tt},slotProps:{chip:c,listbox:T,...f,...Je}},[hn,ir]=ut("listbox",{elementType:UC,externalForwardedProps:jt,ownerState:Ke,className:ct.listbox,additionalProps:Ne,ref:_e}),[fr,ae]=ut("paper",{elementType:lo,externalForwardedProps:jt,ownerState:Ke,className:ct.paper}),[Q,ye]=ut("popper",{elementType:Au,externalForwardedProps:jt,ownerState:Ke,className:ct.popper,additionalProps:{disablePortal:E,style:{width:Se?Se.clientWidth:null},role:"presentation",anchorEl:Se,open:B}});let Ce;const Pe=Ye=>({className:ct.tag,disabled:_,...we(Ye)});if(K?xt.length>0&&(ot?Ce=ot(xt,Pe,Ke):Qe?Ce=Qe(xt,Pe,Ke):Ce=xt.map((Ye,Gr)=>{const{key:Yr,...xo}=Pe({index:Gr});return F.jsx(Fu,{label:gt(Ye),size:et,...xo,...jt.slotProps.chip},Yr)})):Qe&&xt!=null&&(Ce=Qe(xt,Pe,Ke)),V>-1&&Array.isArray(Ce)){const Ye=Ce.length-V;!ee&&Ye>0&&(Ce=Ce.splice(0,V),Ce.push(F.jsx("span",{className:ct.tag,children:O(Ye)},Ce.length)))}const Ue=ge||(Ye=>F.jsxs("li",{children:[F.jsx(WC,{className:ct.groupLabel,ownerState:Ke,component:"div",children:Ye.group}),F.jsx(HC,{className:ct.groupUl,ownerState:Ke,children:Ye.children})]},Ye.key)),At=Ie||((Ye,Gr)=>{const{key:Yr,...xo}=Ye;return F.jsx("li",{...xo,children:gt(Gr)},Yr)}),Na=(Ye,Gr)=>{const Yr=pt({option:Ye,index:Gr});return At({...Yr,className:ct.option},Ye,{selected:Yr["aria-selected"],index:Gr,inputValue:je},Ke)},Aa=jt.slotProps.clearIndicator,Gv=jt.slotProps.popupIndicator;return F.jsxs(j.Fragment,{children:[F.jsx(MC,{ref:r,className:xe(ct.root,u),ownerState:Ke,...dt(He),children:$e({id:Y,disabled:_,fullWidth:!0,size:et==="small"?"small":void 0,InputLabelProps:Ar(),InputProps:{ref:Re,className:ct.inputRoot,startAdornment:Ce,onMouseDown:Ye=>{Ye.target===Ye.currentTarget&&de(Ye)},...(H||Z)&&{endAdornment:F.jsxs(DC,{className:ct.endAdornment,ownerState:Ke,children:[H?F.jsx(qC,{...Ot(),"aria-label":y,title:y,ownerState:Ke,...Aa,className:xe(ct.clearIndicator,Aa?.className),children:d}):null,Z?F.jsx(LC,{...Et(),disabled:_,"aria-label":B?g:he,title:B?g:he,ownerState:Ke,...Gv,className:xe(ct.popupIndicator,Gv?.className),children:be}):null]})}},inputProps:{className:ct.input,disabled:_,readOnly:Ee,...ft()}})}),Se?F.jsx(FC,{as:Q,...ye,children:F.jsxs(zC,{as:fr,...ae,children:[$&&se.length===0?F.jsx(VC,{className:ct.loading,ownerState:Ke,children:D}):null,se.length===0&&!M&&!$?F.jsx(BC,{className:ct.noOptions,ownerState:Ke,role:"presentation",onMouseDown:Ye=>{Ye.preventDefault()},children:re}):null,se.length>0?F.jsx(hn,{as:A,...ir,children:se.map((Ye,Gr)=>le?Ue({key:Ye.key,group:Ye.group,children:Ye.options.map((Yr,xo)=>Na(Yr,Ye.index+xo))}):Na(Ye,Gr))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(zu.propTypes={autoComplete:o.bool,autoHighlight:o.bool,autoSelect:o.bool,blurOnSelect:o.oneOfType([o.oneOf(["mouse","touch"]),o.bool]),ChipProps:o.object,classes:o.object,className:o.string,clearIcon:o.node,clearOnBlur:o.bool,clearOnEscape:o.bool,clearText:o.string,closeText:o.string,componentsProps:o.shape({clearIndicator:o.object,paper:o.object,popper:o.object,popupIndicator:o.object}),defaultValue:cr(o.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
171
- `)):null),disableClearable:o.bool,disableCloseOnSelect:o.bool,disabled:o.bool,disabledItemsFocusable:o.bool,disableListWrap:o.bool,disablePortal:o.bool,filterOptions:o.func,filterSelectedOptions:o.bool,forcePopupIcon:o.oneOfType([o.oneOf(["auto"]),o.bool]),freeSolo:o.bool,fullWidth:o.bool,getLimitTagsText:o.func,getOptionDisabled:o.func,getOptionKey:o.func,getOptionLabel:o.func,groupBy:o.func,handleHomeEndKeys:o.bool,id:o.string,includeInputInList:o.bool,inputValue:o.string,isOptionEqualToValue:o.func,limitTags:hu,ListboxComponent:o.elementType,ListboxProps:o.object,loading:o.bool,loadingText:o.node,multiple:o.bool,noOptionsText:o.node,onChange:o.func,onClose:o.func,onHighlightChange:o.func,onInputChange:o.func,onKeyDown:o.func,onOpen:o.func,open:o.bool,openOnFocus:o.bool,openText:o.string,options:o.array.isRequired,PaperComponent:o.elementType,PopperComponent:o.elementType,popupIcon:o.node,readOnly:o.bool,renderGroup:o.func,renderInput:o.func.isRequired,renderOption:o.func,renderTags:o.func,renderValue:o.func,selectOnFocus:o.bool,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({chip:o.oneOfType([o.func,o.object]),clearIndicator:o.oneOfType([o.func,o.object]),listbox:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),popupIndicator:o.oneOfType([o.func,o.object])}),slots:o.shape({listbox:o.elementType,paper:o.elementType,popper:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:cr(o.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
172
- `)):null)});const KC=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d,placeholder:m,readonly:h,titleMap:y}=r;ke.useEffect(()=>{n(u,t,r,a)},[]);const g=y||[],f=(p,_)=>{const S=_&&typeof _=="object"?_.value:_;c(null,S)},b=p=>i(typeof p=="object"&&p!==null?p.name||p.value||"":p||""),v=g.find(p=>typeof p=="object"&&p!==null?p.value===a:p===a)||null;return F.jsx("div",{className:r.htmlClass,children:F.jsx(zu,{options:g,getOptionLabel:b,value:v,onChange:f,disabled:h,fullWidth:!0,renderInput:p=>F.jsx(va,{...p,label:d&&i(d),placeholder:m&&i(m),helperText:(s||r.description)&&i(s||r.description),error:!l,required:r.required,style:r.style||{width:"100%"},...r.otherProps}),...r.otherProps})})},_v=Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wv=Le("MuiListItemIcon",["root","alignItemsFlexStart"]);function GC(e){return Fe("MuiTypography",e)}Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const YC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},JC=xE(),XC=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:l}=e,s={root:["root",a,e.align!=="inherit"&&`align${pe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Be(s,GC,l)},ZC=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${pe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(ze(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter($t()).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${pe(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}}]}))),Sv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pa=j.forwardRef(function(t,r){const{color:n,...i}=We({props:t,name:"MuiTypography"}),a=!YC[n],l=JC({...i,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:m=!1,paragraph:h=!1,variant:y="body1",variantMapping:g=Sv,...f}=l,b={...l,align:s,color:n,className:c,component:u,gutterBottom:d,noWrap:m,paragraph:h,variant:y,variantMapping:g},v=u||(h?"p":g[y]||Sv[y])||"span",p=XC(b);return F.jsx(ZC,{as:v,ref:r,className:xe(p.root,c),...f,ownerState:b,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...f.style}})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});const Ev=Le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function QC(e){return Fe("MuiMenuItem",e)}const _o=Le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eT=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},tT=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:l}=e,c=Be({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},QC,l);return{...l,...c}},rT=me(fn,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:eT})(ze(({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"}},[`&.${_o.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${_o.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${_o.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)}},[`&.${_o.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_o.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_v.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_v.inset}`]:{marginLeft:52},[`& .${Ev.root}`]:{marginTop:0,marginBottom:0},[`& .${Ev.inset}`]:{paddingLeft:36},[`& .${wv.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,[`& .${wv.root} svg`]:{fontSize:"1.25rem"}}}]}))),$a=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:m,className:h,...y}=n,g=j.useContext(fa),f=j.useMemo(()=>({dense:l||g.dense||!1,disableGutters:c}),[g.dense,l,c]),b=j.useRef(null);yr(()=>{i&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const v={...n,dense:f.dense,divider:s,disableGutters:c},p=tT(n),_=St(b,r);let S;return n.disabled||(S=m!==void 0?m:-1),F.jsx(fa.Provider,{value:f,children:F.jsx(rT,{ref:_,role:d,tabIndex:S,component:a,focusVisibleClassName:xe(p.focusVisible,u),className:xe(p.root,h),...y,ownerState:v,classes:p})})});process.env.NODE_ENV!=="production"&&($a.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function nT(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i},form:{key:a,schema:{isObject:l,enum:s,findFn:c,displayFn:u,noLocalization:d}}}=e,{value:m,valid:h,error:y,onChangeValidate:g}=qt(e);ke.useEffect(()=>{n(a,t,r,m)},[]);const f=p=>{if(l){const _=p.target.value,S=s.find(w=>c?c(w,_):w===_);g(S)}else g(p)},b=p=>u?u(p):d?p.name:i(p.name);let v=[];return l?v=r.schema.enum.map((p,_)=>F.jsx($a,{value:p,children:b(p)},_)):v=r.titleMap.map((p,_)=>F.jsx($a,{value:p.value,children:b(p)},_)),F.jsxs(Tn,{fullWidth:!0,error:!h,...r.otherProps,children:[F.jsx(ua,{required:r.required,...r.labelProps,children:r.title&&i(r.title)}),F.jsx(fo,{value:m||(r&&r.selectProps&&r.selectProps.multiple?[]:""),placeholder:r.placeholder&&i(r.placeholder),disabled:r.readonly,onChange:f,...r.selectProps,children:v}),F.jsx(eo,{...r.helperTextProps,children:(y||r.description)&&i(y||r.description)})]})}const wo="MultiSelect",Sr={root:`${wo}-root`,chips:`${wo}-chips`,chip:`${wo}-chip`,menuItem:`${wo}-menuItem`,selectedMenuItem:`${wo}-selectedMenuItem`},oT=Ui("div")(({theme:e})=>({[`&.${Sr.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${Sr.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${Sr.chip}`]:{margin:e.spacing(.25)},[`& .${Sr.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${Sr.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),iT={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}},aT=e=>{const{form:t,localization:{getLocalizedString:r}}=e,{value:n,onChangeValidate:i}=qt(e),a=n||[],l=u=>{i(u.target.value)},s=lr.getTitleByValue.bind(null,t.titleMap),c=t.titleMap.map(u=>F.jsx($a,{value:u.value,className:a.indexOf(u.value)===-1?Sr.menuItem:Sr.selectedMenuItem,children:u.name&&r(u.name)},u.value));return F.jsx(oT,{className:Sr.root,children:F.jsxs(Tn,{fullWidth:!0,...t.otherProps,children:[F.jsx(ua,{required:t.required,children:t.title&&r(t.title)}),F.jsx(fo,{multiple:!0,value:a,placeholder:t.placeholder&&r(t.placeholder),disabled:t.readonly,onChange:l,MenuProps:iT,renderValue:u=>F.jsx("div",{className:Sr.chips,children:u.map(d=>F.jsx(Fu,{label:s(d)&&r(s(d)),className:Sr.chip},d))}),children:c})]})})};function sT(e){return Fe("MuiFormControlLabel",e)}const So=Le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lT=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${pe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Be(l,sT,t)},cT=me("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${So.label}`]:t.label},t.root,t[`labelPlacement${pe(r.labelPlacement)}`]]}})(ze(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${So.disabled}`]:{cursor:"default"},[`& .${So.label}`]:{[`&.${So.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}}]}))),uT=me("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${So.error}`]:{color:(e.vars||e).palette.error.main}}))),Vu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:s,disabled:c,disableTypography:u,inputRef:d,label:m,labelPlacement:h="end",name:y,onChange:g,required:f,slots:b={},slotProps:v={},value:p,..._}=n,S=vr(),w=c??s.props.disabled??S?.disabled,E=f??s.props.required,x={disabled:w,required:E};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof s.props[U]>"u"&&typeof n[U]<"u"&&(x[U]=n[U])});const P=Ur({props:n,muiFormControl:S,states:["error"]}),k={...n,disabled:w,labelPlacement:h,required:E,error:P.error},M=lT(k),R={slots:b,slotProps:{...l,...v}},[O,q]=ut("typography",{elementType:Pa,externalForwardedProps:R,ownerState:k});let N=m;return N!=null&&N.type!==Pa&&!u&&(N=F.jsx(O,{component:"span",...q,className:xe(M.label,q?.className),children:N})),F.jsxs(cT,{className:xe(M.root,a),ownerState:k,ref:r,..._,children:[j.cloneElement(s,x),E?F.jsxs("div",{children:[N,F.jsxs(uT,{ownerState:k,"aria-hidden":!0,className:M.asterisk,children:[" ","*"]})]}):N]})});process.env.NODE_ENV!=="production"&&(Vu.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:zt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function dT(e){return Fe("MuiFormGroup",e)}Le("MuiFormGroup",["root","row","error"]);const fT=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},dT,t)},pT=me("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Bu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...l}=n,s=vr(),c=Ur({props:n,muiFormControl:s,states:["error"]}),u={...n,row:a,error:c.error},d=fT(u);return F.jsx(pT,{className:xe(d.root,i),ownerState:u,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Bu.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function hT(e){return Fe("MuiRadioGroup",e)}Le("MuiRadioGroup",["root","row","error"]);const Uu=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Uu.displayName="RadioGroupContext");const mT=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},hT,t)},Ov=j.forwardRef(function(t,r){const{actions:n,children:i,className:a,defaultValue:l,name:s,onChange:c,value:u,...d}=t,m=j.useRef(null),h=mT(t),[y,g]=on({controlled:u,default:l,name:"RadioGroup"});j.useImperativeHandle(n,()=>({focus:()=>{let p=m.current.querySelector("input:not(:disabled):checked");p||(p=m.current.querySelector("input:not(:disabled)")),p&&p.focus()}}),[]);const f=St(r,m),b=bn(s),v=j.useMemo(()=>({name:b,onChange(p){g(p.target.value),c&&c(p,p.target.value)},value:y}),[b,c,g,y]);return F.jsx(Uu.Provider,{value:v,children:F.jsx(Bu,{role:"radiogroup",ref:f,className:xe(h.root,a),...d,children:i})})});process.env.NODE_ENV!=="production"&&(Ov.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});function yT(){return j.useContext(Uu)}function gT(e){return Fe("PrivateSwitchBase",e)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vT=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${pe(i)}`],input:["input"]};return Be(a,gT,t)},bT=me(fn,{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}}]}),_T=me("input",{name:"MuiSwitchBase",shouldForwardProp:It})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Wu=j.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,defaultChecked:l,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:m,inputProps:h,inputRef:y,name:g,onBlur:f,onChange:b,onFocus:v,readOnly:p,required:_=!1,tabIndex:S,type:w,value:E,slots:x={},slotProps:P={},...k}=t,[M,R]=on({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),O=vr(),q=$=>{v&&v($),O&&O.onFocus&&O.onFocus($)},N=$=>{f&&f($),O&&O.onBlur&&O.onBlur($)},U=$=>{if($.nativeEvent.defaultPrevented||p)return;const D=$.target.checked;R(D),b&&b($,D)};let W=s;O&&typeof W>"u"&&(W=O.disabled);const le=w==="checkbox"||w==="radio",ce={...t,checked:M,disabled:W,disableFocusRipple:c,edge:u},ue=vT(ce),z={slots:x,slotProps:{input:h,...P}},[C,V]=ut("root",{ref:r,elementType:bT,className:ue.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...k},getSlotProps:$=>({...$,onFocus:D=>{$.onFocus?.(D),q(D)},onBlur:D=>{$.onBlur?.(D),N(D)}}),ownerState:ce,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:W,role:void 0,tabIndex:null}}),[A,T]=ut("input",{ref:y,elementType:_T,className:ue.input,externalForwardedProps:z,getSlotProps:$=>({...$,onChange:D=>{$.onChange?.(D),U(D)}}),ownerState:ce,additionalProps:{autoFocus:n,checked:i,defaultChecked:l,disabled:W,id:le?m:void 0,name:g,readOnly:p,required:_,tabIndex:S,type:w,...w==="checkbox"&&E===void 0?{}:{value:E}}});return F.jsxs(C,{...V,children:[F.jsx(A,{...T}),M?a:d]})});process.env.NODE_ENV!=="production"&&(Wu.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:zt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const wT=Ct(F.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ST=Ct(F.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),ET=me("span",{name:"MuiRadioButtonIcon",shouldForwardProp:It})({position:"relative",display:"flex"}),OT=me(wT,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),xT=me(ST,{name:"MuiRadioButtonIcon"})(ze(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Hu(e){const{checked:t=!1,classes:r={},fontSize:n}=e,i={...e,checked:t};return F.jsxs(ET,{className:r.root,ownerState:i,children:[F.jsx(OT,{fontSize:n,className:r.background,ownerState:i}),F.jsx(xT,{fontSize:n,className:r.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Hu.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});function CT(e){return Fe("MuiRadio",e)}const xv=Le("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),TT=e=>{const{classes:t,color:r,size:n}=e,i={root:["root",`color${pe(r)}`,n!=="medium"&&`size${pe(n)}`]};return{...t,...Be(i,CT,t)}},PT=me(Wu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${pe(r.size)}`],t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${xv.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${xv.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function $T(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const RT=F.jsx(Hu,{checked:!0}),kT=F.jsx(Hu,{}),Cv=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=RT,color:l="primary",icon:s=kT,name:c,onChange:u,size:d="medium",className:m,disabled:h,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:b,...v}=n,p=vr();let _=h;p&&typeof _>"u"&&(_=p.disabled),_??=!1;const S={...n,disabled:_,disableRipple:y,color:l,size:d},w=TT(S),E=yT();let x=i;const P=cu(u,E&&E.onChange);let k=c;E&&(typeof x>"u"&&(x=$T(E.value,n.value)),typeof k>"u"&&(k=E.name));const M=f.input??b,[R,O]=ut("root",{ref:r,elementType:PT,className:xe(w.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...v},getSlotProps:q=>({...q,onChange:(N,...U)=>{q.onChange?.(N,...U),P(N,...U)}}),ownerState:S,additionalProps:{type:"radio",icon:j.cloneElement(s,{fontSize:s.props.fontSize??d}),checkedIcon:j.cloneElement(a,{fontSize:a.props.fontSize??d}),disabled:_,name:k,checked:x,slots:g,slotProps:{input:typeof M=="function"?M(S):M}}});return F.jsx(R,{...O,classes:w})});process.env.NODE_ENV!=="production"&&(Cv.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:zt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Tv="Radios",Ra={formControl:`${Tv}-formControl`,group:`${Tv}-group`},IT=Ui(Tn)(({theme:e})=>({[`&.${Ra.formControl}`]:{marginTop:e.spacing(1)},[`& .${Ra.group}`]:{margin:e.spacing(1,0)}})),jT=e=>{const{form:t,localization:{getLocalizedString:r}}=e,{value:n,onChangeValidate:i}=qt(e),a=l=>l.titleMap.map((s,c)=>F.jsx(Vu,{control:F.jsx(Cv,{}),label:s.name&&r(s.name),value:s.value,disabled:l.readonly},c));return F.jsxs(IT,{component:"fieldset",className:Ra.formControl,...t.otherProps,children:[F.jsx(Hr,{component:"legend",required:t.required,children:t.title&&r(t.title)}),F.jsx(Ov,{value:n,name:t.title,onChange:i,className:Ra.group,children:a(t)})]})},NT=e=>{const{localization:{getLocalizedDate:t},form:r,type:n}=e,{value:i,valid:a,error:l,onChangeValidate:s}=qt(e);return F.jsx(cn,{...e,form:{...r,type:n},value:t(i),valid:a,error:l,onChangeValidate:s,otherProps:{InputLabelProps:{shrink:!0}},...r.otherProps})},AT=e=>F.jsx(NT,{type:"date",...e}),MT=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e);ke.useEffect(()=>{n(r.key,t,r,a)},[]);const u=m=>{if(!m)return"";try{const h=new Date(m);return isNaN(h.getTime())?m||"":h.toISOString().slice(0,16)}catch{return m||""}},d=m=>{const h=m.target.value;if(h)try{const y=new Date(h).toISOString();c(null,y)}catch{c(m)}else c(m)};return F.jsx(cn,{...e,value:u(a),valid:l,error:s,onChangeValidate:d,form:{...r,title:r.title&&i(r.title),placeholder:r.placeholder&&i(r.placeholder),description:r.description&&i(r.description),type:"datetime-local"},otherProps:{InputLabelProps:{shrink:!0},...r.otherProps}})},DT=Ct(F.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"}),"CheckBoxOutlineBlank"),qT=Ct(F.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"}),"CheckBox"),LT=Ct(F.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"}),"IndeterminateCheckBox");function FT(e){return Fe("MuiCheckbox",e)}const Ku=Le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zT=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${pe(n)}`,`size${pe(i)}`]},l=Be(a,FT,t);return{...t,...l}},VT=me(Wu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${pe(r.size)}`],r.color!=="default"&&t[`color${pe(r.color)}`]]}})(ze(({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($t()).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($t()).map(([t])=>({props:{color:t},style:{[`&.${Ku.checked}, &.${Ku.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ku.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),BT=F.jsx(qT,{}),UT=F.jsx(DT,{}),WT=F.jsx(LT,{}),Pv=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiCheckbox"}),{checkedIcon:i=BT,color:a="primary",icon:l=UT,indeterminate:s=!1,indeterminateIcon:c=WT,inputProps:u,size:d="medium",disableRipple:m=!1,className:h,slots:y={},slotProps:g={},...f}=n,b=s?c:l,v=s?c:i,p={...n,disableRipple:m,color:a,indeterminate:s,size:d},_=zT(p),S=g.input??u,[w,E]=ut("root",{ref:r,elementType:VT,className:xe(_.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:p,additionalProps:{type:"checkbox",icon:j.cloneElement(b,{fontSize:b.props.fontSize??d}),checkedIcon:j.cloneElement(v,{fontSize:v.props.fontSize??d}),disableRipple:m,slots:y,slotProps:{input:Gy(typeof S=="function"?S(p):S,{"data-indeterminate":s})}}});return F.jsx(w,{...E,classes:_})});process.env.NODE_ENV!=="production"&&(Pv.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function HT(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,onChangeValidate:l}=qt(e),{key:s}=r;return n(s,t,r,a),F.jsx(Bu,{row:!0,children:F.jsx(Vu,{className:r.className,label:r.title&&i(r.title),control:F.jsx(Pv,{name:r.key.slice(-1)[0],value:r.key.slice(-1)[0],checked:a||!1,disabled:r.readonly,onChange:l}),...r.otherProps})})}const KT=e=>{const{form:{description:t,variant:r,align:n,color:i,noWrap:a,paragraph:l,otherProps:s},localization:{getLocalizedString:c}}=e;return F.jsx(Pa,{variant:r,align:n,color:i,noWrap:a,component:l?"p":"div",gutterBottom:!!l,...s,children:c(t)})};function GT(e){return Fe("MuiButton",e)}const pn=Le("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"]),$v=j.createContext({});process.env.NODE_ENV!=="production"&&($v.displayName="ButtonGroupContext");const Rv=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Rv.displayName="ButtonGroupButtonContext");const YT=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:l,loadingPosition:s,classes:c}=e,u={root:["root",l&&"loading",a,`${a}${pe(t)}`,`size${pe(i)}`,`${a}Size${pe(i)}`,`color${pe(t)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${pe(s)}`],startIcon:["icon","startIcon",`iconSize${pe(i)}`],endIcon:["icon","endIcon",`iconSize${pe(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Be(u,GT,c);return{...c,...d}},kv=[{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}}}],JT=me(fn,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${pe(r.color)}`],t[`size${pe(r.size)}`],t[`${r.variant}Size${pe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=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"},[`&.${pn.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]},[`&.${pn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${pn.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)",[`&.${pn.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($t()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].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:r,"--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"},[`&.${pn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pn.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}),[`&.${pn.loading}`]:{color:"transparent"}}}]}})),XT=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${pe(r.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}},...kv]})),ZT=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${pe(r.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}},...kv]})),QT=me("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}}]})),Iv=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),jv=j.forwardRef(function(t,r){const n=j.useContext($v),i=j.useContext(Rv),a=Wi(n,t),l=We({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:d,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:b=!1,id:v,loading:p=null,loadingIndicator:_,loadingPosition:S="center",size:w="medium",startIcon:E,type:x,variant:P="text",...k}=l,M=bn(v),R=_??F.jsx(Lu,{"aria-labelledby":M,color:"inherit",size:16}),O={...l,color:c,component:u,disabled:m,disableElevation:h,disableFocusRipple:y,fullWidth:b,loading:p,loadingIndicator:R,loadingPosition:S,size:w,type:x,variant:P},q=YT(O),N=(E||p&&S==="start")&&F.jsx(XT,{className:q.startIcon,ownerState:O,children:E||F.jsx(Iv,{className:q.loadingIconPlaceholder,ownerState:O})}),U=(g||p&&S==="end")&&F.jsx(ZT,{className:q.endIcon,ownerState:O,children:g||F.jsx(Iv,{className:q.loadingIconPlaceholder,ownerState:O})}),W=i||"",le=typeof p=="boolean"?F.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:p&&F.jsx(QT,{className:q.loadingIndicator,ownerState:O,children:R})}):null;return F.jsxs(JT,{ownerState:O,className:xe(n.className,q.root,d,W),component:u,disabled:m||p,focusRipple:!y,focusVisibleClassName:xe(q.focusVisible,f),ref:r,type:x,id:p?M:v,...k,classes:q,children:[N,S!=="end"&&le,s,S==="end"&&le,U]})});process.env.NODE_ENV!=="production"&&(jv.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function eP(e){return Fe("MuiCard",e)}Le("MuiCard",["root"]);const tP=e=>{const{classes:t}=e;return Be({root:["root"]},eP,t)},rP=me(lo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Nv=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...l}=n,s={...n,raised:a},c=tP(s);return F.jsx(rP,{className:xe(c.root,i),elevation:a?8:void 0,ref:r,ownerState:s,...l})});process.env.NODE_ENV!=="production"&&(Nv.propTypes={children:o.node,classes:o.object,className:o.string,raised:cr(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const nP=Ct(F.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"}),"Close"),Eo="ArrayComponent",Er={arrayItem:`${Eo}-arrayItem`,deleteItemButton:`${Eo}-deleteItemButton`,addButton:`${Eo}-addButton`,elementsContainer:`${Eo}-elementsContainer`,title:`${Eo}-title`},oP=Ui("div")(({theme:e})=>({[`& .${Er.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${Er.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${Er.addButton}`]:{marginLeft:e.spacing()},[`& .${Er.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${Er.title}`]:{margin:"auto 0"}}));let Av=1;const ka=Symbol("_SCHEMAFORM_ITEM_ID"),Mv=e=>{let t=null;return e&&typeof e=="object"&&Array.isArray(e)?t=[...e]:e&&typeof e=="object"&&!e[ka]&&(t={...e}),t?(Object.defineProperty(t,ka,{enumerable:!1,writable:!0}),Av+=1,t[ka]=Av,t):e},iP=e=>t=>{t.key&&(t.key[t.key.indexOf("")]=e)},aP=(e,t)=>{const r=Ao(e);return r.arrayIndex=t,lr.traverseForm(r,iP(t)),r},Dv=e=>{const{form:t,builder:r,model:n,mapper:i,onChange:a,setDefault:l,options:s,localization:{getLocalizedString:c}}=e,{value:u,onChangeValidate:d}=qt(e),m=(u||[]).map(Mv);ke.useEffect(()=>{l(t.key,n,t,u)},[]),ke.useEffect(()=>{t.startEmpty!==!0&&m.length===0&&h()},[]);const h=()=>{let b;if(t&&t.schema&&t.schema.items){const{items:p}=t.schema;p.type&&p.type.indexOf("object")!==-1?(b={},(!s||s.setSchemaDefaults!==!1)&&(b=typeof p.default<"u"?p.default:b,b&&lr.traverseSchema(p,(_,S)=>{typeof _.default<"u"&&lr.selectOrSet(S,b,_.default)}))):(p.type&&p.type.indexOf("array")!==-1&&(b=[]),(!s||s.setSchemaDefaults!==!1)&&(b=p.default||b))}const v=[...m];Mv(b),v.push(b),d(null,v)},y=b=>()=>{const v=[...m];v.splice(b,1),d(null,v)},g=()=>{const b=t.AddButton||(v=>F.jsx(jv,{className:Er.addButton,variant:"contained",color:"primary",...v}));return F.jsx(b,{onClick:h,children:t.add||"Add"})},f=[];for(let b=0;b<m.length;b+=1){const v=m[b],p=t.items.map((_,S)=>{const w=aP(_,b);return r(w,n,S,i,a,r,{arrayIndex:b})});f.push(F.jsxs(Nv,{className:Er.arrayItem,children:[F.jsx("div",{className:Er.elementsContainer,children:p}),F.jsx(Ta,{onClick:y(b),className:Er.deleteItemButton,size:"large",children:F.jsx(nP,{fontSize:"small"})})]},v&&v[ka]||b))}return F.jsxs(oP,{children:[F.jsxs("div",{style:{display:"flex"},children:[F.jsx(Hr,{required:t.required,className:Er.title,children:t.title&&c(t.title)}),g()]}),F.jsx("div",{children:f})]})};var Gu={exports:{}};var qv;function sP(){return qv||(qv=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(a=i(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var s in a)t.call(a,s)&&a[s]&&(l=i(l,s));return l}function i(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Gu)),Gu.exports}var lP=sP();const cP=Ut(lP),Lv="FieldSet",Fv={root:`${Lv}-root`,fields:`${Lv}-fields`},uP=Ui(Tn)(({theme:e})=>({[`&.${Fv.root}`]:{marginTop:e.spacing(1)},[`& .${Fv.fields}`]:{marginLeft:e.spacing(1)}})),zv=({form:e,mapper:t,builder:r,model:n,onChange:i,classes:a,localization:{getLocalizedString:l}})=>{const s=e.items.map((u,d)=>r(u,n,d,t,i,r)),c=cP(a.root,e.htmlClass);return F.jsxs(uP,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[F.jsx(Hr,{component:"legend",required:e.required,children:e.title&&l(e.title)}),F.jsx("div",{className:a.fields,children:s})]})},dP={padding:"20px"},fP=e=>{const{form:{title:t,yesLabel:r,noLabel:n,clearButtonLabel:i,required:a,key:l},model:s,setDefault:c,localization:{getLocalizedString:u}}=e,{value:d,onChangeValidate:m}=qt(e);ke.useEffect(()=>{c(l,s,e.form,d)},[]);const h=d==="yes",y=d==="no";return F.jsx(Jr.Card,{children:F.jsxs("div",{style:dP,children:[F.jsx(Hr,{required:a,children:t&&u(t)}),F.jsx("br",{}),F.jsxs(Jr.FormGroup,{children:[F.jsx(Jr.FormControlLabel,{control:F.jsx(Jr.Checkbox,{onClick:g=>{m(g,"yes")},checked:h}),label:r?u(r):"Yes"}),F.jsx(Jr.FormControlLabel,{control:F.jsx(Jr.Checkbox,{onClick:g=>{m(g,"no")},checked:y}),label:n?u(n):"No"})]}),d==="yes"||d==="no"?F.jsx(Jr.Button,{id:"temp",variant:"text",color:"primary",onClick:g=>m(g,"unanswered"),children:i?u(i):"clear response"}):""]})})};var Yu={exports:{}};var Vv;function pP(){return Vv||(Vv=1,(function(e,t){(function(r,n){e.exports=n(ke)})(self,(r=>(()=>{var n={4184:(s,c)=>{var u;(function(){var d={}.hasOwnProperty;function m(){for(var h=[],y=0;y<arguments.length;y++){var g=arguments[y];if(g){var f=typeof g;if(f==="string"||f==="number")h.push(g);else if(Array.isArray(g)){if(g.length){var b=m.apply(null,g);b&&h.push(b)}}else if(f==="object")if(g.toString===Object.prototype.toString)for(var v in g)d.call(g,v)&&g[v]&&h.push(v);else h.push(g.toString())}}return h.join(" ")}s.exports?(m.default=m,s.exports=m):(u=(function(){return m}).apply(c,[]))===void 0||(s.exports=u)})()},8552:(s,c,u)=>{var d=u(852)(u(5639),"DataView");s.exports=d},1989:(s,c,u)=>{var d=u(1789),m=u(401),h=u(7667),y=u(1327),g=u(1866);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},8407:(s,c,u)=>{var d=u(7040),m=u(4125),h=u(2117),y=u(7518),g=u(4705);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},7071:(s,c,u)=>{var d=u(852)(u(5639),"Map");s.exports=d},3369:(s,c,u)=>{var d=u(4785),m=u(1285),h=u(6e3),y=u(9916),g=u(5265);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},3818:(s,c,u)=>{var d=u(852)(u(5639),"Promise");s.exports=d},8525:(s,c,u)=>{var d=u(852)(u(5639),"Set");s.exports=d},8668:(s,c,u)=>{var d=u(3369),m=u(619),h=u(2385);function y(g){var f=-1,b=g==null?0:g.length;for(this.__data__=new d;++f<b;)this.add(g[f])}y.prototype.add=y.prototype.push=m,y.prototype.has=h,s.exports=y},6384:(s,c,u)=>{var d=u(8407),m=u(7465),h=u(3779),y=u(7599),g=u(4758),f=u(4309);function b(v){var p=this.__data__=new d(v);this.size=p.size}b.prototype.clear=m,b.prototype.delete=h,b.prototype.get=y,b.prototype.has=g,b.prototype.set=f,s.exports=b},2705:(s,c,u)=>{var d=u(5639).Symbol;s.exports=d},1149:(s,c,u)=>{var d=u(5639).Uint8Array;s.exports=d},577:(s,c,u)=>{var d=u(852)(u(5639),"WeakMap");s.exports=d},4963:s=>{s.exports=function(c,u){for(var d=-1,m=c==null?0:c.length,h=0,y=[];++d<m;){var g=c[d];u(g,d,c)&&(y[h++]=g)}return y}},4636:(s,c,u)=>{var d=u(2545),m=u(5694),h=u(1469),y=u(4144),g=u(5776),f=u(6719),b=Object.prototype.hasOwnProperty;s.exports=function(v,p){var _=h(v),S=!_&&m(v),w=!_&&!S&&y(v),E=!_&&!S&&!w&&f(v),x=_||S||w||E,P=x?d(v.length,String):[],k=P.length;for(var M in v)!p&&!b.call(v,M)||x&&(M=="length"||w&&(M=="offset"||M=="parent")||E&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||g(M,k))||P.push(M);return P}},2488:s=>{s.exports=function(c,u){for(var d=-1,m=u.length,h=c.length;++d<m;)c[h+d]=u[d];return c}},2908:s=>{s.exports=function(c,u){for(var d=-1,m=c==null?0:c.length;++d<m;)if(u(c[d],d,c))return!0;return!1}},8470:(s,c,u)=>{var d=u(7813);s.exports=function(m,h){for(var y=m.length;y--;)if(d(m[y][0],h))return y;return-1}},8866:(s,c,u)=>{var d=u(2488),m=u(1469);s.exports=function(h,y,g){var f=y(h);return m(h)?f:d(f,g(h))}},4239:(s,c,u)=>{var d=u(2705),m=u(9607),h=u(2333),y=d?d.toStringTag:void 0;s.exports=function(g){return g==null?g===void 0?"[object Undefined]":"[object Null]":y&&y in Object(g)?m(g):h(g)}},9454:(s,c,u)=>{var d=u(4239),m=u(7005);s.exports=function(h){return m(h)&&d(h)=="[object Arguments]"}},939:(s,c,u)=>{var d=u(2492),m=u(7005);s.exports=function h(y,g,f,b,v){return y===g||(y==null||g==null||!m(y)&&!m(g)?y!=y&&g!=g:d(y,g,f,b,h,v))}},2492:(s,c,u)=>{var d=u(6384),m=u(7114),h=u(8351),y=u(6096),g=u(4160),f=u(1469),b=u(4144),v=u(6719),p="[object Arguments]",_="[object Array]",S="[object Object]",w=Object.prototype.hasOwnProperty;s.exports=function(E,x,P,k,M,R){var O=f(E),q=f(x),N=O?_:g(E),U=q?_:g(x),W=(N=N==p?S:N)==S,le=(U=U==p?S:U)==S,ce=N==U;if(ce&&b(E)){if(!b(x))return!1;O=!0,W=!1}if(ce&&!W)return R||(R=new d),O||v(E)?m(E,x,P,k,M,R):h(E,x,N,P,k,M,R);if(!(1&P)){var ue=W&&w.call(E,"__wrapped__"),z=le&&w.call(x,"__wrapped__");if(ue||z){var C=ue?E.value():E,V=z?x.value():x;return R||(R=new d),M(C,V,P,k,R)}}return!!ce&&(R||(R=new d),y(E,x,P,k,M,R))}},8458:(s,c,u)=>{var d=u(3560),m=u(5346),h=u(3218),y=u(346),g=/^\[object .+?Constructor\]$/,f=Function.prototype,b=Object.prototype,v=f.toString,p=b.hasOwnProperty,_=RegExp("^"+v.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");s.exports=function(S){return!(!h(S)||m(S))&&(d(S)?_:g).test(y(S))}},8749:(s,c,u)=>{var d=u(4239),m=u(1780),h=u(7005),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,s.exports=function(g){return h(g)&&m(g.length)&&!!y[d(g)]}},280:(s,c,u)=>{var d=u(5726),m=u(6916),h=Object.prototype.hasOwnProperty;s.exports=function(y){if(!d(y))return m(y);var g=[];for(var f in Object(y))h.call(y,f)&&f!="constructor"&&g.push(f);return g}},2545:s=>{s.exports=function(c,u){for(var d=-1,m=Array(c);++d<c;)m[d]=u(d);return m}},1717:s=>{s.exports=function(c){return function(u){return c(u)}}},4757:s=>{s.exports=function(c,u){return c.has(u)}},4429:(s,c,u)=>{var d=u(5639)["__core-js_shared__"];s.exports=d},7114:(s,c,u)=>{var d=u(8668),m=u(2908),h=u(4757);s.exports=function(y,g,f,b,v,p){var _=1&f,S=y.length,w=g.length;if(S!=w&&!(_&&w>S))return!1;var E=p.get(y),x=p.get(g);if(E&&x)return E==g&&x==y;var P=-1,k=!0,M=2&f?new d:void 0;for(p.set(y,g),p.set(g,y);++P<S;){var R=y[P],O=g[P];if(b)var q=_?b(O,R,P,g,y,p):b(R,O,P,y,g,p);if(q!==void 0){if(q)continue;k=!1;break}if(M){if(!m(g,(function(N,U){if(!h(M,U)&&(R===N||v(R,N,f,b,p)))return M.push(U)}))){k=!1;break}}else if(R!==O&&!v(R,O,f,b,p)){k=!1;break}}return p.delete(y),p.delete(g),k}},8351:(s,c,u)=>{var d=u(2705),m=u(1149),h=u(7813),y=u(7114),g=u(8776),f=u(1814),b=d?d.prototype:void 0,v=b?b.valueOf:void 0;s.exports=function(p,_,S,w,E,x,P){switch(S){case"[object DataView]":if(p.byteLength!=_.byteLength||p.byteOffset!=_.byteOffset)return!1;p=p.buffer,_=_.buffer;case"[object ArrayBuffer]":return!(p.byteLength!=_.byteLength||!x(new m(p),new m(_)));case"[object Boolean]":case"[object Date]":case"[object Number]":return h(+p,+_);case"[object Error]":return p.name==_.name&&p.message==_.message;case"[object RegExp]":case"[object String]":return p==_+"";case"[object Map]":var k=g;case"[object Set]":var M=1&w;if(k||(k=f),p.size!=_.size&&!M)return!1;var R=P.get(p);if(R)return R==_;w|=2,P.set(p,_);var O=y(k(p),k(_),w,E,x,P);return P.delete(p),O;case"[object Symbol]":if(v)return v.call(p)==v.call(_)}return!1}},6096:(s,c,u)=>{var d=u(8234),m=Object.prototype.hasOwnProperty;s.exports=function(h,y,g,f,b,v){var p=1&g,_=d(h),S=_.length;if(S!=d(y).length&&!p)return!1;for(var w=S;w--;){var E=_[w];if(!(p?E in y:m.call(y,E)))return!1}var x=v.get(h),P=v.get(y);if(x&&P)return x==y&&P==h;var k=!0;v.set(h,y),v.set(y,h);for(var M=p;++w<S;){var R=h[E=_[w]],O=y[E];if(f)var q=p?f(O,R,E,y,h,v):f(R,O,E,h,y,v);if(!(q===void 0?R===O||b(R,O,g,f,v):q)){k=!1;break}M||(M=E=="constructor")}if(k&&!M){var N=h.constructor,U=y.constructor;N==U||!("constructor"in h)||!("constructor"in y)||typeof N=="function"&&N instanceof N&&typeof U=="function"&&U instanceof U||(k=!1)}return v.delete(h),v.delete(y),k}},1957:(s,c,u)=>{var d=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;s.exports=d},8234:(s,c,u)=>{var d=u(8866),m=u(9551),h=u(3674);s.exports=function(y){return d(y,h,m)}},5050:(s,c,u)=>{var d=u(7019);s.exports=function(m,h){var y=m.__data__;return d(h)?y[typeof h=="string"?"string":"hash"]:y.map}},852:(s,c,u)=>{var d=u(8458),m=u(7801);s.exports=function(h,y){var g=m(h,y);return d(g)?g:void 0}},9607:(s,c,u)=>{var d=u(2705),m=Object.prototype,h=m.hasOwnProperty,y=m.toString,g=d?d.toStringTag:void 0;s.exports=function(f){var b=h.call(f,g),v=f[g];try{f[g]=void 0;var p=!0}catch{}var _=y.call(f);return p&&(b?f[g]=v:delete f[g]),_}},9551:(s,c,u)=>{var d=u(4963),m=u(479),h=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,g=y?function(f){return f==null?[]:(f=Object(f),d(y(f),(function(b){return h.call(f,b)})))}:m;s.exports=g},4160:(s,c,u)=>{var d=u(8552),m=u(7071),h=u(3818),y=u(8525),g=u(577),f=u(4239),b=u(346),v="[object Map]",p="[object Promise]",_="[object Set]",S="[object WeakMap]",w="[object DataView]",E=b(d),x=b(m),P=b(h),k=b(y),M=b(g),R=f;(d&&R(new d(new ArrayBuffer(1)))!=w||m&&R(new m)!=v||h&&R(h.resolve())!=p||y&&R(new y)!=_||g&&R(new g)!=S)&&(R=function(O){var q=f(O),N=q=="[object Object]"?O.constructor:void 0,U=N?b(N):"";if(U)switch(U){case E:return w;case x:return v;case P:return p;case k:return _;case M:return S}return q}),s.exports=R},7801:s=>{s.exports=function(c,u){return c?.[u]}},1789:(s,c,u)=>{var d=u(4536);s.exports=function(){this.__data__=d?d(null):{},this.size=0}},401:s=>{s.exports=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u}},7667:(s,c,u)=>{var d=u(4536),m=Object.prototype.hasOwnProperty;s.exports=function(h){var y=this.__data__;if(d){var g=y[h];return g==="__lodash_hash_undefined__"?void 0:g}return m.call(y,h)?y[h]:void 0}},1327:(s,c,u)=>{var d=u(4536),m=Object.prototype.hasOwnProperty;s.exports=function(h){var y=this.__data__;return d?y[h]!==void 0:m.call(y,h)}},1866:(s,c,u)=>{var d=u(4536);s.exports=function(m,h){var y=this.__data__;return this.size+=this.has(m)?0:1,y[m]=d&&h===void 0?"__lodash_hash_undefined__":h,this}},5776:s=>{var c=/^(?:0|[1-9]\d*)$/;s.exports=function(u,d){var m=typeof u;return!!(d=d??9007199254740991)&&(m=="number"||m!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<d}},7019:s=>{s.exports=function(c){var u=typeof c;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?c!=="__proto__":c===null}},5346:(s,c,u)=>{var d,m=u(4429),h=(d=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"";s.exports=function(y){return!!h&&h in y}},5726:s=>{var c=Object.prototype;s.exports=function(u){var d=u&&u.constructor;return u===(typeof d=="function"&&d.prototype||c)}},7040:s=>{s.exports=function(){this.__data__=[],this.size=0}},4125:(s,c,u)=>{var d=u(8470),m=Array.prototype.splice;s.exports=function(h){var y=this.__data__,g=d(y,h);return!(g<0||(g==y.length-1?y.pop():m.call(y,g,1),--this.size,0))}},2117:(s,c,u)=>{var d=u(8470);s.exports=function(m){var h=this.__data__,y=d(h,m);return y<0?void 0:h[y][1]}},7518:(s,c,u)=>{var d=u(8470);s.exports=function(m){return d(this.__data__,m)>-1}},4705:(s,c,u)=>{var d=u(8470);s.exports=function(m,h){var y=this.__data__,g=d(y,m);return g<0?(++this.size,y.push([m,h])):y[g][1]=h,this}},4785:(s,c,u)=>{var d=u(1989),m=u(8407),h=u(7071);s.exports=function(){this.size=0,this.__data__={hash:new d,map:new(h||m),string:new d}}},1285:(s,c,u)=>{var d=u(5050);s.exports=function(m){var h=d(this,m).delete(m);return this.size-=h?1:0,h}},6e3:(s,c,u)=>{var d=u(5050);s.exports=function(m){return d(this,m).get(m)}},9916:(s,c,u)=>{var d=u(5050);s.exports=function(m){return d(this,m).has(m)}},5265:(s,c,u)=>{var d=u(5050);s.exports=function(m,h){var y=d(this,m),g=y.size;return y.set(m,h),this.size+=y.size==g?0:1,this}},8776:s=>{s.exports=function(c){var u=-1,d=Array(c.size);return c.forEach((function(m,h){d[++u]=[h,m]})),d}},4536:(s,c,u)=>{var d=u(852)(Object,"create");s.exports=d},6916:(s,c,u)=>{var d=u(5569)(Object.keys,Object);s.exports=d},1167:(s,c,u)=>{s=u.nmd(s);var d=u(1957),m=c&&!c.nodeType&&c,h=m&&s&&!s.nodeType&&s,y=h&&h.exports===m&&d.process,g=(function(){try{return h&&h.require&&h.require("util").types||y&&y.binding&&y.binding("util")}catch{}})();s.exports=g},2333:s=>{var c=Object.prototype.toString;s.exports=function(u){return c.call(u)}},5569:s=>{s.exports=function(c,u){return function(d){return c(u(d))}}},5639:(s,c,u)=>{var d=u(1957),m=typeof self=="object"&&self&&self.Object===Object&&self,h=d||m||Function("return this")();s.exports=h},619:s=>{s.exports=function(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},2385:s=>{s.exports=function(c){return this.__data__.has(c)}},1814:s=>{s.exports=function(c){var u=-1,d=Array(c.size);return c.forEach((function(m){d[++u]=m})),d}},7465:(s,c,u)=>{var d=u(8407);s.exports=function(){this.__data__=new d,this.size=0}},3779:s=>{s.exports=function(c){var u=this.__data__,d=u.delete(c);return this.size=u.size,d}},7599:s=>{s.exports=function(c){return this.__data__.get(c)}},4758:s=>{s.exports=function(c){return this.__data__.has(c)}},4309:(s,c,u)=>{var d=u(8407),m=u(7071),h=u(3369);s.exports=function(y,g){var f=this.__data__;if(f instanceof d){var b=f.__data__;if(!m||b.length<199)return b.push([y,g]),this.size=++f.size,this;f=this.__data__=new h(b)}return f.set(y,g),this.size=f.size,this}},346:s=>{var c=Function.prototype.toString;s.exports=function(u){if(u!=null){try{return c.call(u)}catch{}try{return u+""}catch{}}return""}},7813:s=>{s.exports=function(c,u){return c===u||c!=c&&u!=u}},5694:(s,c,u)=>{var d=u(9454),m=u(7005),h=Object.prototype,y=h.hasOwnProperty,g=h.propertyIsEnumerable,f=d((function(){return arguments})())?d:function(b){return m(b)&&y.call(b,"callee")&&!g.call(b,"callee")};s.exports=f},1469:s=>{var c=Array.isArray;s.exports=c},8612:(s,c,u)=>{var d=u(3560),m=u(1780);s.exports=function(h){return h!=null&&m(h.length)&&!d(h)}},4144:(s,c,u)=>{s=u.nmd(s);var d=u(5639),m=u(5062),h=c&&!c.nodeType&&c,y=h&&s&&!s.nodeType&&s,g=y&&y.exports===h?d.Buffer:void 0,f=(g?g.isBuffer:void 0)||m;s.exports=f},8446:(s,c,u)=>{var d=u(939);s.exports=function(m,h){return d(m,h)}},3560:(s,c,u)=>{var d=u(4239),m=u(3218);s.exports=function(h){if(!m(h))return!1;var y=d(h);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[object Proxy]"}},1780:s=>{s.exports=function(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}},3218:s=>{s.exports=function(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}},7005:s=>{s.exports=function(c){return c!=null&&typeof c=="object"}},6719:(s,c,u)=>{var d=u(8749),m=u(1717),h=u(1167),y=h&&h.isTypedArray,g=y?m(y):d;s.exports=g},3674:(s,c,u)=>{var d=u(4636),m=u(280),h=u(8612);s.exports=function(y){return h(y)?d(y):m(y)}},8306:(s,c,u)=>{var d=u(3369);function m(h,y){if(typeof h!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var g=function(){var f=arguments,b=y?y.apply(this,f):f[0],v=g.cache;if(v.has(b))return v.get(b);var p=h.apply(this,f);return g.cache=v.set(b,p)||v,p};return g.cache=new(m.Cache||d),g}m.Cache=d,s.exports=m},479:s=>{s.exports=function(){return[]}},5062:s=>{s.exports=function(){return!1}},2703:(s,c,u)=>{var d=u(414);function m(){}function h(){}h.resetWarningCache=m,s.exports=function(){function y(b,v,p,_,S,w){if(w!==d){var E=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 E.name="Invariant Violation",E}}function g(){return y}y.isRequired=y;var f={array:y,bigint:y,bool:y,func:y,number:y,object:y,string:y,symbol:y,any:y,arrayOf:g,element:y,elementType:y,instanceOf:g,node:y,objectOf:g,oneOf:g,oneOfType:g,shape:g,exact:g,checkPropTypes:h,resetWarningCache:m};return f.PropTypes=f,f}},5697:(s,c,u)=>{s.exports=u(2703)()},414:s=>{s.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:s=>{s.exports=r}},i={};function a(s){var c=i[s];if(c!==void 0)return c.exports;var u=i[s]={id:s,loaded:!1,exports:{}};return n[s](u,u.exports,a),u.loaded=!0,u.exports}a.n=s=>{var c=s&&s.__esModule?()=>s.default:()=>s;return a.d(c,{a:c}),c},a.d=(s,c)=>{for(var u in c)a.o(c,u)&&!a.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:c[u]})},a.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),a.o=(s,c)=>Object.prototype.hasOwnProperty.call(s,c),a.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.nmd=s=>(s.paths=[],s.children||(s.children=[]),s);var l={};return(()=>{a.r(l),a.d(l,{default:()=>Mr,expandNodesToLevel:()=>Lt});var s=a(4184),c=a.n(s),u=a(8446),d=a.n(u),m=a(8306),h=a.n(m);let y=(Y=21)=>crypto.getRandomValues(new Uint8Array(Y)).reduce(((B,ee)=>B+((ee&=63)<36?ee.toString(36):ee<62?(ee-26).toString(36).toUpperCase():ee>62?"-":"_")),"");var g=a(5697),f=a.n(g),b=a(9787),v=a.n(b);function p(Y){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},p(Y)}var _=["children","title"];function S(){return S=Object.assign?Object.assign.bind():function(Y){for(var B=1;B<arguments.length;B++){var ee=arguments[B];for(var J in ee)Object.prototype.hasOwnProperty.call(ee,J)&&(Y[J]=ee[J])}return Y},S.apply(this,arguments)}function w(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function E(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function x(Y,B){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,J){return ee.__proto__=J,ee},x(Y,B)}function P(Y,B){if(B&&(p(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee})(Y)}function k(Y){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},k(Y)}function M(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var R=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&x(se,H)})(je,Y);var B,ee,J,Se,Re=(J=je,Se=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var se,H=k(J);if(Se){var Z=k(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return P(this,se)});function je(){return w(this,je),Re.apply(this,arguments)}return B=je,(ee=[{key:"render",value:function(){var se=this.props,H=se.children,Z=se.title,de=(function(_e,Ne){if(_e==null)return{};var yt,gt,Ke=(function(jt,hn){if(jt==null)return{};var ir,fr,ae={},Q=Object.keys(jt);for(fr=0;fr<Q.length;fr++)ir=Q[fr],hn.indexOf(ir)>=0||(ae[ir]=jt[ir]);return ae})(_e,Ne);if(Object.getOwnPropertySymbols){var ct=Object.getOwnPropertySymbols(_e);for(gt=0;gt<ct.length;gt++)yt=ct[gt],Ne.indexOf(yt)>=0||Object.prototype.propertyIsEnumerable.call(_e,yt)&&(Ke[yt]=_e[yt])}return Ke})(se,_);return v().createElement("button",S({"aria-label":Z,title:Z,type:"button"},de),H)}}])&&E(B.prototype,ee),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);M(R,"propTypes",{children:f().node.isRequired,title:f().string}),M(R,"defaultProps",{title:null});const O=R,q={ALL:"all",PARENT:"parent",LEAF:"leaf"};function N(Y){this.message=Y,this.stack=Error().stack}N.prototype=Object.create(Error.prototype),N.prototype.name="CheckboxTreeError";const U=N;function W(Y,B){var ee=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),ee.push.apply(ee,J)}return ee}function le(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}function ce(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function ue(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}var z=q;const C=(function(){function Y(J){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce(this,Y),this.props=J,this.flatNodes=Se}var B,ee;return B=Y,ee=[{key:"setProps",value:function(J){this.props=J}},{key:"clone",value:function(){var J=this,Se={};return Object.keys(this.flatNodes).forEach((function(Re){var je=J.flatNodes[Re];Se[Re]=(function(se){for(var H=1;H<arguments.length;H++){var Z=arguments[H]!=null?arguments[H]:{};H%2?W(Object(Z),!0).forEach((function(de){le(se,de,Z[de])})):Object.getOwnPropertyDescriptors?Object.defineProperties(se,Object.getOwnPropertyDescriptors(Z)):W(Object(Z)).forEach((function(de){Object.defineProperty(se,de,Object.getOwnPropertyDescriptor(Z,de))}))}return se})({},je)})),new Y(this.props,Se)}},{key:"getNode",value:function(J){return this.flatNodes[J]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(J){var Se=this,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(J)&&J.length!==0){var se=this.props,H=se.disabled,Z=se.noCascade;J.forEach((function(de,_e){var Ne=Se.nodeHasChildren(de);if(Se.flatNodes[de.value]!==void 0)throw new U("Duplicate value '".concat(de.value,"' detected. All node values must be unique."));Se.flatNodes[de.value]={label:de.label,value:de.value,children:de.children,parent:Re,isChild:Re.value!==void 0,isParent:Ne,isLeaf:!Ne,showCheckbox:de.showCheckbox===void 0||de.showCheckbox,disabled:Se.getDisabledState(de,Re,H,Z),treeDepth:je,index:_e},Se.flattenNodes(de.children,de,je+1)}))}}},{key:"nodeHasChildren",value:function(J){return Array.isArray(J.children)}},{key:"getDisabledState",value:function(J,Se,Re,je){return!!Re||!(je||!Se.disabled)||!!J.disabled}},{key:"deserializeLists",value:function(J){var Se=this,Re=["checked","expanded"];Object.keys(this.flatNodes).forEach((function(je){Re.forEach((function(se){Se.flatNodes[je][se]=!1}))})),Re.forEach((function(je){J[je].forEach((function(se){Se.flatNodes[se]!==void 0&&(Se.flatNodes[se][je]=!0)}))}))}},{key:"serializeList",value:function(J){var Se=this,Re=[];return Object.keys(this.flatNodes).forEach((function(je){Se.flatNodes[je][J]&&Re.push(je)})),Re}},{key:"expandAllNodes",value:function(J){var Se=this;return Object.keys(this.flatNodes).forEach((function(Re){Se.flatNodes[Re].isParent&&(Se.flatNodes[Re].expanded=J)})),this}},{key:"toggleChecked",value:function(J,Se,Re,je){var se=this,H=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],Z=this.flatNodes[J.value],de=[z.PARENT,z.ALL].indexOf(Re)>-1,_e=[z.LEAF,z.ALL].indexOf(Re)>-1;if(Z.isLeaf||je){if(J.disabled)return this;this.toggleNode(J.value,"checked",Se)}else(de||Z.children.length===0)&&this.toggleNode(J.value,"checked",Se),_e&&Z.children.forEach((function(Ne){se.toggleChecked(Ne,Se,Re,je,!1)}));return H&&!je&&Z.isChild&&de&&this.toggleParentStatus(Z.parent,Re),this}},{key:"toggleParentStatus",value:function(J,Se){var Re=this.flatNodes[J.value];Re.isChild?(Se===z.ALL&&this.toggleNode(J.value,"checked",this.isEveryChildChecked(Re)),this.toggleParentStatus(Re.parent,Se)):this.toggleNode(J.value,"checked",this.isEveryChildChecked(Re))}},{key:"isEveryChildChecked",value:function(J){var Se=this;return J.children.every((function(Re){return Se.getNode(Re.value).checked}))}},{key:"toggleNode",value:function(J,Se,Re){return this.flatNodes[J][Se]=Re,this}}],ee&&ue(B.prototype,ee),Object.defineProperty(B,"prototype",{writable:!1}),Y})();function V(Y){return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},V(Y)}function A(){return A=Object.assign?Object.assign.bind():function(Y){for(var B=1;B<arguments.length;B++){var ee=arguments[B];for(var J in ee)Object.prototype.hasOwnProperty.call(ee,J)&&(Y[J]=ee[J])}return Y},A.apply(this,arguments)}function T(Y,B){var ee=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),ee.push.apply(ee,J)}return ee}function $(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function D(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function K(Y,B){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,J){return ee.__proto__=J,ee},K(Y,B)}function re(Y,B){if(B&&(V(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee})(Y)}function ie(Y){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},ie(Y)}function te(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var L=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&K(se,H)})(je,Y);var B,ee,J,Se,Re=(J=je,Se=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var se,H=ie(J);if(Se){var Z=ie(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return re(this,se)});function je(){return $(this,je),Re.apply(this,arguments)}return B=je,ee=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var se=this.props.indeterminate;this.checkbox.indeterminate=se}},{key:"render",value:function(){var se=this,H=(function(Z){for(var de=1;de<arguments.length;de++){var _e=arguments[de]!=null?arguments[de]:{};de%2?T(Object(_e),!0).forEach((function(Ne){te(Z,Ne,_e[Ne])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(_e)):T(Object(_e)).forEach((function(Ne){Object.defineProperty(Z,Ne,Object.getOwnPropertyDescriptor(_e,Ne))}))}return Z})({},this.props);return delete H.indeterminate,v().createElement("input",A({},H,{ref:function(Z){se.checkbox=Z},type:"checkbox"}))}}],ee&&D(B.prototype,ee),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);te(L,"propTypes",{indeterminate:f().bool}),te(L,"defaultProps",{indeterminate:!1});const I=L,G=f().shape({check:f().node,uncheck:f().node,halfCheck:f().node,expandClose:f().node,expandOpen:f().node,expandAll:f().node,collapseAll:f().node,parentClose:f().node,parentOpen:f().node,leaf:f().node}),X=f().shape({collapseAll:f().string.isRequired,expandAll:f().string.isRequired,toggle:f().string.isRequired});function ne(Y){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},ne(Y)}function he(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function ve(Y,B){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,J){return ee.__proto__=J,ee},ve(Y,B)}function fe(Y,B){if(B&&(ne(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Te(Y)}function Te(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function be(Y){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},be(Y)}function Ee(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var ge=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&ve(se,H)})(je,Y);var B,ee,J,Se,Re=(J=je,Se=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var se,H=be(J);if(Se){var Z=be(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return fe(this,se)});function je(se){var H;return(function(Z,de){if(!(Z instanceof de))throw new TypeError("Cannot call a class as a function")})(this,je),(H=Re.call(this,se)).onCheck=H.onCheck.bind(Te(H)),H.onCheckboxKeyPress=H.onCheckboxKeyPress.bind(Te(H)),H.onCheckboxKeyUp=H.onCheckboxKeyUp.bind(Te(H)),H.onClick=H.onClick.bind(Te(H)),H.onExpand=H.onExpand.bind(Te(H)),H}return B=je,(ee=[{key:"onCheck",value:function(){var se=this.props,H=se.value;(0,se.onCheck)({value:H,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(se){se.which===32&&se.preventDefault()}},{key:"onCheckboxKeyUp",value:function(se){var H=se.keyCode;[13,32].includes(H)&&this.onCheck()}},{key:"onClick",value:function(){var se=this.props,H=se.expandOnClick,Z=se.isParent,de=se.value,_e=se.onClick;Z&&H&&this.onExpand(),_e({value:de,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var se=this.props,H=se.expanded,Z=se.value;(0,se.onExpand)({value:Z,expanded:!H})}},{key:"getCheckState",value:function(se){var H=se.toggle,Z=this.props,de=Z.checked,_e=Z.optimisticToggle;return!(de!==0||!H)||de===1&&!H||de===2&&_e}},{key:"renderCollapseButton",value:function(){var se=this.props,H=se.expandDisabled,Z=se.isLeaf,de=se.lang;return Z?v().createElement("span",{className:"rct-collapse"},v().createElement("span",{className:"rct-icon"})):v().createElement(O,{className:"rct-collapse rct-collapse-btn",disabled:H,title:de.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var se=this.props,H=se.expanded,Z=se.icons,de=Z.expandClose,_e=Z.expandOpen;return H?_e:de}},{key:"renderCheckboxIcon",value:function(){var se=this.props,H=se.checked,Z=se.icons,de=Z.uncheck,_e=Z.check,Ne=Z.halfCheck;return H===0?de:H===1?_e:Ne}},{key:"renderNodeIcon",value:function(){var se=this.props,H=se.expanded,Z=se.icon,de=se.icons,_e=de.leaf,Ne=de.parentClose,yt=de.parentOpen,gt=se.isLeaf;return Z!==null?Z:gt?_e:H?yt:Ne}},{key:"renderBareLabel",value:function(se){var H=this.props,Z=H.onClick,de=H.title,_e=Z!==null;return v().createElement("span",{className:"rct-bare-label",title:de},_e?v().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},se):se)}},{key:"renderCheckboxLabel",value:function(se){var H=this.props,Z=H.checked,de=H.disabled,_e=H.title,Ne=H.treeId,yt=H.value,gt=H.onClick!==null,Ke="".concat(Ne,"-").concat(String(yt).split(" ").join("_")),ct=[v().createElement("label",{key:0,htmlFor:Ke,title:_e},v().createElement(I,{checked:Z===1,disabled:de,id:Ke,indeterminate:Z===2,onClick:this.onCheck,onChange:function(){}}),v().createElement("span",{"aria-checked":Z===1,"aria-disabled":de,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),gt?null:se)];return gt&&ct.push(v().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},se)),ct}},{key:"renderLabel",value:function(){var se=this.props,H=se.label,Z=se.showCheckbox,de=[se.showNodeIcon?v().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,v().createElement("span",{key:1,className:"rct-title"},H)];return Z?this.renderCheckboxLabel(de):this.renderBareLabel(de)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var se=this.props,H=se.className,Z=se.disabled,de=se.expanded,_e=se.isLeaf,Ne=c()({"rct-node":!0,"rct-node-leaf":_e,"rct-node-parent":!_e,"rct-node-expanded":!_e&&de,"rct-node-collapsed":!_e&&!de,"rct-disabled":Z},H);return v().createElement("li",{className:Ne},v().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&he(B.prototype,ee),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);Ee(ge,"propTypes",{checked:f().number.isRequired,disabled:f().bool.isRequired,expandDisabled:f().bool.isRequired,expanded:f().bool.isRequired,icons:G.isRequired,isLeaf:f().bool.isRequired,isParent:f().bool.isRequired,label:f().node.isRequired,lang:X.isRequired,optimisticToggle:f().bool.isRequired,showNodeIcon:f().bool.isRequired,treeId:f().string.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,onCheck:f().func.isRequired,onExpand:f().func.isRequired,children:f().node,className:f().string,expandOnClick:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string,onClick:f().func}),Ee(ge,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const $e=ge,Ie=f().oneOfType([f().arrayOf(f().string),f().arrayOf(f().number)]);function ot(Y,B){var ee=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),ee.push.apply(ee,J)}return ee}function Qe(Y){for(var B=1;B<arguments.length;B++){var ee=arguments[B]!=null?arguments[B]:{};B%2?ot(Object(ee),!0).forEach((function(J){_t(Y,J,ee[J])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(ee)):ot(Object(ee)).forEach((function(J){Object.defineProperty(Y,J,Object.getOwnPropertyDescriptor(ee,J))}))}return Y}function _t(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var et={label:f().node.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,disabled:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string};const Tt=f().oneOfType([f().shape(et),f().shape(Qe(Qe({},et),{},{children:f().arrayOf(et).isRequired}))]);function Je(Y){return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},Je(Y)}function Oe(Y,B){var ee=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),ee.push.apply(ee,J)}return ee}function He(Y){for(var B=1;B<arguments.length;B++){var ee=arguments[B]!=null?arguments[B]:{};B%2?Oe(Object(ee),!0).forEach((function(J){we(Y,J,ee[J])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(ee)):Oe(Object(ee)).forEach((function(J){Object.defineProperty(Y,J,Object.getOwnPropertyDescriptor(ee,J))}))}return Y}function dt(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function ft(Y,B){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,J){return ee.__proto__=J,ee},ft(Y,B)}function Ar(Y,B){if(B&&(Je(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Et(Y)}function Et(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function Ot(Y){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},Ot(Y)}function we(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var Me=(function(Y){(function(H,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(Z&&Z.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),Object.defineProperty(H,"prototype",{writable:!1}),Z&&ft(H,Z)})(se,Y);var B,ee,J,Se,Re,je=(Se=se,Re=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var H,Z=Ot(Se);if(Re){var de=Ot(this).constructor;H=Reflect.construct(Z,arguments,de)}else H=Z.apply(this,arguments);return Ar(this,H)});function se(H){var Z;(function(_e,Ne){if(!(_e instanceof Ne))throw new TypeError("Cannot call a class as a function")})(this,se),Z=je.call(this,H);var de=new C(H);return de.flattenNodes(H.nodes),de.deserializeLists({checked:H.checked,expanded:H.expanded}),Z.state={id:H.id||"rct-".concat(y()),model:de,prevProps:H},Z.onCheck=Z.onCheck.bind(Et(Z)),Z.onExpand=Z.onExpand.bind(Et(Z)),Z.onNodeClick=Z.onNodeClick.bind(Et(Z)),Z.onExpandAll=Z.onExpandAll.bind(Et(Z)),Z.onCollapseAll=Z.onCollapseAll.bind(Et(Z)),Z.combineMemorized=h()((function(_e,Ne){return He(He({},_e),Ne)})).bind(Et(Z)),Z}return B=se,ee=[{key:"onCheck",value:function(H){var Z=this.props,de=Z.checkModel,_e=Z.noCascade,Ne=Z.onCheck,yt=this.state.model.clone(),gt=yt.getNode(H.value);yt.toggleChecked(H,H.checked,de,_e),Ne(yt.serializeList("checked"),He(He({},gt),H))}},{key:"onExpand",value:function(H){var Z=this.props.onExpand,de=this.state.model.clone(),_e=de.getNode(H.value);de.toggleNode(H.value,"expanded",H.expanded),Z(de.serializeList("expanded"),He(He({},_e),H))}},{key:"onNodeClick",value:function(H){(0,this.props.onClick)(He(He({},this.state.model.getNode(H.value)),H))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var H=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Z=this.props.onExpand;Z(this.state.model.clone().expandAllNodes(H).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(H,Z){var de=this.state.model.getNode(H.value);return de.isLeaf||Z||H.children.length===0?de.checked?1:0:this.isEveryChildChecked(H)?1:this.isSomeChildChecked(H)?2:0}},{key:"isEveryChildChecked",value:function(H){var Z=this;return H.children.every((function(de){return Z.state.model.getNode(de.value).checkState===1}))}},{key:"isSomeChildChecked",value:function(H){var Z=this;return H.children.some((function(de){return Z.state.model.getNode(de.value).checkState>0}))}},{key:"renderTreeNodes",value:function(H){var Z=this,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=this.props,Ne=_e.expandDisabled,yt=_e.expandOnClick,gt=_e.icons,Ke=_e.lang,ct=_e.noCascade,jt=_e.onClick,hn=_e.onlyLeafCheckboxes,ir=_e.optimisticToggle,fr=_e.showNodeTitle,ae=_e.showNodeIcon,Q=this.state,ye=Q.id,Ce=Q.model,Pe=se.defaultProps.icons,ht=H.map((function(Ue){var Nt=Ue.value,At=Ce.getNode(Ue.value),Na=At.isParent?Z.renderTreeNodes(Ue.children,Ue):null;At.checkState=Z.determineShallowCheckState(Ue,ct);var Aa=hn?At.isLeaf:At.showCheckbox;return!de.value||Ce.getNode(de.value).expanded?v().createElement($e,{key:Nt,checked:At.checkState,className:Ue.className,disabled:At.disabled,expandDisabled:Ne,expandOnClick:yt,expanded:At.expanded,icon:Ue.icon,icons:Z.combineMemorized(Pe,gt),label:Ue.label,lang:Ke,optimisticToggle:ir,isLeaf:At.isLeaf,isParent:At.isParent,showCheckbox:Aa,showNodeIcon:ae,title:fr?Ue.title||Ue.label:Ue.title,treeId:ye,value:Ue.value,onCheck:Z.onCheck,onClick:jt&&Z.onNodeClick,onExpand:Z.onExpand},Na):null}));return v().createElement("ol",null,ht)}},{key:"renderExpandAll",value:function(){var H=this.props,Z=H.icons,de=Z.expandAll,_e=Z.collapseAll,Ne=H.lang;return H.showExpandAll?v().createElement("div",{className:"rct-options"},v().createElement(O,{className:"rct-option rct-option-expand-all",title:Ne.expandAll,onClick:this.onExpandAll},de),v().createElement(O,{className:"rct-option rct-option-collapse-all",title:Ne.collapseAll,onClick:this.onCollapseAll},_e)):null}},{key:"renderHiddenInput",value:function(){var H=this.props,Z=H.name,de=H.nameAsArray;return Z===void 0?null:de?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var H=this.props,Z=H.checked,de=H.name;return Z.map((function(_e){var Ne="".concat(de,"[]");return v().createElement("input",{key:_e,name:Ne,type:"hidden",value:_e})}))}},{key:"renderJoinedHiddenInput",value:function(){var H=this.props,Z=H.checked,de=H.name,_e=Z.join(",");return v().createElement("input",{name:de,type:"hidden",value:_e})}},{key:"render",value:function(){var H,Z=this.props,de=Z.direction,_e=Z.disabled,Ne=Z.iconsClass,yt=Z.nodes,gt=Z.nativeCheckboxes,Ke=this.state.id,ct=this.renderTreeNodes(yt),jt=c()((we(H={"react-checkbox-tree":!0,"rct-disabled":_e},"rct-icons-".concat(Ne),!0),we(H,"rct-native-display",gt),we(H,"rct-direction-rtl",de==="rtl"),H));return v().createElement("div",{className:jt,id:Ke},this.renderExpandAll(),this.renderHiddenInput(),ct)}}],J=[{key:"getDerivedStateFromProps",value:function(H,Z){var de=Z.model,_e=Z.prevProps,Ne=H.disabled,yt=H.id,gt=H.nodes,Ke=He(He({},Z),{},{prevProps:H});return de.setProps(H),d()(_e.nodes,gt)&&_e.disabled===Ne||(de.reset(),de.flattenNodes(gt)),yt!==null&&(Ke=He(He({},Ke),{},{id:yt})),de.deserializeLists({checked:H.checked,expanded:H.expanded}),Ke}}],ee&&dt(B.prototype,ee),J&&dt(B,J),Object.defineProperty(B,"prototype",{writable:!1}),se})(v().Component);function pt(Y){return(function(B){if(Array.isArray(B))return xt(B)})(Y)||(function(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)})(Y)||(function(B,ee){if(B){if(typeof B=="string")return xt(B,ee);var J=Object.prototype.toString.call(B).slice(8,-1);return J==="Object"&&B.constructor&&(J=B.constructor.name),J==="Map"||J==="Set"?Array.from(B):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?xt(B,ee):void 0}})(Y)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
173
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function xt(Y,B){(B==null||B>Y.length)&&(B=Y.length);for(var ee=0,J=new Array(B);ee<B;ee++)J[ee]=Y[ee];return J}function Lt(Y,B){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(ee>B)return[];var J=[];return Y.forEach((function(Se){Se.children&&(J=[].concat(pt(J),[Se.value],pt(Lt(Se.children,B,ee+1))))})),J}we(Me,"propTypes",{nodes:f().arrayOf(Tt).isRequired,checkModel:f().oneOf([q.LEAF,q.ALL]),checked:Ie,direction:f().string,disabled:f().bool,expandDisabled:f().bool,expandOnClick:f().bool,expanded:Ie,icons:G,iconsClass:f().string,id:f().string,lang:X,name:f().string,nameAsArray:f().bool,nativeCheckboxes:f().bool,noCascade:f().bool,onlyLeafCheckboxes:f().bool,optimisticToggle:f().bool,showExpandAll:f().bool,showNodeIcon:f().bool,showNodeTitle:f().bool,onCheck:f().func,onClick:f().func,onExpand:f().func}),we(Me,"defaultProps",{checkModel:q.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:v().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:v().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:v().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:v().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:v().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:v().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:v().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:v().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:v().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:v().createElement("span",{className:"rct-icon rct-icon-leaf"})},iconsClass:"fa4",id:null,lang:{collapseAll:"Collapse all",expandAll:"Expand all",toggle:"Toggle"},name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showExpandAll:!1,showNodeIcon:!0,showNodeTitle:!1,onCheck:function(){},onClick:null,onExpand:function(){}});const Mr=Me})(),l})()))})(Yu)),Yu.exports}var hP=pP();const mP=Ut(hP),yP=Ct(F.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),gP=Ct(F.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank"),Bv=Ct(F.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-2m-2 10H7v-2h10z"}),"IndeterminateCheckBox"),vP=Ct(F.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),bP=Ct(F.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),_P=Ct(F.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),wP=Ct(F.jsx("path",{d:"M10 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"}),"Folder"),SP=Ct(F.jsx("path",{d:"M20 6h-8l-2-2H4c-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-2m0 12H4V8h16z"}),"FolderOpen"),EP=Ct(F.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");var Oo={},Uv;function OP(){if(Uv)return Oo;Uv=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.parse=l,Oo.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function l(h,y){const g=new a,f=h.length;if(f<2)return g;const b=y?.decode||d;let v=0;do{const p=h.indexOf("=",v);if(p===-1)break;const _=h.indexOf(";",v),S=_===-1?f:_;if(p>S){v=h.lastIndexOf(";",p-1)+1;continue}const w=s(h,v,p),E=c(h,p,w),x=h.slice(w,E);if(g[x]===void 0){let P=s(h,p+1,S),k=c(h,S,P);const M=b(h.slice(P,k));g[x]=M}v=S+1}while(v<f);return g}function s(h,y,g){do{const f=h.charCodeAt(y);if(f!==32&&f!==9)return y}while(++y<g);return g}function c(h,y,g){for(;y>g;){const f=h.charCodeAt(--y);if(f!==32&&f!==9)return y+1}return g}function u(h,y,g){const f=g?.encode||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const b=f(y);if(!t.test(b))throw new TypeError(`argument val is invalid: ${y}`);let v=h+"="+b;if(!g)return v;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);v+="; Max-Age="+g.maxAge}if(g.domain){if(!r.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);v+="; Domain="+g.domain}if(g.path){if(!n.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);v+="; Path="+g.path}if(g.expires){if(!m(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invalid: ${g.expires}`);v+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(v+="; HttpOnly"),g.secure&&(v+="; Secure"),g.partitioned&&(v+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":v+="; Priority=Low";break;case"medium":v+="; Priority=Medium";break;case"high":v+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"none":v+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return v}function d(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function m(h){return i.call(h)==="[object Date]"}return Oo}var Ia=OP();function xP(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function CP(e){return typeof e=="string"?Ia.parse(e):typeof e=="object"&&e!==null?e:{}}function Ju(e,t={}){const r=TP(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function TP(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Wv{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=Ia.parse(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=CP(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=xP()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:Ju(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Ju(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Ju(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const i=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ia.serialize(t,i,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){const n=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ia.serialize(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}function PP(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d,action:m}=r;ke.useEffect(()=>{n(u,t,r,a)},[]);const[h,y]=ke.useState([]),[g,f]=ke.useState([]),b=p=>{const _=new Wv,S={"Content-Type":"application/json"};_.get("csrf")&&Object.assign(S,{"X-CSRF-TOKEN":_.get("csrf")}),fetch(p,{headers:S,credentials:"include"}).then(w=>w.ok?w.json():w.text().then(E=>{throw new Error(E)})).then(w=>{f(w)}).catch(w=>{console.error(w)})};ke.useEffect(()=>{m&&m.url&&b(m.url)},[]);const v={check:F.jsx(yP,{className:"rct-icon rct-icon-check"}),uncheck:F.jsx(gP,{className:"rct-icon rct-icon-uncheck"}),halfCheck:F.jsx(Bv,{className:"rct-icon rct-icon-half-check"}),expandClose:F.jsx(vP,{className:"rct-icon rct-icon-expand-close"}),expandOpen:F.jsx(bP,{className:"rct-icon rct-icon-expand-open"}),expandAll:F.jsx(_P,{className:"rct-icon rct-icon-expand-all"}),collapseAll:F.jsx(Bv,{className:"rct-icon rct-icon-collapse-all"}),parentClose:F.jsx(wP,{className:"rct-icon rct-icon-parent-close"}),parentOpen:F.jsx(SP,{className:"rct-icon rct-icon-parent-open"}),leaf:F.jsx(EP,{className:"rct-icon rct-icon-leaf-close"})};return F.jsxs(ke.Fragment,{children:[F.jsx(Hr,{required:r.required,children:d&&i(d)}),F.jsx(mP,{nodes:g,checked:a||[],expanded:h,onCheck:p=>c(null,p),onExpand:p=>y(p),icons:v,noCascade:!0}),l?null:F.jsx(eo,{error:!0,children:s})]})}var ja={exports:{}},$P=ja.exports,Hv;function RP(){return Hv||(Hv=1,(function(e){(function(t,r){e.exports=r()})($P,function(){var t=Object.prototype.toString;function r(m,h){return m==null?!1:Object.prototype.hasOwnProperty.call(m,h)}function n(m){if(!m||l(m)&&m.length===0)return!0;if(typeof m!="string"){for(var h in m)if(r(m,h))return!1;return!0}return!1}function i(m){return t.call(m)}function a(m){return typeof m=="object"&&i(m)==="[object Object]"}var l=Array.isArray||function(m){return t.call(m)==="[object Array]"};function s(m){return typeof m=="boolean"||i(m)==="[object Boolean]"}function c(m){var h=parseInt(m);return h.toString()===m?h:m}function u(m){m=m||{};var h=function(v){return Object.keys(h).reduce(function(p,_){return _==="create"||typeof h[_]=="function"&&(p[_]=h[_].bind(h,v)),p},{})},y;m.includeInheritedProps?y=function(){return!0}:y=function(v,p){return typeof p=="number"&&Array.isArray(v)||r(v,p)};function g(v,p){if(y(v,p))return v[p]}var f;m.includeInheritedProps?f=function(v,p){typeof p!="string"&&typeof p!="number"&&(p=String(p));var _=g(v,p);if(p==="__proto__"||p==="prototype"||p==="constructor"&&typeof _=="function")throw new Error("For security reasons, object's magic properties cannot be set");return _}:f=function(v,p){return g(v,p)};function b(v,p,_,S){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(typeof p=="string")return b(v,p.split(".").map(c),_,S);var w=p[0],E=f(v,w);return p.length===1?((E===void 0||!S)&&(v[w]=_),E):(E===void 0&&(typeof p[1]=="number"?v[w]=[]:v[w]={}),b(v[w],p.slice(1),_,S))}return h.has=function(v,p){if(typeof p=="number"?p=[p]:typeof p=="string"&&(p=p.split(".")),!p||p.length===0)return!!v;for(var _=0;_<p.length;_++){var S=c(p[_]);if(typeof S=="number"&&l(v)&&S<v.length||(m.includeInheritedProps?S in Object(v):r(v,S)))v=v[S];else return!1}return!0},h.ensureExists=function(v,p,_){return b(v,p,_,!0)},h.set=function(v,p,_,S){return b(v,p,_,S)},h.insert=function(v,p,_,S){var w=h.get(v,p);S=~~S,l(w)||(w=[],h.set(v,p,w)),w.splice(S,0,_)},h.empty=function(v,p){if(!n(p)&&v!=null){var _,S;if(_=h.get(v,p)){if(typeof _=="string")return h.set(v,p,"");if(s(_))return h.set(v,p,!1);if(typeof _=="number")return h.set(v,p,0);if(l(_))_.length=0;else if(a(_))for(S in _)y(_,S)&&delete _[S];else return h.set(v,p,null)}}},h.push=function(v,p){var _=h.get(v,p);l(_)||(_=[],h.set(v,p,_)),_.push.apply(_,Array.prototype.slice.call(arguments,2))},h.coalesce=function(v,p,_){for(var S,w=0,E=p.length;w<E;w++)if((S=h.get(v,p[w]))!==void 0)return S;return _},h.get=function(v,p,_){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(v==null)return _;if(typeof p=="string")return h.get(v,p.split("."),_);var S=c(p[0]),w=f(v,S);return w===void 0?_:p.length===1?w:h.get(v[S],p.slice(1),_)},h.del=function(p,_){if(typeof _=="number"&&(_=[_]),p==null||n(_))return p;if(typeof _=="string")return h.del(p,_.split("."));var S=c(_[0]);if(f(p,S),!y(p,S))return p;if(_.length===1)l(p)?p.splice(S,1):delete p[S];else return h.del(p[S],_.slice(1));return p},h}var d=u();return d.create=u,d.withInheritedProps=u({includeInheritedProps:!0}),d})})(ja)),ja.exports}var kP=RP();const IP=Ut(kP);String.prototype.format=function(){for(var e=this,t=0;t<arguments.length;t++){var r=new RegExp("\\{"+t+"\\}","gi");e=e.replace(r,arguments[t])}return e};function jP(e){const{form:{schema:{type:t},action:r,title:n,required:i,multiple:a,disabled:l,options:s,key:c},model:u,setDefault:d}=e,{value:m,valid:h,error:y,onChangeValidate:g}=qt(e);ke.useEffect(()=>{d(c,u,e.form,m)},[]);const[f,b]=ke.useState([]),{url:v,params:p}=r||{},_=p&&p.some(P=>P!=null)?p.map(P=>IP.get(u,P)):[];ke.useEffect(()=>{const P=p?_.length>0?v.format(..._):"":v;P&&w(P)},_);const S=(P,k)=>{let M=null;t!=="array"?a?M=k.map(R=>R.id).join(","):M=k?k.id:"":a?M=k.map(R=>R.id):M=k?[k.id]:[],g(null,M)},w=P=>{if(P.includes("=undefined")||P.includes("=&")||P.endsWith("="))return;const k=new Wv,M={"Content-Type":"application/json"};k.get("csrf")&&Object.assign(M,{"X-CSRF-TOKEN":k.get("csrf")}),fetch(P,{headers:M,credentials:"include"}).then(R=>R.ok?R.json():R.text().then(O=>{throw new Error(O)})).then(R=>{b(R)}).catch(R=>{console.error(R)})},E=s&&s.length>0?s:f;let x;return a?Array.isArray(m)?x=m?E.filter(P=>m.includes(P.id)):[]:x=m?E.filter(P=>(m||"").split(",").includes(P.id)):[]:Array.isArray(m)?x=m.length===1?E.find(P=>P.id===m[0]):null:x=m?E.find(P=>P.id===m):null,F.jsxs("div",{children:[F.jsx(zu,{multiple:a,disabled:l,getOptionLabel:P=>P.label||"",value:x||(a?[]:null),onChange:S,options:E,renderInput:P=>F.jsx(va,{...P,label:i?n+" *":n})}),h?null:F.jsx("div",{style:{color:"red"},children:y})]})}const NP=e=>{let t=e&&typeof e=="object"&&e.toISOString().slice(0,10)||e;return t||(t=""),t.length>0&&(t=new Date(t).toISOString().slice(0,10)),t};class Kv extends ke.Component{mapper={number:j1,text:cn,password:cn,textarea:N1,markdown:A1,textsuggest:KC,select:nT,taxonomy:PP,radios:jT,date:AT,timestamp:MT,checkbox:HT,help:KT,array:Dv,tBoolean:fP,fieldset:zv,tuple:zv,multiselect:aT,dynaselect:jP};constructor(t){super(t),this.builder=this.builder.bind(this)}setDefault=(t,r,n,i)=>{const{onModelChange:a}=this.props,l=lr.selectOrSet(t,r);up(l)&&!up(i)&&a(t,i,n.type,n)};getLocalization=()=>{const{localization:t}=this.props;return{getLocalizedString:t&&t.getLocalizedString?t.getLocalizedString:r=>r,getLocalizedNumber:t&&t.getLocalizedNumber?t.getLocalizedNumber:r=>r,getLocalizedDate:t&&t.getLocalizedDate?t.getLocalizedDate:NP}};builder(t,r,n,i,a,l){const{errors:s,showErrors:c,evalContext:u}=this.props,d=this.mapper[t.type];if(!d||t.condition&&!lr.safeEval(t.condition,{model:r,form:t,...u}))return null;const m=t.key&&t.key.join(".")||n,h=s&&m in s?s[m]:null;return F.jsx(d,{model:r,form:t,onChange:a,setDefault:this.setDefault,mapper:i,builder:l,errorText:h,localization:this.getLocalization(),showErrors:c},m)}render(){const{schema:t,form:r,ignore:n,option:i,model:a,className:l,onModelChange:s,mapper:c}=this.props,u=lr.merge(t,r,n,i);let d=this.mapper;c&&(d=t0(this.mapper,c));const m=u.map((h,y)=>this.builder(h,a,y,d,s,this.builder));return F.jsx("div",{className:l,children:m})}}Kv.defaultProps={localization:void 0,showErrors:!1},Mt.Array=Dv,Mt.SchemaForm=Kv,Mt.useSchemaField=qt,Mt.utils=lr,Object.defineProperty(Mt,Symbol.toStringTag,{value:"Module"})}));
167
+ `,WR=typeof xf!="string"?Jn.css`
168
+ animation: ${xf} 1.4s linear infinite;
169
+ `:null,HR=typeof wf!="string"?Jn.css`
170
+ animation: ${wf} 1.4s ease-in-out infinite;
171
+ `:null,YR=e=>{const{classes:t,variant:n,color:o,disableShrink:s}=e,i={root:["root",n,`color${we(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${we(n)}`,s&&"circleDisableShrink"]};return $e(i,UR,t)},KR=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${we(n.color)}`]]}})(Xe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:WR||{animation:`${xf} 1.4s linear infinite`}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),GR=ie("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),XR=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${we(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Xe(({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:HR||{animation:`${wf} 1.4s ease-in-out infinite`}}]}))),QR=ie("circle",{name:"MuiCircularProgress",slot:"Track"})(Xe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Cf=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiCircularProgress"}),{className:s,color:i="primary",disableShrink:l=!1,enableTrackSlot:a=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:h="indeterminate",...m}=o,b={...o,color:i,disableShrink:l,size:c,thickness:d,value:p,variant:h,enableTrackSlot:a},f=YR(b),g={},v={},y={};if(h==="determinate"){const S=2*Math.PI*((Mn-d)/2);g.strokeDasharray=S.toFixed(3),y["aria-valuenow"]=Math.round(p),g.strokeDashoffset=`${((100-p)/100*S).toFixed(3)}px`,v.transform="rotate(-90deg)"}return _.jsx(KR,{className:Ce(f.root,s),style:{width:c,height:c,...v,...u},ownerState:b,ref:n,role:"progressbar",...y,...m,children:_.jsxs(GR,{className:f.svg,ownerState:b,viewBox:`${Mn/2} ${Mn/2} ${Mn} ${Mn}`,children:[a?_.jsx(QR,{className:f.track,ownerState:b,cx:Mn,cy:Mn,r:(Mn-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,_.jsx(XR,{className:f.circle,style:g,ownerState:b,cx:Mn,cy:Mn,r:(Mn-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Cf.propTypes={classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","error","info","success","warning"]),r.string]),disableShrink:vn(r.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:r.bool,size:r.oneOfType([r.number,r.string]),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thickness:r.number,value:r.number,variant:r.oneOf(["determinate","indeterminate"])});function JR(e){return Me("MuiIconButton",e)}const V0=De("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),ZR=e=>{const{classes:t,disabled:n,color:o,edge:s,size:i,loading:l}=e,a={root:["root",l&&"loading",n&&"disabled",o!=="default"&&`color${we(o)}`,s&&`edge${we(s)}`,`size${we(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return $e(a,JR,t)},eI=ie(Yn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${we(n.color)}`],n.edge&&t[`edge${we(n.edge)}`],t[`size${we(n.size)}`]]}})(Xe(({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}}]})),Xe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(zt()).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)}}],[`&.${V0.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${V0.loading}`]:{color:"transparent"}}))),tI=ie("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"}}]})),Tr=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiIconButton"}),{edge:s=!1,children:i,className:l,color:a="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:m,...b}=o,f=qn(p),g=m??_.jsx(Cf,{"aria-labelledby":f,color:"inherit",size:16}),v={...o,edge:s,color:a,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:g,size:d},y=ZR(v);return _.jsxs(eI,{id:h?f:p,className:Ce(y.root,l),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:n,...b,ownerState:v,children:[typeof h=="boolean"&&_.jsx("span",{className:y.loadingWrapper,style:{display:"contents"},children:_.jsx(tI,{className:y.loadingIndicator,ownerState:v,children:h&&g})}),i]})});process.env.NODE_ENV!=="production"&&(Tr.propTypes={children:vn(r.node,e=>O.Children.toArray(e.children).some(n=>O.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
172
+ `)):null),classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),r.string]),disabled:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,edge:r.oneOf(["end","start",!1]),id:r.string,loading:r.bool,loadingIndicator:r.node,size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const nI=Pt(_.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"}),"Cancel");function rI(e){return Me("MuiChip",e)}const it=De("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"]),oI=e=>{const{classes:t,disabled:n,size:o,color:s,iconColor:i,onDelete:l,clickable:a,variant:c}=e,u={root:["root",c,n&&"disabled",`size${we(o)}`,`color${we(s)}`,a&&"clickable",a&&`clickableColor${we(s)}`,l&&"deletable",l&&`deletableColor${we(s)}`,`${c}${we(s)}`],label:["label",`label${we(o)}`],avatar:["avatar",`avatar${we(o)}`,`avatarColor${we(s)}`],icon:["icon",`icon${we(o)}`,`iconColor${we(i)}`],deleteIcon:["deleteIcon",`deleteIcon${we(o)}`,`deleteIconColor${we(s)}`,`deleteIcon${we(c)}Color${we(s)}`]};return $e(u,rI,t)},sI=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:s,clickable:i,onDelete:l,size:a,variant:c}=n;return[{[`& .${it.avatar}`]:t.avatar},{[`& .${it.avatar}`]:t[`avatar${we(a)}`]},{[`& .${it.avatar}`]:t[`avatarColor${we(o)}`]},{[`& .${it.icon}`]:t.icon},{[`& .${it.icon}`]:t[`icon${we(a)}`]},{[`& .${it.icon}`]:t[`iconColor${we(s)}`]},{[`& .${it.deleteIcon}`]:t.deleteIcon},{[`& .${it.deleteIcon}`]:t[`deleteIcon${we(a)}`]},{[`& .${it.deleteIcon}`]:t[`deleteIconColor${we(o)}`]},{[`& .${it.deleteIcon}`]:t[`deleteIcon${we(c)}Color${we(o)}`]},t.root,t[`size${we(a)}`],t[`color${we(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${we(o)}`],l&&t.deletable,l&&o!=="default"&&t[`deletableColor${we(o)}`],t[c],t[`${c}${we(o)}`]]}})(Xe(({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",[`&.${it.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${it.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${it.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${it.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${it.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${it.icon}`]:{marginLeft:5,marginRight:-6},[`& .${it.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,[`& .${it.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${it.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(zt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${it.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:{[`& .${it.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${it.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${it.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(zt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${it.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}`)},[`&.${it.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(zt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${it.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]}`,[`&.${it.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${it.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${it.avatar}`]:{marginLeft:4},[`& .${it.avatarSmall}`]:{marginLeft:2},[`& .${it.icon}`]:{marginLeft:4},[`& .${it.iconSmall}`]:{marginLeft:2},[`& .${it.deleteIcon}`]:{marginRight:5},[`& .${it.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(zt()).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)}`,[`&.${it.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${it.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${it.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),iI=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${we(o)}`]]}})({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 L0(e){return e.key==="Backspace"||e.key==="Delete"}const Va=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiChip"}),{avatar:s,className:i,clickable:l,color:a="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:h,onClick:m,onDelete:b,onKeyDown:f,onKeyUp:g,size:v="medium",variant:y="filled",tabIndex:S,skipFocusWhenDisabled:w=!1,slots:x={},slotProps:P={},...T}=o,I=O.useRef(null),$=at(I,n),M=U=>{U.stopPropagation(),b(U)},k=U=>{U.currentTarget===U.target&&L0(U)&&U.preventDefault(),f&&f(U)},C=U=>{U.currentTarget===U.target&&b&&L0(U)&&b(U),g&&g(U)},N=l!==!1&&m?!0:l,D=N||b?Yn:c||"div",j={...o,component:D,disabled:d,size:v,color:a,iconColor:O.isValidElement(p)&&p.props.color||a,onDelete:!!b,clickable:N,variant:y},F=oI(j),W=D===Yn?{component:c||"div",focusVisibleClassName:F.focusVisible,...b&&{disableRipple:!0}}:{};let Y=null;b&&(Y=u&&O.isValidElement(u)?O.cloneElement(u,{className:Ce(u.props.className,F.deleteIcon),onClick:M}):_.jsx(nI,{className:F.deleteIcon,onClick:M}));let H=null;s&&O.isValidElement(s)&&(H=O.cloneElement(s,{className:Ce(F.avatar,s.props.className)}));let L=null;p&&O.isValidElement(p)&&(L=O.cloneElement(p,{className:Ce(F.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&H&&L&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const E={slots:x,slotProps:P},[q,z]=ot("root",{elementType:sI,externalForwardedProps:{...E,...T},ownerState:j,shouldForwardComponentProp:!0,ref:$,className:Ce(F.root,i),additionalProps:{disabled:N&&d?!0:void 0,tabIndex:w&&d?-1:S,...W},getSlotProps:U=>({...U,onClick:X=>{U.onClick?.(X),m?.(X)},onKeyDown:X=>{U.onKeyDown?.(X),k(X)},onKeyUp:X=>{U.onKeyUp?.(X),C(X)}})}),[R,A]=ot("label",{elementType:iI,externalForwardedProps:E,ownerState:j,className:F.label});return _.jsxs(q,{as:D,...z,children:[H||L,_.jsx(R,{...A,children:h}),Y]})});process.env.NODE_ENV!=="production"&&(Va.propTypes={avatar:r.element,children:Pv,classes:r.object,className:r.string,clickable:r.bool,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,deleteIcon:r.element,disabled:r.bool,icon:r.element,label:r.node,onClick:r.func,onDelete:r.func,onKeyDown:r.func,onKeyUp:r.func,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),skipFocusWhenDisabled:r.bool,slotProps:r.shape({label:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({label:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,variant:r.oneOfType([r.oneOf(["filled","outlined"]),r.string])});const aI=Pt(_.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"}),"Close");function lI(e){return Me("MuiAutocomplete",e)}const et=De("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 B0,q0;const cI=e=>{const{classes:t,disablePortal:n,expanded:o,focused:s,fullWidth:i,hasClearIcon:l,hasPopupIcon:a,inputFocused:c,popupOpen:u,size:d}=e,p={root:["root",o&&"expanded",s&&"focused",i&&"fullWidth",l&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${we(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(p,lI,t)},uI=ie("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:o,hasClearIcon:s,hasPopupIcon:i,inputFocused:l,size:a}=n;return[{[`& .${et.tag}`]:t.tag},{[`& .${et.tag}`]:t[`tagSize${we(a)}`]},{[`& .${et.inputRoot}`]:t.inputRoot},{[`& .${et.input}`]:t.input},{[`& .${et.input}`]:l&&t.inputFocused},t.root,o&&t.fullWidth,i&&t.hasPopupIcon,s&&t.hasClearIcon]}})({[`&.${et.focused} .${et.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${et.clearIndicator}`]:{visibility:"visible"}},[`& .${et.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${et.inputRoot}`]:{[`.${et.hasPopupIcon}&, .${et.hasClearIcon}&`]:{paddingRight:30},[`.${et.hasPopupIcon}.${et.hasClearIcon}&`]:{paddingRight:56},[`& .${et.input}`]:{width:0,minWidth:30}},[`& .${br.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${br.root}.${dn.sizeSmall}`]:{[`& .${br.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Sn.root}`]:{padding:9,[`.${et.hasPopupIcon}&, .${et.hasClearIcon}&`]:{paddingRight:39},[`.${et.hasPopupIcon}.${et.hasClearIcon}&`]:{paddingRight:65},[`& .${et.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${et.endAdornment}`]:{right:9}},[`& .${Sn.root}.${dn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${et.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${fn.root}`]:{paddingTop:19,paddingLeft:8,[`.${et.hasPopupIcon}&, .${et.hasClearIcon}&`]:{paddingRight:39},[`.${et.hasPopupIcon}.${et.hasClearIcon}&`]:{paddingRight:65},[`& .${fn.input}`]:{padding:"7px 4px"},[`& .${et.endAdornment}`]:{right:9}},[`& .${fn.root}.${dn.sizeSmall}`]:{paddingBottom:1,[`& .${fn.input}`]:{padding:"2.5px 4px"}},[`& .${dn.hiddenLabel}`]:{paddingTop:8},[`& .${fn.root}.${dn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${et.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${fn.root}.${dn.hiddenLabel}.${dn.sizeSmall}`]:{[`& .${et.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${et.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${et.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${et.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${et.inputRoot}`]:{flexWrap:"wrap"}}}]}),dI=ie("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),fI=ie(Tr,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),pI=ie(Tr,{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)"}}]}),hI=ie(ja,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${et.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Xe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),mI=ie(Cr,{name:"MuiAutocomplete",slot:"Paper"})(Xe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),yI=ie("div",{name:"MuiAutocomplete",slot:"Loading"})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),gI=ie("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),bI=ie("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Xe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${et.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"},[`&.${et.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"},[`&.${et.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),[`&.${et.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}},[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),vI=ie(Aa,{name:"MuiAutocomplete",slot:"GroupLabel"})(Xe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),SI=ie("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${et.option}`]:{paddingLeft:24}}),Pf=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:a=!1,ChipProps:c,className:u,clearIcon:d=B0||(B0=_.jsx(aI,{fontSize:"small"})),clearOnBlur:p=!o.freeSolo,clearOnEscape:h=!1,clearText:m="Clear",closeText:b="Close",componentsProps:f,defaultValue:g=o.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:y=!1,disabled:S=!1,disabledItemsFocusable:w=!1,disableListWrap:x=!1,disablePortal:P=!1,filterOptions:T,filterSelectedOptions:I=!1,forcePopupIcon:$="auto",freeSolo:M=!1,fullWidth:k=!1,getLimitTagsText:C=ht=>`+${ht}`,getOptionDisabled:N,getOptionKey:D,getOptionLabel:j,isOptionEqualToValue:F,groupBy:W,handleHomeEndKeys:Y=!o.freeSolo,id:H,includeInputInList:L=!1,inputValue:E,limitTags:q=-1,ListboxComponent:z,ListboxProps:R,loading:A=!1,loadingText:U="Loading…",multiple:X=!1,noOptionsText:se="No options",onChange:te,onClose:J,onHighlightChange:B,onInputChange:V,onOpen:Q,open:G,openOnFocus:ne=!1,openText:ae="Open",options:re,PaperComponent:ce,PopperComponent:be,popupIcon:oe=q0||(q0=_.jsx(d0,{})),readOnly:fe=!1,renderGroup:ve,renderInput:ke,renderOption:je,renderTags:Ue,renderValue:Ve,selectOnFocus:Ze=!o.freeSolo,size:Qe="medium",slots:Ae={},slotProps:Ne={},value:Te,...Le}=o,{getRootProps:Ye,getInputProps:Ke,getInputLabelProps:lt,getPopupIndicatorProps:pt,getClearProps:Be,getItemProps:Oe,getListboxProps:Fe,getOptionProps:tt,value:_t,dirty:gt,expanded:mn,id:de,popupOpen:Z,focused:he,focusedItem:le,anchorEl:Ie,setAnchorEl:Se,inputValue:Pe,groupedOptions:pe}=m_({...o,componentName:"Autocomplete"}),ee=!v&&!S&&gt&&!fe,ue=(!M||$===!0)&&$!==!1,{onMouseDown:xe}=Ke(),{ref:Re,...He}=Fe(),Et=j||(ht=>ht.label??ht),dt={...o,disablePortal:P,expanded:mn,focused:he,fullWidth:k,getOptionLabel:Et,hasClearIcon:ee,hasPopupIcon:ue,inputFocused:le===-1,popupOpen:Z,size:Qe},kt=cI(dt),Kt={slots:{paper:ce,popper:be,...Ae},slotProps:{chip:c,listbox:R,...f,...Ne}},[Qr,_n]=ot("listbox",{elementType:bI,externalForwardedProps:Kt,ownerState:dt,className:kt.listbox,additionalProps:He,ref:Re}),[Ln,ge]=ot("paper",{elementType:Cr,externalForwardedProps:Kt,ownerState:dt,className:kt.paper}),[me,_e]=ot("popper",{elementType:ja,externalForwardedProps:Kt,ownerState:dt,className:kt.popper,additionalProps:{disablePortal:P,style:{width:Ie?Ie.clientWidth:null},role:"presentation",anchorEl:Ie,open:Z}});let ze;const We=ht=>({className:kt.tag,disabled:S,...Oe(ht)});if(X?_t.length>0&&(Ue?ze=Ue(_t,We,dt):Ve?ze=Ve(_t,We,dt):ze=_t.map((ht,kr)=>{const{key:_r,...Ls}=We({index:kr});return _.jsx(Va,{label:Et(ht),size:Qe,...Ls,...Kt.slotProps.chip},_r)})):Ve&&_t!=null&&(ze=Ve(_t,We,dt)),q>-1&&Array.isArray(ze)){const ht=ze.length-q;!he&&ht>0&&(ze=ze.splice(0,q),ze.push(_.jsx("span",{className:kt.tag,children:C(ht)},ze.length)))}const ct=ve||(ht=>_.jsxs("li",{children:[_.jsx(vI,{className:kt.groupLabel,ownerState:dt,component:"div",children:ht.group}),_.jsx(SI,{className:kt.groupUl,ownerState:dt,children:ht.children})]},ht.key)),Xt=je||((ht,kr)=>{const{key:_r,...Ls}=ht;return _.jsx("li",{...Ls,children:Et(kr)},_r)}),Sl=(ht,kr)=>{const _r=tt({option:ht,index:kr});return Xt({..._r,className:kt.option},ht,{selected:_r["aria-selected"],index:kr,inputValue:Pe},dt)},xl=Kt.slotProps.clearIndicator,gw=Kt.slotProps.popupIndicator;return _.jsxs(O.Fragment,{children:[_.jsx(uI,{ref:n,className:Ce(kt.root,u),ownerState:dt,...Ye(Le),children:ke({id:de,disabled:S,fullWidth:o.fullWidth??!0,size:Qe==="small"?"small":void 0,InputLabelProps:lt(),InputProps:{ref:Se,className:kt.inputRoot,startAdornment:ze,onMouseDown:ht=>{ht.target===ht.currentTarget&&xe(ht)},...(ee||ue)&&{endAdornment:_.jsxs(dI,{className:kt.endAdornment,ownerState:dt,children:[ee?_.jsx(fI,{...Be(),"aria-label":m,title:m,ownerState:dt,...xl,className:Ce(kt.clearIndicator,xl?.className),children:d}):null,ue?_.jsx(pI,{...pt(),disabled:S,"aria-label":Z?b:ae,title:Z?b:ae,ownerState:dt,...gw,className:Ce(kt.popupIndicator,gw?.className),children:oe}):null]})}},inputProps:{className:kt.input,disabled:S,readOnly:fe,...Ke()}})}),Ie?_.jsx(hI,{as:me,..._e,children:_.jsxs(mI,{as:Ln,...ge,children:[A&&pe.length===0?_.jsx(yI,{className:kt.loading,ownerState:dt,children:U}):null,pe.length===0&&!M&&!A?_.jsx(gI,{className:kt.noOptions,ownerState:dt,role:"presentation",onMouseDown:ht=>{ht.preventDefault()},children:se}):null,pe.length>0?_.jsx(Qr,{as:z,..._n,children:pe.map((ht,kr)=>W?ct({key:ht.key,group:ht.group,children:ht.options.map((_r,Ls)=>Sl(_r,ht.index+Ls))}):Sl(ht,kr))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(Pf.propTypes={autoComplete:r.bool,autoHighlight:r.bool,autoSelect:r.bool,blurOnSelect:r.oneOfType([r.oneOf(["mouse","touch"]),r.bool]),ChipProps:r.object,classes:r.object,className:r.string,clearIcon:r.node,clearOnBlur:r.bool,clearOnEscape:r.bool,clearText:r.string,closeText:r.string,componentsProps:r.shape({clearIndicator:r.object,paper:r.object,popper:r.object,popupIndicator:r.object}),defaultValue:vn(r.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
173
+ `)):null),disableClearable:r.bool,disableCloseOnSelect:r.bool,disabled:r.bool,disabledItemsFocusable:r.bool,disableListWrap:r.bool,disablePortal:r.bool,filterOptions:r.func,filterSelectedOptions:r.bool,forcePopupIcon:r.oneOfType([r.oneOf(["auto"]),r.bool]),freeSolo:r.bool,fullWidth:r.bool,getLimitTagsText:r.func,getOptionDisabled:r.func,getOptionKey:r.func,getOptionLabel:r.func,groupBy:r.func,handleHomeEndKeys:r.bool,id:r.string,includeInputInList:r.bool,inputValue:r.string,isOptionEqualToValue:r.func,limitTags:Gd,ListboxComponent:r.elementType,ListboxProps:r.object,loading:r.bool,loadingText:r.node,multiple:r.bool,noOptionsText:r.node,onChange:r.func,onClose:r.func,onHighlightChange:r.func,onInputChange:r.func,onKeyDown:r.func,onOpen:r.func,open:r.bool,openOnFocus:r.bool,openText:r.string,options:r.array.isRequired,PaperComponent:r.elementType,PopperComponent:r.elementType,popupIcon:r.node,readOnly:r.bool,renderGroup:r.func,renderInput:r.func.isRequired,renderOption:r.func,renderTags:r.func,renderValue:r.func,selectOnFocus:r.bool,size:r.oneOfType([r.oneOf(["small","medium"]),r.string]),slotProps:r.shape({chip:r.oneOfType([r.func,r.object]),clearIndicator:r.oneOfType([r.func,r.object]),listbox:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),popper:r.oneOfType([r.func,r.object]),popupIndicator:r.oneOfType([r.func,r.object])}),slots:r.shape({listbox:r.elementType,paper:r.elementType,popper:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:vn(r.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
174
+ `)):null)});const xI=e=>{const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,valid:l,error:a,onChangeValidate:c}=Zt(e),{key:u,title:d,placeholder:p,readonly:h,titleMap:m}=n;Ge.useEffect(()=>{o(u,t,n,i)},[]);const b=m||[],f=(y,S)=>{const w=S&&typeof S=="object"?S.value:S;c(null,w)},g=y=>s(typeof y=="object"&&y!==null?y.name||y.value||"":y||""),v=b.find(y=>typeof y=="object"&&y!==null?y.value===i:y===i)||null;return _.jsx("div",{className:n.htmlClass,children:_.jsx(Pf,{options:b,getOptionLabel:g,value:v,onChange:f,disabled:h,fullWidth:!0,renderInput:y=>_.jsx(hs,{...y,label:d&&s(d),placeholder:p&&s(p),helperText:(a||n.description)&&s(a||n.description),error:!l,required:n.required,style:n.style||{width:"100%"},...n.otherProps}),...n.otherProps})})};function wI(e){return Me("MuiDivider",e)}const z0=De("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),CI=e=>{const{absolute:t,children:n,classes:o,flexItem:s,light:i,orientation:l,textAlign:a,variant:c}=e;return $e({root:["root",t&&"absolute",c,i&&"light",l==="vertical"&&"vertical",s&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",a==="right"&&l!=="vertical"&&"textAlignRight",a==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},wI,o)},PI=ie("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]}})(Xe(({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%"}}}]}))),TI=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Xe(({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)`}}]}))),ws=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDivider"}),{absolute:s=!1,children:i,className:l,orientation:a="horizontal",component:c=i||a==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:p=c!=="hr"?"separator":void 0,textAlign:h="center",variant:m="fullWidth",...b}=o,f={...o,absolute:s,component:c,flexItem:u,light:d,orientation:a,role:p,textAlign:h,variant:m},g=CI(f);return _.jsx(PI,{as:c,className:Ce(g.root,l),role:p,ref:n,ownerState:f,"aria-orientation":p==="separator"&&(c!=="hr"||a==="vertical")?a:void 0,...b,children:i?_.jsx(TI,{className:g.wrapper,ownerState:f,children:i}):null})});ws&&(ws.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(ws.propTypes={absolute:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,flexItem:r.bool,light:r.bool,orientation:r.oneOf(["horizontal","vertical"]),role:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),textAlign:r.oneOf(["center","left","right"]),variant:r.oneOfType([r.oneOf(["fullWidth","inset","middle"]),r.string])});const U0=De("MuiListItemIcon",["root","alignItemsFlexStart"]);function OI(e){return Me("MuiTypography",e)}De("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const EI={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},kI=XE(),_I=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:s,variant:i,classes:l}=e,a={root:["root",i,e.align!=="inherit"&&`align${we(t)}`,n&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return $e(a,OI,l)},RI=ie("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${we(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Xe(({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(zt()).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${we(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}}]}))),W0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Nn=O.forwardRef(function(t,n){const{color:o,...s}=Je({props:t,name:"MuiTypography"}),i=!EI[o],l=kI({...s,...i&&{color:o}}),{align:a="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:b=W0,...f}=l,g={...l,align:a,color:o,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:h,variant:m,variantMapping:b},v=u||(h?"p":b[m]||W0[m])||"span",y=_I(g);return _.jsx(RI,{as:v,ref:n,className:Ce(y.root,c),...f,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...f.style}})});process.env.NODE_ENV!=="production"&&(Nn.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.string]),component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object});const H0=De("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function II(e){return Me("MuiMenuItem",e)}const Cs=De("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$I=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},DI=e=>{const{disabled:t,dense:n,divider:o,disableGutters:s,selected:i,classes:l}=e,c=$e({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",i&&"selected"]},II,l);return{...l,...c}},MI=ie(Yn,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$I})(Xe(({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"}},[`&.${Cs.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Cs.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Cs.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)}},[`&.${Cs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${z0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${z0.inset}`]:{marginLeft:52},[`& .${H0.root}`]:{marginTop:0,marginBottom:0},[`& .${H0.inset}`]:{paddingLeft:36},[`& .${U0.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,[`& .${U0.root} svg`]:{fontSize:"1.25rem"}}}]}))),So=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:i="li",dense:l=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:h,...m}=o,b=O.useContext(Sr),f=O.useMemo(()=>({dense:l||b.dense||!1,disableGutters:c}),[b.dense,l,c]),g=O.useRef(null);Mt(()=>{s&&(g.current?g.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const v={...o,dense:f.dense,divider:a,disableGutters:c},y=DI(o),S=at(g,n);let w;return o.disabled||(w=p!==void 0?p:-1),_.jsx(Sr.Provider,{value:f,children:_.jsx(MI,{ref:S,role:d,tabIndex:w,component:i,focusVisibleClassName:Ce(y.focusVisible,u),className:Ce(y.root,h),...m,ownerState:v,classes:y})})});process.env.NODE_ENV!=="production"&&(So.propTypes={autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disabled:r.bool,disableGutters:r.bool,divider:r.bool,focusVisibleClassName:r.string,role:r.string,selected:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number});function NI(e){const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s},form:{key:i,schema:{isObject:l,enum:a,findFn:c,displayFn:u,noLocalization:d}}}=e,{value:p,valid:h,error:m,onChangeValidate:b}=Zt(e);Ge.useEffect(()=>{o(i,t,n,p)},[]);const f=y=>{if(l){const S=y.target.value,w=a.find(x=>c?c(x,S):x===S);b(w)}else b(y)},g=y=>u?u(y):d?y.name:s(y.name);let v=[];return l?v=n.schema.enum.map((y,S)=>_.jsx(So,{value:y,children:g(y)},S)):v=n.titleMap.map((y,S)=>_.jsx(So,{value:y.value,children:g(y)},S)),_.jsxs(Vr,{fullWidth:!0,error:!h,...n.otherProps,children:[_.jsx(ts,{required:n.required,...n.labelProps,children:n.title&&s(n.title)}),_.jsx(ps,{value:p||(n&&n.selectProps&&n.selectProps.multiple?[]:""),placeholder:n.placeholder&&s(n.placeholder),disabled:n.readonly,onChange:f,...n.selectProps,children:v}),_.jsx(uo,{...n.helperTextProps,children:(m||n.description)&&s(m||n.description)})]})}const Ps="MultiSelect",Kn={root:`${Ps}-root`,chips:`${Ps}-chips`,chip:`${Ps}-chip`,menuItem:`${Ps}-menuItem`,selectedMenuItem:`${Ps}-selectedMenuItem`},jI=sa("div")(({theme:e})=>({[`&.${Kn.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${Kn.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${Kn.chip}`]:{margin:e.spacing(.25)},[`& .${Kn.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${Kn.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),AI={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}},FI=e=>{const{form:t,localization:{getLocalizedString:n}}=e,{value:o,onChangeValidate:s}=Zt(e),i=o||[],l=u=>{s(u.target.value)},a=$n.getTitleByValue.bind(null,t.titleMap),c=t.titleMap.map(u=>_.jsx(So,{value:u.value,className:i.indexOf(u.value)===-1?Kn.menuItem:Kn.selectedMenuItem,children:u.name&&n(u.name)},u.value));return _.jsx(jI,{className:Kn.root,children:_.jsxs(Vr,{fullWidth:!0,...t.otherProps,children:[_.jsx(ts,{required:t.required,children:t.title&&n(t.title)}),_.jsx(ps,{multiple:!0,value:i,placeholder:t.placeholder&&n(t.placeholder),disabled:t.readonly,onChange:l,MenuProps:AI,renderValue:u=>_.jsx("div",{className:Kn.chips,children:u.map(d=>_.jsx(Va,{label:a(d)&&n(a(d)),className:Kn.chip},d))}),children:c})]})})};function VI(e){return Me("MuiFormControlLabel",e)}const Ts=De("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),LI=e=>{const{classes:t,disabled:n,labelPlacement:o,error:s,required:i}=e,l={root:["root",n&&"disabled",`labelPlacement${we(o)}`,s&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",s&&"error"]};return $e(l,VI,t)},BI=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ts.label}`]:t.label},t.root,t[`labelPlacement${we(n.labelPlacement)}`]]}})(Xe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ts.disabled}`]:{cursor:"default"},[`& .${Ts.label}`]:{[`&.${Ts.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}}]}))),qI=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Xe(({theme:e})=>({[`&.${Ts.error}`]:{color:(e.vars||e).palette.error.main}}))),Tf=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFormControlLabel"}),{checked:s,className:i,componentsProps:l={},control:a,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:h="end",name:m,onChange:b,required:f,slots:g={},slotProps:v={},value:y,...S}=o,w=un(),x=c??a.props.disabled??w?.disabled,P=f??a.props.required,T={disabled:x,required:P};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof a.props[j]>"u"&&typeof o[j]<"u"&&(T[j]=o[j])});const I=gr({props:o,muiFormControl:w,states:["error"]}),$={...o,disabled:x,labelPlacement:h,required:P,error:I.error},M=LI($),k={slots:g,slotProps:{...l,...v}},[C,N]=ot("typography",{elementType:Nn,externalForwardedProps:k,ownerState:$});let D=p;return D!=null&&D.type!==Nn&&!u&&(D=_.jsx(C,{component:"span",...N,className:Ce(M.label,N?.className),children:D})),_.jsxs(BI,{className:Ce(M.root,i),ownerState:$,ref:n,...S,children:[O.cloneElement(a,T),P?_.jsxs("div",{children:[D,_.jsxs(qI,{ownerState:$,"aria-hidden":!0,className:M.asterisk,children:[" ","*"]})]}):D]})});process.env.NODE_ENV!=="production"&&(Tf.propTypes={checked:r.bool,classes:r.object,className:r.string,componentsProps:r.shape({typography:r.object}),control:r.element.isRequired,disabled:r.bool,disableTypography:r.bool,inputRef:$t,label:r.node,labelPlacement:r.oneOf(["bottom","end","start","top"]),name:r.string,onChange:r.func,required:r.bool,slotProps:r.shape({typography:r.oneOfType([r.func,r.object])}),slots:r.shape({typography:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});function zI(e){return Me("MuiFormGroup",e)}De("MuiFormGroup",["root","row","error"]);const UI=e=>{const{classes:t,row:n,error:o}=e;return $e({root:["root",n&&"row",o&&"error"]},zI,t)},WI=ie("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"}}]}),Of=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFormGroup"}),{className:s,row:i=!1,...l}=o,a=un(),c=gr({props:o,muiFormControl:a,states:["error"]}),u={...o,row:i,error:c.error},d=UI(u);return _.jsx(WI,{className:Ce(d.root,s),ownerState:u,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Of.propTypes={children:r.node,classes:r.object,className:r.string,row:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function HI(e){return Me("MuiRadioGroup",e)}De("MuiRadioGroup",["root","row","error"]);const Ef=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ef.displayName="RadioGroupContext");const YI=e=>{const{classes:t,row:n,error:o}=e;return $e({root:["root",n&&"row",o&&"error"]},HI,t)},Y0=O.forwardRef(function(t,n){const{actions:o,children:s,className:i,defaultValue:l,name:a,onChange:c,value:u,...d}=t,p=O.useRef(null),h=YI(t),[m,b]=pn({controlled:u,default:l,name:"RadioGroup"});O.useImperativeHandle(o,()=>({focus:()=>{let y=p.current.querySelector("input:not(:disabled):checked");y||(y=p.current.querySelector("input:not(:disabled)")),y&&y.focus()}}),[]);const f=at(n,p),g=qn(a),v=O.useMemo(()=>({name:g,onChange(y){b(y.target.value),c&&c(y,y.target.value)},value:m}),[g,c,b,m]);return _.jsx(Ef.Provider,{value:v,children:_.jsx(Of,{role:"radiogroup",ref:f,className:Ce(h.root,i),...d,children:s})})});process.env.NODE_ENV!=="production"&&(Y0.propTypes={children:r.node,className:r.string,defaultValue:r.any,name:r.string,onChange:r.func,value:r.any});function KI(){return O.useContext(Ef)}function GI(e){return Me("PrivateSwitchBase",e)}De("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const XI=e=>{const{classes:t,checked:n,disabled:o,edge:s}=e,i={root:["root",n&&"checked",o&&"disabled",s&&`edge${we(s)}`],input:["input"]};return $e(i,GI,t)},QI=ie(Yn,{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}}]}),JI=ie("input",{name:"MuiSwitchBase",shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),kf=O.forwardRef(function(t,n){const{autoFocus:o,checked:s,checkedIcon:i,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:m,name:b,onBlur:f,onChange:g,onFocus:v,readOnly:y,required:S=!1,tabIndex:w,type:x,value:P,slots:T={},slotProps:I={},...$}=t,[M,k]=pn({controlled:s,default:!!l,name:"SwitchBase",state:"checked"}),C=un(),N=A=>{v&&v(A),C&&C.onFocus&&C.onFocus(A)},D=A=>{f&&f(A),C&&C.onBlur&&C.onBlur(A)},j=A=>{if(A.nativeEvent.defaultPrevented||y)return;const U=A.target.checked;k(U),g&&g(A,U)};let F=a;C&&typeof F>"u"&&(F=C.disabled);const W=x==="checkbox"||x==="radio",Y={...t,checked:M,disabled:F,disableFocusRipple:c,edge:u},H=XI(Y),L={slots:T,slotProps:{input:h,...I}},[E,q]=ot("root",{ref:n,elementType:QI,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...L,component:"span",...$},getSlotProps:A=>({...A,onFocus:U=>{A.onFocus?.(U),N(U)},onBlur:U=>{A.onBlur?.(U),D(U)}}),ownerState:Y,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[z,R]=ot("input",{ref:m,elementType:JI,className:H.input,externalForwardedProps:L,getSlotProps:A=>({...A,onChange:U=>{A.onChange?.(U),j(U)}}),ownerState:Y,additionalProps:{autoFocus:o,checked:s,defaultChecked:l,disabled:F,id:W?p:void 0,name:b,readOnly:y,required:S,tabIndex:w,type:x,...x==="checkbox"&&P===void 0?{}:{value:P}}});return _.jsxs(E,{...q,children:[_.jsx(z,{...R}),M?i:d]})});process.env.NODE_ENV!=="production"&&(kf.propTypes={autoFocus:r.bool,checked:r.bool,checkedIcon:r.node.isRequired,classes:r.object,className:r.string,defaultChecked:r.bool,disabled:r.bool,disableFocusRipple:r.bool,edge:r.oneOf(["end","start",!1]),icon:r.node.isRequired,id:r.string,inputProps:r.object,inputRef:$t,name:r.string,onBlur:r.func,onChange:r.func,onFocus:r.func,readOnly:r.bool,required:r.bool,slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.string.isRequired,value:r.any});const ZI=Pt(_.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),e$=Pt(_.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),t$=ie("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ht})({position:"relative",display:"flex"}),n$=ie(ZI,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),r$=ie(e$,{name:"MuiRadioButtonIcon"})(Xe(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function _f(e){const{checked:t=!1,classes:n={},fontSize:o}=e,s={...e,checked:t};return _.jsxs(t$,{className:n.root,ownerState:s,children:[_.jsx(n$,{fontSize:o,className:n.background,ownerState:s}),_.jsx(r$,{fontSize:o,className:n.dot,ownerState:s})]})}process.env.NODE_ENV!=="production"&&(_f.propTypes={checked:r.bool,classes:r.object,fontSize:r.oneOf(["small","medium"])});function o$(e){return Me("MuiRadio",e)}const K0=De("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),s$=e=>{const{classes:t,color:n,size:o}=e,s={root:["root",`color${we(n)}`,o!=="medium"&&`size${we(o)}`]};return{...t,...$e(s,o$,t)}},i$=ie(kf,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${we(n.size)}`],t[`color${we(n.color)}`]]}})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${K0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${K0.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function a$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const l$=_.jsx(_f,{checked:!0}),c$=_.jsx(_f,{}),G0=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:i=l$,color:l="primary",icon:a=c$,name:c,onChange:u,size:d="medium",className:p,disabled:h,disableRipple:m=!1,slots:b={},slotProps:f={},inputProps:g,...v}=o,y=un();let S=h;y&&typeof S>"u"&&(S=y.disabled),S??=!1;const w={...o,disabled:S,disableRipple:m,color:l,size:d},x=s$(w),P=KI();let T=s;const I=Ud(u,P&&P.onChange);let $=c;P&&(typeof T>"u"&&(T=a$(P.value,o.value)),typeof $>"u"&&($=P.name));const M=f.input??g,[k,C]=ot("root",{ref:n,elementType:i$,className:Ce(x.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:f,...v},getSlotProps:N=>({...N,onChange:(D,...j)=>{N.onChange?.(D,...j),I(D,...j)}}),ownerState:w,additionalProps:{type:"radio",icon:O.cloneElement(a,{fontSize:a.props.fontSize??d}),checkedIcon:O.cloneElement(i,{fontSize:i.props.fontSize??d}),disabled:S,name:$,checked:T,slots:b,slotProps:{input:typeof M=="function"?M(w):M}}});return _.jsx(k,{...C,classes:x})});process.env.NODE_ENV!=="production"&&(G0.propTypes={checked:r.bool,checkedIcon:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),disabled:r.bool,disableRipple:r.bool,icon:r.node,id:r.string,inputProps:r.object,inputRef:$t,name:r.string,onChange:r.func,required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});const X0="Radios",La={formControl:`${X0}-formControl`,group:`${X0}-group`},u$=sa(Vr)(({theme:e})=>({[`&.${La.formControl}`]:{marginTop:e.spacing(1)},[`& .${La.group}`]:{margin:e.spacing(1,0)}})),d$=e=>{const{form:t,localization:{getLocalizedString:n}}=e,{value:o,onChangeValidate:s}=Zt(e),i=l=>l.titleMap.map((a,c)=>_.jsx(Tf,{control:_.jsx(G0,{}),label:a.name&&n(a.name),value:a.value,disabled:l.readonly},c));return _.jsxs(u$,{component:"fieldset",className:La.formControl,...t.otherProps,children:[_.jsx(vr,{component:"legend",required:t.required,children:t.title&&n(t.title)}),_.jsx(Y0,{value:o,name:t.title,onChange:s,className:La.group,children:i(t)})]})},f$=e=>{const{localization:{getLocalizedDate:t},form:n,type:o}=e,{value:s,valid:i,error:l,onChangeValidate:a}=Zt(e);return _.jsx(mo,{...e,form:{...n,type:o},value:t(s),valid:i,error:l,onChangeValidate:a,otherProps:{InputLabelProps:{shrink:!0}},...n.otherProps})},p$=e=>_.jsx(f$,{type:"date",...e}),Q0=Jb({themeId:Jo});function xt({props:e,name:t}){return QO({props:e,name:t,defaultTheme:ua,themeId:Jo})}const Gn=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),h$=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const s=n??o;let i;if(e!=null)i=e;else if(s.includes(t))i=t;else if(s.length>0)i=s[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:s,openTo:i}},Ba=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},Os=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:s,isDateDisabled:i,adapter:l,timezone:a})=>{const c=Ba(l,l.date(void 0,a),e);n&&l.isBefore(s,c)&&(s=c),t&&l.isAfter(o,c)&&(o=c);let u=e,d=e;for(l.isBefore(e,s)&&(u=s,d=null),l.isAfter(e,o)&&(d&&(d=o),u=null);u||d;){if(u&&l.isAfter(u,o)&&(u=null),d&&l.isBefore(d,s)&&(d=null),u){if(!i(u))return u;u=l.addDays(u,1)}if(d){if(!i(d))return d;d=l.addDays(d,-1)}}return null},m$=(e,t)=>e.isValid(t)?t:null,qa=(e,t,n)=>t==null||!e.isValid(t)?n:t,y$=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Rf=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const s=o[o.length-1];o.push(e.addMonths(s,1))}return o},If=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Es=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},J0=["year","month","day"],xo=e=>J0.includes(e),Z0=(e,{format:t,views:n},o)=>{if(t!=null)return t;const s=e.formats;return Gn(n,["year"])?s.year:Gn(n,["month"])?s.month:Gn(n,["day"])?s.dayOfMonth:Gn(n,["month","year"])?`${s.month} ${s.year}`:Gn(n,["day","month"])?`${s.month} ${s.dayOfMonth}`:s.keyboardDate},g$=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},eS=["hours","minutes","seconds"],b$=["hours","minutes","seconds","meridiem"],ks=e=>eS.includes(e),wo=e=>b$.includes(e),v$=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,$f=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,S$=(e,t,n,o)=>{const s=$f(o.getHours(e),t,n);return o.setHours(e,s)},tS=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),za=(e,t)=>(n,o)=>e?t.isAfter(n,o):tS(n,t)>tS(o,t),nS=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const s=e.formats;return Gn(n,["hours"])?o?`${s.hours12h} ${s.meridiem}`:s.hours24h:Gn(n,["minutes"])?s.minutes:Gn(n,["seconds"])?s.seconds:Gn(n,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:Gn(n,["hours","minutes","seconds"])?o?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:o?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},jn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},x$=e=>Math.max(...e.map(t=>jn[t.type]??1)),_s=(e,t,n)=>{if(t===jn.year)return e.startOfYear(n);if(t===jn.month)return e.startOfMonth(n);if(t===jn.day)return e.startOfDay(n);let o=n;return t<jn.minutes&&(o=e.setMinutes(o,0)),t<jn.seconds&&(o=e.setSeconds(o,0)),t<jn.milliseconds&&(o=e.setMilliseconds(o,0)),o},w$=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:s})=>{let i=s?s():_s(t,n,If(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=_s(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=_s(t,n,e.maxDate));const l=za(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&l(e.minTime,i)&&(i=_s(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ba(t,i,e.minTime))),e.maxTime!=null&&l(i,e.maxTime)&&(i=_s(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ba(t,i,e.maxTime))),i},Df=(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(`
175
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Ua=(e,t)=>{const n=[],o=e.date(void 0,"default"),s=e.startOfWeek(o),i=e.endOfWeek(o);let l=s;for(;e.isBefore(l,i);)n.push(l),l=e.addDays(l,1);return n.map(a=>e.formatByString(a,t))},rS=(e,t,n,o)=>{switch(n){case"month":return Rf(e,e.date(void 0,t)).map(s=>e.formatByString(s,o));case"weekDay":return Ua(e,o);case"meridiem":{const s=e.date(void 0,t);return[e.startOfDay(s),e.endOfDay(s)].map(i=>e.formatByString(i,o))}default:return[]}},oS="s",C$=["0","1","2","3","4","5","6","7","8","9"],P$=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),oS)==="0"?C$:Array.from({length:10}).map((o,s)=>e.formatByString(e.setSeconds(t,s),oS))},Wr=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let s=0;s<e.length;s+=1){o+=e[s];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},Mf=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),sS=(e,t)=>{const n=Wr(e,t);return n!==" "&&!Number.isNaN(Number(n))},Nf=(e,t)=>Number(e).toString().padStart(t,"0"),iS=(e,t,n,o,s)=>{if(process.env.NODE_ENV!=="production"&&s.type!=="day"&&s.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${s.format}" is a digit format with letter in it.'
176
+ This type of format is only supported for 'day' sections`].join(`
177
+ `));if(s.type==="day"&&s.contentType==="digit-with-letter"){const l=e.setDate(n.longestMonth,t);return e.formatByString(l,s.format)}let i=t.toString();return s.hasLeadingZerosInInput&&(i=Nf(i,s.maxLength)),Mf(i,o)},jf=(e,t,n)=>{let o=e.value||e.placeholder;const s=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Wr(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&o.length===1&&(o=`${o}‎`),t==="input-rtl"&&(o=`⁨${o}⁩`),o},aS=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Df(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},T$=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,lS=(e,t,n,o)=>{if(t!=="digit")return!1;const s=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(s,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error("Invalid section type")}},O$=(e,t,n)=>{const o=t.some(c=>c.type==="day"),s=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(s.push(u.format),i.push(jf(u,"non-input",n)))}const l=s.join(" "),a=i.join(" ");return e.parse(a,l)},E$=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),k$=(e,t,n)=>{const s=e.map(i=>{const l=jf(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${l}${i.endSeparator}`}).join("");return n?`⁦${s}⁩`:s},_$=(e,t,n)=>{const o=e.date(void 0,n),s=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:l,longestMonth:a}=Rf(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:T$(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(s)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):l,longestMonth:a}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=Ua(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i);return Wr(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number(Wr(e.formatByString(e.startOfDay(o),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let cS=!1;const uS=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!cS){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(s=>!n.includes(s.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),cS=!0)}},R$=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let s=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(s=Nf(s,t.maxLength));const i=Ua(e,t.format),l=i.indexOf(s),c=i.indexOf(t.value)-l;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const s=e.getHours(n)<12,i=e.getHours(o);return s&&i>=12?e.addHours(o,-12):!s&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},dS={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},fS=(e,t,n,o,s)=>[...n].sort((i,l)=>dS[i.type]-dS[l.type]).reduce((i,l)=>!s||l.modified?R$(e,l,t,i):i,o),I$=()=>navigator.userAgent.toLowerCase().includes("android"),$$=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},s={};let i=0,l=0,a=e.length-1;for(;a>=0;){l=e.findIndex((c,u)=>u>=i&&c.endSeparator?.includes(" ")&&c.endSeparator!==" / "),l===-1&&(l=e.length-1);for(let c=l;c>=i;c-=1)s[c]=a,o[a]=c,a-=1;i=l+1}return e.forEach((c,u)=>{const d=s[u],p=d===0?null:o[d-1],h=d===e.length-1?null:o[d+1];n[u]={leftIndex:p,rightIndex:h}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},Af=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},D$=["value","referenceDate"],en={emptyValue:null,getTodayValue:If,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=qe(e,D$);return o.adapter.isValid(t)?t:n??w$(o)},cleanValue:m$,areValuesEqual:y$,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},M$={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:E$,getV6InputValueFromSections:k$,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>K({},t,{value:""}))};function N$(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const j$=e=>{setTimeout(e,0)},pS=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?pS(t.shadowRoot):t:null},Yt=e=>pS(Lt(e)),Wa=e=>Array.from(e.children).indexOf(Yt(e)),A$="@media (pointer: fine)";function F$(...e){return e.reduce((t,n)=>(Array.isArray(n)?t.push(...n):n!=null&&t.push(n),t),[])}const V$=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:K({},e)}}}}),hS={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",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,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=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",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"},L$=hS;V$(hS);const B$=["localeText"],Ha=O.createContext(null);process.env.NODE_ENV!=="production"&&(Ha.displayName="PickerAdapterContext");const Ya=function(t){const{localeText:n}=t,o=qe(t,B$),{adapter:s,localeText:i}=O.useContext(Ha)??{adapter:void 0,localeText:void 0},l=xt({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:h}=l,m=O.useMemo(()=>K({},h,i,n),[h,i,n]),b=O.useMemo(()=>{if(!c)return s||null;const v=new c({locale:p,formats:u,instance:d});if(!v.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/quickstart/#installation"].join(`
178
+ `));return v},[c,p,u,d,s]),f=O.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),g=O.useMemo(()=>({utils:b,adapter:b,defaultDates:f,localeText:m}),[f,b,m]);return _.jsx(Ha.Provider,{value:g,children:a})};process.env.NODE_ENV!=="production"&&(Ya.displayName="LocalizationProvider"),process.env.NODE_ENV!=="production"&&(Ya.propTypes={adapterLocale:r.any,children:r.node,dateAdapter:r.func,dateFormats:r.shape({dayOfMonth:r.string,dayOfMonthFull:r.string,fullDate:r.string,fullTime12h:r.string,fullTime24h:r.string,hours12h:r.string,hours24h:r.string,keyboardDate:r.string,keyboardDateTime12h:r.string,keyboardDateTime24h:r.string,meridiem:r.string,minutes:r.string,month:r.string,monthShort:r.string,normalDate:r.string,normalDateWithWeekday:r.string,seconds:r.string,shortDate:r.string,weekday:r.string,weekdayShort:r.string,year:r.string}),dateLibInstance:r.any,localeText:r.object});const Ff=()=>{const e=O.useContext(Ha);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(`
179
+ `));if(e.adapter===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(`
180
+ `));const t=O.useMemo(()=>K({},L$,e.localeText),[e.localeText]);return O.useMemo(()=>K({},e,{localeText:t}),[e,t])},ft=()=>Ff().adapter,An=()=>Ff().localeText,Vf=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Lf=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],mS=["minDateTime","maxDateTime"],q$=[...Vf,...Lf,...mS],yS=e=>q$.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),z$=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],gS=(e,t)=>O.useMemo(()=>{const n=K({},e),o={},s=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return z$.forEach(s),t==="date"?Vf.forEach(s):t==="time"?Lf.forEach(s):t==="date-time"&&(Vf.forEach(s),Lf.forEach(s),mS.forEach(s)),{forwardedProps:n,internalProps:o}},[e,t]),U$=({adapter:e,format:t})=>{let n=10,o=t,s=e.expandFormat(t);for(;s!==o;)if(o=s,s=e.expandFormat(o),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 component.");return s},W$=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:s}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${s}]*\\${s})+`,"g");let l=null;for(;l=i.exec(t);)n.push({start:l.index,end:i.lastIndex-1});return n},H$=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},Y$=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:s,now:i,token:l,startSeparator:a})=>{if(l==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=Df(e,l),u=lS(e,c.contentType,c.type,l),d=n?u:c.contentType==="digit",p=e.isValid(t);let h=p?e.formatByString(t,l):"",m=null;if(d)if(u)m=h===""?e.formatByString(i,l).length:h.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${l} should have a 'maxLength' property on it's adapter`);m=c.maxLength,p&&(h=Mf(Nf(Wr(h,s),m),s))}return K({},c,{format:l,maxLength:m,value:h,placeholder:H$(e,o,c,l),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:a,endSeparator:"",modified:!1})},K$=e=>{const{adapter:t,expandedFormat:n,escapedParts:o}=e,s=t.date(void 0),i=[];let l="";const a=Object.keys(t.formatTokenMap).sort((m,b)=>b.length-m.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${a.join("|")})*$`),d=new RegExp(`^(${a.join("|")})`),p=m=>o.find(b=>b.start<=m&&b.end>=m);let h=0;for(;h<n.length;){const m=p(h),b=m!=null,f=c.exec(n.slice(h))?.[1];if(!b&&f!=null&&u.test(f)){let g=f;for(;g.length>0;){const v=d.exec(g)[1];g=g.slice(v.length),i.push(Y$(K({},e,{now:s,token:v,startSeparator:l}))),l=""}h+=f.length}else{const g=n[h];b&&m?.start===h||m?.end===h||(i.length===0?l+=g:(i[i.length-1].endSeparator+=g,i[i.length-1].isEndFormatSeparator=!0)),h+=1}}return i.length===0&&l.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:l,endSeparator:"",modified:!1}),i},G$=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const s=i=>{let l=i;return e&&l!==null&&l.includes(" ")&&(l=`⁩${l}⁦`),t==="spacious"&&["/",".","-"].includes(l)&&(l=` ${l} `),l};return o.startSeparator=s(o.startSeparator),o.endSeparator=s(o.endSeparator),o}),bS=e=>{let t=U$(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=W$(K({},e,{expandedFormat:t})),o=K$(K({},e,{expandedFormat:t,escapedParts:n}));return G$(K({},e,{sections:o}))},Ka=O.createContext(null);process.env.NODE_ENV!=="production"&&(Ka.displayName="PickerContext");const Or=()=>{const e=O.useContext(Ka);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},Bf=()=>O.useContext(Ka),qf=O.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(qf.displayName="IsValidValueContext");function X$(){return O.useContext(qf)}const zf=O.createContext(null);process.env.NODE_ENV!=="production"&&(zf.displayName="PickerFieldPrivateContext");function vS(){return O.useContext(zf)}const Uf=O.createContext(null);process.env.NODE_ENV!=="production"&&(Uf.displayName="PickerActionsContext");const Wf=O.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(Wf.displayName="PickerPrivateContext");function SS(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:s,isValidContextValue:i,localeText:l,children:a}=e;return _.jsx(Ka.Provider,{value:t,children:_.jsx(Uf.Provider,{value:n,children:_.jsx(Wf.Provider,{value:o,children:_.jsx(zf.Provider,{value:s,children:_.jsx(qf.Provider,{value:i,children:_.jsx(Ya,{localeText:l,children:a})})})})})})}const Q$=()=>{const e=O.useContext(Uf);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
181
+ `));return e},Co=e=>e.saveQuery!=null,xS=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:l}})=>{const a=ft(),c=({keyPressed:p,sectionIndex:h},m,b)=>{const f=p.toLowerCase(),g=n.sections[h];if(n.characterQuery!=null&&(!b||b(n.characterQuery.value))&&n.characterQuery.sectionIndex===h){const y=`${n.characterQuery.value}${f}`,S=m(y,g);if(!Co(S))return s({sectionIndex:h,value:y,sectionType:g.type}),S}const v=m(f,g);return Co(v)&&!v.saveQuery?(s(null),null):(s({sectionIndex:h,value:f,sectionType:g.type}),Co(v)?null:v)},u=p=>{const h=(f,g,v)=>{const y=g.filter(S=>S.toLowerCase().startsWith(v));return y.length===0?{saveQuery:!1}:{sectionValue:y[0],shouldGoToNextSection:y.length===1}},m=(f,g,v,y)=>{const S=w=>rS(a,o,g.type,w);if(g.contentType==="letter")return h(g.format,S(g.format),f);if(v&&y!=null&&Df(a,v).contentType==="letter"){const w=S(v),x=h(v,w,f);return Co(x)?{saveQuery:!1}:K({},x,{sectionValue:y(x.sectionValue,w)})}return{saveQuery:!1}};return c(p,(f,g)=>{switch(g.type){case"month":{const v=y=>aS(a,y,a.formats.month,g.format);return m(f,g,a.formats.month,v)}case"weekDay":{const v=(y,S)=>S.indexOf(y).toString();return m(f,g,a.formats.weekday,v)}case"meridiem":return m(f,g);default:return{saveQuery:!1}}})},d=p=>{const h=({queryValue:b,skipIfBelowMinimum:f,section:g})=>{const v=Wr(b,e),y=Number(v),S=t[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>S.maximum)return{saveQuery:!1};if(f&&y<S.minimum)return{saveQuery:!0};const w=y*10>S.maximum||v.length===S.maximum.toString().length;return{sectionValue:iS(a,y,S,e,g),shouldGoToNextSection:w}};return c(p,(b,f)=>{if(f.contentType==="digit"||f.contentType==="digit-with-letter")return h({queryValue:b,skipIfBelowMinimum:!1,section:f});if(f.type==="month"){lS(a,"digit","month","MM");const g=h({queryValue:b,skipIfBelowMinimum:!0,section:{type:f.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Co(g))return g;const v=aS(a,g.sectionValue,"MM",f.format);return K({},g,{sectionValue:v})}if(f.type==="weekDay"){const g=h({queryValue:b,skipIfBelowMinimum:!0,section:f});if(Co(g))return g;const v=Ua(a,f.format)[Number(g.sectionValue)-1];return K({},g,{sectionValue:v})}return{saveQuery:!1}},b=>sS(b,e))};return Ee(p=>{const h=n.sections[p.sectionIndex],b=sS(p.keyPressed,e)?d(K({},p,{keyPressed:Mf(p.keyPressed,e)})):u(p);if(b==null){i(null);return}l({section:h,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})})},Hf=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:s,shouldDisableMonth:i,shouldDisableYear:l,disablePast:a,disableFuture:c,minDate:u,maxDate:d}=e,p=o.date(void 0,n);switch(!0){case!o.isValid(t):return"invalidDate";case!!(s&&s(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(l&&l(t)):return"shouldDisableYear";case!!(c&&o.isAfterDay(t,p)):return"disableFuture";case!!(a&&o.isBeforeDay(t,p)):return"disablePast";case!!(u&&o.isBeforeDay(t,u)):return"minDate";case!!(d&&o.isAfterDay(t,d)):return"maxDate";default:return null}};Hf.valueManager=en;const wS=({adapter:e,value:t,timezone:n,props:o})=>{if(t===null)return null;const{minTime:s,maxTime:i,minutesStep:l,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=o,p=e.date(void 0,n),h=za(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(s&&h(s,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(d&&e.isAfter(t,p)):return"disableFuture";case!!(u&&e.isBefore(t,p)):return"disablePast";case!!(a&&a(t,"hours")):return"shouldDisableTime-hours";case!!(a&&a(t,"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(t,"seconds")):return"shouldDisableTime-seconds";case!!(l&&e.getMinutes(t)%l!==0):return"minutesStep";default:return null}};wS.valueManager=en;const Ga=({adapter:e,value:t,timezone:n,props:o})=>{const s=Hf({adapter:e,value:t,timezone:n,props:o});return s!==null?s:wS({adapter:e,value:t,timezone:n,props:o})};Ga.valueManager=en;function CS(e){const{props:t,validator:n,value:o,timezone:s,onError:i}=e,l=ft(),a=O.useRef(n.valueManager.defaultErrorState),c=n({adapter:l,value:o,timezone:s,props:t}),u=n.valueManager.hasError(c);O.useEffect(()=>{i&&!n.valueManager.isSameError(c,a.current)&&i(c,o),a.current=c},[n,i,c,o]);const d=Ee(p=>n({adapter:l,value:p,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const Hr=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:s,onChange:i,valueManager:l})=>{const a=ft(),[c,u]=pn({name:e,state:"value",controlled:n,default:o??l.emptyValue}),d=O.useMemo(()=>l.getTimezone(a,c),[a,l,c]),p=Ee(f=>d==null?f:l.setTimezone(a,d,f)),h=O.useMemo(()=>t||d||(s?a.getTimezone(Array.isArray(s)?s[0]:s):"default"),[t,d,s,a]),m=O.useMemo(()=>l.setTimezone(a,h,c),[l,a,h,c]),b=Ee((f,...g)=>{const v=p(f);u(v),i?.(v,...g)});return{value:m,handleValueChange:b,timezone:h}},J$=5e3,PS=e=>{const t=ft(),n=An(),o=on(),{manager:{validator:s,valueType:i,internal_valueManager:l,internal_fieldValueManager:a},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:p,onChange:h,format:m,formatDensity:b="dense",selectedSections:f,onSelectedSectionsChange:g,shouldRespectLeadingZeros:v=!1,timezone:y,enableAccessibleFieldDOMStructure:S=!0},forwardedProps:{error:w}}=e,{value:x,handleValueChange:P,timezone:T}=Hr({name:"a field component",timezone:y,value:u,defaultValue:d,referenceDate:p,onChange:h,valueManager:l}),I=O.useRef(x);O.useEffect(()=>{I.current=x},[x]);const{hasValidationError:$}=CS({props:c,validator:s,timezone:T,value:x,onError:c.onError}),M=O.useMemo(()=>P$(t),[t]),k=O.useMemo(()=>_$(t,M,T),[t,M,T]),C=O.useCallback(re=>a.getSectionsFromValue(re,ce=>bS({adapter:t,localeText:n,localizedDigits:M,format:m,date:ce,formatDensity:b,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:S,isRtl:o})),[a,m,n,M,o,v,t,b,S]),[N,D]=O.useState(()=>{const re=C(x);uS(re,i);const ce={sections:re,lastExternalValue:x,lastSectionsDependencies:{format:m,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},be=x$(re),oe=l.getInitialReferenceValue({referenceDate:p,value:x,adapter:t,props:c,granularity:be,timezone:T});return K({},ce,{referenceValue:oe})}),[j,F]=pn({controlled:f,default:null,name:"useField",state:"selectedSections"}),W=re=>{F(re),g?.(re)},Y=O.useMemo(()=>Af(j,N.sections),[j,N.sections]),H=Y==="all"?0:Y,L=O.useMemo(()=>$$(N.sections,o&&!S),[N.sections,o,S]),E=O.useMemo(()=>N.sections.every(re=>re.value===""),[N.sections]),q=O.useMemo(()=>{if(H!=null)return!1;const re=N.sections.filter(ce=>ce.value!=="");return re.length>0&&N.sections.length-re.length>0},[N.sections,H]),z=O.useMemo(()=>w!==void 0?w:$||q,[$,q,w]),R=re=>{const ce={validationError:s({adapter:t,value:re,timezone:T,props:c})};P(re,ce)},A=(re,ce)=>{const be=[...N.sections];return be[re]=K({},be[re],{value:ce,modified:!0}),be},U=O.useRef(null),X=xr(),se=re=>{H!=null&&(U.current={sectionIndex:H,value:re},X.start(0,()=>{U.current=null}))},te=()=>{l.areValuesEqual(t,x,l.emptyValue)?D(re=>K({},re,{sections:re.sections.map(ce=>K({},ce,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(D(re=>K({},re,{characterQuery:null})),R(l.emptyValue))},J=()=>{if(H==null)return;const re=N.sections[H];re.value!==""&&(se(""),a.getDateFromSection(x,re)===null?D(ce=>K({},ce,{sections:A(H,""),tempValueStrAndroid:null,characterQuery:null})):(D(ce=>K({},ce,{characterQuery:null})),R(a.updateDateInValue(x,re,null))))},B=re=>{const ce=(oe,fe)=>{const ve=t.parse(oe,m);if(!t.isValid(ve))return null;const ke=bS({adapter:t,localeText:n,localizedDigits:M,format:m,date:ve,formatDensity:b,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:S,isRtl:o});return fS(t,ve,ke,fe,!1)},be=a.parseValueStr(re,N.referenceValue,ce);R(be)},V=xr(),Q=({section:re,newSectionValue:ce,shouldGoToNextSection:be})=>{X.clear(),V.clear();const oe=a.getDateFromSection(x,re);be&&H<N.sections.length-1&&W(H+1);const fe=A(H,ce),ve=a.getDateSectionsFromValue(fe,re),ke=O$(t,ve,M);if(t.isValid(ke)){const je=fS(t,ke,ve,a.getDateFromSection(N.referenceValue,re),!0);return oe==null&&V.start(0,()=>{I.current===x&&D(Ue=>K({},Ue,{sections:a.clearDateSections(N.sections,re),tempValueStrAndroid:null}))}),R(a.updateDateInValue(x,re,je))}return ve.every(je=>je.value!=="")&&(oe==null||t.isValid(oe))?(se(ce),R(a.updateDateInValue(x,re,ke))):(oe!=null&&(se(ce),R(a.updateDateInValue(x,re,ke))),D(je=>K({},je,{sections:fe,tempValueStrAndroid:null})))},G=re=>D(ce=>K({},ce,{tempValueStrAndroid:re})),ne=Ee(re=>{D(ce=>K({},ce,{characterQuery:re}))});if(x!==N.lastExternalValue){const re=U.current!=null&&!t.isValid(a.getDateFromSection(x,N.sections[U.current.sectionIndex]));let ce;re?ce=A(U.current.sectionIndex,U.current.value):ce=C(x),D(be=>K({},be,{lastExternalValue:x,sections:ce,sectionsDependencies:{format:m,isRtl:o,locale:t.locale},referenceValue:re?be.referenceValue:a.updateReferenceValue(t,x,be.referenceValue),tempValueStrAndroid:null}))}if(o!==N.lastSectionsDependencies.isRtl||m!==N.lastSectionsDependencies.format||t.locale!==N.lastSectionsDependencies.locale){const re=C(x);uS(re,i),D(ce=>K({},ce,{lastSectionsDependencies:{format:m,isRtl:o,locale:t.locale},sections:re,tempValueStrAndroid:null,characterQuery:null}))}N.characterQuery!=null&&!z&&H==null&&ne(null),N.characterQuery!=null&&N.sections[N.characterQuery.sectionIndex]?.type!==N.characterQuery.sectionType&&ne(null),O.useEffect(()=>{U.current!=null&&(U.current=null)});const ae=xr();return O.useEffect(()=>(N.characterQuery!=null&&ae.start(J$,()=>ne(null)),()=>{}),[N.characterQuery,ne,ae]),O.useEffect(()=>{N.tempValueStrAndroid!=null&&H!=null&&J()},[N.sections]),{activeSectionIndex:H,areAllSectionsEmpty:E,error:z,localizedDigits:M,parsedSelectedSections:Y,sectionOrder:L,sectionsValueBoundaries:k,state:N,timezone:T,value:x,clearValue:te,clearActiveSection:J,setCharacterQuery:ne,setSelectedSections:W,setTempAndroidValueStr:G,updateSectionValue:Q,updateValueFromValueStr:B,getSectionsFromValue:C}};function TS(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,s=Bf(),i=vS(),l=at(n.unstableFieldRef,o?null:i?.fieldRef),a=s?.setValue,c=O.useCallback((d,p)=>a?.(d,{validationError:p.validationError,shouldClose:!1}),[a]),u=O.useMemo(()=>i!=null&&s!=null?K({value:s.value,onChange:c,timezone:s.timezone,disabled:s.disabled,readOnly:s.readOnly,autoFocus:s.autoFocus&&!s.open,focused:s.open?!0:void 0,format:s.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:l},n):n,[s,i,n,c,l]);return t(u)}function Yf(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:s}}=e;if(!n.isReady())return;const i=Lt(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(Yt(n.getRoot())))return;const l=new window.Range;let a;o==="all"?a=n.getRoot():s.sections[o].type==="empty"?a=n.getSectionContainer(o):a=n.getSectionContent(o),l.selectNodeContents(a),a.focus(),i.removeAllRanges(),i.addRange(l)}function OS(e){const t=ft(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:o,disabled:s,readOnly:i},stateResponse:{state:l,value:a,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:d,localizedDigits:p,timezone:h,sectionOrder:m,clearValue:b,clearActiveSection:f,setSelectedSections:g,updateSectionValue:v}}=e;return Ee(y=>{if(!s)switch(!0){case((y.ctrlKey||y.metaKey)&&String.fromCharCode(y.keyCode)==="A"&&!y.shiftKey&&!y.altKey):{y.preventDefault(),g("all");break}case y.key==="ArrowRight":{if(y.preventDefault(),u==null)g(m.startIndex);else if(u==="all")g(m.endIndex);else{const S=m.neighbors[u].rightIndex;S!==null&&g(S)}break}case y.key==="ArrowLeft":{if(y.preventDefault(),u==null)g(m.endIndex);else if(u==="all")g(m.startIndex);else{const S=m.neighbors[u].leftIndex;S!==null&&g(S)}break}case y.key==="Delete":{if(y.preventDefault(),i)break;u==null||u==="all"?b():f();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(y.key):{if(y.preventDefault(),i||c==null)break;u==="all"&&g(c);const S=l.sections[c],w=eD(t,h,S,y.key,d,p,n.getDateFromSection(a,S),{minutesStep:o});v({section:S,newSectionValue:w,shouldGoToNextSection:!1});break}}})}function Z$(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function eD(e,t,n,o,s,i,l,a){const c=Z$(o),u=o==="Home",d=o==="End",p=n.value===""||u||d,h=()=>{const b=s[n.type]({currentDate:l,format:n.format,contentType:n.contentType}),f=y=>iS(e,y,b,i,n),g=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let v;if(p){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?v=b.minimum:v=b.maximum}else v=parseInt(Wr(n.value,i),10)+c*g;return v%g!==0&&((c<0||u)&&(v+=g-(g+v)%g),(c>0||d)&&(v-=v%g)),v>b.maximum?f(b.minimum+(v-b.maximum-1)%(b.maximum-b.minimum+1)):v<b.minimum?f(b.maximum-(b.minimum-v-1)%(b.maximum-b.minimum+1)):f(v)},m=()=>{const b=rS(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return c>0||u?b[0]:b[b.length-1];const v=((b.indexOf(n.value)+c)%b.length+b.length)%b.length;return b[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():m()}function tD(e){const{manager:t,focused:n,setFocused:o,domGetters:s,stateResponse:i,applyCharacterEditing:l,internalPropsWithDefaults:a,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:d,clearValue:p,setCharacterQuery:h,setSelectedSections:m,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:f=!1,readOnly:g=!1}}=e,v=OS({manager:t,internalPropsWithDefaults:a,stateResponse:i}),y=xr(),S=Ee(I=>{f||!s.isReady()||(o(!0),c==="all"?y.start(0,()=>{const $=document.getSelection().getRangeAt(0).startOffset;if($===0){m(u.startIndex);return}let M=0,k=0;for(;k<$&&M<d.sections.length;){const C=d.sections[M];M+=1,k+=`${C.startSeparator}${C.value||C.placeholder}${C.endSeparator}`.length}m(M-1)}):n?s.getRoot().contains(I.target)||m(u.startIndex):(o(!0),m(u.startIndex)))}),w=Ee(I=>{if(!s.isReady()||c!=="all")return;const M=I.target.textContent??"";s.getRoot().innerHTML=d.sections.map(k=>`${k.startSeparator}${k.value||k.placeholder}${k.endSeparator}`).join(""),Yf({focused:n,domGetters:s,stateResponse:i}),M.length===0||M.charCodeAt(0)===10?(p(),m("all")):M.length>1?b(M):(c==="all"&&m(0),l({keyPressed:M,sectionIndex:0}))}),x=Ee(I=>{if(g||c!=="all"){I.preventDefault();return}const $=I.clipboardData.getData("text");I.preventDefault(),h(null),b($)}),P=Ee(()=>{if(n||f||!s.isReady())return;const I=Yt(s.getRoot());o(!0),s.getSectionIndexFromDOMElement(I)!=null||m(u.startIndex)}),T=Ee(()=>{setTimeout(()=>{if(!s.isReady())return;const I=Yt(s.getRoot());!s.getRoot().contains(I)&&(o(!1),m(null))})});return{onKeyDown:v,onBlur:T,onFocus:P,onClick:S,onPaste:x,onInput:w,contentEditable:c==="all",tabIndex:a.disabled||c===0?-1:0}}function nD(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:s}}=e,i=Ee(a=>{s(a.target.value)});return{value:O.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function rD(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,o=O.useCallback(s=>i=>{n||i.isDefaultPrevented()||t(s)},[n,t]);return O.useCallback(s=>({"data-sectionindex":s,onClick:o(s)}),[o])}function oD(e){const t=ft(),n=An(),{focused:o,domGetters:s,stateResponse:i,applyCharacterEditing:l,manager:{internal_fieldValueManager:a},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:p,clearActiveSection:h,setCharacterQuery:m,setSelectedSections:b,updateSectionValue:f,updateValueFromValueStr:g},internalPropsWithDefaults:{disabled:v=!1,readOnly:y=!1}}=e,S=c==="all",w=!S&&!v&&!y,x=Ee(k=>{if(!s.isReady())return;const C=d.sections[k];s.getSectionContent(k).innerHTML=C.value||C.placeholder,Yf({focused:o,domGetters:s,stateResponse:i})}),P=Ee(k=>{if(!s.isReady())return;const C=k.target,N=C.textContent??"",D=s.getSectionIndexFromDOMElement(C),j=d.sections[D];if(y){x(D);return}if(N.length===0){if(j.value===""){x(D);return}const F=k.nativeEvent.inputType;if(F==="insertParagraph"||F==="insertLineBreak"){x(D);return}x(D),h();return}l({keyPressed:N,sectionIndex:D}),x(D)}),T=Ee(k=>{k.preventDefault()}),I=Ee(k=>{if(k.preventDefault(),y||v||typeof c!="number")return;const C=d.sections[c],N=k.clipboardData.getData("text"),D=/^[a-zA-Z]+$/.test(N),j=/^[0-9]+$/.test(N),F=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(N);C.contentType==="letter"&&D||C.contentType==="digit"&&j||C.contentType==="digit-with-letter"&&F?(m(null),f({section:C,newSectionValue:N,shouldGoToNextSection:!0})):!D&&!j&&(m(null),g(N))}),$=Ee(k=>{k.preventDefault(),k.dataTransfer.dropEffect="none"}),M=O.useCallback(k=>()=>{v||b(k)},[v,b]);return O.useCallback((k,C)=>{const N=u[k.type]({currentDate:a.getDateFromSection(p,k),contentType:k.contentType,format:k.format});return{onInput:P,onPaste:I,onMouseUp:T,onDragOver:$,onFocus:M(C),"aria-readonly":y,"aria-valuenow":iD(k,t),"aria-valuemin":N.minimum,"aria-valuemax":N.maximum,"aria-valuetext":k.value?sD(k,t):n.empty,"aria-label":n[k.type],"aria-disabled":v,tabIndex:!w||S||C>0?-1:0,contentEditable:!S&&!v&&!y,role:"spinbutton","data-range-position":k.dateName||void 0,spellCheck:w?!1:void 0,autoCapitalize:w?"none":void 0,autoCorrect:w?"off":void 0,children:k.value||k.placeholder,inputMode:k.contentType==="letter"?"text":"numeric"}},[u,S,v,y,w,n,t,P,I,T,$,M,a,p])}function sD(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const o=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(o)?t.format(o,"month"):""}const n=t.parse(e.value,e.format);return n&&t.isValid(n)?t.format(n,"month"):void 0}case"day":if(e.contentType==="digit"){const n=t.setDate(t.startOfYear(t.date()),Number(e.value));return t.isValid(n)?t.format(n,"dayOfMonthFull"):""}return e.value;case"weekDay":return;default:return}}function iD(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}}const aD=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:l,forwardedProps:a}=gS(t,s),c=TS({manager:n,internalProps:l,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:p,onFocus:h,onInput:m,onPaste:b,onKeyDown:f,onClear:g,clearable:v}=a,{disabled:y=!1,readOnly:S=!1,autoFocus:w=!1,focused:x,unstableFieldRef:P}=c,T=O.useRef(null),I=at(u,T),$=O.useMemo(()=>({isReady:()=>T.current!=null,getRoot:()=>T.current.getRoot(),getSectionContainer:ae=>T.current.getSectionContainer(ae),getSectionContent:ae=>T.current.getSectionContent(ae),getSectionIndexFromDOMElement:ae=>T.current.getSectionIndexFromDOMElement(ae)}),[T]),M=PS({manager:n,internalPropsWithDefaults:c,forwardedProps:a}),{areAllSectionsEmpty:k,error:C,parsedSelectedSections:N,sectionOrder:D,state:j,value:F,clearValue:W,setSelectedSections:Y}=M,H=xS({stateResponse:M}),L=i(F),[E,q]=O.useState(!1);function z(ae=0){if(y||!T.current||ES(T)!=null)return;const re=Af(ae,j.sections);q(!0),T.current.getSectionContent(re).focus()}const R=tD({manager:n,internalPropsWithDefaults:c,stateResponse:M,applyCharacterEditing:H,focused:E,setFocused:q,domGetters:$}),A=nD({manager:n,stateResponse:M}),U=rD({stateResponse:M,internalPropsWithDefaults:c}),X=oD({manager:n,stateResponse:M,applyCharacterEditing:H,internalPropsWithDefaults:c,domGetters:$,focused:E}),se=Ee(ae=>{f?.(ae),R.onKeyDown(ae)}),te=Ee(ae=>{d?.(ae),R.onBlur(ae)}),J=Ee(ae=>{h?.(ae),R.onFocus(ae)}),B=Ee(ae=>{ae.isDefaultPrevented()||(p?.(ae),R.onClick(ae))}),V=Ee(ae=>{b?.(ae),R.onPaste(ae)}),Q=Ee(ae=>{m?.(ae),R.onInput(ae)}),G=Ee((ae,...re)=>{ae.preventDefault(),g?.(ae,...re),W(),kS(T)?Y(D.startIndex):z(0)}),ne=O.useMemo(()=>j.sections.map((ae,re)=>{const ce=X(ae,re);return{container:U(re),content:X(ae,re),before:{children:ae.startSeparator},after:{children:ae.endSeparator,"data-range-position":ae.isEndFormatSeparator?ce["data-range-position"]:void 0}}}),[j.sections,U,X]);return O.useEffect(()=>{if(T.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 add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} 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(`
182
+ `));w&&!y&&T.current&&T.current.getSectionContent(D.startIndex).focus()},[]),Mt(()=>{if(!(!E||!T.current)){if(N==="all")T.current.getRoot().focus();else if(typeof N=="number"){const ae=T.current.getSectionContent(N);ae&&ae.focus()}}},[N,E]),Mt(()=>{Yf({focused:E,domGetters:$,stateResponse:M})}),O.useImperativeHandle(P,()=>({getSections:()=>j.sections,getActiveSectionIndex:()=>ES(T),setSelectedSections:ae=>{if(y||!T.current)return;const re=Af(ae,j.sections);q((re==="all"?0:re)!==null),Y(ae)},focusField:z,isFieldFocused:()=>kS(T)})),K({},a,R,{onBlur:te,onClick:B,onFocus:J,onInput:Q,onPaste:V,onKeyDown:se,onClear:G},A,{error:C,clearable:!!(v&&!k&&!S&&!y),focused:x??E,sectionListRef:I,enableAccessibleFieldDOMStructure:!0,elements:ne,areAllSectionsEmpty:k,disabled:y,readOnly:S,autoFocus:w,openPickerAriaLabel:L})};function ES(e){const t=Yt(e.current?.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function kS(e){const t=Yt(e.current?.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const Po=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),lD=(e,t,n)=>{let o=0,s=n?1:0;const i=[];for(let l=0;l<e.length;l+=1){const a=e[l],c=jf(a,n?"input-rtl":"input-ltr",t),u=`${a.startSeparator}${c}${a.endSeparator}`,d=Po(u).length,p=u.length,h=Po(c),m=s+(h===""?0:c.indexOf(h[0]))+a.startSeparator.length,b=m+h.length;i.push(K({},a,{start:o,end:o+d,startInInput:m,endInInput:b})),o+=d,s+=p}return i},cD=e=>{const t=on(),n=xr(),o=xr(),{props:s,manager:i,skipContextFieldRefAssignment:l,manager:{valueType:a,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:p,forwardedProps:h}=gS(s,a),m=TS({manager:i,internalProps:p,skipContextFieldRefAssignment:l}),{onFocus:b,onClick:f,onPaste:g,onBlur:v,onKeyDown:y,onClear:S,clearable:w,inputRef:x,placeholder:P}=h,{readOnly:T=!1,disabled:I=!1,autoFocus:$=!1,focused:M,unstableFieldRef:k}=m,C=O.useRef(null),N=at(x,C),D=PS({manager:i,internalPropsWithDefaults:m,forwardedProps:h}),{activeSectionIndex:j,areAllSectionsEmpty:F,error:W,localizedDigits:Y,parsedSelectedSections:H,sectionOrder:L,state:E,value:q,clearValue:z,clearActiveSection:R,setCharacterQuery:A,setSelectedSections:U,setTempAndroidValueStr:X,updateSectionValue:se,updateValueFromValueStr:te,getSectionsFromValue:J}=D,B=xS({stateResponse:D}),V=d(q),Q=O.useMemo(()=>lD(E.sections,Y,t),[E.sections,Y,t]);function G(){const Ae=C.current.selectionStart??0;let Ne;Ae<=Q[0].startInInput||Ae>=Q[Q.length-1].endInInput?Ne=1:Ne=Q.findIndex(Le=>Le.startInInput-Le.startSeparator.length>Ae);const Te=Ne===-1?Q.length-1:Ne-1;U(Te)}function ne(Ae=0){Yt(C.current)!==C.current&&(C.current?.focus(),U(Ae))}const ae=Ee(Ae=>{b?.(Ae);const Ne=C.current;n.start(0,()=>{!Ne||Ne!==C.current||j==null&&(Ne.value.length&&Number(Ne.selectionEnd)-Number(Ne.selectionStart)===Ne.value.length?U("all"):G())})}),re=Ee((Ae,...Ne)=>{Ae.isDefaultPrevented()||(f?.(Ae,...Ne),G())}),ce=Ee(Ae=>{if(g?.(Ae),Ae.preventDefault(),T||I)return;const Ne=Ae.clipboardData.getData("text");if(typeof H=="number"){const Te=E.sections[H],Le=/^[a-zA-Z]+$/.test(Ne),Ye=/^[0-9]+$/.test(Ne),Ke=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Ne);if(Te.contentType==="letter"&&Le||Te.contentType==="digit"&&Ye||Te.contentType==="digit-with-letter"&&Ke){A(null),se({section:Te,newSectionValue:Ne,shouldGoToNextSection:!0});return}if(Le||Ye)return}A(null),te(Ne)}),be=Ee(Ae=>{v?.(Ae),U(null)}),oe=Ee(Ae=>{if(T)return;const Ne=Ae.target.value;if(Ne===""){z();return}const Te=Ae.nativeEvent.data,Le=Te&&Te.length>1,Ye=Le?Te:Ne,Ke=Po(Ye);if(H==="all"&&U(j),j==null||Le){te(Le?Te:Ke);return}let lt;if(H==="all"&&Ke.length===1)lt=Ke;else{const pt=Po(u.getV6InputValueFromSections(Q,Y,t));let Be=-1,Oe=-1;for(let gt=0;gt<pt.length;gt+=1)Be===-1&&pt[gt]!==Ke[gt]&&(Be=gt),Oe===-1&&pt[pt.length-gt-1]!==Ke[Ke.length-gt-1]&&(Oe=gt);const Fe=Q[j];if(Be<Fe.start||pt.length-Oe-1>Fe.end)return;const _t=Ke.length-pt.length+Fe.end-Po(Fe.endSeparator||"").length;lt=Ke.slice(Fe.start+Po(Fe.startSeparator||"").length,_t)}if(lt.length===0){I$()&&X(Ye),R();return}B({keyPressed:lt,sectionIndex:j})}),fe=Ee((Ae,...Ne)=>{Ae.preventDefault(),S?.(Ae,...Ne),z(),_S(C)?U(L.startIndex):ne(0)}),ve=OS({manager:i,internalPropsWithDefaults:m,stateResponse:D}),ke=Ee(Ae=>{y?.(Ae),ve(Ae)}),je=O.useMemo(()=>P!==void 0?P:u.getV6InputValueFromSections(J(c.emptyValue),Y,t),[P,u,J,c.emptyValue,Y,t]),Ue=O.useMemo(()=>E.tempValueStrAndroid??u.getV6InputValueFromSections(E.sections,Y,t),[E.sections,u,E.tempValueStrAndroid,Y,t]);O.useEffect(()=>{C.current&&C.current===Yt(C.current)&&U("all")},[]),Mt(()=>{function Ae(){if(!C.current)return;if(H==null){C.current.scrollLeft&&(C.current.scrollLeft=0);return}if(C.current!==Yt(C.current))return;const Ne=C.current.scrollTop;if(H==="all")C.current.select();else{const Te=Q[H],Le=Te.type==="empty"?Te.startInInput-Te.startSeparator.length:Te.startInInput,Ye=Te.type==="empty"?Te.endInInput+Te.endSeparator.length:Te.endInInput;(Le!==C.current.selectionStart||Ye!==C.current.selectionEnd)&&C.current===Yt(C.current)&&C.current.setSelectionRange(Le,Ye),o.start(0,()=>{C.current&&C.current===Yt(C.current)&&C.current.selectionStart===C.current.selectionEnd&&(C.current.selectionStart!==Le||C.current.selectionEnd!==Ye)&&Ae()})}C.current.scrollTop=Ne}Ae()});const Ve=O.useMemo(()=>j==null||E.sections[j].contentType==="letter"?"text":"numeric",[j,E.sections]),Qe=!(C.current&&C.current===Yt(C.current))&&F;return O.useImperativeHandle(k,()=>({getSections:()=>E.sections,getActiveSectionIndex:()=>{const Ae=C.current.selectionStart??0,Ne=C.current.selectionEnd??0;if(Ae===0&&Ne===0)return null;const Te=Ae<=Q[0].startInInput?1:Q.findIndex(Le=>Le.startInInput-Le.startSeparator.length>Ae);return Te===-1?Q.length-1:Te-1},setSelectedSections:Ae=>U(Ae),focusField:ne,isFieldFocused:()=>_S(C)})),K({},h,{error:W,"aria-invalid":W,clearable:!!(w&&!F&&!T&&!I),onBlur:be,onClick:re,onFocus:ae,onPaste:ce,onKeyDown:ke,onClear:fe,inputRef:N,enableAccessibleFieldDOMStructure:!1,placeholder:je,inputMode:Ve,autoComplete:"off",value:Qe?"":Ue,onChange:oe,focused:M,disabled:I,readOnly:T,autoFocus:$,openPickerAriaLabel:V})};function _S(e){return e.current===Yt(e.current)}const uD=e=>{const t=vS();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??!0?aD:cD)(e)},RS=()=>Ff().defaultDates,To=e=>{const t=ft(),n=O.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Kf(e){const t=ft(),n=RS();return O.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:qa(t,e.minDate,n.minDate),maxDate:qa(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function dD(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return O.useMemo(()=>({valueType:"date-time",validator:Ga,internal_valueManager:en,internal_fieldValueManager:M$,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:pD,internal_useOpenPickerButtonAriaLabel:fD}),[t])}function fD(e){const t=ft(),n=An();return O.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function pD(e){const t=ft(),n=IS(e),o=O.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return O.useMemo(()=>K({},e,n,{format:e.format??(o?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,o,t])}function IS(e){const t=ft(),n=RS();return O.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:qa(t,e.minDateTime??e.minDate,n.minDate),maxDate:qa(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}const hD=e=>{const t=dD(e);return uD({manager:t,props:e})};function mD(e){return Me("MuiInputAdornment",e)}const $S=De("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var DS;const yD=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${we(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},gD=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:s,size:i,variant:l}=e,a={root:["root",n&&"disablePointerEvents",s&&`position${we(s)}`,l,o&&"hiddenLabel",i&&`size${we(i)}`]};return $e(a,mD,t)},bD=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:yD})(Xe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${$S.positionStart}&:not(.${$S.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),MS=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiInputAdornment"}),{children:s,className:i,component:l="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:u,variant:d,...p}=o,h=un()||{};let m=d;d&&h.variant&&process.env.NODE_ENV!=="production"&&d===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!m&&(m=h.variant);const b={...o,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:u,variant:m},f=gD(b);return _.jsx(Zo.Provider,{value:null,children:_.jsx(bD,{as:l,ownerState:b,className:Ce(f.root,i),ref:n,...p,children:typeof s=="string"&&!c?_.jsx(Nn,{color:"textSecondary",children:s}):_.jsxs(O.Fragment,{children:[u==="start"?DS||(DS=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});process.env.NODE_ENV!=="production"&&(MS.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disablePointerEvents:r.bool,disableTypography:r.bool,position:r.oneOf(["end","start"]).isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});const Er=7,Ft=()=>O.useContext(Wf);function Gf(e){const{ownerState:t}=Ft(),n=on();return O.useMemo(()=>K({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}const vD=Pt(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),SD=Pt(_.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),xD=Pt(_.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),wD=Pt(_.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"}),"Calendar");Pt(_.jsxs(O.Fragment,{children:[_.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"}),_.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const CD=Pt(_.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"}),"DateRange"),PD=Pt(_.jsxs(O.Fragment,{children:[_.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"}),_.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),TD=Pt(_.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"}),"Clear");function OD(e){return Me("MuiPickersTextField",e)}De("MuiPickersTextField",["root","focused","disabled","error","required"]);const ED={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function kD(e){return Me("MuiPickersInputBase",e)}const Oo=De("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function _D(e){return Me("MuiPickersSectionList",e)}const Eo=De("MuiPickersSectionList",["root","section","sectionContent"]),RD=["slots","slotProps","elements","sectionListRef","classes"],NS=ie("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),jS=ie("span",{name:"MuiPickersSectionList",slot:"Section"})({}),AS=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),FS=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),ID=e=>$e({root:["root"],section:["section"],sectionContent:["sectionContent"]},_D,e);function VS(e){const{slots:t,slotProps:n,element:o,classes:s}=e,{ownerState:i}=Ft(),l=t?.section??jS,a=st({elementType:l,externalSlotProps:n?.section,externalForwardedProps:o.container,className:s.section,ownerState:i}),c=t?.sectionContent??FS,u=st({elementType:c,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:i}),d=t?.sectionSeparator??AS,p=st({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:K({},i,{separatorPosition:"before"})}),h=st({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:K({},i,{separatorPosition:"after"})}),m=O.useRef(null),b=at(u.ref,m),f=g=>{const v=g.relatedTarget,y=g.currentTarget.closest(`.${Eo.root}`);if(y&&v instanceof Node&&y.contains(v)){g.stopPropagation();return}};return _.jsxs(l,K({},a,{children:[_.jsx(d,K({},p)),_.jsx(c,K({},u,{ref:b,onBlur:f})),_.jsx(d,K({},h))]}))}process.env.NODE_ENV!=="production"&&(VS.propTypes={classes:r.object.isRequired,element:r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired}).isRequired,slotProps:r.object,slots:r.object});const Xf=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersSectionList"}),{slots:s,slotProps:i,elements:l,sectionListRef:a,classes:c}=o,u=qe(o,RD),d=ID(c),{ownerState:p}=Ft(),h=O.useRef(null),m=at(n,h),b=v=>{if(!h.current)throw new Error(`MUI X: Cannot call sectionListRef.${v} before the mount of the component.`);return h.current};O.useImperativeHandle(a,()=>({getRoot(){return b("getRoot")},getSectionContainer(v){return b("getSectionContainer").querySelector(`.${Eo.section}[data-sectionindex="${v}"]`)},getSectionContent(v){return b("getSectionContent").querySelector(`.${Eo.section}[data-sectionindex="${v}"] .${Eo.sectionContent}`)},getSectionIndexFromDOMElement(v){const y=b("getSectionIndexFromDOMElement");if(v==null||!y.contains(v))return null;let S=null;return v.classList.contains(Eo.section)?S=v:v.classList.contains(Eo.sectionContent)&&(S=v.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const f=s?.root??NS,g=st({elementType:f,externalSlotProps:i?.root,externalForwardedProps:u,additionalProps:{ref:m,suppressContentEditableWarning:!0},className:d.root,ownerState:p});return _.jsx(f,K({},g,{children:g.contentEditable?l.map(({content:v,before:y,after:S})=>`${y.children}${v.children}${S.children}`).join(""):_.jsx(O.Fragment,{children:l.map((v,y)=>_.jsx(VS,{slots:s,slotProps:i,element:v,classes:d},y))})}))});process.env.NODE_ENV!=="production"&&(Xf.displayName="PickersSectionList"),process.env.NODE_ENV!=="production"&&(Xf.propTypes={classes:r.object,contentEditable:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object});const Qf=O.createContext(null);process.env.NODE_ENV!=="production"&&(Qf.displayName="PickerTextFieldOwnerStateContext");const Xa=()=>{const e=O.useContext(Qf);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
183
+ `));return e},$D=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],DD=e=>Math.round(e*1e5)/1e5,Qa=ie("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>K({},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:`${DD(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),Jf=ie(NS,{name:"MuiPickersInputBase",slot:"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:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),MD=ie(jS,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),ND=ie(FS,{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"})),jD=ie(AS,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),AD=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(K({},ED)),FD=ie("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),VD=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:s,hasFieldError:i,inputSize:l,isInputInFullWidth:a,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,p={root:["root",n&&!o&&"focused",o&&"disabled",s&&"readOnly",i&&"error",a&&"fullWidth",`color${we(c)}`,l==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return $e(p,kD,e)};function LS(e,t,n,o){if(e.content.id){const s=t.current?.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(s)return Array.from(s).reduce((i,l)=>i+l.offsetWidth,0)}return 0}function LD(e,t){let n=0;if(t.current?.getAttribute("data-active-range-position")==="end")for(let s=e.length-1;s>=e.length/2;s-=1)n+=LS(e[s],t,s,"end");else for(let s=0;s<e.length/2;s+=1)n+=LS(e[s],t,s,"start");return{activeBarWidth:n,sectionOffsets:[t.current?.querySelector('[data-sectionindex="0"]')?.offsetLeft||0,t.current?.querySelector(`[data-sectionindex="${e.length/2}"]`)?.offsetLeft||0]}}const Rs=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersInputBase"}),{elements:s,areAllSectionsEmpty:i,value:l,onChange:a,id:c,endAdornment:u,startAdornment:d,renderSuffix:p,slots:h,slotProps:m,contentEditable:b,tabIndex:f,onInput:g,onPaste:v,onKeyDown:y,name:S,readOnly:w,inputProps:x,inputRef:P,sectionListRef:T,onFocus:I,onBlur:$,classes:M,ownerState:k}=o,C=qe(o,$D),N=Xa(),D=O.useRef(null),j=O.useRef(null),F=O.useRef([]),W=at(n,D),Y=at(x?.ref,P),H=un();if(!H)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const L=k??N,E=J=>{H.onFocus?.(J),I?.(J)},q=J=>{E(J)},z=J=>{if(y?.(J),J.key==="Enter"&&!J.defaultMuiPrevented){if(D.current?.dataset.multiInput)return;const B=D.current?.closest("form"),V=B?.querySelector('[type="submit"]');if(!B||!V)return;J.preventDefault(),B.requestSubmit(V)}},R=J=>{H.onBlur?.(J),$?.(J)};O.useEffect(()=>{H&&H.setAdornedStart(!!d)},[H,d]),O.useEffect(()=>{H&&(i?H.onEmpty():H.onFilled())},[H,i]);const A=VD(M,L),U=h?.root||Qa,X=st({elementType:U,externalSlotProps:m?.root,externalForwardedProps:C,additionalProps:{"aria-invalid":H.error,ref:W},className:A.root,ownerState:L}),se=h?.input||Jf,te=s.some(J=>J.content["data-range-position"]!==void 0);return O.useEffect(()=>{if(!te||!L.isPickerOpen)return;const{activeBarWidth:J,sectionOffsets:B}=LD(s,D);F.current=[B[0],B[1]],j.current&&(j.current.style.width=`${J}px`)},[s,te,L.isPickerOpen]),_.jsxs(U,K({},X,{children:[d,_.jsx(Xf,{sectionListRef:T,elements:s,contentEditable:b,tabIndex:f,className:A.sectionsContainer,onFocus:E,onBlur:R,onInput:g,onPaste:v,onKeyDown:z,slots:{root:se,section:MD,sectionContent:ND,sectionSeparator:jD},slotProps:{root:K({},m?.input,{ownerState:L}),sectionContent:{className:Oo.sectionContent},sectionSeparator:({separatorPosition:J})=>({className:J==="before"?Oo.sectionBefore:Oo.sectionAfter})}}),u,p?p(K({},H)):null,_.jsx(AD,K({name:S,className:A.input,value:l,onChange:a,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:H.required,disabled:H.disabled,onFocus:q},x,{ref:Y})),te&&_.jsx(FD,{className:A.activeBar,ref:j,ownerState:{sectionOffsets:F.current}})]}))});process.env.NODE_ENV!=="production"&&(Rs.displayName="PickersInputBase"),process.env.NODE_ENV!=="production"&&(Rs.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,component:r.elementType,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputProps:r.object,inputRef:$t,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});function BD(e){return Me("MuiPickersOutlinedInput",e)}const Fn=K({},Oo,De("MuiPickersOutlinedInput",["root","notchedOutline","input"])),qD=["children","className","label","notched","shrink"],zD=ie("fieldset",{name:"MuiPickersOutlinedInput",slot:"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}}),BS=ie("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),UD=ie("legend",{slot:"internal",shouldForwardProp:e=>nn(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!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:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function WD(e){const{className:t,label:n,notched:o}=e,s=qe(e,qD),i=Xa();return _.jsx(zD,K({"aria-hidden":!0,className:t},s,{ownerState:i,children:_.jsx(UD,{ownerState:i,notched:o,children:n?_.jsx(BS,{children:n}):_.jsx(BS,{className:"notranslate",children:"​"})})}))}const HD=["label","autoFocus","ownerState","classes","notched"],YD=ie(Qa,{name:"MuiPickersOutlinedInput",slot:"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 .${Fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Fn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Fn.focused} .${Fn.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Fn.disabled}`]:{[`& .${Fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Fn.error} .${Fn.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:{inputColor:n},style:{[`&.${Fn.focused}:not(.${Fn.error}) .${Fn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),KD=ie(Jf,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),GD=e=>{const n=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},BD,e);return K({},e,n)},Ja=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:l}=o,a=qe(o,HD),c=un(),u=GD(i);return _.jsx(Rs,K({slots:{root:YD,input:KD},renderSuffix:d=>_.jsx(WD,{shrink:!!(l||d.adornedStart||d.focused||d.filled),notched:!!(l||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:s!=null&&s!==""&&c?.required?_.jsxs(O.Fragment,{children:[s," ","*"]}):s})},a,{label:s,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(Ja.displayName="PickersOutlinedInput"),process.env.NODE_ENV!=="production"&&(Ja.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,component:r.elementType,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputProps:r.object,inputRef:$t,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,notched:r.bool,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired}),Ja.muiName="Input";function XD(e){return Me("MuiPickersFilledInput",e)}const Yr=K({},Oo,De("MuiPickersFilledInput",["root","underline","input"])),QD=["label","autoFocus","disableUnderline","hiddenLabel","classes"],JD=ie(Qa,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>nn(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)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Yr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Yr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(l=>(e.vars??e).palette[l].main).map(l=>({props:{inputColor:l,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.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"},[`&.${Yr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yr.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(.${Yr.disabled}, .${Yr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),ZD=ie(Jf,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>nn(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),eM=(e,t)=>{const{inputHasUnderline:n}=t,s=$e({root:["root",n&&"underline"],input:["input"]},XD,e);return K({},e,s)},Za=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:i=!1,hiddenLabel:l=!1,classes:a}=o,c=qe(o,QD),u=Xa(),d=K({},u,{inputHasUnderline:!i}),p=eM(a,d);return _.jsx(Rs,K({slots:{root:JD,input:ZD},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:l}}},c,{label:s,classes:p,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Za.displayName="PickersFilledInput"),process.env.NODE_ENV!=="production"&&(Za.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,component:r.elementType,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,hiddenLabel:r.bool,id:r.string,inputProps:r.object,inputRef:$t,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired}),Za.muiName="Input";function tM(e){return Me("MuiPickersFilledInput",e)}const Is=K({},Oo,De("MuiPickersInput",["root","underline","input"])),nM=["label","autoFocus","disableUnderline","ownerState","classes"],rM=ie(Qa,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>nn(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},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"},[`&.${Is.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Is.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(.${Is.disabled}, .${Is.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Is.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),oM=(e,t)=>{const{inputHasUnderline:n}=t,s=$e({root:["root",!n&&"underline"],input:["input"]},tM,e);return K({},e,s)},el=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:l}=o,a=qe(o,nM),c=Xa(),u=K({},c,{inputHasUnderline:!i}),d=oM(l,u);return _.jsx(Rs,K({slots:{root:rM},slotProps:{root:{disableUnderline:i}}},a,{ownerState:u,label:s,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(el.displayName="PickersInput"),process.env.NODE_ENV!=="production"&&(el.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,component:r.elementType,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputProps:r.object,inputRef:$t,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired}),el.muiName="Input";const sM=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","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","data-active-range-position"],iM={standard:el,filled:Za,outlined:Ja},aM=ie(Vr,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),lM=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:s}=t;return $e({root:["root",n&&!o&&"focused",o&&"disabled",s&&"required"]},OD,e)},tl=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersTextField"}),{onFocus:s,onBlur:i,className:l,classes:a,color:c="primary",disabled:u=!1,error:d=!1,variant:p="outlined",required:h=!1,hiddenLabel:m=!1,InputProps:b,inputProps:f,inputRef:g,sectionListRef:v,elements:y,areAllSectionsEmpty:S,onClick:w,onKeyDown:x,onKeyUp:P,onPaste:T,onInput:I,endAdornment:$,startAdornment:M,tabIndex:k,contentEditable:C,focused:N,value:D,onChange:j,fullWidth:F,id:W,name:Y,helperText:H,FormHelperTextProps:L,label:E,InputLabelProps:q,"data-active-range-position":z}=o,R=qe(o,sM),A=O.useRef(null),U=at(n,A),X=qn(W),se=H&&X?`${X}-helper-text`:void 0,te=E&&X?`${X}-label`:void 0,J=Gf({disabled:o.disabled,required:o.required,readOnly:b?.readOnly}),B=O.useMemo(()=>K({},J,{isFieldValueEmpty:S,isFieldFocused:N??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:F??!1,hasStartAdornment:!!(M??b?.startAdornment),hasEndAdornment:!!($??b?.endAdornment),inputHasLabel:!!E,isLabelShrunk:!!q?.shrink}),[J,S,N,d,o.size,c,F,M,$,b?.startAdornment,b?.endAdornment,E,q?.shrink]),V=lM(a,B),Q=iM[p],G={};return p==="outlined"?(q&&typeof q.shrink<"u"&&(G.notched=q.shrink),G.label=E):p==="filled"&&(G.hiddenLabel=m),_.jsx(Qf.Provider,{value:B,children:_.jsxs(aM,K({className:Ce(V.root,l),ref:U,focused:N,disabled:u,variant:p,error:d,color:c,fullWidth:F,required:h,ownerState:B},R,{children:[E!=null&&E!==""&&_.jsx(ts,K({htmlFor:X,id:te},q,{children:E})),_.jsx(Q,K({elements:y,areAllSectionsEmpty:S,onClick:w,onKeyDown:x,onKeyUp:P,onInput:I,onPaste:T,onFocus:s,onBlur:i,endAdornment:$,startAdornment:M,tabIndex:k,contentEditable:C,value:D,onChange:j,id:X,fullWidth:F,inputProps:f,inputRef:g,sectionListRef:v,label:E,name:Y,role:"group","aria-labelledby":te,"aria-describedby":se,"aria-live":se?"polite":void 0,"data-active-range-position":z},G,b)),H&&_.jsx(uo,K({id:se},L,{children:H}))]}))})});process.env.NODE_ENV!=="production"&&(tl.displayName="PickersTextField"),process.env.NODE_ENV!=="production"&&(tl.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,contentEditable:r.bool.isRequired,disabled:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,error:r.bool.isRequired,focused:r.bool,FormHelperTextProps:r.object,fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,InputLabelProps:r.object,inputProps:r.object,InputProps:r.object,inputRef:$t,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onBlur:r.func.isRequired,onChange:r.func.isRequired,onClick:r.func.isRequired,onFocus:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,readOnly:r.bool,required:r.bool,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),size:r.oneOf(["medium","small"]),startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired,variant:r.oneOf(["filled","outlined","standard"])});const cM=["enableAccessibleFieldDOMStructure"],uM=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],dM=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],fM=["ownerState"],pM=["ownerState"],hM=["ownerState"],mM=["ownerState"],yM=["InputProps","inputProps"],Zf=()=>{},gM=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=qe(e,cM);if(t){const{InputProps:y,readOnly:S,onClear:w,clearable:x,clearButtonPosition:P,openPickerButtonPosition:T,openPickerAriaLabel:I}=n,$=qe(n,uM),M=Er>=6&&$?.slotProps?.input?$s($?.slotProps?.input,y):Zf;return{clearable:x,onClear:w,clearButtonPosition:P,openPickerButtonPosition:T,openPickerAriaLabel:I,textFieldProps:K({},$,Er>=6&&$?.slotProps?.input?{slotProps:K({},$?.slotProps,{input:k=>K({},xn(M,k),{readOnly:S})})}:{InputProps:K({},y??{},{readOnly:S})})}}const{onPaste:o,onKeyDown:s,inputMode:i,readOnly:l,InputProps:a,inputProps:c,inputRef:u,onClear:d,clearable:p,clearButtonPosition:h,openPickerButtonPosition:m,openPickerAriaLabel:b}=n,f=qe(n,dM),g=Er>=6&&f?.slotProps?.input?$s(f?.slotProps?.input,a):Zf,v=Er>=6&&f?.slotProps?.htmlInput?$s(f?.slotProps?.htmlInput,c):Zf;return{clearable:p,onClear:d,clearButtonPosition:h,openPickerButtonPosition:m,openPickerAriaLabel:b,textFieldProps:K({},f,Er>=6&&(f?.slotProps?.input||f?.slotProps?.htmlInput)?{slotProps:K({},f?.slotProps,{input:y=>K({},xn(g,y),{readOnly:l}),htmlInput:y=>K({},xn(v,y),{inputMode:i,onPaste:o,onKeyDown:s,ref:u})})}:{InputProps:K({},a??{},{readOnly:l}),inputProps:K({},c??{},{inputMode:i,onPaste:o,onKeyDown:s,ref:u})})}},nl=O.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(nl.displayName="PickerFieldUIContext");function bM(e){const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=An(),s=Bf(),i=O.useContext(nl),{textFieldProps:l,onClear:a,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:p="end"}=gM(t),h=Gf(l),m=Ee(L=>{L.preventDefault(),s?.setOpen(E=>!E)}),b=s?s.triggerStatus:"hidden",f=c?d:null,g=b!=="hidden"?p:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?hs:tl),y=i.slots.inputAdornment??MS,S=st({elementType:y,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:K({},h,{position:"start"})}),w=qe(S,fM),x=st({elementType:y,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:K({},h,{position:"end"})}),P=qe(x,pM),T=i.slots.openPickerButton??Tr,I=st({elementType:T,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:b==="disabled",onClick:m,"aria-label":u,edge:l.variant!=="standard"?g:!1},ownerState:h}),$=qe(I,hM),M=i.slots.openPickerIcon??n,k=st({elementType:M,externalSlotProps:i.slotProps.openPickerIcon,ownerState:h}),C=i.slots.clearButton??Tr,N=st({elementType:C,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:a,disabled:t.disabled||t.readOnly,edge:l.variant!=="standard"&&f!==g?f:!1},ownerState:h}),D=qe(N,mM),j=i.slots.clearIcon??TD,F=st({elementType:j,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:h});l.ref=at(l.ref,s?.rootRef);const W={},Y=xn((Er>=6&&l?.slotProps?.input)??l.InputProps,h);s&&(W.ref=s.triggerRef),!Y?.startAdornment&&(f==="start"||g==="start")&&(W.startAdornment=_.jsxs(y,K({},w,{children:[g==="start"&&_.jsx(T,K({},$,{children:_.jsx(M,K({},k))})),f==="start"&&_.jsx(C,K({},D,{children:_.jsx(j,K({},F))}))]}))),!Y?.endAdornment&&(f==="end"||g==="end")&&(W.endAdornment=_.jsxs(y,K({},P,{children:[f==="end"&&_.jsx(C,K({},D,{children:_.jsx(j,K({},F))})),g==="end"&&_.jsx(T,K({},$,{children:_.jsx(M,K({},k))}))]}))),!W?.endAdornment&&!W?.startAdornment&&i.slots.inputAdornment&&(W.endAdornment=_.jsx(y,K({},P))),f!=null&&(l.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(l.sx)?l.sx:[l.sx]]);const H=Er>=6&&l?.slotProps?.input?xn($s(Y,W),h):K({},Y,W);return l.inputProps=Er>=6&&l?.slotProps?.htmlInput?xn(l.slotProps.htmlInput,h):l.inputProps,delete l?.slotProps?.input,t.enableAccessibleFieldDOMStructure&&delete l?.slotProps,_.jsx(v,K({},l,{InputProps:H}))}function $s(e,t){return e?t?n=>K({},xn(t,n),xn(e,n)):e:t}function vM(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,s=O.useContext(nl),i=Bf(),l=Gf(n),{InputProps:a,inputProps:c}=n,u=qe(n,yM),d=st({elementType:tl,externalSlotProps:$s(s.slotProps.textField,o?.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:i?.rootSx,label:i?.label,name:i?.name,className:i?.rootClassName,inputRef:s.inputRef},ownerState:l});return d.inputProps=K({},c,d.inputProps),d.InputProps=K({},a,d.InputProps),d}function SM(e){const{slots:t={},slotProps:n={},inputRef:o,children:s}=e,i=O.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return _.jsx(nl.Provider,{value:i,children:s})}const xM=["slots","slotProps"],rl=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiDateTimeField"}),{slots:s,slotProps:i}=o,l=qe(o,xM),a=vM({slotProps:i,ref:n,externalForwardedProps:l}),c=hD(a);return _.jsx(SM,{slots:s,slotProps:i,inputRef:l.inputRef,children:_.jsx(bM,{fieldResponse:c,defaultOpenPickerIcon:wD})})});process.env.NODE_ENV!=="production"&&(rl.displayName="DateTimeField"),process.env.NODE_ENV!=="production"&&(rl.propTypes={ampm:r.bool,autoFocus:r.bool,className:r.string,clearable:r.bool,clearButtonPosition:r.oneOf(["end","start"]),color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,enableAccessibleFieldDOMStructure:r.bool,focused:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),FormHelperTextProps:r.object,fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,InputLabelProps:r.object,inputProps:r.object,InputProps:r.object,inputRef:$t,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxDate:r.object,maxDateTime:r.object,maxTime:r.object,minDate:r.object,minDateTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onBlur:r.func,onChange:r.func,onClear:r.func,onError:r.func,onFocus:r.func,onSelectedSectionsChange:r.func,openPickerButtonPosition:r.oneOf(["end","start"]),readOnly:r.bool,referenceDate:r.object,required:r.bool,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableTime:r.func,shouldDisableYear:r.func,shouldRespectLeadingZeros:r.bool,size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,unstableFieldRef:r.oneOfType([r.func,r.object]),value:r.object,variant:r.oneOf(["filled","outlined","standard"])});function wM(e){return Me("MuiTab",e)}const En=De("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),CM=e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:s,icon:i,label:l,selected:a,disabled:c}=e,u={root:["root",i&&l&&"labelIcon",`textColor${we(n)}`,o&&"fullWidth",s&&"wrapped",a&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return $e(u,wM,t)},PM=ie(Yn,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${we(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${En.iconWrapper}`]:t.iconWrapper},{[`& .${En.icon}`]:t.icon}]}})(Xe(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${En.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${En.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${En.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${En.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${En.selected}`]:{opacity:1},[`&.${En.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${En.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${En.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${En.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${En.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),ep=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiTab"}),{className:s,disabled:i=!1,disableFocusRipple:l=!1,fullWidth:a,icon:c,iconPosition:u="top",indicator:d,label:p,onChange:h,onClick:m,onFocus:b,selected:f,selectionFollowsFocus:g,textColor:v="inherit",value:y,wrapped:S=!1,...w}=o,x={...o,disabled:i,disableFocusRipple:l,selected:f,icon:!!c,iconPosition:u,label:!!p,fullWidth:a,textColor:v,wrapped:S},P=CM(x),T=c&&p&&O.isValidElement(c)?O.cloneElement(c,{className:Ce(P.icon,c.props.className)}):c,I=M=>{!f&&h&&h(M,y),m&&m(M)},$=M=>{g&&!f&&h&&h(M,y),b&&b(M)};return _.jsxs(PM,{focusRipple:!l,className:Ce(P.root,s),ref:n,role:"tab","aria-selected":f,disabled:i,onClick:I,onFocus:$,ownerState:x,tabIndex:f?0:-1,...w,children:[u==="top"||u==="start"?_.jsxs(O.Fragment,{children:[T,p]}):_.jsxs(O.Fragment,{children:[p,T]}),d]})});process.env.NODE_ENV!=="production"&&(ep.propTypes={children:Pv,classes:r.object,className:r.string,disabled:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,icon:r.oneOfType([r.element,r.string]),iconPosition:r.oneOf(["bottom","end","start","top"]),label:r.node,onChange:r.func,onClick:r.func,onFocus:r.func,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any,wrapped:r.bool});function TM(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function OM(e,t,n,o={},s=()=>{}){const{ease:i=TM,duration:l=300}=o;let a=null;const c=t[e];let u=!1;const d=()=>{u=!0},p=h=>{if(u){s(new Error("Animation cancelled"));return}a===null&&(a=h);const m=Math.min(1,(h-a)/l);if(t[e]=i(m)*(n-c)+c,m>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(p)};return c===n?(s(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const EM={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qS(e){const{onChange:t,...n}=e,o=O.useRef(),s=O.useRef(null),i=()=>{o.current=s.current.offsetHeight-s.current.clientHeight};return Mt(()=>{const l=fa(()=>{const c=o.current;i(),c!==o.current&&t(o.current)}),a=Dn(s.current);return a.addEventListener("resize",l),()=>{l.clear(),a.removeEventListener("resize",l)}},[t]),O.useEffect(()=>{i(),t(o.current)},[t]),_.jsx("div",{style:EM,...n,ref:s})}process.env.NODE_ENV!=="production"&&(qS.propTypes={onChange:r.func.isRequired});const kM=Pt(_.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),_M=Pt(_.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function RM(e){return Me("MuiTabScrollButton",e)}const IM=De("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),$M=e=>{const{classes:t,orientation:n,disabled:o}=e;return $e({root:["root",n,o&&"disabled"]},RM,t)},DM=ie(Yn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${IM.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),zS=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:l={},direction:a,orientation:c,disabled:u,...d}=o,p=on(),h={isRtl:p,...o},m=$M(h),b=i.StartScrollButtonIcon??kM,f=i.EndScrollButtonIcon??_M,g=st({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=st({elementType:f,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return _.jsx(DM,{component:"div",className:Ce(m.root,s),ref:n,role:null,ownerState:h,tabIndex:null,...d,style:{...d.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:a==="left"?_.jsx(b,{...g}):_.jsx(f,{...v})})});process.env.NODE_ENV!=="production"&&(zS.propTypes={children:r.node,classes:r.object,className:r.string,direction:r.oneOf(["left","right"]).isRequired,disabled:r.bool,orientation:r.oneOf(["horizontal","vertical"]).isRequired,slotProps:r.shape({endScrollButtonIcon:r.oneOfType([r.func,r.object]),startScrollButtonIcon:r.oneOfType([r.func,r.object])}),slots:r.shape({EndScrollButtonIcon:r.elementType,StartScrollButtonIcon:r.elementType}),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function MM(e){return Me("MuiTabs",e)}const ol=De("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),US=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,WS=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,sl=(e,t,n)=>{let o=!1,s=n(e,t);for(;s;){if(s===e.firstChild){if(o)return;o=!0}const i=s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||i)s=n(e,s);else{s.focus();return}}},NM=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:s,scrollableY:i,centered:l,scrollButtonsHideMobile:a,classes:c}=e;return $e({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",s&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[s&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},MM,c)},jM=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ol.scrollButtons}`]:t.scrollButtons},{[`& .${ol.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Xe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${ol.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),AM=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),FM=ie("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),VM=ie("span",{name:"MuiTabs",slot:"Indicator"})(Xe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),LM=ie(qS)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),HS={};let YS=!1;const KS=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiTabs"}),s=Fr(),i=on(),{"aria-label":l,"aria-labelledby":a,action:c,centered:u=!1,children:d,className:p,component:h="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:f,orientation:g="horizontal",ScrollButtonComponent:v,scrollButtons:y="auto",selectionFollowsFocus:S,slots:w={},slotProps:x={},TabIndicatorProps:P={},TabScrollButtonProps:T={},textColor:I="primary",value:$,variant:M="standard",visibleScrollbar:k=!1,...C}=o,N=M==="scrollable",D=g==="vertical",j=D?"scrollTop":"scrollLeft",F=D?"top":"left",W=D?"bottom":"right",Y=D?"clientHeight":"clientWidth",H=D?"height":"width",L={...o,component:h,allowScrollButtonsMobile:m,indicatorColor:b,orientation:g,vertical:D,scrollButtons:y,textColor:I,variant:M,visibleScrollbar:k,fixed:!N,hideScrollbar:N&&!k,scrollableX:N&&!D,scrollableY:N&&D,centered:u&&!N,scrollButtonsHideMobile:!m},E=NM(L),q=st({elementType:w.StartScrollButtonIcon,externalSlotProps:x.startScrollButtonIcon,ownerState:L}),z=st({elementType:w.EndScrollButtonIcon,externalSlotProps:x.endScrollButtonIcon,ownerState:L});process.env.NODE_ENV!=="production"&&u&&N&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[R,A]=O.useState(!1),[U,X]=O.useState(HS),[se,te]=O.useState(!1),[J,B]=O.useState(!1),[V,Q]=O.useState(!1),[G,ne]=O.useState({overflow:"hidden",scrollbarWidth:0}),ae=new Map,re=O.useRef(null),ce=O.useRef(null),be={slots:w,slotProps:{indicator:P,scrollButtons:T,...x}},oe=()=>{const Se=re.current;let Pe;if(Se){const ee=Se.getBoundingClientRect();Pe={clientWidth:Se.clientWidth,scrollLeft:Se.scrollLeft,scrollTop:Se.scrollTop,scrollWidth:Se.scrollWidth,top:ee.top,bottom:ee.bottom,left:ee.left,right:ee.right}}let pe;if(Se&&$!==!1){const ee=ce.current.children;if(ee.length>0){const ue=ee[ae.get($)];process.env.NODE_ENV!=="production"&&(ue||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${$}".`,ae.keys?`You can provide one of the following values: ${Array.from(ae.keys()).join(", ")}.`:null].join(`
184
+ `))),pe=ue?ue.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&!globalThis.MUI_TEST_ENV&&!YS&&pe&&pe.width===0&&pe.height===0&&Pe.clientWidth!==0&&(Pe=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${$}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
185
+ `)),YS=!0)}}return{tabsMeta:Pe,tabMeta:pe}},fe=Ee(()=>{const{tabsMeta:Se,tabMeta:Pe}=oe();let pe=0,ee;D?(ee="top",Pe&&Se&&(pe=Pe.top-Se.top+Se.scrollTop)):(ee=i?"right":"left",Pe&&Se&&(pe=(i?-1:1)*(Pe[ee]-Se[ee]+Se.scrollLeft)));const ue={[ee]:pe,[H]:Pe?Pe[H]:0};if(typeof U[ee]!="number"||typeof U[H]!="number")X(ue);else{const xe=Math.abs(U[ee]-ue[ee]),Re=Math.abs(U[H]-ue[H]);(xe>=1||Re>=1)&&X(ue)}}),ve=(Se,{animation:Pe=!0}={})=>{Pe?OM(j,re.current,Se,{duration:s.transitions.duration.standard}):re.current[j]=Se},ke=Se=>{let Pe=re.current[j];D?Pe+=Se:Pe+=Se*(i?-1:1),ve(Pe)},je=()=>{const Se=re.current[Y];let Pe=0;const pe=Array.from(ce.current.children);for(let ee=0;ee<pe.length;ee+=1){const ue=pe[ee];if(Pe+ue[Y]>Se){ee===0&&(Pe=Se);break}Pe+=ue[Y]}return Pe},Ue=()=>{ke(-1*je())},Ve=()=>{ke(je())},[Ze,{onChange:Qe,...Ae}]=ot("scrollbar",{className:Ce(E.scrollableX,E.hideScrollbar),elementType:LM,shouldForwardComponentProp:!0,externalForwardedProps:be,ownerState:L}),Ne=O.useCallback(Se=>{Qe?.(Se),ne({overflow:null,scrollbarWidth:Se})},[Qe]),[Te,Le]=ot("scrollButtons",{className:Ce(E.scrollButtons,T.className),elementType:zS,externalForwardedProps:be,ownerState:L,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:q,endScrollButtonIcon:z}}}),Ye=()=>{const Se={};Se.scrollbarSizeListener=N?_.jsx(Ze,{...Ae,onChange:Ne}):null;const pe=N&&(y==="auto"&&(se||J)||y===!0);return Se.scrollButtonStart=pe?_.jsx(Te,{direction:i?"right":"left",onClick:Ue,disabled:!se,...Le}):null,Se.scrollButtonEnd=pe?_.jsx(Te,{direction:i?"left":"right",onClick:Ve,disabled:!J,...Le}):null,Se},Ke=Ee(Se=>{const{tabsMeta:Pe,tabMeta:pe}=oe();if(!(!pe||!Pe)){if(pe[F]<Pe[F]){const ee=Pe[j]+(pe[F]-Pe[F]);ve(ee,{animation:Se})}else if(pe[W]>Pe[W]){const ee=Pe[j]+(pe[W]-Pe[W]);ve(ee,{animation:Se})}}}),lt=Ee(()=>{N&&y!==!1&&Q(!V)});O.useEffect(()=>{const Se=fa(()=>{re.current&&fe()});let Pe;const pe=xe=>{xe.forEach(Re=>{Re.removedNodes.forEach(He=>{Pe?.unobserve(He)}),Re.addedNodes.forEach(He=>{Pe?.observe(He)})}),Se(),lt()},ee=Dn(re.current);ee.addEventListener("resize",Se);let ue;return typeof ResizeObserver<"u"&&(Pe=new ResizeObserver(Se),Array.from(ce.current.children).forEach(xe=>{Pe.observe(xe)})),typeof MutationObserver<"u"&&(ue=new MutationObserver(pe),ue.observe(ce.current,{childList:!0})),()=>{Se.clear(),ee.removeEventListener("resize",Se),ue?.disconnect(),Pe?.disconnect()}},[fe,lt]),O.useEffect(()=>{const Se=Array.from(ce.current.children),Pe=Se.length;if(typeof IntersectionObserver<"u"&&Pe>0&&N&&y!==!1){const pe=Se[0],ee=Se[Pe-1],ue={root:re.current,threshold:.99},xe=Et=>{te(!Et[0].isIntersecting)},Re=new IntersectionObserver(xe,ue);Re.observe(pe);const He=Et=>{B(!Et[0].isIntersecting)},Rt=new IntersectionObserver(He,ue);return Rt.observe(ee),()=>{Re.disconnect(),Rt.disconnect()}}},[N,y,V,d?.length]),O.useEffect(()=>{A(!0)},[]),O.useEffect(()=>{fe()}),O.useEffect(()=>{Ke(HS!==U)},[Ke,U]),O.useImperativeHandle(c,()=>({updateIndicator:fe,updateScrollButtons:lt}),[fe,lt]);const[pt,Be]=ot("indicator",{className:Ce(E.indicator,P.className),elementType:VM,externalForwardedProps:be,ownerState:L,additionalProps:{style:U}}),Oe=_.jsx(pt,{...Be});let Fe=0;const tt=O.Children.map(d,Se=>{if(!O.isValidElement(Se))return null;process.env.NODE_ENV!=="production"&&Ta.isFragment(Se)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
186
+ `));const Pe=Se.props.value===void 0?Fe:Se.props.value;ae.set(Pe,Fe);const pe=Pe===$;return Fe+=1,O.cloneElement(Se,{fullWidth:M==="fullWidth",indicator:pe&&!R&&Oe,selected:pe,selectionFollowsFocus:S,onChange:f,textColor:I,value:Pe,...Fe===1&&$===!1&&!Se.props.tabIndex?{tabIndex:0}:{}})}),_t=Se=>{if(Se.altKey||Se.shiftKey||Se.ctrlKey||Se.metaKey)return;const Pe=ce.current,pe=fo(Lt(Pe));if(pe?.getAttribute("role")!=="tab")return;let ue=g==="horizontal"?"ArrowLeft":"ArrowUp",xe=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&i&&(ue="ArrowRight",xe="ArrowLeft"),Se.key){case ue:Se.preventDefault(),sl(Pe,pe,WS);break;case xe:Se.preventDefault(),sl(Pe,pe,US);break;case"Home":Se.preventDefault(),sl(Pe,null,US);break;case"End":Se.preventDefault(),sl(Pe,null,WS);break}},gt=Ye(),[mn,de]=ot("root",{ref:n,className:Ce(E.root,p),elementType:jM,externalForwardedProps:{...be,...C,component:h},ownerState:L}),[Z,he]=ot("scroller",{ref:re,className:E.scroller,elementType:AM,externalForwardedProps:be,ownerState:L,additionalProps:{style:{overflow:G.overflow,[D?`margin${i?"Left":"Right"}`:"marginBottom"]:k?void 0:-G.scrollbarWidth}}}),[le,Ie]=ot("list",{ref:ce,className:Ce(E.list,E.flexContainer),elementType:FM,externalForwardedProps:be,ownerState:L,getSlotProps:Se=>({...Se,onKeyDown:Pe=>{_t(Pe),Se.onKeyDown?.(Pe)}})});return _.jsxs(mn,{...de,children:[gt.scrollButtonStart,gt.scrollbarSizeListener,_.jsxs(Z,{...he,children:[_.jsx(le,{"aria-label":l,"aria-labelledby":a,"aria-orientation":g==="vertical"?"vertical":null,role:"tablist",...Ie,children:tt}),R&&Oe]}),gt.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(KS.propTypes={action:$t,allowScrollButtonsMobile:r.bool,"aria-label":r.string,"aria-labelledby":r.string,centered:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,indicatorColor:r.oneOfType([r.oneOf(["primary","secondary"]),r.string]),onChange:r.func,orientation:r.oneOf(["horizontal","vertical"]),ScrollButtonComponent:r.elementType,scrollButtons:r.oneOf(["auto",!1,!0]),selectionFollowsFocus:r.bool,slotProps:r.shape({endScrollButtonIcon:r.oneOfType([r.func,r.object]),indicator:r.oneOfType([r.func,r.object]),list:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object]),scrollbar:r.oneOfType([r.func,r.object]),scrollButtons:r.oneOfType([r.func,r.object]),scroller:r.oneOfType([r.func,r.object]),startScrollButtonIcon:r.oneOfType([r.func,r.object])}),slots:r.shape({endScrollButtonIcon:r.elementType,EndScrollButtonIcon:r.elementType,indicator:r.elementType,list:r.elementType,root:r.elementType,scrollbar:r.elementType,scrollButtons:r.elementType,scroller:r.elementType,startScrollButtonIcon:r.elementType,StartScrollButtonIcon:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TabIndicatorProps:r.object,TabScrollButtonProps:r.object,textColor:r.oneOf(["inherit","primary","secondary"]),value:r.any,variant:r.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:r.bool});function BM(e){return Me("MuiDateTimePickerTabs",e)}De("MuiDateTimePickerTabs",["root"]);const qM=e=>xo(e)?"date":"time",zM=e=>e==="date"?"day":"hours",UM=e=>$e({root:["root"]},BM,e),WM=ie(KS,{name:"MuiDateTimePickerTabs",slot:"Root"})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${ol.indicator}`]:{bottom:"auto",top:0}}})),tp=function(t){const n=xt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:o=_.jsx(CD,{}),timeIcon:s=_.jsx(PD,{}),hidden:i=typeof window>"u"||window.innerHeight<667,className:l,classes:a,sx:c}=n,u=An(),{ownerState:d}=Ft(),{view:p,setView:h}=Or(),m=UM(a),b=(f,g)=>{h(zM(g))};return i?null:_.jsxs(WM,{ownerState:d,variant:"fullWidth",value:qM(p),onChange:b,className:Ce(l,m.root),sx:c,children:[_.jsx(ep,{value:"date","aria-label":u.dateTableLabel,icon:_.jsx(O.Fragment,{children:o})}),_.jsx(ep,{value:"time","aria-label":u.timeTableLabel,icon:_.jsx(O.Fragment,{children:s})})]})};process.env.NODE_ENV!=="production"&&(tp.displayName="DateTimePickerTabs"),process.env.NODE_ENV!=="production"&&(tp.propTypes={classes:r.object,className:r.string,dateIcon:r.node,hidden:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeIcon:r.node});function HM(e){return Me("MuiPickersToolbarText",e)}const YM=De("MuiPickersToolbarText",["root"]),KM=["className","classes","selected","value"],GM=e=>$e({root:["root"]},HM,e),XM=ie(Nn,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),np=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersToolbarText"}),{className:s,classes:i,selected:l,value:a}=o,c=qe(o,KM),u=GM(i);return _.jsx(XM,K({ref:n,className:Ce(u.root,s),component:"span",ownerState:o},l&&{"data-selected":!0},c,{children:a}))});process.env.NODE_ENV!=="production"&&(np.displayName="PickersToolbarText");function GS(e){return Me("MuiPickersToolbar",e)}const QM=De("MuiPickersToolbar",["root","title","content"]);function XS(){const{ownerState:e}=Ft(),t=on();return O.useMemo(()=>K({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const JM=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],ZM=e=>$e({root:["root"],title:["title"],content:["content"]},GS,e),eN=ie("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),tN=ie("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>nn(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),QS=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersToolbar"}),{children:s,className:i,classes:l,toolbarTitle:a,hidden:c,titleId:u,landscapeDirection:d}=o,p=qe(o,JM),h=XS(),m=ZM(l);return c?null:_.jsxs(eN,K({ref:n,className:Ce(m.root,i),ownerState:h},p,{children:[_.jsx(Nn,{color:"text.secondary",variant:"overline",id:u,className:m.title,children:a}),_.jsx(tN,{className:m.content,ownerState:h,landscapeDirection:d,children:s})]}))});process.env.NODE_ENV!=="production"&&(QS.displayName="PickersToolbar");function nN(e){return Me("MuiButton",e)}const Kr=De("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"]),JS=O.createContext({});process.env.NODE_ENV!=="production"&&(JS.displayName="ButtonGroupContext");const ZS=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(ZS.displayName="ButtonGroupButtonContext");const rN=e=>{const{color:t,disableElevation:n,fullWidth:o,size:s,variant:i,loading:l,loadingPosition:a,classes:c}=e,u={root:["root",l&&"loading",i,`${i}${we(t)}`,`size${we(s)}`,`${i}Size${we(s)}`,`color${we(t)}`,n&&"disableElevation",o&&"fullWidth",l&&`loadingPosition${we(a)}`],startIcon:["icon","startIcon",`iconSize${we(s)}`],endIcon:["icon","endIcon",`iconSize${we(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=$e(u,nN,c);return{...c,...d}},ex=[{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}}}],oN=ie(Yn,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${we(n.color)}`],t[`size${we(n.size)}`],t[`${n.variant}Size${we(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Xe(({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"},[`&.${Kr.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]},[`&.${Kr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Kr.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)",[`&.${Kr.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(zt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].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"},[`&.${Kr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Kr.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}),[`&.${Kr.loading}`]:{color:"transparent"}}}]}})),sN=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${we(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}},...ex]})),iN=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${we(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}},...ex]})),aN=ie("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}}]})),tx=ie("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Xn=O.forwardRef(function(t,n){const o=O.useContext(JS),s=O.useContext(ZS),i=Ho(o,t),l=Je({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:f,fullWidth:g=!1,id:v,loading:y=null,loadingIndicator:S,loadingPosition:w="center",size:x="medium",startIcon:P,type:T,variant:I="text",...$}=l,M=qn(v),k=S??_.jsx(Cf,{"aria-labelledby":M,color:"inherit",size:16}),C={...l,color:c,component:u,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:g,loading:y,loadingIndicator:k,loadingPosition:w,size:x,type:T,variant:I},N=rN(C),D=(P||y&&w==="start")&&_.jsx(sN,{className:N.startIcon,ownerState:C,children:P||_.jsx(tx,{className:N.loadingIconPlaceholder,ownerState:C})}),j=(b||y&&w==="end")&&_.jsx(iN,{className:N.endIcon,ownerState:C,children:b||_.jsx(tx,{className:N.loadingIconPlaceholder,ownerState:C})}),F=s||"",W=typeof y=="boolean"?_.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:y&&_.jsx(aN,{className:N.loadingIndicator,ownerState:C,children:k})}):null;return _.jsxs(oN,{ownerState:C,className:Ce(o.className,N.root,d,F),component:u,disabled:p||y,focusRipple:!m,focusVisibleClassName:Ce(N.focusVisible,f),ref:n,type:T,id:y?M:v,...$,classes:N,children:[D,w!=="end"&&W,a,w==="end"&&W,j]})});process.env.NODE_ENV!=="production"&&(Xn.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","success","error","info","warning"]),r.string]),component:r.elementType,disabled:r.bool,disableElevation:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,endIcon:r.node,focusVisibleClassName:r.string,fullWidth:r.bool,href:r.string,id:r.string,loading:r.bool,loadingIndicator:r.node,loadingPosition:r.oneOf(["center","end","start"]),size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),startIcon:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string]),variant:r.oneOfType([r.oneOf(["contained","outlined","text"]),r.string])});const lN=["align","className","classes","selected","typographyClassName","value","variant","width"],cN=e=>$e({root:["root"]},GS,e),uN=ie(Xn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),cr=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:i,classes:l,selected:a,typographyClassName:c,value:u,variant:d,width:p}=o,h=qe(o,lN),m=cN(l);return _.jsx(uN,K({variant:"text",ref:n,className:Ce(m.root,i),ownerState:o},p?{sx:{width:p}}:{},h,{children:_.jsx(np,{align:s,className:c,variant:d,value:u,selected:a})}))});process.env.NODE_ENV!=="production"&&(cr.displayName="PickersToolbarButton");function dN(e){return Me("MuiDateTimePickerToolbar",e)}const rp=De("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]);function fN(e,{disableFuture:t,maxDate:n,timezone:o}){const s=ft();return O.useMemo(()=>{const i=s.date(void 0,o),l=s.startOfMonth(t&&s.isBefore(i,n)?i:n);return!s.isAfter(l,e)},[t,n,e,s,o])}function pN(e,{disablePast:t,minDate:n,timezone:o}){const s=ft();return O.useMemo(()=>{const i=s.date(void 0,o),l=s.startOfMonth(t&&s.isAfter(i,n)?i:n);return!s.isBefore(l,e)},[t,n,e,s,o])}function nx(e,t,n,o){const s=ft(),i=O.useMemo(()=>s.isValid(e)?e:null,[s,e]),l=v$(i,s),a=O.useCallback(c=>{const u=i==null?null:S$(i,c,!!t,s);n(u,o??"partial")},[t,i,n,o,s]);return{meridiemMode:l,handleMeridiemChange:a}}const Ds=36,il=2,ko=320,hN=280,_o=336,rx=232,Ms=48,mN=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],yN=(e,t)=>{const{pickerOrientation:n,toolbarDirection:o}=t;return $e({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",o==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",o==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},dN,e)},gN=ie(QS,{name:"MuiDateTimePickerToolbar",slot:"Root",shouldForwardProp:e=>nn(e)&&e!=="toolbarVariant"})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${QM.content} .${YM.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",pickerOrientation:"landscape"},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{paddingLeft:24,paddingRight:0}}]})),bN=ie("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),vN=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",shouldForwardProp:e=>nn(e)&&e!=="toolbarVariant"})({display:"flex",flexDirection:"row",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({pickerOrientation:e,toolbarVariant:t})=>e==="landscape"&&t!=="desktop",style:{flexDirection:"column"}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:n})=>e==="landscape"&&t!=="desktop"&&n==="rtl",style:{flexDirection:"column-reverse"}}]}),SN=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",shouldForwardProp:e=>nn(e)&&e!=="toolbarVariant"})({display:"flex",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),ox=ie(np,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>nn(e)&&e!=="toolbarVariant"})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),xN=ie("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${rp.ampmLabel}`]:t.ampmLabel},{[`&.${rp.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${rp.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),sx=O.createContext(null);process.env.NODE_ENV!=="production"&&(sx.displayName="DateTimePickerToolbarOverrideContext");function ix(e){const t=xt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:o,toolbarFormat:s,toolbarPlaceholder:i="––",toolbarTitle:l,className:a,classes:c}=t,u=qe(t,mN),{value:d,setValue:p,disabled:h,readOnly:m,variant:b,orientation:f,view:g,setView:v,views:y}=Or(),S=An(),w=XS(),x=yN(c,w),P=ft(),T=O.useContext(sx),I=T?T.value:d,$=T?T.setValue:p,M=T?T.view:g,k=T?T.setView:v,{meridiemMode:C,handleMeridiemChange:N}=nx(I,n,L=>$(L,{changeImportance:"set",source:"view"})),D=T?.forceDesktopVariant?"desktop":b,j=D==="desktop",F=!!(n&&!o),W=l??S.dateTimePickerToolbarTitle,Y=O.useMemo(()=>P.isValid(I)?s?P.formatByString(I,s):P.format(I,"shortDate"):i,[I,s,i,P]),H=(L,E)=>P.isValid(I)?P.format(I,L):E;return _.jsxs(gN,K({className:Ce(x.root,a),toolbarTitle:W,toolbarVariant:D},u,{ownerState:w,children:[_.jsxs(bN,{className:x.dateContainer,ownerState:w,children:[y.includes("year")&&_.jsx(cr,{tabIndex:-1,variant:"subtitle1",onClick:()=>k("year"),selected:M==="year",value:H("year","–")}),y.includes("day")&&_.jsx(cr,{tabIndex:-1,variant:j?"h5":"h4",onClick:()=>k("day"),selected:M==="day",value:Y})]}),_.jsxs(vN,{className:x.timeContainer,ownerState:w,toolbarVariant:D,children:[_.jsxs(SN,{className:x.timeDigitsContainer,ownerState:w,toolbarVariant:D,children:[y.includes("hours")&&_.jsxs(O.Fragment,{children:[_.jsx(cr,{variant:j?"h5":"h3",width:j&&f==="portrait"?Ms:void 0,onClick:()=>k("hours"),selected:M==="hours",value:H(n?"hours12h":"hours24h","--")}),_.jsx(ox,{variant:j?"h5":"h3",value:":",className:x.separator,ownerState:w,toolbarVariant:D}),_.jsx(cr,{variant:j?"h5":"h3",width:j&&f==="portrait"?Ms:void 0,onClick:()=>k("minutes"),selected:M==="minutes"||!y.includes("minutes")&&M==="hours",value:H("minutes","--"),disabled:!y.includes("minutes")})]}),y.includes("seconds")&&_.jsxs(O.Fragment,{children:[_.jsx(ox,{variant:j?"h5":"h3",value:":",className:x.separator,ownerState:w,toolbarVariant:D}),_.jsx(cr,{variant:j?"h5":"h3",width:j&&f==="portrait"?Ms:void 0,onClick:()=>k("seconds"),selected:M==="seconds",value:H("seconds","--")})]})]}),F&&!j&&_.jsxs(xN,{className:x.ampmSelection,ownerState:w,children:[_.jsx(cr,{variant:"subtitle2",selected:C==="am",typographyClassName:x.ampmLabel,value:Es(P,"am"),onClick:m?void 0:()=>N("am"),disabled:h}),_.jsx(cr,{variant:"subtitle2",selected:C==="pm",typographyClassName:x.ampmLabel,value:Es(P,"pm"),onClick:m?void 0:()=>N("pm"),disabled:h})]}),n&&j&&_.jsx(cr,{variant:"h5",onClick:()=>k("meridiem"),selected:M==="meridiem",value:I&&C?Es(P,C):"--",width:Ms})]})]}))}process.env.NODE_ENV!=="production"&&(ix.propTypes={ampm:r.bool,ampmInClock:r.bool,classes:r.object,className:r.string,hidden:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleId:r.string,toolbarFormat:r.string,toolbarPlaceholder:r.node,toolbarTitle:r.node});const wN=["views","format"],ax=(e,t,n)=>{let{views:o,format:s}=t,i=qe(t,wN);if(s)return s;const l=[],a=[];if(o.forEach(d=>{ks(d)?a.push(d):xo(d)&&l.push(d)}),a.length===0)return Z0(e,K({views:l},i));if(l.length===0)return nS(e,K({views:a},i));const c=nS(e,K({views:a},i));return`${Z0(e,K({views:l},i))} ${c}`},CN=(e,t,n)=>n?t.filter(o=>!wo(o)||o==="hours"):e?[...t,"meridiem"]:t,PN=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function TN({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const s=e??24,i=K({hours:1,minutes:5,seconds:5},n),l=PN(i,s);return{thresholdToRenderTimeInASingleColumn:s,timeSteps:i,shouldRenderTimeInASingleColumn:l,views:CN(t,o,l)}}function lx(e,t){const n=ft(),o=xt({props:e,name:t}),s=IS(o),i=o.ampm??n.is12HourCycleInCurrentLocale(),l=O.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:K({},o.localeText,{dateTimePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]),{openTo:a,views:c}=h$({views:o.views,openTo:o.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:p,timeSteps:h}=TN({thresholdToRenderTimeInASingleColumn:o.thresholdToRenderTimeInASingleColumn,ampm:i,timeSteps:o.timeSteps,views:c}),m=i?[...c,"meridiem"]:c;return K({},o,s,{timeSteps:h,openTo:a,shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:p,viewsForFormatting:m,ampm:i,localeText:l,orientation:o.orientation??"portrait",slots:K({toolbar:ix,tabs:tp},o.slots),slotProps:K({},o.slotProps,{toolbar:K({ampm:i},o.slotProps?.toolbar)})})}const cx=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:s,disableFuture:i,disablePast:l,timezone:a})=>{const c=ft();return O.useCallback(u=>Hf({adapter:c,value:u,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:s,disableFuture:i,disablePast:l}})!==null,[c,e,t,n,o,s,i,l,a])},ON=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return K({},n,{slideDirection:o.direction,currentMonth:o.month,isMonthSwitchingAnimating:!t.isSameMonth(o.month,n.currentMonth)&&!e&&!o.skipAnimation,focusedDay:o.focusedDay});case"changeMonthTimezone":{const s=o.newTimezone;if(t.getTimezone(n.currentMonth)===s)return n;let i=t.setTimezone(n.currentMonth,s);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),K({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return K({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},EN=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:s,maxDate:i,minDate:l,onMonthChange:a,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p,getCurrentMonthFromVisibleDate:h}=e,m=ft(),b=O.useRef(ON(!!u,m)).current,f=O.useMemo(()=>en.getInitialReferenceValue({value:t,adapter:m,timezone:p,props:e,referenceDate:n,granularity:jn.day}),[n,p]),[g,v]=O.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:f,currentMonth:m.setDate(f,1),slideDirection:"left"}),y=cx({shouldDisableDate:d,minDate:l,maxDate:i,disableFuture:o,disablePast:s,timezone:p});O.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:m.getTimezone(f)})},[f,m]);const S=Ee(({target:x,reason:P})=>{if(P==="cell-interaction"&&g.focusedDay!=null&&m.isSameDay(x,g.focusedDay))return;const T=P==="cell-interaction";let I,$;if(P==="cell-interaction")I=h(x,g.currentMonth),$=x;else if(I=m.isSameMonth(x,g.currentMonth)?g.currentMonth:m.startOfMonth(x),$=x,y($)){const C=m.startOfMonth(x),N=m.endOfMonth(x);$=Os({adapter:m,date:$,minDate:m.isBefore(l,C)?C:l,maxDate:m.isAfter(i,N)?N:i,disablePast:s,disableFuture:o,isDateDisabled:y,timezone:p})}const M=!m.isSameMonth(g.currentMonth,I),k=!m.isSameYear(g.currentMonth,I);M&&a?.(I),k&&c?.(m.startOfYear(I)),v({type:"setVisibleDate",month:I,direction:m.isAfterDay(I,g.currentMonth)?"left":"right",focusedDay:g.focusedDay!=null&&$!=null&&m.isSameDay($,g.focusedDay)?g.focusedDay:$,skipAnimation:T})}),w=O.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:f,calendarState:g,setVisibleDate:S,isDateDisabled:y,onMonthSwitchingAnimationEnd:w}},kN=e=>Me("MuiPickersFadeTransitionGroup",e);De("MuiPickersFadeTransitionGroup",["root"]);const _N=["children"],RN=e=>$e({root:["root"]},kN,e),IN=ie(is,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function ux(e){const t=xt({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:s,classes:i}=t,{children:l}=t,a=qe(t,_N),c=RN(i),u=Fr();return o?l:_.jsx(IN,{className:Ce(c.root,n),ownerState:a,children:_.jsx(wr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:l},s)})}function $N(e){return Me("MuiPickersDay",e)}const Gr=De("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function dx(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:s,day:i,disableMargin:l,disableHighlightToday:a,showDaysOutsideCurrentMonth:c}=e,u=ft(),{ownerState:d}=Ft();return O.useMemo(()=>K({},d,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:o??!1,isDayOutsideMonth:s??!1,isDayStartOfWeek:u.isSameDay(i,u.startOfWeek(i)),isDayEndOfWeek:u.isSameDay(i,u.endOfWeek(i)),disableMargin:l??!1,disableHighlightToday:a??!1,showDaysOutsideCurrentMonth:c??!1}),[u,d,i,n,t,o,s,l,a,c])}const DN=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],MN=(e,t)=>{const{isDaySelected:n,isDayDisabled:o,isDayCurrent:s,isDayOutsideMonth:i,disableMargin:l,disableHighlightToday:a,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return $e({root:["root",n&&!u&&"selected",o&&"disabled",!l&&"dayWithMargin",!a&&s&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},$N,e)},fx=({theme:e})=>K({},e.typography.caption,{width:Ds,height:Ds,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})`:rn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:rn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Gr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Gr.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}},[`&.${Gr.disabled}:not(.${Gr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Gr.disabled}&.${Gr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${il}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${Gr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),px=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},NN=ie(Yn,{name:"MuiPickersDay",slot:"Root",overridesResolver:px})(fx),jN=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:px})(({theme:e})=>K({},fx({theme:e}),{opacity:0,pointerEvents:"none"})),Ns=()=>{},op=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersDay"}),{autoFocus:s=!1,className:i,classes:l,isAnimating:a,onClick:c,onDaySelect:u,onFocus:d=Ns,onBlur:p=Ns,onKeyDown:h=Ns,onMouseDown:m=Ns,onMouseEnter:b=Ns,children:f,day:g,selected:v,disabled:y,today:S,outsideCurrentMonth:w,disableMargin:x,disableHighlightToday:P,showDaysOutsideCurrentMonth:T}=o,I=qe(o,DN),$=dx({day:g,selected:v,disabled:y,today:S,outsideCurrentMonth:w,disableMargin:x,disableHighlightToday:P,showDaysOutsideCurrentMonth:T}),M=MN(l,$),k=ft(),C=O.useRef(null),N=at(C,n);Mt(()=>{s&&!y&&!a&&!w&&C.current.focus()},[s,y,a,w]);const D=F=>{m(F),w&&F.preventDefault()},j=F=>{F.defaultMuiPrevented=!0,y||u(g),w&&F.currentTarget.focus(),c&&c(F)};return w&&!T?_.jsx(jN,{className:Ce(M.root,M.hiddenDaySpacingFiller,i),ownerState:$,role:I.role}):_.jsx(NN,K({className:Ce(M.root,i),ref:N,centerRipple:!0,disabled:y,tabIndex:v?0:-1,onKeyDown:F=>h(F,g),onFocus:F=>d(F,g),onBlur:F=>p(F,g),onMouseEnter:F=>b(F,g),onClick:j,onMouseDown:D},I,{ownerState:$,children:f??k.format(g,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(op.displayName="PickersDayRaw"),process.env.NODE_ENV!=="production"&&(op.propTypes={action:r.oneOfType([r.func,r.shape({current:r.shape({focusVisible:r.func.isRequired})})]),centerRipple:r.bool,classes:r.object,className:r.string,component:r.elementType,day:r.object.isRequired,disabled:r.bool,disableHighlightToday:r.bool,disableMargin:r.bool,disableRipple:r.bool,disableTouchRipple:r.bool,focusRipple:r.bool,focusVisibleClassName:r.string,isAnimating:r.bool,isFirstVisibleCell:r.bool.isRequired,isLastVisibleCell:r.bool.isRequired,onBlur:r.func,onDaySelect:r.func.isRequired,onFocus:r.func,onFocusVisible:r.func,onKeyDown:r.func,onMouseEnter:r.func,outsideCurrentMonth:r.bool.isRequired,selected:r.bool,showDaysOutsideCurrentMonth:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,today:r.bool,TouchRippleProps:r.object,touchRippleRef:r.oneOfType([r.func,r.shape({current:r.shape({pulsate:r.func.isRequired,start:r.func.isRequired,stop:r.func.isRequired})})])});const hx=O.memo(op);process.env.NODE_ENV!=="production"&&(hx.displayName="PickersDay");const AN=e=>Me("MuiPickersSlideTransition",e),kn=De("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),FN=["children","className","reduceAnimations","slideDirection","transKey","classes"],VN=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return $e(o,AN,e)},LN=ie(is,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${kn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${kn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${kn.slideEnterActive}`]:t.slideEnterActive},{[`.${kn.slideExit}`]:t.slideExit},{[`.${kn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${kn["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},[`& .${kn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${kn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${kn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${kn.slideExit}`]:{transform:"translate(0%)"},[`& .${kn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${kn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function BN(e){const t=xt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:s,slideDirection:i,transKey:l,classes:a}=t,c=qe(t,FN),{ownerState:u}=Ft(),d=K({},u,{slideDirection:i}),p=VN(a,d),h=Fr();if(s)return _.jsx("div",{className:Ce(p.root,o),children:n});const m={exit:p.exit,enterActive:p.enterActive,enter:p.enter,exitActive:p.exitActive};return _.jsx(LN,{className:Ce(p.root,o),childFactory:b=>O.cloneElement(b,{classNames:m}),role:"presentation",ownerState:d,children:_.jsx(tf,K({mountOnEnter:!0,unmountOnExit:!0,timeout:h.transitions.duration.complex,classNames:m},c,{children:n}),l)})}const qN=e=>Me("MuiDayCalendar",e);De("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const zN=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],UN=["ownerState"],WN=e=>$e({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},qN,e),mx=(Ds+il*2)*6,HN=ie("div",{name:"MuiDayCalendar",slot:"Root"})({}),YN=ie("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),KN=ie(Nn,{name:"MuiDayCalendar",slot:"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})),GN=ie(Nn,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),XN=ie(Nn,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>K({},e.typography.caption,{width:Ds,height:Ds,padding:0,margin:`0 ${il}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),QN=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:mx}),JN=ie(BN,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:mx}),ZN=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),ej=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${il}px 0`,display:"flex",justifyContent:"center"});function tj(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:s,isDateDisabled:i,currentMonthNumber:l,isViewFocused:a}=e,c=qe(e,zN);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:h,slots:m,slotProps:b,timezone:f}=t,g=ft(),v=To(f),y=o!=null&&g.isSameDay(n,o),S=a&&y,w=s.some(D=>g.isSameDay(D,n)),x=g.isSameDay(n,v),P=O.useMemo(()=>u||i(n),[u,i,n]),T=O.useMemo(()=>g.getMonth(n)!==l,[g,n,l]),I=dx({day:n,selected:w,disabled:P,today:x,outsideCurrentMonth:T,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:h}),$=m?.day??hx,M=st({elementType:$,externalSlotProps:b?.day,additionalProps:K({disableHighlightToday:d,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:p,"data-timestamp":g.toJsDate(n).valueOf()},c),ownerState:K({},I,{day:n,isDayDisabled:P,isDaySelected:w})}),k=qe(M,UN),C=O.useMemo(()=>{const D=g.startOfMonth(g.setMonth(n,l));return h?g.isSameDay(n,g.startOfWeek(D)):g.isSameDay(n,D)},[l,n,h,g]),N=O.useMemo(()=>{const D=g.endOfMonth(g.setMonth(n,l));return h?g.isSameDay(n,g.endOfWeek(D)):g.isSameDay(n,D)},[l,n,h,g]);return _.jsx($,K({},k,{day:n,disabled:P,autoFocus:!T&&S,today:x,outsideCurrentMonth:T,isFirstVisibleCell:C,isLastVisibleCell:N,selected:w,tabIndex:y?0:-1,"aria-selected":w,"aria-current":x?"date":void 0}))}function nj(e){const t=xt({props:e,name:"MuiDayCalendar"}),n=ft(),{onFocusedDayChange:o,className:s,classes:i,currentMonth:l,selectedDays:a,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:p,readOnly:h,reduceAnimations:m,renderLoading:b=()=>_.jsx("span",{children:"..."}),slideDirection:f,TransitionProps:g,disablePast:v,disableFuture:y,minDate:S,maxDate:w,shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:T,dayOfWeekFormatter:I=B=>n.format(B,"weekdayShort").charAt(0).toUpperCase(),hasFocus:$,onFocusedViewChange:M,gridLabelId:k,displayWeekNumber:C,fixedWeekNumber:N,timezone:D}=t,j=To(D),F=WN(i),W=on(),Y=cx({shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:T,minDate:S,maxDate:w,disablePast:v,disableFuture:y,timezone:D}),H=An(),L=Ee(B=>{h||d(B)}),E=B=>{Y(B)||(o(B),M?.(!0))},q=Ee((B,V)=>{switch(B.key){case"ArrowUp":E(n.addDays(V,-7)),B.preventDefault();break;case"ArrowDown":E(n.addDays(V,7)),B.preventDefault();break;case"ArrowLeft":{const Q=n.addDays(V,W?1:-1),G=n.addMonths(V,W?1:-1),ne=Os({adapter:n,date:Q,minDate:W?Q:n.startOfMonth(G),maxDate:W?n.endOfMonth(G):Q,isDateDisabled:Y,timezone:D});E(ne||Q),B.preventDefault();break}case"ArrowRight":{const Q=n.addDays(V,W?-1:1),G=n.addMonths(V,W?-1:1),ne=Os({adapter:n,date:Q,minDate:W?n.startOfMonth(G):Q,maxDate:W?Q:n.endOfMonth(G),isDateDisabled:Y,timezone:D});E(ne||Q),B.preventDefault();break}case"Home":E(n.startOfWeek(V)),B.preventDefault();break;case"End":E(n.endOfWeek(V)),B.preventDefault();break;case"PageUp":E(n.addMonths(V,1)),B.preventDefault();break;case"PageDown":E(n.addMonths(V,-1)),B.preventDefault();break;case"Enter":case" ":L(V),B.preventDefault();break}}),z=Ee((B,V)=>E(V)),R=Ee((B,V)=>{c!=null&&n.isSameDay(c,V)&&M?.(!1)}),A=n.getMonth(l),U=n.getYear(l),X=O.useMemo(()=>a.filter(B=>!!B).map(B=>n.startOfDay(B)),[n,a]),se=`${U}-${A}`,te=O.useMemo(()=>O.createRef(),[se]),J=O.useMemo(()=>{const B=n.getWeekArray(l);let V=n.addMonths(l,1);for(;N&&B.length<N;){const Q=n.getWeekArray(V),G=n.isSameDay(B[B.length-1][0],Q[0][0]);Q.slice(G?1:0).forEach(ne=>{B.length<N&&B.push(ne)}),V=n.addMonths(V,1)}return B},[l,N,n]);return _.jsxs(HN,{role:"grid","aria-labelledby":k,className:F.root,children:[_.jsxs(YN,{role:"row",className:F.header,children:[C&&_.jsx(GN,{variant:"caption",role:"columnheader","aria-label":H.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:H.calendarWeekNumberHeaderText}),g$(n,j).map((B,V)=>_.jsx(KN,{variant:"caption",role:"columnheader","aria-label":n.format(B,"weekday"),className:F.weekDayLabel,children:I(B)},V.toString()))]}),u?_.jsx(QN,{className:F.loadingContainer,children:b()}):_.jsx(JN,K({transKey:se,onExited:p,reduceAnimations:m,slideDirection:f,className:Ce(s,F.slideTransition)},g,{nodeRef:te,children:_.jsx(ZN,{ref:te,role:"rowgroup",className:F.monthContainer,children:J.map((B,V)=>_.jsxs(ej,{role:"row",className:F.weekContainer,"aria-rowindex":V+1,children:[C&&_.jsx(XN,{className:F.weekNumber,role:"rowheader","aria-label":H.calendarWeekNumberAriaLabelText(n.getWeekNumber(B[0])),children:H.calendarWeekNumberText(n.getWeekNumber(B[0]))}),B.map((Q,G)=>_.jsx(tj,{parentProps:t,day:Q,selectedDays:X,isViewFocused:$,focusedDay:c,onKeyDown:q,onFocus:z,onBlur:R,onDaySelect:L,isDateDisabled:Y,currentMonthNumber:A,"aria-colindex":G+1},Q.toString()))]},`week-${B[0]}`))})}))]})}function yx(e){return Me("MuiMonthCalendar",e)}const al=De("MuiMonthCalendar",["root","button","disabled","selected"]),rj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],oj=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return $e(n,yx,e)},sj=ie("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${al.disabled}`]:t.disabled},{[`&.${al.selected}`]:t.selected}]})(({theme:e})=>K({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${al.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${al.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),gx=O.memo(function(t){const{autoFocus:n,classes:o,disabled:s,selected:i,value:l,onClick:a,onKeyDown:c,onFocus:u,onBlur:d,slots:p,slotProps:h}=t,m=qe(t,rj),b=O.useRef(null),{ownerState:f}=Ft(),g=K({},f,{isMonthDisabled:s,isMonthSelected:i}),v=oj(o,g);Mt(()=>{n&&b.current?.focus()},[n]);const y=p?.monthButton??sj,S=st({elementType:y,externalSlotProps:h?.monthButton,externalForwardedProps:m,additionalProps:{disabled:s,ref:b,type:"button",role:"radio","aria-checked":i,onClick:w=>a(w,l),onKeyDown:w=>c(w,l),onFocus:w=>u(w,l),onBlur:w=>d(w,l)},ownerState:g,className:v.button});return _.jsx(y,K({},S))});process.env.NODE_ENV!=="production"&&(gx.displayName="MonthCalendarButton");const ij=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],aj=e=>$e({root:["root"]},yx,e);function lj(e,t){const n=xt({props:e,name:t}),o=Kf(n);return K({},n,o,{monthsPerRow:n.monthsPerRow??3})}const bx=(e,t,n,o,s)=>!!(e===t&&o&&s.isSameYear(n,o)),cj=ie("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>nn(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:ko,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),sp=O.forwardRef(function(t,n){const o=lj(t,"MuiMonthCalendar"),{autoFocus:s,className:i,currentMonth:l,classes:a,value:c,defaultValue:u,referenceDate:d,disabled:p,disableFuture:h,disablePast:m,maxDate:b,minDate:f,onChange:g,shouldDisableMonth:v,readOnly:y,onMonthFocus:S,hasFocus:w,onFocusedViewChange:x,monthsPerRow:P,timezone:T,gridLabelId:I,slots:$,slotProps:M}=o,k=qe(o,ij),{value:C,handleValueChange:N,timezone:D}=Hr({name:"MonthCalendar",timezone:T,value:c,defaultValue:u,referenceDate:d,onChange:g,valueManager:en}),j=To(D),F=on(),W=ft(),{ownerState:Y}=Ft(),H=O.useMemo(()=>en.getInitialReferenceValue({value:C,adapter:W,props:o,timezone:D,referenceDate:d,granularity:jn.month}),[]),L=aj(a),E=O.useMemo(()=>W.getMonth(j),[W,j]),q=O.useMemo(()=>C!=null?W.getMonth(C):null,[C,W]),[z,R]=O.useState(()=>q||W.getMonth(H)),[A,U]=pn({name:"MonthCalendar",state:"hasFocus",controlled:w,default:s??!1}),X=Ee(G=>{U(G),x&&x(G)}),se=O.useCallback(G=>{const ne=W.startOfMonth(m&&W.isAfter(j,f)?j:f),ae=W.startOfMonth(h&&W.isBefore(j,b)?j:b),re=W.startOfMonth(G);return W.isBefore(re,ne)||W.isAfter(re,ae)?!0:v?v(re):!1},[h,m,b,f,j,v,W]),te=Ee((G,ne)=>{if(y)return;const re=(C&&l&&!W.isSameYear(C,l)?W.setYear(C,W.getYear(l)):C)??l??H,ce=W.setMonth(re,ne);N(ce)}),J=Ee(G=>{se(W.setMonth(C??l??H,G))||(R(G),X(!0),S&&S(G))});O.useEffect(()=>{R(G=>q!==null&&G!==q?q:G)},[q]);const B=Ee((G,ne)=>{switch(G.key){case"ArrowUp":J((12+ne-3)%12),G.preventDefault();break;case"ArrowDown":J((12+ne+3)%12),G.preventDefault();break;case"ArrowLeft":J((12+ne+(F?1:-1))%12),G.preventDefault();break;case"ArrowRight":J((12+ne+(F?-1:1))%12),G.preventDefault();break;case"Enter":case" ":te(G,ne),G.preventDefault();break}}),V=Ee((G,ne)=>{J(ne)}),Q=Ee((G,ne)=>{z===ne&&X(!1)});return _.jsx(cj,K({ref:n,className:Ce(L.root,i),ownerState:Y,role:"radiogroup","aria-labelledby":I,monthsPerRow:P},k,{children:Rf(W,l??C??H).map(G=>{const ne=W.getMonth(G),ae=W.format(G,"monthShort"),re=W.format(G,"month"),ce=bx(ne,q,G,C,W),be=p||se(G);return _.jsx(gx,{selected:ce,value:ne,onClick:te,onKeyDown:B,autoFocus:A&&ne===z,disabled:be,tabIndex:ne===z&&!be?0:-1,onFocus:V,onBlur:Q,"aria-current":bx(ne,E,G,j,W)?"date":void 0,"aria-label":re,slots:$,slotProps:M,classes:a,children:ae},ae)})}))});process.env.NODE_ENV!=="production"&&(sp.displayName="MonthCalendar"),process.env.NODE_ENV!=="production"&&(sp.propTypes={autoFocus:r.bool,classes:r.object,className:r.string,currentMonth:r.object,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disablePast:r.bool,gridLabelId:r.string,hasFocus:r.bool,maxDate:r.object,minDate:r.object,monthsPerRow:r.oneOf([3,4]),onChange:r.func,onFocusedViewChange:r.func,onMonthFocus:r.func,readOnly:r.bool,referenceDate:r.object,shouldDisableMonth:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object});function vx(e){return Me("MuiYearCalendar",e)}const ll=De("MuiYearCalendar",["root","button","disabled","selected"]),uj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],dj=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return $e(n,vx,e)},fj=ie("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ll.disabled}`]:t.disabled},{[`&.${ll.selected}`]:t.selected}]})(({theme:e})=>K({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:rn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ll.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ll.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Sx=O.memo(function(t){const{autoFocus:n,classes:o,disabled:s,selected:i,value:l,onClick:a,onKeyDown:c,onFocus:u,onBlur:d,slots:p,slotProps:h}=t,m=qe(t,uj),b=O.useRef(null),{ownerState:f}=Ft(),g=K({},f,{isYearDisabled:s,isYearSelected:i}),v=dj(o,g);Mt(()=>{n&&b.current?.focus()},[n]);const y=p?.yearButton??fj,S=st({elementType:y,externalSlotProps:h?.yearButton,externalForwardedProps:m,additionalProps:{disabled:s,ref:b,type:"button",role:"radio","aria-checked":i,onClick:w=>a(w,l),onKeyDown:w=>c(w,l),onFocus:w=>u(w,l),onBlur:w=>d(w,l)},ownerState:g,className:v.button});return _.jsx(y,K({},S))});process.env.NODE_ENV!=="production"&&(Sx.displayName="YearCalendarButton");const pj=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],hj=e=>$e({root:["root"]},vx,e);function mj(e,t){const n=xt({props:e,name:t}),o=Kf(n);return K({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const yj=ie("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>nn(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:ko,maxHeight:hN,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),gj=ie("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ip=O.forwardRef(function(t,n){const o=mj(t,"MuiYearCalendar"),{autoFocus:s,className:i,classes:l,value:a,defaultValue:c,referenceDate:u,disabled:d,disableFuture:p,disablePast:h,maxDate:m,minDate:b,onChange:f,readOnly:g,shouldDisableYear:v,onYearFocus:y,hasFocus:S,onFocusedViewChange:w,yearsOrder:x,yearsPerRow:P,timezone:T,gridLabelId:I,slots:$,slotProps:M}=o,k=qe(o,pj),{value:C,handleValueChange:N,timezone:D}=Hr({name:"YearCalendar",timezone:T,value:a,defaultValue:c,referenceDate:u,onChange:f,valueManager:en}),j=To(D),F=on(),W=ft(),{ownerState:Y}=Ft(),H=O.useMemo(()=>en.getInitialReferenceValue({value:C,adapter:W,props:o,timezone:D,referenceDate:u,granularity:jn.year}),[]),L=hj(l),E=O.useMemo(()=>W.getYear(j),[W,j]),q=O.useMemo(()=>C!=null?W.getYear(C):null,[C,W]),[z,R]=O.useState(()=>q||W.getYear(H)),[A,U]=pn({name:"YearCalendar",state:"hasFocus",controlled:S,default:s??!1}),X=Ee(oe=>{U(oe),w&&w(oe)}),se=O.useCallback(oe=>{if(h&&W.isBeforeYear(oe,j)||p&&W.isAfterYear(oe,j)||b&&W.isBeforeYear(oe,b)||m&&W.isAfterYear(oe,m))return!0;if(!v)return!1;const fe=W.startOfYear(oe);return v(fe)},[p,h,m,b,j,v,W]),te=Ee((oe,fe)=>{if(g)return;const ve=W.setYear(C??H,fe);N(ve)}),J=Ee(oe=>{se(W.setYear(C??H,oe))||(R(oe),X(!0),y?.(oe))});O.useEffect(()=>{R(oe=>q!==null&&oe!==q?q:oe)},[q]);const B=x!=="desc"?P*1:P*-1,V=F&&x==="asc"||!F&&x==="desc"?-1:1,Q=Ee((oe,fe)=>{switch(oe.key){case"ArrowUp":J(fe-B),oe.preventDefault();break;case"ArrowDown":J(fe+B),oe.preventDefault();break;case"ArrowLeft":J(fe-V),oe.preventDefault();break;case"ArrowRight":J(fe+V),oe.preventDefault();break;case"Enter":case" ":te(oe,fe),oe.preventDefault();break}}),G=Ee((oe,fe)=>{J(fe)}),ne=Ee((oe,fe)=>{z===fe&&X(!1)}),ae=O.useRef(null),re=at(n,ae);O.useEffect(()=>{if(s||ae.current===null)return;const oe=ae.current.querySelector('[tabindex="0"]');if(!oe)return;const fe=oe.offsetHeight,ve=oe.offsetTop,ke=ae.current.clientHeight,je=ae.current.scrollTop,Ue=ve+fe;fe>ke||ve<je||(ae.current.scrollTop=Ue-ke/2-fe/2)},[s]);const ce=W.getYearRange([b,m]);x==="desc"&&ce.reverse();let be=P-ce.length%P;return be===P&&(be=0),_.jsxs(yj,K({ref:re,className:Ce(L.root,i),ownerState:Y,role:"radiogroup","aria-labelledby":I,yearsPerRow:P},k,{children:[ce.map(oe=>{const fe=W.getYear(oe),ve=fe===q,ke=d||se(oe);return _.jsx(Sx,{selected:ve,value:fe,onClick:te,onKeyDown:Q,autoFocus:A&&fe===z,disabled:ke,tabIndex:fe===z&&!ke?0:-1,onFocus:G,onBlur:ne,"aria-current":E===fe?"date":void 0,slots:$,slotProps:M,classes:l,children:W.format(oe,"year")},W.format(oe,"year"))}),Array.from({length:be},(oe,fe)=>_.jsx(gj,{},fe))]}))});process.env.NODE_ENV!=="production"&&(ip.displayName="YearCalendar"),process.env.NODE_ENV!=="production"&&(ip.propTypes={autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disablePast:r.bool,gridLabelId:r.string,hasFocus:r.bool,maxDate:r.object,minDate:r.object,onChange:r.func,onFocusedViewChange:r.func,onYearFocus:r.func,readOnly:r.bool,referenceDate:r.object,shouldDisableYear:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});const xx={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function bj(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return s=>{if(t==null)return xx;const i=t.findIndex(a=>n(s.view,a)),l=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:l!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{l!=null&&o(K({},s,{step:l}))},areViewsInSameStep:(a,c)=>{const u=t.find(p=>n(a,p)),d=t.find(p=>n(c,p));return u===d}}}}let ap=!1;function cl({onChange:e,onViewChange:t,openTo:n,view:o,views:s,autoFocus:i,focusedView:l,onFocusedViewChange:a,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(ap||(o!=null&&!s.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),ap=!0),o==null&&n!=null&&!s.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),ap=!0)));const u=O.useRef(n),d=O.useRef(s),p=O.useRef(s.includes(n)?n:s[0]),[h,m]=pn({name:"useViews",state:"view",controlled:o,default:p.current}),b=O.useRef(i?h:null),[f,g]=pn({name:"useViews",state:"focusedView",controlled:l,default:b.current}),v=c?c({setView:m,view:h,defaultView:p.current,views:s}):xx;O.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some($=>!s.includes($)))&&(m(s.includes(n)?n:s[0]),d.current=s,u.current=n)},[n,m,h,s]);const y=s.indexOf(h),S=s[y-1]??null,w=s[y+1]??null,x=Ee(($,M)=>{g(M?$:k=>$===k?null:k),a?.($,M)}),P=Ee($=>{x($,!0),$!==h&&(m($),t&&t($))}),T=Ee(()=>{w&&P(w)}),I=Ee(($,M,k)=>{const C=M==="finish",N=k?s.indexOf(k)<s.length-1:!!w;e($,C&&N?"partial":M,k);let j=null;if(k!=null&&k!==h?j=k:C&&(j=h),j==null)return;const F=s[s.indexOf(j)+1];F==null||!v.areViewsInSameStep(j,F)||P(F)});return K({},v,{view:h,setView:P,focusedView:f,setFocusedView:x,nextView:w,previousView:S,defaultView:s.includes(n)?n:s[0],goToNextView:T,setValueAndGoToNextView:I})}const vj=e=>Me("MuiPickersCalendarHeader",e),Sj=De("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function xj(e){return Me("MuiPickersArrowSwitcher",e)}De("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const wj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Cj=["ownerState"],Pj=["ownerState"],Tj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),Oj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),wx=ie(Tr,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),Ej=e=>$e({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},xj,e),Cx=O.forwardRef(function(t,n){const o=on(),s=xt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:l,slots:a,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:p,nextLabel:h,isPreviousDisabled:m,isPreviousHidden:b,onGoToPrevious:f,previousLabel:g,labelId:v,classes:y}=s,S=qe(s,wj),{ownerState:w}=Ft(),x=Ej(y),P={isDisabled:u,isHidden:d,goTo:p,label:h},T={isDisabled:m,isHidden:b,goTo:f,label:g},I=a?.previousIconButton??wx,$=st({elementType:I,externalSlotProps:c?.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:K({},w,{isButtonHidden:T.isHidden??!1}),className:Ce(x.button,x.previousIconButton)}),M=a?.nextIconButton??wx,k=st({elementType:M,externalSlotProps:c?.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:K({},w,{isButtonHidden:P.isHidden??!1}),className:Ce(x.button,x.nextIconButton)}),C=a?.leftArrowIcon??SD,N=st({elementType:C,externalSlotProps:c?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:x.leftArrowIcon}),D=qe(N,Cj),j=a?.rightArrowIcon??xD,F=st({elementType:j,externalSlotProps:c?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:x.rightArrowIcon}),W=qe(F,Pj);return _.jsxs(Tj,K({ref:n,className:Ce(x.root,l),ownerState:w},S,{children:[_.jsx(I,K({},$,{children:o?_.jsx(j,K({},W)):_.jsx(C,K({},D))})),i?_.jsx(Nn,{variant:"subtitle1",component:"span",id:v,children:i}):_.jsx(Oj,{className:x.spacer,ownerState:w}),_.jsx(M,K({},k,{children:o?_.jsx(C,K({},D)):_.jsx(j,K({},W))}))]}))});process.env.NODE_ENV!=="production"&&(Cx.displayName="PickersArrowSwitcher");const kj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],_j=["ownerState"],Rj=e=>$e({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},vj,e),Ij=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),$j=ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>K({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Dj=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),Mj=ie(Tr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Sj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Nj=ie(vD,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),lp=O.forwardRef(function(t,n){const o=An(),s=ft(),i=xt({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:a,currentMonth:c,disabled:u,disableFuture:d,disablePast:p,maxDate:h,minDate:m,onMonthChange:b,onViewChange:f,view:g,reduceAnimations:v,views:y,labelId:S,className:w,classes:x,timezone:P,format:T=`${s.formats.month} ${s.formats.year}`}=i,I=qe(i,kj),{ownerState:$}=Ft(),M=Rj(x),k=l?.switchViewButton??Mj,C=st({elementType:k,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(g)},ownerState:K({},$,{view:g}),className:M.switchViewButton}),N=l?.switchViewIcon??Nj,D=st({elementType:N,externalSlotProps:a?.switchViewIcon,ownerState:$,className:M.switchViewIcon}),j=qe(D,_j),F=()=>b(s.addMonths(c,1)),W=()=>b(s.addMonths(c,-1)),Y=fN(c,{disableFuture:d,maxDate:h,timezone:P}),H=pN(c,{disablePast:p,minDate:m,timezone:P}),L=()=>{if(!(y.length===1||!f||u))if(y.length===2)f(y.find(q=>q!==g)||y[0]);else{const q=y.indexOf(g)!==0?0:1;f(y[q])}};if(y.length===1&&y[0]==="year")return null;const E=s.formatByString(c,T);return _.jsxs(Ij,K({},I,{ownerState:$,className:Ce(M.root,w),ref:n,children:[_.jsxs($j,{role:"presentation",onClick:L,ownerState:$,"aria-live":"polite",className:M.labelContainer,children:[_.jsx(ux,{reduceAnimations:v,transKey:E,children:_.jsx(Dj,{id:S,ownerState:$,className:M.label,children:E})}),y.length>1&&!u&&_.jsx(k,K({},C,{children:_.jsx(N,K({},j))}))]}),_.jsx(wr,{in:g==="day",appear:!v,enter:!v,children:_.jsx(Cx,{slots:l,slotProps:a,onGoToPrevious:W,isPreviousDisabled:H,previousLabel:o.previousMonth,onGoToNext:F,isNextDisabled:Y,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(lp.displayName="PickersCalendarHeader"),process.env.NODE_ENV!=="production"&&(lp.propTypes={classes:r.object,className:r.string,currentMonth:r.object.isRequired,disabled:r.bool,disableFuture:r.bool,disablePast:r.bool,format:r.string,labelId:r.string,maxDate:r.object.isRequired,minDate:r.object.isRequired,onMonthChange:r.func.isRequired,onViewChange:r.func,reduceAnimations:r.bool.isRequired,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string.isRequired,view:r.oneOf(["day","month","year"]).isRequired,views:r.arrayOf(r.oneOf(["day","month","year"]).isRequired).isRequired});const cp=ie("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:ko,maxHeight:_o,display:"flex",flexDirection:"column",margin:"0 auto"}),jj="@media (prefers-reduced-motion: reduce)",Ro=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Px=Ro&&Ro[1]?parseInt(Ro[1],10):null,Tx=Ro&&Ro[2]?parseInt(Ro[2],10):null,Aj=Px&&Px<10||Tx&&Tx<13||!1;function Ox(e){const t=Q0(jj,{defaultMatches:!1});return e??(t||Aj)}const Fj=e=>Me("MuiDateCalendar",e);De("MuiDateCalendar",["root","viewTransitionContainer"]);const Vj=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],Lj=e=>$e({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Fj,e);function Bj(e,t){const n=xt({props:e,name:t}),o=Ox(n.reduceAnimations),s=Kf(n);return K({},n,s,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:o,renderLoading:n.renderLoading??(()=>_.jsx("span",{children:"..."}))})}const qj=ie(cp,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:_o}),zj=ie(ux,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),up=O.forwardRef(function(t,n){const o=ft(),{ownerState:s}=Ft(),i=qn(),l=Bj(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:c,value:u,defaultValue:d,referenceDate:p,disableFuture:h,disablePast:m,onChange:b,onMonthChange:f,reduceAnimations:g,shouldDisableDate:v,shouldDisableMonth:y,shouldDisableYear:S,view:w,views:x,openTo:P,className:T,classes:I,disabled:$,readOnly:M,minDate:k,maxDate:C,disableHighlightToday:N,focusedView:D,onFocusedViewChange:j,showDaysOutsideCurrentMonth:F,fixedWeekNumber:W,dayOfWeekFormatter:Y,slots:H,slotProps:L,loading:E,renderLoading:q,displayWeekNumber:z,yearsOrder:R,yearsPerRow:A,monthsPerRow:U,timezone:X}=l,se=qe(l,Vj),{value:te,handleValueChange:J,timezone:B}=Hr({name:"DateCalendar",timezone:X,value:u,defaultValue:d,referenceDate:p,onChange:b,valueManager:en}),{view:V,setView:Q,focusedView:G,setFocusedView:ne,goToNextView:ae,setValueAndGoToNextView:re}=cl({view:w,views:x,openTo:P,onChange:J,onViewChange:c,autoFocus:a,focusedView:D,onFocusedViewChange:j}),{referenceDate:ce,calendarState:be,setVisibleDate:oe,isDateDisabled:fe,onMonthSwitchingAnimationEnd:ve}=EN({value:te,referenceDate:p,reduceAnimations:g,onMonthChange:f,minDate:k,maxDate:C,shouldDisableDate:v,disablePast:m,disableFuture:h,timezone:B,getCurrentMonthFromVisibleDate:(Be,Oe)=>o.isSameMonth(Be,Oe)?Oe:o.startOfMonth(Be)}),ke=$&&te||k,je=$&&te||C,Ue=`${i}-grid-label`,Ve=G!==null,Ze=H?.calendarHeader??lp,Qe=st({elementType:Ze,externalSlotProps:L?.calendarHeader,additionalProps:{views:x,view:V,currentMonth:be.currentMonth,onViewChange:Q,onMonthChange:Be=>oe({target:Be,reason:"header-navigation"}),minDate:ke,maxDate:je,disabled:$,disablePast:m,disableFuture:h,reduceAnimations:g,timezone:B,labelId:Ue},ownerState:s}),Ae=Ee(Be=>{const Oe=o.startOfMonth(Be),Fe=o.endOfMonth(Be),tt=fe(Be)?Os({adapter:o,date:Be,minDate:o.isBefore(k,Oe)?Oe:k,maxDate:o.isAfter(C,Fe)?Fe:C,disablePast:m,disableFuture:h,isDateDisabled:fe,timezone:B}):Be;tt?(re(tt,"finish"),oe({target:tt,reason:"cell-interaction"})):(ae(),oe({target:Oe,reason:"cell-interaction"}))}),Ne=Ee(Be=>{const Oe=o.startOfYear(Be),Fe=o.endOfYear(Be),tt=fe(Be)?Os({adapter:o,date:Be,minDate:o.isBefore(k,Oe)?Oe:k,maxDate:o.isAfter(C,Fe)?Fe:C,disablePast:m,disableFuture:h,isDateDisabled:fe,timezone:B}):Be;tt?(re(tt,"finish"),oe({target:tt,reason:"cell-interaction"})):(ae(),oe({target:Oe,reason:"cell-interaction"}))}),Te=Ee(Be=>J(Be&&Ba(o,Be,te??ce),"finish",V));O.useEffect(()=>{o.isValid(te)&&oe({target:te,reason:"controlled-value-change"})},[te]);const Le=Lj(I),Ye={disablePast:m,disableFuture:h,maxDate:C,minDate:k},Ke={disableHighlightToday:N,readOnly:M,disabled:$,timezone:B,gridLabelId:Ue,slots:H,slotProps:L},lt=O.useRef(V);O.useEffect(()=>{lt.current!==V&&(G===lt.current&&ne(V,!0),lt.current=V)},[G,ne,V]);const pt=O.useMemo(()=>[te],[te]);return _.jsxs(qj,K({ref:n,className:Ce(Le.root,T),ownerState:s},se,{children:[_.jsx(Ze,K({},Qe,{slots:H,slotProps:L})),_.jsx(zj,{reduceAnimations:g,className:Le.viewTransitionContainer,transKey:V,ownerState:s,children:_.jsxs("div",{children:[V==="year"&&_.jsx(ip,K({},Ye,Ke,{value:te,onChange:Ne,shouldDisableYear:S,hasFocus:Ve,onFocusedViewChange:Be=>ne("year",Be),yearsOrder:R,yearsPerRow:A,referenceDate:ce})),V==="month"&&_.jsx(sp,K({},Ye,Ke,{currentMonth:be.currentMonth,hasFocus:Ve,className:T,value:te,onChange:Ae,shouldDisableMonth:y,onFocusedViewChange:Be=>ne("month",Be),monthsPerRow:U,referenceDate:ce})),V==="day"&&_.jsx(nj,K({},be,Ye,Ke,{onMonthSwitchingAnimationEnd:ve,hasFocus:Ve,onFocusedDayChange:Be=>oe({target:Be,reason:"cell-interaction"}),reduceAnimations:g,selectedDays:pt,onSelectedDaysChange:Te,shouldDisableDate:v,shouldDisableMonth:y,shouldDisableYear:S,onFocusedViewChange:Be=>ne("day",Be),showDaysOutsideCurrentMonth:F,fixedWeekNumber:W,dayOfWeekFormatter:Y,displayWeekNumber:z,loading:E,renderLoading:q}))]})})]}))});process.env.NODE_ENV!=="production"&&(up.displayName="DateCalendar"),process.env.NODE_ENV!=="production"&&(up.propTypes={autoFocus:r.bool,classes:r.object,className:r.string,dayOfWeekFormatter:r.func,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,fixedWeekNumber:r.number,focusedView:r.oneOf(["day","month","year"]),loading:r.bool,maxDate:r.object,minDate:r.object,monthsPerRow:r.oneOf([3,4]),onChange:r.func,onFocusedViewChange:r.func,onMonthChange:r.func,onViewChange:r.func,onYearChange:r.func,openTo:r.oneOf(["day","month","year"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["day","month","year"]),views:r.arrayOf(r.oneOf(["day","month","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});const Xr=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:s,value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:m,maxDate:b,shouldDisableDate:f,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:y,onMonthChange:S,monthsPerRow:w,onYearChange:x,yearsOrder:P,yearsPerRow:T,slots:I,slotProps:$,loading:M,renderLoading:k,disableHighlightToday:C,readOnly:N,disabled:D,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:F,sx:W,autoFocus:Y,fixedWeekNumber:H,displayWeekNumber:L,timezone:E})=>_.jsx(up,{view:e,onViewChange:t,views:n.filter(xo),focusedView:o&&xo(o)?o:null,onFocusedViewChange:s,value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:m,maxDate:b,shouldDisableDate:f,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:y,onMonthChange:S,monthsPerRow:w,onYearChange:x,yearsOrder:P,yearsPerRow:T,slots:I,slotProps:$,loading:M,renderLoading:k,disableHighlightToday:C,readOnly:N,disabled:D,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:F,sx:W,autoFocus:Y,fixedWeekNumber:H,displayWeekNumber:L,timezone:E});process.env.NODE_ENV!=="production"&&(Xr.displayName="renderDateViewCalendar");function Uj(e){return Me("MuiPickerPopper",e)}De("MuiPickerPopper",["root","paper"]);const Wj=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Hj=e=>$e({root:["root"],paper:["paper"]},Uj,e),Yj=ie(ja,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),Kj=ie(Cr,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function Gj(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Xj(e,t){const n=O.useRef(!1),o=O.useRef(!1),s=O.useRef(null),i=O.useRef(!1);O.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const l=Ee(c=>{if(!i.current)return;const u=o.current;o.current=!1;const d=Lt(s.current);if(!s.current||"clientX"in c&&Gj(c,d))return;if(n.current){n.current=!1;return}let p;c.composedPath?p=c.composedPath().indexOf(s.current)>-1:p=!d.documentElement.contains(c.target)||s.current.contains(c.target),!p&&!u&&t(c)}),a=c=>{c.defaultMuiPrevented||(o.current=!0)};return O.useEffect(()=>{if(e){const c=Lt(s.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",l),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",l),c.removeEventListener("touchmove",u)}}},[e,l]),O.useEffect(()=>{if(e){const c=Lt(s.current);return c.addEventListener("click",l),()=>{c.removeEventListener("click",l),o.current=!1}}},[e,l]),[s,a,a]}const Ex=O.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:s,paperSlotProps:i,paperClasses:l,onPaperClick:a,onPaperTouchStart:c}=e,u=qe(e,Wj),d=st({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:o});return _.jsx(n,K({},u,d,{onClick:p=>{a(p),d.onClick?.(p)},onTouchStart:p=>{c(p),d.onTouchStart?.(p)},ownerState:o,children:s}))});process.env.NODE_ENV!=="production"&&(Ex.displayName="PickerPopperPaperWrapper");function Qj(e){const t=xt({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:s,slotProps:i,classes:l}=t,{open:a,popupRef:c,reduceAnimations:u}=Or(),{ownerState:d,rootRefObject:p}=Ft(),{dismissViews:h,getCurrentViewMode:m,onPopperExited:b,triggerElement:f,viewContainerRole:g}=Ft();O.useEffect(()=>{function W(Y){a&&Y.key==="Escape"&&h()}return document.addEventListener("keydown",W),()=>{document.removeEventListener("keydown",W)}},[h,a]);const v=O.useRef(null);O.useEffect(()=>{g==="tooltip"||m()==="field"||(a?v.current=Yt(p.current):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[a,g,m,p]);const y=Hj(l),S=Ee(()=>{g==="tooltip"?j$(()=>{p.current?.contains(Yt(p.current))||c.current?.contains(Yt(c.current))||h()}):h()}),[w,x,P]=Xj(a,S),T=O.useRef(null),I=at(T,c),$=at(I,w),M=W=>{W.key==="Escape"&&(W.stopPropagation(),h())},k=s?.desktopTransition??u?wr:as,C=s?.desktopTrapFocus??cs,N=s?.desktopPaper??Kj,D=s?.popper??Yj,j=st({elementType:D,externalSlotProps:i?.popper,additionalProps:{transition:!0,role:g??void 0,open:a,placement:o,anchorEl:f,onKeyDown:M},className:y.root,ownerState:d}),F=O.useMemo(()=>K({},d,{popperPlacement:j.placement}),[d,j.placement]);return _.jsx(D,K({},j,{children:({TransitionProps:W})=>_.jsx(C,K({open:a,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},i?.desktopTrapFocus,{children:_.jsx(k,K({},W,i?.desktopTransition,{onExited:Y=>{b?.(),i?.desktopTransition?.onExited?.(Y),W?.onExited?.()},children:_.jsx(Ex,{PaperComponent:N,ownerState:F,ref:$,onPaperClick:x,onPaperTouchStart:P,paperClasses:y.paper,paperSlotProps:i?.desktopPaper,children:n})}))}))}))}function kx(){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"}function Jj(e,t){const[n,o]=O.useState(kx);return Mt(()=>{const s=()=>{o(kx())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),N$(e,["hours","minutes","seconds"])?"portrait":t??n}const _x=new Set;function Rx(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
187
+ `):e;_x.has(n)||(_x.add(n),t==="error"?console.error(n):console.warn(n))}function Zj(e){const{props:t,valueManager:n,validator:o}=e,{value:s,defaultValue:i,onChange:l,referenceDate:a,timezone:c,onAccept:u,closeOnSelect:d,open:p,onOpen:h,onClose:m}=t,{current:b}=O.useRef(i),{current:f}=O.useRef(s!==void 0),{current:g}=O.useRef(p!==void 0),v=ft();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&Rx(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),process.env.NODE_ENV!=="production"&&(O.useEffect(()=>{f!==(s!==void 0)&&console.error([`MUI X: A component is changing the ${f?"":"un"}controlled value of a Picker to be ${f?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
188
+ `))},[s]),O.useEffect(()=>{!f&&b!==i&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled Picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
189
+ `))},[JSON.stringify(b)]));const{timezone:y,value:S,handleValueChange:w}=Hr({name:"a picker component",timezone:c,value:s,defaultValue:b,referenceDate:a,onChange:l,valueManager:n}),[x,P]=O.useState(()=>({open:!1,lastExternalValue:S,clockShallowValue:void 0,lastCommittedValue:S,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:T}=CS({props:t,validator:o,timezone:y,value:S,onError:t.onError}),I=Ee(C=>{const N=typeof C=="function"?C(x.open):C;g||P(D=>K({},D,{open:N})),N&&h&&h(),N||m?.()}),$=Ee((C,N)=>{const{changeImportance:D="accept",skipPublicationIfPristine:j=!1,validationError:F,shortcut:W,source:Y,shouldClose:H=D==="accept"}=N??{};let L,E;!j&&!f&&!x.hasBeenModifiedSinceMount?(L=!0,E=D==="accept"):(L=!n.areValuesEqual(v,C,S),E=D==="accept"&&!n.areValuesEqual(v,C,x.lastCommittedValue)),P(R=>K({},R,{clockShallowValue:L?void 0:R.clockShallowValue,lastCommittedValue:E?C:R.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let q=null;const z=()=>{if(!q){let R;Y?R=Y:W?R="view":R="unknown",q={validationError:F??T(C),source:R},W&&(q.shortcut=W)}return q};L&&w(C,z()),E&&u&&u(C,z()),H&&I(!1)});S!==x.lastExternalValue&&P(C=>K({},C,{lastExternalValue:S,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const M=Ee((C,N="partial")=>{if(N==="shallow"){P(D=>K({},D,{clockShallowValue:C,hasBeenModifiedSinceMount:!0}));return}$(C,{changeImportance:N==="finish"&&d?"accept":"set",source:"view"})});O.useEffect(()=>{if(g){if(p===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");P(C=>K({},C,{open:p}))}},[g,p]);const k=O.useMemo(()=>n.cleanValue(v,x.clockShallowValue===void 0?S:x.clockShallowValue),[v,n,x.clockShallowValue,S]);return{timezone:y,state:x,setValue:$,setValueFromView:M,setOpen:I,value:S,viewValue:k}}const eA=["className","sx"],Ix=({ref:e,props:t,valueManager:n,valueType:o,variant:s,validator:i,onPopperExited:l,autoFocusView:a,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:p})=>{const{views:h,view:m,openTo:b,onViewChange:f,viewRenderers:g,reduceAnimations:v,orientation:y,disableOpenPicker:S,closeOnSelect:w,disabled:x,readOnly:P,formatDensity:T,enableAccessibleFieldDOMStructure:I,selectedSections:$,onSelectedSectionsChange:M,format:k,label:C,autoFocus:N,name:D}=t,{className:j,sx:F}=t,W=qe(t,eA),Y=qn(),H=ft(),L=Ox(v),E=Jj(h,y),{current:q}=O.useRef(b??null),[z,R]=O.useState(null),A=O.useRef(null),U=O.useRef(null),X=O.useRef(null),se=at(e,X),{timezone:te,state:J,setOpen:B,setValue:V,setValueFromView:Q,value:G,viewValue:ne}=Zj({props:t,valueManager:n,validator:i}),{view:ae,setView:re,defaultView:ce,focusedView:be,setFocusedView:oe,setValueAndGoToNextView:fe,goToNextStep:ve,hasNextStep:ke,hasSeveralSteps:je}=cl({view:m,views:h,openTo:b,onChange:Q,onViewChange:f,autoFocus:a,getStepNavigation:p}),Ue=Ee(()=>V(n.emptyValue,{source:"view"})),Ve=Ee(()=>V(n.getTodayValue(H,te,o),{source:"view"})),Ze=Ee(()=>V(G,{source:"view"})),Qe=Ee(()=>V(J.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Ae=Ee(()=>{V(G,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Ne,viewModeLookup:Te,timeViewsCount:Le}=O.useMemo(()=>h.reduce((le,Ie)=>{const Se=g[Ie]==null?"field":"UI";return le.viewModeLookup[Ie]=Se,Se==="UI"&&(le.hasUIView=!0,ks(Ie)&&(le.timeViewsCount+=1)),le},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[g,h]),Ye=Te[ae],Ke=Ee(()=>Ye),[lt,pt]=O.useState(Ye==="UI"?ae:null);lt!==ae&&Te[ae]==="UI"&&pt(ae),Mt(()=>{Ye==="field"&&J.open&&(B(!1),setTimeout(()=>{U?.current?.setSelectedSections(ae),U?.current?.focusField(ae)}))},[ae]),Mt(()=>{if(!J.open)return;let le=ae;Ye==="field"&&lt!=null&&(le=lt),le!==ce&&Te[le]==="UI"&&Te[ce]==="UI"&&(le=ce),le!==ae&&re(le),oe(le,!0)},[J.open]);const Be=O.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(H,G,n.emptyValue),isPickerOpen:J.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:E,pickerVariant:s}),[H,n,G,J.open,E,s,t.disabled,t.readOnly]),Oe=O.useMemo(()=>S||!Ne?"hidden":x||P?"disabled":"enabled",[S,Ne,x,P]),Fe=Ee(ve),tt=O.useMemo(()=>w&&!je?[]:["cancel","nextOrAccept"],[w,je]),_t=O.useMemo(()=>({setValue:V,setOpen:B,clearValue:Ue,setValueToToday:Ve,acceptValueChanges:Ze,cancelValueChanges:Qe,setView:re,goToNextStep:Fe}),[V,B,Ue,Ve,Ze,Qe,re,Fe]),gt=O.useMemo(()=>K({},_t,{value:G,timezone:te,open:J.open,views:h,view:lt,initialView:q,disabled:x??!1,readOnly:P??!1,autoFocus:N??!1,variant:s,orientation:E,popupRef:A,reduceAnimations:L,triggerRef:R,triggerStatus:Oe,hasNextStep:ke,fieldFormat:k??"",name:D,label:C,rootSx:F,rootRef:se,rootClassName:j}),[_t,G,se,s,E,L,x,P,k,j,D,C,F,Oe,ke,te,J.open,lt,h,q,N]),mn=O.useMemo(()=>({dismissViews:Ae,ownerState:Be,hasUIView:Ne,getCurrentViewMode:Ke,rootRefObject:X,labelId:Y,triggerElement:z,viewContainerRole:d,defaultActionBarActions:tt,onPopperExited:l}),[Ae,Be,Ne,Ke,Y,z,d,tt,l]),de=O.useMemo(()=>({formatDensity:T,enableAccessibleFieldDOMStructure:I,selectedSections:$,onSelectedSectionsChange:M,fieldRef:U}),[T,I,$,M,U]);return{providerProps:{localeText:u,contextValue:gt,privateContextValue:mn,actionsContextValue:_t,fieldPrivateContextValue:de,isValidContextValue:le=>{const Ie=i({adapter:H,value:le,timezone:te,props:t});return!n.hasError(Ie)}},renderCurrentView:()=>{if(lt==null)return null;const le=g[lt];if(le==null)return null;const Ie=K({},W,{views:h,timezone:te,value:ne,onChange:fe,view:lt,onViewChange:re,showViewSwitcher:Le>1,timeViewsCount:Le},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:be,onFocusedViewChange:oe});return c?_.jsx(c,{viewRenderers:g,popperView:lt,rendererProps:Ie}):le(Ie)},ownerState:Be}};function $x(e){return Me("MuiPickersLayout",e)}const Vn=De("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function tA(e){return Me("MuiDialogActions",e)}De("MuiDialogActions",["root","spacing"]);const nA=e=>{const{classes:t,disableSpacing:n}=e;return $e({root:["root",!n&&"spacing"]},tA,t)},rA=ie("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}}}]}),Dx=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...l}=o,a={...o,disableSpacing:i},c=nA(a);return _.jsx(rA,{className:Ce(c.root,s),ownerState:a,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Dx.propTypes={children:r.node,classes:r.object,className:r.string,disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const oA=["actions"],sA=ie(Dx,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Mx(e){const{actions:t}=e,n=qe(e,oA),o=An(),{clearValue:s,setValueToToday:i,acceptValueChanges:l,cancelValueChanges:a,goToNextStep:c,hasNextStep:u}=Or();if(t==null||t.length===0)return null;const d=t?.map(p=>{switch(p){case"clear":return _.jsx(Xn,{onClick:s,children:o.clearButtonLabel},p);case"cancel":return _.jsx(Xn,{onClick:a,children:o.cancelButtonLabel},p);case"accept":return _.jsx(Xn,{onClick:l,children:o.okButtonLabel},p);case"today":return _.jsx(Xn,{onClick:i,children:o.todayButtonLabel},p);case"next":return _.jsx(Xn,{onClick:c,children:o.nextStepButtonLabel},p);case"nextOrAccept":return u?_.jsx(Xn,{onClick:c,children:o.nextStepButtonLabel},p):_.jsx(Xn,{onClick:l,children:o.okButtonLabel},p);default:return null}});return _.jsx(sA,K({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Mx.propTypes={actions:r.arrayOf(r.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const Nx=O.memo(Mx);process.env.NODE_ENV!=="production"&&(Nx.displayName="PickersActionBar");function iA(e){return Me("MuiListItem",e)}De("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const aA=De("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function lA(e){return Me("MuiListItemSecondaryAction",e)}De("MuiListItemSecondaryAction",["root","disableGutters"]);const cA=e=>{const{disableGutters:t,classes:n}=e;return $e({root:["root",t&&"disableGutters"]},lA,n)},uA=ie("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}}]}),dp=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...i}=o,l=O.useContext(Sr),a={...o,disableGutters:l.disableGutters},c=cA(a);return _.jsx(uA,{className:Ce(c.root,s),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(dp.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])}),dp.muiName="ListItemSecondaryAction";const dA=(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]},fA=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:s,disablePadding:i,divider:l,hasSecondaryAction:a}=e;return $e({root:["root",o&&"dense",!s&&"gutters",!i&&"padding",l&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},iA,n)},pA=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:dA})(Xe(({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:{[`& > .${aA.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}}]}))),hA=ie("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),jx=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiListItem"}),{alignItems:s="center",children:i,className:l,component:a,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...h}={},dense:m=!1,disableGutters:b=!1,disablePadding:f=!1,divider:g=!1,secondaryAction:v,slotProps:y={},slots:S={},...w}=o,x=O.useContext(Sr),P=O.useMemo(()=>({dense:m||x.dense||!1,alignItems:s,disableGutters:b}),[s,x.dense,m,b]),T=O.useRef(null),I=O.Children.toArray(i),$=I.length&&Ko(I[I.length-1],["ListItemSecondaryAction"]),M={...o,alignItems:s,dense:P.dense,disableGutters:b,disablePadding:f,divider:g,hasSecondaryAction:$},k=fA(M),C=at(T,n),N={slots:S,slotProps:y},[D,j]=ot("secondaryAction",{elementType:dp,externalForwardedProps:N,ownerState:M,className:k.secondaryAction}),F=S.root||c.Root||pA,W=y.root||u.root||{},Y={className:Ce(k.root,W.className,l),...w};let H=a||"li";return $?(H=!Y.component&&!a?"div":H,d==="li"&&(H==="li"?H="div":Y.component==="li"&&(Y.component="div")),_.jsx(Sr.Provider,{value:P,children:_.jsxs(hA,{as:d,className:Ce(k.container,p),ref:C,ownerState:M,...h,children:[_.jsx(F,{...W,...!co(F)&&{as:H,ownerState:{...M,...W.ownerState}},...Y,children:I}),I.pop()]})})):_.jsx(Sr.Provider,{value:P,children:_.jsxs(F,{...W,as:H,ref:C,...!co(F)&&{ownerState:{...M,...W.ownerState}},...Y,children:[I,v&&_.jsx(D,{...j,children:v})]})})});process.env.NODE_ENV!=="production"&&(jx.propTypes={alignItems:r.oneOf(["center","flex-start"]),children:vn(r.node,e=>{const t=O.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const s=t[o];if(Ko(s,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),ContainerComponent:da,ContainerProps:r.object,dense:r.bool,disableGutters:r.bool,disablePadding:r.bool,divider:r.bool,secondaryAction:r.node,slotProps:r.shape({root:r.object,secondaryAction:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,secondaryAction:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const mA=["items","changeImportance"],yA=["getValue"],gA=ie(Hd,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Ax(e){const{items:t,changeImportance:n="accept"}=e,o=qe(e,mA),{setValue:s}=Q$(),i=X$();if(t==null||t.length===0)return null;const l=t.map(a=>{let{getValue:c}=a,u=qe(a,yA);const d=c({isValid:i});return K({},u,{label:u.label,onClick:()=>{s(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return _.jsx(gA,K({dense:!0,sx:[{maxHeight:_o,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:l.map(a=>_.jsx(jx,{children:_.jsx(Va,K({},a))},a.id??a.label))}))}process.env.NODE_ENV!=="production"&&(Ax.propTypes={changeImportance:r.oneOf(["accept","set"]),className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,items:r.arrayOf(r.shape({getValue:r.func.isRequired,id:r.string,label:r.string.isRequired})),style:r.object,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const bA=["ownerState"];function vA(e){return e.view!==null}const SA=(e,t)=>{const{pickerOrientation:n}=t;return $e({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},$x,e)},Fx=e=>{const{ownerState:t,defaultActionBarActions:n}=Ft(),{view:o}=Or(),s=on(),{children:i,slots:l,slotProps:a,classes:c}=e,u=O.useMemo(()=>K({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=SA(c,u),p=l?.actionBar??Nx,h=st({elementType:p,externalSlotProps:a?.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),m=qe(h,bA),b=_.jsx(p,K({},m)),f=l?.toolbar,g=st({elementType:f,externalSlotProps:a?.toolbar,className:d.toolbar,ownerState:u}),v=vA(g)&&f?_.jsx(f,K({},g)):null,y=i,S=l?.tabs,w=o&&S?_.jsx(S,K({className:d.tabs},a?.tabs)):null,x=l?.shortcuts??Ax,P=st({elementType:x,externalSlotProps:a?.shortcuts,className:d.shortcuts,ownerState:u}),T=Array.isArray(P?.items)&&P.items.length>0,I=o&&x?_.jsx(x,K({},P)):null;return{toolbar:v,content:y,tabs:w,actionBar:b,shortcuts:I,ownerState:K({},u,{hasShortcuts:T})}},xA=(e,t)=>{const{pickerOrientation:n}=t;return $e({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},$x,e)},Vx=ie("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Vn.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${Vn.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${Vn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${Vn.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Vn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Vn.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${Vn.shortcuts}`]:{gridColumn:4}}}]}),Lx=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),ul=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:l,actionBar:a,shortcuts:c,ownerState:u}=Fx(o),{orientation:d,variant:p}=Or(),{sx:h,className:m,classes:b}=o,f=xA(b,u);return _.jsxs(Vx,{ref:n,sx:h,className:Ce(f.root,m),ownerState:u,children:[d==="landscape"?c:s,d==="landscape"?s:c,_.jsx(Lx,{className:f.contentWrapper,ownerState:u,children:p==="desktop"?_.jsxs(O.Fragment,{children:[i,l]}):_.jsxs(O.Fragment,{children:[l,i]})}),a]})});process.env.NODE_ENV!=="production"&&(ul.displayName="PickersLayout"),process.env.NODE_ENV!=="production"&&(ul.propTypes={children:r.node,classes:r.object,className:r.string,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Bx(e){const{steps:t}=e;return bj({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:s,view:i,views:l})=>{const a=n.views==null?o:n.views.find(c=>l.includes(c));a!==i&&s(a)}})}const wA=["props","steps"],CA=["ownerState"],PA=e=>{let{props:t,steps:n}=e,o=qe(e,wA);const{slots:s,slotProps:i,label:l,inputRef:a,localeText:c}=t,u=Bx({steps:n}),{providerProps:d,renderCurrentView:p,ownerState:h}=Ix(K({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),m=d.privateContextValue.labelId,b=i?.toolbar?.hidden??!1,f=s.field,g=st({elementType:f,externalSlotProps:i?.field,additionalProps:K({},b&&{id:m}),ownerState:h}),v=qe(g,CA),y=s.layout??ul;let S=m;b&&(l?S=`${m}-label`:S=void 0);const w=K({},i,{toolbar:K({},i?.toolbar,{titleId:m}),popper:K({"aria-labelledby":S},i?.popper)}),x=()=>_.jsxs(SS,K({},d,{children:[_.jsx(f,K({},v,{slots:K({},s,v.slots),slotProps:K({},w,v.slotProps),inputRef:a})),_.jsx(Qj,{slots:s,slotProps:w,children:_.jsx(y,K({},w?.layout,{slots:s,slotProps:w,children:p()}))})]}));return process.env.NODE_ENV!=="production"&&(x.displayName="renderPicker"),{renderPicker:x}},qx=({value:e,referenceDate:t,adapter:n,props:o,timezone:s})=>{const i=O.useMemo(()=>en.getInitialReferenceValue({value:e,adapter:n,props:o,referenceDate:t,granularity:jn.day,timezone:s,getTodayDate:()=>If(n,s,"date")}),[t,s]);return e??i};function TA(e){return Me("MuiDigitalClock",e)}const fp=De("MuiDigitalClock",["root","list","item"]),OA=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],EA=e=>$e({root:["root"],list:["list"],item:["item"]},TA,e),kA=ie(cp,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:rx,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),_A=ie(Oa,{name:"MuiDigitalClock",slot:"List"})({padding:0}),RA=ie(So,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:rn(e.palette.primary.main,e.palette.action.focusOpacity)}})),pp=O.forwardRef(function(t,n){const o=ft(),s=O.useRef(null),i=at(n,s),l=O.useRef(null),a=xt({props:t,name:"MuiDigitalClock"}),{ampm:c=o.is12HourCycleInCurrentLocale(),timeStep:u=30,autoFocus:d,slots:p,slotProps:h,value:m,defaultValue:b,referenceDate:f,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:v,minTime:y,disableFuture:S,disablePast:w,minutesStep:x=1,shouldDisableTime:P,onChange:T,view:I,openTo:$,onViewChange:M,focusedView:k,onFocusedViewChange:C,className:N,classes:D,disabled:j,readOnly:F,views:W=["hours"],skipDisabled:Y=!1,timezone:H}=a,L=qe(a,OA),{value:E,handleValueChange:q,timezone:z}=Hr({name:"DigitalClock",timezone:H,value:m,defaultValue:b,referenceDate:f,onChange:T,valueManager:en}),R=An(),A=To(z),{ownerState:U}=Ft(),X=K({},U,{hasDigitalClockAlreadyBeenRendered:!!s.current}),se=EA(D),te=p?.digitalClockItem??RA,J=st({elementType:te,externalSlotProps:h?.digitalClockItem,ownerState:X,className:se.item}),B=qx({value:E,referenceDate:f,adapter:o,props:a,timezone:z}),V=Ee(be=>q(be,"finish","hours")),{setValueAndGoToNextView:Q}=cl({view:I,views:W,openTo:$,onViewChange:M,onChange:V,focusedView:k,onFocusedViewChange:C}),G=Ee(be=>{Q(be,"finish")});Mt(()=>{if(s.current===null)return;const be=s.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!be)return;const oe=be.offsetTop;(d||k)&&be.focus(),s.current.scrollTop=oe-4});const ne=O.useCallback(be=>{const oe=za(g,o),fe=()=>!(y&&oe(y,be)||v&&oe(be,v)||S&&oe(be,A)||w&&oe(A,be)),ve=()=>o.getMinutes(be)%x!==0?!1:P?!P(be,"hours"):!0;return!fe()||!ve()},[g,o,y,v,S,A,w,x,P]),ae=O.useMemo(()=>{const be=[];let fe=o.startOfDay(B);for(;o.isSameDay(B,fe);)be.push(fe),fe=o.addMinutes(fe,u);return be},[B,u,o]),re=ae.findIndex(be=>o.isEqual(be,B)),ce=be=>{switch(be.key){case"PageUp":{const oe=Wa(l.current)-5,fe=l.current.children,ve=Math.max(0,oe),ke=fe[ve];ke&&ke.focus(),be.preventDefault();break}case"PageDown":{const oe=Wa(l.current)+5,fe=l.current.children,ve=Math.min(fe.length-1,oe),ke=fe[ve];ke&&ke.focus(),be.preventDefault();break}}};return _.jsx(kA,K({ref:i,className:Ce(se.root,N),ownerState:X},L,{children:_.jsx(_A,{ref:l,role:"listbox","aria-label":R.timePickerToolbarTitle,className:se.list,onKeyDown:ce,children:ae.map((be,oe)=>{const fe=ne(be);if(Y&&fe)return null;const ve=o.isEqual(be,E),ke=o.format(be,c?"fullTime12h":"fullTime24h"),Ue=re===oe||re===-1&&oe===0?0:-1;return _.jsx(te,K({onClick:()=>!F&&G(be),selected:ve,disabled:j||fe,disableRipple:F,role:"option","aria-disabled":F,"aria-selected":ve,tabIndex:Ue,itemValue:be,formattedValue:ke},J,{children:ke}),`${be.valueOf()}-${ke}`)})})}))});process.env.NODE_ENV!=="production"&&(pp.displayName="DigitalClock"),process.env.NODE_ENV!=="production"&&(pp.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeStep:r.number,timezone:r.string,value:r.object,view:r.oneOf(["hours"]),views:r.arrayOf(r.oneOf(["hours"]))});function IA(e){return Me("MuiMultiSectionDigitalClock",e)}const hp=De("MuiMultiSectionDigitalClock",["root"]);function $A(e){return Me("MuiMultiSectionDigitalClockSection",e)}const mp=De("MuiMultiSectionDigitalClockSection",["root","item"]),DA=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],MA=e=>$e({root:["root"],item:["item"]},$A,e),NA=ie(Oa,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:rx,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),jA=ie(So,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:Ms,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:rn(e.palette.primary.main,e.palette.action.focusOpacity)}})),zx=O.forwardRef(function(t,n){const o=O.useRef(null),s=at(n,o),i=O.useRef(null),l=xt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:c,className:u,classes:d,disabled:p,readOnly:h,items:m,active:b,slots:f,slotProps:g,skipDisabled:v}=l,y=qe(l,DA),{ownerState:S}=Ft(),w=K({},S,{hasDigitalClockAlreadyBeenRendered:!!o.current}),x=MA(d),P=f?.digitalClockSectionItem??jA;Mt(()=>{if(o.current===null)return;const $=o.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(b&&a&&$&&$.focus(),!$||i.current===$)return;i.current=$;const M=$.offsetTop,k=$.offsetHeight,C=o.current.clientHeight,N=o.current.scrollHeight,D=M-C/2+k/2,j=N-C,F=Math.min(D,j);o.current.scrollTop=Math.max(0,F)});const T=m.findIndex($=>$.isFocused($.value)),I=$=>{switch($.key){case"PageUp":{const M=Wa(o.current)-5,k=o.current.children,C=Math.max(0,M),N=k[C];N&&N.focus(),$.preventDefault();break}case"PageDown":{const M=Wa(o.current)+5,k=o.current.children,C=Math.min(k.length-1,M),N=k[C];N&&N.focus(),$.preventDefault();break}}};return _.jsx(NA,K({ref:s,className:Ce(x.root,u),ownerState:w,autoFocusItem:a&&b,role:"listbox",onKeyDown:I},y,{children:m.map(($,M)=>{const k=$.isDisabled?.($.value),C=p||k;if(v&&C)return null;const N=$.isSelected($.value),D=T===M||T===-1&&M===0?0:-1;return _.jsx(P,K({onClick:()=>!h&&c($.value),selected:N,disabled:C,disableRipple:h,role:"option","aria-disabled":h||C||void 0,"aria-label":$.ariaLabel,"aria-selected":N,tabIndex:D,className:x.item},g?.digitalClockSectionItem,{children:$.label}),$.label)})}))});process.env.NODE_ENV!=="production"&&(zx.displayName="MultiSectionDigitalClockSection");const AA=({now:e,value:t,adapter:n,ampm:o,isDisabled:s,resolveAriaLabel:i,timeStep:l,valueOrReferenceDate:a})=>{const c=t?n.getHours(t):null,u=[],d=(m,b)=>{const f=b??c;return f===null?!1:o?m===12?f===12||f===0:f===m||f-12===m:f===m},p=m=>d(m,n.getHours(a)),h=o?11:23;for(let m=0;m<=h;m+=l){let b=n.format(n.setHours(e,m),o?"hours12h":"hours24h");const f=i(parseInt(b,10).toString());b=n.formatNumber(b),u.push({value:m,label:b,isSelected:d,isDisabled:s,isFocused:p,ariaLabel:f})}return u},Ux=({value:e,adapter:t,isDisabled:n,timeStep:o,resolveLabel:s,resolveAriaLabel:i,hasValue:l=!0})=>{const a=u=>e===null?!1:l&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/o)},(u,d)=>{const p=o*d;return{value:p,label:t.formatNumber(s(p)),isDisabled:n,isSelected:a,isFocused:c,ariaLabel:i(p.toString())}})]},FA=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],VA=e=>$e({root:["root"]},IA,e),LA=ie(cp,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),yp=O.forwardRef(function(t,n){const o=ft(),s=on(),i=xt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:l=o.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:c,slots:u,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:f,minTime:g,disableFuture:v,disablePast:y,minutesStep:S=1,shouldDisableTime:w,onChange:x,view:P,views:T=["hours","minutes"],openTo:I,onViewChange:$,focusedView:M,onFocusedViewChange:k,className:C,classes:N,disabled:D,readOnly:j,skipDisabled:F=!1,timezone:W}=i,Y=qe(i,FA),{value:H,handleValueChange:L,timezone:E}=Hr({name:"MultiSectionDigitalClock",timezone:W,value:p,defaultValue:h,referenceDate:m,onChange:x,valueManager:en}),q=An(),z=To(E),R=O.useMemo(()=>K({hours:1,minutes:5,seconds:5},a),[a]),A=qx({value:H,referenceDate:m,adapter:o,props:i,timezone:E}),U=Ee((oe,fe,ve)=>L(oe,fe,ve)),X=O.useMemo(()=>!l||!T.includes("hours")||T.includes("meridiem")?T:[...T,"meridiem"],[l,T]),{view:se,setValueAndGoToNextView:te,focusedView:J}=cl({view:P,views:X,openTo:I,onViewChange:$,onChange:U,focusedView:M,onFocusedViewChange:k}),B=Ee(oe=>{te(oe,"finish","meridiem")}),{meridiemMode:V,handleMeridiemChange:Q}=nx(A,l,B,"finish"),G=O.useCallback((oe,fe)=>{const ve=za(b,o),ke=fe==="hours"||fe==="minutes"&&X.includes("seconds"),je=({start:Ve,end:Ze})=>!(g&&ve(g,Ze)||f&&ve(Ve,f)||v&&ve(Ve,z)||y&&ve(z,ke?Ze:Ve)),Ue=(Ve,Ze=1)=>{if(Ve%Ze!==0)return!1;if(w)switch(fe){case"hours":return!w(o.setHours(A,Ve),"hours");case"minutes":return!w(o.setMinutes(A,Ve),"minutes");case"seconds":return!w(o.setSeconds(A,Ve),"seconds");default:return!1}return!0};switch(fe){case"hours":{const Ve=$f(oe,V,l),Ze=o.setHours(A,Ve);if(o.getHours(Ze)!==Ve)return!0;const Qe=o.setSeconds(o.setMinutes(Ze,0),0),Ae=o.setSeconds(o.setMinutes(Ze,59),59);return!je({start:Qe,end:Ae})||!Ue(Ve)}case"minutes":{const Ve=o.setMinutes(A,oe),Ze=o.setSeconds(Ve,0),Qe=o.setSeconds(Ve,59);return!je({start:Ze,end:Qe})||!Ue(oe,S)}case"seconds":{const Ve=o.setSeconds(A,oe);return!je({start:Ve,end:Ve})||!Ue(oe)}default:throw new Error("not supported")}},[l,A,b,f,V,g,S,w,o,v,y,z,X]),ne=O.useCallback(oe=>{switch(oe){case"hours":return{onChange:fe=>{const ve=$f(fe,V,l);te(o.setHours(A,ve),"finish","hours")},items:AA({now:z,value:H,ampm:l,adapter:o,isDisabled:fe=>G(fe,"hours"),timeStep:R.hours,resolveAriaLabel:q.hoursClockNumberText,valueOrReferenceDate:A})};case"minutes":return{onChange:fe=>{te(o.setMinutes(A,fe),"finish","minutes")},items:Ux({value:o.getMinutes(A),adapter:o,isDisabled:fe=>G(fe,"minutes"),resolveLabel:fe=>o.format(o.setMinutes(z,fe),"minutes"),timeStep:R.minutes,hasValue:!!H,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:fe=>{te(o.setSeconds(A,fe),"finish","seconds")},items:Ux({value:o.getSeconds(A),adapter:o,isDisabled:fe=>G(fe,"seconds"),resolveLabel:fe=>o.format(o.setSeconds(z,fe),"seconds"),timeStep:R.seconds,hasValue:!!H,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const fe=Es(o,"am"),ve=Es(o,"pm");return{onChange:Q,items:[{value:"am",label:fe,isSelected:()=>!!H&&V==="am",isFocused:()=>!!A&&V==="am",ariaLabel:fe},{value:"pm",label:ve,isSelected:()=>!!H&&V==="pm",isFocused:()=>!!A&&V==="pm",ariaLabel:ve}]}}default:throw new Error(`Unknown view: ${oe} found.`)}},[z,H,l,o,R.hours,R.minutes,R.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,V,te,A,G,Q]),ae=O.useMemo(()=>{if(!s)return X;const oe=X.filter(fe=>fe!=="meridiem");return oe.reverse(),X.includes("meridiem")&&oe.push("meridiem"),oe},[s,X]),re=O.useMemo(()=>X.reduce((oe,fe)=>K({},oe,{[fe]:ne(fe)}),{}),[X,ne]),{ownerState:ce}=Ft(),be=VA(N);return _.jsx(LA,K({ref:n,className:Ce(be.root,C),ownerState:ce,role:"group"},Y,{children:ae.map(oe=>_.jsx(zx,{items:re[oe].items,onChange:re[oe].onChange,active:se===oe,autoFocus:c||J===oe,disabled:D,readOnly:j,slots:u,slotProps:d,skipDisabled:F,"aria-label":q.selectViewText(oe)},oe))}))});process.env.NODE_ENV!=="production"&&(yp.displayName="MultiSectionDigitalClock"),process.env.NODE_ENV!=="production"&&(yp.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)}),process.env.NODE_ENV;const gp=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:m,maxTime:b,shouldDisableTime:f,minutesStep:g,ampm:v,slots:y,slotProps:S,readOnly:w,disabled:x,sx:P,autoFocus:T,disableIgnoringDatePartForTimeValidation:I,timeSteps:$,skipDisabled:M,timezone:k})=>_.jsx(pp,{view:e,onViewChange:t,focusedView:n&&ks(n)?n:null,onFocusedViewChange:o,views:s.filter(ks),value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:m,maxTime:b,shouldDisableTime:f,minutesStep:g,ampm:v,slots:y,slotProps:S,readOnly:w,disabled:x,sx:P,autoFocus:T,disableIgnoringDatePartForTimeValidation:I,timeStep:$?.minutes,skipDisabled:M,timezone:k});process.env.NODE_ENV!=="production"&&(gp.displayName="renderDigitalClockTimeView");const js=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:m,maxTime:b,shouldDisableTime:f,minutesStep:g,ampm:v,slots:y,slotProps:S,readOnly:w,disabled:x,sx:P,autoFocus:T,disableIgnoringDatePartForTimeValidation:I,timeSteps:$,skipDisabled:M,timezone:k})=>_.jsx(yp,{view:e,onViewChange:t,focusedView:n&&wo(n)?n:null,onFocusedViewChange:o,views:s.filter(ks),value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:m,maxTime:b,shouldDisableTime:f,minutesStep:g,ampm:v,slots:y,slotProps:S,readOnly:w,disabled:x,sx:P,autoFocus:T,disableIgnoringDatePartForTimeValidation:I,timeSteps:$,skipDisabled:M,timezone:k});process.env.NODE_ENV!=="production"&&(js.displayName="renderMultiSectionDigitalClockTimeView");const bp=O.forwardRef(function(t,n){const{toolbar:o,tabs:s,content:i,actionBar:l,shortcuts:a,ownerState:c}=Fx(t),{orientation:u}=Or(),{sx:d,className:p,classes:h}=t,m=l&&(l.props.actions?.length??0)>0;return _.jsxs(Vx,{ref:n,className:Ce(Vn.root,h?.root,p),sx:[{[`& .${Vn.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Vn.actionBar}`]:{gridRow:5}},...Array.isArray(d)?d:[d]],ownerState:c,children:[u==="landscape"?a:o,u==="landscape"?o:a,_.jsxs(Lx,{className:Ce(Vn.contentWrapper,h?.contentWrapper),ownerState:c,sx:{display:"grid"},children:[i,s,m&&_.jsx(ws,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),l]})});process.env.NODE_ENV!=="production"&&(bp.displayName="DesktopDateTimePickerLayout"),process.env.NODE_ENV!=="production"&&(bp.propTypes={children:r.node,classes:r.object,className:r.string,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const BA=["openTo","focusedView","timeViewsCount"],Wx=function(t){const{viewRenderers:n,popperView:o,rendererProps:s}=t,{openTo:i,focusedView:l,timeViewsCount:a}=s,c=qe(s,BA),u=K({},c,{autoFocus:!1,focusedView:null,sx:[{[`&.${hp.root}`]:{borderBottom:0},[`&.${hp.root}, .${mp.root}, &.${fp.root}`]:{maxHeight:_o}}]}),d=wo(o),p=d?"day":o,h=d?o:"hours";return _.jsxs(O.Fragment,{children:[n[p]?.(K({},s,{view:d?"day":o,focusedView:l&&xo(l)?l:null,views:s.views.filter(xo),sx:[{gridColumn:1},...u.sx]})),a>0&&_.jsxs(O.Fragment,{children:[_.jsx(ws,{orientation:"vertical",sx:{gridColumn:2}}),n[h]?.(K({},u,{view:d?o:"hours",focusedView:l&&wo(l)?l:null,openTo:wo(i)?i:"hours",views:s.views.filter(wo),sx:[{gridColumn:3},...u.sx]}))]})]})};process.env.NODE_ENV!=="production"&&(Wx.displayName="rendererInterceptor");const vp=O.forwardRef(function(t,n){const o=ft(),s=lx(t,"MuiDesktopDateTimePicker"),i=s.shouldRenderTimeInASingleColumn?gp:js,l=K({day:Xr,month:Xr,year:Xr,hours:i,minutes:i,seconds:i,meridiem:i},s.viewRenderers),a=s.ampmInClock??!0,u=l.hours?.name===js.name?s.views:s.views.filter(h=>h!=="meridiem"),d=K({},s,{viewRenderers:l,format:ax(o,K({},s,{views:s.viewsForFormatting})),views:u,yearsPerRow:s.yearsPerRow??4,ampmInClock:a,slots:K({field:rl,layout:bp},s.slots),slotProps:K({},s.slotProps,{field:h=>K({},xn(s.slotProps?.field,h),yS(s)),toolbar:K({hidden:!0,ampmInClock:a},s.slotProps?.toolbar),tabs:K({hidden:!0},s.slotProps?.tabs)})}),{renderPicker:p}=PA({ref:n,props:d,valueManager:en,valueType:"date-time",validator:Ga,rendererInterceptor:Wx,steps:null});return p()});process.env.NODE_ENV!=="production"&&(vp.displayName="DesktopDateTimePicker"),vp.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,dayOfWeekFormatter:r.func,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,enableAccessibleFieldDOMStructure:r.any,fixedWeekNumber:r.number,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:$t,label:r.node,loading:r.bool,localeText:r.object,maxDate:r.object,maxDateTime:r.object,maxTime:r.object,minDate:r.object,minDateTime:r.object,minTime:r.object,minutesStep:r.number,monthsPerRow:r.oneOf([3,4]),name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onMonthChange:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,onYearChange:r.func,open:r.bool,openTo:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableTime:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:r.shape({day:r.func,hours:r.func,meridiem:r.func,minutes:r.func,month:r.func,seconds:r.func,year:r.func}),views:r.arrayOf(r.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])};function qA(e){return Me("MuiDialogContent",e)}De("MuiDialogContent",["root","dividers"]);const zA=De("MuiDialogTitle",["root"]),UA=e=>{const{classes:t,dividers:n}=e;return $e({root:["root",n&&"dividers"]},qA,t)},WA=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Xe(({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:{[`.${zA.root} + &`]:{paddingTop:0}}}]}))),Hx=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...l}=o,a={...o,dividers:i},c=UA(a);return _.jsx(WA,{className:Ce(c.root,s),ownerState:a,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Hx.propTypes={children:r.node,classes:r.object,className:r.string,dividers:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function HA(e){return Me("MuiDialog",e)}const As=De("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Yx=O.createContext({});process.env.NODE_ENV!=="production"&&(Yx.displayName="DialogContext");const YA=ie(af,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),KA=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:s,fullScreen:i}=e,l={root:["root"],backdrop:["backdrop"],container:["container",`scroll${we(n)}`],paper:["paper",`paperScroll${we(n)}`,`paperWidth${we(String(o))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return $e(l,HA,t)},GA=ie(lf,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),XA=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${we(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"}}}]}),QA=ie(Cr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${we(n.scroll)}`],t[`paperWidth${we(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Xe(({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)`,[`&.${As.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}`,[`&.${As.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,[`&.${As.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Kx=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDialog"}),s=Fr(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":a,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:b=!1,fullWidth:f=!1,maxWidth:g="sm",onClick:v,onClose:y,open:S,PaperComponent:w=Cr,PaperProps:x={},scroll:P="paper",slots:T={},slotProps:I={},TransitionComponent:$=wr,transitionDuration:M=i,TransitionProps:k,...C}=o,N={...o,disableEscapeKeyDown:m,fullScreen:b,fullWidth:f,maxWidth:g,scroll:P},D=KA(N),j=O.useRef(),F=Q=>{j.current=Q.target===Q.currentTarget},W=Q=>{v&&v(Q),j.current&&(j.current=null,y&&y(Q,"backdropClick"))},Y=qn(a),H=O.useMemo(()=>({titleId:Y}),[Y]),L={transition:$,...T},E={transition:k,paper:x,backdrop:d,...I},q={slots:L,slotProps:E},[z,R]=ot("root",{elementType:GA,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:Ce(D.root,h),ref:n}),[A,U]=ot("backdrop",{elementType:YA,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:D.backdrop}),[X,se]=ot("paper",{elementType:QA,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:Ce(D.paper,x.className)}),[te,J]=ot("container",{elementType:XA,externalForwardedProps:q,ownerState:N,className:D.container}),[B,V]=ot("transition",{elementType:wr,externalForwardedProps:q,ownerState:N,additionalProps:{appear:!0,in:S,timeout:M,role:"presentation"}});return _.jsx(z,{closeAfterTransition:!0,slots:{backdrop:A},slotProps:{backdrop:{transitionDuration:M,as:u,...U}},disableEscapeKeyDown:m,onClose:y,open:S,onClick:W,...R,...C,children:_.jsx(B,{...V,children:_.jsx(te,{onMouseDown:F,...J,children:_.jsx(X,{as:w,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":Y,"aria-modal":c,...se,children:_.jsx(Yx.Provider,{value:H,children:p})})})})})});process.env.NODE_ENV!=="production"&&(Kx.propTypes={"aria-describedby":r.string,"aria-labelledby":r.string,"aria-modal":r.oneOfType([r.oneOf(["false","true"]),r.bool]),BackdropComponent:r.elementType,BackdropProps:r.object,children:r.node,classes:r.object,className:r.string,disableEscapeKeyDown:r.bool,fullScreen:r.bool,fullWidth:r.bool,maxWidth:r.oneOfType([r.oneOf(["xs","sm","md","lg","xl",!1]),r.string]),onClick:r.func,onClose:r.func,open:r.bool.isRequired,PaperComponent:r.elementType,PaperProps:r.object,scroll:r.oneOf(["body","paper"]),slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),container:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,container:r.elementType,paper:r.elementType,root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object});const JA=ie(Kx,{slot:"internal"})({[`& .${As.container}`]:{outline:0},[`& .${As.paper}`]:{outline:0,minWidth:ko}}),ZA=ie(Hx,{slot:"internal"})({"&:first-of-type":{padding:0}});function eF(e){const{children:t,slots:n,slotProps:o}=e,{open:s}=Or(),{dismissViews:i,onPopperExited:l}=Ft(),a=n?.dialog??JA,c=n?.mobileTransition??wr;return _.jsx(a,K({open:s,onClose:()=>{i(),l?.()}},o?.dialog,{TransitionComponent:c,TransitionProps:o?.mobileTransition,PaperComponent:n?.mobilePaper,PaperProps:o?.mobilePaper,children:_.jsx(ZA,{children:t})}))}const tF=["props","steps"],nF=["ownerState"],rF=e=>{let{props:t,steps:n}=e,o=qe(e,tF);const{slots:s,slotProps:i,label:l,inputRef:a,localeText:c}=t,u=Bx({steps:n}),{providerProps:d,renderCurrentView:p,ownerState:h}=Ix(K({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),m=d.privateContextValue.labelId,b=i?.toolbar?.hidden??!1,f=s.field,g=st({elementType:f,externalSlotProps:i?.field,additionalProps:K({},b&&{id:m}),ownerState:h}),v=qe(g,nF),y=s.layout??ul;let S=m;b&&(l?S=`${m}-label`:S=void 0);const w=K({},i,{toolbar:K({},i?.toolbar,{titleId:m}),mobilePaper:K({"aria-labelledby":S},i?.mobilePaper)}),x=()=>_.jsxs(SS,K({},d,{children:[_.jsx(f,K({},v,{slots:K({},s,v.slots),slotProps:K({},w,v.slotProps),inputRef:a})),_.jsx(eF,{slots:s,slotProps:w,children:_.jsx(y,K({},w?.layout,{slots:s,slotProps:w,children:p()}))})]}));return process.env.NODE_ENV!=="production"&&(x.displayName="renderPicker"),{renderPicker:x}},oF=[{views:J0},{views:eS}],Sp=O.forwardRef(function(t,n){const o=ft(),s=lx(t,"MuiMobileDateTimePicker"),i=s.shouldRenderTimeInASingleColumn?gp:js,l=K({day:Xr,month:Xr,year:Xr,hours:i,minutes:i,seconds:i,meridiem:i},s.viewRenderers),a=s.ampmInClock??!1,u=l.hours?.name===js.name?s.views:s.views.filter(h=>h!=="meridiem"),d=K({},s,{viewRenderers:l,format:ax(o,K({},s,{views:s.viewsForFormatting})),views:u,ampmInClock:a,slots:K({field:rl},s.slots),slotProps:K({},s.slotProps,{field:h=>K({},xn(s.slotProps?.field,h),yS(s)),toolbar:K({hidden:!1,ampmInClock:a},s.slotProps?.toolbar),tabs:K({hidden:!1},s.slotProps?.tabs),layout:K({},s.slotProps?.layout,{sx:F$([{[`& .${hp.root}`]:{width:ko},[`& .${mp.root}`]:{flex:1,maxHeight:_o-1,[`.${mp.item}`]:{width:"auto"}},[`& .${fp.root}`]:{width:ko,maxHeight:_o,flex:1,[`.${fp.item}`]:{justifyContent:"center"}}}],s.slotProps?.layout?.sx)})})}),{renderPicker:p}=rF({ref:n,props:d,valueManager:en,valueType:"date-time",validator:Ga,steps:oF});return p()});process.env.NODE_ENV!=="production"&&(Sp.displayName="MobileDateTimePicker"),Sp.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,dayOfWeekFormatter:r.func,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,enableAccessibleFieldDOMStructure:r.any,fixedWeekNumber:r.number,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:$t,label:r.node,loading:r.bool,localeText:r.object,maxDate:r.object,maxDateTime:r.object,maxTime:r.object,minDate:r.object,minDateTime:r.object,minTime:r.object,minutesStep:r.number,monthsPerRow:r.oneOf([3,4]),name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onMonthChange:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,onYearChange:r.func,open:r.bool,openTo:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableTime:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:r.shape({day:r.func,hours:r.func,meridiem:r.func,minutes:r.func,month:r.func,seconds:r.func,year:r.func}),views:r.arrayOf(r.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])};const sF=["desktopModeMediaQuery"],xp=O.forwardRef(function(t,n){const o=xt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:s=A$}=o,i=qe(o,sF);return Q0(s,{defaultMatches:!0})?_.jsx(vp,K({ref:n},i)):_.jsx(Sp,K({ref:n},i))});process.env.NODE_ENV!=="production"&&(xp.displayName="DateTimePicker"),process.env.NODE_ENV!=="production"&&(xp.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,dayOfWeekFormatter:r.func,defaultValue:r.object,desktopModeMediaQuery:r.string,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,enableAccessibleFieldDOMStructure:r.any,fixedWeekNumber:r.number,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:$t,label:r.node,loading:r.bool,localeText:r.object,maxDate:r.object,maxDateTime:r.object,maxTime:r.object,minDate:r.object,minDateTime:r.object,minTime:r.object,minutesStep:r.number,monthsPerRow:r.oneOf([3,4]),name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onMonthChange:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,onYearChange:r.func,open:r.bool,openTo:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableTime:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:r.shape({day:r.func,hours:r.func,meridiem:r.func,minutes:r.func,month:r.func,seconds:r.func,year:r.func}),views:r.arrayOf(r.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});var dl={exports:{}},iF=dl.exports,Gx;function aF(){return Gx||(Gx=1,(function(e,t){(function(n,o){e.exports=o()})(iF,(function(){var n=1e3,o=6e4,s=36e5,i="millisecond",l="second",a="minute",c="hour",u="day",d="week",p="month",h="quarter",m="year",b="date",f="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,y={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(D){var j=["th","st","nd","rd"],F=D%100;return"["+D+(j[(F-20)%10]||j[F]||j[0])+"]"}},S=function(D,j,F){var W=String(D);return!W||W.length>=j?D:""+Array(j+1-W.length).join(F)+D},w={s:S,z:function(D){var j=-D.utcOffset(),F=Math.abs(j),W=Math.floor(F/60),Y=F%60;return(j<=0?"+":"-")+S(W,2,"0")+":"+S(Y,2,"0")},m:function D(j,F){if(j.date()<F.date())return-D(F,j);var W=12*(F.year()-j.year())+(F.month()-j.month()),Y=j.clone().add(W,p),H=F-Y<0,L=j.clone().add(W+(H?-1:1),p);return+(-(W+(F-Y)/(H?Y-L:L-Y))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:p,y:m,w:d,d:u,D:b,h:c,m:a,s:l,ms:i,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},x="en",P={};P[x]=y;var T="$isDayjsObject",I=function(D){return D instanceof C||!(!D||!D[T])},$=function D(j,F,W){var Y;if(!j)return x;if(typeof j=="string"){var H=j.toLowerCase();P[H]&&(Y=H),F&&(P[H]=F,Y=H);var L=j.split("-");if(!Y&&L.length>1)return D(L[0])}else{var E=j.name;P[E]=j,Y=E}return!W&&Y&&(x=Y),Y||!W&&x},M=function(D,j){if(I(D))return D.clone();var F=typeof j=="object"?j:{};return F.date=D,F.args=arguments,new C(F)},k=w;k.l=$,k.i=I,k.w=function(D,j){return M(D,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var C=(function(){function D(F){this.$L=$(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[T]=!0}var j=D.prototype;return j.parse=function(F){this.$d=(function(W){var Y=W.date,H=W.utc;if(Y===null)return new Date(NaN);if(k.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var L=Y.match(g);if(L){var E=L[2]-1||0,q=(L[7]||"0").substring(0,3);return H?new Date(Date.UTC(L[1],E,L[3]||1,L[4]||0,L[5]||0,L[6]||0,q)):new Date(L[1],E,L[3]||1,L[4]||0,L[5]||0,L[6]||0,q)}}return new Date(Y)})(F),this.init()},j.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},j.$utils=function(){return k},j.isValid=function(){return this.$d.toString()!==f},j.isSame=function(F,W){var Y=M(F);return this.startOf(W)<=Y&&Y<=this.endOf(W)},j.isAfter=function(F,W){return M(F)<this.startOf(W)},j.isBefore=function(F,W){return this.endOf(W)<M(F)},j.$g=function(F,W,Y){return k.u(F)?this[W]:this.set(Y,F)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(F,W){var Y=this,H=!!k.u(W)||W,L=k.p(F),E=function(te,J){var B=k.w(Y.$u?Date.UTC(Y.$y,J,te):new Date(Y.$y,J,te),Y);return H?B:B.endOf(u)},q=function(te,J){return k.w(Y.toDate()[te].apply(Y.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(J)),Y)},z=this.$W,R=this.$M,A=this.$D,U="set"+(this.$u?"UTC":"");switch(L){case m:return H?E(1,0):E(31,11);case p:return H?E(1,R):E(0,R+1);case d:var X=this.$locale().weekStart||0,se=(z<X?z+7:z)-X;return E(H?A-se:A+(6-se),R);case u:case b:return q(U+"Hours",0);case c:return q(U+"Minutes",1);case a:return q(U+"Seconds",2);case l:return q(U+"Milliseconds",3);default:return this.clone()}},j.endOf=function(F){return this.startOf(F,!1)},j.$set=function(F,W){var Y,H=k.p(F),L="set"+(this.$u?"UTC":""),E=(Y={},Y[u]=L+"Date",Y[b]=L+"Date",Y[p]=L+"Month",Y[m]=L+"FullYear",Y[c]=L+"Hours",Y[a]=L+"Minutes",Y[l]=L+"Seconds",Y[i]=L+"Milliseconds",Y)[H],q=H===u?this.$D+(W-this.$W):W;if(H===p||H===m){var z=this.clone().set(b,1);z.$d[E](q),z.init(),this.$d=z.set(b,Math.min(this.$D,z.daysInMonth())).$d}else E&&this.$d[E](q);return this.init(),this},j.set=function(F,W){return this.clone().$set(F,W)},j.get=function(F){return this[k.p(F)]()},j.add=function(F,W){var Y,H=this;F=Number(F);var L=k.p(W),E=function(R){var A=M(H);return k.w(A.date(A.date()+Math.round(R*F)),H)};if(L===p)return this.set(p,this.$M+F);if(L===m)return this.set(m,this.$y+F);if(L===u)return E(1);if(L===d)return E(7);var q=(Y={},Y[a]=o,Y[c]=s,Y[l]=n,Y)[L]||1,z=this.$d.getTime()+F*q;return k.w(z,this)},j.subtract=function(F,W){return this.add(-1*F,W)},j.format=function(F){var W=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||f;var H=F||"YYYY-MM-DDTHH:mm:ssZ",L=k.z(this),E=this.$H,q=this.$m,z=this.$M,R=Y.weekdays,A=Y.months,U=Y.meridiem,X=function(J,B,V,Q){return J&&(J[B]||J(W,H))||V[B].slice(0,Q)},se=function(J){return k.s(E%12||12,J,"0")},te=U||function(J,B,V){var Q=J<12?"AM":"PM";return V?Q.toLowerCase():Q};return H.replace(v,(function(J,B){return B||(function(V){switch(V){case"YY":return String(W.$y).slice(-2);case"YYYY":return k.s(W.$y,4,"0");case"M":return z+1;case"MM":return k.s(z+1,2,"0");case"MMM":return X(Y.monthsShort,z,A,3);case"MMMM":return X(A,z);case"D":return W.$D;case"DD":return k.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return X(Y.weekdaysMin,W.$W,R,2);case"ddd":return X(Y.weekdaysShort,W.$W,R,3);case"dddd":return R[W.$W];case"H":return String(E);case"HH":return k.s(E,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return te(E,q,!0);case"A":return te(E,q,!1);case"m":return String(q);case"mm":return k.s(q,2,"0");case"s":return String(W.$s);case"ss":return k.s(W.$s,2,"0");case"SSS":return k.s(W.$ms,3,"0");case"Z":return L}return null})(J)||L.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(F,W,Y){var H,L=this,E=k.p(W),q=M(F),z=(q.utcOffset()-this.utcOffset())*o,R=this-q,A=function(){return k.m(L,q)};switch(E){case m:H=A()/12;break;case p:H=A();break;case h:H=A()/3;break;case d:H=(R-z)/6048e5;break;case u:H=(R-z)/864e5;break;case c:H=R/s;break;case a:H=R/o;break;case l:H=R/n;break;default:H=R}return Y?H:k.a(H)},j.daysInMonth=function(){return this.endOf(p).$D},j.$locale=function(){return P[this.$L]},j.locale=function(F,W){if(!F)return this.$L;var Y=this.clone(),H=$(F,W,!0);return H&&(Y.$L=H),Y},j.clone=function(){return k.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},D})(),N=C.prototype;return M.prototype=N,[["$ms",i],["$s",l],["$m",a],["$H",c],["$W",u],["$M",p],["$y",m],["$D",b]].forEach((function(D){N[D[1]]=function(j){return this.$g(j,D[0],D[1])}})),M.extend=function(D,j){return D.$i||(D(j,C,M),D.$i=!0),M},M.locale=$,M.isDayjs=I,M.unix=function(D){return M(1e3*D)},M.en=P[x],M.Ls=P,M.p={},M}))})(dl)),dl.exports}var lF=aF();const Bt=Vt(lF);var fl={exports:{}},cF=fl.exports,Xx;function uF(){return Xx||(Xx=1,(function(e,t){(function(n,o){e.exports=o()})(cF,(function(){var n="week",o="year";return function(s,i,l){var a=i.prototype;a.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=l(this).startOf(o).add(1,o).date(u),p=l(this).endOf(n);if(d.isBefore(p))return 1}var h=l(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),m=this.diff(h,n,!0);return m<0?l(this).startOf("week").week():Math.ceil(m)},a.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(fl)),fl.exports}var dF=uF();const fF=Vt(dF);var pl={exports:{}},pF=pl.exports,Qx;function hF(){return Qx||(Qx=1,(function(e,t){(function(n,o){e.exports=o()})(pF,(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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,i=/\d\d/,l=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(v){this[g]=+v}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var y=v.match(/([+-]|\d\d)/g),S=60*y[1]+(+y[2]||0);return S===0?0:y[0]==="+"?-S:S})(g)}],h=function(g){var v=c[g];return v&&(v.indexOf?v:v.s.concat(v.f))},m=function(g,v){var y,S=c.meridiem;if(S){for(var w=1;w<=24;w+=1)if(g.indexOf(S(w,0,v))>-1){y=w>12;break}}else y=g===(v?"pm":"PM");return y},b={A:[a,function(g){this.afternoon=m(g,!1)}],a:[a,function(g){this.afternoon=m(g,!0)}],Q:[s,function(g){this.month=3*(g-1)+1}],S:[s,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[l,d("seconds")],ss:[l,d("seconds")],m:[l,d("minutes")],mm:[l,d("minutes")],H:[l,d("hours")],h:[l,d("hours")],HH:[l,d("hours")],hh:[l,d("hours")],D:[l,d("day")],DD:[i,d("day")],Do:[a,function(g){var v=c.ordinal,y=g.match(/\d+/);if(this.day=y[0],v)for(var S=1;S<=31;S+=1)v(S).replace(/\[|\]/g,"")===g&&(this.day=S)}],w:[l,d("week")],ww:[i,d("week")],M:[l,d("month")],MM:[i,d("month")],MMM:[a,function(g){var v=h("months"),y=(h("monthsShort")||v.map((function(S){return S.slice(0,3)}))).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[a,function(g){var v=h("months").indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function f(g){var v,y;v=g,y=c&&c.formats;for(var S=(g=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(M,k,C){var N=C&&C.toUpperCase();return k||y[C]||n[C]||y[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,j,F){return j||F.slice(1)}))}))).match(o),w=S.length,x=0;x<w;x+=1){var P=S[x],T=b[P],I=T&&T[0],$=T&&T[1];S[x]=$?{regex:I,parser:$}:P.replace(/^\[|\]$/g,"")}return function(M){for(var k={},C=0,N=0;C<w;C+=1){var D=S[C];if(typeof D=="string")N+=D.length;else{var j=D.regex,F=D.parser,W=M.slice(N),Y=j.exec(W)[0];F.call(k,Y),M=M.replace(Y,"")}}return(function(H){var L=H.afternoon;if(L!==void 0){var E=H.hours;L?E<12&&(H.hours+=12):E===12&&(H.hours=0),delete H.afternoon}})(k),k}}return function(g,v,y){y.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var S=v.prototype,w=S.parse;S.parse=function(x){var P=x.date,T=x.utc,I=x.args;this.$u=T;var $=I[1];if(typeof $=="string"){var M=I[2]===!0,k=I[3]===!0,C=M||k,N=I[2];k&&(N=I[2]),c=this.$locale(),!M&&N&&(c=y.Ls[N]),this.$d=(function(W,Y,H,L){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*W);var E=f(Y)(W),q=E.year,z=E.month,R=E.day,A=E.hours,U=E.minutes,X=E.seconds,se=E.milliseconds,te=E.zone,J=E.week,B=new Date,V=R||(q||z?1:B.getDate()),Q=q||B.getFullYear(),G=0;q&&!z||(G=z>0?z-1:B.getMonth());var ne,ae=A||0,re=U||0,ce=X||0,be=se||0;return te?new Date(Date.UTC(Q,G,V,ae,re,ce,be+60*te.offset*1e3)):H?new Date(Date.UTC(Q,G,V,ae,re,ce,be)):(ne=new Date(Q,G,V,ae,re,ce,be),J&&(ne=L(ne).week(J).toDate()),ne)}catch{return new Date("")}})(P,$,T,y),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),C&&P!=this.format($)&&(this.$d=new Date("")),c={}}else if($ instanceof Array)for(var D=$.length,j=1;j<=D;j+=1){I[1]=$[j-1];var F=y.apply(this,I);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}j===D&&(this.$d=new Date(""))}else w.call(this,x)}}}))})(pl)),pl.exports}var mF=hF();const yF=Vt(mF);var hl={exports:{}},gF=hl.exports,Jx;function bF(){return Jx||(Jx=1,(function(e,t){(function(n,o){e.exports=o()})(gF,(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(o,s,i){var l=s.prototype,a=l.format;i.en.formats=n,l.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(p,h){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(m,b,f){var g=f&&f.toUpperCase();return b||h[f]||n[f]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,y,S){return y||S.slice(1)}))}))})(c,u===void 0?{}:u);return a.call(this,d)}}}))})(hl)),hl.exports}var vF=bF();const SF=Vt(vF);var ml={exports:{}},xF=ml.exports,Zx;function wF(){return Zx||(Zx=1,(function(e,t){(function(n,o){e.exports=o()})(xF,(function(){return function(n,o,s){o.prototype.isBetween=function(i,l,a,c){var u=s(i),d=s(l),p=(c=c||"()")[0]==="(",h=c[1]===")";return(p?this.isAfter(u,a):!this.isBefore(u,a))&&(h?this.isBefore(d,a):!this.isAfter(d,a))||(p?this.isBefore(u,a):!this.isAfter(u,a))&&(h?this.isAfter(d,a):!this.isBefore(d,a))}}}))})(ml)),ml.exports}var CF=wF();const PF=Vt(CF);var yl={exports:{}},TF=yl.exports,ew;function OF(){return ew||(ew=1,(function(e,t){(function(n,o){e.exports=o()})(TF,(function(){return function(n,o){var s=o.prototype,i=s.format;s.format=function(l){var a=this,c=this.$locale();if(!this.isValid())return i.bind(this)(l);var u=this.$utils(),d=(l||"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(p){switch(p){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return c.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return c.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),p==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return p}}));return i.bind(this)(d)}}}))})(yl)),yl.exports}var EF=OF();const kF=Vt(EF);Bt.extend(SF),Bt.extend(fF),Bt.extend(PF),Bt.extend(kF);const _F={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"},RF={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",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},wp=["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(`
190
+ `),tw=["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(`
191
+ `);class IF{isMUIAdapter=!0;isTimezoneCompatible=!0;lib="dayjs";escapedCharacters={start:"[",end:"]"};formatTokenMap=_F;constructor({locale:t,formats:n}={}){this.locale=t,this.formats=K({},RF,n),Bt.extend(yF)}setLocaleToValue=t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)};hasUTCPlugin=()=>typeof Bt.utc<"u";hasTimezonePlugin=()=>typeof Bt.tz<"u";isSame=(t,n,o)=>{const s=this.setTimezone(n,this.getTimezone(t));return t.format(o)===s.format(o)};cleanTimezone=t=>{switch(t){case"default":return;case"system":return Bt.tz.guess();default:return t}};createSystemDate=t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Bt.tz.guess();o==="UTC"?n=Bt(t):n=Bt.tz(t,o)}else n=Bt(t);return this.setLocaleToValue(n)};createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(wp);return this.setLocaleToValue(Bt.utc(t))};createTZDate=(t,n)=>{if(!this.hasUTCPlugin())throw new Error(wp);if(!this.hasTimezonePlugin())throw new Error(tw);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(Bt(t).tz(this.cleanTimezone(n),o))};getLocaleFormats=()=>{const t=Bt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&Rx(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),o=t.en),o.formats};adjustOffset=t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t};date=(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n);getInvalidDate=()=>Bt(new Date("Invalid date"));getTimezone=t=>{if(this.hasTimezonePlugin()){const n=t.$x?.$timezone;if(n)return n}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"};setTimezone=(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(wp);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(tw)}return this.setLocaleToValue(Bt.tz(t,this.cleanTimezone(n)))};toJsDate=t=>t.toDate();parse=(t,n)=>t===""?null:Bt(t,n,this.locale,!0);getCurrentLocaleCode=()=>this.locale||"en";is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||"");expandFormat=t=>{const n=this.getLocaleFormats(),o=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,l,a)=>l||a.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,i,l)=>{const a=l&&l.toUpperCase();return i||n[l]||o(n[a])})};isValid=t=>t==null?!1:t.isValid();format=(t,n)=>this.formatByString(t,this.formats[n]);formatByString=(t,n)=>this.setLocaleToValue(t).format(n);formatNumber=t=>t;isEqual=(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime();isSameYear=(t,n)=>this.isSame(t,n,"YYYY");isSameMonth=(t,n)=>this.isSame(t,n,"YYYY-MM");isSameDay=(t,n)=>this.isSame(t,n,"YYYY-MM-DD");isSameHour=(t,n)=>t.isSame(n,"hour");isAfter=(t,n)=>t>n;isAfterYear=(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year");isAfterDay=(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day");isBefore=(t,n)=>t<n;isBeforeYear=(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year");isBeforeDay=(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day");isWithinRange=(t,[n,o])=>t>=n&&t<=o;startOfYear=t=>this.adjustOffset(t.startOf("year"));startOfMonth=t=>this.adjustOffset(t.startOf("month"));startOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week"));startOfDay=t=>this.adjustOffset(t.startOf("day"));endOfYear=t=>this.adjustOffset(t.endOf("year"));endOfMonth=t=>this.adjustOffset(t.endOf("month"));endOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week"));endOfDay=t=>this.adjustOffset(t.endOf("day"));addYears=(t,n)=>this.adjustOffset(t.add(n,"year"));addMonths=(t,n)=>this.adjustOffset(t.add(n,"month"));addWeeks=(t,n)=>this.adjustOffset(t.add(n,"week"));addDays=(t,n)=>this.adjustOffset(t.add(n,"day"));addHours=(t,n)=>this.adjustOffset(t.add(n,"hour"));addMinutes=(t,n)=>this.adjustOffset(t.add(n,"minute"));addSeconds=(t,n)=>this.adjustOffset(t.add(n,"second"));getYear=t=>t.year();getMonth=t=>t.month();getDate=t=>t.date();getHours=t=>t.hour();getMinutes=t=>t.minute();getSeconds=t=>t.second();getMilliseconds=t=>t.millisecond();setYear=(t,n)=>this.adjustOffset(t.set("year",n));setMonth=(t,n)=>this.adjustOffset(t.set("month",n));setDate=(t,n)=>this.adjustOffset(t.set("date",n));setHours=(t,n)=>this.adjustOffset(t.set("hour",n));setMinutes=(t,n)=>this.adjustOffset(t.set("minute",n));setSeconds=(t,n)=>this.adjustOffset(t.set("second",n));setMilliseconds=(t,n)=>this.adjustOffset(t.set("millisecond",n));getDaysInMonth=t=>t.daysInMonth();getWeekArray=t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let s=0,i=n;const l=[];for(;i<o;){const a=Math.floor(s/7);l[a]=l[a]||[],l[a].push(i),i=this.addDays(i,1),s+=1}return l};getWeekNumber=t=>t.week();getDayOfWeek(t){return t.day()+1}getYearRange=([t,n])=>{const o=this.startOfYear(t),s=this.endOfYear(n),i=[];let l=o;for(;this.isBefore(l,s);)i.push(l),l=this.addYears(l,1);return i}}const $F=e=>{const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,valid:l,error:a,onChangeValidate:c}=Zt(e);return Ge.useEffect(()=>{o(n.key,t,n,i)},[]),_.jsx(Ya,{dateAdapter:IF,children:_.jsx(xp,{label:n.title&&s(n.title),value:i?Bt(i):null,onChange:u=>{const d=u?u.toISOString():"";c(null,d)},disabled:n.readonly,slotProps:{textField:{helperText:(a||n.description)&&s(a||n.description),error:!l,placeholder:n.placeholder&&s(n.placeholder),fullWidth:!0,required:n.required,style:n.style,...n.otherProps}},...n.otherProps})})},DF=Pt(_.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"}),"CheckBoxOutlineBlank"),MF=Pt(_.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"}),"CheckBox"),NF=Pt(_.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"}),"IndeterminateCheckBox");function jF(e){return Me("MuiCheckbox",e)}const Cp=De("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),AF=e=>{const{classes:t,indeterminate:n,color:o,size:s}=e,i={root:["root",n&&"indeterminate",`color${we(o)}`,`size${we(s)}`]},l=$e(i,jF,t);return{...t,...l}},FF=ie(kf,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${we(n.size)}`],n.color!=="default"&&t[`color${we(n.color)}`]]}})(Xe(({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(zt()).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(zt()).map(([t])=>({props:{color:t},style:{[`&.${Cp.checked}, &.${Cp.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Cp.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),VF=_.jsx(MF,{}),LF=_.jsx(DF,{}),BF=_.jsx(NF,{}),nw=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:s=VF,color:i="primary",icon:l=LF,indeterminate:a=!1,indeterminateIcon:c=BF,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:m={},slotProps:b={},...f}=o,g=a?c:l,v=a?c:s,y={...o,disableRipple:p,color:i,indeterminate:a,size:d},S=AF(y),w=b.input??u,[x,P]=ot("root",{ref:n,elementType:FF,className:Ce(S.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:b,...f},ownerState:y,additionalProps:{type:"checkbox",icon:O.cloneElement(g,{fontSize:g.props.fontSize??d}),checkedIcon:O.cloneElement(v,{fontSize:v.props.fontSize??d}),disableRipple:p,slots:m,slotProps:{input:Tv(typeof w=="function"?w(y):w,{"data-indeterminate":a})}}});return _.jsx(x,{...P,classes:S})});process.env.NODE_ENV!=="production"&&(nw.propTypes={checked:r.bool,checkedIcon:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),defaultChecked:r.bool,disabled:r.bool,disableRipple:r.bool,icon:r.node,id:r.string,indeterminate:r.bool,indeterminateIcon:r.node,inputProps:r.object,onChange:r.func,required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});function qF(e){const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,onChangeValidate:l}=Zt(e),{key:a}=n;return o(a,t,n,i),_.jsx(Of,{row:!0,children:_.jsx(Tf,{className:n.className,label:n.title&&s(n.title),control:_.jsx(nw,{name:n.key.slice(-1)[0],value:n.key.slice(-1)[0],checked:i||!1,disabled:n.readonly,onChange:l}),...n.otherProps})})}const zF=e=>{const{form:{description:t,variant:n,align:o,color:s,noWrap:i,paragraph:l,otherProps:a},localization:{getLocalizedString:c}}=e;return _.jsx(Nn,{variant:n,align:o,color:s,noWrap:i,component:l?"p":"div",gutterBottom:!!l,...a,children:c(t)})};function UF(e){return Me("MuiCard",e)}De("MuiCard",["root"]);const WF=e=>{const{classes:t}=e;return $e({root:["root"]},UF,t)},HF=ie(Cr,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),rw=O.forwardRef(function(t,n){const o=Je({props:t,name:"MuiCard"}),{className:s,raised:i=!1,...l}=o,a={...o,raised:i},c=WF(a);return _.jsx(HF,{className:Ce(c.root,s),elevation:i?8:void 0,ref:n,ownerState:a,...l})});process.env.NODE_ENV!=="production"&&(rw.propTypes={children:r.node,classes:r.object,className:r.string,raised:vn(r.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const YF=Pt(_.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"}),"Close"),Fs="ArrayComponent",Qn={arrayItem:`${Fs}-arrayItem`,deleteItemButton:`${Fs}-deleteItemButton`,addButton:`${Fs}-addButton`,elementsContainer:`${Fs}-elementsContainer`,title:`${Fs}-title`},KF=sa("div")(({theme:e})=>({[`& .${Qn.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${Qn.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${Qn.addButton}`]:{marginLeft:e.spacing()},[`& .${Qn.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${Qn.title}`]:{margin:"auto 0"}}));let ow=1;const gl=Symbol("_SCHEMAFORM_ITEM_ID"),sw=e=>{let t=null;return e&&typeof e=="object"&&Array.isArray(e)?t=[...e]:e&&typeof e=="object"&&!e[gl]&&(t={...e}),t?(Object.defineProperty(t,gl,{enumerable:!1,writable:!0}),ow+=1,t[gl]=ow,t):e},GF=e=>t=>{t.key&&(t.key[t.key.indexOf("")]=e)},XF=(e,t)=>{const n=Xs(e);return n.arrayIndex=t,$n.traverseForm(n,GF(t)),n},iw=e=>{const{form:t,builder:n,model:o,mapper:s,onChange:i,setDefault:l,options:a,localization:{getLocalizedString:c}}=e,{value:u,onChangeValidate:d}=Zt(e),p=(u||[]).map(sw);Ge.useEffect(()=>{l(t.key,o,t,u)},[]),Ge.useEffect(()=>{t.startEmpty!==!0&&p.length===0&&h()},[]);const h=()=>{let g;if(t&&t.schema&&t.schema.items){const{items:y}=t.schema;y.type&&y.type.indexOf("object")!==-1?(g={},(!a||a.setSchemaDefaults!==!1)&&(g=typeof y.default<"u"?y.default:g,g&&$n.traverseSchema(y,(S,w)=>{typeof S.default<"u"&&$n.selectOrSet(w,g,S.default)}))):(y.type&&y.type.indexOf("array")!==-1&&(g=[]),(!a||a.setSchemaDefaults!==!1)&&(g=y.default||g))}const v=[...p];sw(g),v.push(g),d(null,v)},m=g=>()=>{const v=[...p];v.splice(g,1),d(null,v)},b=()=>{const g=t.AddButton||(v=>_.jsx(Xn,{className:Qn.addButton,variant:"contained",color:"primary",...v}));return _.jsx(g,{onClick:h,children:t.add||"Add"})},f=[];for(let g=0;g<p.length;g+=1){const v=p[g],y=t.items.map((S,w)=>{const x=XF(S,g);return n(x,o,w,s,i,n,{arrayIndex:g})});f.push(_.jsxs(rw,{className:Qn.arrayItem,children:[_.jsx("div",{className:Qn.elementsContainer,children:y}),_.jsx(Tr,{onClick:m(g),className:Qn.deleteItemButton,size:"large",children:_.jsx(YF,{fontSize:"small"})})]},v&&v[gl]||g))}return _.jsxs(KF,{children:[_.jsxs("div",{style:{display:"flex"},children:[_.jsx(vr,{required:t.required,className:Qn.title,children:t.title&&c(t.title)}),b()]}),_.jsx("div",{children:f})]})};var Pp={exports:{}};var aw;function QF(){return aw||(aw=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var a=arguments[l];a&&(i=s(i,o(a)))}return i}function o(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var a in i)t.call(i,a)&&i[a]&&(l=s(l,a));return l}function s(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Pp)),Pp.exports}var JF=QF();const ZF=Vt(JF),lw="FieldSet",cw={root:`${lw}-root`,fields:`${lw}-fields`},eV=sa(Vr)(({theme:e})=>({[`&.${cw.root}`]:{marginTop:e.spacing(1)},[`& .${cw.fields}`]:{marginLeft:e.spacing(1)}})),uw=({form:e,mapper:t,builder:n,model:o,onChange:s,classes:i,localization:{getLocalizedString:l}})=>{const a=e.items.map((u,d)=>n(u,o,d,t,s,n)),c=ZF(i.root,e.htmlClass);return _.jsxs(eV,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[_.jsx(vr,{component:"legend",required:e.required,children:e.title&&l(e.title)}),_.jsx("div",{className:i.fields,children:a})]})},tV={padding:"20px"},nV=e=>{const{form:{title:t,yesLabel:n,noLabel:o,clearButtonLabel:s,required:i,key:l},model:a,setDefault:c,localization:{getLocalizedString:u}}=e,{value:d,onChangeValidate:p}=Zt(e);Ge.useEffect(()=>{c(l,a,e.form,d)},[]);const h=d==="yes",m=d==="no";return _.jsx(Rr.Card,{children:_.jsxs("div",{style:tV,children:[_.jsx(vr,{required:i,children:t&&u(t)}),_.jsx("br",{}),_.jsxs(Rr.FormGroup,{children:[_.jsx(Rr.FormControlLabel,{control:_.jsx(Rr.Checkbox,{onClick:b=>{p(b,"yes")},checked:h}),label:n?u(n):"Yes"}),_.jsx(Rr.FormControlLabel,{control:_.jsx(Rr.Checkbox,{onClick:b=>{p(b,"no")},checked:m}),label:o?u(o):"No"})]}),d==="yes"||d==="no"?_.jsx(Rr.Button,{id:"temp",variant:"text",color:"primary",onClick:b=>p(b,"unanswered"),children:s?u(s):"clear response"}):""]})})};var Tp={exports:{}};var dw;function rV(){return dw||(dw=1,(function(e,t){(function(n,o){e.exports=o(Ge)})(self,(n=>(()=>{var o={4184:(a,c)=>{var u;(function(){var d={}.hasOwnProperty;function p(){for(var h=[],m=0;m<arguments.length;m++){var b=arguments[m];if(b){var f=typeof b;if(f==="string"||f==="number")h.push(b);else if(Array.isArray(b)){if(b.length){var g=p.apply(null,b);g&&h.push(g)}}else if(f==="object")if(b.toString===Object.prototype.toString)for(var v in b)d.call(b,v)&&b[v]&&h.push(v);else h.push(b.toString())}}return h.join(" ")}a.exports?(p.default=p,a.exports=p):(u=(function(){return p}).apply(c,[]))===void 0||(a.exports=u)})()},8552:(a,c,u)=>{var d=u(852)(u(5639),"DataView");a.exports=d},1989:(a,c,u)=>{var d=u(1789),p=u(401),h=u(7667),m=u(1327),b=u(1866);function f(g){var v=-1,y=g==null?0:g.length;for(this.clear();++v<y;){var S=g[v];this.set(S[0],S[1])}}f.prototype.clear=d,f.prototype.delete=p,f.prototype.get=h,f.prototype.has=m,f.prototype.set=b,a.exports=f},8407:(a,c,u)=>{var d=u(7040),p=u(4125),h=u(2117),m=u(7518),b=u(4705);function f(g){var v=-1,y=g==null?0:g.length;for(this.clear();++v<y;){var S=g[v];this.set(S[0],S[1])}}f.prototype.clear=d,f.prototype.delete=p,f.prototype.get=h,f.prototype.has=m,f.prototype.set=b,a.exports=f},7071:(a,c,u)=>{var d=u(852)(u(5639),"Map");a.exports=d},3369:(a,c,u)=>{var d=u(4785),p=u(1285),h=u(6e3),m=u(9916),b=u(5265);function f(g){var v=-1,y=g==null?0:g.length;for(this.clear();++v<y;){var S=g[v];this.set(S[0],S[1])}}f.prototype.clear=d,f.prototype.delete=p,f.prototype.get=h,f.prototype.has=m,f.prototype.set=b,a.exports=f},3818:(a,c,u)=>{var d=u(852)(u(5639),"Promise");a.exports=d},8525:(a,c,u)=>{var d=u(852)(u(5639),"Set");a.exports=d},8668:(a,c,u)=>{var d=u(3369),p=u(619),h=u(2385);function m(b){var f=-1,g=b==null?0:b.length;for(this.__data__=new d;++f<g;)this.add(b[f])}m.prototype.add=m.prototype.push=p,m.prototype.has=h,a.exports=m},6384:(a,c,u)=>{var d=u(8407),p=u(7465),h=u(3779),m=u(7599),b=u(4758),f=u(4309);function g(v){var y=this.__data__=new d(v);this.size=y.size}g.prototype.clear=p,g.prototype.delete=h,g.prototype.get=m,g.prototype.has=b,g.prototype.set=f,a.exports=g},2705:(a,c,u)=>{var d=u(5639).Symbol;a.exports=d},1149:(a,c,u)=>{var d=u(5639).Uint8Array;a.exports=d},577:(a,c,u)=>{var d=u(852)(u(5639),"WeakMap");a.exports=d},4963:a=>{a.exports=function(c,u){for(var d=-1,p=c==null?0:c.length,h=0,m=[];++d<p;){var b=c[d];u(b,d,c)&&(m[h++]=b)}return m}},4636:(a,c,u)=>{var d=u(2545),p=u(5694),h=u(1469),m=u(4144),b=u(5776),f=u(6719),g=Object.prototype.hasOwnProperty;a.exports=function(v,y){var S=h(v),w=!S&&p(v),x=!S&&!w&&m(v),P=!S&&!w&&!x&&f(v),T=S||w||x||P,I=T?d(v.length,String):[],$=I.length;for(var M in v)!y&&!g.call(v,M)||T&&(M=="length"||x&&(M=="offset"||M=="parent")||P&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||b(M,$))||I.push(M);return I}},2488:a=>{a.exports=function(c,u){for(var d=-1,p=u.length,h=c.length;++d<p;)c[h+d]=u[d];return c}},2908:a=>{a.exports=function(c,u){for(var d=-1,p=c==null?0:c.length;++d<p;)if(u(c[d],d,c))return!0;return!1}},8470:(a,c,u)=>{var d=u(7813);a.exports=function(p,h){for(var m=p.length;m--;)if(d(p[m][0],h))return m;return-1}},8866:(a,c,u)=>{var d=u(2488),p=u(1469);a.exports=function(h,m,b){var f=m(h);return p(h)?f:d(f,b(h))}},4239:(a,c,u)=>{var d=u(2705),p=u(9607),h=u(2333),m=d?d.toStringTag:void 0;a.exports=function(b){return b==null?b===void 0?"[object Undefined]":"[object Null]":m&&m in Object(b)?p(b):h(b)}},9454:(a,c,u)=>{var d=u(4239),p=u(7005);a.exports=function(h){return p(h)&&d(h)=="[object Arguments]"}},939:(a,c,u)=>{var d=u(2492),p=u(7005);a.exports=function h(m,b,f,g,v){return m===b||(m==null||b==null||!p(m)&&!p(b)?m!=m&&b!=b:d(m,b,f,g,h,v))}},2492:(a,c,u)=>{var d=u(6384),p=u(7114),h=u(8351),m=u(6096),b=u(4160),f=u(1469),g=u(4144),v=u(6719),y="[object Arguments]",S="[object Array]",w="[object Object]",x=Object.prototype.hasOwnProperty;a.exports=function(P,T,I,$,M,k){var C=f(P),N=f(T),D=C?S:b(P),j=N?S:b(T),F=(D=D==y?w:D)==w,W=(j=j==y?w:j)==w,Y=D==j;if(Y&&g(P)){if(!g(T))return!1;C=!0,F=!1}if(Y&&!F)return k||(k=new d),C||v(P)?p(P,T,I,$,M,k):h(P,T,D,I,$,M,k);if(!(1&I)){var H=F&&x.call(P,"__wrapped__"),L=W&&x.call(T,"__wrapped__");if(H||L){var E=H?P.value():P,q=L?T.value():T;return k||(k=new d),M(E,q,I,$,k)}}return!!Y&&(k||(k=new d),m(P,T,I,$,M,k))}},8458:(a,c,u)=>{var d=u(3560),p=u(5346),h=u(3218),m=u(346),b=/^\[object .+?Constructor\]$/,f=Function.prototype,g=Object.prototype,v=f.toString,y=g.hasOwnProperty,S=RegExp("^"+v.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a.exports=function(w){return!(!h(w)||p(w))&&(d(w)?S:b).test(m(w))}},8749:(a,c,u)=>{var d=u(4239),p=u(1780),h=u(7005),m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1,a.exports=function(b){return h(b)&&p(b.length)&&!!m[d(b)]}},280:(a,c,u)=>{var d=u(5726),p=u(6916),h=Object.prototype.hasOwnProperty;a.exports=function(m){if(!d(m))return p(m);var b=[];for(var f in Object(m))h.call(m,f)&&f!="constructor"&&b.push(f);return b}},2545:a=>{a.exports=function(c,u){for(var d=-1,p=Array(c);++d<c;)p[d]=u(d);return p}},1717:a=>{a.exports=function(c){return function(u){return c(u)}}},4757:a=>{a.exports=function(c,u){return c.has(u)}},4429:(a,c,u)=>{var d=u(5639)["__core-js_shared__"];a.exports=d},7114:(a,c,u)=>{var d=u(8668),p=u(2908),h=u(4757);a.exports=function(m,b,f,g,v,y){var S=1&f,w=m.length,x=b.length;if(w!=x&&!(S&&x>w))return!1;var P=y.get(m),T=y.get(b);if(P&&T)return P==b&&T==m;var I=-1,$=!0,M=2&f?new d:void 0;for(y.set(m,b),y.set(b,m);++I<w;){var k=m[I],C=b[I];if(g)var N=S?g(C,k,I,b,m,y):g(k,C,I,m,b,y);if(N!==void 0){if(N)continue;$=!1;break}if(M){if(!p(b,(function(D,j){if(!h(M,j)&&(k===D||v(k,D,f,g,y)))return M.push(j)}))){$=!1;break}}else if(k!==C&&!v(k,C,f,g,y)){$=!1;break}}return y.delete(m),y.delete(b),$}},8351:(a,c,u)=>{var d=u(2705),p=u(1149),h=u(7813),m=u(7114),b=u(8776),f=u(1814),g=d?d.prototype:void 0,v=g?g.valueOf:void 0;a.exports=function(y,S,w,x,P,T,I){switch(w){case"[object DataView]":if(y.byteLength!=S.byteLength||y.byteOffset!=S.byteOffset)return!1;y=y.buffer,S=S.buffer;case"[object ArrayBuffer]":return!(y.byteLength!=S.byteLength||!T(new p(y),new p(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return h(+y,+S);case"[object Error]":return y.name==S.name&&y.message==S.message;case"[object RegExp]":case"[object String]":return y==S+"";case"[object Map]":var $=b;case"[object Set]":var M=1&x;if($||($=f),y.size!=S.size&&!M)return!1;var k=I.get(y);if(k)return k==S;x|=2,I.set(y,S);var C=m($(y),$(S),x,P,T,I);return I.delete(y),C;case"[object Symbol]":if(v)return v.call(y)==v.call(S)}return!1}},6096:(a,c,u)=>{var d=u(8234),p=Object.prototype.hasOwnProperty;a.exports=function(h,m,b,f,g,v){var y=1&b,S=d(h),w=S.length;if(w!=d(m).length&&!y)return!1;for(var x=w;x--;){var P=S[x];if(!(y?P in m:p.call(m,P)))return!1}var T=v.get(h),I=v.get(m);if(T&&I)return T==m&&I==h;var $=!0;v.set(h,m),v.set(m,h);for(var M=y;++x<w;){var k=h[P=S[x]],C=m[P];if(f)var N=y?f(C,k,P,m,h,v):f(k,C,P,h,m,v);if(!(N===void 0?k===C||g(k,C,b,f,v):N)){$=!1;break}M||(M=P=="constructor")}if($&&!M){var D=h.constructor,j=m.constructor;D==j||!("constructor"in h)||!("constructor"in m)||typeof D=="function"&&D instanceof D&&typeof j=="function"&&j instanceof j||($=!1)}return v.delete(h),v.delete(m),$}},1957:(a,c,u)=>{var d=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;a.exports=d},8234:(a,c,u)=>{var d=u(8866),p=u(9551),h=u(3674);a.exports=function(m){return d(m,h,p)}},5050:(a,c,u)=>{var d=u(7019);a.exports=function(p,h){var m=p.__data__;return d(h)?m[typeof h=="string"?"string":"hash"]:m.map}},852:(a,c,u)=>{var d=u(8458),p=u(7801);a.exports=function(h,m){var b=p(h,m);return d(b)?b:void 0}},9607:(a,c,u)=>{var d=u(2705),p=Object.prototype,h=p.hasOwnProperty,m=p.toString,b=d?d.toStringTag:void 0;a.exports=function(f){var g=h.call(f,b),v=f[b];try{f[b]=void 0;var y=!0}catch{}var S=m.call(f);return y&&(g?f[b]=v:delete f[b]),S}},9551:(a,c,u)=>{var d=u(4963),p=u(479),h=Object.prototype.propertyIsEnumerable,m=Object.getOwnPropertySymbols,b=m?function(f){return f==null?[]:(f=Object(f),d(m(f),(function(g){return h.call(f,g)})))}:p;a.exports=b},4160:(a,c,u)=>{var d=u(8552),p=u(7071),h=u(3818),m=u(8525),b=u(577),f=u(4239),g=u(346),v="[object Map]",y="[object Promise]",S="[object Set]",w="[object WeakMap]",x="[object DataView]",P=g(d),T=g(p),I=g(h),$=g(m),M=g(b),k=f;(d&&k(new d(new ArrayBuffer(1)))!=x||p&&k(new p)!=v||h&&k(h.resolve())!=y||m&&k(new m)!=S||b&&k(new b)!=w)&&(k=function(C){var N=f(C),D=N=="[object Object]"?C.constructor:void 0,j=D?g(D):"";if(j)switch(j){case P:return x;case T:return v;case I:return y;case $:return S;case M:return w}return N}),a.exports=k},7801:a=>{a.exports=function(c,u){return c?.[u]}},1789:(a,c,u)=>{var d=u(4536);a.exports=function(){this.__data__=d?d(null):{},this.size=0}},401:a=>{a.exports=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u}},7667:(a,c,u)=>{var d=u(4536),p=Object.prototype.hasOwnProperty;a.exports=function(h){var m=this.__data__;if(d){var b=m[h];return b==="__lodash_hash_undefined__"?void 0:b}return p.call(m,h)?m[h]:void 0}},1327:(a,c,u)=>{var d=u(4536),p=Object.prototype.hasOwnProperty;a.exports=function(h){var m=this.__data__;return d?m[h]!==void 0:p.call(m,h)}},1866:(a,c,u)=>{var d=u(4536);a.exports=function(p,h){var m=this.__data__;return this.size+=this.has(p)?0:1,m[p]=d&&h===void 0?"__lodash_hash_undefined__":h,this}},5776:a=>{var c=/^(?:0|[1-9]\d*)$/;a.exports=function(u,d){var p=typeof u;return!!(d=d??9007199254740991)&&(p=="number"||p!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<d}},7019:a=>{a.exports=function(c){var u=typeof c;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?c!=="__proto__":c===null}},5346:(a,c,u)=>{var d,p=u(4429),h=(d=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"";a.exports=function(m){return!!h&&h in m}},5726:a=>{var c=Object.prototype;a.exports=function(u){var d=u&&u.constructor;return u===(typeof d=="function"&&d.prototype||c)}},7040:a=>{a.exports=function(){this.__data__=[],this.size=0}},4125:(a,c,u)=>{var d=u(8470),p=Array.prototype.splice;a.exports=function(h){var m=this.__data__,b=d(m,h);return!(b<0||(b==m.length-1?m.pop():p.call(m,b,1),--this.size,0))}},2117:(a,c,u)=>{var d=u(8470);a.exports=function(p){var h=this.__data__,m=d(h,p);return m<0?void 0:h[m][1]}},7518:(a,c,u)=>{var d=u(8470);a.exports=function(p){return d(this.__data__,p)>-1}},4705:(a,c,u)=>{var d=u(8470);a.exports=function(p,h){var m=this.__data__,b=d(m,p);return b<0?(++this.size,m.push([p,h])):m[b][1]=h,this}},4785:(a,c,u)=>{var d=u(1989),p=u(8407),h=u(7071);a.exports=function(){this.size=0,this.__data__={hash:new d,map:new(h||p),string:new d}}},1285:(a,c,u)=>{var d=u(5050);a.exports=function(p){var h=d(this,p).delete(p);return this.size-=h?1:0,h}},6e3:(a,c,u)=>{var d=u(5050);a.exports=function(p){return d(this,p).get(p)}},9916:(a,c,u)=>{var d=u(5050);a.exports=function(p){return d(this,p).has(p)}},5265:(a,c,u)=>{var d=u(5050);a.exports=function(p,h){var m=d(this,p),b=m.size;return m.set(p,h),this.size+=m.size==b?0:1,this}},8776:a=>{a.exports=function(c){var u=-1,d=Array(c.size);return c.forEach((function(p,h){d[++u]=[h,p]})),d}},4536:(a,c,u)=>{var d=u(852)(Object,"create");a.exports=d},6916:(a,c,u)=>{var d=u(5569)(Object.keys,Object);a.exports=d},1167:(a,c,u)=>{a=u.nmd(a);var d=u(1957),p=c&&!c.nodeType&&c,h=p&&a&&!a.nodeType&&a,m=h&&h.exports===p&&d.process,b=(function(){try{return h&&h.require&&h.require("util").types||m&&m.binding&&m.binding("util")}catch{}})();a.exports=b},2333:a=>{var c=Object.prototype.toString;a.exports=function(u){return c.call(u)}},5569:a=>{a.exports=function(c,u){return function(d){return c(u(d))}}},5639:(a,c,u)=>{var d=u(1957),p=typeof self=="object"&&self&&self.Object===Object&&self,h=d||p||Function("return this")();a.exports=h},619:a=>{a.exports=function(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},2385:a=>{a.exports=function(c){return this.__data__.has(c)}},1814:a=>{a.exports=function(c){var u=-1,d=Array(c.size);return c.forEach((function(p){d[++u]=p})),d}},7465:(a,c,u)=>{var d=u(8407);a.exports=function(){this.__data__=new d,this.size=0}},3779:a=>{a.exports=function(c){var u=this.__data__,d=u.delete(c);return this.size=u.size,d}},7599:a=>{a.exports=function(c){return this.__data__.get(c)}},4758:a=>{a.exports=function(c){return this.__data__.has(c)}},4309:(a,c,u)=>{var d=u(8407),p=u(7071),h=u(3369);a.exports=function(m,b){var f=this.__data__;if(f instanceof d){var g=f.__data__;if(!p||g.length<199)return g.push([m,b]),this.size=++f.size,this;f=this.__data__=new h(g)}return f.set(m,b),this.size=f.size,this}},346:a=>{var c=Function.prototype.toString;a.exports=function(u){if(u!=null){try{return c.call(u)}catch{}try{return u+""}catch{}}return""}},7813:a=>{a.exports=function(c,u){return c===u||c!=c&&u!=u}},5694:(a,c,u)=>{var d=u(9454),p=u(7005),h=Object.prototype,m=h.hasOwnProperty,b=h.propertyIsEnumerable,f=d((function(){return arguments})())?d:function(g){return p(g)&&m.call(g,"callee")&&!b.call(g,"callee")};a.exports=f},1469:a=>{var c=Array.isArray;a.exports=c},8612:(a,c,u)=>{var d=u(3560),p=u(1780);a.exports=function(h){return h!=null&&p(h.length)&&!d(h)}},4144:(a,c,u)=>{a=u.nmd(a);var d=u(5639),p=u(5062),h=c&&!c.nodeType&&c,m=h&&a&&!a.nodeType&&a,b=m&&m.exports===h?d.Buffer:void 0,f=(b?b.isBuffer:void 0)||p;a.exports=f},8446:(a,c,u)=>{var d=u(939);a.exports=function(p,h){return d(p,h)}},3560:(a,c,u)=>{var d=u(4239),p=u(3218);a.exports=function(h){if(!p(h))return!1;var m=d(h);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[object Proxy]"}},1780:a=>{a.exports=function(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}},3218:a=>{a.exports=function(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}},7005:a=>{a.exports=function(c){return c!=null&&typeof c=="object"}},6719:(a,c,u)=>{var d=u(8749),p=u(1717),h=u(1167),m=h&&h.isTypedArray,b=m?p(m):d;a.exports=b},3674:(a,c,u)=>{var d=u(4636),p=u(280),h=u(8612);a.exports=function(m){return h(m)?d(m):p(m)}},8306:(a,c,u)=>{var d=u(3369);function p(h,m){if(typeof h!="function"||m!=null&&typeof m!="function")throw new TypeError("Expected a function");var b=function(){var f=arguments,g=m?m.apply(this,f):f[0],v=b.cache;if(v.has(g))return v.get(g);var y=h.apply(this,f);return b.cache=v.set(g,y)||v,y};return b.cache=new(p.Cache||d),b}p.Cache=d,a.exports=p},479:a=>{a.exports=function(){return[]}},5062:a=>{a.exports=function(){return!1}},2703:(a,c,u)=>{var d=u(414);function p(){}function h(){}h.resetWarningCache=p,a.exports=function(){function m(g,v,y,S,w,x){if(x!==d){var P=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw P.name="Invariant Violation",P}}function b(){return m}m.isRequired=m;var f={array:m,bigint:m,bool:m,func:m,number:m,object:m,string:m,symbol:m,any:m,arrayOf:b,element:m,elementType:m,instanceOf:b,node:m,objectOf:b,oneOf:b,oneOfType:b,shape:b,exact:b,checkPropTypes:h,resetWarningCache:p};return f.PropTypes=f,f}},5697:(a,c,u)=>{a.exports=u(2703)()},414:a=>{a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:a=>{a.exports=n}},s={};function i(a){var c=s[a];if(c!==void 0)return c.exports;var u=s[a]={id:a,loaded:!1,exports:{}};return o[a](u,u.exports,i),u.loaded=!0,u.exports}i.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return i.d(c,{a:c}),c},i.d=(a,c)=>{for(var u in c)i.o(c,u)&&!i.o(a,u)&&Object.defineProperty(a,u,{enumerable:!0,get:c[u]})},i.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),i.o=(a,c)=>Object.prototype.hasOwnProperty.call(a,c),i.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.nmd=a=>(a.paths=[],a.children||(a.children=[]),a);var l={};return(()=>{i.r(l),i.d(l,{default:()=>mn,expandNodesToLevel:()=>gt});var a=i(4184),c=i.n(a),u=i(8446),d=i.n(u),p=i(8306),h=i.n(p);let m=(de=21)=>crypto.getRandomValues(new Uint8Array(de)).reduce(((Z,he)=>Z+((he&=63)<36?he.toString(36):he<62?(he-26).toString(36).toUpperCase():he>62?"-":"_")),"");var b=i(5697),f=i.n(b),g=i(9787),v=i.n(g);function y(de){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},y(de)}var S=["children","title"];function w(){return w=Object.assign?Object.assign.bind():function(de){for(var Z=1;Z<arguments.length;Z++){var he=arguments[Z];for(var le in he)Object.prototype.hasOwnProperty.call(he,le)&&(de[le]=he[le])}return de},w.apply(this,arguments)}function x(de,Z){if(!(de instanceof Z))throw new TypeError("Cannot call a class as a function")}function P(de,Z){for(var he=0;he<Z.length;he++){var le=Z[he];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(de,le.key,le)}}function T(de,Z){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(he,le){return he.__proto__=le,he},T(de,Z)}function I(de,Z){if(Z&&(y(Z)==="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(he){if(he===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he})(de)}function $(de){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},$(de)}function M(de,Z,he){return Z in de?Object.defineProperty(de,Z,{value:he,enumerable:!0,configurable:!0,writable:!0}):de[Z]=he,de}var k=(function(de){(function(pe,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(ee&&ee.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),ee&&T(pe,ee)})(Pe,de);var Z,he,le,Ie,Se=(le=Pe,Ie=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var pe,ee=$(le);if(Ie){var ue=$(this).constructor;pe=Reflect.construct(ee,arguments,ue)}else pe=ee.apply(this,arguments);return I(this,pe)});function Pe(){return x(this,Pe),Se.apply(this,arguments)}return Z=Pe,(he=[{key:"render",value:function(){var pe=this.props,ee=pe.children,ue=pe.title,xe=(function(Re,He){if(Re==null)return{};var Rt,Et,dt=(function(Kt,Qr){if(Kt==null)return{};var _n,Ln,ge={},me=Object.keys(Kt);for(Ln=0;Ln<me.length;Ln++)_n=me[Ln],Qr.indexOf(_n)>=0||(ge[_n]=Kt[_n]);return ge})(Re,He);if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(Re);for(Et=0;Et<kt.length;Et++)Rt=kt[Et],He.indexOf(Rt)>=0||Object.prototype.propertyIsEnumerable.call(Re,Rt)&&(dt[Rt]=Re[Rt])}return dt})(pe,S);return v().createElement("button",w({"aria-label":ue,title:ue,type:"button"},xe),ee)}}])&&P(Z.prototype,he),Object.defineProperty(Z,"prototype",{writable:!1}),Pe})(v().PureComponent);M(k,"propTypes",{children:f().node.isRequired,title:f().string}),M(k,"defaultProps",{title:null});const C=k,N={ALL:"all",PARENT:"parent",LEAF:"leaf"};function D(de){this.message=de,this.stack=Error().stack}D.prototype=Object.create(Error.prototype),D.prototype.name="CheckboxTreeError";const j=D;function F(de,Z){var he=Object.keys(de);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(de);Z&&(le=le.filter((function(Ie){return Object.getOwnPropertyDescriptor(de,Ie).enumerable}))),he.push.apply(he,le)}return he}function W(de,Z,he){return Z in de?Object.defineProperty(de,Z,{value:he,enumerable:!0,configurable:!0,writable:!0}):de[Z]=he,de}function Y(de,Z){if(!(de instanceof Z))throw new TypeError("Cannot call a class as a function")}function H(de,Z){for(var he=0;he<Z.length;he++){var le=Z[he];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(de,le.key,le)}}var L=N;const E=(function(){function de(le){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Y(this,de),this.props=le,this.flatNodes=Ie}var Z,he;return Z=de,he=[{key:"setProps",value:function(le){this.props=le}},{key:"clone",value:function(){var le=this,Ie={};return Object.keys(this.flatNodes).forEach((function(Se){var Pe=le.flatNodes[Se];Ie[Se]=(function(pe){for(var ee=1;ee<arguments.length;ee++){var ue=arguments[ee]!=null?arguments[ee]:{};ee%2?F(Object(ue),!0).forEach((function(xe){W(pe,xe,ue[xe])})):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(ue)):F(Object(ue)).forEach((function(xe){Object.defineProperty(pe,xe,Object.getOwnPropertyDescriptor(ue,xe))}))}return pe})({},Pe)})),new de(this.props,Ie)}},{key:"getNode",value:function(le){return this.flatNodes[le]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(le){var Ie=this,Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(le)&&le.length!==0){var pe=this.props,ee=pe.disabled,ue=pe.noCascade;le.forEach((function(xe,Re){var He=Ie.nodeHasChildren(xe);if(Ie.flatNodes[xe.value]!==void 0)throw new j("Duplicate value '".concat(xe.value,"' detected. All node values must be unique."));Ie.flatNodes[xe.value]={label:xe.label,value:xe.value,children:xe.children,parent:Se,isChild:Se.value!==void 0,isParent:He,isLeaf:!He,showCheckbox:xe.showCheckbox===void 0||xe.showCheckbox,disabled:Ie.getDisabledState(xe,Se,ee,ue),treeDepth:Pe,index:Re},Ie.flattenNodes(xe.children,xe,Pe+1)}))}}},{key:"nodeHasChildren",value:function(le){return Array.isArray(le.children)}},{key:"getDisabledState",value:function(le,Ie,Se,Pe){return!!Se||!(Pe||!Ie.disabled)||!!le.disabled}},{key:"deserializeLists",value:function(le){var Ie=this,Se=["checked","expanded"];Object.keys(this.flatNodes).forEach((function(Pe){Se.forEach((function(pe){Ie.flatNodes[Pe][pe]=!1}))})),Se.forEach((function(Pe){le[Pe].forEach((function(pe){Ie.flatNodes[pe]!==void 0&&(Ie.flatNodes[pe][Pe]=!0)}))}))}},{key:"serializeList",value:function(le){var Ie=this,Se=[];return Object.keys(this.flatNodes).forEach((function(Pe){Ie.flatNodes[Pe][le]&&Se.push(Pe)})),Se}},{key:"expandAllNodes",value:function(le){var Ie=this;return Object.keys(this.flatNodes).forEach((function(Se){Ie.flatNodes[Se].isParent&&(Ie.flatNodes[Se].expanded=le)})),this}},{key:"toggleChecked",value:function(le,Ie,Se,Pe){var pe=this,ee=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],ue=this.flatNodes[le.value],xe=[L.PARENT,L.ALL].indexOf(Se)>-1,Re=[L.LEAF,L.ALL].indexOf(Se)>-1;if(ue.isLeaf||Pe){if(le.disabled)return this;this.toggleNode(le.value,"checked",Ie)}else(xe||ue.children.length===0)&&this.toggleNode(le.value,"checked",Ie),Re&&ue.children.forEach((function(He){pe.toggleChecked(He,Ie,Se,Pe,!1)}));return ee&&!Pe&&ue.isChild&&xe&&this.toggleParentStatus(ue.parent,Se),this}},{key:"toggleParentStatus",value:function(le,Ie){var Se=this.flatNodes[le.value];Se.isChild?(Ie===L.ALL&&this.toggleNode(le.value,"checked",this.isEveryChildChecked(Se)),this.toggleParentStatus(Se.parent,Ie)):this.toggleNode(le.value,"checked",this.isEveryChildChecked(Se))}},{key:"isEveryChildChecked",value:function(le){var Ie=this;return le.children.every((function(Se){return Ie.getNode(Se.value).checked}))}},{key:"toggleNode",value:function(le,Ie,Se){return this.flatNodes[le][Ie]=Se,this}}],he&&H(Z.prototype,he),Object.defineProperty(Z,"prototype",{writable:!1}),de})();function q(de){return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},q(de)}function z(){return z=Object.assign?Object.assign.bind():function(de){for(var Z=1;Z<arguments.length;Z++){var he=arguments[Z];for(var le in he)Object.prototype.hasOwnProperty.call(he,le)&&(de[le]=he[le])}return de},z.apply(this,arguments)}function R(de,Z){var he=Object.keys(de);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(de);Z&&(le=le.filter((function(Ie){return Object.getOwnPropertyDescriptor(de,Ie).enumerable}))),he.push.apply(he,le)}return he}function A(de,Z){if(!(de instanceof Z))throw new TypeError("Cannot call a class as a function")}function U(de,Z){for(var he=0;he<Z.length;he++){var le=Z[he];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(de,le.key,le)}}function X(de,Z){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(he,le){return he.__proto__=le,he},X(de,Z)}function se(de,Z){if(Z&&(q(Z)==="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(he){if(he===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he})(de)}function te(de){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},te(de)}function J(de,Z,he){return Z in de?Object.defineProperty(de,Z,{value:he,enumerable:!0,configurable:!0,writable:!0}):de[Z]=he,de}var B=(function(de){(function(pe,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(ee&&ee.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),ee&&X(pe,ee)})(Pe,de);var Z,he,le,Ie,Se=(le=Pe,Ie=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var pe,ee=te(le);if(Ie){var ue=te(this).constructor;pe=Reflect.construct(ee,arguments,ue)}else pe=ee.apply(this,arguments);return se(this,pe)});function Pe(){return A(this,Pe),Se.apply(this,arguments)}return Z=Pe,he=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var pe=this.props.indeterminate;this.checkbox.indeterminate=pe}},{key:"render",value:function(){var pe=this,ee=(function(ue){for(var xe=1;xe<arguments.length;xe++){var Re=arguments[xe]!=null?arguments[xe]:{};xe%2?R(Object(Re),!0).forEach((function(He){J(ue,He,Re[He])})):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Re)):R(Object(Re)).forEach((function(He){Object.defineProperty(ue,He,Object.getOwnPropertyDescriptor(Re,He))}))}return ue})({},this.props);return delete ee.indeterminate,v().createElement("input",z({},ee,{ref:function(ue){pe.checkbox=ue},type:"checkbox"}))}}],he&&U(Z.prototype,he),Object.defineProperty(Z,"prototype",{writable:!1}),Pe})(v().PureComponent);J(B,"propTypes",{indeterminate:f().bool}),J(B,"defaultProps",{indeterminate:!1});const V=B,Q=f().shape({check:f().node,uncheck:f().node,halfCheck:f().node,expandClose:f().node,expandOpen:f().node,expandAll:f().node,collapseAll:f().node,parentClose:f().node,parentOpen:f().node,leaf:f().node}),G=f().shape({collapseAll:f().string.isRequired,expandAll:f().string.isRequired,toggle:f().string.isRequired});function ne(de){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},ne(de)}function ae(de,Z){for(var he=0;he<Z.length;he++){var le=Z[he];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(de,le.key,le)}}function re(de,Z){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(he,le){return he.__proto__=le,he},re(de,Z)}function ce(de,Z){if(Z&&(ne(Z)==="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(de)}function be(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function oe(de){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},oe(de)}function fe(de,Z,he){return Z in de?Object.defineProperty(de,Z,{value:he,enumerable:!0,configurable:!0,writable:!0}):de[Z]=he,de}var ve=(function(de){(function(pe,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(ee&&ee.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),ee&&re(pe,ee)})(Pe,de);var Z,he,le,Ie,Se=(le=Pe,Ie=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var pe,ee=oe(le);if(Ie){var ue=oe(this).constructor;pe=Reflect.construct(ee,arguments,ue)}else pe=ee.apply(this,arguments);return ce(this,pe)});function Pe(pe){var ee;return(function(ue,xe){if(!(ue instanceof xe))throw new TypeError("Cannot call a class as a function")})(this,Pe),(ee=Se.call(this,pe)).onCheck=ee.onCheck.bind(be(ee)),ee.onCheckboxKeyPress=ee.onCheckboxKeyPress.bind(be(ee)),ee.onCheckboxKeyUp=ee.onCheckboxKeyUp.bind(be(ee)),ee.onClick=ee.onClick.bind(be(ee)),ee.onExpand=ee.onExpand.bind(be(ee)),ee}return Z=Pe,(he=[{key:"onCheck",value:function(){var pe=this.props,ee=pe.value;(0,pe.onCheck)({value:ee,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(pe){pe.which===32&&pe.preventDefault()}},{key:"onCheckboxKeyUp",value:function(pe){var ee=pe.keyCode;[13,32].includes(ee)&&this.onCheck()}},{key:"onClick",value:function(){var pe=this.props,ee=pe.expandOnClick,ue=pe.isParent,xe=pe.value,Re=pe.onClick;ue&&ee&&this.onExpand(),Re({value:xe,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var pe=this.props,ee=pe.expanded,ue=pe.value;(0,pe.onExpand)({value:ue,expanded:!ee})}},{key:"getCheckState",value:function(pe){var ee=pe.toggle,ue=this.props,xe=ue.checked,Re=ue.optimisticToggle;return!(xe!==0||!ee)||xe===1&&!ee||xe===2&&Re}},{key:"renderCollapseButton",value:function(){var pe=this.props,ee=pe.expandDisabled,ue=pe.isLeaf,xe=pe.lang;return ue?v().createElement("span",{className:"rct-collapse"},v().createElement("span",{className:"rct-icon"})):v().createElement(C,{className:"rct-collapse rct-collapse-btn",disabled:ee,title:xe.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var pe=this.props,ee=pe.expanded,ue=pe.icons,xe=ue.expandClose,Re=ue.expandOpen;return ee?Re:xe}},{key:"renderCheckboxIcon",value:function(){var pe=this.props,ee=pe.checked,ue=pe.icons,xe=ue.uncheck,Re=ue.check,He=ue.halfCheck;return ee===0?xe:ee===1?Re:He}},{key:"renderNodeIcon",value:function(){var pe=this.props,ee=pe.expanded,ue=pe.icon,xe=pe.icons,Re=xe.leaf,He=xe.parentClose,Rt=xe.parentOpen,Et=pe.isLeaf;return ue!==null?ue:Et?Re:ee?Rt:He}},{key:"renderBareLabel",value:function(pe){var ee=this.props,ue=ee.onClick,xe=ee.title,Re=ue!==null;return v().createElement("span",{className:"rct-bare-label",title:xe},Re?v().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},pe):pe)}},{key:"renderCheckboxLabel",value:function(pe){var ee=this.props,ue=ee.checked,xe=ee.disabled,Re=ee.title,He=ee.treeId,Rt=ee.value,Et=ee.onClick!==null,dt="".concat(He,"-").concat(String(Rt).split(" ").join("_")),kt=[v().createElement("label",{key:0,htmlFor:dt,title:Re},v().createElement(V,{checked:ue===1,disabled:xe,id:dt,indeterminate:ue===2,onClick:this.onCheck,onChange:function(){}}),v().createElement("span",{"aria-checked":ue===1,"aria-disabled":xe,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),Et?null:pe)];return Et&&kt.push(v().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},pe)),kt}},{key:"renderLabel",value:function(){var pe=this.props,ee=pe.label,ue=pe.showCheckbox,xe=[pe.showNodeIcon?v().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,v().createElement("span",{key:1,className:"rct-title"},ee)];return ue?this.renderCheckboxLabel(xe):this.renderBareLabel(xe)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var pe=this.props,ee=pe.className,ue=pe.disabled,xe=pe.expanded,Re=pe.isLeaf,He=c()({"rct-node":!0,"rct-node-leaf":Re,"rct-node-parent":!Re,"rct-node-expanded":!Re&&xe,"rct-node-collapsed":!Re&&!xe,"rct-disabled":ue},ee);return v().createElement("li",{className:He},v().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&ae(Z.prototype,he),Object.defineProperty(Z,"prototype",{writable:!1}),Pe})(v().PureComponent);fe(ve,"propTypes",{checked:f().number.isRequired,disabled:f().bool.isRequired,expandDisabled:f().bool.isRequired,expanded:f().bool.isRequired,icons:Q.isRequired,isLeaf:f().bool.isRequired,isParent:f().bool.isRequired,label:f().node.isRequired,lang:G.isRequired,optimisticToggle:f().bool.isRequired,showNodeIcon:f().bool.isRequired,treeId:f().string.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,onCheck:f().func.isRequired,onExpand:f().func.isRequired,children:f().node,className:f().string,expandOnClick:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string,onClick:f().func}),fe(ve,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const ke=ve,je=f().oneOfType([f().arrayOf(f().string),f().arrayOf(f().number)]);function Ue(de,Z){var he=Object.keys(de);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(de);Z&&(le=le.filter((function(Ie){return Object.getOwnPropertyDescriptor(de,Ie).enumerable}))),he.push.apply(he,le)}return he}function Ve(de){for(var Z=1;Z<arguments.length;Z++){var he=arguments[Z]!=null?arguments[Z]:{};Z%2?Ue(Object(he),!0).forEach((function(le){Ze(de,le,he[le])})):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(he)):Ue(Object(he)).forEach((function(le){Object.defineProperty(de,le,Object.getOwnPropertyDescriptor(he,le))}))}return de}function Ze(de,Z,he){return Z in de?Object.defineProperty(de,Z,{value:he,enumerable:!0,configurable:!0,writable:!0}):de[Z]=he,de}var Qe={label:f().node.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,disabled:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string};const Ae=f().oneOfType([f().shape(Qe),f().shape(Ve(Ve({},Qe),{},{children:f().arrayOf(Qe).isRequired}))]);function Ne(de){return Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ne(de)}function Te(de,Z){var he=Object.keys(de);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(de);Z&&(le=le.filter((function(Ie){return Object.getOwnPropertyDescriptor(de,Ie).enumerable}))),he.push.apply(he,le)}return he}function Le(de){for(var Z=1;Z<arguments.length;Z++){var he=arguments[Z]!=null?arguments[Z]:{};Z%2?Te(Object(he),!0).forEach((function(le){Oe(de,le,he[le])})):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(he)):Te(Object(he)).forEach((function(le){Object.defineProperty(de,le,Object.getOwnPropertyDescriptor(he,le))}))}return de}function Ye(de,Z){for(var he=0;he<Z.length;he++){var le=Z[he];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(de,le.key,le)}}function Ke(de,Z){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(he,le){return he.__proto__=le,he},Ke(de,Z)}function lt(de,Z){if(Z&&(Ne(Z)==="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pt(de)}function pt(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function Be(de){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},Be(de)}function Oe(de,Z,he){return Z in de?Object.defineProperty(de,Z,{value:he,enumerable:!0,configurable:!0,writable:!0}):de[Z]=he,de}var Fe=(function(de){(function(ee,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(ue&&ue.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),ue&&Ke(ee,ue)})(pe,de);var Z,he,le,Ie,Se,Pe=(Ie=pe,Se=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var ee,ue=Be(Ie);if(Se){var xe=Be(this).constructor;ee=Reflect.construct(ue,arguments,xe)}else ee=ue.apply(this,arguments);return lt(this,ee)});function pe(ee){var ue;(function(Re,He){if(!(Re instanceof He))throw new TypeError("Cannot call a class as a function")})(this,pe),ue=Pe.call(this,ee);var xe=new E(ee);return xe.flattenNodes(ee.nodes),xe.deserializeLists({checked:ee.checked,expanded:ee.expanded}),ue.state={id:ee.id||"rct-".concat(m()),model:xe,prevProps:ee},ue.onCheck=ue.onCheck.bind(pt(ue)),ue.onExpand=ue.onExpand.bind(pt(ue)),ue.onNodeClick=ue.onNodeClick.bind(pt(ue)),ue.onExpandAll=ue.onExpandAll.bind(pt(ue)),ue.onCollapseAll=ue.onCollapseAll.bind(pt(ue)),ue.combineMemorized=h()((function(Re,He){return Le(Le({},Re),He)})).bind(pt(ue)),ue}return Z=pe,he=[{key:"onCheck",value:function(ee){var ue=this.props,xe=ue.checkModel,Re=ue.noCascade,He=ue.onCheck,Rt=this.state.model.clone(),Et=Rt.getNode(ee.value);Rt.toggleChecked(ee,ee.checked,xe,Re),He(Rt.serializeList("checked"),Le(Le({},Et),ee))}},{key:"onExpand",value:function(ee){var ue=this.props.onExpand,xe=this.state.model.clone(),Re=xe.getNode(ee.value);xe.toggleNode(ee.value,"expanded",ee.expanded),ue(xe.serializeList("expanded"),Le(Le({},Re),ee))}},{key:"onNodeClick",value:function(ee){(0,this.props.onClick)(Le(Le({},this.state.model.getNode(ee.value)),ee))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var ee=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],ue=this.props.onExpand;ue(this.state.model.clone().expandAllNodes(ee).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(ee,ue){var xe=this.state.model.getNode(ee.value);return xe.isLeaf||ue||ee.children.length===0?xe.checked?1:0:this.isEveryChildChecked(ee)?1:this.isSomeChildChecked(ee)?2:0}},{key:"isEveryChildChecked",value:function(ee){var ue=this;return ee.children.every((function(xe){return ue.state.model.getNode(xe.value).checkState===1}))}},{key:"isSomeChildChecked",value:function(ee){var ue=this;return ee.children.some((function(xe){return ue.state.model.getNode(xe.value).checkState>0}))}},{key:"renderTreeNodes",value:function(ee){var ue=this,xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=this.props,He=Re.expandDisabled,Rt=Re.expandOnClick,Et=Re.icons,dt=Re.lang,kt=Re.noCascade,Kt=Re.onClick,Qr=Re.onlyLeafCheckboxes,_n=Re.optimisticToggle,Ln=Re.showNodeTitle,ge=Re.showNodeIcon,me=this.state,_e=me.id,ze=me.model,We=pe.defaultProps.icons,It=ee.map((function(ct){var Gt=ct.value,Xt=ze.getNode(ct.value),Sl=Xt.isParent?ue.renderTreeNodes(ct.children,ct):null;Xt.checkState=ue.determineShallowCheckState(ct,kt);var xl=Qr?Xt.isLeaf:Xt.showCheckbox;return!xe.value||ze.getNode(xe.value).expanded?v().createElement(ke,{key:Gt,checked:Xt.checkState,className:ct.className,disabled:Xt.disabled,expandDisabled:He,expandOnClick:Rt,expanded:Xt.expanded,icon:ct.icon,icons:ue.combineMemorized(We,Et),label:ct.label,lang:dt,optimisticToggle:_n,isLeaf:Xt.isLeaf,isParent:Xt.isParent,showCheckbox:xl,showNodeIcon:ge,title:Ln?ct.title||ct.label:ct.title,treeId:_e,value:ct.value,onCheck:ue.onCheck,onClick:Kt&&ue.onNodeClick,onExpand:ue.onExpand},Sl):null}));return v().createElement("ol",null,It)}},{key:"renderExpandAll",value:function(){var ee=this.props,ue=ee.icons,xe=ue.expandAll,Re=ue.collapseAll,He=ee.lang;return ee.showExpandAll?v().createElement("div",{className:"rct-options"},v().createElement(C,{className:"rct-option rct-option-expand-all",title:He.expandAll,onClick:this.onExpandAll},xe),v().createElement(C,{className:"rct-option rct-option-collapse-all",title:He.collapseAll,onClick:this.onCollapseAll},Re)):null}},{key:"renderHiddenInput",value:function(){var ee=this.props,ue=ee.name,xe=ee.nameAsArray;return ue===void 0?null:xe?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var ee=this.props,ue=ee.checked,xe=ee.name;return ue.map((function(Re){var He="".concat(xe,"[]");return v().createElement("input",{key:Re,name:He,type:"hidden",value:Re})}))}},{key:"renderJoinedHiddenInput",value:function(){var ee=this.props,ue=ee.checked,xe=ee.name,Re=ue.join(",");return v().createElement("input",{name:xe,type:"hidden",value:Re})}},{key:"render",value:function(){var ee,ue=this.props,xe=ue.direction,Re=ue.disabled,He=ue.iconsClass,Rt=ue.nodes,Et=ue.nativeCheckboxes,dt=this.state.id,kt=this.renderTreeNodes(Rt),Kt=c()((Oe(ee={"react-checkbox-tree":!0,"rct-disabled":Re},"rct-icons-".concat(He),!0),Oe(ee,"rct-native-display",Et),Oe(ee,"rct-direction-rtl",xe==="rtl"),ee));return v().createElement("div",{className:Kt,id:dt},this.renderExpandAll(),this.renderHiddenInput(),kt)}}],le=[{key:"getDerivedStateFromProps",value:function(ee,ue){var xe=ue.model,Re=ue.prevProps,He=ee.disabled,Rt=ee.id,Et=ee.nodes,dt=Le(Le({},ue),{},{prevProps:ee});return xe.setProps(ee),d()(Re.nodes,Et)&&Re.disabled===He||(xe.reset(),xe.flattenNodes(Et)),Rt!==null&&(dt=Le(Le({},dt),{},{id:Rt})),xe.deserializeLists({checked:ee.checked,expanded:ee.expanded}),dt}}],he&&Ye(Z.prototype,he),le&&Ye(Z,le),Object.defineProperty(Z,"prototype",{writable:!1}),pe})(v().Component);function tt(de){return(function(Z){if(Array.isArray(Z))return _t(Z)})(de)||(function(Z){if(typeof Symbol<"u"&&Z[Symbol.iterator]!=null||Z["@@iterator"]!=null)return Array.from(Z)})(de)||(function(Z,he){if(Z){if(typeof Z=="string")return _t(Z,he);var le=Object.prototype.toString.call(Z).slice(8,-1);return le==="Object"&&Z.constructor&&(le=Z.constructor.name),le==="Map"||le==="Set"?Array.from(Z):le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le)?_t(Z,he):void 0}})(de)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
192
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function _t(de,Z){(Z==null||Z>de.length)&&(Z=de.length);for(var he=0,le=new Array(Z);he<Z;he++)le[he]=de[he];return le}function gt(de,Z){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(he>Z)return[];var le=[];return de.forEach((function(Ie){Ie.children&&(le=[].concat(tt(le),[Ie.value],tt(gt(Ie.children,Z,he+1))))})),le}Oe(Fe,"propTypes",{nodes:f().arrayOf(Ae).isRequired,checkModel:f().oneOf([N.LEAF,N.ALL]),checked:je,direction:f().string,disabled:f().bool,expandDisabled:f().bool,expandOnClick:f().bool,expanded:je,icons:Q,iconsClass:f().string,id:f().string,lang:G,name:f().string,nameAsArray:f().bool,nativeCheckboxes:f().bool,noCascade:f().bool,onlyLeafCheckboxes:f().bool,optimisticToggle:f().bool,showExpandAll:f().bool,showNodeIcon:f().bool,showNodeTitle:f().bool,onCheck:f().func,onClick:f().func,onExpand:f().func}),Oe(Fe,"defaultProps",{checkModel:N.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:v().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:v().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:v().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:v().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:v().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:v().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:v().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:v().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:v().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:v().createElement("span",{className:"rct-icon rct-icon-leaf"})},iconsClass:"fa4",id:null,lang:{collapseAll:"Collapse all",expandAll:"Expand all",toggle:"Toggle"},name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showExpandAll:!1,showNodeIcon:!0,showNodeTitle:!1,onCheck:function(){},onClick:null,onExpand:function(){}});const mn=Fe})(),l})()))})(Tp)),Tp.exports}var oV=rV();const sV=Vt(oV),iV=Pt(_.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),aV=Pt(_.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank"),fw=Pt(_.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-2m-2 10H7v-2h10z"}),"IndeterminateCheckBox"),lV=Pt(_.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),cV=Pt(_.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),uV=Pt(_.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),dV=Pt(_.jsx("path",{d:"M10 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"}),"Folder"),fV=Pt(_.jsx("path",{d:"M20 6h-8l-2-2H4c-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-2m0 12H4V8h16z"}),"FolderOpen"),pV=Pt(_.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");var Vs={},pw;function hV(){if(pw)return Vs;pw=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.parse=l,Vs.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,i=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function l(h,m){const b=new i,f=h.length;if(f<2)return b;const g=m?.decode||d;let v=0;do{const y=h.indexOf("=",v);if(y===-1)break;const S=h.indexOf(";",v),w=S===-1?f:S;if(y>w){v=h.lastIndexOf(";",y-1)+1;continue}const x=a(h,v,y),P=c(h,y,x),T=h.slice(x,P);if(b[T]===void 0){let I=a(h,y+1,w),$=c(h,w,I);const M=g(h.slice(I,$));b[T]=M}v=w+1}while(v<f);return b}function a(h,m,b){do{const f=h.charCodeAt(m);if(f!==32&&f!==9)return m}while(++m<b);return b}function c(h,m,b){for(;m>b;){const f=h.charCodeAt(--m);if(f!==32&&f!==9)return m+1}return b}function u(h,m,b){const f=b?.encode||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const g=f(m);if(!t.test(g))throw new TypeError(`argument val is invalid: ${m}`);let v=h+"="+g;if(!b)return v;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);v+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);v+="; Domain="+b.domain}if(b.path){if(!o.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);v+="; Path="+b.path}if(b.expires){if(!p(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);v+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(v+="; HttpOnly"),b.secure&&(v+="; Secure"),b.partitioned&&(v+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":v+="; Priority=Low";break;case"medium":v+="; Priority=Medium";break;case"high":v+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"none":v+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return v}function d(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function p(h){return s.call(h)==="[object Date]"}return Vs}var bl=hV();function mV(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function yV(e){return typeof e=="string"?bl.parse(e):typeof e=="object"&&e!==null?e:{}}function Op(e,t={}){const n=gV(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function gV(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class hw{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=bl.parse(document.cookie),this._checkChanges(s)};const o=typeof document>"u"?"":document.cookie;this.cookies=yV(t||o),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=mV()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(o=>{t[o]!==this.cookies[o]&&this._emitChange({name:o,value:Op(this.cookies[o])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Op(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let o in this.cookies)n[o]=Op(this.cookies[o],t);return n}set(t,n,o){o?o=Object.assign(Object.assign({},this.defaultSetOptions),o):o=this.defaultSetOptions;const s=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=bl.serialize(t,s,o)),this._emitChange({name:t,value:n,options:o})}remove(t,n){const o=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=bl.serialize(t,"",o)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}function bV(e){const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,valid:l,error:a,onChangeValidate:c}=Zt(e),{key:u,title:d,action:p}=n;Ge.useEffect(()=>{o(u,t,n,i)},[]);const[h,m]=Ge.useState([]),[b,f]=Ge.useState([]),g=y=>{const S=new hw,w={"Content-Type":"application/json"};S.get("csrf")&&Object.assign(w,{"X-CSRF-TOKEN":S.get("csrf")}),fetch(y,{headers:w,credentials:"include"}).then(x=>x.ok?x.json():x.text().then(P=>{throw new Error(P)})).then(x=>{f(x)}).catch(x=>{console.error(x)})};Ge.useEffect(()=>{p&&p.url&&g(p.url)},[]);const v={check:_.jsx(iV,{className:"rct-icon rct-icon-check"}),uncheck:_.jsx(aV,{className:"rct-icon rct-icon-uncheck"}),halfCheck:_.jsx(fw,{className:"rct-icon rct-icon-half-check"}),expandClose:_.jsx(lV,{className:"rct-icon rct-icon-expand-close"}),expandOpen:_.jsx(cV,{className:"rct-icon rct-icon-expand-open"}),expandAll:_.jsx(uV,{className:"rct-icon rct-icon-expand-all"}),collapseAll:_.jsx(fw,{className:"rct-icon rct-icon-collapse-all"}),parentClose:_.jsx(dV,{className:"rct-icon rct-icon-parent-close"}),parentOpen:_.jsx(fV,{className:"rct-icon rct-icon-parent-open"}),leaf:_.jsx(pV,{className:"rct-icon rct-icon-leaf-close"})};return _.jsxs(Ge.Fragment,{children:[_.jsx(vr,{required:n.required,children:d&&s(d)}),_.jsx(sV,{nodes:b,checked:i||[],expanded:h,onCheck:y=>c(null,y),onExpand:y=>m(y),icons:v,noCascade:!0}),l?null:_.jsx(uo,{error:!0,children:a})]})}var vl={exports:{}},vV=vl.exports,mw;function SV(){return mw||(mw=1,(function(e){(function(t,n){e.exports=n()})(vV,function(){var t=Object.prototype.toString;function n(p,h){return p==null?!1:Object.prototype.hasOwnProperty.call(p,h)}function o(p){if(!p||l(p)&&p.length===0)return!0;if(typeof p!="string"){for(var h in p)if(n(p,h))return!1;return!0}return!1}function s(p){return t.call(p)}function i(p){return typeof p=="object"&&s(p)==="[object Object]"}var l=Array.isArray||function(p){return t.call(p)==="[object Array]"};function a(p){return typeof p=="boolean"||s(p)==="[object Boolean]"}function c(p){var h=parseInt(p);return h.toString()===p?h:p}function u(p){p=p||{};var h=function(v){return Object.keys(h).reduce(function(y,S){return S==="create"||typeof h[S]=="function"&&(y[S]=h[S].bind(h,v)),y},{})},m;p.includeInheritedProps?m=function(){return!0}:m=function(v,y){return typeof y=="number"&&Array.isArray(v)||n(v,y)};function b(v,y){if(m(v,y))return v[y]}var f;p.includeInheritedProps?f=function(v,y){typeof y!="string"&&typeof y!="number"&&(y=String(y));var S=b(v,y);if(y==="__proto__"||y==="prototype"||y==="constructor"&&typeof S=="function")throw new Error("For security reasons, object's magic properties cannot be set");return S}:f=function(v,y){return b(v,y)};function g(v,y,S,w){if(typeof y=="number"&&(y=[y]),!y||y.length===0)return v;if(typeof y=="string")return g(v,y.split(".").map(c),S,w);var x=y[0],P=f(v,x);return y.length===1?((P===void 0||!w)&&(v[x]=S),P):(P===void 0&&(typeof y[1]=="number"?v[x]=[]:v[x]={}),g(v[x],y.slice(1),S,w))}return h.has=function(v,y){if(typeof y=="number"?y=[y]:typeof y=="string"&&(y=y.split(".")),!y||y.length===0)return!!v;for(var S=0;S<y.length;S++){var w=c(y[S]);if(typeof w=="number"&&l(v)&&w<v.length||(p.includeInheritedProps?w in Object(v):n(v,w)))v=v[w];else return!1}return!0},h.ensureExists=function(v,y,S){return g(v,y,S,!0)},h.set=function(v,y,S,w){return g(v,y,S,w)},h.insert=function(v,y,S,w){var x=h.get(v,y);w=~~w,l(x)||(x=[],h.set(v,y,x)),x.splice(w,0,S)},h.empty=function(v,y){if(!o(y)&&v!=null){var S,w;if(S=h.get(v,y)){if(typeof S=="string")return h.set(v,y,"");if(a(S))return h.set(v,y,!1);if(typeof S=="number")return h.set(v,y,0);if(l(S))S.length=0;else if(i(S))for(w in S)m(S,w)&&delete S[w];else return h.set(v,y,null)}}},h.push=function(v,y){var S=h.get(v,y);l(S)||(S=[],h.set(v,y,S)),S.push.apply(S,Array.prototype.slice.call(arguments,2))},h.coalesce=function(v,y,S){for(var w,x=0,P=y.length;x<P;x++)if((w=h.get(v,y[x]))!==void 0)return w;return S},h.get=function(v,y,S){if(typeof y=="number"&&(y=[y]),!y||y.length===0)return v;if(v==null)return S;if(typeof y=="string")return h.get(v,y.split("."),S);var w=c(y[0]),x=f(v,w);return x===void 0?S:y.length===1?x:h.get(v[w],y.slice(1),S)},h.del=function(y,S){if(typeof S=="number"&&(S=[S]),y==null||o(S))return y;if(typeof S=="string")return h.del(y,S.split("."));var w=c(S[0]);if(f(y,w),!m(y,w))return y;if(S.length===1)l(y)?y.splice(w,1):delete y[w];else return h.del(y[w],S.slice(1));return y},h}var d=u();return d.create=u,d.withInheritedProps=u({includeInheritedProps:!0}),d})})(vl)),vl.exports}var xV=SV();const wV=Vt(xV);String.prototype.format=function(){for(var e=this,t=0;t<arguments.length;t++){var n=new RegExp("\\{"+t+"\\}","gi");e=e.replace(n,arguments[t])}return e};function CV(e){const{form:{schema:{type:t},action:n,title:o,required:s,multiple:i,disabled:l,options:a,key:c},model:u,setDefault:d}=e,{value:p,valid:h,error:m,onChangeValidate:b}=Zt(e);Ge.useEffect(()=>{d(c,u,e.form,p)},[]);const[f,g]=Ge.useState([]),{url:v,params:y}=n||{},S=y&&y.some(I=>I!=null)?y.map(I=>wV.get(u,I)):[];Ge.useEffect(()=>{const I=y?S.length>0?v.format(...S):"":v;I&&x(I)},S);const w=(I,$)=>{let M=null;t!=="array"?i?M=$.map(k=>k.id).join(","):M=$?$.id:"":i?M=$.map(k=>k.id):M=$?[$.id]:[],b(null,M)},x=I=>{if(I.includes("=undefined")||I.includes("=&")||I.endsWith("="))return;const $=new hw,M={"Content-Type":"application/json"};$.get("csrf")&&Object.assign(M,{"X-CSRF-TOKEN":$.get("csrf")}),fetch(I,{headers:M,credentials:"include"}).then(k=>k.ok?k.json():k.text().then(C=>{throw new Error(C)})).then(k=>{g(k)}).catch(k=>{console.error(k)})},P=a&&a.length>0?a:f;let T;return i?Array.isArray(p)?T=p?P.filter(I=>p.includes(I.id)):[]:T=p?P.filter(I=>(p||"").split(",").includes(I.id)):[]:Array.isArray(p)?T=p.length===1?P.find(I=>I.id===p[0]):null:T=p?P.find(I=>I.id===p):null,_.jsxs("div",{children:[_.jsx(Pf,{multiple:i,disabled:l,getOptionLabel:I=>I.label||"",value:T||(i?[]:null),onChange:w,options:P,renderInput:I=>_.jsx(hs,{...I,label:s?o+" *":o})}),h?null:_.jsx("div",{style:{color:"red"},children:m})]})}const PV=e=>{let t=e&&typeof e=="object"&&e.toISOString().slice(0,10)||e;return t||(t=""),t.length>0&&(t=new Date(t).toISOString().slice(0,10)),t};class yw extends Ge.Component{mapper={number:a_,text:mo,password:mo,textarea:l_,markdown:c_,textsuggest:xI,select:NI,taxonomy:bV,radios:d$,date:p$,timestamp:$F,checkbox:qF,help:zF,array:iw,tBoolean:nV,fieldset:uw,tuple:uw,multiselect:FI,dynaselect:CV};constructor(t){super(t),this.builder=this.builder.bind(this)}setDefault=(t,n,o,s)=>{const{onModelChange:i}=this.props,l=$n.selectOrSet(t,n);Vm(l)&&!Vm(s)&&i(t,s,o.type,o)};getLocalization=()=>{const{localization:t}=this.props;return{getLocalizedString:t&&t.getLocalizedString?t.getLocalizedString:n=>n,getLocalizedNumber:t&&t.getLocalizedNumber?t.getLocalizedNumber:n=>n,getLocalizedDate:t&&t.getLocalizedDate?t.getLocalizedDate:PV}};builder(t,n,o,s,i,l){const{errors:a,showErrors:c,evalContext:u}=this.props,d=this.mapper[t.type];if(!d||t.condition&&!$n.safeEval(t.condition,{model:n,form:t,...u}))return null;const p=t.key&&t.key.join(".")||o,h=a&&p in a?a[p]:null;return _.jsx(d,{model:n,form:t,onChange:i,setDefault:this.setDefault,mapper:s,builder:l,errorText:h,localization:this.getLocalization(),showErrors:c},p)}render(){const{schema:t,form:n,ignore:o,option:s,model:i,className:l,onModelChange:a,mapper:c}=this.props,u=$n.merge(t,n,o,s);let d=this.mapper;c&&(d=PC(this.mapper,c));const p=u.map((h,m)=>this.builder(h,i,m,d,a,this.builder));return _.jsx("div",{className:l,children:p})}}yw.defaultProps={localization:void 0,showErrors:!1},Qt.Array=iw,Qt.SchemaForm=yw,Qt.useSchemaField=Zt,Qt.utils=$n,Object.defineProperty(Qt,Symbol.toStringTag,{value:"Module"})}));
174
193
  //# sourceMappingURL=react-schema-form.umd.cjs.map