formmorf-builder 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +229 -0
  3. package/dist/FormBuilder/ComponentPanel.d.ts +4 -0
  4. package/dist/FormBuilder/ComponentPanel.d.ts.map +1 -0
  5. package/dist/FormBuilder/ConditionalSettingsModal.d.ts +10 -0
  6. package/dist/FormBuilder/ConditionalSettingsModal.d.ts.map +1 -0
  7. package/dist/FormBuilder/DevicePreviewSwitcher.d.ts +4 -0
  8. package/dist/FormBuilder/DevicePreviewSwitcher.d.ts.map +1 -0
  9. package/dist/FormBuilder/DndWrapper.d.ts +14 -0
  10. package/dist/FormBuilder/DndWrapper.d.ts.map +1 -0
  11. package/dist/FormBuilder/DraggableField.d.ts +11 -0
  12. package/dist/FormBuilder/DraggableField.d.ts.map +1 -0
  13. package/dist/FormBuilder/DropIndicator.d.ts +10 -0
  14. package/dist/FormBuilder/DropIndicator.d.ts.map +1 -0
  15. package/dist/FormBuilder/FieldRenderer.d.ts +5 -0
  16. package/dist/FormBuilder/FieldRenderer.d.ts.map +1 -0
  17. package/dist/FormBuilder/FormBuilder.d.ts +12 -0
  18. package/dist/FormBuilder/FormBuilder.d.ts.map +1 -0
  19. package/dist/FormBuilder/FormCanvas.d.ts +4 -0
  20. package/dist/FormBuilder/FormCanvas.d.ts.map +1 -0
  21. package/dist/FormBuilder/FormPreview.d.ts +9 -0
  22. package/dist/FormBuilder/FormPreview.d.ts.map +1 -0
  23. package/dist/FormBuilder/FormPropertiesTab.d.ts +4 -0
  24. package/dist/FormBuilder/FormPropertiesTab.d.ts.map +1 -0
  25. package/dist/FormBuilder/IconRenderer.d.ts +11 -0
  26. package/dist/FormBuilder/IconRenderer.d.ts.map +1 -0
  27. package/dist/FormBuilder/PreviewModal.d.ts +9 -0
  28. package/dist/FormBuilder/PreviewModal.d.ts.map +1 -0
  29. package/dist/FormBuilder/PropertiesPanel.d.ts +4 -0
  30. package/dist/FormBuilder/PropertiesPanel.d.ts.map +1 -0
  31. package/dist/FormBuilder/SortableField.d.ts +10 -0
  32. package/dist/FormBuilder/SortableField.d.ts.map +1 -0
  33. package/dist/FormBuilder/Toolbar.d.ts +9 -0
  34. package/dist/FormBuilder/Toolbar.d.ts.map +1 -0
  35. package/dist/FormBuilder/index.d.ts +14 -0
  36. package/dist/FormBuilder/index.d.ts.map +1 -0
  37. package/dist/FormViewer/FieldRenderer.d.ts +15 -0
  38. package/dist/FormViewer/FieldRenderer.d.ts.map +1 -0
  39. package/dist/FormViewer/Fields/AlertField.d.ts +11 -0
  40. package/dist/FormViewer/Fields/AlertField.d.ts.map +1 -0
  41. package/dist/FormViewer/Fields/CheckboxField.d.ts +9 -0
  42. package/dist/FormViewer/Fields/CheckboxField.d.ts.map +1 -0
  43. package/dist/FormViewer/Fields/ColorField.d.ts +5 -0
  44. package/dist/FormViewer/Fields/ColorField.d.ts.map +1 -0
  45. package/dist/FormViewer/Fields/DateRangeField.d.ts +12 -0
  46. package/dist/FormViewer/Fields/DateRangeField.d.ts.map +1 -0
  47. package/dist/FormViewer/Fields/DateTimeField.d.ts +11 -0
  48. package/dist/FormViewer/Fields/DateTimeField.d.ts.map +1 -0
  49. package/dist/FormViewer/Fields/FileField.d.ts +15 -0
  50. package/dist/FormViewer/Fields/FileField.d.ts.map +1 -0
  51. package/dist/FormViewer/Fields/NumberField.d.ts +12 -0
  52. package/dist/FormViewer/Fields/NumberField.d.ts.map +1 -0
  53. package/dist/FormViewer/Fields/RadioField.d.ts +9 -0
  54. package/dist/FormViewer/Fields/RadioField.d.ts.map +1 -0
  55. package/dist/FormViewer/Fields/RangeField.d.ts +13 -0
  56. package/dist/FormViewer/Fields/RangeField.d.ts.map +1 -0
  57. package/dist/FormViewer/Fields/RatingField.d.ts +12 -0
  58. package/dist/FormViewer/Fields/RatingField.d.ts.map +1 -0
  59. package/dist/FormViewer/Fields/RichTextField.d.ts +10 -0
  60. package/dist/FormViewer/Fields/RichTextField.d.ts.map +1 -0
  61. package/dist/FormViewer/Fields/SectionField.d.ts +12 -0
  62. package/dist/FormViewer/Fields/SectionField.d.ts.map +1 -0
  63. package/dist/FormViewer/Fields/SelectField.d.ts +10 -0
  64. package/dist/FormViewer/Fields/SelectField.d.ts.map +1 -0
  65. package/dist/FormViewer/Fields/SwitchField.d.ts +5 -0
  66. package/dist/FormViewer/Fields/SwitchField.d.ts.map +1 -0
  67. package/dist/FormViewer/Fields/TextAreaField.d.ts +12 -0
  68. package/dist/FormViewer/Fields/TextAreaField.d.ts.map +1 -0
  69. package/dist/FormViewer/Fields/TextField.d.ts +9 -0
  70. package/dist/FormViewer/Fields/TextField.d.ts.map +1 -0
  71. package/dist/FormViewer/Fields/TimeField.d.ts +10 -0
  72. package/dist/FormViewer/Fields/TimeField.d.ts.map +1 -0
  73. package/dist/FormViewer/Fields/index.d.ts +19 -0
  74. package/dist/FormViewer/Fields/index.d.ts.map +1 -0
  75. package/dist/FormViewer/Fields/types.d.ts +21 -0
  76. package/dist/FormViewer/Fields/types.d.ts.map +1 -0
  77. package/dist/FormViewer/FormViewer.d.ts +16 -0
  78. package/dist/FormViewer/FormViewer.d.ts.map +1 -0
  79. package/dist/FormViewer/index.d.ts +5 -0
  80. package/dist/FormViewer/index.d.ts.map +1 -0
  81. package/dist/config/fieldConfig.d.ts +5 -0
  82. package/dist/config/fieldConfig.d.ts.map +1 -0
  83. package/dist/core/conditions/evaluator.d.ts +19 -0
  84. package/dist/core/conditions/evaluator.d.ts.map +1 -0
  85. package/dist/core/conditions/index.d.ts +2 -0
  86. package/dist/core/conditions/index.d.ts.map +1 -0
  87. package/dist/examples/FormViewerExample.d.ts +4 -0
  88. package/dist/examples/FormViewerExample.d.ts.map +1 -0
  89. package/dist/index.d.ts +12 -0
  90. package/dist/index.d.ts.map +1 -0
  91. package/dist/index.js +220 -0
  92. package/dist/index.mjs +20738 -0
  93. package/dist/store/formStore.d.ts +44 -0
  94. package/dist/store/formStore.d.ts.map +1 -0
  95. package/dist/style.css +1 -0
  96. package/dist/types/index.d.ts +197 -0
  97. package/dist/types/index.d.ts.map +1 -0
  98. package/dist/utils/validation.d.ts +19 -0
  99. package/dist/utils/validation.d.ts.map +1 -0
  100. package/package.json +67 -0
package/dist/index.js ADDED
@@ -0,0 +1,220 @@
1
+ "use strict";var id=Object.defineProperty;var ad=(e,t,r)=>t in e?id(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pn=(e,t,r)=>ad(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react"),Gt=require("react-dom");function Vl(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 I=Vl(E),sd=Vl(Gt);function ld(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zi={exports:{}},hn={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var ls;function cd(){if(ls)return hn;ls=1;var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,d){var f,h={},m=null,g=null;d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(f in c)n.call(c,f)&&!i.hasOwnProperty(f)&&(h[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)h[f]===void 0&&(h[f]=c[f]);return{$$typeof:t,type:l,key:m,ref:g,props:h,_owner:o.current}}return hn.Fragment=r,hn.jsx=a,hn.jsxs=a,hn}var mn={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var cs;function ud(){return cs||(cs=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=Symbol.iterator,p="@@iterator";function y(j){if(j===null||typeof j!="object")return null;var V=x&&j[x]||j[p];return typeof V=="function"?V:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(j){{for(var V=arguments.length,J=new Array(V>1?V-1:0),ie=1;ie<V;ie++)J[ie-1]=arguments[ie];R("error",j,J)}}function R(j,V,J){{var ie=S.ReactDebugCurrentFrame,he=ie.getStackAddendum();he!==""&&(V+="%s",J=J.concat([he]));var Ce=J.map(function(ce){return String(ce)});Ce.unshift("Warning: "+V),Function.prototype.apply.call(console[j],console,Ce)}}var w=!1,C=!1,T=!1,N=!1,$=!1,D;D=Symbol.for("react.module.reference");function M(j){return!!(typeof j=="string"||typeof j=="function"||j===n||j===i||$||j===o||j===d||j===f||N||j===g||w||C||T||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===h||j.$$typeof===a||j.$$typeof===l||j.$$typeof===c||j.$$typeof===D||j.getModuleId!==void 0))}function L(j,V,J){var ie=j.displayName;if(ie)return ie;var he=V.displayName||V.name||"";return he!==""?J+"("+he+")":J}function v(j){return j.displayName||"Context"}function k(j){if(j==null)return null;if(typeof j.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof j=="object")switch(j.$$typeof){case l:var V=j;return v(V)+".Consumer";case a:var J=j;return v(J._context)+".Provider";case c:return L(j,j.render,"ForwardRef");case h:var ie=j.displayName||null;return ie!==null?ie:k(j.type)||"Memo";case m:{var he=j,Ce=he._payload,ce=he._init;try{return k(ce(Ce))}catch{return null}}}return null}var _=Object.assign,P=0,z,B,q,U,O,F,W;function X(){}X.__reactDisabledLog=!0;function Y(){{if(P===0){z=console.log,B=console.info,q=console.warn,U=console.error,O=console.group,F=console.groupCollapsed,W=console.groupEnd;var j={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:j,log:j,warn:j,error:j,group:j,groupCollapsed:j,groupEnd:j})}P++}}function Z(){{if(P--,P===0){var j={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},j,{value:z}),info:_({},j,{value:B}),warn:_({},j,{value:q}),error:_({},j,{value:U}),group:_({},j,{value:O}),groupCollapsed:_({},j,{value:F}),groupEnd:_({},j,{value:W})})}P<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=S.ReactCurrentDispatcher,Q;function te(j,V,J){{if(Q===void 0)try{throw Error()}catch(he){var ie=he.stack.trim().match(/\n( *(at )?)/);Q=ie&&ie[1]||""}return`
18
+ `+Q+j}}var oe=!1,G;{var de=typeof WeakMap=="function"?WeakMap:Map;G=new de}function H(j,V){if(!j||oe)return"";{var J=G.get(j);if(J!==void 0)return J}var ie;oe=!0;var he=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ce;Ce=K.current,K.current=null,Y();try{if(V){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ct){ie=ct}Reflect.construct(j,[],ce)}else{try{ce.call()}catch(ct){ie=ct}j.call(ce.prototype)}}else{try{throw Error()}catch(ct){ie=ct}j()}}catch(ct){if(ct&&ie&&typeof ct.stack=="string"){for(var se=ct.stack.split(`
19
+ `),at=ie.stack.split(`
20
+ `),_e=se.length-1,Fe=at.length-1;_e>=1&&Fe>=0&&se[_e]!==at[Fe];)Fe--;for(;_e>=1&&Fe>=0;_e--,Fe--)if(se[_e]!==at[Fe]){if(_e!==1||Fe!==1)do if(_e--,Fe--,Fe<0||se[_e]!==at[Fe]){var St=`
21
+ `+se[_e].replace(" at new "," at ");return j.displayName&&St.includes("<anonymous>")&&(St=St.replace("<anonymous>",j.displayName)),typeof j=="function"&&G.set(j,St),St}while(_e>=1&&Fe>=0);break}}}finally{oe=!1,K.current=Ce,Z(),Error.prepareStackTrace=he}var Fr=j?j.displayName||j.name:"",wr=Fr?te(Fr):"";return typeof j=="function"&&G.set(j,wr),wr}function xe(j,V,J){return H(j,!1)}function we(j){var V=j.prototype;return!!(V&&V.isReactComponent)}function ke(j,V,J){if(j==null)return"";if(typeof j=="function")return H(j,we(j));if(typeof j=="string")return te(j);switch(j){case d:return te("Suspense");case f:return te("SuspenseList")}if(typeof j=="object")switch(j.$$typeof){case c:return xe(j.render);case h:return ke(j.type,V,J);case m:{var ie=j,he=ie._payload,Ce=ie._init;try{return ke(Ce(he),V,J)}catch{}}}return""}var Le=Object.prototype.hasOwnProperty,Ue={},qe=S.ReactDebugCurrentFrame;function et(j){if(j){var V=j._owner,J=ke(j.type,j._source,V?V.type:null);qe.setExtraStackFrame(J)}else qe.setExtraStackFrame(null)}function Re(j,V,J,ie,he){{var Ce=Function.call.bind(Le);for(var ce in j)if(Ce(j,ce)){var se=void 0;try{if(typeof j[ce]!="function"){var at=Error((ie||"React class")+": "+J+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof j[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw at.name="Invariant Violation",at}se=j[ce](V,ce,ie,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){se=_e}se&&!(se instanceof Error)&&(et(he),b("%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).",ie||"React class",J,ce,typeof se),et(null)),se instanceof Error&&!(se.message in Ue)&&(Ue[se.message]=!0,et(he),b("Failed %s type: %s",J,se.message),et(null))}}}var tt=Array.isArray;function ne(j){return tt(j)}function Ft(j){{var V=typeof Symbol=="function"&&Symbol.toStringTag,J=V&&j[Symbol.toStringTag]||j.constructor.name||"Object";return J}}function zt(j){try{return Zt(j),!1}catch{return!0}}function Zt(j){return""+j}function er(j){if(zt(j))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ft(j)),Zt(j)}var rt=S.ReactCurrentOwner,ht={key:!0,ref:!0,__self:!0,__source:!0},lt,tr;function $e(j){if(Le.call(j,"ref")){var V=Object.getOwnPropertyDescriptor(j,"ref").get;if(V&&V.isReactWarning)return!1}return j.ref!==void 0}function Bt(j){if(Le.call(j,"key")){var V=Object.getOwnPropertyDescriptor(j,"key").get;if(V&&V.isReactWarning)return!1}return j.key!==void 0}function $t(j,V){typeof j.ref=="string"&&rt.current}function it(j,V){{var J=function(){lt||(lt=!0,b("%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)",V))};J.isReactWarning=!0,Object.defineProperty(j,"key",{get:J,configurable:!0})}}function vr(j,V){{var J=function(){tr||(tr=!0,b("%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)",V))};J.isReactWarning=!0,Object.defineProperty(j,"ref",{get:J,configurable:!0})}}var cr=function(j,V,J,ie,he,Ce,ce){var se={$$typeof:t,type:j,key:V,ref:J,props:ce,_owner:Ce};return se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se};function fn(j,V,J,ie,he){{var Ce,ce={},se=null,at=null;J!==void 0&&(er(J),se=""+J),Bt(V)&&(er(V.key),se=""+V.key),$e(V)&&(at=V.ref,$t(V,he));for(Ce in V)Le.call(V,Ce)&&!ht.hasOwnProperty(Ce)&&(ce[Ce]=V[Ce]);if(j&&j.defaultProps){var _e=j.defaultProps;for(Ce in _e)ce[Ce]===void 0&&(ce[Ce]=_e[Ce])}if(se||at){var Fe=typeof j=="function"?j.displayName||j.name||"Unknown":j;se&&it(ce,Fe),at&&vr(ce,Fe)}return cr(j,se,at,he,ie,rt.current,ce)}}var Pt=S.ReactCurrentOwner,Lr=S.ReactDebugCurrentFrame;function Vt(j){if(j){var V=j._owner,J=ke(j.type,j._source,V?V.type:null);Lr.setExtraStackFrame(J)}else Lr.setExtraStackFrame(null)}var yr;yr=!1;function Pe(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function Ye(){{if(Pt.current){var j=k(Pt.current.type);if(j)return`
22
+
23
+ Check the render method of \``+j+"`."}return""}}function Xe(j){return""}var mt={};function nt(j){{var V=Ye();if(!V){var J=typeof j=="string"?j:j.displayName||j.name;J&&(V=`
24
+
25
+ Check the top-level render call using <`+J+">.")}return V}}function re(j,V){{if(!j._store||j._store.validated||j.key!=null)return;j._store.validated=!0;var J=nt(V);if(mt[J])return;mt[J]=!0;var ie="";j&&j._owner&&j._owner!==Pt.current&&(ie=" It was passed a child from "+k(j._owner.type)+"."),Vt(j),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ie),Vt(null)}}function je(j,V){{if(typeof j!="object")return;if(ne(j))for(var J=0;J<j.length;J++){var ie=j[J];Pe(ie)&&re(ie,V)}else if(Pe(j))j._store&&(j._store.validated=!0);else if(j){var he=y(j);if(typeof he=="function"&&he!==j.entries)for(var Ce=he.call(j),ce;!(ce=Ce.next()).done;)Pe(ce.value)&&re(ce.value,V)}}}function Dt(j){{var V=j.type;if(V==null||typeof V=="string")return;var J;if(typeof V=="function")J=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===c||V.$$typeof===h))J=V.propTypes;else return;if(J){var ie=k(V);Re(J,j.props,"prop",ie,j)}else if(V.PropTypes!==void 0&&!yr){yr=!0;var he=k(V);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",he||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ve(j){{for(var V=Object.keys(j.props),J=0;J<V.length;J++){var ie=V[J];if(ie!=="children"&&ie!=="key"){Vt(j),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),Vt(null);break}}j.ref!==null&&(Vt(j),b("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}var Mt={};function gt(j,V,J,ie,he,Ce){{var ce=M(j);if(!ce){var se="";(j===void 0||typeof j=="object"&&j!==null&&Object.keys(j).length===0)&&(se+=" 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 at=Xe();at?se+=at:se+=Ye();var _e;j===null?_e="null":ne(j)?_e="array":j!==void 0&&j.$$typeof===t?(_e="<"+(k(j.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof j,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,se)}var Fe=fn(j,V,J,he,Ce);if(Fe==null)return Fe;if(ce){var St=V.children;if(St!==void 0)if(ie)if(ne(St)){for(var Fr=0;Fr<St.length;Fr++)je(St[Fr],j);Object.freeze&&Object.freeze(St)}else b("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 je(St,j)}if(Le.call(V,"key")){var wr=k(j),ct=Object.keys(V).filter(function(od){return od!=="key"}),wi=ct.length>0?"{key: someKey, "+ct.join(": ..., ")+": ...}":"{key: someKey}";if(!Mt[wr+wi]){var nd=ct.length>0?"{"+ct.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,wi,wr,nd,wr),Mt[wr+wi]=!0}}return j===n?Ve(Fe):Dt(Fe),Fe}}function It(j,V,J){return gt(j,V,J,!0)}function br(j,V,J){return gt(j,V,J,!1)}var xr=br,Ht=It;mn.Fragment=n,mn.jsx=xr,mn.jsxs=Ht}()),mn}process.env.NODE_ENV==="production"?zi.exports=cd():zi.exports=ud();var s=zi.exports;function dd(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return E.useMemo(()=>n=>{t.forEach(o=>o(n))},t)}const Uo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ln(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ya(e){return"nodeType"in e}function st(e){var t,r;return e?ln(e)?e:ya(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function ba(e){const{Document:t}=st(e);return e instanceof t}function qn(e){return ln(e)?!1:e instanceof st(e).HTMLElement}function Hl(e){return e instanceof st(e).SVGElement}function cn(e){return e?ln(e)?e.document:ya(e)?ba(e)?e:qn(e)||Hl(e)?e.ownerDocument:document:document:document}const At=Uo?E.useLayoutEffect:E.useEffect;function qo(e){const t=E.useRef(e);return At(()=>{t.current=e}),E.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}function fd(){const e=E.useRef(null),t=E.useCallback((n,o)=>{e.current=setInterval(n,o)},[]),r=E.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function kn(e,t){t===void 0&&(t=[e]);const r=E.useRef(e);return At(()=>{r.current!==e&&(r.current=e)},t),r}function Yn(e,t){const r=E.useRef();return E.useMemo(()=>{const n=e(r.current);return r.current=n,n},[...t])}function So(e){const t=qo(e),r=E.useRef(null),n=E.useCallback(o=>{o!==r.current&&(t==null||t(o,r.current)),r.current=o},[]);return[r,n]}function Eo(e){const t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}let Si={};function Gn(e,t){return E.useMemo(()=>{if(t)return t;const r=Si[e]==null?0:Si[e]+1;return Si[e]=r,e+"-"+r},[e,t])}function Wl(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.reduce((i,a)=>{const l=Object.entries(a);for(const[c,d]of l){const f=i[c];f!=null&&(i[c]=f+e*d)}return i},{...t})}}const Kr=Wl(1),$n=Wl(-1);function pd(e){return"clientX"in e&&"clientY"in e}function Yo(e){if(!e)return!1;const{KeyboardEvent:t}=st(e.target);return t&&e instanceof t}function hd(e){if(!e)return!1;const{TouchEvent:t}=st(e.target);return t&&e instanceof t}function Co(e){if(hd(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return pd(e)?{x:e.clientX,y:e.clientY}:null}const ir=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[ir.Translate.toString(e),ir.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),us="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function md(e){return e.matches(us)?e:e.querySelector(us)}const gd={display:"none"};function vd(e){let{id:t,value:r}=e;return E.createElement("div",{id:t,style:gd},r)}function yd(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return E.createElement("div",{id:t,style:o,role:"status","aria-live":n,"aria-atomic":!0},r)}function bd(){const[e,t]=E.useState("");return{announce:E.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const Ul=E.createContext(null);function ql(e){const t=E.useContext(Ul);E.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function xd(){const[e]=E.useState(()=>new Set),t=E.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[E.useCallback(n=>{let{type:o,event:i}=n;e.forEach(a=>{var l;return(l=a[o])==null?void 0:l.call(a,i)})},[e]),t]}const wd={draggable:`
31
+ To pick up a draggable item, press the space bar.
32
+ While dragging, use the arrow keys to move the item.
33
+ Press space again to drop the item in its new position, or press escape to cancel.
34
+ `},Sd={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Ed(e){let{announcements:t=Sd,container:r,hiddenTextDescribedById:n,screenReaderInstructions:o=wd}=e;const{announce:i,announcement:a}=bd(),l=Gn("DndLiveRegion"),[c,d]=E.useState(!1);if(E.useEffect(()=>{d(!0)},[]),ql(E.useMemo(()=>({onDragStart(h){let{active:m}=h;i(t.onDragStart({active:m}))},onDragMove(h){let{active:m,over:g}=h;t.onDragMove&&i(t.onDragMove({active:m,over:g}))},onDragOver(h){let{active:m,over:g}=h;i(t.onDragOver({active:m,over:g}))},onDragEnd(h){let{active:m,over:g}=h;i(t.onDragEnd({active:m,over:g}))},onDragCancel(h){let{active:m,over:g}=h;i(t.onDragCancel({active:m,over:g}))}}),[i,t])),!c)return null;const f=E.createElement(E.Fragment,null,E.createElement(vd,{id:n,value:o.draggable}),E.createElement(yd,{id:l,announcement:a}));return r?Gt.createPortal(f,r):f}var He;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(He||(He={}));function jo(){}function ds(e,t){return E.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Cd(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return E.useMemo(()=>[...t].filter(n=>n!=null),[...t])}const Lt=Object.freeze({x:0,y:0});function Yl(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function jd(e,t){const r=Co(e);if(!r)return"0 0";const n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}function Gl(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function Td(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function fs(e){let{left:t,top:r,height:n,width:o}=e;return[{x:t,y:r},{x:t+o,y:r},{x:t,y:r+n},{x:t+o,y:r+n}]}function Kl(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}function ps(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const Rd=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const o=ps(t,t.left,t.top),i=[];for(const a of n){const{id:l}=a,c=r.get(l);if(c){const d=Yl(ps(c),o);i.push({id:l,data:{droppableContainer:a,value:d}})}}return i.sort(Gl)},Nd=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const o=fs(t),i=[];for(const a of n){const{id:l}=a,c=r.get(l);if(c){const d=fs(c),f=o.reduce((m,g,x)=>m+Yl(d[x],g),0),h=Number((f/4).toFixed(4));i.push({id:l,data:{droppableContainer:a,value:h}})}}return i.sort(Gl)};function Od(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,l=i-r;if(n<o&&r<i){const c=t.width*t.height,d=e.width*e.height,f=a*l,h=f/(c+d-f);return Number(h.toFixed(4))}return 0}const kd=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const o=[];for(const i of n){const{id:a}=i,l=r.get(a);if(l){const c=Od(l,t);c>0&&o.push({id:a,data:{droppableContainer:i,value:c}})}}return o.sort(Td)};function $d(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function Xl(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Lt}function Pd(e){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce((a,l)=>({...a,top:a.top+e*l.y,bottom:a.bottom+e*l.y,left:a.left+e*l.x,right:a.right+e*l.x}),{...r})}}const Dd=Pd(1);function Jl(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Md(e,t,r){const n=Jl(t);if(!n)return e;const{scaleX:o,scaleY:i,x:a,y:l}=n,c=e.left-a-(1-o)*parseFloat(r),d=e.top-l-(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),f=o?e.width/o:e.width,h=i?e.height/i:e.height;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c}}const Id={ignoreTransform:!1};function un(e,t){t===void 0&&(t=Id);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:f}=st(e).getComputedStyle(e);d&&(r=Md(r,d,f))}const{top:n,left:o,width:i,height:a,bottom:l,right:c}=r;return{top:n,left:o,width:i,height:a,bottom:l,right:c}}function hs(e){return un(e,{ignoreTransform:!0})}function _d(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function Ad(e,t){return t===void 0&&(t=st(e).getComputedStyle(e)),t.position==="fixed"}function Ld(e,t){t===void 0&&(t=st(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?r.test(i):!1})}function Go(e,t){const r=[];function n(o){if(t!=null&&r.length>=t||!o)return r;if(ba(o)&&o.scrollingElement!=null&&!r.includes(o.scrollingElement))return r.push(o.scrollingElement),r;if(!qn(o)||Hl(o)||r.includes(o))return r;const i=st(e).getComputedStyle(o);return o!==e&&Ld(o,i)&&r.push(o),Ad(o,i)?r:n(o.parentNode)}return e?n(e):r}function Ql(e){const[t]=Go(e,1);return t??null}function Ei(e){return!Uo||!e?null:ln(e)?e:ya(e)?ba(e)||e===cn(e).scrollingElement?window:qn(e)?e:null:null}function Zl(e){return ln(e)?e.scrollX:e.scrollLeft}function ec(e){return ln(e)?e.scrollY:e.scrollTop}function Bi(e){return{x:Zl(e),y:ec(e)}}var Ge;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ge||(Ge={}));function tc(e){return!Uo||!e?!1:e===document.scrollingElement}function rc(e){const t={x:0,y:0},r=tc(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=n.y,l=e.scrollLeft>=n.x;return{isTop:o,isLeft:i,isBottom:a,isRight:l,maxScroll:n,minScroll:t}}const Fd={x:.2,y:.2};function zd(e,t,r,n,o){let{top:i,left:a,right:l,bottom:c}=r;n===void 0&&(n=10),o===void 0&&(o=Fd);const{isTop:d,isBottom:f,isLeft:h,isRight:m}=rc(e),g={x:0,y:0},x={x:0,y:0},p={height:t.height*o.y,width:t.width*o.x};return!d&&i<=t.top+p.height?(g.y=Ge.Backward,x.y=n*Math.abs((t.top+p.height-i)/p.height)):!f&&c>=t.bottom-p.height&&(g.y=Ge.Forward,x.y=n*Math.abs((t.bottom-p.height-c)/p.height)),!m&&l>=t.right-p.width?(g.x=Ge.Forward,x.x=n*Math.abs((t.right-p.width-l)/p.width)):!h&&a<=t.left+p.width&&(g.x=Ge.Backward,x.x=n*Math.abs((t.left+p.width-a)/p.width)),{direction:g,speed:x}}function Bd(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:r,right:n,bottom:o}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:o,width:e.clientWidth,height:e.clientHeight}}function nc(e){return e.reduce((t,r)=>Kr(t,Bi(r)),Lt)}function Vd(e){return e.reduce((t,r)=>t+Zl(r),0)}function Hd(e){return e.reduce((t,r)=>t+ec(r),0)}function oc(e,t){if(t===void 0&&(t=un),!e)return;const{top:r,left:n,bottom:o,right:i}=t(e);Ql(e)&&(o<=0||i<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Wd=[["x",["left","right"],Vd],["y",["top","bottom"],Hd]];class xa{constructor(t,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Go(r),o=nc(n);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,l]of Wd)for(const c of a)Object.defineProperty(this,c,{get:()=>{const d=l(n),f=o[i]-d;return this.rect[c]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class En{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...r)})},this.target=t}add(t,r,n){var o;(o=this.target)==null||o.addEventListener(t,r,n),this.listeners.push([t,r,n])}}function Ud(e){const{EventTarget:t}=st(e);return e instanceof t?e:cn(e)}function Ci(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t?n>t.y:!1}var Et;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Et||(Et={}));function ms(e){e.preventDefault()}function qd(e){e.stopPropagation()}var le;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(le||(le={}));const ic={start:[le.Space,le.Enter],cancel:[le.Esc],end:[le.Space,le.Enter,le.Tab]},Yd=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case le.Right:return{...r,x:r.x+25};case le.Left:return{...r,x:r.x-25};case le.Down:return{...r,y:r.y+25};case le.Up:return{...r,y:r.y-25}}};class wa{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new En(cn(r)),this.windowListeners=new En(st(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Et.Resize,this.handleCancel),this.windowListeners.add(Et.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Et.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,n=t.node.current;n&&oc(n),r(Lt)}handleKeyDown(t){if(Yo(t)){const{active:r,context:n,options:o}=this.props,{keyboardCodes:i=ic,coordinateGetter:a=Yd,scrollBehavior:l="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:d}=n.current,f=d?{x:d.left,y:d.top}:Lt;this.referenceCoordinates||(this.referenceCoordinates=f);const h=a(t,{active:r,context:n.current,currentCoordinates:f});if(h){const m=$n(h,f),g={x:0,y:0},{scrollableAncestors:x}=n.current;for(const p of x){const y=t.code,{isTop:S,isRight:b,isLeft:R,isBottom:w,maxScroll:C,minScroll:T}=rc(p),N=Bd(p),$={x:Math.min(y===le.Right?N.right-N.width/2:N.right,Math.max(y===le.Right?N.left:N.left+N.width/2,h.x)),y:Math.min(y===le.Down?N.bottom-N.height/2:N.bottom,Math.max(y===le.Down?N.top:N.top+N.height/2,h.y))},D=y===le.Right&&!b||y===le.Left&&!R,M=y===le.Down&&!w||y===le.Up&&!S;if(D&&$.x!==h.x){const L=p.scrollLeft+m.x,v=y===le.Right&&L<=C.x||y===le.Left&&L>=T.x;if(v&&!m.y){p.scrollTo({left:L,behavior:l});return}v?g.x=p.scrollLeft-L:g.x=y===le.Right?p.scrollLeft-C.x:p.scrollLeft-T.x,g.x&&p.scrollBy({left:-g.x,behavior:l});break}else if(M&&$.y!==h.y){const L=p.scrollTop+m.y,v=y===le.Down&&L<=C.y||y===le.Up&&L>=T.y;if(v&&!m.x){p.scrollTo({top:L,behavior:l});return}v?g.y=p.scrollTop-L:g.y=y===le.Down?p.scrollTop-C.y:p.scrollTop-T.y,g.y&&p.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,Kr($n(h,this.referenceCoordinates),g))}}}handleMove(t,r){const{onMove:n}=this.props;t.preventDefault(),n(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}wa.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=ic,onActivation:o}=t,{active:i}=r;const{code:a}=e.nativeEvent;if(n.start.includes(a)){const l=i.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function gs(e){return!!(e&&"distance"in e)}function vs(e){return!!(e&&"delay"in e)}class Sa{constructor(t,r,n){var o;n===void 0&&(n=Ud(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=r;const{event:i}=t,{target:a}=i;this.props=t,this.events=r,this.document=cn(a),this.documentListeners=new En(this.document),this.listeners=new En(n),this.windowListeners=new En(st(a)),this.initialCoordinates=(o=Co(i))!=null?o:Lt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:r,bypassActivationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Et.Resize,this.handleCancel),this.windowListeners.add(Et.DragStart,ms),this.windowListeners.add(Et.VisibilityChange,this.handleCancel),this.windowListeners.add(Et.ContextMenu,ms),this.documentListeners.add(Et.Keydown,this.handleKeydown),r){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(vs(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(gs(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,r){const{active:n,onPending:o}=this.props;o(n,t,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(Et.Click,qd,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Et.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:n,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:l}}=i;if(!o)return;const c=(r=Co(t))!=null?r:Lt,d=$n(o,c);if(!n&&l){if(gs(l)){if(l.tolerance!=null&&Ci(d,l.tolerance))return this.handleCancel();if(Ci(d,l.distance))return this.handleStart()}if(vs(l)&&Ci(d,l.tolerance))return this.handleCancel();this.handlePending(l,d);return}t.cancelable&&t.preventDefault(),a(c)}handleEnd(){const{onAbort:t,onEnd:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleCancel(){const{onAbort:t,onCancel:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleKeydown(t){t.code===le.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Gd={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ea extends Sa{constructor(t){const{event:r}=t,n=cn(r.target);super(t,Gd,n)}}Ea.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!r.isPrimary||r.button!==0?!1:(n==null||n({event:r}),!0)}}];const Kd={move:{name:"mousemove"},end:{name:"mouseup"}};var Vi;(function(e){e[e.RightClick=2]="RightClick"})(Vi||(Vi={}));class Xd extends Sa{constructor(t){super(t,Kd,cn(t.event.target))}}Xd.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button===Vi.RightClick?!1:(n==null||n({event:r}),!0)}}];const ji={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Jd extends Sa{constructor(t){super(t,ji)}static setup(){return window.addEventListener(ji.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(ji.move.name,t)};function t(){}}}Jd.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:o}=r;return o.length>1?!1:(n==null||n({event:r}),!0)}}];var Cn;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Cn||(Cn={}));var To;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(To||(To={}));function Qd(e){let{acceleration:t,activator:r=Cn.Pointer,canScroll:n,draggingRect:o,enabled:i,interval:a=5,order:l=To.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:h,threshold:m}=e;const g=ef({delta:h,disabled:!i}),[x,p]=fd(),y=E.useRef({x:0,y:0}),S=E.useRef({x:0,y:0}),b=E.useMemo(()=>{switch(r){case Cn.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Cn.DraggableRect:return o}},[r,o,c]),R=E.useRef(null),w=E.useCallback(()=>{const T=R.current;if(!T)return;const N=y.current.x*S.current.x,$=y.current.y*S.current.y;T.scrollBy(N,$)},[]),C=E.useMemo(()=>l===To.TreeOrder?[...d].reverse():d,[l,d]);E.useEffect(()=>{if(!i||!d.length||!b){p();return}for(const T of C){if((n==null?void 0:n(T))===!1)continue;const N=d.indexOf(T),$=f[N];if(!$)continue;const{direction:D,speed:M}=zd(T,$,b,t,m);for(const L of["x","y"])g[L][D[L]]||(M[L]=0,D[L]=0);if(M.x>0||M.y>0){p(),R.current=T,x(w,a),y.current=M,S.current=D;return}}y.current={x:0,y:0},S.current={x:0,y:0},p()},[t,w,n,p,i,a,JSON.stringify(b),JSON.stringify(g),x,d,C,f,JSON.stringify(m)])}const Zd={x:{[Ge.Backward]:!1,[Ge.Forward]:!1},y:{[Ge.Backward]:!1,[Ge.Forward]:!1}};function ef(e){let{delta:t,disabled:r}=e;const n=Eo(t);return Yn(o=>{if(r||!n||!o)return Zd;const i={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[Ge.Backward]:o.x[Ge.Backward]||i.x===-1,[Ge.Forward]:o.x[Ge.Forward]||i.x===1},y:{[Ge.Backward]:o.y[Ge.Backward]||i.y===-1,[Ge.Forward]:o.y[Ge.Forward]||i.y===1}}},[r,t,n])}function tf(e,t){const r=t!=null?e.get(t):void 0,n=r?r.node.current:null;return Yn(o=>{var i;return t==null?null:(i=n??o)!=null?i:null},[n,t])}function rf(e,t){return E.useMemo(()=>e.reduce((r,n)=>{const{sensor:o}=n,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,n)}));return[...r,...i]},[]),[e,t])}var Pn;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Pn||(Pn={}));var Hi;(function(e){e.Optimized="optimized"})(Hi||(Hi={}));const ys=new Map;function nf(e,t){let{dragging:r,dependencies:n,config:o}=t;const[i,a]=E.useState(null),{frequency:l,measure:c,strategy:d}=o,f=E.useRef(e),h=y(),m=kn(h),g=E.useCallback(function(S){S===void 0&&(S=[]),!m.current&&a(b=>b===null?S:b.concat(S.filter(R=>!b.includes(R))))},[m]),x=E.useRef(null),p=Yn(S=>{if(h&&!r)return ys;if(!S||S===ys||f.current!==e||i!=null){const b=new Map;for(let R of e){if(!R)continue;if(i&&i.length>0&&!i.includes(R.id)&&R.rect.current){b.set(R.id,R.rect.current);continue}const w=R.node.current,C=w?new xa(c(w),w):null;R.rect.current=C,C&&b.set(R.id,C)}return b}return S},[e,i,r,h,c]);return E.useEffect(()=>{f.current=e},[e]),E.useEffect(()=>{h||g()},[r,h]),E.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),E.useEffect(()=>{h||typeof l!="number"||x.current!==null||(x.current=setTimeout(()=>{g(),x.current=null},l))},[l,h,g,...n]),{droppableRects:p,measureDroppableContainers:g,measuringScheduled:i!=null};function y(){switch(d){case Pn.Always:return!1;case Pn.BeforeDragging:return r;default:return!r}}}function Ca(e,t){return Yn(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function of(e,t){return Ca(e,t)}function af(e){let{callback:t,disabled:r}=e;const n=qo(t),o=E.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(n)},[n,r]);return E.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Ko(e){let{callback:t,disabled:r}=e;const n=qo(t),o=E.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(n)},[r]);return E.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function sf(e){return new xa(un(e),e)}function bs(e,t,r){t===void 0&&(t=sf);const[n,o]=E.useState(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=c??r)!=null?d:null}const f=t(e);return JSON.stringify(c)===JSON.stringify(f)?c:f})}const a=af({callback(c){if(e)for(const d of c){const{type:f,target:h}=d;if(f==="childList"&&h instanceof HTMLElement&&h.contains(e)){i();break}}}}),l=Ko({callback:i});return At(()=>{i(),e?(l==null||l.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),a==null||a.disconnect())},[e]),n}function lf(e){const t=Ca(e);return Xl(e,t)}const xs=[];function cf(e){const t=E.useRef(e),r=Yn(n=>e?n&&n!==xs&&e&&t.current&&e.parentNode===t.current.parentNode?n:Go(e):xs,[e]);return E.useEffect(()=>{t.current=e},[e]),r}function uf(e){const[t,r]=E.useState(null),n=E.useRef(e),o=E.useCallback(i=>{const a=Ei(i.target);a&&r(l=>l?(l.set(a,Bi(a)),new Map(l)):null)},[]);return E.useEffect(()=>{const i=n.current;if(e!==i){a(i);const l=e.map(c=>{const d=Ei(c);return d?(d.addEventListener("scroll",o,{passive:!0}),[d,Bi(d)]):null}).filter(c=>c!=null);r(l.length?new Map(l):null),n.current=e}return()=>{a(e),a(i)};function a(l){l.forEach(c=>{const d=Ei(c);d==null||d.removeEventListener("scroll",o)})}},[o,e]),E.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>Kr(i,a),Lt):nc(e):Lt,[e,t])}function ws(e,t){t===void 0&&(t=[]);const r=E.useRef(null);return E.useEffect(()=>{r.current=null},t),E.useEffect(()=>{const n=e!==Lt;n&&!r.current&&(r.current=e),!n&&r.current&&(r.current=null)},[e]),r.current?$n(e,r.current):Lt}function df(e){E.useEffect(()=>{if(!Uo)return;const t=e.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function ff(e,t){return E.useMemo(()=>e.reduce((r,n)=>{let{eventName:o,handler:i}=n;return r[o]=a=>{i(a,t)},r},{}),[e,t])}function ac(e){return E.useMemo(()=>e?_d(e):null,[e])}const Ss=[];function pf(e,t){t===void 0&&(t=un);const[r]=e,n=ac(r?st(r):null),[o,i]=E.useState(Ss);function a(){i(()=>e.length?e.map(c=>tc(c)?n:new xa(t(c),c)):Ss)}const l=Ko({callback:a});return At(()=>{l==null||l.disconnect(),a(),e.forEach(c=>l==null?void 0:l.observe(c))},[e]),o}function sc(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return qn(t)?t:e}function hf(e){let{measure:t}=e;const[r,n]=E.useState(null),o=E.useCallback(d=>{for(const{target:f}of d)if(qn(f)){n(h=>{const m=t(f);return h?{...h,width:m.width,height:m.height}:m});break}},[t]),i=Ko({callback:o}),a=E.useCallback(d=>{const f=sc(d);i==null||i.disconnect(),f&&(i==null||i.observe(f)),n(f?t(f):null)},[t,i]),[l,c]=So(a);return E.useMemo(()=>({nodeRef:l,rect:r,setRef:c}),[r,l,c])}const mf=[{sensor:Ea,options:{}},{sensor:wa,options:{}}],gf={current:{}},mo={draggable:{measure:hs},droppable:{measure:hs,strategy:Pn.WhileDragging,frequency:Hi.Optimized},dragOverlay:{measure:un}};class jn extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,n;return(r=(n=this.get(t))==null?void 0:n.node.current)!=null?r:void 0}}const vf={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new jn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:jo},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:mo,measureDroppableContainers:jo,windowRect:null,measuringScheduled:!1},lc={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:jo,draggableNodes:new Map,over:null,measureDroppableContainers:jo},Kn=E.createContext(lc),cc=E.createContext(vf);function yf(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new jn}}}function bf(e,t){switch(t.type){case He.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case He.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case He.DragEnd:case He.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case He.RegisterDroppable:{const{element:r}=t,{id:n}=r,o=new jn(e.droppable.containers);return o.set(n,r),{...e,droppable:{...e.droppable,containers:o}}}case He.SetDroppableDisabled:{const{id:r,key:n,disabled:o}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;const a=new jn(e.droppable.containers);return a.set(r,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case He.UnregisterDroppable:{const{id:r,key:n}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;const i=new jn(e.droppable.containers);return i.delete(r),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function xf(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:o}=E.useContext(Kn),i=Eo(n),a=Eo(r==null?void 0:r.id);return E.useEffect(()=>{if(!t&&!n&&i&&a!=null){if(!Yo(i)||document.activeElement===i.target)return;const l=o.get(a);if(!l)return;const{activatorNode:c,node:d}=l;if(!c.current&&!d.current)return;requestAnimationFrame(()=>{for(const f of[c.current,d.current]){if(!f)continue;const h=md(f);if(h){h.focus();break}}})}},[n,t,o,a,i]),null}function uc(e,t){let{transform:r,...n}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...n}),r):r}function wf(e){return E.useMemo(()=>({draggable:{...mo.draggable,...e==null?void 0:e.draggable},droppable:{...mo.droppable,...e==null?void 0:e.droppable},dragOverlay:{...mo.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Sf(e){let{activeNode:t,measure:r,initialRect:n,config:o=!0}=e;const i=E.useRef(!1),{x:a,y:l}=typeof o=="boolean"?{x:o,y:o}:o;At(()=>{if(!a&&!l||!t){i.current=!1;return}if(i.current||!n)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const f=r(d),h=Xl(f,n);if(a||(h.x=0),l||(h.y=0),i.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const m=Ql(d);m&&m.scrollBy({top:h.y,left:h.x})}},[t,a,l,n,r])}const Xo=E.createContext({...Lt,scaleX:1,scaleY:1});var dr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(dr||(dr={}));const Ef=E.memo(function(t){var r,n,o,i;let{id:a,accessibility:l,autoScroll:c=!0,children:d,sensors:f=mf,collisionDetection:h=kd,measuring:m,modifiers:g,...x}=t;const p=E.useReducer(bf,void 0,yf),[y,S]=p,[b,R]=xd(),[w,C]=E.useState(dr.Uninitialized),T=w===dr.Initialized,{draggable:{active:N,nodes:$,translate:D},droppable:{containers:M}}=y,L=N!=null?$.get(N):null,v=E.useRef({initial:null,translated:null}),k=E.useMemo(()=>{var Pe;return N!=null?{id:N,data:(Pe=L==null?void 0:L.data)!=null?Pe:gf,rect:v}:null},[N,L]),_=E.useRef(null),[P,z]=E.useState(null),[B,q]=E.useState(null),U=kn(x,Object.values(x)),O=Gn("DndDescribedBy",a),F=E.useMemo(()=>M.getEnabled(),[M]),W=wf(m),{droppableRects:X,measureDroppableContainers:Y,measuringScheduled:Z}=nf(F,{dragging:T,dependencies:[D.x,D.y],config:W.droppable}),K=tf($,N),Q=E.useMemo(()=>B?Co(B):null,[B]),te=yr(),oe=of(K,W.draggable.measure);Sf({activeNode:N!=null?$.get(N):null,config:te.layoutShiftCompensation,initialRect:oe,measure:W.draggable.measure});const G=bs(K,W.draggable.measure,oe),de=bs(K?K.parentElement:null),H=E.useRef({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:$,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),xe=M.getNodeFor((r=H.current.over)==null?void 0:r.id),we=hf({measure:W.dragOverlay.measure}),ke=(n=we.nodeRef.current)!=null?n:K,Le=T?(o=we.rect)!=null?o:G:null,Ue=!!(we.nodeRef.current&&we.rect),qe=lf(Ue?null:G),et=ac(ke?st(ke):null),Re=cf(T?xe??K:null),tt=pf(Re),ne=uc(g,{transform:{x:D.x-qe.x,y:D.y-qe.y,scaleX:1,scaleY:1},activatorEvent:B,active:k,activeNodeRect:G,containerNodeRect:de,draggingNodeRect:Le,over:H.current.over,overlayNodeRect:we.rect,scrollableAncestors:Re,scrollableAncestorRects:tt,windowRect:et}),Ft=Q?Kr(Q,D):null,zt=uf(Re),Zt=ws(zt),er=ws(zt,[G]),rt=Kr(ne,Zt),ht=Le?Dd(Le,ne):null,lt=k&&ht?h({active:k,collisionRect:ht,droppableRects:X,droppableContainers:F,pointerCoordinates:Ft}):null,tr=Kl(lt,"id"),[$e,Bt]=E.useState(null),$t=Ue?ne:Kr(ne,er),it=$d($t,(i=$e==null?void 0:$e.rect)!=null?i:null,G),vr=E.useRef(null),cr=E.useCallback((Pe,Ye)=>{let{sensor:Xe,options:mt}=Ye;if(_.current==null)return;const nt=$.get(_.current);if(!nt)return;const re=Pe.nativeEvent,je=new Xe({active:_.current,activeNode:nt,event:re,options:mt,context:H,onAbort(Ve){if(!$.get(Ve))return;const{onDragAbort:gt}=U.current,It={id:Ve};gt==null||gt(It),b({type:"onDragAbort",event:It})},onPending(Ve,Mt,gt,It){if(!$.get(Ve))return;const{onDragPending:xr}=U.current,Ht={id:Ve,constraint:Mt,initialCoordinates:gt,offset:It};xr==null||xr(Ht),b({type:"onDragPending",event:Ht})},onStart(Ve){const Mt=_.current;if(Mt==null)return;const gt=$.get(Mt);if(!gt)return;const{onDragStart:It}=U.current,br={activatorEvent:re,active:{id:Mt,data:gt.data,rect:v}};Gt.unstable_batchedUpdates(()=>{It==null||It(br),C(dr.Initializing),S({type:He.DragStart,initialCoordinates:Ve,active:Mt}),b({type:"onDragStart",event:br}),z(vr.current),q(re)})},onMove(Ve){S({type:He.DragMove,coordinates:Ve})},onEnd:Dt(He.DragEnd),onCancel:Dt(He.DragCancel)});vr.current=je;function Dt(Ve){return async function(){const{active:gt,collisions:It,over:br,scrollAdjustedTranslate:xr}=H.current;let Ht=null;if(gt&&xr){const{cancelDrop:j}=U.current;Ht={activatorEvent:re,active:gt,collisions:It,delta:xr,over:br},Ve===He.DragEnd&&typeof j=="function"&&await Promise.resolve(j(Ht))&&(Ve=He.DragCancel)}_.current=null,Gt.unstable_batchedUpdates(()=>{S({type:Ve}),C(dr.Uninitialized),Bt(null),z(null),q(null),vr.current=null;const j=Ve===He.DragEnd?"onDragEnd":"onDragCancel";if(Ht){const V=U.current[j];V==null||V(Ht),b({type:j,event:Ht})}})}}},[$]),fn=E.useCallback((Pe,Ye)=>(Xe,mt)=>{const nt=Xe.nativeEvent,re=$.get(mt);if(_.current!==null||!re||nt.dndKit||nt.defaultPrevented)return;const je={active:re};Pe(Xe,Ye.options,je)===!0&&(nt.dndKit={capturedBy:Ye.sensor},_.current=mt,cr(Xe,Ye))},[$,cr]),Pt=rf(f,fn);df(f),At(()=>{G&&w===dr.Initializing&&C(dr.Initialized)},[G,w]),E.useEffect(()=>{const{onDragMove:Pe}=U.current,{active:Ye,activatorEvent:Xe,collisions:mt,over:nt}=H.current;if(!Ye||!Xe)return;const re={active:Ye,activatorEvent:Xe,collisions:mt,delta:{x:rt.x,y:rt.y},over:nt};Gt.unstable_batchedUpdates(()=>{Pe==null||Pe(re),b({type:"onDragMove",event:re})})},[rt.x,rt.y]),E.useEffect(()=>{const{active:Pe,activatorEvent:Ye,collisions:Xe,droppableContainers:mt,scrollAdjustedTranslate:nt}=H.current;if(!Pe||_.current==null||!Ye||!nt)return;const{onDragOver:re}=U.current,je=mt.get(tr),Dt=je&&je.rect.current?{id:je.id,rect:je.rect.current,data:je.data,disabled:je.disabled}:null,Ve={active:Pe,activatorEvent:Ye,collisions:Xe,delta:{x:nt.x,y:nt.y},over:Dt};Gt.unstable_batchedUpdates(()=>{Bt(Dt),re==null||re(Ve),b({type:"onDragOver",event:Ve})})},[tr]),At(()=>{H.current={activatorEvent:B,active:k,activeNode:K,collisionRect:ht,collisions:lt,droppableRects:X,draggableNodes:$,draggingNode:ke,draggingNodeRect:Le,droppableContainers:M,over:$e,scrollableAncestors:Re,scrollAdjustedTranslate:rt},v.current={initial:Le,translated:ht}},[k,K,lt,ht,$,ke,Le,X,M,$e,Re,rt]),Qd({...te,delta:D,draggingRect:ht,pointerCoordinates:Ft,scrollableAncestors:Re,scrollableAncestorRects:tt});const Lr=E.useMemo(()=>({active:k,activeNode:K,activeNodeRect:G,activatorEvent:B,collisions:lt,containerNodeRect:de,dragOverlay:we,draggableNodes:$,droppableContainers:M,droppableRects:X,over:$e,measureDroppableContainers:Y,scrollableAncestors:Re,scrollableAncestorRects:tt,measuringConfiguration:W,measuringScheduled:Z,windowRect:et}),[k,K,G,B,lt,de,we,$,M,X,$e,Y,Re,tt,W,Z,et]),Vt=E.useMemo(()=>({activatorEvent:B,activators:Pt,active:k,activeNodeRect:G,ariaDescribedById:{draggable:O},dispatch:S,draggableNodes:$,over:$e,measureDroppableContainers:Y}),[B,Pt,k,G,S,O,$,$e,Y]);return E.createElement(Ul.Provider,{value:R},E.createElement(Kn.Provider,{value:Vt},E.createElement(cc.Provider,{value:Lr},E.createElement(Xo.Provider,{value:it},d)),E.createElement(xf,{disabled:(l==null?void 0:l.restoreFocus)===!1})),E.createElement(Ed,{...l,hiddenTextDescribedById:O}));function yr(){const Pe=(P==null?void 0:P.autoScrollEnabled)===!1,Ye=typeof c=="object"?c.enabled===!1:c===!1,Xe=T&&!Pe&&!Ye;return typeof c=="object"?{...c,enabled:Xe}:{enabled:Xe}}}),Cf=E.createContext(null),Es="button",jf="Draggable";function dc(e){let{id:t,data:r,disabled:n=!1,attributes:o}=e;const i=Gn(jf),{activators:a,activatorEvent:l,active:c,activeNodeRect:d,ariaDescribedById:f,draggableNodes:h,over:m}=E.useContext(Kn),{role:g=Es,roleDescription:x="draggable",tabIndex:p=0}=o??{},y=(c==null?void 0:c.id)===t,S=E.useContext(y?Xo:Cf),[b,R]=So(),[w,C]=So(),T=ff(a,t),N=kn(r);At(()=>(h.set(t,{id:t,key:i,node:b,activatorNode:w,data:N}),()=>{const D=h.get(t);D&&D.key===i&&h.delete(t)}),[h,t]);const $=E.useMemo(()=>({role:g,tabIndex:p,"aria-disabled":n,"aria-pressed":y&&g===Es?!0:void 0,"aria-roledescription":x,"aria-describedby":f.draggable}),[n,g,p,y,x,f.draggable]);return{active:c,activatorEvent:l,activeNodeRect:d,attributes:$,isDragging:y,listeners:n?void 0:T,node:b,over:m,setNodeRef:R,setActivatorNodeRef:C,transform:S}}function fc(){return E.useContext(cc)}const Tf="Droppable",Rf={timeout:25};function Wi(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:o}=e;const i=Gn(Tf),{active:a,dispatch:l,over:c,measureDroppableContainers:d}=E.useContext(Kn),f=E.useRef({disabled:r}),h=E.useRef(!1),m=E.useRef(null),g=E.useRef(null),{disabled:x,updateMeasurementsFor:p,timeout:y}={...Rf,...o},S=kn(p??n),b=E.useCallback(()=>{if(!h.current){h.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{d(Array.isArray(S.current)?S.current:[S.current]),g.current=null},y)},[y]),R=Ko({callback:b,disabled:x||!a}),w=E.useCallback(($,D)=>{R&&(D&&(R.unobserve(D),h.current=!1),$&&R.observe($))},[R]),[C,T]=So(w),N=kn(t);return E.useEffect(()=>{!R||!C.current||(R.disconnect(),h.current=!1,R.observe(C.current))},[C,R]),E.useEffect(()=>(l({type:He.RegisterDroppable,element:{id:n,key:i,disabled:r,node:C,rect:m,data:N}}),()=>l({type:He.UnregisterDroppable,key:i,id:n})),[n]),E.useEffect(()=>{r!==f.current.disabled&&(l({type:He.SetDroppableDisabled,id:n,key:i,disabled:r}),f.current.disabled=r)},[n,i,r,l]),{active:a,rect:m,isOver:(c==null?void 0:c.id)===n,node:C,over:c,setNodeRef:T}}function Nf(e){let{animation:t,children:r}=e;const[n,o]=E.useState(null),[i,a]=E.useState(null),l=Eo(r);return!r&&!n&&l&&o(l),At(()=>{if(!i)return;const c=n==null?void 0:n.key,d=n==null?void 0:n.props.id;if(c==null||d==null){o(null);return}Promise.resolve(t(d,i)).then(()=>{o(null)})},[t,n,i]),E.createElement(E.Fragment,null,r,n?E.cloneElement(n,{ref:a}):null)}const Of={x:0,y:0,scaleX:1,scaleY:1};function kf(e){let{children:t}=e;return E.createElement(Kn.Provider,{value:lc},E.createElement(Xo.Provider,{value:Of},t))}const $f={position:"fixed",touchAction:"none"},Pf=e=>Yo(e)?"transform 250ms ease":void 0,Df=E.forwardRef((e,t)=>{let{as:r,activatorEvent:n,adjustScale:o,children:i,className:a,rect:l,style:c,transform:d,transition:f=Pf}=e;if(!l)return null;const h=o?d:{...d,scaleX:1,scaleY:1},m={...$f,width:l.width,height:l.height,top:l.top,left:l.left,transform:ir.Transform.toString(h),transformOrigin:o&&n?jd(n,l):void 0,transition:typeof f=="function"?f(n):f,...c};return E.createElement(r,{className:a,style:m,ref:t},i)}),Mf=e=>t=>{let{active:r,dragOverlay:n}=t;const o={},{styles:i,className:a}=e;if(i!=null&&i.active)for(const[l,c]of Object.entries(i.active))c!==void 0&&(o[l]=r.node.style.getPropertyValue(l),r.node.style.setProperty(l,c));if(i!=null&&i.dragOverlay)for(const[l,c]of Object.entries(i.dragOverlay))c!==void 0&&n.node.style.setProperty(l,c);return a!=null&&a.active&&r.node.classList.add(a.active),a!=null&&a.dragOverlay&&n.node.classList.add(a.dragOverlay),function(){for(const[c,d]of Object.entries(o))r.node.style.setProperty(c,d);a!=null&&a.active&&r.node.classList.remove(a.active)}},If=e=>{let{transform:{initial:t,final:r}}=e;return[{transform:ir.Transform.toString(t)},{transform:ir.Transform.toString(r)}]},_f={duration:250,easing:"ease",keyframes:If,sideEffects:Mf({styles:{active:{opacity:"0"}}})};function Af(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:o}=e;return qo((i,a)=>{if(t===null)return;const l=r.get(i);if(!l)return;const c=l.node.current;if(!c)return;const d=sc(a);if(!d)return;const{transform:f}=st(a).getComputedStyle(a),h=Jl(f);if(!h)return;const m=typeof t=="function"?t:Lf(t);return oc(c,o.draggable.measure),m({active:{id:i,data:l.data,node:c,rect:o.draggable.measure(c)},draggableNodes:r,dragOverlay:{node:a,rect:o.dragOverlay.measure(d)},droppableContainers:n,measuringConfiguration:o,transform:h})})}function Lf(e){const{duration:t,easing:r,sideEffects:n,keyframes:o}={..._f,...e};return i=>{let{active:a,dragOverlay:l,transform:c,...d}=i;if(!t)return;const f={x:l.rect.left-a.rect.left,y:l.rect.top-a.rect.top},h={scaleX:c.scaleX!==1?a.rect.width*c.scaleX/l.rect.width:1,scaleY:c.scaleY!==1?a.rect.height*c.scaleY/l.rect.height:1},m={x:c.x-f.x,y:c.y-f.y,...h},g=o({...d,active:a,dragOverlay:l,transform:{initial:c,final:m}}),[x]=g,p=g[g.length-1];if(JSON.stringify(x)===JSON.stringify(p))return;const y=n==null?void 0:n({active:a,dragOverlay:l,...d}),S=l.node.animate(g,{duration:t,easing:r,fill:"forwards"});return new Promise(b=>{S.onfinish=()=>{y==null||y(),b()}})}}let Cs=0;function Ff(e){return E.useMemo(()=>{if(e!=null)return Cs++,Cs},[e])}const zf=E.memo(e=>{let{adjustScale:t=!1,children:r,dropAnimation:n,style:o,transition:i,modifiers:a,wrapperElement:l="div",className:c,zIndex:d=999}=e;const{activatorEvent:f,active:h,activeNodeRect:m,containerNodeRect:g,draggableNodes:x,droppableContainers:p,dragOverlay:y,over:S,measuringConfiguration:b,scrollableAncestors:R,scrollableAncestorRects:w,windowRect:C}=fc(),T=E.useContext(Xo),N=Ff(h==null?void 0:h.id),$=uc(a,{activatorEvent:f,active:h,activeNodeRect:m,containerNodeRect:g,draggingNodeRect:y.rect,over:S,overlayNodeRect:y.rect,scrollableAncestors:R,scrollableAncestorRects:w,transform:T,windowRect:C}),D=Ca(m),M=Af({config:n,draggableNodes:x,droppableContainers:p,measuringConfiguration:b}),L=D?y.setRef:void 0;return E.createElement(kf,null,E.createElement(Nf,{animation:M},h&&N?E.createElement(Df,{key:N,id:h.id,ref:L,as:l,activatorEvent:f,adjustScale:t,className:c,transition:i,rect:D,style:{zIndex:d,...o},transform:$},r):null))}),js=e=>e,Bf=()=>{let e=js;return{configure(t){e=t},generate(t){return e(t)},reset(){e=js}}},pc=Bf();function fr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function ae(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":fr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ui={exports:{}},oo={exports:{}},me={};/** @license React v16.13.1
35
+ * react-is.production.min.js
36
+ *
37
+ * Copyright (c) Facebook, Inc. and its affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Ts;function Vf(){if(Ts)return me;Ts=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function R(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case t:switch(C=C.type,C){case c:case d:case n:case i:case o:case h:return C;default:switch(C=C&&C.$$typeof,C){case l:case f:case x:case g:case a:return C;default:return T}}case r:return T}}}function w(C){return R(C)===d}return me.AsyncMode=c,me.ConcurrentMode=d,me.ContextConsumer=l,me.ContextProvider=a,me.Element=t,me.ForwardRef=f,me.Fragment=n,me.Lazy=x,me.Memo=g,me.Portal=r,me.Profiler=i,me.StrictMode=o,me.Suspense=h,me.isAsyncMode=function(C){return w(C)||R(C)===c},me.isConcurrentMode=w,me.isContextConsumer=function(C){return R(C)===l},me.isContextProvider=function(C){return R(C)===a},me.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},me.isForwardRef=function(C){return R(C)===f},me.isFragment=function(C){return R(C)===n},me.isLazy=function(C){return R(C)===x},me.isMemo=function(C){return R(C)===g},me.isPortal=function(C){return R(C)===r},me.isProfiler=function(C){return R(C)===i},me.isStrictMode=function(C){return R(C)===o},me.isSuspense=function(C){return R(C)===h},me.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===d||C===i||C===o||C===h||C===m||typeof C=="object"&&C!==null&&(C.$$typeof===x||C.$$typeof===g||C.$$typeof===a||C.$$typeof===l||C.$$typeof===f||C.$$typeof===y||C.$$typeof===S||C.$$typeof===b||C.$$typeof===p)},me.typeOf=R,me}var ge={};/** @license React v16.13.1
42
+ * react-is.development.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */var Rs;function Hf(){return Rs||(Rs=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function R(H){return typeof H=="string"||typeof H=="function"||H===n||H===d||H===i||H===o||H===h||H===m||typeof H=="object"&&H!==null&&(H.$$typeof===x||H.$$typeof===g||H.$$typeof===a||H.$$typeof===l||H.$$typeof===f||H.$$typeof===y||H.$$typeof===S||H.$$typeof===b||H.$$typeof===p)}function w(H){if(typeof H=="object"&&H!==null){var xe=H.$$typeof;switch(xe){case t:var we=H.type;switch(we){case c:case d:case n:case i:case o:case h:return we;default:var ke=we&&we.$$typeof;switch(ke){case l:case f:case x:case g:case a:return ke;default:return xe}}case r:return xe}}}var C=c,T=d,N=l,$=a,D=t,M=f,L=n,v=x,k=g,_=r,P=i,z=o,B=h,q=!1;function U(H){return q||(q=!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.")),O(H)||w(H)===c}function O(H){return w(H)===d}function F(H){return w(H)===l}function W(H){return w(H)===a}function X(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function Y(H){return w(H)===f}function Z(H){return w(H)===n}function K(H){return w(H)===x}function Q(H){return w(H)===g}function te(H){return w(H)===r}function oe(H){return w(H)===i}function G(H){return w(H)===o}function de(H){return w(H)===h}ge.AsyncMode=C,ge.ConcurrentMode=T,ge.ContextConsumer=N,ge.ContextProvider=$,ge.Element=D,ge.ForwardRef=M,ge.Fragment=L,ge.Lazy=v,ge.Memo=k,ge.Portal=_,ge.Profiler=P,ge.StrictMode=z,ge.Suspense=B,ge.isAsyncMode=U,ge.isConcurrentMode=O,ge.isContextConsumer=F,ge.isContextProvider=W,ge.isElement=X,ge.isForwardRef=Y,ge.isFragment=Z,ge.isLazy=K,ge.isMemo=Q,ge.isPortal=te,ge.isProfiler=oe,ge.isStrictMode=G,ge.isSuspense=de,ge.isValidElementType=R,ge.typeOf=w}()),ge}var Ns;function ja(){return Ns||(Ns=1,process.env.NODE_ENV==="production"?oo.exports=Vf():oo.exports=Hf()),oo.exports}/*
49
+ object-assign
50
+ (c) Sindre Sorhus
51
+ @license MIT
52
+ */var Ti,Os;function Wf(){if(Os)return Ti;Os=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 o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ti=o()?Object.assign:function(i,a){for(var l,c=n(i),d,f=1;f<arguments.length;f++){l=Object(arguments[f]);for(var h in l)t.call(l,h)&&(c[h]=l[h]);if(e){d=e(l);for(var m=0;m<d.length;m++)r.call(l,d[m])&&(c[d[m]]=l[d[m]])}}return c},Ti}var Ri,ks;function Ta(){if(ks)return Ri;ks=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ri=e,Ri}var Ni,$s;function hc(){return $s||($s=1,Ni=Function.call.bind(Object.prototype.hasOwnProperty)),Ni}var Oi,Ps;function Uf(){if(Ps)return Oi;Ps=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ta(),r={},n=hc();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,c,d){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var h;try{if(typeof i[f]!="function"){var m=Error((c||"React class")+": "+l+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=i[f](a,f,c,l,null,t)}catch(x){h=x}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var g=d?d():"";e("Failed "+l+" type: "+h.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Oi=o,Oi}var ki,Ds;function qf(){if(Ds)return ki;Ds=1;var e=ja(),t=Wf(),r=Ta(),n=hc(),o=Uf(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return ki=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(O){var F=O&&(d&&O[d]||O[f]);if(typeof F=="function")return F}var m="<<anonymous>>",g={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:b(),arrayOf:R,element:w(),elementType:C(),instanceOf:T,node:M(),objectOf:$,oneOf:N,oneOfType:D,shape:v,exact:k};function x(O,F){return O===F?O!==0||1/O===1/F:O!==O&&F!==F}function p(O,F){this.message=O,this.data=F&&typeof F=="object"?F:{},this.stack=""}p.prototype=Error.prototype;function y(O){if(process.env.NODE_ENV!=="production")var F={},W=0;function X(Z,K,Q,te,oe,G,de){if(te=te||m,G=G||Q,de!==r){if(c){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=te+":"+Q;!F[xe]&&W<3&&(i("You are manually calling a React.PropTypes validation function for the `"+G+"` 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."),F[xe]=!0,W++)}}return K[Q]==null?Z?K[Q]===null?new p("The "+oe+" `"+G+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new p("The "+oe+" `"+G+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:O(K,Q,te,oe,G)}var Y=X.bind(null,!1);return Y.isRequired=X.bind(null,!0),Y}function S(O){function F(W,X,Y,Z,K,Q){var te=W[X],oe=z(te);if(oe!==O){var G=B(te);return new p("Invalid "+Z+" `"+K+"` of type "+("`"+G+"` supplied to `"+Y+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return y(F)}function b(){return y(a)}function R(O){function F(W,X,Y,Z,K){if(typeof O!="function")return new p("Property `"+K+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var Q=W[X];if(!Array.isArray(Q)){var te=z(Q);return new p("Invalid "+Z+" `"+K+"` of type "+("`"+te+"` supplied to `"+Y+"`, expected an array."))}for(var oe=0;oe<Q.length;oe++){var G=O(Q,oe,Y,Z,K+"["+oe+"]",r);if(G instanceof Error)return G}return null}return y(F)}function w(){function O(F,W,X,Y,Z){var K=F[W];if(!l(K)){var Q=z(K);return new p("Invalid "+Y+" `"+Z+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return y(O)}function C(){function O(F,W,X,Y,Z){var K=F[W];if(!e.isValidElementType(K)){var Q=z(K);return new p("Invalid "+Y+" `"+Z+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return y(O)}function T(O){function F(W,X,Y,Z,K){if(!(W[X]instanceof O)){var Q=O.name||m,te=U(W[X]);return new p("Invalid "+Z+" `"+K+"` of type "+("`"+te+"` supplied to `"+Y+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(F)}function N(O){if(!Array.isArray(O))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.")),a;function F(W,X,Y,Z,K){for(var Q=W[X],te=0;te<O.length;te++)if(x(Q,O[te]))return null;var oe=JSON.stringify(O,function(de,H){var xe=B(H);return xe==="symbol"?String(H):H});return new p("Invalid "+Z+" `"+K+"` of value `"+String(Q)+"` "+("supplied to `"+Y+"`, expected one of "+oe+"."))}return y(F)}function $(O){function F(W,X,Y,Z,K){if(typeof O!="function")return new p("Property `"+K+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var Q=W[X],te=z(Q);if(te!=="object")return new p("Invalid "+Z+" `"+K+"` of type "+("`"+te+"` supplied to `"+Y+"`, expected an object."));for(var oe in Q)if(n(Q,oe)){var G=O(Q,oe,Y,Z,K+"."+oe,r);if(G instanceof Error)return G}return null}return y(F)}function D(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var F=0;F<O.length;F++){var W=O[F];if(typeof W!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(W)+" at index "+F+"."),a}function X(Y,Z,K,Q,te){for(var oe=[],G=0;G<O.length;G++){var de=O[G],H=de(Y,Z,K,Q,te,r);if(H==null)return null;H.data&&n(H.data,"expectedType")&&oe.push(H.data.expectedType)}var xe=oe.length>0?", expected one of type ["+oe.join(", ")+"]":"";return new p("Invalid "+Q+" `"+te+"` supplied to "+("`"+K+"`"+xe+"."))}return y(X)}function M(){function O(F,W,X,Y,Z){return _(F[W])?null:new p("Invalid "+Y+" `"+Z+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return y(O)}function L(O,F,W,X,Y){return new p((O||"React class")+": "+F+" type `"+W+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function v(O){function F(W,X,Y,Z,K){var Q=W[X],te=z(Q);if(te!=="object")return new p("Invalid "+Z+" `"+K+"` of type `"+te+"` "+("supplied to `"+Y+"`, expected `object`."));for(var oe in O){var G=O[oe];if(typeof G!="function")return L(Y,Z,K,oe,B(G));var de=G(Q,oe,Y,Z,K+"."+oe,r);if(de)return de}return null}return y(F)}function k(O){function F(W,X,Y,Z,K){var Q=W[X],te=z(Q);if(te!=="object")return new p("Invalid "+Z+" `"+K+"` of type `"+te+"` "+("supplied to `"+Y+"`, expected `object`."));var oe=t({},W[X],O);for(var G in oe){var de=O[G];if(n(O,G)&&typeof de!="function")return L(Y,Z,K,G,B(de));if(!de)return new p("Invalid "+Z+" `"+K+"` key `"+G+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(W[X],null," ")+`
53
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var H=de(Q,G,Y,Z,K+"."+G,r);if(H)return H}return null}return y(F)}function _(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(_);if(O===null||l(O))return!0;var F=h(O);if(F){var W=F.call(O),X;if(F!==O.entries){for(;!(X=W.next()).done;)if(!_(X.value))return!1}else for(;!(X=W.next()).done;){var Y=X.value;if(Y&&!_(Y[1]))return!1}}else return!1;return!0;default:return!1}}function P(O,F){return O==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function z(O){var F=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":P(F,O)?"symbol":F}function B(O){if(typeof O>"u"||O===null)return""+O;var F=z(O);if(F==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return F}function q(O){var F=B(O);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function U(O){return!O.constructor||!O.constructor.name?m:O.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},ki}var $i,Ms;function Yf(){if(Ms)return $i;Ms=1;var e=Ta();function t(){}function r(){}return r.resetWarningCache=t,$i=function(){function n(a,l,c,d,f,h){if(h!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},$i}if(process.env.NODE_ENV!=="production"){var Gf=ja(),Kf=!0;Ui.exports=qf()(Gf.isElement,Kf)}else Ui.exports=Yf()();var Xf=Ui.exports;const u=ld(Xf);function mc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=mc(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ue(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=mc(e))&&(n&&(n+=" "),n+=t);return n}function Ze(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",l=!0;for(let c=0;c<i.length;c+=1){const d=i[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,r&&r[d]&&(a+=" "+r[d]))}n[o]=a}return n}var qi={exports:{}},Se={};/**
54
+ * @license React
55
+ * react-is.production.js
56
+ *
57
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
58
+ *
59
+ * This source code is licensed under the MIT license found in the
60
+ * LICENSE file in the root directory of this source tree.
61
+ */var Is;function Jf(){if(Is)return Se;Is=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),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"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function x(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case r:case o:case n:case c:case d:case m:return p;default:switch(p=p&&p.$$typeof,p){case a:case l:case h:case f:return p;case i:return p;default:return y}}case t:return y}}}return Se.ContextConsumer=i,Se.ContextProvider=a,Se.Element=e,Se.ForwardRef=l,Se.Fragment=r,Se.Lazy=h,Se.Memo=f,Se.Portal=t,Se.Profiler=o,Se.StrictMode=n,Se.Suspense=c,Se.SuspenseList=d,Se.isContextConsumer=function(p){return x(p)===i},Se.isContextProvider=function(p){return x(p)===a},Se.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Se.isForwardRef=function(p){return x(p)===l},Se.isFragment=function(p){return x(p)===r},Se.isLazy=function(p){return x(p)===h},Se.isMemo=function(p){return x(p)===f},Se.isPortal=function(p){return x(p)===t},Se.isProfiler=function(p){return x(p)===o},Se.isStrictMode=function(p){return x(p)===n},Se.isSuspense=function(p){return x(p)===c},Se.isSuspenseList=function(p){return x(p)===d},Se.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===o||p===n||p===c||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===f||p.$$typeof===a||p.$$typeof===i||p.$$typeof===l||p.$$typeof===g||p.getModuleId!==void 0)},Se.typeOf=x,Se}var Ee={};/**
62
+ * @license React
63
+ * react-is.development.js
64
+ *
65
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
66
+ *
67
+ * This source code is licensed under the MIT license found in the
68
+ * LICENSE file in the root directory of this source tree.
69
+ */var _s;function Qf(){return _s||(_s=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case n:case i:case o:case d:case f:case g:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case m:case h:return p;case a:return p;default:return y}}case r:return y}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");Ee.ContextConsumer=a,Ee.ContextProvider=l,Ee.Element=t,Ee.ForwardRef=c,Ee.Fragment=n,Ee.Lazy=m,Ee.Memo=h,Ee.Portal=r,Ee.Profiler=i,Ee.StrictMode=o,Ee.Suspense=d,Ee.SuspenseList=f,Ee.isContextConsumer=function(p){return e(p)===a},Ee.isContextProvider=function(p){return e(p)===l},Ee.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},Ee.isForwardRef=function(p){return e(p)===c},Ee.isFragment=function(p){return e(p)===n},Ee.isLazy=function(p){return e(p)===m},Ee.isMemo=function(p){return e(p)===h},Ee.isPortal=function(p){return e(p)===r},Ee.isProfiler=function(p){return e(p)===i},Ee.isStrictMode=function(p){return e(p)===o},Ee.isSuspense=function(p){return e(p)===d},Ee.isSuspenseList=function(p){return e(p)===f},Ee.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===i||p===o||p===d||p===f||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===c||p.$$typeof===x||p.getModuleId!==void 0)},Ee.typeOf=e}()),Ee}process.env.NODE_ENV==="production"?qi.exports=Jf():qi.exports=Qf();var Dn=qi.exports;function Yt(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 gc(e){if(I.isValidElement(e)||Dn.isValidElementType(e)||!Yt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=gc(e[r])}),t}function yt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Yt(e)&&Yt(t)&&Object.keys(t).forEach(o=>{I.isValidElement(t[o])||Dn.isValidElementType(t[o])?n[o]=t[o]:Yt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Yt(e[o])?n[o]=yt(e[o],t[o],r):r.clone?n[o]=Yt(t[o])?gc(t[o]):t[o]:n[o]=t[o]}),n}function Tn(e,t){return t?yt(e,t,{clone:!1}):e}const hr=process.env.NODE_ENV!=="production"?u.oneOfType([u.number,u.string,u.object,u.array]):{};function As(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=n.match(i))==null?void 0:a[1])||0)-+(((l=o.match(i))==null?void 0:l[1])||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function Zf(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ep(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>\`.
70
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:fr(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function tp(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const Jo={xs:0,sm:600,md:900,lg:1200,xl:1536},Ls={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Jo[e]}px)`},rp={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Jo[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ar(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Ls;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=r(t[c]),a),{})}if(typeof t=="object"){const i=n.breakpoints||Ls;return Object.keys(t).reduce((a,l)=>{if(Zf(i.keys,l)){const c=ep(n.containerQueries?n:rp,l);c&&(a[c]=r(t[l],l))}else if(Object.keys(i.values||Jo).includes(l)){const c=i.up(l);a[c]=r(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return r(t)}function np(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Fs(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Qo(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ro(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Qo(e,r)||n,t&&(o=t(o,n,e)),o}function Ae(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,d=Qo(c,n)||{};return ar(a,l,h=>{let m=Ro(d,o,h);return h===m&&typeof h=="string"&&(m=Ro(d,o,`${t}${h==="default"?"":ae(h)}`,h)),r===!1?m:{[r]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:hr}:{},i.filterProps=[t],i}function op(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ip={m:"margin",p:"padding"},ap={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sp=op(e=>{if(e.length>2)if(zs[e])e=zs[e];else return[e];const[t,r]=e.split(""),n=ip[t],o=ap[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Zo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ei=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],lp=[...Zo,...ei];function Xn(e,t,r,n){const o=Qo(e,t,!0)??r;return typeof o=="number"||typeof o=="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 o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
71
+ `)):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(`
72
+ `)));const l=o[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
73
+ `)),()=>{})}function Ra(e){return Xn(e,"spacing",8,"spacing")}function Jn(e,t){return typeof t=="string"||t==null?t:e(t)}function cp(e,t){return r=>e.reduce((n,o)=>(n[o]=Jn(t,r),n),{})}function up(e,t,r,n){if(!t.includes(r))return null;const o=sp(r),i=cp(o,n),a=e[r];return ar(e,a,i)}function vc(e,t){const r=Ra(e.theme);return Object.keys(e).map(n=>up(e,t,n,r)).reduce(Tn,{})}function De(e){return vc(e,Zo)}De.propTypes=process.env.NODE_ENV!=="production"?Zo.reduce((e,t)=>(e[t]=hr,e),{}):{};De.filterProps=Zo;function Me(e){return vc(e,ei)}Me.propTypes=process.env.NODE_ENV!=="production"?ei.reduce((e,t)=>(e[t]=hr,e),{}):{};Me.filterProps=ei;process.env.NODE_ENV!=="production"&&lp.reduce((e,t)=>(e[t]=hr,e),{});function ti(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Tn(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function jt(e){return typeof e!="number"?e:`${e}px solid`}function kt(e,t){return Ae({prop:e,themeKey:"borders",transform:t})}const dp=kt("border",jt),fp=kt("borderTop",jt),pp=kt("borderRight",jt),hp=kt("borderBottom",jt),mp=kt("borderLeft",jt),gp=kt("borderColor"),vp=kt("borderTopColor"),yp=kt("borderRightColor"),bp=kt("borderBottomColor"),xp=kt("borderLeftColor"),wp=kt("outline",jt),Sp=kt("outlineColor"),ri=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Jn(t,n)});return ar(e,e.borderRadius,r)}return null};ri.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:hr}:{};ri.filterProps=["borderRadius"];ti(dp,fp,pp,hp,mp,gp,vp,yp,bp,xp,ri,wp,Sp);const ni=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xn(e.theme,"spacing",8,"gap"),r=n=>({gap:Jn(t,n)});return ar(e,e.gap,r)}return null};ni.propTypes=process.env.NODE_ENV!=="production"?{gap:hr}:{};ni.filterProps=["gap"];const oi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Jn(t,n)});return ar(e,e.columnGap,r)}return null};oi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:hr}:{};oi.filterProps=["columnGap"];const ii=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Jn(t,n)});return ar(e,e.rowGap,r)}return null};ii.propTypes=process.env.NODE_ENV!=="production"?{rowGap:hr}:{};ii.filterProps=["rowGap"];const Ep=Ae({prop:"gridColumn"}),Cp=Ae({prop:"gridRow"}),jp=Ae({prop:"gridAutoFlow"}),Tp=Ae({prop:"gridAutoColumns"}),Rp=Ae({prop:"gridAutoRows"}),Np=Ae({prop:"gridTemplateColumns"}),Op=Ae({prop:"gridTemplateRows"}),kp=Ae({prop:"gridTemplateAreas"}),$p=Ae({prop:"gridArea"});ti(ni,oi,ii,Ep,Cp,jp,Tp,Rp,Np,Op,kp,$p);function Xr(e,t){return t==="grey"?t:e}const Pp=Ae({prop:"color",themeKey:"palette",transform:Xr}),Dp=Ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xr}),Mp=Ae({prop:"backgroundColor",themeKey:"palette",transform:Xr});ti(Pp,Dp,Mp);function vt(e){return e<=1&&e!==0?`${e*100}%`:e}const Ip=Ae({prop:"width",transform:vt}),Na=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,i,a,l,c;const n=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||Jo[r];return n?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:vt(r)}};return ar(e,e.maxWidth,t)}return null};Na.filterProps=["maxWidth"];const _p=Ae({prop:"minWidth",transform:vt}),Ap=Ae({prop:"height",transform:vt}),Lp=Ae({prop:"maxHeight",transform:vt}),Fp=Ae({prop:"minHeight",transform:vt});Ae({prop:"size",cssProperty:"width",transform:vt});Ae({prop:"size",cssProperty:"height",transform:vt});const zp=Ae({prop:"boxSizing"});ti(Ip,Na,_p,Ap,Lp,Fp,zp);const Qn={border:{themeKey:"borders",transform:jt},borderTop:{themeKey:"borders",transform:jt},borderRight:{themeKey:"borders",transform:jt},borderBottom:{themeKey:"borders",transform:jt},borderLeft:{themeKey:"borders",transform:jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ri},color:{themeKey:"palette",transform:Xr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xr},backgroundColor:{themeKey:"palette",transform:Xr},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},m:{style:De},mt:{style:De},mr:{style:De},mb:{style:De},ml:{style:De},mx:{style:De},my:{style:De},margin:{style:De},marginTop:{style:De},marginRight:{style:De},marginBottom:{style:De},marginLeft:{style:De},marginX:{style:De},marginY:{style:De},marginInline:{style:De},marginInlineStart:{style:De},marginInlineEnd:{style:De},marginBlock:{style:De},marginBlockStart:{style:De},marginBlockEnd:{style:De},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:ni},rowGap:{style:ii},columnGap:{style:oi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vt},maxWidth:{style:Na},minWidth:{transform:vt},height:{transform:vt},maxHeight:{transform:vt},minHeight:{transform:vt},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 Bp(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Vp(e,t){return typeof e=="function"?e(t):e}function Hp(){function e(r,n,o,i){const a={[r]:n,theme:o},l=i[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:d,transform:f,style:h}=l;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const m=Qo(o,d)||{};return h?h(a):ar(a,n,x=>{let p=Ro(m,f,x);return x===p&&typeof x=="string"&&(p=Ro(m,f,`${r}${x==="default"?"":ae(x)}`,x)),c===!1?p:{[c]:p}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const a=o.unstable_sxConfig??Qn;function l(c){let d=c;if(typeof c=="function")d=c(o);else if(typeof c!="object")return c;if(!d)return null;const f=np(o.breakpoints),h=Object.keys(f);let m=f;return Object.keys(d).forEach(g=>{const x=Vp(d[g],o);if(x!=null)if(typeof x=="object")if(a[g])m=Tn(m,e(g,x,o,a));else{const p=ar({theme:o},x,y=>({[g]:y}));Bp(p,x)?m[g]=t({sx:x,theme:o,nested:!0}):m=Tn(m,p)}else m=Tn(m,e(g,x,o,a))}),!i&&o.modularCssLayers?{"@layer sx":As(o,Fs(h,m))}:As(o,Fs(h,m))}return Array.isArray(n)?n.map(l):l(n)}return t}const Mr=Hp();Mr.filterProps=["sx"];const Wp=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??Qn;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function yc(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=Wp(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Yt(l)?{...n,...l}:n}:i={...n,...t},{...o,sx:i}}function No(){return No=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},No.apply(null,arguments)}function Up(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function qp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Yp=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(qp(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Up(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ot="-ms-",Oo="-moz-",fe="-webkit-",bc="comm",Oa="rule",ka="decl",Gp="@import",xc="@keyframes",Kp="@layer",Xp=Math.abs,ai=String.fromCharCode,Jp=Object.assign;function Qp(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function wc(e){return e.trim()}function Zp(e,t){return(e=t.exec(e))?e[0]:e}function pe(e,t,r){return e.replace(t,r)}function Yi(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function Mn(e,t,r){return e.slice(t,r)}function Ut(e){return e.length}function $a(e){return e.length}function io(e,t){return t.push(e),e}function eh(e,t){return e.map(t).join("")}var si=1,Zr=1,Sc=0,pt=0,ze=0,dn="";function li(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:si,column:Zr,length:a,return:""}}function gn(e,t){return Jp(li("",null,null,"",null,null,0),e,{length:-e.length},t)}function th(){return ze}function rh(){return ze=pt>0?Je(dn,--pt):0,Zr--,ze===10&&(Zr=1,si--),ze}function bt(){return ze=pt<Sc?Je(dn,pt++):0,Zr++,ze===10&&(Zr=1,si++),ze}function Kt(){return Je(dn,pt)}function go(){return pt}function Zn(e,t){return Mn(dn,e,t)}function In(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ec(e){return si=Zr=1,Sc=Ut(dn=e),pt=0,[]}function Cc(e){return dn="",e}function vo(e){return wc(Zn(pt-1,Gi(e===91?e+2:e===40?e+1:e)))}function nh(e){for(;(ze=Kt())&&ze<33;)bt();return In(e)>2||In(ze)>3?"":" "}function oh(e,t){for(;--t&&bt()&&!(ze<48||ze>102||ze>57&&ze<65||ze>70&&ze<97););return Zn(e,go()+(t<6&&Kt()==32&&bt()==32))}function Gi(e){for(;bt();)switch(ze){case e:return pt;case 34:case 39:e!==34&&e!==39&&Gi(ze);break;case 40:e===41&&Gi(e);break;case 92:bt();break}return pt}function ih(e,t){for(;bt()&&e+ze!==57;)if(e+ze===84&&Kt()===47)break;return"/*"+Zn(t,pt-1)+"*"+ai(e===47?e:bt())}function ah(e){for(;!In(Kt());)bt();return Zn(e,pt)}function sh(e){return Cc(yo("",null,null,null,[""],e=Ec(e),0,[0],e))}function yo(e,t,r,n,o,i,a,l,c){for(var d=0,f=0,h=a,m=0,g=0,x=0,p=1,y=1,S=1,b=0,R="",w=o,C=i,T=n,N=R;y;)switch(x=b,b=bt()){case 40:if(x!=108&&Je(N,h-1)==58){Yi(N+=pe(vo(b),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:N+=vo(b);break;case 9:case 10:case 13:case 32:N+=nh(x);break;case 92:N+=oh(go()-1,7);continue;case 47:switch(Kt()){case 42:case 47:io(lh(ih(bt(),go()),t,r),c);break;default:N+="/"}break;case 123*p:l[d++]=Ut(N)*S;case 125*p:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+f:S==-1&&(N=pe(N,/\f/g,"")),g>0&&Ut(N)-h&&io(g>32?Vs(N+";",n,r,h-1):Vs(pe(N," ","")+";",n,r,h-2),c);break;case 59:N+=";";default:if(io(T=Bs(N,t,r,d,f,o,l,R,w=[],C=[],h),i),b===123)if(f===0)yo(N,t,T,T,w,i,h,l,C);else switch(m===99&&Je(N,3)===110?100:m){case 100:case 108:case 109:case 115:yo(e,T,T,n&&io(Bs(e,T,T,0,0,o,l,R,o,w=[],h),C),o,C,h,l,n?w:C);break;default:yo(N,T,T,T,[""],C,0,l,C)}}d=f=g=0,p=S=1,R=N="",h=a;break;case 58:h=1+Ut(N),g=x;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&rh()==125)continue}switch(N+=ai(b),b*p){case 38:S=f>0?1:(N+="\f",-1);break;case 44:l[d++]=(Ut(N)-1)*S,S=1;break;case 64:Kt()===45&&(N+=vo(bt())),m=Kt(),f=h=Ut(R=N+=ah(go())),b++;break;case 45:x===45&&Ut(N)==2&&(p=0)}}return i}function Bs(e,t,r,n,o,i,a,l,c,d,f){for(var h=o-1,m=o===0?i:[""],g=$a(m),x=0,p=0,y=0;x<n;++x)for(var S=0,b=Mn(e,h+1,h=Xp(p=a[x])),R=e;S<g;++S)(R=wc(p>0?m[S]+" "+b:pe(b,/&\f/g,m[S])))&&(c[y++]=R);return li(e,t,r,o===0?Oa:l,c,d,f)}function lh(e,t,r){return li(e,t,r,bc,ai(th()),Mn(e,2,-2),0)}function Vs(e,t,r,n){return li(e,t,r,ka,Mn(e,0,n),Mn(e,n+1,-1),n)}function Jr(e,t){for(var r="",n=$a(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ch(e,t,r,n){switch(e.type){case Kp:if(e.children.length)break;case Gp:case ka:return e.return=e.return||e.value;case bc:return"";case xc:return e.return=e.value+"{"+Jr(e.children,n)+"}";case Oa:e.value=e.props.join(",")}return Ut(r=Jr(e.children,n))?e.return=e.value+"{"+r+"}":""}function uh(e){var t=$a(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}function dh(e){return function(t){t.root||(t=t.return)&&e(t)}}function jc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var fh=function(t,r,n){for(var o=0,i=0;o=i,i=Kt(),o===38&&i===12&&(r[n]=1),!In(i);)bt();return Zn(t,pt)},ph=function(t,r){var n=-1,o=44;do switch(In(o)){case 0:o===38&&Kt()===12&&(r[n]=1),t[n]+=fh(pt-1,r,n);break;case 2:t[n]+=vo(o);break;case 4:if(o===44){t[++n]=Kt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ai(o)}while(o=bt());return t},hh=function(t,r){return Cc(ph(Ec(t),r))},Hs=new WeakMap,mh=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Hs.get(n))&&!o){Hs.set(t,!0);for(var i=[],a=hh(r,i),l=n.props,c=0,d=0;c<a.length;c++)for(var f=0;f<l.length;f++,d++)t.props[d]=i[c]?a[c].replace(/&\f/g,l[f]):l[f]+" "+a[c]}}},gh=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Tc(e,t){switch(Qp(e,t)){case 5103:return fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fe+e+Oo+e+ot+e+e;case 6828:case 4268:return fe+e+ot+e+e;case 6165:return fe+e+ot+"flex-"+e+e;case 5187:return fe+e+pe(e,/(\w+).+(:[^]+)/,fe+"box-$1$2"+ot+"flex-$1$2")+e;case 5443:return fe+e+ot+"flex-item-"+pe(e,/flex-|-self/,"")+e;case 4675:return fe+e+ot+"flex-line-pack"+pe(e,/align-content|flex-|-self/,"")+e;case 5548:return fe+e+ot+pe(e,"shrink","negative")+e;case 5292:return fe+e+ot+pe(e,"basis","preferred-size")+e;case 6060:return fe+"box-"+pe(e,"-grow","")+fe+e+ot+pe(e,"grow","positive")+e;case 4554:return fe+pe(e,/([^-])(transform)/g,"$1"+fe+"$2")+e;case 6187:return pe(pe(pe(e,/(zoom-|grab)/,fe+"$1"),/(image-set)/,fe+"$1"),e,"")+e;case 5495:case 3959:return pe(e,/(image-set\([^]*)/,fe+"$1$`$1");case 4968:return pe(pe(e,/(.+:)(flex-)?(.*)/,fe+"box-pack:$3"+ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fe+e+e;case 4095:case 3583:case 4068:case 2532:return pe(e,/(.+)-inline(.+)/,fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ut(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return pe(e,/(.+:)(.+)-([^]+)/,"$1"+fe+"$2-$3$1"+Oo+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yi(e,"stretch")?Tc(pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,Ut(e)-3-(~Yi(e,"!important")&&10))){case 107:return pe(e,":",":"+fe)+e;case 101:return pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fe+(Je(e,14)===45?"inline-":"")+"box$3$1"+fe+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return fe+e+ot+pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fe+e+ot+pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fe+e+ot+pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fe+e+ot+e+e}return e}var vh=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ka:t.return=Tc(t.value,t.length);break;case xc:return Jr([gn(t,{value:pe(t.value,"@","@"+fe)})],o);case Oa:if(t.length)return eh(t.props,function(i){switch(Zp(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jr([gn(t,{props:[pe(i,/:(read-\w+)/,":"+Oo+"$1")]})],o);case"::placeholder":return Jr([gn(t,{props:[pe(i,/:(plac\w+)/,":"+fe+"input-$1")]}),gn(t,{props:[pe(i,/:(plac\w+)/,":"+Oo+"$1")]}),gn(t,{props:[pe(i,/:(plac\w+)/,ot+"input-$1")]})],o)}return""})}},yh=[vh],bh=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=t.stylisPlugins||yh,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)i[y[S]]=!0;l.push(p)});var c,d=[mh,gh];{var f,h=[ch,dh(function(p){f.insert(p)})],m=uh(d.concat(o,h)),g=function(y){return Jr(sh(y),m)};c=function(y,S,b,R){f=b,g(y?y+"{"+S.styles+"}":S.styles),R&&(x.inserted[S.name]=!0)}}var x={key:r,sheet:new Yp({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return x.sheet.hydrate(l),x},Rc=ja(),xh={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Nc={};Nc[Rc.ForwardRef]=xh;Nc[Rc.Memo]=wh;var Sh=!0;function Oc(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Pa=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Sh===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},kc=function(t,r,n){Pa(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Eh(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 Ch={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},jh=/[A-Z]|^ms/g,Th=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$c=function(t){return t.charCodeAt(1)===45},Ws=function(t){return t!=null&&typeof t!="boolean"},Pi=jc(function(e){return $c(e)?e:e.replace(jh,"-$&").toLowerCase()}),Us=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Th,function(n,o,i){return qt={name:o,styles:i,next:qt},o})}return Ch[t]!==1&&!$c(t)&&typeof r=="number"&&r!==0?r+"px":r};function _n(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 o=r;if(o.anim===1)return qt={name:o.name,styles:o.styles,next:qt},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)qt={name:a.name,styles:a.styles,next:qt},a=a.next;var l=i.styles+";";return l}return Rh(e,t,r)}case"function":{if(e!==void 0){var c=qt,d=r(e);return qt=c,_n(e,t,d)}break}}var f=r;if(t==null)return f;var h=t[f];return h!==void 0?h:f}function Rh(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=_n(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?n+=i+"{"+t[l]+"}":Ws(l)&&(n+=Pi(i)+":"+Us(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Ws(a[c])&&(n+=Pi(i)+":"+Us(i,a[c])+";");else{var d=_n(e,t,a);switch(i){case"animation":case"animationName":{n+=Pi(i)+":"+d+";";break}default:n+=i+"{"+d+"}"}}}return n}var qs=/label:\s*([^\s;{]+)\s*(;|$)/g,qt;function ci(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,o="";qt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=_n(r,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=_n(r,t,e[l]),n){var c=i;o+=c[l]}qs.lastIndex=0;for(var d="",f;(f=qs.exec(o))!==null;)d+="-"+f[1];var h=Eh(o)+d;return{name:h,styles:o,next:qt}}var Nh=function(t){return t()},Oh=I.useInsertionEffect?I.useInsertionEffect:!1,Pc=Oh||Nh,Dc=I.createContext(typeof HTMLElement<"u"?bh({key:"css"}):null);Dc.Provider;var Mc=function(t){return E.forwardRef(function(r,n){var o=E.useContext(Dc);return t(r,o,n)})},Da=I.createContext({}),Ma={}.hasOwnProperty,Ki="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kh=function(t,r){var n={};for(var o in r)Ma.call(r,o)&&(n[o]=r[o]);return n[Ki]=t,n},$h=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Pa(r,n,o),Pc(function(){return kc(r,n,o)}),null},Ph=Mc(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Ki],i=[n],a="";typeof e.className=="string"?a=Oc(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=ci(i,void 0,I.useContext(Da));a+=t.key+"-"+l.name;var c={};for(var d in e)Ma.call(e,d)&&d!=="css"&&d!==Ki&&(c[d]=e[d]);return c.className=a,r&&(c.ref=r),I.createElement(I.Fragment,null,I.createElement($h,{cache:t,serialized:l,isStringTag:typeof o=="string"}),I.createElement(o,c))}),Dh=Ph,Ys=function(t,r){var n=arguments;if(r==null||!Ma.call(r,"css"))return I.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Dh,i[1]=kh(t,r);for(var a=2;a<o;a++)i[a]=n[a];return I.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ys||(Ys={}));function Ia(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ci(t)}function eo(){var e=Ia.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Mh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ih=jc(function(e){return Mh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_h=Ih,Ah=function(t){return t!=="theme"},Gs=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?_h:Ah},Ks=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Lh=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Pa(r,n,o),Pc(function(){return kc(r,n,o)}),null},Fh=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var l=Ks(t,r,n),c=l||Gs(o),d=!c("as");return function(){var f=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{var m=f[0];h.push(m[0]);for(var g=f.length,x=1;x<g;x++)h.push(f[x],m[x])}var p=Mc(function(y,S,b){var R=d&&y.as||o,w="",C=[],T=y;if(y.theme==null){T={};for(var N in y)T[N]=y[N];T.theme=I.useContext(Da)}typeof y.className=="string"?w=Oc(S.registered,C,y.className):y.className!=null&&(w=y.className+" ");var $=ci(h.concat(C),S.registered,T);w+=S.key+"-"+$.name,a!==void 0&&(w+=" "+a);var D=d&&l===void 0?Gs(R):c,M={};for(var L in y)d&&L==="as"||D(L)&&(M[L]=y[L]);return M.className=w,b&&(M.ref=b),I.createElement(I.Fragment,null,I.createElement(Lh,{cache:S,serialized:$,isStringTag:typeof R=="string"}),I.createElement(R,M))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=h,p.__emotion_forwardProp=l,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(y,S){var b=e(y,No({},r,S,{shouldForwardProp:Ks(p,S,!0)}));return b.apply(void 0,h)},p}},zh=["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"],Xi=Fh.bind(null);zh.forEach(function(e){Xi[e]=Xi(e)});/**
74
+ * @mui/styled-engine v7.3.2
75
+ *
76
+ * @license MIT
77
+ * This source code is licensed under the MIT license found in the
78
+ * LICENSE file in the root directory of this source tree.
79
+ */function Ic(e,t){const r=Xi(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
80
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function Bh(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Xs=[];function $r(e){return Xs[0]=e,ci(Xs)}const Vh=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 Hh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=Vh(t),a=Object.keys(i);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function d(m,g){const x=a.indexOf(g);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(x!==-1&&typeof t[a[x]]=="number"?t[a[x]]:g)-n/100}${r})`}function f(m){return a.indexOf(m)+1<a.length?d(m,a[a.indexOf(m)+1]):l(m)}function h(m){const g=a.indexOf(m);return g===0?l(a[1]):g===a.length-1?c(a[g]):d(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:d,only:f,not:h,unit:r,...o}}const Wh={borderRadius:4};function _c(e=8,t=Ra({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 a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Uh(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function _a(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,l=Hh(r),c=_c(o);let d=yt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...Wh,...i}},a);return d=tp(d),d.applyStyles=Uh,d=t.reduce((f,h)=>yt(f,h),d),d.unstable_sxConfig={...Qn,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(h){return Mr({sx:h,theme:this})},d}function qh(e){return Object.keys(e).length===0}function Yh(e=null){const t=I.useContext(Da);return!t||qh(t)?e:t}const Gh=_a();function Ac(e=Gh){return Yh(e)}function Kh(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Ic("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Mr);return I.forwardRef(function(c,d){const f=Ac(r),{className:h,component:m="div",...g}=yc(c);return s.jsx(i,{as:m,ref:d,className:ue(h,o?o(n):n),theme:t&&f[t]||f,...g})})}const Xh={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 We(e,t,r="Mui"){const n=Xh[t];return n?`${r}-${n}`:`${pc.generate(e)}-${t}`}function Be(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=We(e,o,r)}),n}function Lc(e,t=""){return e.displayName||e.name||t}function Js(e,t,r){const n=Lc(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Jh(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Lc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Dn.ForwardRef:return Js(e,e.render,"ForwardRef");case Dn.Memo:return Js(e,e.type,"memo");default:return}}}function Fc(e){const{variants:t,...r}=e,n={variants:t,style:$r(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=$r(o.style))}),n}const Qh=_a();function Di(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Rr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Zh(e){return e?(t,r)=>r[e]:null}function em(e,t,r){e.theme=om(e.theme)?r:e.theme[t]||e.theme}function bo(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>bo(e,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?Rr(n.style,r):n.style;else{const{variants:i,...a}=n;o=r?Rr($r(a),r):a}return zc(e,n.variants,[o],r)}return n!=null&&n.isProcessed?r?Rr($r(n.style),r):n.style:r?Rr($r(n),r):n}function zc(e,t,r=[],n=void 0){var i;let o;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),r.push(n?Rr($r(l.style(o)),n):l.style(o))):r.push(n?Rr($r(l.style),n):l.style)}return r}function tm(e={}){const{themeId:t,defaultTheme:r=Qh,rootShouldForwardProp:n=Di,slotShouldForwardProp:o=Di}=e;function i(l){em(l,t,r)}return(l,c={})=>{Bh(l,T=>T.filter(N=>N!==Mr));const{name:d,slot:f,skipVariantsResolver:h,skipSx:m,overridesResolver:g=Zh(Bc(f)),...x}=c,p=d&&d.startsWith("Mui")||f?"components":"custom",y=h!==void 0?h:f&&f!=="Root"&&f!=="root"||!1,S=m||!1;let b=Di;f==="Root"||f==="root"?b=n:f?b=o:im(l)&&(b=void 0);const R=Ic(l,{shouldForwardProp:b,label:nm(d,f),...x}),w=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function($){return bo($,T,$.theme.modularCssLayers?p:void 0)};if(Yt(T)){const N=Fc(T);return function(D){return N.variants?bo(D,N,D.theme.modularCssLayers?p:void 0):D.theme.modularCssLayers?Rr(N.style,p):N.style}}return T},C=(...T)=>{const N=[],$=T.map(w),D=[];if(N.push(i),d&&g&&D.push(function(k){var B,q;const P=(q=(B=k.theme.components)==null?void 0:B[d])==null?void 0:q.styleOverrides;if(!P)return null;const z={};for(const U in P)z[U]=bo(k,P[U],k.theme.modularCssLayers?"theme":void 0);return g(k,z)}),d&&!y&&D.push(function(k){var z,B;const _=k.theme,P=(B=(z=_==null?void 0:_.components)==null?void 0:z[d])==null?void 0:B.variants;return P?zc(k,P,[],k.theme.modularCssLayers?"theme":void 0):null}),S||D.push(Mr),Array.isArray($[0])){const v=$.shift(),k=new Array(N.length).fill(""),_=new Array(D.length).fill("");let P;P=[...k,...v,..._],P.raw=[...k,...v.raw,..._],N.unshift(P)}const M=[...N,...$,...D],L=R(...M);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=rm(d,f,l)),L};return R.withConfig&&(C.withConfig=R.withConfig),C}}function rm(e,t,r){return e?`${e}${ae(t||"")}`:`Styled(${Jh(r)})`}function nm(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Bc(t||"Root")}`),r}function om(e){for(const t in e)return!1;return!0}function im(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function An(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)n[i]=a||{};else if(!a)n[i]=l;else{n[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;n[i][d]=An(a[d],l[d],r)}}}else i==="className"&&r&&t.className?n.className=ue(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&r&&t.style?n.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:n[i]===void 0&&(n[i]=e[i])}return n}const Ln=typeof window<"u"?I.useLayoutEffect:I.useEffect;function am(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Aa(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}].`),am(e,t,r)}function sm(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function pr(e){if(e.type)return e;if(e.charAt(0)==="#")return pr(sm(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.
81
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:fr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=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(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
82
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:fr(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const lm=e=>{const t=pr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},xn=(e,t)=>{try{return lm(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ui(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Vc(e){e=pr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(d,f=(d+r/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ui({type:l,values:c})}function Ji(e){e=pr(e);let t=e.type==="hsl"||e.type==="hsla"?pr(Vc(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 Qs(e,t){const r=Ji(e),n=Ji(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ko(e,t){return e=pr(e),t=Aa(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ui(e)}function Sr(e,t,r){try{return ko(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function di(e,t){if(e=pr(e),t=Aa(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 ui(e)}function ye(e,t,r){try{return di(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function fi(e,t){if(e=pr(e),t=Aa(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 ui(e)}function be(e,t,r){try{return fi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function cm(e,t=.15){return Ji(e)>.5?di(e,t):fi(e,t)}function ao(e,t,r){try{return cm(e,t)}catch{return e}}const um="exact-prop: ​";function dm(e){return process.env.NODE_ENV==="production"?e:{...e,[um]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}const fm=I.createContext();process.env.NODE_ENV!=="production"&&(u.node,u.bool);const Hc=()=>I.useContext(fm)??!1,pm=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(u.node,u.object);function hm(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?An(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?An(o,n,t.components.mergeClassNameAndStyle):n}function mm({props:e,name:t}){const r=I.useContext(pm);return hm({props:e,name:t,theme:{components:r}})}let Zs=0;function gm(e){const[t,r]=I.useState(e),n=e||t;return I.useEffect(()=>{t==null&&(Zs+=1,r(`mui-${Zs}`))},[t]),n}const vm={...I},el=vm.useId;function La(e){if(el!==void 0){const t=el();return e??t}return gm(e)}const tl={theme:void 0};function ym(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(tl.theme=o.theme,i=Fc(e(tl)),t=i,r=o.theme),i}}function bm(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const rl=(e,t,r,n=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},xm=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([l,c])=>{(!r||r&&!r([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}n(e)},wm=(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 Mi(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return xm(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(l,c))){const f=`--${r?`${r}-`:""}${l.join("-")}`,h=wm(l,c);Object.assign(o,{[f]:h}),rl(i,l,`var(${f})`,d),rl(a,l,`var(${f}, ${h})`,d)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function Sm(e,t={}){const{getSelector:r=S,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:f,css:h,varsWithDefaults:m}=Mi(d,t);let g=m;const x={},{[c]:p,...y}=a;if(Object.entries(y||{}).forEach(([w,C])=>{const{vars:T,css:N,varsWithDefaults:$}=Mi(C,t);g=yt(g,$),x[w]={css:N,vars:T}}),p){const{css:w,vars:C,varsWithDefaults:T}=Mi(p,t);g=yt(g,T),x[c]={css:w,vars:C}}function S(w,C){var N,$;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),w){if(T==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${(($=(N=a[w])==null?void 0:N.palette)==null?void 0:$.mode)||w})`]:{":root":C}};if(T)return e.defaultColorScheme===w?`:root, ${T.replace("%s",String(w))}`:T.replace("%s",String(w))}return":root"}return{vars:g,generateThemeVars:()=>{let w={...f};return Object.entries(x).forEach(([,{vars:C}])=>{w=yt(w,C)}),w},generateStyleSheets:()=>{var D,M;const w=[],C=e.defaultColorScheme||"light";function T(L,v){Object.keys(v).length&&w.push(typeof L=="string"?{[L]:{...v}}:L)}T(r(void 0,{...h}),h);const{[C]:N,...$}=x;if(N){const{css:L}=N,v=(M=(D=a[C])==null?void 0:D.palette)==null?void 0:M.mode,k=!n&&v?{colorScheme:v,...L}:{...L};T(r(C,{...k}),k)}return Object.entries($).forEach(([L,{css:v}])=>{var P,z;const k=(z=(P=a[L])==null?void 0:P.palette)==null?void 0:z.mode,_=!n&&k?{colorScheme:k,...v}:{...v};T(r(L,{..._}),_)}),i&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function Em(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function Wc(e,t){var r,n,o;return I.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}const Fn={black:"#000",white:"#fff"},Cm={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"},zr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Br={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},vn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Vr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Hr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Wr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Uc(){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:Fn.white,default:Fn.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 qc=Uc();function Yc(){return{text:{primary:Fn.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:Fn.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 Qi=Yc();function nl(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fi(e.main,o):t==="dark"&&(e.dark=di(e.main,i)))}function ol(e,t,r,n,o){const i=o.light||o,a=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function jm(e="light"){return e==="dark"?{main:Vr[200],light:Vr[50],dark:Vr[400]}:{main:Vr[700],light:Vr[400],dark:Vr[800]}}function Tm(e="light"){return e==="dark"?{main:zr[200],light:zr[50],dark:zr[400]}:{main:zr[500],light:zr[300],dark:zr[700]}}function Rm(e="light"){return e==="dark"?{main:Br[500],light:Br[300],dark:Br[700]}:{main:Br[700],light:Br[400],dark:Br[800]}}function Nm(e="light"){return e==="dark"?{main:Hr[400],light:Hr[300],dark:Hr[700]}:{main:Hr[700],light:Hr[500],dark:Hr[900]}}function Om(e="light"){return e==="dark"?{main:Wr[400],light:Wr[300],dark:Wr[700]}:{main:Wr[800],light:Wr[500],dark:Wr[900]}}function km(e="light"){return e==="dark"?{main:vn[400],light:vn[300],dark:vn[700]}:{main:"#ed6c02",light:vn[500],dark:vn[900]}}function $m(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Fa(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||jm(t),l=e.secondary||Tm(t),c=e.error||Rm(t),d=e.info||Nm(t),f=e.success||Om(t),h=e.warning||km(t);function m(y){if(o)return $m(y);const S=Qs(y,Qi.text.primary)>=r?Qi.text.primary:qc.text.primary;if(process.env.NODE_ENV!=="production"){const b=Qs(y,S);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${S} on ${y}`,"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(`
83
+ `))}return S}const g=({color:y,name:S,mainShade:b=500,lightShade:R=300,darkShade:w=700})=>{if(y={...y},!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
84
+ The color object needs to have a \`main\` property or a \`${b}\` property.`:fr(11,S?` (${S})`:"",b));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
85
+ \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
86
+
87
+ Did you intend to use one of the following approaches?
88
+
89
+ import { green } from "@mui/material/colors";
90
+
91
+ const theme1 = createTheme({ palette: {
92
+ primary: green,
93
+ } });
94
+
95
+ const theme2 = createTheme({ palette: {
96
+ primary: { main: green[500] },
97
+ } });`:fr(12,S?` (${S})`:"",JSON.stringify(y.main)));return o?(ol(o,y,"light",R,n),ol(o,y,"dark",w,n)):(nl(y,"light",R,n),nl(y,"dark",w,n)),y.contrastText||(y.contrastText=m(y.main)),y};let x;return t==="light"?x=Uc():t==="dark"&&(x=Yc()),process.env.NODE_ENV!=="production"&&(x||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),yt({common:{...Fn},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:d,name:"info"}),success:g({color:f,name:"success"}),grey:Cm,contrastThreshold:r,getContrastText:m,augmentColor:g,tonalOffset:n,...x},i)}function Pm(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${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 Dm(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Mm(e){return Math.round(e*1e5)/1e5}const il={textTransform:"uppercase"},al='"Roboto", "Helvetica", "Arial", sans-serif';function Im(e,t){const{fontFamily:r=al,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:f,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=n/14,g=f||(y=>`${y/c*m}rem`),x=(y,S,b,R,w)=>({fontFamily:r,fontWeight:y,fontSize:g(S),lineHeight:b,...r===al?{letterSpacing:`${Mm(R/S)}em`}:{},...w,...d}),p={h1:x(o,96,1.167,-1.5),h2:x(o,60,1.2,-.5),h3:x(i,48,1.167,0),h4:x(i,34,1.235,.25),h5:x(i,24,1.334,0),h6:x(a,20,1.6,.15),subtitle1:x(i,16,1.75,.15),subtitle2:x(a,14,1.57,.1),body1:x(i,16,1.5,.15),body2:x(i,14,1.43,.15),button:x(a,14,1.75,.4,il),caption:x(i,12,1.66,.4),overline:x(i,12,2.66,1,il),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yt({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...p},h,{clone:!1})}const _m=.2,Am=.14,Lm=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_m})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Am})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Lm})`].join(",")}const Fm=["none",Ne(0,2,1,-1,0,1,1,0,0,1,3,0),Ne(0,3,1,-2,0,2,2,0,0,1,5,0),Ne(0,3,3,-2,0,3,4,0,0,1,8,0),Ne(0,2,4,-1,0,4,5,0,0,1,10,0),Ne(0,3,5,-1,0,5,8,0,0,1,14,0),Ne(0,3,5,-1,0,6,10,0,0,1,18,0),Ne(0,4,5,-2,0,7,10,1,0,2,16,1),Ne(0,5,5,-3,0,8,10,1,0,3,14,2),Ne(0,5,6,-3,0,9,12,1,0,3,16,2),Ne(0,6,6,-3,0,10,14,1,0,4,18,3),Ne(0,6,7,-4,0,11,15,1,0,4,20,3),Ne(0,7,8,-4,0,12,17,2,0,5,22,4),Ne(0,7,8,-4,0,13,19,2,0,5,24,4),Ne(0,7,9,-4,0,14,21,2,0,5,26,4),Ne(0,8,9,-5,0,15,22,2,0,6,28,5),Ne(0,8,10,-5,0,16,24,2,0,6,30,5),Ne(0,8,11,-5,0,17,26,2,0,6,32,5),Ne(0,9,11,-5,0,18,28,2,0,7,34,6),Ne(0,9,12,-6,0,19,29,2,0,7,36,6),Ne(0,10,13,-6,0,20,31,3,0,8,38,7),Ne(0,10,13,-6,0,21,33,3,0,8,40,7),Ne(0,10,14,-6,0,22,35,3,0,8,42,7),Ne(0,11,14,-7,0,23,36,3,0,9,44,8),Ne(0,11,15,-7,0,24,38,3,0,9,46,8)],zm={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)"},Bm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sl(e){return`${Math.round(e)}ms`}function Vm(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Hm(e){const t={...zm,...e.easing},r={...Bm,...e.duration};return{getAutoHeightDuration:Vm,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:l=t.easeInOut,delay:c=0,...d}=i;if(process.env.NODE_ENV!=="production"){const f=m=>typeof m=="string",h=m=>!Number.isNaN(parseFloat(m));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!f(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),f(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!f(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
98
+ `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:sl(a)} ${l} ${typeof c=="string"?c:sl(c)}`).join(",")},...e,easing:t,duration:r}}const Wm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Um(e){return Yt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Gc(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,l]=o[i];!Um(l)||a.startsWith("unstable_")?delete n[a]:Yt(l)&&(n[a]={...l},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
99
+
100
+ const theme = ${JSON.stringify(t,null,2)};
101
+
102
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
103
+ theme.transitions = createTransitions(theme.transitions || {});
104
+
105
+ export default theme;`}function ll(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const qm=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function Ym(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:ko(t,qm(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${ll(r)})`:fi(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${ll(r)})`:di(t,r)}})}function Zi(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:d,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":fr(20));const h=Fa({...i,colorSpace:d}),m=_a(e);let g=yt(m,{mixins:Dm(m.breakpoints,n),palette:h,shadows:Fm.slice(),typography:Im(h,l),transitions:Hm(a),zIndex:{...Wm}});if(g=yt(g,f),g=t.reduce((x,p)=>yt(x,p),g),process.env.NODE_ENV!=="production"){const x=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(y,S)=>{let b;for(b in y){const R=y[b];if(x.includes(b)&&Object.keys(R).length>0){if(process.env.NODE_ENV!=="production"){const w=We("",b);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:R}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
106
+ `))}y[b]={}}}};Object.keys(g.components).forEach(y=>{const S=g.components[y].styleOverrides;S&&y.startsWith("Mui")&&p(S,y)})}return g.unstable_sxConfig={...Qn,...f==null?void 0:f.unstable_sxConfig},g.unstable_sx=function(p){return Mr({sx:p,theme:this})},g.toRuntimeSource=Gc,Ym(g),g}function ea(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 Gm=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=ea(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Kc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Xc(e){return e==="dark"?Gm:[]}function Km(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,a=Fa({...t,colorSpace:o});return{palette:a,opacity:{...Kc(a.mode),...r},overlays:n||Xc(a.mode),...i}}function Xm(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Jm=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Qm=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Jm(e.cssVarPrefix).forEach(l=>{a[l]=r[l],delete r[l]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",t)]:a,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}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 Zm(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function A(e,t,r){!e[t]&&r&&(e[t]=r)}function wn(e){return typeof e!="string"||!e.startsWith("hsl")?e:Vc(e)}function rr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=xn(wn(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().
107
+ 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 eg(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Wt=e=>{try{return e()}catch{}},tg=(e="mui")=>bm(e);function Ii(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=Km({...r,palette:{mode:i,...r==null?void 0:r.palette},colorSpace:e});return}const{palette:a,...l}=Zi({...n,palette:{mode:i,...r==null?void 0:r.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...Kc(i),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Xc(i)},l}function rg(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=Xm,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...f}=e,h=Object.keys(r)[0],m=n||(r.light&&h!=="light"?"light":h),g=tg(i),{[m]:x,light:p,dark:y,...S}=r,b={...S};let R=x;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(R=!0),!R)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:fr(21,m));let w;a&&(w="oklch");const C=Ii(w,b,R,f,m);p&&!b.light&&Ii(w,b,p,void 0,"light"),y&&!b.dark&&Ii(w,b,y,void 0,"dark");let T={defaultColorScheme:m,...C,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:d,getCssVar:g,colorSchemes:b,font:{...Pm(C.typography),...C.font},spacing:eg(f.spacing)};Object.keys(T.colorSchemes).forEach(L=>{const v=T.colorSchemes[L].palette,k=P=>{const z=P.split("-"),B=z[1],q=z[2];return g(P,v[B][q])};v.mode==="light"&&(A(v.common,"background","#fff"),A(v.common,"onBackground","#000")),v.mode==="dark"&&(A(v.common,"background","#000"),A(v.common,"onBackground","#fff"));function _(P,z,B){if(w){let q;return P===Sr&&(q=`transparent ${((1-B)*100).toFixed(0)}%`),P===ye&&(q=`#000 ${(B*100).toFixed(0)}%`),P===be&&(q=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${w}, ${z}, ${q})`}return P(z,B)}if(Zm(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){A(v.Alert,"errorColor",_(ye,v.error.light,.6)),A(v.Alert,"infoColor",_(ye,v.info.light,.6)),A(v.Alert,"successColor",_(ye,v.success.light,.6)),A(v.Alert,"warningColor",_(ye,v.warning.light,.6)),A(v.Alert,"errorFilledBg",k("palette-error-main")),A(v.Alert,"infoFilledBg",k("palette-info-main")),A(v.Alert,"successFilledBg",k("palette-success-main")),A(v.Alert,"warningFilledBg",k("palette-warning-main")),A(v.Alert,"errorFilledColor",Wt(()=>v.getContrastText(v.error.main))),A(v.Alert,"infoFilledColor",Wt(()=>v.getContrastText(v.info.main))),A(v.Alert,"successFilledColor",Wt(()=>v.getContrastText(v.success.main))),A(v.Alert,"warningFilledColor",Wt(()=>v.getContrastText(v.warning.main))),A(v.Alert,"errorStandardBg",_(be,v.error.light,.9)),A(v.Alert,"infoStandardBg",_(be,v.info.light,.9)),A(v.Alert,"successStandardBg",_(be,v.success.light,.9)),A(v.Alert,"warningStandardBg",_(be,v.warning.light,.9)),A(v.Alert,"errorIconColor",k("palette-error-main")),A(v.Alert,"infoIconColor",k("palette-info-main")),A(v.Alert,"successIconColor",k("palette-success-main")),A(v.Alert,"warningIconColor",k("palette-warning-main")),A(v.AppBar,"defaultBg",k("palette-grey-100")),A(v.Avatar,"defaultBg",k("palette-grey-400")),A(v.Button,"inheritContainedBg",k("palette-grey-300")),A(v.Button,"inheritContainedHoverBg",k("palette-grey-A100")),A(v.Chip,"defaultBorder",k("palette-grey-400")),A(v.Chip,"defaultAvatarColor",k("palette-grey-700")),A(v.Chip,"defaultIconColor",k("palette-grey-700")),A(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),A(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),A(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),A(v.LinearProgress,"primaryBg",_(be,v.primary.main,.62)),A(v.LinearProgress,"secondaryBg",_(be,v.secondary.main,.62)),A(v.LinearProgress,"errorBg",_(be,v.error.main,.62)),A(v.LinearProgress,"infoBg",_(be,v.info.main,.62)),A(v.LinearProgress,"successBg",_(be,v.success.main,.62)),A(v.LinearProgress,"warningBg",_(be,v.warning.main,.62)),A(v.Skeleton,"bg",w?_(Sr,v.text.primary,.11):`rgba(${k("palette-text-primaryChannel")} / 0.11)`),A(v.Slider,"primaryTrack",_(be,v.primary.main,.62)),A(v.Slider,"secondaryTrack",_(be,v.secondary.main,.62)),A(v.Slider,"errorTrack",_(be,v.error.main,.62)),A(v.Slider,"infoTrack",_(be,v.info.main,.62)),A(v.Slider,"successTrack",_(be,v.success.main,.62)),A(v.Slider,"warningTrack",_(be,v.warning.main,.62));const P=w?_(ye,v.background.default,.6825):ao(v.background.default,.8);A(v.SnackbarContent,"bg",P),A(v.SnackbarContent,"color",Wt(()=>w?Qi.text.primary:v.getContrastText(P))),A(v.SpeedDialAction,"fabHoverBg",ao(v.background.paper,.15)),A(v.StepConnector,"border",k("palette-grey-400")),A(v.StepContent,"border",k("palette-grey-400")),A(v.Switch,"defaultColor",k("palette-common-white")),A(v.Switch,"defaultDisabledColor",k("palette-grey-100")),A(v.Switch,"primaryDisabledColor",_(be,v.primary.main,.62)),A(v.Switch,"secondaryDisabledColor",_(be,v.secondary.main,.62)),A(v.Switch,"errorDisabledColor",_(be,v.error.main,.62)),A(v.Switch,"infoDisabledColor",_(be,v.info.main,.62)),A(v.Switch,"successDisabledColor",_(be,v.success.main,.62)),A(v.Switch,"warningDisabledColor",_(be,v.warning.main,.62)),A(v.TableCell,"border",_(be,_(Sr,v.divider,1),.88)),A(v.Tooltip,"bg",_(Sr,v.grey[700],.92))}if(v.mode==="dark"){A(v.Alert,"errorColor",_(be,v.error.light,.6)),A(v.Alert,"infoColor",_(be,v.info.light,.6)),A(v.Alert,"successColor",_(be,v.success.light,.6)),A(v.Alert,"warningColor",_(be,v.warning.light,.6)),A(v.Alert,"errorFilledBg",k("palette-error-dark")),A(v.Alert,"infoFilledBg",k("palette-info-dark")),A(v.Alert,"successFilledBg",k("palette-success-dark")),A(v.Alert,"warningFilledBg",k("palette-warning-dark")),A(v.Alert,"errorFilledColor",Wt(()=>v.getContrastText(v.error.dark))),A(v.Alert,"infoFilledColor",Wt(()=>v.getContrastText(v.info.dark))),A(v.Alert,"successFilledColor",Wt(()=>v.getContrastText(v.success.dark))),A(v.Alert,"warningFilledColor",Wt(()=>v.getContrastText(v.warning.dark))),A(v.Alert,"errorStandardBg",_(ye,v.error.light,.9)),A(v.Alert,"infoStandardBg",_(ye,v.info.light,.9)),A(v.Alert,"successStandardBg",_(ye,v.success.light,.9)),A(v.Alert,"warningStandardBg",_(ye,v.warning.light,.9)),A(v.Alert,"errorIconColor",k("palette-error-main")),A(v.Alert,"infoIconColor",k("palette-info-main")),A(v.Alert,"successIconColor",k("palette-success-main")),A(v.Alert,"warningIconColor",k("palette-warning-main")),A(v.AppBar,"defaultBg",k("palette-grey-900")),A(v.AppBar,"darkBg",k("palette-background-paper")),A(v.AppBar,"darkColor",k("palette-text-primary")),A(v.Avatar,"defaultBg",k("palette-grey-600")),A(v.Button,"inheritContainedBg",k("palette-grey-800")),A(v.Button,"inheritContainedHoverBg",k("palette-grey-700")),A(v.Chip,"defaultBorder",k("palette-grey-700")),A(v.Chip,"defaultAvatarColor",k("palette-grey-300")),A(v.Chip,"defaultIconColor",k("palette-grey-300")),A(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),A(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),A(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),A(v.LinearProgress,"primaryBg",_(ye,v.primary.main,.5)),A(v.LinearProgress,"secondaryBg",_(ye,v.secondary.main,.5)),A(v.LinearProgress,"errorBg",_(ye,v.error.main,.5)),A(v.LinearProgress,"infoBg",_(ye,v.info.main,.5)),A(v.LinearProgress,"successBg",_(ye,v.success.main,.5)),A(v.LinearProgress,"warningBg",_(ye,v.warning.main,.5)),A(v.Skeleton,"bg",w?_(Sr,v.text.primary,.13):`rgba(${k("palette-text-primaryChannel")} / 0.13)`),A(v.Slider,"primaryTrack",_(ye,v.primary.main,.5)),A(v.Slider,"secondaryTrack",_(ye,v.secondary.main,.5)),A(v.Slider,"errorTrack",_(ye,v.error.main,.5)),A(v.Slider,"infoTrack",_(ye,v.info.main,.5)),A(v.Slider,"successTrack",_(ye,v.success.main,.5)),A(v.Slider,"warningTrack",_(ye,v.warning.main,.5));const P=w?_(be,v.background.default,.985):ao(v.background.default,.98);A(v.SnackbarContent,"bg",P),A(v.SnackbarContent,"color",Wt(()=>w?qc.text.primary:v.getContrastText(P))),A(v.SpeedDialAction,"fabHoverBg",ao(v.background.paper,.15)),A(v.StepConnector,"border",k("palette-grey-600")),A(v.StepContent,"border",k("palette-grey-600")),A(v.Switch,"defaultColor",k("palette-grey-300")),A(v.Switch,"defaultDisabledColor",k("palette-grey-600")),A(v.Switch,"primaryDisabledColor",_(ye,v.primary.main,.55)),A(v.Switch,"secondaryDisabledColor",_(ye,v.secondary.main,.55)),A(v.Switch,"errorDisabledColor",_(ye,v.error.main,.55)),A(v.Switch,"infoDisabledColor",_(ye,v.info.main,.55)),A(v.Switch,"successDisabledColor",_(ye,v.success.main,.55)),A(v.Switch,"warningDisabledColor",_(ye,v.warning.main,.55)),A(v.TableCell,"border",_(ye,_(Sr,v.divider,1),.68)),A(v.Tooltip,"bg",_(Sr,v.grey[700],.92))}rr(v.background,"default"),rr(v.background,"paper"),rr(v.common,"background"),rr(v.common,"onBackground"),rr(v,"divider"),Object.keys(v).forEach(P=>{const z=v[P];P!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&A(v[P],"mainChannel",xn(wn(z.main))),z.light&&A(v[P],"lightChannel",xn(wn(z.light))),z.dark&&A(v[P],"darkChannel",xn(wn(z.dark))),z.contrastText&&A(v[P],"contrastTextChannel",xn(wn(z.contrastText))),P==="text"&&(rr(v[P],"primary"),rr(v[P],"secondary")),P==="action"&&(z.active&&rr(v[P],"active"),z.selected&&rr(v[P],"selected")))})}),T=t.reduce((L,v)=>yt(L,v),T);const N={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:Qm(T),enableContrastVars:a},{vars:$,generateThemeVars:D,generateStyleSheets:M}=Sm(T,N);return T.vars=$,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([L,v])=>{T[L]=v}),T.generateThemeVars=D,T.generateStyleSheets=M,T.generateSpacing=function(){return _c(f.spacing,Ra(this))},T.getColorSchemeSelector=Em(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...Qn,...f==null?void 0:f.unstable_sxConfig},T.unstable_sx=function(v){return Mr({sx:v,theme:this})},T.toRuntimeSource=Gc,T}function cl(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Fa({...r===!0?{}:r.palette,mode:t})})}function Jc(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...a}=e,l=i||"light",c=o==null?void 0:o[l],d={...o,...r?{[l]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Zi(e,...t);let f=r;"palette"in e||d[l]&&(d[l]!==!0?f=d[l].palette:l==="dark"&&(f={mode:"dark"}));const h=Zi({...e,palette:f},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},cl(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},cl(h,"light",d.light)),h}return!r&&!("light"in d)&&l==="light"&&(d.light=!0),rg({...a,colorSchemes:d,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const Qc=Jc(),za="$$material";function Ba(){const e=Ac(Qc);return process.env.NODE_ENV!=="production"&&I.useDebugValue(e),e[za]||e}function ng(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zc=e=>ng(e)&&e!=="classes",ve=tm({themeId:za,defaultTheme:Qc,rootShouldForwardProp:Zc});function og(){return yc}const Qe=ym;process.env.NODE_ENV!=="production"&&(u.node,u.object.isRequired);function Ke(e){return mm(e)}function ig(e){return We("MuiSvgIcon",e)}Be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ag=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(r)}`]};return Ze(o,ig,n)},sg=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ae(r.color)}`],t[`fontSize${ae(r.fontSize)}`]]}})(Qe(({theme:e})=>{var t,r,n,o,i,a,l,c,d,f,h,m,g,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,S;return{props:{color:p},style:{color:(S=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(x=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),$o=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:h,viewBox:m="0 0 24 24",...g}=n,x=I.isValidElement(o)&&o.type==="svg",p={...n,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:x},y={};f||(y.viewBox=m);const S=ag(p);return s.jsxs(sg,{as:l,className:ue(S.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r,...y,...g,...x&&o.props,ownerState:p,children:[x?o.props.children:o,h?s.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&($o.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),u.string]),component:u.elementType,fontSize:u.oneOfType([u.oneOf(["inherit","large","medium","small"]),u.string]),htmlColor:u.string,inheritViewBox:u.bool,shapeRendering:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),titleAccess:u.string,viewBox:u.string});$o.muiName="SvgIcon";function ee(e,t){function r(n,o){return s.jsx($o,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=$o.muiName,I.memo(I.forwardRef(r))}function ul(e){return e&&e.ownerDocument||document}function dl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lg(e){const{controlled:t,default:r,name:n,state:o="value"}=e,{current:i}=I.useRef(t!==void 0),[a,l]=I.useState(r),c=i?t:a;if(process.env.NODE_ENV!=="production"){I.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
108
+ `))},[o,n,t]);const{current:f}=I.useRef(r);I.useEffect(()=>{!i&&JSON.stringify(r)!==JSON.stringify(f)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
109
+ `))},[JSON.stringify(r)])}const d=I.useCallback(f=>{i||l(f)},[]);return[c,d]}function Qr(e){const t=I.useRef(e);return Ln(()=>{t.current=e}),I.useRef((...r)=>(0,t.current)(...r)).current}function Jt(...e){const t=I.useRef(void 0),r=I.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(n);return typeof l=="function"?l:()=>{a(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return I.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const cg=ee([s.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),s.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),ug=ee(s.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),dg=ee(s.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),eu=ee(s.jsx("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFile"),fg=ee(s.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),pg=ee(s.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),hg=ee(s.jsx("path",{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"}),"Checklist"),mg=ee(s.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),gg=ee(s.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),vg=ee(s.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),tu=ee(s.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),yg=ee(s.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),bg=ee(s.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),xg=ee(s.jsx("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange"),ru=ee(s.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"),wg=ee(s.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),Sg=ee(s.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),Eg=ee(s.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator"),Cg=ee(s.jsx("path",{d:"m18.85 10.39 1.06-1.06c.78-.78.78-2.05 0-2.83L18.5 5.09c-.78-.78-2.05-.78-2.83 0l-1.06 1.06zm-5.66-2.83L4 16.76V21h4.24l9.19-9.19zM19 17.5c0 2.19-2.54 3.5-5 3.5-.55 0-1-.45-1-1s.45-1 1-1c1.54 0 3-.73 3-1.5 0-.47-.48-.87-1.23-1.2l1.48-1.48c1.07.63 1.75 1.47 1.75 2.68M4.58 13.35C3.61 12.79 3 12.06 3 11c0-1.8 1.89-2.63 3.56-3.36C7.59 7.18 9 6.56 9 6c0-.41-.78-1-2-1-1.26 0-1.8.61-1.83.64-.35.41-.98.46-1.4.12-.41-.34-.49-.95-.15-1.38C3.73 4.24 4.76 3 7 3s4 1.32 4 3c0 1.87-1.93 2.72-3.64 3.47C6.42 9.88 5 10.5 5 11c0 .31.43.6 1.07.86z"}),"Draw"),jg=ee(s.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),Tg=ee(s.jsx("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event"),Rg=ee(s.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),Ng=ee(s.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Og=ee(s.jsx("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"}),"FormatAlignCenter"),kg=ee(s.jsx("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"}),"FormatAlignLeft"),$g=ee(s.jsx("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"}),"FormatAlignRight"),Pg=ee(s.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"}),"FormatBold"),Dg=ee(s.jsx("path",{d:"M3.27 5 2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5z"}),"FormatClear"),Mg=ee(s.jsx("path",{d:"M2 20h20v4H2zm3.49-3h2.42l1.27-3.58h5.65L16.09 17h2.42L13.25 3h-2.5zm4.42-5.61 2.03-5.79h.12l2.03 5.79z"}),"FormatColorText"),Ig=ee(s.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic"),_g=ee(s.jsx("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"}),"FormatListBulleted"),Ag=ee(s.jsx("path",{d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"}),"FormatListNumbered"),Lg=ee(s.jsx("path",{d:"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"}),"FormatQuote"),Fg=ee(s.jsx("path",{d:"M10 19h4v-3h-4zM5 4v3h5v3h4V7h5V4zM3 14h18v-2H3z"}),"FormatStrikethrough"),zg=ee(s.jsx("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"}),"FormatUnderlined"),Bg=ee(s.jsx("path",{fillRule:"evenodd",d:"M4 11h16v2H4z"}),"HorizontalRule"),nu=ee(s.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),Vg=ee(s.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),ou=ee(s.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),Hg=ee(s.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock"),Wg=ee(s.jsx("path",{d:"M3 18h12v-2H3zM3 6v2h18V6zm0 7h18v-2H3z"}),"Notes"),Ug=ee(s.jsx("path",{d:"m20.5 10 .5-2h-4l1-4h-2l-1 4h-4l1-4h-2L9 8H5l-.5 2h4l-1 4h-4L3 16h4l-1 4h2l1-4h4l-1 4h2l1-4h4l.5-2h-4l1-4zm-7 4h-4l1-4h4z"}),"Numbers"),qg=ee(s.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"Palette"),Yg=ee(s.jsx("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"}),"Phone"),Gg=ee(s.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"}),"PictureAsPdf"),Kg=ee(s.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.89-2-2-2m0 16H5V7h14zm-5.5-6c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5M12 9c-2.73 0-5.06 1.66-6 4 .94 2.34 3.27 4 6 4s5.06-1.66 6-4c-.94-2.34-3.27-4-6-4m0 6.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"Preview"),Xg=ee(s.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonChecked"),Jg=ee(s.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"Redo"),Qg=ee(s.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),Zg=ee(s.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),ev=ee(s.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),tv=ee(s.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),rv=ee(s.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),nv=ee(s.jsx("path",{d:"M14 17H4v2h10zm6-8H4v2h16zM4 15h16v-2H4zM4 5v2h16V5z"}),"Subject"),ov=ee(s.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields"),xo=ee(s.jsx("path",{d:"M5 4v3h5.5v12h3V7H19V4z"}),"Title"),iv=ee(s.jsx("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5m0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3"}),"ToggleOn"),av=ee(s.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune"),sv=ee(s.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo"),lv=ee(s.jsx("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload"),cv=ee(s.jsx("path",{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2m0-10H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ViewAgenda"),uv=ee(s.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),dv=ee(s.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),fv=ee(s.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),Oe=({icon:e,size:t="small",color:r="inherit",className:n=""})=>{const i={text_fields:ov,numbers:Ug,email:jg,lock:Hg,phone:Yg,link:ou,search:ev,notes:Wg,checklist:hg,arrow_drop_down:dg,check_box:pg,radio_button_checked:Xg,toggle_on:iv,star:rv,tune:av,event:Tg,calendar_today:fg,access_time:cg,date_range:xg,palette:qg,format_color_text:Mg,attach_file:eu,image:nu,draw:Cg,dashboard:bg,title:xo,subject:nv,horizontal_rule:Bg,view_agenda:cv,warning:fv,drag_indicator:Eg,content_copy:yg,delete:ru,close:gg,add:ug,remove:Qg,settings:tv,save:Zg,upload:lv,download:Sg,undo:sv,redo:Jg,preview:Kg,code:tu,expand_more:Ng,expand_less:Rg,chevron_right:mg,visibility:uv,visibility_off:dv}[e];return i?s.jsx(i,{fontSize:t,color:r,className:n}):s.jsx("span",{className:n,children:e})},pv=({fieldType:e,label:t,icon:r})=>{const{attributes:n,listeners:o,setNodeRef:i,transform:a,isDragging:l}=dc({id:`new-${e}`,data:{type:"new-field",fieldType:e}}),c={transform:ir.Translate.toString(a),opacity:l?.5:1};return s.jsxs("div",{ref:i,style:c,...o,...n,className:"draggable-field",role:"button",tabIndex:0,children:[r&&s.jsx(Oe,{icon:r,className:"field-icon"}),s.jsx("span",{className:"field-label",children:t})]})},fl=[{name:"Basic Input",icon:"text_fields",fields:[{type:"text",label:"Text Input",icon:"text_fields"},{type:"number",label:"Number",icon:"numbers"},{type:"email",label:"Email",icon:"email"},{type:"password",label:"Password",icon:"lock"},{type:"phone",label:"Phone",icon:"phone"},{type:"url",label:"URL",icon:"link"},{type:"textarea",label:"Text Area",icon:"notes"}]},{name:"Choice",icon:"checklist",fields:[{type:"select",label:"Dropdown",icon:"arrow_drop_down"},{type:"checkbox",label:"Checkbox",icon:"check_box"},{type:"radio",label:"Radio Group",icon:"radio_button_checked"},{type:"switch",label:"Switch",icon:"toggle_on"},{type:"rating",label:"Rating",icon:"star"},{type:"range",label:"Range Slider",icon:"tune"}]},{name:"Date & Time",icon:"event",fields:[{type:"date",label:"Date Picker",icon:"calendar_today"},{type:"time",label:"Time Picker",icon:"access_time"},{type:"datetime",label:"Date & Time",icon:"event"},{type:"daterange",label:"Date Range",icon:"date_range"}]},{name:"Rich Inputs",icon:"palette",fields:[{type:"richtext",label:"Rich Text Editor",icon:"format_color_text"},{type:"file",label:"File Upload",icon:"attach_file"},{type:"image",label:"Image Upload",icon:"image"},{type:"signature",label:"Signature",icon:"draw"}]},{name:"Layout & Display",icon:"dashboard",fields:[{type:"header",label:"Header",icon:"title"},{type:"paragraph",label:"Paragraph",icon:"subject"},{type:"divider",label:"Divider",icon:"horizontal_rule"},{type:"section",label:"Section",icon:"view_agenda"},{type:"alert",label:"Alert",icon:"warning"}]}],pl=e=>{const t={type:e,label:"",placeholder:"",helpText:"",required:!1,disabled:!1,hidden:!1,style:{width:"100%",textAlign:"left"}};switch(e){case"text":return{...t,label:"Text Field",placeholder:"Enter text...",name:"text_field"};case"number":return{...t,label:"Number Field",placeholder:"Enter number...",name:"number_field"};case"email":return{...t,label:"Email",placeholder:"email@example.com",name:"email"};case"password":return{...t,label:"Password",placeholder:"Enter password...",name:"password"};case"textarea":return{...t,label:"Text Area",placeholder:"Enter multiple lines of text...",name:"textarea"};case"select":return{...t,label:"Select",placeholder:"Choose an option",name:"select_field",options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}]};case"checkbox":return{...t,label:"Checkbox Group",name:"checkbox_group",options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"}]};case"radio":return{...t,label:"Radio Group",name:"radio_group",options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"}]};case"date":return{...t,label:"Date",name:"date_field"};case"time":return{...t,label:"Time",name:"time_field"};case"file":return{...t,label:"File Upload",name:"file_upload",accept:"*",multiple:!1};case"phone":return{...t,label:"Phone",placeholder:"(123) 456-7890",name:"phone"};case"url":return{...t,label:"URL",placeholder:"https://example.com",name:"url"};case"switch":return{...t,label:"Switch",name:"switch_field",onLabel:"On",offLabel:"Off"};case"rating":return{...t,label:"Rating",name:"rating",placeholder:void 0,maxRating:5,allowHalf:!1,icon:"star"};case"range":return{...t,label:"Range",name:"range",min:0,max:100,step:1,showValue:!0};case"datetime":return{...t,label:"Date & Time",name:"datetime_field"};case"daterange":return{...t,label:"Date Range",name:"daterange_field",startLabel:"Start Date",endLabel:"End Date"};case"richtext":return{...t,label:"Rich Text",name:"richtext_field",toolbar:["bold","italic","underline","link","list"]};case"color":return{...t,label:"Color",name:"color_field",format:"hex",showInput:!0};case"image":return{...t,label:"Image Upload",name:"image_upload",accept:"image/*",multiple:!1};case"signature":return{...t,label:"Signature",name:"signature_field"};case"section":return{...t,type:"section",title:"Section Title",collapsible:!0,collapsed:!1};case"alert":return{...t,type:"alert",content:"This is an alert message",alertType:"info"};case"header":return{...t,type:"header",content:"Header Text",level:2};case"paragraph":return{...t,type:"paragraph",content:"This is a paragraph of text. You can edit this content."};case"divider":return{...t,type:"divider"};default:return t}},hv=()=>{const[e,t]=E.useState(""),[r,n]=E.useState(new Set(fl.map(a=>a.name))),o=a=>{n(l=>{const c=new Set(l);return c.has(a)?c.delete(a):c.add(a),c})},i=fl.map(a=>({...a,fields:a.fields.filter(l=>l.label.toLowerCase().includes(e.toLowerCase()))})).filter(a=>a.fields.length>0);return s.jsxs("div",{className:"component-panel",children:[s.jsxs("div",{className:"panel-header",children:[s.jsx("h3",{children:"Components"}),s.jsx("input",{type:"text",placeholder:"Search fields...",value:e,onChange:a=>t(a.target.value),className:"search-input"})]}),s.jsx("div",{className:"field-categories",children:i.map(a=>s.jsxs("div",{className:"field-category",children:[s.jsxs("button",{className:"category-header",onClick:()=>o(a.name),"aria-expanded":r.has(a.name),children:[s.jsx(Oe,{icon:a.icon||"folder",className:"category-icon"}),s.jsx("span",{className:"category-name",children:a.name}),s.jsx(Oe,{icon:r.has(a.name)?"expand_more":"chevron_right",className:"category-toggle"})]}),r.has(a.name)&&s.jsx("div",{className:"category-fields",children:a.fields.map(l=>s.jsx(pv,{fieldType:l.type,label:l.label,icon:l.icon},l.type))})]},a.name))})]})};function iu(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function mv(e,t){return e.reduce((r,n,o)=>{const i=t.get(n);return i&&(r[o]=i),r},Array(e.length))}function so(e){return e!==null&&e>=0}function gv(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function vv(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const au=e=>{let{rects:t,activeIndex:r,overIndex:n,index:o}=e;const i=iu(t,n,r),a=t[o],l=i[o];return!l||!a?null:{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}},lo={scaleX:1,scaleY:1},yv=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:o,rects:i,overIndex:a}=e;const l=(t=i[r])!=null?t:n;if(!l)return null;if(o===r){const d=i[a];return d?{x:0,y:r<a?d.top+d.height-(l.top+l.height):d.top-l.top,...lo}:null}const c=bv(i,o,r);return o>r&&o<=a?{x:0,y:-l.height-c,...lo}:o<r&&o>=a?{x:0,y:l.height+c,...lo}:{x:0,y:0,...lo}};function bv(e,t,r){const n=e[t],o=e[t-1],i=e[t+1];return n?r<t?o?n.top-(o.top+o.height):i?i.top-(n.top+n.height):0:i?i.top-(n.top+n.height):o?n.top-(o.top+o.height):0:0}const su="Sortable",lu=E.createContext({activeIndex:-1,containerId:su,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:au,disabled:{draggable:!1,droppable:!1}});function xv(e){let{children:t,id:r,items:n,strategy:o=au,disabled:i=!1}=e;const{active:a,dragOverlay:l,droppableRects:c,over:d,measureDroppableContainers:f}=fc(),h=Gn(su,r),m=l.rect!==null,g=E.useMemo(()=>n.map(T=>typeof T=="object"&&"id"in T?T.id:T),[n]),x=a!=null,p=a?g.indexOf(a.id):-1,y=d?g.indexOf(d.id):-1,S=E.useRef(g),b=!gv(g,S.current),R=y!==-1&&p===-1||b,w=vv(i);At(()=>{b&&x&&f(g)},[b,g,x,f]),E.useEffect(()=>{S.current=g},[g]);const C=E.useMemo(()=>({activeIndex:p,containerId:h,disabled:w,disableTransforms:R,items:g,overIndex:y,useDragOverlay:m,sortedRects:mv(g,c),strategy:o}),[p,h,w.draggable,w.droppable,R,g,y,c,m,o]);return E.createElement(lu.Provider,{value:C},t)}const wv=e=>{let{id:t,items:r,activeIndex:n,overIndex:o}=e;return iu(r,n,o).indexOf(t)},Sv=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:d}=e;return!d||!n||l!==i&&o===a?!1:r?!0:a!==o&&t===c},Ev={duration:200,easing:"ease"},cu="transform",Cv=ir.Transition.toString({property:cu,duration:0,easing:"linear"}),jv={roleDescription:"sortable"};function Tv(e){let{disabled:t,index:r,node:n,rect:o}=e;const[i,a]=E.useState(null),l=E.useRef(r);return At(()=>{if(!t&&r!==l.current&&n.current){const c=o.current;if(c){const d=un(n.current,{ignoreTransform:!0}),f={x:c.left-d.left,y:c.top-d.top,scaleX:c.width/d.width,scaleY:c.height/d.height};(f.x||f.y)&&a(f)}}r!==l.current&&(l.current=r)},[t,r,n,o]),E.useEffect(()=>{i&&a(null)},[i]),i}function Rv(e){let{animateLayoutChanges:t=Sv,attributes:r,disabled:n,data:o,getNewIndex:i=wv,id:a,strategy:l,resizeObserverConfig:c,transition:d=Ev}=e;const{items:f,containerId:h,activeIndex:m,disabled:g,disableTransforms:x,sortedRects:p,overIndex:y,useDragOverlay:S,strategy:b}=E.useContext(lu),R=Nv(n,g),w=f.indexOf(a),C=E.useMemo(()=>({sortable:{containerId:h,index:w,items:f},...o}),[h,o,w,f]),T=E.useMemo(()=>f.slice(f.indexOf(a)),[f,a]),{rect:N,node:$,isOver:D,setNodeRef:M}=Wi({id:a,data:C,disabled:R.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...c}}),{active:L,activatorEvent:v,activeNodeRect:k,attributes:_,setNodeRef:P,listeners:z,isDragging:B,over:q,setActivatorNodeRef:U,transform:O}=dc({id:a,data:C,attributes:{...jv,...r},disabled:R.draggable}),F=dd(M,P),W=!!L,X=W&&!x&&so(m)&&so(y),Y=!S&&B,Z=Y&&X?O:null,Q=X?Z??(l??b)({rects:p,activeNodeRect:k,activeIndex:m,overIndex:y,index:w}):null,te=so(m)&&so(y)?i({id:a,items:f,activeIndex:m,overIndex:y}):w,oe=L==null?void 0:L.id,G=E.useRef({activeId:oe,items:f,newIndex:te,containerId:h}),de=f!==G.current.items,H=t({active:L,containerId:h,isDragging:B,isSorting:W,id:a,index:w,items:f,newIndex:G.current.newIndex,previousItems:G.current.items,previousContainerId:G.current.containerId,transition:d,wasDragging:G.current.activeId!=null}),xe=Tv({disabled:!H,index:w,node:$,rect:N});return E.useEffect(()=>{W&&G.current.newIndex!==te&&(G.current.newIndex=te),h!==G.current.containerId&&(G.current.containerId=h),f!==G.current.items&&(G.current.items=f)},[W,te,h,f]),E.useEffect(()=>{if(oe===G.current.activeId)return;if(oe!=null&&G.current.activeId==null){G.current.activeId=oe;return}const ke=setTimeout(()=>{G.current.activeId=oe},50);return()=>clearTimeout(ke)},[oe]),{active:L,activeIndex:m,attributes:_,data:C,rect:N,index:w,newIndex:te,items:f,isOver:D,isSorting:W,isDragging:B,listeners:z,node:$,overIndex:y,over:q,setNodeRef:F,setActivatorNodeRef:U,setDroppableNodeRef:M,setDraggableNodeRef:P,transform:xe??Q,transition:we()};function we(){if(xe||de&&G.current.newIndex===w)return Cv;if(!(Y&&!Yo(v)||!d)&&(W||H))return ir.Transition.toString({...d,property:cu})}}function Nv(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}function Po(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Ov=[le.Down,le.Right,le.Up,le.Left],kv=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(Ov.includes(e.code)){if(e.preventDefault(),!r||!n)return;const c=[];i.getEnabled().forEach(h=>{if(!h||h!=null&&h.disabled)return;const m=o.get(h.id);if(m)switch(e.code){case le.Down:n.top<m.top&&c.push(h);break;case le.Up:n.top>m.top&&c.push(h);break;case le.Left:n.left>m.left&&c.push(h);break;case le.Right:n.left<m.left&&c.push(h);break}});const d=Nd({collisionRect:n,droppableRects:o,droppableContainers:c});let f=Kl(d,"id");if(f===(a==null?void 0:a.id)&&d.length>1&&(f=d[1].id),f!=null){const h=i.get(r.id),m=i.get(f),g=m?o.get(m.id):null,x=m==null?void 0:m.node.current;if(x&&g&&h&&m){const y=Go(x).some((T,N)=>l[N]!==T),S=uu(h,m),b=$v(h,m),R=y||!S?{x:0,y:0}:{x:b?n.width-g.width:0,y:b?n.height-g.height:0},w={x:g.left,y:g.top};return R.x&&R.y?w:$n(w,R)}}}};function uu(e,t){return!Po(e)||!Po(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function $v(e,t){return!Po(e)||!Po(t)||!uu(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const hl=e=>{let t;const r=new Set,n=(d,f)=>{const h=typeof d=="function"?d(t):d;if(!Object.is(h,t)){const m=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),r.forEach(g=>g(t,m))}},o=()=>t,l={setState:n,getState:o,getInitialState:()=>c,subscribe:d=>(r.add(d),()=>r.delete(d))},c=t=e(n,o,l);return l},Pv=e=>e?hl(e):hl,Dv=e=>e;function Mv(e,t=Dv){const r=E.useSyncExternalStore(e.subscribe,E.useCallback(()=>t(e.getState()),[e,t]),E.useCallback(()=>t(e.getInitialState()),[e,t]));return E.useDebugValue(r),r}const Iv=e=>{const t=Pv(e),r=n=>Mv(t,n);return Object.assign(r,t),r},_v=e=>Iv;var du=Symbol.for("immer-nothing"),ml=Symbol.for("immer-draftable"),xt=Symbol.for("immer-state"),Av=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ut(e,...t){if(process.env.NODE_ENV!=="production"){const r=Av[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var en=Object.getPrototypeOf;function tn(e){return!!e&&!!e[xt]}function Ir(e){var t;return e?fu(e)||Array.isArray(e)||!!e[ml]||!!((t=e.constructor)!=null&&t[ml])||to(e)||hi(e):!1}var Lv=Object.prototype.constructor.toString();function fu(e){if(!e||typeof e!="object")return!1;const t=en(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Lv}function Do(e,t){pi(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function pi(e){const t=e[xt];return t?t.type_:Array.isArray(e)?1:to(e)?2:hi(e)?3:0}function ta(e,t){return pi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function pu(e,t,r){const n=pi(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Fv(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function to(e){return e instanceof Map}function hi(e){return e instanceof Set}function Cr(e){return e.copy_||e.base_}function ra(e,t){if(to(e))return new Map(e);if(hi(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=fu(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[xt];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],l=n[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(n[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[a]})}return Object.create(en(e),n)}else{const n=en(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Va(e,t=!1){return mi(e)||tn(e)||!Ir(e)||(pi(e)>1&&Object.defineProperties(e,{set:{value:co},add:{value:co},clear:{value:co},delete:{value:co}}),Object.freeze(e),t&&Object.values(e).forEach(r=>Va(r,!0))),e}function co(){ut(2)}function mi(e){return Object.isFrozen(e)}var zv={};function _r(e){const t=zv[e];return t||ut(0,e),t}var zn;function hu(){return zn}function Bv(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function gl(e,t){t&&(_r("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function na(e){oa(e),e.drafts_.forEach(Vv),e.drafts_=null}function oa(e){e===zn&&(zn=e.parent_)}function vl(e){return zn=Bv(zn,e)}function Vv(e){const t=e[xt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function yl(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[xt].modified_&&(na(t),ut(4)),Ir(e)&&(e=Mo(t,e),t.parent_||Io(t,e)),t.patches_&&_r("Patches").generateReplacementPatches_(r[xt].base_,e,t.patches_,t.inversePatches_)):e=Mo(t,r,[]),na(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==du?e:void 0}function Mo(e,t,r){if(mi(t))return t;const n=t[xt];if(!n)return Do(t,(o,i)=>bl(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Io(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let i=o,a=!1;n.type_===3&&(i=new Set(o),o.clear(),a=!0),Do(i,(l,c)=>bl(e,n,o,l,c,r,a)),Io(e,o,!1),r&&e.patches_&&_r("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function bl(e,t,r,n,o,i,a){if(process.env.NODE_ENV!=="production"&&o===r&&ut(5),tn(o)){const l=i&&t&&t.type_!==3&&!ta(t.assigned_,n)?i.concat(n):void 0,c=Mo(e,o,l);if(pu(r,n,c),tn(c))e.canAutoFreeze_=!1;else return}else a&&r.add(o);if(Ir(o)&&!mi(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Mo(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(to(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Io(e,o)}}function Io(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Va(t,r)}function Hv(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:hu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Ha;r&&(o=[n],i=Bn);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return n.draft_=l,n.revoke_=a,l}var Ha={get(e,t){if(t===xt)return e;const r=Cr(e);if(!ta(r,t))return Wv(e,r,t);const n=r[t];return e.finalized_||!Ir(n)?n:n===_i(e.base_,t)?(Ai(e),e.copy_[t]=aa(n,e)):n},has(e,t){return t in Cr(e)},ownKeys(e){return Reflect.ownKeys(Cr(e))},set(e,t,r){const n=mu(Cr(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=_i(Cr(e),t),i=o==null?void 0:o[xt];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Fv(r,o)&&(r!==void 0||ta(e.base_,t)))return!0;Ai(e),ia(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return _i(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ai(e),ia(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Cr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ut(11)},getPrototypeOf(e){return en(e.base_)},setPrototypeOf(){ut(12)}},Bn={};Do(Ha,(e,t)=>{Bn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Bn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ut(13),Bn.set.call(this,e,t,void 0)};Bn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ut(14),Ha.set.call(this,e[0],t,r,e[0])};function _i(e,t){const r=e[xt];return(r?Cr(r):e)[t]}function Wv(e,t,r){var o;const n=mu(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function mu(e,t){if(!(t in e))return;let r=en(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=en(r)}}function ia(e){e.modified_||(e.modified_=!0,e.parent_&&ia(e.parent_))}function Ai(e){e.copy_||(e.copy_=ra(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Uv=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const a=this;return function(c=i,...d){return a.produce(c,f=>r.call(this,f,...d))}}typeof r!="function"&&ut(6),n!==void 0&&typeof n!="function"&&ut(7);let o;if(Ir(t)){const i=vl(this),a=aa(t,void 0);let l=!0;try{o=r(a),l=!1}finally{l?na(i):oa(i)}return gl(i,n),yl(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===du&&(o=void 0),this.autoFreeze_&&Va(o,!0),n){const i=[],a=[];_r("Patches").generateReplacementPatches_(t,o,i,a),n(i,a)}return o}else ut(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,c=>t(c,...l));let n,o;return[this.produce(t,r,(a,l)=>{n=a,o=l}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ir(e)||ut(8),tn(e)&&(e=qv(e));const t=vl(this),r=aa(e,void 0);return r[xt].isManual_=!0,oa(t),r}finishDraft(e,t){const r=e&&e[xt];(!r||!r.isManual_)&&ut(9);const{scope_:n}=r;return gl(n,t),yl(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=_r("Patches").applyPatches_;return tn(e)?n(e,t):this.produce(e,o=>n(o,t))}};function aa(e,t){const r=to(e)?_r("MapSet").proxyMap_(e,t):hi(e)?_r("MapSet").proxySet_(e,t):Hv(e,t);return(t?t.scope_:hu()).drafts_.push(r),r}function qv(e){return tn(e)||ut(10,e),gu(e)}function gu(e){if(!Ir(e)||mi(e))return e;const t=e[xt];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=ra(e,t.scope_.immer_.useStrictShallowCopy_)}else r=ra(e,!0);return Do(r,(n,o)=>{pu(r,n,gu(o))}),t&&(t.finalized_=!1),r}var Yv=new Uv,Gv=Yv.produce;const Kv=e=>(t,r,n)=>(n.setState=(o,i,...a)=>{const l=typeof o=="function"?Gv(o):o;return t(l,i,...a)},e(n.setState,r,n)),Xv=Kv,Jv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Rn=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=Jv[r[e]&63];return t};const sa={required:(e,t)=>{var r;return t.required&&!e?((r=t.validation)==null?void 0:r.customMessage)||`${t.label||"This field"} is required`:null},minLength:(e,t)=>{var r;return(r=t.validation)!=null&&r.minLength&&e&&e.length<t.validation.minLength?`Minimum length is ${t.validation.minLength} characters`:null},maxLength:(e,t)=>{var r;return(r=t.validation)!=null&&r.maxLength&&e&&e.length>t.validation.maxLength?`Maximum length is ${t.validation.maxLength} characters`:null},min:(e,t)=>{var r;return((r=t.validation)==null?void 0:r.min)!==void 0&&e<t.validation.min?`Minimum value is ${t.validation.min}`:null},max:(e,t)=>{var r;return((r=t.validation)==null?void 0:r.max)!==void 0&&e>t.validation.max?`Maximum value is ${t.validation.max}`:null},email:(e,t)=>t.type==="email"&&e&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?"Please enter a valid email address":null,phone:(e,t)=>null,url:(e,t)=>{if(t.type==="url"&&e)try{new URL(e)}catch{return"Please enter a valid URL"}return null},pattern:(e,t)=>{var r;return(r=t.validation)!=null&&r.pattern&&e&&!new RegExp(t.validation.pattern).test(e)?t.validation.customMessage||"Invalid format":null}},Vn=(e,t,r)=>{if(["header","paragraph","divider","section","alert"].includes(e.type))return null;for(const n in sa){const o=sa[n](t,e,r);if(o)return o}if(e.validation&&"custom"in e.validation&&typeof e.validation.custom=="function"){const n=e.validation.custom(t);if(n)return n}return null},vu=(e,t)=>{const r=[];return e.forEach(n=>{const o=t[n.name||n.id],i=Vn(n,o,t);i&&r.push({fieldId:n.id,message:i})}),r},qr=(e,t)=>(r,n,o)=>e(r,o)?null:t,Qv={confirmPassword:qr((e,t)=>e===(t==null?void 0:t.password),"Passwords do not match"),minAge:e=>qr(t=>{if(!t)return!0;const r=new Date(t);return new Date().getFullYear()-r.getFullYear()>=e},`Must be at least ${e} years old`),fileSize:e=>qr(t=>!t||!t[0]?!0:t[0].size<=e*1024*1024,`File size must be less than ${e}MB`),futureDate:qr(e=>{if(!e)return!0;const t=new Date(e),r=new Date;return r.setHours(0,0,0,0),t>=r},"Date must be in the future"),pastDate:qr(e=>{if(!e)return!0;const t=new Date(e),r=new Date;return r.setHours(0,0,0,0),t<r},"Date must be in the past")},Li={id:Rn(),title:"Untitled Form",description:"",fields:[],settings:{submitButtonText:"Submit",cancelButtonText:"Cancel",showLabels:!0,labelPosition:"top",theme:"light"}},Rt=_v()(Xv((e,t)=>{const r=()=>{e(o=>{const i={schema:JSON.parse(JSON.stringify(o.schema)),selectedFieldId:o.selectedFieldId};o.history=o.history.slice(0,o.historyIndex+1),o.history.push(i),o.historyIndex=o.history.length-1,o.history.length>o.maxHistorySize&&(o.history.shift(),o.historyIndex--)})},n={schema:JSON.parse(JSON.stringify(Li)),selectedFieldId:null};return{schema:Li,selectedFieldId:null,isDragging:!1,formValues:{},formErrors:{},history:[n],historyIndex:0,maxHistorySize:50,previewDevice:"desktop",setSchema:o=>e(i=>{i.schema=o,i.formValues={},i.formErrors={};const a={schema:JSON.parse(JSON.stringify(o)),selectedFieldId:null};i.history=[a],i.historyIndex=0}),addField:(o,i)=>{e(a=>{const l={...o,id:o.id||Rn()};i!==void 0&&i>=0?a.schema.fields.splice(i,0,l):a.schema.fields.push(l),a.selectedFieldId=l.id}),r()},updateField:(o,i)=>{e(a=>{const l=a.schema.fields.findIndex(c=>c.id===o);l!==-1&&(a.schema.fields[l]={...a.schema.fields[l],...i})}),r()},removeField:o=>{e(i=>{i.schema.fields=i.schema.fields.filter(a=>a.id!==o),i.selectedFieldId===o&&(i.selectedFieldId=null)}),r()},moveField:(o,i)=>{o!==i&&(e(a=>{const l=a.schema.fields[o];a.schema.fields.splice(o,1),a.schema.fields.splice(i,0,l)}),r())},duplicateField:o=>{e(i=>{const a=i.schema.fields.findIndex(l=>l.id===o);if(a!==-1){const l=i.schema.fields[a],c={...l,id:Rn(),name:l.name?`${l.name}_copy`:void 0,label:l.label?`${l.label} (Copy)`:void 0};i.schema.fields.splice(a+1,0,c),i.selectedFieldId=c.id}}),r()},selectField:o=>e(i=>{i.selectedFieldId=o}),setIsDragging:o=>e(i=>{i.isDragging=o}),clearForm:()=>e(o=>{o.schema={...Li,id:Rn()},o.selectedFieldId=null}),updateFormSettings:o=>{e(i=>{i.schema.settings={...i.schema.settings,...o}}),r()},updateFormMetadata:o=>{e(i=>{o.title!==void 0&&(i.schema.title=o.title),o.description!==void 0&&(i.schema.description=o.description)}),r()},setFieldValue:(o,i)=>e(a=>{const l=a.schema.fields.find(c=>c.id===o);l&&l.name&&(a.formValues[l.name]=i)}),setFieldError:(o,i)=>e(a=>{i?a.formErrors[o]=i:delete a.formErrors[o]}),validateField:o=>{const i=t(),a=i.schema.fields.find(d=>d.id===o);if(!a)return null;const l=a.name?i.formValues[a.name]:void 0,c=Vn(a,l,i.formValues);return e(d=>{c?d.formErrors[o]=c:delete d.formErrors[o]}),c},validateForm:()=>{const o=t();let i=!0;return o.schema.fields.forEach(a=>{const l=a.name?o.formValues[a.name]:void 0,c=Vn(a,l,o.formValues);c&&(i=!1,e(d=>{d.formErrors[a.id]=c}))}),i},undo:()=>{t().historyIndex>0&&e(i=>{i.historyIndex--;const a=i.history[i.historyIndex];i.schema=JSON.parse(JSON.stringify(a.schema)),i.selectedFieldId=a.selectedFieldId})},redo:()=>{const o=t();o.historyIndex<o.history.length-1&&e(i=>{i.historyIndex++;const a=i.history[i.historyIndex];i.schema=JSON.parse(JSON.stringify(a.schema)),i.selectedFieldId=a.selectedFieldId})},canUndo:()=>t().historyIndex>0,canRedo:()=>{const o=t();return o.historyIndex<o.history.length-1},setPreviewDevice:o=>e(i=>{i.previewDevice=o})}})),_o=({field:e,value:t,onChange:r,error:n,readonly:o=!1})=>{var a;const i=()=>{var l;switch(e.type){case"text":case"email":case"password":case"phone":case"url":case"search":return s.jsx("input",{type:e.type,id:e.id,name:e.name,placeholder:e.placeholder,defaultValue:t||e.defaultValue,onChange:m=>r==null?void 0:r(m.target.value),disabled:o||e.disabled,required:e.required,className:"field-input"});case"number":return s.jsx("input",{type:"number",id:e.id,name:e.name,placeholder:e.placeholder,defaultValue:t||e.defaultValue,onChange:m=>r==null?void 0:r(m.target.valueAsNumber),disabled:o||e.disabled,required:e.required,min:"min"in e?e.min:void 0,max:"max"in e?e.max:void 0,step:"step"in e?e.step:void 0,className:"field-input"});case"textarea":return s.jsx("textarea",{id:e.id,name:e.name,placeholder:e.placeholder,defaultValue:t||e.defaultValue,onChange:m=>r==null?void 0:r(m.target.value),disabled:o||e.disabled,required:e.required,rows:4,className:"field-textarea"});case"select":if("options"in e)return s.jsxs("select",{id:e.id,name:e.name,defaultValue:t||e.defaultValue,onChange:m=>r==null?void 0:r(m.target.value),disabled:o||e.disabled,required:e.required,className:"field-select",children:[s.jsx("option",{value:"",children:e.placeholder||"Select..."}),(l=e.options)==null?void 0:l.map(m=>s.jsx("option",{value:m.value,children:m.label},m.value))]});break;case"checkbox":return"options"in e&&e.options?s.jsx("div",{className:"field-checkbox-group",children:e.options.map(m=>s.jsxs("label",{className:"checkbox-label",children:[s.jsx("input",{type:"checkbox",name:e.name,value:m.value,disabled:o||e.disabled,className:"field-checkbox"}),s.jsx("span",{children:m.label})]},m.value))}):s.jsxs("label",{className:"checkbox-label",children:[s.jsx("input",{type:"checkbox",id:e.id,name:e.name,disabled:o||e.disabled,className:"field-checkbox"}),s.jsx("span",{children:e.label})]});case"radio":if("options"in e&&e.options)return s.jsx("div",{className:"field-radio-group",children:e.options.map(m=>s.jsxs("label",{className:"radio-label",children:[s.jsx("input",{type:"radio",name:e.name,value:m.value,disabled:o||e.disabled,className:"field-radio"}),s.jsx("span",{children:m.label})]},m.value))});break;case"date":return s.jsx("input",{type:"date",id:e.id,name:e.name,defaultValue:t||e.defaultValue,onChange:m=>r==null?void 0:r(m.target.value),disabled:o||e.disabled,required:e.required,className:"field-input"});case"time":return s.jsx("input",{type:"time",id:e.id,name:e.name,defaultValue:t||e.defaultValue,onChange:m=>r==null?void 0:r(m.target.value),disabled:o||e.disabled,required:e.required,className:"field-input"});case"file":case"image":return s.jsx("input",{type:"file",id:e.id,name:e.name,accept:"accept"in e?e.accept:e.type==="image"?"image/*":void 0,multiple:"multiple"in e?e.multiple:!1,disabled:o||e.disabled,required:e.required,className:"field-file"});case"datetime":return s.jsx("input",{type:"datetime-local",id:e.id,name:e.name,defaultValue:t||e.defaultValue,onChange:m=>r==null?void 0:r(m.target.value),disabled:o||e.disabled,required:e.required,className:"field-input"});case"range":return s.jsxs("div",{className:"field-range-wrapper",children:[s.jsx("input",{type:"range",id:e.id,name:e.name,defaultValue:t??e.defaultValue??("min"in e?e.min:0),onChange:m=>r==null?void 0:r(m.target.valueAsNumber),disabled:o||e.disabled,min:"min"in e?e.min:0,max:"max"in e?e.max:100,step:"step"in e?e.step:1,className:"field-range"}),"showValue"in e&&e.showValue&&s.jsx("span",{className:"range-value",children:t??e.defaultValue??("min"in e?e.min:0)})]});case"color":return s.jsx("input",{type:"color",id:e.id,name:e.name,defaultValue:t||e.defaultValue||"#000000",onChange:m=>r==null?void 0:r(m.target.value),disabled:o||e.disabled,className:"field-color"});case"switch":return s.jsxs("label",{className:"field-switch",children:[s.jsx("input",{type:"checkbox",id:e.id,name:e.name,defaultChecked:t||e.defaultValue,onChange:m=>r==null?void 0:r(m.target.checked),disabled:o||e.disabled,className:"switch-input"}),s.jsx("span",{className:"switch-slider"}),"onLabel"in e&&e.onLabel&&s.jsx("span",{className:"switch-label",children:t?e.onLabel:"offLabel"in e?e.offLabel:""})]});case"rating":const c="maxRating"in e?e.maxRating:5,d=t;return s.jsx("div",{className:"field-rating",children:[...Array(c)].map((m,g)=>s.jsx("button",{type:"button",className:`rating-star ${g<d?"filled":""}`,onClick:()=>!o&&(r==null?void 0:r(g+1)),disabled:o||e.disabled,children:s.jsx(Oe,{icon:"icon"in e&&e.icon?e.icon:"star",size:"small"})},g))});case"daterange":return s.jsxs("div",{className:"field-daterange",children:[s.jsxs("div",{className:"daterange-input",children:[s.jsx("label",{children:"startLabel"in e?e.startLabel:"Start Date"}),s.jsx("input",{type:"date",name:`${e.name}_start`,disabled:o||e.disabled,min:"minDate"in e?e.minDate:void 0,max:"maxDate"in e?e.maxDate:void 0,className:"field-input"})]}),s.jsxs("div",{className:"daterange-input",children:[s.jsx("label",{children:"endLabel"in e?e.endLabel:"End Date"}),s.jsx("input",{type:"date",name:`${e.name}_end`,disabled:o||e.disabled,min:"minDate"in e?e.minDate:void 0,max:"maxDate"in e?e.maxDate:void 0,className:"field-input"})]})]});case"richtext":return s.jsxs("div",{className:"field-richtext",children:[s.jsx("div",{className:"richtext-toolbar",children:"toolbar"in e&&e.toolbar?e.toolbar.map(m=>s.jsx("button",{className:"toolbar-btn",type:"button",children:m},m)):null}),s.jsx("div",{contentEditable:!o&&!e.disabled,className:"richtext-editor",onInput:m=>r==null?void 0:r(m.currentTarget.innerHTML),dangerouslySetInnerHTML:{__html:t||e.defaultValue||""}})]});case"signature":return s.jsxs("div",{className:"field-signature",children:[s.jsx("canvas",{className:"signature-canvas",width:300,height:150,style:{border:"1px solid #e2e8f0",borderRadius:"4px"}}),s.jsx("button",{type:"button",className:"signature-clear",children:"Clear"})]});case"section":return s.jsxs("details",{className:"field-section",open:"collapsed"in e?!e.collapsed:!0,children:[s.jsx("summary",{className:"section-header",children:"title"in e?e.title:"Section"}),s.jsx("div",{className:"section-content",children:"fields"in e&&e.fields?e.fields.map(m=>s.jsx(_o,{field:m,value:t==null?void 0:t[m.name],onChange:g=>r==null?void 0:r({...t,[m.name]:g}),readonly:o},m.id)):null})]});case"alert":const f="alertType"in e?e.alertType:"info";return s.jsx("div",{className:`field-alert alert-${f}`,children:"content"in e?e.content:"Alert message"});case"header":const h=`h${"level"in e?e.level:2}`;return s.jsx(h,{className:"field-header",children:"content"in e?e.content:"Header"});case"paragraph":return s.jsx("p",{className:"field-paragraph",children:"content"in e?e.content:""});case"divider":return s.jsx("hr",{className:"field-divider"});default:return s.jsxs("div",{className:"field-unsupported",children:['Field type "',e.type,'" is not yet supported']})}};return s.jsxs("div",{className:`field-wrapper ${e.type}`,style:{width:(a=e.style)==null?void 0:a.width},children:[e.label&&e.type!=="header"&&e.type!=="paragraph"&&e.type!=="divider"&&s.jsxs("label",{htmlFor:e.id,className:"field-label",children:[e.label,e.required&&s.jsx("span",{className:"required-mark",children:"*"})]}),i(),e.helpText&&s.jsx("small",{className:"field-help",children:e.helpText}),n&&s.jsx("span",{className:"field-error",children:n})]})},yu=E.createContext({activeId:null,overId:null,isDraggingNewField:!1}),Zv=({children:e})=>{const{schema:t,addField:r,moveField:n,setIsDragging:o}=Rt(),[i,a]=E.useState(null),[l,c]=E.useState(null),d=Cd(ds(Ea,{activationConstraint:{distance:8}}),ds(wa,{coordinateGetter:kv})),f=y=>{a(y.active.id),o(!0)},h=y=>{const{over:S}=y;c(S?S.id:null)},m=y=>{const{active:S,over:b}=y;if(a(null),c(null),o(!1),!b)return;const R=S.data.current,w=b.id;if((R==null?void 0:R.type)==="new-field"){const C=R.fieldType,T=pl(C);let N=t.fields.length;if(w&&w!=="canvas-drop-zone"&&w!=="canvas-end-drop-zone"){const D=t.fields.findIndex(M=>M.id===w);N=D>=0?D:N}w==="canvas-end-drop-zone"&&(N=t.fields.length);const $={...T,id:Rn(),type:C,name:`${C}_${Date.now()}`};r($,N)}else if((R==null?void 0:R.type)==="existing-field"){const C=S.id;if(C!==w){const T=t.fields.findIndex($=>$.id===C),N=t.fields.findIndex($=>$.id===w);T!==-1&&N!==-1&&n(T,N)}}},g=E.useMemo(()=>{if(i!=null&&i.startsWith("new-")){const y=i.replace("new-","");return{...pl(y),id:"preview",type:y,name:`${y}_preview`}}return null},[i]),x=i?t.fields.find(y=>y.id===i):null,p=E.useMemo(()=>({activeId:i,overId:l,isDraggingNewField:(i==null?void 0:i.startsWith("new-"))||!1}),[i,l]);return s.jsxs(Ef,{sensors:d,collisionDetection:Rd,onDragStart:f,onDragOver:h,onDragEnd:m,children:[s.jsx(yu.Provider,{value:p,children:e}),s.jsx(zf,{children:x?s.jsx("div",{className:"drag-overlay",children:s.jsx(_o,{field:x,readonly:!0})}):g?s.jsx("div",{className:"drag-overlay new-field-overlay",children:s.jsx(_o,{field:g,readonly:!0})}):null})]})},xl=e=>{const t=[];switch(e){case"checkbox":case"switch":t.push({value:"is_checked",label:"Is Checked",requiresValue:!1},{value:"is_not_checked",label:"Is Not Checked",requiresValue:!1});break;case"text":case"email":case"password":case"textarea":case"phone":case"url":case"search":t.push({value:"equals",label:"Equals",requiresValue:!0},{value:"not_equals",label:"Not Equals",requiresValue:!0},{value:"contains",label:"Contains",requiresValue:!0},{value:"not_contains",label:"Does Not Contain",requiresValue:!0},{value:"starts_with",label:"Starts With",requiresValue:!0},{value:"ends_with",label:"Ends With",requiresValue:!0},{value:"is_empty",label:"Is Empty",requiresValue:!1},{value:"is_not_empty",label:"Is Not Empty",requiresValue:!1});break;case"number":case"range":case"rating":t.push({value:"equals",label:"Equals",requiresValue:!0},{value:"not_equals",label:"Not Equals",requiresValue:!0},{value:"greater_than",label:"Greater Than",requiresValue:!0},{value:"less_than",label:"Less Than",requiresValue:!0},{value:"greater_than_or_equal",label:"Greater Than or Equal",requiresValue:!0},{value:"less_than_or_equal",label:"Less Than or Equal",requiresValue:!0},{value:"is_empty",label:"Is Empty",requiresValue:!1},{value:"is_not_empty",label:"Is Not Empty",requiresValue:!1});break;case"select":case"radio":t.push({value:"equals",label:"Equals",requiresValue:!0},{value:"not_equals",label:"Not Equals",requiresValue:!0},{value:"is_empty",label:"Is Empty",requiresValue:!1},{value:"is_not_empty",label:"Is Not Empty",requiresValue:!1});break;case"date":case"time":case"datetime":t.push({value:"equals",label:"Equals",requiresValue:!0},{value:"not_equals",label:"Not Equals",requiresValue:!0},{value:"greater_than",label:"After",requiresValue:!0},{value:"less_than",label:"Before",requiresValue:!0},{value:"is_empty",label:"Is Empty",requiresValue:!1},{value:"is_not_empty",label:"Is Not Empty",requiresValue:!1});break;default:t.push({value:"is_empty",label:"Is Empty",requiresValue:!1},{value:"is_not_empty",label:"Is Not Empty",requiresValue:!1})}return t},ey=({field:e,onClose:t})=>{var y,S,b,R;const{schema:r,updateField:n}=Rt(),o=r.fields.filter(w=>w.id!==e.id&&w.name&&!["header","paragraph","divider","alert"].includes(w.type)),[i,a]=E.useState((y=e.conditions)!=null&&y.show?"show":"hide"),[l,c]=E.useState(((S=e.conditions)==null?void 0:S.logic)||"and"),[d,f]=E.useState(((b=e.conditions)==null?void 0:b.show)||((R=e.conditions)==null?void 0:R.hide)||[{fieldId:"",operator:"equals",value:""}]),h=()=>{f([...d,{fieldId:"",operator:"equals",value:""}])},m=w=>{d.length>1&&f(d.filter((C,T)=>T!==w))},g=(w,C)=>{var N;const T=[...d];if(T[w]={...T[w],...C},C.fieldId!==void 0){const $=o.find(D=>D.id===C.fieldId);if($){const D=xl($.type);T[w].operator=((N=D[0])==null?void 0:N.value)||"equals",T[w].value=""}}f(T)},x=()=>{const w=d.filter(C=>C.fieldId&&C.operator);if(w.length===0)n(e.id,{conditions:void 0});else{const C={[i]:w,logic:l};n(e.id,{conditions:C})}t()},p=()=>{n(e.id,{conditions:void 0}),t()};return o.length===0?s.jsx("div",{className:"modal-overlay",onClick:t,children:s.jsxs("div",{className:"modal-content",onClick:w=>w.stopPropagation(),children:[s.jsxs("div",{className:"modal-header",children:[s.jsx("h3",{children:"Conditional Settings"}),s.jsx("button",{className:"modal-close",onClick:t,title:"Close",children:s.jsx(Oe,{icon:"close"})})]}),s.jsx("div",{className:"modal-body",children:s.jsxs("div",{className:"condition-empty-state",children:[s.jsx("div",{className:"condition-empty-icon",children:s.jsx(Oe,{icon:"warning"})}),s.jsx("div",{className:"condition-empty-title",children:"No Fields Available"}),s.jsx("div",{className:"condition-empty-text",children:"To add conditional logic, you need at least one other input field in your form. Add more fields to your form to create conditions."})]})}),s.jsx("div",{className:"modal-footer",children:s.jsx("button",{className:"condition-btn condition-btn-secondary",onClick:t,children:"Close"})})]})}):s.jsx("div",{className:"modal-overlay",onClick:t,children:s.jsxs("div",{className:"modal-content condition-modal-content",onClick:w=>w.stopPropagation(),children:[s.jsxs("div",{className:"modal-header",children:[s.jsx("h3",{children:"Conditional Settings"}),s.jsx("button",{className:"modal-close",onClick:t,title:"Close",children:s.jsx(Oe,{icon:"close"})})]}),s.jsxs("div",{className:"modal-body",children:[s.jsxs("div",{className:"condition-field-info",children:[s.jsx("span",{className:"condition-field-label",children:"Current Field"}),s.jsxs("div",{className:"condition-field-value",children:[e.label||e.name||"Unnamed Field",s.jsx("span",{className:"condition-field-type",children:e.type})]})]}),s.jsxs("div",{className:"condition-section",children:[s.jsx("label",{className:"condition-section-label",children:"Action"}),s.jsxs("div",{className:"toggle-group",children:[s.jsxs("div",{className:"toggle-option",children:[s.jsx("input",{type:"radio",id:"action-show",value:"show",checked:i==="show",onChange:w=>a(w.target.value)}),s.jsxs("label",{htmlFor:"action-show",children:[s.jsx("span",{className:"toggle-icon",children:s.jsx(Oe,{icon:"visibility"})}),"Show field when conditions are met"]})]}),s.jsxs("div",{className:"toggle-option",children:[s.jsx("input",{type:"radio",id:"action-hide",value:"hide",checked:i==="hide",onChange:w=>a(w.target.value)}),s.jsxs("label",{htmlFor:"action-hide",children:[s.jsx("span",{className:"toggle-icon",children:s.jsx(Oe,{icon:"visibility_off"})}),"Hide field when conditions are met"]})]})]})]}),d.length>1&&s.jsxs("div",{className:"condition-section",children:[s.jsx("label",{className:"condition-section-label",children:"Match Conditions"}),s.jsxs("div",{className:"logic-toggle-group",children:[s.jsxs("div",{className:"logic-toggle-option",children:[s.jsx("input",{type:"radio",id:"logic-and",value:"and",checked:l==="and",onChange:w=>c(w.target.value)}),s.jsx("label",{htmlFor:"logic-and",children:"All (AND)"})]}),s.jsxs("div",{className:"logic-toggle-option",children:[s.jsx("input",{type:"radio",id:"logic-or",value:"or",checked:l==="or",onChange:w=>c(w.target.value)}),s.jsx("label",{htmlFor:"logic-or",children:"Any (OR)"})]})]})]}),s.jsxs("div",{className:"condition-section",children:[s.jsx("label",{className:"condition-section-label",children:"Conditions"}),s.jsx("div",{className:"condition-rules-list",children:d.map((w,C)=>{const T=o.find(D=>D.id===w.fieldId),N=T?xl(T.type):[],$=N.find(D=>D.value===w.operator);return s.jsxs("div",{className:"condition-card",children:[s.jsxs("div",{className:"condition-card-content",children:[s.jsxs("select",{value:w.fieldId,onChange:D=>g(C,{fieldId:D.target.value}),className:"condition-select",children:[s.jsx("option",{value:"",children:"Select a field..."}),o.map(D=>s.jsxs("option",{value:D.id,children:[D.label||D.name||"Unnamed"," (",D.type,")"]},D.id))]}),w.fieldId&&s.jsx("select",{value:w.operator,onChange:D=>g(C,{operator:D.target.value}),className:"condition-select",children:N.map(D=>s.jsx("option",{value:D.value,children:D.label},D.value))}),w.fieldId&&($==null?void 0:$.requiresValue)&&s.jsx("input",{type:"text",value:w.value||"",onChange:D=>g(C,{value:D.target.value}),placeholder:"Enter value...",className:"condition-input"})]}),s.jsx("div",{className:"condition-card-actions",children:s.jsx("button",{onClick:()=>m(C),disabled:d.length===1,title:"Remove condition",className:`condition-btn condition-btn-icon condition-btn-danger ${d.length===1?"disabled":""}`,children:s.jsx(Oe,{icon:"delete"})})})]},C)})}),s.jsxs("button",{onClick:h,className:"condition-btn condition-btn-add",children:[s.jsx(Oe,{icon:"add"}),"Add Condition"]})]})]}),s.jsxs("div",{className:"modal-footer",children:[s.jsx("button",{onClick:p,className:"condition-btn condition-btn-danger",style:{marginRight:"auto"},children:"Clear Conditions"}),s.jsx("button",{onClick:t,className:"condition-btn condition-btn-secondary",children:"Cancel"}),s.jsx("button",{onClick:x,className:"condition-btn condition-btn-primary",children:"Save Conditions"})]})]})})},bu=({isVisible:e,message:t="Drop here to insert",className:r=""})=>e?s.jsx("div",{className:`drop-indicator ${r}`,children:s.jsx("div",{className:"drop-indicator-text",children:t})}):null,ty=({field:e,index:t})=>{var D,M,L,v,k,_;const{selectedFieldId:r,selectField:n,removeField:o,duplicateField:i}=Rt(),[a,l]=E.useState(!1),c=r===e.id,d=E.useContext(yu),f=!!((D=e.conditions)!=null&&D.show||(M=e.conditions)!=null&&M.hide),h=(((v=(L=e.conditions)==null?void 0:L.show)==null?void 0:v.length)||0)+(((_=(k=e.conditions)==null?void 0:k.hide)==null?void 0:_.length)||0),{attributes:m,listeners:g,setNodeRef:x,transform:p,transition:y,isDragging:S,isOver:b}=Rv({id:e.id,data:{type:"existing-field",fieldId:e.id,index:t}}),R=b&&d.isDraggingNewField,w={transform:ir.Transform.toString(p),transition:y,opacity:S?.5:1},C=P=>{P.stopPropagation(),n(e.id)},T=P=>{P.stopPropagation(),o(e.id)},N=P=>{P.stopPropagation(),i(e.id)},$=P=>{P.stopPropagation(),l(!0)};return s.jsxs(s.Fragment,{children:[s.jsx(bu,{isVisible:R,message:"Drop here to insert"}),s.jsxs("div",{ref:x,style:w,className:`sortable-field ${c?"selected":""}`,onClick:C,children:[f&&s.jsxs("div",{className:"field-condition-badge",children:[s.jsx("span",{className:"field-condition-badge-icon",children:s.jsx(Oe,{icon:"settings"})}),h," ",h===1?"rule":"rules"]}),s.jsxs("div",{className:"field-controls",children:[s.jsx("button",{className:"drag-handle",...m,...g,title:"Drag to reorder",children:s.jsx(Oe,{icon:"drag_indicator"})}),s.jsx("button",{className:"field-action",onClick:N,title:"Duplicate field",children:s.jsx(Oe,{icon:"content_copy"})}),s.jsx("button",{className:`field-action settings ${f?"has-conditions":""}`,onClick:$,title:f?`Conditional settings (${h} ${h===1?"rule":"rules"})`:"Conditional settings",children:s.jsx(Oe,{icon:"settings"})}),s.jsx("button",{className:"field-action delete",onClick:T,title:"Remove field",children:s.jsx(Oe,{icon:"delete"})})]}),s.jsx("div",{className:"field-content",children:s.jsx(_o,{field:e,readonly:!0})})]}),a&&s.jsx(ey,{field:e,onClose:()=>l(!1)})]})},ry=()=>{const{schema:e}=Rt(),[t,r]=E.useState(!1),{setNodeRef:n,isOver:o}=Wi({id:"canvas-drop-zone",data:{type:"canvas"}}),{setNodeRef:i,isOver:a}=Wi({id:"canvas-end-drop-zone",data:{type:"canvas-end"}});ql({onDragStart:c=>{const d=c.active.data.current;r((d==null?void 0:d.type)==="new-field")},onDragEnd:()=>{r(!1)}});const l=e.fields.map(c=>c.id);return s.jsxs("div",{className:"form-canvas",children:[s.jsxs("div",{className:"canvas-header",children:[s.jsx("h2",{children:e.title||"Untitled Form"}),e.description&&s.jsx("p",{children:e.description})]}),s.jsx("div",{children:s.jsx("div",{ref:n,className:`canvas-drop-zone ${o&&t?"drag-over":""} ${e.fields.length===0?"empty":""}`,children:e.fields.length===0?s.jsx("div",{className:"empty-state",children:s.jsx("p",{children:"Drag and drop fields here to start building your form"})}):s.jsxs(s.Fragment,{children:[s.jsx(xv,{items:l,strategy:yv,children:e.fields.map((c,d)=>s.jsx(ty,{field:c,index:d},c.id))}),s.jsx(bu,{isVisible:a&&t,message:"Drop here to add at the end"}),s.jsx("div",{ref:i})]})})})]})},ny=()=>{var p,y;const{schema:e,updateFormSettings:t,updateFormMetadata:r}=Rt(),[n,o]=E.useState(e.title),[i,a]=E.useState(e.description||""),[l,c]=E.useState(((p=e.settings)==null?void 0:p.submitButtonText)||"Submit"),[d,f]=E.useState(((y=e.settings)==null?void 0:y.cancelButtonText)||"Cancel");E.useEffect(()=>{var S,b;o(e.title),a(e.description||""),c(((S=e.settings)==null?void 0:S.submitButtonText)||"Submit"),f(((b=e.settings)==null?void 0:b.cancelButtonText)||"Cancel")},[e]);const h=()=>{r({title:n})},m=()=>{r({description:i})},g=()=>{t({submitButtonText:l})},x=()=>{t({cancelButtonText:d})};return s.jsx("div",{className:"form-properties",children:s.jsxs("div",{className:"property-section",children:[s.jsx("h4",{children:"Form Settings"}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{className:"property-label",htmlFor:"form-title",children:"Form Title"}),s.jsx("input",{id:"form-title",type:"text",className:"property-input",value:n,onChange:S=>o(S.target.value),onBlur:h,placeholder:"Enter form title",autoComplete:"off",spellCheck:!1})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{className:"property-label",htmlFor:"form-description",children:"Description"}),s.jsx("textarea",{id:"form-description",className:"property-textarea",value:i,onChange:S=>a(S.target.value),onBlur:m,placeholder:"Enter form description",rows:3,autoComplete:"off",spellCheck:!1})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{className:"property-label",htmlFor:"submit-text",children:"Submit Button Text"}),s.jsx("input",{id:"submit-text",type:"text",className:"property-input",value:l,onChange:S=>c(S.target.value),onBlur:g,placeholder:"Submit button text",autoComplete:"off",spellCheck:!1})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{className:"property-label",htmlFor:"cancel-text",children:"Cancel Button Text"}),s.jsx("input",{id:"cancel-text",type:"text",className:"property-input",value:d,onChange:S=>f(S.target.value),onBlur:x,placeholder:"Cancel button text",autoComplete:"off",spellCheck:!1})]})]})})},oy=()=>{var h,m,g,x,p,y,S;const{schema:e,selectedFieldId:t,updateField:r}=Rt(),n=e.fields.find(b=>b.id===t),[o,i]=E.useState("field");E.useEffect(()=>{i(t?"field":"form")},[t]);const a=b=>{t&&r(t,b)},l=b=>{t&&r(t,{options:b})},c=()=>{var b,R;if(n&&"options"in n){const w=[...n.options||[],{label:`Option ${(((b=n.options)==null?void 0:b.length)||0)+1}`,value:`option${(((R=n.options)==null?void 0:R.length)||0)+1}`}];l(w)}},d=b=>{if(n&&"options"in n&&n.options){const R=n.options.filter((w,C)=>C!==b);l(R)}},f=(b,R,w)=>{if(n&&"options"in n&&n.options){const C=[...n.options];C[b]={...C[b],[R]:w},l(C)}};return s.jsxs("div",{className:"properties-panel",children:[s.jsx("div",{className:"panel-header",children:s.jsx("h3",{children:"Properties"})}),s.jsxs("div",{className:"panel-tabs",children:[s.jsx("button",{className:`tab ${o==="field"?"active":""}`,onClick:()=>i("field"),disabled:!n,children:"Field"}),s.jsx("button",{className:`tab ${o==="form"?"active":""}`,onClick:()=>i("form"),children:"Form"})]}),s.jsx("div",{className:"panel-content",children:o==="field"&&n?s.jsxs("div",{className:"field-properties",children:[s.jsxs("div",{className:"property-section",children:[s.jsx("h4",{children:"Basic Properties"}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Label"}),s.jsx("input",{type:"text",value:n.label||"",onChange:b=>a({label:b.target.value})})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Field Name"}),s.jsx("input",{type:"text",value:n.name||"",onChange:b=>a({name:b.target.value})})]}),!["rating","range","switch"].includes(n.type)&&s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Placeholder"}),s.jsx("input",{type:"text",value:n.placeholder||"",onChange:b=>a({placeholder:b.target.value})})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Help Text"}),s.jsx("input",{type:"text",value:n.helpText||"",onChange:b=>a({helpText:b.target.value})})]}),!["rating","daterange","time","datetime"].includes(n.type)&&s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Default Value"}),s.jsx("input",{type:"text",value:n.defaultValue||"",onChange:b=>a({defaultValue:b.target.value})})]})]}),!["header","paragraph","divider","section","alert"].includes(n.type)&&s.jsxs("div",{className:"property-section",children:[s.jsx("h4",{children:"Validation"}),s.jsx("div",{className:"property-group",children:s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:n.required||!1,onChange:b=>a({required:b.target.checked})}),"Required"]})}),s.jsx("div",{className:"property-group",children:s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:n.disabled||!1,onChange:b=>a({disabled:b.target.checked})}),"Disabled"]})}),["text","password","textarea","phone","url","richtext"].includes(n.type)&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Min Length"}),s.jsx("input",{type:"number",value:((h=n.validation)==null?void 0:h.minLength)||"",onChange:b=>a({validation:{...n.validation,minLength:b.target.value?parseInt(b.target.value):void 0}}),min:"0"})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Max Length"}),s.jsx("input",{type:"number",value:((m=n.validation)==null?void 0:m.maxLength)||"",onChange:b=>a({validation:{...n.validation,maxLength:b.target.value?parseInt(b.target.value):void 0}}),min:"0"})]}),["text","phone","password"].includes(n.type)&&s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Pattern (RegEx)"}),s.jsx("input",{type:"text",value:((g=n.validation)==null?void 0:g.pattern)||"",onChange:b=>a({validation:{...n.validation,pattern:b.target.value}}),placeholder:"e.g., ^[A-Za-z]+$"})]})]}),n.type==="number"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Min Value"}),s.jsx("input",{type:"number",value:((x=n.validation)==null?void 0:x.min)||"",onChange:b=>a({validation:{...n.validation,min:b.target.value?parseFloat(b.target.value):void 0}})})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Max Value"}),s.jsx("input",{type:"number",value:((p=n.validation)==null?void 0:p.max)||"",onChange:b=>a({validation:{...n.validation,max:b.target.value?parseFloat(b.target.value):void 0}})})]})]}),n.type==="range"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Min Value"}),s.jsx("input",{type:"number",value:n.min??"",onChange:b=>a({min:b.target.value?parseFloat(b.target.value):void 0})})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Max Value"}),s.jsx("input",{type:"number",value:n.max??"",onChange:b=>a({max:b.target.value?parseFloat(b.target.value):void 0})})]})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Error Message"}),s.jsx("input",{type:"text",value:((y=n.validation)==null?void 0:y.customMessage)||"",onChange:b=>a({validation:{...n.validation,customMessage:b.target.value}}),placeholder:"Custom validation message"})]})]}),(n.type==="select"||n.type==="radio"||n.type==="checkbox")&&"options"in n&&s.jsxs("div",{className:"property-section",children:[s.jsx("h4",{children:"Options"}),s.jsx("div",{className:"options-list",children:(S=n.options)==null?void 0:S.map((b,R)=>s.jsxs("div",{className:"option-item",children:[s.jsx("input",{type:"text",value:b.label,onChange:w=>f(R,"label",w.target.value),placeholder:"Label"}),s.jsx("input",{type:"text",value:b.value,onChange:w=>f(R,"value",w.target.value),placeholder:"Value"}),s.jsx("button",{onClick:()=>d(R),children:"×"})]},R))}),s.jsx("button",{className:"btn-add-option",onClick:c,children:"+ Add Option"})]}),n.type==="time"&&s.jsxs("div",{className:"property-section",children:[s.jsx("h4",{children:"Time Settings"}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Format"}),s.jsxs("select",{value:n.format||"24",onChange:b=>a({format:b.target.value}),children:[s.jsx("option",{value:"24",children:"24 Hour"}),s.jsx("option",{value:"12",children:"12 Hour"})]})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Step (seconds)"}),s.jsx("input",{type:"number",value:n.step||60,onChange:b=>a({step:parseInt(b.target.value)||60}),placeholder:"60"})]})]}),(n.type==="file"||n.type==="image")&&s.jsxs("div",{className:"property-section",children:[s.jsx("h4",{children:"File Upload Settings"}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Accept File Types"}),s.jsx("input",{type:"text",value:n.accept||(n.type==="image"?"image/*":""),onChange:b=>a({accept:b.target.value}),placeholder:n.type==="image"?"image/*":".pdf,.doc,.docx"}),s.jsx("small",{style:{color:"#666",fontSize:"0.75rem",marginTop:"4px",display:"block"},children:"Examples: image/*, .pdf, .doc, application/pdf"})]}),s.jsx("div",{className:"property-group",children:s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:n.multiple||!1,onChange:b=>a({multiple:b.target.checked}),style:{marginRight:"8px"}}),"Allow Multiple Files"]})}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Maximum File Size (MB)"}),s.jsx("input",{type:"number",value:n.maxSize||10,onChange:b=>a({maxSize:parseInt(b.target.value)||10}),min:1,max:100,placeholder:"10"})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Maximum Number of Files"}),s.jsx("input",{type:"number",value:n.maxFiles||10,onChange:b=>a({maxFiles:parseInt(b.target.value)||10}),min:1,max:50,placeholder:"10"})]}),s.jsx("div",{className:"property-group",children:s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:n.showPreview!==!1,onChange:b=>a({showPreview:b.target.checked}),style:{marginRight:"8px"}}),"Show Image Previews"]})}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Button Text"}),s.jsx("input",{type:"text",value:n.buttonText||"Choose Files",onChange:b=>a({buttonText:b.target.value}),placeholder:"Choose Files"})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Drag & Drop Text"}),s.jsx("input",{type:"text",value:n.dragDropText||"or drag and drop files here",onChange:b=>a({dragDropText:b.target.value}),placeholder:"or drag and drop files here"})]})]}),(n.type==="file"||n.type==="image")&&s.jsxs("div",{className:"property-section",children:[s.jsx("h4",{children:"Upload Configuration"}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Upload URL"}),s.jsx("input",{type:"text",value:n.uploadUrl||"",onChange:b=>a({uploadUrl:b.target.value}),placeholder:"https://api.example.com/upload"}),s.jsx("small",{style:{color:"#666",fontSize:"0.75rem",marginTop:"4px",display:"block"},children:"API endpoint where files will be uploaded"})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"HTTP Method"}),s.jsxs("select",{value:n.uploadMethod||"POST",onChange:b=>a({uploadMethod:b.target.value}),children:[s.jsx("option",{value:"POST",children:"POST"}),s.jsx("option",{value:"PUT",children:"PUT"})]})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"File Field Name"}),s.jsx("input",{type:"text",value:n.uploadFieldName||"file",onChange:b=>a({uploadFieldName:b.target.value}),placeholder:"file"}),s.jsx("small",{style:{color:"#666",fontSize:"0.75rem",marginTop:"4px",display:"block"},children:"Form field name for the uploaded file"})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Additional Headers (JSON)"}),s.jsx("textarea",{value:n.uploadHeaders||"",onChange:b=>a({uploadHeaders:b.target.value}),placeholder:'{"Authorization": "Bearer token"}',rows:3}),s.jsx("small",{style:{color:"#666",fontSize:"0.75rem",marginTop:"4px",display:"block"},children:"Optional HTTP headers as JSON object"})]}),s.jsx("div",{className:"property-group",children:s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:n.withCredentials||!1,onChange:b=>a({withCredentials:b.target.checked}),style:{marginRight:"8px"}}),"Send Cookies (withCredentials)"]})}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Response Success Key"}),s.jsx("input",{type:"text",value:n.responseSuccessKey||"success",onChange:b=>a({responseSuccessKey:b.target.value}),placeholder:"success"}),s.jsx("small",{style:{color:"#666",fontSize:"0.75rem",marginTop:"4px",display:"block"},children:"JSON key to check if upload was successful"})]}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Response URL Key"}),s.jsx("input",{type:"text",value:n.responseUrlKey||"url",onChange:b=>a({responseUrlKey:b.target.value}),placeholder:"url"}),s.jsx("small",{style:{color:"#666",fontSize:"0.75rem",marginTop:"4px",display:"block"},children:"JSON key containing the uploaded file URL"})]})]}),(n.type==="header"||n.type==="paragraph")&&s.jsxs("div",{className:"property-section",children:[s.jsx("h4",{children:"Content"}),s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Text Content"}),s.jsx("textarea",{value:"content"in n?n.content:"",onChange:b=>a({content:b.target.value}),rows:4})]}),n.type==="header"&&s.jsxs("div",{className:"property-group",children:[s.jsx("label",{children:"Header Level"}),s.jsxs("select",{value:"level"in n?n.level:2,onChange:b=>a({level:parseInt(b.target.value)}),children:[s.jsx("option",{value:1,children:"H1"}),s.jsx("option",{value:2,children:"H2"}),s.jsx("option",{value:3,children:"H3"}),s.jsx("option",{value:4,children:"H4"}),s.jsx("option",{value:5,children:"H5"}),s.jsx("option",{value:6,children:"H6"})]})]})]})]}):o==="form"?s.jsx(ny,{}):s.jsx("div",{className:"no-selection",children:s.jsx("p",{children:"Select a field to edit its properties"})})})]})},Wa={desktop:{type:"desktop",label:"Desktop",width:1200,icon:"computer"},tablet:{type:"tablet",label:"Tablet",width:768,height:1024,icon:"tablet"},mobile:{type:"mobile",label:"Mobile",width:375,height:667,icon:"phone_iphone"}},xu=()=>{const{previewDevice:e,setPreviewDevice:t}=Rt(),r=["desktop","tablet","mobile"],n=o=>{switch(o){case"desktop":return s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),s.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),s.jsx("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]});case"tablet":return s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2"}),s.jsx("circle",{cx:"12",cy:"18",r:"1",fill:"currentColor"})]});case"mobile":return s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("rect",{x:"7",y:"2",width:"10",height:"20",rx:"2"}),s.jsx("circle",{cx:"12",cy:"18",r:"1",fill:"currentColor"})]})}};return s.jsx("div",{className:"device-preview-switcher",children:r.map(o=>{const i=Wa[o],a=e===o;return s.jsxs("button",{className:`device-button ${a?"active":""}`,onClick:()=>t(o),title:`${i.label} (${i.width}px)`,children:[s.jsx("span",{className:"device-icon",children:n(o)}),s.jsxs("span",{className:"device-info",children:[s.jsx("span",{className:"device-label",children:i.label}),s.jsxs("span",{className:"device-width",children:[i.width,"px"]})]})]},o)})})},wl=({id:e,name:t,label:r,placeholder:n,helpText:o,required:i=!1,disabled:a=!1,readonly:l=!1,value:c="",error:d,type:f="text",onChange:h,onBlur:m})=>{const g=`field-${e||t}`;return s.jsxs("div",{className:"form-field form-field-text",children:[r&&s.jsxs("label",{htmlFor:g,className:"form-field-label",children:[r,i&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsx("input",{id:g,name:t,type:f,className:`form-field-input ${d?"has-error":""}`,placeholder:n,required:i,disabled:a,readOnly:l,value:c||"",onChange:x=>h==null?void 0:h(x.target.value),onBlur:m,"aria-invalid":!!d,"aria-describedby":d?`${g}-error`:o?`${g}-help`:void 0}),o&&!d&&s.jsx("div",{id:`${g}-help`,className:"form-field-help",children:o}),d&&s.jsx("div",{id:`${g}-error`,className:"form-field-error",role:"alert",children:d})]})},iy=({id:e,name:t,label:r,placeholder:n,helpText:o,required:i=!1,disabled:a=!1,readonly:l=!1,value:c="",error:d,rows:f=3,cols:h,maxLength:m,resize:g="vertical",onChange:x,onBlur:p})=>{const y=`field-${e||t}`;return s.jsxs("div",{className:"form-field form-field-textarea",children:[r&&s.jsxs("label",{htmlFor:y,className:"form-field-label",children:[r,i&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsx("textarea",{id:y,name:t,className:`form-field-textarea-input ${d?"has-error":""}`,placeholder:n,required:i,disabled:a,readOnly:l,value:c||"",rows:f,cols:h,maxLength:m,style:{resize:g},onChange:S=>x==null?void 0:x(S.target.value),onBlur:p,"aria-invalid":!!d,"aria-describedby":d?`${y}-error`:o?`${y}-help`:void 0}),o&&!d&&s.jsx("div",{id:`${y}-help`,className:"form-field-help",children:o}),d&&s.jsx("div",{id:`${y}-error`,className:"form-field-error",role:"alert",children:d})]})},ay=({id:e,name:t,label:r,placeholder:n,helpText:o,required:i=!1,disabled:a=!1,readonly:l=!1,value:c="",error:d,min:f,max:h,step:m=1,onChange:g,onBlur:x})=>{const p=`field-${e||t}`,y=S=>{const b=S.target.value;if(b==="")g==null||g("");else{const R=parseFloat(b);isNaN(R)||g==null||g(R)}};return s.jsxs("div",{className:"form-field form-field-number",children:[r&&s.jsxs("label",{htmlFor:p,className:"form-field-label",children:[r,i&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsx("input",{id:p,name:t,type:"number",className:`form-field-input ${d?"has-error":""}`,placeholder:n,required:i,disabled:a,readOnly:l,value:c,min:f,max:h,step:m,onChange:y,onBlur:x,"aria-invalid":!!d,"aria-describedby":d?`${p}-error`:o?`${p}-help`:void 0}),o&&!d&&s.jsx("div",{id:`${p}-help`,className:"form-field-help",children:o}),d&&s.jsx("div",{id:`${p}-error`,className:"form-field-error",role:"alert",children:d})]})},sy=({id:e,name:t,label:r,placeholder:n,helpText:o,required:i=!1,disabled:a=!1,readonly:l=!1,value:c="",error:d,options:f=[],multiple:h=!1,onChange:m,onBlur:g})=>{const x=`field-${e||t}`,p=y=>{if(h){const S=Array.from(y.target.selectedOptions).map(b=>b.value);m==null||m(S)}else m==null||m(y.target.value)};return s.jsxs("div",{className:"form-field form-field-select",children:[r&&s.jsxs("label",{htmlFor:x,className:"form-field-label",children:[r,i&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsxs("select",{id:x,name:t,className:`form-field-select-input ${d?"has-error":""}`,required:i,disabled:a||l,value:c,multiple:h,onChange:p,onBlur:g,"aria-invalid":!!d,"aria-describedby":d?`${x}-error`:o?`${x}-help`:void 0,children:[!h&&n&&s.jsx("option",{value:"",disabled:!0,children:n}),f.map(y=>s.jsx("option",{value:y.value,disabled:y.disabled,children:y.label},y.value))]}),o&&!d&&s.jsx("div",{id:`${x}-help`,className:"form-field-help",children:o}),d&&s.jsx("div",{id:`${x}-error`,className:"form-field-error",role:"alert",children:d})]})},ly=({id:e,name:t,label:r,helpText:n,required:o=!1,disabled:i=!1,readonly:a=!1,value:l=!1,error:c,options:d,onChange:f,onBlur:h})=>{const m=`field-${e||t}`;if(!d||d.length===0)return s.jsxs("div",{className:"form-field form-field-checkbox",children:[s.jsxs("div",{className:"form-field-checkbox-wrapper",children:[s.jsx("input",{id:m,name:t,type:"checkbox",className:"form-field-checkbox-input",required:o,disabled:i||a,checked:!!l,onChange:p=>f==null?void 0:f(p.target.checked),onBlur:h,"aria-invalid":!!c,"aria-describedby":c?`${m}-error`:n?`${m}-help`:void 0}),s.jsxs("label",{htmlFor:m,className:"form-field-checkbox-label",children:[r,o&&s.jsx("span",{className:"required-mark",children:"*"})]})]}),n&&!c&&s.jsx("div",{id:`${m}-help`,className:"form-field-help",children:n}),c&&s.jsx("div",{id:`${m}-error`,className:"form-field-error",role:"alert",children:c})]});const g=Array.isArray(l)?l:[],x=(p,y)=>{const S=y?[...g,p]:g.filter(b=>b!==p);f==null||f(S)};return s.jsxs("div",{className:"form-field form-field-checkbox-group",children:[r&&s.jsxs("div",{className:"form-field-label",children:[r,o&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsx("div",{className:"form-field-checkbox-options",children:d.map(p=>{const y=`${m}-${p.value}`;return s.jsxs("div",{className:"form-field-checkbox-wrapper",children:[s.jsx("input",{id:y,name:`${t}[]`,type:"checkbox",className:"form-field-checkbox-input",disabled:i||a||p.disabled,checked:g.includes(p.value),onChange:S=>x(p.value,S.target.checked),onBlur:h}),s.jsx("label",{htmlFor:y,className:"form-field-checkbox-label",children:p.label})]},p.value)})}),n&&!c&&s.jsx("div",{id:`${m}-help`,className:"form-field-help",children:n}),c&&s.jsx("div",{id:`${m}-error`,className:"form-field-error",role:"alert",children:c})]})},cy=({id:e,name:t,label:r,helpText:n,required:o=!1,disabled:i=!1,readonly:a=!1,value:l="",error:c,options:d=[],onChange:f,onBlur:h})=>{const m=`field-${e||t}`;return s.jsxs("div",{className:"form-field form-field-radio",children:[r&&s.jsxs("div",{className:"form-field-label",children:[r,o&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsx("div",{className:"form-field-radio-options",children:d.map(g=>{const x=`${m}-${g.value}`;return s.jsxs("div",{className:"form-field-radio-wrapper",children:[s.jsx("input",{id:x,name:t,type:"radio",className:"form-field-radio-input",disabled:i||a||g.disabled,checked:l===g.value,onChange:()=>f==null?void 0:f(g.value),onBlur:h,"aria-invalid":!!c}),s.jsx("label",{htmlFor:x,className:"form-field-radio-label",children:g.label})]},g.value)})}),n&&!c&&s.jsx("div",{id:`${m}-help`,className:"form-field-help",children:n}),c&&s.jsx("div",{id:`${m}-error`,className:"form-field-error",role:"alert",children:c})]})},uy=({id:e,name:t,label:r,helpText:n,required:o=!1,disabled:i=!1,readonly:a=!1,value:l=!1,error:c,onChange:d,onBlur:f})=>{const h=`field-${e||t}`,m=g=>{a||d==null||d(g.target.checked)};return s.jsxs("div",{className:"form-field form-field-switch",children:[s.jsxs("div",{className:"form-field-switch-wrapper",children:[s.jsxs("label",{className:"form-field-switch-container",children:[s.jsx("input",{id:h,name:t,type:"checkbox",className:"form-field-switch-input",required:o,disabled:i||a,checked:!!l,onChange:m,onBlur:f,"aria-invalid":!!c,"aria-describedby":c?`${h}-error`:n?`${h}-help`:void 0}),s.jsx("span",{className:"form-field-switch-slider"})]}),r&&s.jsxs("span",{className:"form-field-switch-label",children:[r,o&&s.jsx("span",{className:"required-mark",children:"*"})]})]}),n&&!c&&s.jsx("div",{id:`${h}-help`,className:"form-field-help",children:n}),c&&s.jsx("div",{id:`${h}-error`,className:"form-field-error",role:"alert",children:c})]})},dy=({id:e,name:t,label:r,helpText:n,required:o=!1,disabled:i=!1,readonly:a=!1,value:l,error:c,min:d=0,max:f=100,step:h=1,showValue:m=!0,showLabels:g=!0,onChange:x,onBlur:p})=>{const y=`field-${e||t}`,S=l??d,b=w=>{const C=parseFloat(w.target.value);x==null||x(C)},R=(Number(S)-d)/(f-d)*100;return s.jsxs("div",{className:"form-field form-field-range",children:[r&&s.jsxs("label",{htmlFor:y,className:"form-field-label",children:[r,o&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsxs("div",{className:"form-field-range-wrapper",children:[g&&s.jsx("span",{className:"form-field-range-label-min",children:d}),s.jsxs("div",{className:"form-field-range-container",children:[s.jsx("input",{id:y,name:t,type:"range",className:"form-field-range-input",required:o,disabled:i||a,value:S,min:d,max:f,step:h,onChange:b,onBlur:p,"aria-invalid":!!c,"aria-describedby":c?`${y}-error`:n?`${y}-help`:void 0,style:{background:`linear-gradient(to right, #3b82f6 0%, #3b82f6 ${R}%, #e5e7eb ${R}%, #e5e7eb 100%)`}}),m&&s.jsx("div",{className:"form-field-range-value",children:S})]}),g&&s.jsx("span",{className:"form-field-range-label-max",children:f})]}),n&&!c&&s.jsx("div",{id:`${y}-help`,className:"form-field-help",children:n}),c&&s.jsx("div",{id:`${y}-error`,className:"form-field-error",role:"alert",children:c})]})},fy=({id:e,name:t,label:r,helpText:n,required:o=!1,disabled:i=!1,readonly:a=!1,value:l,error:c,max:d=5,allowHalf:f=!1,showLabels:h=!1,labels:m=["Poor","Fair","Good","Very Good","Excellent"],onChange:g,onBlur:x})=>{const p=`field-${e||t}`,[y,S]=E.useState(0),b=N=>{!a&&!i&&(g==null||g(N))},R=N=>{!a&&!i&&S(N)},w=()=>{S(0)},C=N=>{const $=y||Number(l)||0;return N<=$?"form-field-rating-star-filled":"form-field-rating-star-empty"},T=h&&m[Math.ceil(Number(l))-1];return s.jsxs("div",{className:"form-field form-field-rating",children:[r&&s.jsxs("div",{className:"form-field-label",children:[r,o&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsxs("div",{className:"form-field-rating-wrapper",children:[s.jsx("div",{className:"form-field-rating-stars",onMouseLeave:w,onBlur:x,children:[...Array(d)].map((N,$)=>{const D=$+1;return s.jsx("button",{type:"button",className:`form-field-rating-star ${C(D)}`,onClick:()=>b(D),onMouseEnter:()=>R(D),disabled:i||a,"aria-label":`Rate ${D} out of ${d}`,children:"★"},$)})}),h&&T&&s.jsx("span",{className:"form-field-rating-label",children:T})]}),n&&!c&&s.jsx("div",{id:`${p}-help`,className:"form-field-help",children:n}),c&&s.jsx("div",{id:`${p}-error`,className:"form-field-error",role:"alert",children:c})]})};function mr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function wu(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function la(e,t){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},la(e,t)}function Su(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,la(e,t)}const Sl={disabled:!1};var py=process.env.NODE_ENV!=="production"?u.oneOfType([u.number,u.shape({enter:u.number,exit:u.number,appear:u.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&u.oneOfType([u.string,u.shape({enter:u.string,exit:u.string,active:u.string}),u.shape({enter:u.string,enterDone:u.string,enterActive:u.string,exit:u.string,exitDone:u.string,exitActive:u.string})]);const Ao=E.createContext(null);var hy=function(t){return t.scrollTop},Sn="unmounted",jr="exited",Tr="entering",Yr="entered",ca="exiting",lr=function(e){Su(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,l=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?l?(c=jr,i.appearStatus=Tr):c=Yr:n.unmountOnExit||n.mountOnEnter?c=Sn:c=jr,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Sn?{status:jr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Tr&&a!==Yr&&(i=Tr):(a===Tr||a===Yr)&&(i=ca)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Tr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Gt.findDOMNode(this);a&&hy(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jr&&this.setState({status:Sn})},r.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Gt.findDOMNode(this),l],d=c[0],f=c[1],h=this.getTimeouts(),m=l?h.appear:h.enter;if(!o&&!a||Sl.disabled){this.safeSetState({status:Yr},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:Tr},function(){i.props.onEntering(d,f),i.onTransitionEnd(m,function(){i.safeSetState({status:Yr},function(){i.props.onEntered(d,f)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Gt.findDOMNode(this);if(!i||Sl.disabled){this.safeSetState({status:jr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:ca},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:jr},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Gt.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Sn)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=wu(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(Ao.Provider,{value:null},typeof a=="function"?a(o,l):E.cloneElement(E.Children.only(a),l))},t}(E.Component);lr.contextType=Ao;lr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:u.shape({current:typeof Element>"u"?u.any:function(e,t,r,n,o,i){var a=e[t];return u.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:u.oneOfType([u.func.isRequired,u.element.isRequired]).isRequired,in:u.bool,mountOnEnter:u.bool,unmountOnExit:u.bool,appear:u.bool,enter:u.bool,exit:u.bool,timeout:function(t){var r=py;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:u.func,onEnter:u.func,onEntering:u.func,onEntered:u.func,onExit:u.func,onExiting:u.func,onExited:u.func}:{};function Ur(){}lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ur,onEntering:Ur,onEntered:Ur,onExit:Ur,onExiting:Ur,onExited:Ur};lr.UNMOUNTED=Sn;lr.EXITED=jr;lr.ENTERING=Tr;lr.ENTERED=Yr;lr.EXITING=ca;function my(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e,t){var r=function(i){return t&&E.isValidElement(i)?t(i):i},n=Object.create(null);return e&&E.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function gy(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,l={};for(var c in t){if(n[c])for(a=0;a<n[c].length;a++){var d=n[c][a];l[n[c][a]]=r(d)}l[c]=r(c)}for(a=0;a<o.length;a++)l[o[a]]=r(o[a]);return l}function Nr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function vy(e,t){return Ua(e.children,function(r){return E.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Nr(r,"appear",e),enter:Nr(r,"enter",e),exit:Nr(r,"exit",e)})})}function yy(e,t,r){var n=Ua(e.children),o=gy(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(E.isValidElement(a)){var l=i in t,c=i in n,d=t[i],f=E.isValidElement(d)&&!d.props.in;c&&(!l||f)?o[i]=E.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:Nr(a,"exit",e),enter:Nr(a,"enter",e)}):!c&&l&&!f?o[i]=E.cloneElement(a,{in:!1}):c&&l&&E.isValidElement(d)&&(o[i]=E.cloneElement(a,{onExited:r.bind(null,a),in:d.props.in,exit:Nr(a,"exit",e),enter:Nr(a,"enter",e)}))}}),o}var by=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xy={component:"div",childFactory:function(t){return t}},qa=function(e){Su(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(my(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?vy(o,l):yy(o,a,l),firstRender:!1}},r.handleExited=function(o,i){var a=Ua(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var c=No({},l.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,l=wu(o,["component","childFactory"]),c=this.state.contextValue,d=by(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?E.createElement(Ao.Provider,{value:c},d):E.createElement(Ao.Provider,{value:c},E.createElement(i,l,d))},t}(E.Component);qa.propTypes=process.env.NODE_ENV!=="production"?{component:u.any,children:u.node,appear:u.bool,enter:u.bool,exit:u.bool,childFactory:u.func}:{};qa.defaultProps=xy;const El={};function Eu(e,t){const r=I.useRef(El);return r.current===El&&(r.current=e(t)),r}const wy=[];function Sy(e){I.useEffect(e,wy)}class gi{constructor(){pn(this,"currentId",null);pn(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});pn(this,"disposeEffect",()=>this.clear)}static create(){return new gi}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Gr(){const e=Eu(gi.create).current;return Sy(e.disposeEffect),e}function Ey(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Cy(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!Ey(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Cu=mr(u.elementType,Cy),jy=e=>e.scrollTop;function Cl(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function Ty(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function ju(e,t,r,n){const o=e[t];if(o==null||!Number.isInteger(o)){const i=Ty(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Tu(e,t,r,n){return e[t]===void 0?null:ju(e,t,r,n)}function ua(){return null}Tu.isRequired=ju;ua.isRequired=ua;const Ry=process.env.NODE_ENV==="production"?ua:Tu;function Ny(e){return We("MuiPaper",e)}Be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Oy=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ze(i,Ny,o)},ky=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Qe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ya=I.forwardRef(function(t,r){var g;const n=Ke({props:t,name:"MuiPaper"}),o=Ba(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:d="elevation",...f}=n,h={...n,component:a,elevation:l,square:c,variant:d},m=Oy(h);return process.env.NODE_ENV!=="production"&&o.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
110
+ `)),s.jsx(ky,{as:a,ownerState:h,className:ue(m.root,i),ref:r,...f,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(g=o.vars.overlays)==null?void 0:g[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ko("#fff",ea(l))}, ${ko("#fff",ea(l))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(Ya.propTypes={children:u.node,classes:u.object,className:u.string,component:u.elementType,elevation:mr(Ry,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:u.bool,style:u.object,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),variant:u.oneOfType([u.oneOf(["elevation","outlined"]),u.string])});function da(e){return typeof e=="string"}function Ru(e,t,r){return e===void 0||da(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Nu(e,t,r){return typeof e=="function"?e(t,r):e}function $y(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function jl(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Ou(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const g=ue(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),x={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},p={...r,...o,...n};return g.length>0&&(p.className=g),Object.keys(x).length>0&&(p.style=x),{props:p,internalRef:void 0}}const a=$y({...o,...n}),l=jl(n),c=jl(o),d=t(a),f=ue(d==null?void 0:d.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),h={...d==null?void 0:d.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},m={...d,...r,...c,...l};return f.length>0&&(m.className=f),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:d.ref}}function Or(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:f={[e]:void 0},slotProps:h={[e]:void 0},...m}=i,g=f[e]||n,x=Nu(h[e],o),{props:{component:p,...y},internalRef:S}=Ou({className:r,...c,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:x}),b=Jt(S,x==null?void 0:x.ref,t.ref),R=e==="root"?p||d:p,w=Ru(g,{...e==="root"&&!d&&!f[e]&&a,...e!=="root"&&!f[e]&&a,...y,...R&&!l&&{as:R},...R&&l&&{component:R},ref:b},o);return[g,w]}const Ga=u.oneOfType([u.func,u.object]);function Lo(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
111
+ `))}return!1}class Fo{constructor(){pn(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Fo}static use(){const t=Eu(Fo.create).current,[r,n]=I.useState(!1);return t.shouldMount=r,t.setShouldMount=n,I.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=Dy(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function Py(){return Fo.use()}function Dy(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function ku(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:d}=e,[f,h]=I.useState(!1),m=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},x=ue(r.child,f&&r.childLeaving,n&&r.childPulsate);return!l&&!f&&h(!0),I.useEffect(()=>{if(!l&&c!=null){const p=setTimeout(c,d);return()=>{clearTimeout(p)}}},[c,l,d]),s.jsx("span",{className:m,style:g,children:s.jsx("span",{className:x})})}process.env.NODE_ENV!=="production"&&(ku.propTypes={classes:u.object.isRequired,className:u.string,in:u.bool,onExited:u.func,pulsate:u.bool,rippleSize:u.number,rippleX:u.number,rippleY:u.number,timeout:u.number.isRequired});const Ct=Be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fa=550,My=80,Iy=eo`
112
+ 0% {
113
+ transform: scale(0);
114
+ opacity: 0.1;
115
+ }
116
+
117
+ 100% {
118
+ transform: scale(1);
119
+ opacity: 0.3;
120
+ }
121
+ `,_y=eo`
122
+ 0% {
123
+ opacity: 1;
124
+ }
125
+
126
+ 100% {
127
+ opacity: 0;
128
+ }
129
+ `,Ay=eo`
130
+ 0% {
131
+ transform: scale(1);
132
+ }
133
+
134
+ 50% {
135
+ transform: scale(0.92);
136
+ }
137
+
138
+ 100% {
139
+ transform: scale(1);
140
+ }
141
+ `,Ly=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Fy=ve(ku,{name:"MuiTouchRipple",slot:"Ripple"})`
142
+ opacity: 0;
143
+ position: absolute;
144
+
145
+ &.${Ct.rippleVisible} {
146
+ opacity: 0.3;
147
+ transform: scale(1);
148
+ animation-name: ${Iy};
149
+ animation-duration: ${fa}ms;
150
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
151
+ }
152
+
153
+ &.${Ct.ripplePulsate} {
154
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
155
+ }
156
+
157
+ & .${Ct.child} {
158
+ opacity: 1;
159
+ display: block;
160
+ width: 100%;
161
+ height: 100%;
162
+ border-radius: 50%;
163
+ background-color: currentColor;
164
+ }
165
+
166
+ & .${Ct.childLeaving} {
167
+ opacity: 0;
168
+ animation-name: ${_y};
169
+ animation-duration: ${fa}ms;
170
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
171
+ }
172
+
173
+ & .${Ct.childPulsate} {
174
+ position: absolute;
175
+ /* @noflip */
176
+ left: 0px;
177
+ top: 0;
178
+ animation-name: ${Ay};
179
+ animation-duration: 2500ms;
180
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
181
+ animation-iteration-count: infinite;
182
+ animation-delay: 200ms;
183
+ }
184
+ `,$u=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...l}=n,[c,d]=I.useState([]),f=I.useRef(0),h=I.useRef(null);I.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=I.useRef(!1),g=Gr(),x=I.useRef(null),p=I.useRef(null),y=I.useCallback(w=>{const{pulsate:C,rippleX:T,rippleY:N,rippleSize:$,cb:D}=w;d(M=>[...M,s.jsx(Fy,{classes:{ripple:ue(i.ripple,Ct.ripple),rippleVisible:ue(i.rippleVisible,Ct.rippleVisible),ripplePulsate:ue(i.ripplePulsate,Ct.ripplePulsate),child:ue(i.child,Ct.child),childLeaving:ue(i.childLeaving,Ct.childLeaving),childPulsate:ue(i.childPulsate,Ct.childPulsate)},timeout:fa,pulsate:C,rippleX:T,rippleY:N,rippleSize:$},f.current)]),f.current+=1,h.current=D},[i]),S=I.useCallback((w={},C={},T=()=>{})=>{const{pulsate:N=!1,center:$=o||C.pulsate,fakeElement:D=!1}=C;if((w==null?void 0:w.type)==="mousedown"&&m.current){m.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(m.current=!0);const M=D?null:p.current,L=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,k,_;if($||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)v=Math.round(L.width/2),k=Math.round(L.height/2);else{const{clientX:P,clientY:z}=w.touches&&w.touches.length>0?w.touches[0]:w;v=Math.round(P-L.left),k=Math.round(z-L.top)}if($)_=Math.sqrt((2*L.width**2+L.height**2)/3),_%2===0&&(_+=1);else{const P=Math.max(Math.abs((M?M.clientWidth:0)-v),v)*2+2,z=Math.max(Math.abs((M?M.clientHeight:0)-k),k)*2+2;_=Math.sqrt(P**2+z**2)}w!=null&&w.touches?x.current===null&&(x.current=()=>{y({pulsate:N,rippleX:v,rippleY:k,rippleSize:_,cb:T})},g.start(My,()=>{x.current&&(x.current(),x.current=null)})):y({pulsate:N,rippleX:v,rippleY:k,rippleSize:_,cb:T})},[o,y,g]),b=I.useCallback(()=>{S({},{pulsate:!0})},[S]),R=I.useCallback((w,C)=>{if(g.clear(),(w==null?void 0:w.type)==="touchend"&&x.current){x.current(),x.current=null,g.start(0,()=>{R(w,C)});return}x.current=null,d(T=>T.length>0?T.slice(1):T),h.current=C},[g]);return I.useImperativeHandle(r,()=>({pulsate:b,start:S,stop:R}),[b,S,R]),s.jsx(Ly,{className:ue(Ct.root,i.root,a),ref:p,...l,children:s.jsx(qa,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&($u.propTypes={center:u.bool,classes:u.object,className:u.string});function zy(e){return We("MuiButtonBase",e)}const By=Be("MuiButtonBase",["root","disabled","focusVisible"]),Vy=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Ze({root:["root",t&&"disabled",r&&"focusVisible"]},zy,o);return r&&n&&(a.root+=` ${n}`),a},Hy=ve("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${By.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vi=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:m=!1,focusVisibleClassName:g,LinkComponent:x="a",onBlur:p,onClick:y,onContextMenu:S,onDragLeave:b,onFocus:R,onFocusVisible:w,onKeyDown:C,onKeyUp:T,onMouseDown:N,onMouseLeave:$,onMouseUp:D,onTouchEnd:M,onTouchMove:L,onTouchStart:v,tabIndex:k=0,TouchRippleProps:_,touchRippleRef:P,type:z,...B}=n,q=I.useRef(null),U=Py(),O=Jt(U.ref,P),[F,W]=I.useState(!1);d&&F&&W(!1),I.useImperativeHandle(o,()=>({focusVisible:()=>{W(!0),q.current.focus()}}),[]);const X=U.shouldMount&&!f&&!d;I.useEffect(()=>{F&&m&&!f&&U.pulsate()},[f,m,F,U]);const Y=nr(U,"start",N,h),Z=nr(U,"stop",S,h),K=nr(U,"stop",b,h),Q=nr(U,"stop",D,h),te=nr(U,"stop",ne=>{F&&ne.preventDefault(),$&&$(ne)},h),oe=nr(U,"start",v,h),G=nr(U,"stop",M,h),de=nr(U,"stop",L,h),H=nr(U,"stop",ne=>{Lo(ne.target)||W(!1),p&&p(ne)},!1),xe=Qr(ne=>{q.current||(q.current=ne.currentTarget),Lo(ne.target)&&(W(!0),w&&w(ne)),R&&R(ne)}),we=()=>{const ne=q.current;return c&&c!=="button"&&!(ne.tagName==="A"&&ne.href)},ke=Qr(ne=>{m&&!ne.repeat&&F&&ne.key===" "&&U.stop(ne,()=>{U.start(ne)}),ne.target===ne.currentTarget&&we()&&ne.key===" "&&ne.preventDefault(),C&&C(ne),ne.target===ne.currentTarget&&we()&&ne.key==="Enter"&&!d&&(ne.preventDefault(),y&&y(ne))}),Le=Qr(ne=>{m&&ne.key===" "&&F&&!ne.defaultPrevented&&U.stop(ne,()=>{U.pulsate(ne)}),T&&T(ne),y&&ne.target===ne.currentTarget&&we()&&ne.key===" "&&!ne.defaultPrevented&&y(ne)});let Ue=c;Ue==="button"&&(B.href||B.to)&&(Ue=x);const qe={};Ue==="button"?(qe.type=z===void 0?"button":z,qe.disabled=d):(!B.href&&!B.to&&(qe.role="button"),d&&(qe["aria-disabled"]=d));const et=Jt(r,q),Re={...n,centerRipple:i,component:c,disabled:d,disableRipple:f,disableTouchRipple:h,focusRipple:m,tabIndex:k,focusVisible:F},tt=Vy(Re);return s.jsxs(Hy,{as:Ue,className:ue(tt.root,l),ownerState:Re,onBlur:H,onClick:y,onContextMenu:Z,onFocus:xe,onKeyDown:ke,onKeyUp:Le,onMouseDown:Y,onMouseLeave:te,onMouseUp:Q,onDragLeave:K,onTouchEnd:G,onTouchMove:de,onTouchStart:oe,ref:et,tabIndex:d?-1:k,type:z,...qe,...B,children:[a,X?s.jsx($u,{ref:O,center:i,..._}):null]})});function nr(e,t,r,n=!1){return Qr(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(vi.propTypes={action:Ga,centerRipple:u.bool,children:u.node,classes:u.object,className:u.string,component:Cu,disabled:u.bool,disableRipple:u.bool,disableTouchRipple:u.bool,focusRipple:u.bool,focusVisibleClassName:u.string,href:u.any,LinkComponent:u.elementType,onBlur:u.func,onClick:u.func,onContextMenu:u.func,onDragLeave:u.func,onFocus:u.func,onFocusVisible:u.func,onKeyDown:u.func,onKeyUp:u.func,onMouseDown:u.func,onMouseLeave:u.func,onMouseUp:u.func,onTouchEnd:u.func,onTouchMove:u.func,onTouchStart:u.func,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),tabIndex:u.number,TouchRippleProps:u.object,touchRippleRef:u.oneOfType([u.func,u.shape({current:u.shape({pulsate:u.func.isRequired,start:u.func.isRequired,stop:u.func.isRequired})})]),type:u.oneOfType([u.oneOf(["button","reset","submit"]),u.string])});function Wy(e){return typeof e.main=="string"}function Uy(e,t=[]){if(!Wy(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function rn(e=[]){return([,t])=>t&&Uy(t,e)}function qy(e){return We("MuiCircularProgress",e)}Be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ur=44,pa=eo`
185
+ 0% {
186
+ transform: rotate(0deg);
187
+ }
188
+
189
+ 100% {
190
+ transform: rotate(360deg);
191
+ }
192
+ `,ha=eo`
193
+ 0% {
194
+ stroke-dasharray: 1px, 200px;
195
+ stroke-dashoffset: 0;
196
+ }
197
+
198
+ 50% {
199
+ stroke-dasharray: 100px, 200px;
200
+ stroke-dashoffset: -15px;
201
+ }
202
+
203
+ 100% {
204
+ stroke-dasharray: 1px, 200px;
205
+ stroke-dashoffset: -126px;
206
+ }
207
+ `,Yy=typeof pa!="string"?Ia`
208
+ animation: ${pa} 1.4s linear infinite;
209
+ `:null,Gy=typeof ha!="string"?Ia`
210
+ animation: ${ha} 1.4s ease-in-out infinite;
211
+ `:null,Ky=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${ae(n)}`],svg:["svg"],circle:["circle",`circle${ae(r)}`,o&&"circleDisableShrink"]};return Ze(i,qy,t)},Xy=ve("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ae(r.color)}`]]}})(Qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Yy||{animation:`${pa} 1.4s linear infinite`}},...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Jy=ve("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Qy=ve("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ae(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Qe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Gy||{animation:`${ha} 1.4s ease-in-out infinite`}}]}))),Ka=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:c,thickness:d=3.6,value:f=0,variant:h="indeterminate",...m}=n,g={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:h},x=Ky(g),p={},y={},S={};if(h==="determinate"){const b=2*Math.PI*((ur-d)/2);p.strokeDasharray=b.toFixed(3),S["aria-valuenow"]=Math.round(f),p.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,y.transform="rotate(-90deg)"}return s.jsx(Xy,{className:ue(x.root,o),style:{width:l,height:l,...y,...c},ownerState:g,ref:r,role:"progressbar",...S,...m,children:s.jsx(Jy,{className:x.svg,ownerState:g,viewBox:`${ur/2} ${ur/2} ${ur} ${ur}`,children:s.jsx(Qy,{className:x.circle,style:p,ownerState:g,cx:ur,cy:ur,r:(ur-d)/2,fill:"none",strokeWidth:d})})})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["inherit","primary","secondary","error","info","success","warning"]),u.string]),disableShrink:mr(u.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:u.oneOfType([u.number,u.string]),style:u.object,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),thickness:u.number,value:u.number,variant:u.oneOf(["determinate","indeterminate"])});function Zy(e){return We("MuiIconButton",e)}const Tl=Be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),eb=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i,loading:a}=e,l={root:["root",a&&"loading",r&&"disabled",n!=="default"&&`color${ae(n)}`,o&&`edge${ae(o)}`,`size${ae(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ze(l,Zy,t)},tb=ve(vi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${ae(r.color)}`],r.edge&&t[`edge${ae(r.edge)}`],t[`size${ae(r.size)}`]]}})(Qe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Tl.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Tl.loading}`]:{color:"transparent"}}))),rb=ve("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Pu=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:f="medium",id:h,loading:m=null,loadingIndicator:g,...x}=n,p=La(h),y=g??s.jsx(Ka,{"aria-labelledby":p,color:"inherit",size:16}),S={...n,edge:o,color:l,disabled:c,disableFocusRipple:d,loading:m,loadingIndicator:y,size:f},b=eb(S);return s.jsxs(tb,{id:m?p:h,className:ue(b.root,a),centerRipple:!0,focusRipple:!d,disabled:c||m,ref:r,...x,ownerState:S,children:[typeof m=="boolean"&&s.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:s.jsx(rb,{className:b.loadingIndicator,ownerState:S,children:m&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Pu.propTypes={children:mr(u.node,e=>I.Children.toArray(e.children).some(r=>I.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
212
+ `)):null),classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),u.string]),disabled:u.bool,disableFocusRipple:u.bool,disableRipple:u.bool,edge:u.oneOf(["end","start",!1]),id:u.string,loading:u.bool,loadingIndicator:u.node,size:u.oneOfType([u.oneOf(["small","medium","large"]),u.string]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function nb(e){return We("MuiTypography",e)}const Rl=Be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),ob={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ib=og(),ab=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${ae(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Ze(l,nb,a)},sb=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ae(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(rn()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ae(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Nl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_t=I.forwardRef(function(t,r){const{color:n,...o}=Ke({props:t,name:"MuiTypography"}),i=!ob[n],a=ib({...o,...i&&{color:n}}),{align:l="inherit",className:c,component:d,gutterBottom:f=!1,noWrap:h=!1,paragraph:m=!1,variant:g="body1",variantMapping:x=Nl,...p}=a,y={...a,align:l,color:n,className:c,component:d,gutterBottom:f,noWrap:h,paragraph:m,variant:g,variantMapping:x},S=d||(m?"p":x[g]||Nl[g])||"span",b=ab(y);return s.jsx(sb,{as:S,ref:r,className:ue(b.root,c),...p,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...p.style}})});process.env.NODE_ENV!=="production"&&(_t.propTypes={align:u.oneOf(["center","inherit","justify","left","right"]),children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),u.string]),component:u.elementType,gutterBottom:u.bool,noWrap:u.bool,paragraph:u.bool,style:u.object,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),variant:u.oneOfType([u.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),u.string]),variantMapping:u.object});function Hn(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}var dt="top",Nt="bottom",Ot="right",ft="left",Xa="auto",ro=[dt,Nt,Ot,ft],nn="start",Wn="end",lb="clippingParents",Du="viewport",yn="popper",cb="reference",Ol=ro.reduce(function(e,t){return e.concat([t+"-"+nn,t+"-"+Wn])},[]),Mu=[].concat(ro,[Xa]).reduce(function(e,t){return e.concat([t,t+"-"+nn,t+"-"+Wn])},[]),ub="beforeRead",db="read",fb="afterRead",pb="beforeMain",hb="main",mb="afterMain",gb="beforeWrite",vb="write",yb="afterWrite",bb=[ub,db,fb,pb,hb,mb,gb,vb,yb];function Qt(e){return e?(e.nodeName||"").toLowerCase():null}function wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ar(e){var t=wt(e).Element;return e instanceof t||e instanceof Element}function Tt(e){var t=wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ja(e){if(typeof ShadowRoot>"u")return!1;var t=wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xb(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!Tt(i)||!Qt(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function wb(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=a.reduce(function(c,d){return c[d]="",c},{});!Tt(o)||!Qt(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const Sb={name:"applyStyles",enabled:!0,phase:"write",fn:xb,effect:wb,requires:["computeStyles"]};function Xt(e){return e.split("-")[0]}var Pr=Math.max,zo=Math.min,on=Math.round;function ma(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Iu(){return!/^((?!chrome|android).)*safari/i.test(ma())}function an(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Tt(e)&&(o=e.offsetWidth>0&&on(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&on(n.height)/e.offsetHeight||1);var a=Ar(e)?wt(e):window,l=a.visualViewport,c=!Iu()&&r,d=(n.left+(c&&l?l.offsetLeft:0))/o,f=(n.top+(c&&l?l.offsetTop:0))/i,h=n.width/o,m=n.height/i;return{width:h,height:m,top:f,right:d+h,bottom:f+m,left:d,x:d,y:f}}function Qa(e){var t=an(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function _u(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ja(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function sr(e){return wt(e).getComputedStyle(e)}function Eb(e){return["table","td","th"].indexOf(Qt(e))>=0}function gr(e){return((Ar(e)?e.ownerDocument:e.document)||window.document).documentElement}function yi(e){return Qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ja(e)?e.host:null)||gr(e)}function kl(e){return!Tt(e)||sr(e).position==="fixed"?null:e.offsetParent}function Cb(e){var t=/firefox/i.test(ma()),r=/Trident/i.test(ma());if(r&&Tt(e)){var n=sr(e);if(n.position==="fixed")return null}var o=yi(e);for(Ja(o)&&(o=o.host);Tt(o)&&["html","body"].indexOf(Qt(o))<0;){var i=sr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function no(e){for(var t=wt(e),r=kl(e);r&&Eb(r)&&sr(r).position==="static";)r=kl(r);return r&&(Qt(r)==="html"||Qt(r)==="body"&&sr(r).position==="static")?t:r||Cb(e)||t}function Za(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nn(e,t,r){return Pr(e,zo(t,r))}function jb(e,t,r){var n=Nn(e,t,r);return n>r?r:n}function Au(){return{top:0,right:0,bottom:0,left:0}}function Lu(e){return Object.assign({},Au(),e)}function Fu(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Tb=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Lu(typeof t!="number"?t:Fu(t,ro))};function Rb(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,l=Xt(r.placement),c=Za(l),d=[ft,Ot].indexOf(l)>=0,f=d?"height":"width";if(!(!i||!a)){var h=Tb(o.padding,r),m=Qa(i),g=c==="y"?dt:ft,x=c==="y"?Nt:Ot,p=r.rects.reference[f]+r.rects.reference[c]-a[c]-r.rects.popper[f],y=a[c]-r.rects.reference[c],S=no(i),b=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,R=p/2-y/2,w=h[g],C=b-m[f]-h[x],T=b/2-m[f]/2+R,N=Nn(w,T,C),$=c;r.modifiersData[n]=(t={},t[$]=N,t.centerOffset=N-T,t)}}function Nb(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||_u(t.elements.popper,o)&&(t.elements.arrow=o))}const Ob={name:"arrow",enabled:!0,phase:"main",fn:Rb,effect:Nb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sn(e){return e.split("-")[1]}var kb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $b(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:on(r*o)/o||0,y:on(n*o)/o||0}}function $l(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=a.x,g=m===void 0?0:m,x=a.y,p=x===void 0?0:x,y=typeof f=="function"?f({x:g,y:p}):{x:g,y:p};g=y.x,p=y.y;var S=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),R=ft,w=dt,C=window;if(d){var T=no(r),N="clientHeight",$="clientWidth";if(T===wt(r)&&(T=gr(r),sr(T).position!=="static"&&l==="absolute"&&(N="scrollHeight",$="scrollWidth")),T=T,o===dt||(o===ft||o===Ot)&&i===Wn){w=Nt;var D=h&&T===C&&C.visualViewport?C.visualViewport.height:T[N];p-=D-n.height,p*=c?1:-1}if(o===ft||(o===dt||o===Nt)&&i===Wn){R=Ot;var M=h&&T===C&&C.visualViewport?C.visualViewport.width:T[$];g-=M-n.width,g*=c?1:-1}}var L=Object.assign({position:l},d&&kb),v=f===!0?$b({x:g,y:p},wt(r)):{x:g,y:p};if(g=v.x,p=v.y,c){var k;return Object.assign({},L,(k={},k[w]=b?"0":"",k[R]=S?"0":"",k.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+p+"px)":"translate3d("+g+"px, "+p+"px, 0)",k))}return Object.assign({},L,(t={},t[w]=b?p+"px":"",t[R]=S?g+"px":"",t.transform="",t))}function Pb(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,l=r.roundOffsets,c=l===void 0?!0:l,d={placement:Xt(t.placement),variation:sn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$l(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$l(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Db={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pb,data:{}};var uo={passive:!0};function Mb(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,l=a===void 0?!0:a,c=wt(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",r.update,uo)}),l&&c.addEventListener("resize",r.update,uo),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",r.update,uo)}),l&&c.removeEventListener("resize",r.update,uo)}}const Ib={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mb,data:{}};var _b={left:"right",right:"left",bottom:"top",top:"bottom"};function wo(e){return e.replace(/left|right|bottom|top/g,function(t){return _b[t]})}var Ab={start:"end",end:"start"};function Pl(e){return e.replace(/start|end/g,function(t){return Ab[t]})}function es(e){var t=wt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ts(e){return an(gr(e)).left+es(e).scrollLeft}function Lb(e,t){var r=wt(e),n=gr(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var d=Iu();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+ts(e),y:c}}function Fb(e){var t,r=gr(e),n=es(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Pr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Pr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+ts(e),c=-n.scrollTop;return sr(o||r).direction==="rtl"&&(l+=Pr(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function rs(e){var t=sr(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function zu(e){return["html","body","#document"].indexOf(Qt(e))>=0?e.ownerDocument.body:Tt(e)&&rs(e)?e:zu(yi(e))}function On(e,t){var r;t===void 0&&(t=[]);var n=zu(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=wt(n),a=o?[i].concat(i.visualViewport||[],rs(n)?n:[]):n,l=t.concat(a);return o?l:l.concat(On(yi(a)))}function ga(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zb(e,t){var r=an(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Dl(e,t,r){return t===Du?ga(Lb(e,r)):Ar(t)?zb(t,r):ga(Fb(gr(e)))}function Bb(e){var t=On(yi(e)),r=["absolute","fixed"].indexOf(sr(e).position)>=0,n=r&&Tt(e)?no(e):e;return Ar(n)?t.filter(function(o){return Ar(o)&&_u(o,n)&&Qt(o)!=="body"}):[]}function Vb(e,t,r,n){var o=t==="clippingParents"?Bb(e):[].concat(t),i=[].concat(o,[r]),a=i[0],l=i.reduce(function(c,d){var f=Dl(e,d,n);return c.top=Pr(f.top,c.top),c.right=zo(f.right,c.right),c.bottom=zo(f.bottom,c.bottom),c.left=Pr(f.left,c.left),c},Dl(e,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Bu(e){var t=e.reference,r=e.element,n=e.placement,o=n?Xt(n):null,i=n?sn(n):null,a=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(o){case dt:c={x:a,y:t.y-r.height};break;case Nt:c={x:a,y:t.y+t.height};break;case Ot:c={x:t.x+t.width,y:l};break;case ft:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?Za(o):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case nn:c[d]=c[d]-(t[f]/2-r[f]/2);break;case Wn:c[d]=c[d]+(t[f]/2-r[f]/2);break}}return c}function Un(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,l=r.boundary,c=l===void 0?lb:l,d=r.rootBoundary,f=d===void 0?Du:d,h=r.elementContext,m=h===void 0?yn:h,g=r.altBoundary,x=g===void 0?!1:g,p=r.padding,y=p===void 0?0:p,S=Lu(typeof y!="number"?y:Fu(y,ro)),b=m===yn?cb:yn,R=e.rects.popper,w=e.elements[x?b:m],C=Vb(Ar(w)?w:w.contextElement||gr(e.elements.popper),c,f,a),T=an(e.elements.reference),N=Bu({reference:T,element:R,placement:o}),$=ga(Object.assign({},R,N)),D=m===yn?$:T,M={top:C.top-D.top+S.top,bottom:D.bottom-C.bottom+S.bottom,left:C.left-D.left+S.left,right:D.right-C.right+S.right},L=e.modifiersData.offset;if(m===yn&&L){var v=L[o];Object.keys(M).forEach(function(k){var _=[Ot,Nt].indexOf(k)>=0?1:-1,P=[dt,Nt].indexOf(k)>=0?"y":"x";M[k]+=v[P]*_})}return M}function Hb(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,d=c===void 0?Mu:c,f=sn(n),h=f?l?Ol:Ol.filter(function(x){return sn(x)===f}):ro,m=h.filter(function(x){return d.indexOf(x)>=0});m.length===0&&(m=h);var g=m.reduce(function(x,p){return x[p]=Un(e,{placement:p,boundary:o,rootBoundary:i,padding:a})[Xt(p)],x},{});return Object.keys(g).sort(function(x,p){return g[x]-g[p]})}function Wb(e){if(Xt(e)===Xa)return[];var t=wo(e);return[Pl(e),t,Pl(t)]}function Ub(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,l=a===void 0?!0:a,c=r.fallbackPlacements,d=r.padding,f=r.boundary,h=r.rootBoundary,m=r.altBoundary,g=r.flipVariations,x=g===void 0?!0:g,p=r.allowedAutoPlacements,y=t.options.placement,S=Xt(y),b=S===y,R=c||(b||!x?[wo(y)]:Wb(y)),w=[y].concat(R).reduce(function(Y,Z){return Y.concat(Xt(Z)===Xa?Hb(t,{placement:Z,boundary:f,rootBoundary:h,padding:d,flipVariations:x,allowedAutoPlacements:p}):Z)},[]),C=t.rects.reference,T=t.rects.popper,N=new Map,$=!0,D=w[0],M=0;M<w.length;M++){var L=w[M],v=Xt(L),k=sn(L)===nn,_=[dt,Nt].indexOf(v)>=0,P=_?"width":"height",z=Un(t,{placement:L,boundary:f,rootBoundary:h,altBoundary:m,padding:d}),B=_?k?Ot:ft:k?Nt:dt;C[P]>T[P]&&(B=wo(B));var q=wo(B),U=[];if(i&&U.push(z[v]<=0),l&&U.push(z[B]<=0,z[q]<=0),U.every(function(Y){return Y})){D=L,$=!1;break}N.set(L,U)}if($)for(var O=x?3:1,F=function(Z){var K=w.find(function(Q){var te=N.get(Q);if(te)return te.slice(0,Z).every(function(oe){return oe})});if(K)return D=K,"break"},W=O;W>0;W--){var X=F(W);if(X==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const qb={name:"flip",enabled:!0,phase:"main",fn:Ub,requiresIfExists:["offset"],data:{_skip:!1}};function Ml(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Il(e){return[dt,Ot,Nt,ft].some(function(t){return e[t]>=0})}function Yb(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Un(t,{elementContext:"reference"}),l=Un(t,{altBoundary:!0}),c=Ml(a,n),d=Ml(l,o,i),f=Il(c),h=Il(d);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Gb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yb};function Kb(e,t,r){var n=Xt(e),o=[ft,dt].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[ft,Ot].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}function Xb(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=Mu.reduce(function(f,h){return f[h]=Kb(h,t.rects,i),f},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=a}const Jb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xb};function Qb(e){var t=e.state,r=e.name;t.modifiersData[r]=Bu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Zb={name:"popperOffsets",enabled:!0,phase:"read",fn:Qb,data:{}};function ex(e){return e==="x"?"y":"x"}function tx(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,l=a===void 0?!1:a,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,h=r.padding,m=r.tether,g=m===void 0?!0:m,x=r.tetherOffset,p=x===void 0?0:x,y=Un(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:f}),S=Xt(t.placement),b=sn(t.placement),R=!b,w=Za(S),C=ex(w),T=t.modifiersData.popperOffsets,N=t.rects.reference,$=t.rects.popper,D=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,M=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(T){if(i){var k,_=w==="y"?dt:ft,P=w==="y"?Nt:Ot,z=w==="y"?"height":"width",B=T[w],q=B+y[_],U=B-y[P],O=g?-$[z]/2:0,F=b===nn?N[z]:$[z],W=b===nn?-$[z]:-N[z],X=t.elements.arrow,Y=g&&X?Qa(X):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Au(),K=Z[_],Q=Z[P],te=Nn(0,N[z],Y[z]),oe=R?N[z]/2-O-te-K-M.mainAxis:F-te-K-M.mainAxis,G=R?-N[z]/2+O+te+Q+M.mainAxis:W+te+Q+M.mainAxis,de=t.elements.arrow&&no(t.elements.arrow),H=de?w==="y"?de.clientTop||0:de.clientLeft||0:0,xe=(k=L==null?void 0:L[w])!=null?k:0,we=B+oe-xe-H,ke=B+G-xe,Le=Nn(g?zo(q,we):q,B,g?Pr(U,ke):U);T[w]=Le,v[w]=Le-B}if(l){var Ue,qe=w==="x"?dt:ft,et=w==="x"?Nt:Ot,Re=T[C],tt=C==="y"?"height":"width",ne=Re+y[qe],Ft=Re-y[et],zt=[dt,ft].indexOf(S)!==-1,Zt=(Ue=L==null?void 0:L[C])!=null?Ue:0,er=zt?ne:Re-N[tt]-$[tt]-Zt+M.altAxis,rt=zt?Re+N[tt]+$[tt]-Zt-M.altAxis:Ft,ht=g&&zt?jb(er,Re,rt):Nn(g?er:ne,Re,g?rt:Ft);T[C]=ht,v[C]=ht-Re}t.modifiersData[n]=v}}const rx={name:"preventOverflow",enabled:!0,phase:"main",fn:tx,requiresIfExists:["offset"]};function nx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ox(e){return e===wt(e)||!Tt(e)?es(e):nx(e)}function ix(e){var t=e.getBoundingClientRect(),r=on(t.width)/e.offsetWidth||1,n=on(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ax(e,t,r){r===void 0&&(r=!1);var n=Tt(t),o=Tt(t)&&ix(t),i=gr(t),a=an(e,o,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Qt(t)!=="body"||rs(i))&&(l=ox(t)),Tt(t)?(c=an(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=ts(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function sx(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&o(c)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function lx(e){var t=sx(e);return bb.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function cx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function ux(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var _l={placement:"bottom",modifiers:[],strategy:"absolute"};function Al(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function dx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?_l:o;return function(l,c,d){d===void 0&&(d=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},_l,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],m=!1,g={state:f,setOptions:function(S){var b=typeof S=="function"?S(f.options):S;p(),f.options=Object.assign({},i,f.options,b),f.scrollParents={reference:Ar(l)?On(l):l.contextElement?On(l.contextElement):[],popper:On(c)};var R=lx(ux([].concat(n,f.options.modifiers)));return f.orderedModifiers=R.filter(function(w){return w.enabled}),x(),g.update()},forceUpdate:function(){if(!m){var S=f.elements,b=S.reference,R=S.popper;if(Al(b,R)){f.rects={reference:ax(b,no(R),f.options.strategy==="fixed"),popper:Qa(R)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var w=0;w<f.orderedModifiers.length;w++){if(f.reset===!0){f.reset=!1,w=-1;continue}var C=f.orderedModifiers[w],T=C.fn,N=C.options,$=N===void 0?{}:N,D=C.name;typeof T=="function"&&(f=T({state:f,options:$,name:D,instance:g})||f)}}}},update:cx(function(){return new Promise(function(y){g.forceUpdate(),y(f)})}),destroy:function(){p(),m=!0}};if(!Al(l,c))return g;g.setOptions(d).then(function(y){!m&&d.onFirstUpdate&&d.onFirstUpdate(y)});function x(){f.orderedModifiers.forEach(function(y){var S=y.name,b=y.options,R=b===void 0?{}:b,w=y.effect;if(typeof w=="function"){var C=w({state:f,name:S,instance:g,options:R}),T=function(){};h.push(C||T)}})}function p(){h.forEach(function(y){return y()}),h=[]}return g}}var fx=[Ib,Zb,Db,Sb,Jb,qb,rx,Ob,Gb],px=dx({defaultModifiers:fx});function hx(e){var h;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Nu(r,n),{props:l,internalRef:c}=Ou({...i,externalSlotProps:a}),d=Jt(c,a==null?void 0:a.ref,(h=e.additionalProps)==null?void 0:h.ref);return Ru(t,{...l,ref:d},n)}function ns(e){var t;return parseInt(I.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function mx(e){return typeof e=="function"?e():e}const Bo=I.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[a,l]=I.useState(null),c=Jt(I.isValidElement(n)?ns(n):null,r);if(Ln(()=>{i||l(mx(o)||document.body)},[o,i]),Ln(()=>{if(a&&!i)return dl(r,a),()=>{dl(r,null)}},[r,a,i]),i){if(I.isValidElement(n)){const d={ref:c};return I.cloneElement(n,d)}return n}return a&&sd.createPortal(n,a)});process.env.NODE_ENV!=="production"&&(Bo.propTypes={children:u.node,container:u.oneOfType([Hn,u.func]),disablePortal:u.bool});process.env.NODE_ENV!=="production"&&(Bo.propTypes=dm(Bo.propTypes));function gx(e){return We("MuiPopper",e)}Be("MuiPopper",["root"]);function vx(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Vo(e){return typeof e=="function"?e():e}function bi(e){return e.nodeType!==void 0}function yx(e){return!bi(e)}const bx=e=>{const{classes:t}=e;return Ze({root:["root"]},gx,t)},xx={},wx=I.forwardRef(function(t,r){const{anchorEl:n,children:o,direction:i,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:f,popperRef:h,slotProps:m={},slots:g={},TransitionProps:x,ownerState:p,...y}=t,S=I.useRef(null),b=Jt(S,r),R=I.useRef(null),w=Jt(R,h),C=I.useRef(w);Ln(()=>{C.current=w},[w]),I.useImperativeHandle(h,()=>R.current,[]);const T=vx(d,i),[N,$]=I.useState(T),[D,M]=I.useState(Vo(n));I.useEffect(()=>{R.current&&R.current.forceUpdate()}),I.useEffect(()=>{n&&M(Vo(n))},[n]),Ln(()=>{if(!D||!c)return;const P=q=>{$(q.placement)};if(process.env.NODE_ENV!=="production"&&D&&bi(D)&&D.nodeType===1){const q=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&q.top===0&&q.left===0&&q.right===0&&q.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
213
+ `))}let z=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{P(q)}}];l!=null&&(z=z.concat(l)),f&&f.modifiers!=null&&(z=z.concat(f.modifiers));const B=px(D,S.current,{placement:T,...f,modifiers:z});return C.current(B),()=>{B.destroy(),C.current(null)}},[D,a,l,c,f,T]);const L={placement:N};x!==null&&(L.TransitionProps=x);const v=bx(t),k=g.root??"div",_=hx({elementType:k,externalSlotProps:m.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:v.root});return s.jsx(k,{..._,children:typeof o=="function"?o(L):o})}),Vu=I.forwardRef(function(t,r){const{anchorEl:n,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:f,placement:h="bottom",popperOptions:m=xx,popperRef:g,style:x,transition:p=!1,slotProps:y={},slots:S={},...b}=t,[R,w]=I.useState(!0),C=()=>{w(!1)},T=()=>{w(!0)};if(!c&&!f&&(!p||R))return null;let N;if(i)N=i;else if(n){const M=Vo(n);N=M&&bi(M)?ul(M).body:ul(null).body}const $=!f&&c&&(!p||R)?"none":void 0,D=p?{in:f,onEnter:C,onExited:T}:void 0;return s.jsx(Bo,{disablePortal:l,container:N,children:s.jsx(wx,{anchorEl:n,direction:a,disablePortal:l,modifiers:d,ref:r,open:p?!R:f,placement:h,popperOptions:m,popperRef:g,slotProps:y,slots:S,...b,style:{position:"fixed",top:0,left:0,display:$,...x},TransitionProps:D,children:o})})});process.env.NODE_ENV!=="production"&&(Vu.propTypes={anchorEl:mr(u.oneOfType([Hn,u.object,u.func]),e=>{if(e.open){const t=Vo(e.anchorEl);if(t&&bi(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
214
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||yx(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
215
+ `))}return null}),children:u.oneOfType([u.node,u.func]),container:u.oneOfType([Hn,u.func]),direction:u.oneOf(["ltr","rtl"]),disablePortal:u.bool,keepMounted:u.bool,modifiers:u.arrayOf(u.shape({data:u.object,effect:u.func,enabled:u.bool,fn:u.func,name:u.any,options:u.object,phase:u.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:u.arrayOf(u.string),requiresIfExists:u.arrayOf(u.string)})),open:u.bool.isRequired,placement:u.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:u.shape({modifiers:u.array,onFirstUpdate:u.func,placement:u.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:u.oneOf(["absolute","fixed"])}),popperRef:Ga,slotProps:u.shape({root:u.oneOfType([u.func,u.object])}),slots:u.shape({root:u.elementType}),transition:u.bool});const Sx=ve(Vu,{name:"MuiPopper",slot:"Root"})({}),os=I.forwardRef(function(t,r){const n=Hc(),o=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:d,disablePortal:f,keepMounted:h,modifiers:m,open:g,placement:x,popperOptions:p,popperRef:y,transition:S,slots:b,slotProps:R,...w}=o,C=(b==null?void 0:b.root)??(l==null?void 0:l.Root),T={anchorEl:i,container:d,disablePortal:f,keepMounted:h,modifiers:m,open:g,placement:x,popperOptions:p,popperRef:y,transition:S,...w};return s.jsx(Sx,{as:a,direction:n?"rtl":"ltr",slots:{root:C},slotProps:R??c,...T,ref:r})});process.env.NODE_ENV!=="production"&&(os.propTypes={anchorEl:u.oneOfType([Hn,u.object,u.func]),children:u.oneOfType([u.node,u.func]),component:u.elementType,components:u.shape({Root:u.elementType}),componentsProps:u.shape({root:u.oneOfType([u.func,u.object])}),container:u.oneOfType([Hn,u.func]),disablePortal:u.bool,keepMounted:u.bool,modifiers:u.arrayOf(u.shape({data:u.object,effect:u.func,enabled:u.bool,fn:u.func,name:u.any,options:u.object,phase:u.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:u.arrayOf(u.string),requiresIfExists:u.arrayOf(u.string)})),open:u.bool.isRequired,placement:u.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:u.shape({modifiers:u.array,onFirstUpdate:u.func,placement:u.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:u.oneOf(["absolute","fixed"])}),popperRef:Ga,slotProps:u.shape({root:u.oneOfType([u.func,u.object])}),slots:u.shape({root:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),transition:u.bool});function Ex(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Hu(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!Ex(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const is=mr(u.element,Hu);is.isRequired=mr(u.element.isRequired,Hu);const Cx=Be("MuiBox",["root"]),jx=Jc(),or=Kh({themeId:za,defaultTheme:jx,defaultClassName:Cx.root,generateClassName:pc.generate});process.env.NODE_ENV!=="production"&&(or.propTypes={children:u.node,component:u.elementType,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function Tx(e){return We("MuiButton",e)}const Er=Be("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Wu=I.createContext({});process.env.NODE_ENV!=="production"&&(Wu.displayName="ButtonGroupContext");const Uu=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(Uu.displayName="ButtonGroupButtonContext");const Rx=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,loading:a,loadingPosition:l,classes:c}=e,d={root:["root",a&&"loading",i,`${i}${ae(t)}`,`size${ae(o)}`,`${i}Size${ae(o)}`,`color${ae(t)}`,r&&"disableElevation",n&&"fullWidth",a&&`loadingPosition${ae(l)}`],startIcon:["icon","startIcon",`iconSize${ae(o)}`],endIcon:["icon","endIcon",`iconSize${ae(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},f=Ze(d,Tx,c);return{...c,...f}},qu=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nx=ve(vi,{shouldForwardProp:e=>Zc(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ae(r.color)}`],t[`size${ae(r.size)}`],t[`${r.variant}Size${ae(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Er.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Er.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Er.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Er.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(rn()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Er.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Er.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Er.loading}`]:{color:"transparent"}}}]}})),Ox=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${ae(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...qu]})),kx=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${ae(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...qu]})),$x=ve("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ll=ve("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Yu=I.forwardRef(function(t,r){const n=I.useContext(Wu),o=I.useContext(Uu),i=An(n,t),a=Ke({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:f,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:g=!1,endIcon:x,focusVisibleClassName:p,fullWidth:y=!1,id:S,loading:b=null,loadingIndicator:R,loadingPosition:w="center",size:C="medium",startIcon:T,type:N,variant:$="text",...D}=a,M=La(S),L=R??s.jsx(Ka,{"aria-labelledby":M,color:"inherit",size:16}),v={...a,color:c,component:d,disabled:h,disableElevation:m,disableFocusRipple:g,fullWidth:y,loading:b,loadingIndicator:L,loadingPosition:w,size:C,type:N,variant:$},k=Rx(v),_=(T||b&&w==="start")&&s.jsx(Ox,{className:k.startIcon,ownerState:v,children:T||s.jsx(Ll,{className:k.loadingIconPlaceholder,ownerState:v})}),P=(x||b&&w==="end")&&s.jsx(kx,{className:k.endIcon,ownerState:v,children:x||s.jsx(Ll,{className:k.loadingIconPlaceholder,ownerState:v})}),z=o||"",B=typeof b=="boolean"?s.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:b&&s.jsx($x,{className:k.loadingIndicator,ownerState:v,children:L})}):null;return s.jsxs(Nx,{ownerState:v,className:ue(n.className,k.root,f,z),component:d,disabled:h||b,focusRipple:!g,focusVisibleClassName:ue(k.focusVisible,p),ref:r,type:N,id:b?M:S,...D,classes:k,children:[_,w!=="end"&&B,l,w==="end"&&B,P]})});process.env.NODE_ENV!=="production"&&(Yu.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["inherit","primary","secondary","success","error","info","warning"]),u.string]),component:u.elementType,disabled:u.bool,disableElevation:u.bool,disableFocusRipple:u.bool,disableRipple:u.bool,endIcon:u.node,focusVisibleClassName:u.string,fullWidth:u.bool,href:u.string,id:u.string,loading:u.bool,loadingIndicator:u.node,loadingPosition:u.oneOf(["center","end","start"]),size:u.oneOfType([u.oneOf(["small","medium","large"]),u.string]),startIcon:u.node,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),type:u.oneOfType([u.oneOf(["button","reset","submit"]),u.string]),variant:u.oneOfType([u.oneOf(["contained","outlined","text"]),u.string])});function Px(e){return I.Children.toArray(e).filter(t=>I.isValidElement(t))}function Dx(e){return We("MuiDivider",e)}Be("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Mx=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:c}=e;return Ze({root:["root",t&&"absolute",c,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Dx,n)},Ix=ve("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Qe(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),_x=ve("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Qe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ho=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:l="horizontal",component:c=i||l==="vertical"?"div":"hr",flexItem:d=!1,light:f=!1,role:h=c!=="hr"?"separator":void 0,textAlign:m="center",variant:g="fullWidth",...x}=n,p={...n,absolute:o,component:c,flexItem:d,light:f,orientation:l,role:h,textAlign:m,variant:g},y=Mx(p);return s.jsx(Ix,{as:c,className:ue(y.root,a),role:h,ref:r,ownerState:p,"aria-orientation":h==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...x,children:i?s.jsx(_x,{className:y.wrapper,ownerState:p,children:i}):null})});Ho&&(Ho.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Ho.propTypes={absolute:u.bool,children:u.node,classes:u.object,className:u.string,component:u.elementType,flexItem:u.bool,light:u.bool,orientation:u.oneOf(["horizontal","vertical"]),role:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),textAlign:u.oneOf(["center","left","right"]),variant:u.oneOfType([u.oneOf(["fullWidth","inset","middle"]),u.string])});function va(e){return`scale(${e}, ${e**2})`}const Ax={entering:{opacity:1,transform:va(1)},entered:{opacity:1,transform:"none"}},Fi=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wo=I.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:c,onEntered:d,onEntering:f,onExit:h,onExited:m,onExiting:g,style:x,timeout:p="auto",TransitionComponent:y=lr,...S}=t,b=Gr(),R=I.useRef(),w=Ba(),C=I.useRef(null),T=Jt(C,ns(i),r),N=P=>z=>{if(P){const B=C.current;z===void 0?P(B):P(B,z)}},$=N(f),D=N((P,z)=>{jy(P);const{duration:B,delay:q,easing:U}=Cl({style:x,timeout:p,easing:a},{mode:"enter"});let O;p==="auto"?(O=w.transitions.getAutoHeightDuration(P.clientHeight),R.current=O):O=B,P.style.transition=[w.transitions.create("opacity",{duration:O,delay:q}),w.transitions.create("transform",{duration:Fi?O:O*.666,delay:q,easing:U})].join(","),c&&c(P,z)}),M=N(d),L=N(g),v=N(P=>{const{duration:z,delay:B,easing:q}=Cl({style:x,timeout:p,easing:a},{mode:"exit"});let U;p==="auto"?(U=w.transitions.getAutoHeightDuration(P.clientHeight),R.current=U):U=z,P.style.transition=[w.transitions.create("opacity",{duration:U,delay:B}),w.transitions.create("transform",{duration:Fi?U:U*.666,delay:Fi?B:B||U*.333,easing:q})].join(","),P.style.opacity=0,P.style.transform=va(.75),h&&h(P)}),k=N(m),_=P=>{p==="auto"&&b.start(R.current||0,P),n&&n(C.current,P)};return s.jsx(y,{appear:o,in:l,nodeRef:C,onEnter:D,onEntered:M,onEntering:$,onExit:v,onExited:k,onExiting:L,addEndListener:_,timeout:p==="auto"?null:p,...S,children:(P,{ownerState:z,...B})=>I.cloneElement(i,{style:{opacity:0,transform:va(.75),visibility:P==="exited"&&!l?"hidden":void 0,...Ax[P],...x,...i.props.style},ref:T,...B})})});process.env.NODE_ENV!=="production"&&(Wo.propTypes={addEndListener:u.func,appear:u.bool,children:is.isRequired,easing:u.oneOfType([u.shape({enter:u.string,exit:u.string}),u.string]),in:u.bool,onEnter:u.func,onEntered:u.func,onEntering:u.func,onExit:u.func,onExited:u.func,onExiting:u.func,style:u.object,timeout:u.oneOfType([u.oneOf(["auto"]),u.number,u.shape({appear:u.number,enter:u.number,exit:u.number})])});Wo&&(Wo.muiSupportAuto=!0);const Dr=I.createContext({});process.env.NODE_ENV!=="production"&&(Dr.displayName="ListContext");function Lx(e){return We("MuiList",e)}Be("MuiList",["root","padding","dense","subheader"]);const Fx=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ze({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Lx,t)},zx=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Gu=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:d,...f}=n,h=I.useMemo(()=>({dense:l}),[l]),m={...n,component:a,dense:l,disablePadding:c},g=Fx(m);return s.jsx(Dr.Provider,{value:h,children:s.jsxs(zx,{as:a,className:ue(g.root,i),ref:r,ownerState:m,...f,children:[d,o]})})});process.env.NODE_ENV!=="production"&&(Gu.propTypes={children:u.node,classes:u.object,className:u.string,component:u.elementType,dense:u.bool,disablePadding:u.bool,subheader:u.node,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function Bx(e){return We("MuiListItem",e)}Be("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Vx=Be("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Hx(e){return We("MuiListItemSecondaryAction",e)}Be("MuiListItemSecondaryAction",["root","disableGutters"]);const Wx=e=>{const{disableGutters:t,classes:r}=e;return Ze({root:["root",t&&"disableGutters"]},Hx,r)},Ux=ve("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),xi=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=n,a=I.useContext(Dr),l={...n,disableGutters:a.disableGutters},c=Wx(l);return s.jsx(Ux,{className:ue(c.root,o),ownerState:l,ref:r,...i})});process.env.NODE_ENV!=="production"&&(xi.propTypes={children:u.node,classes:u.object,className:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});xi.muiName="ListItemSecondaryAction";const qx=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},Yx=e=>{const{alignItems:t,classes:r,dense:n,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Ze({root:["root",n&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},Bx,r)},Gx=ve("div",{name:"MuiListItem",slot:"Root",overridesResolver:qx})(Qe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Vx.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Kx=ve("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ku=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:l,components:c={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:h,...m}={},dense:g=!1,disableGutters:x=!1,disablePadding:p=!1,divider:y=!1,secondaryAction:S,slotProps:b={},slots:R={},...w}=n,C=I.useContext(Dr),T=I.useMemo(()=>({dense:g||C.dense||!1,alignItems:o,disableGutters:x}),[o,C.dense,g,x]),N=I.useRef(null),$=I.Children.toArray(i),D=$.length&&Wc($[$.length-1],["ListItemSecondaryAction"]),M={...n,alignItems:o,dense:T.dense,disableGutters:x,disablePadding:p,divider:y,hasSecondaryAction:D},L=Yx(M),v=Jt(N,r),k=R.root||c.Root||Gx,_=b.root||d.root||{},P={className:ue(L.root,_.className,a),...w};let z=l||"li";return D?(z=!P.component&&!l?"div":z,f==="li"&&(z==="li"?z="div":P.component==="li"&&(P.component="div")),s.jsx(Dr.Provider,{value:T,children:s.jsxs(Kx,{as:f,className:ue(L.container,h),ref:v,ownerState:M,...m,children:[s.jsx(k,{..._,...!da(k)&&{as:z,ownerState:{...M,..._.ownerState}},...P,children:$}),$.pop()]})})):s.jsx(Dr.Provider,{value:T,children:s.jsxs(k,{..._,as:z,ref:v,...!da(k)&&{ownerState:{...M,..._.ownerState}},...P,children:[$,S&&s.jsx(xi,{children:S})]})})});process.env.NODE_ENV!=="production"&&(Ku.propTypes={alignItems:u.oneOf(["center","flex-start"]),children:mr(u.node,e=>{const t=I.Children.toArray(e.children);let r=-1;for(let n=t.length-1;n>=0;n-=1){const o=t[n];if(Wc(o,["ListItemSecondaryAction"])){r=n;break}}return r!==-1&&r!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:u.object,className:u.string,component:u.elementType,components:u.shape({Root:u.elementType}),componentsProps:u.shape({root:u.object}),ContainerComponent:Cu,ContainerProps:u.object,dense:u.bool,disableGutters:u.bool,disablePadding:u.bool,divider:u.bool,secondaryAction:u.node,slotProps:u.shape({root:u.object}),slots:u.shape({root:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function Xx(e){return We("MuiListItemText",e)}const fo=Be("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Jx=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return Ze({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Xx,t)},Qx=ve("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${fo.primary}`]:t.primary},{[`& .${fo.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Rl.root}:where(& .${fo.primary})`]:{display:"block"},[`.${Rl.root}:where(& .${fo.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Xu=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:l=!1,primary:c,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:h,slots:m={},slotProps:g={},...x}=n,{dense:p}=I.useContext(Dr);let y=c??o,S=f;const b={...n,disableTypography:a,inset:l,primary:!!y,secondary:!!S,dense:p},R=Jx(b),w={slots:m,slotProps:{primary:d,secondary:h,...g}},[C,T]=Or("root",{className:ue(R.root,i),elementType:Qx,externalForwardedProps:{...w,...x},ownerState:b,ref:r}),[N,$]=Or("primary",{className:R.primary,elementType:_t,externalForwardedProps:w,ownerState:b}),[D,M]=Or("secondary",{className:R.secondary,elementType:_t,externalForwardedProps:w,ownerState:b});return y!=null&&y.type!==_t&&!a&&(y=s.jsx(N,{variant:p?"body2":"body1",component:$!=null&&$.variant?void 0:"span",...$,children:y})),S!=null&&S.type!==_t&&!a&&(S=s.jsx(D,{variant:"body2",color:"textSecondary",...M,children:S})),s.jsxs(C,{...T,children:[y,S]})});process.env.NODE_ENV!=="production"&&(Xu.propTypes={children:u.node,classes:u.object,className:u.string,disableTypography:u.bool,inset:u.bool,primary:u.node,primaryTypographyProps:u.object,secondary:u.node,secondaryTypographyProps:u.object,slotProps:u.shape({primary:u.oneOfType([u.func,u.object]),root:u.oneOfType([u.func,u.object]),secondary:u.oneOfType([u.func,u.object])}),slots:u.shape({primary:u.elementType,root:u.elementType,secondary:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function Zx(e){return We("MuiTooltip",e)}const Ie=Be("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function e0(e){return Math.round(e*1e5)/1e5}const t0=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${ae(i.split("-")[0])}`],arrow:["arrow"]};return Ze(a,Zx,t)},r0=ve(os,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ie.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ie.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ie.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ie.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ie.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ie.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ie.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ie.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),n0=ve("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ae(r.placement.split("-")[0])}`]]}})(Qe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ie.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ie.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ie.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ie.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${e0(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ie.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ie.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ie.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ie.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ie.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ie.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ie.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ie.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ie.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ie.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),o0=ve("span",{name:"MuiTooltip",slot:"Arrow"})(Qe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let po=!1;const Fl=new gi;let bn={x:0,y:0};function ho(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Ju=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:l={},componentsProps:c={},describeChild:d=!1,disableFocusListener:f=!1,disableHoverListener:h=!1,disableInteractive:m=!1,disableTouchListener:g=!1,enterDelay:x=100,enterNextDelay:p=0,enterTouchDelay:y=700,followCursor:S=!1,id:b,leaveDelay:R=0,leaveTouchDelay:w=1500,onClose:C,onOpen:T,open:N,placement:$="bottom",PopperComponent:D,PopperProps:M={},slotProps:L={},slots:v={},title:k,TransitionComponent:_,TransitionProps:P,...z}=n,B=I.isValidElement(i)?i:s.jsx("span",{children:i}),q=Ba(),U=Hc(),[O,F]=I.useState(),[W,X]=I.useState(null),Y=I.useRef(!1),Z=m||S,K=Gr(),Q=Gr(),te=Gr(),oe=Gr(),[G,de]=lg({controlled:N,default:!1,name:"Tooltip",state:"open"});let H=G;if(process.env.NODE_ENV!=="production"){const{current:re}=I.useRef(N!==void 0);I.useEffect(()=>{O&&O.disabled&&!re&&k!==""&&O.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
216
+ `))},[k,O,re])}const xe=La(b),we=I.useRef(),ke=Qr(()=>{we.current!==void 0&&(document.body.style.WebkitUserSelect=we.current,we.current=void 0),oe.clear()});I.useEffect(()=>ke,[ke]);const Le=re=>{Fl.clear(),po=!0,de(!0),T&&!H&&T(re)},Ue=Qr(re=>{Fl.start(800+R,()=>{po=!1}),de(!1),C&&H&&C(re),K.start(q.transitions.duration.shortest,()=>{Y.current=!1})}),qe=re=>{Y.current&&re.type!=="touchstart"||(O&&O.removeAttribute("title"),Q.clear(),te.clear(),x||po&&p?Q.start(po?p:x,()=>{Le(re)}):Le(re))},et=re=>{Q.clear(),te.start(R,()=>{Ue(re)})},[,Re]=I.useState(!1),tt=re=>{Lo(re.target)||(Re(!1),et(re))},ne=re=>{O||F(re.currentTarget),Lo(re.target)&&(Re(!0),qe(re))},Ft=re=>{Y.current=!0;const je=B.props;je.onTouchStart&&je.onTouchStart(re)},zt=re=>{Ft(re),te.clear(),K.clear(),ke(),we.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.start(y,()=>{document.body.style.WebkitUserSelect=we.current,qe(re)})},Zt=re=>{B.props.onTouchEnd&&B.props.onTouchEnd(re),ke(),te.start(w,()=>{Ue(re)})};I.useEffect(()=>{if(!H)return;function re(je){je.key==="Escape"&&Ue(je)}return document.addEventListener("keydown",re),()=>{document.removeEventListener("keydown",re)}},[Ue,H]);const er=Jt(ns(B),F,r);!k&&k!==0&&(H=!1);const rt=I.useRef(),ht=re=>{const je=B.props;je.onMouseMove&&je.onMouseMove(re),bn={x:re.clientX,y:re.clientY},rt.current&&rt.current.update()},lt={},tr=typeof k=="string";d?(lt.title=!H&&tr&&!h?k:null,lt["aria-describedby"]=H?xe:null):(lt["aria-label"]=tr?k:null,lt["aria-labelledby"]=H&&!tr?xe:null);const $e={...lt,...z,...B.props,className:ue(z.className,B.props.className),onTouchStart:Ft,ref:er,...S?{onMouseMove:ht}:{}};process.env.NODE_ENV!=="production"&&($e["data-mui-internal-clone-element"]=!0,I.useEffect(()=>{O&&!O.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
217
+ `))},[O]));const Bt={};g||($e.onTouchStart=zt,$e.onTouchEnd=Zt),h||($e.onMouseOver=ho(qe,$e.onMouseOver),$e.onMouseLeave=ho(et,$e.onMouseLeave),Z||(Bt.onMouseOver=qe,Bt.onMouseLeave=et)),f||($e.onFocus=ho(ne,$e.onFocus),$e.onBlur=ho(tt,$e.onBlur),Z||(Bt.onFocus=ne,Bt.onBlur=tt)),process.env.NODE_ENV!=="production"&&B.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${B.props.title}\` or the Tooltip component.`].join(`
218
+ `));const $t={...n,isRtl:U,arrow:o,disableInteractive:Z,placement:$,PopperComponentProp:D,touch:Y.current},it=typeof L.popper=="function"?L.popper($t):L.popper,vr=I.useMemo(()=>{var je,Dt;let re=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return(je=M.popperOptions)!=null&&je.modifiers&&(re=re.concat(M.popperOptions.modifiers)),(Dt=it==null?void 0:it.popperOptions)!=null&&Dt.modifiers&&(re=re.concat(it.popperOptions.modifiers)),{...M.popperOptions,...it==null?void 0:it.popperOptions,modifiers:re}},[W,M.popperOptions,it==null?void 0:it.popperOptions]),cr=t0($t),fn=typeof L.transition=="function"?L.transition($t):L.transition,Pt={slots:{popper:l.Popper,transition:l.Transition??_,tooltip:l.Tooltip,arrow:l.Arrow,...v},slotProps:{arrow:L.arrow??c.arrow,popper:{...M,...it??c.popper},tooltip:L.tooltip??c.tooltip,transition:{...P,...fn??c.transition}}},[Lr,Vt]=Or("popper",{elementType:r0,externalForwardedProps:Pt,ownerState:$t,className:ue(cr.popper,M==null?void 0:M.className)}),[yr,Pe]=Or("transition",{elementType:Wo,externalForwardedProps:Pt,ownerState:$t}),[Ye,Xe]=Or("tooltip",{elementType:n0,className:cr.tooltip,externalForwardedProps:Pt,ownerState:$t}),[mt,nt]=Or("arrow",{elementType:o0,className:cr.arrow,externalForwardedProps:Pt,ownerState:$t,ref:X});return s.jsxs(I.Fragment,{children:[I.cloneElement(B,$e),s.jsx(Lr,{as:D??os,placement:$,anchorEl:S?{getBoundingClientRect:()=>({top:bn.y,left:bn.x,right:bn.x,bottom:bn.y,width:0,height:0})}:O,popperRef:rt,open:O?H:!1,id:xe,transition:!0,...Bt,...Vt,popperOptions:vr,children:({TransitionProps:re})=>s.jsx(yr,{timeout:q.transitions.duration.shorter,...re,...Pe,children:s.jsxs(Ye,{...Xe,children:[k,o?s.jsx(mt,{...nt}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Ju.propTypes={arrow:u.bool,children:is.isRequired,classes:u.object,className:u.string,components:u.shape({Arrow:u.elementType,Popper:u.elementType,Tooltip:u.elementType,Transition:u.elementType}),componentsProps:u.shape({arrow:u.object,popper:u.object,tooltip:u.object,transition:u.object}),describeChild:u.bool,disableFocusListener:u.bool,disableHoverListener:u.bool,disableInteractive:u.bool,disableTouchListener:u.bool,enterDelay:u.number,enterNextDelay:u.number,enterTouchDelay:u.number,followCursor:u.bool,id:u.string,leaveDelay:u.number,leaveTouchDelay:u.number,onClose:u.func,onOpen:u.func,open:u.bool,placement:u.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:u.elementType,PopperProps:u.object,slotProps:u.shape({arrow:u.oneOfType([u.func,u.object]),popper:u.oneOfType([u.func,u.object]),tooltip:u.oneOfType([u.func,u.object]),transition:u.oneOfType([u.func,u.object])}),slots:u.shape({arrow:u.elementType,popper:u.elementType,tooltip:u.elementType,transition:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),title:u.node,TransitionComponent:u.elementType,TransitionProps:u.object});function i0(e){return We("MuiToolbar",e)}Be("MuiToolbar",["root","gutters","regular","dense"]);const a0=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ze({root:["root",!r&&"gutters",n]},i0,t)},s0=ve("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Qe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Qu=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:l="regular",...c}=n,d={...n,component:i,disableGutters:a,variant:l},f=a0(d);return s.jsx(s0,{as:i,className:ue(f.root,o),ref:r,ownerState:d,...c})});process.env.NODE_ENV!=="production"&&(Qu.propTypes={children:u.node,classes:u.object,className:u.string,component:u.elementType,disableGutters:u.bool,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),variant:u.oneOfType([u.oneOf(["dense","regular"]),u.string])});function l0(e){return We("MuiToggleButton",e)}const kr=Be("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),as=I.createContext({});process.env.NODE_ENV!=="production"&&(as.displayName="ToggleButtonGroupContext");const ss=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(ss.displayName="ToggleButtonGroupButtonContext");function c0(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const u0=e=>{const{classes:t,fullWidth:r,selected:n,disabled:o,size:i,color:a}=e,l={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth",`size${ae(i)}`,a]};return Ze(l,l0,t)},d0=ve(vi,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`size${ae(r.size)}`]]}})(Qe(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${kr.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${kr.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{[`&.${kr.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),Zu=I.forwardRef(function(t,r){const{value:n,...o}=I.useContext(as),i=I.useContext(ss),a=An({...o,selected:c0(t.value,n)},t),l=Ke({props:a,name:"MuiToggleButton"}),{children:c,className:d,color:f="standard",disabled:h=!1,disableFocusRipple:m=!1,fullWidth:g=!1,onChange:x,onClick:p,selected:y,size:S="medium",value:b,...R}=l,w={...l,color:f,disabled:h,disableFocusRipple:m,fullWidth:g,size:S},C=u0(w),T=$=>{p&&(p($,b),$.defaultPrevented)||x&&x($,b)},N=i||"";return s.jsx(d0,{className:ue(o.className,C.root,d,N),disabled:h,focusRipple:!m,ref:r,onClick:T,onChange:x,value:b,ownerState:w,"aria-pressed":y,...R,children:c})});process.env.NODE_ENV!=="production"&&(Zu.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["standard","primary","secondary","error","info","success","warning"]),u.string]),disabled:u.bool,disableFocusRipple:u.bool,disableRipple:u.bool,fullWidth:u.bool,onChange:u.func,onClick:u.func,selected:u.bool,size:u.oneOfType([u.oneOf(["small","medium","large"]),u.string]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),value:u.any.isRequired});function f0(e){return We("MuiToggleButtonGroup",e)}const Te=Be("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),p0=e=>{const{classes:t,orientation:r,fullWidth:n,disabled:o}=e,i={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${ae(r)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ze(i,f0,t)},h0=ve("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Te.grouped}`]:t.grouped},{[`& .${Te.grouped}`]:t[`grouped${ae(r.orientation)}`]},{[`& .${Te.firstButton}`]:t.firstButton},{[`& .${Te.lastButton}`]:t.lastButton},{[`& .${Te.middleButton}`]:t.middleButton},t.root,r.orientation==="vertical"&&t.vertical,r.fullWidth&&t.fullWidth]}})(Qe(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Te.grouped}`]:{[`&.${Te.selected} + .${Te.grouped}.${Te.selected}`]:{borderTop:0,marginTop:0}},[`& .${Te.firstButton},& .${Te.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Te.lastButton},& .${Te.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Te.lastButton}.${kr.disabled},& .${Te.middleButton}.${kr.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${Te.grouped}`]:{[`&.${Te.selected} + .${Te.grouped}.${Te.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Te.firstButton},& .${Te.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Te.lastButton},& .${Te.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Te.lastButton}.${kr.disabled},& .${Te.middleButton}.${kr.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),ed=I.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:a="standard",disabled:l=!1,exclusive:c=!1,fullWidth:d=!1,onChange:f,orientation:h="horizontal",size:m="medium",value:g,...x}=n,p={...n,disabled:l,fullWidth:d,orientation:h,size:m},y=p0(p),S=I.useCallback((N,$)=>{if(!f)return;const D=g&&g.indexOf($);let M;g&&D>=0?(M=g.slice(),M.splice(D,1)):M=g?g.concat($):[$],f(N,M)},[f,g]),b=I.useCallback((N,$)=>{f&&f(N,g===$?null:$)},[f,g]),R=I.useMemo(()=>({className:y.grouped,onChange:c?b:S,value:g,size:m,fullWidth:d,color:a,disabled:l}),[y.grouped,c,b,S,g,m,d,a,l]),w=Px(o),C=w.length,T=N=>{const $=N===0,D=N===C-1;return $&&D?"":$?y.firstButton:D?y.lastButton:y.middleButton};return s.jsx(h0,{role:"group",className:ue(y.root,i),ref:r,ownerState:p,...x,children:s.jsx(as.Provider,{value:R,children:w.map((N,$)=>(process.env.NODE_ENV!=="production"&&Dn.isFragment(N)&&console.error(["MUI: The ToggleButtonGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
219
+ `)),s.jsx(ss.Provider,{value:T($),children:N},$)))})})});process.env.NODE_ENV!=="production"&&(ed.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["standard","primary","secondary","error","info","success","warning"]),u.string]),disabled:u.bool,exclusive:u.bool,fullWidth:u.bool,onChange:u.func,orientation:u.oneOf(["horizontal","vertical"]),size:u.oneOfType([u.oneOf(["small","medium","large"]),u.string]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),value:u.any});const m0=({id:e,name:t,label:r,helpText:n,required:o=!1,disabled:i=!1,readonly:a=!1,value:l,error:c,accept:d,multiple:f=!1,maxSize:h=10,maxFiles:m=10,showPreview:g=!0,buttonText:x="Choose Files",dragDropText:p="or drag and drop files here",onChange:y,onBlur:S})=>{const b=`field-${e||t}`,R=E.useRef(null),[w,C]=E.useState(!1),[T,N]=E.useState([]),$=E.useCallback(O=>new Promise(F=>{if(O.type.startsWith("image/")){const W=new FileReader;W.onloadend=()=>F(W.result),W.onerror=()=>F(void 0),W.readAsDataURL(O)}else F(void 0)}),[]),D=E.useCallback(O=>{var W;const F=h*1024*1024;if(O.size>F)return`File "${O.name}" exceeds maximum size of ${h}MB`;if(d){const X=d.split(",").map(Q=>Q.trim()),Y="."+((W=O.name.split(".").pop())==null?void 0:W.toLowerCase()),Z=O.type;if(!X.some(Q=>Q.startsWith(".")?Y===Q.toLowerCase():Q.endsWith("/*")?Z.startsWith(Q.replace("/*","/")):Z===Q))return`File type "${O.type}" is not accepted`}return null},[d,h]),M=E.useCallback(async O=>{if(!O||O.length===0)return;const F=[],W=[],X=T.length+O.length;if(f&&X>m){W.push(`Maximum ${m} files allowed`);return}for(let Y=0;Y<O.length;Y++){const Z=O[Y],K=D(Z);if(K){W.push(K);continue}const Q=g?await $(Z):void 0;F.push({file:Z,preview:Q})}if(W.length>0&&alert(W.join(`
220
+ `)),F.length>0){const Y=f?[...T,...F]:F;if(N(Y),f){const Z=Y.map(K=>K.file);y==null||y(Z)}else y==null||y(F[0].file)}},[T,f,m,g,D,$,y]),L=E.useCallback(O=>{M(O.target.files),O.target.value=""},[M]),v=E.useCallback(()=>{var O;(O=R.current)==null||O.click()},[]),k=E.useCallback(O=>{O.preventDefault(),O.stopPropagation(),!i&&!a&&C(!0)},[i,a]),_=E.useCallback(O=>{O.preventDefault(),O.stopPropagation(),C(!1)},[]),P=E.useCallback(O=>{O.preventDefault(),O.stopPropagation()},[]),z=E.useCallback(O=>{O.preventDefault(),O.stopPropagation(),C(!1),!i&&!a&&M(O.dataTransfer.files)},[i,a,M]),B=E.useCallback(O=>{var W;const F=T.filter((X,Y)=>Y!==O);N(F),F.length===0?y==null||y(null):f?y==null||y(F.map(X=>X.file)):y==null||y((W=F[0])==null?void 0:W.file)},[T,f,y]),q=O=>O.type.startsWith("image/")?s.jsx(nu,{}):O.type==="application/pdf"?s.jsx(Gg,{}):O.type.startsWith("text/")?s.jsx(wg,{}):s.jsx(Vg,{}),U=O=>{if(O===0)return"0 Bytes";const F=1024,W=["Bytes","KB","MB","GB"],X=Math.floor(Math.log(O)/Math.log(F));return Math.round(O/Math.pow(F,X)*100)/100+" "+W[X]};return s.jsxs(or,{className:"form-field form-field-file",sx:{mb:2},children:[r&&s.jsxs(_t,{component:"label",htmlFor:b,sx:{display:"block",mb:1,fontSize:"0.875rem",fontWeight:500,color:c?"error.main":"text.primary"},children:[r,o&&s.jsx("span",{style:{color:"#d32f2f",marginLeft:"4px"},children:"*"})]}),s.jsxs(Ya,{elevation:0,onDragEnter:k,onDragOver:P,onDragLeave:_,onDrop:z,sx:{border:c?"2px solid":"2px dashed",borderColor:c?"error.main":w?"primary.main":"divider",borderRadius:2,p:3,textAlign:"center",backgroundColor:w?"action.hover":i?"action.disabledBackground":"background.paper",transition:"all 0.2s",cursor:i||a?"not-allowed":"pointer","&:hover":{borderColor:i||a?"divider":"primary.main",backgroundColor:i||a?"action.disabledBackground":"action.hover"}},children:[s.jsx("input",{ref:R,id:b,name:t,type:"file",style:{display:"none"},required:o&&T.length===0,disabled:i||a,accept:d,multiple:f,onChange:L,onBlur:S,"aria-invalid":!!c,"aria-describedby":c?`${b}-error`:n?`${b}-help`:void 0}),s.jsx(vg,{sx:{fontSize:48,color:"action.active",mb:2}}),s.jsx(Yu,{variant:"contained",startIcon:s.jsx(eu,{}),onClick:v,disabled:i||a,sx:{mb:1},children:x}),s.jsx(_t,{variant:"body2",color:"text.secondary",sx:{mt:1},children:p}),d&&s.jsxs(_t,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Accepted: ",d]}),s.jsxs(_t,{variant:"caption",color:"text.secondary",children:["Max size: ",h,"MB ",f&&`• Max files: ${m}`]})]}),T.length>0&&s.jsx(Gu,{sx:{mt:2},children:T.map((O,F)=>s.jsxs(Ku,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1,mb:1,backgroundColor:"background.paper"},children:[g&&O.preview?s.jsx(or,{component:"img",src:O.preview,alt:O.file.name,sx:{width:40,height:40,objectFit:"cover",borderRadius:1,mr:2}}):s.jsx(or,{sx:{mr:2,color:"action.active"},children:q(O.file)}),s.jsx(Xu,{primary:O.file.name,secondary:U(O.file.size),primaryTypographyProps:{noWrap:!0,sx:{maxWidth:"300px"}}}),s.jsx(xi,{children:s.jsx(Pu,{edge:"end","aria-label":"delete",onClick:()=>B(F),disabled:i||a,size:"small",children:s.jsx(ru,{})})})]},F))}),n&&!c&&s.jsx(_t,{id:`${b}-help`,variant:"caption",color:"text.secondary",sx:{mt:.5,display:"block"},children:n}),c&&s.jsx(_t,{id:`${b}-error`,variant:"caption",color:"error",role:"alert",sx:{mt:.5,display:"block"},children:c})]})},g0=({id:e,name:t,label:r,helpText:n,required:o=!1,disabled:i=!1,readonly:a=!1,value:l="#000000",error:c,onChange:d,onBlur:f})=>{const h=`field-${e||t}`,m=g=>{d==null||d(g.target.value)};return s.jsxs("div",{className:"form-field form-field-color",children:[r&&s.jsxs("label",{htmlFor:h,className:"form-field-label",children:[r,o&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsxs("div",{className:"form-field-color-wrapper",children:[s.jsx("input",{id:h,name:t,type:"color",className:"form-field-color-input",required:o,disabled:i||a,value:l||"#000000",onChange:m,onBlur:f,"aria-invalid":!!c,"aria-describedby":c?`${h}-error`:n?`${h}-help`:void 0}),s.jsx("span",{className:"form-field-color-value",children:l})]}),n&&!c&&s.jsx("div",{id:`${h}-help`,className:"form-field-help",children:n}),c&&s.jsx("div",{id:`${h}-error`,className:"form-field-error",role:"alert",children:c})]})},v0=({id:e,name:t,label:r,placeholder:n,helpText:o,required:i=!1,disabled:a=!1,readonly:l=!1,value:c="",error:d,format:f="24",step:h=60,onChange:m,onBlur:g})=>{const x=`field-${e||t}`,[p,y]=E.useState(!1),[S,b]=E.useState(void 0),[R,w]=E.useState(void 0),[C,T]=E.useState(!1),N=E.useRef(null);E.useEffect(()=>{if(c){const[v,k]=c.toString().split(":").map(Number);f==="12"?(T(v>=12),b(v>12?v-12:v===0?12:v)):b(v),w(k||0)}},[c,f]),E.useEffect(()=>{const v=k=>{N.current&&!N.current.contains(k.target)&&y(!1)};if(p)return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[p]);const $=()=>{if(!c)return"";const[v,k]=c.toString().split(":").map(Number);if(f==="12"){const _=v>12?v-12:v===0?12:v,P=v>=12?"PM":"AM";return`${_.toString().padStart(2,"0")}:${k.toString().padStart(2,"0")} ${P}`}return`${v.toString().padStart(2,"0")}:${k.toString().padStart(2,"0")}`},D=()=>{let v=S;if(v===void 0||R===void 0)return;f==="12"&&(C&&v!==12&&(v+=12),!C&&v===12&&(v=0));const k=`${v.toString().padStart(2,"0")}:${R.toString().padStart(2,"0")}`;m==null||m(k),y(!1)},M=f==="12"?Array.from({length:12},(v,k)=>k+1):Array.from({length:24},(v,k)=>k),L=Array.from({length:60/(h/60)},(v,k)=>k*(h/60));return s.jsxs("div",{className:"form-field form-field-time",children:[r&&s.jsxs("label",{htmlFor:x,className:"form-field-label",children:[r,i&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsxs("div",{className:"time-input-wrapper",style:{position:"relative"},children:[s.jsx("input",{id:x,name:t,type:"text",className:`form-field-input ${d?"has-error":""}`,placeholder:n||(f==="12"?"hh:mm AM/PM":"HH:mm"),required:i,disabled:a,readOnly:!0,value:$(),onClick:()=>!a&&!l&&y(!0),onBlur:g,"aria-invalid":!!d,"aria-describedby":d?`${x}-error`:o?`${x}-help`:void 0,style:{cursor:a||l?"default":"pointer"}}),p&&!a&&!l&&s.jsxs("div",{ref:N,className:"time-picker-dropdown",style:{position:"absolute",top:"100%",left:0,marginTop:"4px",backgroundColor:"white",border:"1px solid #ddd",borderRadius:"4px",padding:"12px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",zIndex:1e3,display:"flex",gap:"8px"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[s.jsx("label",{style:{fontSize:"12px",marginBottom:"4px",fontWeight:500},children:"Hour"}),s.jsx("select",{value:S,onChange:v=>b(Number(v.target.value)),style:{padding:"6px",borderRadius:"4px",border:"1px solid #ddd",minWidth:"60px"},children:M.map(v=>s.jsx("option",{value:v,children:v.toString().padStart(2,"0")},v))})]}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[s.jsx("label",{style:{fontSize:"12px",marginBottom:"4px",fontWeight:500},children:"Minute"}),s.jsx("select",{value:R,onChange:v=>w(Number(v.target.value)),style:{padding:"6px",borderRadius:"4px",border:"1px solid #ddd",minWidth:"60px"},children:L.map(v=>s.jsx("option",{value:v,children:v.toString().padStart(2,"0")},v))})]}),f==="12"&&s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[s.jsx("label",{style:{fontSize:"12px",marginBottom:"4px",fontWeight:500},children:"Period"}),s.jsxs("select",{value:C?"PM":"AM",onChange:v=>T(v.target.value==="PM"),style:{padding:"6px",borderRadius:"4px",border:"1px solid #ddd",minWidth:"60px"},children:[s.jsx("option",{value:"AM",children:"AM"}),s.jsx("option",{value:"PM",children:"PM"})]})]}),s.jsx("div",{style:{display:"flex",alignItems:"flex-end"},children:s.jsx("button",{type:"button",onClick:D,style:{padding:"6px 12px",backgroundColor:"#007bff",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"14px"},children:"Set"})})]})]}),o&&!d&&s.jsx("div",{id:`${x}-help`,className:"form-field-help",children:o}),d&&s.jsx("div",{id:`${x}-error`,className:"form-field-error",role:"alert",children:d})]})},y0=({id:e,name:t,label:r,placeholder:n,helpText:o,required:i=!1,disabled:a=!1,readonly:l=!1,value:c="",error:d,format:f="24",minDate:h,maxDate:m,onChange:g,onBlur:x})=>{const p=`field-${e||t}`,[y,S]=E.useState(!1),[b,R]=E.useState(""),[w,C]=E.useState(void 0),[T,N]=E.useState(void 0),[$,D]=E.useState(!1),M=E.useRef(null);E.useEffect(()=>{if(c){const P=c.toString(),[z,B]=P.includes("T")?P.split("T"):P.split(" ");if(R(z||""),B){const[q,U]=B.split(":").map(Number);f==="12"?(D(q>=12),C(q>12?q-12:q===0?12:q)):C(q),N(U||0)}}},[c,f]),E.useEffect(()=>{const P=z=>{M.current&&!M.current.contains(z.target)&&S(!1)};if(y)return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[y]);const L=()=>{if(!c)return"";const P=c.toString(),[z,B]=P.includes("T")?P.split("T"):P.split(" ");if(!B)return z;const[q,U]=B.split(":").map(Number),O=new Date(z).toLocaleDateString();if(f==="12"){const F=q>12?q-12:q===0?12:q,W=q>=12?"PM":"AM";return`${O} ${F.toString().padStart(2,"0")}:${U.toString().padStart(2,"0")} ${W}`}return`${O} ${q.toString().padStart(2,"0")}:${U.toString().padStart(2,"0")}`},v=()=>{if(!b||w===void 0||T===void 0)return;let P=w;f==="12"&&($&&P!==12&&(P+=12),!$&&P===12&&(P=0));const z=`${b}T${P.toString().padStart(2,"0")}:${T.toString().padStart(2,"0")}`;g==null||g(z),S(!1)},k=f==="12"?Array.from({length:12},(P,z)=>z+1):Array.from({length:24},(P,z)=>z),_=Array.from({length:60},(P,z)=>z);return s.jsxs("div",{className:"form-field form-field-datetime",children:[r&&s.jsxs("label",{htmlFor:p,className:"form-field-label",children:[r,i&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsxs("div",{className:"datetime-input-wrapper",style:{position:"relative"},children:[s.jsx("input",{id:p,name:t,type:"text",className:`form-field-input ${d?"has-error":""}`,placeholder:n||(f==="12"?"MM/DD/YYYY hh:mm AM/PM":"MM/DD/YYYY HH:mm"),required:i,disabled:a,readOnly:!0,value:L(),onClick:()=>!a&&!l&&S(!0),onBlur:x,"aria-invalid":!!d,"aria-describedby":d?`${p}-error`:o?`${p}-help`:void 0,style:{cursor:a||l?"default":"pointer"}}),y&&!a&&!l&&s.jsxs("div",{ref:M,className:"datetime-picker-dropdown",style:{position:"absolute",top:"100%",left:0,marginTop:"4px",backgroundColor:"white",border:"1px solid #ddd",borderRadius:"4px",padding:"12px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",zIndex:1e3,display:"flex",flexDirection:"column",gap:"12px"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[s.jsx("label",{style:{fontSize:"12px",marginBottom:"4px",fontWeight:500},children:"Date"}),s.jsx("input",{type:"date",value:b,onChange:P=>R(P.target.value),min:h,max:m,style:{padding:"6px",borderRadius:"4px",border:"1px solid #ddd",fontSize:"14px"}})]}),s.jsxs("div",{style:{display:"flex",gap:"8px"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[s.jsx("label",{style:{fontSize:"12px",marginBottom:"4px",fontWeight:500},children:"Hour"}),s.jsx("select",{value:w,onChange:P=>C(Number(P.target.value)),style:{padding:"6px",borderRadius:"4px",border:"1px solid #ddd",minWidth:"60px"},children:k.map(P=>s.jsx("option",{value:P,children:P.toString().padStart(2,"0")},P))})]}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[s.jsx("label",{style:{fontSize:"12px",marginBottom:"4px",fontWeight:500},children:"Minute"}),s.jsx("select",{value:T,onChange:P=>N(Number(P.target.value)),style:{padding:"6px",borderRadius:"4px",border:"1px solid #ddd",minWidth:"60px"},children:_.map(P=>s.jsx("option",{value:P,children:P.toString().padStart(2,"0")},P))})]}),f==="12"&&s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[s.jsx("label",{style:{fontSize:"12px",marginBottom:"4px",fontWeight:500},children:"Period"}),s.jsxs("select",{value:$?"PM":"AM",onChange:P=>D(P.target.value==="PM"),style:{padding:"6px",borderRadius:"4px",border:"1px solid #ddd",minWidth:"60px"},children:[s.jsx("option",{value:"AM",children:"AM"}),s.jsx("option",{value:"PM",children:"PM"})]})]})]}),s.jsx("button",{type:"button",onClick:v,style:{padding:"8px 16px",backgroundColor:"#007bff",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"14px",alignSelf:"flex-end"},children:"Set"})]})]}),o&&!d&&s.jsx("div",{id:`${p}-help`,className:"form-field-help",children:o}),d&&s.jsx("div",{id:`${p}-error`,className:"form-field-error",role:"alert",children:d})]})},b0=({id:e,name:t,label:r,helpText:n,required:o=!1,disabled:i=!1,readonly:a=!1,value:l,error:c,startLabel:d="Start Date",endLabel:f="End Date",minDate:h,maxDate:m,onChange:g,onBlur:x})=>{const p=`field-${e||t}`,y=typeof l=="object"&&l!==null?l:{start:"",end:""},S=R=>{g==null||g({...y,start:R})},b=R=>{g==null||g({...y,end:R})};return s.jsxs("div",{className:"form-field form-field-daterange",children:[r&&s.jsxs("div",{className:"form-field-label",children:[r,o&&s.jsx("span",{className:"required-mark",children:"*"})]}),s.jsxs("div",{className:"form-field-daterange-wrapper",children:[s.jsxs("div",{className:"form-field-daterange-input",children:[s.jsx("label",{htmlFor:`${p}-start`,className:"form-field-daterange-label",children:d}),s.jsx("input",{id:`${p}-start`,name:`${t}_start`,type:"date",className:`form-field-input ${c?"has-error":""}`,required:o,disabled:i,readOnly:a,value:y.start||"",min:h,max:y.end||m,onChange:R=>S(R.target.value),onBlur:x,"aria-invalid":!!c,"aria-describedby":c?`${p}-error`:n?`${p}-help`:void 0})]}),s.jsxs("div",{className:"form-field-daterange-input",children:[s.jsx("label",{htmlFor:`${p}-end`,className:"form-field-daterange-label",children:f}),s.jsx("input",{id:`${p}-end`,name:`${t}_end`,type:"date",className:`form-field-input ${c?"has-error":""}`,required:o,disabled:i,readOnly:a,value:y.end||"",min:y.start||h,max:m,onChange:R=>b(R.target.value),onBlur:x,"aria-invalid":!!c})]})]}),n&&!c&&s.jsx("div",{id:`${p}-help`,className:"form-field-help",children:n}),c&&s.jsx("div",{id:`${p}-error`,className:"form-field-error",role:"alert",children:c})]})},x0=({id:e,name:t,label:r,placeholder:n,helpText:o,required:i=!1,disabled:a=!1,readonly:l=!1,value:c="",error:d,minHeight:f=200,maxHeight:h=500,onChange:m,onBlur:g})=>{const x=`field-${e||t}`,p=E.useRef(null),[y,S]=E.useState(!1),[b,R]=E.useState([]),w=E.useRef();E.useEffect(()=>{p.current&&c!==p.current.innerHTML&&(p.current.innerHTML=c||"")},[c]);const C=E.useCallback(()=>{const M=[];document.queryCommandState("bold")&&M.push("bold"),document.queryCommandState("italic")&&M.push("italic"),document.queryCommandState("underline")&&M.push("underline"),document.queryCommandState("strikeThrough")&&M.push("strikeThrough"),document.queryCommandState("insertOrderedList")&&M.push("insertOrderedList"),document.queryCommandState("insertUnorderedList")&&M.push("insertUnorderedList"),R(M)},[]),T=E.useCallback(()=>{w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{p.current&&(m==null||m(p.current.innerHTML))},300)},[m]),N=E.useCallback((M,L)=>{var v;if(M==="createLink"){const k=prompt("Enter URL:");k&&document.execCommand(M,!1,k)}else M==="formatBlock"||M==="insertHTML"?document.execCommand(M,!1,L):document.execCommand(M,!1,void 0);(v=p.current)==null||v.focus(),C(),p.current&&(m==null||m(p.current.innerHTML))},[m,C]),$=E.useCallback(M=>{if(M.ctrlKey||M.metaKey)switch(M.key.toLowerCase()){case"b":M.preventDefault(),N("bold");break;case"i":M.preventDefault(),N("italic");break;case"u":M.preventDefault(),N("underline");break}},[N]),D=E.useMemo(()=>[{group:"text",buttons:[{command:"bold",icon:s.jsx(Pg,{}),label:"Bold (Ctrl+B)"},{command:"italic",icon:s.jsx(Ig,{}),label:"Italic (Ctrl+I)"},{command:"underline",icon:s.jsx(zg,{}),label:"Underline (Ctrl+U)"},{command:"strikeThrough",icon:s.jsx(Fg,{}),label:"Strikethrough"}]},{group:"heading",buttons:[{command:"formatBlock",value:"h1",icon:s.jsx(xo,{sx:{fontSize:"1.2rem"}}),label:"Heading 1",custom:!0},{command:"formatBlock",value:"h2",icon:s.jsx(xo,{sx:{fontSize:"1rem"}}),label:"Heading 2",custom:!0},{command:"formatBlock",value:"h3",icon:s.jsx(xo,{sx:{fontSize:"0.9rem"}}),label:"Heading 3",custom:!0}]},{group:"list",buttons:[{command:"insertUnorderedList",icon:s.jsx(_g,{}),label:"Bullet List"},{command:"insertOrderedList",icon:s.jsx(Ag,{}),label:"Numbered List"}]},{group:"align",buttons:[{command:"justifyLeft",icon:s.jsx(kg,{}),label:"Align Left"},{command:"justifyCenter",icon:s.jsx(Og,{}),label:"Align Center"},{command:"justifyRight",icon:s.jsx($g,{}),label:"Align Right"}]},{group:"insert",buttons:[{command:"createLink",icon:s.jsx(ou,{}),label:"Insert Link",custom:!0,value:""},{command:"insertHTML",value:'<blockquote style="border-left: 3px solid #ccc; padding-left: 12px; margin-left: 0;">Quote</blockquote>',icon:s.jsx(Lg,{}),label:"Quote",custom:!0},{command:"insertHTML",value:'<pre style="background: #f5f5f5; padding: 8px; border-radius: 4px; overflow-x: auto;"><code>code</code></pre>',icon:s.jsx(tu,{}),label:"Code Block",custom:!0}]},{group:"clear",buttons:[{command:"removeFormat",icon:s.jsx(Dg,{}),label:"Clear Formatting",custom:!0,value:""}]}],[]);return E.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]),s.jsxs(or,{className:"form-field form-field-richtext",sx:{mb:2},children:[r&&s.jsxs(or,{component:"label",htmlFor:x,sx:{display:"block",mb:1,fontSize:"0.875rem",fontWeight:500,color:d?"error.main":"text.primary"},children:[r,i&&s.jsx("span",{style:{color:"#d32f2f",marginLeft:"4px"},children:"*"})]}),s.jsxs(Ya,{elevation:0,sx:{border:d?"2px solid":"1px solid",borderColor:d?"error.main":y?"primary.main":"divider",borderRadius:1,overflow:"hidden",transition:"border-color 0.2s, box-shadow 0.2s",boxShadow:y?"0 0 0 3px rgba(25, 118, 210, 0.12)":"none",backgroundColor:a?"action.disabledBackground":"background.paper",opacity:a?.6:1},children:[!l&&!a&&s.jsx(s.Fragment,{children:s.jsx(Qu,{variant:"dense",sx:{minHeight:48,px:1,gap:.5,flexWrap:"wrap",backgroundColor:"grey.50",borderBottom:"1px solid",borderColor:"divider"},children:D.map((M,L)=>s.jsxs(E.Fragment,{children:[L>0&&s.jsx(Ho,{orientation:"vertical",flexItem:!0,sx:{mx:.5}}),s.jsx(ed,{size:"small",value:b,"aria-label":"text formatting",sx:{gap:.25},children:M.buttons.map(v=>s.jsx(Ju,{title:v.label,arrow:!0,children:s.jsx(Zu,{value:("custom"in v,v.command),onClick:()=>N(v.command,"value"in v?v.value:void 0),selected:"custom"in v?!1:b.includes(v.command),sx:{border:"1px solid",borderColor:"divider",width:36,height:36,"&.Mui-selected":{backgroundColor:"primary.light",color:"primary.main","&:hover":{backgroundColor:"primary.light"}}},children:v.icon})},v.label))})]},M.group))})}),s.jsx(or,{ref:p,contentEditable:!a&&!l,onInput:T,onKeyDown:$,onFocus:()=>{S(!0),C()},onBlur:()=>{S(!1),g==null||g()},onMouseUp:C,onKeyUp:C,"aria-invalid":!!d,"aria-describedby":d?`${x}-error`:o?`${x}-help`:void 0,"aria-required":i,sx:{minHeight:`${f}px`,maxHeight:`${h}px`,p:2,overflowY:"auto",outline:"none",fontSize:"0.875rem",lineHeight:1.6,color:a?"text.disabled":"text.primary",fontFamily:"inherit","&:empty:before":{content:`"${n||"Start typing..."}"`,color:"text.disabled",pointerEvents:"none"},"& h1":{fontSize:"2rem",fontWeight:600,margin:"16px 0 8px",lineHeight:1.2},"& h2":{fontSize:"1.5rem",fontWeight:600,margin:"12px 0 6px",lineHeight:1.3},"& h3":{fontSize:"1.25rem",fontWeight:600,margin:"10px 0 5px",lineHeight:1.4},"& p":{margin:"8px 0"},"& ul, & ol":{paddingLeft:"24px",margin:"8px 0"},"& li":{margin:"4px 0"},"& a":{color:"primary.main",textDecoration:"underline","&:hover":{textDecoration:"none"}},"& blockquote":{borderLeft:"3px solid",borderColor:"divider",paddingLeft:"12px",margin:"12px 0",color:"text.secondary",fontStyle:"italic"},"& pre":{backgroundColor:"grey.100",padding:"12px",borderRadius:"4px",overflowX:"auto",fontSize:"0.8125rem",fontFamily:"monospace",margin:"12px 0"},"& code":{fontFamily:"monospace",fontSize:"0.8125rem"},"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{backgroundColor:"grey.100"},"&::-webkit-scrollbar-thumb":{backgroundColor:"grey.400",borderRadius:"4px","&:hover":{backgroundColor:"grey.500"}}}})]}),o&&!d&&s.jsx(or,{id:`${x}-help`,sx:{mt:.5,fontSize:"0.75rem",color:"text.secondary"},children:o}),d&&s.jsx(or,{id:`${x}-error`,role:"alert",sx:{mt:.5,fontSize:"0.75rem",color:"error.main"},children:d})]})},w0=({title:e,description:t,collapsible:r=!1,defaultExpanded:n=!0,children:o})=>{const[i,a]=E.useState(n),l=()=>{r&&a(!i)};return s.jsxs("div",{className:`form-field-section ${i?"expanded":"collapsed"}`,children:[(e||t)&&s.jsxs("div",{className:`form-field-section-header ${r?"collapsible":""}`,onClick:l,role:r?"button":void 0,tabIndex:r?0:void 0,onKeyPress:r?c=>{(c.key==="Enter"||c.key===" ")&&l()}:void 0,children:[s.jsxs("div",{className:"form-field-section-header-content",children:[e&&s.jsx("h3",{className:"form-field-section-title",children:e}),t&&s.jsx("p",{className:"form-field-section-description",children:t})]}),r&&s.jsx("span",{className:"form-field-section-toggle",children:i?"▼":"▶"})]}),(!r||i)&&s.jsx("div",{className:"form-field-section-content",children:o})]})},S0=({title:e,message:t,type:r="info",dismissible:n=!1})=>{const[o,i]=E.useState(!0);if(!o)return null;const a=()=>{switch(r){case"success":return"✓";case"warning":return"⚠";case"error":return"✗";case"info":default:return"ℹ"}};return s.jsxs("div",{className:`form-field-alert form-field-alert-${r}`,children:[s.jsxs("div",{className:"form-field-alert-content",children:[s.jsx("span",{className:"form-field-alert-icon",children:a()}),s.jsxs("div",{className:"form-field-alert-text",children:[e&&s.jsx("div",{className:"form-field-alert-title",children:e}),t&&s.jsx("div",{className:"form-field-alert-message",children:t})]})]}),n&&s.jsx("button",{type:"button",className:"form-field-alert-dismiss",onClick:()=>i(!1),"aria-label":"Dismiss alert",children:"✕"})]})},E0=({field:e,value:t,error:r,onChange:n,onBlur:o,readonly:i=!1,disabled:a=!1})=>{const l={id:e.id,name:e.name||e.id,label:e.label,placeholder:e.placeholder,helpText:e.helpText,required:e.required,disabled:a||e.disabled,readonly:i||e.readonly,value:t,error:r,onChange:n,onBlur:o};switch(e.type){case"text":case"email":case"password":case"phone":case"url":case"search":return s.jsx(wl,{...l,type:e.type});case"textarea":return s.jsx(iy,{...l,rows:e.rows||3});case"richtext":return s.jsx(x0,{...l,minHeight:e.minHeight,maxHeight:e.maxHeight});case"number":return s.jsx(ay,{...l,min:e.min,max:e.max,step:e.step});case"select":return s.jsx(sy,{...l,options:e.options||[],multiple:e.multiple});case"checkbox":return s.jsx(ly,{...l,options:e.options});case"radio":return s.jsx(cy,{...l,options:e.options||[]});case"switch":return s.jsx(uy,{...l});case"rating":return s.jsx(fy,{...l,max:e.max||5,showLabels:e.showLabels});case"range":return s.jsx(dy,{...l,min:e.min||0,max:e.max||100,step:e.step||1,showValue:e.showValue!==!1,showLabels:e.showLabels!==!1});case"date":return s.jsx(wl,{...l,type:"date"});case"time":return s.jsx(v0,{...l,format:e.format||"24",step:e.step});case"datetime":return s.jsx(y0,{...l,format:e.format||"24",minDate:e.minDate,maxDate:e.maxDate});case"daterange":return s.jsx(b0,{...l,startLabel:e.startLabel,endLabel:e.endLabel,minDate:e.minDate,maxDate:e.maxDate});case"color":return s.jsx(g0,{...l});case"file":case"image":return s.jsx(m0,{...l,accept:e.type==="image"?"image/*":e.accept,multiple:e.multiple,maxSize:e.maxSize});case"section":return s.jsx(w0,{title:e.label||e.title,description:e.description,collapsible:e.collapsible,defaultExpanded:e.defaultExpanded!==!1});case"alert":return s.jsx(S0,{title:e.label||e.title,message:e.content||e.message,type:e.alertType||"info",dismissible:e.dismissible});case"header":return s.jsx("div",{className:"field-header",children:s.jsx("h3",{children:e.label||e.content})});case"paragraph":return s.jsx("div",{className:"field-paragraph",children:s.jsx("p",{children:e.content||e.label})});case"divider":return s.jsx("hr",{className:"field-divider"});default:return s.jsx("div",{className:"field-unsupported",children:s.jsxs("p",{children:["Unsupported field type: ",e.type]})})}},C0=(e,t,r)=>{if(!r)return!1;const{operator:n,value:o}=e,i=t==null||t==="",a=Array.isArray(t),l=typeof t=="boolean";switch(n){case"is_checked":return l?t===!0:!!t;case"is_not_checked":return l?t===!1:!t;case"is_empty":return a?t.length===0:i;case"is_not_empty":return a?t.length>0:!i;case"equals":return String(t)===String(o);case"not_equals":return String(t)!==String(o);case"contains":return String(t).toLowerCase().includes(String(o).toLowerCase());case"not_contains":return!String(t).toLowerCase().includes(String(o).toLowerCase());case"starts_with":return String(t).toLowerCase().startsWith(String(o).toLowerCase());case"ends_with":return String(t).toLowerCase().endsWith(String(o).toLowerCase());case"greater_than":return Number(t)>Number(o);case"less_than":return Number(t)<Number(o);case"greater_than_or_equal":return Number(t)>=Number(o);case"less_than_or_equal":return Number(t)<=Number(o);case"includes":return a?t.includes(o):!1;case"not_includes":return a?!t.includes(o):!1;default:return console.warn(`Unknown operator: ${n}`),!1}},zl=(e,t,r,n)=>{if(!e||e.length===0)return!0;const o=e.map(i=>{const a=r.find(c=>c.id===i.fieldId);if(!a||!a.name)return!1;const l=n[a.name];return C0(i,l,a)});return t==="or"?o.some(i=>i===!0):o.every(i=>i===!0)},j0=(e,t,r)=>{if(!e.conditions)return!e.hidden;const{show:n,hide:o,logic:i="and"}=e.conditions;return n&&n.length>0?zl(n,i,t,r)&&!e.hidden:o&&o.length>0?!zl(o,i,t,r)&&!e.hidden:!e.hidden},Bl=(e,t)=>e.filter(r=>j0(r,e,t)),td=({schema:e,initialValues:t={},onSubmit:r,onChange:n,onFieldChange:o,readonly:i=!1,className:a="",device:l,showDeviceFrame:c=!1})=>{var P,z;const[d,f]=E.useState(t),[h,m]=E.useState({}),[g,x]=E.useState({}),[p,y]=E.useState(!1),[S,b]=E.useState("idle"),[R,w]=E.useState(""),C=E.useCallback((B,q)=>{const U={...d,[B]:q};f(U),h[B]&&m(O=>{const F={...O};return delete F[B],F}),o==null||o(B,q),n==null||n(U)},[d,h,o,n]),T=E.useCallback(B=>{x(U=>({...U,[B]:!0}));const q=e.fields.find(U=>(U.name||U.id)===B);if(q){const U=Vn(q,d[B],d);m(U?O=>({...O,[B]:U}):O=>{const F={...O};return delete F[B],F})}},[e.fields,d]),N=E.useCallback(()=>{const B=Bl(e.fields,d),q=vu(B,d),U={};return q.forEach(O=>{const F=B.find(W=>W.id===O.fieldId);if(F){const W=F.name||F.id;U[W]=O.message}}),m(U),Object.keys(U).length===0},[e.fields,d]),$=E.useCallback(async B=>{var U;if(B.preventDefault(),i||!r)return;const q={};if(e.fields.forEach(O=>{const F=O.name||O.id;q[F]=!0}),x(q),!!N()){y(!0),b("idle");try{await r(d),b("success"),w("Form submitted successfully!"),(U=e.settings)!=null&&U.clearOnSubmit&&(f(t),x({}))}catch(O){console.error("Form submission error:",O),b("error"),w(O instanceof Error?O.message:"An error occurred while submitting the form.")}finally{y(!1)}}},[i,r,e.fields,e.settings,N,d,t]),D=E.useCallback(()=>{f(t),m({}),x({}),b("idle"),w("")},[t]),M=E.useMemo(()=>Bl(e.fields,d),[e.fields,d]);if(!e||!e.fields||e.fields.length===0)return s.jsx("div",{className:"form-viewer-empty",children:s.jsx("p",{children:"No form fields to display"})});const L=l?Wa[l].width:void 0,v=L?{maxWidth:`${L}px`,margin:"0 auto",transition:"max-width 0.3s ease"}:{},k=c&&l?{padding:"40px",background:"#f8fafc",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"}:{},_=s.jsxs("form",{className:`form-viewer ${a} ${l?`device-${l}`:""}`,onSubmit:$,noValidate:!0,style:v,children:[(e.title||e.description)&&s.jsxs("div",{className:"form-viewer-header",children:[e.title&&s.jsx("h2",{className:"form-viewer-title",children:e.title}),e.description&&s.jsx("p",{className:"form-viewer-description",children:e.description})]}),s.jsx("div",{className:"form-viewer-fields",children:M.map(B=>{const q=B.name||B.id;return s.jsx("div",{className:"form-field-wrapper",children:s.jsx(E0,{field:B,value:d[q],error:g[q]?h[q]:void 0,onChange:U=>C(q,U),onBlur:()=>T(q),readonly:i,disabled:p})},B.id)})}),S!=="idle"&&s.jsx("div",{className:`form-viewer-status form-viewer-status-${S}`,children:s.jsxs("div",{className:"form-viewer-status-content",children:[S==="success"&&s.jsx("span",{className:"form-viewer-status-icon",children:"✓"}),S==="error"&&s.jsx("span",{className:"form-viewer-status-icon",children:"✗"}),s.jsx("span",{className:"form-viewer-status-message",children:R})]})}),!i&&s.jsxs("div",{className:"form-viewer-footer",children:[s.jsx("button",{type:"submit",className:"form-viewer-button form-viewer-button-primary",disabled:p,children:p?"Submitting...":((P=e.settings)==null?void 0:P.submitButtonText)||"Submit"}),s.jsx("button",{type:"button",className:"form-viewer-button form-viewer-button-secondary",onClick:D,disabled:p,children:((z=e.settings)==null?void 0:z.cancelButtonText)||"Reset"})]})]});return c&&l?s.jsx("div",{className:"device-preview-wrapper",style:k,children:s.jsx("div",{className:`device-frame device-frame-${l}`,children:_})}):_},rd=({isOpen:e,onClose:t})=>{const{schema:r,previewDevice:n}=Rt();if(!e)return null;const o=a=>{console.log("Preview form submitted:",a)},i=a=>{a.target===a.currentTarget&&t()};return s.jsx("div",{className:"preview-modal-overlay",onClick:i,children:s.jsxs("div",{className:"preview-modal",children:[s.jsxs("div",{className:"preview-modal-header",children:[s.jsxs("div",{className:"preview-modal-title",children:[s.jsx(Oe,{icon:"visibility",size:"medium"}),s.jsx("h3",{children:"Form Preview"})]}),s.jsxs("div",{className:"preview-modal-controls",children:[s.jsx(xu,{}),s.jsx("button",{className:"preview-close-button",onClick:t,title:"Close Preview",children:s.jsx(Oe,{icon:"close",size:"small"})})]})]}),s.jsx("div",{className:"preview-modal-content",children:s.jsx("div",{className:`preview-device-frame device-${n}`,children:s.jsx(td,{schema:r,onSubmit:o,className:"preview-form"})})})]})})},T0=e=>{if(!e||typeof e!="object"||!Array.isArray(e.fields))return!1;for(const t of e.fields)if(!t.id||!t.type||!t.label)return!1;return!(e.settings&&typeof e.settings!="object")},R0=({onExportSchema:e,onImportSchema:t})=>{const{schema:r,clearForm:n,undo:o,redo:i,canUndo:a,canRedo:l}=Rt(),[c,d]=E.useState(!1),f=()=>{const g=JSON.stringify(r,null,2);if(e)e(r);else{const x=new Blob([g],{type:"application/json"}),p=URL.createObjectURL(x),y=document.createElement("a");y.href=p,y.download=`${r.title||"form"}-${Date.now()}.json`,document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(p)}},h=()=>{if(t)t();else{const g=document.createElement("input");g.type="file",g.accept=".json",g.onchange=async x=>{var y;const p=(y=x.target.files)==null?void 0:y[0];if(p){const S=await p.text();try{const b=JSON.parse(S);if(!T0(b)){alert("Invalid form schema. Please check the file format.");return}const{setSchema:R}=Rt.getState();R(b),console.log("Successfully imported form:",b.title)}catch(b){console.error("Invalid JSON file:",b),alert("Invalid JSON file. Please check the file format.")}}},g.click()}},m=()=>{confirm("Are you sure you want to clear the form? This action cannot be undone.")&&n()};return s.jsxs("div",{className:"toolbar",children:[s.jsxs("button",{className:"toolbar-button",onClick:()=>o(),disabled:!a(),title:"Undo (Ctrl+Z)",children:[s.jsx(Oe,{icon:"undo",size:"small"}),s.jsx("span",{children:"Undo"})]}),s.jsxs("button",{className:"toolbar-button",onClick:()=>i(),disabled:!l(),title:"Redo (Ctrl+Y)",children:[s.jsx(Oe,{icon:"redo",size:"small"}),s.jsx("span",{children:"Redo"})]}),s.jsx("div",{className:"toolbar-separator"}),s.jsxs("button",{className:"toolbar-button",onClick:m,children:[s.jsx(Oe,{icon:"delete",size:"small"}),s.jsx("span",{children:"Clear Form"})]}),s.jsx("div",{className:"toolbar-separator"}),s.jsxs("button",{className:"toolbar-button",onClick:h,children:[s.jsx(Oe,{icon:"upload",size:"small"}),s.jsx("span",{children:"Import"})]}),s.jsxs("button",{className:"toolbar-button",onClick:f,children:[s.jsx(Oe,{icon:"download",size:"small"}),s.jsx("span",{children:"Export JSON"})]}),s.jsx("div",{className:"toolbar-separator"}),s.jsxs("button",{className:"toolbar-button toolbar-button-primary",onClick:()=>d(!0),title:"Preview Form",children:[s.jsx(Oe,{icon:"visibility",size:"small"}),s.jsx("span",{children:"Preview"})]}),s.jsx(rd,{isOpen:c,onClose:()=>d(!1)})]})},N0=({initialSchema:e,onChange:t,onSave:r,onExportSchema:n,className:o=""})=>{const{schema:i,setSchema:a,undo:l,redo:c,canUndo:d,canRedo:f}=Rt();E.useEffect(()=>{e&&a(e)},[e,a]),E.useEffect(()=>{t&&t(i)},[i,t]),E.useEffect(()=>{const m=g=>{const x=navigator.platform.toUpperCase().indexOf("MAC")>=0;(x?g.metaKey:g.ctrlKey)&&(g.key==="z"&&!g.shiftKey&&d()?(g.preventDefault(),l()):(g.key==="y"&&!x||g.key==="z"&&g.shiftKey)&&f()&&(g.preventDefault(),c()))};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[l,c,d,f]);const h=m=>{n&&n(m),r&&r(m)};return s.jsx(Zv,{children:s.jsxs("div",{className:`form-builder-container ${o}`,children:[s.jsx(hv,{}),s.jsxs("div",{className:"form-canvas-wrapper",children:[s.jsx(R0,{onExportSchema:h}),s.jsx(ry,{})]}),s.jsx(oy,{})]})})};exports.DEVICE_BREAKPOINTS=Wa;exports.DevicePreviewSwitcher=xu;exports.FormBuilder=N0;exports.FormViewer=td;exports.PreviewModal=rd;exports.commonValidators=Qv;exports.createCustomValidator=qr;exports.useFormStore=Rt;exports.validateField=Vn;exports.validateForm=vu;exports.validators=sa;