react-schema-form 1.0.18 → 1.0.20
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,27 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Ut,Ue){typeof exports=="object"&&typeof module<"u"?Ue(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"],Ue):(Ut=typeof globalThis<"u"?globalThis:Ut||self,Ue(Ut["react-schema-form"]={},Ut.React,Ut.EmotionStyled,Ut.EmotionReact,Ut["React-dom"],Ut.UiwReactMarkdownEditor,Ut.MuiMaterial))})(this,(function(Ut,Ue,Sw,Jn,Io,xw,Ir){"use strict";function _p(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 T=_p(Ue),ww=_p(Io);var qs=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 zs={exports:{}},$o={};var Rp;function Cw(){if(Rp)return $o;Rp=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 Ip;function Pw(){return Ip||(Ip=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 O: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++)h(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 h(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} />`,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
|
|
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 h(E){m(E)?E._store&&(E._store.validated=1):typeof E=="object"&&E!==null&&E.$$typeof===$&&(E._payload.status==="fulfilled"?m(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function m(E){return typeof E=="object"&&E!==null&&E.$$typeof===b}var p=Ue,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"),O=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=p.__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};p={react_stack_bottom_frame:function(E){return E()}};var F,W={},Y=p.react_stack_bottom_frame.bind(p,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 $p;function Ow(){return $p||($p=1,process.env.NODE_ENV==="production"?zs.exports=Cw():zs.exports=Pw()),zs.exports}var _=Ow(),Cl,Dp;function Tw(){if(Dp)return Cl;Dp=1;function e(){this.__data__=[],this.size=0}return Cl=e,Cl}var Pl,Mp;function Us(){if(Mp)return Pl;Mp=1;function e(t,n){return t===n||t!==t&&n!==n}return Pl=e,Pl}var Ol,Np;function Ws(){if(Np)return Ol;Np=1;var e=Us();function t(n,o){for(var s=n.length;s--;)if(e(n[s][0],o))return s;return-1}return Ol=t,Ol}var Tl,jp;function Ew(){if(jp)return Tl;jp=1;var e=Ws(),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 El,Ap;function kw(){if(Ap)return El;Ap=1;var e=Ws();function t(n){var o=this.__data__,s=e(o,n);return s<0?void 0:o[s][1]}return El=t,El}var kl,Fp;function _w(){if(Fp)return kl;Fp=1;var e=Ws();function t(n){return e(this.__data__,n)>-1}return kl=t,kl}var _l,Vp;function Rw(){if(Vp)return _l;Vp=1;var e=Ws();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 _l=t,_l}var Rl,Lp;function Hs(){if(Lp)return Rl;Lp=1;var e=Tw(),t=Ew(),n=kw(),o=_w(),s=Rw();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,Rl=i,Rl}var Il,Bp;function Iw(){if(Bp)return Il;Bp=1;var e=Hs();function t(){this.__data__=new e,this.size=0}return Il=t,Il}var $l,qp;function $w(){if(qp)return $l;qp=1;function e(t){var n=this.__data__,o=n.delete(t);return this.size=n.size,o}return $l=e,$l}var Dl,zp;function Dw(){if(zp)return Dl;zp=1;function e(t){return this.__data__.get(t)}return Dl=e,Dl}var Ml,Up;function Mw(){if(Up)return Ml;Up=1;function e(t){return this.__data__.has(t)}return Ml=e,Ml}var Nl,Wp;function Hp(){if(Wp)return Nl;Wp=1;var e=typeof qs=="object"&&qs&&qs.Object===Object&&qs;return Nl=e,Nl}var jl,Yp;function qn(){if(Yp)return jl;Yp=1;var e=Hp(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return jl=n,jl}var Al,Kp;function Fl(){if(Kp)return Al;Kp=1;var e=qn(),t=e.Symbol;return Al=t,Al}var Vl,Gp;function Nw(){if(Gp)return Vl;Gp=1;var e=Fl(),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 Vl=i,Vl}var Ll,Xp;function jw(){if(Xp)return Ll;Xp=1;var e=Object.prototype,t=e.toString;function n(o){return t.call(o)}return Ll=n,Ll}var Bl,Qp;function Mo(){if(Qp)return Bl;Qp=1;var e=Fl(),t=Nw(),n=jw(),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 Bl=l,Bl}var ql,Jp;function Zn(){if(Jp)return ql;Jp=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ql=e,ql}var zl,Zp;function Ul(){if(Zp)return zl;Zp=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 zl=l,zl}var Wl,eh;function Aw(){if(eh)return Wl;eh=1;var e=qn(),t=e["__core-js_shared__"];return Wl=t,Wl}var Hl,th;function Fw(){if(th)return Hl;th=1;var e=Aw(),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 Hl=n,Hl}var Yl,nh;function rh(){if(nh)return Yl;nh=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 Yl=n,Yl}var Kl,oh;function Vw(){if(oh)return Kl;oh=1;var e=Ul(),t=Fw(),n=Zn(),o=rh(),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 h(m){if(!n(m)||t(m))return!1;var p=e(m)?d:i;return p.test(o(m))}return Kl=h,Kl}var Gl,sh;function Lw(){if(sh)return Gl;sh=1;function e(t,n){return t?.[n]}return Gl=e,Gl}var Xl,ih;function $r(){if(ih)return Xl;ih=1;var e=Vw(),t=Lw();function n(o,s){var i=t(o,s);return e(i)?i:void 0}return Xl=n,Xl}var Ql,ah;function Jl(){if(ah)return Ql;ah=1;var e=$r(),t=qn(),n=e(t,"Map");return Ql=n,Ql}var Zl,lh;function Ys(){if(lh)return Zl;lh=1;var e=$r(),t=e(Object,"create");return Zl=t,Zl}var ec,ch;function Bw(){if(ch)return ec;ch=1;var e=Ys();function t(){this.__data__=e?e(null):{},this.size=0}return ec=t,ec}var tc,uh;function qw(){if(uh)return tc;uh=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return tc=e,tc}var nc,dh;function zw(){if(dh)return nc;dh=1;var e=Ys(),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 nc=s,nc}var rc,fh;function Uw(){if(fh)return rc;fh=1;var e=Ys(),t=Object.prototype,n=t.hasOwnProperty;function o(s){var i=this.__data__;return e?i[s]!==void 0:n.call(i,s)}return rc=o,rc}var oc,ph;function Ww(){if(ph)return oc;ph=1;var e=Ys(),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 oc=n,oc}var sc,hh;function Hw(){if(hh)return sc;hh=1;var e=Bw(),t=qw(),n=zw(),o=Uw(),s=Ww();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,sc=i,sc}var ic,mh;function Yw(){if(mh)return ic;mh=1;var e=Hw(),t=Hs(),n=Jl();function o(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ic=o,ic}var ac,yh;function Kw(){if(yh)return ac;yh=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return ac=e,ac}var lc,gh;function Ks(){if(gh)return lc;gh=1;var e=Kw();function t(n,o){var s=n.__data__;return e(o)?s[typeof o=="string"?"string":"hash"]:s.map}return lc=t,lc}var cc,bh;function Gw(){if(bh)return cc;bh=1;var e=Ks();function t(n){var o=e(this,n).delete(n);return this.size-=o?1:0,o}return cc=t,cc}var uc,vh;function Xw(){if(vh)return uc;vh=1;var e=Ks();function t(n){return e(this,n).get(n)}return uc=t,uc}var dc,Sh;function Qw(){if(Sh)return dc;Sh=1;var e=Ks();function t(n){return e(this,n).has(n)}return dc=t,dc}var fc,xh;function Jw(){if(xh)return fc;xh=1;var e=Ks();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 fc=t,fc}var pc,wh;function Zw(){if(wh)return pc;wh=1;var e=Yw(),t=Gw(),n=Xw(),o=Qw(),s=Jw();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,pc=i,pc}var hc,Ch;function eC(){if(Ch)return hc;Ch=1;var e=Hs(),t=Jl(),n=Zw(),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 hc=s,hc}var mc,Ph;function Oh(){if(Ph)return mc;Ph=1;var e=Hs(),t=Iw(),n=$w(),o=Dw(),s=Mw(),i=eC();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,mc=l,mc}var yc,Th;function Eh(){if(Th)return yc;Th=1;var e=$r(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return yc=t,yc}var gc,kh;function bc(){if(kh)return gc;kh=1;var e=Eh();function t(n,o,s){o=="__proto__"&&e?e(n,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[o]=s}return gc=t,gc}var vc,_h;function Rh(){if(_h)return vc;_h=1;var e=bc(),t=Us();function n(o,s,i){(i!==void 0&&!t(o[s],i)||i===void 0&&!(s in o))&&e(o,s,i)}return vc=n,vc}var Sc,Ih;function tC(){if(Ih)return Sc;Ih=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 Sc=e,Sc}var xc,$h;function nC(){if($h)return xc;$h=1;var e=tC(),t=e();return xc=t,xc}var No={exports:{}};No.exports;var Dh;function Mh(){return Dh||(Dh=1,(function(e,t){var n=qn(),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 h=u.length,m=a?a(h):new u.constructor(h);return u.copy(m),m}e.exports=c})(No,No.exports)),No.exports}var wc,Nh;function rC(){if(Nh)return wc;Nh=1;var e=qn(),t=e.Uint8Array;return wc=t,wc}var Cc,jh;function Pc(){if(jh)return Cc;jh=1;var e=rC();function t(n){var o=new n.constructor(n.byteLength);return new e(o).set(new e(n)),o}return Cc=t,Cc}var Oc,Ah;function Fh(){if(Ah)return Oc;Ah=1;var e=Pc();function t(n,o){var s=o?e(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}return Oc=t,Oc}var Tc,Vh;function Lh(){if(Vh)return Tc;Vh=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 Ec,Bh;function oC(){if(Bh)return Ec;Bh=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 Ec=n,Ec}var kc,qh;function zh(){if(qh)return kc;qh=1;function e(t,n){return function(o){return t(n(o))}}return kc=e,kc}var _c,Uh;function Rc(){if(Uh)return _c;Uh=1;var e=zh(),t=e(Object.getPrototypeOf,Object);return _c=t,_c}var Ic,Wh;function $c(){if(Wh)return Ic;Wh=1;var e=Object.prototype;function t(n){var o=n&&n.constructor,s=typeof o=="function"&&o.prototype||e;return n===s}return Ic=t,Ic}var Dc,Hh;function Yh(){if(Hh)return Dc;Hh=1;var e=oC(),t=Rc(),n=$c();function o(s){return typeof s.constructor=="function"&&!n(s)?e(t(s)):{}}return Dc=o,Dc}var Mc,Kh;function Dr(){if(Kh)return Mc;Kh=1;function e(t){return t!=null&&typeof t=="object"}return Mc=e,Mc}var Nc,Gh;function sC(){if(Gh)return Nc;Gh=1;var e=Mo(),t=Dr(),n="[object Arguments]";function o(s){return t(s)&&e(s)==n}return Nc=o,Nc}var jc,Xh;function Qh(){if(Xh)return jc;Xh=1;var e=sC(),t=Dr(),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 jc=i,jc}var Ac,Jh;function Gs(){if(Jh)return Ac;Jh=1;var e=Array.isArray;return Ac=e,Ac}var Fc,Zh;function em(){if(Zh)return Fc;Zh=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Fc=t,Fc}var Vc,tm;function Xs(){if(tm)return Vc;tm=1;var e=Ul(),t=em();function n(o){return o!=null&&t(o.length)&&!e(o)}return Vc=n,Vc}var Lc,nm;function iC(){if(nm)return Lc;nm=1;var e=Xs(),t=Dr();function n(o){return t(o)&&e(o)}return Lc=n,Lc}var jo={exports:{}},Bc,rm;function aC(){if(rm)return Bc;rm=1;function e(){return!1}return Bc=e,Bc}jo.exports;var om;function qc(){return om||(om=1,(function(e,t){var n=qn(),o=aC(),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 zc,sm;function lC(){if(sm)return zc;sm=1;var e=Mo(),t=Rc(),n=Dr(),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 h=t(d);if(h===null)return!0;var m=a.call(h,"constructor")&&h.constructor;return typeof m=="function"&&m instanceof m&&l.call(m)==c}return zc=u,zc}var Uc,im;function cC(){if(im)return Uc;im=1;var e=Mo(),t=em(),n=Dr(),o="[object Arguments]",s="[object Array]",i="[object Boolean]",l="[object Date]",a="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",h="[object Object]",m="[object RegExp]",p="[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]",O="[object Uint8Array]",I="[object Uint8ClampedArray]",$="[object Uint16Array]",M="[object Uint32Array]",k={};k[y]=k[S]=k[w]=k[x]=k[P]=k[O]=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[h]=k[m]=k[p]=k[b]=k[f]=!1;function C(N){return n(N)&&t(N.length)&&!!k[e(N)]}return Uc=C,Uc}var Wc,am;function Hc(){if(am)return Wc;am=1;function e(t){return function(n){return t(n)}}return Wc=e,Wc}var Ao={exports:{}};Ao.exports;var lm;function Yc(){return lm||(lm=1,(function(e,t){var n=Hp(),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 Kc,cm;function um(){if(cm)return Kc;cm=1;var e=cC(),t=Hc(),n=Yc(),o=n&&n.isTypedArray,s=o?t(o):e;return Kc=s,Kc}var Gc,dm;function fm(){if(dm)return Gc;dm=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Gc=e,Gc}var Xc,pm;function hm(){if(pm)return Xc;pm=1;var e=bc(),t=Us(),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 Xc=s,Xc}var Qc,mm;function Zr(){if(mm)return Qc;mm=1;var e=hm(),t=bc();function n(o,s,i,l){var a=!i;i||(i={});for(var c=-1,u=s.length;++c<u;){var d=s[c],h=l?l(i[d],o[d],d,i,o):void 0;h===void 0&&(h=o[d]),a?t(i,d,h):e(i,d,h)}return i}return Qc=n,Qc}var Jc,ym;function uC(){if(ym)return Jc;ym=1;function e(t,n){for(var o=-1,s=Array(t);++o<t;)s[o]=n(o);return s}return Jc=e,Jc}var Zc,gm;function bm(){if(gm)return Zc;gm=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 Zc=n,Zc}var eu,vm;function Sm(){if(vm)return eu;vm=1;var e=uC(),t=Qh(),n=Gs(),o=qc(),s=bm(),i=um(),l=Object.prototype,a=l.hasOwnProperty;function c(u,d){var h=n(u),m=!h&&t(u),p=!h&&!m&&o(u),b=!h&&!m&&!p&&i(u),f=h||m||p||b,g=f?e(u.length,String):[],v=g.length;for(var y in u)(d||a.call(u,y))&&!(f&&(y=="length"||p&&(y=="offset"||y=="parent")||b&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||s(y,v)))&&g.push(y);return g}return eu=c,eu}var tu,xm;function dC(){if(xm)return tu;xm=1;function e(t){var n=[];if(t!=null)for(var o in Object(t))n.push(o);return n}return tu=e,tu}var nu,wm;function fC(){if(wm)return nu;wm=1;var e=Zn(),t=$c(),n=dC(),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 nu=i,nu}var ru,Cm;function eo(){if(Cm)return ru;Cm=1;var e=Sm(),t=fC(),n=Xs();function o(s){return n(s)?e(s,!0):t(s)}return ru=o,ru}var ou,Pm;function pC(){if(Pm)return ou;Pm=1;var e=Zr(),t=eo();function n(o){return e(o,t(o))}return ou=n,ou}var su,Om;function hC(){if(Om)return su;Om=1;var e=Rh(),t=Mh(),n=Fh(),o=Lh(),s=Yh(),i=Qh(),l=Gs(),a=iC(),c=qc(),u=Ul(),d=Zn(),h=lC(),m=um(),p=fm(),b=pC();function f(g,v,y,S,w,x,P){var O=p(g,y),I=p(v,y),$=P.get(I);if($){e(g,y,$);return}var M=x?x(O,I,y+"",g,v,P):void 0,k=M===void 0;if(k){var C=l(I),N=!C&&c(I),D=!C&&!N&&m(I);M=I,C||N||D?l(O)?M=O:a(O)?M=o(O):N?(k=!1,M=t(I,!0)):D?(k=!1,M=n(I,!0)):M=[]:h(I)||i(I)?(M=O,i(O)?M=b(O):(!d(O)||u(O))&&(M=s(I))):k=!1}k&&(P.set(I,M),w(M,I,S,x,P),P.delete(I)),e(g,y,M)}return su=f,su}var iu,Tm;function mC(){if(Tm)return iu;Tm=1;var e=Oh(),t=Rh(),n=nC(),o=hC(),s=Zn(),i=eo(),l=fm();function a(c,u,d,h,m){c!==u&&n(u,function(p,b){if(m||(m=new e),s(p))o(c,u,b,d,a,h,m);else{var f=h?h(l(c,b),p,b+"",c,u,m):void 0;f===void 0&&(f=p),t(c,b,f)}},i)}return iu=a,iu}var au,Em;function km(){if(Em)return au;Em=1;function e(t){return t}return au=e,au}var lu,_m;function yC(){if(_m)return lu;_m=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 lu=e,lu}var cu,Rm;function gC(){if(Rm)return cu;Rm=1;var e=yC(),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 cu=n,cu}var uu,Im;function bC(){if(Im)return uu;Im=1;function e(t){return function(){return t}}return uu=e,uu}var du,$m;function vC(){if($m)return du;$m=1;var e=bC(),t=Eh(),n=km(),o=t?function(s,i){return t(s,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:n;return du=o,du}var fu,Dm;function SC(){if(Dm)return fu;Dm=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 fu=o,fu}var pu,Mm;function xC(){if(Mm)return pu;Mm=1;var e=vC(),t=SC(),n=t(e);return pu=n,pu}var hu,Nm;function wC(){if(Nm)return hu;Nm=1;var e=km(),t=gC(),n=xC();function o(s,i){return n(t(s,i,e),s+"")}return hu=o,hu}var mu,jm;function CC(){if(jm)return mu;jm=1;var e=Us(),t=Xs(),n=bm(),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 mu=s,mu}var yu,Am;function Fm(){if(Am)return yu;Am=1;var e=wC(),t=CC();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 yu=n,yu}var gu,Vm;function PC(){if(Vm)return gu;Vm=1;var e=mC(),t=Fm(),n=t(function(o,s,i){e(o,s,i)});return gu=n,gu}var OC=PC();const TC=Vt(OC);var bu,Lm;function EC(){if(Lm)return bu;Lm=1;function e(t){return t==null}return bu=e,bu}var kC=EC();const Bm=Vt(kC);var _C=Zn();const RC=Vt(_C);var vu,qm;function IC(){if(qm)return vu;qm=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 vu=e,vu}var Su,zm;function $C(){if(zm)return Su;zm=1;var e=zh(),t=e(Object.keys,Object);return Su=t,Su}var xu,Um;function DC(){if(Um)return xu;Um=1;var e=$c(),t=$C(),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 xu=s,xu}var wu,Wm;function Cu(){if(Wm)return wu;Wm=1;var e=Sm(),t=DC(),n=Xs();function o(s){return n(s)?e(s):t(s)}return wu=o,wu}var Pu,Hm;function MC(){if(Hm)return Pu;Hm=1;var e=Zr(),t=Cu();function n(o,s){return o&&e(s,t(s),o)}return Pu=n,Pu}var Ou,Ym;function NC(){if(Ym)return Ou;Ym=1;var e=Zr(),t=eo();function n(o,s){return o&&e(s,t(s),o)}return Ou=n,Ou}var Tu,Km;function jC(){if(Km)return Tu;Km=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 Eu,Gm;function Xm(){if(Gm)return Eu;Gm=1;function e(){return[]}return Eu=e,Eu}var ku,Qm;function _u(){if(Qm)return ku;Qm=1;var e=jC(),t=Xm(),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 ku=i,ku}var Ru,Jm;function AC(){if(Jm)return Ru;Jm=1;var e=Zr(),t=_u();function n(o,s){return e(o,t(o),s)}return Ru=n,Ru}var Iu,Zm;function ey(){if(Zm)return Iu;Zm=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 Iu=e,Iu}var $u,ty;function ny(){if(ty)return $u;ty=1;var e=ey(),t=Rc(),n=_u(),o=Xm(),s=Object.getOwnPropertySymbols,i=s?function(l){for(var a=[];l;)e(a,n(l)),l=t(l);return a}:o;return $u=i,$u}var Du,ry;function FC(){if(ry)return Du;ry=1;var e=Zr(),t=ny();function n(o,s){return e(o,t(o),s)}return Du=n,Du}var Mu,oy;function sy(){if(oy)return Mu;oy=1;var e=ey(),t=Gs();function n(o,s,i){var l=s(o);return t(o)?l:e(l,i(o))}return Mu=n,Mu}var Nu,iy;function VC(){if(iy)return Nu;iy=1;var e=sy(),t=_u(),n=Cu();function o(s){return e(s,n,t)}return Nu=o,Nu}var ju,ay;function LC(){if(ay)return ju;ay=1;var e=sy(),t=ny(),n=eo();function o(s){return e(s,n,t)}return ju=o,ju}var Au,ly;function BC(){if(ly)return Au;ly=1;var e=$r(),t=qn(),n=e(t,"DataView");return Au=n,Au}var Fu,cy;function qC(){if(cy)return Fu;cy=1;var e=$r(),t=qn(),n=e(t,"Promise");return Fu=n,Fu}var Vu,uy;function zC(){if(uy)return Vu;uy=1;var e=$r(),t=qn(),n=e(t,"Set");return Vu=n,Vu}var Lu,dy;function UC(){if(dy)return Lu;dy=1;var e=$r(),t=qn(),n=e(t,"WeakMap");return Lu=n,Lu}var Bu,fy;function qu(){if(fy)return Bu;fy=1;var e=BC(),t=Jl(),n=qC(),o=zC(),s=UC(),i=Mo(),l=rh(),a="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",h="[object WeakMap]",m="[object DataView]",p=l(e),b=l(t),f=l(n),g=l(o),v=l(s),y=i;return(e&&y(new e(new ArrayBuffer(1)))!=m||t&&y(new t)!=a||n&&y(n.resolve())!=u||o&&y(new o)!=d||s&&y(new s)!=h)&&(y=function(S){var w=i(S),x=w==c?S.constructor:void 0,P=x?l(x):"";if(P)switch(P){case p:return m;case b:return a;case f:return u;case g:return d;case v:return h}return w}),Bu=y,Bu}var zu,py;function WC(){if(py)return zu;py=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 zu=n,zu}var Uu,hy;function HC(){if(hy)return Uu;hy=1;var e=Pc();function t(n,o){var s=o?e(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}return Uu=t,Uu}var Wu,my;function YC(){if(my)return Wu;my=1;var e=/\w*$/;function t(n){var o=new n.constructor(n.source,e.exec(n));return o.lastIndex=n.lastIndex,o}return Wu=t,Wu}var Hu,yy;function KC(){if(yy)return Hu;yy=1;var e=Fl(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function o(s){return n?Object(n.call(s)):{}}return Hu=o,Hu}var Yu,gy;function GC(){if(gy)return Yu;gy=1;var e=Pc(),t=HC(),n=YC(),o=KC(),s=Fh(),i="[object Boolean]",l="[object Date]",a="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",h="[object String]",m="[object Symbol]",p="[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]",O="[object Uint32Array]";function I($,M,k){var C=$.constructor;switch(M){case p: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 O:return s($,k);case a:return new C;case c:case h:return new C($);case u:return n($);case d:return new C;case m:return o($)}}return Yu=I,Yu}var Ku,by;function XC(){if(by)return Ku;by=1;var e=qu(),t=Dr(),n="[object Map]";function o(s){return t(s)&&e(s)==n}return Ku=o,Ku}var Gu,vy;function QC(){if(vy)return Gu;vy=1;var e=XC(),t=Hc(),n=Yc(),o=n&&n.isMap,s=o?t(o):e;return Gu=s,Gu}var Xu,Sy;function JC(){if(Sy)return Xu;Sy=1;var e=qu(),t=Dr(),n="[object Set]";function o(s){return t(s)&&e(s)==n}return Xu=o,Xu}var Qu,xy;function ZC(){if(xy)return Qu;xy=1;var e=JC(),t=Hc(),n=Yc(),o=n&&n.isSet,s=o?t(o):e;return Qu=s,Qu}var Ju,wy;function eP(){if(wy)return Ju;wy=1;var e=Oh(),t=IC(),n=hm(),o=MC(),s=NC(),i=Mh(),l=Lh(),a=AC(),c=FC(),u=VC(),d=LC(),h=qu(),m=WC(),p=GC(),b=Yh(),f=Gs(),g=qc(),v=QC(),y=Zn(),S=ZC(),w=Cu(),x=eo(),P=1,O=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,We=ce&O,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=m(re),!je)return l(re,ke)}else{var Qe=h(re),Ae=Qe==D||Qe==j;if(g(re))return i(re,je);if(Qe==Y||Qe==$||Ae&&!fe){if(ke=We||Ae?{}:b(re),!je)return We?c(re,s(ke,re)):a(re,o(ke,re))}else{if(!ne[Qe])return fe?re:{};ke=p(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(Ke){ke.add(ae(Ke,ce,be,Ke,re,ve))}):v(re)&&re.forEach(function(Ke,Ge){ke.set(Ge,ae(Ke,ce,be,Ge,re,ve))});var Oe=Ve?We?d:u:We?x:w,Le=Ze?void 0:Oe(re);return t(Le||re,function(Ke,Ge){Le&&(Ge=Ke,Ke=re[Ge]),n(ke,Ge,ae(Ke,ce,be,Ge,re,ve))}),ke}return Ju=ae,Ju}var Zu,Cy;function tP(){if(Cy)return Zu;Cy=1;var e=eP(),t=1,n=4;function o(s){return e(s,t|n)}return Zu=o,Zu}var nP=tP();const Qs=Vt(nP);var ed,Py;function rP(){if(Py)return ed;Py=1;var e=Zr(),t=Fm(),n=eo(),o=t(function(s,i){e(i,n(i),s)});return ed=o,ed}var td,Oy;function oP(){return Oy||(Oy=1,td=rP()),td}var sP=oP();const iP=Vt(sP);var nd,Ty;function aP(){if(Ty)return nd;Ty=1;function e(t){return t===void 0}return nd=e,nd}var lP=aP();const cP=Vt(lP);var rd={},Ey;function uP(){return Ey||(Ey=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(h){return new Array(Math.ceil(h.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})()})(rd)),rd}var od,ky;function dP(){return ky||(ky=1,od=uP().ObjectPath),od}var fP=dP();const Wt=Vt(fP);var Js={exports:{}},sd={},er={},Mr={},id={},ad={},ld={},_y;function Zs(){return _y||(_y=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=[p(v[0])];let w=0;for(;w<y.length;)S.push(i),a(S,y[w]),S.push(i,p(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(h(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 h(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:p(Array.isArray(v)?v.join(","):v)}function m(v){return new o(p(v))}e.stringify=m;function p(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=p;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})(ld)),ld}var cd={},Ry;function Iy(){return Ry||(Ry=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Zs();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,h;if(!((h=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||h===void 0)&&h.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:h}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(d)}[${h}]`}}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 h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(u),{prefix:p}=m,b=(h=d.key)!==null&&h!==void 0?h:d.ref;let f=this._values[p];if(f){const y=f.get(b);if(y)return y}else f=this._values[p]=new Map;f.set(b,m);const g=this._scope[p]||(this._scope[p]=[]),v=g.length;return g[v]=d.ref,m.setValue(d,{property:p,itemIndex:v}),m}getValue(u,d){const h=this._values[u];if(h)return h.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${u}${h.scopePath}`})}scopeCode(u=this._values,d,h){return this._reduceValues(u,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},d,h)}_reduceValues(u,d,h={},m){let p=t.nil;for(const b in u){const f=u[b];if(!f)continue;const g=h[b]=h[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;p=(0,t._)`${p}${S} ${v} = ${y};${this.opts._n}`}else if(y=m?.(v))p=(0,t._)`${p}${y}${this.opts._n}`;else throw new n(v);g.set(v,o.Completed)})}return p}}e.ValueScope=a})(cd)),cd}var $y;function nt(){return $y||($y=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=Zs(),n=Iy();var o=Zs();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=Iy();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 h extends i{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class m 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 p 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 p{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class f extends p{}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 O extends p{render(R){return"return "+super.render(R)}}O.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 m(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 O;if(this._blockNode(A),this.code(R),A.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}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 h(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})`}})(ad)),ad}var rt={},Dy;function ut(){if(Dy)return rt;Dy=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=Zs();function n(x){const P={};for(const O of x)P[O]=!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:O,self:I}=x;if(!O.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 O in x)if(P[O])return!0;return!1}rt.schemaHasRules=i;function l(x,P){if(typeof x=="boolean")return!x;for(const O in x)if(O!=="$ref"&&P.all[O])return!0;return!1}rt.schemaHasRulesButRef=l;function a({topSchemaRef:x,schemaPath:P},O,I,$){if(!$){if(typeof O=="number"||typeof O=="boolean")return O;if(typeof O=="string")return(0,e._)`${O}`}return(0,e._)`${x}${P}${(0,e.getProperty)(I)}`}rt.schemaRefOrVal=a;function c(x){return h(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 h(x){return x.replace(/~1/g,"/").replace(/~0/g,"~")}rt.unescapeJsonPointer=h;function m(x,P){if(Array.isArray(x))for(const O of x)P(O);else P(x)}rt.eachItem=m;function p({mergeNames:x,mergeToName:P,mergeValues:O,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):O(M,k);return C===e.Name&&!(N instanceof e.Name)?I($,N):N}}rt.mergeEvaluated={props:p({mergeNames:(x,P,O)=>x.if((0,e._)`${O} !== true && ${P} !== undefined`,()=>{x.if((0,e._)`${P} === true`,()=>x.assign(O,!0),()=>x.assign(O,(0,e._)`${O} || {}`).code((0,e._)`Object.assign(${O}, ${P})`))}),mergeToName:(x,P,O)=>x.if((0,e._)`${O} !== true`,()=>{P===!0?x.assign(O,!0):(x.assign(O,(0,e._)`${O} || {}`),f(x,O,P))}),mergeValues:(x,P)=>x===!0?!0:{...x,...P},resultToName:b}),items:p({mergeNames:(x,P,O)=>x.if((0,e._)`${O} !== true && ${P} !== undefined`,()=>x.assign(O,(0,e._)`${P} === true ? true : ${O} > ${P} ? ${O} : ${P}`)),mergeToName:(x,P,O)=>x.if((0,e._)`${O} !== true`,()=>x.assign(O,P===!0?!0:(0,e._)`${O} > ${P} ? ${O} : ${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 O=x.var("props",(0,e._)`{}`);return P!==void 0&&f(x,O,P),O}rt.evaluatedPropsToName=b;function f(x,P,O){Object.keys(O).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,O){if(x instanceof e.Name){const I=P===y.Num;return O?I?(0,e._)`"[" + ${x} + "]"`:(0,e._)`"['" + ${x} + "']"`:I?(0,e._)`"/" + ${x}`:(0,e._)`"/" + ${x}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return O?(0,e.getProperty)(x).toString():"/"+d(x)}rt.getErrorPath=S;function w(x,P,O=x.opts.strictSchema){if(O){if(P=`strict mode: ${P}`,O===!0)throw new Error(P);x.self.logger.warn(P)}}return rt.checkStrictMode=w,rt}var ei={},My;function dr(){if(My)return ei;My=1,Object.defineProperty(ei,"__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 ei.default=t,ei}var Ny;function ti(){return Ny||(Ny=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=dr();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:O}=w,I=h(g,v,y);S??(P||O)?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,O=h(g,v,y);c(w,O),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,O=>{g.const(P,(0,t._)`${o.default.vErrors}[${O}]`),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 h(g,v,y){const{createErrors:S}=g.it;return S===!1?(0,t._)`{}`:m(g,v,y)}function m(g,v,y={}){const{gen:S,it:w}=g,x=[p(w,y),b(g,y)];return f(g,v,x),S.object(...x)}function p({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:O}=g,{opts:I,propertyName:$,topSchemaRef:M,schemaPath:k}=O;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,$])}})(id)),id}var jy;function pP(){if(jy)return Mr;jy=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.boolOrEmptySchema=Mr.topBoolOrEmptySchema=void 0;const e=ti(),t=nt(),n=dr(),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))}Mr.topBoolOrEmptySchema=s;function i(a,c){const{gen:u,schema:d}=a;d===!1?(u.var(c,!1),l(a)):u.var(c,!0)}Mr.boolOrEmptySchema=i;function l(a,c){const{gen:u,data:d}=a,h={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(h,o,void 0,c)}return Mr}var qt={},Nr={},Ay;function Fy(){if(Ay)return Nr;Ay=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.getRules=Nr.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)}Nr.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 Nr.getRules=o,Nr}var tr={},Vy;function Ly(){if(Vy)return tr;Vy=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 By;function ni(){if(By)return qt;By=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=Fy(),t=Ly(),n=ti(),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,O=d(S,P.coerceTypes),I=S.length>0&&!(O.length===0&&S.length===1&&(0,t.schemaHasRulesForType)(y,S[0]));if(I){const $=b(S,x,P.strictNumbers,i.Wrong);w.if($,()=>{O.length?h(y,S,O):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 h(y,S,w){const{gen:x,data:P,opts:O}=y,I=x.let("dataType",(0,o._)`typeof ${P}`),$=x.let("coerced",(0,o._)`undefined`);O.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,O.strictNumbers),()=>x.assign($,P))),x.if((0,o._)`${$} !== undefined`);for(const k of w)(u.has(k)||k==="array"&&O.coerceTypes==="array")&&M(k);x.else(),g(y),x.endIf(),x.if((0,o._)`${$} !== undefined`,()=>{x.assign(P,$),m(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
8
|
|| (${I} == "string" && ${P} && ${P} == +${P})`).assign($,(0,o._)`+${P}`);return;case"integer":x.elseIf((0,o._)`${I} === "boolean" || ${P} === null
|
|
9
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: ${
|
|
10
|
+
|| ${I} === "boolean" || ${P} === null`).assign($,(0,o._)`[${P}]`)}}}function m({gen:y,parentData:S,parentDataProperty:w},x){y.if((0,o._)`${S} !== undefined`,()=>y.assign((0,o._)`${S}[${w}]`,x))}function p(y,S,w,x=i.Correct){const P=x===i.Correct?o.operators.EQ:o.operators.NEQ;let O;switch(y){case"null":return(0,o._)`${S} ${P} null`;case"array":O=(0,o._)`Array.isArray(${S})`;break;case"object":O=(0,o._)`${S} && typeof ${S} == "object" && !Array.isArray(${S})`;break;case"integer":O=I((0,o._)`!(${S} % 1) && !isNaN(${S})`);break;case"number":O=I();break;default:return(0,o._)`typeof ${S} ${P} ${y}`}return x===i.Correct?O:(0,o.not)(O);function I($=o.nil){return(0,o.and)((0,o._)`typeof ${S} == "number"`,$,w?(0,o._)`isFinite(${S})`:o.nil)}}qt.checkDataType=p;function b(y,S,w,x){if(y.length===1)return p(y[0],S,w,x);let P;const O=(0,s.toHash)(y);if(O.array&&O.object){const I=(0,o._)`typeof ${S} != "object"`;P=O.null?I:(0,o._)`!${S} || ${I}`,delete O.null,delete O.array,delete O.object}else P=o.nil;O.number&&delete O.integer;for(const I in O)P=(0,o.and)(P,p(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={},qy;function hP(){if(qy)return Fo;qy=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 h=(0,e._)`${u}${(0,e.getProperty)(i)}`;if(c){(0,t.checkStrictMode)(s,`default is ignored for: ${h}`);return}let m=(0,e._)`${h} === undefined`;d.useDefaults==="empty"&&(m=(0,e._)`${m} || ${h} === null || ${h} === ""`),a.if(m,(0,e._)`${h} = ${(0,e.stringify)(l)}`)}return Fo}var Rn={},bt={},zy;function In(){if(zy)return bt;zy=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=dr(),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(O=>(0,e.and)(d(y,S,O,w.ownProperties),(0,e._)`${P} = ${O}`)))}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 h(y){return y?Object.keys(y).filter(S=>S!=="__proto__"):[]}bt.allSchemaProperties=h;function m(y,S){return h(S).filter(w=>!(0,t.alwaysValidSchema)(y,S[w]))}bt.schemaProperties=m;function p({schemaCode:y,data:S,it:{gen:w,topSchemaRef:x,schemaPath:P,errorPath:O},it:I},$,M,k){const C=k?(0,e._)`${y}, ${S}, ${x}${P}`:S,N=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,O)],[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=p;const b=(0,e._)`new RegExp`;function f({gen:y,it:{opts:S}},w){const x=S.unicodeRegExp?"u":"",{regExp:P}=S.code,O=P(w,x);return y.scopeValue("pattern",{key:O.toString(),ref:O,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,O=S.name("valid");if(P.allErrors){const $=S.let("valid",!0);return I(()=>S.assign($,!1)),$}return S.var(O,!0),I(()=>S.break()),O;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},O),S.if((0,e.not)(O),$)})}}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 Uy;function mP(){if(Uy)return Rn;Uy=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.validateKeywordUsage=Rn.validSchemaType=Rn.funcKeywordCode=Rn.macroKeywordCode=void 0;const e=nt(),t=dr(),n=In(),o=ti();function s(m,p){const{gen:b,keyword:f,schema:g,parentSchema:v,it:y}=m,S=p.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");m.subschema({schema:S,schemaPath:e.nil,errSchemaPath:`${y.errSchemaPath}/${f}`,topSchemaRef:w,compositeRule:!0},x),m.pass(x,()=>m.error(!0))}Rn.macroKeywordCode=s;function i(m,p){var b;const{gen:f,keyword:g,schema:v,parentSchema:y,$data:S,it:w}=m;c(w,p);const x=!S&&p.compile?p.compile.call(w.self,v,y,w):p.validate,P=u(f,g,x),O=f.let("valid");m.block$data(O,I),m.ok((b=p.valid)!==null&&b!==void 0?b:O);function I(){if(p.errors===!1)k(),p.modifying&&l(m),C(()=>m.error());else{const N=p.async?$():M();p.modifying&&l(m),C(()=>a(m,N))}}function $(){const N=f.let("ruleErrs",null);return f.try(()=>k((0,e._)`await `),D=>f.assign(O,!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=p.async?(0,e._)`await `:e.nil){const D=w.opts.passContext?t.default.this:t.default.self,j=!("compile"in p&&!S||p.schema===!1);f.assign(O,(0,e._)`${N}${(0,n.callValidateCode)(m,P,D,j)}`,p.modifying)}function C(N){var D;f.if((0,e.not)((D=p.valid)!==null&&D!==void 0?D:O),N)}}Rn.funcKeywordCode=i;function l(m){const{gen:p,data:b,it:f}=m;p.if(f.parentData,()=>p.assign(b,(0,e._)`${f.parentData}[${f.parentDataProperty}]`))}function a(m,p){const{gen:b}=m;b.if((0,e._)`Array.isArray(${p})`,()=>{b.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${p} : ${t.default.vErrors}.concat(${p})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,o.extendErrors)(m)},()=>m.error())}function c({schemaEnv:m},p){if(p.async&&!m.$async)throw new Error("async keyword in sync schema")}function u(m,p,b){if(b===void 0)throw new Error(`keyword "${p}" failed to compile`);return m.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,e.stringify)(b)})}function d(m,p,b=!1){return!p.length||p.some(f=>f==="array"?Array.isArray(m):f==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==f||b&&typeof m>"u")}Rn.validSchemaType=d;function h({schema:m,opts:p,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(m,S)))throw new Error(`parent schema must have dependencies of ${v}: ${y.join(",")}`);if(g.validateSchema&&!g.validateSchema(m[v])){const w=`keyword "${v}" value is invalid at path "${f}": `+b.errorsText(g.validateSchema.errors);if(p.validateSchema==="log")b.logger.error(w);else throw new Error(w)}}return Rn.validateKeywordUsage=h,Rn}var nr={},Wy;function yP(){if(Wy)return nr;Wy=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:h}){if(l!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const m=i.schema[l];return a===void 0?{schema:m,schemaPath:(0,e._)`${i.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${i.errSchemaPath}/${l}`}:{schema:m[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||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:h,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:h}){if(u!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=l;if(a!==void 0){const{errorPath:b,dataPathArr:f,opts:g}=l,v=m.let("data",(0,e._)`${l.data}${(0,e.getProperty)(a)}`,!0);p(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:m.let("data",u,!0);p(b),h!==void 0&&(i.propertyName=h)}d&&(i.dataTypes=d);function p(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 Zt={},ud,Hy;function Yy(){return Hy||(Hy=1,ud=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}),ud}var dd={exports:{}},Ky;function gP(){if(Ky)return dd.exports;Ky=1;var e=dd.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,h,m){if(l&&typeof l=="object"&&!Array.isArray(l)){s(l,a,c,u,d,h,m);for(var p in l){var b=l[p];if(Array.isArray(b)){if(p in e.arrayKeywords)for(var f=0;f<b.length;f++)t(o,s,i,b[f],a+"/"+p+"/"+f,c,a,p,l,f)}else if(p in e.propsKeywords){if(b&&typeof b=="object")for(var g in b)t(o,s,i,b[g],a+"/"+p+"/"+n(g),c,a,p,l,g)}else(p in e.keywords||o.allKeys&&!(p in e.skipKeywords))&&t(o,s,i,b,a+"/"+p,c,a,p,l)}i(l,a,c,u,d,h,m)}}function n(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}return dd.exports}var Gy;function ri(){if(Gy)return Zt;Gy=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.getSchemaRefs=Zt.resolveUrl=Zt.normalizeId=Zt._getFullPath=Zt.getFullPath=Zt.inlineRef=void 0;const e=ut(),t=Yy(),n=gP(),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}Zt.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=h(g));const y=f.parse(g);return u(f,y)}Zt.getFullPath=c;function u(f,g){return f.serialize(g).split("#")[0]+"#"}Zt._getFullPath=u;const d=/#\/?$/;function h(f){return f?f.replace(d,""):""}Zt.normalizeId=h;function m(f,g,v){return v=h(v),f.resolve(g,v)}Zt.resolveUrl=m;const p=/^[a-z_][-a-z0-9._]*$/i;function b(f,g){if(typeof f=="boolean")return{};const{schemaId:v,uriResolver:y}=this.opts,S=h(f[v]||g),w={"":S},x=c(y,S,!1),P={},O=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=h(j?H(j,Y):Y),O.has(Y))throw $(Y);O.add(Y);let L=this.refs[Y];return typeof L=="string"&&(L=this.refs[L]),typeof L=="object"?I(M,L.schema,Y):Y!==h(D)&&(Y[0]==="#"?(I(M,P[Y],Y),P[Y]=M):this.refs[Y]=D),Y}function W(Y){if(typeof Y=="string"){if(!p.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 Zt.getSchemaRefs=b,Zt}var Xy;function oi(){if(Xy)return er;Xy=1,Object.defineProperty(er,"__esModule",{value:!0}),er.getData=er.KeywordCxt=er.validateFunctionCode=void 0;const e=pP(),t=ni(),n=Ly(),o=ni(),s=hP(),i=mP(),l=yP(),a=nt(),c=dr(),u=ri(),d=ut(),h=ti();function m(B){if(x(B)&&(O(B),w(B))){g(B);return}p(B,()=>(0,e.topBoolOrEmptySchema)(B))}er.validateFunctionCode=m;function p({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;p(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)&&(O(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 O(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?h.reportExtraError:h.reportError)(this,this.def.error,Q)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.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 si={},Qy;function fd(){if(Qy)return si;Qy=1,Object.defineProperty(si,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}return si.default=e,si}var ii={},Jy;function ai(){if(Jy)return ii;Jy=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=ri();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 ii.default=t,ii}var ln={},Zy;function pd(){if(Zy)return ln;Zy=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.resolveSchema=ln.getCompilingSchema=ln.resolveRef=ln.compileSchema=ln.SchemaEnv=void 0;const e=nt(),t=fd(),n=dr(),o=ri(),s=ut(),i=oi();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 O;g.$async&&(O=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:O,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=m.call(this,g,y);if(x===void 0){const P=(S=g.localRefs)===null||S===void 0?void 0:S[y],{schemaId:O}=this.opts;P&&(x=new l({schema:P,schemaId:O,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(h(v,g))return v}ln.getCompilingSchema=d;function h(g,v){return g.schema===v.schema&&g.root===v.root&&g.baseId===v.baseId}function m(g,v){let y;for(;typeof(y=this.refs[v])=="string";)v=y;return y||this.schemas[v]||p.call(this,g,v)}function p(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 O=p.call(this,g,P);return typeof O?.schema!="object"?void 0:f.call(this,y,O)}if(typeof P?.schema=="object"){if(P.validate||a.call(this,P),x===(0,o.normalizeId)(v)){const{schema:O}=P,{schemaId:I}=this.opts,$=O[I];return $&&(w=(0,o.resolveUrl)(this.opts.uriResolver,w,$)),new l({schema:O,schemaId:I,root:g,baseId:w})}return f.call(this,y,P)}}ln.resolveSchema=p;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 O of g.fragment.slice(1).split("/")){if(typeof y=="boolean")return;const I=y[(0,s.unescapeFragment)(O)];if(I===void 0)return;y=I;const $=typeof y=="object"&&y[this.opts.schemaId];!b.has(O)&&$&&(v=(0,o.resolveUrl)(this.opts.uriResolver,v,$))}let x;if(typeof y!="boolean"&&y.$ref&&!(0,s.schemaHasRulesButRef)(y,this.RULES)){const O=(0,o.resolveUrl)(this.opts.uriResolver,v,y.$ref);x=p.call(this,S,O)}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 bP={$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 li={},Vo={exports:{}},hd,eg;function tg(){if(eg)return hd;eg=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(m){let p="",b=0,f=0;for(f=0;f<m.length;f++)if(b=m[f].charCodeAt(0),b!==48){if(!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";p+=m[f];break}for(f+=1;f<m.length;f++){if(b=m[f].charCodeAt(0),!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";p+=m[f]}return p}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(m){return m.length=0,!0}function i(m,p,b){if(m.length){const f=n(m);if(f!=="")p.push(f);else return b.error=!0,!1;m.length=0}return!0}function l(m){let p=0;const b={error:!1,address:"",zone:""},f=[],g=[];let v=!1,y=!1,S=i;for(let w=0;w<m.length;w++){const x=m[w];if(!(x==="["||x==="]"))if(x===":"){if(v===!0&&(y=!0),!S(g,f,b))break;if(++p>7){b.error=!0;break}w>0&&m[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(m){if(c(m,":")<2)return{host:m,isIPV6:!1};const p=l(m);if(p.error)return{host:m,isIPV6:!1};{let b=p.address,f=p.address;return p.zone&&(b+="%"+p.zone,f+="%25"+p.zone),{host:b,isIPV6:!0,escapedHost:f}}}function c(m,p){let b=0;for(let f=0;f<m.length;f++)m[f]===p&&b++;return b}function u(m){let p=m;const b=[];let f=-1,g=0;for(;g=p.length;){if(g===1){if(p===".")break;if(p==="/"){b.push("/");break}else{b.push(p);break}}else if(g===2){if(p[0]==="."){if(p[1]===".")break;if(p[1]==="/"){p=p.slice(2);continue}}else if(p[0]==="/"&&(p[1]==="."||p[1]==="/")){b.push("/");break}}else if(g===3&&p==="/.."){b.length!==0&&b.pop(),b.push("/");break}if(p[0]==="."){if(p[1]==="."){if(p[2]==="/"){p=p.slice(3);continue}}else if(p[1]==="/"){p=p.slice(2);continue}}else if(p[0]==="/"&&p[1]==="."){if(p[2]==="/"){p=p.slice(2);continue}else if(p[2]==="."&&p[3]==="/"){p=p.slice(3),b.length!==0&&b.pop();continue}}if((f=p.indexOf("/",1))===-1){b.push(p);break}else b.push(p.slice(0,f)),p=p.slice(f)}return b.join("")}function d(m,p){const b=p!==!0?escape:unescape;return m.scheme!==void 0&&(m.scheme=b(m.scheme)),m.userinfo!==void 0&&(m.userinfo=b(m.userinfo)),m.host!==void 0&&(m.host=b(m.host)),m.path!==void 0&&(m.path=b(m.path)),m.query!==void 0&&(m.query=b(m.query)),m.fragment!==void 0&&(m.fragment=b(m.fragment)),m}function h(m){const p=[];if(m.userinfo!==void 0&&(p.push(m.userinfo),p.push("@")),m.host!==void 0){let b=unescape(m.host);if(!t(b)){const f=a(b);f.isIPV6===!0?b=`[${f.escapedHost}]`:b=m.host}p.push(b)}return(typeof m.port=="number"||typeof m.port=="string")&&(p.push(":"),p.push(String(m.port))),p.length?p.join(""):void 0}return hd={nonSimpleDomain:o,recomposeAuthority:h,normalizeComponentEncoding:d,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:a,stringArrayToHexStripped:n},hd}var md,ng;function vP(){if(ng)return md;ng=1;const{isUUID:e}=tg(),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,O]=x.resourceName.split("?");x.path=P&&P!=="/"?P:void 0,x.query=O,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 O=x.path.match(t);if(O){const I=P.scheme||x.scheme||"urn";x.nid=O[1].toLowerCase(),x.nss=O[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 O=P.scheme||x.scheme||"urn",I=x.nid.toLowerCase(),$=`${O}:${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 h(x,P){const O=x;return O.uuid=O.nss,O.nss=void 0,!P.tolerant&&(!O.uuid||!e(O.uuid))&&(O.error=O.error||"UUID is not valid."),O}function m(x){const P=x;return P.nss=(x.uuid||"").toLowerCase(),P}const p={scheme:"http",domainHost:!0,parse:i,serialize:l},b={scheme:"https",domainHost:p.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:p,https:b,ws:f,wss:g,urn:{scheme:"urn",parse:u,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(S,null);function w(x){return x&&(S[x]||S[x.toLowerCase()])||void 0}return md={wsIsSecure:s,SCHEMES:S,isValidSchemeName:o,getSchemeHandler:w},md}var rg;function SP(){if(rg)return Vo.exports;rg=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizeComponentEncoding:o,isIPv4:s,nonSimpleDomain:i}=tg(),{SCHEMES:l,getSchemeHandler:a}=vP();function c(g,v){return typeof g=="string"?g=m(b(g,v),v):typeof g=="object"&&(g=b(m(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,m(w,S)}function d(g,v,y,S){const w={};return S||(g=b(m(g,y),y),v=b(m(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 h(g,v,y){return typeof g=="string"?(g=unescape(g),g=m(o(b(g,y),!0),{...y,skipEscape:!0})):typeof g=="object"&&(g=m(o(g,!0),{...y,skipEscape:!0})),typeof v=="string"?(v=unescape(v),v=m(o(b(v,y),!0),{...y,skipEscape:!0})):typeof v=="object"&&(v=m(o(v,!0),{...y,skipEscape:!0})),g.toLowerCase()===v.toLowerCase()}function m(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 O=y.path;!S.absolutePath&&(!x||!x.absolutePath)&&(O=t(O)),P===void 0&&O[0]==="/"&&O[1]==="/"&&(O="/%2F"+O.slice(2)),w.push(O)}return y.query!==void 0&&w.push("?",y.query),y.fragment!==void 0&&w.push("#",y.fragment),w.join("")}const p=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\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(p);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(O){S.error=S.error||"Host's domain name can not be converted to ASCII: "+O}(!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:h,serialize:m,parse:b};return Vo.exports=f,Vo.exports.default=f,Vo.exports.fastUri=f,Vo.exports}var og;function xP(){if(og)return li;og=1,Object.defineProperty(li,"__esModule",{value:!0});const e=SP();return e.code='require("ajv/dist/runtime/uri").default',li.default=e,li}var sg;function wP(){return sg||(sg=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=oi();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=fd(),s=ai(),i=Fy(),l=pd(),a=nt(),c=ri(),u=ni(),d=ut(),h=bP,m=xP(),p=(L,E)=>new RegExp(L,E);p.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,We;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:p,Ne=(R=L.uriResolver)!==null&&R!==void 0?R:m.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:(We=L.int32range)!==null&&We!==void 0?We:!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),O.call(this),E.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:E,meta:q,schemaId:z}=this.opts;let R=h;z==="id"&&(R={...h},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 O(){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]}}})(sd)),sd}var ci={},ui={},di={},ig;function CP(){if(ig)return di;ig=1,Object.defineProperty(di,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return di.default=e,di}var fr={},ag;function PP(){if(ag)return fr;ag=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.callRef=fr.getValidate=void 0;const e=ai(),t=In(),n=nt(),o=dr(),s=pd(),i=ut(),l={keyword:"$ref",schemaType:"string",code(u){const{gen:d,schema:h,it:m}=u,{baseId:p,schemaEnv:b,validateName:f,opts:g,self:v}=m,{root:y}=b;if((h==="#"||h==="#/")&&p===y.baseId)return w();const S=s.resolveRef.call(v,y,p,h);if(S===void 0)throw new e.default(m.opts.uriResolver,p,h);if(S instanceof s.SchemaEnv)return x(S);return P(S);function w(){if(b===y)return c(u,f,b,b.$async);const O=d.scopeValue("root",{ref:y});return c(u,(0,n._)`${O}.validate`,y,y.$async)}function x(O){const I=a(u,O);c(u,I,O,O.$async)}function P(O){const I=d.scopeValue("schema",g.code.source===!0?{ref:O,code:(0,n.stringify)(O)}:{ref:O}),$=d.name("valid"),M=u.subschema({schema:O,dataTypes:[],schemaPath:n.nil,topSchemaRef:I,errSchemaPath:h},$);u.mergeEvaluated(M),u.ok($)}}};function a(u,d){const{gen:h}=u;return d.validate?h.scopeValue("validate",{ref:d.validate}):(0,n._)`${h.scopeValue("wrapper",{ref:d})}.validate`}fr.getValidate=a;function c(u,d,h,m){const{gen:p,it:b}=u,{allErrors:f,schemaEnv:g,opts:v}=b,y=v.passContext?o.default.this:n.nil;m?S():w();function S(){if(!g.$async)throw new Error("async schema referenced by sync schema");const O=p.let("valid");p.try(()=>{p.code((0,n._)`await ${(0,t.callValidateCode)(u,d,y)}`),P(d),f||p.assign(O,!0)},I=>{p.if((0,n._)`!(${I} instanceof ${b.ValidationError})`,()=>p.throw(I)),x(I),f||p.assign(O,!1)}),u.ok(O)}function w(){u.result((0,t.callValidateCode)(u,d,y),()=>P(d),()=>x(d))}function x(O){const I=(0,n._)`${O}.errors`;p.assign(o.default.vErrors,(0,n._)`${o.default.vErrors} === null ? ${I} : ${o.default.vErrors}.concat(${I})`),p.assign(o.default.errors,(0,n._)`${o.default.vErrors}.length`)}function P(O){var I;if(!b.opts.unevaluated)return;const $=(I=h?.validate)===null||I===void 0?void 0:I.evaluated;if(b.props!==!0)if($&&!$.dynamicProps)$.props!==void 0&&(b.props=i.mergeEvaluated.props(p,$.props,b.props));else{const M=p.var("props",(0,n._)`${O}.evaluated.props`);b.props=i.mergeEvaluated.props(p,M,b.props,n.Name)}if(b.items!==!0)if($&&!$.dynamicItems)$.items!==void 0&&(b.items=i.mergeEvaluated.items(p,$.items,b.items));else{const M=p.var("items",(0,n._)`${O}.evaluated.items`);b.items=i.mergeEvaluated.items(p,M,b.items,n.Name)}}}return fr.callRef=c,fr.default=l,fr}var lg;function OP(){if(lg)return ui;lg=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=CP(),t=PP(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return ui.default=n,ui}var fi={},pi={},cg;function TP(){if(cg)return pi;cg=1,Object.defineProperty(pi,"__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 pi.default=s,pi}var hi={},ug;function EP(){if(ug)return hi;ug=1,Object.defineProperty(hi,"__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 hi.default=n,hi}var mi={},yi={},dg;function kP(){if(dg)return yi;dg=1,Object.defineProperty(yi,"__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 yi.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',yi}var fg;function _P(){if(fg)return mi;fg=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=nt(),t=ut(),n=kP(),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,h=u.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(i.gen,n.default)}(${a})`;i.fail$data((0,e._)`${h} ${d} ${c}`)}};return mi.default=s,mi}var gi={},pg;function RP(){if(pg)return gi;pg=1,Object.defineProperty(gi,"__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:h}=i,m=h.opts.unicodeRegExp?"u":"";if(c){const{regExp:p}=h.opts.code,b=p.code==="new RegExp"?(0,n._)`new RegExp`:(0,t.useFunc)(l,p),f=l.let("valid");l.try(()=>l.assign(f,(0,n._)`${b}(${d}, ${m}).test(${a})`),()=>l.assign(f,!1)),i.fail$data((0,n._)`!${f}`)}else{const p=(0,e.usePattern)(i,u);i.fail$data((0,n._)`!${p}.test(${a})`)}}};return gi.default=s,gi}var bi={},hg;function IP(){if(hg)return bi;hg=1,Object.defineProperty(bi,"__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 bi.default=n,bi}var vi={},mg;function $P(){if(mg)return vi;mg=1,Object.defineProperty(vi,"__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:h}=i,{opts:m}=h;if(!d&&a.length===0)return;const p=a.length>=m.loopRequired;if(h.allErrors?b():f(),m.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=h.schemaEnv.baseId+h.errSchemaPath,P=`required property "${w}" is not defined at "${x}" (strictRequired)`;(0,n.checkStrictMode)(h,P,h.opts.strictRequired)}}function b(){if(p||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(p||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,m.ownProperties),()=>i.error())})}function v(y,S){i.setParams({missingProperty:y}),l.forOf(y,c,()=>{l.assign(S,(0,e.propertyInData)(l,u,y,m.ownProperties)),l.if((0,t.not)(S),()=>{i.error(),l.break()})},t.nil)}}};return vi.default=s,vi}var Si={},yg;function DP(){if(yg)return Si;yg=1,Object.defineProperty(Si,"__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 Si.default=n,Si}var xi={},wi={},gg;function yd(){if(gg)return wi;gg=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=Yy();return e.code='require("ajv/dist/runtime/equal").default',wi.default=e,wi}var bg;function MP(){if(bg)return xi;bg=1,Object.defineProperty(xi,"__esModule",{value:!0});const e=ni(),t=nt(),n=ut(),o=yd(),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:h,schemaCode:m,it:p}=l;if(!u&&!d)return;const b=a.let("valid"),f=h.items?(0,e.getSchemaTypes)(h.items):[];l.block$data(b,g,(0,t._)`${m} === 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"),O=(0,e.checkDataTypes)(f,P,p.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(O,(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),O=a.name("outer");a.label(O).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(O)})))}}};return xi.default=i,xi}var Ci={},vg;function NP(){if(vg)return Ci;vg=1,Object.defineProperty(Ci,"__esModule",{value:!0});const e=nt(),t=ut(),n=yd(),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 Ci.default=s,Ci}var Pi={},Sg;function jP(){if(Sg)return Pi;Sg=1,Object.defineProperty(Pi,"__esModule",{value:!0});const e=nt(),t=ut(),n=yd(),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:h}=i;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const m=u.length>=h.opts.loopEnum;let p;const b=()=>p??(p=(0,t.useFunc)(l,n.default));let f;if(m||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 Pi.default=s,Pi}var xg;function AP(){if(xg)return fi;xg=1,Object.defineProperty(fi,"__esModule",{value:!0});const e=TP(),t=EP(),n=_P(),o=RP(),s=IP(),i=$P(),l=DP(),a=MP(),c=NP(),u=jP(),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 fi.default=d,fi}var Oi={},to={},wg;function Cg(){if(wg)return to;wg=1,Object.defineProperty(to,"__esModule",{value:!0}),to.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:h}=i;h.items=!0;const m=a.const("len",(0,e._)`${u}.length`);if(c===!1)i.setParams({len:l.length}),i.pass((0,e._)`${m} <= ${l.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(h,c)){const b=a.var("valid",(0,e._)`${m} <= ${l.length}`);a.if((0,e.not)(b),()=>p(b)),i.ok(b)}function p(b){a.forRange("i",l.length,m,f=>{i.subschema({keyword:d,dataProp:f,dataPropType:t.Type.Num},b),h.allErrors||a.if((0,e.not)(b),()=>a.break())})}}return to.validateAdditionalItems=s,to.default=o,to}var Ti={},no={},Pg;function Og(){if(Pg)return no;Pg=1,Object.defineProperty(no,"__esModule",{value:!0}),no.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:h,it:m}=i;f(u),m.opts.unevaluated&&a.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(c,a.length,m.items));const p=c.name("valid"),b=c.const("len",(0,e._)`${d}.length`);a.forEach((g,v)=>{(0,t.alwaysValidSchema)(m,g)||(c.if((0,e._)`${b} > ${v}`,()=>i.subschema({keyword:h,schemaProp:v,dataProp:v},p)),i.ok(p))});function f(g){const{opts:v,errSchemaPath:y}=m,S=a.length,w=S===g.minItems&&(S===g.maxItems||g[l]===!1);if(v.strictTuples&&!w){const x=`"${h}" is ${S}-tuple, but minItems or maxItems/${l} are not specified or different at path "${y}"`;(0,t.checkStrictMode)(m,x,v.strictTuples)}}}return no.validateTuple=s,no.default=o,no}var Tg;function FP(){if(Tg)return Ti;Tg=1,Object.defineProperty(Ti,"__esModule",{value:!0});const e=Og(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};return Ti.default=t,Ti}var Ei={},Eg;function VP(){if(Eg)return Ei;Eg=1,Object.defineProperty(Ei,"__esModule",{value:!0});const e=nt(),t=ut(),n=In(),o=Cg(),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 Ei.default=i,Ei}var ki={},kg;function LP(){if(kg)return ki;kg=1,Object.defineProperty(ki,"__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,h;const{minContains:m,maxContains:p}=a;u.opts.next?(d=m===void 0?1:m,h=p):d=1;const b=i.const("len",(0,e._)`${c}.length`);if(s.setParams({min:d,max:h}),h===void 0&&d===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&d>h){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,t.alwaysValidSchema)(u,l)){let S=(0,e._)`${b} >= ${d}`;h!==void 0&&(S=(0,e._)`${S} && ${b} <= ${h}`),s.pass(S);return}u.items=!0;const f=i.name("valid");h===void 0&&d===1?v(f,()=>i.if(f,()=>i.break())):d===0?(i.let(f,!0),h!==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}++`),h===void 0?i.if((0,e._)`${S} >= ${d}`,()=>i.assign(f,!0).break()):(i.if((0,e._)`${S} > ${h}`,()=>i.assign(f,!1).break()),d===1?i.assign(f,!0):i.if((0,e._)`${S} >= ${d}`,()=>i.assign(f,!0)))}}};return ki.default=o,ki}var gd={},_g;function BP(){return _g||(_g=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 h=u===1?"property":"properties";return(0,t.str)`must have ${h} ${d} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:d,missingProperty:h}})=>(0,t._)`{property: ${c},
|
|
11
|
+
missingProperty: ${h},
|
|
12
12
|
depsCount: ${u},
|
|
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=
|
|
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
|
|
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 h in c){if(h==="__proto__")continue;const m=Array.isArray(c[h])?u:d;m[h]=c[h]}return[u,d]}function l(c,u=c.schema){const{gen:d,data:h,it:m}=c;if(Object.keys(u).length===0)return;const p=d.let("missing");for(const b in u){const f=u[b];if(f.length===0)continue;const g=(0,o.propertyInData)(d,h,b,m.opts.ownProperties);c.setParams({property:b,depsCount:f.length,deps:f.join(", ")}),m.allErrors?d.if(g,()=>{for(const v of f)(0,o.checkReportMissingProp)(c,v)}):(d.if((0,t._)`${g} && (${(0,o.checkMissingProp)(c,f,p)})`),(0,o.reportMissingProp)(c,p),d.else())}}e.validatePropertyDeps=l;function a(c,u=c.schema){const{gen:d,data:h,keyword:m,it:p}=c,b=d.name("valid");for(const f in u)(0,n.alwaysValidSchema)(p,u[f])||(d.if((0,o.propertyInData)(d,h,f,p.opts.ownProperties),()=>{const g=c.subschema({keyword:m,schemaProp:f},b);c.mergeValidEvaluated(g,b)},()=>d.var(b,!0)),c.ok(b))}e.validateSchemaDeps=a,e.default=s})(gd)),gd}var _i={},Rg;function qP(){if(Rg)return _i;Rg=1,Object.defineProperty(_i,"__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 _i.default=o,_i}var Ri={},Ig;function $g(){if(Ig)return Ri;Ig=1,Object.defineProperty(Ri,"__esModule",{value:!0});const e=In(),t=nt(),n=dr(),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:h,it:m}=l;if(!h)throw new Error("ajv implementation error");const{allErrors:p,opts:b}=m;if(m.props=!0,b.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(m,c))return;const f=(0,e.allSchemaProperties)(u.properties),g=(0,e.allSchemaProperties)(u.patternProperties);v(),l.ok((0,t._)`${h} === ${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 O;if(f.length>8){const I=(0,o.schemaRefOrVal)(m,u.properties,"properties");O=(0,e.isOwnProperty)(a,I,P)}else f.length?O=(0,t.or)(...f.map(I=>(0,t._)`${P} === ${I}`)):O=t.nil;return g.length&&(O=(0,t.or)(O,...g.map(I=>(0,t._)`${(0,e.usePattern)(l,I)}.test(${P})`))),(0,t.not)(O)}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(),p||a.break();return}if(typeof c=="object"&&!(0,o.alwaysValidSchema)(m,c)){const O=a.name("valid");b.removeAdditional==="failing"?(x(P,O,!1),a.if((0,t.not)(O),()=>{l.reset(),S(P)})):(x(P,O),p||a.if((0,t.not)(O),()=>a.break()))}}function x(P,O,I){const $={keyword:"additionalProperties",dataProp:P,dataPropType:o.Type.Str};I===!1&&Object.assign($,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema($,O)}}};return Ri.default=i,Ri}var Ii={},Dg;function zP(){if(Dg)return Ii;Dg=1,Object.defineProperty(Ii,"__esModule",{value:!0});const e=oi(),t=In(),n=ut(),o=$g(),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 h=(0,t.allSchemaProperties)(a);for(const g of h)d.definedProperties.add(g);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=n.mergeEvaluated.props(l,(0,n.toHash)(h),d.props));const m=h.filter(g=>!(0,n.alwaysValidSchema)(d,a[g]));if(m.length===0)return;const p=l.name("valid");for(const g of m)b(g)?f(g):(l.if((0,t.propertyInData)(l,u,g,d.opts.ownProperties)),f(g),d.allErrors||l.else().var(p,!0),l.endIf()),i.it.definedProperties.add(g),i.ok(p);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},p)}}};return Ii.default=s,Ii}var $i={},Mg;function UP(){if(Mg)return $i;Mg=1,Object.defineProperty($i,"__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:h}=d,m=(0,e.allSchemaProperties)(a),p=m.filter(w=>(0,n.alwaysValidSchema)(d,a[w]));if(m.length===0||p.length===m.length&&(!d.opts.unevaluated||d.props===!0))return;const b=h.strictSchema&&!h.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 m)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=p.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 $i.default=s,$i}var Di={},Ng;function WP(){if(Ng)return Di;Ng=1,Object.defineProperty(Di,"__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 Di.default=t,Di}var Mi={},jg;function HP(){if(jg)return Mi;jg=1,Object.defineProperty(Mi,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:In().validateUnion,error:{message:"must match a schema in anyOf"}};return Mi.default=t,Mi}var Ni={},Ag;function YP(){if(Ag)return Ni;Ag=1,Object.defineProperty(Ni,"__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),h=i.let("passing",null),m=i.name("_valid");s.setParams({passing:h}),i.block(p),s.result(d,()=>s.reset(),()=>s.error(!0));function p(){u.forEach((b,f)=>{let g;(0,t.alwaysValidSchema)(c,b)?i.var(m,!0):g=s.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},m),f>0&&i.if((0,e._)`${m} && ${d}`).assign(d,!1).assign(h,(0,e._)`[${h}, ${f}]`).else(),i.if(m,()=>{i.assign(d,!0),i.assign(h,f),g&&s.mergeEvaluated(g,e.Name)})})}}};return Ni.default=o,Ni}var ji={},Fg;function KP(){if(Fg)return ji;Fg=1,Object.defineProperty(ji,"__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 ji.default=t,ji}var Ai={},Vg;function GP(){if(Vg)return Ai;Vg=1,Object.defineProperty(Ai,"__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 h=l.let("valid",!0),m=l.name("_valid");if(p(),i.reset(),u&&d){const f=l.let("ifClause");i.setParams({ifClause:f}),l.if(m,b("then",f),b("else",f))}else u?l.if(m,b("then")):l.if((0,e.not)(m),b("else"));i.pass(h,()=>i.error(!0));function p(){const f=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);i.mergeEvaluated(f)}function b(f,g){return()=>{const v=i.subschema({keyword:f},m);l.assign(h,m),i.mergeValidEvaluated(v,h),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 Ai.default=o,Ai}var Fi={},Lg;function XP(){if(Lg)return Fi;Lg=1,Object.defineProperty(Fi,"__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 Fi.default=t,Fi}var Bg;function QP(){if(Bg)return Oi;Bg=1,Object.defineProperty(Oi,"__esModule",{value:!0});const e=Cg(),t=FP(),n=Og(),o=VP(),s=LP(),i=BP(),l=qP(),a=$g(),c=zP(),u=UP(),d=WP(),h=HP(),m=YP(),p=KP(),b=GP(),f=XP();function g(v=!1){const y=[d.default,h.default,m.default,p.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 Oi.default=g,Oi}var Vi={},Li={},qg;function JP(){if(qg)return Li;qg=1,Object.defineProperty(Li,"__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:h,errSchemaPath:m,schemaEnv:p,self:b}=d;if(!h.validateFormats)return;a?f():g();function f(){const v=i.scopeValue("formats",{ref:b.formats,code:h.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 h.strictSchema===!1?e.nil:(0,e._)`${u} && !${w}`}function P(){const O=p.$async?(0,e._)`(${y}.async ? await ${w}(${l}) : ${w}(${l}))`:(0,e._)`${w}(${l})`,I=(0,e._)`(typeof ${w} == "function" ? ${O} : ${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(O());function x(){if(h.strictSchema===!1){b.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${c}" ignored in schema at path "${m}"`}}function P(I){const $=I instanceof RegExp?(0,e.regexpCode)(I):h.code.formats?(0,e._)`${h.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 O(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!p.$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 Li.default=n,Li}var zg;function ZP(){if(zg)return Vi;zg=1,Object.defineProperty(Vi,"__esModule",{value:!0});const t=[JP().default];return Vi.default=t,Vi}var jr={},Ug;function eO(){return Ug||(Ug=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.contentVocabulary=jr.metadataVocabulary=void 0,jr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],jr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),jr}var Wg;function tO(){if(Wg)return ci;Wg=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=OP(),t=AP(),n=QP(),o=ZP(),s=eO(),i=[e.default,t.default,(0,n.default)(),o.default,s.metadataVocabulary,s.contentVocabulary];return ci.default=i,ci}var Bi={},Lo={},Hg;function nO(){if(Hg)return Lo;Hg=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 Yg;function rO(){if(Yg)return Bi;Yg=1,Object.defineProperty(Bi,"__esModule",{value:!0});const e=nt(),t=nO(),n=pd(),o=ai(),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:h,it:m}=a,{oneOf:p}=h;if(!m.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(!p)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(h);let O=!0;for(let k=0;k<p.length;k++){let C=p[k];if(C?.$ref&&!(0,s.schemaHasRulesButRef)(C,m.self.RULES)){const D=C.$ref;if(C=n.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,D),C instanceof n.SchemaEnv&&(C=C.schema),C===void 0)throw new o.default(m.opts.uriResolver,m.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}"`);O=O&&(P||I(C)),$(N,k)}if(!O)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 Bi.default=l,Bi}const oO={$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 Kg;function Gg(){return Kg||(Kg=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=wP(),o=tO(),s=rO(),i=oO,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=oi();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 h=fd();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var m=ai();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(Js,Js.exports)),Js.exports}var sO=Gg();const iO=Vt(sO);var qi={exports:{}},bd={},Xg;function aO(){return Xg||(Xg=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(m(!0),p),"iso-time":t(c(),d),"iso-date-time":t(m(),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:O},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,p),"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 h=/t|\s/i;function m(k){const C=c(k);return function(D){const j=D.split(h);return j.length===2&&i(j[0])&&C(j[1])}}function p(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(h),[j,F]=C.split(h),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 O(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}}})(bd)),bd}var vd={},Qg;function lO(){return Qg||(Qg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Gg(),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:h,it:m}=a,{opts:p,self:b}=m;if(!p.validateFormats)return;const f=new t.KeywordCxt(m,b.RULES.all.format.definition,"format");f.$data?g():v();function g(){const S=c.scopeValue("formats",{ref:b.formats,code:p.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(`"${h}": format "${S}" does not define "compare" function`);const x=c.scopeValue("formats",{key:S,ref:w,code:p.code.formats?(0,n._)`${p.code.formats}${(0,n.getProperty)(S)}`:void 0});a.fail$data(y(x))}function y(S){return(0,n._)`${S}.compare(${u}, ${d}) ${s[h].fail} 0`}},dependencies:["format"]};const l=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=l})(vd)),vd}var Jg;function cO(){return Jg||(Jg=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=aO(),o=lO(),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[h,m]=d.mode==="fast"?[n.fastFormats,l]:[n.fullFormats,i],p=d.formats||n.formatNames;return c(u,p,h,m),d.keywords&&(0,o.default)(u),u};a.get=(u,d="full")=>{const m=(d==="fast"?n.fastFormats:n.fullFormats)[u];if(!m)throw new Error(`Unknown format "${u}"`);return m};function c(u,d,h,m){var p,b;(p=(b=u.opts.code).formats)!==null&&p!==void 0||(b.formats=(0,s._)`require("ajv-formats/dist/formats").${m}`);for(const f of d)u.addFormat(f,h[f])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(qi,qi.exports)),qi.exports}var uO=cO();const dO=Vt(uO),zi=new iO({allErrors:!0,strict:!1,keywords:["readonly"]});dO(zi);const Sd=new Map,fO=(e,t)=>{try{return t.split(/[.[\]'"]/).filter(Boolean).reduce((n,o)=>n&&n[o],e)}catch{return}},pO=(e,t)=>{try{const n=Qs(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=fO(n,s);let h;if(a!==void 0)h=a;else if(c!==void 0)h=c;else if(u!==void 0)h=parseFloat(u);else{console.warn(`Could not determine the type of the right-hand value in: ${e}`);return}switch(i){case"===":return d===h;case"!==":return d!==h;case">":return d>h;case"<":return d<h;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},xd=e=>{const t=[];return e.forEach(n=>{t.push({name:n,value:n})}),t},Zg=(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?Qs(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=Zg(t.enumNames,t.enum)),o.schema=t,o},hO=(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[Wt.stringify(n.path)]=o,o}},eb=(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[Wt.stringify(n.path)]=o,o}},tb=(e,t,n)=>{if(tn(t.type)==="number"){const o=yn(e,t,n);return o.key=n.path,o.type="number",n.lookup[Wt.stringify(n.path)]=o,o}},nb=(e,t,n)=>{if(tn(t.type)==="integer"){const o=yn(e,t,n);return o.key=n.path,o.type="number",n.lookup[Wt.stringify(n.path)]=o,o}},mO=(e,t,n)=>{if(tn(t.type)==="date"){const o=yn(e,t,n);return o.key=n.path,o.type="date",n.lookup[Wt.stringify(n.path)]=o,o}},rb=(e,t,n)=>{if(tn(t.type)==="boolean"){const o=yn(e,t,n);return o.key=n.path,o.type="checkbox",n.lookup[Wt.stringify(n.path)]=o,o}},ob=(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=xd(t.enum)),n.lookup[Wt.stringify(n.path)]=o,o}},sb=e=>Object.entries(e).forEach(([t,n])=>{n&&typeof n=="object"?sb(n):(n==null||n==="")&&delete e[t]}),ib=(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=xd(t.items.enum)),n.lookup[Wt.stringify(n.path)]=o,o}},Bo=(e,t,n)=>{const o=pr[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"]&&RC(s.schema["x-schema-form"])&&(s=iP(s,s.schema["x-schema-form"])),s}},ab=(e,t,n)=>{if(tn(t.type)==="object"){const o=yn(e,t,n);return o.type="fieldset",o.items=[],n.lookup[Wt.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[Wt.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}},yO=(e,t,n)=>{if(tn(t.type)==="array"){const o=yn(e,t,n);if(o.type="tuple",o.key=n.path,n.lookup[Wt.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}}},lb=(e,t,n)=>{if(tn(t.type)==="array"){const o=yn(e,t,n);if(o.type="array",o.key=n.path,n.lookup[Wt.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}},pr={string:[ob,eb],object:[ab],number:[tb],integer:[nb],boolean:[rb],array:[ib,yO,lb],date:[mO],tBoolean:[hO]},cb=(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}},ub=e=>e,gO=(e,t)=>{pr[e]||(pr[e]=[]),pr[e].push(t)},bO=(e,t)=>{pr[e]||(pr[e]=[]),pr[e].unshift(t)},vO=(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||[])},wd=(e,t)=>{t(e),e.items&&e.items.forEach(n=>{wd(n,t)}),e.tabs&&e.tabs.forEach(n=>{n.items.forEach(o=>{wd(o,t)})})},Cd=(e,t,n,o,s)=>{t=t||["*"],o=o||{},s=s||e.readonly||e.readOnly;const i=cb(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 ub(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=Wt.parse(c.key)),c&&c.itemForm){c.items=[];const u=Wt.stringify(c.key);a[u].items.forEach(h=>{const m=Qs(c.itemForm);m.key=h.key,c.items.push(m)})}if(c&&c.key){const u=Wt.stringify(c.key);if(a[u]){const d=a[u];Object.keys(d).forEach(h=>{Object.prototype.hasOwnProperty.call(d,h)&&c[h]===void 0&&(c[h]=d[h])})}}return s===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=Cd(e,c.items,n,o,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=Cd(e,u.items,n,o,c.readonly)}),c&&c.type==="checkbox"&&cP(c.schema.default)&&(c.schema.default=!1),c}))};function SO(e,t,n,o){const s=/^\d+$/;t||(t=this);const i=typeof e=="string"?Wt.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 db=(e,t)=>{if(Sd.has(e))return Sd.get(e);try{const n=zi.compile(t);return Sd.set(e,n),n}catch{return null}};function xO(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:wd,traverseSchema:vO,prependRule:bO,appendRule:gO,postProcessFn:ub,getDefaults:cb,defaultFormDefinition:Bo,defaults:pr,array:lb,fieldset:ab,checkboxes:ib,select:ob,checkbox:rb,integer:nb,number:tb,text:eb,stdFormObj:yn,canonicalTitleMap:Zg,enumToTitleMap:xd,stripNullType:tn,merge:Cd,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=db(n,s);return l?l(t===void 0?{}:{[e.key[e.key.length-1]]:t})?{valid:!0}:{valid:!1,error:zi.errorsText(l.errors,{})}:{valid:!1,error:"Invalid Schema"}},validateBySchema:(e,t)=>{e.$schema||(e.$schema="http://json-schema.org/draft-07/schema#");let n=xO(e);const o=db(n,e);return o?o(t===void 0?{}:t)?{valid:!0}:{valid:!1,error:zi.errorsText(o.errors,{})}:{valid:!1,error:"Invalid Schema"}},safeEval:pO,selectOrSet:SO,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:sb};var Ui={exports:{}},Wi={exports:{}},mt={};var fb;function wO(){if(fb)return mt;fb=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,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=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 h:return x;default:switch(x=x&&x.$$typeof,x){case a:case d:case b:case p: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=p,mt.Portal=n,mt.Profiler=i,mt.StrictMode=s,mt.Suspense=h,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)===p},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)===h},mt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===o||x===u||x===i||x===s||x===h||x===m||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===p||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 pb;function CO(){return pb||(pb=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,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=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===h||V===m||typeof V=="object"&&V!==null&&(V.$$typeof===b||V.$$typeof===p||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 h:return G;default:var ne=G&&G.$$typeof;switch(ne){case a:case d:case b:case p:case l:return ne;default:return Q}}case n:return Q}}}var x=c,P=u,O=a,I=l,$=t,M=d,k=o,C=b,N=p,D=n,j=i,F=s,W=h,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)===p}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)===h}yt.AsyncMode=x,yt.ConcurrentMode=P,yt.ContextConsumer=O,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 hb;function mb(){return hb||(hb=1,process.env.NODE_ENV==="production"?Wi.exports=wO():Wi.exports=CO()),Wi.exports}var Pd,yb;function PO(){if(yb)return Pd;yb=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 Pd=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 h in a)t.call(a,h)&&(c[h]=a[h]);if(e){u=e(a);for(var m=0;m<u.length;m++)n.call(a,u[m])&&(c[u[m]]=a[u[m]])}}return c},Pd}var Od,gb;function Td(){if(gb)return Od;gb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Od=e,Od}var Ed,bb;function vb(){return bb||(bb=1,Ed=Function.call.bind(Object.prototype.hasOwnProperty)),Ed}var kd,Sb;function OO(){if(Sb)return kd;Sb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Td(),n={},o=vb();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 h;try{if(typeof i[d]!="function"){var m=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 m.name="Invariant Violation",m}h=i[d](l,d,c,a,null,t)}catch(b){h=b}if(h&&!(h 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 h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var p=u?u():"";e("Failed "+a+" type: "+h.message+(p??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},kd=s,kd}var _d,xb;function TO(){if(xb)return _d;xb=1;var e=mb(),t=PO(),n=Td(),o=vb(),s=OO(),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 _d=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(L){var E=L&&(u&&L[u]||L[d]);if(typeof E=="function")return E}var m="<<anonymous>>",p={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:O,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||m,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||m,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 O(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=h(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?m:L.constructor.name}return p.checkPropTypes=s,p.resetWarningCache=s.resetWarningCache,p.PropTypes=p,p},_d}var Rd,wb;function EO(){if(wb)return Rd;wb=1;var e=Td();function t(){}function n(){}return n.resetWarningCache=t,Rd=function(){function o(l,a,c,u,d,h){if(h!==e){var m=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 m.name="Invariant Violation",m}}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},Rd}var Cb;function kO(){if(Cb)return Ui.exports;if(Cb=1,process.env.NODE_ENV!=="production"){var e=mb(),t=!0;Ui.exports=TO()(e.isElement,t)}else Ui.exports=EO()();return Ui.exports}var _O=kO();const r=Vt(_O);function Pb(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=Pb(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=Pb(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 Ob=0;function RO(e){const[t,n]=T.useState(e),o=e||t;return T.useEffect(()=>{t==null&&(Ob+=1,n(`mui-${Ob}`))},[t]),o}const Tb={...T}.useId;function zn(e){if(Tb!==void 0){const t=Tb();return e??t}return RO(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 Hi={exports:{}},wt={};var Eb;function IO(){if(Eb)return wt;Eb=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"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),p=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 m:return f;default:switch(f=f&&f.$$typeof,f){case l:case a:case h: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=h,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)===h},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===h||f.$$typeof===d||f.$$typeof===l||f.$$typeof===i||f.$$typeof===a||f.$$typeof===p||f.getModuleId!==void 0)},wt.typeOf=b,wt}var Ct={};var kb;function $O(){return kb||(kb=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 p:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case m:case h: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"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=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=m,Ct.Memo=h,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)===m},Ct.isMemo=function(f){return e(f)===h},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===m||f.$$typeof===h||f.$$typeof===a||f.$$typeof===l||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},Ct.typeOf=e})()),Ct}var _b;function DO(){return _b||(_b=1,process.env.NODE_ENV==="production"?Hi.exports=IO():Hi.exports=$O()),Hi.exports}var Yi=DO();function Un(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 Rb(e){if(T.isValidElement(e)||Yi.isValidElementType(e)||!Un(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Rb(e[n])}),t}function Ht(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Un(e)&&Un(t)&&Object.keys(t).forEach(s=>{T.isValidElement(t[s])||Yi.isValidElementType(t[s])?o[s]=t[s]:Un(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Un(e[s])?o[s]=Ht(e[s],t[s],n):n.clone?o[s]=Un(t[s])?Rb(t[s]):t[s]:o[s]=t[s]}),o}function qo(e,t){return t?Ht(e,t,{clone:!1}):e}const hr=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.string,r.object,r.array]):{};function Ib(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 MO(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function NO(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 jO(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 Ki={xs:0,sm:600,md:900,lg:1200,xl:1536},$b={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ki[e]}px)`},AO={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ki[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||$b;return t.reduce((l,a,c)=>(l[i.up(i.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const i=o.breakpoints||$b;return Object.keys(t).reduce((l,a)=>{if(MO(i.keys,a)){const c=NO(o.containerQueries?o:AO,a);c&&(l[c]=n(t[a],a))}else if(Object.keys(i.values||Ki).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 FO(e={}){return e.keys?.reduce((n,o)=>{const s=e.up(o);return n[s]={},n},{})||{}}function Db(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function Gi(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 Xi(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=Gi(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=Gi(c,o)||{};return or(l,a,h=>{let m=Xi(u,s,h);return h===m&&typeof h=="string"&&(m=Xi(u,s,`${t}${h==="default"?"":we(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:hr}:{},i.filterProps=[t],i}function VO(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const LO={m:"margin",p:"padding"},BO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qO=VO(e=>{if(e.length>2)if(Mb[e])e=Mb[e];else return[e];const[t,n]=e.split(""),o=LO[t],s=BO[n]||"";return Array.isArray(s)?s.map(i=>o+i):[o+s]}),Qi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ji=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],zO=[...Qi,...Ji];function zo(e,t,n,o){const s=Gi(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
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
|
|
20
|
-
`));let
|
|
21
|
-
`));const
|
|
18
|
+
`)),()=>{})}function Id(e){return zo(e,"spacing",8,"spacing")}function Uo(e,t){return typeof t=="string"||t==null?t:e(t)}function UO(e,t){return n=>e.reduce((o,s)=>(o[s]=Uo(t,n),o),{})}function WO(e,t,n,o){if(!t.includes(n))return null;const s=qO(n),i=UO(s,o),l=e[n];return or(e,l,i)}function Nb(e,t){const n=Id(e.theme);return Object.keys(e).map(o=>WO(e,t,o,n)).reduce(qo,{})}function Nt(e){return Nb(e,Qi)}Nt.propTypes=process.env.NODE_ENV!=="production"?Qi.reduce((e,t)=>(e[t]=hr,e),{}):{},Nt.filterProps=Qi;function jt(e){return Nb(e,Ji)}jt.propTypes=process.env.NODE_ENV!=="production"?Ji.reduce((e,t)=>(e[t]=hr,e),{}):{},jt.filterProps=Ji,process.env.NODE_ENV!=="production"&&zO.reduce((e,t)=>(e[t]=hr,e),{});function Zi(...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 HO=bn("border",gn),YO=bn("borderTop",gn),KO=bn("borderRight",gn),GO=bn("borderBottom",gn),XO=bn("borderLeft",gn),QO=bn("borderColor"),JO=bn("borderTopColor"),ZO=bn("borderRightColor"),eT=bn("borderBottomColor"),tT=bn("borderLeftColor"),nT=bn("outline",gn),rT=bn("outlineColor"),ea=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};ea.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:hr}:{},ea.filterProps=["borderRadius"],Zi(HO,YO,KO,GO,XO,QO,JO,ZO,eT,tT,ea,nT,rT);const ta=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};ta.propTypes=process.env.NODE_ENV!=="production"?{gap:hr}:{},ta.filterProps=["gap"];const na=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};na.propTypes=process.env.NODE_ENV!=="production"?{columnGap:hr}:{},na.filterProps=["columnGap"];const ra=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};ra.propTypes=process.env.NODE_ENV!=="production"?{rowGap:hr}:{},ra.filterProps=["rowGap"];const oT=At({prop:"gridColumn"}),sT=At({prop:"gridRow"}),iT=At({prop:"gridAutoFlow"}),aT=At({prop:"gridAutoColumns"}),lT=At({prop:"gridAutoRows"}),cT=At({prop:"gridTemplateColumns"}),uT=At({prop:"gridTemplateRows"}),dT=At({prop:"gridTemplateAreas"}),fT=At({prop:"gridArea"});Zi(ta,na,ra,oT,sT,iT,aT,lT,cT,uT,dT,fT);function ro(e,t){return t==="grey"?t:e}const pT=At({prop:"color",themeKey:"palette",transform:ro}),hT=At({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ro}),mT=At({prop:"backgroundColor",themeKey:"palette",transform:ro});Zi(pT,hT,mT);function cn(e){return e<=1&&e!==0?`${e*100}%`:e}const yT=At({prop:"width",transform:cn}),$d=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Ki[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};$d.filterProps=["maxWidth"];const gT=At({prop:"minWidth",transform:cn}),bT=At({prop:"height",transform:cn}),vT=At({prop:"maxHeight",transform:cn}),ST=At({prop:"minHeight",transform:cn});At({prop:"size",cssProperty:"width",transform:cn}),At({prop:"size",cssProperty:"height",transform:cn});const xT=At({prop:"boxSizing"});Zi(yT,$d,gT,bT,vT,ST,xT);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:ea},color:{themeKey:"palette",transform:ro},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ro},backgroundColor:{themeKey:"palette",transform:ro},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:ta},rowGap:{style:ra},columnGap:{style:na},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:$d},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 wT(...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 CT(e,t){return typeof e=="function"?e(t):e}function PT(){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:h}=a;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const m=Gi(s,u)||{};return h?h(l):or(l,o,b=>{let f=Xi(m,d,b);return b===f&&typeof b=="string"&&(f=Xi(m,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=FO(s.breakpoints),h=Object.keys(d);let m=d;return Object.keys(u).forEach(p=>{const b=CT(u[p],s);if(b!=null)if(typeof b=="object")if(l[p])m=qo(m,e(p,b,s,l));else{const f=or({theme:s},b,g=>({[p]:g}));wT(f,b)?m[p]=t({sx:b,theme:s,nested:!0}):m=qo(m,f)}else m=qo(m,e(p,b,s,l))}),!i&&s.modularCssLayers?{"@layer sx":Ib(s,Db(h,m))}:Ib(s,Db(h,m))}return Array.isArray(o)?o.map(a):a(o)}return t}const oo=PT();oo.filterProps=["sx"];const OT=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 TT(e){const{sx:t,...n}=e,{systemProps:o,otherProps:s}=OT(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...l)=>{const a=t(...l);return Un(a)?{...o,...a}:o}:i={...o,...t},{...s,sx:i}}function ET(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 kT={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 _T(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var RT=/[A-Z]|^ms/g,IT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jb=function(t){return t.charCodeAt(1)===45},Ab=function(t){return t!=null&&typeof t!="boolean"},Dd=_T(function(e){return jb(e)?e:e.replace(RT,"-$&").toLowerCase()}),Fb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(IT,function(o,s,i){return mr={name:s,styles:i,next:mr},s})}return kT[t]!==1&&!jb(t)&&typeof n=="number"&&n!==0?n+"px":n};function oa(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 mr={name:s.name,styles:s.styles,next:mr},s.name;var i=n;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)mr={name:l.name,styles:l.styles,next:mr},l=l.next;var a=i.styles+";";return a}return $T(e,t,n)}}var c=n;return c}function $T(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=oa(e,t,n[s])+";";else for(var i in n){var l=n[i];if(typeof l!="object"){var a=l;Ab(a)&&(o+=Dd(i)+":"+Fb(i,a)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)Ab(l[c])&&(o+=Dd(i)+":"+Fb(i,l[c])+";");else{var u=oa(e,t,l);switch(i){case"animation":case"animationName":{o+=Dd(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Vb=/label:\s*([^\s;{]+)\s*(;|$)/g,mr;function DT(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="";mr=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,s+=oa(n,t,i);else{var l=i;s+=l[0]}for(var a=1;a<e.length;a++)if(s+=oa(n,t,e[a]),o){var c=i;s+=c[a]}Vb.lastIndex=0;for(var u="",d;(d=Vb.exec(s))!==null;)u+="-"+d[1];var h=ET(s)+u;return{name:h,styles:s,next:mr}}function MT(e){return e==null||Object.keys(e).length===0}function Lb(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?s=>t(MT(s)?n:s):t;return _.jsx(Jn.Global,{styles:o})}process.env.NODE_ENV!=="production"&&(Lb.propTypes={defaultTheme:r.object,styles:r.oneOfType([r.array,r.string,r.object,r.func])});function NT(e,t){const n=Sw(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 jT(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Bb=[];function yr(e){return Bb[0]=e,DT(Bb)}const AT=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 FT(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,i=AT(t),l=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-o/100}${n})`}function u(m,p){const b=l.indexOf(p);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(b!==-1&&typeof t[l[b]]=="number"?t[l[b]]:p)-o/100}${n})`}function d(m){return l.indexOf(m)+1<l.length?u(m,l[l.indexOf(m)+1]):a(m)}function h(m){const p=l.indexOf(m);return p===0?a(l[1]):p===l.length-1?c(l[p]):u(m,l[l.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:l,values:i,up:a,down:c,between:u,only:d,not:h,unit:n,...s}}const VT={borderRadius:4};function qb(e=8,t=Id({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 LT(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 Md(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:i={},...l}=e,a=FT(n),c=qb(s);let u=Ht({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...VT,...i}},l);return u=jO(u),u.applyStyles=LT,u=t.reduce((d,h)=>Ht(d,h),u),u.unstable_sxConfig={...Wo,...l?.unstable_sxConfig},u.unstable_sx=function(h){return oo({sx:h,theme:this})},u}function BT(e){return Object.keys(e).length===0}function zb(e=null){const t=T.useContext(Jn.ThemeContext);return!t||BT(t)?e:t}const qT=Md();function Nd(e=qT){return zb(e)}function jd(e){const t=yr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ub({styles:e,themeId:t,defaultTheme:n={}}){const o=Nd(n),s=t&&o[t]||o;let i=typeof e=="function"?e(s):e;return s.modularCssLayers&&(Array.isArray(i)?i=i.map(l=>jd(typeof l=="function"?l(s):l)):i=jd(i)),_.jsx(Lb,{styles:i})}process.env.NODE_ENV!=="production"&&(Ub.propTypes={defaultTheme:r.object,styles:r.oneOfType([r.array,r.func,r.number,r.object,r.string,r.bool]),themeId:r.string});const Wb=e=>e,zT=(()=>{let e=Wb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Wb}}})(),UT={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=UT[t];return o?`${n}-${o}`:`${zT.generate(e)}-${t}`}function De(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Me(e,s,n)}),o}function Hb(e,t=""){return e.displayName||e.name||t}function Yb(e,t,n){const o=Hb(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function WT(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Hb(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Yi.ForwardRef:return Yb(e,e.render,"ForwardRef");case Yi.Memo:return Yb(e,e.type,"memo");default:return}}}function Kb(e){const{variants:t,...n}=e,o={variants:t,style:yr(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=yr(s.style))}),o}const HT=Md();function nn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ar(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function YT(e){return e?(t,n)=>n[e]:null}function KT(e,t,n){e.theme=QT(e.theme)?n:e.theme[t]||e.theme}function sa(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(s=>sa(e,s,n));if(Array.isArray(o?.variants)){let s;if(o.isProcessed)s=n?Ar(o.style,n):o.style;else{const{variants:i,...l}=o;s=n?Ar(yr(l),n):l}return Gb(e,o.variants,[s],n)}return o?.isProcessed?n?Ar(yr(o.style),n):o.style:n?Ar(yr(o),n):o}function Gb(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?Ar(yr(l.style(s)),o):l.style(s))):n.push(o?Ar(yr(l.style),o):l.style)}return n}function Xb(e={}){const{themeId:t,defaultTheme:n=HT,rootShouldForwardProp:o=nn,slotShouldForwardProp:s=nn}=e;function i(a){KT(a,t,n)}return(a,c={})=>{jT(a,P=>P.filter(O=>O!==oo));const{name:u,slot:d,skipVariantsResolver:h,skipSx:m,overridesResolver:p=YT(Qb(d)),...b}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",g=h!==void 0?h:d&&d!=="Root"&&d!=="root"||!1,v=m||!1;let y=nn;d==="Root"||d==="root"?y=o:d?y=s:JT(a)&&(y=void 0);const S=NT(a,{shouldForwardProp:y,label:XT(u,d),...b}),w=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(I){return sa(I,P,I.theme.modularCssLayers?f:void 0)};if(Un(P)){const O=Kb(P);return function($){return O.variants?sa($,O,$.theme.modularCssLayers?f:void 0):$.theme.modularCssLayers?Ar(O.style,f):O.style}}return P},x=(...P)=>{const O=[],I=P.map(w),$=[];if(O.push(i),u&&p&&$.push(function(N){const j=N.theme.components?.[u]?.styleOverrides;if(!j)return null;const F={};for(const W in j)F[W]=sa(N,j[W],N.theme.modularCssLayers?"theme":void 0);return p(N,F)}),u&&!g&&$.push(function(N){const j=N.theme?.components?.[u]?.variants;return j?Gb(N,j,[],N.theme.modularCssLayers?"theme":void 0):null}),v||$.push(oo),Array.isArray(I[0])){const C=I.shift(),N=new Array(O.length).fill(""),D=new Array($.length).fill("");let j;j=[...N,...C,...D],j.raw=[...N,...C.raw,...D],O.unshift(j)}const M=[...O,...I,...$],k=S(...M);return a.muiName&&(k.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(k.displayName=GT(u,d,a)),k};return S.withConfig&&(x.withConfig=S.withConfig),x}}function GT(e,t,n){return e?`${e}${we(t||"")}`:`Styled(${WT(n)})`}function XT(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Qb(t||"Root")}`),n}function QT(e){for(const t in e)return!1;return!0}function JT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Qb(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ia=Xb();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 Jb(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 ZT({props:e,name:t,defaultTheme:n,themeId:o}){let s=Nd(n);return s=s[o]||s,Jb({theme:s,name:t,props:e})}const Mt=typeof window<"u"?T.useLayoutEffect:T.useEffect;function eE(e,t,n,o,s){const[i,l]=T.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 Zb={...T}.useSyncExternalStore;function tE(e,t,n,o,s){const i=T.useCallback(()=>t,[t]),l=T.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]=T.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,h=>(d.addEventListener("change",h),()=>{d.removeEventListener("change",h)})]},[i,n,e]);return Zb(c,a,l)}function ev(e={}){const{themeId:t}=e;return function(o,s={}){let i=zb();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}=Jb({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 h=typeof o=="function"?o(i):o;h=h.replace(/^@media( ?)/m,""),h.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 p=(Zb!==void 0?tE:eE)(h,a,c,u,d);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:h,match:p}),p}}ev();function nE(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ad(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}].`),nE(e,t,n)}function rE(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 gr(e){if(e.type)return e;if(e.charAt(0)==="#")return gr(rE(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
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
|
|
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 oE=e=>{const t=gr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Yo=(e,t)=>{try{return oE(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function aa(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 tv(e){e=gr(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])),aa({type:a,values:c})}function Fd(e){e=gr(e);let t=e.type==="hsl"||e.type==="hsla"?gr(tv(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 nv(e,t){const n=Fd(e),o=Fd(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function rn(e,t){return e=gr(e),t=Ad(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,aa(e)}function Fr(e,t,n){try{return rn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function la(e,t){if(e=gr(e),t=Ad(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 aa(e)}function vt(e,t,n){try{return la(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ca(e,t){if(e=gr(e),t=Ad(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 aa(e)}function St(e,t,n){try{return ca(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function sE(e,t=.15){return Fd(e)>.5?la(e,t):ca(e,t)}function ua(e,t,n){try{return sE(e,t)}catch{return e}}const iE="exact-prop: ";function rv(e){return process.env.NODE_ENV==="production"?e:{...e,[iE]: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 aE=T.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const on=()=>T.useContext(aE)??!1,lE=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function cE(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 uE({props:e,name:t}){const n=T.useContext(lE);return cE({props:e,name:t,theme:{components:n}})}const ov={theme:void 0};function dE(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(ov.theme=s.theme,i=Kb(e(ov)),t=i,n=s.theme),i}}function fE(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 sv=(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])})},pE=(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)},hE=(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 Vd(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},i={},l={};return pE(e,(a,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(a,c))){const d=`--${n?`${n}-`:""}${a.join("-")}`,h=hE(a,c);Object.assign(s,{[d]:h}),sv(i,a,`var(${d})`,u),sv(l,a,`var(${d}, ${h})`,u)}},a=>a[0]==="vars"),{css:s,vars:i,varsWithDefaults:l}}function mE(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:h,varsWithDefaults:m}=Vd(u,t);let p=m;const b={},{[c]:f,...g}=l;if(Object.entries(g||{}).forEach(([w,x])=>{const{vars:P,css:O,varsWithDefaults:I}=Vd(x,t);p=Ht(p,I),b[w]={css:O,vars:P}}),f){const{css:w,vars:x,varsWithDefaults:P}=Vd(f,t);p=Ht(p,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:p,generateThemeVars:()=>{let w={...d};return Object.entries(b).forEach(([,{vars:x}])=>{w=Ht(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,{...h}),h);const{[x]:O,...I}=b;if(O){const{css:$}=O,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 yE(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 T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Go={black:"#000",white:"#fff"},gE={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"},so={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},io={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ao={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},lo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},co={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function iv(){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 av=iv();function lv(){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 Ld=lv();function cv(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=ca(e.main,s):t==="dark"&&(e.dark=la(e.main,i)))}function uv(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 bE(e="light"){return e==="dark"?{main:ao[200],light:ao[50],dark:ao[400]}:{main:ao[700],light:ao[400],dark:ao[800]}}function vE(e="light"){return e==="dark"?{main:so[200],light:so[50],dark:so[400]}:{main:so[500],light:so[300],dark:so[700]}}function SE(e="light"){return e==="dark"?{main:io[500],light:io[300],dark:io[700]}:{main:io[700],light:io[400],dark:io[800]}}function xE(e="light"){return e==="dark"?{main:lo[400],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[500],dark:lo[900]}}function wE(e="light"){return e==="dark"?{main:co[400],light:co[300],dark:co[700]}:{main:co[800],light:co[500],dark:co[900]}}function CE(e="light"){return e==="dark"?{main:Xo[400],light:Xo[300],dark:Xo[700]}:{main:"#ed6c02",light:Xo[500],dark:Xo[900]}}function PE(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Bd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:s,...i}=e,l=e.primary||bE(t),a=e.secondary||vE(t),c=e.error||SE(t),u=e.info||xE(t),d=e.success||wE(t),h=e.warning||CE(t);function m(g){if(s)return PE(g);const v=nv(g,Ld.text.primary)>=n?Ld.text.primary:av.text.primary;if(process.env.NODE_ENV!=="production"){const y=nv(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 p=({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
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
26
|
\`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
|
|
27
27
|
|
|
@@ -35,40 +35,40 @@ const theme1 = createTheme({ palette: {
|
|
|
35
35
|
|
|
36
36
|
const theme2 = createTheme({ palette: {
|
|
37
37
|
primary: { main: green[500] },
|
|
38
|
-
} });`:rr(12,v?` (${v})`:"",JSON.stringify(g.main)));return s?(
|
|
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:
|
|
38
|
+
} });`:rr(12,v?` (${v})`:"",JSON.stringify(g.main)));return s?(uv(s,g,"light",S,o),uv(s,g,"dark",w,o)):(cv(g,"light",S,o),cv(g,"dark",w,o)),g.contrastText||(g.contrastText=m(g.main)),g};let b;return t==="light"?b=iv():t==="dark"&&(b=lv()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ht({common:{...Go},mode:t,primary:p({color:l,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:c,name:"error"}),warning:p({color:h,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:d,name:"success"}),grey:gE,contrastThreshold:n,getContrastText:m,augmentColor:p,tonalOffset:o,...b},i)}function OE(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 TE(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 dv={textTransform:"uppercase"},fv='"Roboto", "Helvetica", "Arial", sans-serif';function kE(e,t){const{fontFamily:n=fv,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...h}=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 m=o/14,p=d||(g=>`${g/c*m}rem`),b=(g,v,y,S,w)=>({fontFamily:n,fontWeight:g,fontSize:p(v),lineHeight:y,...n===fv?{letterSpacing:`${EE(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,dv),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,dv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ht({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a,...f},h,{clone:!1})}const _E=.2,RE=.14,IE=.12;function Dt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_E})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${RE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${IE})`].join(",")}const $E=["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)],DE={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)"},ME={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pv(e){return`${Math.round(e)}ms`}function NE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function jE(e){const t={...DE,...e.easing},n={...ME,...e.duration};return{getAutoHeightDuration:NE,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=m=>typeof m=="string",h=m=>!Number.isNaN(parseFloat(m));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(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.'),!h(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:pv(l)} ${a} ${typeof c=="string"?c:pv(c)}`).join(",")},...e,easing:t,duration:n}}const AE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function FE(e){return Un(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function hv(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];!FE(a)||l.startsWith("unstable_")?delete o[l]:Un(a)&&(o[l]={...a},n(o[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
40
40
|
|
|
41
41
|
const theme = ${JSON.stringify(t,null,2)};
|
|
42
42
|
|
|
43
43
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
44
44
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
45
45
|
|
|
46
|
-
export default theme;`}function
|
|
47
|
-
`))}g[y]={}}}};Object.keys(
|
|
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
|
|
50
|
-
`),
|
|
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}=
|
|
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(
|
|
58
|
-
`))}return{top:V.top+
|
|
59
|
-
`)),
|
|
46
|
+
export default theme;`}function mv(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const VE=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 LE(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,VE(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${mv(n)})`:ca(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${mv(n)})`:la(t,n)}})}function qd(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 h=Bd({...i,colorSpace:u}),m=Md(e);let p=Ht(m,{mixins:TE(m.breakpoints,o),palette:h,shadows:$E.slice(),typography:kE(h,a),transitions:jE(l),zIndex:{...AE}});if(p=Ht(p,d),p=t.reduce((b,f)=>Ht(b,f),p),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(p.components).forEach(g=>{const v=p.components[g].styleOverrides;v&&g.startsWith("Mui")&&f(v,g)})}return p.unstable_sxConfig={...Wo,...d?.unstable_sxConfig},p.unstable_sx=function(f){return oo({sx:f,theme:this})},p.toRuntimeSource=hv,LE(p),p}function zd(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 BE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=zd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function yv(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function gv(e){return e==="dark"?BE:[]}function qE(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:s,...i}=e,l=Bd({...t,colorSpace:s});return{palette:l,opacity:{...yv(l.mode),...n},overlays:o||gv(l.mode),...i}}function zE(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 UE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],WE=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 UE(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 HE(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:tv(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 YE(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Wn=e=>{try{return e()}catch{}},KE=(e="mui")=>fE(e);function Ud(e,t,n,o,s){if(!n)return;n=n===!0?{}:n;const i=s==="dark"?"dark":"light";if(!o){t[s]=qE({...n,palette:{mode:i,...n?.palette},colorSpace:e});return}const{palette:l,...a}=qd({...o,palette:{mode:i,...n?.palette},colorSpace:e});return t[s]={...n,palette:l,opacity:{...yv(i),...n?.opacity},overlays:n?.overlays||gv(i)},a}function GE(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:l=!1,shouldSkipGeneratingVar:a=zE,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,h=Object.keys(n)[0],m=o||(n.light&&h!=="light"?"light":h),p=KE(i),{[m]:b,light:f,dark:g,...v}=n,y={...v};let S=b;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:rr(21,m));let w;l&&(w="oklch");const x=Ud(w,y,S,d,m);f&&!y.light&&Ud(w,y,f,void 0,"light"),g&&!y.dark&&Ud(w,y,g,void 0,"dark");let P={defaultColorScheme:m,...x,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:p,colorSchemes:y,font:{...OE(x.typography),...x.font},spacing:YE(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 p(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===Fr&&(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(HE(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,l?p("palette-error-light"):C.error.light,.6)),ye(C.Alert,"infoColor",D(vt,l?p("palette-info-light"):C.info.light,.6)),ye(C.Alert,"successColor",D(vt,l?p("palette-success-light"):C.success.light,.6)),ye(C.Alert,"warningColor",D(vt,l?p("palette-warning-light"):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",Wn(()=>C.getContrastText(C.error.main))),ye(C.Alert,"infoFilledColor",Wn(()=>C.getContrastText(C.info.main))),ye(C.Alert,"successFilledColor",Wn(()=>C.getContrastText(C.success.main))),ye(C.Alert,"warningFilledColor",Wn(()=>C.getContrastText(C.warning.main))),ye(C.Alert,"errorStandardBg",D(St,l?p("palette-error-light"):C.error.light,.9)),ye(C.Alert,"infoStandardBg",D(St,l?p("palette-info-light"):C.info.light,.9)),ye(C.Alert,"successStandardBg",D(St,l?p("palette-success-light"):C.success.light,.9)),ye(C.Alert,"warningStandardBg",D(St,l?p("palette-warning-light"):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,l?p("palette-primary-main"):C.primary.main,.62)),ye(C.LinearProgress,"secondaryBg",D(St,l?p("palette-secondary-main"):C.secondary.main,.62)),ye(C.LinearProgress,"errorBg",D(St,l?p("palette-error-main"):C.error.main,.62)),ye(C.LinearProgress,"infoBg",D(St,l?p("palette-info-main"):C.info.main,.62)),ye(C.LinearProgress,"successBg",D(St,l?p("palette-success-main"):C.success.main,.62)),ye(C.LinearProgress,"warningBg",D(St,l?p("palette-warning-light"):C.warning.main,.62)),ye(C.Skeleton,"bg",w?D(Fr,l?p("palette-text-primary"):C.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),ye(C.Slider,"primaryTrack",D(St,l?p("palette-primary-main"):C.primary.main,.62)),ye(C.Slider,"secondaryTrack",D(St,l?p("palette-secondary-main"):C.secondary.main,.62)),ye(C.Slider,"errorTrack",D(St,l?p("palette-error-main"):C.error.main,.62)),ye(C.Slider,"infoTrack",D(St,l?p("palette-info-main"):C.info.main,.62)),ye(C.Slider,"successTrack",D(St,l?p("palette-success-main"):C.success.main,.62)),ye(C.Slider,"warningTrack",D(St,l?p("palette-warning-main"):C.warning.main,.62));const j=w?D(vt,l?p("palette-background-default"):C.background.default,.6825):ua(C.background.default,.8);ye(C.SnackbarContent,"bg",j),ye(C.SnackbarContent,"color",Wn(()=>w?Ld.text.primary:C.getContrastText(j))),ye(C.SpeedDialAction,"fabHoverBg",ua(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,l?p("palette-primary-main"):C.primary.main,.62)),ye(C.Switch,"secondaryDisabledColor",D(St,l?p("palette-secondary-main"):C.secondary.main,.62)),ye(C.Switch,"errorDisabledColor",D(St,l?p("palette-error-main"):C.error.main,.62)),ye(C.Switch,"infoDisabledColor",D(St,l?p("palette-info-main"):C.info.main,.62)),ye(C.Switch,"successDisabledColor",D(St,l?p("palette-success-main"):C.success.main,.62)),ye(C.Switch,"warningDisabledColor",D(St,l?p("palette-warning-main"):C.warning.main,.62)),ye(C.TableCell,"border",D(St,Fr(l?p("palette-divider"):C.divider,1),.88)),ye(C.Tooltip,"bg",D(Fr,l?p("palette-grey-700"):C.grey[700],.92))}if(C.mode==="dark"){ye(C.Alert,"errorColor",D(St,l?p("palette-error-light"):C.error.light,.6)),ye(C.Alert,"infoColor",D(St,l?p("palette-info-light"):C.info.light,.6)),ye(C.Alert,"successColor",D(St,l?p("palette-success-light"):C.success.light,.6)),ye(C.Alert,"warningColor",D(St,l?p("palette-warning-light"):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",Wn(()=>C.getContrastText(C.error.dark))),ye(C.Alert,"infoFilledColor",Wn(()=>C.getContrastText(C.info.dark))),ye(C.Alert,"successFilledColor",Wn(()=>C.getContrastText(C.success.dark))),ye(C.Alert,"warningFilledColor",Wn(()=>C.getContrastText(C.warning.dark))),ye(C.Alert,"errorStandardBg",D(vt,l?p("palette-error-light"):C.error.light,.9)),ye(C.Alert,"infoStandardBg",D(vt,l?p("palette-info-light"):C.info.light,.9)),ye(C.Alert,"successStandardBg",D(vt,l?p("palette-success-light"):C.success.light,.9)),ye(C.Alert,"warningStandardBg",D(vt,l?p("palette-warning-light"):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,l?p("palette-primary-main"):C.primary.main,.5)),ye(C.LinearProgress,"secondaryBg",D(vt,l?p("palette-secondary-main"):C.secondary.main,.5)),ye(C.LinearProgress,"errorBg",D(vt,l?p("palette-error-main"):C.error.main,.5)),ye(C.LinearProgress,"infoBg",D(vt,l?p("palette-info-main"):C.info.main,.5)),ye(C.LinearProgress,"successBg",D(vt,l?p("palette-success-main"):C.success.main,.5)),ye(C.LinearProgress,"warningBg",D(vt,l?p("palette-warning-main"):C.warning.main,.5)),ye(C.Skeleton,"bg",w?D(Fr,l?p("palette-text-primary"):C.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),ye(C.Slider,"primaryTrack",D(vt,l?p("palette-primary-main"):C.primary.main,.5)),ye(C.Slider,"secondaryTrack",D(vt,l?p("palette-secondary-main"):C.secondary.main,.5)),ye(C.Slider,"errorTrack",D(vt,l?p("palette-error-main"):C.error.main,.5)),ye(C.Slider,"infoTrack",D(vt,l?p("palette-info-main"):C.info.main,.5)),ye(C.Slider,"successTrack",D(vt,l?p("palette-success-main"):C.success.main,.5)),ye(C.Slider,"warningTrack",D(vt,l?p("palette-warning-light"):C.warning.main,.5));const j=w?D(St,l?p("palette-background-default"):C.background.default,.985):ua(C.background.default,.98);ye(C.SnackbarContent,"bg",j),ye(C.SnackbarContent,"color",Wn(()=>w?av.text.primary:C.getContrastText(j))),ye(C.SpeedDialAction,"fabHoverBg",ua(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,l?p("palette-primary-main"):C.primary.main,.55)),ye(C.Switch,"secondaryDisabledColor",D(vt,l?p("palette-secondary-main"):C.secondary.main,.55)),ye(C.Switch,"errorDisabledColor",D(vt,l?p("palette-error-main"):C.error.main,.55)),ye(C.Switch,"infoDisabledColor",D(vt,l?p("palette-info-main"):C.info.main,.55)),ye(C.Switch,"successDisabledColor",D(vt,l?p("palette-success-main"):C.success.main,.55)),ye(C.Switch,"warningDisabledColor",D(vt,l?p("palette-warning-light"):C.warning.main,.55)),ye(C.TableCell,"border",D(vt,Fr(l?p("palette-divider"):C.divider,1),.68)),ye(C.Tooltip,"bg",D(Fr,l?p("palette-grey-700"):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)=>Ht(k,C),P);const O={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:a,getSelector:WE(P),enableContrastVars:l},{vars:I,generateThemeVars:$,generateStyleSheets:M}=mE(P,O);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 qb(d.spacing,Id(this))},P.getColorSchemeSelector=yE(c),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=a,P.unstable_sxConfig={...Wo,...d?.unstable_sxConfig},P.unstable_sx=function(C){return oo({sx:C,theme:this})},P.toRuntimeSource=hv,P}function bv(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Bd({...n===!0?{}:n.palette,mode:t})})}function XE(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 qd(e,...t);let d=n;"palette"in e||u[a]&&(u[a]!==!0?d=u[a].palette:a==="dark"&&(d={mode:"dark"}));const h=qd({...e,palette:d},...t);return h.defaultColorScheme=a,h.colorSchemes=u,h.palette.mode==="light"&&(h.colorSchemes.light={...u.light!==!0&&u.light,palette:h.palette},bv(h,"dark",u.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:h.palette},bv(h,"light",u.light)),h}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),GE({...l,colorSchemes:u,defaultColorScheme:a,...typeof o!="boolean"&&o},...t)}const da=XE(),Jo="$$material";function Vr(){const e=Nd(da);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[Jo]||e}function vv(e){return _.jsx(Ub,{...e,defaultTheme:da,themeId:Jo})}process.env.NODE_ENV!=="production"&&(vv.propTypes={styles:r.oneOfType([r.array,r.func,r.number,r.object,r.string,r.bool])});function Sv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Yt=e=>Sv(e)&&e!=="classes",ie=Xb({themeId:Jo,defaultTheme:da,rootShouldForwardProp:Yt});function QE(e){return function(n){return _.jsx(vv,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function JE(){return TT}process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function Je(e){return uE(e)}function vn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function ZE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function e1(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"&&!ZE(i)&&(a="Did you accidentally provide a plain function component instead?"),i===T.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 fa=vn(r.elementType,e1);function uo(e){return typeof e=="string"}function pa(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=T.useRef(void 0),n=T.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 T.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=T.useRef(e);return Mt(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function Lt(e){return e&&e.ownerDocument||document}function Dn(e){return Lt(e).defaultView||window}function ha(e){return parseInt(e,10)||0}const t1={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function n1(e){for(const t in e)return!1;return!0}function xv(e){return n1(e)||e.outerHeightStyle===0&&!e.overflowing}const wv=T.forwardRef(function(t,n){const{onChange:o,maxRows:s,minRows:i=1,style:l,value:a,...c}=t,{current:u}=T.useRef(a!=null),d=T.useRef(null),h=at(n,d),m=T.useRef(null),p=T.useRef(null),b=T.useCallback(()=>{const S=d.current,w=p.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 O=P.boxSizing,I=ha(P.paddingBottom)+ha(P.paddingTop),$=ha(P.borderBottomWidth)+ha(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+(O==="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||xv(w))return!1;const x=w.outerHeightStyle;return m.current!=null&&m.current!==x}),g=T.useCallback(()=>{const S=d.current,w=b();if(!S||!w||xv(w))return;const x=w.outerHeightStyle;m.current!==x&&(m.current=x,S.style.height=`${x}px`),S.style.overflow=w.overflowing?"hidden":""},[b]),v=T.useRef(-1);Mt(()=>{const S=pa(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
|
+
`),O=w.selectionStart===x;P&&O&&w.setSelectionRange(x,x),o&&o(S)};return _.jsxs(T.Fragment,{children:[_.jsx("textarea",{value:a,onChange:y,ref:h,rows:i,style:l,...c}),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...t1.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(wv.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 br({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=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Zo.displayName="FormControlContext");function un(){return T.useContext(Zo)}const Xe=dE;function Cv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ma(e,t=!1){return e&&(Cv(e.value)&&e.value!==""||t&&Cv(e.defaultValue)&&e.defaultValue!=="")}function r1(e){return e.startAdornment}function o1(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 Pv;const ya=(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]},ga=(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]},s1=e=>{const{classes:t,color:n,disabled:o,error:s,endAdornment:i,focused:l,formControl:a,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:h,size:m,startAdornment:p,type:b}=e,f={root:["root",`color${we(n)}`,o&&"disabled",s&&"error",c&&"fullWidth",l&&"focused",a&&"formControl",m&&m!=="medium"&&`size${we(m)}`,d&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",o&&"disabled",b==="search"&&"inputTypeSearch",d&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return $e(f,o1,t)},ba=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ya})(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%"}}]}))),va=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ga})(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"}}]}})),Ov=QE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Sa=T.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:h,disabled:m,disableInjectingGlobalStyles:p,endAdornment:b,error:f,fullWidth:g=!1,id:v,inputComponent:y="input",inputProps:S={},inputRef:w,margin:x,maxRows:P,minRows:O,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}=T.useRef(X!=null),te=T.useRef(),J=T.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(`
|
|
51
|
+
`))},[]),B=at(te,w,S.ref,J),[V,Q]=T.useState(!1),G=un();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(G)return G.registerEffect()},[G]);const ne=br({props:o,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=G?G.focused:V,T.useEffect(()=>{!G&&m&&V&&(Q(!1),M&&M())},[G,m,V,M]);const ae=G&&G.onFilled,re=G&&G.onEmpty,ce=T.useCallback(Oe=>{ma(Oe)?ae&&ae():re&&re()},[ae,re]);Mt(()=>{se&&ce({value:X})},[X,ce,se]);const be=Oe=>{N&&N(Oe),S.onFocus&&S.onFocus(Oe),G&&G.onFocus?G.onFocus(Oe):Q(!0)},oe=Oe=>{M&&M(Oe),S.onBlur&&S.onBlur(Oe),G&&G.onBlur?G.onBlur(Oe):Q(!1)},fe=(Oe,...Le)=>{if(!se){const Ke=Oe.target||te.current;if(Ke==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:Ke.value})}S.onChange&&S.onChange(Oe,...Le),k&&k(Oe,...Le)};T.useEffect(()=>{ce(te.current)},[]);const ve=Oe=>{te.current&&Oe.currentTarget===Oe.target&&te.current.focus(),C&&C(Oe)};let ke=y,je=S;I&&ke==="input"&&(H?(process.env.NODE_ENV!=="production"&&(O||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:O,...je},ke=wv);const We=Oe=>{ce(Oe.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};T.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=s1(Ve),Qe=q.root||u.Root||ba,Ae=E.root||d.root||{},Ne=q.input||u.Input||va;return je={...je,...E.input??d.input},_.jsxs(T.Fragment,{children:[!p&&typeof Ov=="function"&&(Pv||(Pv=_.jsx(Ov,{}))),_.jsxs(Qe,{...Ae,ref:n,onClick:ve,...U,...!uo(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:h,disabled:ne.disabled,id:v,onAnimationStart:We,name:$,placeholder:F,readOnly:W,required:ne.required,rows:H,value:X,onKeyDown:D,onKeyUp:j,type:R,...je,...!uo(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"&&(Sa.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:fa,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 i1(e){return typeof e.main=="string"}function a1(e,t=[]){if(!i1(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&&a1(t,e)}function l1(e){return Me("MuiInput",e)}const vr={...dn,...De("MuiInput",["root","underline","input"])},c1=e=>{const{classes:t,disableUnderline:n}=e,s=$e({root:["root",!n&&"underline"],input:["input"]},l1,t);return{...t,...s}},u1=ie(ba,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ya(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"},[`&.${vr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vr.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(.${vr.disabled}, .${vr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${vr.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}`}}}))]}})),d1=ie(va,{name:"MuiInput",slot:"Input",overridesResolver:ga})({}),xa=T.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:h={},type:m="text",...p}=o,b=c1(o),g={root:{ownerState:{disableUnderline:s}}},v=d??l?Ht(d??l,g):g,y=h.root??i.Root??u1,S=h.input??i.Input??d1;return _.jsx(Sa,{slots:{root:y,input:S},slotProps:v,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:m,...p,classes:b})});process.env.NODE_ENV!=="production"&&(xa.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}),xa.muiName="Input";function f1(e){return Me("MuiFilledInput",e)}const fn={...dn,...De("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function Wd(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function p1(e){return Me("MuiSvgIcon",e)}De("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const h1=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${we(t)}`,`fontSize${we(n)}`]};return $e(s,p1,o)},m1=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}}]}))),wa=T.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:h,viewBox:m="0 0 24 24",...p}=o,b=T.isValidElement(s)&&s.type==="svg",f={...o,color:l,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:b},g={};d||(g.viewBox=m);const v=h1(f);return _.jsxs(m1,{as:a,className:Ce(v.root,i),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...g,...p,...b&&s.props,ownerState:f,children:[b?s.props.children:s,h?_.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(wa.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}),wa.muiName="SvgIcon";function Pt(e,t){function n(o,s){return _.jsx(wa,{"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=wa.muiName,T.memo(T.forwardRef(n))}function Hd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Tv(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}=T.useRef(t!==void 0),[l,a]=T.useState(n),c=i?t:l;if(process.env.NODE_ENV!=="production"){T.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}=T.useRef(n);T.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=T.useCallback(d=>{i||a(d)},[]);return[c,u]}function y1(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Ev(e,t){if(!e)return t;function n(l,a){const c={};return Object.keys(a).forEach(u=>{y1(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 g1=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,f1,t);return{...t,...u}},b1=ie(ba,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ya(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}}]}})),v1=ie(va,{name:"MuiFilledInput",slot:"Input",overridesResolver:ga})(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}}]}))),Ca=T.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:h,slots:m={},type:p="text",...b}=o,f={...o,disableUnderline:s,fullWidth:a,inputComponent:u,multiline:d,type:p},g=g1(o),v={root:{ownerState:f},input:{ownerState:f}},y=h??l?Ht(v,h??l):v,S=m.root??i.Root??b1,w=m.input??i.Input??v1;return _.jsx(Sa,{slots:{root:S,input:w},slotProps:y,fullWidth:a,inputComponent:u,multiline:d,ref:n,type:p,...b,classes:g})});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}),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}),Ca.muiName="Input";var kv;const S1=ie("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Yt})({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%"}),x1=ie("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Yt})(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 _v(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(S1,{"aria-hidden":!0,className:o,ownerState:c,...l,children:_.jsx(x1,{ownerState:c,children:a?_.jsx("span",{children:s}):kv||(kv=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(_v.propTypes={children:r.node,classes:r.object,className:r.string,label:r.node,notched:r.bool.isRequired,style:r.object});function w1(e){return Me("MuiOutlinedInput",e)}const Sn={...dn,...De("MuiOutlinedInput",["root","notchedOutline","input"])};function Rv(e,t,n){return e===void 0||uo(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function xn(e,t,n){return typeof e=="function"?e(t,n):e}function Iv(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 $v(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 Dv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const p=Ce(n?.className,i,s?.className,o?.className),b={...n?.style,...s?.style,...o?.style},f={...n,...s,...o};return p.length>0&&(f.className=p),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const l=Iv({...s,...o}),a=$v(o),c=$v(s),u=t(l),d=Ce(u?.className,n?.className,i,s?.className,o?.className),h={...u?.style,...n?.style,...s?.style,...o?.style},m={...u,...n,...c,...a};return d.length>0&&(m.className=d),Object.keys(h).length>0&&(m.style=h),{props:m,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:h={[e]:void 0},...m}=i,p=d[e]||o,b=xn(h[e],s),{props:{component:f,...g},internalRef:v}=Dv({className:n,...c,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:b}),y=at(v,b?.ref,t.ref),S=e==="root"?f||u:f,w=Rv(p,{...e==="root"&&!u&&!d[e]&&l,...e!=="root"&&!d[e]&&l,...g,...S&&!a&&{as:S},...S&&a&&{component:S},ref:y},s);return[p,w]}const C1=e=>{const{classes:t}=e,o=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},w1,t);return{...t,...o}},P1=ie(ba,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ya})(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"}}]}})),O1=ie(_v,{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}})),T1=ie(va,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ga})(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}}]}))),Pa=T.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:h={},type:m="text",...p}=o,b=C1(o),f=un(),g=br({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:m},y=d.root??s.Root??P1,S=d.input??s.Input??T1,[w,x]=ot("notchedOutline",{elementType:O1,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:h},additionalProps:{label:a!=null&&a!==""&&g.required?_.jsxs(T.Fragment,{children:[a," ","*"]}):a}});return _.jsx(Sa,{slots:{root:y,input:S},slotProps:h,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:m,...p,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Pa.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}),Pa.muiName="Input";function E1(e){return Me("MuiFormLabel",e)}const es=De("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),k1=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,E1,t)},_1=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}}}]}))),R1=ie("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xe(({theme:e})=>({[`&.${es.error}`]:{color:(e.vars||e).palette.error.main}}))),ir=T.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:h,required:m,...p}=o,b=un(),f=br({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=k1(g);return _.jsxs(_1,{as:a,ownerState:g,className:Ce(v.root,i),ref:n,...p,children:[s,f.required&&_.jsxs(R1,{ownerState:g,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(ir.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 I1(e){return Me("MuiInputLabel",e)}De("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $1=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,I1,t);return{...t,...u}},D1=ie(ir,{shouldForwardProp:e=>Yt(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=T.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 h=l;typeof h>"u"&&d&&(h=d.filled||d.focused||d.adornedStart);const m=br({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),p={...o,disableAnimation:s,formControl:d,shrink:h,size:m.size,variant:m.variant,required:m.required,focused:m.focused},b=$1(p);return _.jsx(D1,{"data-shrink":h,ref:n,className:Ce(b.root,c),...u,ownerState:p,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 M1(e){return Me("MuiFormControl",e)}De("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const N1=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${we(n)}`,o&&"fullWidth"]};return $e(s,M1,t)},j1=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%"}}]}),Sr=T.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:h=!1,hiddenLabel:m=!1,margin:p="none",required:b=!1,size:f="medium",variant:g="outlined",...v}=o,y={...o,color:l,component:a,disabled:c,error:u,fullWidth:h,hiddenLabel:m,margin:p,required:b,size:f,variant:g},S=N1(y),[w,x]=T.useState(()=>{let F=!1;return s&&T.Children.forEach(s,W=>{if(!Ko(W,["Input","Select"]))return;const Y=Ko(W,["Select"])?W.props.input:W;Y&&r1(Y.props)&&(F=!0)}),F}),[P,O]=T.useState(()=>{let F=!1;return s&&T.Children.forEach(s,W=>{Ko(W,["Input","Select"])&&(ma(W.props,!0)||ma(W.props.inputProps,!0))&&(F=!0)}),F}),[I,$]=T.useState(!1);c&&I&&$(!1);const M=d!==void 0&&!c?d:I;let k;const C=T.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=T.useCallback(()=>{O(!0)},[]),D=T.useCallback(()=>{O(!1)},[]),j=T.useMemo(()=>({adornedStart:w,setAdornedStart:x,color:l,disabled:c,error:u,filled:P,focused:M,fullWidth:h,hiddenLabel:m,size:f,onBlur:()=>{$(!1)},onFocus:()=>{$(!0)},onEmpty:D,onFilled:N,registerEffect:k,required:b,variant:g}),[w,l,c,u,P,M,h,m,k,D,N,b,f,g]);return _.jsx(Zo.Provider,{value:j,children:_.jsx(j1,{as:a,ownerState:y,className:Ce(S.root,i),ref:n,...v,children:s})})});process.env.NODE_ENV!=="production"&&(Sr.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 A1(e){return Me("MuiFormHelperText",e)}const Mv=De("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Nv;const F1=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,A1,t)},V1=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,[`&.${Mv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mv.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}}]}))),Lr=T.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:h,required:m,variant:p,...b}=o,f=un(),g=br({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=F1(v);return _.jsx(V1,{as:l,className:Ce(y.root,i),ref:n,...b,ownerState:v,children:s===" "?Nv||(Nv=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):s})});process.env.NODE_ENV!=="production"&&(Lr.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(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}var Oa={exports:{}},Ot={};var jv;function L1(){if(jv)return Ot;jv=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"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),p=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 m:return f;default:switch(f=f&&f.$$typeof,f){case l:case a:case h:case d:return f;case i:return f;default:return g}}case t:return g}}}return Ot.ContextConsumer=i,Ot.ContextProvider=l,Ot.Element=e,Ot.ForwardRef=a,Ot.Fragment=n,Ot.Lazy=h,Ot.Memo=d,Ot.Portal=t,Ot.Profiler=s,Ot.StrictMode=o,Ot.Suspense=c,Ot.SuspenseList=u,Ot.isContextConsumer=function(f){return b(f)===i},Ot.isContextProvider=function(f){return b(f)===l},Ot.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ot.isForwardRef=function(f){return b(f)===a},Ot.isFragment=function(f){return b(f)===n},Ot.isLazy=function(f){return b(f)===h},Ot.isMemo=function(f){return b(f)===d},Ot.isPortal=function(f){return b(f)===t},Ot.isProfiler=function(f){return b(f)===s},Ot.isStrictMode=function(f){return b(f)===o},Ot.isSuspense=function(f){return b(f)===c},Ot.isSuspenseList=function(f){return b(f)===u},Ot.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===h||f.$$typeof===d||f.$$typeof===l||f.$$typeof===i||f.$$typeof===a||f.$$typeof===p||f.getModuleId!==void 0)},Ot.typeOf=b,Ot}var Tt={};var Av;function B1(){return Av||(Av=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 p:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case m:case h: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"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Tt.ContextConsumer=l,Tt.ContextProvider=a,Tt.Element=t,Tt.ForwardRef=c,Tt.Fragment=o,Tt.Lazy=m,Tt.Memo=h,Tt.Portal=n,Tt.Profiler=i,Tt.StrictMode=s,Tt.Suspense=u,Tt.SuspenseList=d,Tt.isContextConsumer=function(f){return e(f)===l},Tt.isContextProvider=function(f){return e(f)===a},Tt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Tt.isForwardRef=function(f){return e(f)===c},Tt.isFragment=function(f){return e(f)===o},Tt.isLazy=function(f){return e(f)===m},Tt.isMemo=function(f){return e(f)===h},Tt.isPortal=function(f){return e(f)===n},Tt.isProfiler=function(f){return e(f)===i},Tt.isStrictMode=function(f){return e(f)===s},Tt.isSuspense=function(f){return e(f)===u},Tt.isSuspenseList=function(f){return e(f)===d},Tt.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===m||f.$$typeof===h||f.$$typeof===a||f.$$typeof===l||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},Tt.typeOf=e})()),Tt}var Fv;function q1(){return Fv||(Fv=1,process.env.NODE_ENV==="production"?Oa.exports=L1():Oa.exports=B1()),Oa.exports}var Ta=q1();function ar(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}=Dv({...i,externalSlotProps:l}),u=at(c,l?.ref,e.additionalProps?.ref);return Rv(t,{...a,ref:u},o)}const xr=T.createContext({});process.env.NODE_ENV!=="production"&&(xr.displayName="ListContext");function z1(e){return Me("MuiList",e)}De("MuiList",["root","padding","dense","subheader"]);const U1=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return $e({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},z1,t)},W1=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}}]}),Yd=T.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,h=T.useMemo(()=>({dense:a}),[a]),m={...o,component:l,dense:a,disablePadding:c},p=U1(m);return _.jsx(xr.Provider,{value:h,children:_.jsxs(W1,{as:l,className:Ce(p.root,i),ref:n,ownerState:m,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(Yd.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 Vv(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Kd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Lv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bv(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")||!Bv(a,i)||c)a=s(e,a,n);else return a.focus(),!0}return!1}const Ea=T.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:h="selectedMenu",...m}=t,p=T.useRef(null),b=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mt(()=>{s&&p.current.focus()},[s]),T.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(S,{direction:w})=>{const x=!p.current.style.width;if(S.clientHeight<p.current.clientHeight&&x){const P=`${Vv(Dn(S))}px`;p.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=P,p.current.style.width=`calc(100% + ${P})`}return p.current}}),[]);const f=S=>{const w=p.current,x=S.key;if(S.ctrlKey||S.metaKey||S.altKey){d&&d(S);return}const O=fo(Lt(w));if(x==="ArrowDown")S.preventDefault(),rs(w,O,u,c,Kd);else if(x==="ArrowUp")S.preventDefault(),rs(w,O,u,c,Lv);else if(x==="Home")S.preventDefault(),rs(w,null,u,c,Kd);else if(x==="End")S.preventDefault(),rs(w,null,u,c,Lv);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=O&&!I.repeating&&Bv(O,I);I.previousKeyMatched&&(k||rs(w,O,!1,c,Kd,I))?S.preventDefault():I.previousKeyMatched=!1}d&&d(S)},g=at(p,n);let v=-1;T.Children.forEach(l,(S,w)=>{if(!T.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||(h==="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=T.Children.map(l,(S,w)=>{if(w===v){const x={};return i&&(x.autoFocus=!0),S.props.tabIndex===void 0&&h==="selectedMenu"&&(x.tabIndex=0),T.cloneElement(S,x)}return S});return _.jsx(Yd,{role:"menu",ref:g,className:a,onKeyDown:f,tabIndex:s?0:-1,...m,children:y})});process.env.NODE_ENV!=="production"&&(Ea.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 H1(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 qv(e,t,n,o){const s=e[t];if(s==null||!Number.isInteger(s)){const i=H1(s);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function zv(e,t,n,o){return e[t]===void 0?null:qv(e,t,n,o)}function Gd(){return null}zv.isRequired=qv,Gd.isRequired=Gd;const Xd=process.env.NODE_ENV==="production"?Gd:zv;function os(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}const Uv={};function Wv(e,t){const n=T.useRef(Uv);return n.current===Uv&&(n.current=e(t)),n}const Y1=[];function K1(e){T.useEffect(e,Y1)}class Qd{static create(){return new Qd}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 wr(){const e=Wv(Qd.create).current;return K1(e.disposeEffect),e}function G1(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Hv(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"&&!G1(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 ss=vn(r.element,Hv);ss.isRequired=vn(r.element.isRequired,Hv);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 Jd(e,t){return Jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Jd(e,t)}function Zd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jd(e,t)}function X1(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Q1(e,t){e.classList?e.classList.add(t):X1(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Yv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function J1(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Yv(e.className,t):e.setAttribute("class",Yv(e.className&&e.className.baseVal||"",t))}const Kv={disabled:!1};var Z1=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.shape({enter:r.number,exit:r.number,appear:r.number}).isRequired]):null,ek=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 ka=Ue.createContext(null);var Gv=function(t){return t.scrollTop},is="unmounted",Br="exited",qr="entering",po="entered",ef="exiting",wn=(function(e){Zd(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=Br,i.appearStatus=qr):c=po:o.unmountOnExit||o.mountOnEnter?c=is:c=Br,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var l=s.in;return l&&i.status===is?{status:Br}: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!==qr&&l!==po&&(i=qr):(l===qr||l===po)&&(i=ef)}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===qr){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Io.findDOMNode(this);l&&Gv(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Br&&this.setState({status:is})},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],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!s&&!l||Kv.disabled){this.safeSetState({status:po},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:qr},function(){i.props.onEntering(u,d),i.onTransitionEnd(m,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||Kv.disabled){this.safeSetState({status:Br},function(){s.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ef},function(){s.props.onExiting(a),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:Br},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===is)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 Ue.createElement(ka.Provider,{value:null},typeof l=="function"?l(s,a):Ue.cloneElement(Ue.Children.only(l),a))},t})(Ue.Component);wn.contextType=ka,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=Z1;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=is,wn.EXITED=Br,wn.ENTERING=qr,wn.ENTERED=po,wn.EXITING=ef;var tk=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return Q1(t,o)})},tf=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return J1(t,o)})},nf=(function(e){Zd(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],h=u[1];o.removeClasses(d,"exit"),o.addClass(d,h?"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],h=u[1],m=h?"appear":"enter";o.addClass(d,m,"active"),o.props.onEntering&&o.props.onEntering(a,c)},o.onEntered=function(a,c){var u=o.resolveArguments(a,c),d=u[0],h=u[1],m=h?"appear":"enter";o.removeClasses(d,m),o.addClass(d,m,"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+"-":"",h=u?""+d+a:c[a],m=u?h+"-active":c[a+"Active"],p=u?h+"-done":c[a+"Done"];return{baseClassName:h,activeClassName:m,doneClassName:p}},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&&Gv(s),a&&(this.appliedClasses[i][l]=a,tk(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&&tf(s,a),c&&tf(s,c),u&&tf(s,u)},n.render=function(){var s=this.props;s.classNames;var i=qe(s,["classNames"]);return Ue.createElement(wn,K({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(Ue.Component);nf.defaultProps={classNames:""},nf.propTypes=process.env.NODE_ENV!=="production"?K({},wn.propTypes,{classNames:ek,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}):{};function nk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rf(e,t){var n=function(i){return t&&Ue.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Ue.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=n(s)}),o}function rk(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 zr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function ok(e,t){return rf(e.children,function(n){return Ue.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:zr(n,"appear",e),enter:zr(n,"enter",e),exit:zr(n,"exit",e)})})}function sk(e,t,n){var o=rf(e.children),s=rk(t,o);return Object.keys(s).forEach(function(i){var l=s[i];if(Ue.isValidElement(l)){var a=i in t,c=i in o,u=t[i],d=Ue.isValidElement(u)&&!u.props.in;c&&(!a||d)?s[i]=Ue.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:zr(l,"exit",e),enter:zr(l,"enter",e)}):!c&&a&&!d?s[i]=Ue.cloneElement(l,{in:!1}):c&&a&&Ue.isValidElement(u)&&(s[i]=Ue.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:zr(l,"exit",e),enter:zr(l,"enter",e)}))}}),s}var ik=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ak={component:"div",childFactory:function(t){return t}},as=(function(e){Zd(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var l=i.handleExited.bind(nk(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?ok(s,a):sk(s,l,a),firstRender:!1}},n.handleExited=function(s,i){var l=rf(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=ik(this.state.children).map(l);return delete a.appear,delete a.enter,delete a.exit,i===null?Ue.createElement(ka.Provider,{value:c},u):Ue.createElement(ka.Provider,{value:c},Ue.createElement(i,a,u))},t})(Ue.Component);as.propTypes=process.env.NODE_ENV!=="production"?{component:r.any,children:r.node,appear:r.bool,enter:r.bool,exit:r.bool,childFactory:r.func}:{},as.defaultProps=ak;const Xv=e=>e.scrollTop;function _a(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 of(e){return`scale(${e}, ${e**2})`}const lk={entering:{opacity:1,transform:of(1)},entered:{opacity:1,transform:"none"}},sf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ls=T.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:i,easing:l,in:a,onEnter:c,onEntered:u,onEntering:d,onExit:h,onExited:m,onExiting:p,style:b,timeout:f="auto",TransitionComponent:g=wn,...v}=t,y=wr(),S=T.useRef(),w=Vr(),x=T.useRef(null),P=at(x,ns(i),n),O=j=>F=>{if(j){const W=x.current;F===void 0?j(W):j(W,F)}},I=O(d),$=O((j,F)=>{Xv(j);const{duration:W,delay:Y,easing:H}=_a({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:sf?L:L*.666,delay:Y,easing:H})].join(","),c&&c(j,F)}),M=O(u),k=O(p),C=O(j=>{const{duration:F,delay:W,easing:Y}=_a({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:sf?H:H*.666,delay:sf?W:W||H*.333,easing:Y})].join(","),j.style.opacity=0,j.style.transform=of(.75),h&&h(j)}),N=O(m),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})=>T.cloneElement(i,{style:{opacity:0,transform:of(.75),visibility:j==="exited"&&!a?"hidden":void 0,...lk[j],...b,...i.props.style},ref:P,...W})})});process.env.NODE_ENV!=="production"&&(ls.propTypes={addEndListener:r.func,appear:r.bool,children:ss.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})])}),ls&&(ls.muiSupportAuto=!0);function ck(e){const t=Lt(e);return t.body===e?Dn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function cs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Qv(e){return parseFloat(Dn(e).getComputedStyle(e).paddingRight)||0}function uk(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 Jv(e,t,n,o,s){const i=[t,n,...o];[].forEach.call(e.children,l=>{const a=!i.includes(l),c=!uk(l);a&&c&&cs(l,s)})}function af(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function dk(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(ck(o)){const l=Vv(Dn(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Qv(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=`${Qv(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 fk(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class pk{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&&cs(t.modalRef,!1);const s=fk(n);Jv(n,t.mount,t.modalRef,s,!0);const i=af(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=af(this.containers,i=>i.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=dk(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=af(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&&cs(t.modalRef,n),Jv(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&&cs(l.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const hk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mk(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 yk(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 gk(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||yk(e))}function bk(e){const t=[],n=[];return Array.from(e.querySelectorAll(hk)).forEach((o,s)=>{const i=mk(o);i===-1||!gk(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 vk(){return!0}function us(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:i=bk,isEnabled:l=vk,open:a}=e,c=T.useRef(!1),u=T.useRef(null),d=T.useRef(null),h=T.useRef(null),m=T.useRef(null),p=T.useRef(!1),b=T.useRef(null),f=at(ns(t),b),g=T.useRef(null);T.useEffect(()=>{!a||!b.current||(p.current=!n)},[n,a]),T.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")),p.current&&b.current.focus()),()=>{s||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),T.useEffect(()=>{if(!a||!b.current)return;const S=Lt(b.current),w=O=>{if(g.current=O,o||!l()||O.key!=="Tab")return;fo(S)===b.current&&O.shiftKey&&(c.current=!0,d.current&&d.current.focus())},x=()=>{const O=b.current;if(O===null)return;const I=fo(S);if(!S.hasFocus()||!l()||c.current){c.current=!1;return}if(O.contains(I)||o&&I!==u.current&&I!==d.current)return;if(I!==m.current)m.current=null;else if(m.current!==null)return;if(!p.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 O.focus()};S.addEventListener("focusin",x),S.addEventListener("keydown",w,!0);const P=setInterval(()=>{const O=fo(S);O&&O.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=>{h.current===null&&(h.current=S.relatedTarget),p.current=!0,m.current=S.target;const w=t.props.onFocus;w&&w(S)},y=S=>{h.current===null&&(h.current=S.relatedTarget),p.current=!0};return _.jsxs(T.Fragment,{children:[_.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:f,onFocus:v}),_.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(us.propTypes={children:ss,disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableRestoreFocus:r.bool,getTabbable:r.func,isEnabled:r.func,open:r.bool.isRequired}),process.env.NODE_ENV!=="production"&&(us.propTypes=rv(us.propTypes));function Sk(e){return typeof e=="function"?e():e}const ds=T.forwardRef(function(t,n){const{children:o,container:s,disablePortal:i=!1}=t,[l,a]=T.useState(null),c=at(T.isValidElement(o)?ns(o):null,n);if(Mt(()=>{i||a(Sk(s)||document.body)},[s,i]),Mt(()=>{if(l&&!i)return Hd(n,l),()=>{Hd(n,null)}},[n,l,i]),i){if(T.isValidElement(o)){const u={ref:c};return T.cloneElement(o,u)}return o}return l&&ww.createPortal(o,l)});process.env.NODE_ENV!=="production"&&(ds.propTypes={children:r.node,container:r.oneOfType([ar,r.func]),disablePortal:r.bool}),process.env.NODE_ENV!=="production"&&(ds.propTypes=rv(ds.propTypes));const xk={entering:{opacity:1},entered:{opacity:1}},Cr=T.forwardRef(function(t,n){const o=Vr(),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:h,onEntering:m,onExit:p,onExited:b,onExiting:f,style:g,timeout:v=s,TransitionComponent:y=wn,...S}=t,w=T.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)}},O=P(m),I=P((D,j)=>{Xv(D);const F=_a({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(h),M=P(f),k=P(D=>{const j=_a({style:g,timeout:v,easing:c},{mode:"exit"});D.style.webkitTransition=o.transitions.create("opacity",j),D.style.transition=o.transitions.create("opacity",j),p&&p(D)}),C=P(b),N=D=>{i&&i(w.current,D)};return _.jsx(y,{appear:l,in:u,nodeRef:w,onEnter:I,onEntered:$,onEntering:O,onExit:k,onExited:C,onExiting:M,addEndListener:N,timeout:v,...S,children:(D,{ownerState:j,...F})=>T.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!u?"hidden":void 0,...xk[D],...g,...a.props.style},ref:x,...F})})});process.env.NODE_ENV!=="production"&&(Cr.propTypes={addEndListener:r.func,appear:r.bool,children:ss.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 wk(e){return Me("MuiBackdrop",e)}De("MuiBackdrop",["root","invisible"]);const Ck=e=>{const{classes:t,invisible:n}=e;return $e({root:["root",n&&"invisible"]},wk,t)},Pk=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"}}]}),lf=T.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:h={},slots:m={},TransitionComponent:p,transitionDuration:b,...f}=o,g={...o,component:l,invisible:a},v=Ck(g),y={transition:p,root:u.Root,...m},S={...d,...h},w={component:l,slots:y,slotProps:S},[x,P]=ot("root",{elementType:Pk,externalForwardedProps:w,className:Ce(v.root,i),ownerState:g}),[O,I]=ot("transition",{elementType:Cr,externalForwardedProps:w,ownerState:g});return _.jsx(O,{in:c,timeout:b,...f,...I,children:_.jsx(x,{"aria-hidden":!0,...P,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(lf.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 Ok(e){return typeof e=="function"?e():e}function Tk(e){return e?e.props.hasOwnProperty("in"):!1}const Zv=()=>{},Ra=new pk;function Ek(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,h=T.useRef({}),m=T.useRef(null),p=T.useRef(null),b=at(p,d),[f,g]=T.useState(!u),v=Tk(a);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const S=()=>Lt(m.current),w=()=>(h.current.modalRef=p.current,h.current.mount=m.current,h.current),x=()=>{Ra.mount(w(),{disableScrollLock:o}),p.current&&(p.current.scrollTop=0)},P=Ee(()=>{const j=Ok(t)||S().body;Ra.add(w(),j),p.current&&x()}),O=()=>Ra.isTopModal(w()),I=Ee(j=>{m.current=j,j&&(u&&O()?x():p.current&&cs(p.current,y))}),$=T.useCallback(()=>{Ra.remove(w(),y)},[y]);T.useEffect(()=>()=>{$()},[$]),T.useEffect(()=>{u?P():(!v||!s)&&$()},[u,$,v,s,P]);const M=j=>F=>{j.onKeyDown?.(F),!(F.key!=="Escape"||F.which===229||!O())&&(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=Iv(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:Wd(j,a?.props.onEnter??Zv),onExited:Wd(F,a?.props.onExited??Zv)}},rootRef:b,portalRef:I,isTopModal:O,exited:f,hasTransition:v}}function kk(e){return Me("MuiModal",e)}De("MuiModal",["root","hidden","backdrop"]);const _k=e=>{const{open:t,exited:n,classes:o}=e;return $e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kk,o)},Rk=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"}}]}))),Ik=ie(lf,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),cf=T.forwardRef(function(t,n){const o=Je({name:"MuiModal",props:t}),{BackdropComponent:s=Ik,BackdropProps:i,classes:l,className:a,closeAfterTransition:c=!1,children:u,container:d,component:h,components:m={},componentsProps:p={},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:O,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}=Ek({...D,rootRef:n}),q={...D,exited:L},z=_k(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:m.Root,backdrop:m.Backdrop,...k},slotProps:{...p,...M}},[U,X]=ot("root",{ref:n,elementType:Rk,externalForwardedProps:{...A,...N,component:h},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(ds,{ref:Y,container:d,disablePortal:v,children:_.jsxs(U,{...X,children:[!w&&s?_.jsx(se,{...te}):null,_.jsx(us,{disableEnforceFocus:f,disableAutoFocus:b,disableRestoreFocus:y,isEnabled:H,open:$,children:T.cloneElement(u,R)})]})})});process.env.NODE_ENV!=="production"&&(cf.propTypes={BackdropComponent:r.elementType,BackdropProps:r.object,children:ss.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([ar,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 $k(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 Dk=e=>{const{square:t,elevation:n,variant:o,classes:s}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return $e(i,$k,s)},Mk=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)"}}]}))),Pr=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiPaper"}),s=Vr(),{className:i,component:l="div",elevation:a=1,square:c=!1,variant:u="elevation",...d}=o,h={...o,component:l,elevation:a,square:c,variant:u},m=Dk(h);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(Mk,{as:l,ownerState:h,className:Ce(m.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",zd(a))}, ${rn("#fff",zd(a))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Pr.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:vn(Xd,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 Nk(e){return Me("MuiPopover",e)}De("MuiPopover",["root","paper"]);function e0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function t0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function n0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function fs(e){return typeof e=="function"?e():e}const jk=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"]},Nk,t)},Ak=ie(cf,{name:"MuiPopover",slot:"Root"})({}),r0=ie(Pr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),o0=T.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:h,elevation:m=8,marginThreshold:p=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,...O}=o,I=T.useRef(),$={...o,anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:p,transformOrigin:y,TransitionComponent:S,transitionDuration:w,TransitionProps:x},M=jk($),k=T.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=fs(i),B=J&&J.nodeType===1?J:Lt(I.current).body,V=B.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Q=B.getBoundingClientRect();os()&&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+e0(V,l.vertical),left:V.left+t0(V,l.horizontal)}},[i,l.horizontal,l.vertical,a,c]),C=T.useCallback(J=>({vertical:e0(J,y.vertical),horizontal:t0(J,y.horizontal)}),[y.horizontal,y.vertical]),N=T.useCallback(J=>{const B={width:J.offsetWidth,height:J.offsetHeight},V=C(B);if(c==="none")return{top:null,left:null,transformOrigin:n0(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(fs(i)),be=ce.innerHeight-p,oe=ce.innerWidth-p;if(p!==null&&G<p){const fe=G-p;G-=fe,V.vertical+=fe}else if(p!==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
|
+
`)),p!==null&&ne<p){const fe=ne-p;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:n0(V)}},[i,c,k,C,p]),[D,j]=T.useState(b),F=T.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]);T.useEffect(()=>(P&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[i,P,F]);const W=()=>{F()},Y=()=>{j(!1)};T.useEffect(()=>{b&&F()}),T.useImperativeHandle(s,()=>b?{updatePosition:()=>{F()}}:null,[b,F]),T.useEffect(()=>{if(!b)return;const J=pa(()=>{F()}),B=Dn(fs(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:ls,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=h||(i?Lt(fs(i)).body:void 0),[R,{slots:A,slotProps:U,...X}]=ot("root",{ref:n,elementType:Ak,externalForwardedProps:{...L,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:Ev(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:r0,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:D?void 0:{opacity:0}},ownerState:$});return _.jsx(R,{...X,...!uo(R)&&{slots:A,slotProps:U,disableScrollLock:P},children:_.jsx(E,{...q,timeout:H,children:_.jsx(se,{...te,children:u})})})});process.env.NODE_ENV!=="production"&&(o0.propTypes={action:$t,anchorEl:vn(r.oneOfType([ar,r.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=fs(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&os()&&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(`
|
|
60
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(`
|
|
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([
|
|
62
|
-
`)),H.props.disabled||(g==="selectedMenu"&&H.props.selected||k===-1)&&(k=L))});const C={slots:v,slotProps:{list:c,transition:f,paper:
|
|
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=>
|
|
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(`
|
|
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([ar,r.func]),disableScrollLock:r.bool,elevation:Xd,marginThreshold:r.number,onClose:r.func,open:r.bool.isRequired,PaperProps:r.shape({component:fa}),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 Fk(e){return Me("MuiMenu",e)}De("MuiMenu",["root","paper","list"]);const Vk={vertical:"top",horizontal:"right"},Lk={vertical:"top",horizontal:"left"},Bk=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"],list:["list"]},Fk,t)},qk=ie(o0,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),zk=ie(r0,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Uk=ie(Ea,{name:"MuiMenu",slot:"List"})({outline:0}),s0=T.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:h={},PopoverClasses:m,transitionDuration:p="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:h,transitionDuration:p,TransitionProps:f,variant:g},P=Bk(x),O=s&&!a&&d,I=T.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;T.Children.map(i,(H,L)=>{T.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:h,...y}},N=st({elementType:v.root,externalSlotProps:y.root,ownerState:x,className:[P.root,l]}),[D,j]=ot("paper",{className:P.paper,elementType:zk,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:x}),[F,W]=ot("list",{className:Ce(P.list,c.className),elementType:Uk,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(qk,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Vk:Lk,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:p,ownerState:x,...S,classes:m,children:_.jsx(F,{actions:I,autoFocus:s&&(k===-1||a),autoFocusItem:O,variant:g,...W,children:i})})});process.env.NODE_ENV!=="production"&&(s0.propTypes={anchorEl:r.oneOfType([ar,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 Wk(e){return Me("MuiNativeSelect",e)}const uf=De("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Hk=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,Wk,t)},i0=ie("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${uf.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}}}]})),Yk=ie(i0,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Yt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${uf.multiple}`]:t.multiple}]}})({}),a0=ie("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${uf.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}}]})),Kk=ie(a0,{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]}})({}),l0=T.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},h=Hk(d);return _.jsxs(T.Fragment,{children:[_.jsx(Yk,{ownerState:d,className:Ce(h.select,o),disabled:s,ref:a||n,...u}),t.multiple?null:_.jsx(Kk,{as:l,ownerState:d,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(l0.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 c0(e){return Me("MuiSelect",e)}const ps=De("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var u0;const Gk=ie(i0,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ps.select}`]:t.select},{[`&.${ps.select}`]:t[n.variant]},{[`&.${ps.error}`]:t.error},{[`&.${ps.multiple}`]:t.multiple}]}})({[`&.${ps.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Xk=ie(a0,{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]}})({}),Qk=ie("input",{shouldForwardProp:e=>Sv(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function d0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Jk(e){return e==null||typeof e=="string"&&!e.trim()}const Zk=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,c0,t)},f0=T.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":s,autoFocus:i,autoWidth:l,children:a,className:c,defaultOpen:u,defaultValue:d,disabled:h,displayEmpty:m,error:p=!1,IconComponent:b,inputRef:f,labelId:g,MenuProps:v={},multiple:y,name:S,onBlur:w,onChange:x,onClose:P,onFocus:O,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=T.useRef(null),U=T.useRef(null),[X,se]=T.useState(null),{current:te}=T.useRef(k!=null),[J,B]=T.useState(),V=at(n,f),Q=T.useCallback(Te=>{U.current=Te,Te&&se(Te)},[]),G=X?.parentNode;T.useImperativeHandle(V,()=>({focus:()=>{U.current.focus()},node:A.current,value:E}),[E]);const ne=X!==null&&z;T.useEffect(()=>{if(!ne||!G||l||typeof ResizeObserver>"u")return;const Te=new ResizeObserver(()=>{B(G.clientWidth)});return Te.observe(G),()=>{Te.disconnect()}},[ne,G,l]),T.useEffect(()=>{u&&z&&X&&!te&&(B(l?null:G.clientWidth),U.current.focus())},[X,l]),T.useEffect(()=>{i&&U.current.focus()},[i]),T.useEffect(()=>{if(!g)return;const Te=Lt(U.current).getElementById(g);if(Te){const Fe=()=>{getSelection().isCollapsed&&U.current.focus()};return Te.addEventListener("click",Fe),()=>{Te.removeEventListener("click",Fe)}}},[g]);const ae=(Te,Fe)=>{Te?M&&M(Fe):P&&P(Fe),te||(B(l?null:G.clientWidth),R(Te))},re=Te=>{$?.(Te),Te.button===0&&(Te.preventDefault(),U.current.focus(),ae(!0,Te))},ce=Te=>{ae(!1,Te)},be=T.Children.toArray(a),oe=Te=>{const Fe=be.find(tt=>tt.props.value===Te.target.value);Fe!==void 0&&(q(Fe.props.value),x&&x(Te,Fe))},fe=Te=>Fe=>{let tt;if(Fe.currentTarget.hasAttribute("tabindex")){if(y){tt=Array.isArray(E)?E.slice():[];const _t=E.indexOf(Te.props.value);_t===-1?tt.push(Te.props.value):tt.splice(_t,1)}else tt=Te.props.value;if(Te.props.onClick&&Te.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,Te)}y||ae(!1,Fe)}},ve=Te=>{C||([" ","ArrowUp","ArrowDown","Enter"].includes(Te.key)&&(Te.preventDefault(),ae(!0,Te)),I?.(Te))},ke=Te=>{!ne&&w&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:E,name:S}}),w(Te))};delete L["aria-invalid"];let je,We;const Ve=[];let Ze=!1,Qe=!1;(ma({value:E})||m)&&(N?je=N(E):Ze=!0);const Ae=be.map(Te=>{if(!T.isValidElement(Te))return null;process.env.NODE_ENV!=="production"&&Ta.isFragment(Te)&&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=>d0(tt,Te.props.value)),Fe&&Ze&&Ve.push(Te.props.children)}else Fe=d0(E,Te.props.value),Fe&&Ze&&(We=Te.props.children);return Fe&&(Qe=!0),T.cloneElement(Te,{"aria-selected":Fe?"true":"false",onClick:fe(Te),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(tt)},role:"option",selected:Fe,value:void 0,"data-value":Te.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!Qe&&!y&&E!==""){const Te=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 ${Te.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((Te,Fe,tt)=>(Te.push(Fe),tt<Ve.length-1&&Te.push(", "),Te),[]):je=We);let Ne=J;!l&&te&&X&&(Ne=G.clientWidth);let Oe;typeof F<"u"?Oe=F:Oe=h?null:0;const Le=j.id||(S?`mui-component-select-${S}`:void 0),Ke={...t,variant:H,value:E,open:ne,error:p},Ge=Zk(Ke),lt={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(Ke):v.slotProps?.paper},pt={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(Ke):v.slotProps?.list},Be=zn();return _.jsxs(T.Fragment,{children:[_.jsx(Gk,{as:"div",ref:Q,tabIndex:Oe,role:"combobox","aria-controls":ne?Be:void 0,"aria-disabled":h?"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":p?"true":void 0,onKeyDown:ve,onMouseDown:h||C?null:re,onBlur:ke,onFocus:O,...j,ownerState:Ke,className:Ce(j.className,Ge.select,c),id:Le,children:Jk(je)?u0||(u0=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):je}),_.jsx(Qk,{"aria-invalid":p,value:Array.isArray(E)?E.join(","):E,name:S,ref:A,"aria-hidden":!0,onChange:oe,tabIndex:-1,disabled:h,className:Ge.nativeInput,autoFocus:i,required:D,...L,ownerState:Ke}),_.jsx(Xk,{as:b,className:Ge.icon,ownerState:Ke}),_.jsx(s0,{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"&&(f0.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 p0=Pt(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),e_=e=>{const{classes:t}=e,o=$e({root:["root"]},c0,t);return{...t,...o}},df={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Yt(e)&&e!=="variant"},t_=ie(xa,df)(""),n_=ie(Pa,df)(""),r_=ie(Ca,df)(""),hs=T.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=p0,id:h,input:m,inputProps:p,label:b,labelId:f,MenuProps:g,multiple:v=!1,native:y=!1,onClose:S,onOpen:w,open:x,renderValue:P,SelectDisplayProps:O,variant:I="outlined",...$}=o,M=y?l0:f0,k=un(),C=br({props:o,muiFormControl:k,states:["variant","error"]}),N=C.variant||I,D={...o,variant:N,classes:l},j=e_(D),{root:F,...W}=j,Y=m||{standard:_.jsx(t_,{ownerState:D}),outlined:_.jsx(n_,{label:b,ownerState:D}),filled:_.jsx(r_,{ownerState:D})}[N],H=at(n,ns(Y));return _.jsx(T.Fragment,{children:T.cloneElement(Y,{inputComponent:M,inputProps:{children:i,error:C.error,IconComponent:d,variant:N,type:void 0,multiple:v,...y?{id:h}:{autoWidth:s,defaultOpen:c,displayEmpty:u,labelId:f,MenuProps:g,onClose:S,onOpen:w,open:x,renderValue:P,SelectDisplayProps:{id:h,...O}},...p,classes:p?Ht(W,p.classes):W,...m?m.props.inputProps:{}},...(v&&y||u)&&N==="outlined"?{notched:!0}:{},ref:H,className:Ce(Y.props.className,a,j.root),...!m&&{variant:N},...$})})});process.env.NODE_ENV!=="production"&&(hs.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"])}),hs.muiName="Select";function o_(e){return Me("MuiTextField",e)}De("MuiTextField",["root"]);const s_={standard:xa,filled:Ca,outlined:Pa},i_=e=>{const{classes:t}=e;return $e({root:["root"]},o_,t)},a_=ie(Sr,{name:"MuiTextField",slot:"Root"})({}),ms=T.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:h=!1,FormHelperTextProps:m,fullWidth:p=!1,helperText:b,id:f,InputLabelProps:g,inputProps:v,InputProps:y,inputRef:S,label:w,maxRows:x,minRows:P,multiline:O=!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:h,fullWidth:p,multiline:O,required:N,select:j,variant:E},R=i_(z);process.env.NODE_ENV!=="production"&&j&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const A=zn(f),U=b&&A?`${A}-helper-text`:void 0,X=w&&A?`${A}-label`:void 0,se=s_[E],te={slots:W,slotProps:{input:y,inputLabel:g,htmlInput:v,formHelperText:m,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:a_,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...q},ownerState:z,className:Ce(R.root,a),ref:n,additionalProps:{disabled:d,error:h,fullWidth:p,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:Lr,externalForwardedProps:te,ownerState:z}),[ve,ke]=ot("select",{elementType:hs,externalForwardedProps:te,ownerState:z}),je=_.jsx(G,{"aria-describedby":U,autoComplete:s,autoFocus:i,defaultValue:u,fullWidth:p,multiline:O,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"&&(ms.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 l_=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},h0=e=>{const{errorText:t,form:n,showErrors:o}=e,s=l_(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 Kt(e){const{form:t,onChange:n}=e,[o,s]=Ue.useState(()=>h0(e));return Ue.useEffect(()=>{s(h0(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=Kt(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:h}=t;return n(h,o,t,l.value),_.jsx(ms,{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 c_=e=>{const{form:t,localization:{getLocalizedNumber:n}}=e,{value:o,valid:s,error:i,onChangeValidate:l}=Kt(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 h=null;if(d==="integer")h=parseInt(u.target.value,10);else if(d==="number"){const m=u.target.value.split(".");m.length<2?h=parseInt(u.target.value,10):m.length>1&&(m[1].length>0?h=parseFloat(u.target.value):h=`${parseInt(m[0],10)}.`)}l(h)};return _.jsx(mo,{...e,form:{...t,type:"string"},value:a,valid:s,error:i,onChangeValidate:c})},u_=e=>{const{form:t}=e;return _.jsx(mo,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})},d_=e=>{const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,valid:l,error:a,onChangeValidate:c}=Kt(e),{key:u,title:d}=n;return Ue.useEffect(()=>{o(u,t,n,i)},[]),_.jsxs(Ue.Fragment,{children:[_.jsx(ir,{required:n.required,children:d&&s(d)}),_.jsx(xw,{value:i||"",height:n.height,onChange:h=>c(null,h)}),l?null:_.jsx(Lr,{error:!0,children:a})]})};function f_(e){const t=T.useRef({});return T.useEffect(()=>{t.current=e}),t.current}function m0({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 y0(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function p_(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=y0(d));const h=d?a.filter(m=>{let p=(i||u)(m);return n&&(p=p.toLowerCase()),t&&(p=y0(p)),s==="start"?p.startsWith(d):p.includes(d)}):a;return typeof o=="number"?h.slice(0,o):h}}const h_=p_(),g0=5,m_=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),y_=[];function b0(e,t,n,o){if(t||e==null||o)return"";const s=n(e);return typeof s=="string"?s:""}function g_(e){const{unstable_isActiveElementInListbox:t=m_,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?y_:null,disableClearable:h=!1,disableCloseOnSelect:m=!1,disabled:p,disabledItemsFocusable:b=!1,disableListWrap:f=!1,filterOptions:g=h_,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:S,getOptionKey:w,getOptionLabel:x=ge=>ge.label??ge,groupBy:P,handleHomeEndKeys:O=!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=zn(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=T.useRef(!1),se=T.useRef(!0),te=T.useRef(null),J=T.useRef(null),[B,V]=T.useState(null),[Q,G]=T.useState(-1),ne=s?0:-1,ae=T.useRef(ne),re=T.useRef(b0(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]=T.useState(!1),je=T.useCallback((ge,me,_e)=>{if(!(C?ce.length<me.length:me!==null)&&!a)return;const He=b0(me,C,U,q);oe!==He&&(fe(He),F&&F(ge,He,_e))},[U,oe,C,F,fe,a,ce,q]),[We,Ve]=pn({controlled:Y,default:!1,name:u,state:"open"}),[Ze,Qe]=T.useState(!0),Ae=!C&&ce!=null&&oe===U(ce),Ne=We&&!E,Oe=Ne?g(L.filter(ge=>!(v&&(C?ce:[ce]).some(me=>me!==null&&k(ge,me)))),{inputValue:Ae&&Ze?"":oe,getOptionLabel:U}):[],Le=f_({filteredOptions:Oe,value:ce,inputValue:oe});T.useEffect(()=>{const ge=ce!==Le.value;ve&&!ge||y&&!ge||je(null,ce,"reset")},[ce,je,ve,Le.value,y]);const Ke=We&&Oe.length>0&&!E,Ge=Ee(ge=>{if(ge===-1)te.current.focus();else{const me=q?"data-item-index":"data-tag-index";B.querySelector(`[${me}="${ge}"]`).focus()}});T.useEffect(()=>{C&&Q>ce.length-1&&(G(-1),Ge(-1))},[ce,C,Q,Ge]);function lt(ge,me){if(!J.current||ge<0||ge>=Oe.length)return-1;let _e=ge;for(;;){const ze=J.current.querySelector(`[data-option-index="${_e}"]`),He=b?!1:!ze||ze.disabled||ze.getAttribute("aria-disabled")==="true";if(ze&&ze.hasAttribute("tabindex")&&!He)return _e;if(me==="next"?_e=(_e+1)%Oe.length:_e=(_e-1+Oe.length)%Oe.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:Oe[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 He=J.current;if(J.current.getAttribute("role")!=="listbox"&&(He=J.current.parentElement.querySelector('[role="listbox"]')),!He)return;if(me===-1){He.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`),He.scrollHeight>He.clientHeight&&_e!=="mouse"&&_e!=="touch")){const ct=It,Qt=He.clientHeight+He.scrollTop,Jt=ct.offsetTop+ct.offsetHeight;Jt>Qt?He.scrollTop=Jt-He.clientHeight:ct.offsetTop-ct.offsetHeight*(P?1.3:0)<He.scrollTop&&(He.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=Oe.length-1;if(me==="reset")return ne;if(me==="start")return 0;if(me==="end")return ct;const Qt=ae.current+me;return Qt<0?Qt===-1&&$?-1:f&&ae.current!==-1||Math.abs(me)>1?0:ct:Qt>ct?Qt===ct+1&&$?-1:f||Math.abs(me)>1?ct:0:Qt})(),_e);if(pt({index:It,reason:ze,event:ge}),o&&me!=="reset")if(It===-1)te.current.value=oe;else{const ct=U(Oe[It]);te.current.value=ct,ct.toLowerCase().indexOf(oe.toLowerCase())===0&&oe.length>0&&te.current.setSelectionRange(oe.length,ct.length)}}),Te=!m0({array1:Le.filteredOptions,array2:Oe,parser:U}),Fe=()=>{const ge=(me,_e)=>{const ze=me?U(me):"",He=_e?U(_e):"";return ze===He};if(ae.current!==-1&&!m0({array1:Le.filteredOptions,array2:Oe,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 Oe.findIndex(_e=>U(_e)===U(me))}return-1},tt=T.useCallback(()=>{if(!Ne)return;const ge=Fe();if(ge!==-1){ae.current=ge;return}const me=C?ce[0]:ce;if(Oe.length===0||me==null){Be({diff:"reset"});return}if(J.current){if(me!=null){const _e=Oe[ae.current];if(C&&_e&&ce.findIndex(He=>k(_e,He))!==-1)return;const ze=Oe.findIndex(He=>k(He,me));ze===-1?Be({diff:"reset"}):pt({index:ze});return}if(ae.current>=Oe.length-1){pt({index:Oe.length-1});return}pt({index:ae.current})}},[Oe.length,C?!1:ce,Be,pt,Ne,oe,C]),_t=Ee(ge=>{Hd(J,ge),ge&&tt()});process.env.NODE_ENV!=="production"&&T.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
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]),
|
|
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&>(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=
|
|
69
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||
|
|
70
|
-
`))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([
|
|
71
|
-
`))}return!1}class
|
|
66
|
+
`)))},[u]),T.useEffect(()=>{(Te||Ne&&!m)&&tt()},[tt,Te,Ne,m]);const gt=ge=>{We||(Ve(!0),Qe(!0),W&&W(ge))},mn=(ge,me)=>{We&&(Ve(!1),D&&D(ge,me))},de=(ge,me,_e,ze)=>{if(C){if(ce.length===me.length&&ce.every((He,It)=>He===me[It]))return}else if(ce===me)return;N&&N(ge,me,_e,ze),be(me)},Z=T.useRef(!1),he=(ge,me,_e="selectOption",ze="options")=>{let He=_e,It=me;if(C){if(It=Array.isArray(ce)?ce.slice():[],process.env.NODE_ENV!=="production"){const Qt=It.filter(Jt=>k(me,Jt));Qt.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 ${Qt.length} matches.`].join(`
|
|
67
|
+
`))}const ct=It.findIndex(Qt=>k(me,Qt));ct===-1?It.push(me):ze!=="freeSolo"&&(It.splice(ct,1),He="removeOption")}je(ge,It,He),de(ge,It,He,{option:me}),!m&&(!ge||!ge.ctrlKey&&!ge.metaKey)&&mn(ge,He),(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",He=B.querySelector(`[${ze}="${_e}"]`);if(!He||!He.hasAttribute("tabindex")||He.disabled||He.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),Ge(_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),Ge(-1)),me.which!==229))switch(me.key){case"Home":Ne&&O&&(me.preventDefault(),Be({diff:"start",direction:"next",reason:"keyboard",event:me}));break;case"End":Ne&&O&&(me.preventDefault(),Be({diff:"end",direction:"previous",reason:"keyboard",event:me}));break;case"PageUp":me.preventDefault(),Be({diff:-g0,direction:"previous",reason:"keyboard",event:me}),gt(me);break;case"PageDown":me.preventDefault(),Be({diff:g0,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),Ge(0)):Ie(me,"previous");break}case"ArrowRight":!C&&q?(G(-1),Ge(-1)):Ie(me,"next");break;case"Enter":if(ae.current!==-1&&Ne){const _e=Oe[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),Ge(-1)),H&&!X.current&>(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,Oe[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===""?!h&&!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},Ye=ge=>{const me=Number(ge.currentTarget.getAttribute("data-option-index"));he(ge,Oe[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=>{We?mn(ge,"toggleInput"):gt(ge)},kt=ge=>{ge.currentTarget.contains(ge.target)&&ge.target.getAttribute("id")!==A&&ge.preventDefault()},Xt=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)},Jr=ge=>{!p&&(oe===""||!We)&&dt(ge)};let _n=y&&oe.length>0;_n=_n||(C?ce.length>0:ce!==null);let Bn=Oe;if(P){const ge=new Map;let me=!1;Bn=Oe.reduce((_e,ze,He)=>{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:He,index:He,group:It,options:[ze]})),_e},[])}return p&&ve&&ee(),{getRootProps:(ge={})=>({...ge,onKeyDown:Pe(ge),onMouseDown:kt,onClick:Xt}),getInputLabelProps:()=>({id:`${A}-label`,htmlFor:A}),getInputProps:()=>({id:A,value:oe,onBlur:ee,onFocus:pe,onChange:ue,onMouseDown:Jr,"aria-activedescendant":Ne?"":null,"aria-autocomplete":o?"both":"list","aria-controls":Ke?`${A}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:te,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),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(He=>He!=null&&k(me,He)),ze=S?S(me):!1;return{key:w?.(me)??U(me),tabIndex:-1,role:"option",id:`${A}-option-${ge}`,onMouseMove:xe,onClick:Ye,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:Bn}}var sn="top",Cn="bottom",Pn="right",an="left",ff="auto",ys=[sn,Cn,Pn,an],yo="start",gs="end",b_="clippingParents",v0="viewport",bs="popper",v_="reference",S0=ys.reduce(function(e,t){return e.concat([t+"-"+yo,t+"-"+gs])},[]),x0=[].concat(ys,[ff]).reduce(function(e,t){return e.concat([t,t+"-"+yo,t+"-"+gs])},[]),S_="beforeRead",x_="read",w_="afterRead",C_="beforeMain",P_="main",O_="afterMain",T_="beforeWrite",E_="write",k_="afterWrite",__=[S_,x_,w_,C_,P_,O_,T_,E_,k_];function Hn(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 Ur(e){var t=hn(e).Element;return e instanceof t||e instanceof Element}function On(e){var t=hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pf(e){if(typeof ShadowRoot>"u")return!1;var t=hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function R_(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];!On(i)||!Hn(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 I_(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},{});!On(s)||!Hn(s)||(Object.assign(s.style,a),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const $_={name:"applyStyles",enabled:!0,phase:"write",fn:R_,effect:I_,requires:["computeStyles"]};function Yn(e){return e.split("-")[0]}var Wr=Math.max,Ia=Math.min,go=Math.round;function hf(){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 w0(){return!/^((?!chrome|android).)*safari/i.test(hf())}function bo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),s=1,i=1;t&&On(e)&&(s=e.offsetWidth>0&&go(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&go(o.height)/e.offsetHeight||1);var l=Ur(e)?hn(e):window,a=l.visualViewport,c=!w0()&&n,u=(o.left+(c&&a?a.offsetLeft:0))/s,d=(o.top+(c&&a?a.offsetTop:0))/i,h=o.width/s,m=o.height/i;return{width:h,height:m,top:d,right:u+h,bottom:d+m,left:u,x:u,y:d}}function mf(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 C0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pf(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function lr(e){return hn(e).getComputedStyle(e)}function D_(e){return["table","td","th"].indexOf(Hn(e))>=0}function Or(e){return((Ur(e)?e.ownerDocument:e.document)||window.document).documentElement}function $a(e){return Hn(e)==="html"?e:e.assignedSlot||e.parentNode||(pf(e)?e.host:null)||Or(e)}function P0(e){return!On(e)||lr(e).position==="fixed"?null:e.offsetParent}function M_(e){var t=/firefox/i.test(hf()),n=/Trident/i.test(hf());if(n&&On(e)){var o=lr(e);if(o.position==="fixed")return null}var s=$a(e);for(pf(s)&&(s=s.host);On(s)&&["html","body"].indexOf(Hn(s))<0;){var i=lr(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 vs(e){for(var t=hn(e),n=P0(e);n&&D_(n)&&lr(n).position==="static";)n=P0(n);return n&&(Hn(n)==="html"||Hn(n)==="body"&&lr(n).position==="static")?t:n||M_(e)||t}function yf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ss(e,t,n){return Wr(e,Ia(t,n))}function N_(e,t,n){var o=Ss(e,t,n);return o>n?n:o}function O0(){return{top:0,right:0,bottom:0,left:0}}function T0(e){return Object.assign({},O0(),e)}function E0(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var j_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,T0(typeof t!="number"?t:E0(t,ys))};function A_(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Yn(n.placement),c=yf(a),u=[an,Pn].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!l)){var h=j_(s.padding,n),m=mf(i),p=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=vs(i),y=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,S=f/2-g/2,w=h[p],x=y-m[d]-h[b],P=y/2-m[d]/2+S,O=Ss(w,P,x),I=c;n.modifiersData[o]=(t={},t[I]=O,t.centerOffset=O-P,t)}}function F_(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)||C0(t.elements.popper,s)&&(t.elements.arrow=s))}const V_={name:"arrow",enabled:!0,phase:"main",fn:A_,effect:F_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vo(e){return e.split("-")[1]}var L_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B_(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 k0(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,h=e.isFixed,m=l.x,p=m===void 0?0:m,b=l.y,f=b===void 0?0:b,g=typeof d=="function"?d({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var v=l.hasOwnProperty("x"),y=l.hasOwnProperty("y"),S=an,w=sn,x=window;if(u){var P=vs(n),O="clientHeight",I="clientWidth";if(P===hn(n)&&(P=Or(n),lr(P).position!=="static"&&a==="absolute"&&(O="scrollHeight",I="scrollWidth")),P=P,s===sn||(s===an||s===Pn)&&i===gs){w=Cn;var $=h&&P===x&&x.visualViewport?x.visualViewport.height:P[O];f-=$-o.height,f*=c?1:-1}if(s===an||(s===sn||s===Cn)&&i===gs){S=Pn;var M=h&&P===x&&x.visualViewport?x.visualViewport.width:P[I];p-=M-o.width,p*=c?1:-1}}var k=Object.assign({position:a},u&&L_),C=d===!0?B_({x:p,y:f},hn(n)):{x:p,y:f};if(p=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("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",N))}return Object.assign({},k,(t={},t[w]=y?f+"px":"",t[S]=v?p+"px":"",t.transform="",t))}function q_(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:Yn(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,k0(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,k0(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 z_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:q_,data:{}};var Da={passive:!0};function U_(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,Da)}),a&&c.addEventListener("resize",n.update,Da),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Da)}),a&&c.removeEventListener("resize",n.update,Da)}}const W_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:U_,data:{}};var H_={left:"right",right:"left",bottom:"top",top:"bottom"};function Ma(e){return e.replace(/left|right|bottom|top/g,function(t){return H_[t]})}var Y_={start:"end",end:"start"};function _0(e){return e.replace(/start|end/g,function(t){return Y_[t]})}function gf(e){var t=hn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function bf(e){return bo(Or(e)).left+gf(e).scrollLeft}function K_(e,t){var n=hn(e),o=Or(e),s=n.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(s){i=s.width,l=s.height;var u=w0();(u||!u&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:l,x:a+bf(e),y:c}}function G_(e){var t,n=Or(e),o=gf(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Wr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=Wr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-o.scrollLeft+bf(e),c=-o.scrollTop;return lr(s||n).direction==="rtl"&&(a+=Wr(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function vf(e){var t=lr(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function R0(e){return["html","body","#document"].indexOf(Hn(e))>=0?e.ownerDocument.body:On(e)&&vf(e)?e:R0($a(e))}function xs(e,t){var n;t===void 0&&(t=[]);var o=R0(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=hn(o),l=s?[i].concat(i.visualViewport||[],vf(o)?o:[]):o,a=t.concat(l);return s?a:a.concat(xs($a(l)))}function Sf(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 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 I0(e,t,n){return t===v0?Sf(K_(e,n)):Ur(t)?X_(t,n):Sf(G_(Or(e)))}function Q_(e){var t=xs($a(e)),n=["absolute","fixed"].indexOf(lr(e).position)>=0,o=n&&On(e)?vs(e):e;return Ur(o)?t.filter(function(s){return Ur(s)&&C0(s,o)&&Hn(s)!=="body"}):[]}function J_(e,t,n,o){var s=t==="clippingParents"?Q_(e):[].concat(t),i=[].concat(s,[n]),l=i[0],a=i.reduce(function(c,u){var d=I0(e,u,o);return c.top=Wr(d.top,c.top),c.right=Ia(d.right,c.right),c.bottom=Ia(d.bottom,c.bottom),c.left=Wr(d.left,c.left),c},I0(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 $0(e){var t=e.reference,n=e.element,o=e.placement,s=o?Yn(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?yf(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 gs:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ws(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?b_:a,u=n.rootBoundary,d=u===void 0?v0:u,h=n.elementContext,m=h===void 0?bs:h,p=n.altBoundary,b=p===void 0?!1:p,f=n.padding,g=f===void 0?0:f,v=T0(typeof g!="number"?g:E0(g,ys)),y=m===bs?v_:bs,S=e.rects.popper,w=e.elements[b?y:m],x=J_(Ur(w)?w:w.contextElement||Or(e.elements.popper),c,d,l),P=bo(e.elements.reference),O=$0({reference:P,element:S,placement:s}),I=Sf(Object.assign({},S,O)),$=m===bs?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(m===bs&&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 Z_(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?x0:c,d=vo(o),h=d?a?S0:S0.filter(function(b){return vo(b)===d}):ys,m=h.filter(function(b){return u.indexOf(b)>=0});m.length===0&&(m=h);var p=m.reduce(function(b,f){return b[f]=ws(e,{placement:f,boundary:s,rootBoundary:i,padding:l})[Yn(f)],b},{});return Object.keys(p).sort(function(b,f){return p[b]-p[f]})}function eR(e){if(Yn(e)===ff)return[];var t=Ma(e);return[_0(e),t,_0(t)]}function tR(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,h=n.rootBoundary,m=n.altBoundary,p=n.flipVariations,b=p===void 0?!0:p,f=n.allowedAutoPlacements,g=t.options.placement,v=Yn(g),y=v===g,S=c||(y||!b?[Ma(g)]:eR(g)),w=[g].concat(S).reduce(function(R,A){return R.concat(Yn(A)===ff?Z_(t,{placement:A,boundary:d,rootBoundary:h,padding:u,flipVariations:b,allowedAutoPlacements:f}):A)},[]),x=t.rects.reference,P=t.rects.popper,O=new Map,I=!0,$=w[0],M=0;M<w.length;M++){var k=w[M],C=Yn(k),N=vo(k)===yo,D=[sn,Cn].indexOf(C)>=0,j=D?"width":"height",F=ws(t,{placement:k,boundary:d,rootBoundary:h,altBoundary:m,padding:u}),W=D?N?Pn:an:N?Cn:sn;x[j]>P[j]&&(W=Ma(W));var Y=Ma(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}O.set(k,H)}if(I)for(var L=b?3:1,E=function(A){var U=w.find(function(X){var se=O.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 nR={name:"flip",enabled:!0,phase:"main",fn:tR,requiresIfExists:["offset"],data:{_skip:!1}};function D0(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 M0(e){return[sn,Pn,Cn,an].some(function(t){return e[t]>=0})}function rR(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,l=ws(t,{elementContext:"reference"}),a=ws(t,{altBoundary:!0}),c=D0(l,o),u=D0(a,s,i),d=M0(c),h=M0(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const oR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rR};function sR(e,t,n){var o=Yn(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 iR(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,l=x0.reduce(function(d,h){return d[h]=sR(h,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 aR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iR};function lR(e){var t=e.state,n=e.name;t.modifiersData[n]=$0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const cR={name:"popperOffsets",enabled:!0,phase:"read",fn:lR,data:{}};function uR(e){return e==="x"?"y":"x"}function dR(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,h=n.padding,m=n.tether,p=m===void 0?!0:m,b=n.tetherOffset,f=b===void 0?0:b,g=ws(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:d}),v=Yn(t.placement),y=vo(t.placement),S=!y,w=yf(v),x=uR(w),P=t.modifiersData.popperOffsets,O=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=p?-I[F]/2:0,E=y===yo?O[F]:I[F],q=y===yo?-I[F]:-O[F],z=t.elements.arrow,R=p&&z?mf(z):{width:0,height:0},A=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:O0(),U=A[D],X=A[j],se=Ss(0,O[F],R[F]),te=S?O[F]/2-L-se-U-M.mainAxis:E-se-U-M.mainAxis,J=S?-O[F]/2+L+se+X+M.mainAxis:q+se+X+M.mainAxis,B=t.elements.arrow&&vs(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=Ss(p?Ia(Y,G):Y,W,p?Wr(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,We=(re=k?.[x])!=null?re:0,Ve=je?ve:oe-O[fe]-I[fe]-We+M.altAxis,Ze=je?oe+O[fe]+I[fe]-We-M.altAxis:ke,Qe=p&&je?N_(Ve,oe,Ze):Ss(p?Ve:ve,oe,p?Ze:ke);P[x]=Qe,C[x]=Qe-oe}t.modifiersData[o]=C}}const fR={name:"preventOverflow",enabled:!0,phase:"main",fn:dR,requiresIfExists:["offset"]};function pR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hR(e){return e===hn(e)||!On(e)?gf(e):pR(e)}function mR(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 yR(e,t,n){n===void 0&&(n=!1);var o=On(t),s=On(t)&&mR(t),i=Or(t),l=bo(e,s,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Hn(t)!=="body"||vf(i))&&(a=hR(t)),On(t)?(c=bo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=bf(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function gR(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 bR(e){var t=gR(e);return __.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function vR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function SR(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 N0={placement:"bottom",modifiers:[],strategy:"absolute"};function j0(){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 xR(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?N0:s;return function(a,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},N0,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,p={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:Ur(a)?xs(a):a.contextElement?xs(a.contextElement):[],popper:xs(c)};var S=bR(SR([].concat(o,d.options.modifiers)));return d.orderedModifiers=S.filter(function(w){return w.enabled}),b(),p.update()},forceUpdate:function(){if(!m){var v=d.elements,y=v.reference,S=v.popper;if(j0(y,S)){d.rects={reference:yR(y,vs(S),d.options.strategy==="fixed"),popper:mf(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,O=x.options,I=O===void 0?{}:O,$=x.name;typeof P=="function"&&(d=P({state:d,options:I,name:$,instance:p})||d)}}}},update:vR(function(){return new Promise(function(g){p.forceUpdate(),g(d)})}),destroy:function(){f(),m=!0}};if(!j0(a,c))return p;p.setOptions(u).then(function(g){!m&&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:p,options:S}),P=function(){};h.push(x||P)}})}function f(){h.forEach(function(g){return g()}),h=[]}return p}}var wR=[W_,cR,z_,$_,aR,nR,fR,V_,oR],CR=xR({defaultModifiers:wR});function PR(e){return Me("MuiPopper",e)}De("MuiPopper",["root"]);function OR(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 Na(e){return typeof e=="function"?e():e}function ja(e){return e.nodeType!==void 0}function TR(e){return!ja(e)}const ER=e=>{const{classes:t}=e;return $e({root:["root"]},PR,t)},kR={},_R=T.forwardRef(function(t,n){const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:a,open:c,placement:u,popperOptions:d,popperRef:h,slotProps:m={},slots:p={},TransitionProps:b,ownerState:f,...g}=t,v=T.useRef(null),y=at(v,n),S=T.useRef(null),w=at(S,h),x=T.useRef(w);Mt(()=>{x.current=w},[w]),T.useImperativeHandle(h,()=>S.current,[]);const P=OR(u,i),[O,I]=T.useState(P),[$,M]=T.useState(Na(o));T.useEffect(()=>{S.current&&S.current.forceUpdate()}),T.useEffect(()=>{o&&M(Na(o))},[o]),Mt(()=>{if(!$||!c)return;const j=Y=>{I(Y.placement)};if(process.env.NODE_ENV!=="production"&&$&&ja($)&&$.nodeType===1){const Y=$.getBoundingClientRect();os()&&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=CR($,v.current,{placement:P,...d,modifiers:F});return x.current(W),()=>{W.destroy(),x.current(null)}},[$,l,a,c,d,P]);const k={placement:O};b!==null&&(k.TransitionProps=b);const C=ER(t),N=p.root??"div",D=st({elementType:N,externalSlotProps:m.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:C.root});return _.jsx(N,{...D,children:typeof s=="function"?s(k):s})}),A0=T.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:h="bottom",popperOptions:m=kR,popperRef:p,style:b,transition:f=!1,slotProps:g={},slots:v={},...y}=t,[S,w]=T.useState(!0),x=()=>{w(!1)},P=()=>{w(!0)};if(!c&&!d&&(!f||S))return null;let O;if(i)O=i;else if(o){const M=Na(o);O=M&&ja(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(ds,{disablePortal:a,container:O,children:_.jsx(_R,{anchorEl:o,direction:l,disablePortal:a,modifiers:u,ref:n,open:f?!S:d,placement:h,popperOptions:m,popperRef:p,slotProps:g,slots:v,...y,style:{position:"fixed",top:0,left:0,display:I,...b},TransitionProps:$,children:s})})});process.env.NODE_ENV!=="production"&&(A0.propTypes={anchorEl:vn(r.oneOfType([ar,r.object,r.func]),e=>{if(e.open){const t=Na(e.anchorEl);if(t&&ja(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&os()&&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"||TR(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([ar,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 RR=ie(A0,{name:"MuiPopper",slot:"Root"})({}),Aa=T.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:h,modifiers:m,open:p,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:h,modifiers:m,open:p,placement:b,popperOptions:f,popperRef:g,transition:v,...w};return _.jsx(RR,{as:l,direction:o?"rtl":"ltr",slots:{root:x},slotProps:S??c,...P,ref:n})});process.env.NODE_ENV!=="production"&&(Aa.propTypes={anchorEl:r.oneOfType([ar,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([ar,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 IR(e){return Me("MuiListSubheader",e)}De("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const $R=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,IR,t)},DR=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}}]}))),Fa=T.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,h={...o,color:i,component:l,disableGutters:a,disableSticky:c,inset:u},m=$R(h);return _.jsx(DR,{as:l,className:Ce(m.root,s),ref:n,ownerState:h,...d})});Fa&&(Fa.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Fa.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 F0(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 Va{static create(){return new Va}static use(){const t=Wv(Va.create).current,[n,o]=T.useState(!1);return t.shouldMount=n,t.setShouldMount=o,T.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=NR(),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 MR(){return Va.use()}function NR(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});return n.resolve=e,n.reject=t,n}function V0(e){const{className:t,classes:n,pulsate:o=!1,rippleX:s,rippleY:i,rippleSize:l,in:a,onExited:c,timeout:u}=e,[d,h]=T.useState(!1),m=Ce(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),p={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&&h(!0),T.useEffect(()=>{if(!a&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,a,u]),_.jsx("span",{className:m,style:p,children:_.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(V0.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 Tn=De("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xf=550,jR=80,AR=Jn.keyframes`
|
|
72
72
|
0% {
|
|
73
73
|
transform: scale(0);
|
|
74
74
|
opacity: 0.1;
|
|
@@ -78,7 +78,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
78
78
|
transform: scale(1);
|
|
79
79
|
opacity: 0.3;
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,FR=Jn.keyframes`
|
|
82
82
|
0% {
|
|
83
83
|
opacity: 1;
|
|
84
84
|
}
|
|
@@ -86,7 +86,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
86
86
|
100% {
|
|
87
87
|
opacity: 0;
|
|
88
88
|
}
|
|
89
|
-
`,
|
|
89
|
+
`,VR=Jn.keyframes`
|
|
90
90
|
0% {
|
|
91
91
|
transform: scale(1);
|
|
92
92
|
}
|
|
@@ -98,23 +98,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
98
98
|
100% {
|
|
99
99
|
transform: scale(1);
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,LR=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BR=ie(V0,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
102
102
|
opacity: 0;
|
|
103
103
|
position: absolute;
|
|
104
104
|
|
|
105
|
-
&.${
|
|
105
|
+
&.${Tn.rippleVisible} {
|
|
106
106
|
opacity: 0.3;
|
|
107
107
|
transform: scale(1);
|
|
108
|
-
animation-name: ${
|
|
109
|
-
animation-duration: ${
|
|
108
|
+
animation-name: ${AR};
|
|
109
|
+
animation-duration: ${xf}ms;
|
|
110
110
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
&.${
|
|
113
|
+
&.${Tn.ripplePulsate} {
|
|
114
114
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
& .${
|
|
117
|
+
& .${Tn.child} {
|
|
118
118
|
opacity: 1;
|
|
119
119
|
display: block;
|
|
120
120
|
width: 100%;
|
|
@@ -123,25 +123,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
123
123
|
background-color: currentColor;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
& .${
|
|
126
|
+
& .${Tn.childLeaving} {
|
|
127
127
|
opacity: 0;
|
|
128
|
-
animation-name: ${
|
|
129
|
-
animation-duration: ${
|
|
128
|
+
animation-name: ${FR};
|
|
129
|
+
animation-duration: ${xf}ms;
|
|
130
130
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
& .${
|
|
133
|
+
& .${Tn.childPulsate} {
|
|
134
134
|
position: absolute;
|
|
135
135
|
/* @noflip */
|
|
136
136
|
left: 0px;
|
|
137
137
|
top: 0;
|
|
138
|
-
animation-name: ${
|
|
138
|
+
animation-name: ${VR};
|
|
139
139
|
animation-duration: 2500ms;
|
|
140
140
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
141
141
|
animation-iteration-count: infinite;
|
|
142
142
|
animation-delay: 200ms;
|
|
143
143
|
}
|
|
144
|
-
`,
|
|
144
|
+
`,L0=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:i={},className:l,...a}=o,[c,u]=T.useState([]),d=T.useRef(0),h=T.useRef(null);T.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=T.useRef(!1),p=wr(),b=T.useRef(null),f=T.useRef(null),g=T.useCallback(w=>{const{pulsate:x,rippleX:P,rippleY:O,rippleSize:I,cb:$}=w;u(M=>[...M,_.jsx(BR,{classes:{ripple:Ce(i.ripple,Tn.ripple),rippleVisible:Ce(i.rippleVisible,Tn.rippleVisible),ripplePulsate:Ce(i.ripplePulsate,Tn.ripplePulsate),child:Ce(i.child,Tn.child),childLeaving:Ce(i.childLeaving,Tn.childLeaving),childPulsate:Ce(i.childPulsate,Tn.childPulsate)},timeout:xf,pulsate:x,rippleX:P,rippleY:O,rippleSize:I},d.current)]),d.current+=1,h.current=$},[i]),v=T.useCallback((w={},x={},P=()=>{})=>{const{pulsate:O=!1,center:I=s||x.pulsate,fakeElement:$=!1}=x;if(w?.type==="mousedown"&&m.current){m.current=!1;return}w?.type==="touchstart"&&(m.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:O,rippleX:C,rippleY:N,rippleSize:D,cb:P})},p.start(jR,()=>{b.current&&(b.current(),b.current=null)})):g({pulsate:O,rippleX:C,rippleY:N,rippleSize:D,cb:P})},[s,g,p]),y=T.useCallback(()=>{v({},{pulsate:!0})},[v]),S=T.useCallback((w,x)=>{if(p.clear(),w?.type==="touchend"&&b.current){b.current(),b.current=null,p.start(0,()=>{S(w,x)});return}b.current=null,u(P=>P.length>0?P.slice(1):P),h.current=x},[p]);return T.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:S}),[y,v,S]),_.jsx(LR,{className:Ce(Tn.root,i.root,l),ref:f,...a,children:_.jsx(as,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(L0.propTypes={center:r.bool,classes:r.object,className:r.string});function qR(e){return Me("MuiButtonBase",e)}const zR=De("MuiButtonBase",["root","disabled","focusVisible"]),UR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:s}=e,l=$e({root:["root",t&&"disabled",n&&"focusVisible"]},qR,s);return n&&o&&(l.root+=` ${o}`),l},WR=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"},[`&.${zR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kn=T.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:h=!1,focusRipple:m=!1,focusVisibleClassName:p,LinkComponent:b="a",onBlur:f,onClick:g,onContextMenu:v,onDragLeave:y,onFocus:S,onFocusVisible:w,onKeyDown:x,onKeyUp:P,onMouseDown:O,onMouseLeave:I,onMouseUp:$,onTouchEnd:M,onTouchMove:k,onTouchStart:C,tabIndex:N=0,TouchRippleProps:D,touchRippleRef:j,type:F,...W}=o,Y=T.useRef(null),H=MR(),L=at(H.ref,j),[E,q]=T.useState(!1);u&&E&&q(!1),T.useImperativeHandle(s,()=>({focusVisible:()=>{q(!0),Y.current.focus()}}),[]);const z=H.shouldMount&&!d&&!u;T.useEffect(()=>{E&&m&&!d&&H.pulsate()},[d,m,E,H]);const R=cr(H,"start",O,h),A=cr(H,"stop",v,h),U=cr(H,"stop",y,h),X=cr(H,"stop",$,h),se=cr(H,"stop",ve=>{E&&ve.preventDefault(),I&&I(ve)},h),te=cr(H,"start",C,h),J=cr(H,"stop",M,h),B=cr(H,"stop",k,h),V=cr(H,"stop",ve=>{F0(ve.target)||q(!1),f&&f(ve)},!1),Q=Ee(ve=>{Y.current||(Y.current=ve.currentTarget),F0(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=>{m&&!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=>{m&&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:h,focusRipple:m,tabIndex:N,focusVisible:E},fe=UR(oe);return _.jsxs(WR,{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(L0,{ref:L,center:i,...D}):null]})});function cr(e,t,n,o=!1){return Ee(s=>(n&&n(s),o||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Kn.propTypes={action:$t,centerRipple:r.bool,children:r.node,classes:r.object,className:r.string,component:fa,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 HR(e){return Me("MuiCircularProgress",e)}De("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Mn=44,wf=Jn.keyframes`
|
|
145
145
|
0% {
|
|
146
146
|
transform: rotate(0deg);
|
|
147
147
|
}
|
|
@@ -149,7 +149,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
149
149
|
100% {
|
|
150
150
|
transform: rotate(360deg);
|
|
151
151
|
}
|
|
152
|
-
`,
|
|
152
|
+
`,Cf=Jn.keyframes`
|
|
153
153
|
0% {
|
|
154
154
|
stroke-dasharray: 1px, 200px;
|
|
155
155
|
stroke-dashoffset: 0;
|
|
@@ -164,30 +164,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
164
164
|
stroke-dasharray: 1px, 200px;
|
|
165
165
|
stroke-dashoffset: -126px;
|
|
166
166
|
}
|
|
167
|
-
`,
|
|
168
|
-
animation: ${
|
|
169
|
-
`:null,
|
|
170
|
-
animation: ${
|
|
171
|
-
`:null,
|
|
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&>&&!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:
|
|
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}},
|
|
167
|
+
`,YR=typeof wf!="string"?Jn.css`
|
|
168
|
+
animation: ${wf} 1.4s linear infinite;
|
|
169
|
+
`:null,KR=typeof Cf!="string"?Jn.css`
|
|
170
|
+
animation: ${Cf} 1.4s ease-in-out infinite;
|
|
171
|
+
`:null,GR=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,HR,t)},XR=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:YR||{animation:`${wf} 1.4s linear infinite`}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),QR=ie("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),JR=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:KR||{animation:`${Cf} 1.4s ease-in-out infinite`}}]}))),ZR=ie("circle",{name:"MuiCircularProgress",slot:"Track"})(Xe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Pf=T.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:h=0,variant:m="indeterminate",...p}=o,b={...o,color:i,disableShrink:l,size:c,thickness:d,value:h,variant:m,enableTrackSlot:a},f=GR(b),g={},v={},y={};if(m==="determinate"){const S=2*Math.PI*((Mn-d)/2);g.strokeDasharray=S.toFixed(3),y["aria-valuenow"]=Math.round(h),g.strokeDashoffset=`${((100-h)/100*S).toFixed(3)}px`,v.transform="rotate(-90deg)"}return _.jsx(XR,{className:Ce(f.root,s),style:{width:c,height:c,...v,...u},ownerState:b,ref:n,role:"progressbar",...y,...p,children:_.jsxs(QR,{className:f.svg,ownerState:b,viewBox:`${Mn/2} ${Mn/2} ${Mn} ${Mn}`,children:[a?_.jsx(ZR,{className:f.track,ownerState:b,cx:Mn,cy:Mn,r:(Mn-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,_.jsx(JR,{className:f.circle,style:g,ownerState:b,cx:Mn,cy:Mn,r:(Mn-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Pf.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 eI(e){return Me("MuiIconButton",e)}const B0=De("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),tI=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,eI,t)},nI=ie(Kn,{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)}}],[`&.${B0.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${B0.loading}`]:{color:"transparent"}}))),rI=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=T.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:h,loading:m=null,loadingIndicator:p,...b}=o,f=zn(h),g=p??_.jsx(Pf,{"aria-labelledby":f,color:"inherit",size:16}),v={...o,edge:s,color:a,disabled:c,disableFocusRipple:u,loading:m,loadingIndicator:g,size:d},y=tI(v);return _.jsxs(nI,{id:m?f:h,className:Ce(y.root,l),centerRipple:!0,focusRipple:!u,disabled:c||m,ref:n,...b,ownerState:v,children:[typeof m=="boolean"&&_.jsx("span",{className:y.loadingWrapper,style:{display:"contents"},children:_.jsx(rI,{className:y.loadingIndicator,ownerState:v,children:m&&g})}),i]})});process.env.NODE_ENV!=="production"&&(Tr.propTypes={children:vn(r.node,e=>T.Children.toArray(e.children).some(n=>T.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 oI=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 sI(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"]),iI=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,sI,t)},aI=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}}}}))]}})),lI=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 q0(e){return e.key==="Backspace"||e.key==="Delete"}const La=T.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:h,label:m,onClick:p,onDelete:b,onKeyDown:f,onKeyUp:g,size:v="medium",variant:y="filled",tabIndex:S,skipFocusWhenDisabled:w=!1,slots:x={},slotProps:P={},...O}=o,I=T.useRef(null),$=at(I,n),M=U=>{U.stopPropagation(),b(U)},k=U=>{U.currentTarget===U.target&&q0(U)&&U.preventDefault(),f&&f(U)},C=U=>{U.currentTarget===U.target&&b&&q0(U)&&b(U),g&&g(U)},N=l!==!1&&p?!0:l,D=N||b?Kn:c||"div",j={...o,component:D,disabled:d,size:v,color:a,iconColor:T.isValidElement(h)&&h.props.color||a,onDelete:!!b,clickable:N,variant:y},F=iI(j),W=D===Kn?{component:c||"div",focusVisibleClassName:F.focusVisible,...b&&{disableRipple:!0}}:{};let Y=null;b&&(Y=u&&T.isValidElement(u)?T.cloneElement(u,{className:Ce(u.props.className,F.deleteIcon),onClick:M}):_.jsx(oI,{className:F.deleteIcon,onClick:M}));let H=null;s&&T.isValidElement(s)&&(H=T.cloneElement(s,{className:Ce(F.avatar,s.props.className)}));let L=null;h&&T.isValidElement(h)&&(L=T.cloneElement(h,{className:Ce(F.icon,h.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:aI,externalForwardedProps:{...E,...O},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),p?.(X)},onKeyDown:X=>{U.onKeyDown?.(X),k(X)},onKeyUp:X=>{U.onKeyUp?.(X),C(X)}})}),[R,A]=ot("label",{elementType:lI,externalForwardedProps:E,ownerState:j,className:F.label});return _.jsxs(q,{as:D,...z,children:[H||L,_.jsx(R,{...A,children:m}),Y]})});process.env.NODE_ENV!=="production"&&(La.propTypes={avatar:r.element,children:Tv,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 cI=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 uI(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 z0,U0;const dI=e=>{const{classes:t,disablePortal:n,expanded:o,focused:s,fullWidth:i,hasClearIcon:l,hasPopupIcon:a,inputFocused:c,popupOpen:u,size:d}=e,h={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(h,uI,t)},fI=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}},[`& .${vr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${vr.root}.${dn.sizeSmall}`]:{[`& .${vr.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"}}}]}),pI=ie("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),hI=ie(Tr,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),mI=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)"}}]}),yI=ie(Aa,{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"}}]}))),gI=ie(Pr,{name:"MuiAutocomplete",slot:"Paper"})(Xe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),bI=ie("div",{name:"MuiAutocomplete",slot:"Loading"})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),vI=ie("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),SI=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}`)}}}}))),xI=ie(Fa,{name:"MuiAutocomplete",slot:"GroupLabel"})(Xe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),wI=ie("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${et.option}`]:{paddingLeft:24}}),Of=T.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=z0||(z0=_.jsx(cI,{fontSize:"small"})),clearOnBlur:h=!o.freeSolo,clearOnEscape:m=!1,clearText:p="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:O,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=U0||(U0=_.jsx(p0,{})),readOnly:fe=!1,renderGroup:ve,renderInput:ke,renderOption:je,renderTags:We,renderValue:Ve,selectOnFocus:Ze=!o.freeSolo,size:Qe="medium",slots:Ae={},slotProps:Ne={},value:Oe,...Le}=o,{getRootProps:Ke,getInputProps:Ge,getInputLabelProps:lt,getPopupIndicatorProps:pt,getClearProps:Be,getItemProps:Te,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}=g_({...o,componentName:"Autocomplete"}),ee=!v&&!S&>&&!fe,ue=(!M||$===!0)&&$!==!1,{onMouseDown:xe}=Ge(),{ref:Re,...Ye}=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=dI(dt),Xt={slots:{paper:ce,popper:be,...Ae},slotProps:{chip:c,listbox:R,...f,...Ne}},[Jr,_n]=ot("listbox",{elementType:SI,externalForwardedProps:Xt,ownerState:dt,className:kt.listbox,additionalProps:Ye,ref:Re}),[Bn,ge]=ot("paper",{elementType:Pr,externalForwardedProps:Xt,ownerState:dt,className:kt.paper}),[me,_e]=ot("popper",{elementType:Aa,externalForwardedProps:Xt,ownerState:dt,className:kt.popper,additionalProps:{disablePortal:P,style:{width:Ie?Ie.clientWidth:null},role:"presentation",anchorEl:Ie,open:Z}});let ze;const He=ht=>({className:kt.tag,disabled:S,...Te(ht)});if(X?_t.length>0&&(We?ze=We(_t,He,dt):Ve?ze=Ve(_t,He,dt):ze=_t.map((ht,_r)=>{const{key:Rr,...Bs}=He({index:_r});return _.jsx(La,{label:Et(ht),size:Qe,...Bs,...Xt.slotProps.chip},Rr)})):Ve&&_t!=null&&(ze=Ve(_t,He,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(xI,{className:kt.groupLabel,ownerState:dt,component:"div",children:ht.group}),_.jsx(wI,{className:kt.groupUl,ownerState:dt,children:ht.children})]},ht.key)),Jt=je||((ht,_r)=>{const{key:Rr,...Bs}=ht;return _.jsx("li",{...Bs,children:Et(_r)},Rr)}),xl=(ht,_r)=>{const Rr=tt({option:ht,index:_r});return Jt({...Rr,className:kt.option},ht,{selected:Rr["aria-selected"],index:_r,inputValue:Pe},dt)},wl=Xt.slotProps.clearIndicator,vw=Xt.slotProps.popupIndicator;return _.jsxs(T.Fragment,{children:[_.jsx(fI,{ref:n,className:Ce(kt.root,u),ownerState:dt,...Ke(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(pI,{className:kt.endAdornment,ownerState:dt,children:[ee?_.jsx(hI,{...Be(),"aria-label":p,title:p,ownerState:dt,...wl,className:Ce(kt.clearIndicator,wl?.className),children:d}):null,ue?_.jsx(mI,{...pt(),disabled:S,"aria-label":Z?b:ae,title:Z?b:ae,ownerState:dt,...vw,className:Ce(kt.popupIndicator,vw?.className),children:oe}):null]})}},inputProps:{className:kt.input,disabled:S,readOnly:fe,...Ge()}})}),Ie?_.jsx(yI,{as:me,..._e,children:_.jsxs(gI,{as:Bn,...ge,children:[A&&pe.length===0?_.jsx(bI,{className:kt.loading,ownerState:dt,children:U}):null,pe.length===0&&!M&&!A?_.jsx(vI,{className:kt.noOptions,ownerState:dt,role:"presentation",onMouseDown:ht=>{ht.preventDefault()},children:se}):null,pe.length>0?_.jsx(Jr,{as:z,..._n,children:pe.map((ht,_r)=>W?ct({key:ht.key,group:ht.group,children:ht.options.map((Rr,Bs)=>xl(Rr,ht.index+Bs))}):xl(ht,_r))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(Of.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:Xd,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 CI=e=>{const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,valid:l,error:a,onChangeValidate:c}=Kt(e),{key:u,title:d,placeholder:h,readonly:m,titleMap:p}=n;Ue.useEffect(()=>{o(u,t,n,i)},[]);const b=p||[],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(Of,{options:b,getOptionLabel:g,value:v,onChange:f,disabled:m,fullWidth:!0,renderInput:y=>_.jsx(ms,{...y,label:d&&s(d),placeholder:h&&s(h),helperText:(a||n.description)&&s(a||n.description),error:!l,required:n.required,style:n.style||{width:"100%"},...n.otherProps}),...n.otherProps})})};function PI(e){return Me("MuiDivider",e)}const W0=De("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),OI=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"]},PI,o)},TI=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%"}}}]}))),EI=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)`}}]}))),Cs=T.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:h=c!=="hr"?"separator":void 0,textAlign:m="center",variant:p="fullWidth",...b}=o,f={...o,absolute:s,component:c,flexItem:u,light:d,orientation:a,role:h,textAlign:m,variant:p},g=OI(f);return _.jsx(TI,{as:c,className:Ce(g.root,l),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(c!=="hr"||a==="vertical")?a:void 0,...b,children:i?_.jsx(EI,{className:g.wrapper,ownerState:f,children:i}):null})});Cs&&(Cs.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Cs.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 H0=De("MuiListItemIcon",["root","alignItemsFlexStart"]);function kI(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 _I={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},RI=JE(),II=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,kI,l)},$I=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}}]}))),Y0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Nn=T.forwardRef(function(t,n){const{color:o,...s}=Je({props:t,name:"MuiTypography"}),i=!_I[o],l=RI({...s,...i&&{color:o}}),{align:a="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:h=!1,paragraph:m=!1,variant:p="body1",variantMapping:b=Y0,...f}=l,g={...l,align:a,color:o,className:c,component:u,gutterBottom:d,noWrap:h,paragraph:m,variant:p,variantMapping:b},v=u||(m?"p":b[p]||Y0[p])||"span",y=II(g);return _.jsx($I,{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 K0=De("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function DI(e){return Me("MuiMenuItem",e)}const Ps=De("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),MI=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},NI=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"]},DI,l);return{...l,...c}},jI=ie(Kn,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:MI})(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"}},[`&.${Ps.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ps.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ps.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)}},[`&.${Ps.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ps.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${W0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${W0.inset}`]:{marginLeft:52},[`& .${K0.root}`]:{marginTop:0,marginBottom:0},[`& .${K0.inset}`]:{paddingLeft:36},[`& .${H0.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,[`& .${H0.root} svg`]:{fontSize:"1.25rem"}}}]}))),So=T.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:h,className:m,...p}=o,b=T.useContext(xr),f=T.useMemo(()=>({dense:l||b.dense||!1,disableGutters:c}),[b.dense,l,c]),g=T.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=NI(o),S=at(g,n);let w;return o.disabled||(w=h!==void 0?h:-1),_.jsx(xr.Provider,{value:f,children:_.jsx(jI,{ref:S,role:d,tabIndex:w,component:i,focusVisibleClassName:Ce(y.focusVisible,u),className:Ce(y.root,m),...p,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 AI(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:h,valid:m,error:p,onChangeValidate:b}=Kt(e);Ue.useEffect(()=>{o(i,t,n,h)},[]);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(Sr,{fullWidth:!0,error:!m,...n.otherProps,children:[_.jsx(ts,{required:n.required,...n.labelProps,children:n.title&&s(n.title)}),_.jsx(hs,{value:h||(n&&n.selectProps&&n.selectProps.multiple?[]:""),placeholder:n.placeholder&&s(n.placeholder),disabled:n.readonly,onChange:f,...n.selectProps,children:v}),_.jsx(Lr,{...n.helperTextProps,children:(p||n.description)&&s(p||n.description)})]})}const Os="MultiSelect",Gn={root:`${Os}-root`,chips:`${Os}-chips`,chip:`${Os}-chip`,menuItem:`${Os}-menuItem`,selectedMenuItem:`${Os}-selectedMenuItem`},FI=ia("div")(({theme:e})=>({[`&.${Gn.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${Gn.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${Gn.chip}`]:{margin:e.spacing(.25)},[`& .${Gn.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${Gn.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),VI={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}},LI=e=>{const{form:t,localization:{getLocalizedString:n}}=e,{value:o,onChangeValidate:s}=Kt(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?Gn.menuItem:Gn.selectedMenuItem,children:u.name&&n(u.name)},u.value));return _.jsx(FI,{className:Gn.root,children:_.jsxs(Sr,{fullWidth:!0,...t.otherProps,children:[_.jsx(ts,{required:t.required,children:t.title&&n(t.title)}),_.jsx(hs,{multiple:!0,value:i,placeholder:t.placeholder&&n(t.placeholder),disabled:t.readonly,onChange:l,MenuProps:VI,renderValue:u=>_.jsx("div",{className:Gn.chips,children:u.map(d=>_.jsx(La,{label:a(d)&&n(a(d)),className:Gn.chip},d))}),children:c})]})})};function BI(e){return Me("MuiFormControlLabel",e)}const Ts=De("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qI=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,BI,t)},zI=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}}]}))),UI=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Xe(({theme:e})=>({[`&.${Ts.error}`]:{color:(e.vars||e).palette.error.main}}))),Tf=T.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:h,labelPlacement:m="end",name:p,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,O={disabled:x,required:P};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof a.props[j]>"u"&&typeof o[j]<"u"&&(O[j]=o[j])});const I=br({props:o,muiFormControl:w,states:["error"]}),$={...o,disabled:x,labelPlacement:m,required:P,error:I.error},M=qI($),k={slots:g,slotProps:{...l,...v}},[C,N]=ot("typography",{elementType:Nn,externalForwardedProps:k,ownerState:$});let D=h;return D!=null&&D.type!==Nn&&!u&&(D=_.jsx(C,{component:"span",...N,className:Ce(M.label,N?.className),children:D})),_.jsxs(zI,{className:Ce(M.root,i),ownerState:$,ref:n,...S,children:[T.cloneElement(a,O),P?_.jsxs("div",{children:[D,_.jsxs(UI,{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 WI(e){return Me("MuiFormGroup",e)}De("MuiFormGroup",["root","row","error"]);const HI=e=>{const{classes:t,row:n,error:o}=e;return $e({root:["root",n&&"row",o&&"error"]},WI,t)},YI=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"}}]}),Ef=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFormGroup"}),{className:s,row:i=!1,...l}=o,a=un(),c=br({props:o,muiFormControl:a,states:["error"]}),u={...o,row:i,error:c.error},d=HI(u);return _.jsx(YI,{className:Ce(d.root,s),ownerState:u,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Ef.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 KI(e){return Me("MuiRadioGroup",e)}De("MuiRadioGroup",["root","row","error"]);const kf=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(kf.displayName="RadioGroupContext");const GI=e=>{const{classes:t,row:n,error:o}=e;return $e({root:["root",n&&"row",o&&"error"]},KI,t)},G0=T.forwardRef(function(t,n){const{actions:o,children:s,className:i,defaultValue:l,name:a,onChange:c,value:u,...d}=t,h=T.useRef(null),m=GI(t),[p,b]=pn({controlled:u,default:l,name:"RadioGroup"});T.useImperativeHandle(o,()=>({focus:()=>{let y=h.current.querySelector("input:not(:disabled):checked");y||(y=h.current.querySelector("input:not(:disabled)")),y&&y.focus()}}),[]);const f=at(n,h),g=zn(a),v=T.useMemo(()=>({name:g,onChange(y){b(y.target.value),c&&c(y,y.target.value)},value:p}),[g,c,b,p]);return _.jsx(kf.Provider,{value:v,children:_.jsx(Ef,{role:"radiogroup",ref:f,className:Ce(m.root,i),...d,children:s})})});process.env.NODE_ENV!=="production"&&(G0.propTypes={children:r.node,className:r.string,defaultValue:r.any,name:r.string,onChange:r.func,value:r.any});function XI(){return T.useContext(kf)}function QI(e){return Me("PrivateSwitchBase",e)}De("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const JI=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,QI,t)},ZI=ie(Kn,{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}}]}),e$=ie("input",{name:"MuiSwitchBase",shouldForwardProp:Yt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),_f=T.forwardRef(function(t,n){const{autoFocus:o,checked:s,checkedIcon:i,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:h,inputProps:m,inputRef:p,name:b,onBlur:f,onChange:g,onFocus:v,readOnly:y,required:S=!1,tabIndex:w,type:x,value:P,slots:O={},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=JI(Y),L={slots:O,slotProps:{input:m,...I}},[E,q]=ot("root",{ref:n,elementType:ZI,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:p,elementType:e$,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?h: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"&&(_f.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 t$=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"),n$=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"),r$=ie("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Yt})({position:"relative",display:"flex"}),o$=ie(t$,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),s$=ie(n$,{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 Rf(e){const{checked:t=!1,classes:n={},fontSize:o}=e,s={...e,checked:t};return _.jsxs(r$,{className:n.root,ownerState:s,children:[_.jsx(o$,{fontSize:o,className:n.background,ownerState:s}),_.jsx(s$,{fontSize:o,className:n.dot,ownerState:s})]})}process.env.NODE_ENV!=="production"&&(Rf.propTypes={checked:r.bool,classes:r.object,fontSize:r.oneOf(["small","medium"])});function i$(e){return Me("MuiRadio",e)}const X0=De("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),a$=e=>{const{classes:t,color:n,size:o}=e,s={root:["root",`color${we(n)}`,o!=="medium"&&`size${we(o)}`]};return{...t,...$e(s,i$,t)}},l$=ie(_f,{shouldForwardProp:e=>Yt(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,[`&.${X0.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:{[`&.${X0.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function c$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const u$=_.jsx(Rf,{checked:!0}),d$=_.jsx(Rf,{}),Q0=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:i=u$,color:l="primary",icon:a=d$,name:c,onChange:u,size:d="medium",className:h,disabled:m,disableRipple:p=!1,slots:b={},slotProps:f={},inputProps:g,...v}=o,y=un();let S=m;y&&typeof S>"u"&&(S=y.disabled),S??=!1;const w={...o,disabled:S,disableRipple:p,color:l,size:d},x=a$(w),P=XI();let O=s;const I=Wd(u,P&&P.onChange);let $=c;P&&(typeof O>"u"&&(O=c$(P.value,o.value)),typeof $>"u"&&($=P.name));const M=f.input??g,[k,C]=ot("root",{ref:n,elementType:l$,className:Ce(x.root,h),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:T.cloneElement(a,{fontSize:a.props.fontSize??d}),checkedIcon:T.cloneElement(i,{fontSize:i.props.fontSize??d}),disabled:S,name:$,checked:O,slots:b,slotProps:{input:typeof M=="function"?M(w):M}}});return _.jsx(k,{...C,classes:x})});process.env.NODE_ENV!=="production"&&(Q0.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 J0="Radios",Ba={formControl:`${J0}-formControl`,group:`${J0}-group`},f$=ia(Sr)(({theme:e})=>({[`&.${Ba.formControl}`]:{marginTop:e.spacing(1)},[`& .${Ba.group}`]:{margin:e.spacing(1,0)}})),p$=e=>{const{form:t,localization:{getLocalizedString:n}}=e,{value:o,onChangeValidate:s}=Kt(e),i=l=>l.titleMap.map((a,c)=>_.jsx(Tf,{control:_.jsx(Q0,{}),label:a.name&&n(a.name),value:a.value,disabled:l.readonly},c));return _.jsxs(f$,{component:"fieldset",className:Ba.formControl,...t.otherProps,children:[_.jsx(ir,{component:"legend",required:t.required,children:t.title&&n(t.title)}),_.jsx(G0,{value:o,name:t.title,onChange:s,className:Ba.group,children:i(t)})]})},h$=e=>{const{localization:{getLocalizedDate:t},form:n,type:o}=e,{value:s,valid:i,error:l,onChangeValidate:a}=Kt(e);return _.jsx(mo,{...e,form:{...n,type:o},value:t(s),valid:i,error:l,onChangeValidate:a,otherProps:{InputLabelProps:{shrink:!0}},...n.otherProps})},m$=e=>_.jsx(h$,{type:"date",...e}),Z0=ev({themeId:Jo});function xt({props:e,name:t}){return ZT({props:e,name:t,defaultTheme:da,themeId:Jo})}const Xn=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),y$=({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}},qa=(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},Es=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:s,isDateDisabled:i,adapter:l,timezone:a})=>{const c=qa(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},g$=(e,t)=>e.isValid(t)?t:null,za=(e,t,n)=>t==null||!e.isValid(t)?n:t,b$=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),If=(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},$f=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),ks=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},eS=["year","month","day"],xo=e=>eS.includes(e),tS=(e,{format:t,views:n},o)=>{if(t!=null)return t;const s=e.formats;return Xn(n,["year"])?s.year:Xn(n,["month"])?s.month:Xn(n,["day"])?s.dayOfMonth:Xn(n,["month","year"])?`${s.month} ${s.year}`:Xn(n,["day","month"])?`${s.month} ${s.dayOfMonth}`:s.keyboardDate},v$=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},nS=["hours","minutes","seconds"],S$=["hours","minutes","seconds","meridiem"],_s=e=>nS.includes(e),wo=e=>S$.includes(e),x$=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Df=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,w$=(e,t,n,o)=>{const s=Df(o.getHours(e),t,n);return o.setHours(e,s)},rS=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Ua=(e,t)=>(n,o)=>e?t.isAfter(n,o):rS(n,t)>rS(o,t),oS=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const s=e.formats;return Xn(n,["hours"])?o?`${s.hours12h} ${s.meridiem}`:s.hours24h:Xn(n,["minutes"])?s.minutes:Xn(n,["seconds"])?s.seconds:Xn(n,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:Xn(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},C$=e=>Math.max(...e.map(t=>jn[t.type]??1)),Rs=(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},P$=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:s})=>{let i=s?s():Rs(t,n,$f(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Rs(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Rs(t,n,e.maxDate));const l=Ua(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&l(e.minTime,i)&&(i=Rs(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:qa(t,i,e.minTime))),e.maxTime!=null&&l(i,e.maxTime)&&(i=Rs(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:qa(t,i,e.maxTime))),i},Mf=(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}},Wa=(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))},sS=(e,t,n,o)=>{switch(n){case"month":return If(e,e.date(void 0,t)).map(s=>e.formatByString(s,o));case"weekDay":return Wa(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[]}},iS="s",O$=["0","1","2","3","4","5","6","7","8","9"],T$=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),iS)==="0"?O$:Array.from({length:10}).map((o,s)=>e.formatByString(e.setSeconds(t,s),iS))},Hr=(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("")},Nf=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),aS=(e,t)=>{const n=Hr(e,t);return n!==" "&&!Number.isNaN(Number(n))},jf=(e,t)=>Number(e).toString().padStart(t,"0"),lS=(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
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=
|
|
178
|
-
`));return v},[c,
|
|
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=jf(i,s.maxLength)),Nf(i,o)},Af=(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(Hr(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},cS=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Mf(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},E$=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,uS=(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")}},k$=(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(Af(u,"non-input",n)))}const l=s.join(" "),a=i.join(" ");return e.parse(a,l)},_$=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),R$=(e,t,n)=>{const s=e.map(i=>{const l=Af(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${l}${i.endSeparator}`}).join("");return n?`${s}`:s},I$=(e,t,n)=>{const o=e.date(void 0,n),s=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:l,longestMonth:a}=If(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:E$(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=Wa(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 Hr(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number(Hr(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 dS=!1;const fS=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!dS){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('", "')}"]\`.`),dS=!0)}},$$=(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=jf(s,t.maxLength));const i=Wa(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}},pS={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},hS=(e,t,n,o,s)=>[...n].sort((i,l)=>pS[i.type]-pS[l.type]).reduce((i,l)=>!s||l.modified?$$(e,l,t,i):i,o),D$=()=>navigator.userAgent.toLowerCase().includes("android"),M$=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,h=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:h}}),{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],h=d===0?null:o[d-1],m=d===e.length-1?null:o[d+1];n[u]={leftIndex:h,rightIndex:m}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},Ff=(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},N$=["value","referenceDate"],en={emptyValue:null,getTodayValue:$f,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=qe(e,N$);return o.adapter.isValid(t)?t:n??P$(o)},cleanValue:g$,areValuesEqual:b$,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)},j$={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:_$,getV6InputValueFromSections:R$,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 A$(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const F$=e=>{setTimeout(e,0)},mS=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?mS(t.shadowRoot):t:null},Gt=e=>mS(Lt(e)),Ha=e=>Array.from(e.children).indexOf(Gt(e)),V$="@media (pointer: fine)";function L$(...e){return e.reduce((t,n)=>(Array.isArray(n)?t.push(...n):n!=null&&t.push(n),t),[])}const B$=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:K({},e)}}}}),yS={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"},q$=yS;B$(yS);const z$=["localeText"],Ya=T.createContext(null);process.env.NODE_ENV!=="production"&&(Ya.displayName="PickerAdapterContext");const Ka=function(t){const{localeText:n}=t,o=qe(t,z$),{adapter:s,localeText:i}=T.useContext(Ya)??{adapter:void 0,localeText:void 0},l=xt({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:h,localeText:m}=l,p=T.useMemo(()=>K({},m,i,n),[m,i,n]),b=T.useMemo(()=>{if(!c)return s||null;const v=new c({locale:h,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,h,u,d,s]),f=T.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),g=T.useMemo(()=>({utils:b,adapter:b,defaultDates:f,localeText:p}),[f,b,p]);return _.jsx(Ya.Provider,{value:g,children:a})};process.env.NODE_ENV!=="production"&&(Ka.displayName="LocalizationProvider"),process.env.NODE_ENV!=="production"&&(Ka.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 Vf=()=>{const e=T.useContext(Ya);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
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=
|
|
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"&&!
|
|
185
|
-
`)),
|
|
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;
|
|
188
|
-
`))},[s]),
|
|
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"&<!=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
|
-
`),
|
|
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"})}));
|
|
180
|
+
`));const t=T.useMemo(()=>K({},q$,e.localeText),[e.localeText]);return T.useMemo(()=>K({},e,{localeText:t}),[e,t])},ft=()=>Vf().adapter,An=()=>Vf().localeText,Lf=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Bf=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],gS=["minDateTime","maxDateTime"],U$=[...Lf,...Bf,...gS],bS=e=>U$.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),W$=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],vS=(e,t)=>T.useMemo(()=>{const n=K({},e),o={},s=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return W$.forEach(s),t==="date"?Lf.forEach(s):t==="time"?Bf.forEach(s):t==="date-time"&&(Lf.forEach(s),Bf.forEach(s),gS.forEach(s)),{forwardedProps:n,internalProps:o}},[e,t]),H$=({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},Y$=({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},K$=(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}},G$=({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=Mf(e,l),u=uS(e,c.contentType,c.type,l),d=n?u:c.contentType==="digit",h=e.isValid(t);let m=h?e.formatByString(t,l):"",p=null;if(d)if(u)p=m===""?e.formatByString(i,l).length:m.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${l} should have a 'maxLength' property on it's adapter`);p=c.maxLength,h&&(m=Nf(jf(Hr(m,s),p),s))}return K({},c,{format:l,maxLength:p,value:m,placeholder:K$(e,o,c,l),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:a,endSeparator:"",modified:!1})},X$=e=>{const{adapter:t,expandedFormat:n,escapedParts:o}=e,s=t.date(void 0),i=[];let l="";const a=Object.keys(t.formatTokenMap).sort((p,b)=>b.length-p.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${a.join("|")})*$`),d=new RegExp(`^(${a.join("|")})`),h=p=>o.find(b=>b.start<=p&&b.end>=p);let m=0;for(;m<n.length;){const p=h(m),b=p!=null,f=c.exec(n.slice(m))?.[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(G$(K({},e,{now:s,token:v,startSeparator:l}))),l=""}m+=f.length}else{const g=n[m];b&&p?.start===m||p?.end===m||(i.length===0?l+=g:(i[i.length-1].endSeparator+=g,i[i.length-1].isEndFormatSeparator=!0)),m+=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},Q$=({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}),SS=e=>{let t=H$(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Y$(K({},e,{expandedFormat:t})),o=X$(K({},e,{expandedFormat:t,escapedParts:n}));return Q$(K({},e,{sections:o}))},Ga=T.createContext(null);process.env.NODE_ENV!=="production"&&(Ga.displayName="PickerContext");const Er=()=>{const e=T.useContext(Ga);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},qf=()=>T.useContext(Ga),zf=T.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(zf.displayName="IsValidValueContext");function J$(){return T.useContext(zf)}const Uf=T.createContext(null);process.env.NODE_ENV!=="production"&&(Uf.displayName="PickerFieldPrivateContext");function xS(){return T.useContext(Uf)}const Wf=T.createContext(null);process.env.NODE_ENV!=="production"&&(Wf.displayName="PickerActionsContext");const Hf=T.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"&&(Hf.displayName="PickerPrivateContext");function wS(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:s,isValidContextValue:i,localeText:l,children:a}=e;return _.jsx(Ga.Provider,{value:t,children:_.jsx(Wf.Provider,{value:n,children:_.jsx(Hf.Provider,{value:o,children:_.jsx(Uf.Provider,{value:s,children:_.jsx(zf.Provider,{value:i,children:_.jsx(Ka,{localeText:l,children:a})})})})})})}const Z$=()=>{const e=T.useContext(Wf);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,CS=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:l}})=>{const a=ft(),c=({keyPressed:h,sectionIndex:m},p,b)=>{const f=h.toLowerCase(),g=n.sections[m];if(n.characterQuery!=null&&(!b||b(n.characterQuery.value))&&n.characterQuery.sectionIndex===m){const y=`${n.characterQuery.value}${f}`,S=p(y,g);if(!Co(S))return s({sectionIndex:m,value:y,sectionType:g.type}),S}const v=p(f,g);return Co(v)&&!v.saveQuery?(s(null),null):(s({sectionIndex:m,value:f,sectionType:g.type}),Co(v)?null:v)},u=h=>{const m=(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}},p=(f,g,v,y)=>{const S=w=>sS(a,o,g.type,w);if(g.contentType==="letter")return m(g.format,S(g.format),f);if(v&&y!=null&&Mf(a,v).contentType==="letter"){const w=S(v),x=m(v,w,f);return Co(x)?{saveQuery:!1}:K({},x,{sectionValue:y(x.sectionValue,w)})}return{saveQuery:!1}};return c(h,(f,g)=>{switch(g.type){case"month":{const v=y=>cS(a,y,a.formats.month,g.format);return p(f,g,a.formats.month,v)}case"weekDay":{const v=(y,S)=>S.indexOf(y).toString();return p(f,g,a.formats.weekday,v)}case"meridiem":return p(f,g);default:return{saveQuery:!1}}})},d=h=>{const m=({queryValue:b,skipIfBelowMinimum:f,section:g})=>{const v=Hr(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:lS(a,y,S,e,g),shouldGoToNextSection:w}};return c(h,(b,f)=>{if(f.contentType==="digit"||f.contentType==="digit-with-letter")return m({queryValue:b,skipIfBelowMinimum:!1,section:f});if(f.type==="month"){uS(a,"digit","month","MM");const g=m({queryValue:b,skipIfBelowMinimum:!0,section:{type:f.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Co(g))return g;const v=cS(a,g.sectionValue,"MM",f.format);return K({},g,{sectionValue:v})}if(f.type==="weekDay"){const g=m({queryValue:b,skipIfBelowMinimum:!0,section:f});if(Co(g))return g;const v=Wa(a,f.format)[Number(g.sectionValue)-1];return K({},g,{sectionValue:v})}return{saveQuery:!1}},b=>aS(b,e))};return Ee(h=>{const m=n.sections[h.sectionIndex],b=aS(h.keyPressed,e)?d(K({},h,{keyPressed:Nf(h.keyPressed,e)})):u(h);if(b==null){i(null);return}l({section:m,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})})},Yf=({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,h=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,h)):return"disableFuture";case!!(a&&o.isBeforeDay(t,h)):return"disablePast";case!!(u&&o.isBeforeDay(t,u)):return"minDate";case!!(d&&o.isAfterDay(t,d)):return"maxDate";default:return null}};Yf.valueManager=en;const PS=({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,h=e.date(void 0,n),m=Ua(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(s&&m(s,t)):return"minTime";case!!(i&&m(t,i)):return"maxTime";case!!(d&&e.isAfter(t,h)):return"disableFuture";case!!(u&&e.isBefore(t,h)):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}};PS.valueManager=en;const Xa=({adapter:e,value:t,timezone:n,props:o})=>{const s=Yf({adapter:e,value:t,timezone:n,props:o});return s!==null?s:PS({adapter:e,value:t,timezone:n,props:o})};Xa.valueManager=en;function OS(e){const{props:t,validator:n,value:o,timezone:s,onError:i}=e,l=ft(),a=T.useRef(n.valueManager.defaultErrorState),c=n({adapter:l,value:o,timezone:s,props:t}),u=n.valueManager.hasError(c);T.useEffect(()=>{i&&!n.valueManager.isSameError(c,a.current)&&i(c,o),a.current=c},[n,i,c,o]);const d=Ee(h=>n({adapter:l,value:h,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const Yr=({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=T.useMemo(()=>l.getTimezone(a,c),[a,l,c]),h=Ee(f=>d==null?f:l.setTimezone(a,d,f)),m=T.useMemo(()=>t||d||(s?a.getTimezone(Array.isArray(s)?s[0]:s):"default"),[t,d,s,a]),p=T.useMemo(()=>l.setTimezone(a,m,c),[l,a,m,c]),b=Ee((f,...g)=>{const v=h(f);u(v),i?.(v,...g)});return{value:p,handleValueChange:b,timezone:m}},eD=5e3,TS=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:h,onChange:m,format:p,formatDensity:b="dense",selectedSections:f,onSelectedSectionsChange:g,shouldRespectLeadingZeros:v=!1,timezone:y,enableAccessibleFieldDOMStructure:S=!0},forwardedProps:{error:w}}=e,{value:x,handleValueChange:P,timezone:O}=Yr({name:"a field component",timezone:y,value:u,defaultValue:d,referenceDate:h,onChange:m,valueManager:l}),I=T.useRef(x);T.useEffect(()=>{I.current=x},[x]);const{hasValidationError:$}=OS({props:c,validator:s,timezone:O,value:x,onError:c.onError}),M=T.useMemo(()=>T$(t),[t]),k=T.useMemo(()=>I$(t,M,O),[t,M,O]),C=T.useCallback(re=>a.getSectionsFromValue(re,ce=>SS({adapter:t,localeText:n,localizedDigits:M,format:p,date:ce,formatDensity:b,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:S,isRtl:o})),[a,p,n,M,o,v,t,b,S]),[N,D]=T.useState(()=>{const re=C(x);fS(re,i);const ce={sections:re,lastExternalValue:x,lastSectionsDependencies:{format:p,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},be=C$(re),oe=l.getInitialReferenceValue({referenceDate:h,value:x,adapter:t,props:c,granularity:be,timezone:O});return K({},ce,{referenceValue:oe})}),[j,F]=pn({controlled:f,default:null,name:"useField",state:"selectedSections"}),W=re=>{F(re),g?.(re)},Y=T.useMemo(()=>Ff(j,N.sections),[j,N.sections]),H=Y==="all"?0:Y,L=T.useMemo(()=>M$(N.sections,o&&!S),[N.sections,o,S]),E=T.useMemo(()=>N.sections.every(re=>re.value===""),[N.sections]),q=T.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=T.useMemo(()=>w!==void 0?w:$||q,[$,q,w]),R=re=>{const ce={validationError:s({adapter:t,value:re,timezone:O,props:c})};P(re,ce)},A=(re,ce)=>{const be=[...N.sections];return be[re]=K({},be[re],{value:ce,modified:!0}),be},U=T.useRef(null),X=wr(),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,p);if(!t.isValid(ve))return null;const ke=SS({adapter:t,localeText:n,localizedDigits:M,format:p,date:ve,formatDensity:b,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:S,isRtl:o});return hS(t,ve,ke,fe,!1)},be=a.parseValueStr(re,N.referenceValue,ce);R(be)},V=wr(),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=k$(t,ve,M);if(t.isValid(ke)){const je=hS(t,ke,ve,a.getDateFromSection(N.referenceValue,re),!0);return oe==null&&V.start(0,()=>{I.current===x&&D(We=>K({},We,{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:p,isRtl:o,locale:t.locale},referenceValue:re?be.referenceValue:a.updateReferenceValue(t,x,be.referenceValue),tempValueStrAndroid:null}))}if(o!==N.lastSectionsDependencies.isRtl||p!==N.lastSectionsDependencies.format||t.locale!==N.lastSectionsDependencies.locale){const re=C(x);fS(re,i),D(ce=>K({},ce,{lastSectionsDependencies:{format:p,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),T.useEffect(()=>{U.current!=null&&(U.current=null)});const ae=wr();return T.useEffect(()=>(N.characterQuery!=null&&ae.start(eD,()=>ne(null)),()=>{}),[N.characterQuery,ne,ae]),T.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:O,value:x,clearValue:te,clearActiveSection:J,setCharacterQuery:ne,setSelectedSections:W,setTempAndroidValueStr:G,updateSectionValue:Q,updateValueFromValueStr:B,getSectionsFromValue:C}};function ES(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,s=qf(),i=xS(),l=at(n.unstableFieldRef,o?null:i?.fieldRef),a=s?.setValue,c=T.useCallback((d,h)=>a?.(d,{validationError:h.validationError,shouldClose:!1}),[a]),u=T.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 Kf(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(Gt(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 kS(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:h,timezone:m,sectionOrder:p,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(p.startIndex);else if(u==="all")g(p.endIndex);else{const S=p.neighbors[u].rightIndex;S!==null&&g(S)}break}case y.key==="ArrowLeft":{if(y.preventDefault(),u==null)g(p.endIndex);else if(u==="all")g(p.startIndex);else{const S=p.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=nD(t,m,S,y.key,d,h,n.getDateFromSection(a,S),{minutesStep:o});v({section:S,newSectionValue:w,shouldGoToNextSection:!1});break}}})}function tD(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function nD(e,t,n,o,s,i,l,a){const c=tD(o),u=o==="Home",d=o==="End",h=n.value===""||u||d,m=()=>{const b=s[n.type]({currentDate:l,format:n.format,contentType:n.contentType}),f=y=>lS(e,y,b,i,n),g=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let v;if(h){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(Hr(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)},p=()=>{const b=sS(e,t,n.type,n.format);if(b.length===0)return n.value;if(h)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"?m():p()}function rD(e){const{manager:t,focused:n,setFocused:o,domGetters:s,stateResponse:i,applyCharacterEditing:l,internalPropsWithDefaults:a,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:d,clearValue:h,setCharacterQuery:m,setSelectedSections:p,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:f=!1,readOnly:g=!1}}=e,v=kS({manager:t,internalPropsWithDefaults:a,stateResponse:i}),y=wr(),S=Ee(I=>{f||!s.isReady()||(o(!0),c==="all"?y.start(0,()=>{const $=document.getSelection().getRangeAt(0).startOffset;if($===0){p(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}p(M-1)}):n?s.getRoot().contains(I.target)||p(u.startIndex):(o(!0),p(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(""),Kf({focused:n,domGetters:s,stateResponse:i}),M.length===0||M.charCodeAt(0)===10?(h(),p("all")):M.length>1?b(M):(c==="all"&&p(0),l({keyPressed:M,sectionIndex:0}))}),x=Ee(I=>{if(g||c!=="all"){I.preventDefault();return}const $=I.clipboardData.getData("text");I.preventDefault(),m(null),b($)}),P=Ee(()=>{if(n||f||!s.isReady())return;const I=Gt(s.getRoot());o(!0),s.getSectionIndexFromDOMElement(I)!=null||p(u.startIndex)}),O=Ee(()=>{setTimeout(()=>{if(!s.isReady())return;const I=Gt(s.getRoot());!s.getRoot().contains(I)&&(o(!1),p(null))})});return{onKeyDown:v,onBlur:O,onFocus:P,onClick:S,onPaste:x,onInput:w,contentEditable:c==="all",tabIndex:a.disabled||c===0?-1:0}}function oD(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:s}}=e,i=Ee(a=>{s(a.target.value)});return{value:T.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function sD(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,o=T.useCallback(s=>i=>{n||i.isDefaultPrevented()||t(s)},[n,t]);return T.useCallback(s=>({"data-sectionindex":s,onClick:o(s)}),[o])}function iD(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:h,clearActiveSection:m,setCharacterQuery:p,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,Kf({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),m();return}l({keyPressed:N,sectionIndex:D}),x(D)}),O=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?(p(null),f({section:C,newSectionValue:N,shouldGoToNextSection:!0})):!D&&!j&&(p(null),g(N))}),$=Ee(k=>{k.preventDefault(),k.dataTransfer.dropEffect="none"}),M=T.useCallback(k=>()=>{v||b(k)},[v,b]);return T.useCallback((k,C)=>{const N=u[k.type]({currentDate:a.getDateFromSection(h,k),contentType:k.contentType,format:k.format});return{onInput:P,onPaste:I,onMouseUp:O,onDragOver:$,onFocus:M(C),"aria-readonly":y,"aria-valuenow":lD(k,t),"aria-valuemin":N.minimum,"aria-valuemax":N.maximum,"aria-valuetext":k.value?aD(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,O,$,M,a,h])}function aD(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 lD(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 cD=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:l,forwardedProps:a}=vS(t,s),c=ES({manager:n,internalProps:l,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:h,onFocus:m,onInput:p,onPaste:b,onKeyDown:f,onClear:g,clearable:v}=a,{disabled:y=!1,readOnly:S=!1,autoFocus:w=!1,focused:x,unstableFieldRef:P}=c,O=T.useRef(null),I=at(u,O),$=T.useMemo(()=>({isReady:()=>O.current!=null,getRoot:()=>O.current.getRoot(),getSectionContainer:ae=>O.current.getSectionContainer(ae),getSectionContent:ae=>O.current.getSectionContent(ae),getSectionIndexFromDOMElement:ae=>O.current.getSectionIndexFromDOMElement(ae)}),[O]),M=TS({manager:n,internalPropsWithDefaults:c,forwardedProps:a}),{areAllSectionsEmpty:k,error:C,parsedSelectedSections:N,sectionOrder:D,state:j,value:F,clearValue:W,setSelectedSections:Y}=M,H=CS({stateResponse:M}),L=i(F),[E,q]=T.useState(!1);function z(ae=0){if(y||!O.current||_S(O)!=null)return;const re=Ff(ae,j.sections);q(!0),O.current.getSectionContent(re).focus()}const R=rD({manager:n,internalPropsWithDefaults:c,stateResponse:M,applyCharacterEditing:H,focused:E,setFocused:q,domGetters:$}),A=oD({manager:n,stateResponse:M}),U=sD({stateResponse:M,internalPropsWithDefaults:c}),X=iD({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=>{m?.(ae),R.onFocus(ae)}),B=Ee(ae=>{ae.isDefaultPrevented()||(h?.(ae),R.onClick(ae))}),V=Ee(ae=>{b?.(ae),R.onPaste(ae)}),Q=Ee(ae=>{p?.(ae),R.onInput(ae)}),G=Ee((ae,...re)=>{ae.preventDefault(),g?.(ae,...re),W(),RS(O)?Y(D.startIndex):z(0)}),ne=T.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 T.useEffect(()=>{if(O.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&&O.current&&O.current.getSectionContent(D.startIndex).focus()},[]),Mt(()=>{if(!(!E||!O.current)){if(N==="all")O.current.getRoot().focus();else if(typeof N=="number"){const ae=O.current.getSectionContent(N);ae&&ae.focus()}}},[N,E]),Mt(()=>{Kf({focused:E,domGetters:$,stateResponse:M})}),T.useImperativeHandle(P,()=>({getSections:()=>j.sections,getActiveSectionIndex:()=>_S(O),setSelectedSections:ae=>{if(y||!O.current)return;const re=Ff(ae,j.sections);q((re==="all"?0:re)!==null),Y(ae)},focusField:z,isFieldFocused:()=>RS(O)})),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 _S(e){const t=Gt(e.current?.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function RS(e){const t=Gt(e.current?.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const Po=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),uD=(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=Af(a,n?"input-rtl":"input-ltr",t),u=`${a.startSeparator}${c}${a.endSeparator}`,d=Po(u).length,h=u.length,m=Po(c),p=s+(m===""?0:c.indexOf(m[0]))+a.startSeparator.length,b=p+m.length;i.push(K({},a,{start:o,end:o+d,startInInput:p,endInInput:b})),o+=d,s+=h}return i},dD=e=>{const t=on(),n=wr(),o=wr(),{props:s,manager:i,skipContextFieldRefAssignment:l,manager:{valueType:a,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:h,forwardedProps:m}=vS(s,a),p=ES({manager:i,internalProps:h,skipContextFieldRefAssignment:l}),{onFocus:b,onClick:f,onPaste:g,onBlur:v,onKeyDown:y,onClear:S,clearable:w,inputRef:x,placeholder:P}=m,{readOnly:O=!1,disabled:I=!1,autoFocus:$=!1,focused:M,unstableFieldRef:k}=p,C=T.useRef(null),N=at(x,C),D=TS({manager:i,internalPropsWithDefaults:p,forwardedProps:m}),{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=CS({stateResponse:D}),V=d(q),Q=T.useMemo(()=>uD(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 Oe=Ne===-1?Q.length-1:Ne-1;U(Oe)}function ne(Ae=0){Gt(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(),O||I)return;const Ne=Ae.clipboardData.getData("text");if(typeof H=="number"){const Oe=E.sections[H],Le=/^[a-zA-Z]+$/.test(Ne),Ke=/^[0-9]+$/.test(Ne),Ge=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Ne);if(Oe.contentType==="letter"&&Le||Oe.contentType==="digit"&&Ke||Oe.contentType==="digit-with-letter"&&Ge){A(null),se({section:Oe,newSectionValue:Ne,shouldGoToNextSection:!0});return}if(Le||Ke)return}A(null),te(Ne)}),be=Ee(Ae=>{v?.(Ae),U(null)}),oe=Ee(Ae=>{if(O)return;const Ne=Ae.target.value;if(Ne===""){z();return}const Oe=Ae.nativeEvent.data,Le=Oe&&Oe.length>1,Ke=Le?Oe:Ne,Ge=Po(Ke);if(H==="all"&&U(j),j==null||Le){te(Le?Oe:Ge);return}let lt;if(H==="all"&&Ge.length===1)lt=Ge;else{const pt=Po(u.getV6InputValueFromSections(Q,Y,t));let Be=-1,Te=-1;for(let gt=0;gt<pt.length;gt+=1)Be===-1&&pt[gt]!==Ge[gt]&&(Be=gt),Te===-1&&pt[pt.length-gt-1]!==Ge[Ge.length-gt-1]&&(Te=gt);const Fe=Q[j];if(Be<Fe.start||pt.length-Te-1>Fe.end)return;const _t=Ge.length-pt.length+Fe.end-Po(Fe.endSeparator||"").length;lt=Ge.slice(Fe.start+Po(Fe.startSeparator||"").length,_t)}if(lt.length===0){D$()&&X(Ke),R();return}B({keyPressed:lt,sectionIndex:j})}),fe=Ee((Ae,...Ne)=>{Ae.preventDefault(),S?.(Ae,...Ne),z(),IS(C)?U(L.startIndex):ne(0)}),ve=kS({manager:i,internalPropsWithDefaults:p,stateResponse:D}),ke=Ee(Ae=>{y?.(Ae),ve(Ae)}),je=T.useMemo(()=>P!==void 0?P:u.getV6InputValueFromSections(J(c.emptyValue),Y,t),[P,u,J,c.emptyValue,Y,t]),We=T.useMemo(()=>E.tempValueStrAndroid??u.getV6InputValueFromSections(E.sections,Y,t),[E.sections,u,E.tempValueStrAndroid,Y,t]);T.useEffect(()=>{C.current&&C.current===Gt(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!==Gt(C.current))return;const Ne=C.current.scrollTop;if(H==="all")C.current.select();else{const Oe=Q[H],Le=Oe.type==="empty"?Oe.startInInput-Oe.startSeparator.length:Oe.startInInput,Ke=Oe.type==="empty"?Oe.endInInput+Oe.endSeparator.length:Oe.endInInput;(Le!==C.current.selectionStart||Ke!==C.current.selectionEnd)&&C.current===Gt(C.current)&&C.current.setSelectionRange(Le,Ke),o.start(0,()=>{C.current&&C.current===Gt(C.current)&&C.current.selectionStart===C.current.selectionEnd&&(C.current.selectionStart!==Le||C.current.selectionEnd!==Ke)&&Ae()})}C.current.scrollTop=Ne}Ae()});const Ve=T.useMemo(()=>j==null||E.sections[j].contentType==="letter"?"text":"numeric",[j,E.sections]),Qe=!(C.current&&C.current===Gt(C.current))&&F;return T.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 Oe=Ae<=Q[0].startInInput?1:Q.findIndex(Le=>Le.startInInput-Le.startSeparator.length>Ae);return Oe===-1?Q.length-1:Oe-1},setSelectedSections:Ae=>U(Ae),focusField:ne,isFieldFocused:()=>IS(C)})),K({},m,{error:W,"aria-invalid":W,clearable:!!(w&&!F&&!O&&!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?"":We,onChange:oe,focused:M,disabled:I,readOnly:O,autoFocus:$,openPickerAriaLabel:V})};function IS(e){return e.current===Gt(e.current)}const fD=e=>{const t=xS();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??!0?cD:dD)(e)},$S=()=>Vf().defaultDates,Oo=e=>{const t=ft(),n=T.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Gf(e){const t=ft(),n=$S();return T.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:za(t,e.minDate,n.minDate),maxDate:za(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function pD(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return T.useMemo(()=>({valueType:"date-time",validator:Xa,internal_valueManager:en,internal_fieldValueManager:j$,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:mD,internal_useOpenPickerButtonAriaLabel:hD}),[t])}function hD(e){const t=ft(),n=An();return T.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function mD(e){const t=ft(),n=DS(e),o=T.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return T.useMemo(()=>K({},e,n,{format:e.format??(o?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,o,t])}function DS(e){const t=ft(),n=$S();return T.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:za(t,e.minDateTime??e.minDate,n.minDate),maxDate:za(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 yD=e=>{const t=pD(e);return fD({manager:t,props:e})};function gD(e){return Me("MuiInputAdornment",e)}const MS=De("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var NS;const bD=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${we(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},vD=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,gD,t)},SD=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:bD})(Xe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${MS.positionStart}&:not(.${MS.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),jS=T.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,...h}=o,m=un()||{};let p=d;d&&m.variant&&process.env.NODE_ENV!=="production"&&d===m.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),m&&!p&&(p=m.variant);const b={...o,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:u,variant:p},f=vD(b);return _.jsx(Zo.Provider,{value:null,children:_.jsx(SD,{as:l,ownerState:b,className:Ce(f.root,i),ref:n,...h,children:typeof s=="string"&&!c?_.jsx(Nn,{color:"textSecondary",children:s}):_.jsxs(T.Fragment,{children:[u==="start"?NS||(NS=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,s]})})})});process.env.NODE_ENV!=="production"&&(jS.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 kr=7,Ft=()=>T.useContext(Hf);function Xf(e){const{ownerState:t}=Ft(),n=on();return T.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 xD=Pt(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),wD=Pt(_.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),CD=Pt(_.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),PD=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(T.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 OD=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"),TD=Pt(_.jsxs(T.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"),ED=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 kD(e){return Me("MuiPickersTextField",e)}De("MuiPickersTextField",["root","focused","disabled","error","required"]);const _D={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function RD(e){return Me("MuiPickersInputBase",e)}const To=De("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function ID(e){return Me("MuiPickersSectionList",e)}const Eo=De("MuiPickersSectionList",["root","section","sectionContent"]),$D=["slots","slotProps","elements","sectionListRef","classes"],AS=ie("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),FS=ie("span",{name:"MuiPickersSectionList",slot:"Section"})({}),VS=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),LS=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),DD=e=>$e({root:["root"],section:["section"],sectionContent:["sectionContent"]},ID,e);function BS(e){const{slots:t,slotProps:n,element:o,classes:s}=e,{ownerState:i}=Ft(),l=t?.section??FS,a=st({elementType:l,externalSlotProps:n?.section,externalForwardedProps:o.container,className:s.section,ownerState:i}),c=t?.sectionContent??LS,u=st({elementType:c,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:i}),d=t?.sectionSeparator??VS,h=st({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:K({},i,{separatorPosition:"before"})}),m=st({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:K({},i,{separatorPosition:"after"})}),p=T.useRef(null),b=at(u.ref,p),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({},h)),_.jsx(c,K({},u,{ref:b,onBlur:f})),_.jsx(d,K({},m))]}))}process.env.NODE_ENV!=="production"&&(BS.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 Qf=T.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,$D),d=DD(c),{ownerState:h}=Ft(),m=T.useRef(null),p=at(n,m),b=v=>{if(!m.current)throw new Error(`MUI X: Cannot call sectionListRef.${v} before the mount of the component.`);return m.current};T.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??AS,g=st({elementType:f,externalSlotProps:i?.root,externalForwardedProps:u,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:d.root,ownerState:h});return _.jsx(f,K({},g,{children:g.contentEditable?l.map(({content:v,before:y,after:S})=>`${y.children}${v.children}${S.children}`).join(""):_.jsx(T.Fragment,{children:l.map((v,y)=>_.jsx(BS,{slots:s,slotProps:i,element:v,classes:d},y))})}))});process.env.NODE_ENV!=="production"&&(Qf.displayName="PickersSectionList"),process.env.NODE_ENV!=="production"&&(Qf.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 Jf=T.createContext(null);process.env.NODE_ENV!=="production"&&(Jf.displayName="PickerTextFieldOwnerStateContext");const Qa=()=>{const e=T.useContext(Jf);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},MD=["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"],ND=e=>Math.round(e*1e5)/1e5,Ja=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:`${ND(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),Zf=ie(AS,{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}}]})),jD=ie(FS,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),AD=ie(LS,{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"})),FD=ie(VS,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),VD=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(K({},_D)),LD=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]}})),BD=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:s,hasFieldError:i,inputSize:l,isInputInFullWidth:a,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,h={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(h,RD,e)};function qS(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 qD(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+=qS(e[s],t,s,"end");else for(let s=0;s<e.length/2;s+=1)n+=qS(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 Is=T.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:h,slots:m,slotProps:p,contentEditable:b,tabIndex:f,onInput:g,onPaste:v,onKeyDown:y,name:S,readOnly:w,inputProps:x,inputRef:P,sectionListRef:O,onFocus:I,onBlur:$,classes:M,ownerState:k}=o,C=qe(o,MD),N=Qa(),D=T.useRef(null),j=T.useRef(null),F=T.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)};T.useEffect(()=>{H&&H.setAdornedStart(!!d)},[H,d]),T.useEffect(()=>{H&&(i?H.onEmpty():H.onFilled())},[H,i]);const A=BD(M,L),U=m?.root||Ja,X=st({elementType:U,externalSlotProps:p?.root,externalForwardedProps:C,additionalProps:{"aria-invalid":H.error,ref:W},className:A.root,ownerState:L}),se=m?.input||Zf,te=s.some(J=>J.content["data-range-position"]!==void 0);return T.useEffect(()=>{if(!te||!L.isPickerOpen)return;const{activeBarWidth:J,sectionOffsets:B}=qD(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(Qf,{sectionListRef:O,elements:s,contentEditable:b,tabIndex:f,className:A.sectionsContainer,onFocus:E,onBlur:R,onInput:g,onPaste:v,onKeyDown:z,slots:{root:se,section:jD,sectionContent:AD,sectionSeparator:FD},slotProps:{root:K({},p?.input,{ownerState:L}),sectionContent:{className:To.sectionContent},sectionSeparator:({separatorPosition:J})=>({className:J==="before"?To.sectionBefore:To.sectionAfter})}}),u,h?h(K({},H)):null,_.jsx(VD,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(LD,{className:A.activeBar,ref:j,ownerState:{sectionOffsets:F.current}})]}))});process.env.NODE_ENV!=="production"&&(Is.displayName="PickersInputBase"),process.env.NODE_ENV!=="production"&&(Is.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 zD(e){return Me("MuiPickersOutlinedInput",e)}const Fn=K({},To,De("MuiPickersOutlinedInput",["root","notchedOutline","input"])),UD=["children","className","label","notched","shrink"],WD=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}}),zS=ie("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),HD=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 YD(e){const{className:t,label:n,notched:o}=e,s=qe(e,UD),i=Qa();return _.jsx(WD,K({"aria-hidden":!0,className:t},s,{ownerState:i,children:_.jsx(HD,{ownerState:i,notched:o,children:n?_.jsx(zS,{children:n}):_.jsx(zS,{className:"notranslate",children:""})})}))}const KD=["label","autoFocus","ownerState","classes","notched"],GD=ie(Ja,{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}}}))}}),XD=ie(Zf,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),QD=e=>{const n=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zD,e);return K({},e,n)},Za=T.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:l}=o,a=qe(o,KD),c=un(),u=QD(i);return _.jsx(Is,K({slots:{root:GD,input:XD},renderSuffix:d=>_.jsx(YD,{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(T.Fragment,{children:[s," ","*"]}):s})},a,{label:s,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(Za.displayName="PickersOutlinedInput"),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,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}),Za.muiName="Input";function JD(e){return Me("MuiPickersFilledInput",e)}const Kr=K({},To,De("MuiPickersFilledInput",["root","underline","input"])),ZD=["label","autoFocus","disableUnderline","hiddenLabel","classes"],eM=ie(Ja,{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}},[`&.${Kr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Kr.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"},[`&.${Kr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Kr.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(.${Kr.disabled}, .${Kr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Kr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),tM=ie(Zf,{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}}]}),nM=(e,t)=>{const{inputHasUnderline:n}=t,s=$e({root:["root",n&&"underline"],input:["input"]},JD,e);return K({},e,s)},el=T.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,ZD),u=Qa(),d=K({},u,{inputHasUnderline:!i}),h=nM(a,d);return _.jsx(Is,K({slots:{root:eM,input:tM},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:l}}},c,{label:s,classes:h,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(el.displayName="PickersFilledInput"),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,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}),el.muiName="Input";function rM(e){return Me("MuiPickersFilledInput",e)}const $s=K({},To,De("MuiPickersInput",["root","underline","input"])),oM=["label","autoFocus","disableUnderline","ownerState","classes"],sM=ie(Ja,{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"},[`&.${$s.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$s.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(.${$s.disabled}, .${$s.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$s.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),iM=(e,t)=>{const{inputHasUnderline:n}=t,s=$e({root:["root",!n&&"underline"],input:["input"]},rM,e);return K({},e,s)},tl=T.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:l}=o,a=qe(o,oM),c=Qa(),u=K({},c,{inputHasUnderline:!i}),d=iM(l,u);return _.jsx(Is,K({slots:{root:sM},slotProps:{root:{disableUnderline:i}}},a,{ownerState:u,label:s,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(tl.displayName="PickersInput"),process.env.NODE_ENV!=="production"&&(tl.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}),tl.muiName="Input";const aM=["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"],lM={standard:tl,filled:el,outlined:Za},cM=ie(Sr,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),uM=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:s}=t;return $e({root:["root",n&&!o&&"focused",o&&"disabled",s&&"required"]},kD,e)},nl=T.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:h="outlined",required:m=!1,hiddenLabel:p=!1,InputProps:b,inputProps:f,inputRef:g,sectionListRef:v,elements:y,areAllSectionsEmpty:S,onClick:w,onKeyDown:x,onKeyUp:P,onPaste:O,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,aM),A=T.useRef(null),U=at(n,A),X=zn(W),se=H&&X?`${X}-helper-text`:void 0,te=E&&X?`${X}-label`:void 0,J=Xf({disabled:o.disabled,required:o.required,readOnly:b?.readOnly}),B=T.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=uM(a,B),Q=lM[h],G={};return h==="outlined"?(q&&typeof q.shrink<"u"&&(G.notched=q.shrink),G.label=E):h==="filled"&&(G.hiddenLabel=p),_.jsx(Jf.Provider,{value:B,children:_.jsxs(cM,K({className:Ce(V.root,l),ref:U,focused:N,disabled:u,variant:h,error:d,color:c,fullWidth:F,required:m,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:O,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(Lr,K({id:se},L,{children:H}))]}))})});process.env.NODE_ENV!=="production"&&(nl.displayName="PickersTextField"),process.env.NODE_ENV!=="production"&&(nl.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 dM=["enableAccessibleFieldDOMStructure"],fM=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],pM=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],hM=["ownerState"],mM=["ownerState"],yM=["ownerState"],gM=["ownerState"],bM=["InputProps","inputProps"],ep=()=>{},vM=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=qe(e,dM);if(t){const{InputProps:y,readOnly:S,onClear:w,clearable:x,clearButtonPosition:P,openPickerButtonPosition:O,openPickerAriaLabel:I}=n,$=qe(n,fM),M=kr>=6&&$?.slotProps?.input?Ds($?.slotProps?.input,y):ep;return{clearable:x,onClear:w,clearButtonPosition:P,openPickerButtonPosition:O,openPickerAriaLabel:I,textFieldProps:K({},$,kr>=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:h,clearButtonPosition:m,openPickerButtonPosition:p,openPickerAriaLabel:b}=n,f=qe(n,pM),g=kr>=6&&f?.slotProps?.input?Ds(f?.slotProps?.input,a):ep,v=kr>=6&&f?.slotProps?.htmlInput?Ds(f?.slotProps?.htmlInput,c):ep;return{clearable:h,onClear:d,clearButtonPosition:m,openPickerButtonPosition:p,openPickerAriaLabel:b,textFieldProps:K({},f,kr>=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})})}},rl=T.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(rl.displayName="PickerFieldUIContext");function SM(e){const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=An(),s=qf(),i=T.useContext(rl),{textFieldProps:l,onClear:a,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:h="end"}=vM(t),m=Xf(l),p=Ee(L=>{L.preventDefault(),s?.setOpen(E=>!E)}),b=s?s.triggerStatus:"hidden",f=c?d:null,g=b!=="hidden"?h:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?ms:nl),y=i.slots.inputAdornment??jS,S=st({elementType:y,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:K({},m,{position:"start"})}),w=qe(S,hM),x=st({elementType:y,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:K({},m,{position:"end"})}),P=qe(x,mM),O=i.slots.openPickerButton??Tr,I=st({elementType:O,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:b==="disabled",onClick:p,"aria-label":u,edge:l.variant!=="standard"?g:!1},ownerState:m}),$=qe(I,yM),M=i.slots.openPickerIcon??n,k=st({elementType:M,externalSlotProps:i.slotProps.openPickerIcon,ownerState:m}),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:m}),D=qe(N,gM),j=i.slots.clearIcon??ED,F=st({elementType:j,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:m});l.ref=at(l.ref,s?.rootRef);const W={},Y=xn((kr>=6&&l?.slotProps?.input)??l.InputProps,m);s&&(W.ref=s.triggerRef),!Y?.startAdornment&&(f==="start"||g==="start")&&(W.startAdornment=_.jsxs(y,K({},w,{children:[g==="start"&&_.jsx(O,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(O,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=kr>=6&&l?.slotProps?.input?xn(Ds(Y,W),m):K({},Y,W);return l.inputProps=kr>=6&&l?.slotProps?.htmlInput?xn(l.slotProps.htmlInput,m):l.inputProps,delete l?.slotProps?.input,t.enableAccessibleFieldDOMStructure&&delete l?.slotProps,_.jsx(v,K({},l,{InputProps:H}))}function Ds(e,t){return e?t?n=>K({},xn(t,n),xn(e,n)):e:t}function xM(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,s=T.useContext(rl),i=qf(),l=Xf(n),{InputProps:a,inputProps:c}=n,u=qe(n,bM),d=st({elementType:nl,externalSlotProps:Ds(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 wM(e){const{slots:t={},slotProps:n={},inputRef:o,children:s}=e,i=T.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(rl.Provider,{value:i,children:s})}const CM=["slots","slotProps"],ol=T.forwardRef(function(t,n){const o=xt({props:t,name:"MuiDateTimeField"}),{slots:s,slotProps:i}=o,l=qe(o,CM),a=xM({slotProps:i,ref:n,externalForwardedProps:l}),c=yD(a);return _.jsx(wM,{slots:s,slotProps:i,inputRef:l.inputRef,children:_.jsx(SM,{fieldResponse:c,defaultOpenPickerIcon:PD})})});process.env.NODE_ENV!=="production"&&(ol.displayName="DateTimeField"),process.env.NODE_ENV!=="production"&&(ol.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 PM(e){return Me("MuiTab",e)}const En=De("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),OM=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,PM,t)},TM=ie(Kn,{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)}}]}))),tp=T.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:h,onChange:m,onClick:p,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:!!h,fullWidth:a,textColor:v,wrapped:S},P=OM(x),O=c&&h&&T.isValidElement(c)?T.cloneElement(c,{className:Ce(P.icon,c.props.className)}):c,I=M=>{!f&&m&&m(M,y),p&&p(M)},$=M=>{g&&!f&&m&&m(M,y),b&&b(M)};return _.jsxs(TM,{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(T.Fragment,{children:[O,h]}):_.jsxs(T.Fragment,{children:[h,O]}),d]})});process.env.NODE_ENV!=="production"&&(tp.propTypes={children:Tv,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 EM(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function kM(e,t,n,o={},s=()=>{}){const{ease:i=EM,duration:l=300}=o;let a=null;const c=t[e];let u=!1;const d=()=>{u=!0},h=m=>{if(u){s(new Error("Animation cancelled"));return}a===null&&(a=m);const p=Math.min(1,(m-a)/l);if(t[e]=i(p)*(n-c)+c,p>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(h)};return c===n?(s(new Error("Element already at target position")),d):(requestAnimationFrame(h),d)}const _M={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function US(e){const{onChange:t,...n}=e,o=T.useRef(),s=T.useRef(null),i=()=>{o.current=s.current.offsetHeight-s.current.clientHeight};return Mt(()=>{const l=pa(()=>{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]),T.useEffect(()=>{i(),t(o.current)},[t]),_.jsx("div",{style:_M,...n,ref:s})}process.env.NODE_ENV!=="production"&&(US.propTypes={onChange:r.func.isRequired});const RM=Pt(_.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),IM=Pt(_.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function $M(e){return Me("MuiTabScrollButton",e)}const DM=De("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),MM=e=>{const{classes:t,orientation:n,disabled:o}=e;return $e({root:["root",n,o&&"disabled"]},$M,t)},NM=ie(Kn,{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,[`&.${DM.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),WS=T.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,h=on(),m={isRtl:h,...o},p=MM(m),b=i.StartScrollButtonIcon??RM,f=i.EndScrollButtonIcon??IM,g=st({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),v=st({elementType:f,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return _.jsx(NM,{component:"div",className:Ce(p.root,s),ref:n,role:null,ownerState:m,tabIndex:null,...d,style:{...d.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${h?-90:90}deg)`}},children:a==="left"?_.jsx(b,{...g}):_.jsx(f,{...v})})});process.env.NODE_ENV!=="production"&&(WS.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 jM(e){return Me("MuiTabs",e)}const sl=De("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),HS=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,YS=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,il=(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}}},AM=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"]},jM,c)},FM=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sl.scrollButtons}`]:t.scrollButtons},{[`& .${sl.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:{[`& .${sl.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),VM=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"}}]}),LM=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"}}]}),BM=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}}]}))),qM=ie(US)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),KS={};let GS=!1;const XS=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiTabs"}),s=Vr(),i=on(),{"aria-label":l,"aria-labelledby":a,action:c,centered:u=!1,children:d,className:h,component:m="div",allowScrollButtonsMobile:p=!1,indicatorColor:b="primary",onChange:f,orientation:g="horizontal",ScrollButtonComponent:v,scrollButtons:y="auto",selectionFollowsFocus:S,slots:w={},slotProps:x={},TabIndicatorProps:P={},TabScrollButtonProps:O={},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:m,allowScrollButtonsMobile:p,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:!p},E=AM(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]=T.useState(!1),[U,X]=T.useState(KS),[se,te]=T.useState(!1),[J,B]=T.useState(!1),[V,Q]=T.useState(!1),[G,ne]=T.useState({overflow:"hidden",scrollbarWidth:0}),ae=new Map,re=T.useRef(null),ce=T.useRef(null),be={slots:w,slotProps:{indicator:P,scrollButtons:O,...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"&&os()&&!GS&&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
|
+
`)),GS=!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?kM(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},We=()=>{ke(-1*je())},Ve=()=>{ke(je())},[Ze,{onChange:Qe,...Ae}]=ot("scrollbar",{className:Ce(E.scrollableX,E.hideScrollbar),elementType:qM,shouldForwardComponentProp:!0,externalForwardedProps:be,ownerState:L}),Ne=T.useCallback(Se=>{Qe?.(Se),ne({overflow:null,scrollbarWidth:Se})},[Qe]),[Oe,Le]=ot("scrollButtons",{className:Ce(E.scrollButtons,O.className),elementType:WS,externalForwardedProps:be,ownerState:L,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:q,endScrollButtonIcon:z}}}),Ke=()=>{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(Oe,{direction:i?"right":"left",onClick:We,disabled:!se,...Le}):null,Se.scrollButtonEnd=pe?_.jsx(Oe,{direction:i?"left":"right",onClick:Ve,disabled:!J,...Le}):null,Se},Ge=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)});T.useEffect(()=>{const Se=pa(()=>{re.current&&fe()});let Pe;const pe=xe=>{xe.forEach(Re=>{Re.removedNodes.forEach(Ye=>{Pe?.unobserve(Ye)}),Re.addedNodes.forEach(Ye=>{Pe?.observe(Ye)})}),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]),T.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 Ye=Et=>{B(!Et[0].isIntersecting)},Rt=new IntersectionObserver(Ye,ue);return Rt.observe(ee),()=>{Re.disconnect(),Rt.disconnect()}}},[N,y,V,d?.length]),T.useEffect(()=>{A(!0)},[]),T.useEffect(()=>{fe()}),T.useEffect(()=>{Ge(KS!==U)},[Ge,U]),T.useImperativeHandle(c,()=>({updateIndicator:fe,updateScrollButtons:lt}),[fe,lt]);const[pt,Be]=ot("indicator",{className:Ce(E.indicator,P.className),elementType:BM,externalForwardedProps:be,ownerState:L,additionalProps:{style:U}}),Te=_.jsx(pt,{...Be});let Fe=0;const tt=T.Children.map(d,Se=>{if(!T.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,T.cloneElement(Se,{fullWidth:M==="fullWidth",indicator:pe&&!R&&Te,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(),il(Pe,pe,YS);break;case xe:Se.preventDefault(),il(Pe,pe,HS);break;case"Home":Se.preventDefault(),il(Pe,null,HS);break;case"End":Se.preventDefault(),il(Pe,null,YS);break}},gt=Ke(),[mn,de]=ot("root",{ref:n,className:Ce(E.root,h),elementType:FM,externalForwardedProps:{...be,...C,component:m},ownerState:L}),[Z,he]=ot("scroller",{ref:re,className:E.scroller,elementType:VM,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:LM,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&&Te]}),gt.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(XS.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 zM(e){return Me("MuiDateTimePickerTabs",e)}De("MuiDateTimePickerTabs",["root"]);const UM=e=>xo(e)?"date":"time",WM=e=>e==="date"?"day":"hours",HM=e=>$e({root:["root"]},zM,e),YM=ie(XS,{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}`,[`& .${sl.indicator}`]:{bottom:"auto",top:0}}})),np=function(t){const n=xt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:o=_.jsx(OD,{}),timeIcon:s=_.jsx(TD,{}),hidden:i=typeof window>"u"||window.innerHeight<667,className:l,classes:a,sx:c}=n,u=An(),{ownerState:d}=Ft(),{view:h,setView:m}=Er(),p=HM(a),b=(f,g)=>{m(WM(g))};return i?null:_.jsxs(YM,{ownerState:d,variant:"fullWidth",value:UM(h),onChange:b,className:Ce(l,p.root),sx:c,children:[_.jsx(tp,{value:"date","aria-label":u.dateTableLabel,icon:_.jsx(T.Fragment,{children:o})}),_.jsx(tp,{value:"time","aria-label":u.timeTableLabel,icon:_.jsx(T.Fragment,{children:s})})]})};process.env.NODE_ENV!=="production"&&(np.displayName="DateTimePickerTabs"),process.env.NODE_ENV!=="production"&&(np.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 KM(e){return Me("MuiPickersToolbarText",e)}const GM=De("MuiPickersToolbarText",["root"]),XM=["className","classes","selected","value"],QM=e=>$e({root:["root"]},KM,e),JM=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}})),rp=T.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersToolbarText"}),{className:s,classes:i,selected:l,value:a}=o,c=qe(o,XM),u=QM(i);return _.jsx(JM,K({ref:n,className:Ce(u.root,s),component:"span",ownerState:o},l&&{"data-selected":!0},c,{children:a}))});process.env.NODE_ENV!=="production"&&(rp.displayName="PickersToolbarText");function QS(e){return Me("MuiPickersToolbar",e)}const ZM=De("MuiPickersToolbar",["root","title","content"]);function JS(){const{ownerState:e}=Ft(),t=on();return T.useMemo(()=>K({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const eN=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],tN=e=>$e({root:["root"],title:["title"],content:["content"]},QS,e),nN=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"}}]})),rN=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"}}]}),ZS=T.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,h=qe(o,eN),m=JS(),p=tN(l);return c?null:_.jsxs(nN,K({ref:n,className:Ce(p.root,i),ownerState:m},h,{children:[_.jsx(Nn,{color:"text.secondary",variant:"overline",id:u,className:p.title,children:a}),_.jsx(rN,{className:p.content,ownerState:m,landscapeDirection:d,children:s})]}))});process.env.NODE_ENV!=="production"&&(ZS.displayName="PickersToolbar");function oN(e){return Me("MuiButton",e)}const Gr=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"]),ex=T.createContext({});process.env.NODE_ENV!=="production"&&(ex.displayName="ButtonGroupContext");const tx=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(tx.displayName="ButtonGroupButtonContext");const sN=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,oN,c);return{...c,...d}},nx=[{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}}}],iN=ie(Kn,{shouldForwardProp:e=>Yt(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"},[`&.${Gr.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]},[`&.${Gr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Gr.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)",[`&.${Gr.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"},[`&.${Gr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Gr.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}),[`&.${Gr.loading}`]:{color:"transparent"}}}]}})),aN=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}},...nx]})),lN=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}},...nx]})),cN=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}}]})),rx=ie("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Vn=T.forwardRef(function(t,n){const o=T.useContext(ex),s=T.useContext(tx),i=Ho(o,t),l=Je({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:u="button",className:d,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:p=!1,endIcon:b,focusVisibleClassName:f,fullWidth:g=!1,id:v,loading:y=null,loadingIndicator:S,loadingPosition:w="center",size:x="medium",startIcon:P,type:O,variant:I="text",...$}=l,M=zn(v),k=S??_.jsx(Pf,{"aria-labelledby":M,color:"inherit",size:16}),C={...l,color:c,component:u,disabled:h,disableElevation:m,disableFocusRipple:p,fullWidth:g,loading:y,loadingIndicator:k,loadingPosition:w,size:x,type:O,variant:I},N=sN(C),D=(P||y&&w==="start")&&_.jsx(aN,{className:N.startIcon,ownerState:C,children:P||_.jsx(rx,{className:N.loadingIconPlaceholder,ownerState:C})}),j=(b||y&&w==="end")&&_.jsx(lN,{className:N.endIcon,ownerState:C,children:b||_.jsx(rx,{className:N.loadingIconPlaceholder,ownerState:C})}),F=s||"",W=typeof y=="boolean"?_.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:y&&_.jsx(cN,{className:N.loadingIndicator,ownerState:C,children:k})}):null;return _.jsxs(iN,{ownerState:C,className:Ce(o.className,N.root,d,F),component:u,disabled:h||y,focusRipple:!p,focusVisibleClassName:Ce(N.focusVisible,f),ref:n,type:O,id:y?M:v,...$,classes:N,children:[D,w!=="end"&&W,a,w==="end"&&W,j]})});process.env.NODE_ENV!=="production"&&(Vn.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 uN=["align","className","classes","selected","typographyClassName","value","variant","width"],dN=e=>$e({root:["root"]},QS,e),fN=ie(Vn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),ur=T.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:h}=o,m=qe(o,uN),p=dN(l);return _.jsx(fN,K({variant:"text",ref:n,className:Ce(p.root,i),ownerState:o},h?{sx:{width:h}}:{},m,{children:_.jsx(rp,{align:s,className:c,variant:d,value:u,selected:a})}))});process.env.NODE_ENV!=="production"&&(ur.displayName="PickersToolbarButton");function pN(e){return Me("MuiDateTimePickerToolbar",e)}const op=De("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]);function hN(e,{disableFuture:t,maxDate:n,timezone:o}){const s=ft();return T.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 mN(e,{disablePast:t,minDate:n,timezone:o}){const s=ft();return T.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 ox(e,t,n,o){const s=ft(),i=T.useMemo(()=>s.isValid(e)?e:null,[s,e]),l=x$(i,s),a=T.useCallback(c=>{const u=i==null?null:w$(i,c,!!t,s);n(u,o??"partial")},[t,i,n,o,s]);return{meridiemMode:l,handleMeridiemChange:a}}const Ms=36,al=2,ko=320,yN=280,_o=336,sx=232,Ns=48,gN=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],bN=(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"]},pN,e)},vN=ie(ZS,{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}`,[`& .${ZM.content} .${GM.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}}]})),SN=ie("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),xN=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"}}]}),wN=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}}]}),ix=ie(rp,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>nn(e)&&e!=="toolbarVariant"})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),CN=ie("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${op.ampmLabel}`]:t.ampmLabel},{[`&.${op.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${op.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),ax=T.createContext(null);process.env.NODE_ENV!=="production"&&(ax.displayName="DateTimePickerToolbarOverrideContext");function lx(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,gN),{value:d,setValue:h,disabled:m,readOnly:p,variant:b,orientation:f,view:g,setView:v,views:y}=Er(),S=An(),w=JS(),x=bN(c,w),P=ft(),O=T.useContext(ax),I=O?O.value:d,$=O?O.setValue:h,M=O?O.view:g,k=O?O.setView:v,{meridiemMode:C,handleMeridiemChange:N}=ox(I,n,L=>$(L,{changeImportance:"set",source:"view"})),D=O?.forceDesktopVariant?"desktop":b,j=D==="desktop",F=!!(n&&!o),W=l??S.dateTimePickerToolbarTitle,Y=T.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(vN,K({className:Ce(x.root,a),toolbarTitle:W,toolbarVariant:D},u,{ownerState:w,children:[_.jsxs(SN,{className:x.dateContainer,ownerState:w,children:[y.includes("year")&&_.jsx(ur,{tabIndex:-1,variant:"subtitle1",onClick:()=>k("year"),selected:M==="year",value:H("year","–")}),y.includes("day")&&_.jsx(ur,{tabIndex:-1,variant:j?"h5":"h4",onClick:()=>k("day"),selected:M==="day",value:Y})]}),_.jsxs(xN,{className:x.timeContainer,ownerState:w,toolbarVariant:D,children:[_.jsxs(wN,{className:x.timeDigitsContainer,ownerState:w,toolbarVariant:D,children:[y.includes("hours")&&_.jsxs(T.Fragment,{children:[_.jsx(ur,{variant:j?"h5":"h3",width:j&&f==="portrait"?Ns:void 0,onClick:()=>k("hours"),selected:M==="hours",value:H(n?"hours12h":"hours24h","--")}),_.jsx(ix,{variant:j?"h5":"h3",value:":",className:x.separator,ownerState:w,toolbarVariant:D}),_.jsx(ur,{variant:j?"h5":"h3",width:j&&f==="portrait"?Ns:void 0,onClick:()=>k("minutes"),selected:M==="minutes"||!y.includes("minutes")&&M==="hours",value:H("minutes","--"),disabled:!y.includes("minutes")})]}),y.includes("seconds")&&_.jsxs(T.Fragment,{children:[_.jsx(ix,{variant:j?"h5":"h3",value:":",className:x.separator,ownerState:w,toolbarVariant:D}),_.jsx(ur,{variant:j?"h5":"h3",width:j&&f==="portrait"?Ns:void 0,onClick:()=>k("seconds"),selected:M==="seconds",value:H("seconds","--")})]})]}),F&&!j&&_.jsxs(CN,{className:x.ampmSelection,ownerState:w,children:[_.jsx(ur,{variant:"subtitle2",selected:C==="am",typographyClassName:x.ampmLabel,value:ks(P,"am"),onClick:p?void 0:()=>N("am"),disabled:m}),_.jsx(ur,{variant:"subtitle2",selected:C==="pm",typographyClassName:x.ampmLabel,value:ks(P,"pm"),onClick:p?void 0:()=>N("pm"),disabled:m})]}),n&&j&&_.jsx(ur,{variant:"h5",onClick:()=>k("meridiem"),selected:M==="meridiem",value:I&&C?ks(P,C):"--",width:Ns})]})]}))}process.env.NODE_ENV!=="production"&&(lx.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 PN=["views","format"],cx=(e,t,n)=>{let{views:o,format:s}=t,i=qe(t,PN);if(s)return s;const l=[],a=[];if(o.forEach(d=>{_s(d)?a.push(d):xo(d)&&l.push(d)}),a.length===0)return tS(e,K({views:l},i));if(l.length===0)return oS(e,K({views:a},i));const c=oS(e,K({views:a},i));return`${tS(e,K({views:l},i))} ${c}`},ON=(e,t,n)=>n?t.filter(o=>!wo(o)||o==="hours"):e?[...t,"meridiem"]:t,TN=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function EN({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const s=e??24,i=K({hours:1,minutes:5,seconds:5},n),l=TN(i,s);return{thresholdToRenderTimeInASingleColumn:s,timeSteps:i,shouldRenderTimeInASingleColumn:l,views:ON(t,o,l)}}function ux(e,t){const n=ft(),o=xt({props:e,name:t}),s=DS(o),i=o.ampm??n.is12HourCycleInCurrentLocale(),l=T.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:K({},o.localeText,{dateTimePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]),{openTo:a,views:c}=y$({views:o.views,openTo:o.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:h,timeSteps:m}=EN({thresholdToRenderTimeInASingleColumn:o.thresholdToRenderTimeInASingleColumn,ampm:i,timeSteps:o.timeSteps,views:c}),p=i?[...c,"meridiem"]:c;return K({},o,s,{timeSteps:m,openTo:a,shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:h,viewsForFormatting:p,ampm:i,localeText:l,orientation:o.orientation??"portrait",slots:K({toolbar:lx,tabs:np},o.slots),slotProps:K({},o.slotProps,{toolbar:K({ampm:i},o.slotProps?.toolbar)})})}const dx=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:s,disableFuture:i,disablePast:l,timezone:a})=>{const c=ft();return T.useCallback(u=>Yf({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])},kN=(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")}},_N=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:s,maxDate:i,minDate:l,onMonthChange:a,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:h,getCurrentMonthFromVisibleDate:m}=e,p=ft(),b=T.useRef(kN(!!u,p)).current,f=T.useMemo(()=>en.getInitialReferenceValue({value:t,adapter:p,timezone:h,props:e,referenceDate:n,granularity:jn.day}),[n,h]),[g,v]=T.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:f,currentMonth:p.setDate(f,1),slideDirection:"left"}),y=dx({shouldDisableDate:d,minDate:l,maxDate:i,disableFuture:o,disablePast:s,timezone:h});T.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:p.getTimezone(f)})},[f,p]);const S=Ee(({target:x,reason:P})=>{if(P==="cell-interaction"&&g.focusedDay!=null&&p.isSameDay(x,g.focusedDay))return;const O=P==="cell-interaction";let I,$;if(P==="cell-interaction")I=m(x,g.currentMonth),$=x;else if(I=p.isSameMonth(x,g.currentMonth)?g.currentMonth:p.startOfMonth(x),$=x,y($)){const C=p.startOfMonth(x),N=p.endOfMonth(x);$=Es({adapter:p,date:$,minDate:p.isBefore(l,C)?C:l,maxDate:p.isAfter(i,N)?N:i,disablePast:s,disableFuture:o,isDateDisabled:y,timezone:h})}const M=!p.isSameMonth(g.currentMonth,I),k=!p.isSameYear(g.currentMonth,I);M&&a?.(I),k&&c?.(p.startOfYear(I)),v({type:"setVisibleDate",month:I,direction:p.isAfterDay(I,g.currentMonth)?"left":"right",focusedDay:g.focusedDay!=null&&$!=null&&p.isSameDay($,g.focusedDay)?g.focusedDay:$,skipAnimation:O})}),w=T.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:f,calendarState:g,setVisibleDate:S,isDateDisabled:y,onMonthSwitchingAnimationEnd:w}},RN=e=>Me("MuiPickersFadeTransitionGroup",e);De("MuiPickersFadeTransitionGroup",["root"]);const IN=["children"],$N=e=>$e({root:["root"]},RN,e),DN=ie(as,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function fx(e){const t=xt({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:s,classes:i}=t,{children:l}=t,a=qe(t,IN),c=$N(i),u=Vr();return o?l:_.jsx(DN,{className:Ce(c.root,n),ownerState:a,children:_.jsx(Cr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:l},s)})}function MN(e){return Me("MuiPickersDay",e)}const Xr=De("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function px(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 T.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 NN=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],jN=(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"]},MN,e)},hx=({theme:e})=>K({},e.typography.caption,{width:Ms,height:Ms,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),[`&.${Xr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Xr.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}},[`&.${Xr.disabled}:not(.${Xr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Xr.disabled}&.${Xr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${al}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${Xr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),mx=(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]},AN=ie(Kn,{name:"MuiPickersDay",slot:"Root",overridesResolver:mx})(hx),FN=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:mx})(({theme:e})=>K({},hx({theme:e}),{opacity:0,pointerEvents:"none"})),js=()=>{},sp=T.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=js,onBlur:h=js,onKeyDown:m=js,onMouseDown:p=js,onMouseEnter:b=js,children:f,day:g,selected:v,disabled:y,today:S,outsideCurrentMonth:w,disableMargin:x,disableHighlightToday:P,showDaysOutsideCurrentMonth:O}=o,I=qe(o,NN),$=px({day:g,selected:v,disabled:y,today:S,outsideCurrentMonth:w,disableMargin:x,disableHighlightToday:P,showDaysOutsideCurrentMonth:O}),M=jN(l,$),k=ft(),C=T.useRef(null),N=at(C,n);Mt(()=>{s&&!y&&!a&&!w&&C.current.focus()},[s,y,a,w]);const D=F=>{p(F),w&&F.preventDefault()},j=F=>{F.defaultMuiPrevented=!0,y||u(g),w&&F.currentTarget.focus(),c&&c(F)};return w&&!O?_.jsx(FN,{className:Ce(M.root,M.hiddenDaySpacingFiller,i),ownerState:$,role:I.role}):_.jsx(AN,K({className:Ce(M.root,i),ref:N,centerRipple:!0,disabled:y,tabIndex:v?0:-1,onKeyDown:F=>m(F,g),onFocus:F=>d(F,g),onBlur:F=>h(F,g),onMouseEnter:F=>b(F,g),onClick:j,onMouseDown:D},I,{ownerState:$,children:f??k.format(g,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(sp.displayName="PickersDayRaw"),process.env.NODE_ENV!=="production"&&(sp.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 yx=T.memo(sp);process.env.NODE_ENV!=="production"&&(yx.displayName="PickersDay");const VN=e=>Me("MuiPickersSlideTransition",e),kn=De("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),LN=["children","className","reduceAnimations","slideDirection","transKey","classes"],BN=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return $e(o,VN,e)},qN=ie(as,{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 zN(e){const t=xt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:s,slideDirection:i,transKey:l,classes:a}=t,c=qe(t,LN),{ownerState:u}=Ft(),d=K({},u,{slideDirection:i}),h=BN(a,d),m=Vr();if(s)return _.jsx("div",{className:Ce(h.root,o),children:n});const p={exit:h.exit,enterActive:h.enterActive,enter:h.enter,exitActive:h.exitActive};return _.jsx(qN,{className:Ce(h.root,o),childFactory:b=>T.cloneElement(b,{classNames:p}),role:"presentation",ownerState:d,children:_.jsx(nf,K({mountOnEnter:!0,unmountOnExit:!0,timeout:m.transitions.duration.complex,classNames:p},c,{children:n}),l)})}const UN=e=>Me("MuiDayCalendar",e);De("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const WN=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],HN=["ownerState"],YN=e=>$e({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},UN,e),gx=(Ms+al*2)*6,KN=ie("div",{name:"MuiDayCalendar",slot:"Root"})({}),GN=ie("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),XN=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})),QN=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})),JN=ie(Nn,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>K({},e.typography.caption,{width:Ms,height:Ms,padding:0,margin:`0 ${al}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ZN=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:gx}),ej=ie(zN,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:gx}),tj=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),nj=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${al}px 0`,display:"flex",justifyContent:"center"});function rj(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:s,isDateDisabled:i,currentMonthNumber:l,isViewFocused:a}=e,c=qe(e,WN);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:h,showDaysOutsideCurrentMonth:m,slots:p,slotProps:b,timezone:f}=t,g=ft(),v=Oo(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=T.useMemo(()=>u||i(n),[u,i,n]),O=T.useMemo(()=>g.getMonth(n)!==l,[g,n,l]),I=px({day:n,selected:w,disabled:P,today:x,outsideCurrentMonth:O,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:m}),$=p?.day??yx,M=st({elementType:$,externalSlotProps:b?.day,additionalProps:K({disableHighlightToday:d,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:h,"data-timestamp":g.toJsDate(n).valueOf()},c),ownerState:K({},I,{day:n,isDayDisabled:P,isDaySelected:w})}),k=qe(M,HN),C=T.useMemo(()=>{const D=g.startOfMonth(g.setMonth(n,l));return m?g.isSameDay(n,g.startOfWeek(D)):g.isSameDay(n,D)},[l,n,m,g]),N=T.useMemo(()=>{const D=g.endOfMonth(g.setMonth(n,l));return m?g.isSameDay(n,g.endOfWeek(D)):g.isSameDay(n,D)},[l,n,m,g]);return _.jsx($,K({},k,{day:n,disabled:P,autoFocus:!O&&S,today:x,outsideCurrentMonth:O,isFirstVisibleCell:C,isLastVisibleCell:N,selected:w,tabIndex:y?0:-1,"aria-selected":w,"aria-current":x?"date":void 0}))}function oj(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:h,readOnly:m,reduceAnimations:p,renderLoading:b=()=>_.jsx("span",{children:"..."}),slideDirection:f,TransitionProps:g,disablePast:v,disableFuture:y,minDate:S,maxDate:w,shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:O,dayOfWeekFormatter:I=B=>n.format(B,"weekdayShort").charAt(0).toUpperCase(),hasFocus:$,onFocusedViewChange:M,gridLabelId:k,displayWeekNumber:C,fixedWeekNumber:N,timezone:D}=t,j=Oo(D),F=YN(i),W=on(),Y=dx({shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:O,minDate:S,maxDate:w,disablePast:v,disableFuture:y,timezone:D}),H=An(),L=Ee(B=>{m||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=Es({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=Es({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=T.useMemo(()=>a.filter(B=>!!B).map(B=>n.startOfDay(B)),[n,a]),se=`${U}-${A}`,te=T.useMemo(()=>T.createRef(),[se]),J=T.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(KN,{role:"grid","aria-labelledby":k,className:F.root,children:[_.jsxs(GN,{role:"row",className:F.header,children:[C&&_.jsx(QN,{variant:"caption",role:"columnheader","aria-label":H.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:H.calendarWeekNumberHeaderText}),v$(n,j).map((B,V)=>_.jsx(XN,{variant:"caption",role:"columnheader","aria-label":n.format(B,"weekday"),className:F.weekDayLabel,children:I(B)},V.toString()))]}),u?_.jsx(ZN,{className:F.loadingContainer,children:b()}):_.jsx(ej,K({transKey:se,onExited:h,reduceAnimations:p,slideDirection:f,className:Ce(s,F.slideTransition)},g,{nodeRef:te,children:_.jsx(tj,{ref:te,role:"rowgroup",className:F.monthContainer,children:J.map((B,V)=>_.jsxs(nj,{role:"row",className:F.weekContainer,"aria-rowindex":V+1,children:[C&&_.jsx(JN,{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(rj,{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 bx(e){return Me("MuiMonthCalendar",e)}const ll=De("MuiMonthCalendar",["root","button","disabled","selected"]),sj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],ij=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return $e(n,bx,e)},aj=ie("button",{name:"MuiMonthCalendar",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.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"},[`&.${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}}})),vx=T.memo(function(t){const{autoFocus:n,classes:o,disabled:s,selected:i,value:l,onClick:a,onKeyDown:c,onFocus:u,onBlur:d,slots:h,slotProps:m}=t,p=qe(t,sj),b=T.useRef(null),{ownerState:f}=Ft(),g=K({},f,{isMonthDisabled:s,isMonthSelected:i}),v=ij(o,g);Mt(()=>{n&&b.current?.focus()},[n]);const y=h?.monthButton??aj,S=st({elementType:y,externalSlotProps:m?.monthButton,externalForwardedProps:p,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"&&(vx.displayName="MonthCalendarButton");const lj=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],cj=e=>$e({root:["root"]},bx,e);function uj(e,t){const n=xt({props:e,name:t}),o=Gf(n);return K({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Sx=(e,t,n,o,s)=>!!(e===t&&o&&s.isSameYear(n,o)),dj=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}}]}),ip=T.forwardRef(function(t,n){const o=uj(t,"MuiMonthCalendar"),{autoFocus:s,className:i,currentMonth:l,classes:a,value:c,defaultValue:u,referenceDate:d,disabled:h,disableFuture:m,disablePast:p,maxDate:b,minDate:f,onChange:g,shouldDisableMonth:v,readOnly:y,onMonthFocus:S,hasFocus:w,onFocusedViewChange:x,monthsPerRow:P,timezone:O,gridLabelId:I,slots:$,slotProps:M}=o,k=qe(o,lj),{value:C,handleValueChange:N,timezone:D}=Yr({name:"MonthCalendar",timezone:O,value:c,defaultValue:u,referenceDate:d,onChange:g,valueManager:en}),j=Oo(D),F=on(),W=ft(),{ownerState:Y}=Ft(),H=T.useMemo(()=>en.getInitialReferenceValue({value:C,adapter:W,props:o,timezone:D,referenceDate:d,granularity:jn.month}),[]),L=cj(a),E=T.useMemo(()=>W.getMonth(j),[W,j]),q=T.useMemo(()=>C!=null?W.getMonth(C):null,[C,W]),[z,R]=T.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=T.useCallback(G=>{const ne=W.startOfMonth(p&&W.isAfter(j,f)?j:f),ae=W.startOfMonth(m&&W.isBefore(j,b)?j:b),re=W.startOfMonth(G);return W.isBefore(re,ne)||W.isAfter(re,ae)?!0:v?v(re):!1},[m,p,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))});T.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(dj,K({ref:n,className:Ce(L.root,i),ownerState:Y,role:"radiogroup","aria-labelledby":I,monthsPerRow:P},k,{children:If(W,l??C??H).map(G=>{const ne=W.getMonth(G),ae=W.format(G,"monthShort"),re=W.format(G,"month"),ce=Sx(ne,q,G,C,W),be=h||se(G);return _.jsx(vx,{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":Sx(ne,E,G,j,W)?"date":void 0,"aria-label":re,slots:$,slotProps:M,classes:a,children:ae},ae)})}))});process.env.NODE_ENV!=="production"&&(ip.displayName="MonthCalendar"),process.env.NODE_ENV!=="production"&&(ip.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 xx(e){return Me("MuiYearCalendar",e)}const cl=De("MuiYearCalendar",["root","button","disabled","selected"]),fj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],pj=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return $e(n,xx,e)},hj=ie("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${cl.disabled}`]:t.disabled},{[`&.${cl.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"},[`&.${cl.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${cl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wx=T.memo(function(t){const{autoFocus:n,classes:o,disabled:s,selected:i,value:l,onClick:a,onKeyDown:c,onFocus:u,onBlur:d,slots:h,slotProps:m}=t,p=qe(t,fj),b=T.useRef(null),{ownerState:f}=Ft(),g=K({},f,{isYearDisabled:s,isYearSelected:i}),v=pj(o,g);Mt(()=>{n&&b.current?.focus()},[n]);const y=h?.yearButton??hj,S=st({elementType:y,externalSlotProps:m?.yearButton,externalForwardedProps:p,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"&&(wx.displayName="YearCalendarButton");const mj=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],yj=e=>$e({root:["root"]},xx,e);function gj(e,t){const n=xt({props:e,name:t}),o=Gf(n);return K({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const bj=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:yN,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),vj=ie("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ap=T.forwardRef(function(t,n){const o=gj(t,"MuiYearCalendar"),{autoFocus:s,className:i,classes:l,value:a,defaultValue:c,referenceDate:u,disabled:d,disableFuture:h,disablePast:m,maxDate:p,minDate:b,onChange:f,readOnly:g,shouldDisableYear:v,onYearFocus:y,hasFocus:S,onFocusedViewChange:w,yearsOrder:x,yearsPerRow:P,timezone:O,gridLabelId:I,slots:$,slotProps:M}=o,k=qe(o,mj),{value:C,handleValueChange:N,timezone:D}=Yr({name:"YearCalendar",timezone:O,value:a,defaultValue:c,referenceDate:u,onChange:f,valueManager:en}),j=Oo(D),F=on(),W=ft(),{ownerState:Y}=Ft(),H=T.useMemo(()=>en.getInitialReferenceValue({value:C,adapter:W,props:o,timezone:D,referenceDate:u,granularity:jn.year}),[]),L=yj(l),E=T.useMemo(()=>W.getYear(j),[W,j]),q=T.useMemo(()=>C!=null?W.getYear(C):null,[C,W]),[z,R]=T.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=T.useCallback(oe=>{if(m&&W.isBeforeYear(oe,j)||h&&W.isAfterYear(oe,j)||b&&W.isBeforeYear(oe,b)||p&&W.isAfterYear(oe,p))return!0;if(!v)return!1;const fe=W.startOfYear(oe);return v(fe)},[h,m,p,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))});T.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=T.useRef(null),re=at(n,ae);T.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,We=ve+fe;fe>ke||ve<je||(ae.current.scrollTop=We-ke/2-fe/2)},[s]);const ce=W.getYearRange([b,p]);x==="desc"&&ce.reverse();let be=P-ce.length%P;return be===P&&(be=0),_.jsxs(bj,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(wx,{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(vj,{},fe))]}))});process.env.NODE_ENV!=="production"&&(ap.displayName="YearCalendar"),process.env.NODE_ENV!=="production"&&(ap.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 Cx={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function Sj(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return s=>{if(t==null)return Cx;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(h=>n(a,h)),d=t.find(h=>n(c,h));return u===d}}}}let lp=!1;function ul({onChange:e,onViewChange:t,openTo:n,view:o,views:s,autoFocus:i,focusedView:l,onFocusedViewChange:a,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(lp||(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('", "')}"]\`.`),lp=!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('", "')}"]\`.`),lp=!0)));const u=T.useRef(n),d=T.useRef(s),h=T.useRef(s.includes(n)?n:s[0]),[m,p]=pn({name:"useViews",state:"view",controlled:o,default:h.current}),b=T.useRef(i?m:null),[f,g]=pn({name:"useViews",state:"focusedView",controlled:l,default:b.current}),v=c?c({setView:p,view:m,defaultView:h.current,views:s}):Cx;T.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some($=>!s.includes($)))&&(p(s.includes(n)?n:s[0]),d.current=s,u.current=n)},[n,p,m,s]);const y=s.indexOf(m),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),$!==m&&(p($),t&&t($))}),O=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!==m?j=k:C&&(j=m),j==null)return;const F=s[s.indexOf(j)+1];F==null||!v.areViewsInSameStep(j,F)||P(F)});return K({},v,{view:m,setView:P,focusedView:f,setFocusedView:x,nextView:w,previousView:S,defaultView:s.includes(n)?n:s[0],goToNextView:O,setValueAndGoToNextView:I})}const xj=e=>Me("MuiPickersCalendarHeader",e),wj=De("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Cj(e){return Me("MuiPickersArrowSwitcher",e)}De("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Pj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Oj=["ownerState"],Tj=["ownerState"],Ej=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),kj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Px=ie(Tr,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),_j=e=>$e({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Cj,e),Ox=T.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:h,nextLabel:m,isPreviousDisabled:p,isPreviousHidden:b,onGoToPrevious:f,previousLabel:g,labelId:v,classes:y}=s,S=qe(s,Pj),{ownerState:w}=Ft(),x=_j(y),P={isDisabled:u,isHidden:d,goTo:h,label:m},O={isDisabled:p,isHidden:b,goTo:f,label:g},I=a?.previousIconButton??Px,$=st({elementType:I,externalSlotProps:c?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:K({},w,{isButtonHidden:O.isHidden??!1}),className:Ce(x.button,x.previousIconButton)}),M=a?.nextIconButton??Px,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??wD,N=st({elementType:C,externalSlotProps:c?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:x.leftArrowIcon}),D=qe(N,Oj),j=a?.rightArrowIcon??CD,F=st({elementType:j,externalSlotProps:c?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:x.rightArrowIcon}),W=qe(F,Tj);return _.jsxs(Ej,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(kj,{className:x.spacer,ownerState:w}),_.jsx(M,K({},k,{children:o?_.jsx(C,K({},D)):_.jsx(j,K({},W))}))]}))});process.env.NODE_ENV!=="production"&&(Ox.displayName="PickersArrowSwitcher");const Rj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Ij=["ownerState"],$j=e=>$e({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},xj,e),Dj=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Mj=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})),Nj=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),jj=ie(Tr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${wj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Aj=ie(xD,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),cp=T.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:h,maxDate:m,minDate:p,onMonthChange:b,onViewChange:f,view:g,reduceAnimations:v,views:y,labelId:S,className:w,classes:x,timezone:P,format:O=`${s.formats.month} ${s.formats.year}`}=i,I=qe(i,Rj),{ownerState:$}=Ft(),M=$j(x),k=l?.switchViewButton??jj,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??Aj,D=st({elementType:N,externalSlotProps:a?.switchViewIcon,ownerState:$,className:M.switchViewIcon}),j=qe(D,Ij),F=()=>b(s.addMonths(c,1)),W=()=>b(s.addMonths(c,-1)),Y=hN(c,{disableFuture:d,maxDate:m,timezone:P}),H=mN(c,{disablePast:h,minDate:p,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,O);return _.jsxs(Dj,K({},I,{ownerState:$,className:Ce(M.root,w),ref:n,children:[_.jsxs(Mj,{role:"presentation",onClick:L,ownerState:$,"aria-live":"polite",className:M.labelContainer,children:[_.jsx(fx,{reduceAnimations:v,transKey:E,children:_.jsx(Nj,{id:S,ownerState:$,className:M.label,children:E})}),y.length>1&&!u&&_.jsx(k,K({},C,{children:_.jsx(N,K({},j))}))]}),_.jsx(Cr,{in:g==="day",appear:!v,enter:!v,children:_.jsx(Ox,{slots:l,slotProps:a,onGoToPrevious:W,isPreviousDisabled:H,previousLabel:o.previousMonth,onGoToNext:F,isNextDisabled:Y,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(cp.displayName="PickersCalendarHeader"),process.env.NODE_ENV!=="production"&&(cp.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 up=ie("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:ko,maxHeight:_o,display:"flex",flexDirection:"column",margin:"0 auto"}),Fj="@media (prefers-reduced-motion: reduce)",Ro=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Tx=Ro&&Ro[1]?parseInt(Ro[1],10):null,Ex=Ro&&Ro[2]?parseInt(Ro[2],10):null,Vj=Tx&&Tx<10||Ex&&Ex<13||!1;function kx(e){const t=Z0(Fj,{defaultMatches:!1});return e??(t||Vj)}const Lj=e=>Me("MuiDateCalendar",e);De("MuiDateCalendar",["root","viewTransitionContainer"]);const Bj=["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"],qj=e=>$e({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Lj,e);function zj(e,t){const n=xt({props:e,name:t}),o=kx(n.reduceAnimations),s=Gf(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 Uj=ie(up,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:_o}),Wj=ie(fx,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),dp=T.forwardRef(function(t,n){const o=ft(),{ownerState:s}=Ft(),i=zn(),l=zj(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:c,value:u,defaultValue:d,referenceDate:h,disableFuture:m,disablePast:p,onChange:b,onMonthChange:f,reduceAnimations:g,shouldDisableDate:v,shouldDisableMonth:y,shouldDisableYear:S,view:w,views:x,openTo:P,className:O,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,Bj),{value:te,handleValueChange:J,timezone:B}=Yr({name:"DateCalendar",timezone:X,value:u,defaultValue:d,referenceDate:h,onChange:b,valueManager:en}),{view:V,setView:Q,focusedView:G,setFocusedView:ne,goToNextView:ae,setValueAndGoToNextView:re}=ul({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}=_N({value:te,referenceDate:h,reduceAnimations:g,onMonthChange:f,minDate:k,maxDate:C,shouldDisableDate:v,disablePast:p,disableFuture:m,timezone:B,getCurrentMonthFromVisibleDate:(Be,Te)=>o.isSameMonth(Be,Te)?Te:o.startOfMonth(Be)}),ke=$&&te||k,je=$&&te||C,We=`${i}-grid-label`,Ve=G!==null,Ze=H?.calendarHeader??cp,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:p,disableFuture:m,reduceAnimations:g,timezone:B,labelId:We},ownerState:s}),Ae=Ee(Be=>{const Te=o.startOfMonth(Be),Fe=o.endOfMonth(Be),tt=fe(Be)?Es({adapter:o,date:Be,minDate:o.isBefore(k,Te)?Te:k,maxDate:o.isAfter(C,Fe)?Fe:C,disablePast:p,disableFuture:m,isDateDisabled:fe,timezone:B}):Be;tt?(re(tt,"finish"),oe({target:tt,reason:"cell-interaction"})):(ae(),oe({target:Te,reason:"cell-interaction"}))}),Ne=Ee(Be=>{const Te=o.startOfYear(Be),Fe=o.endOfYear(Be),tt=fe(Be)?Es({adapter:o,date:Be,minDate:o.isBefore(k,Te)?Te:k,maxDate:o.isAfter(C,Fe)?Fe:C,disablePast:p,disableFuture:m,isDateDisabled:fe,timezone:B}):Be;tt?(re(tt,"finish"),oe({target:tt,reason:"cell-interaction"})):(ae(),oe({target:Te,reason:"cell-interaction"}))}),Oe=Ee(Be=>J(Be&&qa(o,Be,te??ce),"finish",V));T.useEffect(()=>{o.isValid(te)&&oe({target:te,reason:"controlled-value-change"})},[te]);const Le=qj(I),Ke={disablePast:p,disableFuture:m,maxDate:C,minDate:k},Ge={disableHighlightToday:N,readOnly:M,disabled:$,timezone:B,gridLabelId:We,slots:H,slotProps:L},lt=T.useRef(V);T.useEffect(()=>{lt.current!==V&&(G===lt.current&&ne(V,!0),lt.current=V)},[G,ne,V]);const pt=T.useMemo(()=>[te],[te]);return _.jsxs(Uj,K({ref:n,className:Ce(Le.root,O),ownerState:s},se,{children:[_.jsx(Ze,K({},Qe,{slots:H,slotProps:L})),_.jsx(Wj,{reduceAnimations:g,className:Le.viewTransitionContainer,transKey:V,ownerState:s,children:_.jsxs("div",{children:[V==="year"&&_.jsx(ap,K({},Ke,Ge,{value:te,onChange:Ne,shouldDisableYear:S,hasFocus:Ve,onFocusedViewChange:Be=>ne("year",Be),yearsOrder:R,yearsPerRow:A,referenceDate:ce})),V==="month"&&_.jsx(ip,K({},Ke,Ge,{currentMonth:be.currentMonth,hasFocus:Ve,className:O,value:te,onChange:Ae,shouldDisableMonth:y,onFocusedViewChange:Be=>ne("month",Be),monthsPerRow:U,referenceDate:ce})),V==="day"&&_.jsx(oj,K({},be,Ke,Ge,{onMonthSwitchingAnimationEnd:ve,hasFocus:Ve,onFocusedDayChange:Be=>oe({target:Be,reason:"cell-interaction"}),reduceAnimations:g,selectedDays:pt,onSelectedDaysChange:Oe,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"&&(dp.displayName="DateCalendar"),process.env.NODE_ENV!=="production"&&(dp.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 Qr=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:s,value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minDate:p,maxDate:b,shouldDisableDate:f,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:y,onMonthChange:S,monthsPerRow:w,onYearChange:x,yearsOrder:P,yearsPerRow:O,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(dp,{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:h,disablePast:m,minDate:p,maxDate:b,shouldDisableDate:f,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:y,onMonthChange:S,monthsPerRow:w,onYearChange:x,yearsOrder:P,yearsPerRow:O,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"&&(Qr.displayName="renderDateViewCalendar");function Hj(e){return Me("MuiPickerPopper",e)}De("MuiPickerPopper",["root","paper"]);const Yj=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Kj=e=>$e({root:["root"],paper:["paper"]},Hj,e),Gj=ie(Aa,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),Xj=ie(Pr,{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 Qj(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Jj(e,t){const n=T.useRef(!1),o=T.useRef(!1),s=T.useRef(null),i=T.useRef(!1);T.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&&Qj(c,d))return;if(n.current){n.current=!1;return}let h;c.composedPath?h=c.composedPath().indexOf(s.current)>-1:h=!d.documentElement.contains(c.target)||s.current.contains(c.target),!h&&!u&&t(c)}),a=c=>{c.defaultMuiPrevented||(o.current=!0)};return T.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]),T.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 _x=T.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:s,paperSlotProps:i,paperClasses:l,onPaperClick:a,onPaperTouchStart:c}=e,u=qe(e,Yj),d=st({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:o});return _.jsx(n,K({},u,d,{onClick:h=>{a(h),d.onClick?.(h)},onTouchStart:h=>{c(h),d.onTouchStart?.(h)},ownerState:o,children:s}))});process.env.NODE_ENV!=="production"&&(_x.displayName="PickerPopperPaperWrapper");function Zj(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}=Er(),{ownerState:d,rootRefObject:h}=Ft(),{dismissViews:m,getCurrentViewMode:p,onPopperExited:b,triggerElement:f,viewContainerRole:g}=Ft();T.useEffect(()=>{function W(Y){a&&Y.key==="Escape"&&m()}return document.addEventListener("keydown",W),()=>{document.removeEventListener("keydown",W)}},[m,a]);const v=T.useRef(null);T.useEffect(()=>{g==="tooltip"||p()==="field"||(a?v.current=Gt(h.current):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[a,g,p,h]);const y=Kj(l),S=Ee(()=>{g==="tooltip"?F$(()=>{h.current?.contains(Gt(h.current))||c.current?.contains(Gt(c.current))||m()}):m()}),[w,x,P]=Jj(a,S),O=T.useRef(null),I=at(O,c),$=at(I,w),M=W=>{W.key==="Escape"&&(W.stopPropagation(),m())},k=s?.desktopTransition??u?Cr:ls,C=s?.desktopTrapFocus??us,N=s?.desktopPaper??Xj,D=s?.popper??Gj,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=T.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(_x,{PaperComponent:N,ownerState:F,ref:$,onPaperClick:x,onPaperTouchStart:P,paperClasses:y.paper,paperSlotProps:i?.desktopPaper,children:n})}))}))}))}function Rx(){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 eA(e,t){const[n,o]=T.useState(Rx);return Mt(()=>{const s=()=>{o(Rx())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),A$(e,["hours","minutes","seconds"])?"portrait":t??n}const Ix=new Set;function $x(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
187
|
+
`):e;Ix.has(n)||(Ix.add(n),t==="error"?console.error(n):console.warn(n))}function tA(e){const{props:t,valueManager:n,validator:o}=e,{value:s,defaultValue:i,onChange:l,referenceDate:a,timezone:c,onAccept:u,closeOnSelect:d,open:h,onOpen:m,onClose:p}=t,{current:b}=T.useRef(i),{current:f}=T.useRef(s!==void 0),{current:g}=T.useRef(h!==void 0),v=ft();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&$x(["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"&&(T.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]),T.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}=Yr({name:"a picker component",timezone:c,value:s,defaultValue:b,referenceDate:a,onChange:l,valueManager:n}),[x,P]=T.useState(()=>({open:!1,lastExternalValue:S,clockShallowValue:void 0,lastCommittedValue:S,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:O}=OS({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&&m&&m(),N||p?.()}),$=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??O(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"})});T.useEffect(()=>{if(g){if(h===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");P(C=>K({},C,{open:h}))}},[g,h]);const k=T.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 nA=["className","sx"],Dx=({ref:e,props:t,valueManager:n,valueType:o,variant:s,validator:i,onPopperExited:l,autoFocusView:a,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:h})=>{const{views:m,view:p,openTo:b,onViewChange:f,viewRenderers:g,reduceAnimations:v,orientation:y,disableOpenPicker:S,closeOnSelect:w,disabled:x,readOnly:P,formatDensity:O,enableAccessibleFieldDOMStructure:I,selectedSections:$,onSelectedSectionsChange:M,format:k,label:C,autoFocus:N,name:D}=t,{className:j,sx:F}=t,W=qe(t,nA),Y=zn(),H=ft(),L=kx(v),E=eA(m,y),{current:q}=T.useRef(b??null),[z,R]=T.useState(null),A=T.useRef(null),U=T.useRef(null),X=T.useRef(null),se=at(e,X),{timezone:te,state:J,setOpen:B,setValue:V,setValueFromView:Q,value:G,viewValue:ne}=tA({props:t,valueManager:n,validator:i}),{view:ae,setView:re,defaultView:ce,focusedView:be,setFocusedView:oe,setValueAndGoToNextView:fe,goToNextStep:ve,hasNextStep:ke,hasSeveralSteps:je}=ul({view:p,views:m,openTo:b,onChange:Q,onViewChange:f,autoFocus:a,getStepNavigation:h}),We=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:Oe,timeViewsCount:Le}=T.useMemo(()=>m.reduce((le,Ie)=>{const Se=g[Ie]==null?"field":"UI";return le.viewModeLookup[Ie]=Se,Se==="UI"&&(le.hasUIView=!0,_s(Ie)&&(le.timeViewsCount+=1)),le},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[g,m]),Ke=Oe[ae],Ge=Ee(()=>Ke),[lt,pt]=T.useState(Ke==="UI"?ae:null);lt!==ae&&Oe[ae]==="UI"&&pt(ae),Mt(()=>{Ke==="field"&&J.open&&(B(!1),setTimeout(()=>{U?.current?.setSelectedSections(ae),U?.current?.focusField(ae)}))},[ae]),Mt(()=>{if(!J.open)return;let le=ae;Ke==="field"&<!=null&&(le=lt),le!==ce&&Oe[le]==="UI"&&Oe[ce]==="UI"&&(le=ce),le!==ae&&re(le),oe(le,!0)},[J.open]);const Be=T.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]),Te=T.useMemo(()=>S||!Ne?"hidden":x||P?"disabled":"enabled",[S,Ne,x,P]),Fe=Ee(ve),tt=T.useMemo(()=>w&&!je?[]:["cancel","nextOrAccept"],[w,je]),_t=T.useMemo(()=>({setValue:V,setOpen:B,clearValue:We,setValueToToday:Ve,acceptValueChanges:Ze,cancelValueChanges:Qe,setView:re,goToNextStep:Fe}),[V,B,We,Ve,Ze,Qe,re,Fe]),gt=T.useMemo(()=>K({},_t,{value:G,timezone:te,open:J.open,views:m,view:lt,initialView:q,disabled:x??!1,readOnly:P??!1,autoFocus:N??!1,variant:s,orientation:E,popupRef:A,reduceAnimations:L,triggerRef:R,triggerStatus:Te,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,Te,ke,te,J.open,lt,m,q,N]),mn=T.useMemo(()=>({dismissViews:Ae,ownerState:Be,hasUIView:Ne,getCurrentViewMode:Ge,rootRefObject:X,labelId:Y,triggerElement:z,viewContainerRole:d,defaultActionBarActions:tt,onPopperExited:l}),[Ae,Be,Ne,Ge,Y,z,d,tt,l]),de=T.useMemo(()=>({formatDensity:O,enableAccessibleFieldDOMStructure:I,selectedSections:$,onSelectedSectionsChange:M,fieldRef:U}),[O,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:m,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 Mx(e){return Me("MuiPickersLayout",e)}const Ln=De("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function rA(e){return Me("MuiDialogActions",e)}De("MuiDialogActions",["root","spacing"]);const oA=e=>{const{classes:t,disableSpacing:n}=e;return $e({root:["root",!n&&"spacing"]},rA,t)},sA=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}}}]}),Nx=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...l}=o,a={...o,disableSpacing:i},c=oA(a);return _.jsx(sA,{className:Ce(c.root,s),ownerState:a,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Nx.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 iA=["actions"],aA=ie(Nx,{name:"MuiPickersLayout",slot:"ActionBar"})({});function jx(e){const{actions:t}=e,n=qe(e,iA),o=An(),{clearValue:s,setValueToToday:i,acceptValueChanges:l,cancelValueChanges:a,goToNextStep:c,hasNextStep:u}=Er();if(t==null||t.length===0)return null;const d=t?.map(h=>{switch(h){case"clear":return _.jsx(Vn,{onClick:s,children:o.clearButtonLabel},h);case"cancel":return _.jsx(Vn,{onClick:a,children:o.cancelButtonLabel},h);case"accept":return _.jsx(Vn,{onClick:l,children:o.okButtonLabel},h);case"today":return _.jsx(Vn,{onClick:i,children:o.todayButtonLabel},h);case"next":return _.jsx(Vn,{onClick:c,children:o.nextStepButtonLabel},h);case"nextOrAccept":return u?_.jsx(Vn,{onClick:c,children:o.nextStepButtonLabel},h):_.jsx(Vn,{onClick:l,children:o.okButtonLabel},h);default:return null}});return _.jsx(aA,K({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(jx.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 Ax=T.memo(jx);process.env.NODE_ENV!=="production"&&(Ax.displayName="PickersActionBar");function lA(e){return Me("MuiListItem",e)}De("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const cA=De("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function uA(e){return Me("MuiListItemSecondaryAction",e)}De("MuiListItemSecondaryAction",["root","disableGutters"]);const dA=e=>{const{disableGutters:t,classes:n}=e;return $e({root:["root",t&&"disableGutters"]},uA,n)},fA=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}}]}),fp=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...i}=o,l=T.useContext(xr),a={...o,disableGutters:l.disableGutters},c=dA(a);return _.jsx(fA,{className:Ce(c.root,s),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(fp.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])}),fp.muiName="ListItemSecondaryAction";const pA=(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]},hA=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"]},lA,n)},mA=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:pA})(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:{[`& > .${cA.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}}]}))),yA=ie("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Fx=T.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:h,...m}={},dense:p=!1,disableGutters:b=!1,disablePadding:f=!1,divider:g=!1,secondaryAction:v,slotProps:y={},slots:S={},...w}=o,x=T.useContext(xr),P=T.useMemo(()=>({dense:p||x.dense||!1,alignItems:s,disableGutters:b}),[s,x.dense,p,b]),O=T.useRef(null),I=T.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=hA(M),C=at(O,n),N={slots:S,slotProps:y},[D,j]=ot("secondaryAction",{elementType:fp,externalForwardedProps:N,ownerState:M,className:k.secondaryAction}),F=S.root||c.Root||mA,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(xr.Provider,{value:P,children:_.jsxs(yA,{as:d,className:Ce(k.container,h),ref:C,ownerState:M,...m,children:[_.jsx(F,{...W,...!uo(F)&&{as:H,ownerState:{...M,...W.ownerState}},...Y,children:I}),I.pop()]})})):_.jsx(xr.Provider,{value:P,children:_.jsxs(F,{...W,as:H,ref:C,...!uo(F)&&{ownerState:{...M,...W.ownerState}},...Y,children:[I,v&&_.jsx(D,{...j,children:v})]})})});process.env.NODE_ENV!=="production"&&(Fx.propTypes={alignItems:r.oneOf(["center","flex-start"]),children:vn(r.node,e=>{const t=T.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:fa,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 gA=["items","changeImportance"],bA=["getValue"],vA=ie(Yd,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Vx(e){const{items:t,changeImportance:n="accept"}=e,o=qe(e,gA),{setValue:s}=Z$(),i=J$();if(t==null||t.length===0)return null;const l=t.map(a=>{let{getValue:c}=a,u=qe(a,bA);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(vA,K({dense:!0,sx:[{maxHeight:_o,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:l.map(a=>_.jsx(Fx,{children:_.jsx(La,K({},a))},a.id??a.label))}))}process.env.NODE_ENV!=="production"&&(Vx.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 SA=["ownerState"];function xA(e){return e.view!==null}const wA=(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"]},Mx,e)},Lx=e=>{const{ownerState:t,defaultActionBarActions:n}=Ft(),{view:o}=Er(),s=on(),{children:i,slots:l,slotProps:a,classes:c}=e,u=T.useMemo(()=>K({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=wA(c,u),h=l?.actionBar??Ax,m=st({elementType:h,externalSlotProps:a?.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),p=qe(m,SA),b=_.jsx(h,K({},p)),f=l?.toolbar,g=st({elementType:f,externalSlotProps:a?.toolbar,className:d.toolbar,ownerState:u}),v=xA(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??Vx,P=st({elementType:x,externalSlotProps:a?.shortcuts,className:d.shortcuts,ownerState:u}),O=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:O})}},CA=(e,t)=>{const{pickerOrientation:n}=t;return $e({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Mx,e)},Bx=ie("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Ln.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${Ln.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${Ln.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${Ln.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Ln.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Ln.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${Ln.shortcuts}`]:{gridColumn:4}}}]}),qx=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),dl=T.forwardRef(function(t,n){const o=xt({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:l,actionBar:a,shortcuts:c,ownerState:u}=Lx(o),{orientation:d,variant:h}=Er(),{sx:m,className:p,classes:b}=o,f=CA(b,u);return _.jsxs(Bx,{ref:n,sx:m,className:Ce(f.root,p),ownerState:u,children:[d==="landscape"?c:s,d==="landscape"?s:c,_.jsx(qx,{className:f.contentWrapper,ownerState:u,children:h==="desktop"?_.jsxs(T.Fragment,{children:[i,l]}):_.jsxs(T.Fragment,{children:[l,i]})}),a]})});process.env.NODE_ENV!=="production"&&(dl.displayName="PickersLayout"),process.env.NODE_ENV!=="production"&&(dl.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 zx(e){const{steps:t}=e;return Sj({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 PA=["props","steps"],OA=["ownerState"],TA=e=>{let{props:t,steps:n}=e,o=qe(e,PA);const{slots:s,slotProps:i,label:l,inputRef:a,localeText:c}=t,u=zx({steps:n}),{providerProps:d,renderCurrentView:h,ownerState:m}=Dx(K({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),p=d.privateContextValue.labelId,b=i?.toolbar?.hidden??!1,f=s.field,g=st({elementType:f,externalSlotProps:i?.field,additionalProps:K({},b&&{id:p}),ownerState:m}),v=qe(g,OA),y=s.layout??dl;let S=p;b&&(l?S=`${p}-label`:S=void 0);const w=K({},i,{toolbar:K({},i?.toolbar,{titleId:p}),popper:K({"aria-labelledby":S},i?.popper)}),x=()=>_.jsxs(wS,K({},d,{children:[_.jsx(f,K({},v,{slots:K({},s,v.slots),slotProps:K({},w,v.slotProps),inputRef:a})),_.jsx(Zj,{slots:s,slotProps:w,children:_.jsx(y,K({},w?.layout,{slots:s,slotProps:w,children:h()}))})]}));return process.env.NODE_ENV!=="production"&&(x.displayName="renderPicker"),{renderPicker:x}},Ux=({value:e,referenceDate:t,adapter:n,props:o,timezone:s})=>{const i=T.useMemo(()=>en.getInitialReferenceValue({value:e,adapter:n,props:o,referenceDate:t,granularity:jn.day,timezone:s,getTodayDate:()=>$f(n,s,"date")}),[t,s]);return e??i};function EA(e){return Me("MuiDigitalClock",e)}const pp=De("MuiDigitalClock",["root","list","item"]),kA=["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"],_A=e=>$e({root:["root"],list:["list"],item:["item"]},EA,e),RA=ie(up,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:sx,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),IA=ie(Ea,{name:"MuiDigitalClock",slot:"List"})({padding:0}),$A=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)}})),hp=T.forwardRef(function(t,n){const o=ft(),s=T.useRef(null),i=at(n,s),l=T.useRef(null),a=xt({props:t,name:"MuiDigitalClock"}),{ampm:c=o.is12HourCycleInCurrentLocale(),timeStep:u=30,autoFocus:d,slots:h,slotProps:m,value:p,defaultValue:b,referenceDate:f,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:v,minTime:y,disableFuture:S,disablePast:w,minutesStep:x=1,shouldDisableTime:P,onChange:O,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,kA),{value:E,handleValueChange:q,timezone:z}=Yr({name:"DigitalClock",timezone:H,value:p,defaultValue:b,referenceDate:f,onChange:O,valueManager:en}),R=An(),A=Oo(z),{ownerState:U}=Ft(),X=K({},U,{hasDigitalClockAlreadyBeenRendered:!!s.current}),se=_A(D),te=h?.digitalClockItem??$A,J=st({elementType:te,externalSlotProps:m?.digitalClockItem,ownerState:X,className:se.item}),B=Ux({value:E,referenceDate:f,adapter:o,props:a,timezone:z}),V=Ee(be=>q(be,"finish","hours")),{setValueAndGoToNextView:Q}=ul({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=T.useCallback(be=>{const oe=Ua(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=T.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=Ha(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=Ha(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(RA,K({ref:i,className:Ce(se.root,N),ownerState:X},L,{children:_.jsx(IA,{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"),We=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:We,itemValue:be,formattedValue:ke},J,{children:ke}),`${be.valueOf()}-${ke}`)})})}))});process.env.NODE_ENV!=="production"&&(hp.displayName="DigitalClock"),process.env.NODE_ENV!=="production"&&(hp.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 DA(e){return Me("MuiMultiSectionDigitalClock",e)}const mp=De("MuiMultiSectionDigitalClock",["root"]);function MA(e){return Me("MuiMultiSectionDigitalClockSection",e)}const yp=De("MuiMultiSectionDigitalClockSection",["root","item"]),NA=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],jA=e=>$e({root:["root"],item:["item"]},MA,e),AA=ie(Ea,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:sx,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"}}}]})),FA=ie(So,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:Ns,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)}})),Wx=T.forwardRef(function(t,n){const o=T.useRef(null),s=at(n,o),i=T.useRef(null),l=xt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:c,className:u,classes:d,disabled:h,readOnly:m,items:p,active:b,slots:f,slotProps:g,skipDisabled:v}=l,y=qe(l,NA),{ownerState:S}=Ft(),w=K({},S,{hasDigitalClockAlreadyBeenRendered:!!o.current}),x=jA(d),P=f?.digitalClockSectionItem??FA;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 O=p.findIndex($=>$.isFocused($.value)),I=$=>{switch($.key){case"PageUp":{const M=Ha(o.current)-5,k=o.current.children,C=Math.max(0,M),N=k[C];N&&N.focus(),$.preventDefault();break}case"PageDown":{const M=Ha(o.current)+5,k=o.current.children,C=Math.min(k.length-1,M),N=k[C];N&&N.focus(),$.preventDefault();break}}};return _.jsx(AA,K({ref:s,className:Ce(x.root,u),ownerState:w,autoFocusItem:a&&b,role:"listbox",onKeyDown:I},y,{children:p.map(($,M)=>{const k=$.isDisabled?.($.value),C=h||k;if(v&&C)return null;const N=$.isSelected($.value),D=O===M||O===-1&&M===0?0:-1;return _.jsx(P,K({onClick:()=>!m&&c($.value),selected:N,disabled:C,disableRipple:m,role:"option","aria-disabled":m||C||void 0,"aria-label":$.ariaLabel,"aria-selected":N,tabIndex:D,className:x.item},g?.digitalClockSectionItem,{children:$.label}),$.label)})}))});process.env.NODE_ENV!=="production"&&(Wx.displayName="MultiSectionDigitalClockSection");const VA=({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=(p,b)=>{const f=b??c;return f===null?!1:o?p===12?f===12||f===0:f===p||f-12===p:f===p},h=p=>d(p,n.getHours(a)),m=o?11:23;for(let p=0;p<=m;p+=l){let b=n.format(n.setHours(e,p),o?"hours12h":"hours24h");const f=i(parseInt(b,10).toString());b=n.formatNumber(b),u.push({value:p,label:b,isSelected:d,isDisabled:s,isFocused:h,ariaLabel:f})}return u},Hx=({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 h=o*d;return{value:h,label:t.formatNumber(s(h)),isDisabled:n,isSelected:a,isFocused:c,ariaLabel:i(h.toString())}})]},LA=["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"],BA=e=>$e({root:["root"]},DA,e),qA=ie(up,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),gp=T.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:h,defaultValue:m,referenceDate:p,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:f,minTime:g,disableFuture:v,disablePast:y,minutesStep:S=1,shouldDisableTime:w,onChange:x,view:P,views:O=["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,LA),{value:H,handleValueChange:L,timezone:E}=Yr({name:"MultiSectionDigitalClock",timezone:W,value:h,defaultValue:m,referenceDate:p,onChange:x,valueManager:en}),q=An(),z=Oo(E),R=T.useMemo(()=>K({hours:1,minutes:5,seconds:5},a),[a]),A=Ux({value:H,referenceDate:p,adapter:o,props:i,timezone:E}),U=Ee((oe,fe,ve)=>L(oe,fe,ve)),X=T.useMemo(()=>!l||!O.includes("hours")||O.includes("meridiem")?O:[...O,"meridiem"],[l,O]),{view:se,setValueAndGoToNextView:te,focusedView:J}=ul({view:P,views:X,openTo:I,onViewChange:$,onChange:U,focusedView:M,onFocusedViewChange:k}),B=Ee(oe=>{te(oe,"finish","meridiem")}),{meridiemMode:V,handleMeridiemChange:Q}=ox(A,l,B,"finish"),G=T.useCallback((oe,fe)=>{const ve=Ua(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)),We=(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=Df(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})||!We(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})||!We(oe,S)}case"seconds":{const Ve=o.setSeconds(A,oe);return!je({start:Ve,end:Ve})||!We(oe)}default:throw new Error("not supported")}},[l,A,b,f,V,g,S,w,o,v,y,z,X]),ne=T.useCallback(oe=>{switch(oe){case"hours":return{onChange:fe=>{const ve=Df(fe,V,l);te(o.setHours(A,ve),"finish","hours")},items:VA({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:Hx({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:Hx({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=ks(o,"am"),ve=ks(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=T.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=T.useMemo(()=>X.reduce((oe,fe)=>K({},oe,{[fe]:ne(fe)}),{}),[X,ne]),{ownerState:ce}=Ft(),be=BA(N);return _.jsx(qA,K({ref:n,className:Ce(be.root,C),ownerState:ce,role:"group"},Y,{children:ae.map(oe=>_.jsx(Wx,{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"&&(gp.displayName="MultiSectionDigitalClock"),process.env.NODE_ENV!=="production"&&(gp.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 bp=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:g,ampm:v,slots:y,slotProps:S,readOnly:w,disabled:x,sx:P,autoFocus:O,disableIgnoringDatePartForTimeValidation:I,timeSteps:$,skipDisabled:M,timezone:k})=>_.jsx(hp,{view:e,onViewChange:t,focusedView:n&&_s(n)?n:null,onFocusedViewChange:o,views:s.filter(_s),value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:g,ampm:v,slots:y,slotProps:S,readOnly:w,disabled:x,sx:P,autoFocus:O,disableIgnoringDatePartForTimeValidation:I,timeStep:$?.minutes,skipDisabled:M,timezone:k});process.env.NODE_ENV!=="production"&&(bp.displayName="renderDigitalClockTimeView");const As=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:g,ampm:v,slots:y,slotProps:S,readOnly:w,disabled:x,sx:P,autoFocus:O,disableIgnoringDatePartForTimeValidation:I,timeSteps:$,skipDisabled:M,timezone:k})=>_.jsx(gp,{view:e,onViewChange:t,focusedView:n&&wo(n)?n:null,onFocusedViewChange:o,views:s.filter(_s),value:i,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:g,ampm:v,slots:y,slotProps:S,readOnly:w,disabled:x,sx:P,autoFocus:O,disableIgnoringDatePartForTimeValidation:I,timeSteps:$,skipDisabled:M,timezone:k});process.env.NODE_ENV!=="production"&&(As.displayName="renderMultiSectionDigitalClockTimeView");const vp=T.forwardRef(function(t,n){const{toolbar:o,tabs:s,content:i,actionBar:l,shortcuts:a,ownerState:c}=Lx(t),{orientation:u}=Er(),{sx:d,className:h,classes:m}=t,p=l&&(l.props.actions?.length??0)>0;return _.jsxs(Bx,{ref:n,className:Ce(Ln.root,m?.root,h),sx:[{[`& .${Ln.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Ln.actionBar}`]:{gridRow:5}},...Array.isArray(d)?d:[d]],ownerState:c,children:[u==="landscape"?a:o,u==="landscape"?o:a,_.jsxs(qx,{className:Ce(Ln.contentWrapper,m?.contentWrapper),ownerState:c,sx:{display:"grid"},children:[i,s,p&&_.jsx(Cs,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),l]})});process.env.NODE_ENV!=="production"&&(vp.displayName="DesktopDateTimePickerLayout"),process.env.NODE_ENV!=="production"&&(vp.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 zA=["openTo","focusedView","timeViewsCount"],Yx=function(t){const{viewRenderers:n,popperView:o,rendererProps:s}=t,{openTo:i,focusedView:l,timeViewsCount:a}=s,c=qe(s,zA),u=K({},c,{autoFocus:!1,focusedView:null,sx:[{[`&.${mp.root}`]:{borderBottom:0},[`&.${mp.root}, .${yp.root}, &.${pp.root}`]:{maxHeight:_o}}]}),d=wo(o),h=d?"day":o,m=d?o:"hours";return _.jsxs(T.Fragment,{children:[n[h]?.(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(T.Fragment,{children:[_.jsx(Cs,{orientation:"vertical",sx:{gridColumn:2}}),n[m]?.(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"&&(Yx.displayName="rendererInterceptor");const Sp=T.forwardRef(function(t,n){const o=ft(),s=ux(t,"MuiDesktopDateTimePicker"),i=s.shouldRenderTimeInASingleColumn?bp:As,l=K({day:Qr,month:Qr,year:Qr,hours:i,minutes:i,seconds:i,meridiem:i},s.viewRenderers),a=s.ampmInClock??!0,u=l.hours?.name===As.name?s.views:s.views.filter(m=>m!=="meridiem"),d=K({},s,{viewRenderers:l,format:cx(o,K({},s,{views:s.viewsForFormatting})),views:u,yearsPerRow:s.yearsPerRow??4,ampmInClock:a,slots:K({field:ol,layout:vp},s.slots),slotProps:K({},s.slotProps,{field:m=>K({},xn(s.slotProps?.field,m),bS(s)),toolbar:K({hidden:!0,ampmInClock:a},s.slotProps?.toolbar),tabs:K({hidden:!0},s.slotProps?.tabs)})}),{renderPicker:h}=TA({ref:n,props:d,valueManager:en,valueType:"date-time",validator:Xa,rendererInterceptor:Yx,steps:null});return h()});process.env.NODE_ENV!=="production"&&(Sp.displayName="DesktopDateTimePicker"),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])};function UA(e){return Me("MuiDialogContent",e)}De("MuiDialogContent",["root","dividers"]);const WA=De("MuiDialogTitle",["root"]),HA=e=>{const{classes:t,dividers:n}=e;return $e({root:["root",n&&"dividers"]},UA,t)},YA=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:{[`.${WA.root} + &`]:{paddingTop:0}}}]}))),Kx=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...l}=o,a={...o,dividers:i},c=HA(a);return _.jsx(YA,{className:Ce(c.root,s),ownerState:a,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Kx.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 KA(e){return Me("MuiDialog",e)}const Fs=De("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Gx=T.createContext({});process.env.NODE_ENV!=="production"&&(Gx.displayName="DialogContext");const GA=ie(lf,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),XA=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,KA,t)},QA=ie(cf,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),JA=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"}}}]}),ZA=ie(Pr,{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)`,[`&.${Fs.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}`,[`&.${Fs.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,[`&.${Fs.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Xx=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDialog"}),s=Vr(),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:h,className:m,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:f=!1,maxWidth:g="sm",onClick:v,onClose:y,open:S,PaperComponent:w=Pr,PaperProps:x={},scroll:P="paper",slots:O={},slotProps:I={},TransitionComponent:$=Cr,transitionDuration:M=i,TransitionProps:k,...C}=o,N={...o,disableEscapeKeyDown:p,fullScreen:b,fullWidth:f,maxWidth:g,scroll:P},D=XA(N),j=T.useRef(),F=Q=>{j.current=Q.target===Q.currentTarget},W=Q=>{v&&v(Q),j.current&&(j.current=null,y&&y(Q,"backdropClick"))},Y=zn(a),H=T.useMemo(()=>({titleId:Y}),[Y]),L={transition:$,...O},E={transition:k,paper:x,backdrop:d,...I},q={slots:L,slotProps:E},[z,R]=ot("root",{elementType:QA,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:Ce(D.root,m),ref:n}),[A,U]=ot("backdrop",{elementType:GA,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:D.backdrop}),[X,se]=ot("paper",{elementType:ZA,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:Ce(D.paper,x.className)}),[te,J]=ot("container",{elementType:JA,externalForwardedProps:q,ownerState:N,className:D.container}),[B,V]=ot("transition",{elementType:Cr,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:p,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(Gx.Provider,{value:H,children:h})})})})})});process.env.NODE_ENV!=="production"&&(Xx.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 eF=ie(Xx,{slot:"internal"})({[`& .${Fs.container}`]:{outline:0},[`& .${Fs.paper}`]:{outline:0,minWidth:ko}}),tF=ie(Kx,{slot:"internal"})({"&:first-of-type":{padding:0}});function nF(e){const{children:t,slots:n,slotProps:o}=e,{open:s}=Er(),{dismissViews:i,onPopperExited:l}=Ft(),a=n?.dialog??eF,c=n?.mobileTransition??Cr;return _.jsx(a,K({open:s,onClose:()=>{i(),l?.()}},o?.dialog,{TransitionComponent:c,TransitionProps:o?.mobileTransition,PaperComponent:n?.mobilePaper,PaperProps:o?.mobilePaper,children:_.jsx(tF,{children:t})}))}const rF=["props","steps"],oF=["ownerState"],sF=e=>{let{props:t,steps:n}=e,o=qe(e,rF);const{slots:s,slotProps:i,label:l,inputRef:a,localeText:c}=t,u=zx({steps:n}),{providerProps:d,renderCurrentView:h,ownerState:m}=Dx(K({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),p=d.privateContextValue.labelId,b=i?.toolbar?.hidden??!1,f=s.field,g=st({elementType:f,externalSlotProps:i?.field,additionalProps:K({},b&&{id:p}),ownerState:m}),v=qe(g,oF),y=s.layout??dl;let S=p;b&&(l?S=`${p}-label`:S=void 0);const w=K({},i,{toolbar:K({},i?.toolbar,{titleId:p}),mobilePaper:K({"aria-labelledby":S},i?.mobilePaper)}),x=()=>_.jsxs(wS,K({},d,{children:[_.jsx(f,K({},v,{slots:K({},s,v.slots),slotProps:K({},w,v.slotProps),inputRef:a})),_.jsx(nF,{slots:s,slotProps:w,children:_.jsx(y,K({},w?.layout,{slots:s,slotProps:w,children:h()}))})]}));return process.env.NODE_ENV!=="production"&&(x.displayName="renderPicker"),{renderPicker:x}},iF=[{views:eS},{views:nS}],xp=T.forwardRef(function(t,n){const o=ft(),s=ux(t,"MuiMobileDateTimePicker"),i=s.shouldRenderTimeInASingleColumn?bp:As,l=K({day:Qr,month:Qr,year:Qr,hours:i,minutes:i,seconds:i,meridiem:i},s.viewRenderers),a=s.ampmInClock??!1,u=l.hours?.name===As.name?s.views:s.views.filter(m=>m!=="meridiem"),d=K({},s,{viewRenderers:l,format:cx(o,K({},s,{views:s.viewsForFormatting})),views:u,ampmInClock:a,slots:K({field:ol},s.slots),slotProps:K({},s.slotProps,{field:m=>K({},xn(s.slotProps?.field,m),bS(s)),toolbar:K({hidden:!1,ampmInClock:a},s.slotProps?.toolbar),tabs:K({hidden:!1},s.slotProps?.tabs),layout:K({},s.slotProps?.layout,{sx:L$([{[`& .${mp.root}`]:{width:ko},[`& .${yp.root}`]:{flex:1,maxHeight:_o-1,[`.${yp.item}`]:{width:"auto"}},[`& .${pp.root}`]:{width:ko,maxHeight:_o,flex:1,[`.${pp.item}`]:{justifyContent:"center"}}}],s.slotProps?.layout?.sx)})})}),{renderPicker:h}=sF({ref:n,props:d,valueManager:en,valueType:"date-time",validator:Xa,steps:iF});return h()});process.env.NODE_ENV!=="production"&&(xp.displayName="MobileDateTimePicker"),xp.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 aF=["desktopModeMediaQuery"],wp=T.forwardRef(function(t,n){const o=xt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:s=V$}=o,i=qe(o,aF);return Z0(s,{defaultMatches:!0})?_.jsx(Sp,K({ref:n},i)):_.jsx(xp,K({ref:n},i))});process.env.NODE_ENV!=="production"&&(wp.displayName="DateTimePicker"),process.env.NODE_ENV!=="production"&&(wp.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 fl={exports:{}},lF=fl.exports,Qx;function cF(){return Qx||(Qx=1,(function(e,t){(function(n,o){e.exports=o()})(lF,(function(){var n=1e3,o=6e4,s=36e5,i="millisecond",l="second",a="minute",c="hour",u="day",d="week",h="month",m="quarter",p="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,h),H=F-Y<0,L=j.clone().add(W+(H?-1:1),h);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:h,y:p,w:d,d:u,D:b,h:c,m:a,s:l,ms:i,Q:m}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},x="en",P={};P[x]=y;var O="$isDayjsObject",I=function(D){return D instanceof C||!(!D||!D[O])},$=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[O]=!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 p:return H?E(1,0):E(31,11);case h: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[h]=L+"Month",Y[p]=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===h||H===p){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===h)return this.set(h,this.$M+F);if(L===p)return this.set(p,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 p:H=A()/12;break;case h:H=A();break;case m: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(h).$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",h],["$y",p],["$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}))})(fl)),fl.exports}var uF=cF();const Bt=Vt(uF);var pl={exports:{}},dF=pl.exports,Jx;function fF(){return Jx||(Jx=1,(function(e,t){(function(n,o){e.exports=o()})(dF,(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),h=l(this).endOf(n);if(d.isBefore(h))return 1}var m=l(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(m,n,!0);return p<0?l(this).startOf("week").week():Math.ceil(p)},a.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(pl)),pl.exports}var pF=fF();const hF=Vt(pF);var hl={exports:{}},mF=hl.exports,Zx;function yF(){return Zx||(Zx=1,(function(e,t){(function(n,o){e.exports=o()})(mF,(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}},h=[/[+-]\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)}],m=function(g){var v=c[g];return v&&(v.indexOf?v:v.s.concat(v.f))},p=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=p(g,!1)}],a:[a,function(g){this.afternoon=p(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=m("months"),y=(m("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=m("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:h,ZZ:h};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],O=b[P],I=O&&O[0],$=O&&O[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,O=x.utc,I=x.args;this.$u=O;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,$,O,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)}}}))})(hl)),hl.exports}var gF=yF();const bF=Vt(gF);var ml={exports:{}},vF=ml.exports,ew;function SF(){return ew||(ew=1,(function(e,t){(function(n,o){e.exports=o()})(vF,(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(h,m){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,b,f){var g=f&&f.toUpperCase();return b||m[f]||n[f]||m[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)}}}))})(ml)),ml.exports}var xF=SF();const wF=Vt(xF);var yl={exports:{}},CF=yl.exports,tw;function PF(){return tw||(tw=1,(function(e,t){(function(n,o){e.exports=o()})(CF,(function(){return function(n,o,s){o.prototype.isBetween=function(i,l,a,c){var u=s(i),d=s(l),h=(c=c||"()")[0]==="(",m=c[1]===")";return(h?this.isAfter(u,a):!this.isBefore(u,a))&&(m?this.isBefore(d,a):!this.isAfter(d,a))||(h?this.isBefore(u,a):!this.isAfter(u,a))&&(m?this.isAfter(d,a):!this.isBefore(d,a))}}}))})(yl)),yl.exports}var OF=PF();const TF=Vt(OF);var gl={exports:{}},EF=gl.exports,nw;function kF(){return nw||(nw=1,(function(e,t){(function(n,o){e.exports=o()})(EF,(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(h){switch(h){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(),h==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),h==="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 h}}));return i.bind(this)(d)}}}))})(gl)),gl.exports}var _F=kF();const RF=Vt(_F);Bt.extend(wF),Bt.extend(hF),Bt.extend(TF),Bt.extend(RF);const IF={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"},$F={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"},Cp=["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
|
+
`),rw=["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 DF{isMUIAdapter=!0;isTimezoneCompatible=!0;lib="dayjs";escapedCharacters={start:"[",end:"]"};formatTokenMap=IF;constructor({locale:t,formats:n}={}){this.locale=t,this.formats=K({},$F,n),Bt.extend(bF)}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(Cp);return this.setLocaleToValue(Bt.utc(t))};createTZDate=(t,n)=>{if(!this.hasUTCPlugin())throw new Error(Cp);if(!this.hasTimezonePlugin())throw new Error(rw);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"&&$x(["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(Cp);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(rw)}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 MF=e=>{const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,valid:l,error:a,onChangeValidate:c}=Kt(e);return Ue.useEffect(()=>{o(n.key,t,n,i)},[]),_.jsx(Ka,{dateAdapter:DF,children:_.jsx(wp,{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})})},NF=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"),jF=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"),AF=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 FF(e){return Me("MuiCheckbox",e)}const Pp=De("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),VF=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,FF,t);return{...t,...l}},LF=ie(_f,{shouldForwardProp:e=>Yt(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:{[`&.${Pp.checked}, &.${Pp.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Pp.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),BF=_.jsx(jF,{}),qF=_.jsx(NF,{}),zF=_.jsx(AF,{}),ow=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:s=BF,color:i="primary",icon:l=qF,indeterminate:a=!1,indeterminateIcon:c=zF,inputProps:u,size:d="medium",disableRipple:h=!1,className:m,slots:p={},slotProps:b={},...f}=o,g=a?c:l,v=a?c:s,y={...o,disableRipple:h,color:i,indeterminate:a,size:d},S=VF(y),w=b.input??u,[x,P]=ot("root",{ref:n,elementType:LF,className:Ce(S.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:b,...f},ownerState:y,additionalProps:{type:"checkbox",icon:T.cloneElement(g,{fontSize:g.props.fontSize??d}),checkedIcon:T.cloneElement(v,{fontSize:v.props.fontSize??d}),disableRipple:h,slots:p,slotProps:{input:Ev(typeof w=="function"?w(y):w,{"data-indeterminate":a})}}});return _.jsx(x,{...P,classes:S})});process.env.NODE_ENV!=="production"&&(ow.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 UF(e){const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,onChangeValidate:l}=Kt(e),{key:a}=n;return o(a,t,n,i),_.jsx(Ef,{row:!0,children:_.jsx(Tf,{className:n.className,label:n.title&&s(n.title),control:_.jsx(ow,{name:n.key.slice(-1)[0],value:n.key.slice(-1)[0],checked:i||!1,disabled:n.readonly,onChange:l}),...n.otherProps})})}const WF=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 HF(e){return Me("MuiCard",e)}De("MuiCard",["root"]);const YF=e=>{const{classes:t}=e;return $e({root:["root"]},HF,t)},KF=ie(Pr,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),sw=T.forwardRef(function(t,n){const o=Je({props:t,name:"MuiCard"}),{className:s,raised:i=!1,...l}=o,a={...o,raised:i},c=YF(a);return _.jsx(KF,{className:Ce(c.root,s),elevation:i?8:void 0,ref:n,ownerState:a,...l})});process.env.NODE_ENV!=="production"&&(sw.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 GF=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"),Vs="ArrayComponent",Qn={arrayItem:`${Vs}-arrayItem`,deleteItemButton:`${Vs}-deleteItemButton`,addButton:`${Vs}-addButton`,elementsContainer:`${Vs}-elementsContainer`,title:`${Vs}-title`},XF=ia("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 iw=1;const bl=Symbol("_SCHEMAFORM_ITEM_ID"),aw=e=>{let t=null;return e&&typeof e=="object"&&Array.isArray(e)?t=[...e]:e&&typeof e=="object"&&!e[bl]&&(t={...e}),t?(Object.defineProperty(t,bl,{enumerable:!1,writable:!0}),iw+=1,t[bl]=iw,t):e},QF=e=>t=>{t.key&&(t.key[t.key.indexOf("")]=e)},JF=(e,t)=>{const n=Qs(e);return n.arrayIndex=t,$n.traverseForm(n,QF(t)),n},lw=e=>{const{form:t,builder:n,model:o,mapper:s,onChange:i,setDefault:l,options:a,localization:{getLocalizedString:c}}=e,{value:u,onChangeValidate:d}=Kt(e),h=(u||[]).map(aw);Ue.useEffect(()=>{l(t.key,o,t,u)},[]),Ue.useEffect(()=>{t.startEmpty!==!0&&h.length===0&&m()},[]);const m=()=>{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=[...h];aw(g),v.push(g),d(null,v)},p=g=>()=>{const v=[...h];v.splice(g,1),d(null,v)},b=()=>{const g=t.AddButton||(v=>_.jsx(Vn,{className:Qn.addButton,variant:"contained",color:"primary",...v}));return _.jsx(g,{onClick:m,children:t.add||"Add"})},f=[];for(let g=0;g<h.length;g+=1){const v=h[g],y=t.items.map((S,w)=>{const x=JF(S,g);return n(x,o,w,s,i,n,{arrayIndex:g})});f.push(_.jsxs(sw,{className:Qn.arrayItem,children:[_.jsx("div",{className:Qn.elementsContainer,children:y}),_.jsx(Tr,{onClick:p(g),className:Qn.deleteItemButton,size:"large",children:_.jsx(GF,{fontSize:"small"})})]},v&&v[bl]||g))}return _.jsxs(XF,{children:[_.jsxs("div",{style:{display:"flex"},children:[_.jsx(ir,{required:t.required,className:Qn.title,children:t.title&&c(t.title)}),b()]}),_.jsx("div",{children:f})]})};var Op={exports:{}};var cw;function ZF(){return cw||(cw=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})()})(Op)),Op.exports}var eV=ZF();const tV=Vt(eV),uw="FieldSet",dw={root:`${uw}-root`,fields:`${uw}-fields`},nV=ia(Sr)(({theme:e})=>({[`&.${dw.root}`]:{marginTop:e.spacing(1)},[`& .${dw.fields}`]:{marginLeft:e.spacing(1)}})),fw=({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=tV(i.root,e.htmlClass);return _.jsxs(nV,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[_.jsx(ir,{component:"legend",required:e.required,children:e.title&&l(e.title)}),_.jsx("div",{className:i.fields,children:a})]})},rV={padding:"20px"},oV=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:h}=Kt(e);Ue.useEffect(()=>{c(l,a,e.form,d)},[]);const m=d==="yes",p=d==="no";return _.jsx(Ir.Card,{children:_.jsxs("div",{style:rV,children:[_.jsx(ir,{required:i,children:t&&u(t)}),_.jsx("br",{}),_.jsxs(Ir.FormGroup,{children:[_.jsx(Ir.FormControlLabel,{control:_.jsx(Ir.Checkbox,{onClick:b=>{h(b,"yes")},checked:m}),label:n?u(n):"Yes"}),_.jsx(Ir.FormControlLabel,{control:_.jsx(Ir.Checkbox,{onClick:b=>{h(b,"no")},checked:p}),label:o?u(o):"No"})]}),d==="yes"||d==="no"?_.jsx(Ir.Button,{id:"temp",variant:"text",color:"primary",onClick:b=>h(b,"unanswered"),children:s?u(s):"clear response"}):""]})})};var Tp={exports:{}};var pw;function sV(){return pw||(pw=1,(function(e,t){(function(n,o){e.exports=o(Ue)})(self,(n=>(()=>{var o={4184:(a,c)=>{var u;(function(){var d={}.hasOwnProperty;function h(){for(var m=[],p=0;p<arguments.length;p++){var b=arguments[p];if(b){var f=typeof b;if(f==="string"||f==="number")m.push(b);else if(Array.isArray(b)){if(b.length){var g=h.apply(null,b);g&&m.push(g)}}else if(f==="object")if(b.toString===Object.prototype.toString)for(var v in b)d.call(b,v)&&b[v]&&m.push(v);else m.push(b.toString())}}return m.join(" ")}a.exports?(h.default=h,a.exports=h):(u=(function(){return h}).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),h=u(401),m=u(7667),p=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=h,f.prototype.get=m,f.prototype.has=p,f.prototype.set=b,a.exports=f},8407:(a,c,u)=>{var d=u(7040),h=u(4125),m=u(2117),p=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=h,f.prototype.get=m,f.prototype.has=p,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),h=u(1285),m=u(6e3),p=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=h,f.prototype.get=m,f.prototype.has=p,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),h=u(619),m=u(2385);function p(b){var f=-1,g=b==null?0:b.length;for(this.__data__=new d;++f<g;)this.add(b[f])}p.prototype.add=p.prototype.push=h,p.prototype.has=m,a.exports=p},6384:(a,c,u)=>{var d=u(8407),h=u(7465),m=u(3779),p=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=h,g.prototype.delete=m,g.prototype.get=p,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,h=c==null?0:c.length,m=0,p=[];++d<h;){var b=c[d];u(b,d,c)&&(p[m++]=b)}return p}},4636:(a,c,u)=>{var d=u(2545),h=u(5694),m=u(1469),p=u(4144),b=u(5776),f=u(6719),g=Object.prototype.hasOwnProperty;a.exports=function(v,y){var S=m(v),w=!S&&h(v),x=!S&&!w&&p(v),P=!S&&!w&&!x&&f(v),O=S||w||x||P,I=O?d(v.length,String):[],$=I.length;for(var M in v)!y&&!g.call(v,M)||O&&(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,h=u.length,m=c.length;++d<h;)c[m+d]=u[d];return c}},2908:a=>{a.exports=function(c,u){for(var d=-1,h=c==null?0:c.length;++d<h;)if(u(c[d],d,c))return!0;return!1}},8470:(a,c,u)=>{var d=u(7813);a.exports=function(h,m){for(var p=h.length;p--;)if(d(h[p][0],m))return p;return-1}},8866:(a,c,u)=>{var d=u(2488),h=u(1469);a.exports=function(m,p,b){var f=p(m);return h(m)?f:d(f,b(m))}},4239:(a,c,u)=>{var d=u(2705),h=u(9607),m=u(2333),p=d?d.toStringTag:void 0;a.exports=function(b){return b==null?b===void 0?"[object Undefined]":"[object Null]":p&&p in Object(b)?h(b):m(b)}},9454:(a,c,u)=>{var d=u(4239),h=u(7005);a.exports=function(m){return h(m)&&d(m)=="[object Arguments]"}},939:(a,c,u)=>{var d=u(2492),h=u(7005);a.exports=function m(p,b,f,g,v){return p===b||(p==null||b==null||!h(p)&&!h(b)?p!=p&&b!=b:d(p,b,f,g,m,v))}},2492:(a,c,u)=>{var d=u(6384),h=u(7114),m=u(8351),p=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,O,I,$,M,k){var C=f(P),N=f(O),D=C?S:b(P),j=N?S:b(O),F=(D=D==y?w:D)==w,W=(j=j==y?w:j)==w,Y=D==j;if(Y&&g(P)){if(!g(O))return!1;C=!0,F=!1}if(Y&&!F)return k||(k=new d),C||v(P)?h(P,O,I,$,M,k):m(P,O,D,I,$,M,k);if(!(1&I)){var H=F&&x.call(P,"__wrapped__"),L=W&&x.call(O,"__wrapped__");if(H||L){var E=H?P.value():P,q=L?O.value():O;return k||(k=new d),M(E,q,I,$,k)}}return!!Y&&(k||(k=new d),p(P,O,I,$,M,k))}},8458:(a,c,u)=>{var d=u(3560),h=u(5346),m=u(3218),p=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!(!m(w)||h(w))&&(d(w)?S:b).test(p(w))}},8749:(a,c,u)=>{var d=u(4239),h=u(1780),m=u(7005),p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p["[object Arguments]"]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p["[object Map]"]=p["[object Number]"]=p["[object Object]"]=p["[object RegExp]"]=p["[object Set]"]=p["[object String]"]=p["[object WeakMap]"]=!1,a.exports=function(b){return m(b)&&h(b.length)&&!!p[d(b)]}},280:(a,c,u)=>{var d=u(5726),h=u(6916),m=Object.prototype.hasOwnProperty;a.exports=function(p){if(!d(p))return h(p);var b=[];for(var f in Object(p))m.call(p,f)&&f!="constructor"&&b.push(f);return b}},2545:a=>{a.exports=function(c,u){for(var d=-1,h=Array(c);++d<c;)h[d]=u(d);return h}},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),h=u(2908),m=u(4757);a.exports=function(p,b,f,g,v,y){var S=1&f,w=p.length,x=b.length;if(w!=x&&!(S&&x>w))return!1;var P=y.get(p),O=y.get(b);if(P&&O)return P==b&&O==p;var I=-1,$=!0,M=2&f?new d:void 0;for(y.set(p,b),y.set(b,p);++I<w;){var k=p[I],C=b[I];if(g)var N=S?g(C,k,I,b,p,y):g(k,C,I,p,b,y);if(N!==void 0){if(N)continue;$=!1;break}if(M){if(!h(b,(function(D,j){if(!m(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(p),y.delete(b),$}},8351:(a,c,u)=>{var d=u(2705),h=u(1149),m=u(7813),p=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,O,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||!O(new h(y),new h(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return m(+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=p($(y),$(S),x,P,O,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),h=Object.prototype.hasOwnProperty;a.exports=function(m,p,b,f,g,v){var y=1&b,S=d(m),w=S.length;if(w!=d(p).length&&!y)return!1;for(var x=w;x--;){var P=S[x];if(!(y?P in p:h.call(p,P)))return!1}var O=v.get(m),I=v.get(p);if(O&&I)return O==p&&I==m;var $=!0;v.set(m,p),v.set(p,m);for(var M=y;++x<w;){var k=m[P=S[x]],C=p[P];if(f)var N=y?f(C,k,P,p,m,v):f(k,C,P,m,p,v);if(!(N===void 0?k===C||g(k,C,b,f,v):N)){$=!1;break}M||(M=P=="constructor")}if($&&!M){var D=m.constructor,j=p.constructor;D==j||!("constructor"in m)||!("constructor"in p)||typeof D=="function"&&D instanceof D&&typeof j=="function"&&j instanceof j||($=!1)}return v.delete(m),v.delete(p),$}},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),h=u(9551),m=u(3674);a.exports=function(p){return d(p,m,h)}},5050:(a,c,u)=>{var d=u(7019);a.exports=function(h,m){var p=h.__data__;return d(m)?p[typeof m=="string"?"string":"hash"]:p.map}},852:(a,c,u)=>{var d=u(8458),h=u(7801);a.exports=function(m,p){var b=h(m,p);return d(b)?b:void 0}},9607:(a,c,u)=>{var d=u(2705),h=Object.prototype,m=h.hasOwnProperty,p=h.toString,b=d?d.toStringTag:void 0;a.exports=function(f){var g=m.call(f,b),v=f[b];try{f[b]=void 0;var y=!0}catch{}var S=p.call(f);return y&&(g?f[b]=v:delete f[b]),S}},9551:(a,c,u)=>{var d=u(4963),h=u(479),m=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols,b=p?function(f){return f==null?[]:(f=Object(f),d(p(f),(function(g){return m.call(f,g)})))}:h;a.exports=b},4160:(a,c,u)=>{var d=u(8552),h=u(7071),m=u(3818),p=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),O=g(h),I=g(m),$=g(p),M=g(b),k=f;(d&&k(new d(new ArrayBuffer(1)))!=x||h&&k(new h)!=v||m&&k(m.resolve())!=y||p&&k(new p)!=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 O: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),h=Object.prototype.hasOwnProperty;a.exports=function(m){var p=this.__data__;if(d){var b=p[m];return b==="__lodash_hash_undefined__"?void 0:b}return h.call(p,m)?p[m]:void 0}},1327:(a,c,u)=>{var d=u(4536),h=Object.prototype.hasOwnProperty;a.exports=function(m){var p=this.__data__;return d?p[m]!==void 0:h.call(p,m)}},1866:(a,c,u)=>{var d=u(4536);a.exports=function(h,m){var p=this.__data__;return this.size+=this.has(h)?0:1,p[h]=d&&m===void 0?"__lodash_hash_undefined__":m,this}},5776:a=>{var c=/^(?:0|[1-9]\d*)$/;a.exports=function(u,d){var h=typeof u;return!!(d=d??9007199254740991)&&(h=="number"||h!="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,h=u(4429),m=(d=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"";a.exports=function(p){return!!m&&m in p}},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),h=Array.prototype.splice;a.exports=function(m){var p=this.__data__,b=d(p,m);return!(b<0||(b==p.length-1?p.pop():h.call(p,b,1),--this.size,0))}},2117:(a,c,u)=>{var d=u(8470);a.exports=function(h){var m=this.__data__,p=d(m,h);return p<0?void 0:m[p][1]}},7518:(a,c,u)=>{var d=u(8470);a.exports=function(h){return d(this.__data__,h)>-1}},4705:(a,c,u)=>{var d=u(8470);a.exports=function(h,m){var p=this.__data__,b=d(p,h);return b<0?(++this.size,p.push([h,m])):p[b][1]=m,this}},4785:(a,c,u)=>{var d=u(1989),h=u(8407),m=u(7071);a.exports=function(){this.size=0,this.__data__={hash:new d,map:new(m||h),string:new d}}},1285:(a,c,u)=>{var d=u(5050);a.exports=function(h){var m=d(this,h).delete(h);return this.size-=m?1:0,m}},6e3:(a,c,u)=>{var d=u(5050);a.exports=function(h){return d(this,h).get(h)}},9916:(a,c,u)=>{var d=u(5050);a.exports=function(h){return d(this,h).has(h)}},5265:(a,c,u)=>{var d=u(5050);a.exports=function(h,m){var p=d(this,h),b=p.size;return p.set(h,m),this.size+=p.size==b?0:1,this}},8776:a=>{a.exports=function(c){var u=-1,d=Array(c.size);return c.forEach((function(h,m){d[++u]=[m,h]})),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),h=c&&!c.nodeType&&c,m=h&&a&&!a.nodeType&&a,p=m&&m.exports===h&&d.process,b=(function(){try{return m&&m.require&&m.require("util").types||p&&p.binding&&p.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),h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")();a.exports=m},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(h){d[++u]=h})),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),h=u(7071),m=u(3369);a.exports=function(p,b){var f=this.__data__;if(f instanceof d){var g=f.__data__;if(!h||g.length<199)return g.push([p,b]),this.size=++f.size,this;f=this.__data__=new m(g)}return f.set(p,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),h=u(7005),m=Object.prototype,p=m.hasOwnProperty,b=m.propertyIsEnumerable,f=d((function(){return arguments})())?d:function(g){return h(g)&&p.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),h=u(1780);a.exports=function(m){return m!=null&&h(m.length)&&!d(m)}},4144:(a,c,u)=>{a=u.nmd(a);var d=u(5639),h=u(5062),m=c&&!c.nodeType&&c,p=m&&a&&!a.nodeType&&a,b=p&&p.exports===m?d.Buffer:void 0,f=(b?b.isBuffer:void 0)||h;a.exports=f},8446:(a,c,u)=>{var d=u(939);a.exports=function(h,m){return d(h,m)}},3560:(a,c,u)=>{var d=u(4239),h=u(3218);a.exports=function(m){if(!h(m))return!1;var p=d(m);return p=="[object Function]"||p=="[object GeneratorFunction]"||p=="[object AsyncFunction]"||p=="[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),h=u(1717),m=u(1167),p=m&&m.isTypedArray,b=p?h(p):d;a.exports=b},3674:(a,c,u)=>{var d=u(4636),h=u(280),m=u(8612);a.exports=function(p){return m(p)?d(p):h(p)}},8306:(a,c,u)=>{var d=u(3369);function h(m,p){if(typeof m!="function"||p!=null&&typeof p!="function")throw new TypeError("Expected a function");var b=function(){var f=arguments,g=p?p.apply(this,f):f[0],v=b.cache;if(v.has(g))return v.get(g);var y=m.apply(this,f);return b.cache=v.set(g,y)||v,y};return b.cache=new(h.Cache||d),b}h.Cache=d,a.exports=h},479:a=>{a.exports=function(){return[]}},5062:a=>{a.exports=function(){return!1}},2703:(a,c,u)=>{var d=u(414);function h(){}function m(){}m.resetWarningCache=h,a.exports=function(){function p(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 p}p.isRequired=p;var f={array:p,bigint:p,bool:p,func:p,number:p,object:p,string:p,symbol:p,any:p,arrayOf:b,element:p,elementType:p,instanceOf:b,node:p,objectOf:b,oneOf:b,oneOfType:b,shape:b,exact:b,checkPropTypes:m,resetWarningCache:h};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),h=i(8306),m=i.n(h);let p=(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 O(de,Z){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(he,le){return he.__proto__=le,he},O(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&&O(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,Ye){if(Re==null)return{};var Rt,Et,dt=(function(Xt,Jr){if(Xt==null)return{};var _n,Bn,ge={},me=Object.keys(Xt);for(Bn=0;Bn<me.length;Bn++)_n=me[Bn],Jr.indexOf(_n)>=0||(ge[_n]=Xt[_n]);return ge})(Re,Ye);if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(Re);for(Et=0;Et<kt.length;Et++)Rt=kt[Et],Ye.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 Ye=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:Ye,isLeaf:!Ye,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(Ye){pe.toggleChecked(Ye,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(Ye){J(ue,Ye,Re[Ye])})):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Re)):R(Object(Re)).forEach((function(Ye){Object.defineProperty(ue,Ye,Object.getOwnPropertyDescriptor(Re,Ye))}))}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,Ye=ue.halfCheck;return ee===0?xe:ee===1?Re:Ye}},{key:"renderNodeIcon",value:function(){var pe=this.props,ee=pe.expanded,ue=pe.icon,xe=pe.icons,Re=xe.leaf,Ye=xe.parentClose,Rt=xe.parentOpen,Et=pe.isLeaf;return ue!==null?ue:Et?Re:ee?Rt:Ye}},{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,Ye=ee.treeId,Rt=ee.value,Et=ee.onClick!==null,dt="".concat(Ye,"-").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,Ye=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:Ye},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 We(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?We(Object(he),!0).forEach((function(le){Ze(de,le,he[le])})):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(he)):We(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 Oe(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?Oe(Object(he),!0).forEach((function(le){Te(de,le,he[le])})):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(he)):Oe(Object(he)).forEach((function(le){Object.defineProperty(de,le,Object.getOwnPropertyDescriptor(he,le))}))}return de}function Ke(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 Ge(de,Z){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(he,le){return he.__proto__=le,he},Ge(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 Te(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&&Ge(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,Ye){if(!(Re instanceof Ye))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(p()),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=m()((function(Re,Ye){return Le(Le({},Re),Ye)})).bind(pt(ue)),ue}return Z=pe,he=[{key:"onCheck",value:function(ee){var ue=this.props,xe=ue.checkModel,Re=ue.noCascade,Ye=ue.onCheck,Rt=this.state.model.clone(),Et=Rt.getNode(ee.value);Rt.toggleChecked(ee,ee.checked,xe,Re),Ye(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,Ye=Re.expandDisabled,Rt=Re.expandOnClick,Et=Re.icons,dt=Re.lang,kt=Re.noCascade,Xt=Re.onClick,Jr=Re.onlyLeafCheckboxes,_n=Re.optimisticToggle,Bn=Re.showNodeTitle,ge=Re.showNodeIcon,me=this.state,_e=me.id,ze=me.model,He=pe.defaultProps.icons,It=ee.map((function(ct){var Qt=ct.value,Jt=ze.getNode(ct.value),xl=Jt.isParent?ue.renderTreeNodes(ct.children,ct):null;Jt.checkState=ue.determineShallowCheckState(ct,kt);var wl=Jr?Jt.isLeaf:Jt.showCheckbox;return!xe.value||ze.getNode(xe.value).expanded?v().createElement(ke,{key:Qt,checked:Jt.checkState,className:ct.className,disabled:Jt.disabled,expandDisabled:Ye,expandOnClick:Rt,expanded:Jt.expanded,icon:ct.icon,icons:ue.combineMemorized(He,Et),label:ct.label,lang:dt,optimisticToggle:_n,isLeaf:Jt.isLeaf,isParent:Jt.isParent,showCheckbox:wl,showNodeIcon:ge,title:Bn?ct.title||ct.label:ct.title,treeId:_e,value:ct.value,onCheck:ue.onCheck,onClick:Xt&&ue.onNodeClick,onExpand:ue.onExpand},xl):null}));return v().createElement("ol",null,It)}},{key:"renderExpandAll",value:function(){var ee=this.props,ue=ee.icons,xe=ue.expandAll,Re=ue.collapseAll,Ye=ee.lang;return ee.showExpandAll?v().createElement("div",{className:"rct-options"},v().createElement(C,{className:"rct-option rct-option-expand-all",title:Ye.expandAll,onClick:this.onExpandAll},xe),v().createElement(C,{className:"rct-option rct-option-collapse-all",title:Ye.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 Ye="".concat(xe,"[]");return v().createElement("input",{key:Re,name:Ye,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,Ye=ue.iconsClass,Rt=ue.nodes,Et=ue.nativeCheckboxes,dt=this.state.id,kt=this.renderTreeNodes(Rt),Xt=c()((Te(ee={"react-checkbox-tree":!0,"rct-disabled":Re},"rct-icons-".concat(Ye),!0),Te(ee,"rct-native-display",Et),Te(ee,"rct-direction-rtl",xe==="rtl"),ee));return v().createElement("div",{className:Xt,id:dt},this.renderExpandAll(),this.renderHiddenInput(),kt)}}],le=[{key:"getDerivedStateFromProps",value:function(ee,ue){var xe=ue.model,Re=ue.prevProps,Ye=ee.disabled,Rt=ee.id,Et=ee.nodes,dt=Le(Le({},ue),{},{prevProps:ee});return xe.setProps(ee),d()(Re.nodes,Et)&&Re.disabled===Ye||(xe.reset(),xe.flattenNodes(Et)),Rt!==null&&(dt=Le(Le({},dt),{},{id:Rt})),xe.deserializeLists({checked:ee.checked,expanded:ee.expanded}),dt}}],he&&Ke(Z.prototype,he),le&&Ke(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}Te(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}),Te(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 iV=sV();const aV=Vt(iV),lV=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"),cV=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"),hw=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"),uV=Pt(_.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),dV=Pt(_.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),fV=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"),pV=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"),hV=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"),mV=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 Ls={},mw;function yV(){if(mw)return Ls;mw=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.parse=l,Ls.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 m=function(){};return m.prototype=Object.create(null),m})();function l(m,p){const b=new i,f=m.length;if(f<2)return b;const g=p?.decode||d;let v=0;do{const y=m.indexOf("=",v);if(y===-1)break;const S=m.indexOf(";",v),w=S===-1?f:S;if(y>w){v=m.lastIndexOf(";",y-1)+1;continue}const x=a(m,v,y),P=c(m,y,x),O=m.slice(x,P);if(b[O]===void 0){let I=a(m,y+1,w),$=c(m,w,I);const M=g(m.slice(I,$));b[O]=M}v=w+1}while(v<f);return b}function a(m,p,b){do{const f=m.charCodeAt(p);if(f!==32&&f!==9)return p}while(++p<b);return b}function c(m,p,b){for(;p>b;){const f=m.charCodeAt(--p);if(f!==32&&f!==9)return p+1}return b}function u(m,p,b){const f=b?.encode||encodeURIComponent;if(!e.test(m))throw new TypeError(`argument name is invalid: ${m}`);const g=f(p);if(!t.test(g))throw new TypeError(`argument val is invalid: ${p}`);let v=m+"="+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(!h(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(m){if(m.indexOf("%")===-1)return m;try{return decodeURIComponent(m)}catch{return m}}function h(m){return s.call(m)==="[object Date]"}return Ls}var vl=yV();function gV(){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 bV(e){return typeof e=="string"?vl.parse(e):typeof e=="object"&&e!==null?e:{}}function Ep(e,t={}){const n=vV(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function vV(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class yw{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=vl.parse(document.cookie),this._checkChanges(s)};const o=typeof document>"u"?"":document.cookie;this.cookies=bV(t||o),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=gV()}_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:Ep(this.cookies[o])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Ep(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let o in this.cookies)n[o]=Ep(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=vl.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=vl.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 SV(e){const{model:t,form:n,setDefault:o,localization:{getLocalizedString:s}}=e,{value:i,valid:l,error:a,onChangeValidate:c}=Kt(e),{key:u,title:d,action:h}=n;Ue.useEffect(()=>{o(u,t,n,i)},[]);const[m,p]=Ue.useState([]),[b,f]=Ue.useState([]),g=y=>{const S=new yw,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)})};Ue.useEffect(()=>{h&&h.url&&g(h.url)},[]);const v={check:_.jsx(lV,{className:"rct-icon rct-icon-check"}),uncheck:_.jsx(cV,{className:"rct-icon rct-icon-uncheck"}),halfCheck:_.jsx(hw,{className:"rct-icon rct-icon-half-check"}),expandClose:_.jsx(uV,{className:"rct-icon rct-icon-expand-close"}),expandOpen:_.jsx(dV,{className:"rct-icon rct-icon-expand-open"}),expandAll:_.jsx(fV,{className:"rct-icon rct-icon-expand-all"}),collapseAll:_.jsx(hw,{className:"rct-icon rct-icon-collapse-all"}),parentClose:_.jsx(pV,{className:"rct-icon rct-icon-parent-close"}),parentOpen:_.jsx(hV,{className:"rct-icon rct-icon-parent-open"}),leaf:_.jsx(mV,{className:"rct-icon rct-icon-leaf-close"})};return _.jsxs(Ue.Fragment,{children:[_.jsx(ir,{required:n.required,children:d&&s(d)}),_.jsx(aV,{nodes:b,checked:i||[],expanded:m,onCheck:y=>c(null,y),onExpand:y=>p(y),icons:v,noCascade:!0}),l?null:_.jsx(Lr,{error:!0,children:a})]})}var Sl={exports:{}},xV=Sl.exports,gw;function wV(){return gw||(gw=1,(function(e){(function(t,n){e.exports=n()})(xV,function(){var t=Object.prototype.toString;function n(h,m){return h==null?!1:Object.prototype.hasOwnProperty.call(h,m)}function o(h){if(!h||l(h)&&h.length===0)return!0;if(typeof h!="string"){for(var m in h)if(n(h,m))return!1;return!0}return!1}function s(h){return t.call(h)}function i(h){return typeof h=="object"&&s(h)==="[object Object]"}var l=Array.isArray||function(h){return t.call(h)==="[object Array]"};function a(h){return typeof h=="boolean"||s(h)==="[object Boolean]"}function c(h){var m=parseInt(h);return m.toString()===h?m:h}function u(h){h=h||{};var m=function(v){return Object.keys(m).reduce(function(y,S){return S==="create"||typeof m[S]=="function"&&(y[S]=m[S].bind(m,v)),y},{})},p;h.includeInheritedProps?p=function(){return!0}:p=function(v,y){return typeof y=="number"&&Array.isArray(v)||n(v,y)};function b(v,y){if(p(v,y))return v[y]}var f;h.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 m.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||(h.includeInheritedProps?w in Object(v):n(v,w)))v=v[w];else return!1}return!0},m.ensureExists=function(v,y,S){return g(v,y,S,!0)},m.set=function(v,y,S,w){return g(v,y,S,w)},m.insert=function(v,y,S,w){var x=m.get(v,y);w=~~w,l(x)||(x=[],m.set(v,y,x)),x.splice(w,0,S)},m.empty=function(v,y){if(!o(y)&&v!=null){var S,w;if(S=m.get(v,y)){if(typeof S=="string")return m.set(v,y,"");if(a(S))return m.set(v,y,!1);if(typeof S=="number")return m.set(v,y,0);if(l(S))S.length=0;else if(i(S))for(w in S)p(S,w)&&delete S[w];else return m.set(v,y,null)}}},m.push=function(v,y){var S=m.get(v,y);l(S)||(S=[],m.set(v,y,S)),S.push.apply(S,Array.prototype.slice.call(arguments,2))},m.coalesce=function(v,y,S){for(var w,x=0,P=y.length;x<P;x++)if((w=m.get(v,y[x]))!==void 0)return w;return S},m.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 m.get(v,y.split("."),S);var w=c(y[0]),x=f(v,w);return x===void 0?S:y.length===1?x:m.get(v[w],y.slice(1),S)},m.del=function(y,S){if(typeof S=="number"&&(S=[S]),y==null||o(S))return y;if(typeof S=="string")return m.del(y,S.split("."));var w=c(S[0]);if(f(y,w),!p(y,w))return y;if(S.length===1)l(y)?y.splice(w,1):delete y[w];else return m.del(y[w],S.slice(1));return y},m}var d=u();return d.create=u,d.withInheritedProps=u({includeInheritedProps:!0}),d})})(Sl)),Sl.exports}var CV=wV();const PV=Vt(CV);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 OV(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:h,valid:m,error:p,onChangeValidate:b}=Kt(e);Ue.useEffect(()=>{d(c,u,e.form,h)},[]);const[f,g]=Ue.useState([]),{url:v,params:y}=n||{},S=y&&y.some(I=>I!=null)?y.map(I=>PV.get(u,I)):[];Ue.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 yw,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 O;return i?Array.isArray(h)?O=h?P.filter(I=>h.includes(I.id)):[]:O=h?P.filter(I=>(h||"").split(",").includes(I.id)):[]:Array.isArray(h)?O=h.length===1?P.find(I=>I.id===h[0]):null:O=h?P.find(I=>I.id===h):null,_.jsxs("div",{children:[_.jsx(Of,{multiple:i,disabled:l,getOptionLabel:I=>I.label||"",value:O||(i?[]:null),onChange:w,options:P,renderInput:I=>_.jsx(ms,{...I,label:s?o+" *":o})}),m?null:_.jsx("div",{style:{color:"red"},children:p})]})}function kp(e){const{form:t,localization:{getLocalizedString:n},otherProps:o}=e,s=Kt(e),i=e.valid!==void 0?e.valid:s.valid;let l=e.error!==void 0?e.error:s.error;const a=e.onChangeValidate!==void 0?e.onChangeValidate:s.onChangeValidate,c=Ue.useRef(null),[u,d]=Ue.useState(""),[h,m]=Ue.useState(null),p=()=>{c.current&&!t.readonly&&c.current.click()},b=f=>{m(null);const g=f.target.files;if(g&&g.length>0){const v=g[0];d(v.name);const y=new FileReader;y.onload=S=>{const w=S.target.result;if(typeof w!="string"){m(new Error("Failed to read file as base64 string"));return}const x=w.split(",")[1];a(f,x)},y.onerror=()=>{m(new Error("Error reading configuration file"))},y.onabort=()=>{m(new Error("File read aborted"))},y.readAsDataURL(v)}};return h&&(l=h.message),_.jsxs(Sr,{fullWidth:!0,error:!i||!!l,style:{marginBottom:"16px",marginTop:"16px",...t.style},className:t.className,...o,...t.otherProps,children:[t.title&&_.jsx(ir,{component:"legend",children:n(t.title)}),_.jsxs("div",{style:{display:"flex",alignItems:"center",marginTop:"8px"},children:[_.jsx(Vn,{variant:"outlined",onClick:p,disabled:t.readonly,children:n("Select File")}),_.jsx("span",{style:{marginLeft:"12px",fontSize:"14px",color:"#666"},children:u?`${n("Selected:")} ${u}`:n("No file selected")})]}),_.jsx("input",{type:"file",ref:c,onChange:b,style:{display:"none"},accept:t.accept||"*/*",disabled:t.readonly}),(l||t.description)&&_.jsx(Lr,{children:n(l||t.description)})]})}kp.defaultProps={otherProps:void 0,localization:{getLocalizedString:e=>e}};const TV=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 bw extends Ue.Component{mapper={number:c_,text:mo,password:mo,textarea:u_,markdown:d_,textsuggest:CI,select:AI,taxonomy:SV,radios:p$,date:m$,timestamp:MF,checkbox:UF,help:WF,array:lw,tBoolean:oV,fieldset:fw,tuple:fw,multiselect:LI,dynaselect:OV,file:kp};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);Bm(l)&&!Bm(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:TV}};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 h=t.key&&t.key.join(".")||o,m=a&&h in a?a[h]:null;return _.jsx(d,{model:n,form:t,onChange:i,setDefault:this.setDefault,mapper:s,builder:l,errorText:m,localization:this.getLocalization(),showErrors:c},h)}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=TC(this.mapper,c));const h=u.map((m,p)=>this.builder(m,i,p,d,a,this.builder));return _.jsx("div",{className:l,children:h})}}bw.defaultProps={localization:void 0,showErrors:!1},Ut.Array=lw,Ut.File=kp,Ut.SchemaForm=bw,Ut.useSchemaField=Kt,Ut.utils=$n,Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"})}));
|
|
193
193
|
//# sourceMappingURL=react-schema-form.umd.cjs.map
|