fastapi-rtk 0.0.89 → 0.0.90

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,151 +1,152 @@
1
- (function(F,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("react-router-dom"),require("@mantine/hooks"),require("@mantine/core"),require("@mantine/form"),require("@mantine/dates"),require("@jsonforms/core"),require("@jsonforms/react"),require("@emotion/react"),require("mantine-react-table")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","@mantine/hooks","@mantine/core","@mantine/form","@mantine/dates","@jsonforms/core","@jsonforms/react","@emotion/react","mantine-react-table"],_):(F=typeof globalThis<"u"?globalThis:F||self,_(F["fastapi-rtk"]={},F.React,F.reactRouterDom,F.hooks,F.core,F.form,F.dates,F.core$1,F.react,F.react$1,F.mantineReactTable))})(this,function(F,_,It,ke,h,vr,Tt,K,Se,zi,Dt){"use strict";var jE=Object.defineProperty;var $E=(F,_,It)=>_ in F?jE(F,_,{enumerable:!0,configurable:!0,writable:!0,value:It}):F[_]=It;var Mc=(F,_,It)=>$E(F,typeof _!="symbol"?_+"":_,It);function Fc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ze=Fc(_);var Xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ns={exports:{}},xr={};/**
1
+ (function(I,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("react-router-dom"),require("@mantine/hooks"),require("@mantine/core"),require("@mantine/form"),require("@mantine/dates"),require("@jsonforms/core"),require("@jsonforms/react"),require("@emotion/react"),require("mantine-react-table")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","@mantine/hooks","@mantine/core","@mantine/form","@mantine/dates","@jsonforms/core","@jsonforms/react","@emotion/react","mantine-react-table"],x):(I=typeof globalThis<"u"?globalThis:I||self,x(I["fastapi-rtk"]={},I.React,I.reactRouterDom,I.hooks,I.core,I.form,I.dates,I.core$1,I.react,I.react$1,I.mantineReactTable))})(this,function(I,x,Pt,je,h,fr,wt,J,xe,_o,It){"use strict";var $C=Object.defineProperty;var kC=(I,x,Pt)=>x in I?$C(I,x,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):I[x]=Pt;var $c=(I,x,Pt)=>kC(I,typeof x!="symbol"?x+"":x,Pt);function kc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ze=kc(x);var Lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ln={exports:{}},dr={};/**
2
2
  * @license React
3
- * react-jsx-runtime.production.min.js
3
+ * react-jsx-runtime.production.js
4
4
  *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Bi;function Rc(){if(Bi)return xr;Bi=1;var e=_,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var d,f={},p=null,m=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(m=l.ref);for(d in l)n.call(l,d)&&!i.hasOwnProperty(d)&&(f[d]=l[d]);if(a&&a.defaultProps)for(d in l=a.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:a,key:p,ref:m,props:f,_owner:s.current}}return xr.Fragment=r,xr.jsx=o,xr.jsxs=o,xr}var Tr={};/**
9
+ */var wo;function Pc(){if(wo)return dr;wo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,o){var i=null;if(o!==void 0&&(i=""+o),s.key!==void 0&&(i=""+s.key),"key"in s){o={};for(var a in s)a!=="key"&&(o[a]=s[a])}else o=s;return s=o.ref,{$$typeof:e,type:n,key:i,ref:s!==void 0?s:null,props:o}}return dr.Fragment=t,dr.jsx=r,dr.jsxs=r,dr}var pr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ui;function Nc(){return Ui||(Ui=1,process.env.NODE_ENV!=="production"&&function(){var e=_,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,T="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var k=b&&y[b]||y[T];return typeof k=="function"?k:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(y){{for(var k=arguments.length,L=new Array(k>1?k-1:0),ee=1;ee<k;ee++)L[ee-1]=arguments[ee];j("error",y,L)}}function j(y,k,L){{var ee=w.ReactDebugCurrentFrame,fe=ee.getStackAddendum();fe!==""&&(k+="%s",L=L.concat([fe]));var ve=L.map(function(ue){return String(ue)});ve.unshift("Warning: "+k),Function.prototype.apply.call(console[y],console,ve)}}var O=!1,S=!1,P=!1,B=!1,Y=!1,Q;Q=Symbol.for("react.module.reference");function g(y){return!!(typeof y=="string"||typeof y=="function"||y===n||y===i||Y||y===s||y===c||y===d||B||y===m||O||S||P||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===f||y.$$typeof===o||y.$$typeof===a||y.$$typeof===l||y.$$typeof===Q||y.getModuleId!==void 0))}function I(y,k,L){var ee=y.displayName;if(ee)return ee;var fe=k.displayName||k.name||"";return fe!==""?L+"("+fe+")":L}function U(y){return y.displayName||"Context"}function J(y){if(y==null)return null;if(typeof y.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case s:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case a:var k=y;return U(k)+".Consumer";case o:var L=y;return U(L._context)+".Provider";case l:return I(y,y.render,"ForwardRef");case f:var ee=y.displayName||null;return ee!==null?ee:J(y.type)||"Memo";case p:{var fe=y,ve=fe._payload,ue=fe._init;try{return J(ue(ve))}catch{return null}}}return null}var re=Object.assign,ce=0,he,H,te,ae,E,D,q;function V(){}V.__reactDisabledLog=!0;function X(){{if(ce===0){he=console.log,H=console.info,te=console.warn,ae=console.error,E=console.group,D=console.groupCollapsed,q=console.groupEnd;var y={configurable:!0,enumerable:!0,value:V,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}ce++}}function G(){{if(ce--,ce===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:re({},y,{value:he}),info:re({},y,{value:H}),warn:re({},y,{value:te}),error:re({},y,{value:ae}),group:re({},y,{value:E}),groupCollapsed:re({},y,{value:D}),groupEnd:re({},y,{value:q})})}ce<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=w.ReactCurrentDispatcher,z;function ne(y,k,L){{if(z===void 0)try{throw Error()}catch(fe){var ee=fe.stack.trim().match(/\n( *(at )?)/);z=ee&&ee[1]||""}return`
18
- `+z+y}}var ie=!1,se;{var Pe=typeof WeakMap=="function"?WeakMap:Map;se=new Pe}function N(y,k){if(!y||ie)return"";{var L=se.get(y);if(L!==void 0)return L}var ee;ie=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ve;ve=Z.current,Z.current=null,X();try{if(k){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(xe){ee=xe}Reflect.construct(y,[],ue)}else{try{ue.call()}catch(xe){ee=xe}y.call(ue.prototype)}}else{try{throw Error()}catch(xe){ee=xe}y()}}catch(xe){if(xe&&ee&&typeof xe.stack=="string"){for(var M=xe.stack.split(`
19
- `),x=ee.stack.split(`
20
- `),$=M.length-1,R=x.length-1;$>=1&&R>=0&&M[$]!==x[R];)R--;for(;$>=1&&R>=0;$--,R--)if(M[$]!==x[R]){if($!==1||R!==1)do if($--,R--,R<0||M[$]!==x[R]){var le=`
21
- `+M[$].replace(" at new "," at ");return y.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",y.displayName)),typeof y=="function"&&se.set(y,le),le}while($>=1&&R>=0);break}}}finally{ie=!1,Z.current=ve,G(),Error.prepareStackTrace=fe}var Ae=y?y.displayName||y.name:"",Ce=Ae?ne(Ae):"";return typeof y=="function"&&se.set(y,Ce),Ce}function Me(y,k,L){return N(y,!1)}function W(y){var k=y.prototype;return!!(k&&k.isReactComponent)}function We(y,k,L){if(y==null)return"";if(typeof y=="function")return N(y,W(y));if(typeof y=="string")return ne(y);switch(y){case c:return ne("Suspense");case d:return ne("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case l:return Me(y.render);case f:return We(y.type,k,L);case p:{var ee=y,fe=ee._payload,ve=ee._init;try{return We(ve(fe),k,L)}catch{}}}return""}var He=Object.prototype.hasOwnProperty,rt={},Ut=w.ReactDebugCurrentFrame;function gt(y){if(y){var k=y._owner,L=We(y.type,y._source,k?k.type:null);Ut.setExtraStackFrame(L)}else Ut.setExtraStackFrame(null)}function Yn(y,k,L,ee,fe){{var ve=Function.call.bind(He);for(var ue in y)if(ve(y,ue)){var M=void 0;try{if(typeof y[ue]!="function"){var x=Error((ee||"React class")+": "+L+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}M=y[ue](k,ue,ee,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){M=$}M&&!(M instanceof Error)&&(gt(fe),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ee||"React class",L,ue,typeof M),gt(null)),M instanceof Error&&!(M.message in rt)&&(rt[M.message]=!0,gt(fe),A("Failed %s type: %s",L,M.message),gt(null))}}}var qn=Array.isArray;function Wr(y){return qn(y)}function Gr(y){{var k=typeof Symbol=="function"&&Symbol.toStringTag,L=k&&y[Symbol.toStringTag]||y.constructor.name||"Object";return L}}function Vt(y){try{return yt(y),!1}catch{return!0}}function yt(y){return""+y}function bt(y){if(Vt(y))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Gr(y)),yt(y)}var jt=w.ReactCurrentOwner,Jn={key:!0,ref:!0,__self:!0,__source:!0},Hr,pr,hr;hr={};function mr(y){if(He.call(y,"ref")){var k=Object.getOwnPropertyDescriptor(y,"ref").get;if(k&&k.isReactWarning)return!1}return y.ref!==void 0}function gr(y){if(He.call(y,"key")){var k=Object.getOwnPropertyDescriptor(y,"key").get;if(k&&k.isReactWarning)return!1}return y.key!==void 0}function ot(y,k){if(typeof y.ref=="string"&&jt.current&&k&&jt.current.stateNode!==k){var L=J(jt.current.type);hr[L]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',J(jt.current.type),y.ref),hr[L]=!0)}}function $t(y,k){{var L=function(){Hr||(Hr=!0,A("%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://reactjs.org/link/special-props)",k))};L.isReactWarning=!0,Object.defineProperty(y,"key",{get:L,configurable:!0})}}function Yr(y,k){{var L=function(){pr||(pr=!0,A("%s: `ref` 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://reactjs.org/link/special-props)",k))};L.isReactWarning=!0,Object.defineProperty(y,"ref",{get:L,configurable:!0})}}var qr=function(y,k,L,ee,fe,ve,ue){var M={$$typeof:t,type:y,key:k,ref:L,props:ue,_owner:ve};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function Ni(y,k,L,ee,fe){{var ve,ue={},M=null,x=null;L!==void 0&&(bt(L),M=""+L),gr(k)&&(bt(k.key),M=""+k.key),mr(k)&&(x=k.ref,ot(k,fe));for(ve in k)He.call(k,ve)&&!Jn.hasOwnProperty(ve)&&(ue[ve]=k[ve]);if(y&&y.defaultProps){var $=y.defaultProps;for(ve in $)ue[ve]===void 0&&(ue[ve]=$[ve])}if(M||x){var R=typeof y=="function"?y.displayName||y.name||"Unknown":y;M&&$t(ue,R),x&&Yr(ue,R)}return qr(y,M,x,fe,ee,jt.current,ue)}}var Pt=w.ReactCurrentOwner,Wt=w.ReactDebugCurrentFrame;function kt(y){if(y){var k=y._owner,L=We(y.type,y._source,k?k.type:null);Wt.setExtraStackFrame(L)}else Wt.setExtraStackFrame(null)}var vt;vt=!1;function Jr(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function Kn(){{if(Pt.current){var y=J(Pt.current.type);if(y)return`
22
-
23
- Check the render method of \``+y+"`."}return""}}function De(y){return""}var xt={};function Li(y){{var k=Kn();if(!k){var L=typeof y=="string"?y:y.displayName||y.name;L&&(k=`
24
-
25
- Check the top-level render call using <`+L+">.")}return k}}function Kr(y,k){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var L=Li(k);if(xt[L])return;xt[L]=!0;var ee="";y&&y._owner&&y._owner!==Pt.current&&(ee=" It was passed a child from "+J(y._owner.type)+"."),kt(y),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',L,ee),kt(null)}}function yr(y,k){{if(typeof y!="object")return;if(Wr(y))for(var L=0;L<y.length;L++){var ee=y[L];Jr(ee)&&Kr(ee,k)}else if(Jr(y))y._store&&(y._store.validated=!0);else if(y){var fe=v(y);if(typeof fe=="function"&&fe!==y.entries)for(var ve=fe.call(y),ue;!(ue=ve.next()).done;)Jr(ue.value)&&Kr(ue.value,k)}}}function Xn(y){{var k=y.type;if(k==null||typeof k=="string")return;var L;if(typeof k=="function")L=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===l||k.$$typeof===f))L=k.propTypes;else return;if(L){var ee=J(k);Yn(L,y.props,"prop",ee,y)}else if(k.PropTypes!==void 0&&!vt){vt=!0;var fe=J(k);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zn(y){{for(var k=Object.keys(y.props),L=0;L<k.length;L++){var ee=k[L];if(ee!=="children"&&ee!=="key"){kt(y),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),kt(null);break}}y.ref!==null&&(kt(y),A("Invalid attribute `ref` supplied to `React.Fragment`."),kt(null))}}var Qn={};function Ze(y,k,L,ee,fe,ve){{var ue=g(y);if(!ue){var M="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x=De();x?M+=x:M+=Kn();var $;y===null?$="null":Wr(y)?$="array":y!==void 0&&y.$$typeof===t?($="<"+(J(y.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):$=typeof y,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,M)}var R=Ni(y,k,L,fe,ve);if(R==null)return R;if(ue){var le=k.children;if(le!==void 0)if(ee)if(Wr(le)){for(var Ae=0;Ae<le.length;Ae++)yr(le[Ae],y);Object.freeze&&Object.freeze(le)}else A("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 yr(le,y)}if(He.call(k,"key")){var Ce=J(y),xe=Object.keys(k).filter(function(Re){return Re!=="key"}),Ye=xe.length>0?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}";if(!Qn[Ce+Ye]){var Gt=xe.length>0?"{"+xe.join(": ..., ")+": ...}":"{}";A(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Eo;function Ic(){return Eo||(Eo=1,process.env.NODE_ENV!=="production"&&function(){function e(T){if(T==null)return null;if(typeof T=="function")return T.$$typeof===ee?null:T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case $:return"Fragment";case _:return"Portal";case H:return"Profiler";case F:return"StrictMode";case R:return"Suspense";case Z:return"SuspenseList"}if(typeof T=="object")switch(typeof T.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case g:return(T.displayName||"Context")+".Provider";case Q:return(T._context.displayName||"Context")+".Consumer";case j:var W=T.render;return T=T.displayName,T||(T=W.displayName||W.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case ne:return W=T.displayName||null,W!==null?W:e(T.type)||"Memo";case ce:W=T._payload,T=T._init;try{return e(T(W))}catch{}}return null}function t(T){return""+T}function r(T){try{t(T);var W=!1}catch{W=!0}if(W){W=console;var U=W.error,le=typeof Symbol=="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return U.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",le),t(T)}}function n(){}function s(){if(Y===0){B=console.log,X=console.info,N=console.warn,te=console.error,ie=console.group,oe=console.groupCollapsed,Ae=console.groupEnd;var T={configurable:!0,enumerable:!0,value:n,writable:!0};Object.defineProperties(console,{info:T,log:T,warn:T,error:T,group:T,groupCollapsed:T,groupEnd:T})}Y++}function o(){if(Y--,Y===0){var T={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},T,{value:B}),info:k({},T,{value:X}),warn:k({},T,{value:N}),error:k({},T,{value:te}),group:k({},T,{value:ie}),groupCollapsed:k({},T,{value:oe}),groupEnd:k({},T,{value:Ae})})}0>Y&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function i(T){if(D===void 0)try{throw Error()}catch(U){var W=U.stack.trim().match(/\n( *(at )?)/);D=W&&W[1]||"",ke=-1<U.stack.indexOf(`
18
+ at`)?" (<anonymous>)":-1<U.stack.indexOf("@")?"@unknown:0:0":""}return`
19
+ `+D+T+ke}function a(T,W){if(!T||L)return"";var U=He.get(T);if(U!==void 0)return U;L=!0,U=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var le=null;le=se.H,se.H=null,s();try{var we={DetermineComponentFrameRoot:function(){try{if(W){var Qe=function(){throw Error()};if(Object.defineProperty(Qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Qe,[])}catch(Re){var Ye=Re}Reflect.construct(T,[],Qe)}else{try{Qe.call()}catch(Re){Ye=Re}T.call(Qe.prototype)}}else{try{throw Error()}catch(Re){Ye=Re}(Qe=T())&&typeof Qe.catch=="function"&&Qe.catch(function(){})}}catch(Re){if(Re&&Ye&&typeof Re.stack=="string")return[Re.stack,Ye.stack]}return[null,null]}};we.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var ye=Object.getOwnPropertyDescriptor(we.DetermineComponentFrameRoot,"name");ye&&ye.configurable&&Object.defineProperty(we.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var re=we.DetermineComponentFrameRoot(),st=re[0],St=re[1];if(st&&St){var Pe=st.split(`
20
+ `),pt=St.split(`
21
+ `);for(re=ye=0;ye<Pe.length&&!Pe[ye].includes("DetermineComponentFrameRoot");)ye++;for(;re<pt.length&&!pt[re].includes("DetermineComponentFrameRoot");)re++;if(ye===Pe.length||re===pt.length)for(ye=Pe.length-1,re=pt.length-1;1<=ye&&0<=re&&Pe[ye]!==pt[re];)re--;for(;1<=ye&&0<=re;ye--,re--)if(Pe[ye]!==pt[re]){if(ye!==1||re!==1)do if(ye--,re--,0>re||Pe[ye]!==pt[re]){var ht=`
22
+ `+Pe[ye].replace(" at new "," at ");return T.displayName&&ht.includes("<anonymous>")&&(ht=ht.replace("<anonymous>",T.displayName)),typeof T=="function"&&He.set(T,ht),ht}while(1<=ye&&0<=re);break}}}finally{L=!1,se.H=le,o(),Error.prepareStackTrace=U}return Pe=(Pe=T?T.displayName||T.name:"")?i(Pe):"",typeof T=="function"&&He.set(T,Pe),Pe}function u(T){if(T==null)return"";if(typeof T=="function"){var W=T.prototype;return a(T,!(!W||!W.isReactComponent))}if(typeof T=="string")return i(T);switch(T){case R:return i("Suspense");case Z:return i("SuspenseList")}if(typeof T=="object")switch(T.$$typeof){case j:return T=a(T.render,!1),T;case ne:return u(T.type);case ce:W=T._payload,T=T._init;try{return u(T(W))}catch{}}return""}function c(){var T=se.A;return T===null?null:T.getOwner()}function d(T){if(C.call(T,"key")){var W=Object.getOwnPropertyDescriptor(T,"key").get;if(W&&W.isReactWarning)return!1}return T.key!==void 0}function f(T,W){function U(){nt||(nt=!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)",W))}U.isReactWarning=!0,Object.defineProperty(T,"key",{get:U,configurable:!0})}function p(){var T=e(this.type);return Bt[T]||(Bt[T]=!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.")),T=this.props.ref,T!==void 0?T:null}function m(T,W,U,le,we,ye){return U=ye.ref,T={$$typeof:A,type:T,key:W,props:ye,_owner:we},(U!==void 0?U:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:p}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function y(T,W,U,le,we,ye){if(typeof T=="string"||typeof T=="function"||T===$||T===H||T===F||T===R||T===Z||T===ge||typeof T=="object"&&T!==null&&(T.$$typeof===ce||T.$$typeof===ne||T.$$typeof===g||T.$$typeof===Q||T.$$typeof===j||T.$$typeof===q||T.getModuleId!==void 0)){var re=W.children;if(re!==void 0)if(le)if(z(re)){for(le=0;le<re.length;le++)v(re[le],T);Object.freeze&&Object.freeze(re)}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 v(re,T)}else re="",(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),T===null?le="null":z(T)?le="array":T!==void 0&&T.$$typeof===A?(le="<"+(e(T.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):le=typeof T,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",le,re);if(C.call(W,"key")){re=e(T);var st=Object.keys(W).filter(function(Pe){return Pe!=="key"});le=0<st.length?"{key: someKey, "+st.join(": ..., ")+": ...}":"{key: someKey}",Ut[re+le]||(st=0<st.length?"{"+st.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
26
23
  let props = %s;
27
24
  <%s {...props} />
28
25
  React keys must be passed directly to JSX without using spread:
29
26
  let props = %s;
30
- <%s key={someKey} {...props} />`,Ye,Ce,Gt,Ce),Qn[Ce+Ye]=!0}}return y===n?Zn(R):Xn(R),R}}function br(y,k,L){return Ze(y,k,L,!0)}function es(y,k,L){return Ze(y,k,L,!1)}var ts=es,rs=br;Tr.Fragment=n,Tr.jsx=ts,Tr.jsxs=rs}()),Tr}process.env.NODE_ENV==="production"?ns.exports=Rc():ns.exports=Nc();var u=ns.exports;function Be({path:e,method:t,body:r=void 0,queryParams:n=void 0}){const s=Object.entries(n||{}).reduce((a,[l,c])=>((Array.isArray(c)||typeof c=="object")&&(c=JSON.stringify(c)),a[l]=c,a),{}),i=new It.createSearchParams(s);e=e+"?"+i;const o={method:t,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:r?JSON.stringify(r):null};return{fetchPath:e,options:o}}function Lc(e){const t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(let s=0;s<e.length;s++){let i=e[s];if(typeof i!="string")throw new TypeError("Url must be a string. Received "+i);i!==""&&(s>0&&(i=i.replace(/^[\/]+/,"")),s<e.length-1?i=i.replace(/[\/]+$/,""):i=i.replace(/[\/]+$/,"/"),t.push(i))}let r=t.join("/");r=r.replace(/\/(\?|&|#[^!])/g,"$1");const n=r.split("?");return r=n.shift()+(n.length>0?"?":"")+n.join("&"),r}function Ie(...e){const t=Array.from(Array.isArray(e[0])?e[0]:e);return Lc(t)}function Zr(e,{autoInvoke:t=!0,initialLoading:r=!1,clearDataOnRefetch:n=!1,...s}={}){const[i,o]=_.useState(null),[a,l]=_.useState(r),[c,d]=_.useState(null),f=_.useRef(null),p=_.useCallback(()=>{if(e)return n&&o(null),d(null),f.current&&f.current.abort(),f.current=new AbortController,l(!0),fetch(e,{signal:f.current.signal,...s}).then(async b=>{const T=await b.json();if(!b.ok){const v=typeof T.detail=="string"?T.detail:JSON.stringify(T.detail,null,2);throw new Error(v)}return o(T),l(!1),T}).catch(b=>(b&&b.name!=="AbortError"&&(d(b),l(!1)),b))},[e]),m=_.useCallback(()=>{var b;f.current&&((b=f.current)==null||b.abort(""),l(!1))},[]);return _.useEffect(()=>(t&&p(),()=>{f.current&&f.current.abort("")}),[p,t]),{data:i,loading:a,error:c,refetch:p,abort:m}}function Vi({path:e,autoInvoke:t=!0,initialLoading:r=!0}){const{fetchPath:n,options:s}=_.useMemo(()=>Be({path:Ie(e,"auth/user"),method:"GET"}),[e]),{data:i,loading:o,refetch:a,error:l}=Zr(n,{autoInvoke:t,initialLoading:r,...s});return{user:i,loading:o,refetch:a,error:l}}function Wi({path:e,queryParams:t,autoInvoke:r=!0,clearDataOnRefetch:n=!1}){const{fetchPath:s,options:i}=_.useMemo(()=>Be({path:Ie(e,"/"),method:"GET",queryParams:t}),[e,t]),{data:o,loading:a,refetch:l,error:c}=Zr(s,{autoInvoke:r,clearDataOnRefetch:n,...i});return{data:_.useMemo(()=>{if(!o)return null;const f=o.result.map((p,m)=>{const b=o.ids[m];return{...p,id:b}});return{...o,result:f}},[o]),loading:a,refetch:l,error:c}}const zc=async(e,t)=>{const{fetchPath:r,options:n}=Be({path:Ie(e,"/"),method:"POST",body:t}),s=await fetch(r,n);let i=null;const o=s.headers.get("content-type");if(o&&o.includes("application/json")?i=await s.json():i=await s.text(),!s.ok)throw typeof i=="object"?new Error(typeof i.detail=="string"?i.detail:JSON.stringify(i,null,2)):new Error(i);return i},Bc=async(e,t)=>{const{fetchPath:r,options:n}=Be({path:Ie(e,t.toString()),method:"DELETE"}),s=await fetch(r,n);let i=null;const o=s.headers.get("content-type");if(o&&o.includes("application/json")?i=await s.json():i=await s.text(),!s.ok)throw typeof i=="object"?new Error(typeof i.detail=="string"?i.detail:JSON.stringify(i,null,2)):new Error(i);return i},Uc=async(e,t)=>{const{fetchPath:r,options:n}=Be({path:Ie(e,t.toString()),method:"GET"}),s=await fetch(r,n);let i=null;const o=s.headers.get("content-type");if(o&&o.includes("application/json")?i=await s.json():i=await s.text(),!s.ok)throw typeof i=="object"?new Error(typeof i.detail=="string"?i.detail:JSON.stringify(i,null,2)):new Error(i);return i},Vc=async(e,t,r)=>{const{fetchPath:n,options:s}=Be({path:Ie(e,t.toString()),method:"PUT",body:r}),i=await fetch(n,s);let o=null;const a=i.headers.get("content-type");if(a&&a.includes("application/json")?o=await i.json():o=await i.text(),!i.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);return o},qe=e=>e&&typeof e=="object"?Array.isArray(e)?e.join(","):JSON.stringify(e):e,Wc={columns:[],filters:[],page:0,page_size:25};function Qr(e,t={}){return Object.entries(t).reduce((r,[n,s])=>s==null?(delete r[n],r):{...r,[n]:s},e||Wc)}const Gi=e=>{const t={};for(const r of e)switch(r.type){case"RelatedList":t[r.name]=[];break;case"Boolean":t[r.name]="false";break;case"Date":case"DateTime":case"Integer":case"Float":case"Geometry":case"Raw":case"Related":t[r.name]=void 0;break;default:t[r.name]=""}return t};function Mt(e){this._maxSize=e,this.clear()}Mt.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Mt.prototype.get=function(e){return this._values[e]},Mt.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Gc=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Hi=/^\d+$/,Hc=/^\d/,Yc=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,qc=/^\s*(['"]?)(.*?)(\1)\s*$/,ss=512,Yi=new Mt(ss),qi=new Mt(ss),Ji=new Mt(ss),Ft={Cache:Mt,split:os,normalizePath:is,setter:function(e){var t=is(e);return qi.get(e)||qi.set(e,function(n,s){for(var i=0,o=t.length,a=n;i<o-1;){var l=t[i];if(l==="__proto__"||l==="constructor"||l==="prototype")return n;a=a[t[i++]]}a[t[i]]=s})},getter:function(e,t){var r=is(e);return Ji.get(e)||Ji.set(e,function(s){for(var i=0,o=r.length;i<o;)if(s!=null||!t)s=s[r[i++]];else return;return s})},join:function(e){return e.reduce(function(t,r){return t+(as(r)||Hi.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){Jc(Array.isArray(e)?e:os(e),t,r)}};function is(e){return Yi.get(e)||Yi.set(e,os(e).map(function(t){return t.replace(qc,"$2")}))}function os(e){return e.match(Gc)||[""]}function Jc(e,t,r){var n=e.length,s,i,o,a;for(i=0;i<n;i++)s=e[i],s&&(Zc(s)&&(s='"'+s+'"'),a=as(s),o=!a&&/^\d+$/.test(s),t.call(r,s,a,o,i,e))}function as(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Kc(e){return e.match(Hc)&&!e.match(Hi)}function Xc(e){return Yc.test(e)}function Zc(e){return!as(e)&&(Kc(e)||Xc(e))}const Qc=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,en=e=>e.match(Qc)||[],tn=e=>e[0].toUpperCase()+e.slice(1),ls=(e,t)=>en(e).join(t).toLowerCase(),Ki=e=>en(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,"");var us={words:en,upperFirst:tn,camelCase:Ki,pascalCase:e=>tn(Ki(e)),snakeCase:e=>ls(e,"_"),kebabCase:e=>ls(e,"-"),sentenceCase:e=>tn(ls(e," ")),titleCase:e=>en(e).map(tn).join(" ")},cs={exports:{}};cs.exports=function(e){return Xi(ef(e),e)},cs.exports.array=Xi;function Xi(e,t){var r=e.length,n=new Array(r),s={},i=r,o=tf(t),a=rf(e);for(t.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)s[i]||l(e[i],i,new Set);return n;function l(c,d,f){if(f.has(c)){var p;try{p=", node was:"+JSON.stringify(c)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!s[d]){s[d]=!0;var m=o.get(c)||new Set;if(m=Array.from(m),d=m.length){f.add(c);do{var b=m[--d];l(b,a.get(b),f)}while(d);f.delete(c)}n[--r]=c}}}function ef(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var s=e[r];t.add(s[0]),t.add(s[1])}return Array.from(t)}function tf(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var s=e[r];t.has(s[0])||t.set(s[0],new Set),t.has(s[1])||t.set(s[1],new Set),t.get(s[0]).add(s[1])}return t}function rf(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var nf=cs.exports;const sf=_t(nf),of=Object.prototype.toString,af=Error.prototype.toString,lf=RegExp.prototype.toString,uf=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",cf=/^Symbol\((.*)\)(.*)$/;function ff(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Zi(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return ff(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return uf.call(e).replace(cf,"Symbol($1)");const n=of.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+af.call(e)+"]":n==="RegExp"?lf.call(e):null}function at(e,t){let r=Zi(e,t);return r!==null?r:JSON.stringify(e,function(n,s){let i=Zi(this[n],t);return i!==null?i:s},2)}function Qi(e){return e==null?[]:[].concat(e)}let eo,to,ro,df=/\$\{\s*(\w+)\s*\}/g;eo=Symbol.toStringTag;class no{constructor(t,r,n,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[eo]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=s,this.errors=[],this.inner=[],Qi(t).forEach(i=>{if(Ne.isError(i)){this.errors.push(...i.errors);const o=i.inner.length?i.inner:[i];this.inner.push(...o)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}to=Symbol.hasInstance,ro=Symbol.toStringTag;class Ne extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(df,(s,i)=>at(r[i])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,s,i){const o=new no(t,r,n,s);if(i)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[ro]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ne)}static[to](t){return no[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let lt={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const s=n!=null&&n!==r?` (cast from the value \`${at(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${at(r,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${at(r,!0)}\``+s}},Ge={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},St={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},fs={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ds={isValue:"${path} field must be ${value}"},ps={noUnknown:"${path} field has unspecified keys: ${unknown}"},rn={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},so={notType:e=>{const{path:t,value:r,spec:n}=e,s=n.types.length;if(Array.isArray(r)){if(r.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${r.length} for value: \`${at(r,!0)}\``;if(r.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${r.length} for value: \`${at(r,!0)}\``}return Ne.formatError(lt.notType,e)}};var io=Object.assign(Object.create(null),{mixed:lt,string:Ge,number:St,date:fs,object:ps,array:rn,boolean:ds,tuple:so});const Rt=e=>e&&e.__isYupSchema__;class nn{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:s,otherwise:i}=r,o=typeof n=="function"?n:(...a)=>a.every(l=>l===n);return new nn(t,(a,l)=>{var c;let d=o(...a)?s:i;return(c=d==null?void 0:d(l))!=null?c:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),s=this.fn(n,t,r);if(s===void 0||s===t)return t;if(!Rt(s))throw new TypeError("conditions must return a schema object");return s.resolve(r)}}const sn={context:"$",value:"."};function pf(e,t){return new wt(e,t)}class wt{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===sn.context,this.isValue=this.key[0]===sn.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?sn.context:this.isValue?sn.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Ft.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let s=this.isContext?n:this.isValue?t:r;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}wt.prototype.__isYupRef=!0;const nt=e=>e==null;function Ht(e){function t({value:r,path:n="",options:s,originalValue:i,schema:o},a,l){const{name:c,test:d,params:f,message:p,skipAbsent:m}=e;let{parent:b,context:T,abortEarly:v=o.spec.abortEarly,disableStackTrace:w=o.spec.disableStackTrace}=s;function A(I){return wt.isRef(I)?I.getValue(r,b,T):I}function j(I={}){const U=Object.assign({value:r,originalValue:i,label:o.spec.label,path:I.path||n,spec:o.spec,disableStackTrace:I.disableStackTrace||w},f,I.params);for(const re of Object.keys(U))U[re]=A(U[re]);const J=new Ne(Ne.formatError(I.message||p,U),r,U.path,I.type||c,U.disableStackTrace);return J.params=U,J}const O=v?a:l;let S={path:n,parent:b,type:c,from:s.from,createError:j,resolve:A,options:s,originalValue:i,schema:o};const P=I=>{Ne.isError(I)?O(I):I?l(null):O(j())},B=I=>{Ne.isError(I)?O(I):a(I)};if(m&&nt(r))return P(!0);let Q;try{var g;if(Q=d.call(S,r,S),typeof((g=Q)==null?void 0:g.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${S.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Q).then(P,B)}}catch(I){B(I);return}P(Q)}return t.OPTIONS=e,t}function hs(e,t,r,n=r){let s,i,o;return t?(Ft.forEach(t,(a,l,c)=>{let d=l?a.slice(1,a.length-1):a;e=e.resolve({context:n,parent:s,value:r});let f=e.type==="tuple",p=c?parseInt(d,10):0;if(e.innerType||f){if(f&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&p>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);s=r,r=r&&r[p],e=f?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);s=r,r=r&&r[d],e=e.fields[d]}i=d,o=l?"["+a+"]":"."+a}),{schema:e,parent:s,parentPath:i}):{parent:s,parentPath:t,schema:e}}function hf(e,t,r,n){return hs(e,t,r,n).schema}class on extends Set{describe(){const t=[];for(const r of this.values())t.push(wt.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new on(this.values())}merge(t,r){const n=this.clone();return t.forEach(s=>n.add(s)),r.forEach(s=>n.delete(s)),n}}function Yt(e,t=new Map){if(Rt(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=Yt(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,s]of e.entries())r.set(n,Yt(s,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(Yt(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,s]of Object.entries(e))r[n]=Yt(s,t)}else throw Error(`Unable to clone ${e}`);return r}class Le{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new on,this._blacklist=new on,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(lt.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Yt(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const s=Object.assign({},r.spec,n.spec);return n.spec=s,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(i=>{t.tests.forEach(o=>{i.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((s,i)=>i.resolve(s,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,s,i;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),s=r.assert==="ignore-optionality",i=n._cast(t,r);if(r.assert!==!1&&!n.isType(i)){if(s&&nt(i))return i;let o=at(t),a=at(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
27
+ <%s key={someKey} {...props} />`,le,re,st,re),Ut[re+le]=!0)}if(re=null,U!==void 0&&(r(U),re=""+U),d(W)&&(r(W.key),re=""+W.key),"key"in W){U={};for(var St in W)St!=="key"&&(U[St]=W[St])}else U=W;return re&&f(U,typeof T=="function"?T.displayName||T.name||"Unknown":T),m(T,re,ye,we,c(),U)}function v(T,W){if(typeof T=="object"&&T&&T.$$typeof!==dt){if(z(T))for(var U=0;U<T.length;U++){var le=T[U];b(le)&&E(le,W)}else if(b(T))T._store&&(T._store.validated=1);else if(T===null||typeof T!="object"?U=null:(U=V&&T[V]||T["@@iterator"],U=typeof U=="function"?U:null),typeof U=="function"&&U!==T.entries&&(U=U.call(T),U!==T))for(;!(T=U.next()).done;)b(T.value)&&E(T.value,W)}}function b(T){return typeof T=="object"&&T!==null&&T.$$typeof===A}function E(T,W){if(T._store&&!T._store.validated&&T.key==null&&(T._store.validated=1,W=P(W),!Nr[W])){Nr[W]=!0;var U="";T&&T._owner!=null&&T._owner!==c()&&(U=null,typeof T._owner.tag=="number"?U=e(T._owner.type):typeof T._owner.name=="string"&&(U=T._owner.name),U=" It was passed a child from "+U+".");var le=se.getCurrentStack;se.getCurrentStack=function(){var we=u(T.type);return le&&(we+=le()||""),we},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',W,U),se.getCurrentStack=le}}function P(T){var W="",U=c();return U&&(U=e(U.type))&&(W=`
28
+
29
+ Check the render method of \``+U+"`."),W||(T=e(T))&&(W=`
30
+
31
+ Check the top-level render call using <`+T+">."),W}var O=x,A=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),g=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),V=Symbol.iterator,ee=Symbol.for("react.client.reference"),se=O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=Object.prototype.hasOwnProperty,k=Object.assign,q=Symbol.for("react.client.reference"),z=Array.isArray,Y=0,B,X,N,te,ie,oe,Ae;n.__reactDisabledLog=!0;var D,ke,L=!1,He=new(typeof WeakMap=="function"?WeakMap:Map),dt=Symbol.for("react.client.reference"),nt,Bt={},Ut={},Nr={};pr.Fragment=$,pr.jsx=function(T,W,U,le,we){return y(T,W,U,!1,le,we)},pr.jsxs=function(T,W,U,le,we){return y(T,W,U,!0,le,we)}}()),pr}process.env.NODE_ENV==="production"?Ln.exports=Pc():Ln.exports=Ic();var l=Ln.exports;function Be({path:e,method:t,body:r=void 0,queryParams:n=void 0}){const s=Object.entries(n||{}).reduce((a,[u,c])=>((Array.isArray(c)||typeof c=="object")&&(c=JSON.stringify(c)),a[u]=c,a),{}),o=new Pt.createSearchParams(s);e=e+"?"+o;const i={method:t,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:r?JSON.stringify(r):null};return{fetchPath:e,options:i}}function Mc(e){const t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(let s=0;s<e.length;s++){let o=e[s];if(typeof o!="string")throw new TypeError("Url must be a string. Received "+o);o!==""&&(s>0&&(o=o.replace(/^[\/]+/,"")),s<e.length-1?o=o.replace(/[\/]+$/,""):o=o.replace(/[\/]+$/,"/"),t.push(o))}let r=t.join("/");r=r.replace(/\/(\?|&|#[^!])/g,"$1");const n=r.split("?");return r=n.shift()+(n.length>0?"?":"")+n.join("&"),r}function $e(...e){const t=Array.from(Array.isArray(e[0])?e[0]:e);return Mc(t)}function zr(e,{autoInvoke:t=!0,initialLoading:r=!1,clearDataOnRefetch:n=!1,...s}={}){const[o,i]=x.useState(null),[a,u]=x.useState(r),[c,d]=x.useState(null),f=x.useRef(null),p=x.useCallback(()=>{if(e)return n&&i(null),d(null),f.current&&f.current.abort(),f.current=new AbortController,u(!0),fetch(e,{signal:f.current.signal,...s}).then(async y=>{const v=await y.json();if(!y.ok){const b=typeof v.detail=="string"?v.detail:JSON.stringify(v.detail,null,2);throw new Error(b)}return i(v),u(!1),v}).catch(y=>(y&&y.name!=="AbortError"&&(d(y),u(!1)),y))},[e]),m=x.useCallback(()=>{var y;f.current&&((y=f.current)==null||y.abort(""),u(!1))},[]);return x.useEffect(()=>(t&&p(),()=>{f.current&&f.current.abort("")}),[p,t]),{data:o,loading:a,error:c,refetch:p,abort:m}}function Co({path:e,autoInvoke:t=!0,initialLoading:r=!0}){const{fetchPath:n,options:s}=x.useMemo(()=>Be({path:$e(e,"auth/user"),method:"GET"}),[e]),{data:o,loading:i,refetch:a,error:u}=zr(n,{autoInvoke:t,initialLoading:r,...s});return{user:o,loading:i,refetch:a,error:u}}function Ao({path:e,queryParams:t,autoInvoke:r=!0,clearDataOnRefetch:n=!1}){const{fetchPath:s,options:o}=x.useMemo(()=>Be({path:$e(e,"/"),method:"GET",queryParams:t}),[e,t]),{data:i,loading:a,refetch:u,error:c}=zr(s,{autoInvoke:r,clearDataOnRefetch:n,...o});return{data:x.useMemo(()=>{if(!i)return null;const f=i.result.map((p,m)=>{const y=i.ids[m];return{...p,id:y}});return{...i,result:f}},[i]),loading:a,refetch:u,error:c}}const Dc=async(e,t)=>{const{fetchPath:r,options:n}=Be({path:$e(e,"/"),method:"POST",body:t}),s=await fetch(r,n);let o=null;const i=s.headers.get("content-type");if(i&&i.includes("application/json")?o=await s.json():o=await s.text(),!s.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);return o},Nc=async(e,t)=>{const{fetchPath:r,options:n}=Be({path:$e(e,t.toString()),method:"DELETE"}),s=await fetch(r,n);let o=null;const i=s.headers.get("content-type");if(i&&i.includes("application/json")?o=await s.json():o=await s.text(),!s.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);return o},Fc=async(e,t)=>{const{fetchPath:r,options:n}=Be({path:$e(e,t.toString()),method:"GET"}),s=await fetch(r,n);let o=null;const i=s.headers.get("content-type");if(i&&i.includes("application/json")?o=await s.json():o=await s.text(),!s.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);return o},Rc=async(e,t,r)=>{const{fetchPath:n,options:s}=Be({path:$e(e,t.toString()),method:"PUT",body:r}),o=await fetch(n,s);let i=null;const a=o.headers.get("content-type");if(a&&a.includes("application/json")?i=await o.json():i=await o.text(),!o.ok)throw typeof i=="object"?new Error(typeof i.detail=="string"?i.detail:JSON.stringify(i,null,2)):new Error(i);return i},Je=e=>e&&typeof e=="object"?Array.isArray(e)?e.join(","):JSON.stringify(e):e,Lc={columns:[],filters:[],page:0,page_size:25};function Br(e,t={}){return Object.entries(t).reduce((r,[n,s])=>s==null?(delete r[n],r):{...r,[n]:s},e||Lc)}const Oo=e=>{const t={};for(const r of e)switch(r.type){case"RelatedList":t[r.name]=[];break;case"Boolean":t[r.name]="false";break;case"Date":case"DateTime":case"Integer":case"Float":case"Geometry":case"Raw":case"Related":t[r.name]=void 0;break;default:t[r.name]=""}return t};function Mt(e){this._maxSize=e,this.clear()}Mt.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Mt.prototype.get=function(e){return this._values[e]},Mt.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var zc=/[^.^\]^[]+|(?=\[\]|\.\.)/g,jo=/^\d+$/,Bc=/^\d/,Uc=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Vc=/^\s*(['"]?)(.*?)(\1)\s*$/,zn=512,$o=new Mt(zn),ko=new Mt(zn),Po=new Mt(zn),Dt={Cache:Mt,split:Un,normalizePath:Bn,setter:function(e){var t=Bn(e);return ko.get(e)||ko.set(e,function(n,s){for(var o=0,i=t.length,a=n;o<i-1;){var u=t[o];if(u==="__proto__"||u==="constructor"||u==="prototype")return n;a=a[t[o++]]}a[t[o]]=s})},getter:function(e,t){var r=Bn(e);return Po.get(e)||Po.set(e,function(s){for(var o=0,i=r.length;o<i;)if(s!=null||!t)s=s[r[o++]];else return;return s})},join:function(e){return e.reduce(function(t,r){return t+(Vn(r)||jo.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){Wc(Array.isArray(e)?e:Un(e),t,r)}};function Bn(e){return $o.get(e)||$o.set(e,Un(e).map(function(t){return t.replace(Vc,"$2")}))}function Un(e){return e.match(zc)||[""]}function Wc(e,t,r){var n=e.length,s,o,i,a;for(o=0;o<n;o++)s=e[o],s&&(Yc(s)&&(s='"'+s+'"'),a=Vn(s),i=!a&&/^\d+$/.test(s),t.call(r,s,a,i,o,e))}function Vn(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Gc(e){return e.match(Bc)&&!e.match(jo)}function Hc(e){return Uc.test(e)}function Yc(e){return!Vn(e)&&(Gc(e)||Hc(e))}const qc=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Ur=e=>e.match(qc)||[],Vr=e=>e[0].toUpperCase()+e.slice(1),Wn=(e,t)=>Ur(e).join(t).toLowerCase(),Io=e=>Ur(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,"");var Gn={words:Ur,upperFirst:Vr,camelCase:Io,pascalCase:e=>Vr(Io(e)),snakeCase:e=>Wn(e,"_"),kebabCase:e=>Wn(e,"-"),sentenceCase:e=>Vr(Wn(e," ")),titleCase:e=>Ur(e).map(Vr).join(" ")},Hn={exports:{}};Hn.exports=function(e){return Mo(Jc(e),e)},Hn.exports.array=Mo;function Mo(e,t){var r=e.length,n=new Array(r),s={},o=r,i=Kc(t),a=Xc(e);for(t.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)s[o]||u(e[o],o,new Set);return n;function u(c,d,f){if(f.has(c)){var p;try{p=", node was:"+JSON.stringify(c)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!s[d]){s[d]=!0;var m=i.get(c)||new Set;if(m=Array.from(m),d=m.length){f.add(c);do{var y=m[--d];u(y,a.get(y),f)}while(d);f.delete(c)}n[--r]=c}}}function Jc(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var s=e[r];t.add(s[0]),t.add(s[1])}return Array.from(t)}function Kc(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var s=e[r];t.has(s[0])||t.set(s[0],new Set),t.has(s[1])||t.set(s[1],new Set),t.get(s[0]).add(s[1])}return t}function Xc(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var Zc=Hn.exports;const Qc=Et(Zc),ef=Object.prototype.toString,tf=Error.prototype.toString,rf=RegExp.prototype.toString,nf=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",sf=/^Symbol\((.*)\)(.*)$/;function of(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Do(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return of(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return nf.call(e).replace(sf,"Symbol($1)");const n=ef.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+tf.call(e)+"]":n==="RegExp"?rf.call(e):null}function lt(e,t){let r=Do(e,t);return r!==null?r:JSON.stringify(e,function(n,s){let o=Do(this[n],t);return o!==null?o:s},2)}function No(e){return e==null?[]:[].concat(e)}let Fo,Ro,Lo,af=/\$\{\s*(\w+)\s*\}/g;Fo=Symbol.toStringTag;class zo{constructor(t,r,n,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Fo]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=s,this.errors=[],this.inner=[],No(t).forEach(o=>{if(Ne.isError(o)){this.errors.push(...o.errors);const i=o.inner.length?o.inner:[o];this.inner.push(...i)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Ro=Symbol.hasInstance,Lo=Symbol.toStringTag;class Ne extends Error{static formatError(t,r){const n=r.label||r.path||"this";return r=Object.assign({},r,{path:n,originalPath:r.path}),typeof t=="string"?t.replace(af,(s,o)=>lt(r[o])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,s,o){const i=new zo(t,r,n,s);if(o)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Lo]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ne)}static[Ro](t){return zo[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let ut={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const s=n!=null&&n!==r?` (cast from the value \`${lt(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${lt(r,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${lt(r,!0)}\``+s}},Ge={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ct={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Yn={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},qn={isValue:"${path} field must be ${value}"},Wr={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Gr={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Bo={notType:e=>{const{path:t,value:r,spec:n}=e,s=n.types.length;if(Array.isArray(r)){if(r.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${r.length} for value: \`${lt(r,!0)}\``;if(r.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${r.length} for value: \`${lt(r,!0)}\``}return Ne.formatError(ut.notType,e)}};var Uo=Object.assign(Object.create(null),{mixed:ut,string:Ge,number:Ct,date:Yn,object:Wr,array:Gr,boolean:qn,tuple:Bo});const Nt=e=>e&&e.__isYupSchema__;class Hr{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:s,otherwise:o}=r,i=typeof n=="function"?n:(...a)=>a.every(u=>u===n);return new Hr(t,(a,u)=>{var c;let d=i(...a)?s:o;return(c=d==null?void 0:d(u))!=null?c:u})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(o=>o.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),s=this.fn(n,t,r);if(s===void 0||s===t)return t;if(!Nt(s))throw new TypeError("conditions must return a schema object");return s.resolve(r)}}const Yr={context:"$",value:"."};function lf(e,t){return new At(e,t)}class At{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Yr.context,this.isValue=this.key[0]===Yr.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Yr.context:this.isValue?Yr.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Dt.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let s=this.isContext?n:this.isValue?t:r;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}At.prototype.__isYupRef=!0;const ot=e=>e==null;function Vt(e){function t({value:r,path:n="",options:s,originalValue:o,schema:i},a,u){const{name:c,test:d,params:f,message:p,skipAbsent:m}=e;let{parent:y,context:v,abortEarly:b=i.spec.abortEarly,disableStackTrace:E=i.spec.disableStackTrace}=s;function P(j){return At.isRef(j)?j.getValue(r,y,v):j}function O(j={}){const R=Object.assign({value:r,originalValue:o,label:i.spec.label,path:j.path||n,spec:i.spec,disableStackTrace:j.disableStackTrace||E},f,j.params);for(const ne of Object.keys(R))R[ne]=P(R[ne]);const Z=new Ne(Ne.formatError(j.message||p,R),r,R.path,j.type||c,R.disableStackTrace);return Z.params=R,Z}const A=b?a:u;let _={path:n,parent:y,type:c,from:s.from,createError:O,resolve:P,options:s,originalValue:o,schema:i};const $=j=>{Ne.isError(j)?A(j):j?u(null):A(O())},F=j=>{Ne.isError(j)?A(j):a(j)};if(m&&ot(r))return $(!0);let Q;try{var g;if(Q=d.call(_,r,_),typeof((g=Q)==null?void 0:g.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${_.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Q).then($,F)}}catch(j){F(j);return}$(Q)}return t.OPTIONS=e,t}function Jn(e,t,r,n=r){let s,o,i;return t?(Dt.forEach(t,(a,u,c)=>{let d=u?a.slice(1,a.length-1):a;e=e.resolve({context:n,parent:s,value:r});let f=e.type==="tuple",p=c?parseInt(d,10):0;if(e.innerType||f){if(f&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${i}" must contain an index to the tuple element, e.g. "${i}[0]"`);if(r&&p>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);s=r,r=r&&r[p],e=f?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${i} which is a type: "${e.type}")`);s=r,r=r&&r[d],e=e.fields[d]}o=d,i=u?"["+a+"]":"."+a}),{schema:e,parent:s,parentPath:o}):{parent:s,parentPath:t,schema:e}}function uf(e,t,r,n){return Jn(e,t,r,n).schema}class qr extends Set{describe(){const t=[];for(const r of this.values())t.push(At.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new qr(this.values())}merge(t,r){const n=this.clone();return t.forEach(s=>n.add(s)),r.forEach(s=>n.delete(s)),n}}function Wt(e,t=new Map){if(Nt(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=Wt(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,s]of e.entries())r.set(n,Wt(s,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(Wt(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,s]of Object.entries(e))r[n]=Wt(s,t)}else throw Error(`Unable to clone ${e}`);return r}class Fe{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new qr,this._blacklist=new qr,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ut.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Wt(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const s=Object.assign({},r.spec,n.spec);return n.spec=s,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(o=>{t.tests.forEach(i=>{o.test(i.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((s,o)=>o.resolve(s,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,s,o;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),s=r.assert==="ignore-optionality",o=n._cast(t,r);if(r.assert!==!1&&!n.isType(o)){if(s&&ot(o))return o;let i=lt(t),a=lt(o);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
31
32
 
32
- attempted value: ${o}
33
- `+(a!==o?`result of cast: ${a}`:""))}return i}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((s,i)=>i.call(this,s,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,s){let{path:i,originalValue:o=t,strict:a=this.spec.strict}=r,l=t;a||(l=this._cast(l,Object.assign({assert:!1},r)));let c=[];for(let d of Object.values(this.internalTests))d&&c.push(d);this.runTests({path:i,value:l,originalValue:o,options:r,tests:c},n,d=>{if(d.length)return s(d,l);this.runTests({path:i,value:l,originalValue:o,options:r,tests:this.tests},n,s)})}runTests(t,r,n){let s=!1,{tests:i,value:o,originalValue:a,path:l,options:c}=t,d=T=>{s||(s=!0,r(T,o))},f=T=>{s||(s=!0,n(T,o))},p=i.length,m=[];if(!p)return f([]);let b={value:o,originalValue:a,path:l,options:c,schema:this};for(let T=0;T<i.length;T++){const v=i[T];v(b,d,function(A){A&&(Array.isArray(A)?m.push(...A):m.push(A)),--p<=0&&f(m)})}}asNestedTest({key:t,index:r,parent:n,parentPath:s,originalParent:i,options:o}){const a=t??r;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof a=="number";let c=n[a];const d=Object.assign({},o,{strict:!0,parent:n,value:c,originalValue:i[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${s||""}[${l?a:`"${a}"`}]`:(s?`${s}.`:"")+t});return(f,p,m)=>this.resolve(d)._validate(c,d,p,m)}validate(t,r){var n;let s=this.resolve(Object.assign({},r,{value:t})),i=(n=r==null?void 0:r.disableStackTrace)!=null?n:s.spec.disableStackTrace;return new Promise((o,a)=>s._validate(t,r,(l,c)=>{Ne.isError(l)&&(l.value=c),a(l)},(l,c)=>{l.length?a(new Ne(l,c,void 0,void 0,i)):o(c)}))}validateSync(t,r){var n;let s=this.resolve(Object.assign({},r,{value:t})),i,o=(n=r==null?void 0:r.disableStackTrace)!=null?n:s.spec.disableStackTrace;return s._validate(t,Object.assign({},r,{sync:!0}),(a,l)=>{throw Ne.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new Ne(a,t,void 0,void 0,o);i=l}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Ne.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Ne.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Yt(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Ht({message:r,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Ht({message:r,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=lt.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=lt.notNull){return this.nullability(!1,t)}required(t=lt.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=lt.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),s=Ht(r),i=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(i||o.OPTIONS.test===s.OPTIONS.test))),n.tests.push(s),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),s=Qi(t).map(i=>new wt(i));return s.forEach(i=>{i.isSibling&&n.deps.push(i.key)}),n.conditions.push(typeof r=="function"?new nn(s,r):nn.fromOptions(s,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Ht({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=lt.oneOf){let n=this.clone();return t.forEach(s=>{n._whitelist.add(s),n._blacklist.delete(s)}),n.internalTests.whiteList=Ht({message:r,name:"oneOf",skipAbsent:!0,test(s){let i=this.schema._whitelist,o=i.resolveAll(this.resolve);return o.includes(s)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:o}})}}),n}notOneOf(t,r=lt.notOneOf){let n=this.clone();return t.forEach(s=>{n._blacklist.add(s),n._whitelist.delete(s)}),n.internalTests.blacklist=Ht({message:r,name:"notOneOf",test(s){let i=this.schema._blacklist,o=i.resolveAll(this.resolve);return o.includes(s)?this.createError({params:{values:Array.from(i).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:s,optional:i,nullable:o}=r.spec;return{meta:s,label:n,optional:i,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,d)=>d.findIndex(f=>f.name===l.name)===c)}}}Le.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Le.prototype[`${e}At`]=function(t,r,n={}){const{parent:s,parentPath:i,schema:o}=hs(this,t,r,n.context);return o[e](s&&s[i],Object.assign({},n,{parent:s,path:t}))};for(const e of["equals","is"])Le.prototype[e]=Le.prototype.oneOf;for(const e of["not","nope"])Le.prototype[e]=Le.prototype.notOneOf;const mf=()=>!0;function an(e){return new ms(e)}class ms extends Le{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:mf},t))}}an.prototype=ms.prototype;function gs(){return new ys}class ys extends Le{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=ds.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return nt(r)||r===!0}})}isFalse(t=ds.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return nt(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}gs.prototype=ys.prototype;const gf=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function yf(e){const t=bs(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function bs(e){var t,r;const n=gf.exec(e);return n?{year:ft(n[1]),month:ft(n[2],1)-1,day:ft(n[3],1),hour:ft(n[4]),minute:ft(n[5]),second:ft(n[6]),millisecond:n[7]?ft(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:ft(n[10]),minuteOffset:ft(n[11])}:null}function ft(e,t=0){return Number(e)||t}let bf=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vf=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,xf=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Tf="^\\d{4}-\\d{2}-\\d{2}",_f="\\d{2}:\\d{2}:\\d{2}",Sf="(([+-]\\d{2}(:?\\d{2})?)|Z)",wf=new RegExp(`${Tf}T${_f}(\\.\\d+)?${Sf}$`),Cf=e=>nt(e)||e===e.trim(),Ef={}.toString();function ln(){return new vs}class vs extends Le{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===Ef?t:s})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||lt.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Ge.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Ge.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Ge.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,s,i;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:s,name:i}=r:s=r),this.test({name:i||"matches",message:s||Ge.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=Ge.email){return this.matches(bf,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ge.url){return this.matches(vf,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ge.uuid){return this.matches(xf,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,s;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:s=void 0}=t:r=t),this.matches(wf,{name:"datetime",message:r||Ge.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Ge.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:i=>{if(!i||n)return!0;const o=bs(i);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||Ge.datetime_precision,params:{precision:s},skipAbsent:!0,test:i=>{if(!i||s==null)return!0;const o=bs(i);return o?o.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ge.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Cf})}lowercase(t=Ge.lowercase){return this.transform(r=>nt(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>nt(r)||r===r.toLowerCase()})}uppercase(t=Ge.uppercase){return this.transform(r=>nt(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>nt(r)||r===r.toUpperCase()})}}ln.prototype=vs.prototype;let Af=e=>e!=+e;function oo(){return new xs}class xs extends Le{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Af(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let s=t;if(typeof s=="string"){if(s=s.replace(/\s/g,""),s==="")return NaN;s=+s}return n.isType(s)||s===null?s:parseFloat(s)})})}min(t,r=St.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=St.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=St.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=St.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=St.positive){return this.moreThan(0,t)}negative(t=St.negative){return this.lessThan(0,t)}integer(t=St.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>nt(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(s=>nt(s)?s:Math[t](s))}}oo.prototype=xs.prototype;let ao=new Date(""),Of=e=>Object.prototype.toString.call(e)==="[object Date]";function Ts(){return new qt}class qt extends Le{constructor(){super({type:"date",check(t){return Of(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=yf(t),isNaN(t)?qt.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(wt.isRef(t))n=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=s}return n}min(t,r=fs.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(n)}})}max(t,r=fs.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(n)}})}}qt.INVALID_DATE=ao,Ts.prototype=qt.prototype,Ts.INVALID_DATE=ao;function jf(e,t=[]){let r=[],n=new Set,s=new Set(t.map(([o,a])=>`${o}-${a}`));function i(o,a){let l=Ft.split(o)[0];n.add(l),s.has(`${a}-${l}`)||r.push([a,l])}for(const o of Object.keys(e)){let a=e[o];n.add(o),wt.isRef(a)&&a.isSibling?i(a.path,o):Rt(a)&&"deps"in a&&a.deps.forEach(l=>i(l,o))}return sf.array(Array.from(n),r).reverse()}function lo(e,t){let r=1/0;return e.some((n,s)=>{var i;if((i=t.path)!=null&&i.includes(n))return r=s,!0}),r}function uo(e){return(t,r)=>lo(e,t)-lo(e,r)}const co=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function un(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=un(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=un(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(un)}):"optional"in e?e.optional():e}const $f=(e,t)=>{const r=[...Ft.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),s=Ft.getter(Ft.join(r),!0)(e);return!!(s&&n in s)};let fo=e=>Object.prototype.toString.call(e)==="[object Object]";function Pf(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const kf=uo([]);function _r(e){return new _s(e)}class _s extends Le{constructor(t){super({type:"object",check(r){return fo(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=kf,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let s=super._cast(t,r);if(s===void 0)return this.getDefault(r);if(!this._typeCheck(s))return s;let i=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(s).filter(f=>!this._nodes.includes(f))),l={},c=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),d=!1;for(const f of a){let p=i[f],m=f in s;if(p){let b,T=s[f];c.path=(r.path?`${r.path}.`:"")+f,p=p.resolve({value:T,context:r.context,parent:l});let v=p instanceof Le?p.spec:void 0,w=v==null?void 0:v.strict;if(v!=null&&v.strip){d=d||f in s;continue}b=!r.__validating||!w?p.cast(s[f],c):s[f],b!==void 0&&(l[f]=b)}else m&&!o&&(l[f]=s[f]);(m!==f in l||l[f]!==s[f])&&(d=!0)}return d?l:s}_validate(t,r={},n,s){let{from:i=[],originalValue:o=t,recursive:a=this.spec.recursive}=r;r.from=[{schema:this,value:o},...i],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(l,c)=>{if(!a||!fo(c)){s(l,c);return}o=o||c;let d=[];for(let f of this._nodes){let p=this.fields[f];!p||wt.isRef(p)||d.push(p.asNestedTest({options:r,key:f,parent:c,parentPath:r.path,originalParent:o}))}this.runTests({tests:d,value:c,originalValue:o,options:r},n,f=>{s(f.sort(this._sortErrors).concat(l),c)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[s,i]of Object.entries(this.fields)){const o=n[s];n[s]=o===void 0?i:o}return r.withMutation(s=>s.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var s;const i=this.fields[n];let o=t;(s=o)!=null&&s.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=i&&"getDefault"in i?i.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=jf(t,r),n._sortErrors=uo(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let s=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),s=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),s)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return un(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,s])=>t.includes(n)&&t.includes(s)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let s=Ft.getter(t,!0);return this.transform(i=>{if(!i)return i;let o=i;return $f(i,t)&&(o=Object.assign({},i),n||delete o[t],o[r]=s(i)),o})}json(){return this.transform(co)}noUnknown(t=!0,r=ps.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(s){if(s==null)return!0;const i=Pf(this.schema,s);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=ps.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const s of Object.keys(r))n[t(s)]=r[s];return n})}camelCase(){return this.transformKeys(us.camelCase)}snakeCase(){return this.transformKeys(us.snakeCase)}constantCase(){return this.transformKeys(t=>us.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[i,o]of Object.entries(r.fields)){var s;let a=t;(s=a)!=null&&s.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[i]})),n.fields[i]=o.describe(a)}return n}}_r.prototype=_s.prototype;function Ss(e){return new ws(e)}class ws extends Le{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let s=!1;const i=n.map((o,a)=>{const l=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${a}]`}));return l!==o&&(s=!0),l});return s?i:n}_validate(t,r={},n,s){var i;let o=this.innerType,a=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(l,c)=>{var d;if(!a||!o||!this._typeCheck(c)){s(l,c);return}let f=new Array(c.length);for(let m=0;m<c.length;m++){var p;f[m]=o.asNestedTest({options:r,index:m,parent:c,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:t})}this.runTests({value:c,tests:f,originalValue:(d=r.originalValue)!=null?d:t,options:r},n,m=>s(m.concat(l),c))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(co)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!Rt(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+at(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=rn.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||rn.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||rn.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,s,i)=>!t(n,s,i):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var s;let i=t;(s=i)!=null&&s.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=r.innerType.describe(i)}return n}}Ss.prototype=ws.prototype;function po(e){return new Cs(e)}class Cs extends Le{constructor(t){super({type:"tuple",spec:{types:t},check(r){const n=this.spec.types;return Array.isArray(r)&&r.length===n.length}}),this.withMutation(()=>{this.typeError(so.notType)})}_cast(t,r){const{types:n}=this.spec,s=super._cast(t,r);if(!this._typeCheck(s))return s;let i=!1;const o=n.map((a,l)=>{const c=a.cast(s[l],Object.assign({},r,{path:`${r.path||""}[${l}]`}));return c!==s[l]&&(i=!0),c});return i?o:s}_validate(t,r={},n,s){let i=this.spec.types;super._validate(t,r,n,(o,a)=>{var l;if(!this._typeCheck(a)){s(o,a);return}let c=[];for(let[f,p]of i.entries()){var d;c[f]=p.asNestedTest({options:r,index:f,parent:a,parentPath:r.path,originalParent:(d=r.originalValue)!=null?d:t})}this.runTests({value:a,tests:c,originalValue:(l=r.originalValue)!=null?l:t,options:r},n,f=>s(f.concat(o),a))})}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);return n.innerType=r.spec.types.map((s,i)=>{var o;let a=t;return(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[i]})),s.describe(a)}),n}}po.prototype=Cs.prototype;function If(e){return new Es(e)}class Es{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let s=this.builder(r,n);if(!Rt(s))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(s=s.optional()),s.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new Es(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:s,options:i}=t,o=s[n??r];return this._resolve(o,Object.assign({},i,{value:o,parent:s})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}function Df(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{io[t][r]=e[t][r]})})}function Mf(e,t,r){if(!e||!Rt(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof r!="function")throw new TypeError("Method function must be provided");e.prototype[t]=r}const ho=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:ws,BooleanSchema:ys,DateSchema:qt,MixedSchema:ms,NumberSchema:xs,ObjectSchema:_s,Schema:Le,StringSchema:vs,TupleSchema:Cs,ValidationError:Ne,addMethod:Mf,array:Ss,bool:gs,boolean:gs,date:Ts,defaultLocale:io,getIn:hs,isSchema:Rt,lazy:If,mixed:an,number:oo,object:_r,printValue:at,reach:hf,ref:pf,setLocale:Df,string:ln,tuple:po},Symbol.toStringTag,{value:"Module"})),mo=e=>{const t=e.reduce((r,n)=>{let{name:s,required:i,type:o}=n;switch(o){case"RelatedList":o="array";break;case"Related":o="object";break;case"Integer":case"Float":o="number";break;case"Geometry":case"Raw":o="mixed";break;default:o="string"}let a;try{i?a=ho[o]().typeError(`Field must be of type ${o}`).required("Field is required"):a=ho[o]().typeError(`Field must be of type ${o}`).nullable(!0)}catch(l){console.log(l)}return r[s]=a,r},{});return _r().shape(t)},go=e=>!e&&typeof e!="boolean"&&typeof e!="number"?null:typeof e=="boolean"?e.toString():Array.isArray(e)?e.map(t=>t.name_||JSON.stringify(t,null,2)).join(", "):typeof e=="object"?e.name_||JSON.stringify(e):e;function yo({path:e,autoInvoke:t=!0,clearDataOnRefetch:r=!1}){const{fetchPath:n,options:s}=_.useMemo(()=>Be({path:Ie(e,"_info"),method:"GET"}),[e]),{data:i,loading:o,refetch:a,error:l}=Zr(n,{autoInvoke:t,clearDataOnRefetch:r,...s});return{info:_.useMemo(()=>i?{...i,add:{columns:i.add_columns,title:i.add_title,schema:mo(i.add_columns),defaultValues:Gi(i.add_columns)},edit:{columns:i.edit_columns,title:i.edit_title,schema:mo(i.edit_columns),defaultValues:Gi(i.edit_columns)}}:null,[i]),loading:o,refetch:a,error:l}}const bo={user:null,loading:!0,error:null};function Ff(e,t){switch(t.type){case"initCall":return{...bo,user:e.user};case"setUser":return{...e,user:t.payload,error:null};case"setError":return{...e,loading:!1,error:t.payload};case"setLoading":return{...e,loading:t.payload};default:return e}}function Rf(e){const[t,r]=_.useReducer(Ff,bo),{user:n,refetch:s,loading:i}=Vi({path:e});_.useEffect(()=>{r({type:"setLoading",payload:i})},[i]),_.useEffect(()=>{r({type:"setUser",payload:n})},[n]);const o=_.useCallback(async({username:f,password:p})=>{r({type:"initCall"});try{const m=new FormData;m.append("username",f),m.append("password",p);const{fetchPath:b,options:T}=Be({path:Ie(e,"auth/login"),method:"POST"}),v=await fetch(b,{...T,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(m)});v.ok||(v.status===400?r({type:"setError",payload:"Username or password wrong."}):r({type:"setError",payload:"Couldn't sign in user"})),s()}catch(m){console.error("signin error",m),r({type:"setError",payload:"Failed to fetch"})}},[e,s]),a=_.useCallback(async()=>{r({type:"initCall"});try{const{fetchPath:f,options:p}=Be({path:Ie(e,"auth/logout"),method:"POST"});(await fetch(f,p)).ok||r({type:"setError",payload:"Couldn't sign out user"}),r({type:"setUser",payload:null})}catch(f){console.error("signout error",f),r({type:"setError",payload:"Failed to fetch"})}finally{r({type:"setLoading",payload:!1})}},[e]),l=_.useCallback(async f=>{r({type:"initCall"});try{const{fetchPath:p,options:m}=Be({path:Ie(e,"auth/user"),method:"PUT",body:f});(await fetch(p,m)).ok||r({type:"setError",payload:"Couldn't update user data"}),s()}catch(p){console.error("update error",p),r({type:"setError",payload:"Failed to post"})}},[e,s]),c=_.useCallback(async f=>{if(!n.email)return r({type:"setError",payload:"No email found"});try{const{fetchPath:p,options:m}=Be({path:Ie(e,"auth/forgot-password"),method:"POST",body:{email:n.email}}),b=await fetch(p,m);if(!b.ok){r({type:"setError",payload:"Couldn't request token to reset password"});return}const T=await b.json(),{token:v}=T,{fetchPath:w,options:A}=Be({path:Ie(e,"auth/reset-password"),method:"POST",body:{token:v,password:f}});if(!(await fetch(w,A)).ok){r({type:"setError",payload:"Couldn't reset password"});return}s()}catch(p){console.error("resetPassword error",p),r({type:"setError",payload:"Failed to post"})}},[e,s,n==null?void 0:n.email]),d=_.useCallback((f,p)=>{const m=Ie(e,"auth/login",f);if(p){const v=window.screenLeft+window.outerWidth/2-250,w=window.screenTop+window.outerHeight/2-500/2,A=window.open(m+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${w}, left=${v}`),j=window.setInterval(function(){A.closed!==!1&&(window.clearInterval(j),s())},200);return}window.location.href=Ie(e,"auth/login",f)},[e,s]);return{user:t.user,loading:t.loading,error:t.error,signin:o,signout:a,update:l,resetPassword:c,oauth_signin:d,refetch:s}}function Nf(e,t){const{user:r}=t,[n,s]=_.useState(null),[i,o]=_.useState(!0),[a,l]=_.useState({error:"401 Not authorized",message:"User is not logged in."});_.useEffect(()=>{r&&c(e)},[r]);const c=async d=>{o(!0);try{const{fetchPath:f,options:p}=Be({path:Ie(d,"info/"),method:"GET"}),m=await fetch(f,p);if(m.ok){const b=await m.json();s(b)}else l({error:"404 Not Found",message:"Couldn't fetch info"})}catch{l({error:"Network error",message:"Failed to fetch"})}finally{o(!1)}};return{info:n,loading:i,error:a}}const As=_.createContext({auth:{user:null,loading:!1,error:null,signin:async(e,t)=>null,signout:async()=>null,update:async e=>null,resetPassword:async e=>null,oauth_signin:(e,t)=>null,refetch:async()=>null},info:{info:null,loading:!1,error:null}});function vo(){return _.useContext(As).auth}function xo(){return _.useContext(As).info}function Lf(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:r,children:n}={...t,...e},s=Rf(r),i={baseUrl:r,...Nf(r,s)};return u.jsx(As.Provider,{value:{auth:s,info:i},children:n})}const zf=async(e,t,r)=>{const{fetchPath:n,options:s}=Be({path:Ie(t,"/download"),method:"POST"}),i=await fetch(n,{...s,body:JSON.stringify(r)});let o=null;const a=i.headers.get("content-type");if(a&&a.includes("application/json")?o=await i.json():o=await i.blob(),!i.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);const l=document.createElement("a"),c=URL.createObjectURL(o);l.href=c,l.download=e.toLowerCase()+".csv",l.click()};function Bf({path:e,initialQueryParams:t,relation:r,fetchInfo:n=!0,clearInfoOnRefetch:s=!1,clearDataOnRefetch:i=!1,resetQueryParamsOnPathChange:o=!0,streaming:a=!1}){const[l,c]=_.useState(t?Qr(null,t):null),d=_.useMemo(()=>r?{...l,filters:[...l.filters,{col:r.foreign_key,opr:r.type,value:qe(r.id)}]}:l,[r,l]),f=_.useCallback(H=>c(te=>{if(typeof H=="function"&&(H=H(te)),!te)return Qr(null,H);const ae=Qr({...te},H);if((H.filters||H.order_column||H.order_direction)&&!H.page&&(ae.page=0),a){if(H.page&&H.page!==te.page&&!H.streaming)throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");if(H.page_size&&H.page_size!==te.page_size)throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead")}return ae}),[a]),[p,m]=_.useState(null),b=_.useMemo(()=>p,[p]),T=_.useCallback(()=>m(null),[]),{info:v,loading:w,refetch:A,error:j}=yo({path:e,autoInvoke:n,clearDataOnRefetch:s}),{data:O,loading:S,refetch:P,error:B}=Wi({path:e,queryParams:d,autoInvoke:!1,clearDataOnRefetch:i});_.useEffect(()=>{d&&P()},[P,d]),_.useEffect(()=>{if(j){m({message:"Couldn't fetch info",originalError:j});return}if(B){m({message:"Couldn't fetch list",originalError:B});return}T()},[j,B,T]);const Y=_.useMemo(()=>w||S,[w,S]);ke.useDidUpdate(()=>{if(!o)return;const H=Qr(null,t);l!=null&&l.page_size&&(H.page_size=l.page_size),f(H)},[e]);const Q=_.useCallback(async H=>{try{const te=await Uc(e,qe(H));return T(),te}catch(te){m({message:`Couldn't fetch item with id ${H}`,originalError:te})}},[e,T]),g=_.useCallback(async(H,te)=>{try{const ae=await zc(e,H);return te||(A(),P()),T(),ae}catch(ae){m({message:"Couldn't add item",originalError:ae})}},[P,A,e,T]),I=_.useCallback(async(H,te,ae)=>{try{const E=await Vc(e,qe(H),te);return ae||(A(),P()),T(),E}catch(E){m({message:`Couldn't update item with id ${H}`,originalError:E})}},[P,A,e,T]),U=_.useCallback(async(H,te)=>{try{const ae=await Bc(e,qe(H));return te||(A(),P()),T(),ae}catch(ae){m({message:`Couldn't delete item with id ${H}`,originalError:ae})}},[P,A,e,T]),J=_.useCallback(async H=>{try{await zf(H,e,d)}catch(te){m({message:"Couldn't download",originalError:te})}},[e,d]),[re,ce]=ke.useSetState({data:{},isEnd:!1,fetch:()=>{throw new Error("Streaming mode not enabled, enable it by adding `streaming` prop to ApiProvider")}});_.useEffect(()=>{a&&ce({fetch:()=>f({page:0,streaming:!0})})},[f,ce,a]),_.useEffect(()=>{a&&O&&ce(H=>{let te=Object.keys(H.data).length;const ae={isEnd:!1};return d.page<te?(te=d.page,ae.data={[d.page]:O.result}):ae.data={...H.data,[d.page]:O.result},O.result.length<d.page_size?(ae.isEnd=!0,ae.fetch=()=>null):ae.fetch=()=>f({page:te+1,streaming:!0}),ae})},[O,f,ce,a]);const he=_.useMemo(()=>{const H={all:"all",actions:"actions"};return O==null||O.list_columns.forEach(te=>{H[te]&&(H[te]=`_${te}`)}),H},[O==null?void 0:O.list_columns]);return{path:e,data:O,info:v,queryParams:d,loading:Y,error:b,streaming:re,specialKey:he,setQueryParams:f,refetch:P,refetchInfo:A,getEntry:Q,addEntry:g,updateEntry:I,deleteEntry:U,download:J}}const Uf=async(e,t,r)=>{const{fetchPath:n,options:s}=Be({path:Ie(e,"/bulk",t),method:"POST",body:r}),i=await fetch(n,s);let o=null;const a=i.headers.get("content-type");if(a&&a.includes("application/json")?o=await i.json():o=await i.text(),!i.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);return o},Vf=({Api:e})=>{const[t,r]=_.useState([]),[n,s]=_.useState(null),i=_.useCallback(async(a,l)=>{try{s(null);const c=await Uf(e.path,a,t);return l?void 0:(e.refetch(),c)}catch(c){console.error(c),s({message:"Couldn't perform bulk action",originalError:c})}},[e,t]);return{bulkActions:_.useMemo(()=>({selectedIds:t,setSelectedIds:r}),[t,r]),dispatchBulkActions:i,error:n}},Os=_.createContext({Api:{path:"",data:null,info:null,queryParams:null,loading:!1,error:null,streaming:null,specialKey:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,r)=>({}),deleteEntry:async(e,t)=>({}),download:async e=>null},BulkActions:{bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null}});function pe(){const e=_.useContext(Os);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e.Api}function Wf(){const e=_.useContext(Os);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e.BulkActions}function To({resource_name:e="",initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:s,clearDataOnRefetch:i,resetQueryParamsOnPathChange:o,children:a,streaming:l}){const{baseUrl:c}=xo(),d=Bf({path:Ie(c,e),initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:s,clearDataOnRefetch:i,resetQueryParamsOnPathChange:o,streaming:l}),f=Vf({path:Ie(c,e),Api:d});return u.jsx(Os.Provider,{value:{Api:d,BulkActions:f},children:a})}/**
34
- * @license @tabler/icons-react v3.22.0 - MIT
33
+ attempted value: ${i}
34
+ `+(a!==i?`result of cast: ${a}`:""))}return o}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((s,o)=>o.call(this,s,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,s){let{path:o,originalValue:i=t,strict:a=this.spec.strict}=r,u=t;a||(u=this._cast(u,Object.assign({assert:!1},r)));let c=[];for(let d of Object.values(this.internalTests))d&&c.push(d);this.runTests({path:o,value:u,originalValue:i,options:r,tests:c},n,d=>{if(d.length)return s(d,u);this.runTests({path:o,value:u,originalValue:i,options:r,tests:this.tests},n,s)})}runTests(t,r,n){let s=!1,{tests:o,value:i,originalValue:a,path:u,options:c}=t,d=v=>{s||(s=!0,r(v,i))},f=v=>{s||(s=!0,n(v,i))},p=o.length,m=[];if(!p)return f([]);let y={value:i,originalValue:a,path:u,options:c,schema:this};for(let v=0;v<o.length;v++){const b=o[v];b(y,d,function(P){P&&(Array.isArray(P)?m.push(...P):m.push(P)),--p<=0&&f(m)})}}asNestedTest({key:t,index:r,parent:n,parentPath:s,originalParent:o,options:i}){const a=t??r;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof a=="number";let c=n[a];const d=Object.assign({},i,{strict:!0,parent:n,value:c,originalValue:o[a],key:void 0,[u?"index":"key"]:a,path:u||a.includes(".")?`${s||""}[${u?a:`"${a}"`}]`:(s?`${s}.`:"")+t});return(f,p,m)=>this.resolve(d)._validate(c,d,p,m)}validate(t,r){var n;let s=this.resolve(Object.assign({},r,{value:t})),o=(n=r==null?void 0:r.disableStackTrace)!=null?n:s.spec.disableStackTrace;return new Promise((i,a)=>s._validate(t,r,(u,c)=>{Ne.isError(u)&&(u.value=c),a(u)},(u,c)=>{u.length?a(new Ne(u,c,void 0,void 0,o)):i(c)}))}validateSync(t,r){var n;let s=this.resolve(Object.assign({},r,{value:t})),o,i=(n=r==null?void 0:r.disableStackTrace)!=null?n:s.spec.disableStackTrace;return s._validate(t,Object.assign({},r,{sync:!0}),(a,u)=>{throw Ne.isError(a)&&(a.value=u),a},(a,u)=>{if(a.length)throw new Ne(a,t,void 0,void 0,i);o=u}),o}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Ne.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Ne.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Wt(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Vt({message:r,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Vt({message:r,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=ut.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ut.notNull){return this.nullability(!1,t)}required(t=ut.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=ut.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),s=Vt(r),o=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(i=>!(i.OPTIONS.name===r.name&&(o||i.OPTIONS.test===s.OPTIONS.test))),n.tests.push(s),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),s=No(t).map(o=>new At(o));return s.forEach(o=>{o.isSibling&&n.deps.push(o.key)}),n.conditions.push(typeof r=="function"?new Hr(s,r):Hr.fromOptions(s,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Vt({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=ut.oneOf){let n=this.clone();return t.forEach(s=>{n._whitelist.add(s),n._blacklist.delete(s)}),n.internalTests.whiteList=Vt({message:r,name:"oneOf",skipAbsent:!0,test(s){let o=this.schema._whitelist,i=o.resolveAll(this.resolve);return i.includes(s)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:i}})}}),n}notOneOf(t,r=ut.notOneOf){let n=this.clone();return t.forEach(s=>{n._blacklist.add(s),n._whitelist.delete(s)}),n.internalTests.blacklist=Vt({message:r,name:"notOneOf",test(s){let o=this.schema._blacklist,i=o.resolveAll(this.resolve);return i.includes(s)?this.createError({params:{values:Array.from(o).join(", "),resolved:i}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:s,optional:o,nullable:i}=r.spec;return{meta:s,label:n,optional:o,nullable:i,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,c,d)=>d.findIndex(f=>f.name===u.name)===c)}}}Fe.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Fe.prototype[`${e}At`]=function(t,r,n={}){const{parent:s,parentPath:o,schema:i}=Jn(this,t,r,n.context);return i[e](s&&s[o],Object.assign({},n,{parent:s,path:t}))};for(const e of["equals","is"])Fe.prototype[e]=Fe.prototype.oneOf;for(const e of["not","nope"])Fe.prototype[e]=Fe.prototype.notOneOf;const cf=()=>!0;function Jr(e){return new Kn(e)}class Kn extends Fe{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:cf},t))}}Jr.prototype=Kn.prototype;function Xn(){return new Zn}class Zn extends Fe{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=qn.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return ot(r)||r===!0}})}isFalse(t=qn.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return ot(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}Xn.prototype=Zn.prototype;const ff=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function df(e){const t=Qn(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function Qn(e){var t,r;const n=ff.exec(e);return n?{year:yt(n[1]),month:yt(n[2],1)-1,day:yt(n[3],1),hour:yt(n[4]),minute:yt(n[5]),second:yt(n[6]),millisecond:n[7]?yt(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:yt(n[10]),minuteOffset:yt(n[11])}:null}function yt(e,t=0){return Number(e)||t}let pf=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,hf=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,mf=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,gf="^\\d{4}-\\d{2}-\\d{2}",yf="\\d{2}:\\d{2}:\\d{2}",bf="(([+-]\\d{2}(:?\\d{2})?)|Z)",vf=new RegExp(`${gf}T${yf}(\\.\\d+)?${bf}$`),xf=e=>ot(e)||e===e.trim(),Tf={}.toString();function Kr(){return new es}class es extends Fe{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===Tf?t:s})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||ut.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Ge.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Ge.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Ge.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,s,o;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:s,name:o}=r:s=r),this.test({name:o||"matches",message:s||Ge.matches,params:{regex:t},skipAbsent:!0,test:i=>i===""&&n||i.search(t)!==-1})}email(t=Ge.email){return this.matches(pf,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ge.url){return this.matches(hf,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ge.uuid){return this.matches(mf,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,s;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:s=void 0}=t:r=t),this.matches(vf,{name:"datetime",message:r||Ge.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Ge.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:o=>{if(!o||n)return!0;const i=Qn(o);return i?!!i.z:!1}}).test({name:"datetime_precision",message:r||Ge.datetime_precision,params:{precision:s},skipAbsent:!0,test:o=>{if(!o||s==null)return!0;const i=Qn(o);return i?i.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ge.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:xf})}lowercase(t=Ge.lowercase){return this.transform(r=>ot(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ot(r)||r===r.toLowerCase()})}uppercase(t=Ge.uppercase){return this.transform(r=>ot(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ot(r)||r===r.toUpperCase()})}}Kr.prototype=es.prototype;let Sf=e=>e!=+e;function Vo(){return new ts}class ts extends Fe{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Sf(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let s=t;if(typeof s=="string"){if(s=s.replace(/\s/g,""),s==="")return NaN;s=+s}return n.isType(s)||s===null?s:parseFloat(s)})})}min(t,r=Ct.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=Ct.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=Ct.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=Ct.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=Ct.positive){return this.moreThan(0,t)}negative(t=Ct.negative){return this.lessThan(0,t)}integer(t=Ct.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>ot(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(s=>ot(s)?s:Math[t](s))}}Vo.prototype=ts.prototype;let Wo=new Date(""),_f=e=>Object.prototype.toString.call(e)==="[object Date]";function rs(){return new Gt}class Gt extends Fe{constructor(){super({type:"date",check(t){return _f(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=df(t),isNaN(t)?Gt.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(At.isRef(t))n=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=s}return n}min(t,r=Yn.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(n)}})}max(t,r=Yn.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(n)}})}}Gt.INVALID_DATE=Wo,rs.prototype=Gt.prototype,rs.INVALID_DATE=Wo;function wf(e,t=[]){let r=[],n=new Set,s=new Set(t.map(([i,a])=>`${i}-${a}`));function o(i,a){let u=Dt.split(i)[0];n.add(u),s.has(`${a}-${u}`)||r.push([a,u])}for(const i of Object.keys(e)){let a=e[i];n.add(i),At.isRef(a)&&a.isSibling?o(a.path,i):Nt(a)&&"deps"in a&&a.deps.forEach(u=>o(u,i))}return Qc.array(Array.from(n),r).reverse()}function Go(e,t){let r=1/0;return e.some((n,s)=>{var o;if((o=t.path)!=null&&o.includes(n))return r=s,!0}),r}function Ho(e){return(t,r)=>Go(e,t)-Go(e,r)}const Yo=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function Xr(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=Xr(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Xr(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Xr)}):"optional"in e?e.optional():e}const Ef=(e,t)=>{const r=[...Dt.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),s=Dt.getter(Dt.join(r),!0)(e);return!!(s&&n in s)};let qo=e=>Object.prototype.toString.call(e)==="[object Object]";function Jo(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Cf=Ho([]);function hr(e){return new ns(e)}class ns extends Fe{constructor(t){super({type:"object",check(r){return qo(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Cf,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let s=super._cast(t,r);if(s===void 0)return this.getDefault(r);if(!this._typeCheck(s))return s;let o=this.fields,i=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(s).filter(f=>!this._nodes.includes(f))),u={},c=Object.assign({},r,{parent:u,__validating:r.__validating||!1}),d=!1;for(const f of a){let p=o[f],m=f in s;if(p){let y,v=s[f];c.path=(r.path?`${r.path}.`:"")+f,p=p.resolve({value:v,context:r.context,parent:u});let b=p instanceof Fe?p.spec:void 0,E=b==null?void 0:b.strict;if(b!=null&&b.strip){d=d||f in s;continue}y=!r.__validating||!E?p.cast(s[f],c):s[f],y!==void 0&&(u[f]=y)}else m&&!i&&(u[f]=s[f]);(m!==f in u||u[f]!==s[f])&&(d=!0)}return d?u:s}_validate(t,r={},n,s){let{from:o=[],originalValue:i=t,recursive:a=this.spec.recursive}=r;r.from=[{schema:this,value:i},...o],r.__validating=!0,r.originalValue=i,super._validate(t,r,n,(u,c)=>{if(!a||!qo(c)){s(u,c);return}i=i||c;let d=[];for(let f of this._nodes){let p=this.fields[f];!p||At.isRef(p)||d.push(p.asNestedTest({options:r,key:f,parent:c,parentPath:r.path,originalParent:i}))}this.runTests({tests:d,value:c,originalValue:i,options:r},n,f=>{s(f.sort(this._sortErrors).concat(u),c)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[s,o]of Object.entries(this.fields)){const i=n[s];n[s]=i===void 0?o:i}return r.withMutation(s=>s.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var s;const o=this.fields[n];let i=t;(s=i)!=null&&s.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),r[n]=o&&"getDefault"in o?o.getDefault(i):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=wf(t,r),n._sortErrors=Ho(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let s=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),s=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),s)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return Xr(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,s])=>t.includes(n)&&t.includes(s)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let s=Dt.getter(t,!0);return this.transform(o=>{if(!o)return o;let i=o;return Ef(o,t)&&(i=Object.assign({},o),n||delete i[t],i[r]=s(o)),i})}json(){return this.transform(Yo)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Wr.exact,test(r){if(r==null)return!0;const n=Jo(this.schema,r);return n.length===0||this.createError({params:{properties:n.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Wr.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(s){if(s==null)return!0;const o=Jo(this.schema,s);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Wr.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const s of Object.keys(r))n[t(s)]=r[s];return n})}camelCase(){return this.transformKeys(Gn.camelCase)}snakeCase(){return this.transformKeys(Gn.snakeCase)}constantCase(){return this.transformKeys(t=>Gn.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[o,i]of Object.entries(r.fields)){var s;let a=t;(s=a)!=null&&s.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),n.fields[o]=i.describe(a)}return n}}hr.prototype=ns.prototype;function ss(e){return new os(e)}class os extends Fe{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let s=!1;const o=n.map((i,a)=>{const u=this.innerType.cast(i,Object.assign({},r,{path:`${r.path||""}[${a}]`}));return u!==i&&(s=!0),u});return s?o:n}_validate(t,r={},n,s){var o;let i=this.innerType,a=(o=r.recursive)!=null?o:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(u,c)=>{var d;if(!a||!i||!this._typeCheck(c)){s(u,c);return}let f=new Array(c.length);for(let m=0;m<c.length;m++){var p;f[m]=i.asNestedTest({options:r,index:m,parent:c,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:t})}this.runTests({value:c,tests:f,originalValue:(d=r.originalValue)!=null?d:t,options:r},n,m=>s(m.concat(u),c))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(Yo)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!Nt(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+lt(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=Gr.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||Gr.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||Gr.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,s,o)=>!t(n,s,o):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var s;let o=t;(s=o)!=null&&s.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=r.innerType.describe(o)}return n}}ss.prototype=os.prototype;function Ko(e){return new is(e)}class is extends Fe{constructor(t){super({type:"tuple",spec:{types:t},check(r){const n=this.spec.types;return Array.isArray(r)&&r.length===n.length}}),this.withMutation(()=>{this.typeError(Bo.notType)})}_cast(t,r){const{types:n}=this.spec,s=super._cast(t,r);if(!this._typeCheck(s))return s;let o=!1;const i=n.map((a,u)=>{const c=a.cast(s[u],Object.assign({},r,{path:`${r.path||""}[${u}]`}));return c!==s[u]&&(o=!0),c});return o?i:s}_validate(t,r={},n,s){let o=this.spec.types;super._validate(t,r,n,(i,a)=>{var u;if(!this._typeCheck(a)){s(i,a);return}let c=[];for(let[f,p]of o.entries()){var d;c[f]=p.asNestedTest({options:r,index:f,parent:a,parentPath:r.path,originalParent:(d=r.originalValue)!=null?d:t})}this.runTests({value:a,tests:c,originalValue:(u=r.originalValue)!=null?u:t,options:r},n,f=>s(f.concat(i),a))})}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);return n.innerType=r.spec.types.map((s,o)=>{var i;let a=t;return(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),s.describe(a)}),n}}Ko.prototype=is.prototype;function Af(e){return new as(e)}class as{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let s=this.builder(r,n);if(!Nt(s))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(s=s.optional()),s.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new as(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:s,options:o}=t,i=s[n??r];return this._resolve(i,Object.assign({},o,{value:i,parent:s})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}function Of(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{Uo[t][r]=e[t][r]})})}function jf(e,t,r){if(!e||!Nt(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof r!="function")throw new TypeError("Method function must be provided");e.prototype[t]=r}const Xo=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:os,BooleanSchema:Zn,DateSchema:Gt,MixedSchema:Kn,NumberSchema:ts,ObjectSchema:ns,Schema:Fe,StringSchema:es,TupleSchema:is,ValidationError:Ne,addMethod:jf,array:ss,bool:Xn,boolean:Xn,date:rs,defaultLocale:Uo,getIn:Jn,isSchema:Nt,lazy:Af,mixed:Jr,number:Vo,object:hr,printValue:lt,reach:uf,ref:lf,setLocale:Of,string:Kr,tuple:Ko},Symbol.toStringTag,{value:"Module"})),Zo=e=>{const t=e.reduce((r,n)=>{let{name:s,required:o,type:i}=n;switch(i){case"RelatedList":i="array";break;case"Related":i=["object","string","number"];break;case"Integer":case"Float":i="number";break;case"Geometry":case"Raw":i="mixed";break;default:i="string"}let a;try{o?a=Xo[i]().typeError(`Field must be of type ${i}`).required("Field is required"):a=Xo[i]().typeError(`Field must be of type ${i}`).nullable(!0)}catch(u){console.log(u)}return r[s]=a,r},{});return hr().shape(t)},Qo=e=>!e&&typeof e!="boolean"&&typeof e!="number"?null:typeof e=="boolean"?e.toString():Array.isArray(e)?e.map(t=>t.name_||JSON.stringify(t,null,2)).join(", "):typeof e=="object"?e.name_||JSON.stringify(e):e;function ei({path:e,autoInvoke:t=!0,clearDataOnRefetch:r=!1}){const{fetchPath:n,options:s}=x.useMemo(()=>Be({path:$e(e,"_info"),method:"GET"}),[e]),{data:o,loading:i,refetch:a,error:u}=zr(n,{autoInvoke:t,clearDataOnRefetch:r,...s});return{info:x.useMemo(()=>o?{...o,add:{columns:o.add_columns,title:o.add_title,schema:Zo(o.add_columns),defaultValues:Oo(o.add_columns)},edit:{columns:o.edit_columns,title:o.edit_title,schema:Zo(o.edit_columns),defaultValues:Oo(o.edit_columns)}}:null,[o]),loading:i,refetch:a,error:u}}const ti={user:null,loading:!0,error:null};function $f(e,t){switch(t.type){case"initCall":return{...ti,user:e.user};case"setUser":return{...e,user:t.payload,error:null};case"setError":return{...e,loading:!1,error:t.payload};case"setLoading":return{...e,loading:t.payload};default:return e}}function kf(e){const[t,r]=x.useReducer($f,ti),{user:n,refetch:s,loading:o}=Co({path:e});x.useEffect(()=>{r({type:"setLoading",payload:o})},[o]),x.useEffect(()=>{r({type:"setUser",payload:n})},[n]);const i=x.useCallback(async({username:f,password:p})=>{r({type:"initCall"});try{const m=new FormData;m.append("username",f),m.append("password",p);const{fetchPath:y,options:v}=Be({path:$e(e,"auth/login"),method:"POST"}),b=await fetch(y,{...v,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(m)});b.ok||(b.status===400?r({type:"setError",payload:"Username or password wrong."}):r({type:"setError",payload:"Couldn't sign in user"})),s()}catch(m){console.error("signin error",m),r({type:"setError",payload:"Failed to fetch"})}},[e,s]),a=x.useCallback(async()=>{r({type:"initCall"});try{const{fetchPath:f,options:p}=Be({path:$e(e,"auth/logout"),method:"POST"});(await fetch(f,p)).ok||r({type:"setError",payload:"Couldn't sign out user"}),r({type:"setUser",payload:null})}catch(f){console.error("signout error",f),r({type:"setError",payload:"Failed to fetch"})}finally{r({type:"setLoading",payload:!1})}},[e]),u=x.useCallback(async f=>{r({type:"initCall"});try{const{fetchPath:p,options:m}=Be({path:$e(e,"auth/user"),method:"PUT",body:f});(await fetch(p,m)).ok||r({type:"setError",payload:"Couldn't update user data"}),s()}catch(p){console.error("update error",p),r({type:"setError",payload:"Failed to post"})}},[e,s]),c=x.useCallback(async f=>{if(!n.email)return r({type:"setError",payload:"No email found"});try{const{fetchPath:p,options:m}=Be({path:$e(e,"auth/forgot-password"),method:"POST",body:{email:n.email}}),y=await fetch(p,m);if(!y.ok){r({type:"setError",payload:"Couldn't request token to reset password"});return}const v=await y.json(),{token:b}=v,{fetchPath:E,options:P}=Be({path:$e(e,"auth/reset-password"),method:"POST",body:{token:b,password:f}});if(!(await fetch(E,P)).ok){r({type:"setError",payload:"Couldn't reset password"});return}s()}catch(p){console.error("resetPassword error",p),r({type:"setError",payload:"Failed to post"})}},[e,s,n==null?void 0:n.email]),d=x.useCallback((f,p)=>{const m=$e(e,"auth/login",f);if(p){const b=window.screenLeft+window.outerWidth/2-250,E=window.screenTop+window.outerHeight/2-500/2,P=window.open(m+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${E}, left=${b}`),O=window.setInterval(function(){P.closed!==!1&&(window.clearInterval(O),s())},200);return}window.location.href=$e(e,"auth/login",f)},[e,s]);return{user:t.user,loading:t.loading,error:t.error,signin:i,signout:a,update:u,resetPassword:c,oauth_signin:d,refetch:s}}function Pf(e,t){const{user:r}=t,[n,s]=x.useState(null),[o,i]=x.useState(!0),[a,u]=x.useState({error:"401 Not authorized",message:"User is not logged in."});x.useEffect(()=>{r&&c(e)},[r]);const c=async d=>{i(!0);try{const{fetchPath:f,options:p}=Be({path:$e(d,"info/"),method:"GET"}),m=await fetch(f,p);if(m.ok){const y=await m.json();s(y)}else u({error:"404 Not Found",message:"Couldn't fetch info"})}catch{u({error:"Network error",message:"Failed to fetch"})}finally{i(!1)}};return{info:n,loading:o,error:a}}const ls=x.createContext({auth:{user:null,loading:!1,error:null,signin:async(e,t)=>null,signout:async()=>null,update:async e=>null,resetPassword:async e=>null,oauth_signin:(e,t)=>null,refetch:async()=>null},info:{info:null,loading:!1,error:null}});function ri(){return x.useContext(ls).auth}function ni(){return x.useContext(ls).info}function If(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:r,children:n}={...t,...e},s=kf(r),o={baseUrl:r,...Pf(r,s)};return l.jsx(ls.Provider,{value:{auth:s,info:o},children:n})}const Mf=async(e,t,r)=>{const{fetchPath:n,options:s}=Be({path:$e(t,"/download"),method:"POST"}),o=await fetch(n,{...s,body:JSON.stringify(r)});let i=null;const a=o.headers.get("content-type");if(a&&a.includes("application/json")?i=await o.json():i=await o.blob(),!o.ok)throw typeof i=="object"?new Error(typeof i.detail=="string"?i.detail:JSON.stringify(i,null,2)):new Error(i);const u=document.createElement("a"),c=URL.createObjectURL(i);u.href=c,u.download=e.toLowerCase()+".csv",u.click()};function Df({path:e,initialQueryParams:t,relation:r,fetchInfo:n=!0,clearInfoOnRefetch:s=!1,clearDataOnRefetch:o=!1,resetQueryParamsOnPathChange:i=!0,streaming:a=!1}){const[u,c]=x.useState(t?Br(null,t):null),d=x.useMemo(()=>r?{...u,filters:[...u.filters,{col:r.foreign_key,opr:r.type,value:Je(r.id)}]}:u,[r,u]),f=x.useCallback(V=>c(ee=>{if(typeof V=="function"&&(V=V(ee)),!ee)return Br(null,V);const se=Br({...ee},V);if((V.filters||V.order_column||V.order_direction)&&!V.page&&(se.page=0),a){if(V.page&&V.page!==ee.page&&!V.streaming)throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");if(V.page_size&&V.page_size!==ee.page_size)throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead")}return se}),[a]),[p,m]=x.useState(null),y=x.useMemo(()=>p,[p]),v=x.useCallback(()=>m(null),[]),{info:b,loading:E,refetch:P,error:O}=ei({path:e,autoInvoke:n,clearDataOnRefetch:s}),{data:A,loading:_,refetch:$,error:F}=Ao({path:e,queryParams:d,autoInvoke:!1,clearDataOnRefetch:o});x.useEffect(()=>{d&&$()},[$,d]),x.useEffect(()=>{if(O){m({message:"Couldn't fetch info",originalError:O});return}if(F){m({message:"Couldn't fetch list",originalError:F});return}v()},[O,F,v]);const H=x.useMemo(()=>E||_,[E,_]);je.useDidUpdate(()=>{if(!i)return;const V=Br(null,t);u!=null&&u.page_size&&(V.page_size=u.page_size),f(V)},[e]);const Q=x.useCallback(async V=>{try{const ee=await Fc(e,Je(V));return v(),ee}catch(ee){m({message:`Couldn't fetch item with id ${V}`,originalError:ee})}},[e,v]),g=x.useCallback(async(V,ee)=>{try{const se=await Dc(e,V);return ee||(P(),$()),v(),se}catch(se){m({message:"Couldn't add item",originalError:se})}},[$,P,e,v]),j=x.useCallback(async(V,ee,se)=>{try{const C=await Rc(e,Je(V),ee);return se||(P(),$()),v(),C}catch(C){m({message:`Couldn't update item with id ${V}`,originalError:C})}},[$,P,e,v]),R=x.useCallback(async(V,ee)=>{try{const se=await Nc(e,Je(V));return ee||(P(),$()),v(),se}catch(se){m({message:`Couldn't delete item with id ${V}`,originalError:se})}},[$,P,e,v]),Z=x.useCallback(async V=>{try{await Mf(V,e,d)}catch(ee){m({message:"Couldn't download",originalError:ee})}},[e,d]),[ne,ce]=je.useSetState({data:{},isEnd:!1,fetch:()=>{throw new Error("Streaming mode not enabled, enable it by adding `streaming` prop to ApiProvider")}});x.useEffect(()=>{a&&ce({fetch:()=>f({page:0,streaming:!0})})},[f,ce,a]),x.useEffect(()=>{a&&A&&ce(V=>{let ee=Object.keys(V.data).length;const se={isEnd:!1};return d.page<ee?(ee=d.page,se.data={[d.page]:A.result}):se.data={...V.data,[d.page]:A.result},A.result.length<d.page_size?(se.isEnd=!0,se.fetch=()=>null):se.fetch=()=>f({page:ee+1,streaming:!0}),se})},[A,f,ce,a]);const ge=x.useMemo(()=>{const V={all:"all",actions:"actions"};return A==null||A.list_columns.forEach(ee=>{V[ee]&&(V[ee]=`_${ee}`)}),V},[A==null?void 0:A.list_columns]);return{path:e,data:A,info:b,queryParams:d,loading:H,error:y,streaming:ne,specialKey:ge,setQueryParams:f,refetch:$,refetchInfo:P,getEntry:Q,addEntry:g,updateEntry:j,deleteEntry:R,download:Z}}const Nf=async(e,t,r)=>{const{fetchPath:n,options:s}=Be({path:$e(e,"/bulk",t),method:"POST",body:r}),o=await fetch(n,s);let i=null;const a=o.headers.get("content-type");if(a&&a.includes("application/json")?i=await o.json():i=await o.text(),!o.ok)throw typeof i=="object"?new Error(typeof i.detail=="string"?i.detail:JSON.stringify(i,null,2)):new Error(i);return i},Ff=({Api:e})=>{const[t,r]=x.useState([]),[n,s]=x.useState(null),o=x.useCallback(async(a,u)=>{try{s(null);const c=await Nf(e.path,a,t);return u?void 0:(e.refetch(),c)}catch(c){console.error(c),s({message:"Couldn't perform bulk action",originalError:c})}},[e,t]);return{bulkActions:x.useMemo(()=>({selectedIds:t,setSelectedIds:r}),[t,r]),dispatchBulkActions:o,error:n}},us=x.createContext({Api:{path:"",data:null,info:null,queryParams:null,loading:!1,error:null,streaming:null,specialKey:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,r)=>({}),deleteEntry:async(e,t)=>({}),download:async e=>null},BulkActions:{bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null}});function fe(){const e=x.useContext(us);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e.Api}function Rf(){const e=x.useContext(us);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e.BulkActions}function si({resource_name:e="",initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:s,clearDataOnRefetch:o,resetQueryParamsOnPathChange:i,children:a,streaming:u}){const{baseUrl:c}=ni(),d=Df({path:$e(c,e),initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:s,clearDataOnRefetch:o,resetQueryParamsOnPathChange:i,streaming:u}),f=Ff({path:$e(c,e),Api:d});return l.jsx(us.Provider,{value:{Api:d,BulkActions:f},children:a})}/**
35
+ * @license @tabler/icons-react v3.24.0 - MIT
35
36
  *
36
37
  * This source code is licensed under the MIT license.
37
38
  * See the LICENSE file in the root directory of this source tree.
38
- */var Gf={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
39
- * @license @tabler/icons-react v3.22.0 - MIT
39
+ */var Lf={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
40
+ * @license @tabler/icons-react v3.24.0 - MIT
40
41
  *
41
42
  * This source code is licensed under the MIT license.
42
43
  * See the LICENSE file in the root directory of this source tree.
43
- */const Fe=(e,t,r,n)=>{const s=_.forwardRef(({color:i="currentColor",size:o=24,stroke:a=2,title:l,className:c,children:d,...f},p)=>_.createElement("svg",{ref:p,...Gf[e],width:o,height:o,className:["tabler-icon",`tabler-icon-${t}`,c].join(" "),strokeWidth:a,stroke:i,...f},[l&&_.createElement("title",{key:"svg-title"},l),...n.map(([m,b])=>_.createElement(m,b)),...Array.isArray(d)?d:[d]]));return s.displayName=`${r}`,s};/**
44
- * @license @tabler/icons-react v3.22.0 - MIT
44
+ */const Me=(e,t,r,n)=>{const s=x.forwardRef(({color:o="currentColor",size:i=24,stroke:a=2,title:u,className:c,children:d,...f},p)=>x.createElement("svg",{ref:p,...Lf[e],width:i,height:i,className:["tabler-icon",`tabler-icon-${t}`,c].join(" "),strokeWidth:a,stroke:o,...f},[u&&x.createElement("title",{key:"svg-title"},u),...n.map(([m,y])=>x.createElement(m,y)),...Array.isArray(d)?d:[d]]));return s.displayName=`${r}`,s};/**
45
+ * @license @tabler/icons-react v3.24.0 - MIT
45
46
  *
46
47
  * This source code is licensed under the MIT license.
47
48
  * See the LICENSE file in the root directory of this source tree.
48
- */var Hf=Fe("outline","alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
49
- * @license @tabler/icons-react v3.22.0 - MIT
49
+ */var zf=Me("outline","alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
50
+ * @license @tabler/icons-react v3.24.0 - MIT
50
51
  *
51
52
  * This source code is licensed under the MIT license.
52
53
  * See the LICENSE file in the root directory of this source tree.
53
- */var Yf=Fe("outline","app-window","IconAppWindow",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M6 8h.01",key:"svg-1"}],["path",{d:"M9 8h.01",key:"svg-2"}]]);/**
54
- * @license @tabler/icons-react v3.22.0 - MIT
54
+ */var Bf=Me("outline","app-window","IconAppWindow",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M6 8h.01",key:"svg-1"}],["path",{d:"M9 8h.01",key:"svg-2"}]]);/**
55
+ * @license @tabler/icons-react v3.24.0 - MIT
55
56
  *
56
57
  * This source code is licensed under the MIT license.
57
58
  * See the LICENSE file in the root directory of this source tree.
58
- */var js=Fe("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
59
- * @license @tabler/icons-react v3.22.0 - MIT
59
+ */var cs=Me("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
60
+ * @license @tabler/icons-react v3.24.0 - MIT
60
61
  *
61
62
  * This source code is licensed under the MIT license.
62
63
  * See the LICENSE file in the root directory of this source tree.
63
- */var _o=Fe("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/**
64
- * @license @tabler/icons-react v3.22.0 - MIT
64
+ */var oi=Me("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/**
65
+ * @license @tabler/icons-react v3.24.0 - MIT
65
66
  *
66
67
  * This source code is licensed under the MIT license.
67
68
  * See the LICENSE file in the root directory of this source tree.
68
- */var So=Fe("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/**
69
- * @license @tabler/icons-react v3.22.0 - MIT
69
+ */var ii=Me("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/**
70
+ * @license @tabler/icons-react v3.24.0 - MIT
70
71
  *
71
72
  * This source code is licensed under the MIT license.
72
73
  * See the LICENSE file in the root directory of this source tree.
73
- */var qf=Fe("outline","exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]);/**
74
- * @license @tabler/icons-react v3.22.0 - MIT
74
+ */var Uf=Me("outline","exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]);/**
75
+ * @license @tabler/icons-react v3.24.0 - MIT
75
76
  *
76
77
  * This source code is licensed under the MIT license.
77
78
  * See the LICENSE file in the root directory of this source tree.
78
- */var Jf=Fe("outline","eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);/**
79
- * @license @tabler/icons-react v3.22.0 - MIT
79
+ */var Vf=Me("outline","eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);/**
80
+ * @license @tabler/icons-react v3.24.0 - MIT
80
81
  *
81
82
  * This source code is licensed under the MIT license.
82
83
  * See the LICENSE file in the root directory of this source tree.
83
- */var Kf=Fe("outline","filter-cog","IconFilterCog",[["path",{d:"M12 20l-3 1v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19.001 15.5v1.5",key:"svg-2"}],["path",{d:"M19.001 21v1.5",key:"svg-3"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-4"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-5"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-6"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-7"}]]);/**
84
- * @license @tabler/icons-react v3.22.0 - MIT
84
+ */var Wf=Me("outline","filter-cog","IconFilterCog",[["path",{d:"M12 20l-3 1v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19.001 15.5v1.5",key:"svg-2"}],["path",{d:"M19.001 21v1.5",key:"svg-3"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-4"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-5"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-6"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-7"}]]);/**
85
+ * @license @tabler/icons-react v3.24.0 - MIT
85
86
  *
86
87
  * This source code is licensed under the MIT license.
87
88
  * See the LICENSE file in the root directory of this source tree.
88
- */var $s=Fe("outline","filter","IconFilter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]]);/**
89
- * @license @tabler/icons-react v3.22.0 - MIT
89
+ */var fs=Me("outline","filter","IconFilter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]]);/**
90
+ * @license @tabler/icons-react v3.24.0 - MIT
90
91
  *
91
92
  * This source code is licensed under the MIT license.
92
93
  * See the LICENSE file in the root directory of this source tree.
93
- */var Xf=Fe("outline","id-badge-2","IconIdBadge2",[["path",{d:"M7 12h3v4h-3z",key:"svg-0"}],["path",{d:"M10 6h-6a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1h-6",key:"svg-1"}],["path",{d:"M10 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 16h2",key:"svg-3"}],["path",{d:"M14 12h4",key:"svg-4"}]]);/**
94
- * @license @tabler/icons-react v3.22.0 - MIT
94
+ */var Gf=Me("outline","id-badge-2","IconIdBadge2",[["path",{d:"M7 12h3v4h-3z",key:"svg-0"}],["path",{d:"M10 6h-6a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1h-6",key:"svg-1"}],["path",{d:"M10 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 16h2",key:"svg-3"}],["path",{d:"M14 12h4",key:"svg-4"}]]);/**
95
+ * @license @tabler/icons-react v3.24.0 - MIT
95
96
  *
96
97
  * This source code is licensed under the MIT license.
97
98
  * See the LICENSE file in the root directory of this source tree.
98
- */var wo=Fe("outline","lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]]);/**
99
- * @license @tabler/icons-react v3.22.0 - MIT
99
+ */var ai=Me("outline","lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]]);/**
100
+ * @license @tabler/icons-react v3.24.0 - MIT
100
101
  *
101
102
  * This source code is licensed under the MIT license.
102
103
  * See the LICENSE file in the root directory of this source tree.
103
- */var Zf=Fe("outline","logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]);/**
104
- * @license @tabler/icons-react v3.22.0 - MIT
104
+ */var Hf=Me("outline","logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]);/**
105
+ * @license @tabler/icons-react v3.24.0 - MIT
105
106
  *
106
107
  * This source code is licensed under the MIT license.
107
108
  * See the LICENSE file in the root directory of this source tree.
108
- */var Qf=Fe("outline","pencil","IconPencil",[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]]);/**
109
- * @license @tabler/icons-react v3.22.0 - MIT
109
+ */var Yf=Me("outline","pencil","IconPencil",[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]]);/**
110
+ * @license @tabler/icons-react v3.24.0 - MIT
110
111
  *
111
112
  * This source code is licensed under the MIT license.
112
113
  * See the LICENSE file in the root directory of this source tree.
113
- */var cn=Fe("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
114
- * @license @tabler/icons-react v3.22.0 - MIT
114
+ */var Zr=Me("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
115
+ * @license @tabler/icons-react v3.24.0 - MIT
115
116
  *
116
117
  * This source code is licensed under the MIT license.
117
118
  * See the LICENSE file in the root directory of this source tree.
118
- */var ed=Fe("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]);/**
119
- * @license @tabler/icons-react v3.22.0 - MIT
119
+ */var qf=Me("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]);/**
120
+ * @license @tabler/icons-react v3.24.0 - MIT
120
121
  *
121
122
  * This source code is licensed under the MIT license.
122
123
  * See the LICENSE file in the root directory of this source tree.
123
- */var Co=Fe("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
124
- * @license @tabler/icons-react v3.22.0 - MIT
124
+ */var li=Me("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
125
+ * @license @tabler/icons-react v3.24.0 - MIT
125
126
  *
126
127
  * This source code is licensed under the MIT license.
127
128
  * See the LICENSE file in the root directory of this source tree.
128
- */var td=Fe("outline","users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);function Eo(){const{error:e}=pe(),[t,r]=_.useState(!1);return _.useEffect(()=>{e&&r(!0)},[e]),u.jsx(h.Modal,{opened:t,onClose:()=>r(!1),title:u.jsxs(h.Group,{children:[u.jsx(Hf,{size:16,color:"red"}),u.jsx(h.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?u.jsx(h.Text,{children:e.message}):null})}function rd({opened:e,onClose:t,handleAccept:r,handleReject:n}){return u.jsxs(h.Modal,{opened:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",title:"Item löschen?",centered:!0,children:["Sind Sie Sicher, dass Sie das Item löschen wollen?",u.jsxs(h.Group,{align:"right",mt:"xl",justify:"flex-end",children:[u.jsx(h.Button,{onClick:n,variant:"default",children:"Abbrechen"}),u.jsx(h.Button,{onClick:r,color:"red",children:"Löschen"})]})]})}function Ao({id:e,...t}){const{deleteEntry:r}=pe(),n={bg:"transparent",size:"sm",c:"gray"},s=h.useProps("ActionIcon",n,t),[i,o]=_.useState(!1),a=()=>{o(!1)},l=async()=>{r(e),o(!1)};return u.jsxs(u.Fragment,{children:[u.jsx(h.Tooltip,{label:"Delete",children:u.jsx(h.ActionIcon,{bg:s.bg,size:s.size,c:s.c,onClick:()=>{o(!0)},children:u.jsx(Co,{})})}),u.jsx(rd,{opened:i,onClose:a,handleAccept:l,handleReject:a})]})}const Ps=(e,t)=>{const r=t.split("."),n=e[r[0]];if(r.length>1&&Array.isArray(n))return n.map(i=>Ps(i,r.slice(1).join("."))).join(", ");const s=t.split(".").reduce((i,o)=>i[o],e);return go(s)};function Oo(e,t){return e===!0||Array.isArray(e)?t:Object.fromEntries(Object.keys(e).map(r=>[r,Oo(e[r],t[r])]))}function jo(e,t){if(!e)return e;const r=t.values;return!r||!r.length||Array.isArray(e.id_)&&(e.id=e.id_),e}function nd(e,t){const r={};return t.forEach(n=>{if(n.type==="Related"){r[n.name]=jo(e.result[n.name],n);return}if(n.type==="RelatedList"){r[n.name]=e.result[n.name].map(s=>jo(s,n));return}r[n.name]=typeof e.result[n.name]=="boolean"?String(e.result[n.name]):e.result[n.name]}),r}function ks(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(r){const n={};return r instanceof Ne&&r.inner.forEach(s=>{n[s.path.replaceAll("[",".").replaceAll("]","")]=s.message}),n}}}function sd({form:e,name:t,...r}){return u.jsx(u.Fragment,{children:u.jsx(Tt.DateInput,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const s=new Date(n.getTime()-n.getTimezoneOffset()*6e4);e.setFieldValue(t,s.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function id({form:e,name:t,...r}){return u.jsx(u.Fragment,{children:u.jsx(Tt.DateTimePicker,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const s=new Date(n);e.setFieldValue(t,s.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function fn({form:e,name:t,...r}){const n=e.getInputProps(t).value,s=_.useMemo(()=>n&&typeof n=="object"?JSON.stringify(n):n||"",[n]);return t==="password"?u.jsx(h.PasswordInput,{...e.getInputProps(t),value:s,...r}):u.jsx(h.TextInput,{...e.getInputProps(t),value:s,...r})}function $o({form:e,name:t,filter:r,...n}){const[s,i]=_.useState(""),o=e.getInputProps(t).value,a=_.useMemo(()=>o?typeof o=="object"?JSON.stringify(o,null,2):o:"",[o]);return _.useEffect(()=>{i(a)},[a]),r?u.jsx(fn,{form:e,name:t,...n}):u.jsx(h.JsonInput,{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",...e.getInputProps(t),...n,value:s,onChange:l=>{if(i(l),!l){e.getInputProps(t).onChange(null);return}try{const c=JSON.parse(l);e.getInputProps(t).onChange(c)}catch{}}})}function od({form:e,name:t,filter:r,...n}){const[s,i]=_.useState(!!r);return u.jsxs(h.InputWrapper,{label:n.label,description:n.description,children:[!r&&u.jsxs(h.Group,{align:"center",gap:"xs",py:"0.25rem",children:[u.jsx(h.Checkbox,{checked:s,onChange:o=>i(o.currentTarget.checked)}),u.jsx(h.Text,{size:"xs",children:"WKT"})]}),s?u.jsx(fn,{form:e,name:t,...n,label:void 0,description:void 0}):u.jsx($o,{form:e,name:t,...n,label:void 0,description:void 0})]})}function ad({form:e,name:t,items:r,...n}){const s=r.map(o=>({value:String(qe(o.id)),label:o.value})),i=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(o=>String(typeof o=="object"?qe(o.id):o)):[];return u.jsx(h.MultiSelect,{data:s,searchable:!0,...e.getInputProps(t),value:i||[],...n})}function ld({form:e,name:t,items:r,filter:n,...s}){var o;const i=r.map(a=>({value:String(qe(a.id)),label:a.value}));return u.jsx(h.Select,{data:i,searchable:!0,...e.getInputProps(t),onChange:a=>{if(n){e.setFieldValue(t,a);return}const l=r.find(c=>String(qe(c.id))===a)||null;e.setFieldValue(t,l)},value:n?e.getInputProps(t).value:String(qe((o=e.getInputProps(t).value)==null?void 0:o.id))||"",...s})}function Po({form:e,name:t,items:r,...n}){return u.jsx(h.Select,{data:r,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...n})}function dn({form:e,name:t,schema:r,filter:n,withinPortal:s=!0,...i}){if(!r.type)return null;switch(r.type){case"Boolean":return u.jsx(Po,{form:e,name:t,items:[{label:"true",value:n?"1":"true"},{label:"false",value:n?"0":"false"}],...i});case"RelatedList":return u.jsx(ad,{form:e,name:t,items:r.values,comboboxProps:{withinPortal:s},...i});case"Related":return u.jsx(ld,{form:e,name:t,items:r.values,filter:n,comboboxProps:{withinPortal:s},...i});case"DateTime":return u.jsx(id,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:r,popoverProps:{withinPortal:s},...i});case"Date":return u.jsx(sd,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:r,popoverProps:{withinPortal:s},...i});case"Geometry":return u.jsx(od,{form:e,name:t,filter:n,...i});case"Raw":return u.jsx($o,{form:e,name:t,filter:n,...i});case"Integer":case"Float":return u.jsx(fn,{form:e,name:t,...i});case"Enum":return u.jsx(Po,{form:e,name:t,items:r.values,comboboxProps:{withinPortal:s},...i});default:return u.jsx(fn,{form:e,name:t,...i})}}function ud(e,t){return new Promise(r=>{r(nd(e,t.edit.columns))})}function ko({item:e,info:t,opened:r,onClose:n,...s}){const{updateEntry:i}=pe(),o={modal:{},stack:{},saveButton:{}},{modal:a,stack:l,saveButton:c}=h.useProps("EditDialog",o,s),d=vr.useForm({initialValues:t.edit.defaultValues,validate:ks(t.edit.schema)}),f=()=>{const m={};return Object.keys(d.values).forEach(b=>{d.isDirty(b)&&(m[b]=!0)}),m};_.useEffect(()=>{e&&ud(e,t).then(m=>{d.setValues(m),d.resetDirty(m)})},[e,t.edit.columns]);const p=async m=>{m=Oo(f(),m),await i(e.id,m),n()};return _.useEffect(()=>{d.setInitialValues(t.edit.defaultValues),d.reset()},[t.edit.defaultValues]),e?u.jsx(h.Modal,{opened:r,onClose:()=>{n()},title:t.edit.title,size:"lg",centered:!0,...a,children:u.jsx(h.Box,{component:"form",onSubmit:d.onSubmit(p),children:u.jsx(h.Stack,{spacing:"md",...l,children:u.jsxs(h.ScrollArea.Autosize,{mah:450,type:"auto",children:[t.edit.columns.map((m,b)=>u.jsx(dn,{form:d,name:m.name,label:m.label,description:m.description,schema:m,withAsterisk:m.required},b)),u.jsx(h.Group,{position:"right",mt:"xl",children:u.jsx(h.Button,{type:"submit",...c,children:"Save"})})]})})})}):null}function Io({id:e,...t}){const{info:r,getEntry:n}=pe(),s={bg:"transparent",size:"sm",c:"gray"},i=h.useProps("ActionIcon",s,t),[o,a]=_.useState(null),[l,c]=_.useState(!1),[d,f]=_.useState(!1);return u.jsxs(u.Fragment,{children:[u.jsx(h.Tooltip,{label:"Edit",children:u.jsx(h.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:async()=>{c(!0);const p=await n(e);p&&(a(p),c(!1),f(!0))},children:u.jsx(Qf,{})})}),u.jsx(ko,{item:o,info:r,opened:d,onClose:()=>f(!1)})]})}function cd({relatedPath:e,...t}){const{path:r}=pe();return Ie(r?r.substring(0,r.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),u.jsx(To,{resource_name:e.replace("/",""),relation:t,children:u.jsx(Vs,{hideToolbar:!0,hideDownload:!1})})}const fd=_.memo(cd);function dd({item:e,info:t,loading:r,opened:n,onClose:s,...i}){const o={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:a,tabs:l,tabsList:c,tabsPanel:d}=h.useProps("ViewDialog",o,i);return u.jsxs(h.Modal,{opened:n,onClose:s,title:`${e==null?void 0:e.show_title} (#${qe(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...a,children:[u.jsx(h.LoadingOverlay,{visible:r}),!r&&e?u.jsxs(h.Tabs,{defaultValue:"details",...l,children:[u.jsxs(h.Tabs.List,{...c,children:[u.jsx(h.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((f,p)=>u.jsx(h.Tabs.Tab,{value:f.name,children:f.name},p))]}),u.jsx(h.Tabs.Panel,{pt:"xs",value:"details",...d,children:u.jsx(h.Paper,{p:"xs",withBorder:!0,children:u.jsx(h.Stack,{spacing:"md",children:u.jsx(h.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((f,p)=>u.jsxs(h.Grid,{maw:500,children:[u.jsx(h.Grid.Col,{span:4,children:u.jsx(h.Text,{size:"md",children:e.label_columns[f]})}),u.jsx(h.Grid.Col,{span:1,children:u.jsx(h.Text,{size:"xs",children:":"})}),u.jsx(h.Grid.Col,{span:6,children:u.jsx(h.Text,{size:"md",children:Ps(e.result,f)})})]},p))})})})}),t.relations.map((f,p)=>u.jsx(h.Tabs.Panel,{pt:"xs",value:f.name,children:u.jsx(h.Paper,{withBorder:!0,children:u.jsx(fd,{relatedPath:f.path,id:qe(e.id),foreign_key:f.foreign_key,type:f.type})})},p))]}):null]})}function pd({id:e,...t}){const{info:r,getEntry:n}=pe(),s={bg:"transparent",size:"sm",c:"gray"},i=h.useProps("ActionIcon",s,t),[o,a]=_.useState(null),[l,c]=_.useState(!1),[d,f]=_.useState(!1);return u.jsxs(u.Fragment,{children:[u.jsx(h.Tooltip,{label:"Details",children:u.jsx(h.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:async()=>{c(!0);const p=await n(e);p&&(a(p),c(!1),f(!0))},children:u.jsx(Jf,{})})}),u.jsx(dd,{item:o,info:r,loading:l,opened:d,onClose:()=>f(!1)})]})}function Is({id:e}){const{info:t}=pe();return u.jsxs(h.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[t!=null&&t.permissions.includes("can_get")?u.jsx(pd,{id:e}):null,t!=null&&t.permissions.includes("can_put")?u.jsx(Io,{id:e}):null,t!=null&&t.permissions.includes("can_delete")?u.jsx(Ao,{id:e}):null]})}function Ds({opened:e,onClose:t,...r}){const{info:n,addEntry:s}=pe(),i={modal:{},stack:{},addButton:{}},{addButton:o,modal:a,stack:l}=h.useProps("AddDialog",i,r),c=vr.useForm({initialValues:n.add.defaultValues,validate:ks(n.add.schema)}),d=async f=>{await s(f),c.reset(),t()};return _.useEffect(()=>{c.setInitialValues(n.add.defaultValues),c.reset()},[n.add.defaultValues]),u.jsx(h.Modal,{opened:e,onClose:()=>{c.reset(),t()},title:n.add.title,size:"lg",centered:!0,...a,children:u.jsx(h.Box,{component:"form",onSubmit:c.onSubmit(d),children:u.jsx(h.Stack,{spacing:"md",...l,children:u.jsxs(h.ScrollArea.Autosize,{mah:450,type:"auto",children:[n.add.columns.map((f,p)=>u.jsx(dn,{form:c,name:f.name,label:f.label,description:f.description,schema:f,withAsterisk:f.required},p)),u.jsx(h.Group,{position:"right",mt:"xl",children:u.jsx(h.Button,{type:"submit",...o,children:"Add"})})]})})})})}function Do(...e){const[t,r]=_.useState(!1),n={bg:"transparent",size:"sm",c:"gray"},s=h.useProps("ActionIcon",n,e);return u.jsxs(u.Fragment,{children:[u.jsx(h.Tooltip,{label:"Add Item",children:u.jsx(h.ActionIcon,{bg:s.bg,size:s.size,c:s.c,onClick:()=>{r(!0)},children:u.jsx(cn,{})})}),u.jsx(Ds,{opened:t,onClose:()=>{r(!1)}})]})}/*! @license DOMPurify 3.2.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.1/LICENSE */const{entries:Mo,setPrototypeOf:Fo,isFrozen:hd,getPrototypeOf:md,getOwnPropertyDescriptor:gd}=Object;let{freeze:Ue,seal:Qe,create:Ro}=Object,{apply:Ms,construct:Fs}=typeof Reflect<"u"&&Reflect;Ue||(Ue=function(t){return t}),Qe||(Qe=function(t){return t}),Ms||(Ms=function(t,r,n){return t.apply(r,n)}),Fs||(Fs=function(t,r){return new t(...r)});const pn=Je(Array.prototype.forEach),No=Je(Array.prototype.pop),Sr=Je(Array.prototype.push),hn=Je(String.prototype.toLowerCase),Rs=Je(String.prototype.toString),Lo=Je(String.prototype.match),wr=Je(String.prototype.replace),yd=Je(String.prototype.indexOf),bd=Je(String.prototype.trim),st=Je(Object.prototype.hasOwnProperty),Ve=Je(RegExp.prototype.test),Cr=vd(TypeError);function Je(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return Ms(e,t,n)}}function vd(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Fs(e,r)}}function oe(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hn;Fo&&Fo(e,null);let n=t.length;for(;n--;){let s=t[n];if(typeof s=="string"){const i=r(s);i!==s&&(hd(t)||(t[n]=i),s=i)}e[s]=!0}return e}function xd(e){for(let t=0;t<e.length;t++)st(e,t)||(e[t]=null);return e}function Nt(e){const t=Ro(null);for(const[r,n]of Mo(e))st(e,r)&&(Array.isArray(n)?t[r]=xd(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Nt(n):t[r]=n);return t}function Er(e,t){for(;e!==null;){const n=gd(e,t);if(n){if(n.get)return Je(n.get);if(typeof n.value=="function")return Je(n.value)}e=md(e)}function r(){return null}return r}const zo=Ue(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ns=Ue(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ls=Ue(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Td=Ue(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zs=Ue(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),_d=Ue(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Bo=Ue(["#text"]),Uo=Ue(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Bs=Ue(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vo=Ue(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mn=Ue(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sd=Qe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wd=Qe(/<%[\w\W]*|[\w\W]*%>/gm),Cd=Qe(/\${[\w\W]*}/gm),Ed=Qe(/^data-[\-\w.\u00B7-\uFFFF]/),Ad=Qe(/^aria-[\-\w]+$/),Wo=Qe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Od=Qe(/^(?:\w+script|data):/i),jd=Qe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Go=Qe(/^html$/i),$d=Qe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ho=Object.freeze({__proto__:null,ARIA_ATTR:Ad,ATTR_WHITESPACE:jd,CUSTOM_ELEMENT:$d,DATA_ATTR:Ed,DOCTYPE_NAME:Go,ERB_EXPR:wd,IS_ALLOWED_URI:Wo,IS_SCRIPT_OR_DATA:Od,MUSTACHE_EXPR:Sd,TMPLIT_EXPR:Cd});const Ar={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Pd=function(){return typeof window>"u"?null:window},kd=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(n=r.getAttribute(s));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Yo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pd();const t=M=>Yo(M);if(t.version="3.2.1",t.removed=[],!e||!e.document||e.document.nodeType!==Ar.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,s=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=e,b=l.prototype,T=Er(b,"cloneNode"),v=Er(b,"remove"),w=Er(b,"nextSibling"),A=Er(b,"childNodes"),j=Er(b,"parentNode");if(typeof o=="function"){const M=r.createElement("template");M.content&&M.content.ownerDocument&&(r=M.content.ownerDocument)}let O,S="";const{implementation:P,createNodeIterator:B,createDocumentFragment:Y,getElementsByTagName:Q}=r,{importNode:g}=n;let I={};t.isSupported=typeof Mo=="function"&&typeof j=="function"&&P&&P.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:J,TMPLIT_EXPR:re,DATA_ATTR:ce,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:ae}=Ho;let{IS_ALLOWED_URI:E}=Ho,D=null;const q=oe({},[...zo,...Ns,...Ls,...zs,...Bo]);let V=null;const X=oe({},[...Uo,...Bs,...Vo,...mn]);let G=Object.seal(Ro(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,z=null,ne=!0,ie=!0,se=!1,Pe=!0,N=!1,Me=!0,W=!1,We=!1,He=!1,rt=!1,Ut=!1,gt=!1,Yn=!0,qn=!1;const Wr="user-content-";let Gr=!0,Vt=!1,yt={},bt=null;const jt=oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Jn=null;const Hr=oe({},["audio","video","img","source","image","track"]);let pr=null;const hr=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mr="http://www.w3.org/1998/Math/MathML",gr="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let $t=ot,Yr=!1,qr=null;const Ni=oe({},[mr,gr,ot],Rs);let Pt=oe({},["mi","mo","mn","ms","mtext"]),Wt=oe({},["annotation-xml"]);const kt=oe({},["title","style","font","a","script"]);let vt=null;const Jr=["application/xhtml+xml","text/html"],Kn="text/html";let De=null,xt=null;const Li=r.createElement("form"),Kr=function(x){return x instanceof RegExp||x instanceof Function},yr=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xt&&xt===x)){if((!x||typeof x!="object")&&(x={}),x=Nt(x),vt=Jr.indexOf(x.PARSER_MEDIA_TYPE)===-1?Kn:x.PARSER_MEDIA_TYPE,De=vt==="application/xhtml+xml"?Rs:hn,D=st(x,"ALLOWED_TAGS")?oe({},x.ALLOWED_TAGS,De):q,V=st(x,"ALLOWED_ATTR")?oe({},x.ALLOWED_ATTR,De):X,qr=st(x,"ALLOWED_NAMESPACES")?oe({},x.ALLOWED_NAMESPACES,Rs):Ni,pr=st(x,"ADD_URI_SAFE_ATTR")?oe(Nt(hr),x.ADD_URI_SAFE_ATTR,De):hr,Jn=st(x,"ADD_DATA_URI_TAGS")?oe(Nt(Hr),x.ADD_DATA_URI_TAGS,De):Hr,bt=st(x,"FORBID_CONTENTS")?oe({},x.FORBID_CONTENTS,De):jt,Z=st(x,"FORBID_TAGS")?oe({},x.FORBID_TAGS,De):{},z=st(x,"FORBID_ATTR")?oe({},x.FORBID_ATTR,De):{},yt=st(x,"USE_PROFILES")?x.USE_PROFILES:!1,ne=x.ALLOW_ARIA_ATTR!==!1,ie=x.ALLOW_DATA_ATTR!==!1,se=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,N=x.SAFE_FOR_TEMPLATES||!1,Me=x.SAFE_FOR_XML!==!1,W=x.WHOLE_DOCUMENT||!1,rt=x.RETURN_DOM||!1,Ut=x.RETURN_DOM_FRAGMENT||!1,gt=x.RETURN_TRUSTED_TYPE||!1,He=x.FORCE_BODY||!1,Yn=x.SANITIZE_DOM!==!1,qn=x.SANITIZE_NAMED_PROPS||!1,Gr=x.KEEP_CONTENT!==!1,Vt=x.IN_PLACE||!1,E=x.ALLOWED_URI_REGEXP||Wo,$t=x.NAMESPACE||ot,Pt=x.MATHML_TEXT_INTEGRATION_POINTS||Pt,Wt=x.HTML_INTEGRATION_POINTS||Wt,G=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&Kr(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&Kr(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(G.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),N&&(ie=!1),Ut&&(rt=!0),yt&&(D=oe({},Bo),V=[],yt.html===!0&&(oe(D,zo),oe(V,Uo)),yt.svg===!0&&(oe(D,Ns),oe(V,Bs),oe(V,mn)),yt.svgFilters===!0&&(oe(D,Ls),oe(V,Bs),oe(V,mn)),yt.mathMl===!0&&(oe(D,zs),oe(V,Vo),oe(V,mn))),x.ADD_TAGS&&(D===q&&(D=Nt(D)),oe(D,x.ADD_TAGS,De)),x.ADD_ATTR&&(V===X&&(V=Nt(V)),oe(V,x.ADD_ATTR,De)),x.ADD_URI_SAFE_ATTR&&oe(pr,x.ADD_URI_SAFE_ATTR,De),x.FORBID_CONTENTS&&(bt===jt&&(bt=Nt(bt)),oe(bt,x.FORBID_CONTENTS,De)),Gr&&(D["#text"]=!0),W&&oe(D,["html","head","body"]),D.table&&(oe(D,["tbody"]),delete Z.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=x.TRUSTED_TYPES_POLICY,S=O.createHTML("")}else O===void 0&&(O=kd(m,s)),O!==null&&typeof S=="string"&&(S=O.createHTML(""));Ue&&Ue(x),xt=x}},Xn=oe({},[...Ns,...Ls,...Td]),Zn=oe({},[...zs,..._d]),Qn=function(x){let $=j(x);(!$||!$.tagName)&&($={namespaceURI:$t,tagName:"template"});const R=hn(x.tagName),le=hn($.tagName);return qr[x.namespaceURI]?x.namespaceURI===gr?$.namespaceURI===ot?R==="svg":$.namespaceURI===mr?R==="svg"&&(le==="annotation-xml"||Pt[le]):!!Xn[R]:x.namespaceURI===mr?$.namespaceURI===ot?R==="math":$.namespaceURI===gr?R==="math"&&Wt[le]:!!Zn[R]:x.namespaceURI===ot?$.namespaceURI===gr&&!Wt[le]||$.namespaceURI===mr&&!Pt[le]?!1:!Zn[R]&&(kt[R]||!Xn[R]):!!(vt==="application/xhtml+xml"&&qr[x.namespaceURI]):!1},Ze=function(x){Sr(t.removed,{element:x});try{j(x).removeChild(x)}catch{v(x)}},br=function(x,$){try{Sr(t.removed,{attribute:$.getAttributeNode(x),from:$})}catch{Sr(t.removed,{attribute:null,from:$})}if($.removeAttribute(x),x==="is"&&!V[x])if(rt||Ut)try{Ze($)}catch{}else try{$.setAttribute(x,"")}catch{}},es=function(x){let $=null,R=null;if(He)x="<remove></remove>"+x;else{const Ce=Lo(x,/^[\r\n\t ]+/);R=Ce&&Ce[0]}vt==="application/xhtml+xml"&&$t===ot&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const le=O?O.createHTML(x):x;if($t===ot)try{$=new p().parseFromString(le,vt)}catch{}if(!$||!$.documentElement){$=P.createDocument($t,"template",null);try{$.documentElement.innerHTML=Yr?S:le}catch{}}const Ae=$.body||$.documentElement;return x&&R&&Ae.insertBefore(r.createTextNode(R),Ae.childNodes[0]||null),$t===ot?Q.call($,W?"html":"body")[0]:W?$.documentElement:Ae},ts=function(x){return B.call(x.ownerDocument||x,x,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},rs=function(x){return x instanceof f&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof d)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},y=function(x){return typeof a=="function"&&x instanceof a};function k(M,x,$){I[M]&&pn(I[M],R=>{R.call(t,x,$,xt)})}const L=function(x){let $=null;if(k("beforeSanitizeElements",x,null),rs(x))return Ze(x),!0;const R=De(x.nodeName);if(k("uponSanitizeElement",x,{tagName:R,allowedTags:D}),x.hasChildNodes()&&!y(x.firstElementChild)&&Ve(/<[/\w]/g,x.innerHTML)&&Ve(/<[/\w]/g,x.textContent)||x.nodeType===Ar.progressingInstruction||Me&&x.nodeType===Ar.comment&&Ve(/<[/\w]/g,x.data))return Ze(x),!0;if(!D[R]||Z[R]){if(!Z[R]&&fe(R)&&(G.tagNameCheck instanceof RegExp&&Ve(G.tagNameCheck,R)||G.tagNameCheck instanceof Function&&G.tagNameCheck(R)))return!1;if(Gr&&!bt[R]){const le=j(x)||x.parentNode,Ae=A(x)||x.childNodes;if(Ae&&le){const Ce=Ae.length;for(let xe=Ce-1;xe>=0;--xe){const Ye=T(Ae[xe],!0);Ye.__removalCount=(x.__removalCount||0)+1,le.insertBefore(Ye,w(x))}}}return Ze(x),!0}return x instanceof l&&!Qn(x)||(R==="noscript"||R==="noembed"||R==="noframes")&&Ve(/<\/no(script|embed|frames)/i,x.innerHTML)?(Ze(x),!0):(N&&x.nodeType===Ar.text&&($=x.textContent,pn([U,J,re],le=>{$=wr($,le," ")}),x.textContent!==$&&(Sr(t.removed,{element:x.cloneNode()}),x.textContent=$)),k("afterSanitizeElements",x,null),!1)},ee=function(x,$,R){if(Yn&&($==="id"||$==="name")&&(R in r||R in Li))return!1;if(!(ie&&!z[$]&&Ve(ce,$))){if(!(ne&&Ve(he,$))){if(!V[$]||z[$]){if(!(fe(x)&&(G.tagNameCheck instanceof RegExp&&Ve(G.tagNameCheck,x)||G.tagNameCheck instanceof Function&&G.tagNameCheck(x))&&(G.attributeNameCheck instanceof RegExp&&Ve(G.attributeNameCheck,$)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck($))||$==="is"&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&Ve(G.tagNameCheck,R)||G.tagNameCheck instanceof Function&&G.tagNameCheck(R))))return!1}else if(!pr[$]){if(!Ve(E,wr(R,te,""))){if(!(($==="src"||$==="xlink:href"||$==="href")&&x!=="script"&&yd(R,"data:")===0&&Jn[x])){if(!(se&&!Ve(H,wr(R,te,"")))){if(R)return!1}}}}}}return!0},fe=function(x){return x!=="annotation-xml"&&Lo(x,ae)},ve=function(x){k("beforeSanitizeAttributes",x,null);const{attributes:$}=x;if(!$)return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let le=$.length;for(;le--;){const Ae=$[le],{name:Ce,namespaceURI:xe,value:Ye}=Ae,Gt=De(Ce);let Re=Ce==="value"?Ye:bd(Ye);if(R.attrName=Gt,R.attrValue=Re,R.keepAttr=!0,R.forceKeepAttr=void 0,k("uponSanitizeAttribute",x,R),Re=R.attrValue,qn&&(Gt==="id"||Gt==="name")&&(br(Ce,x),Re=Wr+Re),Me&&Ve(/((--!?|])>)|<\/(style|title)/i,Re)){br(Ce,x);continue}if(R.forceKeepAttr||(br(Ce,x),!R.keepAttr))continue;if(!Pe&&Ve(/\/>/i,Re)){br(Ce,x);continue}N&&pn([U,J,re],Dc=>{Re=wr(Re,Dc," ")});const Ic=De(x.nodeName);if(ee(Ic,Gt,Re)){if(O&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!xe)switch(m.getAttributeType(Ic,Gt)){case"TrustedHTML":{Re=O.createHTML(Re);break}case"TrustedScriptURL":{Re=O.createScriptURL(Re);break}}try{xe?x.setAttributeNS(xe,Ce,Re):x.setAttribute(Ce,Re),rs(x)?Ze(x):No(t.removed)}catch{}}}k("afterSanitizeAttributes",x,null)},ue=function M(x){let $=null;const R=ts(x);for(k("beforeSanitizeShadowDOM",x,null);$=R.nextNode();)k("uponSanitizeShadowNode",$,null),!L($)&&($.content instanceof i&&M($.content),ve($));k("afterSanitizeShadowDOM",x,null)};return t.sanitize=function(M){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=null,R=null,le=null,Ae=null;if(Yr=!M,Yr&&(M="<!-->"),typeof M!="string"&&!y(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw Cr("dirty is not a string, aborting")}else throw Cr("toString is not a function");if(!t.isSupported)return M;if(We||yr(x),t.removed=[],typeof M=="string"&&(Vt=!1),Vt){if(M.nodeName){const Ye=De(M.nodeName);if(!D[Ye]||Z[Ye])throw Cr("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof a)$=es("<!---->"),R=$.ownerDocument.importNode(M,!0),R.nodeType===Ar.element&&R.nodeName==="BODY"||R.nodeName==="HTML"?$=R:$.appendChild(R);else{if(!rt&&!N&&!W&&M.indexOf("<")===-1)return O&&gt?O.createHTML(M):M;if($=es(M),!$)return rt?null:gt?S:""}$&&He&&Ze($.firstChild);const Ce=ts(Vt?M:$);for(;le=Ce.nextNode();)L(le)||(le.content instanceof i&&ue(le.content),ve(le));if(Vt)return M;if(rt){if(Ut)for(Ae=Y.call($.ownerDocument);$.firstChild;)Ae.appendChild($.firstChild);else Ae=$;return(V.shadowroot||V.shadowrootmode)&&(Ae=g.call(n,Ae,!0)),Ae}let xe=W?$.outerHTML:$.innerHTML;return W&&D["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&Ve(Go,$.ownerDocument.doctype.name)&&(xe="<!DOCTYPE "+$.ownerDocument.doctype.name+`>
129
- `+xe),N&&pn([U,J,re],Ye=>{xe=wr(xe,Ye," ")}),O&&gt?O.createHTML(xe):xe},t.setConfig=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yr(M),We=!0},t.clearConfig=function(){xt=null,We=!1},t.isValidAttribute=function(M,x,$){xt||yr({});const R=De(M),le=De(x);return ee(R,le,$)},t.addHook=function(M,x){typeof x=="function"&&(I[M]=I[M]||[],Sr(I[M],x))},t.removeHook=function(M){if(I[M])return No(I[M])},t.removeHooks=function(M){I[M]&&(I[M]=[])},t.removeAllHooks=function(){I={}},t}var qo=Yo();const Ct=_.forwardRef(({fallback:e,functionProps:t,children:r},n)=>{if(typeof r=="function"&&(r=r(...t)),r===null)return null;const s=r||e;return _.isValidElement(s)?_.cloneElement(s,{ref:n}):s});Ct.displayName="FallbackWrapper";const Id={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},gn=_.memo(({id:e,entry:t,loading:r,rightBorder:n,children:s,onClickEntry:i,customElement:o,sanitize:a,...l})=>{const c={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:d}=h.useProps("Field",c,l),f={};Object.entries(d).forEach(([m,b])=>{typeof b=="function"&&(f[m]=b(t))});const p=h.useStyles({name:"Field",props:l,classes:Id});return u.jsx(h.Table.Td,{...p("field"),onClick:i?()=>i(e,t):null,...l,children:u.jsx(h.Box,{w:"100%",children:u.jsx(h.Skeleton,{visible:r,children:u.jsx(Ct,{fallback:Array.isArray(s)?s.map((m,b)=>u.jsx(h.Text,{...d,...f,children:a?qo.sanitize(m):m},b)):u.jsx(h.Text,{...d,...f,children:a?qo.sanitize(s):s}),functionProps:[t],children:o})})})})});gn.displayName="Field";const Jo={row:"_row_138r2_1",selected:"_selected_138r2_5"};function Dd({entry:e,selected:t,children:r}){const n=h.useStyles({name:"Row",classes:Jo}),s=h.useProps("Row",{},{});Object.entries(s).forEach(([a,l])=>{typeof l=="function"&&(s[a]=l(e))});var{className:i,style:o}=n("row");return i=`${i} ${t?Jo.selected:""}`,u.jsx(h.Table.Tr,{className:i,style:{...o},...s,children:r})}function Md({bodyCustomizer:e,actionColumn:t,id:r,entry:n}){let s=e==null?void 0:e[t];return typeof s=="function"&&(s=s({id:r,...n})),s===null?null:s||u.jsx(Is,{id:r})}function Fd({data:e,loading:t,hideActions:r,hideCheckbox:n,selection:s,toggleRow:i,onClickEntry:o,bodyCustomizer:a,bodySeparator:l}){const c=e.list_columns.includes("actions")?"_actions":"actions",d=_.useMemo(()=>e!=null&&e.list_columns.includes("all")?"_all":"all",[e==null?void 0:e.list_columns]);return u.jsx(h.Table.Tbody,{children:e.result.length?e.result.map((f,p)=>{const m=e.ids[p];return u.jsxs(Dd,{entry:{...f,id:m},children:[n?null:u.jsx(gn,{loading:t,children:u.jsx(h.Checkbox,{pl:2,checked:s.includes(m),onChange:b=>{i(m)}})},p),r?null:u.jsx(gn,{loading:t,children:u.jsx(Md,{bodyCustomizer:a,actionColumn:c,id:qe(m),entry:f})}),e.list_columns.map((b,T)=>{let v=a==null?void 0:a[b];typeof v=="function"&&(v=v({id:m,...f}));let w=Ps(f,b);typeof w=="number"?w=w.toLocaleString():w==null&&(w="");const A=(l==null?void 0:l[b])||(l==null?void 0:l[d]);return A&&(w=w.split(A)),v===null?null:u.jsx(gn,{id:m,entry:f,loading:t,onClickEntry:o,customElement:v,sanitize:!0,children:w},T)})]},qe(m))}):u.jsx("tr",{children:u.jsx("td",{style:{padding:"8px"},colSpan:r?e.list_columns.length:e.list_columns.length+1,children:u.jsx(h.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available"})})})})}const Ko={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function Us({column:e,label:t,orderColumn:r,related:n,toggleAll:s,allChecked:i,classNames:o,styles:a,customElement:l,...c}){const{queryParams:d,setQueryParams:f,loading:p}=pe(),m={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},b=h.useStyles({name:"FieldTitle",classes:Ko,classNames:o,styles:a,props:c}),T=h.useProps("FieldTitle",m,c),{hovered:v,ref:w}=ke.useHover(),A=r&&d.order_column===r,j=b("wrapper");return j.style.cursor=r?j.style.cursor:"auto",u.jsx(h.Table.Th,{className:Ko.fieldTitleRoot,...b("root"),onClick:r&&!p?()=>f({order_column:r,order_direction:d.order_direction==="asc"?"desc":"asc"}):null,children:u.jsx(h.Box,{ref:w,...j,children:e==="Checkbox"?u.jsx(h.Checkbox,{pb:5,pl:2,onChange:s,checked:i}):u.jsxs(u.Fragment,{children:[u.jsx(h.Box,{w:"100%",fw:T.fw,size:"xl",c:v&&r?T.hoverColor:A?T.selectedColor:T.color,children:l||t||e}),n?u.jsx(h.Tooltip,{label:"Related Field",children:u.jsx(h.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:u.jsx(h.Box,{...b("icon"),children:A?d.order_direction==="asc"?u.jsx(js,{size:14,strokeWidth:1.5}):u.jsx(_o,{size:14,strokeWidth:1.5}):null})})}):u.jsx(h.Box,{...b("icon"),children:A?d.order_direction==="asc"?u.jsx(js,{size:14,strokeWidth:1.5}):u.jsx(_o,{size:14,strokeWidth:1.5}):null})]})})})}const Xo=_.memo(({data:e,info:t,settings:r,hideActions:n,hideCheckbox:s,allChecked:i,toggleAll:o,headerCustomizer:a})=>{const l=e.list_columns.includes("actions")?"_actions":"actions";let c=a==null?void 0:a[l];return typeof c=="function"&&(c=c()),u.jsx(h.Table.Thead,{children:u.jsxs(h.Table.Tr,{children:[s?null:u.jsx(Us,{data:e,column:"Checkbox",allChecked:i,toggleAll:o}),n?null:u.jsx(Us,{column:"Actions",customElement:c}),e.list_columns.map((d,f)=>{var m;let p=a==null?void 0:a[d];return typeof p=="function"&&(p=p(e.label_columns[d])),p===null?null:u.jsx(Us,{column:d,label:e.label_columns[d],orderColumn:e.order_columns.find(b=>b===d)||e.order_columns.find(b=>b.startsWith(`${d}.`)),related:((m=t.filters[d])==null?void 0:m.schema.type)==="Nested",customElement:p},d)})]})})});Xo.displayName="Header";const Rd={scrollbar:"_scrollbar_isyo2_1"};function Nd({bulkActions:e,hideActions:t,loading:r,onSelectCheckbox:n,onClickEntry:s,hideCheckbox:i,hideDownload:o,headerCustomizer:a,bodyCustomizer:l,bodySeparator:c,...d}){const f=h.useMantineTheme(),p=h.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),m=h.useProps("DatagridTable",p,d),{data:b,info:T}=pe(),[v,w]=_.useState([]),[A,j]=_.useState(!1),O=P=>{w(B=>B.includes(P)?B.filter(Y=>Y!==P):[...B,P])},S=()=>{w(P=>P.length===b.ids.length?[]:b.ids.map((B,Y)=>B))};return _.useEffect(()=>{j(v.length===b.result.length&&v.length>0),n&&n(v),e==null||e.setSelectedIds(v.map(P=>P))},[v]),_.useEffect(()=>{w([]),n&&n([])},[b]),u.jsx(h.ScrollArea,{options:{className:f.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:Rd,children:u.jsxs(h.Table,{stickyHeader:!0,...m,children:[u.jsx(Xo,{data:b,info:T,hideActions:t,hideCheckbox:i,allChecked:A,setSelection:w,toggleAll:S,headerCustomizer:a}),u.jsx(Fd,{data:b,loading:r,hideActions:t,hideCheckbox:i,selection:v,setSelection:w,toggleRow:O,onClickEntry:s,bodyCustomizer:l,bodySeparator:c})]})})}const Zo=_.memo(({...e})=>{const{data:t,queryParams:r,setQueryParams:n}=pe(),s=h.useMantineTheme(),i=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],o=String(r.page_size),[a,l]=_.useState(r.page);_.useEffect(()=>{l(r.page)},[r.page]);const c=f=>{l(f-1),n({page:f-1})},d=f=>{n({page_size:parseInt(f,10),page:0})};return u.jsxs(u.Fragment,{children:[u.jsx(h.Divider,{}),u.jsxs(h.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[u.jsxs(h.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[u.jsx(h.Text,{children:"Rows per page:"}),u.jsx(h.Select,{value:o,defaultValue:o,onChange:f=>d(f),data:i,allowDeselect:!1,w:80,size:"xs",styles:()=>({input:{fontSize:"14px",fontWeight:"250",lineHeight:"52px",border:"1px solid #E6E8ED"},item:{"&[data-selected]":{"&, &:hover":{outline:"none !important"}}}})})]}),u.jsx(h.Pagination,{size:"sm",total:Math.ceil(t.count/o),value:a+1,onChange:c,...e}),e.counter&&t?u.jsxs(u.Fragment,{children:[u.jsx(h.Text,{c:s.primaryColor,size:"xs",fw:400,pl:20,children:"Total Records"}),u.jsx(h.Text,{c:s.primaryColor,size:"md",fw:700,pl:10,children:t.count})]}):null]})]})});Zo.displayName="Pagination";const Ld=0,zd=25,Or=250,jr="global",Jt="header:",Qo=Jt+"ctt",ea=Jt+"between_integer",ta=Jt+"between_date",Kt=e=>e!==jr&&!e.startsWith(Jt);function Bd({form:e,name:t,items:r,onChange:n,...s}){return u.jsx(h.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...s})}function ra({form:e,name:t,label:r,comboboxProps:n,...s}){const i=h.useCombobox({onDropdownClose:()=>i.resetSelectedOption(),onDropdownOpen:()=>i.updateSelectedOptionIndex("active")}),[o,a]=_.useState([]),[l,c]=_.useState(""),d=m=>{l!==""&&(o.includes(l)||a(b=>[...b,l]),c(""))},f=m=>a(b=>b.filter(T=>T!==m)),p=o.map(m=>u.jsx(h.Pill,{withRemoveButton:!0,onRemove:()=>f(m),children:m},m));return _.useEffect(()=>{const m=e.getInputProps(t).value;if(m)try{a([...m])}catch(b){console.error("Error parsing JSON:",b)}},[]),_.useEffect(()=>{e.getInputProps(t).onChange(o)},[o]),u.jsx(h.InputWrapper,{label:r,children:u.jsxs(h.Combobox,{store:i,onOptionSubmit:d,...n,children:[u.jsx(h.Combobox.DropdownTarget,{children:u.jsx(h.PillsInput,{onClick:()=>i.openDropdown(),children:u.jsxs(h.Pill.Group,{children:[p,u.jsx(h.Combobox.EventsTarget,{children:u.jsx(h.PillsInput.Field,{onFocus:()=>i.openDropdown(),onBlur:()=>i.closeDropdown(),value:l,placeholder:"Search values",onChange:m=>{i.updateSelectedOptionIndex(),c(m.currentTarget.value)},onKeyDown:m=>{m.key==="Backspace"&&l.length===0&&(m.preventDefault(),f(o[o.length-1]))}})})]})})}),u.jsx(h.Combobox.Dropdown,{children:u.jsx(h.Combobox.Options,{children:u.jsxs(h.Combobox.Option,{value:"$create",children:["+ Create ",l]})})})]})})}function Ud({form:e,name:t,items:r,onChange:n,...s}){return u.jsx(h.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...s})}function na({onClose:e,...t}){const{info:r,queryParams:n,setQueryParams:s,path:i}=pe(),o=vr.useForm({initialValues:{filters:[]},validate:ks(_r({filters:Ss().of(_r({col:ln().transform(f=>f||void 0).required("Field is required"),opr:ln().transform(f=>f||void 0).required("col is required"),value:an().when("col",{is:f=>f&&r.filters[f].schema.required,then:()=>an().required("Value is required")})}))}))}),a={bg:"transparent",size:"sm",c:"gray"},l=h.useProps("ActionIcon",a,t);_.useEffect(()=>{o.setValues({filters:[]}),o.reset()},[i]),_.useEffect(()=>{if(n.filters&&n.filters.length){const f=n.filters.filter(p=>Kt(p.opr)).map(p=>({...p,key:ke.randomId()}));o.setFieldValue("filters",f)}},[n.filters]);const c=f=>{const p=f.filters.map(({key:b,...T})=>T),m=JSON.parse(JSON.stringify(p));s({filters:m,page:0}),e()},d=o.values.filters.map((f,p)=>u.jsxs(h.Box,{px:"sm",children:[u.jsxs(h.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[u.jsx(h.Box,{style:{width:"192px"},children:r&&r.filters&&u.jsx(Bd,{form:o,name:`filters.${p}.col`,items:Object.entries(r.filters).map(([m,b])=>({label:b.label,value:String(m)})),onChange:m=>{o.setFieldValue(`filters.${p}`,{col:m,opr:"",value:"",key:ke.randomId()})}})}),u.jsx(h.Box,{style:{width:"192px"},children:f.col?u.jsx(Ud,{form:o,name:`filters.${p}.opr`,items:r.filters[f.col].filters.filter(m=>Kt(m.operator)).map(m=>({label:m.name,value:m.operator})),onChange:m=>{o.setFieldValue(`filters.${p}`,{col:o.values.filters[p].col,opr:m,value:"",key:ke.randomId()})}}):null}),u.jsx(h.Box,{style:{width:"192px"},children:f.col?f.opr==="in"?u.jsx(ra,{form:o,name:`filters.${p}.value`}):u.jsx(dn,{form:o,name:`filters.${p}.value`,schema:r.filters[f.col].schema,filter:!0}):null}),u.jsx(h.ActionIcon,{bg:l.bg,size:l.size,c:l.c,onClick:()=>{o.removeListItem("filters",p)},children:u.jsx(Co,{})})]}),o.values.filters.length>1&&p<o.values.filters.length-1?u.jsx(h.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},f.key));return u.jsxs(h.Box,{component:"form",onSubmit:o.onSubmit(c),children:[d.length===0&&u.jsx(h.Box,{style:{width:"642px"},children:u.jsx(h.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),u.jsx(h.ScrollArea.Autosize,{mah:"40vh",mt:20,children:d}),u.jsx(h.Divider,{my:"sm"}),u.jsxs(h.Box,{style:{display:"flex",justifyContent:"space-between"},children:[u.jsx(h.Button,{variant:"subtle",leftSection:u.jsx(cn,{}),onClick:()=>{o.insertListItem("filters",{col:"",opr:"",value:"",key:ke.randomId()})},children:"Add Filter"}),u.jsx(h.Group,{spacing:"md",children:u.jsx(h.Button,{type:"submit",children:"Apply"})})]})]})}function sa(...e){const{queryParams:t}=pe(),r={bg:"transparent",size:"sm",c:"gray"},n=h.useProps("ActionIcon",r,e),[s,i]=_.useState(!1);return u.jsxs(h.Popover,{opened:s,position:"bottom-end",onClose:()=>i(!1),closeOnClickOutside:!1,children:[u.jsx(h.Popover.Target,{children:u.jsx(h.Tooltip,{opened:s?!1:null,label:"Filter",children:t.filters.filter(o=>Kt(o.opr)).length!=0?u.jsx(h.Indicator,{zIndex:20,size:16,label:t.filters.length,children:u.jsx(h.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>i(!0),children:u.jsx($s,{})})}):u.jsx(h.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>i(!0),children:u.jsx($s,{})})})}),u.jsxs(h.Popover.Dropdown,{px:"xs",children:[u.jsx(h.Box,{style:{position:"absolute",top:4,right:4},children:u.jsx(h.CloseButton,{title:"Filters",onClick:()=>i(!1)})}),u.jsx(na,{onClose:()=>{i(!1)}})]})]})}function Vd(...e){const[t,r]=_.useState(!1),{download:n}=pe(),s={bg:"transparent",size:"sm",c:"gray"},i=h.useProps("ActionIcon",s,e);return t?u.jsx(h.Loader,{color:i.c,size:i.size}):u.jsx(h.Tooltip,{label:"Download",children:u.jsx(h.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:()=>{r(!0),n("download").then(()=>r(!1))},children:u.jsx(So,{})})})}const ia=_.memo(({hideAdd:e,hideFilter:t,hideDownload:r,toolbarCustomizer:n})=>{const{info:s}=pe(),i=_.useMemo(()=>{const a={};return Object.entries(n).forEach(([l,c])=>{a[l]=c,typeof a[l]=="function"&&(a[l]=a[l]())}),a},[n]),o=s.permissions.includes("can_post");return u.jsxs(h.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!r&&(i.download||u.jsx(Vd,{})),o&&!e?i.add||u.jsx(Do,{}):null,t?null:i.filter||u.jsx(sa,{})]})});ia.displayName="Toolbar";const Vs=_.forwardRef((e,t)=>{const{path:r,data:n,loading:s,info:i,setQueryParams:o}=pe(),{hideToolbar:a=!1,hideFilter:l=!1,hideAdd:c=!1,hideSettings:d=!1,hideActions:f=!1,hidePagination:p=!1,hideError:m=!1,hideDownload:b=!0,onSelectCheckbox:T=null,onClickEntry:v=null,fetchOnMount:w=!0,bulkActions:A=null,styles:j,headerCustomizer:O={},bodyCustomizer:S={},toolbarCustomizer:P={},counter:B=!1,bodySeparator:Y}=e;if(_.useEffect(()=>{!n&&w&&o({})},[n]),!i)return;const Q=A===null;return u.jsxs(h.Paper,{ref:t,style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",...j},children:[a?null:u.jsx(ia,{hideFilter:l,hideAdd:c,hideSettings:d,hideDownload:b,toolbarCustomizer:P}),n?u.jsx(Nd,{bulkActions:A,hideActions:f,loading:s,onSelectCheckbox:T,onClickEntry:v,hideCheckbox:Q,hideDownload:b,headerCustomizer:O,bodyCustomizer:S,bodySeparator:Y}):null,!p&&n?u.jsx(Zo,{counter:B}):null,m?null:u.jsx(Eo,{})]})});Vs.displayName="DataGrid";function Wd({children:e,fetch:t=!0,loading:r=u.jsx(h.Center,{children:u.jsx(h.Loader,{})}),end:n=u.jsx(h.Center,{children:"End of data"}),fetchWrapper:s=h.Center,fetchWrapperProps:i}){const{streaming:o,loading:a}=pe(),{ref:l,inViewport:c}=ke.useInViewport(),d=_.useMemo(()=>Object.values(o.data).flat(),[o.data]),f=_.useMemo(()=>typeof e=="function"?e(d):e,[e,d]);return _.useEffect(()=>{c&&t&&o.fetch()},[c]),u.jsxs(u.Fragment,{children:[f,a&&r,o.isEnd&&n,u.jsx(s,{ref:l,id:"IS-load-trigger",mih:"1%",...i})]})}var Gd=Object.prototype;function Hd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gd;return e===r}var yn=Hd;function Yd(e,t){return function(r){return e(t(r))}}var oa=Yd,qd=oa,Jd=qd(Object.keys,Object),Kd=Jd,Xd=yn,Zd=Kd,Qd=Object.prototype,ep=Qd.hasOwnProperty;function tp(e){if(!Xd(e))return Zd(e);var t=[];for(var r in Object(e))ep.call(e,r)&&r!="constructor"&&t.push(r);return t}var rp=tp,np=typeof Xr=="object"&&Xr&&Xr.Object===Object&&Xr,aa=np,sp=aa,ip=typeof self=="object"&&self&&self.Object===Object&&self,op=sp||ip||Function("return this")(),it=op,ap=it,lp=ap.Symbol,bn=lp,la=bn,ua=Object.prototype,up=ua.hasOwnProperty,cp=ua.toString,$r=la?la.toStringTag:void 0;function fp(e){var t=up.call(e,$r),r=e[$r];try{e[$r]=void 0;var n=!0}catch{}var s=cp.call(e);return n&&(t?e[$r]=r:delete e[$r]),s}var dp=fp,pp=Object.prototype,hp=pp.toString;function mp(e){return hp.call(e)}var gp=mp,ca=bn,yp=dp,bp=gp,vp="[object Null]",xp="[object Undefined]",fa=ca?ca.toStringTag:void 0;function Tp(e){return e==null?e===void 0?xp:vp:fa&&fa in Object(e)?yp(e):bp(e)}var Xt=Tp;function _p(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dt=_p,Sp=Xt,wp=dt,Cp="[object AsyncFunction]",Ep="[object Function]",Ap="[object GeneratorFunction]",Op="[object Proxy]";function jp(e){if(!wp(e))return!1;var t=Sp(e);return t==Ep||t==Ap||t==Cp||t==Op}var Ws=jp,$p=it,Pp=$p["__core-js_shared__"],kp=Pp,Gs=kp,da=function(){var e=/[^.]+$/.exec(Gs&&Gs.keys&&Gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ip(e){return!!da&&da in e}var Dp=Ip,Mp=Function.prototype,Fp=Mp.toString;function Rp(e){if(e!=null){try{return Fp.call(e)}catch{}try{return e+""}catch{}}return""}var pa=Rp,Np=Ws,Lp=Dp,zp=dt,Bp=pa,Up=/[\\^$.*+?()[\]{}|]/g,Vp=/^\[object .+?Constructor\]$/,Wp=Function.prototype,Gp=Object.prototype,Hp=Wp.toString,Yp=Gp.hasOwnProperty,qp=RegExp("^"+Hp.call(Yp).replace(Up,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jp(e){if(!zp(e)||Lp(e))return!1;var t=Np(e)?qp:Vp;return t.test(Bp(e))}var Kp=Jp;function Xp(e,t){return e==null?void 0:e[t]}var Zp=Xp,Qp=Kp,eh=Zp;function th(e,t){var r=eh(e,t);return Qp(r)?r:void 0}var Lt=th,rh=Lt,nh=it,sh=rh(nh,"DataView"),ih=sh,oh=Lt,ah=it,lh=oh(ah,"Map"),Hs=lh,uh=Lt,ch=it,fh=uh(ch,"Promise"),dh=fh,ph=Lt,hh=it,mh=ph(hh,"Set"),ha=mh,gh=Lt,yh=it,bh=gh(yh,"WeakMap"),vh=bh,Ys=ih,qs=Hs,Js=dh,Ks=ha,Xs=vh,ma=Xt,Zt=pa,ga="[object Map]",xh="[object Object]",ya="[object Promise]",ba="[object Set]",va="[object WeakMap]",xa="[object DataView]",Th=Zt(Ys),_h=Zt(qs),Sh=Zt(Js),wh=Zt(Ks),Ch=Zt(Xs),zt=ma;(Ys&&zt(new Ys(new ArrayBuffer(1)))!=xa||qs&&zt(new qs)!=ga||Js&&zt(Js.resolve())!=ya||Ks&&zt(new Ks)!=ba||Xs&&zt(new Xs)!=va)&&(zt=function(e){var t=ma(e),r=t==xh?e.constructor:void 0,n=r?Zt(r):"";if(n)switch(n){case Th:return xa;case _h:return ga;case Sh:return ya;case wh:return ba;case Ch:return va}return t});var Eh=zt;function Ah(e){return e!=null&&typeof e=="object"}var Qt=Ah,Oh=Xt,jh=Qt,$h="[object Arguments]";function Ph(e){return jh(e)&&Oh(e)==$h}var kh=Ph,Ta=kh,Ih=Qt,_a=Object.prototype,Dh=_a.hasOwnProperty,Mh=_a.propertyIsEnumerable,Fh=Ta(function(){return arguments}())?Ta:function(e){return Ih(e)&&Dh.call(e,"callee")&&!Mh.call(e,"callee")},vn=Fh,Rh=Array.isArray,Pr=Rh,Nh=9007199254740991;function Lh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nh}var Sa=Lh,zh=Ws,Bh=Sa;function Uh(e){return e!=null&&Bh(e.length)&&!zh(e)}var xn=Uh,Tn={exports:{}};function Vh(){return!1}var Wh=Vh;Tn.exports,function(e,t){var r=it,n=Wh,s=t&&!t.nodeType&&t,i=s&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===s,a=o?r.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||n;e.exports=c}(Tn,Tn.exports);var Zs=Tn.exports,Gh=Xt,Hh=Sa,Yh=Qt,qh="[object Arguments]",Jh="[object Array]",Kh="[object Boolean]",Xh="[object Date]",Zh="[object Error]",Qh="[object Function]",em="[object Map]",tm="[object Number]",rm="[object Object]",nm="[object RegExp]",sm="[object Set]",im="[object String]",om="[object WeakMap]",am="[object ArrayBuffer]",lm="[object DataView]",um="[object Float32Array]",cm="[object Float64Array]",fm="[object Int8Array]",dm="[object Int16Array]",pm="[object Int32Array]",hm="[object Uint8Array]",mm="[object Uint8ClampedArray]",gm="[object Uint16Array]",ym="[object Uint32Array]",we={};we[um]=we[cm]=we[fm]=we[dm]=we[pm]=we[hm]=we[mm]=we[gm]=we[ym]=!0,we[qh]=we[Jh]=we[am]=we[Kh]=we[lm]=we[Xh]=we[Zh]=we[Qh]=we[em]=we[tm]=we[rm]=we[nm]=we[sm]=we[im]=we[om]=!1;function bm(e){return Yh(e)&&Hh(e.length)&&!!we[Gh(e)]}var vm=bm;function xm(e){return function(t){return e(t)}}var Tm=xm,_n={exports:{}};_n.exports,function(e,t){var r=aa,n=t&&!t.nodeType&&t,s=n&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===n,o=i&&r.process,a=function(){try{var l=s&&s.require&&s.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a}(_n,_n.exports);var _m=_n.exports,Sm=vm,wm=Tm,wa=_m,Ca=wa&&wa.isTypedArray,Cm=Ca?wm(Ca):Sm,Qs=Cm,Em=rp,Am=Eh,Om=vn,jm=Pr,$m=xn,Pm=Zs,km=yn,Im=Qs,Dm="[object Map]",Mm="[object Set]",Fm=Object.prototype,Rm=Fm.hasOwnProperty;function Nm(e){if(e==null)return!0;if($m(e)&&(jm(e)||typeof e=="string"||typeof e.splice=="function"||Pm(e)||Im(e)||Om(e)))return!e.length;var t=Am(e);if(t==Dm||t==Mm)return!e.size;if(km(e))return!Em(e).length;for(var r in e)if(Rm.call(e,r))return!1;return!0}var Lm=Nm;const Ea=_t(Lm),Aa=(e,t,r,n,s,i,o)=>e.map((a,l)=>u.jsx(h.Grid.Col,{span:s==="row"?12/e.length:12,style:{alignContent:"end"},children:u.jsx(Se.JsonFormsDispatch,{uischema:a,schema:t,path:r,enabled:n,renderers:i,cells:o})},`${r}-${l}`)),zm=({elements:e,schema:t,path:r,enabled:n,direction:s,renderers:i,cells:o})=>Ea(e)?null:u.jsx(h.Grid,{spacing:s==="row"?2:0,children:Aa(e,t,r,n,s,i,o)}),ei=_.memo(zm),Bm=e=>function(r){const n=Se.useJsonForms(),s=K.getAjv({jsonforms:{...n}});return u.jsx(e,{...r,ajv:s})};var Um=it,Vm=function(){return Um.Date.now()},Wm=Vm,Gm=/\s/;function Hm(e){for(var t=e.length;t--&&Gm.test(e.charAt(t)););return t}var Ym=Hm,qm=Ym,Jm=/^\s+/;function Km(e){return e&&e.slice(0,qm(e)+1).replace(Jm,"")}var Xm=Km,Zm=Xt,Qm=Qt,eg="[object Symbol]";function tg(e){return typeof e=="symbol"||Qm(e)&&Zm(e)==eg}var Oa=tg,rg=Xm,ja=dt,ng=Oa,$a=NaN,sg=/^[-+]0x[0-9a-f]+$/i,ig=/^0b[01]+$/i,og=/^0o[0-7]+$/i,ag=parseInt;function lg(e){if(typeof e=="number")return e;if(ng(e))return $a;if(ja(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ja(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rg(e);var r=ig.test(e);return r||og.test(e)?ag(e.slice(2),r?2:8):sg.test(e)?$a:+e}var Pa=lg,ug=dt,ti=Wm,ka=Pa,cg="Expected a function",fg=Math.max,dg=Math.min;function pg(e,t,r){var n,s,i,o,a,l,c=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(cg);t=ka(t)||0,ug(r)&&(d=!!r.leading,f="maxWait"in r,i=f?fg(ka(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p);function m(P){var B=n,Y=s;return n=s=void 0,c=P,o=e.apply(Y,B),o}function b(P){return c=P,a=setTimeout(w,t),d?m(P):o}function T(P){var B=P-l,Y=P-c,Q=t-B;return f?dg(Q,i-Y):Q}function v(P){var B=P-l,Y=P-c;return l===void 0||B>=t||B<0||f&&Y>=i}function w(){var P=ti();if(v(P))return A(P);a=setTimeout(w,T(P))}function A(P){return a=void 0,p&&n?m(P):(n=s=void 0,o)}function j(){a!==void 0&&clearTimeout(a),c=0,n=l=s=a=void 0}function O(){return a===void 0?o:A(ti())}function S(){var P=ti(),B=v(P);if(n=arguments,s=this,l=P,B){if(a===void 0)return b(l);if(f)return clearTimeout(a),a=setTimeout(w,t),m(l)}return a===void 0&&(a=setTimeout(w,t)),o}return S.cancel=j,S.flush=O,S}var hg=pg;const mg=_t(hg),Ia=(e,t,r,n,s,i=300)=>{const[o,a]=_.useState(r??t);_.useEffect(()=>{a(r??t)},[r]);const l=_.useCallback(mg(f=>e(n,f),i),[e,n,i]),c=_.useCallback(f=>{const p=s(f);a(p??t),l(p)},[l,s]),d=_.useCallback(()=>{a(t),e(n,void 0)},[t,e,n]);return[o,c,d]},gg=e=>e===""?void 0:parseFloat(e),yg=e=>gg(e),Sn=_.memo(function(t){const{allowDecimal:r,className:n,data:s,description:i,errors:o,enabled:a,handleChange:l,label:c,path:d,required:f,hideControls:p}=t,[m,b]=Ia(l,"",s,d,yg),T=h.useProps(d,{},{});return Object.keys(T).forEach(v=>{typeof T[v]=="function"&&(T[v]=T[v](s))}),u.jsx(h.NumberInput,{label:c,description:i,error:o,required:f,value:m,onChange:b,className:n,disabled:!a,allowDecimal:r,hideControls:p,w:"100%",...T})});function bg(){this.__data__=[],this.size=0}var vg=bg;function xg(e,t){return e===t||e!==e&&t!==t}var wn=xg,Tg=wn;function _g(e,t){for(var r=e.length;r--;)if(Tg(e[r][0],t))return r;return-1}var Cn=_g,Sg=Cn,wg=Array.prototype,Cg=wg.splice;function Eg(e){var t=this.__data__,r=Sg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Cg.call(t,r,1),--this.size,!0}var Ag=Eg,Og=Cn;function jg(e){var t=this.__data__,r=Og(t,e);return r<0?void 0:t[r][1]}var $g=jg,Pg=Cn;function kg(e){return Pg(this.__data__,e)>-1}var Ig=kg,Dg=Cn;function Mg(e,t){var r=this.__data__,n=Dg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Fg=Mg,Rg=vg,Ng=Ag,Lg=$g,zg=Ig,Bg=Fg;function er(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}er.prototype.clear=Rg,er.prototype.delete=Ng,er.prototype.get=Lg,er.prototype.has=zg,er.prototype.set=Bg;var En=er,Ug=En;function Vg(){this.__data__=new Ug,this.size=0}var Wg=Vg;function Gg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Hg=Gg;function Yg(e){return this.__data__.get(e)}var qg=Yg;function Jg(e){return this.__data__.has(e)}var Kg=Jg,Xg=Lt,Zg=Xg(Object,"create"),An=Zg,Da=An;function Qg(){this.__data__=Da?Da(null):{},this.size=0}var ey=Qg;function ty(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ry=ty,ny=An,sy="__lodash_hash_undefined__",iy=Object.prototype,oy=iy.hasOwnProperty;function ay(e){var t=this.__data__;if(ny){var r=t[e];return r===sy?void 0:r}return oy.call(t,e)?t[e]:void 0}var ly=ay,uy=An,cy=Object.prototype,fy=cy.hasOwnProperty;function dy(e){var t=this.__data__;return uy?t[e]!==void 0:fy.call(t,e)}var py=dy,hy=An,my="__lodash_hash_undefined__";function gy(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hy&&t===void 0?my:t,this}var yy=gy,by=ey,vy=ry,xy=ly,Ty=py,_y=yy;function tr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}tr.prototype.clear=by,tr.prototype.delete=vy,tr.prototype.get=xy,tr.prototype.has=Ty,tr.prototype.set=_y;var Sy=tr,Ma=Sy,wy=En,Cy=Hs;function Ey(){this.size=0,this.__data__={hash:new Ma,map:new(Cy||wy),string:new Ma}}var Ay=Ey;function Oy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var jy=Oy,$y=jy;function Py(e,t){var r=e.__data__;return $y(t)?r[typeof t=="string"?"string":"hash"]:r.map}var On=Py,ky=On;function Iy(e){var t=ky(this,e).delete(e);return this.size-=t?1:0,t}var Dy=Iy,My=On;function Fy(e){return My(this,e).get(e)}var Ry=Fy,Ny=On;function Ly(e){return Ny(this,e).has(e)}var zy=Ly,By=On;function Uy(e,t){var r=By(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Vy=Uy,Wy=Ay,Gy=Dy,Hy=Ry,Yy=zy,qy=Vy;function rr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rr.prototype.clear=Wy,rr.prototype.delete=Gy,rr.prototype.get=Hy,rr.prototype.has=Yy,rr.prototype.set=qy;var Fa=rr,Jy=En,Ky=Hs,Xy=Fa,Zy=200;function Qy(e,t){var r=this.__data__;if(r instanceof Jy){var n=r.__data__;if(!Ky||n.length<Zy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Xy(n)}return r.set(e,t),this.size=r.size,this}var e0=Qy,t0=En,r0=Wg,n0=Hg,s0=qg,i0=Kg,o0=e0;function nr(e){var t=this.__data__=new t0(e);this.size=t.size}nr.prototype.clear=r0,nr.prototype.delete=n0,nr.prototype.get=s0,nr.prototype.has=i0,nr.prototype.set=o0;var a0=nr,l0=Lt,u0=function(){try{var e=l0(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ra=u0,Na=Ra;function c0(e,t,r){t=="__proto__"&&Na?Na(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ri=c0,f0=ri,d0=wn;function p0(e,t,r){(r!==void 0&&!d0(e[t],r)||r===void 0&&!(t in e))&&f0(e,t,r)}var La=p0;function h0(e){return function(t,r,n){for(var s=-1,i=Object(t),o=n(t),a=o.length;a--;){var l=o[e?a:++s];if(r(i[l],l,i)===!1)break}return t}}var m0=h0,g0=m0,y0=g0(),b0=y0,jn={exports:{}};jn.exports,function(e,t){var r=it,n=t&&!t.nodeType&&t,s=n&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===n,o=i?r.Buffer:void 0,a=o?o.allocUnsafe:void 0;function l(c,d){if(d)return c.slice();var f=c.length,p=a?a(f):new c.constructor(f);return c.copy(p),p}e.exports=l}(jn,jn.exports);var v0=jn.exports,x0=it,T0=x0.Uint8Array,_0=T0,za=_0;function S0(e){var t=new e.constructor(e.byteLength);return new za(t).set(new za(e)),t}var w0=S0,C0=w0;function E0(e,t){var r=t?C0(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var A0=E0;function O0(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var j0=O0,$0=dt,Ba=Object.create,P0=function(){function e(){}return function(t){if(!$0(t))return{};if(Ba)return Ba(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),k0=P0,I0=oa,D0=I0(Object.getPrototypeOf,Object),Ua=D0,M0=k0,F0=Ua,R0=yn;function N0(e){return typeof e.constructor=="function"&&!R0(e)?M0(F0(e)):{}}var L0=N0,z0=xn,B0=Qt;function U0(e){return B0(e)&&z0(e)}var Va=U0,V0=Xt,W0=Ua,G0=Qt,H0="[object Object]",Y0=Function.prototype,q0=Object.prototype,Wa=Y0.toString,J0=q0.hasOwnProperty,K0=Wa.call(Object);function X0(e){if(!G0(e)||V0(e)!=H0)return!1;var t=W0(e);if(t===null)return!0;var r=J0.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Wa.call(r)==K0}var Z0=X0;function Q0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ga=Q0,eb=ri,tb=wn,rb=Object.prototype,nb=rb.hasOwnProperty;function sb(e,t,r){var n=e[t];(!(nb.call(e,t)&&tb(n,r))||r===void 0&&!(t in e))&&eb(e,t,r)}var ib=sb,ob=ib,ab=ri;function lb(e,t,r,n){var s=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=n?n(r[a],e[a],a,r,e):void 0;l===void 0&&(l=e[a]),s?ab(r,a,l):ob(r,a,l)}return r}var ub=lb;function cb(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var fb=cb,db=9007199254740991,pb=/^(?:0|[1-9]\d*)$/;function hb(e,t){var r=typeof e;return t=t??db,!!t&&(r=="number"||r!="symbol"&&pb.test(e))&&e>-1&&e%1==0&&e<t}var Ha=hb,mb=fb,gb=vn,yb=Pr,bb=Zs,vb=Ha,xb=Qs,Tb=Object.prototype,_b=Tb.hasOwnProperty;function Sb(e,t){var r=yb(e),n=!r&&gb(e),s=!r&&!n&&bb(e),i=!r&&!n&&!s&&xb(e),o=r||n||s||i,a=o?mb(e.length,String):[],l=a.length;for(var c in e)(t||_b.call(e,c))&&!(o&&(c=="length"||s&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||vb(c,l)))&&a.push(c);return a}var wb=Sb;function Cb(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Eb=Cb,Ab=dt,Ob=yn,jb=Eb,$b=Object.prototype,Pb=$b.hasOwnProperty;function kb(e){if(!Ab(e))return jb(e);var t=Ob(e),r=[];for(var n in e)n=="constructor"&&(t||!Pb.call(e,n))||r.push(n);return r}var Ib=kb,Db=wb,Mb=Ib,Fb=xn;function Rb(e){return Fb(e)?Db(e,!0):Mb(e)}var Ya=Rb,Nb=ub,Lb=Ya;function zb(e){return Nb(e,Lb(e))}var Bb=zb,qa=La,Ub=v0,Vb=A0,Wb=j0,Gb=L0,Ja=vn,Ka=Pr,Hb=Va,Yb=Zs,qb=Ws,Jb=dt,Kb=Z0,Xb=Qs,Xa=Ga,Zb=Bb;function Qb(e,t,r,n,s,i,o){var a=Xa(e,r),l=Xa(t,r),c=o.get(l);if(c){qa(e,r,c);return}var d=i?i(a,l,r+"",e,t,o):void 0,f=d===void 0;if(f){var p=Ka(l),m=!p&&Yb(l),b=!p&&!m&&Xb(l);d=l,p||m||b?Ka(a)?d=a:Hb(a)?d=Wb(a):m?(f=!1,d=Ub(l,!0)):b?(f=!1,d=Vb(l,!0)):d=[]:Kb(l)||Ja(l)?(d=a,Ja(a)?d=Zb(a):(!Jb(a)||qb(a))&&(d=Gb(l))):f=!1}f&&(o.set(l,d),s(d,l,n,i,o),o.delete(l)),qa(e,r,d)}var ev=Qb,tv=a0,rv=La,nv=b0,sv=ev,iv=dt,ov=Ya,av=Ga;function Za(e,t,r,n,s){e!==t&&nv(t,function(i,o){if(s||(s=new tv),iv(i))sv(e,t,o,r,Za,n,s);else{var a=n?n(av(e,o),i,o+"",e,t,s):void 0;a===void 0&&(a=i),rv(e,o,a)}},ov)}var lv=Za;function uv(e){return e}var Qa=uv;function cv(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var fv=cv,dv=fv,el=Math.max;function pv(e,t,r){return t=el(t===void 0?e.length-1:t,0),function(){for(var n=arguments,s=-1,i=el(n.length-t,0),o=Array(i);++s<i;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=r(o),dv(e,this,a)}}var hv=pv;function mv(e){return function(){return e}}var gv=mv,yv=gv,tl=Ra,bv=Qa,vv=tl?function(e,t){return tl(e,"toString",{configurable:!0,enumerable:!1,value:yv(t),writable:!0})}:bv,xv=vv,Tv=800,_v=16,Sv=Date.now;function wv(e){var t=0,r=0;return function(){var n=Sv(),s=_v-(n-r);if(r=n,s>0){if(++t>=Tv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Cv=wv,Ev=xv,Av=Cv,Ov=Av(Ev),jv=Ov,$v=Qa,Pv=hv,kv=jv;function Iv(e,t){return kv(Pv(e,t,$v),e+"")}var rl=Iv,Dv=wn,Mv=xn,Fv=Ha,Rv=dt;function Nv(e,t,r){if(!Rv(r))return!1;var n=typeof t;return(n=="number"?Mv(r)&&Fv(t,r.length):n=="string"&&t in r)?Dv(r[t],e):!1}var nl=Nv,Lv=rl,zv=nl;function Bv(e){return Lv(function(t,r){var n=-1,s=r.length,i=s>1?r[s-1]:void 0,o=s>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(s--,i):void 0,o&&zv(r[0],r[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++n<s;){var a=r[n];a&&e(t,a,n,i)}return t})}var Uv=Bv,Vv=lv,Wv=Uv,Gv=Wv(function(e,t,r){Vv(e,t,r)}),Hv=Gv;const sl=_t(Hv),il=_.memo(function(t){const{className:r,config:n,uischema:s,data:i,description:o,errors:a,enabled:l,path:c,handleChange:d,label:f,required:p}=t,m=sl({},n,s.options),b=h.useProps(c,{},{});return Object.keys(b).forEach(T=>{typeof b[T]=="function"&&(b[T]=b[T](i))}),m.format==="password"?u.jsx(h.PasswordInput,{label:f,description:o,error:a,required:p,value:i||"",onChange:T=>{d(c,T.currentTarget.value)},className:r,disabled:!l,w:"100%",...b}):u.jsx(h.TextInput,{label:f,description:o,error:a,required:p,value:i||"",onChange:T=>{d(c,T.currentTarget.value)},className:r,disabled:!l,w:"100%",...b})}),ol=_.memo(function(t){const{className:r,data:n,description:s,enabled:i,errors:o,handleChange:a,label:l,labelPosition:c,path:d,required:f}=t,p=h.useProps(d,{},{});return Object.keys(p).forEach(m=>{typeof p[m]=="function"&&(p[m]=p[m](n))}),u.jsx(h.Checkbox,{label:l,description:s,error:o,disabled:!i,className:r,labelPosition:c,required:f,data:[{label:"true",value:"true"},{label:"false",value:"false"}],value:String(n)||"",onChange:m=>{a(d,m==="true")},...p})}),Yv=e=>u.jsx(Sn,{...e}),al=K.rankWith(4,K.isNumberControl),ll=Se.withJsonFormsCellProps(Yv),qv=e=>u.jsx(Sn,{...e}),ul=K.rankWith(3,K.isIntegerControl),cl=Se.withJsonFormsCellProps(qv),Jv=e=>u.jsx(il,{...e}),fl=K.rankWith(2,K.isStringControl),dl=Se.withJsonFormsCellProps(Jv),Kv=e=>u.jsx(ol,{...e}),pl=K.rankWith(3,K.isBooleanControl),hl=Se.withJsonFormsCellProps(Kv),Xv=e=>{const{data:t,className:r,enabled:n,path:s,handleChange:i,description:o,errors:a,label:l,required:c}=e,d=h.useProps(s,{},{});return Object.keys(d).forEach(f=>{typeof d[f]=="function"&&(d[f]=d[f](t))}),u.jsx(Tt.DateInput,{valueFormat:"DD.MM.YYYY",label:l,description:o,error:a,required:c,value:t?new Date(t):null,onChange:f=>{if(f instanceof Date){const p=new Date(f.getTime()-f.getTimezoneOffset()*6e4);i(s,p.toISOString().substring(0,10))}},className:r,disabled:!n,w:"100%",...d})},ml=K.rankWith(2,K.isDateControl),gl=Se.withJsonFormsCellProps(Xv),Zv=e=>{const{description:t,className:r,enabled:n,path:s,handleChange:i,data:o,errors:a,label:l,required:c}=e,d=h.useProps(s,{},{});return Object.keys(d).forEach(f=>{typeof d[f]=="function"&&(d[f]=d[f](o))}),u.jsx(Tt.DateInput,{valueFormat:"DD.MM.YYYY",className:r,disabled:!n,label:l,description:t,error:a,required:c,value:o?new Date(o):null,onChange:f=>{if(f instanceof Date){const p=new Date(f.getTime()-f.getTimezoneOffset()*6e4);i(s,p.toISOString().substring(0,10))}},w:"100%",...d})},yl=K.rankWith(5,K.isDateTimeControl),bl=Se.withJsonFormsControlProps(Zv),Qv=e=>{const{description:t,data:r,path:n,options:s,enabled:i,handleChange:o,className:a,errors:l,label:c,required:d}=e,f=h.useProps(n,{},{});return Object.keys(f).forEach(p=>{typeof f[p]=="function"&&(f[p]=f[p](r))}),u.jsx(h.Select,{data:s,defaultValue:r,label:c,description:t,required:d,error:l,disabled:!i,searchable:!0,onChange:p=>{o(n,p)},className:a,w:"100%",...f})},vl=K.rankWith(5,K.isEnumControl),xl=Se.withJsonFormsEnumProps(Se.withTranslateProps(_.memo(Qv)),!1);function ex(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}var tx=ex,Tl=bn,rx=vn,nx=Pr,_l=Tl?Tl.isConcatSpreadable:void 0;function sx(e){return nx(e)||rx(e)||!!(_l&&e&&e[_l])}var ix=sx,ox=tx,ax=ix;function Sl(e,t,r,n,s){var i=-1,o=e.length;for(r||(r=ax),s||(s=[]);++i<o;){var a=e[i];t>0&&r(a)?t>1?Sl(a,t-1,r,n,s):ox(s,a):n||(s[s.length]=a)}return s}var lx=Sl,ux="__lodash_hash_undefined__";function cx(e){return this.__data__.set(e,ux),this}var fx=cx;function dx(e){return this.__data__.has(e)}var px=dx,hx=Fa,mx=fx,gx=px;function $n(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new hx;++t<r;)this.add(e[t])}$n.prototype.add=$n.prototype.push=mx,$n.prototype.has=gx;var yx=$n;function bx(e,t,r,n){for(var s=e.length,i=r+(n?1:-1);n?i--:++i<s;)if(t(e[i],i,e))return i;return-1}var vx=bx;function xx(e){return e!==e}var Tx=xx;function _x(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}var Sx=_x,wx=vx,Cx=Tx,Ex=Sx;function Ax(e,t,r){return t===t?Ex(e,t,r):wx(e,Cx,r)}var Ox=Ax,jx=Ox;function $x(e,t){var r=e==null?0:e.length;return!!r&&jx(e,t,0)>-1}var Px=$x;function kx(e,t,r){for(var n=-1,s=e==null?0:e.length;++n<s;)if(r(t,e[n]))return!0;return!1}var Ix=kx;function Dx(e,t){return e.has(t)}var Mx=Dx;function Fx(){}var Rx=Fx;function Nx(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var wl=Nx,ni=ha,Lx=Rx,zx=wl,Bx=1/0,Ux=ni&&1/zx(new ni([,-0]))[1]==Bx?function(e){return new ni(e)}:Lx,Vx=Ux,Wx=yx,Gx=Px,Hx=Ix,Yx=Mx,qx=Vx,Jx=wl,Kx=200;function Xx(e,t,r){var n=-1,s=Gx,i=e.length,o=!0,a=[],l=a;if(r)o=!1,s=Hx;else if(i>=Kx){var c=t?null:qx(e);if(c)return Jx(c);o=!1,s=Yx,l=new Wx}else l=t?[]:a;e:for(;++n<i;){var d=e[n],f=t?t(d):d;if(d=r||d!==0?d:0,o&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),a.push(d)}else s(l,f,r)||(l!==a&&l.push(f),a.push(d))}return a}var Zx=Xx,Qx=lx,e1=rl,t1=Zx,r1=Va,n1=e1(function(e){return t1(Qx(e,1,r1,!0))}),s1=n1;const i1=_t(s1);function o1(e,t,r,n){var s=-1,i=e==null?0:e.length;for(n&&i&&(r=e[++s]);++s<i;)r=t(r,e[s],s,e);return r}var a1=o1;function l1(e){return function(t){return e==null?void 0:e[t]}}var u1=l1,c1=u1,f1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},d1=c1(f1),p1=d1;function h1(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}var m1=h1,Cl=bn,g1=m1,y1=Pr,b1=Oa,v1=1/0,El=Cl?Cl.prototype:void 0,Al=El?El.toString:void 0;function Ol(e){if(typeof e=="string")return e;if(y1(e))return g1(e,Ol)+"";if(b1(e))return Al?Al.call(e):"";var t=e+"";return t=="0"&&1/e==-v1?"-0":t}var x1=Ol,T1=x1;function _1(e){return e==null?"":T1(e)}var si=_1,S1=p1,w1=si,C1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,E1="\\u0300-\\u036f",A1="\\ufe20-\\ufe2f",O1="\\u20d0-\\u20ff",j1=E1+A1+O1,$1="["+j1+"]",P1=RegExp($1,"g");function k1(e){return e=w1(e),e&&e.replace(C1,S1).replace(P1,"")}var I1=k1,D1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function M1(e){return e.match(D1)||[]}var F1=M1,R1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function N1(e){return R1.test(e)}var L1=N1,jl="\\ud800-\\udfff",z1="\\u0300-\\u036f",B1="\\ufe20-\\ufe2f",U1="\\u20d0-\\u20ff",V1=z1+B1+U1,$l="\\u2700-\\u27bf",Pl="a-z\\xdf-\\xf6\\xf8-\\xff",W1="\\xac\\xb1\\xd7\\xf7",G1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",H1="\\u2000-\\u206f",Y1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kl="A-Z\\xc0-\\xd6\\xd8-\\xde",q1="\\ufe0e\\ufe0f",Il=W1+G1+H1+Y1,Dl="['’]",Ml="["+Il+"]",J1="["+V1+"]",Fl="\\d+",K1="["+$l+"]",Rl="["+Pl+"]",Nl="[^"+jl+Il+Fl+$l+Pl+kl+"]",X1="\\ud83c[\\udffb-\\udfff]",Z1="(?:"+J1+"|"+X1+")",Q1="[^"+jl+"]",Ll="(?:\\ud83c[\\udde6-\\uddff]){2}",zl="[\\ud800-\\udbff][\\udc00-\\udfff]",sr="["+kl+"]",eT="\\u200d",Bl="(?:"+Rl+"|"+Nl+")",tT="(?:"+sr+"|"+Nl+")",Ul="(?:"+Dl+"(?:d|ll|m|re|s|t|ve))?",Vl="(?:"+Dl+"(?:D|LL|M|RE|S|T|VE))?",Wl=Z1+"?",Gl="["+q1+"]?",rT="(?:"+eT+"(?:"+[Q1,Ll,zl].join("|")+")"+Gl+Wl+")*",nT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iT=Gl+Wl+rT,oT="(?:"+[K1,Ll,zl].join("|")+")"+iT,aT=RegExp([sr+"?"+Rl+"+"+Ul+"(?="+[Ml,sr,"$"].join("|")+")",tT+"+"+Vl+"(?="+[Ml,sr+Bl,"$"].join("|")+")",sr+"?"+Bl+"+"+Ul,sr+"+"+Vl,sT,nT,Fl,oT].join("|"),"g");function lT(e){return e.match(aT)||[]}var uT=lT,cT=F1,fT=L1,dT=si,pT=uT;function hT(e,t,r){return e=dT(e),t=r?void 0:t,t===void 0?fT(e)?pT(e):cT(e):e.match(t)||[]}var mT=hT,gT=a1,yT=I1,bT=mT,vT="['’]",xT=RegExp(vT,"g");function TT(e){return function(t){return gT(bT(yT(t).replace(xT,"")),e,"")}}var _T=TT;function ST(e,t,r){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(s);++n<s;)i[n]=e[n+t];return i}var wT=ST,CT=wT;function ET(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:CT(e,t,r)}var AT=ET,OT="\\ud800-\\udfff",jT="\\u0300-\\u036f",$T="\\ufe20-\\ufe2f",PT="\\u20d0-\\u20ff",kT=jT+$T+PT,IT="\\ufe0e\\ufe0f",DT="\\u200d",MT=RegExp("["+DT+OT+kT+IT+"]");function FT(e){return MT.test(e)}var Hl=FT;function RT(e){return e.split("")}var NT=RT,Yl="\\ud800-\\udfff",LT="\\u0300-\\u036f",zT="\\ufe20-\\ufe2f",BT="\\u20d0-\\u20ff",UT=LT+zT+BT,VT="\\ufe0e\\ufe0f",WT="["+Yl+"]",ii="["+UT+"]",oi="\\ud83c[\\udffb-\\udfff]",GT="(?:"+ii+"|"+oi+")",ql="[^"+Yl+"]",Jl="(?:\\ud83c[\\udde6-\\uddff]){2}",Kl="[\\ud800-\\udbff][\\udc00-\\udfff]",HT="\\u200d",Xl=GT+"?",Zl="["+VT+"]?",YT="(?:"+HT+"(?:"+[ql,Jl,Kl].join("|")+")"+Zl+Xl+")*",qT=Zl+Xl+YT,JT="(?:"+[ql+ii+"?",ii,Jl,Kl,WT].join("|")+")",KT=RegExp(oi+"(?="+oi+")|"+JT+qT,"g");function XT(e){return e.match(KT)||[]}var ZT=XT,QT=NT,e_=Hl,t_=ZT;function r_(e){return e_(e)?t_(e):QT(e)}var n_=r_,s_=AT,i_=Hl,o_=n_,a_=si;function l_(e){return function(t){t=a_(t);var r=i_(t)?o_(t):void 0,n=r?r[0]:t.charAt(0),s=r?s_(r,1).join(""):t.slice(1);return n[e]()+s}}var u_=l_,c_=u_,f_=c_("toUpperCase"),d_=f_,p_=_T,h_=d_,m_=p_(function(e,t,r){return e+(r?" ":"")+h_(t)}),g_=m_;const y_=_t(g_);var b_=Math.ceil,v_=Math.max;function x_(e,t,r,n){for(var s=-1,i=v_(b_((t-e)/(r||1)),0),o=Array(i);i--;)o[n?i:++s]=e,e+=r;return o}var T_=x_,__=Pa,Ql=1/0,S_=17976931348623157e292;function w_(e){if(!e)return e===0?e:0;if(e=__(e),e===Ql||e===-Ql){var t=e<0?-1:1;return t*S_}return e===e?e:0}var C_=w_,E_=T_,A_=nl,ai=C_;function O_(e){return function(t,r,n){return n&&typeof n!="number"&&A_(t,r,n)&&(r=n=void 0),t=ai(t),r===void 0?(r=t,t=0):r=ai(r),n=n===void 0?t<r?1:-1:ai(n),E_(t,r,n,e)}}var j_=O_,$_=j_,P_=$_(),k_=P_;const I_=_t(k_);function pt(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 eu(e){if(ze.isValidElement(e)||!pt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=eu(e[r])}),t}function Ke(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return pt(e)&&pt(t)&&Object.keys(t).forEach(s=>{ze.isValidElement(t[s])?n[s]=t[s]:pt(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&pt(e[s])?n[s]=Ke(e[s],t[s],r):r.clone?n[s]=pt(t[s])?eu(t[s]):t[s]:n[s]=t[s]}),n}var li={exports:{}},Pn={exports:{}},me={};/** @license React v16.13.1
129
+ */var Jf=Me("outline","users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);function ui(){const{error:e}=fe(),[t,r]=x.useState(!1);return x.useEffect(()=>{e&&r(!0)},[e]),l.jsx(h.Modal,{opened:t,onClose:()=>r(!1),title:l.jsxs(h.Group,{children:[l.jsx(zf,{size:16,color:"red"}),l.jsx(h.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?l.jsx(h.Text,{children:e.message}):null})}function Kf({opened:e,onClose:t,handleAccept:r,handleReject:n}){return l.jsxs(h.Modal,{opened:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",title:"Item löschen?",centered:!0,children:["Sind Sie Sicher, dass Sie das Item löschen wollen?",l.jsxs(h.Group,{align:"right",mt:"xl",justify:"flex-end",children:[l.jsx(h.Button,{onClick:n,variant:"default",children:"Abbrechen"}),l.jsx(h.Button,{onClick:r,color:"red",children:"Löschen"})]})]})}function ci({id:e,...t}){const{deleteEntry:r}=fe(),n={bg:"transparent",size:"sm",c:"gray"},s=h.useProps("ActionIcon",n,t),[o,i]=x.useState(!1),a=()=>{i(!1)},u=async()=>{r(e),i(!1)};return l.jsxs(l.Fragment,{children:[l.jsx(h.Tooltip,{label:"Delete",children:l.jsx(h.ActionIcon,{bg:s.bg,size:s.size,c:s.c,onClick:()=>{i(!0)},children:l.jsx(li,{})})}),l.jsx(Kf,{opened:o,onClose:a,handleAccept:u,handleReject:a})]})}const ds=(e,t)=>{const r=t.split("."),n=e[r[0]];if(r.length>1&&Array.isArray(n))return n.map(o=>ds(o,r.slice(1).join("."))).join(", ");const s=t.split(".").reduce((o,i)=>o[i],e);return Qo(s)};function fi(e,t){return e===!0||Array.isArray(e)?t:Object.fromEntries(Object.keys(e).map(r=>[r,fi(e[r],t[r])]))}function di(e,t){if(!e)return e;const r=t.values;return!r||!r.length||Array.isArray(e.id_)&&(e.id=e.id_),e}function Xf(e,t){const r={};return t.forEach(n=>{if(n.type==="Related"){r[n.name]=di(e.result[n.name],n);return}if(n.type==="RelatedList"){r[n.name]=e.result[n.name].map(s=>di(s,n));return}r[n.name]=typeof e.result[n.name]=="boolean"?String(e.result[n.name]):e.result[n.name]}),r}function ps(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(r){const n={};return r instanceof Ne&&r.inner.forEach(s=>{n[s.path.replaceAll("[",".").replaceAll("]","")]=s.message}),n}}}function Zf({form:e,name:t,...r}){return l.jsx(l.Fragment,{children:l.jsx(wt.DateInput,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const s=new Date(n.getTime()-n.getTimezoneOffset()*6e4);e.setFieldValue(t,s.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function Qf({form:e,name:t,...r}){return l.jsx(l.Fragment,{children:l.jsx(wt.DateTimePicker,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const s=new Date(n);e.setFieldValue(t,s.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function Qr({form:e,name:t,...r}){const n=e.getInputProps(t).value,s=x.useMemo(()=>n&&typeof n=="object"?JSON.stringify(n):n||"",[n]);return t==="password"?l.jsx(h.PasswordInput,{...e.getInputProps(t),value:s,...r}):l.jsx(h.TextInput,{...e.getInputProps(t),value:s,...r})}function pi({form:e,name:t,filter:r,...n}){const[s,o]=x.useState(""),i=e.getInputProps(t).value,a=x.useMemo(()=>i?typeof i=="object"?JSON.stringify(i,null,2):i:"",[i]);return x.useEffect(()=>{o(a)},[a]),r?l.jsx(Qr,{form:e,name:t,...n}):l.jsx(h.JsonInput,{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",...e.getInputProps(t),...n,value:s,onChange:u=>{if(o(u),!u){e.getInputProps(t).onChange(null);return}try{const c=JSON.parse(u);e.getInputProps(t).onChange(c)}catch{}}})}function ed({form:e,name:t,filter:r,...n}){const[s,o]=x.useState(!!r);return l.jsxs(h.InputWrapper,{label:n.label,description:n.description,children:[!r&&l.jsxs(h.Group,{align:"center",gap:"xs",py:"0.25rem",children:[l.jsx(h.Checkbox,{checked:s,onChange:i=>o(i.currentTarget.checked)}),l.jsx(h.Text,{size:"xs",children:"WKT"})]}),s?l.jsx(Qr,{form:e,name:t,...n,label:void 0,description:void 0}):l.jsx(pi,{form:e,name:t,...n,label:void 0,description:void 0})]})}function td({form:e,name:t,items:r,...n}){const s=r.map(i=>({value:String(Je(i.id)),label:i.value})),o=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(i=>String(typeof i=="object"?Je(i.id):i)):[];return l.jsx(h.MultiSelect,{data:s,searchable:!0,...e.getInputProps(t),value:o||[],...n})}function rd({form:e,name:t,items:r,filter:n,...s}){var i;const o=r.map(a=>({value:String(Je(a.id)),label:a.value}));return l.jsx(h.Select,{data:o,searchable:!0,...e.getInputProps(t),onChange:a=>{if(n){e.setFieldValue(t,a);return}const u=r.find(c=>String(Je(c.id))===a)||null;e.setFieldValue(t,u)},value:n?e.getInputProps(t).value:String(Je((i=e.getInputProps(t).value)==null?void 0:i.id))||"",...s})}function hi({form:e,name:t,items:r,...n}){return l.jsx(h.Select,{data:r,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...n})}function en({form:e,name:t,schema:r,filter:n,withinPortal:s=!0,...o}){if(!r.type)return null;switch(r.type){case"Boolean":return l.jsx(hi,{form:e,name:t,items:[{label:"true",value:n?"1":"true"},{label:"false",value:n?"0":"false"}],...o});case"RelatedList":return l.jsx(td,{form:e,name:t,items:r.values,comboboxProps:{withinPortal:s},...o});case"Related":return l.jsx(rd,{form:e,name:t,items:r.values,filter:n,comboboxProps:{withinPortal:s},...o});case"DateTime":return l.jsx(Qf,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:r,popoverProps:{withinPortal:s},...o});case"Date":return l.jsx(Zf,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:r,popoverProps:{withinPortal:s},...o});case"Geometry":return l.jsx(ed,{form:e,name:t,filter:n,...o});case"Raw":return l.jsx(pi,{form:e,name:t,filter:n,...o});case"Integer":case"Float":return l.jsx(Qr,{form:e,name:t,...o});case"Enum":return l.jsx(hi,{form:e,name:t,items:r.values,comboboxProps:{withinPortal:s},...o});default:return l.jsx(Qr,{form:e,name:t,...o})}}function nd(e,t){return new Promise(r=>{r(Xf(e,t.edit.columns))})}function mi({item:e,info:t,opened:r,onClose:n,...s}){const{updateEntry:o}=fe(),i={modal:{},stack:{},saveButton:{}},{modal:a,stack:u,saveButton:c}=h.useProps("EditDialog",i,s),d=fr.useForm({initialValues:t.edit.defaultValues,validate:ps(t.edit.schema)}),f=()=>{const m={};return Object.keys(d.values).forEach(y=>{d.isDirty(y)&&(m[y]=!0)}),m};x.useEffect(()=>{e&&nd(e,t).then(m=>{d.setValues(m),d.resetDirty(m)})},[e,t.edit.columns]);const p=async m=>{m=fi(f(),m),await o(e.id,m),n()};return x.useEffect(()=>{d.setInitialValues(t.edit.defaultValues),d.reset()},[t.edit.defaultValues]),e?l.jsx(h.Modal,{opened:r,onClose:()=>{n()},title:t.edit.title,size:"lg",centered:!0,...a,children:l.jsx(h.Box,{component:"form",onSubmit:d.onSubmit(p),children:l.jsx(h.Stack,{spacing:"md",...u,children:l.jsxs(h.ScrollArea.Autosize,{mah:450,type:"auto",children:[t.edit.columns.map((m,y)=>l.jsx(en,{form:d,name:m.name,label:m.label,description:m.description,schema:m,withAsterisk:m.required},y)),l.jsx(h.Group,{position:"right",mt:"xl",children:l.jsx(h.Button,{type:"submit",...c,children:"Save"})})]})})})}):null}function gi({id:e,...t}){const{info:r,getEntry:n}=fe(),s={bg:"transparent",size:"sm",c:"gray"},o=h.useProps("ActionIcon",s,t),[i,a]=x.useState(null),[u,c]=x.useState(!1),[d,f]=x.useState(!1);return l.jsxs(l.Fragment,{children:[l.jsx(h.Tooltip,{label:"Edit",children:l.jsx(h.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:async()=>{c(!0);const p=await n(e);p&&(a(p),c(!1),f(!0))},children:l.jsx(Yf,{})})}),l.jsx(mi,{item:i,info:r,opened:d,onClose:()=>f(!1)})]})}function sd({relatedPath:e,...t}){const{path:r}=fe();return $e(r?r.substring(0,r.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),l.jsx(si,{resource_name:e.replace("/",""),relation:t,children:l.jsx(ws,{hideToolbar:!0,hideDownload:!1})})}const od=x.memo(sd);function id({item:e,info:t,loading:r,opened:n,onClose:s,...o}){const i={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:a,tabs:u,tabsList:c,tabsPanel:d}=h.useProps("ViewDialog",i,o);return l.jsxs(h.Modal,{opened:n,onClose:s,title:`${e==null?void 0:e.show_title} (#${Je(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...a,children:[l.jsx(h.LoadingOverlay,{visible:r}),!r&&e?l.jsxs(h.Tabs,{defaultValue:"details",...u,children:[l.jsxs(h.Tabs.List,{...c,children:[l.jsx(h.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((f,p)=>l.jsx(h.Tabs.Tab,{value:f.name,children:f.name},p))]}),l.jsx(h.Tabs.Panel,{pt:"xs",value:"details",...d,children:l.jsx(h.Paper,{p:"xs",withBorder:!0,children:l.jsx(h.Stack,{spacing:"md",children:l.jsx(h.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((f,p)=>l.jsxs(h.Grid,{maw:500,children:[l.jsx(h.Grid.Col,{span:4,children:l.jsx(h.Text,{size:"md",children:e.label_columns[f]})}),l.jsx(h.Grid.Col,{span:1,children:l.jsx(h.Text,{size:"xs",children:":"})}),l.jsx(h.Grid.Col,{span:6,children:l.jsx(h.Text,{size:"md",children:ds(e.result,f)})})]},p))})})})}),t.relations.map((f,p)=>l.jsx(h.Tabs.Panel,{pt:"xs",value:f.name,children:l.jsx(h.Paper,{withBorder:!0,children:l.jsx(od,{relatedPath:f.path,id:Je(e.id),foreign_key:f.foreign_key,type:f.type})})},p))]}):null]})}function ad({id:e,...t}){const{info:r,getEntry:n}=fe(),s={bg:"transparent",size:"sm",c:"gray"},o=h.useProps("ActionIcon",s,t),[i,a]=x.useState(null),[u,c]=x.useState(!1),[d,f]=x.useState(!1);return l.jsxs(l.Fragment,{children:[l.jsx(h.Tooltip,{label:"Details",children:l.jsx(h.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:async()=>{c(!0);const p=await n(e);p&&(a(p),c(!1),f(!0))},children:l.jsx(Vf,{})})}),l.jsx(id,{item:i,info:r,loading:u,opened:d,onClose:()=>f(!1)})]})}function hs({id:e}){const{info:t}=fe();return l.jsxs(h.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[t!=null&&t.permissions.includes("can_get")?l.jsx(ad,{id:e}):null,t!=null&&t.permissions.includes("can_put")?l.jsx(gi,{id:e}):null,t!=null&&t.permissions.includes("can_delete")?l.jsx(ci,{id:e}):null]})}function ms({opened:e,onClose:t,...r}){const{info:n,addEntry:s}=fe(),o={modal:{},stack:{},addButton:{}},{addButton:i,modal:a,stack:u}=h.useProps("AddDialog",o,r),c=fr.useForm({initialValues:n.add.defaultValues,validate:ps(n.add.schema)}),d=async f=>{await s(f),c.reset(),t()};return x.useEffect(()=>{c.setInitialValues(n.add.defaultValues),c.reset()},[n.add.defaultValues]),l.jsx(h.Modal,{opened:e,onClose:()=>{c.reset(),t()},title:n.add.title,size:"lg",centered:!0,...a,children:l.jsx(h.Box,{component:"form",onSubmit:c.onSubmit(d),children:l.jsx(h.Stack,{spacing:"md",...u,children:l.jsxs(h.ScrollArea.Autosize,{mah:450,type:"auto",children:[n.add.columns.map((f,p)=>l.jsx(en,{form:c,name:f.name,label:f.label,description:f.description,schema:f,withAsterisk:f.required},p)),l.jsx(h.Group,{position:"right",mt:"xl",children:l.jsx(h.Button,{type:"submit",...i,children:"Add"})})]})})})})}function yi(...e){const[t,r]=x.useState(!1),n={bg:"transparent",size:"sm",c:"gray"},s=h.useProps("ActionIcon",n,e);return l.jsxs(l.Fragment,{children:[l.jsx(h.Tooltip,{label:"Add Item",children:l.jsx(h.ActionIcon,{bg:s.bg,size:s.size,c:s.c,onClick:()=>{r(!0)},children:l.jsx(Zr,{})})}),l.jsx(ms,{opened:t,onClose:()=>{r(!1)}})]})}/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:bi,setPrototypeOf:vi,isFrozen:ld,getPrototypeOf:ud,getOwnPropertyDescriptor:cd}=Object;let{freeze:Ue,seal:et,create:xi}=Object,{apply:gs,construct:ys}=typeof Reflect<"u"&&Reflect;Ue||(Ue=function(t){return t}),et||(et=function(t){return t}),gs||(gs=function(t,r,n){return t.apply(r,n)}),ys||(ys=function(t,r){return new t(...r)});const tn=Ke(Array.prototype.forEach),Ti=Ke(Array.prototype.pop),mr=Ke(Array.prototype.push),rn=Ke(String.prototype.toLowerCase),bs=Ke(String.prototype.toString),Si=Ke(String.prototype.match),gr=Ke(String.prototype.replace),fd=Ke(String.prototype.indexOf),dd=Ke(String.prototype.trim),it=Ke(Object.prototype.hasOwnProperty),Ve=Ke(RegExp.prototype.test),yr=pd(TypeError);function Ke(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return gs(e,t,n)}}function pd(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ys(e,r)}}function ae(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rn;vi&&vi(e,null);let n=t.length;for(;n--;){let s=t[n];if(typeof s=="string"){const o=r(s);o!==s&&(ld(t)||(t[n]=o),s=o)}e[s]=!0}return e}function hd(e){for(let t=0;t<e.length;t++)it(e,t)||(e[t]=null);return e}function Ft(e){const t=xi(null);for(const[r,n]of bi(e))it(e,r)&&(Array.isArray(n)?t[r]=hd(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Ft(n):t[r]=n);return t}function br(e,t){for(;e!==null;){const n=cd(e,t);if(n){if(n.get)return Ke(n.get);if(typeof n.value=="function")return Ke(n.value)}e=ud(e)}function r(){return null}return r}const _i=Ue(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vs=Ue(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),xs=Ue(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),md=Ue(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ts=Ue(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),gd=Ue(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wi=Ue(["#text"]),Ei=Ue(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ss=Ue(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ci=Ue(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nn=Ue(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yd=et(/\{\{[\w\W]*|[\w\W]*\}\}/gm),bd=et(/<%[\w\W]*|[\w\W]*%>/gm),vd=et(/\${[\w\W]*}/gm),xd=et(/^data-[\-\w.\u00B7-\uFFFF]/),Td=et(/^aria-[\-\w]+$/),Ai=et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sd=et(/^(?:\w+script|data):/i),_d=et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Oi=et(/^html$/i),wd=et(/^[a-z][.\w]*(-[.\w]+)+$/i);var ji=Object.freeze({__proto__:null,ARIA_ATTR:Td,ATTR_WHITESPACE:_d,CUSTOM_ELEMENT:wd,DATA_ATTR:xd,DOCTYPE_NAME:Oi,ERB_EXPR:bd,IS_ALLOWED_URI:Ai,IS_SCRIPT_OR_DATA:Sd,MUSTACHE_EXPR:yd,TMPLIT_EXPR:vd});const vr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ed=function(){return typeof window>"u"?null:window},Cd=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(n=r.getAttribute(s));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},$i=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ki(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ed();const t=K=>ki(K);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==vr.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,s=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:i,Node:a,Element:u,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=e,y=u.prototype,v=br(y,"cloneNode"),b=br(y,"remove"),E=br(y,"nextSibling"),P=br(y,"childNodes"),O=br(y,"parentNode");if(typeof i=="function"){const K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}let A,_="";const{implementation:$,createNodeIterator:F,createDocumentFragment:H,getElementsByTagName:Q}=r,{importNode:g}=n;let j=$i();t.isSupported=typeof bi=="function"&&typeof O=="function"&&$&&$.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:Z,TMPLIT_EXPR:ne,DATA_ATTR:ce,ARIA_ATTR:ge,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:se}=ji;let{IS_ALLOWED_URI:C}=ji,k=null;const q=ae({},[..._i,...vs,...xs,...Ts,...wi]);let z=null;const Y=ae({},[...Ei,...Ss,...Ci,...nn]);let B=Object.seal(xi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),X=null,N=null,te=!0,ie=!0,oe=!1,Ae=!0,D=!1,ke=!0,L=!1,He=!1,dt=!1,nt=!1,Bt=!1,Ut=!1,Nr=!0,T=!1;const W="user-content-";let U=!0,le=!1,we={},ye=null;const re=ae({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let st=null;const St=ae({},["audio","video","img","source","image","track"]);let Pe=null;const pt=ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ht="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml";let Re=Ye,xo=!1,To=null;const _C=ae({},[ht,Qe,Ye],bs);let Nn=ae({},["mi","mo","mn","ms","mtext"]),Fn=ae({},["annotation-xml"]);const wC=ae({},["title","style","font","a","script"]);let Fr=null;const EC=["application/xhtml+xml","text/html"],CC="text/html";let Ie=null,cr=null;const AC=r.createElement("form"),yc=function(S){return S instanceof RegExp||S instanceof Function},So=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(cr&&cr===S)){if((!S||typeof S!="object")&&(S={}),S=Ft(S),Fr=EC.indexOf(S.PARSER_MEDIA_TYPE)===-1?CC:S.PARSER_MEDIA_TYPE,Ie=Fr==="application/xhtml+xml"?bs:rn,k=it(S,"ALLOWED_TAGS")?ae({},S.ALLOWED_TAGS,Ie):q,z=it(S,"ALLOWED_ATTR")?ae({},S.ALLOWED_ATTR,Ie):Y,To=it(S,"ALLOWED_NAMESPACES")?ae({},S.ALLOWED_NAMESPACES,bs):_C,Pe=it(S,"ADD_URI_SAFE_ATTR")?ae(Ft(pt),S.ADD_URI_SAFE_ATTR,Ie):pt,st=it(S,"ADD_DATA_URI_TAGS")?ae(Ft(St),S.ADD_DATA_URI_TAGS,Ie):St,ye=it(S,"FORBID_CONTENTS")?ae({},S.FORBID_CONTENTS,Ie):re,X=it(S,"FORBID_TAGS")?ae({},S.FORBID_TAGS,Ie):{},N=it(S,"FORBID_ATTR")?ae({},S.FORBID_ATTR,Ie):{},we=it(S,"USE_PROFILES")?S.USE_PROFILES:!1,te=S.ALLOW_ARIA_ATTR!==!1,ie=S.ALLOW_DATA_ATTR!==!1,oe=S.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,D=S.SAFE_FOR_TEMPLATES||!1,ke=S.SAFE_FOR_XML!==!1,L=S.WHOLE_DOCUMENT||!1,nt=S.RETURN_DOM||!1,Bt=S.RETURN_DOM_FRAGMENT||!1,Ut=S.RETURN_TRUSTED_TYPE||!1,dt=S.FORCE_BODY||!1,Nr=S.SANITIZE_DOM!==!1,T=S.SANITIZE_NAMED_PROPS||!1,U=S.KEEP_CONTENT!==!1,le=S.IN_PLACE||!1,C=S.ALLOWED_URI_REGEXP||Ai,Re=S.NAMESPACE||Ye,Nn=S.MATHML_TEXT_INTEGRATION_POINTS||Nn,Fn=S.HTML_INTEGRATION_POINTS||Fn,B=S.CUSTOM_ELEMENT_HANDLING||{},S.CUSTOM_ELEMENT_HANDLING&&yc(S.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=S.CUSTOM_ELEMENT_HANDLING.tagNameCheck),S.CUSTOM_ELEMENT_HANDLING&&yc(S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(B.allowCustomizedBuiltInElements=S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),D&&(ie=!1),Bt&&(nt=!0),we&&(k=ae({},wi),z=[],we.html===!0&&(ae(k,_i),ae(z,Ei)),we.svg===!0&&(ae(k,vs),ae(z,Ss),ae(z,nn)),we.svgFilters===!0&&(ae(k,xs),ae(z,Ss),ae(z,nn)),we.mathMl===!0&&(ae(k,Ts),ae(z,Ci),ae(z,nn))),S.ADD_TAGS&&(k===q&&(k=Ft(k)),ae(k,S.ADD_TAGS,Ie)),S.ADD_ATTR&&(z===Y&&(z=Ft(z)),ae(z,S.ADD_ATTR,Ie)),S.ADD_URI_SAFE_ATTR&&ae(Pe,S.ADD_URI_SAFE_ATTR,Ie),S.FORBID_CONTENTS&&(ye===re&&(ye=Ft(ye)),ae(ye,S.FORBID_CONTENTS,Ie)),U&&(k["#text"]=!0),L&&ae(k,["html","head","body"]),k.table&&(ae(k,["tbody"]),delete X.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw yr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=S.TRUSTED_TYPES_POLICY,_=A.createHTML("")}else A===void 0&&(A=Cd(m,s)),A!==null&&typeof _=="string"&&(_=A.createHTML(""));Ue&&Ue(S),cr=S}},bc=ae({},[...vs,...xs,...md]),vc=ae({},[...Ts,...gd]),OC=function(S){let M=O(S);(!M||!M.tagName)&&(M={namespaceURI:Re,tagName:"template"});const G=rn(S.tagName),_e=rn(M.tagName);return To[S.namespaceURI]?S.namespaceURI===Qe?M.namespaceURI===Ye?G==="svg":M.namespaceURI===ht?G==="svg"&&(_e==="annotation-xml"||Nn[_e]):!!bc[G]:S.namespaceURI===ht?M.namespaceURI===Ye?G==="math":M.namespaceURI===Qe?G==="math"&&Fn[_e]:!!vc[G]:S.namespaceURI===Ye?M.namespaceURI===Qe&&!Fn[_e]||M.namespaceURI===ht&&!Nn[_e]?!1:!vc[G]&&(wC[G]||!bc[G]):!!(Fr==="application/xhtml+xml"&&To[S.namespaceURI]):!1},mt=function(S){mr(t.removed,{element:S});try{O(S).removeChild(S)}catch{b(S)}},Rn=function(S,M){try{mr(t.removed,{attribute:M.getAttributeNode(S),from:M})}catch{mr(t.removed,{attribute:null,from:M})}if(M.removeAttribute(S),S==="is")if(nt||Bt)try{mt(M)}catch{}else try{M.setAttribute(S,"")}catch{}},xc=function(S){let M=null,G=null;if(dt)S="<remove></remove>"+S;else{const De=Si(S,/^[\r\n\t ]+/);G=De&&De[0]}Fr==="application/xhtml+xml"&&Re===Ye&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const _e=A?A.createHTML(S):S;if(Re===Ye)try{M=new p().parseFromString(_e,Fr)}catch{}if(!M||!M.documentElement){M=$.createDocument(Re,"template",null);try{M.documentElement.innerHTML=xo?_:_e}catch{}}const Le=M.body||M.documentElement;return S&&G&&Le.insertBefore(r.createTextNode(G),Le.childNodes[0]||null),Re===Ye?Q.call(M,L?"html":"body")[0]:L?M.documentElement:Le},Tc=function(S){return F.call(S.ownerDocument||S,S,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Sc=function(S){return S instanceof f&&(typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||!(S.attributes instanceof d)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function")},_c=function(S){return typeof a=="function"&&S instanceof a};function _t(K,S,M){tn(K,G=>{G.call(t,S,M,cr)})}const wc=function(S){let M=null;if(_t(j.beforeSanitizeElements,S,null),Sc(S))return mt(S),!0;const G=Ie(S.nodeName);if(_t(j.uponSanitizeElement,S,{tagName:G,allowedTags:k}),S.hasChildNodes()&&!_c(S.firstElementChild)&&Ve(/<[/\w]/g,S.innerHTML)&&Ve(/<[/\w]/g,S.textContent)||S.nodeType===vr.progressingInstruction||ke&&S.nodeType===vr.comment&&Ve(/<[/\w]/g,S.data))return mt(S),!0;if(!k[G]||X[G]){if(!X[G]&&Cc(G)&&(B.tagNameCheck instanceof RegExp&&Ve(B.tagNameCheck,G)||B.tagNameCheck instanceof Function&&B.tagNameCheck(G)))return!1;if(U&&!ye[G]){const _e=O(S)||S.parentNode,Le=P(S)||S.childNodes;if(Le&&_e){const De=Le.length;for(let qe=De-1;qe>=0;--qe){const gt=v(Le[qe],!0);gt.__removalCount=(S.__removalCount||0)+1,_e.insertBefore(gt,E(S))}}}return mt(S),!0}return S instanceof u&&!OC(S)||(G==="noscript"||G==="noembed"||G==="noframes")&&Ve(/<\/no(script|embed|frames)/i,S.innerHTML)?(mt(S),!0):(D&&S.nodeType===vr.text&&(M=S.textContent,tn([R,Z,ne],_e=>{M=gr(M,_e," ")}),S.textContent!==M&&(mr(t.removed,{element:S.cloneNode()}),S.textContent=M)),_t(j.afterSanitizeElements,S,null),!1)},Ec=function(S,M,G){if(Nr&&(M==="id"||M==="name")&&(G in r||G in AC))return!1;if(!(ie&&!N[M]&&Ve(ce,M))){if(!(te&&Ve(ge,M))){if(!z[M]||N[M]){if(!(Cc(S)&&(B.tagNameCheck instanceof RegExp&&Ve(B.tagNameCheck,S)||B.tagNameCheck instanceof Function&&B.tagNameCheck(S))&&(B.attributeNameCheck instanceof RegExp&&Ve(B.attributeNameCheck,M)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(M))||M==="is"&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Ve(B.tagNameCheck,G)||B.tagNameCheck instanceof Function&&B.tagNameCheck(G))))return!1}else if(!Pe[M]){if(!Ve(C,gr(G,ee,""))){if(!((M==="src"||M==="xlink:href"||M==="href")&&S!=="script"&&fd(G,"data:")===0&&st[S])){if(!(oe&&!Ve(V,gr(G,ee,"")))){if(G)return!1}}}}}}return!0},Cc=function(S){return S!=="annotation-xml"&&Si(S,se)},Ac=function(S){_t(j.beforeSanitizeAttributes,S,null);const{attributes:M}=S;if(!M)return;const G={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let _e=M.length;for(;_e--;){const Le=M[_e],{name:De,namespaceURI:qe,value:gt}=Le,Rr=Ie(De);let We=De==="value"?gt:dd(gt);if(G.attrName=Rr,G.attrValue=We,G.keepAttr=!0,G.forceKeepAttr=void 0,_t(j.uponSanitizeAttribute,S,G),We=G.attrValue,T&&(Rr==="id"||Rr==="name")&&(Rn(De,S),We=W+We),ke&&Ve(/((--!?|])>)|<\/(style|title)/i,We)){Rn(De,S);continue}if(G.forceKeepAttr||(Rn(De,S),!G.keepAttr))continue;if(!Ae&&Ve(/\/>/i,We)){Rn(De,S);continue}D&&tn([R,Z,ne],jc=>{We=gr(We,jc," ")});const Oc=Ie(S.nodeName);if(Ec(Oc,Rr,We)){if(A&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!qe)switch(m.getAttributeType(Oc,Rr)){case"TrustedHTML":{We=A.createHTML(We);break}case"TrustedScriptURL":{We=A.createScriptURL(We);break}}try{qe?S.setAttributeNS(qe,De,We):S.setAttribute(De,We),Sc(S)?mt(S):Ti(t.removed)}catch{}}}_t(j.afterSanitizeAttributes,S,null)},jC=function K(S){let M=null;const G=Tc(S);for(_t(j.beforeSanitizeShadowDOM,S,null);M=G.nextNode();)_t(j.uponSanitizeShadowNode,M,null),!wc(M)&&(M.content instanceof o&&K(M.content),Ac(M));_t(j.afterSanitizeShadowDOM,S,null)};return t.sanitize=function(K){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,G=null,_e=null,Le=null;if(xo=!K,xo&&(K="<!-->"),typeof K!="string"&&!_c(K))if(typeof K.toString=="function"){if(K=K.toString(),typeof K!="string")throw yr("dirty is not a string, aborting")}else throw yr("toString is not a function");if(!t.isSupported)return K;if(He||So(S),t.removed=[],typeof K=="string"&&(le=!1),le){if(K.nodeName){const gt=Ie(K.nodeName);if(!k[gt]||X[gt])throw yr("root node is forbidden and cannot be sanitized in-place")}}else if(K instanceof a)M=xc("<!---->"),G=M.ownerDocument.importNode(K,!0),G.nodeType===vr.element&&G.nodeName==="BODY"||G.nodeName==="HTML"?M=G:M.appendChild(G);else{if(!nt&&!D&&!L&&K.indexOf("<")===-1)return A&&Ut?A.createHTML(K):K;if(M=xc(K),!M)return nt?null:Ut?_:""}M&&dt&&mt(M.firstChild);const De=Tc(le?K:M);for(;_e=De.nextNode();)wc(_e)||(_e.content instanceof o&&jC(_e.content),Ac(_e));if(le)return K;if(nt){if(Bt)for(Le=H.call(M.ownerDocument);M.firstChild;)Le.appendChild(M.firstChild);else Le=M;return(z.shadowroot||z.shadowrootmode)&&(Le=g.call(n,Le,!0)),Le}let qe=L?M.outerHTML:M.innerHTML;return L&&k["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&Ve(Oi,M.ownerDocument.doctype.name)&&(qe="<!DOCTYPE "+M.ownerDocument.doctype.name+`>
130
+ `+qe),D&&tn([R,Z,ne],gt=>{qe=gr(qe,gt," ")}),A&&Ut?A.createHTML(qe):qe},t.setConfig=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};So(K),He=!0},t.clearConfig=function(){cr=null,He=!1},t.isValidAttribute=function(K,S,M){cr||So({});const G=Ie(K),_e=Ie(S);return Ec(G,_e,M)},t.addHook=function(K,S){typeof S=="function"&&mr(j[K],S)},t.removeHook=function(K){return Ti(j[K])},t.removeHooks=function(K){j[K]=[]},t.removeAllHooks=function(){j=$i()},t}var Pi=ki();const Ot=x.forwardRef(({fallback:e,functionProps:t,children:r},n)=>{if(typeof r=="function"&&(r=r(...t)),r===null)return null;const s=r||e;return x.isValidElement(s)?x.cloneElement(s,{ref:n}):s});Ot.displayName="FallbackWrapper";const Ad={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},sn=x.memo(({id:e,entry:t,loading:r,rightBorder:n,children:s,onClickEntry:o,customElement:i,sanitize:a,...u})=>{const c={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:d}=h.useProps("Field",c,u),f={};Object.entries(d).forEach(([m,y])=>{typeof y=="function"&&(f[m]=y(t))});const p=h.useStyles({name:"Field",props:u,classes:Ad});return l.jsx(h.Table.Td,{...p("field"),onClick:o?()=>o(e,t):null,...u,children:l.jsx(h.Box,{w:"100%",children:l.jsx(h.Skeleton,{visible:r,children:l.jsx(Ot,{fallback:Array.isArray(s)?s.map((m,y)=>l.jsx(h.Text,{...d,...f,children:a?Pi.sanitize(m):m},y)):x.isValidElement(s)?s:l.jsx(h.Text,{...d,...f,children:a?Pi.sanitize(s):s}),functionProps:[t],children:i})})})})});sn.displayName="Field";const Ii={row:"_row_138r2_1",selected:"_selected_138r2_5"};function Od({entry:e,selected:t,children:r}){const n=h.useStyles({name:"Row",classes:Ii}),s=h.useProps("Row",{},{});Object.entries(s).forEach(([a,u])=>{typeof u=="function"&&(s[a]=u(e))});var{className:o,style:i}=n("row");return o=`${o} ${t?Ii.selected:""}`,l.jsx(h.Table.Tr,{className:o,style:{...i},...s,children:r})}function jd({bodyCustomizer:e,actionColumn:t,id:r,entry:n}){let s=e==null?void 0:e[t];return typeof s=="function"&&(s=s({id:r,...n})),s===null?null:s||l.jsx(hs,{id:r})}function $d({data:e,loading:t,hideActions:r,hideCheckbox:n,selection:s,toggleRow:o,onClickEntry:i,bodyCustomizer:a,bodySeparator:u}){const c=e.list_columns.includes("actions")?"_actions":"actions",d=x.useMemo(()=>e!=null&&e.list_columns.includes("all")?"_all":"all",[e==null?void 0:e.list_columns]);return l.jsx(h.Table.Tbody,{children:e.result.length?e.result.map((f,p)=>{const m=e.ids[p];return l.jsxs(Od,{entry:{...f,id:m},children:[n?null:l.jsx(sn,{loading:t,children:l.jsx(h.Checkbox,{pl:2,checked:s.includes(m),onChange:y=>{o(m)}})},p),r?null:l.jsx(sn,{loading:t,children:l.jsx(jd,{bodyCustomizer:a,actionColumn:c,id:Je(m),entry:f})}),e.list_columns.map((y,v)=>{let b=a==null?void 0:a[y];typeof b=="function"&&(b=b({id:m,...f}));let E=ds(f,y);typeof E=="number"?E=E.toLocaleString():E==null&&(E="");const P=(u==null?void 0:u[y])||(u==null?void 0:u[d]);return P&&(E=E.split(P)),b===null?null:l.jsx(sn,{id:m,entry:f,loading:t,onClickEntry:i,customElement:b,sanitize:!0,children:E},v)})]},Je(m))}):l.jsx("tr",{children:l.jsx("td",{style:{padding:"8px"},colSpan:r?e.list_columns.length:e.list_columns.length+1,children:l.jsx(h.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available"})})})})}const Mi={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function _s({column:e,label:t,orderColumn:r,related:n,toggleAll:s,allChecked:o,classNames:i,styles:a,customElement:u,...c}){const{queryParams:d,setQueryParams:f,loading:p}=fe(),m={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},y=h.useStyles({name:"FieldTitle",classes:Mi,classNames:i,styles:a,props:c}),v=h.useProps("FieldTitle",m,c),{hovered:b,ref:E}=je.useHover(),P=r&&d.order_column===r,O=y("wrapper");return O.style.cursor=r?O.style.cursor:"auto",l.jsx(h.Table.Th,{className:Mi.fieldTitleRoot,...y("root"),onClick:r&&!p?()=>f({order_column:r,order_direction:d.order_direction==="asc"?"desc":"asc"}):null,children:l.jsx(h.Box,{ref:E,...O,children:e==="Checkbox"?l.jsx(h.Checkbox,{pb:5,pl:2,onChange:s,checked:o}):l.jsxs(l.Fragment,{children:[l.jsx(h.Box,{w:"100%",fw:v.fw,size:"xl",c:b&&r?v.hoverColor:P?v.selectedColor:v.color,children:u||t||e}),n?l.jsx(h.Tooltip,{label:"Related Field",children:l.jsx(h.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:l.jsx(h.Box,{...y("icon"),children:P?d.order_direction==="asc"?l.jsx(cs,{size:14,strokeWidth:1.5}):l.jsx(oi,{size:14,strokeWidth:1.5}):null})})}):l.jsx(h.Box,{...y("icon"),children:P?d.order_direction==="asc"?l.jsx(cs,{size:14,strokeWidth:1.5}):l.jsx(oi,{size:14,strokeWidth:1.5}):null})]})})})}const Di=x.memo(({data:e,info:t,settings:r,hideActions:n,hideCheckbox:s,allChecked:o,toggleAll:i,headerCustomizer:a})=>{const u=e.list_columns.includes("actions")?"_actions":"actions";let c=a==null?void 0:a[u];return typeof c=="function"&&(c=c()),l.jsx(h.Table.Thead,{children:l.jsxs(h.Table.Tr,{children:[s?null:l.jsx(_s,{data:e,column:"Checkbox",allChecked:o,toggleAll:i}),n?null:l.jsx(_s,{column:"Actions",customElement:c}),e.list_columns.map((d,f)=>{var m;let p=a==null?void 0:a[d];return typeof p=="function"&&(p=p(e.label_columns[d])),p===null?null:l.jsx(_s,{column:d,label:e.label_columns[d],orderColumn:e.order_columns.find(y=>y===d)||e.order_columns.find(y=>y.startsWith(`${d}.`)),related:((m=t.filters[d])==null?void 0:m.schema.type)==="Nested",customElement:p},d)})]})})});Di.displayName="Header";const kd={scrollbar:"_scrollbar_isyo2_1"};function Pd({bulkActions:e,hideActions:t,loading:r,onSelectCheckbox:n,onClickEntry:s,hideCheckbox:o,hideDownload:i,headerCustomizer:a,bodyCustomizer:u,bodySeparator:c,...d}){const f=h.useMantineTheme(),p=h.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),m=h.useProps("DatagridTable",p,d),{data:y,info:v}=fe(),[b,E]=x.useState([]),[P,O]=x.useState(!1),A=$=>{E(F=>F.includes($)?F.filter(H=>H!==$):[...F,$])},_=()=>{E($=>$.length===y.ids.length?[]:y.ids.map((F,H)=>F))};return x.useEffect(()=>{O(b.length===y.result.length&&b.length>0),n&&n(b),e==null||e.setSelectedIds(b.map($=>$))},[b]),x.useEffect(()=>{E([]),n&&n([])},[y]),l.jsx(h.ScrollArea,{options:{className:f.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:kd,children:l.jsxs(h.Table,{stickyHeader:!0,...m,children:[l.jsx(Di,{data:y,info:v,hideActions:t,hideCheckbox:o,allChecked:P,setSelection:E,toggleAll:_,headerCustomizer:a}),l.jsx($d,{data:y,loading:r,hideActions:t,hideCheckbox:o,selection:b,setSelection:E,toggleRow:A,onClickEntry:s,bodyCustomizer:u,bodySeparator:c})]})})}const Ni=x.memo(({counter:e,...t})=>{const{data:r,queryParams:n,setQueryParams:s}=fe(),o=h.useMantineTheme(),i=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],a=String(n.page_size),[u,c]=x.useState(n.page);x.useEffect(()=>{c(n.page)},[n.page]);const d=p=>{c(p-1),s({page:p-1})},f=p=>{s({page_size:parseInt(p,10),page:0})};return l.jsxs(l.Fragment,{children:[l.jsx(h.Divider,{}),l.jsxs(h.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[l.jsxs(h.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[l.jsx(h.Text,{children:"Rows per page:"}),l.jsx(h.Select,{value:a,defaultValue:a,onChange:p=>f(p),data:i,allowDeselect:!1,w:80,size:"xs",styles:()=>({input:{fontSize:"14px",fontWeight:"250",lineHeight:"52px",border:"1px solid #E6E8ED"},item:{"&[data-selected]":{"&, &:hover":{outline:"none !important"}}}})})]}),l.jsx(h.Pagination,{size:"sm",total:Math.ceil(r.count/a),value:u+1,onChange:d,...t}),e&&r?l.jsxs(l.Fragment,{children:[l.jsx(h.Text,{c:o.primaryColor,size:"xs",fw:400,pl:20,children:"Total Records"}),l.jsx(h.Text,{c:o.primaryColor,size:"md",fw:700,pl:10,children:r.count})]}):null]})]})});Ni.displayName="Pagination";const Id=0,Md=25,xr=250,Tr="global",Ht="header:",Fi=Ht+"ctt",Ri=Ht+"between_integer",Li=Ht+"between_date",Yt=e=>e!==Tr&&!e.startsWith(Ht);function Dd({form:e,name:t,items:r,onChange:n,...s}){return l.jsx(h.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...s})}function zi({form:e,name:t,label:r,comboboxProps:n,...s}){const o=h.useCombobox({onDropdownClose:()=>o.resetSelectedOption(),onDropdownOpen:()=>o.updateSelectedOptionIndex("active")}),[i,a]=x.useState([]),[u,c]=x.useState(""),d=m=>{u!==""&&(i.includes(u)||a(y=>[...y,u]),c(""))},f=m=>a(y=>y.filter(v=>v!==m)),p=i.map(m=>l.jsx(h.Pill,{withRemoveButton:!0,onRemove:()=>f(m),children:m},m));return x.useEffect(()=>{const m=e.getInputProps(t).value;if(m)try{a([...m])}catch(y){console.error("Error parsing JSON:",y)}},[]),x.useEffect(()=>{e.getInputProps(t).onChange(i)},[i]),l.jsx(h.InputWrapper,{label:r,children:l.jsxs(h.Combobox,{store:o,onOptionSubmit:d,...n,children:[l.jsx(h.Combobox.DropdownTarget,{children:l.jsx(h.PillsInput,{onClick:()=>o.openDropdown(),children:l.jsxs(h.Pill.Group,{children:[p,l.jsx(h.Combobox.EventsTarget,{children:l.jsx(h.PillsInput.Field,{onFocus:()=>o.openDropdown(),onBlur:()=>o.closeDropdown(),value:u,placeholder:"Search values",onChange:m=>{o.updateSelectedOptionIndex(),c(m.currentTarget.value)},onKeyDown:m=>{m.key==="Backspace"&&u.length===0&&(m.preventDefault(),f(i[i.length-1]))}})})]})})}),l.jsx(h.Combobox.Dropdown,{children:l.jsx(h.Combobox.Options,{children:l.jsxs(h.Combobox.Option,{value:"$create",children:["+ Create ",u]})})})]})})}function Nd({form:e,name:t,items:r,onChange:n,...s}){return l.jsx(h.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...s})}function Bi({onClose:e,...t}){const{info:r,queryParams:n,setQueryParams:s,path:o}=fe(),i=fr.useForm({initialValues:{filters:[]},validate:ps(hr({filters:ss().of(hr({col:Kr().transform(f=>f||void 0).required("Field is required"),opr:Kr().transform(f=>f||void 0).required("col is required"),value:Jr().when("col",{is:f=>f&&r.filters[f].schema.required,then:()=>Jr().required("Value is required")})}))}))}),a={bg:"transparent",size:"sm",c:"gray"},u=h.useProps("ActionIcon",a,t);x.useEffect(()=>{i.setValues({filters:[]}),i.reset()},[o]),x.useEffect(()=>{if(n.filters&&n.filters.length){const f=n.filters.filter(p=>Yt(p.opr)).map(p=>({...p,key:je.randomId()}));i.setFieldValue("filters",f)}},[n.filters]);const c=f=>{const p=f.filters.map(({key:y,...v})=>v),m=JSON.parse(JSON.stringify(p));s({filters:m,page:0}),e()},d=i.values.filters.map((f,p)=>l.jsxs(h.Box,{px:"sm",children:[l.jsxs(h.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[l.jsx(h.Box,{style:{width:"192px"},children:r&&r.filters&&l.jsx(Dd,{form:i,name:`filters.${p}.col`,items:Object.entries(r.filters).map(([m,y])=>({label:y.label,value:String(m)})),onChange:m=>{i.setFieldValue(`filters.${p}`,{col:m,opr:"",value:"",key:je.randomId()})}})}),l.jsx(h.Box,{style:{width:"192px"},children:f.col?l.jsx(Nd,{form:i,name:`filters.${p}.opr`,items:r.filters[f.col].filters.filter(m=>Yt(m.operator)).map(m=>({label:m.name,value:m.operator})),onChange:m=>{i.setFieldValue(`filters.${p}`,{col:i.values.filters[p].col,opr:m,value:"",key:je.randomId()})}}):null}),l.jsx(h.Box,{style:{width:"192px"},children:f.col?f.opr==="in"?l.jsx(zi,{form:i,name:`filters.${p}.value`}):l.jsx(en,{form:i,name:`filters.${p}.value`,schema:r.filters[f.col].schema,filter:!0}):null}),l.jsx(h.ActionIcon,{bg:u.bg,size:u.size,c:u.c,onClick:()=>{i.removeListItem("filters",p)},children:l.jsx(li,{})})]}),i.values.filters.length>1&&p<i.values.filters.length-1?l.jsx(h.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},f.key));return l.jsxs(h.Box,{component:"form",onSubmit:i.onSubmit(c),children:[d.length===0&&l.jsx(h.Box,{style:{width:"642px"},children:l.jsx(h.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),l.jsx(h.ScrollArea.Autosize,{mah:"40vh",mt:20,children:d}),l.jsx(h.Divider,{my:"sm"}),l.jsxs(h.Box,{style:{display:"flex",justifyContent:"space-between"},children:[l.jsx(h.Button,{variant:"subtle",leftSection:l.jsx(Zr,{}),onClick:()=>{i.insertListItem("filters",{col:"",opr:"",value:"",key:je.randomId()})},children:"Add Filter"}),l.jsx(h.Group,{spacing:"md",children:l.jsx(h.Button,{type:"submit",children:"Apply"})})]})]})}function Ui(...e){const{queryParams:t}=fe(),r={bg:"transparent",size:"sm",c:"gray"},n=h.useProps("ActionIcon",r,e),[s,o]=x.useState(!1);return l.jsxs(h.Popover,{opened:s,position:"bottom-end",onClose:()=>o(!1),closeOnClickOutside:!1,children:[l.jsx(h.Popover.Target,{children:l.jsx(h.Tooltip,{opened:s?!1:null,label:"Filter",children:t.filters.filter(i=>Yt(i.opr)).length!=0?l.jsx(h.Indicator,{zIndex:20,size:16,label:t.filters.length,children:l.jsx(h.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>o(!0),children:l.jsx(fs,{})})}):l.jsx(h.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>o(!0),children:l.jsx(fs,{})})})}),l.jsxs(h.Popover.Dropdown,{px:"xs",children:[l.jsx(h.Box,{style:{position:"absolute",top:4,right:4},children:l.jsx(h.CloseButton,{title:"Filters",onClick:()=>o(!1)})}),l.jsx(Bi,{onClose:()=>{o(!1)}})]})]})}function Fd(...e){const[t,r]=x.useState(!1),{download:n}=fe(),s={bg:"transparent",size:"sm",c:"gray"},o=h.useProps("ActionIcon",s,e);return t?l.jsx(h.Loader,{color:o.c,size:o.size}):l.jsx(h.Tooltip,{label:"Download",children:l.jsx(h.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>{r(!0),n("download").then(()=>r(!1))},children:l.jsx(ii,{})})})}const Vi=x.memo(({hideAdd:e,hideFilter:t,hideDownload:r,toolbarCustomizer:n})=>{const{info:s}=fe(),o=x.useMemo(()=>{const a={};return Object.entries(n).forEach(([u,c])=>{a[u]=c,typeof a[u]=="function"&&(a[u]=a[u]())}),a},[n]),i=s.permissions.includes("can_post");return l.jsxs(h.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!r&&(o.download||l.jsx(Fd,{})),i&&!e?o.add||l.jsx(yi,{}):null,t?null:o.filter||l.jsx(Ui,{})]})});Vi.displayName="Toolbar";const ws=x.forwardRef((e,t)=>{const{path:r,data:n,loading:s,info:o,setQueryParams:i}=fe(),{hideToolbar:a=!1,hideFilter:u=!1,hideAdd:c=!1,hideSettings:d=!1,hideActions:f=!1,hidePagination:p=!1,hideError:m=!1,hideDownload:y=!0,onSelectCheckbox:v=null,onClickEntry:b=null,fetchOnMount:E=!0,bulkActions:P=null,styles:O,headerCustomizer:A={},bodyCustomizer:_={},toolbarCustomizer:$={},counter:F=!1,bodySeparator:H}=e;if(x.useEffect(()=>{!n&&E&&i({})},[n]),!o)return;const Q=P===null;return l.jsxs(h.Paper,{ref:t,style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",...O},children:[a?null:l.jsx(Vi,{hideFilter:u,hideAdd:c,hideSettings:d,hideDownload:y,toolbarCustomizer:$}),n?l.jsx(Pd,{bulkActions:P,hideActions:f,loading:s,onSelectCheckbox:v,onClickEntry:b,hideCheckbox:Q,hideDownload:y,headerCustomizer:A,bodyCustomizer:_,bodySeparator:H}):null,!p&&n?l.jsx(Ni,{counter:F}):null,m?null:l.jsx(ui,{})]})});ws.displayName="DataGrid";function Rd({children:e,fetch:t=!0,loading:r=l.jsx(h.Center,{children:l.jsx(h.Loader,{})}),end:n=l.jsx(h.Center,{children:"End of data"}),fetchWrapper:s=h.Center,fetchWrapperProps:o}){const{streaming:i,loading:a}=fe(),{ref:u,inViewport:c}=je.useInViewport(),d=x.useMemo(()=>Object.values(i.data).flat(),[i.data]),f=x.useMemo(()=>typeof e=="function"?e(d):e,[e,d]);return x.useEffect(()=>{c&&t&&i.fetch()},[c]),l.jsxs(l.Fragment,{children:[f,a&&r,i.isEnd&&n,l.jsx(s,{ref:u,id:"IS-load-trigger",mih:"1%",...o})]})}var Ld=Object.prototype;function zd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ld;return e===r}var on=zd;function Bd(e,t){return function(r){return e(t(r))}}var Wi=Bd,Ud=Wi,Vd=Ud(Object.keys,Object),Wd=Vd,Gd=on,Hd=Wd,Yd=Object.prototype,qd=Yd.hasOwnProperty;function Jd(e){if(!Gd(e))return Hd(e);var t=[];for(var r in Object(e))qd.call(e,r)&&r!="constructor"&&t.push(r);return t}var Kd=Jd,Xd=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,Gi=Xd,Zd=Gi,Qd=typeof self=="object"&&self&&self.Object===Object&&self,ep=Zd||Qd||Function("return this")(),at=ep,tp=at,rp=tp.Symbol,an=rp,Hi=an,Yi=Object.prototype,np=Yi.hasOwnProperty,sp=Yi.toString,Sr=Hi?Hi.toStringTag:void 0;function op(e){var t=np.call(e,Sr),r=e[Sr];try{e[Sr]=void 0;var n=!0}catch{}var s=sp.call(e);return n&&(t?e[Sr]=r:delete e[Sr]),s}var ip=op,ap=Object.prototype,lp=ap.toString;function up(e){return lp.call(e)}var cp=up,qi=an,fp=ip,dp=cp,pp="[object Null]",hp="[object Undefined]",Ji=qi?qi.toStringTag:void 0;function mp(e){return e==null?e===void 0?hp:pp:Ji&&Ji in Object(e)?fp(e):dp(e)}var qt=mp;function gp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bt=gp,yp=qt,bp=bt,vp="[object AsyncFunction]",xp="[object Function]",Tp="[object GeneratorFunction]",Sp="[object Proxy]";function _p(e){if(!bp(e))return!1;var t=yp(e);return t==xp||t==Tp||t==vp||t==Sp}var Es=_p,wp=at,Ep=wp["__core-js_shared__"],Cp=Ep,Cs=Cp,Ki=function(){var e=/[^.]+$/.exec(Cs&&Cs.keys&&Cs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ap(e){return!!Ki&&Ki in e}var Op=Ap,jp=Function.prototype,$p=jp.toString;function kp(e){if(e!=null){try{return $p.call(e)}catch{}try{return e+""}catch{}}return""}var Xi=kp,Pp=Es,Ip=Op,Mp=bt,Dp=Xi,Np=/[\\^$.*+?()[\]{}|]/g,Fp=/^\[object .+?Constructor\]$/,Rp=Function.prototype,Lp=Object.prototype,zp=Rp.toString,Bp=Lp.hasOwnProperty,Up=RegExp("^"+zp.call(Bp).replace(Np,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vp(e){if(!Mp(e)||Ip(e))return!1;var t=Pp(e)?Up:Fp;return t.test(Dp(e))}var Wp=Vp;function Gp(e,t){return e==null?void 0:e[t]}var Hp=Gp,Yp=Wp,qp=Hp;function Jp(e,t){var r=qp(e,t);return Yp(r)?r:void 0}var Rt=Jp,Kp=Rt,Xp=at,Zp=Kp(Xp,"DataView"),Qp=Zp,eh=Rt,th=at,rh=eh(th,"Map"),As=rh,nh=Rt,sh=at,oh=nh(sh,"Promise"),ih=oh,ah=Rt,lh=at,uh=ah(lh,"Set"),Zi=uh,ch=Rt,fh=at,dh=ch(fh,"WeakMap"),ph=dh,Os=Qp,js=As,$s=ih,ks=Zi,Ps=ph,Qi=qt,Jt=Xi,ea="[object Map]",hh="[object Object]",ta="[object Promise]",ra="[object Set]",na="[object WeakMap]",sa="[object DataView]",mh=Jt(Os),gh=Jt(js),yh=Jt($s),bh=Jt(ks),vh=Jt(Ps),Lt=Qi;(Os&&Lt(new Os(new ArrayBuffer(1)))!=sa||js&&Lt(new js)!=ea||$s&&Lt($s.resolve())!=ta||ks&&Lt(new ks)!=ra||Ps&&Lt(new Ps)!=na)&&(Lt=function(e){var t=Qi(e),r=t==hh?e.constructor:void 0,n=r?Jt(r):"";if(n)switch(n){case mh:return sa;case gh:return ea;case yh:return ta;case bh:return ra;case vh:return na}return t});var xh=Lt;function Th(e){return e!=null&&typeof e=="object"}var Kt=Th,Sh=qt,_h=Kt,wh="[object Arguments]";function Eh(e){return _h(e)&&Sh(e)==wh}var Ch=Eh,oa=Ch,Ah=Kt,ia=Object.prototype,Oh=ia.hasOwnProperty,jh=ia.propertyIsEnumerable,$h=oa(function(){return arguments}())?oa:function(e){return Ah(e)&&Oh.call(e,"callee")&&!jh.call(e,"callee")},ln=$h,kh=Array.isArray,_r=kh,Ph=9007199254740991;function Ih(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ph}var aa=Ih,Mh=Es,Dh=aa;function Nh(e){return e!=null&&Dh(e.length)&&!Mh(e)}var un=Nh,cn={exports:{}};function Fh(){return!1}var Rh=Fh;cn.exports,function(e,t){var r=at,n=Rh,s=t&&!t.nodeType&&t,o=s&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===s,a=i?r.Buffer:void 0,u=a?a.isBuffer:void 0,c=u||n;e.exports=c}(cn,cn.exports);var Is=cn.exports,Lh=qt,zh=aa,Bh=Kt,Uh="[object Arguments]",Vh="[object Array]",Wh="[object Boolean]",Gh="[object Date]",Hh="[object Error]",Yh="[object Function]",qh="[object Map]",Jh="[object Number]",Kh="[object Object]",Xh="[object RegExp]",Zh="[object Set]",Qh="[object String]",em="[object WeakMap]",tm="[object ArrayBuffer]",rm="[object DataView]",nm="[object Float32Array]",sm="[object Float64Array]",om="[object Int8Array]",im="[object Int16Array]",am="[object Int32Array]",lm="[object Uint8Array]",um="[object Uint8ClampedArray]",cm="[object Uint16Array]",fm="[object Uint32Array]",Te={};Te[nm]=Te[sm]=Te[om]=Te[im]=Te[am]=Te[lm]=Te[um]=Te[cm]=Te[fm]=!0,Te[Uh]=Te[Vh]=Te[tm]=Te[Wh]=Te[rm]=Te[Gh]=Te[Hh]=Te[Yh]=Te[qh]=Te[Jh]=Te[Kh]=Te[Xh]=Te[Zh]=Te[Qh]=Te[em]=!1;function dm(e){return Bh(e)&&zh(e.length)&&!!Te[Lh(e)]}var pm=dm;function hm(e){return function(t){return e(t)}}var mm=hm,fn={exports:{}};fn.exports,function(e,t){var r=Gi,n=t&&!t.nodeType&&t,s=n&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===n,i=o&&r.process,a=function(){try{var u=s&&s.require&&s.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=a}(fn,fn.exports);var gm=fn.exports,ym=pm,bm=mm,la=gm,ua=la&&la.isTypedArray,vm=ua?bm(ua):ym,Ms=vm,xm=Kd,Tm=xh,Sm=ln,_m=_r,wm=un,Em=Is,Cm=on,Am=Ms,Om="[object Map]",jm="[object Set]",$m=Object.prototype,km=$m.hasOwnProperty;function Pm(e){if(e==null)return!0;if(wm(e)&&(_m(e)||typeof e=="string"||typeof e.splice=="function"||Em(e)||Am(e)||Sm(e)))return!e.length;var t=Tm(e);if(t==Om||t==jm)return!e.size;if(Cm(e))return!xm(e).length;for(var r in e)if(km.call(e,r))return!1;return!0}var Im=Pm;const ca=Et(Im),fa=(e,t,r,n,s,o,i)=>e.map((a,u)=>l.jsx(h.Grid.Col,{span:s==="row"?12/e.length:12,style:{alignContent:"end"},children:l.jsx(xe.JsonFormsDispatch,{uischema:a,schema:t,path:r,enabled:n,renderers:o,cells:i})},`${r}-${u}`)),Mm=({elements:e,schema:t,path:r,enabled:n,direction:s,renderers:o,cells:i})=>ca(e)?null:l.jsx(h.Grid,{spacing:s==="row"?2:0,children:fa(e,t,r,n,s,o,i)}),Ds=x.memo(Mm),Dm=e=>function(r){const n=xe.useJsonForms(),s=J.getAjv({jsonforms:{...n}});return l.jsx(e,{...r,ajv:s})};var Nm=at,Fm=function(){return Nm.Date.now()},Rm=Fm,Lm=/\s/;function zm(e){for(var t=e.length;t--&&Lm.test(e.charAt(t)););return t}var Bm=zm,Um=Bm,Vm=/^\s+/;function Wm(e){return e&&e.slice(0,Um(e)+1).replace(Vm,"")}var Gm=Wm,Hm=qt,Ym=Kt,qm="[object Symbol]";function Jm(e){return typeof e=="symbol"||Ym(e)&&Hm(e)==qm}var da=Jm,Km=Gm,pa=bt,Xm=da,ha=NaN,Zm=/^[-+]0x[0-9a-f]+$/i,Qm=/^0b[01]+$/i,eg=/^0o[0-7]+$/i,tg=parseInt;function rg(e){if(typeof e=="number")return e;if(Xm(e))return ha;if(pa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Km(e);var r=Qm.test(e);return r||eg.test(e)?tg(e.slice(2),r?2:8):Zm.test(e)?ha:+e}var ma=rg,ng=bt,Ns=Rm,ga=ma,sg="Expected a function",og=Math.max,ig=Math.min;function ag(e,t,r){var n,s,o,i,a,u,c=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(sg);t=ga(t)||0,ng(r)&&(d=!!r.leading,f="maxWait"in r,o=f?og(ga(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function m($){var F=n,H=s;return n=s=void 0,c=$,i=e.apply(H,F),i}function y($){return c=$,a=setTimeout(E,t),d?m($):i}function v($){var F=$-u,H=$-c,Q=t-F;return f?ig(Q,o-H):Q}function b($){var F=$-u,H=$-c;return u===void 0||F>=t||F<0||f&&H>=o}function E(){var $=Ns();if(b($))return P($);a=setTimeout(E,v($))}function P($){return a=void 0,p&&n?m($):(n=s=void 0,i)}function O(){a!==void 0&&clearTimeout(a),c=0,n=u=s=a=void 0}function A(){return a===void 0?i:P(Ns())}function _(){var $=Ns(),F=b($);if(n=arguments,s=this,u=$,F){if(a===void 0)return y(u);if(f)return clearTimeout(a),a=setTimeout(E,t),m(u)}return a===void 0&&(a=setTimeout(E,t)),i}return _.cancel=O,_.flush=A,_}var lg=ag;const ug=Et(lg),ya=(e,t,r,n,s,o=300)=>{const[i,a]=x.useState(r??t);x.useEffect(()=>{a(r??t)},[r]);const u=x.useCallback(ug(f=>e(n,f),o),[e,n,o]),c=x.useCallback(f=>{const p=s(f);a(p??t),u(p)},[u,s]),d=x.useCallback(()=>{a(t),e(n,void 0)},[t,e,n]);return[i,c,d]},cg=e=>e===""?void 0:parseFloat(e),fg=e=>cg(e),dn=x.memo(function(t){const{allowDecimal:r,className:n,data:s,description:o,errors:i,enabled:a,handleChange:u,label:c,path:d,required:f,hideControls:p}=t,[m,y]=ya(u,"",s,d,fg),v=h.useProps(d,{},{});return Object.keys(v).forEach(b=>{typeof v[b]=="function"&&(v[b]=v[b](s))}),l.jsx(h.NumberInput,{label:c,description:o,error:i,required:f,value:m,onChange:y,className:n,disabled:!a,allowDecimal:r,hideControls:p,w:"100%",...v})});function dg(){this.__data__=[],this.size=0}var pg=dg;function hg(e,t){return e===t||e!==e&&t!==t}var pn=hg,mg=pn;function gg(e,t){for(var r=e.length;r--;)if(mg(e[r][0],t))return r;return-1}var hn=gg,yg=hn,bg=Array.prototype,vg=bg.splice;function xg(e){var t=this.__data__,r=yg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():vg.call(t,r,1),--this.size,!0}var Tg=xg,Sg=hn;function _g(e){var t=this.__data__,r=Sg(t,e);return r<0?void 0:t[r][1]}var wg=_g,Eg=hn;function Cg(e){return Eg(this.__data__,e)>-1}var Ag=Cg,Og=hn;function jg(e,t){var r=this.__data__,n=Og(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var $g=jg,kg=pg,Pg=Tg,Ig=wg,Mg=Ag,Dg=$g;function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=kg,Xt.prototype.delete=Pg,Xt.prototype.get=Ig,Xt.prototype.has=Mg,Xt.prototype.set=Dg;var mn=Xt,Ng=mn;function Fg(){this.__data__=new Ng,this.size=0}var Rg=Fg;function Lg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var zg=Lg;function Bg(e){return this.__data__.get(e)}var Ug=Bg;function Vg(e){return this.__data__.has(e)}var Wg=Vg,Gg=Rt,Hg=Gg(Object,"create"),gn=Hg,ba=gn;function Yg(){this.__data__=ba?ba(null):{},this.size=0}var qg=Yg;function Jg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kg=Jg,Xg=gn,Zg="__lodash_hash_undefined__",Qg=Object.prototype,e0=Qg.hasOwnProperty;function t0(e){var t=this.__data__;if(Xg){var r=t[e];return r===Zg?void 0:r}return e0.call(t,e)?t[e]:void 0}var r0=t0,n0=gn,s0=Object.prototype,o0=s0.hasOwnProperty;function i0(e){var t=this.__data__;return n0?t[e]!==void 0:o0.call(t,e)}var a0=i0,l0=gn,u0="__lodash_hash_undefined__";function c0(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=l0&&t===void 0?u0:t,this}var f0=c0,d0=qg,p0=Kg,h0=r0,m0=a0,g0=f0;function Zt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Zt.prototype.clear=d0,Zt.prototype.delete=p0,Zt.prototype.get=h0,Zt.prototype.has=m0,Zt.prototype.set=g0;var y0=Zt,va=y0,b0=mn,v0=As;function x0(){this.size=0,this.__data__={hash:new va,map:new(v0||b0),string:new va}}var T0=x0;function S0(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _0=S0,w0=_0;function E0(e,t){var r=e.__data__;return w0(t)?r[typeof t=="string"?"string":"hash"]:r.map}var yn=E0,C0=yn;function A0(e){var t=C0(this,e).delete(e);return this.size-=t?1:0,t}var O0=A0,j0=yn;function $0(e){return j0(this,e).get(e)}var k0=$0,P0=yn;function I0(e){return P0(this,e).has(e)}var M0=I0,D0=yn;function N0(e,t){var r=D0(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var F0=N0,R0=T0,L0=O0,z0=k0,B0=M0,U0=F0;function Qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qt.prototype.clear=R0,Qt.prototype.delete=L0,Qt.prototype.get=z0,Qt.prototype.has=B0,Qt.prototype.set=U0;var xa=Qt,V0=mn,W0=As,G0=xa,H0=200;function Y0(e,t){var r=this.__data__;if(r instanceof V0){var n=r.__data__;if(!W0||n.length<H0-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new G0(n)}return r.set(e,t),this.size=r.size,this}var q0=Y0,J0=mn,K0=Rg,X0=zg,Z0=Ug,Q0=Wg,ey=q0;function er(e){var t=this.__data__=new J0(e);this.size=t.size}er.prototype.clear=K0,er.prototype.delete=X0,er.prototype.get=Z0,er.prototype.has=Q0,er.prototype.set=ey;var ty=er,ry=Rt,ny=function(){try{var e=ry(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ta=ny,Sa=Ta;function sy(e,t,r){t=="__proto__"&&Sa?Sa(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Fs=sy,oy=Fs,iy=pn;function ay(e,t,r){(r!==void 0&&!iy(e[t],r)||r===void 0&&!(t in e))&&oy(e,t,r)}var _a=ay;function ly(e){return function(t,r,n){for(var s=-1,o=Object(t),i=n(t),a=i.length;a--;){var u=i[e?a:++s];if(r(o[u],u,o)===!1)break}return t}}var uy=ly,cy=uy,fy=cy(),dy=fy,bn={exports:{}};bn.exports,function(e,t){var r=at,n=t&&!t.nodeType&&t,s=n&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===n,i=o?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;function u(c,d){if(d)return c.slice();var f=c.length,p=a?a(f):new c.constructor(f);return c.copy(p),p}e.exports=u}(bn,bn.exports);var py=bn.exports,hy=at,my=hy.Uint8Array,gy=my,wa=gy;function yy(e){var t=new e.constructor(e.byteLength);return new wa(t).set(new wa(e)),t}var by=yy,vy=by;function xy(e,t){var r=t?vy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Ty=xy;function Sy(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var _y=Sy,wy=bt,Ea=Object.create,Ey=function(){function e(){}return function(t){if(!wy(t))return{};if(Ea)return Ea(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Cy=Ey,Ay=Wi,Oy=Ay(Object.getPrototypeOf,Object),Ca=Oy,jy=Cy,$y=Ca,ky=on;function Py(e){return typeof e.constructor=="function"&&!ky(e)?jy($y(e)):{}}var Iy=Py,My=un,Dy=Kt;function Ny(e){return Dy(e)&&My(e)}var Aa=Ny,Fy=qt,Ry=Ca,Ly=Kt,zy="[object Object]",By=Function.prototype,Uy=Object.prototype,Oa=By.toString,Vy=Uy.hasOwnProperty,Wy=Oa.call(Object);function Gy(e){if(!Ly(e)||Fy(e)!=zy)return!1;var t=Ry(e);if(t===null)return!0;var r=Vy.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Oa.call(r)==Wy}var Hy=Gy;function Yy(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ja=Yy,qy=Fs,Jy=pn,Ky=Object.prototype,Xy=Ky.hasOwnProperty;function Zy(e,t,r){var n=e[t];(!(Xy.call(e,t)&&Jy(n,r))||r===void 0&&!(t in e))&&qy(e,t,r)}var Qy=Zy,eb=Qy,tb=Fs;function rb(e,t,r,n){var s=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=n?n(r[a],e[a],a,r,e):void 0;u===void 0&&(u=e[a]),s?tb(r,a,u):eb(r,a,u)}return r}var nb=rb;function sb(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ob=sb,ib=9007199254740991,ab=/^(?:0|[1-9]\d*)$/;function lb(e,t){var r=typeof e;return t=t??ib,!!t&&(r=="number"||r!="symbol"&&ab.test(e))&&e>-1&&e%1==0&&e<t}var $a=lb,ub=ob,cb=ln,fb=_r,db=Is,pb=$a,hb=Ms,mb=Object.prototype,gb=mb.hasOwnProperty;function yb(e,t){var r=fb(e),n=!r&&cb(e),s=!r&&!n&&db(e),o=!r&&!n&&!s&&hb(e),i=r||n||s||o,a=i?ub(e.length,String):[],u=a.length;for(var c in e)(t||gb.call(e,c))&&!(i&&(c=="length"||s&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||pb(c,u)))&&a.push(c);return a}var bb=yb;function vb(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var xb=vb,Tb=bt,Sb=on,_b=xb,wb=Object.prototype,Eb=wb.hasOwnProperty;function Cb(e){if(!Tb(e))return _b(e);var t=Sb(e),r=[];for(var n in e)n=="constructor"&&(t||!Eb.call(e,n))||r.push(n);return r}var Ab=Cb,Ob=bb,jb=Ab,$b=un;function kb(e){return $b(e)?Ob(e,!0):jb(e)}var ka=kb,Pb=nb,Ib=ka;function Mb(e){return Pb(e,Ib(e))}var Db=Mb,Pa=_a,Nb=py,Fb=Ty,Rb=_y,Lb=Iy,Ia=ln,Ma=_r,zb=Aa,Bb=Is,Ub=Es,Vb=bt,Wb=Hy,Gb=Ms,Da=ja,Hb=Db;function Yb(e,t,r,n,s,o,i){var a=Da(e,r),u=Da(t,r),c=i.get(u);if(c){Pa(e,r,c);return}var d=o?o(a,u,r+"",e,t,i):void 0,f=d===void 0;if(f){var p=Ma(u),m=!p&&Bb(u),y=!p&&!m&&Gb(u);d=u,p||m||y?Ma(a)?d=a:zb(a)?d=Rb(a):m?(f=!1,d=Nb(u,!0)):y?(f=!1,d=Fb(u,!0)):d=[]:Wb(u)||Ia(u)?(d=a,Ia(a)?d=Hb(a):(!Vb(a)||Ub(a))&&(d=Lb(u))):f=!1}f&&(i.set(u,d),s(d,u,n,o,i),i.delete(u)),Pa(e,r,d)}var qb=Yb,Jb=ty,Kb=_a,Xb=dy,Zb=qb,Qb=bt,ev=ka,tv=ja;function Na(e,t,r,n,s){e!==t&&Xb(t,function(o,i){if(s||(s=new Jb),Qb(o))Zb(e,t,i,r,Na,n,s);else{var a=n?n(tv(e,i),o,i+"",e,t,s):void 0;a===void 0&&(a=o),Kb(e,i,a)}},ev)}var rv=Na;function nv(e){return e}var Fa=nv;function sv(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var ov=sv,iv=ov,Ra=Math.max;function av(e,t,r){return t=Ra(t===void 0?e.length-1:t,0),function(){for(var n=arguments,s=-1,o=Ra(n.length-t,0),i=Array(o);++s<o;)i[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=r(i),iv(e,this,a)}}var lv=av;function uv(e){return function(){return e}}var cv=uv,fv=cv,La=Ta,dv=Fa,pv=La?function(e,t){return La(e,"toString",{configurable:!0,enumerable:!1,value:fv(t),writable:!0})}:dv,hv=pv,mv=800,gv=16,yv=Date.now;function bv(e){var t=0,r=0;return function(){var n=yv(),s=gv-(n-r);if(r=n,s>0){if(++t>=mv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var vv=bv,xv=hv,Tv=vv,Sv=Tv(xv),_v=Sv,wv=Fa,Ev=lv,Cv=_v;function Av(e,t){return Cv(Ev(e,t,wv),e+"")}var za=Av,Ov=pn,jv=un,$v=$a,kv=bt;function Pv(e,t,r){if(!kv(r))return!1;var n=typeof t;return(n=="number"?jv(r)&&$v(t,r.length):n=="string"&&t in r)?Ov(r[t],e):!1}var Ba=Pv,Iv=za,Mv=Ba;function Dv(e){return Iv(function(t,r){var n=-1,s=r.length,o=s>1?r[s-1]:void 0,i=s>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,i&&Mv(r[0],r[1],i)&&(o=s<3?void 0:o,s=1),t=Object(t);++n<s;){var a=r[n];a&&e(t,a,n,o)}return t})}var Nv=Dv,Fv=rv,Rv=Nv,Lv=Rv(function(e,t,r){Fv(e,t,r)}),zv=Lv;const Ua=Et(zv),Va=x.memo(function(t){const{className:r,config:n,uischema:s,data:o,description:i,errors:a,enabled:u,path:c,handleChange:d,label:f,required:p}=t,m=Ua({},n,s.options),y=h.useProps(c,{},{});return Object.keys(y).forEach(v=>{typeof y[v]=="function"&&(y[v]=y[v](o))}),m.format==="password"?l.jsx(h.PasswordInput,{label:f,description:i,error:a,required:p,value:o||"",onChange:v=>{d(c,v.currentTarget.value)},className:r,disabled:!u,w:"100%",...y}):l.jsx(h.TextInput,{label:f,description:i,error:a,required:p,value:o||"",onChange:v=>{d(c,v.currentTarget.value)},className:r,disabled:!u,w:"100%",...y})}),Wa=x.memo(function(t){const{className:r,data:n,description:s,enabled:o,errors:i,handleChange:a,label:u,labelPosition:c,path:d,required:f}=t,p=h.useProps(d,{},{});return Object.keys(p).forEach(m=>{typeof p[m]=="function"&&(p[m]=p[m](n))}),l.jsx(h.Checkbox,{label:u,description:s,error:i,disabled:!o,className:r,labelPosition:c,required:f,data:[{label:"true",value:"true"},{label:"false",value:"false"}],value:String(n)||"",onChange:m=>{a(d,m==="true")},...p})}),Bv=e=>l.jsx(dn,{...e}),Ga=J.rankWith(4,J.isNumberControl),Ha=xe.withJsonFormsCellProps(Bv),Uv=e=>l.jsx(dn,{...e}),Ya=J.rankWith(3,J.isIntegerControl),qa=xe.withJsonFormsCellProps(Uv),Vv=e=>l.jsx(Va,{...e}),Ja=J.rankWith(2,J.isStringControl),Ka=xe.withJsonFormsCellProps(Vv),Wv=e=>l.jsx(Wa,{...e}),Xa=J.rankWith(3,J.isBooleanControl),Za=xe.withJsonFormsCellProps(Wv),Gv=e=>{const{data:t,className:r,enabled:n,path:s,handleChange:o,description:i,errors:a,label:u,required:c}=e,d=h.useProps(s,{},{});return Object.keys(d).forEach(f=>{typeof d[f]=="function"&&(d[f]=d[f](t))}),l.jsx(wt.DateInput,{valueFormat:"DD.MM.YYYY",label:u,description:i,error:a,required:c,value:t?new Date(t):null,onChange:f=>{if(f instanceof Date){const p=new Date(f.getTime()-f.getTimezoneOffset()*6e4);o(s,p.toISOString().substring(0,10))}},className:r,disabled:!n,w:"100%",...d})},Qa=J.rankWith(2,J.isDateControl),el=xe.withJsonFormsCellProps(Gv),Hv=e=>{const{description:t,className:r,enabled:n,path:s,handleChange:o,data:i,errors:a,label:u,required:c}=e,d=h.useProps(s,{},{});return Object.keys(d).forEach(f=>{typeof d[f]=="function"&&(d[f]=d[f](i))}),l.jsx(wt.DateInput,{valueFormat:"DD.MM.YYYY",className:r,disabled:!n,label:u,description:t,error:a,required:c,value:i?new Date(i):null,onChange:f=>{if(f instanceof Date){const p=new Date(f.getTime()-f.getTimezoneOffset()*6e4);o(s,p.toISOString().substring(0,10))}},w:"100%",...d})},tl=J.rankWith(5,J.isDateTimeControl),rl=xe.withJsonFormsControlProps(Hv),Yv=e=>{const{description:t,data:r,path:n,options:s,enabled:o,handleChange:i,className:a,errors:u,label:c,required:d}=e,f=h.useProps(n,{},{});return Object.keys(f).forEach(p=>{typeof f[p]=="function"&&(f[p]=f[p](r))}),l.jsx(h.Select,{data:s,defaultValue:r,label:c,description:t,required:d,error:u,disabled:!o,searchable:!0,onChange:p=>{i(n,p)},className:a,w:"100%",...f})},nl=J.rankWith(5,J.isEnumControl),sl=xe.withJsonFormsEnumProps(xe.withTranslateProps(x.memo(Yv)),!1);function qv(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}var Jv=qv,ol=an,Kv=ln,Xv=_r,il=ol?ol.isConcatSpreadable:void 0;function Zv(e){return Xv(e)||Kv(e)||!!(il&&e&&e[il])}var Qv=Zv,ex=Jv,tx=Qv;function al(e,t,r,n,s){var o=-1,i=e.length;for(r||(r=tx),s||(s=[]);++o<i;){var a=e[o];t>0&&r(a)?t>1?al(a,t-1,r,n,s):ex(s,a):n||(s[s.length]=a)}return s}var rx=al,nx="__lodash_hash_undefined__";function sx(e){return this.__data__.set(e,nx),this}var ox=sx;function ix(e){return this.__data__.has(e)}var ax=ix,lx=xa,ux=ox,cx=ax;function vn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new lx;++t<r;)this.add(e[t])}vn.prototype.add=vn.prototype.push=ux,vn.prototype.has=cx;var fx=vn;function dx(e,t,r,n){for(var s=e.length,o=r+(n?1:-1);n?o--:++o<s;)if(t(e[o],o,e))return o;return-1}var px=dx;function hx(e){return e!==e}var mx=hx;function gx(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}var yx=gx,bx=px,vx=mx,xx=yx;function Tx(e,t,r){return t===t?xx(e,t,r):bx(e,vx,r)}var Sx=Tx,_x=Sx;function wx(e,t){var r=e==null?0:e.length;return!!r&&_x(e,t,0)>-1}var Ex=wx;function Cx(e,t,r){for(var n=-1,s=e==null?0:e.length;++n<s;)if(r(t,e[n]))return!0;return!1}var Ax=Cx;function Ox(e,t){return e.has(t)}var jx=Ox;function $x(){}var kx=$x;function Px(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ll=Px,Rs=Zi,Ix=kx,Mx=ll,Dx=1/0,Nx=Rs&&1/Mx(new Rs([,-0]))[1]==Dx?function(e){return new Rs(e)}:Ix,Fx=Nx,Rx=fx,Lx=Ex,zx=Ax,Bx=jx,Ux=Fx,Vx=ll,Wx=200;function Gx(e,t,r){var n=-1,s=Lx,o=e.length,i=!0,a=[],u=a;if(r)i=!1,s=zx;else if(o>=Wx){var c=t?null:Ux(e);if(c)return Vx(c);i=!1,s=Bx,u=new Rx}else u=t?[]:a;e:for(;++n<o;){var d=e[n],f=t?t(d):d;if(d=r||d!==0?d:0,i&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),a.push(d)}else s(u,f,r)||(u!==a&&u.push(f),a.push(d))}return a}var Hx=Gx,Yx=rx,qx=za,Jx=Hx,Kx=Aa,Xx=qx(function(e){return Jx(Yx(e,1,Kx,!0))}),Zx=Xx;const Qx=Et(Zx);function e1(e,t,r,n){var s=-1,o=e==null?0:e.length;for(n&&o&&(r=e[++s]);++s<o;)r=t(r,e[s],s,e);return r}var t1=e1;function r1(e){return function(t){return e==null?void 0:e[t]}}var n1=r1,s1=n1,o1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},i1=s1(o1),a1=i1;function l1(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}var u1=l1,ul=an,c1=u1,f1=_r,d1=da,p1=1/0,cl=ul?ul.prototype:void 0,fl=cl?cl.toString:void 0;function dl(e){if(typeof e=="string")return e;if(f1(e))return c1(e,dl)+"";if(d1(e))return fl?fl.call(e):"";var t=e+"";return t=="0"&&1/e==-p1?"-0":t}var h1=dl,m1=h1;function g1(e){return e==null?"":m1(e)}var Ls=g1,y1=a1,b1=Ls,v1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,x1="\\u0300-\\u036f",T1="\\ufe20-\\ufe2f",S1="\\u20d0-\\u20ff",_1=x1+T1+S1,w1="["+_1+"]",E1=RegExp(w1,"g");function C1(e){return e=b1(e),e&&e.replace(v1,y1).replace(E1,"")}var A1=C1,O1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function j1(e){return e.match(O1)||[]}var $1=j1,k1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function P1(e){return k1.test(e)}var I1=P1,pl="\\ud800-\\udfff",M1="\\u0300-\\u036f",D1="\\ufe20-\\ufe2f",N1="\\u20d0-\\u20ff",F1=M1+D1+N1,hl="\\u2700-\\u27bf",ml="a-z\\xdf-\\xf6\\xf8-\\xff",R1="\\xac\\xb1\\xd7\\xf7",L1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",z1="\\u2000-\\u206f",B1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gl="A-Z\\xc0-\\xd6\\xd8-\\xde",U1="\\ufe0e\\ufe0f",yl=R1+L1+z1+B1,bl="['’]",vl="["+yl+"]",V1="["+F1+"]",xl="\\d+",W1="["+hl+"]",Tl="["+ml+"]",Sl="[^"+pl+yl+xl+hl+ml+gl+"]",G1="\\ud83c[\\udffb-\\udfff]",H1="(?:"+V1+"|"+G1+")",Y1="[^"+pl+"]",_l="(?:\\ud83c[\\udde6-\\uddff]){2}",wl="[\\ud800-\\udbff][\\udc00-\\udfff]",tr="["+gl+"]",q1="\\u200d",El="(?:"+Tl+"|"+Sl+")",J1="(?:"+tr+"|"+Sl+")",Cl="(?:"+bl+"(?:d|ll|m|re|s|t|ve))?",Al="(?:"+bl+"(?:D|LL|M|RE|S|T|VE))?",Ol=H1+"?",jl="["+U1+"]?",K1="(?:"+q1+"(?:"+[Y1,_l,wl].join("|")+")"+jl+Ol+")*",X1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Q1=jl+Ol+K1,eT="(?:"+[W1,_l,wl].join("|")+")"+Q1,tT=RegExp([tr+"?"+Tl+"+"+Cl+"(?="+[vl,tr,"$"].join("|")+")",J1+"+"+Al+"(?="+[vl,tr+El,"$"].join("|")+")",tr+"?"+El+"+"+Cl,tr+"+"+Al,Z1,X1,xl,eT].join("|"),"g");function rT(e){return e.match(tT)||[]}var nT=rT,sT=$1,oT=I1,iT=Ls,aT=nT;function lT(e,t,r){return e=iT(e),t=r?void 0:t,t===void 0?oT(e)?aT(e):sT(e):e.match(t)||[]}var uT=lT,cT=t1,fT=A1,dT=uT,pT="['’]",hT=RegExp(pT,"g");function mT(e){return function(t){return cT(dT(fT(t).replace(hT,"")),e,"")}}var gT=mT;function yT(e,t,r){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(s);++n<s;)o[n]=e[n+t];return o}var bT=yT,vT=bT;function xT(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:vT(e,t,r)}var TT=xT,ST="\\ud800-\\udfff",_T="\\u0300-\\u036f",wT="\\ufe20-\\ufe2f",ET="\\u20d0-\\u20ff",CT=_T+wT+ET,AT="\\ufe0e\\ufe0f",OT="\\u200d",jT=RegExp("["+OT+ST+CT+AT+"]");function $T(e){return jT.test(e)}var $l=$T;function kT(e){return e.split("")}var PT=kT,kl="\\ud800-\\udfff",IT="\\u0300-\\u036f",MT="\\ufe20-\\ufe2f",DT="\\u20d0-\\u20ff",NT=IT+MT+DT,FT="\\ufe0e\\ufe0f",RT="["+kl+"]",zs="["+NT+"]",Bs="\\ud83c[\\udffb-\\udfff]",LT="(?:"+zs+"|"+Bs+")",Pl="[^"+kl+"]",Il="(?:\\ud83c[\\udde6-\\uddff]){2}",Ml="[\\ud800-\\udbff][\\udc00-\\udfff]",zT="\\u200d",Dl=LT+"?",Nl="["+FT+"]?",BT="(?:"+zT+"(?:"+[Pl,Il,Ml].join("|")+")"+Nl+Dl+")*",UT=Nl+Dl+BT,VT="(?:"+[Pl+zs+"?",zs,Il,Ml,RT].join("|")+")",WT=RegExp(Bs+"(?="+Bs+")|"+VT+UT,"g");function GT(e){return e.match(WT)||[]}var HT=GT,YT=PT,qT=$l,JT=HT;function KT(e){return qT(e)?JT(e):YT(e)}var XT=KT,ZT=TT,QT=$l,eS=XT,tS=Ls;function rS(e){return function(t){t=tS(t);var r=QT(t)?eS(t):void 0,n=r?r[0]:t.charAt(0),s=r?ZT(r,1).join(""):t.slice(1);return n[e]()+s}}var nS=rS,sS=nS,oS=sS("toUpperCase"),iS=oS,aS=gT,lS=iS,uS=aS(function(e,t,r){return e+(r?" ":"")+lS(t)}),cS=uS;const fS=Et(cS);var dS=Math.ceil,pS=Math.max;function hS(e,t,r,n){for(var s=-1,o=pS(dS((t-e)/(r||1)),0),i=Array(o);o--;)i[n?o:++s]=e,e+=r;return i}var mS=hS,gS=ma,Fl=1/0,yS=17976931348623157e292;function bS(e){if(!e)return e===0?e:0;if(e=gS(e),e===Fl||e===-Fl){var t=e<0?-1:1;return t*yS}return e===e?e:0}var vS=bS,xS=mS,TS=Ba,Us=vS;function SS(e){return function(t,r,n){return n&&typeof n!="number"&&TS(t,r,n)&&(r=n=void 0),t=Us(t),r===void 0?(r=t,t=0):r=Us(r),n=n===void 0?t<r?1:-1:Us(n),xS(t,r,n,e)}}var _S=SS,wS=_S,ES=wS(),CS=ES;const AS=Et(CS);function vt(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 Rl(e){if(ze.isValidElement(e)||!vt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Rl(e[r])}),t}function Xe(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return vt(e)&&vt(t)&&Object.keys(t).forEach(s=>{ze.isValidElement(t[s])?n[s]=t[s]:vt(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&vt(e[s])?n[s]=Xe(e[s],t[s],r):r.clone?n[s]=vt(t[s])?Rl(t[s]):t[s]:n[s]=t[s]}),n}var Vs={exports:{}},xn={exports:{}},de={};/** @license React v16.13.1
130
131
  * react-is.production.min.js
131
132
  *
132
133
  * Copyright (c) Facebook, Inc. and its affiliates.
133
134
  *
134
135
  * This source code is licensed under the MIT license found in the
135
136
  * LICENSE file in the root directory of this source tree.
136
- */var tu;function D_(){if(tu)return me;tu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function j(S){if(typeof S=="object"&&S!==null){var P=S.$$typeof;switch(P){case t:switch(S=S.type,S){case l:case c:case n:case i:case s:case f:return S;default:switch(S=S&&S.$$typeof,S){case a:case d:case b:case m:case o:return S;default:return P}}case r:return P}}}function O(S){return j(S)===c}return me.AsyncMode=l,me.ConcurrentMode=c,me.ContextConsumer=a,me.ContextProvider=o,me.Element=t,me.ForwardRef=d,me.Fragment=n,me.Lazy=b,me.Memo=m,me.Portal=r,me.Profiler=i,me.StrictMode=s,me.Suspense=f,me.isAsyncMode=function(S){return O(S)||j(S)===l},me.isConcurrentMode=O,me.isContextConsumer=function(S){return j(S)===a},me.isContextProvider=function(S){return j(S)===o},me.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},me.isForwardRef=function(S){return j(S)===d},me.isFragment=function(S){return j(S)===n},me.isLazy=function(S){return j(S)===b},me.isMemo=function(S){return j(S)===m},me.isPortal=function(S){return j(S)===r},me.isProfiler=function(S){return j(S)===i},me.isStrictMode=function(S){return j(S)===s},me.isSuspense=function(S){return j(S)===f},me.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===c||S===i||S===s||S===f||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===m||S.$$typeof===o||S.$$typeof===a||S.$$typeof===d||S.$$typeof===v||S.$$typeof===w||S.$$typeof===A||S.$$typeof===T)},me.typeOf=j,me}var ge={};/** @license React v16.13.1
137
+ */var Ll;function OS(){if(Ll)return de;Ll=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function O(_){if(typeof _=="object"&&_!==null){var $=_.$$typeof;switch($){case t:switch(_=_.type,_){case u:case c:case n:case o:case s:case f:return _;default:switch(_=_&&_.$$typeof,_){case a:case d:case y:case m:case i:return _;default:return $}}case r:return $}}}function A(_){return O(_)===c}return de.AsyncMode=u,de.ConcurrentMode=c,de.ContextConsumer=a,de.ContextProvider=i,de.Element=t,de.ForwardRef=d,de.Fragment=n,de.Lazy=y,de.Memo=m,de.Portal=r,de.Profiler=o,de.StrictMode=s,de.Suspense=f,de.isAsyncMode=function(_){return A(_)||O(_)===u},de.isConcurrentMode=A,de.isContextConsumer=function(_){return O(_)===a},de.isContextProvider=function(_){return O(_)===i},de.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},de.isForwardRef=function(_){return O(_)===d},de.isFragment=function(_){return O(_)===n},de.isLazy=function(_){return O(_)===y},de.isMemo=function(_){return O(_)===m},de.isPortal=function(_){return O(_)===r},de.isProfiler=function(_){return O(_)===o},de.isStrictMode=function(_){return O(_)===s},de.isSuspense=function(_){return O(_)===f},de.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===c||_===o||_===s||_===f||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===y||_.$$typeof===m||_.$$typeof===i||_.$$typeof===a||_.$$typeof===d||_.$$typeof===b||_.$$typeof===E||_.$$typeof===P||_.$$typeof===v)},de.typeOf=O,de}var pe={};/** @license React v16.13.1
137
138
  * react-is.development.js
138
139
  *
139
140
  * Copyright (c) Facebook, Inc. and its affiliates.
140
141
  *
141
142
  * This source code is licensed under the MIT license found in the
142
143
  * LICENSE file in the root directory of this source tree.
143
- */var ru;function M_(){return ru||(ru=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function j(N){return typeof N=="string"||typeof N=="function"||N===n||N===c||N===i||N===s||N===f||N===p||typeof N=="object"&&N!==null&&(N.$$typeof===b||N.$$typeof===m||N.$$typeof===o||N.$$typeof===a||N.$$typeof===d||N.$$typeof===v||N.$$typeof===w||N.$$typeof===A||N.$$typeof===T)}function O(N){if(typeof N=="object"&&N!==null){var Me=N.$$typeof;switch(Me){case t:var W=N.type;switch(W){case l:case c:case n:case i:case s:case f:return W;default:var We=W&&W.$$typeof;switch(We){case a:case d:case b:case m:case o:return We;default:return Me}}case r:return Me}}}var S=l,P=c,B=a,Y=o,Q=t,g=d,I=n,U=b,J=m,re=r,ce=i,he=s,H=f,te=!1;function ae(N){return te||(te=!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.")),E(N)||O(N)===l}function E(N){return O(N)===c}function D(N){return O(N)===a}function q(N){return O(N)===o}function V(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function X(N){return O(N)===d}function G(N){return O(N)===n}function Z(N){return O(N)===b}function z(N){return O(N)===m}function ne(N){return O(N)===r}function ie(N){return O(N)===i}function se(N){return O(N)===s}function Pe(N){return O(N)===f}ge.AsyncMode=S,ge.ConcurrentMode=P,ge.ContextConsumer=B,ge.ContextProvider=Y,ge.Element=Q,ge.ForwardRef=g,ge.Fragment=I,ge.Lazy=U,ge.Memo=J,ge.Portal=re,ge.Profiler=ce,ge.StrictMode=he,ge.Suspense=H,ge.isAsyncMode=ae,ge.isConcurrentMode=E,ge.isContextConsumer=D,ge.isContextProvider=q,ge.isElement=V,ge.isForwardRef=X,ge.isFragment=G,ge.isLazy=Z,ge.isMemo=z,ge.isPortal=ne,ge.isProfiler=ie,ge.isStrictMode=se,ge.isSuspense=Pe,ge.isValidElementType=j,ge.typeOf=O}()),ge}var nu;function su(){return nu||(nu=1,process.env.NODE_ENV==="production"?Pn.exports=D_():Pn.exports=M_()),Pn.exports}/*
144
+ */var zl;function jS(){return zl||(zl=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function O(D){return typeof D=="string"||typeof D=="function"||D===n||D===c||D===o||D===s||D===f||D===p||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===m||D.$$typeof===i||D.$$typeof===a||D.$$typeof===d||D.$$typeof===b||D.$$typeof===E||D.$$typeof===P||D.$$typeof===v)}function A(D){if(typeof D=="object"&&D!==null){var ke=D.$$typeof;switch(ke){case t:var L=D.type;switch(L){case u:case c:case n:case o:case s:case f:return L;default:var He=L&&L.$$typeof;switch(He){case a:case d:case y:case m:case i:return He;default:return ke}}case r:return ke}}}var _=u,$=c,F=a,H=i,Q=t,g=d,j=n,R=y,Z=m,ne=r,ce=o,ge=s,V=f,ee=!1;function se(D){return ee||(ee=!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.")),C(D)||A(D)===u}function C(D){return A(D)===c}function k(D){return A(D)===a}function q(D){return A(D)===i}function z(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function Y(D){return A(D)===d}function B(D){return A(D)===n}function X(D){return A(D)===y}function N(D){return A(D)===m}function te(D){return A(D)===r}function ie(D){return A(D)===o}function oe(D){return A(D)===s}function Ae(D){return A(D)===f}pe.AsyncMode=_,pe.ConcurrentMode=$,pe.ContextConsumer=F,pe.ContextProvider=H,pe.Element=Q,pe.ForwardRef=g,pe.Fragment=j,pe.Lazy=R,pe.Memo=Z,pe.Portal=ne,pe.Profiler=ce,pe.StrictMode=ge,pe.Suspense=V,pe.isAsyncMode=se,pe.isConcurrentMode=C,pe.isContextConsumer=k,pe.isContextProvider=q,pe.isElement=z,pe.isForwardRef=Y,pe.isFragment=B,pe.isLazy=X,pe.isMemo=N,pe.isPortal=te,pe.isProfiler=ie,pe.isStrictMode=oe,pe.isSuspense=Ae,pe.isValidElementType=O,pe.typeOf=A}()),pe}var Bl;function Ul(){return Bl||(Bl=1,process.env.NODE_ENV==="production"?xn.exports=OS():xn.exports=jS()),xn.exports}/*
144
145
  object-assign
145
146
  (c) Sindre Sorhus
146
147
  @license MIT
147
- */var ui,iu;function F_(){if(iu)return ui;iu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(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 o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ui=s()?Object.assign:function(i,o){for(var a,l=n(i),c,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var f in a)t.call(a,f)&&(l[f]=a[f]);if(e){c=e(a);for(var p=0;p<c.length;p++)r.call(a,c[p])&&(l[c[p]]=a[c[p]])}}return l},ui}var ci,ou;function fi(){if(ou)return ci;ou=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ci=e,ci}var di,au;function lu(){return au||(au=1,di=Function.call.bind(Object.prototype.hasOwnProperty)),di}var pi,uu;function R_(){if(uu)return pi;uu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=fi(),r={},n=lu();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(i,o,a,l,c){if(process.env.NODE_ENV!=="production"){for(var d in i)if(n(i,d)){var f;try{if(typeof i[d]!="function"){var p=Error((l||"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 p.name="Invariant Violation",p}f=i[d](o,d,l,a,null,t)}catch(b){f=b}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var m=c?c():"";e("Failed "+a+" type: "+f.message+(m??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},pi=s,pi}var hi,cu;function N_(){if(cu)return hi;cu=1;var e=su(),t=F_(),r=fi(),n=lu(),s=R_(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return hi=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(E){var D=E&&(c&&E[c]||E[d]);if(typeof D=="function")return D}var p="<<anonymous>>",m={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:A(),arrayOf:j,element:O(),elementType:S(),instanceOf:P,node:g(),objectOf:Y,oneOf:B,oneOfType:Q,shape:U,exact:J};function b(E,D){return E===D?E!==0||1/E===1/D:E!==E&&D!==D}function T(E,D){this.message=E,this.data=D&&typeof D=="object"?D:{},this.stack=""}T.prototype=Error.prototype;function v(E){if(process.env.NODE_ENV!=="production")var D={},q=0;function V(G,Z,z,ne,ie,se,Pe){if(ne=ne||p,se=se||z,Pe!==r){if(l){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Me=ne+":"+z;!D[Me]&&q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+se+"` prop on `"+ne+"`. 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."),D[Me]=!0,q++)}}return Z[z]==null?G?Z[z]===null?new T("The "+ie+" `"+se+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new T("The "+ie+" `"+se+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:E(Z,z,ne,ie,se)}var X=V.bind(null,!1);return X.isRequired=V.bind(null,!0),X}function w(E){function D(q,V,X,G,Z,z){var ne=q[V],ie=he(ne);if(ie!==E){var se=H(ne);return new T("Invalid "+G+" `"+Z+"` of type "+("`"+se+"` supplied to `"+X+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return v(D)}function A(){return v(o)}function j(E){function D(q,V,X,G,Z){if(typeof E!="function")return new T("Property `"+Z+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var z=q[V];if(!Array.isArray(z)){var ne=he(z);return new T("Invalid "+G+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected an array."))}for(var ie=0;ie<z.length;ie++){var se=E(z,ie,X,G,Z+"["+ie+"]",r);if(se instanceof Error)return se}return null}return v(D)}function O(){function E(D,q,V,X,G){var Z=D[q];if(!a(Z)){var z=he(Z);return new T("Invalid "+X+" `"+G+"` of type "+("`"+z+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return v(E)}function S(){function E(D,q,V,X,G){var Z=D[q];if(!e.isValidElementType(Z)){var z=he(Z);return new T("Invalid "+X+" `"+G+"` of type "+("`"+z+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return v(E)}function P(E){function D(q,V,X,G,Z){if(!(q[V]instanceof E)){var z=E.name||p,ne=ae(q[V]);return new T("Invalid "+G+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected ")+("instance of `"+z+"`."))}return null}return v(D)}function B(E){if(!Array.isArray(E))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.")),o;function D(q,V,X,G,Z){for(var z=q[V],ne=0;ne<E.length;ne++)if(b(z,E[ne]))return null;var ie=JSON.stringify(E,function(Pe,N){var Me=H(N);return Me==="symbol"?String(N):N});return new T("Invalid "+G+" `"+Z+"` of value `"+String(z)+"` "+("supplied to `"+X+"`, expected one of "+ie+"."))}return v(D)}function Y(E){function D(q,V,X,G,Z){if(typeof E!="function")return new T("Property `"+Z+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var z=q[V],ne=he(z);if(ne!=="object")return new T("Invalid "+G+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected an object."));for(var ie in z)if(n(z,ie)){var se=E(z,ie,X,G,Z+"."+ie,r);if(se instanceof Error)return se}return null}return v(D)}function Q(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var D=0;D<E.length;D++){var q=E[D];if(typeof q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(q)+" at index "+D+"."),o}function V(X,G,Z,z,ne){for(var ie=[],se=0;se<E.length;se++){var Pe=E[se],N=Pe(X,G,Z,z,ne,r);if(N==null)return null;N.data&&n(N.data,"expectedType")&&ie.push(N.data.expectedType)}var Me=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new T("Invalid "+z+" `"+ne+"` supplied to "+("`"+Z+"`"+Me+"."))}return v(V)}function g(){function E(D,q,V,X,G){return re(D[q])?null:new T("Invalid "+X+" `"+G+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return v(E)}function I(E,D,q,V,X){return new T((E||"React class")+": "+D+" type `"+q+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function U(E){function D(q,V,X,G,Z){var z=q[V],ne=he(z);if(ne!=="object")return new T("Invalid "+G+" `"+Z+"` of type `"+ne+"` "+("supplied to `"+X+"`, expected `object`."));for(var ie in E){var se=E[ie];if(typeof se!="function")return I(X,G,Z,ie,H(se));var Pe=se(z,ie,X,G,Z+"."+ie,r);if(Pe)return Pe}return null}return v(D)}function J(E){function D(q,V,X,G,Z){var z=q[V],ne=he(z);if(ne!=="object")return new T("Invalid "+G+" `"+Z+"` of type `"+ne+"` "+("supplied to `"+X+"`, expected `object`."));var ie=t({},q[V],E);for(var se in ie){var Pe=E[se];if(n(E,se)&&typeof Pe!="function")return I(X,G,Z,se,H(Pe));if(!Pe)return new T("Invalid "+G+" `"+Z+"` key `"+se+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(q[V],null," ")+`
148
- Valid keys: `+JSON.stringify(Object.keys(E),null," "));var N=Pe(z,se,X,G,Z+"."+se,r);if(N)return N}return null}return v(D)}function re(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(re);if(E===null||a(E))return!0;var D=f(E);if(D){var q=D.call(E),V;if(D!==E.entries){for(;!(V=q.next()).done;)if(!re(V.value))return!1}else for(;!(V=q.next()).done;){var X=V.value;if(X&&!re(X[1]))return!1}}else return!1;return!0;default:return!1}}function ce(E,D){return E==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function he(E){var D=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":ce(D,E)?"symbol":D}function H(E){if(typeof E>"u"||E===null)return""+E;var D=he(E);if(D==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return D}function te(E){var D=H(E);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function ae(E){return!E.constructor||!E.constructor.name?p:E.constructor.name}return m.checkPropTypes=s,m.resetWarningCache=s.resetWarningCache,m.PropTypes=m,m},hi}var mi,fu;function L_(){if(fu)return mi;fu=1;var e=fi();function t(){}function r(){}return r.resetWarningCache=t,mi=function(){function n(o,a,l,c,d,f){if(f!==e){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}}n.isRequired=n;function s(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:s,element:n,elementType:n,instanceOf:s,node:n,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},mi}if(process.env.NODE_ENV!=="production"){var z_=su(),B_=!0;li.exports=N_()(z_.isElement,B_)}else li.exports=L_()();var U_=li.exports;const de=_t(U_);function Et(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}var gi={exports:{}},ye={};/**
148
+ */var Ws,Vl;function $S(){if(Vl)return Ws;Vl=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function s(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var u=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ws=s()?Object.assign:function(o,i){for(var a,u=n(o),c,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var f in a)t.call(a,f)&&(u[f]=a[f]);if(e){c=e(a);for(var p=0;p<c.length;p++)r.call(a,c[p])&&(u[c[p]]=a[c[p]])}}return u},Ws}var Gs,Wl;function Hs(){if(Wl)return Gs;Wl=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gs=e,Gs}var Ys,Gl;function Hl(){return Gl||(Gl=1,Ys=Function.call.bind(Object.prototype.hasOwnProperty)),Ys}var qs,Yl;function kS(){if(Yl)return qs;Yl=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Hs(),r={},n=Hl();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function s(o,i,a,u,c){if(process.env.NODE_ENV!=="production"){for(var d in o)if(n(o,d)){var f;try{if(typeof o[d]!="function"){var p=Error((u||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=o[d](i,d,u,a,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var m=c?c():"";e("Failed "+a+" type: "+f.message+(m??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},qs=s,qs}var Js,ql;function PS(){if(ql)return Js;ql=1;var e=Ul(),t=$S(),r=Hs(),n=Hl(),s=kS(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function i(){return null}return Js=function(a,u){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(C){var k=C&&(c&&C[c]||C[d]);if(typeof k=="function")return k}var p="<<anonymous>>",m={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:P(),arrayOf:O,element:A(),elementType:_(),instanceOf:$,node:g(),objectOf:H,oneOf:F,oneOfType:Q,shape:R,exact:Z};function y(C,k){return C===k?C!==0||1/C===1/k:C!==C&&k!==k}function v(C,k){this.message=C,this.data=k&&typeof k=="object"?k:{},this.stack=""}v.prototype=Error.prototype;function b(C){if(process.env.NODE_ENV!=="production")var k={},q=0;function z(B,X,N,te,ie,oe,Ae){if(te=te||p,oe=oe||N,Ae!==r){if(u){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ke=te+":"+N;!k[ke]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+oe+"` prop on `"+te+"`. 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."),k[ke]=!0,q++)}}return X[N]==null?B?X[N]===null?new v("The "+ie+" `"+oe+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new v("The "+ie+" `"+oe+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:C(X,N,te,ie,oe)}var Y=z.bind(null,!1);return Y.isRequired=z.bind(null,!0),Y}function E(C){function k(q,z,Y,B,X,N){var te=q[z],ie=ge(te);if(ie!==C){var oe=V(te);return new v("Invalid "+B+" `"+X+"` of type "+("`"+oe+"` supplied to `"+Y+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return b(k)}function P(){return b(i)}function O(C){function k(q,z,Y,B,X){if(typeof C!="function")return new v("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var N=q[z];if(!Array.isArray(N)){var te=ge(N);return new v("Invalid "+B+" `"+X+"` of type "+("`"+te+"` supplied to `"+Y+"`, expected an array."))}for(var ie=0;ie<N.length;ie++){var oe=C(N,ie,Y,B,X+"["+ie+"]",r);if(oe instanceof Error)return oe}return null}return b(k)}function A(){function C(k,q,z,Y,B){var X=k[q];if(!a(X)){var N=ge(X);return new v("Invalid "+Y+" `"+B+"` of type "+("`"+N+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return b(C)}function _(){function C(k,q,z,Y,B){var X=k[q];if(!e.isValidElementType(X)){var N=ge(X);return new v("Invalid "+Y+" `"+B+"` of type "+("`"+N+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return b(C)}function $(C){function k(q,z,Y,B,X){if(!(q[z]instanceof C)){var N=C.name||p,te=se(q[z]);return new v("Invalid "+B+" `"+X+"` of type "+("`"+te+"` supplied to `"+Y+"`, expected ")+("instance of `"+N+"`."))}return null}return b(k)}function F(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function k(q,z,Y,B,X){for(var N=q[z],te=0;te<C.length;te++)if(y(N,C[te]))return null;var ie=JSON.stringify(C,function(Ae,D){var ke=V(D);return ke==="symbol"?String(D):D});return new v("Invalid "+B+" `"+X+"` of value `"+String(N)+"` "+("supplied to `"+Y+"`, expected one of "+ie+"."))}return b(k)}function H(C){function k(q,z,Y,B,X){if(typeof C!="function")return new v("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var N=q[z],te=ge(N);if(te!=="object")return new v("Invalid "+B+" `"+X+"` of type "+("`"+te+"` supplied to `"+Y+"`, expected an object."));for(var ie in N)if(n(N,ie)){var oe=C(N,ie,Y,B,X+"."+ie,r);if(oe instanceof Error)return oe}return null}return b(k)}function Q(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var k=0;k<C.length;k++){var q=C[k];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(q)+" at index "+k+"."),i}function z(Y,B,X,N,te){for(var ie=[],oe=0;oe<C.length;oe++){var Ae=C[oe],D=Ae(Y,B,X,N,te,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&ie.push(D.data.expectedType)}var ke=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new v("Invalid "+N+" `"+te+"` supplied to "+("`"+X+"`"+ke+"."))}return b(z)}function g(){function C(k,q,z,Y,B){return ne(k[q])?null:new v("Invalid "+Y+" `"+B+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return b(C)}function j(C,k,q,z,Y){return new v((C||"React class")+": "+k+" type `"+q+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function R(C){function k(q,z,Y,B,X){var N=q[z],te=ge(N);if(te!=="object")return new v("Invalid "+B+" `"+X+"` of type `"+te+"` "+("supplied to `"+Y+"`, expected `object`."));for(var ie in C){var oe=C[ie];if(typeof oe!="function")return j(Y,B,X,ie,V(oe));var Ae=oe(N,ie,Y,B,X+"."+ie,r);if(Ae)return Ae}return null}return b(k)}function Z(C){function k(q,z,Y,B,X){var N=q[z],te=ge(N);if(te!=="object")return new v("Invalid "+B+" `"+X+"` of type `"+te+"` "+("supplied to `"+Y+"`, expected `object`."));var ie=t({},q[z],C);for(var oe in ie){var Ae=C[oe];if(n(C,oe)&&typeof Ae!="function")return j(Y,B,X,oe,V(Ae));if(!Ae)return new v("Invalid "+B+" `"+X+"` key `"+oe+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(q[z],null," ")+`
149
+ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var D=Ae(N,oe,Y,B,X+"."+oe,r);if(D)return D}return null}return b(k)}function ne(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(ne);if(C===null||a(C))return!0;var k=f(C);if(k){var q=k.call(C),z;if(k!==C.entries){for(;!(z=q.next()).done;)if(!ne(z.value))return!1}else for(;!(z=q.next()).done;){var Y=z.value;if(Y&&!ne(Y[1]))return!1}}else return!1;return!0;default:return!1}}function ce(C,k){return C==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function ge(C){var k=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":ce(k,C)?"symbol":k}function V(C){if(typeof C>"u"||C===null)return""+C;var k=ge(C);if(k==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return k}function ee(C){var k=V(C);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function se(C){return!C.constructor||!C.constructor.name?p:C.constructor.name}return m.checkPropTypes=s,m.resetWarningCache=s.resetWarningCache,m.PropTypes=m,m},Js}var Ks,Jl;function IS(){if(Jl)return Ks;Jl=1;var e=Hs();function t(){}function r(){}return r.resetWarningCache=t,Ks=function(){function n(i,a,u,c,d,f){if(f!==e){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}}n.isRequired=n;function s(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:s,element:n,elementType:n,instanceOf:s,node:n,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},Ks}if(process.env.NODE_ENV!=="production"){var MS=Ul(),DS=!0;Vs.exports=PS()(MS.isElement,DS)}else Vs.exports=IS()();var NS=Vs.exports;const ue=Et(NS);function jt(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}var Xs={exports:{}},he={};/**
149
150
  * @license React
150
151
  * react-is.production.min.js
151
152
  *
@@ -153,7 +154,7 @@ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var N=Pe(z,se,X,G,Z+"."+
153
154
  *
154
155
  * This source code is licensed under the MIT license found in the
155
156
  * LICENSE file in the root directory of this source tree.
156
- */var du;function V_(){if(du)return ye;du=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function T(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case r:case s:case n:case c:case d:return v;default:switch(v=v&&v.$$typeof,v){case a:case o:case l:case p:case f:case i:return v;default:return w}}case t:return w}}}return ye.ContextConsumer=o,ye.ContextProvider=i,ye.Element=e,ye.ForwardRef=l,ye.Fragment=r,ye.Lazy=p,ye.Memo=f,ye.Portal=t,ye.Profiler=s,ye.StrictMode=n,ye.Suspense=c,ye.SuspenseList=d,ye.isAsyncMode=function(){return!1},ye.isConcurrentMode=function(){return!1},ye.isContextConsumer=function(v){return T(v)===o},ye.isContextProvider=function(v){return T(v)===i},ye.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},ye.isForwardRef=function(v){return T(v)===l},ye.isFragment=function(v){return T(v)===r},ye.isLazy=function(v){return T(v)===p},ye.isMemo=function(v){return T(v)===f},ye.isPortal=function(v){return T(v)===t},ye.isProfiler=function(v){return T(v)===s},ye.isStrictMode=function(v){return T(v)===n},ye.isSuspense=function(v){return T(v)===c},ye.isSuspenseList=function(v){return T(v)===d},ye.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===s||v===n||v===c||v===d||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===i||v.$$typeof===o||v.$$typeof===l||v.$$typeof===b||v.getModuleId!==void 0)},ye.typeOf=T,ye}var be={};/**
157
+ */var Kl;function FS(){if(Kl)return he;Kl=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(b){if(typeof b=="object"&&b!==null){var E=b.$$typeof;switch(E){case e:switch(b=b.type,b){case r:case s:case n:case c:case d:return b;default:switch(b=b&&b.$$typeof,b){case a:case i:case u:case p:case f:case o:return b;default:return E}}case t:return E}}}return he.ContextConsumer=i,he.ContextProvider=o,he.Element=e,he.ForwardRef=u,he.Fragment=r,he.Lazy=p,he.Memo=f,he.Portal=t,he.Profiler=s,he.StrictMode=n,he.Suspense=c,he.SuspenseList=d,he.isAsyncMode=function(){return!1},he.isConcurrentMode=function(){return!1},he.isContextConsumer=function(b){return v(b)===i},he.isContextProvider=function(b){return v(b)===o},he.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},he.isForwardRef=function(b){return v(b)===u},he.isFragment=function(b){return v(b)===r},he.isLazy=function(b){return v(b)===p},he.isMemo=function(b){return v(b)===f},he.isPortal=function(b){return v(b)===t},he.isProfiler=function(b){return v(b)===s},he.isStrictMode=function(b){return v(b)===n},he.isSuspense=function(b){return v(b)===c},he.isSuspenseList=function(b){return v(b)===d},he.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===s||b===n||b===c||b===d||b===m||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===f||b.$$typeof===o||b.$$typeof===i||b.$$typeof===u||b.$$typeof===y||b.getModuleId!==void 0)},he.typeOf=v,he}var me={};/**
157
158
  * @license React
158
159
  * react-is.development.js
159
160
  *
@@ -161,23 +162,23 @@ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var N=Pe(z,se,X,G,Z+"."+
161
162
  *
162
163
  * This source code is licensed under the MIT license found in the
163
164
  * LICENSE file in the root directory of this source tree.
164
- */var pu;function W_(){return pu||(pu=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=!1,T=!1,v=!1,w=!1,A=!1,j;j=Symbol.for("react.module.reference");function O(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===s||A||W===n||W===c||W===d||w||W===m||b||T||v||typeof W=="object"&&W!==null&&(W.$$typeof===p||W.$$typeof===f||W.$$typeof===i||W.$$typeof===o||W.$$typeof===l||W.$$typeof===j||W.getModuleId!==void 0))}function S(W){if(typeof W=="object"&&W!==null){var We=W.$$typeof;switch(We){case e:var He=W.type;switch(He){case r:case s:case n:case c:case d:return He;default:var rt=He&&He.$$typeof;switch(rt){case a:case o:case l:case p:case f:case i:return rt;default:return We}}case t:return We}}}var P=o,B=i,Y=e,Q=l,g=r,I=p,U=f,J=t,re=s,ce=n,he=c,H=d,te=!1,ae=!1;function E(W){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(W){return ae||(ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(W){return S(W)===o}function V(W){return S(W)===i}function X(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function G(W){return S(W)===l}function Z(W){return S(W)===r}function z(W){return S(W)===p}function ne(W){return S(W)===f}function ie(W){return S(W)===t}function se(W){return S(W)===s}function Pe(W){return S(W)===n}function N(W){return S(W)===c}function Me(W){return S(W)===d}be.ContextConsumer=P,be.ContextProvider=B,be.Element=Y,be.ForwardRef=Q,be.Fragment=g,be.Lazy=I,be.Memo=U,be.Portal=J,be.Profiler=re,be.StrictMode=ce,be.Suspense=he,be.SuspenseList=H,be.isAsyncMode=E,be.isConcurrentMode=D,be.isContextConsumer=q,be.isContextProvider=V,be.isElement=X,be.isForwardRef=G,be.isFragment=Z,be.isLazy=z,be.isMemo=ne,be.isPortal=ie,be.isProfiler=se,be.isStrictMode=Pe,be.isSuspense=N,be.isSuspenseList=Me,be.isValidElementType=O,be.typeOf=S}()),be}process.env.NODE_ENV==="production"?gi.exports=V_():gi.exports=W_();var hu=gi.exports;function mu(e,t=""){return e.displayName||e.name||t}function gu(e,t,r){const n=mu(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function G_(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return mu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case hu.ForwardRef:return gu(e,e.render,"ForwardRef");case hu.Memo:return gu(e,e.type,"memo");default:return}}}function Bt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Et(7));return e.charAt(0).toUpperCase()+e.slice(1)}function yi(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const s=n;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],o=t[s];if(!o)r[s]=i||{};else if(!i)r[s]=o;else{r[s]={...o};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;r[s][l]=yi(i[l],o[l])}}}else r[s]===void 0&&(r[s]=e[s])}return r}function H_(e,t,r=void 0){const n={};for(const s in e){const i=e[s];let o="",a=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(o+=(a===!0?"":" ")+t(c),a=!1,r&&r[c]&&(o+=" "+r[c]))}n[s]=o}return n}const yu=e=>e,Y_=(()=>{let e=yu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yu}}})(),q_={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 bi(e,t,r="Mui"){const n=q_[t];return n?`${r}-${n}`:`${Y_.generate(e)}-${t}`}function J_(e,t,r="Mui"){const n={};return t.forEach(s=>{n[s]=bi(e,s,r)}),n}function K_(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function bu(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=bu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function X_(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=bu(e))&&(n&&(n+=" "),n+=t);return n}function kr(e,t){return t?Ke(e,t,{clone:!1}):e}const At=process.env.NODE_ENV!=="production"?de.oneOfType([de.number,de.string,de.object,de.array]):{};function Z_(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,s)=>{var o,a;const i=/min-width:\s*([0-9.]+)/;return+(((o=n.match(i))==null?void 0:o[1])||0)-+(((a=s.match(i))==null?void 0:a[1])||0)});return r.length?r.reduce((n,s)=>{const i=t[s];return delete n[s],n[s]=i,n},{...t}):t}function Q_(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function eS(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
165
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Et(18,`(${t})`));return null}const[,n,s]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(s).up(i)}function tS(e){const t=(i,o)=>i.replace("@media",o?`@container ${o}`:"@container");function r(i,o){i.up=(...a)=>t(e.breakpoints.up(...a),o),i.down=(...a)=>t(e.breakpoints.down(...a),o),i.between=(...a)=>t(e.breakpoints.between(...a),o),i.only=(...a)=>t(e.breakpoints.only(...a),o),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),o);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},s=i=>(r(n,i),n);return r(s),{...e,containerQueries:s}}const kn={xs:0,sm:600,md:900,lg:1200,xl:1536},vu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${kn[e]}px)`},rS={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:kn[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ht(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||vu;return t.reduce((o,a,l)=>(o[i.up(i.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const i=n.breakpoints||vu;return Object.keys(t).reduce((o,a)=>{if(Q_(i.keys,a)){const l=eS(n.containerQueries?n:rS,a);l&&(o[l]=r(t[a],a))}else if(Object.keys(i.values||kn).includes(a)){const l=i.up(a);o[l]=r(t[a],a)}else{const l=a;o[l]=t[l]}return o},{})}return r(t)}function nS(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,s)=>{const i=e.up(s);return n[i]={},n},{}))||{}}function sS(e,t){return e.reduce((r,n)=>{const s=r[n];return(!s||Object.keys(s).length===0)&&delete r[n],r},t)}function In(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((s,i)=>s&&s[i]?s[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,s)=>n&&n[s]!=null?n[s]:null,e)}function Dn(e,t,r,n=r){let s;return typeof e=="function"?s=e(r):Array.isArray(e)?s=e[r]||n:s=In(e,r)||n,t&&(s=t(s,n,e)),s}function $e(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:s}=e,i=o=>{if(o[t]==null)return null;const a=o[t],l=o.theme,c=In(l,n)||{};return ht(o,a,f=>{let p=Dn(c,s,f);return f===p&&typeof f=="string"&&(p=Dn(c,s,`${t}${f==="default"?"":Bt(f)}`,f)),r===!1?p:{[r]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:At}:{},i.filterProps=[t],i}function iS(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const oS={m:"margin",p:"padding"},aS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lS=iS(e=>{if(e.length>2)if(xu[e])e=xu[e];else return[e];const[t,r]=e.split(""),n=oS[t],s=aS[r]||"";return Array.isArray(s)?s.map(i=>n+i):[n+s]}),Mn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],uS=[...Mn,...Fn];function Ir(e,t,r,n){const s=In(e,t,!0)??r;return typeof s=="number"||typeof s=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof s=="string"?`calc(${i} * ${s})`:s*i):Array.isArray(s)?i=>{if(typeof i=="string")return i;const o=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(o)?o>s.length-1&&console.error([`MUI: The value provided (${o}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${o} > ${s.length-1}, you need to add the missing values.`].join(`
165
+ */var Xl;function RS(){return Xl||(Xl=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=!1,v=!1,b=!1,E=!1,P=!1,O;O=Symbol.for("react.module.reference");function A(L){return!!(typeof L=="string"||typeof L=="function"||L===r||L===s||P||L===n||L===c||L===d||E||L===m||y||v||b||typeof L=="object"&&L!==null&&(L.$$typeof===p||L.$$typeof===f||L.$$typeof===o||L.$$typeof===i||L.$$typeof===u||L.$$typeof===O||L.getModuleId!==void 0))}function _(L){if(typeof L=="object"&&L!==null){var He=L.$$typeof;switch(He){case e:var dt=L.type;switch(dt){case r:case s:case n:case c:case d:return dt;default:var nt=dt&&dt.$$typeof;switch(nt){case a:case i:case u:case p:case f:case o:return nt;default:return He}}case t:return He}}}var $=i,F=o,H=e,Q=u,g=r,j=p,R=f,Z=t,ne=s,ce=n,ge=c,V=d,ee=!1,se=!1;function C(L){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(L){return se||(se=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(L){return _(L)===i}function z(L){return _(L)===o}function Y(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function B(L){return _(L)===u}function X(L){return _(L)===r}function N(L){return _(L)===p}function te(L){return _(L)===f}function ie(L){return _(L)===t}function oe(L){return _(L)===s}function Ae(L){return _(L)===n}function D(L){return _(L)===c}function ke(L){return _(L)===d}me.ContextConsumer=$,me.ContextProvider=F,me.Element=H,me.ForwardRef=Q,me.Fragment=g,me.Lazy=j,me.Memo=R,me.Portal=Z,me.Profiler=ne,me.StrictMode=ce,me.Suspense=ge,me.SuspenseList=V,me.isAsyncMode=C,me.isConcurrentMode=k,me.isContextConsumer=q,me.isContextProvider=z,me.isElement=Y,me.isForwardRef=B,me.isFragment=X,me.isLazy=N,me.isMemo=te,me.isPortal=ie,me.isProfiler=oe,me.isStrictMode=Ae,me.isSuspense=D,me.isSuspenseList=ke,me.isValidElementType=A,me.typeOf=_}()),me}process.env.NODE_ENV==="production"?Xs.exports=FS():Xs.exports=RS();var Zl=Xs.exports;function Ql(e,t=""){return e.displayName||e.name||t}function eu(e,t,r){const n=Ql(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function LS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ql(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Zl.ForwardRef:return eu(e,e.render,"ForwardRef");case Zl.Memo:return eu(e,e.type,"memo");default:return}}}function zt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":jt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Zs(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const s=n;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const o=e[s],i=t[s];if(!i)r[s]=o||{};else if(!o)r[s]=i;else{r[s]={...i};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const u=a;r[s][u]=Zs(o[u],i[u])}}}else r[s]===void 0&&(r[s]=e[s])}return r}function zS(e,t,r=void 0){const n={};for(const s in e){const o=e[s];let i="",a=!0;for(let u=0;u<o.length;u+=1){const c=o[u];c&&(i+=(a===!0?"":" ")+t(c),a=!1,r&&r[c]&&(i+=" "+r[c]))}n[s]=i}return n}const tu=e=>e,BS=(()=>{let e=tu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tu}}})(),US={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 Qs(e,t,r="Mui"){const n=US[t];return n?`${r}-${n}`:`${BS.generate(e)}-${t}`}function VS(e,t,r="Mui"){const n={};return t.forEach(s=>{n[s]=Qs(e,s,r)}),n}function WS(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function ru(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=ru(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function GS(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=ru(e))&&(n&&(n+=" "),n+=t);return n}function wr(e,t){return t?Xe(e,t,{clone:!1}):e}const $t=process.env.NODE_ENV!=="production"?ue.oneOfType([ue.number,ue.string,ue.object,ue.array]):{};function HS(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,s)=>{var i,a;const o=/min-width:\s*([0-9.]+)/;return+(((i=n.match(o))==null?void 0:i[1])||0)-+(((a=s.match(o))==null?void 0:a[1])||0)});return r.length?r.reduce((n,s)=>{const o=t[s];return delete n[s],n[s]=o,n},{...t}):t}function YS(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function qS(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
166
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:jt(18,`(${t})`));return null}const[,n,s]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(s).up(o)}function JS(e){const t=(o,i)=>o.replace("@media",i?`@container ${i}`:"@container");function r(o,i){o.up=(...a)=>t(e.breakpoints.up(...a),i),o.down=(...a)=>t(e.breakpoints.down(...a),i),o.between=(...a)=>t(e.breakpoints.between(...a),i),o.only=(...a)=>t(e.breakpoints.only(...a),i),o.not=(...a)=>{const u=t(e.breakpoints.not(...a),i);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},s=o=>(r(n,o),n);return r(s),{...e,containerQueries:s}}const Tn={xs:0,sm:600,md:900,lg:1200,xl:1536},nu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Tn[e]}px)`},KS={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Tn[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function xt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||nu;return t.reduce((i,a,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||nu;return Object.keys(t).reduce((i,a)=>{if(YS(o.keys,a)){const u=qS(n.containerQueries?n:KS,a);u&&(i[u]=r(t[a],a))}else if(Object.keys(o.values||Tn).includes(a)){const u=o.up(a);i[u]=r(t[a],a)}else{const u=a;i[u]=t[u]}return i},{})}return r(t)}function XS(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,s)=>{const o=e.up(s);return n[o]={},n},{}))||{}}function ZS(e,t){return e.reduce((r,n)=>{const s=r[n];return(!s||Object.keys(s).length===0)&&delete r[n],r},t)}function Sn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((s,o)=>s&&s[o]?s[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,s)=>n&&n[s]!=null?n[s]:null,e)}function _n(e,t,r,n=r){let s;return typeof e=="function"?s=e(r):Array.isArray(e)?s=e[r]||n:s=Sn(e,r)||n,t&&(s=t(s,n,e)),s}function Oe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:s}=e,o=i=>{if(i[t]==null)return null;const a=i[t],u=i.theme,c=Sn(u,n)||{};return xt(i,a,f=>{let p=_n(c,s,f);return f===p&&typeof f=="string"&&(p=_n(c,s,`${t}${f==="default"?"":zt(f)}`,f)),r===!1?p:{[r]:p}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:$t}:{},o.filterProps=[t],o}function QS(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const e_={m:"margin",p:"padding"},t_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},su={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},r_=QS(e=>{if(e.length>2)if(su[e])e=su[e];else return[e];const[t,r]=e.split(""),n=e_[t],s=t_[r]||"";return Array.isArray(s)?s.map(o=>n+o):[n+s]}),wn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],En=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],n_=[...wn,...En];function Er(e,t,r,n){const s=Sn(e,t,!0)??r;return typeof s=="number"||typeof s=="string"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${o}.`),typeof s=="string"?`calc(${o} * ${s})`:s*o):Array.isArray(s)?o=>{if(typeof o=="string")return o;const i=Math.abs(o);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(`
166
167
  `)):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(`
167
- `)));const a=s[o];return i>=0?a:typeof a=="number"?-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(`
168
- `)),()=>{})}function vi(e){return Ir(e,"spacing",8,"spacing")}function Dr(e,t){return typeof t=="string"||t==null?t:e(t)}function cS(e,t){return r=>e.reduce((n,s)=>(n[s]=Dr(t,r),n),{})}function fS(e,t,r,n){if(!t.includes(r))return null;const s=lS(r),i=cS(s,n),o=e[r];return ht(e,o,i)}function Tu(e,t){const r=vi(e.theme);return Object.keys(e).map(n=>fS(e,t,n,r)).reduce(kr,{})}function Oe(e){return Tu(e,Mn)}Oe.propTypes=process.env.NODE_ENV!=="production"?Mn.reduce((e,t)=>(e[t]=At,e),{}):{},Oe.filterProps=Mn;function je(e){return Tu(e,Fn)}je.propTypes=process.env.NODE_ENV!=="production"?Fn.reduce((e,t)=>(e[t]=At,e),{}):{},je.filterProps=Fn,process.env.NODE_ENV!=="production"&&uS.reduce((e,t)=>(e[t]=At,e),{});function Rn(...e){const t=e.reduce((n,s)=>(s.filterProps.forEach(i=>{n[i]=s}),n),{}),r=n=>Object.keys(n).reduce((s,i)=>t[i]?kr(s,t[i](n)):s,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,s)=>Object.assign(n,s.propTypes),{}):{},r.filterProps=e.reduce((n,s)=>n.concat(s.filterProps),[]),r}function et(e){return typeof e!="number"?e:`${e}px solid`}function tt(e,t){return $e({prop:e,themeKey:"borders",transform:t})}const dS=tt("border",et),pS=tt("borderTop",et),hS=tt("borderRight",et),mS=tt("borderBottom",et),gS=tt("borderLeft",et),yS=tt("borderColor"),bS=tt("borderTopColor"),vS=tt("borderRightColor"),xS=tt("borderBottomColor"),TS=tt("borderLeftColor"),_S=tt("outline",et),SS=tt("outlineColor"),Nn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ir(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Dr(t,n)});return ht(e,e.borderRadius,r)}return null};Nn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:At}:{},Nn.filterProps=["borderRadius"],Rn(dS,pS,hS,mS,gS,yS,bS,vS,xS,TS,Nn,_S,SS);const Ln=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ir(e.theme,"spacing",8,"gap"),r=n=>({gap:Dr(t,n)});return ht(e,e.gap,r)}return null};Ln.propTypes=process.env.NODE_ENV!=="production"?{gap:At}:{},Ln.filterProps=["gap"];const zn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ir(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Dr(t,n)});return ht(e,e.columnGap,r)}return null};zn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:At}:{},zn.filterProps=["columnGap"];const Bn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ir(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Dr(t,n)});return ht(e,e.rowGap,r)}return null};Bn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:At}:{},Bn.filterProps=["rowGap"];const wS=$e({prop:"gridColumn"}),CS=$e({prop:"gridRow"}),ES=$e({prop:"gridAutoFlow"}),AS=$e({prop:"gridAutoColumns"}),OS=$e({prop:"gridAutoRows"}),jS=$e({prop:"gridTemplateColumns"}),$S=$e({prop:"gridTemplateRows"}),PS=$e({prop:"gridTemplateAreas"}),kS=$e({prop:"gridArea"});Rn(Ln,zn,Bn,wS,CS,ES,AS,OS,jS,$S,PS,kS);function ir(e,t){return t==="grey"?t:e}const IS=$e({prop:"color",themeKey:"palette",transform:ir}),DS=$e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ir}),MS=$e({prop:"backgroundColor",themeKey:"palette",transform:ir});Rn(IS,DS,MS);function Xe(e){return e<=1&&e!==0?`${e*100}%`:e}const FS=$e({prop:"width",transform:Xe}),xi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var s,i,o,a,l;const n=((o=(i=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:i.values)==null?void 0:o[r])||kn[r];return n?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Xe(r)}};return ht(e,e.maxWidth,t)}return null};xi.filterProps=["maxWidth"];const RS=$e({prop:"minWidth",transform:Xe}),NS=$e({prop:"height",transform:Xe}),LS=$e({prop:"maxHeight",transform:Xe}),zS=$e({prop:"minHeight",transform:Xe});$e({prop:"size",cssProperty:"width",transform:Xe}),$e({prop:"size",cssProperty:"height",transform:Xe});const BS=$e({prop:"boxSizing"});Rn(FS,xi,RS,NS,LS,zS,BS);const Un={border:{themeKey:"borders",transform:et},borderTop:{themeKey:"borders",transform:et},borderRight:{themeKey:"borders",transform:et},borderBottom:{themeKey:"borders",transform:et},borderLeft:{themeKey:"borders",transform:et},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:et},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nn},color:{themeKey:"palette",transform:ir},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ir},backgroundColor:{themeKey:"palette",transform:ir},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},m:{style:Oe},mt:{style:Oe},mr:{style:Oe},mb:{style:Oe},ml:{style:Oe},mx:{style:Oe},my:{style:Oe},margin:{style:Oe},marginTop:{style:Oe},marginRight:{style:Oe},marginBottom:{style:Oe},marginLeft:{style:Oe},marginX:{style:Oe},marginY:{style:Oe},marginInline:{style:Oe},marginInlineStart:{style:Oe},marginInlineEnd:{style:Oe},marginBlock:{style:Oe},marginBlockStart:{style:Oe},marginBlockEnd:{style:Oe},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:Ln},rowGap:{style:Bn},columnGap:{style:zn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xe},maxWidth:{style:xi},minWidth:{transform:Xe},height:{transform:Xe},maxHeight:{transform:Xe},minHeight:{transform:Xe},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 US(...e){const t=e.reduce((n,s)=>n.concat(Object.keys(s)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function VS(e,t){return typeof e=="function"?e(t):e}function WS(){function e(r,n,s,i){const o={[r]:n,theme:s},a=i[r];if(!a)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:d,style:f}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=In(s,c)||{};return f?f(o):ht(o,n,b=>{let T=Dn(p,d,b);return b===T&&typeof b=="string"&&(T=Dn(p,d,`${r}${b==="default"?"":Bt(b)}`,b)),l===!1?T:{[l]:T}})}function t(r){const{sx:n,theme:s={}}=r||{};if(!n)return null;const i=s.unstable_sxConfig??Un;function o(a){let l=a;if(typeof a=="function")l=a(s);else if(typeof a!="object")return a;if(!l)return null;const c=nS(s.breakpoints),d=Object.keys(c);let f=c;return Object.keys(l).forEach(p=>{const m=VS(l[p],s);if(m!=null)if(typeof m=="object")if(i[p])f=kr(f,e(p,m,s,i));else{const b=ht({theme:s},m,T=>({[p]:T}));US(b,m)?f[p]=t({sx:m,theme:s}):f=kr(f,b)}else f=kr(f,e(p,m,s,i))}),Z_(s,sS(d,f))}return Array.isArray(n)?n.map(o):o(n)}return t}const or=WS();or.filterProps=["sx"];function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ti.apply(null,arguments)}function _u(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var GS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,HS=_u(function(e){return GS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),YS=!0;function qS(e,t,r){var n="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(n+=s+" ")}),n}var Su=function(t,r,n){var s=t.key+"-"+r.name;(n===!1||YS===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},JS=function(t,r,n){Su(t,r,n);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+s:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function KS(e){for(var t=0,r,n=0,s=e.length;s>=4;++n,s-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XS={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},ZS=!1,QS=/[A-Z]|^ms/g,ew=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wu=function(t){return t.charCodeAt(1)===45},Cu=function(t){return t!=null&&typeof t!="boolean"},_i=_u(function(e){return wu(e)?e:e.replace(QS,"-$&").toLowerCase()}),Eu=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ew,function(n,s,i){return ut={name:s,styles:i,next:ut},s})}return XS[t]!==1&&!wu(t)&&typeof r=="number"&&r!==0?r+"px":r},tw="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Mr(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return ut={name:s.name,styles:s.styles,next:ut},s.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)ut={name:o.name,styles:o.styles,next:ut},o=o.next;var a=i.styles+";";return a}return rw(e,t,r)}case"function":{if(e!==void 0){var l=ut,c=r(e);return ut=l,Mr(e,t,c)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function rw(e,t,r){var n="";if(Array.isArray(r))for(var s=0;s<r.length;s++)n+=Mr(e,t,r[s])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var a=o;t!=null&&t[a]!==void 0?n+=i+"{"+t[a]+"}":Cu(a)&&(n+=_i(i)+":"+Eu(i,a)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&ZS)throw new Error(tw);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)Cu(o[l])&&(n+=_i(i)+":"+Eu(i,o[l])+";");else{var c=Mr(e,t,o);switch(i){case"animation":case"animationName":{n+=_i(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}}return n}var Au=/label:\s*([^\s;{]+)\s*(;|$)/g,ut;function Ou(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,s="";ut=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,s+=Mr(r,t,i);else{var o=i;s+=o[0]}for(var a=1;a<e.length;a++)if(s+=Mr(r,t,e[a]),n){var l=i;s+=l[a]}Au.lastIndex=0;for(var c="",d;(d=Au.exec(s))!==null;)c+="-"+d[1];var f=KS(s)+c;return{name:f,styles:s,next:ut}}var nw=function(t){return t()},sw=ze.useInsertionEffect?ze.useInsertionEffect:!1,iw=sw||nw,ow=HS,aw=function(t){return t!=="theme"},ju=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ow:aw},$u=function(t,r,n){var s;if(r){var i=r.shouldForwardProp;s=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof s!="function"&&n&&(s=t.__emotion_forwardProp),s},lw=!1,uw=function(t){var r=t.cache,n=t.serialized,s=t.isStringTag;return Su(r,n,s),iw(function(){return JS(r,n,s)}),null},cw=function e(t,r){var n=t.__emotion_real===t,s=n&&t.__emotion_base||t,i,o;r!==void 0&&(i=r.label,o=r.target);var a=$u(t,r,n),l=a||ju(s),c=!l("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,m=1;m<p;m++)f.push(d[m],d[0][m])}var b=zi.withEmotionCache(function(T,v,w){var A=c&&T.as||s,j="",O=[],S=T;if(T.theme==null){S={};for(var P in T)S[P]=T[P];S.theme=ze.useContext(zi.ThemeContext)}typeof T.className=="string"?j=qS(v.registered,O,T.className):T.className!=null&&(j=T.className+" ");var B=Ou(f.concat(O),v.registered,S);j+=v.key+"-"+B.name,o!==void 0&&(j+=" "+o);var Y=c&&a===void 0?ju(A):l,Q={};for(var g in T)c&&g==="as"||Y(g)&&(Q[g]=T[g]);return Q.className=j,w&&(Q.ref=w),ze.createElement(ze.Fragment,null,ze.createElement(uw,{cache:v,serialized:B,isStringTag:typeof A=="string"}),ze.createElement(A,Q))});return b.displayName=i!==void 0?i:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=s,b.__emotion_styles=f,b.__emotion_forwardProp=a,Object.defineProperty(b,"toString",{value:function(){return o===void 0&&lw?"NO_COMPONENT_SELECTOR":"."+o}}),b.withComponent=function(T,v){return e(T,Ti({},r,v,{shouldForwardProp:$u(b,v,!0)})).apply(void 0,f)},b}},fw=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Si=cw.bind();fw.forEach(function(e){Si[e]=Si(e)});/**
169
- * @mui/styled-engine v6.1.9
168
+ `)));const a=s[i];return o>=0?a:typeof a=="number"?-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(`
169
+ `)),()=>{})}function eo(e){return Er(e,"spacing",8,"spacing")}function Cr(e,t){return typeof t=="string"||t==null?t:e(t)}function s_(e,t){return r=>e.reduce((n,s)=>(n[s]=Cr(t,r),n),{})}function o_(e,t,r,n){if(!t.includes(r))return null;const s=r_(r),o=s_(s,n),i=e[r];return xt(e,i,o)}function ou(e,t){const r=eo(e.theme);return Object.keys(e).map(n=>o_(e,t,n,r)).reduce(wr,{})}function Ee(e){return ou(e,wn)}Ee.propTypes=process.env.NODE_ENV!=="production"?wn.reduce((e,t)=>(e[t]=$t,e),{}):{},Ee.filterProps=wn;function Ce(e){return ou(e,En)}Ce.propTypes=process.env.NODE_ENV!=="production"?En.reduce((e,t)=>(e[t]=$t,e),{}):{},Ce.filterProps=En,process.env.NODE_ENV!=="production"&&n_.reduce((e,t)=>(e[t]=$t,e),{});function Cn(...e){const t=e.reduce((n,s)=>(s.filterProps.forEach(o=>{n[o]=s}),n),{}),r=n=>Object.keys(n).reduce((s,o)=>t[o]?wr(s,t[o](n)):s,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,s)=>Object.assign(n,s.propTypes),{}):{},r.filterProps=e.reduce((n,s)=>n.concat(s.filterProps),[]),r}function tt(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return Oe({prop:e,themeKey:"borders",transform:t})}const i_=rt("border",tt),a_=rt("borderTop",tt),l_=rt("borderRight",tt),u_=rt("borderBottom",tt),c_=rt("borderLeft",tt),f_=rt("borderColor"),d_=rt("borderTopColor"),p_=rt("borderRightColor"),h_=rt("borderBottomColor"),m_=rt("borderLeftColor"),g_=rt("outline",tt),y_=rt("outlineColor"),An=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Er(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Cr(t,n)});return xt(e,e.borderRadius,r)}return null};An.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$t}:{},An.filterProps=["borderRadius"],Cn(i_,a_,l_,u_,c_,f_,d_,p_,h_,m_,An,g_,y_);const On=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Er(e.theme,"spacing",8,"gap"),r=n=>({gap:Cr(t,n)});return xt(e,e.gap,r)}return null};On.propTypes=process.env.NODE_ENV!=="production"?{gap:$t}:{},On.filterProps=["gap"];const jn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Er(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Cr(t,n)});return xt(e,e.columnGap,r)}return null};jn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$t}:{},jn.filterProps=["columnGap"];const $n=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Er(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Cr(t,n)});return xt(e,e.rowGap,r)}return null};$n.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$t}:{},$n.filterProps=["rowGap"];const b_=Oe({prop:"gridColumn"}),v_=Oe({prop:"gridRow"}),x_=Oe({prop:"gridAutoFlow"}),T_=Oe({prop:"gridAutoColumns"}),S_=Oe({prop:"gridAutoRows"}),__=Oe({prop:"gridTemplateColumns"}),w_=Oe({prop:"gridTemplateRows"}),E_=Oe({prop:"gridTemplateAreas"}),C_=Oe({prop:"gridArea"});Cn(On,jn,$n,b_,v_,x_,T_,S_,__,w_,E_,C_);function rr(e,t){return t==="grey"?t:e}const A_=Oe({prop:"color",themeKey:"palette",transform:rr}),O_=Oe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rr}),j_=Oe({prop:"backgroundColor",themeKey:"palette",transform:rr});Cn(A_,O_,j_);function Ze(e){return e<=1&&e!==0?`${e*100}%`:e}const $_=Oe({prop:"width",transform:Ze}),to=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var s,o,i,a,u;const n=((i=(o=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:o.values)==null?void 0:i[r])||Tn[r];return n?((u=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ze(r)}};return xt(e,e.maxWidth,t)}return null};to.filterProps=["maxWidth"];const k_=Oe({prop:"minWidth",transform:Ze}),P_=Oe({prop:"height",transform:Ze}),I_=Oe({prop:"maxHeight",transform:Ze}),M_=Oe({prop:"minHeight",transform:Ze});Oe({prop:"size",cssProperty:"width",transform:Ze}),Oe({prop:"size",cssProperty:"height",transform:Ze});const D_=Oe({prop:"boxSizing"});Cn($_,to,k_,P_,I_,M_,D_);const kn={border:{themeKey:"borders",transform:tt},borderTop:{themeKey:"borders",transform:tt},borderRight:{themeKey:"borders",transform:tt},borderBottom:{themeKey:"borders",transform:tt},borderLeft:{themeKey:"borders",transform:tt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:An},color:{themeKey:"palette",transform:rr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rr},backgroundColor:{themeKey:"palette",transform:rr},p:{style:Ce},pt:{style:Ce},pr:{style:Ce},pb:{style:Ce},pl:{style:Ce},px:{style:Ce},py:{style:Ce},padding:{style:Ce},paddingTop:{style:Ce},paddingRight:{style:Ce},paddingBottom:{style:Ce},paddingLeft:{style:Ce},paddingX:{style:Ce},paddingY:{style:Ce},paddingInline:{style:Ce},paddingInlineStart:{style:Ce},paddingInlineEnd:{style:Ce},paddingBlock:{style:Ce},paddingBlockStart:{style:Ce},paddingBlockEnd:{style:Ce},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},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:On},rowGap:{style:$n},columnGap:{style:jn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ze},maxWidth:{style:to},minWidth:{transform:Ze},height:{transform:Ze},maxHeight:{transform:Ze},minHeight:{transform:Ze},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 N_(...e){const t=e.reduce((n,s)=>n.concat(Object.keys(s)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function F_(e,t){return typeof e=="function"?e(t):e}function R_(){function e(r,n,s,o){const i={[r]:n,theme:s},a=o[r];if(!a)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:d,style:f}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=Sn(s,c)||{};return f?f(i):xt(i,n,y=>{let v=_n(p,d,y);return y===v&&typeof y=="string"&&(v=_n(p,d,`${r}${y==="default"?"":zt(y)}`,y)),u===!1?v:{[u]:v}})}function t(r){const{sx:n,theme:s={}}=r||{};if(!n)return null;const o=s.unstable_sxConfig??kn;function i(a){let u=a;if(typeof a=="function")u=a(s);else if(typeof a!="object")return a;if(!u)return null;const c=XS(s.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const m=F_(u[p],s);if(m!=null)if(typeof m=="object")if(o[p])f=wr(f,e(p,m,s,o));else{const y=xt({theme:s},m,v=>({[p]:v}));N_(y,m)?f[p]=t({sx:m,theme:s}):f=wr(f,y)}else f=wr(f,e(p,m,s,o))}),HS(s,ZS(d,f))}return Array.isArray(n)?n.map(i):i(n)}return t}const nr=R_();nr.filterProps=["sx"];function ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ro.apply(null,arguments)}function iu(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var L_=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,z_=iu(function(e){return L_.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),B_=!0;function U_(e,t,r){var n="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(n+=s+" ")}),n}var au=function(t,r,n){var s=t.key+"-"+r.name;(n===!1||B_===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},V_=function(t,r,n){au(t,r,n);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+s:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function W_(e){for(var t=0,r,n=0,s=e.length;s>=4;++n,s-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var G_={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},H_=!1,Y_=/[A-Z]|^ms/g,q_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lu=function(t){return t.charCodeAt(1)===45},uu=function(t){return t!=null&&typeof t!="boolean"},no=iu(function(e){return lu(e)?e:e.replace(Y_,"-$&").toLowerCase()}),cu=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(q_,function(n,s,o){return ct={name:s,styles:o,next:ct},s})}return G_[t]!==1&&!lu(t)&&typeof r=="number"&&r!==0?r+"px":r},J_="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ar(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return ct={name:s.name,styles:s.styles,next:ct},s.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)ct={name:i.name,styles:i.styles,next:ct},i=i.next;var a=o.styles+";";return a}return K_(e,t,r)}case"function":{if(e!==void 0){var u=ct,c=r(e);return ct=u,Ar(e,t,c)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function K_(e,t,r){var n="";if(Array.isArray(r))for(var s=0;s<r.length;s++)n+=Ar(e,t,r[s])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var a=i;t!=null&&t[a]!==void 0?n+=o+"{"+t[a]+"}":uu(a)&&(n+=no(o)+":"+cu(o,a)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&H_)throw new Error(J_);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var u=0;u<i.length;u++)uu(i[u])&&(n+=no(o)+":"+cu(o,i[u])+";");else{var c=Ar(e,t,i);switch(o){case"animation":case"animationName":{n+=no(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}}return n}var fu=/label:\s*([^\s;{]+)\s*(;|$)/g,ct;function du(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,s="";ct=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,s+=Ar(r,t,o);else{var i=o;s+=i[0]}for(var a=1;a<e.length;a++)if(s+=Ar(r,t,e[a]),n){var u=o;s+=u[a]}fu.lastIndex=0;for(var c="",d;(d=fu.exec(s))!==null;)c+="-"+d[1];var f=W_(s)+c;return{name:f,styles:s,next:ct}}var X_=function(t){return t()},Z_=ze.useInsertionEffect?ze.useInsertionEffect:!1,Q_=Z_||X_,ew=z_,tw=function(t){return t!=="theme"},pu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ew:tw},hu=function(t,r,n){var s;if(r){var o=r.shouldForwardProp;s=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof s!="function"&&n&&(s=t.__emotion_forwardProp),s},rw=!1,nw=function(t){var r=t.cache,n=t.serialized,s=t.isStringTag;return au(r,n,s),Q_(function(){return V_(r,n,s)}),null},sw=function e(t,r){var n=t.__emotion_real===t,s=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var a=hu(t,r,n),u=a||pu(s),c=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,m=1;m<p;m++)f.push(d[m],d[0][m])}var y=_o.withEmotionCache(function(v,b,E){var P=c&&v.as||s,O="",A=[],_=v;if(v.theme==null){_={};for(var $ in v)_[$]=v[$];_.theme=ze.useContext(_o.ThemeContext)}typeof v.className=="string"?O=U_(b.registered,A,v.className):v.className!=null&&(O=v.className+" ");var F=du(f.concat(A),b.registered,_);O+=b.key+"-"+F.name,i!==void 0&&(O+=" "+i);var H=c&&a===void 0?pu(P):u,Q={};for(var g in v)c&&g==="as"||H(g)&&(Q[g]=v[g]);return Q.className=O,E&&(Q.ref=E),ze.createElement(ze.Fragment,null,ze.createElement(nw,{cache:b,serialized:F,isStringTag:typeof P=="string"}),ze.createElement(P,Q))});return y.displayName=o!==void 0?o:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=s,y.__emotion_styles=f,y.__emotion_forwardProp=a,Object.defineProperty(y,"toString",{value:function(){return i===void 0&&rw?"NO_COMPONENT_SELECTOR":"."+i}}),y.withComponent=function(v,b){return e(v,ro({},r,b,{shouldForwardProp:hu(y,b,!0)})).apply(void 0,f)},y}},ow=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],so=sw.bind();ow.forEach(function(e){so[e]=so(e)});/**
170
+ * @mui/styled-engine v6.1.10
170
171
  *
171
172
  * @license MIT
172
173
  * This source code is licensed under the MIT license found in the
173
174
  * LICENSE file in the root directory of this source tree.
174
- */function dw(e,t){const r=Si(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const s=typeof e=="string"?`"${e}"`:"component";return n.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(`
175
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),r(...n)}:r}function pw(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Pu=[];function ku(e){return Pu[0]=e,Ou(Pu)}const hw=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function mw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...s}=e,i=hw(t),o=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,m){const b=o.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(b!==-1&&typeof t[o[b]]=="number"?t[o[b]]:m)-n/100}${r})`}function d(p){return o.indexOf(p)+1<o.length?c(p,o[o.indexOf(p)+1]):a(p)}function f(p){const m=o.indexOf(p);return m===0?a(o[1]):m===o.length-1?l(o[m]):c(p,o[o.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:o,values:i,up:a,down:l,between:c,only:d,not:f,unit:r,...s}}const gw={borderRadius:4};function Iu(e=8,t=vi({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function yw(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let s=r.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return r.palette.mode===e?t:{}}function Du(e={},...t){const{breakpoints:r={},palette:n={},spacing:s,shape:i={},...o}=e,a=mw(r),l=Iu(s);let c=Ke({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...gw,...i}},o);return c=tS(c),c.applyStyles=yw,c=t.reduce((d,f)=>Ke(d,f),c),c.unstable_sxConfig={...Un,...o==null?void 0:o.unstable_sxConfig},c.unstable_sx=function(f){return or({sx:f,theme:this})},c}function Mu(e){const{variants:t,...r}=e,n={variants:t,style:ku(r),isProcessed:!0};return n.style===r||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=ku(s.style))}),n}const bw=Du();function wi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function vw(e){return e?(t,r)=>r[e]:null}function xw(e,t,r){e.theme=ww(e.theme)?r:e.theme[t]||e.theme}function Vn(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>Vn(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:s,...i}=r;n=i}return Fu(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function Fu(e,t,r=[]){var s;let n;e:for(let i=0;i<t.length;i+=1){const o=t[i];if(typeof o.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!o.props(n))continue}else for(const a in o.props)if(e[a]!==o.props[a]&&((s=e.ownerState)==null?void 0:s[a])!==o.props[a])continue e;typeof o.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(o.style(n))):r.push(o.style)}return r}function Tw(e={}){const{themeId:t,defaultTheme:r=bw,rootShouldForwardProp:n=wi,slotShouldForwardProp:s=wi}=e;function i(a){xw(a,t,r)}return(a,l={})=>{pw(a,S=>S.filter(P=>P!==or));const{name:c,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:m=vw(Ru(d)),...b}=l,T=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,v=p||!1;let w=wi;d==="Root"||d==="root"?w=n:d?w=s:Cw(a)&&(w=void 0);const A=dw(a,{shouldForwardProp:w,label:Sw(c,d),...b}),j=S=>{if(typeof S=="function"&&S.__emotion_real!==S)return function(B){return Vn(B,S)};if(pt(S)){const P=Mu(S);return P.variants?function(Y){return Vn(Y,P)}:P.style}return S},O=(...S)=>{const P=[],B=S.map(j),Y=[];if(P.push(i),c&&m&&Y.push(function(U){var he,H;const re=(H=(he=U.theme.components)==null?void 0:he[c])==null?void 0:H.styleOverrides;if(!re)return null;const ce={};for(const te in re)ce[te]=Vn(U,re[te]);return m(U,ce)}),c&&!T&&Y.push(function(U){var ce,he;const J=U.theme,re=(he=(ce=J==null?void 0:J.components)==null?void 0:ce[c])==null?void 0:he.variants;return re?Fu(U,re):null}),v||Y.push(or),Array.isArray(B[0])){const I=B.shift(),U=new Array(P.length).fill(""),J=new Array(Y.length).fill("");let re;re=[...U,...I,...J],re.raw=[...U,...I.raw,...J],P.unshift(re)}const Q=[...P,...B,...Y],g=A(...Q);return a.muiName&&(g.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=_w(c,d,a)),g};return A.withConfig&&(O.withConfig=A.withConfig),O}}function _w(e,t,r){return e?`${e}${Bt(t||"")}`:`Styled(${G_(r)})`}function Sw(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Ru(t||"Root")}`),r}function ww(e){for(const t in e)return!1;return!0}function Cw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ru(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ci(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),K_(e,t,r)}function Ew(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,s)=>s<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ot(e){if(e.type)return e;if(e.charAt(0)==="#")return Ot(Ew(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
176
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Et(9,e));let n=e.substring(t+1,e.length-1),s;if(r==="color"){if(n=n.split(" "),s=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
177
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Et(10,s))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:s}}const Aw=e=>{const t=Ot(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Fr=(e,t)=>{try{return Aw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Wn(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((s,i)=>i<3?parseInt(s,10):s):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Nu(e){e=Ot(e);const{values:t}=e,r=t[0],n=t[1]/100,s=t[2]/100,i=n*Math.min(s,1-s),o=(c,d=(c+r/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Wn({type:a,values:l})}function Ei(e){e=Ot(e);let t=e.type==="hsl"||e.type==="hsla"?Ot(Nu(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Lu(e,t){const r=Ei(e),n=Ei(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ow(e,t){return e=Ot(e),t=Ci(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Wn(e)}function Gn(e,t,r){try{return Ow(e,t)}catch{return e}}function Ai(e,t){if(e=Ot(e),t=Ci(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Wn(e)}function Te(e,t,r){try{return Ai(e,t)}catch{return e}}function Oi(e,t){if(e=Ot(e),t=Ci(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Wn(e)}function _e(e,t,r){try{return Oi(e,t)}catch{return e}}function jw(e,t=.15){return Ei(e)>.5?Ai(e,t):Oi(e,t)}function Hn(e,t,r){try{return jw(e,t)}catch{return e}}const $w=ze.createContext(void 0);process.env.NODE_ENV!=="production"&&(de.node,de.object);function Pw(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const s=t.components[r];return s.defaultProps?yi(s.defaultProps,n):!s.styleOverrides&&!s.variants?yi(s,n):n}function kw({props:e,name:t}){const r=ze.useContext($w);return Pw({props:e,name:t,theme:{components:r}})}const zu={theme:void 0};function Iw(e){let t,r;return function(s){let i=t;return(i===void 0||s.theme!==r)&&(zu.theme=s.theme,i=Mu(e(zu)),t=i,r=s.theme),i}}function Dw(e=""){function t(...n){if(!n.length)return"";const s=n[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(...n.slice(1))})`:`, ${s}`}return(n,...s)=>`var(--${e?`${e}-`:""}${n}${t(...s)})`}const Bu=(e,t,r,n=[])=>{let s=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(s)?s[Number(i)]=r:s&&typeof s=="object"&&(s[i]=r):s&&typeof s=="object"&&(s[i]||(s[i]=n.includes(i)?[]:{}),s=s[i])})},Mw=(e,t,r)=>{function n(s,i=[],o=[]){Object.entries(s).forEach(([a,l])=>{(!r||r&&!r([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...i,a],Array.isArray(l)?[...o,a]:o):t([...i,a],l,o))})}n(e)},Fw=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ji(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},s={},i={},o={};return Mw(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(a,l))){const d=`--${r?`${r}-`:""}${a.join("-")}`,f=Fw(a,l);Object.assign(s,{[d]:f}),Bu(i,a,`var(${d})`,c),Bu(o,a,`var(${d}, ${f})`,c)}},a=>a[0]==="vars"),{css:s,vars:i,varsWithDefaults:o}}function Rw(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:s}=t,{colorSchemes:i={},components:o,defaultColorScheme:a="light",...l}=e,{vars:c,css:d,varsWithDefaults:f}=ji(l,t);let p=f;const m={},{[a]:b,...T}=i;if(Object.entries(T||{}).forEach(([j,O])=>{const{vars:S,css:P,varsWithDefaults:B}=ji(O,t);p=Ke(p,B),m[j]={css:P,vars:S}}),b){const{css:j,vars:O,varsWithDefaults:S}=ji(b,t);p=Ke(p,S),m[a]={css:j,vars:O}}function v(j,O){var P,B;let S=s;if(s==="class"&&(S=".%s"),s==="data"&&(S="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(S=`[${s}="%s"]`),j){if(S==="media")return e.defaultColorScheme===j?":root":{[`@media (prefers-color-scheme: ${((B=(P=i[j])==null?void 0:P.palette)==null?void 0:B.mode)||j})`]:{":root":O}};if(S)return e.defaultColorScheme===j?`:root, ${S.replace("%s",String(j))}`:S.replace("%s",String(j))}return":root"}return{vars:p,generateThemeVars:()=>{let j={...c};return Object.entries(m).forEach(([,{vars:O}])=>{j=Ke(j,O)}),j},generateStyleSheets:()=>{var Y,Q;const j=[],O=e.defaultColorScheme||"light";function S(g,I){Object.keys(I).length&&j.push(typeof g=="string"?{[g]:{...I}}:g)}S(r(void 0,{...d}),d);const{[O]:P,...B}=m;if(P){const{css:g}=P,I=(Q=(Y=i[O])==null?void 0:Y.palette)==null?void 0:Q.mode,U=!n&&I?{colorScheme:I,...g}:{...g};S(r(O,{...U}),U)}return Object.entries(B).forEach(([g,{css:I}])=>{var re,ce;const U=(ce=(re=i[g])==null?void 0:re.palette)==null?void 0:ce.mode,J=!n&&U?{colorScheme:U,...I}:{...I};S(r(g,{...J}),J)}),j}}}function Nw(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Rr={black:"#000",white:"#fff"},Lw={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"},ar={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},lr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Nr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ur={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},cr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},fr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Uu(){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:Rr.white,default:Rr.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 zw=Uu();function Vu(){return{text:{primary:Rr.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:Rr.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 Wu=Vu();function Gu(e,t,r,n){const s=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Oi(e.main,s):t==="dark"&&(e.dark=Ai(e.main,i)))}function Bw(e="light"){return e==="dark"?{main:ur[200],light:ur[50],dark:ur[400]}:{main:ur[700],light:ur[400],dark:ur[800]}}function Uw(e="light"){return e==="dark"?{main:ar[200],light:ar[50],dark:ar[400]}:{main:ar[500],light:ar[300],dark:ar[700]}}function Vw(e="light"){return e==="dark"?{main:lr[500],light:lr[300],dark:lr[700]}:{main:lr[700],light:lr[400],dark:lr[800]}}function Ww(e="light"){return e==="dark"?{main:cr[400],light:cr[300],dark:cr[700]}:{main:cr[700],light:cr[500],dark:cr[900]}}function Gw(e="light"){return e==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:fr[800],light:fr[500],dark:fr[900]}}function Hw(e="light"){return e==="dark"?{main:Nr[400],light:Nr[300],dark:Nr[700]}:{main:"#ed6c02",light:Nr[500],dark:Nr[900]}}function $i(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...s}=e,i=e.primary||Bw(t),o=e.secondary||Uw(t),a=e.error||Vw(t),l=e.info||Ww(t),c=e.success||Gw(t),d=e.warning||Hw(t);function f(T){const v=Lu(T,Wu.text.primary)>=r?Wu.text.primary:zw.text.primary;if(process.env.NODE_ENV!=="production"){const w=Lu(T,v);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${v} on ${T}`,"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(`
178
- `))}return v}const p=({color:T,name:v,mainShade:w=500,lightShade:A=300,darkShade:j=700})=>{if(T={...T},!T.main&&T[w]&&(T.main=T[w]),!T.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
179
- The color object needs to have a \`main\` property or a \`${w}\` property.`:Et(11,v?` (${v})`:"",w));if(typeof T.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
180
- \`color.main\` should be a string, but \`${JSON.stringify(T.main)}\` was provided instead.
175
+ */function iw(e,t){const r=so(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const s=typeof e=="string"?`"${e}"`:"component";return n.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(`
176
+ `)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),r(...n)}:r}function aw(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const mu=[];function gu(e){return mu[0]=e,du(mu)}const lw=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function uw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...s}=e,o=lw(t),i=Object.keys(o);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,m){const y=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:m)-n/100}${r})`}function d(p){return i.indexOf(p)+1<i.length?c(p,i[i.indexOf(p)+1]):a(p)}function f(p){const m=i.indexOf(p);return m===0?a(i[1]):m===i.length-1?u(i[m]):c(p,i[i.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:i,values:o,up:a,down:u,between:c,only:d,not:f,unit:r,...s}}const cw={borderRadius:4};function yu(e=8,t=eo({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function fw(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let s=r.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return r.palette.mode===e?t:{}}function bu(e={},...t){const{breakpoints:r={},palette:n={},spacing:s,shape:o={},...i}=e,a=uw(r),u=yu(s);let c=Xe({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...cw,...o}},i);return c=JS(c),c.applyStyles=fw,c=t.reduce((d,f)=>Xe(d,f),c),c.unstable_sxConfig={...kn,...i==null?void 0:i.unstable_sxConfig},c.unstable_sx=function(f){return nr({sx:f,theme:this})},c}function vu(e){const{variants:t,...r}=e,n={variants:t,style:gu(r),isProcessed:!0};return n.style===r||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=gu(s.style))}),n}const dw=bu();function oo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function pw(e){return e?(t,r)=>r[e]:null}function hw(e,t,r){e.theme=bw(e.theme)?r:e.theme[t]||e.theme}function Pn(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>Pn(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:s,...o}=r;n=o}return xu(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function xu(e,t,r=[]){var s;let n;e:for(let o=0;o<t.length;o+=1){const i=t[o];if(typeof i.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(n))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&((s=e.ownerState)==null?void 0:s[a])!==i.props[a])continue e;typeof i.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(i.style(n))):r.push(i.style)}return r}function mw(e={}){const{themeId:t,defaultTheme:r=dw,rootShouldForwardProp:n=oo,slotShouldForwardProp:s=oo}=e;function o(a){hw(a,t,r)}return(a,u={})=>{aw(a,_=>_.filter($=>$!==nr));const{name:c,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:m=pw(Tu(d)),...y}=u,v=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,b=p||!1;let E=oo;d==="Root"||d==="root"?E=n:d?E=s:vw(a)&&(E=void 0);const P=iw(a,{shouldForwardProp:E,label:yw(c,d),...y}),O=_=>{if(typeof _=="function"&&_.__emotion_real!==_)return function(F){return Pn(F,_)};if(vt(_)){const $=vu(_);return $.variants?function(H){return Pn(H,$)}:$.style}return _},A=(..._)=>{const $=[],F=_.map(O),H=[];if($.push(o),c&&m&&H.push(function(R){var ge,V;const ne=(V=(ge=R.theme.components)==null?void 0:ge[c])==null?void 0:V.styleOverrides;if(!ne)return null;const ce={};for(const ee in ne)ce[ee]=Pn(R,ne[ee]);return m(R,ce)}),c&&!v&&H.push(function(R){var ce,ge;const Z=R.theme,ne=(ge=(ce=Z==null?void 0:Z.components)==null?void 0:ce[c])==null?void 0:ge.variants;return ne?xu(R,ne):null}),b||H.push(nr),Array.isArray(F[0])){const j=F.shift(),R=new Array($.length).fill(""),Z=new Array(H.length).fill("");let ne;ne=[...R,...j,...Z],ne.raw=[...R,...j.raw,...Z],$.unshift(ne)}const Q=[...$,...F,...H],g=P(...Q);return a.muiName&&(g.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=gw(c,d,a)),g};return P.withConfig&&(A.withConfig=P.withConfig),A}}function gw(e,t,r){return e?`${e}${zt(t||"")}`:`Styled(${LS(r)})`}function yw(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Tu(t||"Root")}`),r}function bw(e){for(const t in e)return!1;return!0}function vw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tu(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function io(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),WS(e,t,r)}function xw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,s)=>s<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function kt(e){if(e.type)return e;if(e.charAt(0)==="#")return kt(xw(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
177
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:jt(9,e));let n=e.substring(t+1,e.length-1),s;if(r==="color"){if(n=n.split(" "),s=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
178
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:jt(10,s))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:s}}const Tw=e=>{const t=kt(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Or=(e,t)=>{try{return Tw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function In(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((s,o)=>o<3?parseInt(s,10):s):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Su(e){e=kt(e);const{values:t}=e,r=t[0],n=t[1]/100,s=t[2]/100,o=n*Math.min(s,1-s),i=(c,d=(c+r/30)%12)=>s-o*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",u.push(t[3])),In({type:a,values:u})}function ao(e){e=kt(e);let t=e.type==="hsl"||e.type==="hsla"?kt(Su(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _u(e,t){const r=ao(e),n=ao(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Sw(e,t){return e=kt(e),t=io(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,In(e)}function Mn(e,t,r){try{return Sw(e,t)}catch{return e}}function lo(e,t){if(e=kt(e),t=io(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return In(e)}function be(e,t,r){try{return lo(e,t)}catch{return e}}function uo(e,t){if(e=kt(e),t=io(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return In(e)}function ve(e,t,r){try{return uo(e,t)}catch{return e}}function _w(e,t=.15){return ao(e)>.5?lo(e,t):uo(e,t)}function Dn(e,t,r){try{return _w(e,t)}catch{return e}}const ww=ze.createContext(void 0);process.env.NODE_ENV!=="production"&&(ue.node,ue.object);function Ew(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const s=t.components[r];return s.defaultProps?Zs(s.defaultProps,n):!s.styleOverrides&&!s.variants?Zs(s,n):n}function Cw({props:e,name:t}){const r=ze.useContext(ww);return Ew({props:e,name:t,theme:{components:r}})}const wu={theme:void 0};function Aw(e){let t,r;return function(s){let o=t;return(o===void 0||s.theme!==r)&&(wu.theme=s.theme,o=vu(e(wu)),t=o,r=s.theme),o}}function Ow(e=""){function t(...n){if(!n.length)return"";const s=n[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(...n.slice(1))})`:`, ${s}`}return(n,...s)=>`var(--${e?`${e}-`:""}${n}${t(...s)})`}const Eu=(e,t,r,n=[])=>{let s=e;t.forEach((o,i)=>{i===t.length-1?Array.isArray(s)?s[Number(o)]=r:s&&typeof s=="object"&&(s[o]=r):s&&typeof s=="object"&&(s[o]||(s[o]=n.includes(o)?[]:{}),s=s[o])})},jw=(e,t,r)=>{function n(s,o=[],i=[]){Object.entries(s).forEach(([a,u])=>{(!r||r&&!r([...o,a]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...o,a],Array.isArray(u)?[...i,a]:i):t([...o,a],u,i))})}n(e)},$w=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function co(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},s={},o={},i={};return jw(e,(a,u,c)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(a,u))){const d=`--${r?`${r}-`:""}${a.join("-")}`,f=$w(a,u);Object.assign(s,{[d]:f}),Eu(o,a,`var(${d})`,c),Eu(i,a,`var(${d}, ${f})`,c)}},a=>a[0]==="vars"),{css:s,vars:o,varsWithDefaults:i}}function kw(e,t={}){const{getSelector:r=b,disableCssColorScheme:n,colorSchemeSelector:s}=t,{colorSchemes:o={},components:i,defaultColorScheme:a="light",...u}=e,{vars:c,css:d,varsWithDefaults:f}=co(u,t);let p=f;const m={},{[a]:y,...v}=o;if(Object.entries(v||{}).forEach(([O,A])=>{const{vars:_,css:$,varsWithDefaults:F}=co(A,t);p=Xe(p,F),m[O]={css:$,vars:_}}),y){const{css:O,vars:A,varsWithDefaults:_}=co(y,t);p=Xe(p,_),m[a]={css:O,vars:A}}function b(O,A){var $,F;let _=s;if(s==="class"&&(_=".%s"),s==="data"&&(_="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(_=`[${s}="%s"]`),O){if(_==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((F=($=o[O])==null?void 0:$.palette)==null?void 0:F.mode)||O})`]:{":root":A}};if(_)return e.defaultColorScheme===O?`:root, ${_.replace("%s",String(O))}`:_.replace("%s",String(O))}return":root"}return{vars:p,generateThemeVars:()=>{let O={...c};return Object.entries(m).forEach(([,{vars:A}])=>{O=Xe(O,A)}),O},generateStyleSheets:()=>{var H,Q;const O=[],A=e.defaultColorScheme||"light";function _(g,j){Object.keys(j).length&&O.push(typeof g=="string"?{[g]:{...j}}:g)}_(r(void 0,{...d}),d);const{[A]:$,...F}=m;if($){const{css:g}=$,j=(Q=(H=o[A])==null?void 0:H.palette)==null?void 0:Q.mode,R=!n&&j?{colorScheme:j,...g}:{...g};_(r(A,{...R}),R)}return Object.entries(F).forEach(([g,{css:j}])=>{var ne,ce;const R=(ce=(ne=o[g])==null?void 0:ne.palette)==null?void 0:ce.mode,Z=!n&&R?{colorScheme:R,...j}:{...j};_(r(g,{...Z}),Z)}),O}}}function Pw(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const jr={black:"#000",white:"#fff"},Iw={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"},sr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},or={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$r={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ir={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ar={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},lr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Cu(){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:jr.white,default:jr.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 Mw=Cu();function Au(){return{text:{primary:jr.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:jr.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 Ou=Au();function ju(e,t,r,n){const s=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=uo(e.main,s):t==="dark"&&(e.dark=lo(e.main,o)))}function Dw(e="light"){return e==="dark"?{main:ir[200],light:ir[50],dark:ir[400]}:{main:ir[700],light:ir[400],dark:ir[800]}}function Nw(e="light"){return e==="dark"?{main:sr[200],light:sr[50],dark:sr[400]}:{main:sr[500],light:sr[300],dark:sr[700]}}function Fw(e="light"){return e==="dark"?{main:or[500],light:or[300],dark:or[700]}:{main:or[700],light:or[400],dark:or[800]}}function Rw(e="light"){return e==="dark"?{main:ar[400],light:ar[300],dark:ar[700]}:{main:ar[700],light:ar[500],dark:ar[900]}}function Lw(e="light"){return e==="dark"?{main:lr[400],light:lr[300],dark:lr[700]}:{main:lr[800],light:lr[500],dark:lr[900]}}function zw(e="light"){return e==="dark"?{main:$r[400],light:$r[300],dark:$r[700]}:{main:"#ed6c02",light:$r[500],dark:$r[900]}}function fo(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...s}=e,o=e.primary||Dw(t),i=e.secondary||Nw(t),a=e.error||Fw(t),u=e.info||Rw(t),c=e.success||Lw(t),d=e.warning||zw(t);function f(v){const b=_u(v,Ou.text.primary)>=r?Ou.text.primary:Mw.text.primary;if(process.env.NODE_ENV!=="production"){const E=_u(v,b);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${b} on ${v}`,"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(`
179
+ `))}return b}const p=({color:v,name:b,mainShade:E=500,lightShade:P=300,darkShade:O=700})=>{if(v={...v},!v.main&&v[E]&&(v.main=v[E]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
180
+ The color object needs to have a \`main\` property or a \`${E}\` property.`:jt(11,b?` (${b})`:"",E));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
181
+ \`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
181
182
 
182
183
  Did you intend to use one of the following approaches?
183
184
 
@@ -189,15 +190,15 @@ const theme1 = createTheme({ palette: {
189
190
 
190
191
  const theme2 = createTheme({ palette: {
191
192
  primary: { main: green[500] },
192
- } });`:Et(12,v?` (${v})`:"",JSON.stringify(T.main)));return Gu(T,"light",A,n),Gu(T,"dark",j,n),T.contrastText||(T.contrastText=f(T.main)),T};let m;return t==="light"?m=Uu():t==="dark"&&(m=Vu()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ke({common:{...Rr},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Lw,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n,...m},s)}function Yw(e){const t={};return Object.entries(e).forEach(n=>{const[s,i]=n;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 qw(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Jw(e){return Math.round(e*1e5)/1e5}const Hu={textTransform:"uppercase"},Yu='"Roboto", "Helvetica", "Arial", sans-serif';function Kw(e,t){const{fontFamily:r=Yu,fontSize:n=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,m=d||(v=>`${v/l*p}rem`),b=(v,w,A,j,O)=>({fontFamily:r,fontWeight:v,fontSize:m(w),lineHeight:A,...r===Yu?{letterSpacing:`${Jw(j/w)}em`}:{},...O,...c}),T={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(o,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(o,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(o,14,1.75,.4,Hu),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,Hu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ke({htmlFontSize:l,pxToRem:m,fontFamily:r,fontSize:n,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:a,...T},f,{clone:!1})}const Xw=.2,Zw=.14,Qw=.12;function Ee(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Xw})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Qw})`].join(",")}const eC=["none",Ee(0,2,1,-1,0,1,1,0,0,1,3,0),Ee(0,3,1,-2,0,2,2,0,0,1,5,0),Ee(0,3,3,-2,0,3,4,0,0,1,8,0),Ee(0,2,4,-1,0,4,5,0,0,1,10,0),Ee(0,3,5,-1,0,5,8,0,0,1,14,0),Ee(0,3,5,-1,0,6,10,0,0,1,18,0),Ee(0,4,5,-2,0,7,10,1,0,2,16,1),Ee(0,5,5,-3,0,8,10,1,0,3,14,2),Ee(0,5,6,-3,0,9,12,1,0,3,16,2),Ee(0,6,6,-3,0,10,14,1,0,4,18,3),Ee(0,6,7,-4,0,11,15,1,0,4,20,3),Ee(0,7,8,-4,0,12,17,2,0,5,22,4),Ee(0,7,8,-4,0,13,19,2,0,5,24,4),Ee(0,7,9,-4,0,14,21,2,0,5,26,4),Ee(0,8,9,-5,0,15,22,2,0,6,28,5),Ee(0,8,10,-5,0,16,24,2,0,6,30,5),Ee(0,8,11,-5,0,17,26,2,0,6,32,5),Ee(0,9,11,-5,0,18,28,2,0,7,34,6),Ee(0,9,12,-6,0,19,29,2,0,7,36,6),Ee(0,10,13,-6,0,20,31,3,0,8,38,7),Ee(0,10,13,-6,0,21,33,3,0,8,40,7),Ee(0,10,14,-6,0,22,35,3,0,8,42,7),Ee(0,11,14,-7,0,23,36,3,0,9,44,8),Ee(0,11,15,-7,0,24,38,3,0,9,46,8)],tC={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)"},rC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qu(e){return`${Math.round(e)}ms`}function nC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function sC(e){const t={...tC,...e.easing},r={...rC,...e.duration};return{getAutoHeightDuration:nC,create:(s=["all"],i={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:l=0,...c}=i;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(o)&&!d(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!d(l)&&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(`
193
- `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof o=="string"?o:qu(o)} ${a} ${typeof l=="string"?l:qu(l)}`).join(",")},...e,easing:t,duration:r}}const iC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function oC(e){return pt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ju(e={}){const t={...e};function r(n){const s=Object.entries(n);for(let i=0;i<s.length;i++){const[o,a]=s[i];!oC(a)||o.startsWith("unstable_")?delete n[o]:pt(a)&&(n[o]={...a},r(n[o]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
193
+ } });`:jt(12,b?` (${b})`:"",JSON.stringify(v.main)));return ju(v,"light",P,n),ju(v,"dark",O,n),v.contrastText||(v.contrastText=f(v.main)),v};let m;return t==="light"?m=Cu():t==="dark"&&(m=Au()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Xe({common:{...jr},mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:Iw,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n,...m},s)}function Bw(e){const t={};return Object.entries(e).forEach(n=>{const[s,o]=n;typeof o=="object"&&(t[s]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Uw(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Vw(e){return Math.round(e*1e5)/1e5}const $u={textTransform:"uppercase"},ku='"Roboto", "Helvetica", "Arial", sans-serif';function Ww(e,t){const{fontFamily:r=ku,fontSize:n=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,m=d||(b=>`${b/u*p}rem`),y=(b,E,P,O,A)=>({fontFamily:r,fontWeight:b,fontSize:m(E),lineHeight:P,...r===ku?{letterSpacing:`${Vw(O/E)}em`}:{},...A,...c}),v={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(o,48,1.167,0),h4:y(o,34,1.235,.25),h5:y(o,24,1.334,0),h6:y(i,20,1.6,.15),subtitle1:y(o,16,1.75,.15),subtitle2:y(i,14,1.57,.1),body1:y(o,16,1.5,.15),body2:y(o,14,1.43,.15),button:y(i,14,1.75,.4,$u),caption:y(o,12,1.66,.4),overline:y(o,12,2.66,1,$u),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xe({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:n,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:i,fontWeightBold:a,...v},f,{clone:!1})}const Gw=.2,Hw=.14,Yw=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Gw})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Hw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Yw})`].join(",")}const qw=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],Jw={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)"},Kw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Pu(e){return`${Math.round(e)}ms`}function Xw(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Zw(e){const t={...Jw,...e.easing},r={...Kw,...e.duration};return{getAutoHeightDuration:Xw,create:(s=["all"],o={})=>{const{duration:i=r.standard,easing:a=t.easeInOut,delay:u=0,...c}=o;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!d(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="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(`
194
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof i=="string"?i:Pu(i)} ${a} ${typeof u=="string"?u:Pu(u)}`).join(",")},...e,easing:t,duration:r}}const Qw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eE(e){return vt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Iu(e={}){const t={...e};function r(n){const s=Object.entries(n);for(let o=0;o<s.length;o++){const[i,a]=s[o];!eE(a)||i.startsWith("unstable_")?delete n[i]:vt(a)&&(n[i]={...a},r(n[i]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
194
195
 
195
196
  const theme = ${JSON.stringify(t,null,2)};
196
197
 
197
198
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
198
199
  theme.transitions = createTransitions(theme.transitions || {});
199
200
 
200
- export default theme;`}function Pi(e={},...t){const{breakpoints:r,mixins:n={},spacing:s,palette:i={},transitions:o={},typography:a={},shape:l,...c}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Et(20));const d=$i(i),f=Du(e);let p=Ke(f,{mixins:qw(f.breakpoints,n),palette:d,shadows:eC.slice(),typography:Kw(d,a),transitions:sC(o),zIndex:{...iC}});if(p=Ke(p,c),p=t.reduce((m,b)=>Ke(m,b),p),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(T,v)=>{let w;for(w in T){const A=T[w];if(m.includes(w)&&Object.keys(A).length>0){if(process.env.NODE_ENV!=="production"){const j=bi("",w);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(T,null,2),"",`Instead, you need to use the '&.${j}' syntax:`,JSON.stringify({root:{[`&.${j}`]:A}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
201
- `))}T[w]={}}}};Object.keys(p.components).forEach(T=>{const v=p.components[T].styleOverrides;v&&T.startsWith("Mui")&&b(v,T)})}return p.unstable_sxConfig={...Un,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(b){return or({sx:b,theme:this})},p.toRuntimeSource=Ju,p}function aC(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 lC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=aC(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Ku(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Xu(e){return e==="dark"?lC:[]}function uC(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...s}=e,i=$i(t);return{palette:i,opacity:{...Ku(i.mode),...r},overlays:n||Xu(i.mode),...s}}function cC(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const fC=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],dC=e=>(t,r)=>{const n=e.rootSelector||":root",s=e.colorSchemeSelector;let i=s;if(s==="class"&&(i=".%s"),s==="data"&&(i="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(i=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return fC(e.cssVarPrefix).forEach(a=>{o[a]=r[a],delete r[a]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:i?{[i.replace("%s",t)]:o,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...o}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function pC(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function C(e,t,r){!e[t]&&r&&(e[t]=r)}function Lr(e){return!e||!e.startsWith("hsl")?e:Nu(e)}function mt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Fr(Lr(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().
202
- 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 hC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ct=e=>{try{return e()}catch{}},mC=(e="mui")=>Dw(e);function ki(e,t,r,n){if(!t)return;t=t===!0?{}:t;const s=n==="dark"?"dark":"light";if(!r){e[n]=uC({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:i,...o}=Pi({...r,palette:{mode:s,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...Ku(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Xu(s)},o}function gC(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:o=cC,colorSchemeSelector:a=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(r)[0],f=n||(r.light&&d!=="light"?"light":d),p=mC(i),{[f]:m,light:b,dark:T,...v}=r,w={...v};let A=m;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(A=!0),!A)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Et(21,f));const j=ki(w,A,c,f);b&&!w.light&&ki(w,b,void 0,"light"),T&&!w.dark&&ki(w,T,void 0,"dark");let O={defaultColorScheme:f,...j,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:p,colorSchemes:w,font:{...Yw(j.typography),...j.font},spacing:hC(c.spacing)};Object.keys(O.colorSchemes).forEach(Q=>{const g=O.colorSchemes[Q].palette,I=U=>{const J=U.split("-"),re=J[1],ce=J[2];return p(U,g[re][ce])};if(g.mode==="light"&&(C(g.common,"background","#fff"),C(g.common,"onBackground","#000")),g.mode==="dark"&&(C(g.common,"background","#000"),C(g.common,"onBackground","#fff")),pC(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){C(g.Alert,"errorColor",Te(g.error.light,.6)),C(g.Alert,"infoColor",Te(g.info.light,.6)),C(g.Alert,"successColor",Te(g.success.light,.6)),C(g.Alert,"warningColor",Te(g.warning.light,.6)),C(g.Alert,"errorFilledBg",I("palette-error-main")),C(g.Alert,"infoFilledBg",I("palette-info-main")),C(g.Alert,"successFilledBg",I("palette-success-main")),C(g.Alert,"warningFilledBg",I("palette-warning-main")),C(g.Alert,"errorFilledColor",ct(()=>g.getContrastText(g.error.main))),C(g.Alert,"infoFilledColor",ct(()=>g.getContrastText(g.info.main))),C(g.Alert,"successFilledColor",ct(()=>g.getContrastText(g.success.main))),C(g.Alert,"warningFilledColor",ct(()=>g.getContrastText(g.warning.main))),C(g.Alert,"errorStandardBg",_e(g.error.light,.9)),C(g.Alert,"infoStandardBg",_e(g.info.light,.9)),C(g.Alert,"successStandardBg",_e(g.success.light,.9)),C(g.Alert,"warningStandardBg",_e(g.warning.light,.9)),C(g.Alert,"errorIconColor",I("palette-error-main")),C(g.Alert,"infoIconColor",I("palette-info-main")),C(g.Alert,"successIconColor",I("palette-success-main")),C(g.Alert,"warningIconColor",I("palette-warning-main")),C(g.AppBar,"defaultBg",I("palette-grey-100")),C(g.Avatar,"defaultBg",I("palette-grey-400")),C(g.Button,"inheritContainedBg",I("palette-grey-300")),C(g.Button,"inheritContainedHoverBg",I("palette-grey-A100")),C(g.Chip,"defaultBorder",I("palette-grey-400")),C(g.Chip,"defaultAvatarColor",I("palette-grey-700")),C(g.Chip,"defaultIconColor",I("palette-grey-700")),C(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),C(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),C(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),C(g.LinearProgress,"primaryBg",_e(g.primary.main,.62)),C(g.LinearProgress,"secondaryBg",_e(g.secondary.main,.62)),C(g.LinearProgress,"errorBg",_e(g.error.main,.62)),C(g.LinearProgress,"infoBg",_e(g.info.main,.62)),C(g.LinearProgress,"successBg",_e(g.success.main,.62)),C(g.LinearProgress,"warningBg",_e(g.warning.main,.62)),C(g.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.11)`),C(g.Slider,"primaryTrack",_e(g.primary.main,.62)),C(g.Slider,"secondaryTrack",_e(g.secondary.main,.62)),C(g.Slider,"errorTrack",_e(g.error.main,.62)),C(g.Slider,"infoTrack",_e(g.info.main,.62)),C(g.Slider,"successTrack",_e(g.success.main,.62)),C(g.Slider,"warningTrack",_e(g.warning.main,.62));const U=Hn(g.background.default,.8);C(g.SnackbarContent,"bg",U),C(g.SnackbarContent,"color",ct(()=>g.getContrastText(U))),C(g.SpeedDialAction,"fabHoverBg",Hn(g.background.paper,.15)),C(g.StepConnector,"border",I("palette-grey-400")),C(g.StepContent,"border",I("palette-grey-400")),C(g.Switch,"defaultColor",I("palette-common-white")),C(g.Switch,"defaultDisabledColor",I("palette-grey-100")),C(g.Switch,"primaryDisabledColor",_e(g.primary.main,.62)),C(g.Switch,"secondaryDisabledColor",_e(g.secondary.main,.62)),C(g.Switch,"errorDisabledColor",_e(g.error.main,.62)),C(g.Switch,"infoDisabledColor",_e(g.info.main,.62)),C(g.Switch,"successDisabledColor",_e(g.success.main,.62)),C(g.Switch,"warningDisabledColor",_e(g.warning.main,.62)),C(g.TableCell,"border",_e(Gn(g.divider,1),.88)),C(g.Tooltip,"bg",Gn(g.grey[700],.92))}if(g.mode==="dark"){C(g.Alert,"errorColor",_e(g.error.light,.6)),C(g.Alert,"infoColor",_e(g.info.light,.6)),C(g.Alert,"successColor",_e(g.success.light,.6)),C(g.Alert,"warningColor",_e(g.warning.light,.6)),C(g.Alert,"errorFilledBg",I("palette-error-dark")),C(g.Alert,"infoFilledBg",I("palette-info-dark")),C(g.Alert,"successFilledBg",I("palette-success-dark")),C(g.Alert,"warningFilledBg",I("palette-warning-dark")),C(g.Alert,"errorFilledColor",ct(()=>g.getContrastText(g.error.dark))),C(g.Alert,"infoFilledColor",ct(()=>g.getContrastText(g.info.dark))),C(g.Alert,"successFilledColor",ct(()=>g.getContrastText(g.success.dark))),C(g.Alert,"warningFilledColor",ct(()=>g.getContrastText(g.warning.dark))),C(g.Alert,"errorStandardBg",Te(g.error.light,.9)),C(g.Alert,"infoStandardBg",Te(g.info.light,.9)),C(g.Alert,"successStandardBg",Te(g.success.light,.9)),C(g.Alert,"warningStandardBg",Te(g.warning.light,.9)),C(g.Alert,"errorIconColor",I("palette-error-main")),C(g.Alert,"infoIconColor",I("palette-info-main")),C(g.Alert,"successIconColor",I("palette-success-main")),C(g.Alert,"warningIconColor",I("palette-warning-main")),C(g.AppBar,"defaultBg",I("palette-grey-900")),C(g.AppBar,"darkBg",I("palette-background-paper")),C(g.AppBar,"darkColor",I("palette-text-primary")),C(g.Avatar,"defaultBg",I("palette-grey-600")),C(g.Button,"inheritContainedBg",I("palette-grey-800")),C(g.Button,"inheritContainedHoverBg",I("palette-grey-700")),C(g.Chip,"defaultBorder",I("palette-grey-700")),C(g.Chip,"defaultAvatarColor",I("palette-grey-300")),C(g.Chip,"defaultIconColor",I("palette-grey-300")),C(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),C(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),C(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),C(g.LinearProgress,"primaryBg",Te(g.primary.main,.5)),C(g.LinearProgress,"secondaryBg",Te(g.secondary.main,.5)),C(g.LinearProgress,"errorBg",Te(g.error.main,.5)),C(g.LinearProgress,"infoBg",Te(g.info.main,.5)),C(g.LinearProgress,"successBg",Te(g.success.main,.5)),C(g.LinearProgress,"warningBg",Te(g.warning.main,.5)),C(g.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.13)`),C(g.Slider,"primaryTrack",Te(g.primary.main,.5)),C(g.Slider,"secondaryTrack",Te(g.secondary.main,.5)),C(g.Slider,"errorTrack",Te(g.error.main,.5)),C(g.Slider,"infoTrack",Te(g.info.main,.5)),C(g.Slider,"successTrack",Te(g.success.main,.5)),C(g.Slider,"warningTrack",Te(g.warning.main,.5));const U=Hn(g.background.default,.98);C(g.SnackbarContent,"bg",U),C(g.SnackbarContent,"color",ct(()=>g.getContrastText(U))),C(g.SpeedDialAction,"fabHoverBg",Hn(g.background.paper,.15)),C(g.StepConnector,"border",I("palette-grey-600")),C(g.StepContent,"border",I("palette-grey-600")),C(g.Switch,"defaultColor",I("palette-grey-300")),C(g.Switch,"defaultDisabledColor",I("palette-grey-600")),C(g.Switch,"primaryDisabledColor",Te(g.primary.main,.55)),C(g.Switch,"secondaryDisabledColor",Te(g.secondary.main,.55)),C(g.Switch,"errorDisabledColor",Te(g.error.main,.55)),C(g.Switch,"infoDisabledColor",Te(g.info.main,.55)),C(g.Switch,"successDisabledColor",Te(g.success.main,.55)),C(g.Switch,"warningDisabledColor",Te(g.warning.main,.55)),C(g.TableCell,"border",Te(Gn(g.divider,1),.68)),C(g.Tooltip,"bg",Gn(g.grey[700],.92))}mt(g.background,"default"),mt(g.background,"paper"),mt(g.common,"background"),mt(g.common,"onBackground"),mt(g,"divider"),Object.keys(g).forEach(U=>{const J=g[U];J&&typeof J=="object"&&(J.main&&C(g[U],"mainChannel",Fr(Lr(J.main))),J.light&&C(g[U],"lightChannel",Fr(Lr(J.light))),J.dark&&C(g[U],"darkChannel",Fr(Lr(J.dark))),J.contrastText&&C(g[U],"contrastTextChannel",Fr(Lr(J.contrastText))),U==="text"&&(mt(g[U],"primary"),mt(g[U],"secondary")),U==="action"&&(J.active&&mt(g[U],"active"),J.selected&&mt(g[U],"selected")))})}),O=t.reduce((Q,g)=>Ke(Q,g),O);const S={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:o,getSelector:dC(O)},{vars:P,generateThemeVars:B,generateStyleSheets:Y}=Rw(O,S);return O.vars=P,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([Q,g])=>{O[Q]=g}),O.generateThemeVars=B,O.generateStyleSheets=Y,O.generateSpacing=function(){return Iu(c.spacing,vi(this))},O.getColorSchemeSelector=Nw(a),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=o,O.unstable_sxConfig={...Un,...c==null?void 0:c.unstable_sxConfig},O.unstable_sx=function(g){return or({sx:g,theme:this})},O.toRuntimeSource=Ju,O}function Zu(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:$i({...r===!0?{}:r.palette,mode:t})})}function yC(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:s=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...o}=e,a=i||"light",l=s==null?void 0:s[a],c={...s,...r?{[a]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Pi(e,...t);let d=r;"palette"in e||c[a]&&(c[a]!==!0?d=c[a].palette:a==="dark"&&(d={mode:"dark"}));const f=Pi({...e,palette:d},...t);return f.defaultColorScheme=a,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},Zu(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},Zu(f,"light",c.light)),f}return!r&&!("light"in c)&&a==="light"&&(c.light=!0),gC({...o,colorSchemes:c,defaultColorScheme:a,...typeof n!="boolean"&&n},...t)}const bC=yC(),vC="$$material";function xC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const TC=Tw({themeId:vC,defaultTheme:bC,rootShouldForwardProp:e=>xC(e)&&e!=="classes"}),_C=Iw;process.env.NODE_ENV!=="production"&&(de.node,de.object.isRequired);function SC(e){return kw(e)}function wC(e){return bi("MuiSvgIcon",e)}J_("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CC=e=>{const{color:t,fontSize:r,classes:n}=e,s={root:["root",t!=="inherit"&&`color${Bt(t)}`,`fontSize${Bt(r)}`]};return H_(s,wC,n)},EC=TC("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Bt(r.color)}`],t[`fontSize${Bt(r.fontSize)}`]]}})(_C(({theme:e})=>{var t,r,n,s,i,o,a,l,c,d,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:T=>!T.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,T])=>T&&T.main).map(([T])=>{var v,w;return{props:{color:T},style:{color:(w=(v=(e.vars??e).palette)==null?void 0:v[T])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(p=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),zr=ze.forwardRef(function(t,r){const n=SC({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:o="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24",...m}=n,b=ze.isValidElement(s)&&s.type==="svg",T={...n,color:o,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:b},v={};d||(v.viewBox=p);const w=CC(T);return u.jsxs(EC,{as:a,className:X_(w.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r,...v,...m,...b&&s.props,ownerState:T,children:[b?s.props.children:s,f?u.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(zr.propTypes={children:de.node,classes:de.object,className:de.string,color:de.oneOfType([de.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),de.string]),component:de.elementType,fontSize:de.oneOfType([de.oneOf(["inherit","large","medium","small"]),de.string]),htmlColor:de.string,inheritViewBox:de.bool,shapeRendering:de.string,sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object]),titleAccess:de.string,viewBox:de.string}),zr&&(zr.muiName="SvgIcon");function Ii(e,t){function r(n,s){return u.jsx(zr,{"data-testid":`${t}Icon`,ref:s,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=zr.muiName,ze.memo(ze.forwardRef(r))}const AC=Ii(u.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),OC=Ii(u.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),jC=Ii(u.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),dr=({children:e,...t})=>u.jsx(h.Table.Td,{...t,children:e}),$C=({errorMessages:e,id:t})=>u.jsx(h.Tooltip,{id:t,title:e,children:u.jsx(h.Indicator,{label:e.split(`
203
- `).length,children:u.jsx(qf,{})})}),PC={paddingLeft:0,paddingRight:0},kC=_.memo(function({numColumns:t,errors:r,label:n,description:s,path:i,addItem:o,schema:a,enabled:l,translations:c,rootSchema:d}){const f={bg:"transparent",size:"sm",c:"gray"},p=h.useProps("ActionIcon",f,{});return u.jsxs(h.Table.Tr,{children:[u.jsx(dr,{colSpan:t,children:u.jsxs(h.Stack,{children:[u.jsxs(h.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[u.jsx(h.Grid.Col,{span:"content",children:u.jsx(h.Text,{children:n})}),u.jsx(h.Grid.Col,{span:"content",children:r.length!==0?u.jsx(h.Grid.Col,{span:"content",children:u.jsx($C,{id:"tooltip-validation",errorMessages:r})}):null})]}),s&&u.jsx(h.Text,{size:"sm",children:s})]})}),l?u.jsx(dr,{align:"right",style:PC,children:u.jsx(h.Tooltip,{id:"tooltip-add",title:c.addTooltip,position:"bottom",children:u.jsx(h.ActionIcon,{bg:p.bg,size:p.size,c:p.c,onClick:o(i,K.createDefaultValue(a,d)),children:u.jsx(cn,{})})})}):null]})}),Qu={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},ec=(e,t,r,n,s)=>{if(t.type==="object")return tc(t).map(i=>{var l,c;const o=K.Paths.compose(r,i),a={propName:i,schema:t,title:((c=(l=t.properties)==null?void 0:l[i])==null?void 0:c.title)??y_(i),rowPath:r,cellPath:o,enabled:n,cells:s};return u.jsx(e,{...a},o)});{const i={schema:t,rowPath:r,cellPath:r,enabled:n};return u.jsx(e,{...i},r)}},tc=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],IC=({numColumns:e,translations:t})=>u.jsx(h.Table.Tr,{children:u.jsx(dr,{colSpan:e,children:u.jsx(h.Text,{align:"center",children:t.noDataMessage})})}),DC=_.memo(function({title:t}){return u.jsx(h.Table.Th,{children:t})}),MC=(e,t)=>{const r=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),n=K.formatErrorMessage(i1(K.errorsAt(r,t.schema,s=>s===r)(e.core.errors).map(s=>s.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:n,path:r,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},rc=e=>({type:"Control",scope:e,label:!1}),FC=_.memo(function({path:t,propName:r,schema:n,rootSchema:s,errors:i,enabled:o,renderers:a,cells:l,isValid:c}){return u.jsxs(dr,{children:[n.properties?u.jsx(Se.DispatchCell,{schema:K.Resolve.schema(n,`#/properties/${K.encode(r)}`,s),uischema:rc(`#/properties/${K.encode(r)}`),path:t,enabled:o,renderers:a,cells:l}):u.jsx(Se.DispatchCell,{schema:n,uischema:rc("#"),path:t,enabled:o,renderers:a,cells:l}),u.jsx(h.Text,{size:"xs",children:c?"":i})]})}),RC=e=>{const t=Se.useJsonForms(),r=MC(t,e),n=Ea(r.errors);return u.jsx(FC,{...r,isValid:n})},NC=({childPath:e,schema:t,rowIndex:r,openDeleteDialog:n,moveUpCreator:s,moveDownCreator:i,enableUp:o,enableDown:a,showSortButtons:l,enabled:c,cells:d,path:f,translations:p})=>{const m={bg:"transparent",size:"sm",c:"gray"},b=h.useProps("ActionIcon",m,{}),T=_.useMemo(()=>s(f,r),[s,f,r]),v=_.useMemo(()=>i(f,r),[i,f,r]);return u.jsxs(h.Table.Tr,{children:[ec(RC,t,e,c,d),c?u.jsx(dr,{style:l?Qu.fixedCell:Qu.fixedCellSmall,children:u.jsxs(h.Grid,{justify:"flex-end",align:"center",children:[l?u.jsxs(_.Fragment,{children:[u.jsx(h.Grid.Col,{span:"content",children:u.jsx(h.Tooltip,{id:"tooltip-up",title:p.up,position:"bottom",opened:o?void 0:!1,children:u.jsx(h.ActionIcon,{bg:b.bg,size:b.size,c:b.c,"aria-label":p.upAriaLabel,onClick:T,disabled:!o,children:u.jsx(OC,{})})})}),u.jsx(h.Grid.Col,{span:"content",children:u.jsx(h.Tooltip,{id:"tooltip-down",title:p.down,position:"bottom",opened:a?void 0:!1,children:u.jsx(h.ActionIcon,{bg:b.bg,size:b.size,c:b.c,"aria-label":p.downAriaLabel,onClick:v,disabled:!a,children:u.jsx(AC,{})})})})]}):null,u.jsx(h.Grid.Col,{span:"content",children:u.jsx(h.Tooltip,{id:"tooltip-remove",title:p.removeTooltip,position:"bottom",children:u.jsx(h.ActionIcon,{bg:b.bg,size:b.size,c:b.c,"aria-label":p.removeAriaLabel,onClick:()=>n(e,r),children:u.jsx(jC,{})})})})]})}):null]},e)},nc=_.memo(NC),LC=({data:e,path:t,schema:r,openDeleteDialog:n,moveUp:s,moveDown:i,uischema:o,config:a,enabled:l,cells:c,translations:d})=>{if(e===0)return u.jsx(IC,{numColumns:tc(r).length+1,translations:d});const p=sl({},a,o.options);return u.jsx(_.Fragment,{children:I_(e).map(m=>{const b=K.Paths.compose(t,`${m}`);return u.jsx(nc,{childPath:b,rowIndex:m,schema:r,openDeleteDialog:n,moveUpCreator:s,moveDownCreator:i,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:d},b)})})};class sc extends _.Component{constructor(){super(...arguments);Mc(this,"addItem",(r,n)=>this.props.addItem(r,n))}render(){const{label:r,description:n,path:s,schema:i,rootSchema:o,uischema:a,errors:l,openDeleteDialog:c,visible:d,enabled:f,cells:p,translations:m}=this.props,b=a,T=i.type==="object",v=T?ec(DC,i,s,f,p):void 0;return d?u.jsxs(h.Table,{children:[u.jsxs(h.Table.Thead,{children:[u.jsx(kC,{errors:l,label:r,description:n,addItem:this.addItem,numColumns:T?v.length:1,path:s,uischema:b,schema:i,rootSchema:o,enabled:f,translations:m}),T&&u.jsxs(h.Table.Tr,{children:[v,f?u.jsx(h.Table.Th,{}):null]})]}),u.jsx(h.Table.Tbody,{children:u.jsx(LC,{openDeleteDialog:c,translations:m,...this.props})})]}):null}}const ic=_.memo(function({open:t,onClose:r,onConfirm:n,onCancel:s,title:i,message:o,acceptText:a,declineText:l}){return u.jsxs(h.Modal,{opened:t,withCloseButton:!1,centered:!0,title:i,keepMounted:!0,onClose:r,children:[o,u.jsxs(h.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[u.jsx(h.Button,{onClick:s,children:l}),u.jsx(h.Button,{onClick:n,children:a})]})]})}),zC=e=>{const[t,r]=_.useState(!1),[n,s]=_.useState(void 0),[i,o]=_.useState(void 0),{removeItems:a,visible:l}=e,c=_.useCallback((m,b)=>{r(!0),s(m),o(b)},[r,s,o]),d=_.useCallback(()=>r(!1),[r]),f=_.useCallback(()=>{const m=n.substring(0,n.lastIndexOf("."));a(m,[i])(),r(!1)},[r,n,i]),p=_.useCallback(()=>r(!1),[r]);return l?u.jsxs(u.Fragment,{children:[u.jsx(sc,{...e,openDeleteDialog:c}),u.jsx(ic,{open:t,onCancel:d,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},oc=K.rankWith(3,K.or(K.isObjectArrayControl,K.isPrimitiveArrayControl)),ac=Se.withJsonFormsArrayLayoutProps(zC),BC=({errors:e,description:t,label:r,required:n,path:s,options:i,data:o,enabled:a,handleChange:l})=>u.jsx(h.MultiSelect,{disabled:!a,data:i,defaultValue:o,label:r,description:t,required:n,error:e,onChange:c=>{l(s,c)}}),UC=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),VC=e=>e.type==="string"&&e.enum!==void 0,lc=K.rankWith(6,K.and(K.uiTypeIs("Control"),K.and(K.schemaMatches(e=>K.hasType(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),K.schemaSubPathMatches("items",(e,t)=>{const r=e.$ref?K.resolveSchema(t,e.$ref,t):e;return UC(r)||VC(r)})))),uc=Se.withJsonFormsMultiEnumProps(BC),WC=e=>{const{description:t,errors:r,data:n,handleChange:s,path:i,label:o,required:a,enabled:l}=e,c=h.useProps(i,{},{});return Object.keys(c).forEach(d=>{typeof c[d]=="function"&&(c[d]=c[d](n))}),u.jsx(Tt.DateInput,{valueFormat:"DD.MM.YYYY",disabled:!l,label:o,description:t,error:r,required:a,value:n?new Date(n):null,onChange:d=>{if(d instanceof Date){const f=new Date(d.getTime()-d.getTimezoneOffset()*6e4);s(i,f.toISOString().substring(0,10))}},...c})},cc=K.rankWith(5,K.isDateControl),fc=Se.withJsonFormsControlProps(WC),GC=e=>{const{description:t,errors:r,data:n,handleChange:s,path:i,label:o,required:a,enabled:l}=e,c=h.useProps(i,{},{});return Object.keys(c).forEach(d=>{typeof c[d]=="function"&&(c[d]=c[d](n))}),u.jsx(Tt.DateTimePicker,{valueFormat:"DD.MM.YYYY HH:mm",disabled:!l,label:o,description:t,error:r,required:a,value:n?new Date(n):null,onChange:d=>{if(d instanceof Date){const f=new Date(d);s(i,f.toISOString())}},...c})},dc=K.rankWith(5,K.isDateTimeControl),pc=Se.withJsonFormsControlProps(GC),HC=e=>u.jsx(Sn,{...e}),hc=K.rankWith(3,K.isNumberControl),mc=Se.withJsonFormsControlProps(HC),YC=e=>u.jsx(Sn,{...e}),gc=K.rankWith(3,K.isIntegerControl),yc=Se.withJsonFormsControlProps(YC),qC=e=>u.jsx(il,{...e}),bc=K.rankWith(3,K.isStringControl),vc=Se.withJsonFormsControlProps(qC),JC=e=>u.jsx(ol,{...e}),xc=K.rankWith(3,K.isBooleanControl),Tc=Se.withJsonFormsControlProps(JC),KC=({data:e,options:t,handleChange:r,path:n,...s})=>{const{description:i,errors:o,label:a,required:l,enabled:c}=s,d=h.useProps(n,{},{});return Object.keys(d).forEach(f=>{typeof d[f]=="function"&&(d[f]=d[f](e))}),u.jsx(h.Select,{disabled:!c,data:t,value:e||null,label:a,description:i,required:l,error:o,searchable:!0,onChange:f=>{r(n,f)},...d})},_c=K.rankWith(5,K.isEnumControl),Sc=Se.withJsonFormsEnumProps(Se.withTranslateProps(_.memo(KC)),!1),XC=e=>{const{text:t,visible:r}=e;return r?u.jsx(h.Title,{fw:"bold",size:"xl",children:t}):null},ZC=K.rankWith(3,K.isLabelable),QC=Se.withJsonFormsLabelProps(XC),wc=K.rankWith(5,K.uiTypeIs("HorizontalLayout")),eE=({uischema:e,renderers:t,cells:r,schema:n,path:s,enabled:i})=>{const a={elements:e.elements,schema:n,path:s,enabled:i,direction:"row"};return u.jsx(ei,{...a,renderers:t,cells:r})},Cc=Se.withJsonFormsLayoutProps(eE),Ec=K.rankWith(5,K.uiTypeIs("VerticalLayout")),tE=({uischema:e,schema:t,path:r,enabled:n,renderers:s,cells:i})=>{const a={elements:e.elements,schema:t,path:r,enabled:n,direction:"column"};return u.jsx(ei,{...a,renderers:s,cells:i})},Ac=Se.withJsonFormsLayoutProps(tE),rE=[{tester:cc,renderer:fc},{tester:dc,renderer:pc},{tester:hc,renderer:mc},{tester:gc,renderer:yc},{tester:bc,renderer:vc},{tester:xc,renderer:Tc},{tester:_c,renderer:Sc},{tester:oc,renderer:ac},{tester:lc,renderer:uc},{tester:wc,renderer:Cc},{tester:Ec,renderer:Ac},{tester:ZC,renderer:QC}],nE=[{tester:fl,cell:dl},{tester:al,cell:ll},{tester:ul,cell:cl},{tester:pl,cell:hl},{tester:ml,cell:gl},{tester:yl,cell:bl},{tester:vl,cell:xl}];function sE(e,t){const r=_.useCallback(({row:n})=>u.jsx(Ct,{fallback:u.jsx(Is,{id:n.original.id}),functionProps:[n.original.id],children:t}),[t]);return{enableEditing:!e,editDisplayMode:"modal",renderRowActions:r}}function iE(e,t){return{enableRowSelection:!!e||!!t}}function oE(e){return e&&typeof e=="object"&&!Array.isArray(e)}const Di=(...e)=>{const t={};return e.forEach(r=>{r&&Object.keys(r).forEach(n=>{oE(r[n])&&n!=="ref"&&t[n]?t[n]=Di(t[n],r[n]):t[n]=r[n]})}),t},Br=(e={},...t)=>t.reduce((r,n)=>Di(r,e[n]),{}),aE=(e,t)=>e===void 0?t:e;function lE({col:e,colFilter:t,onClick:r,...n}){return u.jsxs(h.Menu,{shadow:"md",width:"target",...n,children:[u.jsx(h.Menu.Target,{children:u.jsx(h.Button,{children:"Add filter"})}),u.jsx(h.Menu.Dropdown,{children:t.filters.filter(s=>Kt(s.operator)).map(s=>u.jsx(h.Menu.Item,{onClick:()=>r({col:e,opr:s.operator,value:""}),children:s.name},`${t.label}-${s.name}`))})]})}function uE({col:e,colFilter:t,filterNameMap:r}){const{queryParams:n,setQueryParams:s}=pe(),i=vr.useForm({initialValues:{filters:(n==null?void 0:n.filters)||[]}}),[o]=ke.useDebouncedValue(i.getValues(),Or);ke.useDidUpdate(()=>{const c=o.filters.filter(d=>d.value);s({filters:c})},[o]);const a=i.getValues().filters,l=a.map((c,d)=>c.col===e&&Kt(c.opr)?u.jsxs(_.Fragment,{children:[u.jsx(h.Grid.Col,{span:1.5,children:u.jsx(h.Center,{h:"100%",w:"100%",children:u.jsx(h.CloseButton,{onClick:()=>i.removeListItem("filters",d),size:"md",title:"Remove filter",variant:"outline"})})}),u.jsx(h.Grid.Col,{span:10.5,children:c.opr==="in"?u.jsx(ra,{form:i,name:`filters.${d}.value`,label:r[c.opr],comboboxProps:{withinPortal:!1}}):u.jsx(dn,{form:i,name:`filters.${d}.value`,label:r[c.opr],schema:t.schema,withinPortal:!1,filter:!0})}),d>=0&&d+1<a.length&&u.jsx(h.Grid.Col,{span:12,pb:0,children:u.jsx(h.Divider,{my:"sm",label:"AND",align:"center"})})]},`${c.col}-${d}`):null).filter(Boolean);return u.jsxs(h.Grid,{w:"100%",gap:"md",gutter:"md",children:[l.length?l:u.jsx(h.Grid.Col,{span:12,children:u.jsx(h.Text,{align:"center",c:"gray",style:{fontStyle:"italic"},children:"No filters"})}),u.jsx(h.Grid.Col,{span:12,children:u.jsx(h.Stack,{children:u.jsx(lE,{col:e,colFilter:t||{filters:[]},onClick:c=>i.insertListItem("filters",c),withinPortal:!1})})})]})}function cE({filterNameMap:e,col:t,opr:r,table:n}){return Object.entries(e).filter(([s])=>s.startsWith(Jt)).map(([s,i])=>u.jsx(h.Checkbox,{checked:s===r,onChange:o=>n.setState(a=>{const l={...a.filterComponent,[t]:s};return o.target.checked||delete l[t],{...a,filterComponent:l}}),label:i},s))}const Ur=e=>e!=null&&e!=="",Oc=_.forwardRef(({selectIcon:e,...t},r)=>{const{value:n,onChange:s,leftInputProps:i,rightInputProps:o,groupProps:a,...l}=t,[c,d]=_.useState([null,null]);_.useEffect(()=>{const v=JSON.stringify(c);let w="",A=null;switch(n&&n!==v&&(w="sync"),c.every(Ur)&&v!==n?w="update":w="clear",w){case"sync":d(JSON.parse(n));break;case"update":A=setTimeout(()=>{s(JSON.stringify(c))},Or);break;case"clear":s("");break}return()=>clearTimeout(A)},[c]);const f=_.useCallback((v,w)=>{d(A=>{const j=[...A];return j[w]=v,j})},[]);let[p,m]=c;const b=Ur(m)&&!Ur(p),T=Ur(p)&&!Ur(m);return u.jsxs(h.Group,{ref:r,w:"100%",wrap:"nowrap",align:"center",gap:"xs",...a,children:[u.jsx(h.NumberInput,{styles:{wrapper:{marginBottom:0}},...l,value:p,onChange:v=>f(v,0),placeholder:b?"Start value is required":"Start value",error:b&&" ",...i}),u.jsx(h.NumberInput,{styles:{wrapper:{marginBottom:0}},...l,value:m,onChange:v=>f(v,1),placeholder:T?"End value is required":"End value",error:T&&" ",...o}),e]})});Oc.displayName="BasicHeaderBetweenInput";const Vr=e=>e,jc=_.forwardRef(({selectIcon:e,...t},r)=>{const{value:n,onChange:s,leftInputProps:i,rightInputProps:o,groupProps:a,...l}=t,[c,d]=_.useState([null,null]);_.useEffect(()=>{const v=JSON.stringify(c);let w="",A=null;switch(n&&n!==v&&(w="sync"),c.every(Vr)&&v!==n?w="update":w="clear",w){case"sync":d(JSON.parse(n));break;case"update":A=setTimeout(()=>{s(JSON.stringify(c))},Or);break;case"clear":s("");break}return()=>clearTimeout(A)},[c]);const f=_.useCallback((v,w)=>{v&&(v=v.toISOString()),d(A=>{const j=[...A];return j[w]=v,j})},[]);let[p,m]=c;p=p?new Date(p):null,m=m?new Date(m):null;const b=Vr(m)&&!Vr(p),T=Vr(p)&&!Vr(m);return u.jsxs(h.Group,{ref:r,w:"100%",wrap:"nowrap",align:"center",gap:"xs",...a,children:[u.jsx(Tt.DateInput,{clearable:!0,valueFormat:"DD.MM.YYYY",styles:{wrapper:{marginBottom:0}},...l,value:p,onChange:v=>f(v,0),placeholder:b?"Start date is required":"Start date",error:b&&" ",...i}),u.jsx(Tt.DateInput,{clearable:!0,valueFormat:"DD.MM.YYYY",styles:{wrapper:{marginBottom:0}},...l,value:m,onChange:v=>f(v,1),placeholder:T?"End date is required":"End date",error:T&&" ",...o}),e]})});jc.displayName="BasicHeaderDateBetweenInput";const $c=_.forwardRef(({selectIcon:e,...t},r)=>u.jsx(h.TextInput,{ref:r,rightSection:e,...t}));$c.displayName="BasicHeaderTextInput";function fE({component:e,...t}){return u.jsx(Ct,{fallback:u.jsx($c,{...t}),functionProps:[t],children:e})}const Mi={[ea]:e=>u.jsx(Oc,{...e}),[ta]:e=>u.jsx(jc,{...e})},Fi=_.forwardRef(({label:e,disabled:t,children:r},n)=>t?_.cloneElement(r,{ref:n}):u.jsx(h.Tooltip,{label:e,children:_.cloneElement(r,{ref:n})}));Fi.displayName="FilterIconWrapper";const Pc=_.forwardRef(({indicator:e,children:t},r)=>e?u.jsx(h.Indicator,{zIndex:20,size:16,label:e,children:_.cloneElement(t,{ref:r})}):_.cloneElement(t,{ref:r}));Pc.displayName="FilterIndicatorWrapper";const dE=(e,t)=>{var n,s,i;const r=(i=(s=(n=e==null?void 0:e.filters)==null?void 0:n[t])==null?void 0:s.schema)==null?void 0:i.type;if(!r)return Qo;switch(r){case"Date":case"DateTime":return ta;case"Integer":case"Float":return ea;default:return Qo}};function pE({headerConfig:e,column:t,table:r}){var he,H,te,ae;const{info:n,data:s,queryParams:i,setQueryParams:o}=pe(),{filterComponent:a,filterProps:l,filterModeDescription:c,filterAdvancedFilters:d,defaultOpr:f=dE(n,t.id),configurationMode:p="basic"}=e,[m,b]=_.useState("Basic filters"),[T,{close:v,toggle:w}]=ke.useDisclosure(),A=((he=r.getState().filterComponent)==null?void 0:he[t.id])||f,j=_.useMemo(()=>A,[A]),O=vr.useForm({initialValues:{value:""}}),S=_.useCallback(E=>{r.setState(D=>{const q=D.columnTextFilter||{};return E?q[t.id]=E:delete q[t.id],{...D,columnTextFilter:q}})},[t.id,r]),P=_.useMemo(()=>(n==null?void 0:n.filters[t.id])||{},[t.id,n==null?void 0:n.filters]),B=_.useMemo(()=>{var E;return((E=P==null?void 0:P.filters)==null?void 0:E.reduce((D,q)=>({...D,[q.operator]:q.name}),{}))||{}},[P==null?void 0:P.filters]),Y=_.useMemo(()=>(i==null?void 0:i.filters.filter(E=>E.col===t.id&&Kt(E.opr)).map(E=>({...E})))||[],[i,t.id]),[Q]=ke.useDebouncedValue(O.getInputProps("value").value,Or);ke.useDidUpdate(()=>{O.reset()},[j]),ke.useDidUpdate(()=>{let E=!1;const D=i==null?void 0:i.filters.map(X=>{if(X.opr.startsWith(Jt)&&X.col===t.id){if(X.opr===j)E=!0;else return null;return Q?{...X,value:Q}:null}return X}).filter(Boolean);!E&&Q&&D.push({col:t.id,opr:j,value:Q});const q=JSON.stringify(D),V=JSON.stringify(i.filters);q!==V&&(S(Q),o({filters:D}))},[Q]);const g=_.useMemo(()=>{var q;const E={variant:"transparent"};return!((q=P==null?void 0:P.filters)!=null&&q.length)&&(E.disabled=!0,E.c="gray"),E},[P==null?void 0:P.filters]),I=_.useCallback(E=>{if(m===E)return w();b(E),T||w()},[m,T,w]);let U=null;m==="Basic filters"?U=u.jsx(cE,{filterNameMap:B,col:t.id,opr:j,table:r}):m==="Advanced filters"&&(U=u.jsx(uE,{col:t.id,colFilter:P,filterNameMap:B}));const J=_.useMemo(()=>m==="Basic filters"?{arrowOffset:"3.25rem"}:m==="Advanced filters"?{width:"target"}:{},[m]),re=_.useMemo(()=>aE(p==="basic"?a:a==null?void 0:a[j],Mi==null?void 0:Mi[j]),[p,a,j]),ce=_.useMemo(()=>p==="basic"?l:Br(l,j),[p,l,j]);return u.jsxs(h.Popover,{opened:T,closeOnClickOutside:!0,onChange:w,shadow:"md",withArrow:!0,position:"bottom-end",...J,children:[u.jsx(h.Popover.Target,{children:u.jsxs(h.Stack,{w:"100%",gap:"0.25rem",children:[u.jsxs(h.Group,{gap:"xs",justify:"space-between",wrap:"nowrap",children:[u.jsx(fE,{component:re,selectIcon:u.jsx(Fi,{label:"Select basic filter",children:u.jsx(h.ActionIcon,{...g,onClick:()=>I("Basic filters"),children:u.jsx($s,{})})}),disabled:!B[j],placeholder:`Filter by ${((H=s==null?void 0:s.label_columns)==null?void 0:H[t.id])||t.id}`,...O.getInputProps("value"),style:{fontWeight:"normal"},w:"100%",...ce}),u.jsx(Ct,{fallback:u.jsx(Fi,{label:"Advanced Filter",disabled:!((te=P==null?void 0:P.filters)!=null&&te.length),children:u.jsx(Pc,{indicator:Y.length,children:u.jsx(h.ActionIcon,{...g,onClick:()=>I("Advanced filters"),children:u.jsx(Kf,{})})})}),functionProps:[{label:"Advanced filters",disabled:!((ae=P==null?void 0:P.filters)!=null&&ae.length),indicator:Y.length,aiProps:g,onClick:()=>I("Advanced filters")}],children:d})]}),u.jsx(Ct,{fallback:u.jsxs(h.Input.Description,{size:"xs",fw:"normal",children:["Filter Mode: ",B==null?void 0:B[j]]}),functionProps:[B==null?void 0:B[j]],children:c})]})}),u.jsx(h.Popover.Dropdown,{children:u.jsxs(h.Stack,{gap:"0.25rem",children:[u.jsxs(h.Group,{pt:"0.25rem",justify:"space-between",align:"center",wrap:"nowrap",children:[u.jsx(h.CloseButton,{style:{visibility:"hidden"}}),u.jsx(h.Text,{children:m}),u.jsx(h.Tooltip,{label:"Close",children:u.jsx(h.CloseButton,{onClick:v})})]}),u.jsx(h.Divider,{}),U]})})]})}function hE({highlight:e,truncate:t,children:r}){return Array.isArray(r)?r.map((n,s)=>{var i;return(i=t==null?void 0:t[s])!=null&&i.truncated?u.jsx(h.Tooltip,{label:t[s].original,children:u.jsx(h.Highlight,{highlight:e,children:t[s].truncated},s)},s):u.jsx(h.Highlight,{highlight:e,children:n},s)}):t!=null&&t.truncated?u.jsx(h.Tooltip,{label:t.original,children:u.jsx(h.Highlight,{highlight:e,children:t.truncated})}):u.jsx(h.Highlight,{highlight:e,children:r})}function mE(e,t,r,n){const{data:s,specialKey:i}=pe();return{columns:_.useMemo(()=>(s==null?void 0:s.list_columns.map(a=>{var l,c;return{accessorKey:a,header:a.split("_").map(ke.upperFirst).join(" "),Header:u.jsx(Ct,{fallback:(l=s==null?void 0:s.label_columns)==null?void 0:l[a],functionProps:[a],children:(c=Br(t,i.all,a))==null?void 0:c.component}),Filter:d=>u.jsx(pE,{headerConfig:Br(t,i.all,a),...d}),enableSorting:(s==null?void 0:s.order_columns.includes(a))||(s==null?void 0:s.order_columns.includes(`${a}.id`)),Cell:({cell:d,table:f})=>{var O;const p=f.getState().globalFilter,m=(O=f.getState().columnTextFilter)==null?void 0:O[a],{component:b,separator:T,truncate:v}=Br(r,i.all,a);let w=[];p&&w.push(...p.split(n).map(S=>S.trim())),m&&typeof m=="string"&&w.push(...m.split(n).map(S=>S.trim()));let A=go(d.getValue());typeof A=="number"?A=A.toLocaleString():A==null&&(A=""),T&&(A=A.split(T));let j={};return v&&(Array.isArray(A)?j=A.map(S=>({original:S,truncated:S.length>v?`${S.slice(0,v)}...`:null})):j={original:A,truncated:A.length>v?`${A.slice(0,v)}...`:null}),u.jsx(Ct,{fallback:u.jsx(hE,{highlight:w,truncate:j,children:A}),functionProps:[d.row.original,w],children:b})},...e==null?void 0:e[a]}}))||[],[s==null?void 0:s.list_columns,s==null?void 0:s.label_columns,s==null?void 0:s.order_columns,e,t,r,i.all,n]),manualFiltering:!0}}function gE(){const{data:e,loading:t}=pe();return{data:(e==null?void 0:e.result)||[],rowCount:(e==null?void 0:e.count)||0,state:{showLoadingOverlay:t}}}function yE(e){const{data:t}=pe();return e?{mantineTableBodyRowProps:({row:r})=>({onClick:()=>{const n=t.ids[r.id];e(n,r.original)},style:{cursor:"pointer"}})}:null}function bE(){const{queryParams:e,setQueryParams:t,info:r}=pe(),[n,s]=_.useState(""),[i]=ke.useDebouncedValue(n,Or),o=_.useMemo(()=>{var c,d;return((d=(c=e==null?void 0:e.filters)==null?void 0:c.find(f=>f.opr===jr))==null?void 0:d.value)||""},[e==null?void 0:e.filters]),a=_.useMemo(()=>{var c;return(c=Object.entries((r==null?void 0:r.filters)||{}).find(([,d])=>d.filters.find(f=>f.operator===jr)))==null?void 0:c[0]},[r==null?void 0:r.filters]);ke.useDidUpdate(()=>{o!==(i||"")&&s(o)},[o]),ke.useDidUpdate(()=>{var m;const c=((m=e==null?void 0:e.filters)==null?void 0:m.filter(b=>b.opr!==jr))||[],d={col:a,opr:jr,value:i};i&&c.push(d);const f=JSON.stringify(c),p=JSON.stringify((e==null?void 0:e.filters)||[]);f!==p&&t({page:0,filters:c})},[i]);const l=_.useMemo(()=>{const c={disabled:!a};return a||(c.placeholder="No global filter available"),c},[a]);return{manualFiltering:!0,onGlobalFilterChange:s,state:{globalFilter:n},mantineSearchTextInputProps:l}}function vE(e){const{data:t,queryParams:r,setQueryParams:n}=pe(),s=_.useMemo(()=>({pageIndex:(r==null?void 0:r.page)||Ld,pageSize:(r==null?void 0:r.page_size)||zd}),[r==null?void 0:r.page,r==null?void 0:r.page_size]),i=_.useCallback(o=>{const a=o(s);!(t!=null&&t.count)&&a.pageIndex===0||n({page:a.pageIndex,page_size:a.pageSize})},[t==null?void 0:t.count,s,n]);return{enablePagination:!e,manualPagination:!0,state:{pagination:s},onPaginationChange:i}}function xE(e){const{ref:t,height:r}=ke.useElementSize(),{ref:n,height:s}=ke.useElementSize(),i=_.useMemo(()=>{const c={h:"100%",withBorder:e};return e||(c.shadow=void 0),c},[e]),o=_.useMemo(()=>({ref:n}),[n]),a=_.useMemo(()=>({ref:t,pos:"sticky",bottom:0}),[t]),l=_.useMemo(()=>({h:`calc(100% - ${s+r}px)`}),[s,r]);return{mantinePaperProps:i,mantineTopToolbarProps:o,mantineBottomToolbarProps:a,mantineTableContainerProps:l}}function TE(){const{queryParams:e,setQueryParams:t,data:r}=pe(),n=_.useMemo(()=>e!=null&&e.order_column?[{id:e.order_column.split(".id")[0],desc:e.order_direction==="desc"}]:[],[e==null?void 0:e.order_column,e==null?void 0:e.order_direction]),s=_.useCallback(i=>{const o=i(n);if(!o.length){t({order_column:null,order_direction:null});return}const a=o[0];t({order_column:r.order_columns.includes(a.id)?a.id:`${a.id}.id`,order_direction:a.desc?"desc":"asc"})},[r==null?void 0:r.order_columns,t,n]);return{manualSorting:!0,state:{sorting:n},onSortingChange:s}}function _E(...e){const[t,r]=_.useState(!1),n={variant:"transparent",size:"md",c:"gray"},s=h.useProps("ActionIcon",n,e);return u.jsxs(u.Fragment,{children:[u.jsx(h.Tooltip,{label:"Add Item",children:u.jsx(h.ActionIcon,{variant:s.variant,size:s.size,c:s.c,className:"filterButton",onClick:()=>{r(!0)},children:u.jsx(cn,{})})}),u.jsx(Ds,{opened:t,onClose:()=>{r(!1)}})]})}function SE(...e){const[t,r]=_.useState(!1),{download:n}=pe(),s={variant:"transparent",size:"md",c:"gray"},i=h.useProps("ActionIcon",s,e);return t?u.jsx(h.ThemeIcon,{variant:"transparent",size:i.size,c:i.c,children:u.jsx(h.Loader,{size:"100%",color:i.c})}):u.jsx(h.Tooltip,{label:"Download",children:u.jsx(h.ActionIcon,{variant:i.variant,size:i.size,c:i.c,className:"filterButton",onClick:()=>{r(!0),n("download").then(()=>r(!1))},children:u.jsx(So,{})})})}function wE(...e){const[t,r]=_.useState(!1),{queryParams:n,setQueryParams:s,data:i}=pe(),o={variant:"transparent",size:"md",c:"gray"},a=h.useProps("ActionIcon",o,e);return _.useEffect(()=>{t&&r(!1)},[i]),t?u.jsx(h.ThemeIcon,{variant:"transparent",size:a.size,c:a.c,children:u.jsx(h.Loader,{size:"100%",color:a.c})}):u.jsx(h.Tooltip,{label:"Refresh",children:u.jsx(h.ActionIcon,{variant:a.variant,size:a.size,c:a.c,className:"filterButton",onClick:()=>{r(!0),s(n)},children:u.jsx(ed,{})})})}function CE(e,t,r,n,s,i){const{info:o,queryParams:a,setQueryParams:l}=pe(),c=_.useMemo(()=>e?[{label:"All",value:"[]"},...e.map(m=>({label:m.name,value:JSON.stringify(m.value)}))]:[],[e]),d=_.useMemo(()=>u.jsx(h.SegmentedControl,{value:JSON.stringify((a==null?void 0:a.filters)||[]),onChange:m=>l({filters:JSON.parse(m)}),data:c}),[a==null?void 0:a.filters,c,l]),f=_.useMemo(()=>{const m={};return Object.entries(t||{}).forEach(([b,T])=>{m[b]=T,typeof m[b]=="function"&&(m[b]=m[b]())}),m},[t]);return{renderTopToolbarCustomActions:()=>u.jsx(h.Group,{justify:"space-between",children:d&&u.jsx(h.Box,{children:d})}),renderToolbarInternalActions:({table:m})=>u.jsxs(h.Flex,{gap:"0.125rem",align:"center",children:[f.toggleGlobalFilter===null?null:f.toggleGlobalFilter||u.jsx(Dt.MRT_ToggleGlobalFilterButton,{table:m}),n||f.filter===null?null:f.filter||u.jsx(Dt.MRT_ToggleFiltersButton,{table:m}),o!=null&&o.permissions.includes("can_download")&&!i?f.download===null?null:f.download||u.jsx(SE,{}):null,o!=null&&o.permissions.includes("can_post")&&!s?f.add===null?null:f.add||u.jsx(_E,{}):null,f.refresh===null?null:f.refresh||u.jsx(wE,{}),f.showHideColumns===null?null:f.showHideColumns||u.jsx(Dt.MRT_ShowHideColumnsButton,{table:m}),f.toggleDensePadding===null?null:f.toggleDensePadding||u.jsx(Dt.MRT_ToggleDensePaddingButton,{table:m}),f.toggleFullScreen===null?null:f.toggleFullScreen||u.jsx(Dt.MRT_ToggleFullScreenButton,{table:m})]}),enableTopToolbar:!r,enableFilters:!n}}function EE(){const{data:e}=pe();return _.useMemo(()=>(e==null?void 0:e.result.length)>=1e3,[e])?{enableRowVirtualization:!0,rowVirtualizerOptions:{overscan:5}}:{}}const AE={enableStickyHeader:!0,enableColumnPinning:!0},kc=_.forwardRef((e,t)=>{var Z;const{data:r,setQueryParams:n,specialKey:s}=pe(),{fetchOnMount:i=!0,headerCustomizer:o,bodyCustomizer:a,toolbarCustomizer:l,hideToolbar:c,hideFilter:d,hideAdd:f,hideDownload:p,hideActions:m,hidePagination:b,hideError:T,onSelectCheckbox:v,onClickEntry:w,bulkActions:A,table:j,quickFilters:O,withBorder:S,columnProps:P,header:B,body:Y,textFilterSeparator:Q=";",bodySeparator:g,bodyTruncate:I,...U}=e;g&&(console.warn("bodySeparator is deprecated, please use body.[col].separator instead"),Object.keys(Y).forEach(z=>{Y[z]=Y[z]||{},Y[z].separator=Y[z].separator||g})),I&&(console.warn("bodyTruncate is deprecated, please use body.[col].truncate instead"),Object.keys(Y).forEach(z=>{Y[z]=Y[z]||{},Y[z].truncate=Y[z].truncate||I})),o&&(console.warn("headerCustomizer is deprecated, please use header.[col].component instead"),Object.keys(o).forEach(z=>{B[z]=B[z]||{},B[z].component=o[z].component||o[z]})),a&&(console.warn("bodyCustomizer is deprecated, please use body.[col].component instead"),Object.keys(a).forEach(z=>{Y[z]=Y[z]||{},Y[z].component=a[z].component||a[z]}));const J=gE(),re=TE(),ce=vE(b),he=mE(P,B,Y,Q),H=xE(S),te=sE(m,(Z=Br(Y,s.actions))==null?void 0:Z.component),ae=bE(),E=EE(),D=CE(O,l,c,d,f,p),q=yE(w),V=iE(v,A),X=_.useMemo(()=>Di(AE,{mantinePaperProps:{ref:t}},he,J,re,ce,H,te,ae,E,D,q,V,j),[t,he,J,re,ce,H,te,ae,E,D,q,V,j]),G=Dt.useMantineReactTable(X);return _.useEffect(()=>{!r&&i&&n({})},[r]),_.useEffect(()=>{const z=Object.keys(G.getState().rowSelection),ne=r==null?void 0:r.ids.filter((ie,se)=>z.includes(se.toString()));v==null||v(ne),A==null||A.setSelectedIds(ne)},[A,r==null?void 0:r.ids,G.getState().rowSelection,v]),u.jsxs(u.Fragment,{children:[u.jsx(Dt.MantineReactTable,{table:G,...U}),T?null:u.jsx(Eo,{})]})});kc.displayName="NextGenDataGrid";const Ri={iconSmall:"_iconSmall_sxv3z_1",iconLarge:"_iconLarge_sxv3z_6",btn:"_btn_sxv3z_17"};function OE({basePath:e="/security",Target:t,children:r}){const n=It.useNavigate(),{user:s,signout:i}=vo(),[o,a]=_.useState(!1),c=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:td},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:Xf},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:wo},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:wo},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:Yf}].filter(d=>s.permissions.includes(d.name));return u.jsxs(h.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:o,onClose:()=>a(!1),onOpen:()=>a(!0),children:[u.jsx(h.Menu.Target,{children:t||u.jsx(h.UnstyledButton,{className:Ri.btn,style:{borderRadius:4},p:"xs",children:u.jsxs(h.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[u.jsx(h.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${s.first_name} ${s.last_name}`}),u.jsx(js,{size:12})]})})}),u.jsxs(h.Menu.Dropdown,{children:[c.length?u.jsxs(u.Fragment,{children:[u.jsx(h.Menu.Label,{children:"Security"}),c.map((d,f)=>u.jsx(h.Menu.Item,{p:12,leftSection:u.jsx(d.Icon,{className:Ri.iconSmall}),onClick:()=>n(d.resource_name),children:d.label},f)),u.jsx(h.Menu.Divider,{})]}):null,r,u.jsx(h.Menu.Item,{leftSection:u.jsx(Zf,{p:12,className:Ri.iconSmall}),onClick:i,children:"Logout"})]})]})}F.Actions=Is,F.Add=Do,F.AddDialog=Ds,F.ApiProvider=To,F.DataGrid=Vs,F.Delete=Ao,F.DeleteDialog=ic,F.Edit=Io,F.EditDialog=ko,F.Filter=sa,F.FilterMenu=na,F.InfiniteScroll=Wd,F.MantineArrayControlRenderer=ac,F.MantineBooleanCell=hl,F.MantineBooleanControl=Tc,F.MantineDateCell=gl,F.MantineDateControl=fc,F.MantineDateTimeCell=bl,F.MantineDateTimeControl=pc,F.MantineEnumArrayRenderer=uc,F.MantineEnumCell=xl,F.MantineEnumControl=Sc,F.MantineHorizontalLayoutRenderer=Cc,F.MantineIntegerCell=cl,F.MantineIntegerControl=yc,F.MantineLayoutRenderer=ei,F.MantineNumberCell=ll,F.MantineNumberControl=mc,F.MantineTableControl=sc,F.MantineTextCell=dl,F.MantineTextControl=vc,F.MantineVerticalLayoutRenderer=Ac,F.NextGenDataGrid=kc,F.NoBorderTableCell=dr,F.NonEmptyRow=nc,F.Provider=Lf,F.UserMenu=OE,F.mantineArrayControlTester=oc,F.mantineBooleanCellTester=pl,F.mantineBooleanControlTester=xc,F.mantineCells=nE,F.mantineDateCellTester=ml,F.mantineDateControlTester=cc,F.mantineDateTimeCellTester=yl,F.mantineDateTimeControlTester=dc,F.mantineEnumArrayRendererTester=lc,F.mantineEnumCellTester=vl,F.mantineEnumControlTester=_c,F.mantineHorizontalLayoutTester=wc,F.mantineIntegerCellTester=ul,F.mantineIntegerControlTester=gc,F.mantineNumberCellTester=al,F.mantineNumberControlTester=hc,F.mantineRenderers=rE,F.mantineTextCellTester=fl,F.mantineTextControlTester=bc,F.mantineVerticalLayoutTester=Ec,F.renderLayoutElements=Aa,F.useApi=pe,F.useAuth=vo,F.useAuthenticate=Vi,F.useBulkActions=Wf,F.useCustomFetch=Zr,F.useDebouncedChange=Ia,F.useGetList=Wi,F.useInfo=xo,F.useInfo_=yo,F.withAjvProps=Bm,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
201
+ export default theme;`}function po(e={},...t){const{breakpoints:r,mixins:n={},spacing:s,palette:o={},transitions:i={},typography:a={},shape:u,...c}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":jt(20));const d=fo(o),f=bu(e);let p=Xe(f,{mixins:Uw(f.breakpoints,n),palette:d,shadows:qw.slice(),typography:Ww(d,a),transitions:Zw(i),zIndex:{...Qw}});if(p=Xe(p,c),p=t.reduce((m,y)=>Xe(m,y),p),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(v,b)=>{let E;for(E in v){const P=v[E];if(m.includes(E)&&Object.keys(P).length>0){if(process.env.NODE_ENV!=="production"){const O=Qs("",E);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${O}' syntax:`,JSON.stringify({root:{[`&.${O}`]:P}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
202
+ `))}v[E]={}}}};Object.keys(p.components).forEach(v=>{const b=p.components[v].styleOverrides;b&&v.startsWith("Mui")&&y(b,v)})}return p.unstable_sxConfig={...kn,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(y){return nr({sx:y,theme:this})},p.toRuntimeSource=Iu,p}function tE(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 rE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=tE(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Mu(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Du(e){return e==="dark"?rE:[]}function nE(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...s}=e,o=fo(t);return{palette:o,opacity:{...Mu(o.mode),...r},overlays:n||Du(o.mode),...s}}function sE(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const oE=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],iE=e=>(t,r)=>{const n=e.rootSelector||":root",s=e.colorSchemeSelector;let o=s;if(s==="class"&&(o=".%s"),s==="data"&&(o="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(o=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return oE(e.cssVarPrefix).forEach(a=>{i[a]=r[a],delete r[a]}),o==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:o?{[o.replace("%s",t)]:i,[`${n}, ${o.replace("%s",t)}`]:r}:{[n]:{...r,...i}}}if(o&&o!=="media")return`${n}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(o)return o.replace("%s",String(t))}return n};function aE(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function w(e,t,r){!e[t]&&r&&(e[t]=r)}function kr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Su(e)}function Tt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Or(kr(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().
203
+ 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 lE(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ft=e=>{try{return e()}catch{}},uE=(e="mui")=>Ow(e);function ho(e,t,r,n){if(!t)return;t=t===!0?{}:t;const s=n==="dark"?"dark":"light";if(!r){e[n]=nE({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:o,...i}=po({...r,palette:{mode:s,...t==null?void 0:t.palette}});return e[n]={...t,palette:o,opacity:{...Mu(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Du(s)},i}function cE(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:s=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:i=sE,colorSchemeSelector:a=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...c}=e,d=Object.keys(r)[0],f=n||(r.light&&d!=="light"?"light":d),p=uE(o),{[f]:m,light:y,dark:v,...b}=r,E={...b};let P=m;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(P=!0),!P)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:jt(21,f));const O=ho(E,P,c,f);y&&!E.light&&ho(E,y,void 0,"light"),v&&!E.dark&&ho(E,v,void 0,"dark");let A={defaultColorScheme:f,...O,cssVarPrefix:o,colorSchemeSelector:a,rootSelector:u,getCssVar:p,colorSchemes:E,font:{...Bw(O.typography),...O.font},spacing:lE(c.spacing)};Object.keys(A.colorSchemes).forEach(Q=>{const g=A.colorSchemes[Q].palette,j=R=>{const Z=R.split("-"),ne=Z[1],ce=Z[2];return p(R,g[ne][ce])};if(g.mode==="light"&&(w(g.common,"background","#fff"),w(g.common,"onBackground","#000")),g.mode==="dark"&&(w(g.common,"background","#000"),w(g.common,"onBackground","#fff")),aE(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){w(g.Alert,"errorColor",be(g.error.light,.6)),w(g.Alert,"infoColor",be(g.info.light,.6)),w(g.Alert,"successColor",be(g.success.light,.6)),w(g.Alert,"warningColor",be(g.warning.light,.6)),w(g.Alert,"errorFilledBg",j("palette-error-main")),w(g.Alert,"infoFilledBg",j("palette-info-main")),w(g.Alert,"successFilledBg",j("palette-success-main")),w(g.Alert,"warningFilledBg",j("palette-warning-main")),w(g.Alert,"errorFilledColor",ft(()=>g.getContrastText(g.error.main))),w(g.Alert,"infoFilledColor",ft(()=>g.getContrastText(g.info.main))),w(g.Alert,"successFilledColor",ft(()=>g.getContrastText(g.success.main))),w(g.Alert,"warningFilledColor",ft(()=>g.getContrastText(g.warning.main))),w(g.Alert,"errorStandardBg",ve(g.error.light,.9)),w(g.Alert,"infoStandardBg",ve(g.info.light,.9)),w(g.Alert,"successStandardBg",ve(g.success.light,.9)),w(g.Alert,"warningStandardBg",ve(g.warning.light,.9)),w(g.Alert,"errorIconColor",j("palette-error-main")),w(g.Alert,"infoIconColor",j("palette-info-main")),w(g.Alert,"successIconColor",j("palette-success-main")),w(g.Alert,"warningIconColor",j("palette-warning-main")),w(g.AppBar,"defaultBg",j("palette-grey-100")),w(g.Avatar,"defaultBg",j("palette-grey-400")),w(g.Button,"inheritContainedBg",j("palette-grey-300")),w(g.Button,"inheritContainedHoverBg",j("palette-grey-A100")),w(g.Chip,"defaultBorder",j("palette-grey-400")),w(g.Chip,"defaultAvatarColor",j("palette-grey-700")),w(g.Chip,"defaultIconColor",j("palette-grey-700")),w(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),w(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),w(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),w(g.LinearProgress,"primaryBg",ve(g.primary.main,.62)),w(g.LinearProgress,"secondaryBg",ve(g.secondary.main,.62)),w(g.LinearProgress,"errorBg",ve(g.error.main,.62)),w(g.LinearProgress,"infoBg",ve(g.info.main,.62)),w(g.LinearProgress,"successBg",ve(g.success.main,.62)),w(g.LinearProgress,"warningBg",ve(g.warning.main,.62)),w(g.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),w(g.Slider,"primaryTrack",ve(g.primary.main,.62)),w(g.Slider,"secondaryTrack",ve(g.secondary.main,.62)),w(g.Slider,"errorTrack",ve(g.error.main,.62)),w(g.Slider,"infoTrack",ve(g.info.main,.62)),w(g.Slider,"successTrack",ve(g.success.main,.62)),w(g.Slider,"warningTrack",ve(g.warning.main,.62));const R=Dn(g.background.default,.8);w(g.SnackbarContent,"bg",R),w(g.SnackbarContent,"color",ft(()=>g.getContrastText(R))),w(g.SpeedDialAction,"fabHoverBg",Dn(g.background.paper,.15)),w(g.StepConnector,"border",j("palette-grey-400")),w(g.StepContent,"border",j("palette-grey-400")),w(g.Switch,"defaultColor",j("palette-common-white")),w(g.Switch,"defaultDisabledColor",j("palette-grey-100")),w(g.Switch,"primaryDisabledColor",ve(g.primary.main,.62)),w(g.Switch,"secondaryDisabledColor",ve(g.secondary.main,.62)),w(g.Switch,"errorDisabledColor",ve(g.error.main,.62)),w(g.Switch,"infoDisabledColor",ve(g.info.main,.62)),w(g.Switch,"successDisabledColor",ve(g.success.main,.62)),w(g.Switch,"warningDisabledColor",ve(g.warning.main,.62)),w(g.TableCell,"border",ve(Mn(g.divider,1),.88)),w(g.Tooltip,"bg",Mn(g.grey[700],.92))}if(g.mode==="dark"){w(g.Alert,"errorColor",ve(g.error.light,.6)),w(g.Alert,"infoColor",ve(g.info.light,.6)),w(g.Alert,"successColor",ve(g.success.light,.6)),w(g.Alert,"warningColor",ve(g.warning.light,.6)),w(g.Alert,"errorFilledBg",j("palette-error-dark")),w(g.Alert,"infoFilledBg",j("palette-info-dark")),w(g.Alert,"successFilledBg",j("palette-success-dark")),w(g.Alert,"warningFilledBg",j("palette-warning-dark")),w(g.Alert,"errorFilledColor",ft(()=>g.getContrastText(g.error.dark))),w(g.Alert,"infoFilledColor",ft(()=>g.getContrastText(g.info.dark))),w(g.Alert,"successFilledColor",ft(()=>g.getContrastText(g.success.dark))),w(g.Alert,"warningFilledColor",ft(()=>g.getContrastText(g.warning.dark))),w(g.Alert,"errorStandardBg",be(g.error.light,.9)),w(g.Alert,"infoStandardBg",be(g.info.light,.9)),w(g.Alert,"successStandardBg",be(g.success.light,.9)),w(g.Alert,"warningStandardBg",be(g.warning.light,.9)),w(g.Alert,"errorIconColor",j("palette-error-main")),w(g.Alert,"infoIconColor",j("palette-info-main")),w(g.Alert,"successIconColor",j("palette-success-main")),w(g.Alert,"warningIconColor",j("palette-warning-main")),w(g.AppBar,"defaultBg",j("palette-grey-900")),w(g.AppBar,"darkBg",j("palette-background-paper")),w(g.AppBar,"darkColor",j("palette-text-primary")),w(g.Avatar,"defaultBg",j("palette-grey-600")),w(g.Button,"inheritContainedBg",j("palette-grey-800")),w(g.Button,"inheritContainedHoverBg",j("palette-grey-700")),w(g.Chip,"defaultBorder",j("palette-grey-700")),w(g.Chip,"defaultAvatarColor",j("palette-grey-300")),w(g.Chip,"defaultIconColor",j("palette-grey-300")),w(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),w(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),w(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),w(g.LinearProgress,"primaryBg",be(g.primary.main,.5)),w(g.LinearProgress,"secondaryBg",be(g.secondary.main,.5)),w(g.LinearProgress,"errorBg",be(g.error.main,.5)),w(g.LinearProgress,"infoBg",be(g.info.main,.5)),w(g.LinearProgress,"successBg",be(g.success.main,.5)),w(g.LinearProgress,"warningBg",be(g.warning.main,.5)),w(g.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),w(g.Slider,"primaryTrack",be(g.primary.main,.5)),w(g.Slider,"secondaryTrack",be(g.secondary.main,.5)),w(g.Slider,"errorTrack",be(g.error.main,.5)),w(g.Slider,"infoTrack",be(g.info.main,.5)),w(g.Slider,"successTrack",be(g.success.main,.5)),w(g.Slider,"warningTrack",be(g.warning.main,.5));const R=Dn(g.background.default,.98);w(g.SnackbarContent,"bg",R),w(g.SnackbarContent,"color",ft(()=>g.getContrastText(R))),w(g.SpeedDialAction,"fabHoverBg",Dn(g.background.paper,.15)),w(g.StepConnector,"border",j("palette-grey-600")),w(g.StepContent,"border",j("palette-grey-600")),w(g.Switch,"defaultColor",j("palette-grey-300")),w(g.Switch,"defaultDisabledColor",j("palette-grey-600")),w(g.Switch,"primaryDisabledColor",be(g.primary.main,.55)),w(g.Switch,"secondaryDisabledColor",be(g.secondary.main,.55)),w(g.Switch,"errorDisabledColor",be(g.error.main,.55)),w(g.Switch,"infoDisabledColor",be(g.info.main,.55)),w(g.Switch,"successDisabledColor",be(g.success.main,.55)),w(g.Switch,"warningDisabledColor",be(g.warning.main,.55)),w(g.TableCell,"border",be(Mn(g.divider,1),.68)),w(g.Tooltip,"bg",Mn(g.grey[700],.92))}Tt(g.background,"default"),Tt(g.background,"paper"),Tt(g.common,"background"),Tt(g.common,"onBackground"),Tt(g,"divider"),Object.keys(g).forEach(R=>{const Z=g[R];R!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&w(g[R],"mainChannel",Or(kr(Z.main))),Z.light&&w(g[R],"lightChannel",Or(kr(Z.light))),Z.dark&&w(g[R],"darkChannel",Or(kr(Z.dark))),Z.contrastText&&w(g[R],"contrastTextChannel",Or(kr(Z.contrastText))),R==="text"&&(Tt(g[R],"primary"),Tt(g[R],"secondary")),R==="action"&&(Z.active&&Tt(g[R],"active"),Z.selected&&Tt(g[R],"selected")))})}),A=t.reduce((Q,g)=>Xe(Q,g),A);const _={prefix:o,disableCssColorScheme:s,shouldSkipGeneratingVar:i,getSelector:iE(A)},{vars:$,generateThemeVars:F,generateStyleSheets:H}=kw(A,_);return A.vars=$,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([Q,g])=>{A[Q]=g}),A.generateThemeVars=F,A.generateStyleSheets=H,A.generateSpacing=function(){return yu(c.spacing,eo(this))},A.getColorSchemeSelector=Pw(a),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=i,A.unstable_sxConfig={...kn,...c==null?void 0:c.unstable_sxConfig},A.unstable_sx=function(g){return nr({sx:g,theme:this})},A.toRuntimeSource=Iu,A}function Nu(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:fo({...r===!0?{}:r.palette,mode:t})})}function fE(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:s=r?void 0:{light:!0},defaultColorScheme:o=r==null?void 0:r.mode,...i}=e,a=o||"light",u=s==null?void 0:s[a],c={...s,...r?{[a]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return po(e,...t);let d=r;"palette"in e||c[a]&&(c[a]!==!0?d=c[a].palette:a==="dark"&&(d={mode:"dark"}));const f=po({...e,palette:d},...t);return f.defaultColorScheme=a,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},Nu(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},Nu(f,"light",c.light)),f}return!r&&!("light"in c)&&a==="light"&&(c.light=!0),cE({...i,colorSchemes:c,defaultColorScheme:a,...typeof n!="boolean"&&n},...t)}const dE=fE(),pE="$$material";function hE(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mE=mw({themeId:pE,defaultTheme:dE,rootShouldForwardProp:e=>hE(e)&&e!=="classes"}),gE=Aw;process.env.NODE_ENV!=="production"&&(ue.node,ue.object.isRequired);function yE(e){return Cw(e)}function bE(e){return Qs("MuiSvgIcon",e)}VS("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vE=e=>{const{color:t,fontSize:r,classes:n}=e,s={root:["root",t!=="inherit"&&`color${zt(t)}`,`fontSize${zt(r)}`]};return zS(s,bE,n)},xE=mE("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${zt(r.color)}`],t[`fontSize${zt(r.fontSize)}`]]}})(gE(({theme:e})=>{var t,r,n,s,o,i,a,u,c,d,f,p,m,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:v=>!v.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,v])=>v&&v.main).map(([v])=>{var b,E;return{props:{color:v},style:{color:(E=(b=(e.vars??e).palette)==null?void 0:b[v])==null?void 0:E.main}}}),{props:{color:"action"},style:{color:(p=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(y=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Pr=ze.forwardRef(function(t,r){const n=yE({props:t,name:"MuiSvgIcon"}),{children:s,className:o,color:i="inherit",component:a="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24",...m}=n,y=ze.isValidElement(s)&&s.type==="svg",v={...n,color:i,component:a,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:y},b={};d||(b.viewBox=p);const E=vE(v);return l.jsxs(xE,{as:a,className:GS(E.root,o),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r,...b,...m,...y&&s.props,ownerState:v,children:[y?s.props.children:s,f?l.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Pr.propTypes={children:ue.node,classes:ue.object,className:ue.string,color:ue.oneOfType([ue.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ue.string]),component:ue.elementType,fontSize:ue.oneOfType([ue.oneOf(["inherit","large","medium","small"]),ue.string]),htmlColor:ue.string,inheritViewBox:ue.bool,shapeRendering:ue.string,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object]),titleAccess:ue.string,viewBox:ue.string}),Pr&&(Pr.muiName="SvgIcon");function mo(e,t){function r(n,s){return l.jsx(Pr,{"data-testid":`${t}Icon`,ref:s,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Pr.muiName,ze.memo(ze.forwardRef(r))}const TE=mo(l.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),SE=mo(l.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),_E=mo(l.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),ur=({children:e,...t})=>l.jsx(h.Table.Td,{...t,children:e}),wE=({errorMessages:e,id:t})=>l.jsx(h.Tooltip,{id:t,title:e,children:l.jsx(h.Indicator,{label:e.split(`
204
+ `).length,children:l.jsx(Uf,{})})}),EE={paddingLeft:0,paddingRight:0},CE=x.memo(function({numColumns:t,errors:r,label:n,description:s,path:o,addItem:i,schema:a,enabled:u,translations:c,rootSchema:d}){const f={bg:"transparent",size:"sm",c:"gray"},p=h.useProps("ActionIcon",f,{});return l.jsxs(h.Table.Tr,{children:[l.jsx(ur,{colSpan:t,children:l.jsxs(h.Stack,{children:[l.jsxs(h.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[l.jsx(h.Grid.Col,{span:"content",children:l.jsx(h.Text,{children:n})}),l.jsx(h.Grid.Col,{span:"content",children:r.length!==0?l.jsx(h.Grid.Col,{span:"content",children:l.jsx(wE,{id:"tooltip-validation",errorMessages:r})}):null})]}),s&&l.jsx(h.Text,{size:"sm",children:s})]})}),u?l.jsx(ur,{align:"right",style:EE,children:l.jsx(h.Tooltip,{id:"tooltip-add",title:c.addTooltip,position:"bottom",children:l.jsx(h.ActionIcon,{bg:p.bg,size:p.size,c:p.c,onClick:i(o,J.createDefaultValue(a,d)),children:l.jsx(Zr,{})})})}):null]})}),Fu={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},Ru=(e,t,r,n,s)=>{if(t.type==="object")return Lu(t).map(o=>{var u,c;const i=J.Paths.compose(r,o),a={propName:o,schema:t,title:((c=(u=t.properties)==null?void 0:u[o])==null?void 0:c.title)??fS(o),rowPath:r,cellPath:i,enabled:n,cells:s};return l.jsx(e,{...a},i)});{const o={schema:t,rowPath:r,cellPath:r,enabled:n};return l.jsx(e,{...o},r)}},Lu=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],AE=({numColumns:e,translations:t})=>l.jsx(h.Table.Tr,{children:l.jsx(ur,{colSpan:e,children:l.jsx(h.Text,{align:"center",children:t.noDataMessage})})}),OE=x.memo(function({title:t}){return l.jsx(h.Table.Th,{children:t})}),jE=(e,t)=>{const r=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),n=J.formatErrorMessage(Qx(J.errorsAt(r,t.schema,s=>s===r)(e.core.errors).map(s=>s.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:n,path:r,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},zu=e=>({type:"Control",scope:e,label:!1}),$E=x.memo(function({path:t,propName:r,schema:n,rootSchema:s,errors:o,enabled:i,renderers:a,cells:u,isValid:c}){return l.jsxs(ur,{children:[n.properties?l.jsx(xe.DispatchCell,{schema:J.Resolve.schema(n,`#/properties/${J.encode(r)}`,s),uischema:zu(`#/properties/${J.encode(r)}`),path:t,enabled:i,renderers:a,cells:u}):l.jsx(xe.DispatchCell,{schema:n,uischema:zu("#"),path:t,enabled:i,renderers:a,cells:u}),l.jsx(h.Text,{size:"xs",children:c?"":o})]})}),kE=e=>{const t=xe.useJsonForms(),r=jE(t,e),n=ca(r.errors);return l.jsx($E,{...r,isValid:n})},PE=({childPath:e,schema:t,rowIndex:r,openDeleteDialog:n,moveUpCreator:s,moveDownCreator:o,enableUp:i,enableDown:a,showSortButtons:u,enabled:c,cells:d,path:f,translations:p})=>{const m={bg:"transparent",size:"sm",c:"gray"},y=h.useProps("ActionIcon",m,{}),v=x.useMemo(()=>s(f,r),[s,f,r]),b=x.useMemo(()=>o(f,r),[o,f,r]);return l.jsxs(h.Table.Tr,{children:[Ru(kE,t,e,c,d),c?l.jsx(ur,{style:u?Fu.fixedCell:Fu.fixedCellSmall,children:l.jsxs(h.Grid,{justify:"flex-end",align:"center",children:[u?l.jsxs(x.Fragment,{children:[l.jsx(h.Grid.Col,{span:"content",children:l.jsx(h.Tooltip,{id:"tooltip-up",title:p.up,position:"bottom",opened:i?void 0:!1,children:l.jsx(h.ActionIcon,{bg:y.bg,size:y.size,c:y.c,"aria-label":p.upAriaLabel,onClick:v,disabled:!i,children:l.jsx(SE,{})})})}),l.jsx(h.Grid.Col,{span:"content",children:l.jsx(h.Tooltip,{id:"tooltip-down",title:p.down,position:"bottom",opened:a?void 0:!1,children:l.jsx(h.ActionIcon,{bg:y.bg,size:y.size,c:y.c,"aria-label":p.downAriaLabel,onClick:b,disabled:!a,children:l.jsx(TE,{})})})})]}):null,l.jsx(h.Grid.Col,{span:"content",children:l.jsx(h.Tooltip,{id:"tooltip-remove",title:p.removeTooltip,position:"bottom",children:l.jsx(h.ActionIcon,{bg:y.bg,size:y.size,c:y.c,"aria-label":p.removeAriaLabel,onClick:()=>n(e,r),children:l.jsx(_E,{})})})})]})}):null]},e)},Bu=x.memo(PE),IE=({data:e,path:t,schema:r,openDeleteDialog:n,moveUp:s,moveDown:o,uischema:i,config:a,enabled:u,cells:c,translations:d})=>{if(e===0)return l.jsx(AE,{numColumns:Lu(r).length+1,translations:d});const p=Ua({},a,i.options);return l.jsx(x.Fragment,{children:AS(e).map(m=>{const y=J.Paths.compose(t,`${m}`);return l.jsx(Bu,{childPath:y,rowIndex:m,schema:r,openDeleteDialog:n,moveUpCreator:s,moveDownCreator:o,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:u,cells:c,path:t,translations:d},y)})})};class Uu extends x.Component{constructor(){super(...arguments);$c(this,"addItem",(r,n)=>this.props.addItem(r,n))}render(){const{label:r,description:n,path:s,schema:o,rootSchema:i,uischema:a,errors:u,openDeleteDialog:c,visible:d,enabled:f,cells:p,translations:m}=this.props,y=a,v=o.type==="object",b=v?Ru(OE,o,s,f,p):void 0;return d?l.jsxs(h.Table,{children:[l.jsxs(h.Table.Thead,{children:[l.jsx(CE,{errors:u,label:r,description:n,addItem:this.addItem,numColumns:v?b.length:1,path:s,uischema:y,schema:o,rootSchema:i,enabled:f,translations:m}),v&&l.jsxs(h.Table.Tr,{children:[b,f?l.jsx(h.Table.Th,{}):null]})]}),l.jsx(h.Table.Tbody,{children:l.jsx(IE,{openDeleteDialog:c,translations:m,...this.props})})]}):null}}const Vu=x.memo(function({open:t,onClose:r,onConfirm:n,onCancel:s,title:o,message:i,acceptText:a,declineText:u}){return l.jsxs(h.Modal,{opened:t,withCloseButton:!1,centered:!0,title:o,keepMounted:!0,onClose:r,children:[i,l.jsxs(h.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[l.jsx(h.Button,{onClick:s,children:u}),l.jsx(h.Button,{onClick:n,children:a})]})]})}),ME=e=>{const[t,r]=x.useState(!1),[n,s]=x.useState(void 0),[o,i]=x.useState(void 0),{removeItems:a,visible:u}=e,c=x.useCallback((m,y)=>{r(!0),s(m),i(y)},[r,s,i]),d=x.useCallback(()=>r(!1),[r]),f=x.useCallback(()=>{const m=n.substring(0,n.lastIndexOf("."));a(m,[o])(),r(!1)},[r,n,o]),p=x.useCallback(()=>r(!1),[r]);return u?l.jsxs(l.Fragment,{children:[l.jsx(Uu,{...e,openDeleteDialog:c}),l.jsx(Vu,{open:t,onCancel:d,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},Wu=J.rankWith(3,J.or(J.isObjectArrayControl,J.isPrimitiveArrayControl)),Gu=xe.withJsonFormsArrayLayoutProps(ME),DE=({errors:e,description:t,label:r,required:n,path:s,options:o,data:i,enabled:a,handleChange:u})=>l.jsx(h.MultiSelect,{disabled:!a,data:o,defaultValue:i,label:r,description:t,required:n,error:e,onChange:c=>{u(s,c)}}),NE=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),FE=e=>e.type==="string"&&e.enum!==void 0,Hu=J.rankWith(6,J.and(J.uiTypeIs("Control"),J.and(J.schemaMatches(e=>J.hasType(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),J.schemaSubPathMatches("items",(e,t)=>{const r=e.$ref?J.resolveSchema(t,e.$ref,t):e;return NE(r)||FE(r)})))),Yu=xe.withJsonFormsMultiEnumProps(DE),RE=e=>{const{description:t,errors:r,data:n,handleChange:s,path:o,label:i,required:a,enabled:u}=e,c=h.useProps(o,{},{});return Object.keys(c).forEach(d=>{typeof c[d]=="function"&&(c[d]=c[d](n))}),l.jsx(wt.DateInput,{valueFormat:"DD.MM.YYYY",disabled:!u,label:i,description:t,error:r,required:a,value:n?new Date(n):null,onChange:d=>{if(d instanceof Date){const f=new Date(d.getTime()-d.getTimezoneOffset()*6e4);s(o,f.toISOString().substring(0,10))}},...c})},qu=J.rankWith(5,J.isDateControl),Ju=xe.withJsonFormsControlProps(RE),LE=e=>{const{description:t,errors:r,data:n,handleChange:s,path:o,label:i,required:a,enabled:u}=e,c=h.useProps(o,{},{});return Object.keys(c).forEach(d=>{typeof c[d]=="function"&&(c[d]=c[d](n))}),l.jsx(wt.DateTimePicker,{valueFormat:"DD.MM.YYYY HH:mm",disabled:!u,label:i,description:t,error:r,required:a,value:n?new Date(n):null,onChange:d=>{if(d instanceof Date){const f=new Date(d);s(o,f.toISOString())}},...c})},Ku=J.rankWith(5,J.isDateTimeControl),Xu=xe.withJsonFormsControlProps(LE),zE=e=>l.jsx(dn,{...e}),Zu=J.rankWith(3,J.isNumberControl),Qu=xe.withJsonFormsControlProps(zE),BE=e=>l.jsx(dn,{...e}),ec=J.rankWith(3,J.isIntegerControl),tc=xe.withJsonFormsControlProps(BE),UE=e=>l.jsx(Va,{...e}),rc=J.rankWith(3,J.isStringControl),nc=xe.withJsonFormsControlProps(UE),VE=e=>l.jsx(Wa,{...e}),sc=J.rankWith(3,J.isBooleanControl),oc=xe.withJsonFormsControlProps(VE),WE=({data:e,options:t,handleChange:r,path:n,...s})=>{const{description:o,errors:i,label:a,required:u,enabled:c}=s,d=h.useProps(n,{},{});return Object.keys(d).forEach(f=>{typeof d[f]=="function"&&(d[f]=d[f](e))}),l.jsx(h.Select,{disabled:!c,data:t,value:e||null,label:a,description:o,required:u,error:i,searchable:!0,onChange:f=>{r(n,f)},...d})},ic=J.rankWith(5,J.isEnumControl),ac=xe.withJsonFormsEnumProps(xe.withTranslateProps(x.memo(WE)),!1),GE=e=>{const{text:t,visible:r}=e;return r?l.jsx(h.Title,{fw:"bold",size:"xl",children:t}):null},HE=J.rankWith(3,J.isLabelable),YE=xe.withJsonFormsLabelProps(GE),lc=J.rankWith(5,J.uiTypeIs("HorizontalLayout")),qE=({uischema:e,renderers:t,cells:r,schema:n,path:s,enabled:o})=>{const a={elements:e.elements,schema:n,path:s,enabled:o,direction:"row"};return l.jsx(Ds,{...a,renderers:t,cells:r})},uc=xe.withJsonFormsLayoutProps(qE),cc=J.rankWith(5,J.uiTypeIs("VerticalLayout")),JE=({uischema:e,schema:t,path:r,enabled:n,renderers:s,cells:o})=>{const a={elements:e.elements,schema:t,path:r,enabled:n,direction:"column"};return l.jsx(Ds,{...a,renderers:s,cells:o})},fc=xe.withJsonFormsLayoutProps(JE),KE=[{tester:qu,renderer:Ju},{tester:Ku,renderer:Xu},{tester:Zu,renderer:Qu},{tester:ec,renderer:tc},{tester:rc,renderer:nc},{tester:sc,renderer:oc},{tester:ic,renderer:ac},{tester:Wu,renderer:Gu},{tester:Hu,renderer:Yu},{tester:lc,renderer:uc},{tester:cc,renderer:fc},{tester:HE,renderer:YE}],XE=[{tester:Ja,cell:Ka},{tester:Ga,cell:Ha},{tester:Ya,cell:qa},{tester:Xa,cell:Za},{tester:Qa,cell:el},{tester:tl,cell:rl},{tester:nl,cell:sl}];function ZE(e,t){const r=x.useCallback(({row:n})=>l.jsx(Ot,{fallback:l.jsx(hs,{id:n.original.id}),functionProps:[n.original.id],children:t}),[t]);return{enableEditing:!e,editDisplayMode:"modal",renderRowActions:r}}function QE(e,t){return{enableRowSelection:!!e||!!t}}function eC(e){return e&&typeof e=="object"&&!Array.isArray(e)}const go=(...e)=>{const t={};return e.forEach(r=>{r&&Object.keys(r).forEach(n=>{eC(r[n])&&n!=="ref"&&t[n]?t[n]=go(t[n],r[n]):t[n]=r[n]})}),t},Ir=(e={},...t)=>t.reduce((r,n)=>go(r,e[n]),{}),tC=(e,t)=>e===void 0?t:e;function rC({col:e,colFilter:t,onClick:r,...n}){return l.jsxs(h.Menu,{shadow:"md",width:"target",...n,children:[l.jsx(h.Menu.Target,{children:l.jsx(h.Button,{children:"Add filter"})}),l.jsx(h.Menu.Dropdown,{children:t.filters.filter(s=>Yt(s.operator)).map(s=>l.jsx(h.Menu.Item,{onClick:()=>r({col:e,opr:s.operator,value:""}),children:s.name},`${t.label}-${s.name}`))})]})}function nC({col:e,colFilter:t,filterNameMap:r}){const{queryParams:n,setQueryParams:s}=fe(),o=fr.useForm({initialValues:{filters:(n==null?void 0:n.filters)||[]}}),[i]=je.useDebouncedValue(o.getValues(),xr);je.useDidUpdate(()=>{const c=i.filters.filter(d=>d.value);s({filters:c})},[i]);const a=o.getValues().filters,u=a.map((c,d)=>c.col===e&&Yt(c.opr)?l.jsxs(x.Fragment,{children:[l.jsx(h.Grid.Col,{span:1.5,children:l.jsx(h.Center,{h:"100%",w:"100%",children:l.jsx(h.CloseButton,{onClick:()=>o.removeListItem("filters",d),size:"md",title:"Remove filter",variant:"outline"})})}),l.jsx(h.Grid.Col,{span:10.5,children:c.opr==="in"?l.jsx(zi,{form:o,name:`filters.${d}.value`,label:r[c.opr],comboboxProps:{withinPortal:!1}}):l.jsx(en,{form:o,name:`filters.${d}.value`,label:r[c.opr],schema:t.schema,withinPortal:!1,filter:!0})}),d>=0&&d+1<a.length&&l.jsx(h.Grid.Col,{span:12,pb:0,children:l.jsx(h.Divider,{my:"sm",label:"AND",align:"center"})})]},`${c.col}-${d}`):null).filter(Boolean);return l.jsxs(h.Grid,{w:"100%",gap:"md",gutter:"md",children:[u.length?u:l.jsx(h.Grid.Col,{span:12,children:l.jsx(h.Text,{align:"center",c:"gray",style:{fontStyle:"italic"},children:"No filters"})}),l.jsx(h.Grid.Col,{span:12,children:l.jsx(h.Stack,{children:l.jsx(rC,{col:e,colFilter:t||{filters:[]},onClick:c=>o.insertListItem("filters",c),withinPortal:!1})})})]})}function sC({filterNameMap:e,col:t,opr:r,table:n}){return Object.entries(e).filter(([s])=>s.startsWith(Ht)).map(([s,o])=>l.jsx(h.Checkbox,{checked:s===r,onChange:i=>n.setState(a=>{const u={...a.filterComponent,[t]:s};return i.target.checked||delete u[t],{...a,filterComponent:u}}),label:o},s))}const Mr=e=>e!=null&&e!=="",dc=x.forwardRef(({selectIcon:e,...t},r)=>{const{value:n,onChange:s,leftInputProps:o,rightInputProps:i,groupProps:a,...u}=t,[c,d]=x.useState([null,null]);x.useEffect(()=>{const b=JSON.stringify(c);let E="",P=null;switch(n&&n!==b&&(E="sync"),c.every(Mr)&&b!==n?E="update":E="clear",E){case"sync":d(JSON.parse(n));break;case"update":P=setTimeout(()=>{s(JSON.stringify(c))},xr);break;case"clear":s("");break}return()=>clearTimeout(P)},[c]);const f=x.useCallback((b,E)=>{d(P=>{const O=[...P];return O[E]=b,O})},[]);let[p,m]=c;const y=Mr(m)&&!Mr(p),v=Mr(p)&&!Mr(m);return l.jsxs(h.Group,{ref:r,w:"100%",wrap:"nowrap",align:"center",gap:"xs",...a,children:[l.jsx(h.NumberInput,{styles:{wrapper:{marginBottom:0}},...u,value:p,onChange:b=>f(b,0),placeholder:y?"Start value is required":"Start value",error:y&&" ",...o}),l.jsx(h.NumberInput,{styles:{wrapper:{marginBottom:0}},...u,value:m,onChange:b=>f(b,1),placeholder:v?"End value is required":"End value",error:v&&" ",...i}),e]})});dc.displayName="BasicHeaderBetweenInput";const Dr=e=>e,pc=x.forwardRef(({selectIcon:e,...t},r)=>{const{value:n,onChange:s,leftInputProps:o,rightInputProps:i,groupProps:a,...u}=t,[c,d]=x.useState([null,null]);x.useEffect(()=>{const b=JSON.stringify(c);let E="",P=null;switch(n&&n!==b&&(E="sync"),c.every(Dr)&&b!==n?E="update":E="clear",E){case"sync":d(JSON.parse(n));break;case"update":P=setTimeout(()=>{s(JSON.stringify(c))},xr);break;case"clear":s("");break}return()=>clearTimeout(P)},[c]);const f=x.useCallback((b,E)=>{b&&(b=b.toISOString()),d(P=>{const O=[...P];return O[E]=b,O})},[]);let[p,m]=c;p=p?new Date(p):null,m=m?new Date(m):null;const y=Dr(m)&&!Dr(p),v=Dr(p)&&!Dr(m);return l.jsxs(h.Group,{ref:r,w:"100%",wrap:"nowrap",align:"center",gap:"xs",...a,children:[l.jsx(wt.DateInput,{clearable:!0,valueFormat:"DD.MM.YYYY",styles:{wrapper:{marginBottom:0}},...u,value:p,onChange:b=>f(b,0),placeholder:y?"Start date is required":"Start date",error:y&&" ",...o}),l.jsx(wt.DateInput,{clearable:!0,valueFormat:"DD.MM.YYYY",styles:{wrapper:{marginBottom:0}},...u,value:m,onChange:b=>f(b,1),placeholder:v?"End date is required":"End date",error:v&&" ",...i}),e]})});pc.displayName="BasicHeaderDateBetweenInput";const hc=x.forwardRef(({selectIcon:e,...t},r)=>l.jsx(h.TextInput,{ref:r,rightSection:e,...t}));hc.displayName="BasicHeaderTextInput";function oC({component:e,...t}){return l.jsx(Ot,{fallback:l.jsx(hc,{...t}),functionProps:[t],children:e})}const yo={[Ri]:e=>l.jsx(dc,{...e}),[Li]:e=>l.jsx(pc,{...e})},bo=x.forwardRef(({label:e,disabled:t,children:r},n)=>t?x.cloneElement(r,{ref:n}):l.jsx(h.Tooltip,{label:e,children:x.cloneElement(r,{ref:n})}));bo.displayName="FilterIconWrapper";const mc=x.forwardRef(({indicator:e,children:t},r)=>e?l.jsx(h.Indicator,{zIndex:20,size:16,label:e,children:x.cloneElement(t,{ref:r})}):x.cloneElement(t,{ref:r}));mc.displayName="FilterIndicatorWrapper";const iC=(e,t)=>{var n,s,o;const r=(o=(s=(n=e==null?void 0:e.filters)==null?void 0:n[t])==null?void 0:s.schema)==null?void 0:o.type;if(!r)return Fi;switch(r){case"Date":case"DateTime":return Li;case"Integer":case"Float":return Ri;default:return Fi}};function aC({headerConfig:e,column:t,table:r}){var ge,V,ee,se;const{info:n,data:s,queryParams:o,setQueryParams:i}=fe(),{filterComponent:a,filterProps:u,filterModeDescription:c,filterAdvancedFilters:d,defaultOpr:f=iC(n,t.id),configurationMode:p="basic"}=e,[m,y]=x.useState("Basic filters"),[v,{close:b,toggle:E}]=je.useDisclosure(),P=((ge=r.getState().filterComponent)==null?void 0:ge[t.id])||f,O=x.useMemo(()=>P,[P]),A=fr.useField({initialValue:""}),_=x.useCallback(C=>{r.setState(k=>{const q=k.columnTextFilter||{};return C?q[t.id]=C:delete q[t.id],{...k,columnTextFilter:q}})},[t.id,r]),$=x.useMemo(()=>(n==null?void 0:n.filters[t.id])||{},[t.id,n==null?void 0:n.filters]),F=x.useMemo(()=>{var C;return((C=$==null?void 0:$.filters)==null?void 0:C.reduce((k,q)=>({...k,[q.operator]:q.name}),{}))||{}},[$==null?void 0:$.filters]),H=x.useMemo(()=>(o==null?void 0:o.filters.filter(C=>C.col===t.id&&Yt(C.opr)).map(C=>({...C})))||[],[o,t.id]),[Q]=je.useDebouncedValue(A.getInputProps().value,xr);je.useDidUpdate(()=>{A.reset()},[O]),je.useDidUpdate(()=>{let C=!1;const k=o==null?void 0:o.filters.map(Y=>{if(Y.opr.startsWith(Ht)&&Y.col===t.id){if(Y.opr===O)C=!0;else return null;return Q?{...Y,value:Q}:null}return Y}).filter(Boolean);!C&&Q&&k.push({col:t.id,opr:O,value:Q});const q=JSON.stringify(k),z=JSON.stringify(o.filters);q!==z&&(_(Q),i({filters:k}))},[Q]);const g=x.useMemo(()=>{var q;const C={variant:"transparent"};return!((q=$==null?void 0:$.filters)!=null&&q.length)&&(C.disabled=!0,C.c="gray"),C},[$==null?void 0:$.filters]),j=x.useCallback(C=>{if(m===C)return E();y(C),v||E()},[m,v,E]);let R=null;m==="Basic filters"?R=l.jsx(sC,{filterNameMap:F,col:t.id,opr:O,table:r}):m==="Advanced filters"&&(R=l.jsx(nC,{col:t.id,colFilter:$,filterNameMap:F}));const Z=x.useMemo(()=>m==="Basic filters"?{arrowOffset:"3.25rem"}:m==="Advanced filters"?{width:"target"}:{},[m]),ne=x.useMemo(()=>tC(p==="basic"?a:a==null?void 0:a[O],yo==null?void 0:yo[O]),[p,a,O]),ce=x.useMemo(()=>p==="basic"?u:Ir(u,O),[p,u,O]);return l.jsxs(h.Popover,{opened:v,closeOnClickOutside:!0,onChange:E,shadow:"md",withArrow:!0,position:"bottom-end",...Z,children:[l.jsx(h.Popover.Target,{children:l.jsxs(h.Stack,{w:"100%",gap:"0.25rem",children:[l.jsxs(h.Group,{gap:"xs",justify:"space-between",wrap:"nowrap",children:[l.jsx(oC,{component:ne,field:A,selectIcon:l.jsx(bo,{label:"Select basic filter",children:l.jsx(h.ActionIcon,{...g,onClick:()=>j("Basic filters"),children:l.jsx(fs,{})})}),disabled:!F[O],placeholder:`Filter by ${((V=s==null?void 0:s.label_columns)==null?void 0:V[t.id])||t.id}`,style:{fontWeight:"normal"},w:"100%",...A.getInputProps(),...ce}),l.jsx(Ot,{fallback:l.jsx(bo,{label:"Advanced Filter",disabled:!((ee=$==null?void 0:$.filters)!=null&&ee.length),children:l.jsx(mc,{indicator:H.length,children:l.jsx(h.ActionIcon,{...g,onClick:()=>j("Advanced filters"),children:l.jsx(Wf,{})})})}),functionProps:[{label:"Advanced filters",disabled:!((se=$==null?void 0:$.filters)!=null&&se.length),indicator:H.length,aiProps:g,onClick:()=>j("Advanced filters")}],children:d})]}),l.jsx(Ot,{fallback:l.jsxs(h.Input.Description,{size:"xs",fw:"normal",children:["Filter Mode: ",F==null?void 0:F[O]]}),functionProps:[F==null?void 0:F[O]],children:c})]})}),l.jsx(h.Popover.Dropdown,{children:l.jsxs(h.Stack,{gap:"0.25rem",children:[l.jsxs(h.Group,{pt:"0.25rem",justify:"space-between",align:"center",wrap:"nowrap",children:[l.jsx(h.CloseButton,{style:{visibility:"hidden"}}),l.jsx(h.Text,{children:m}),l.jsx(h.Tooltip,{label:"Close",children:l.jsx(h.CloseButton,{onClick:b})})]}),l.jsx(h.Divider,{}),R]})})]})}function lC({highlight:e,truncate:t,children:r}){return Array.isArray(r)?r.map((n,s)=>{var o;return(o=t==null?void 0:t[s])!=null&&o.truncated?l.jsx(h.Tooltip,{label:t[s].original,children:l.jsx(h.Highlight,{highlight:e,children:t[s].truncated},s)},s):l.jsx(h.Highlight,{highlight:e,children:n},s)}):t!=null&&t.truncated?l.jsx(h.Tooltip,{label:t.original,children:l.jsx(h.Highlight,{highlight:e,children:t.truncated})}):l.jsx(h.Highlight,{highlight:e,children:r})}function uC(e,t,r,n){const{data:s,specialKey:o}=fe();return{columns:x.useMemo(()=>(s==null?void 0:s.list_columns.map(a=>{var u,c;return{accessorKey:a,header:a.split("_").map(je.upperFirst).join(" "),Header:l.jsx(Ot,{fallback:(u=s==null?void 0:s.label_columns)==null?void 0:u[a],functionProps:[a],children:(c=Ir(t,o.all,a))==null?void 0:c.component}),Filter:d=>l.jsx(aC,{headerConfig:Ir(t,o.all,a),...d}),enableSorting:(s==null?void 0:s.order_columns.includes(a))||(s==null?void 0:s.order_columns.includes(`${a}.id`)),Cell:({cell:d,table:f})=>{var A;const p=f.getState().globalFilter,m=(A=f.getState().columnTextFilter)==null?void 0:A[a],{component:y,separator:v,truncate:b}=Ir(r,o.all,a);let E=[];p&&E.push(...p.split(n).map(_=>_.trim())),m&&typeof m=="string"&&E.push(...m.split(n).map(_=>_.trim()));let P=Qo(d.getValue());typeof P=="number"?P=P.toLocaleString():P==null&&(P=""),v&&(P=P.split(v));let O={};return b&&(Array.isArray(P)?O=P.map(_=>({original:_,truncated:_.length>b?`${_.slice(0,b)}...`:null})):O={original:P,truncated:P.length>b?`${P.slice(0,b)}...`:null}),l.jsx(Ot,{fallback:l.jsx(lC,{highlight:E,truncate:O,children:P}),functionProps:[d.row.original,E],children:y})},...e==null?void 0:e[a]}}))||[],[s==null?void 0:s.list_columns,s==null?void 0:s.label_columns,s==null?void 0:s.order_columns,e,t,r,o.all,n]),manualFiltering:!0}}function cC(){const{data:e,loading:t}=fe();return{data:(e==null?void 0:e.result)||[],rowCount:(e==null?void 0:e.count)||0,state:{showLoadingOverlay:t}}}function fC(e){const{data:t}=fe();return e?{mantineTableBodyRowProps:({row:r})=>({onClick:()=>{const n=t.ids[r.id];e(n,r.original)},style:{cursor:"pointer"}})}:null}function dC(){const{queryParams:e,setQueryParams:t,info:r}=fe(),[n,s]=x.useState(""),[o]=je.useDebouncedValue(n,xr),i=x.useMemo(()=>{var c,d;return((d=(c=e==null?void 0:e.filters)==null?void 0:c.find(f=>f.opr===Tr))==null?void 0:d.value)||""},[e==null?void 0:e.filters]),a=x.useMemo(()=>{var c;return(c=Object.entries((r==null?void 0:r.filters)||{}).find(([,d])=>d.filters.find(f=>f.operator===Tr)))==null?void 0:c[0]},[r==null?void 0:r.filters]);je.useDidUpdate(()=>{i!==(o||"")&&s(i)},[i]),je.useDidUpdate(()=>{var m;const c=((m=e==null?void 0:e.filters)==null?void 0:m.filter(y=>y.opr!==Tr))||[],d={col:a,opr:Tr,value:o};o&&c.push(d);const f=JSON.stringify(c),p=JSON.stringify((e==null?void 0:e.filters)||[]);f!==p&&t({page:0,filters:c})},[o]);const u=x.useMemo(()=>{const c={disabled:!a};return a||(c.placeholder="No global filter available"),c},[a]);return{manualFiltering:!0,onGlobalFilterChange:s,state:{globalFilter:n},mantineSearchTextInputProps:u}}function pC(e){const{data:t,queryParams:r,setQueryParams:n}=fe(),s=x.useMemo(()=>({pageIndex:(r==null?void 0:r.page)||Id,pageSize:(r==null?void 0:r.page_size)||Md}),[r==null?void 0:r.page,r==null?void 0:r.page_size]),o=x.useCallback(i=>{const a=i(s);!(t!=null&&t.count)&&a.pageIndex===0||n({page:a.pageIndex,page_size:a.pageSize})},[t==null?void 0:t.count,s,n]);return{enablePagination:!e,manualPagination:!0,state:{pagination:s},onPaginationChange:o}}function hC(e){const{ref:t,height:r}=je.useElementSize(),{ref:n,height:s}=je.useElementSize(),o=x.useMemo(()=>{const c={h:"100%",withBorder:e};return e||(c.shadow=void 0),c},[e]),i=x.useMemo(()=>({ref:n}),[n]),a=x.useMemo(()=>({ref:t,pos:"sticky",bottom:0}),[t]),u=x.useMemo(()=>({h:`calc(100% - ${s+r}px)`}),[s,r]);return{mantinePaperProps:o,mantineTopToolbarProps:i,mantineBottomToolbarProps:a,mantineTableContainerProps:u}}function mC(){const{queryParams:e,setQueryParams:t,data:r}=fe(),n=x.useMemo(()=>e!=null&&e.order_column?[{id:e.order_column.split(".id")[0],desc:e.order_direction==="desc"}]:[],[e==null?void 0:e.order_column,e==null?void 0:e.order_direction]),s=x.useCallback(o=>{const i=o(n);if(!i.length){t({order_column:null,order_direction:null});return}const a=i[0];t({order_column:r.order_columns.includes(a.id)?a.id:`${a.id}.id`,order_direction:a.desc?"desc":"asc"})},[r==null?void 0:r.order_columns,t,n]);return{manualSorting:!0,state:{sorting:n},onSortingChange:s}}function gC(...e){const[t,r]=x.useState(!1),n={variant:"transparent",size:"md",c:"gray"},s=h.useProps("ActionIcon",n,e);return l.jsxs(l.Fragment,{children:[l.jsx(h.Tooltip,{label:"Add Item",children:l.jsx(h.ActionIcon,{variant:s.variant,size:s.size,c:s.c,className:"filterButton",onClick:()=>{r(!0)},children:l.jsx(Zr,{})})}),l.jsx(ms,{opened:t,onClose:()=>{r(!1)}})]})}function yC(...e){const[t,r]=x.useState(!1),{download:n}=fe(),s={variant:"transparent",size:"md",c:"gray"},o=h.useProps("ActionIcon",s,e);return t?l.jsx(h.ThemeIcon,{variant:"transparent",size:o.size,c:o.c,children:l.jsx(h.Loader,{size:"100%",color:o.c})}):l.jsx(h.Tooltip,{label:"Download",children:l.jsx(h.ActionIcon,{variant:o.variant,size:o.size,c:o.c,className:"filterButton",onClick:()=>{r(!0),n("download").then(()=>r(!1))},children:l.jsx(ii,{})})})}function bC(...e){const[t,r]=x.useState(!1),{queryParams:n,setQueryParams:s,data:o}=fe(),i={variant:"transparent",size:"md",c:"gray"},a=h.useProps("ActionIcon",i,e);return x.useEffect(()=>{t&&r(!1)},[o]),t?l.jsx(h.ThemeIcon,{variant:"transparent",size:a.size,c:a.c,children:l.jsx(h.Loader,{size:"100%",color:a.c})}):l.jsx(h.Tooltip,{label:"Refresh",children:l.jsx(h.ActionIcon,{variant:a.variant,size:a.size,c:a.c,className:"filterButton",onClick:()=>{r(!0),s(n)},children:l.jsx(qf,{})})})}function vC(e,t,r,n,s,o){const{info:i,queryParams:a,setQueryParams:u}=fe(),c=x.useMemo(()=>e?[{label:"All",value:"[]"},...e.map(m=>({label:m.name,value:JSON.stringify(m.value)}))]:[],[e]),d=x.useMemo(()=>l.jsx(h.SegmentedControl,{value:JSON.stringify((a==null?void 0:a.filters)||[]),onChange:m=>u({filters:JSON.parse(m)}),data:c}),[a==null?void 0:a.filters,c,u]),f=x.useMemo(()=>{const m={};return Object.entries(t||{}).forEach(([y,v])=>{m[y]=v,typeof m[y]=="function"&&(m[y]=m[y]())}),m},[t]);return{renderTopToolbarCustomActions:()=>l.jsx(h.Group,{justify:"space-between",children:d&&l.jsx(h.Box,{children:d})}),renderToolbarInternalActions:({table:m})=>l.jsxs(h.Flex,{gap:"0.125rem",align:"center",children:[f.toggleGlobalFilter===null?null:f.toggleGlobalFilter||l.jsx(It.MRT_ToggleGlobalFilterButton,{table:m}),n||f.filter===null?null:f.filter||l.jsx(It.MRT_ToggleFiltersButton,{table:m}),i!=null&&i.permissions.includes("can_download")&&!o?f.download===null?null:f.download||l.jsx(yC,{}):null,i!=null&&i.permissions.includes("can_post")&&!s?f.add===null?null:f.add||l.jsx(gC,{}):null,f.refresh===null?null:f.refresh||l.jsx(bC,{}),f.showHideColumns===null?null:f.showHideColumns||l.jsx(It.MRT_ShowHideColumnsButton,{table:m}),f.toggleDensePadding===null?null:f.toggleDensePadding||l.jsx(It.MRT_ToggleDensePaddingButton,{table:m}),f.toggleFullScreen===null?null:f.toggleFullScreen||l.jsx(It.MRT_ToggleFullScreenButton,{table:m})]}),enableTopToolbar:!r,enableFilters:!n}}function xC(){const{data:e}=fe();return x.useMemo(()=>(e==null?void 0:e.result.length)>=1e3,[e])?{enableRowVirtualization:!0,rowVirtualizerOptions:{overscan:5}}:{}}const TC={enableStickyHeader:!0,enableColumnPinning:!0},gc=x.forwardRef((e,t)=>{var X;const{data:r,setQueryParams:n,specialKey:s}=fe(),{fetchOnMount:o=!0,headerCustomizer:i,bodyCustomizer:a,toolbarCustomizer:u,hideToolbar:c,hideFilter:d,hideAdd:f,hideDownload:p,hideActions:m,hidePagination:y,hideError:v,onSelectCheckbox:b,onClickEntry:E,bulkActions:P,table:O,quickFilters:A,withBorder:_,columnProps:$,header:F,body:H,textFilterSeparator:Q=";",bodySeparator:g,bodyTruncate:j,...R}=e;g&&(console.warn("bodySeparator is deprecated, please use body.[col].separator instead"),Object.keys(H).forEach(N=>{H[N]=H[N]||{},H[N].separator=H[N].separator||g})),j&&(console.warn("bodyTruncate is deprecated, please use body.[col].truncate instead"),Object.keys(H).forEach(N=>{H[N]=H[N]||{},H[N].truncate=H[N].truncate||j})),i&&(console.warn("headerCustomizer is deprecated, please use header.[col].component instead"),Object.keys(i).forEach(N=>{F[N]=F[N]||{},F[N].component=i[N].component||i[N]})),a&&(console.warn("bodyCustomizer is deprecated, please use body.[col].component instead"),Object.keys(a).forEach(N=>{H[N]=H[N]||{},H[N].component=a[N].component||a[N]}));const Z=cC(),ne=mC(),ce=pC(y),ge=uC($,F,H,Q),V=hC(_),ee=ZE(m,(X=Ir(H,s.actions))==null?void 0:X.component),se=dC(),C=xC(),k=vC(A,u,c,d,f,p),q=fC(E),z=QE(b,P),Y=x.useMemo(()=>go(TC,{mantinePaperProps:{ref:t}},ge,Z,ne,ce,V,ee,se,C,k,q,z,O),[t,ge,Z,ne,ce,V,ee,se,C,k,q,z,O]),B=It.useMantineReactTable(Y);return x.useEffect(()=>{!r&&o&&n({})},[r]),x.useEffect(()=>{const N=Object.keys(B.getState().rowSelection),te=r==null?void 0:r.ids.filter((ie,oe)=>N.includes(oe.toString()));b==null||b(te),P==null||P.setSelectedIds(te)},[P,r==null?void 0:r.ids,B.getState().rowSelection,b]),l.jsxs(l.Fragment,{children:[l.jsx(It.MantineReactTable,{table:B,...R}),v?null:l.jsx(ui,{})]})});gc.displayName="NextGenDataGrid";const vo={iconSmall:"_iconSmall_sxv3z_1",iconLarge:"_iconLarge_sxv3z_6",btn:"_btn_sxv3z_17"};function SC({basePath:e="/security",Target:t,children:r}){const n=Pt.useNavigate(),{user:s,signout:o}=ri(),[i,a]=x.useState(!1),c=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:Jf},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:Gf},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:ai},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:ai},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:Bf}].filter(d=>s.permissions.includes(d.name));return l.jsxs(h.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:i,onClose:()=>a(!1),onOpen:()=>a(!0),children:[l.jsx(h.Menu.Target,{children:t||l.jsx(h.UnstyledButton,{className:vo.btn,style:{borderRadius:4},p:"xs",children:l.jsxs(h.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[l.jsx(h.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${s.first_name} ${s.last_name}`}),l.jsx(cs,{size:12})]})})}),l.jsxs(h.Menu.Dropdown,{children:[c.length?l.jsxs(l.Fragment,{children:[l.jsx(h.Menu.Label,{children:"Security"}),c.map((d,f)=>l.jsx(h.Menu.Item,{p:12,leftSection:l.jsx(d.Icon,{className:vo.iconSmall}),onClick:()=>n(d.resource_name),children:d.label},f)),l.jsx(h.Menu.Divider,{})]}):null,r,l.jsx(h.Menu.Item,{leftSection:l.jsx(Hf,{p:12,className:vo.iconSmall}),onClick:o,children:"Logout"})]})]})}I.Actions=hs,I.Add=yi,I.AddDialog=ms,I.ApiProvider=si,I.DataGrid=ws,I.Delete=ci,I.DeleteDialog=Vu,I.Edit=gi,I.EditDialog=mi,I.Filter=Ui,I.FilterMenu=Bi,I.InfiniteScroll=Rd,I.MantineArrayControlRenderer=Gu,I.MantineBooleanCell=Za,I.MantineBooleanControl=oc,I.MantineDateCell=el,I.MantineDateControl=Ju,I.MantineDateTimeCell=rl,I.MantineDateTimeControl=Xu,I.MantineEnumArrayRenderer=Yu,I.MantineEnumCell=sl,I.MantineEnumControl=ac,I.MantineHorizontalLayoutRenderer=uc,I.MantineIntegerCell=qa,I.MantineIntegerControl=tc,I.MantineLayoutRenderer=Ds,I.MantineNumberCell=Ha,I.MantineNumberControl=Qu,I.MantineTableControl=Uu,I.MantineTextCell=Ka,I.MantineTextControl=nc,I.MantineVerticalLayoutRenderer=fc,I.NextGenDataGrid=gc,I.NoBorderTableCell=ur,I.NonEmptyRow=Bu,I.Provider=If,I.UserMenu=SC,I.mantineArrayControlTester=Wu,I.mantineBooleanCellTester=Xa,I.mantineBooleanControlTester=sc,I.mantineCells=XE,I.mantineDateCellTester=Qa,I.mantineDateControlTester=qu,I.mantineDateTimeCellTester=tl,I.mantineDateTimeControlTester=Ku,I.mantineEnumArrayRendererTester=Hu,I.mantineEnumCellTester=nl,I.mantineEnumControlTester=ic,I.mantineHorizontalLayoutTester=lc,I.mantineIntegerCellTester=Ya,I.mantineIntegerControlTester=ec,I.mantineNumberCellTester=Ga,I.mantineNumberControlTester=Zu,I.mantineRenderers=KE,I.mantineTextCellTester=Ja,I.mantineTextControlTester=rc,I.mantineVerticalLayoutTester=cc,I.renderLayoutElements=fa,I.useApi=fe,I.useAuth=ri,I.useAuthenticate=Co,I.useBulkActions=Rf,I.useCustomFetch=zr,I.useDebouncedChange=ya,I.useGetList=Ao,I.useInfo=ni,I.useInfo_=ei,I.withAjvProps=Dm,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});