@wandelbots/wandelbots-js-react-components 2.10.3 → 2.11.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 (38) hide show
  1. package/dist/components/safetyBar/ControllerTypeIndicator.d.ts +9 -0
  2. package/dist/components/safetyBar/ControllerTypeIndicator.d.ts.map +1 -0
  3. package/dist/components/safetyBar/IndicatorWithExplanation.d.ts +15 -0
  4. package/dist/components/safetyBar/IndicatorWithExplanation.d.ts.map +1 -0
  5. package/dist/components/safetyBar/OperationModeIndicator.d.ts +9 -0
  6. package/dist/components/safetyBar/OperationModeIndicator.d.ts.map +1 -0
  7. package/dist/components/safetyBar/SafetyBar.d.ts +11 -0
  8. package/dist/components/safetyBar/SafetyBar.d.ts.map +1 -0
  9. package/dist/components/safetyBar/SafetyStateIndicator.d.ts +9 -0
  10. package/dist/components/safetyBar/SafetyStateIndicator.d.ts.map +1 -0
  11. package/dist/components/utils/errorHandling.d.ts +1 -0
  12. package/dist/components/utils/errorHandling.d.ts.map +1 -1
  13. package/dist/index.cjs +36 -35
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +4188 -3803
  18. package/dist/index.js.map +1 -1
  19. package/package.json +15 -16
  20. package/src/components/safetyBar/ControllerTypeIndicator.tsx +59 -0
  21. package/src/components/safetyBar/IndicatorWithExplanation.tsx +117 -0
  22. package/src/components/safetyBar/OperationModeIndicator.tsx +76 -0
  23. package/src/components/safetyBar/SafetyBar.tsx +43 -0
  24. package/src/components/safetyBar/SafetyStateIndicator.tsx +131 -0
  25. package/src/components/safetyBar/icons/controller-type-physical.svg +1 -0
  26. package/src/components/safetyBar/icons/controller-type-virtual.svg +1 -0
  27. package/src/components/safetyBar/icons/operation-mode-automatic.svg +1 -0
  28. package/src/components/safetyBar/icons/operation-mode-error.svg +1 -0
  29. package/src/components/safetyBar/icons/operation-mode-manual.svg +1 -0
  30. package/src/components/safetyBar/icons/safety-state-error.svg +1 -0
  31. package/src/components/safetyBar/icons/safety-state-estop.svg +1 -0
  32. package/src/components/safetyBar/icons/safety-state-manual-action-required.svg +1 -0
  33. package/src/components/safetyBar/icons/safety-state-normal.svg +1 -0
  34. package/src/components/safetyBar/icons/safety-state-stop.svg +1 -0
  35. package/src/components/utils/errorHandling.ts +4 -0
  36. package/src/i18n/locales/de/translations.json +27 -1
  37. package/src/i18n/locales/en/translations.json +27 -1
  38. package/src/index.ts +1 -0
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var xl=Object.create;var Qo=Object.defineProperty;var vl=Object.getOwnPropertyDescriptor;var Sl=Object.getOwnPropertyNames;var wl=Object.getPrototypeOf,Cl=Object.prototype.hasOwnProperty;var Tl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sl(t))!Cl.call(e,o)&&o!==n&&Qo(e,o,{get:()=>t[o],enumerable:!(r=vl(t,o))||r.enumerable});return e};var qr=(e,t,n)=>(n=e!=null?xl(wl(e)):{},Tl(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),Ke=require("@react-three/drei"),El=require("@react-three/fiber"),ft=require("three"),Ol=require("three-stdlib"),j=require("@mui/material"),Ie=require("mobx-react-lite"),un=require("react-i18next"),Rl=require("i18next-browser-languagedetector"),ln=require("mobx"),h=require("prop-types"),Al=require("@emotion/styled"),kl=require("@emotion/react"),Tt=require("@wandelbots/wandelbots-js"),$o=require("lodash-es"),po=require("@react-spring/three"),Pl=require("react-error-boundary");function js(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const F=js(H),Se=js(ft);var zn={exports:{}},xn={};/**
1
+ "use strict";var yl=Object.create;var Qo=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var Sl=Object.getOwnPropertyNames;var vl=Object.getPrototypeOf,xl=Object.prototype.hasOwnProperty;var wl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sl(t))!xl.call(e,o)&&o!==r&&Qo(e,o,{get:()=>t[o],enumerable:!(n=bl(t,o))||n.enumerable});return e};var Yn=(e,t,r)=>(r=e!=null?yl(vl(e)):{},wl(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react"),qe=require("@react-three/drei"),Tl=require("@react-three/fiber"),pt=require("three"),El=require("three-stdlib"),j=require("@mui/material"),ve=require("mobx-react-lite"),Te=require("react-i18next"),Cl=require("i18next-browser-languagedetector"),cr=require("mobx"),h=require("prop-types"),Ol=require("@emotion/styled"),Rl=require("@emotion/react"),Ot=require("@wandelbots/wandelbots-js"),jo=require("lodash-es"),po=require("@react-spring/three"),Al=require("react-error-boundary");function ja(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 C=ja(z),we=ja(pt);var zr={exports:{}},vr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ei;function $l(){if(ei)return xn;ei=1;var e=H,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=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 s(a,l,c){var u,d={},p=null,x=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(x=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:p,ref:x,props:d,_owner:o.current}}return xn.Fragment=n,xn.jsx=s,xn.jsxs=s,xn}var vn={};/**
9
+ */var ei;function kl(){if(ei)return vr;ei=1;var e=z,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(s,l,c){var u,d={},p=null,S=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(S=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:p,ref:S,props:d,_owner:o.current}}return vr.Fragment=r,vr.jsx=a,vr.jsxs=a,vr}var xr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,27 +14,27 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ti;function jl(){return ti||(ti=1,process.env.NODE_ENV!=="production"&&function(){var e=H,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y=Symbol.iterator,f="@@iterator";function v(m){if(m===null||typeof m!="object")return null;var O=y&&m[y]||m[f];return typeof O=="function"?O:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(m){{for(var O=arguments.length,D=new Array(O>1?O-1:0),z=1;z<O;z++)D[z-1]=arguments[z];A("error",m,D)}}function A(m,O,D){{var z=T.ReactDebugCurrentFrame,ne=z.getStackAddendum();ne!==""&&(O+="%s",D=D.concat([ne]));var ie=D.map(function(Z){return String(Z)});ie.unshift("Warning: "+O),Function.prototype.apply.call(console[m],console,ie)}}var C=!1,k=!1,$=!1,L=!1,B=!1,W;W=Symbol.for("react.module.reference");function g(m){return!!(typeof m=="string"||typeof m=="function"||m===r||m===i||B||m===o||m===c||m===u||L||m===x||C||k||$||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===d||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===W||m.getModuleId!==void 0))}function P(m,O,D){var z=m.displayName;if(z)return z;var ne=O.displayName||O.name||"";return ne!==""?D+"("+ne+")":D}function I(m){return m.displayName||"Context"}function N(m){if(m==null)return null;if(typeof m.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case a:var O=m;return I(O)+".Consumer";case s:var D=m;return I(D._context)+".Provider";case l:return P(m,m.render,"ForwardRef");case d:var z=m.displayName||null;return z!==null?z:N(m.type)||"Memo";case p:{var ne=m,ie=ne._payload,Z=ne._init;try{return N(Z(ie))}catch{return null}}}return null}var M=Object.assign,Q=0,Y,Oe,ee,le,Ce,X,Ne;function st(){}st.__reactDisabledLog=!0;function gn(){{if(Q===0){Y=console.log,Oe=console.info,ee=console.warn,le=console.error,Ce=console.group,X=console.groupCollapsed,Ne=console.groupEnd;var m={configurable:!0,enumerable:!0,value:st,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Q++}}function Jt(){{if(Q--,Q===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},m,{value:Y}),info:M({},m,{value:Oe}),warn:M({},m,{value:ee}),error:M({},m,{value:le}),group:M({},m,{value:Ce}),groupCollapsed:M({},m,{value:X}),groupEnd:M({},m,{value:Ne})})}Q<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var kt=T.ReactCurrentDispatcher,mt;function Be(m,O,D){{if(mt===void 0)try{throw Error()}catch(ne){var z=ne.stack.trim().match(/\n( *(at )?)/);mt=z&&z[1]||""}return`
18
- `+mt+m}}var We=!1,Ve;{var at=typeof WeakMap=="function"?WeakMap:Map;Ve=new at}function Me(m,O){if(!m||We)return"";{var D=Ve.get(m);if(D!==void 0)return D}var z;We=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=kt.current,kt.current=null,gn();try{if(O){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(_e){z=_e}Reflect.construct(m,[],Z)}else{try{Z.call()}catch(_e){z=_e}m.call(Z.prototype)}}else{try{throw Error()}catch(_e){z=_e}m()}}catch(_e){if(_e&&z&&typeof _e.stack=="string"){for(var q=_e.stack.split(`
19
- `),ke=z.stack.split(`
20
- `),he=q.length-1,xe=ke.length-1;he>=1&&xe>=0&&q[he]!==ke[xe];)xe--;for(;he>=1&&xe>=0;he--,xe--)if(q[he]!==ke[xe]){if(he!==1||xe!==1)do if(he--,xe--,xe<0||q[he]!==ke[xe]){var Ue=`
21
- `+q[he].replace(" at new "," at ");return m.displayName&&Ue.includes("<anonymous>")&&(Ue=Ue.replace("<anonymous>",m.displayName)),typeof m=="function"&&Ve.set(m,Ue),Ue}while(he>=1&&xe>=0);break}}}finally{We=!1,kt.current=ie,Jt(),Error.prepareStackTrace=ne}var qt=m?m.displayName||m.name:"",jt=qt?Be(qt):"";return typeof m=="function"&&Ve.set(m,jt),jt}function Te(m,O,D){return Me(m,!1)}function lt(m){var O=m.prototype;return!!(O&&O.isReactComponent)}function yt(m,O,D){if(m==null)return"";if(typeof m=="function")return Me(m,lt(m));if(typeof m=="string")return Be(m);switch(m){case c:return Be("Suspense");case u:return Be("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case l:return Te(m.render);case d:return yt(m.type,O,D);case p:{var z=m,ne=z._payload,ie=z._init;try{return yt(ie(ne),O,D)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,we={},bt=T.ReactDebugCurrentFrame;function ct(m){if(m){var O=m._owner,D=yt(m.type,m._source,O?O.type:null);bt.setExtraStackFrame(D)}else bt.setExtraStackFrame(null)}function Gt(m,O,D,z,ne){{var ie=Function.call.bind(Xe);for(var Z in m)if(ie(m,Z)){var q=void 0;try{if(typeof m[Z]!="function"){var ke=Error((z||"React class")+": "+D+" type `"+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[Z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ke.name="Invariant Violation",ke}q=m[Z](O,Z,z,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){q=he}q&&!(q instanceof Error)&&(ct(ne),E("%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).",z||"React class",D,Z,typeof q),ct(null)),q instanceof Error&&!(q.message in we)&&(we[q.message]=!0,ct(ne),E("Failed %s type: %s",D,q.message),ct(null))}}}var Wt=Array.isArray;function xt(m){return Wt(m)}function vt(m){{var O=typeof Symbol=="function"&&Symbol.toStringTag,D=O&&m[Symbol.toStringTag]||m.constructor.name||"Object";return D}}function Ht(m){try{return R(m),!1}catch{return!0}}function R(m){return""+m}function _(m){if(Ht(m))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",vt(m)),R(m)}var V=T.ReactCurrentOwner,K={key:!0,ref:!0,__self:!0,__source:!0},te,U;function ye(m){if(Xe.call(m,"ref")){var O=Object.getOwnPropertyDescriptor(m,"ref").get;if(O&&O.isReactWarning)return!1}return m.ref!==void 0}function Ee(m){if(Xe.call(m,"key")){var O=Object.getOwnPropertyDescriptor(m,"key").get;if(O&&O.isReactWarning)return!1}return m.key!==void 0}function ge(m,O){typeof m.ref=="string"&&V.current}function je(m,O){{var D=function(){te||(te=!0,E("%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)",O))};D.isReactWarning=!0,Object.defineProperty(m,"key",{get:D,configurable:!0})}}function Pt(m,O){{var D=function(){U||(U=!0,E("%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)",O))};D.isReactWarning=!0,Object.defineProperty(m,"ref",{get:D,configurable:!0})}}var Hr=function(m,O,D,z,ne,ie,Z){var q={$$typeof:t,type:m,key:O,ref:D,props:Z,_owner:ie};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function hn(m,O,D,z,ne){{var ie,Z={},q=null,ke=null;D!==void 0&&(_(D),q=""+D),Ee(O)&&(_(O.key),q=""+O.key),ye(O)&&(ke=O.ref,ge(O,ne));for(ie in O)Xe.call(O,ie)&&!K.hasOwnProperty(ie)&&(Z[ie]=O[ie]);if(m&&m.defaultProps){var he=m.defaultProps;for(ie in he)Z[ie]===void 0&&(Z[ie]=he[ie])}if(q||ke){var xe=typeof m=="function"?m.displayName||m.name||"Unknown":m;q&&je(Z,xe),ke&&Pt(Z,xe)}return Hr(m,q,ke,ne,z,V.current,Z)}}var mn=T.ReactCurrentOwner,Kt=T.ReactDebugCurrentFrame;function Ze(m){if(m){var O=m._owner,D=yt(m.type,m._source,O?O.type:null);Kt.setExtraStackFrame(D)}else Kt.setExtraStackFrame(null)}var yn;yn=!1;function ue(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function be(){{if(mn.current){var m=N(mn.current.type);if(m)return`
17
+ */var ti;function Pl(){return ti||(ti=1,process.env.NODE_ENV!=="production"&&function(){var e=z,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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),b=Symbol.iterator,f="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var R=b&&y[b]||y[f];return typeof R=="function"?R:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(y){{for(var R=arguments.length,F=new Array(R>1?R-1:0),J=1;J<R;J++)F[J-1]=arguments[J];k("error",y,F)}}function k(y,R,F){{var J=E.ReactDebugCurrentFrame,re=J.getStackAddendum();re!==""&&(R+="%s",F=F.concat([re]));var ie=F.map(function(X){return String(X)});ie.unshift("Warning: "+R),Function.prototype.apply.call(console[y],console,ie)}}var T=!1,P=!1,$=!1,I=!1,B=!1,H;H=Symbol.for("react.module.reference");function g(y){return!!(typeof y=="string"||typeof y=="function"||y===n||y===i||B||y===o||y===c||y===u||I||y===S||T||P||$||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===d||y.$$typeof===a||y.$$typeof===s||y.$$typeof===l||y.$$typeof===H||y.getModuleId!==void 0))}function _(y,R,F){var J=y.displayName;if(J)return J;var re=R.displayName||R.name||"";return re!==""?F+"("+re+")":F}function M(y){return y.displayName||"Context"}function N(y){if(y==null)return null;if(typeof y.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case s:var R=y;return M(R)+".Consumer";case a:var F=y;return M(F._context)+".Provider";case l:return _(y,y.render,"ForwardRef");case d:var J=y.displayName||null;return J!==null?J:N(y.type)||"Memo";case p:{var re=y,ie=re._payload,X=re._init;try{return N(X(ie))}catch{return null}}}return null}var D=Object.assign,Q=0,Y,Ae,ee,le,Ce,Z,Ne;function lt(){}lt.__reactDisabledLog=!0;function hr(){{if(Q===0){Y=console.log,Ae=console.info,ee=console.warn,le=console.error,Ce=console.group,Z=console.groupCollapsed,Ne=console.groupEnd;var y={configurable:!0,enumerable:!0,value:lt,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}Q++}}function Wt(){{if(Q--,Q===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},y,{value:Y}),info:D({},y,{value:Ae}),warn:D({},y,{value:ee}),error:D({},y,{value:le}),group:D({},y,{value:Ce}),groupCollapsed:D({},y,{value:Z}),groupEnd:D({},y,{value:Ne})})}Q<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var jt=E.ReactCurrentDispatcher,bt;function Ve(y,R,F){{if(bt===void 0)try{throw Error()}catch(re){var J=re.stack.trim().match(/\n( *(at )?)/);bt=J&&J[1]||""}return`
18
+ `+bt+y}}var He=!1,Ue;{var ct=typeof WeakMap=="function"?WeakMap:Map;Ue=new ct}function De(y,R){if(!y||He)return"";{var F=Ue.get(y);if(F!==void 0)return F}var J;He=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=jt.current,jt.current=null,hr();try{if(R){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(Ie){J=Ie}Reflect.construct(y,[],X)}else{try{X.call()}catch(Ie){J=Ie}y.call(X.prototype)}}else{try{throw Error()}catch(Ie){J=Ie}y()}}catch(Ie){if(Ie&&J&&typeof Ie.stack=="string"){for(var q=Ie.stack.split(`
19
+ `),je=J.stack.split(`
20
+ `),he=q.length-1,Se=je.length-1;he>=1&&Se>=0&&q[he]!==je[Se];)Se--;for(;he>=1&&Se>=0;he--,Se--)if(q[he]!==je[Se]){if(he!==1||Se!==1)do if(he--,Se--,Se<0||q[he]!==je[Se]){var ze=`
21
+ `+q[he].replace(" at new "," at ");return y.displayName&&ze.includes("<anonymous>")&&(ze=ze.replace("<anonymous>",y.displayName)),typeof y=="function"&&Ue.set(y,ze),ze}while(he>=1&&Se>=0);break}}}finally{He=!1,jt.current=ie,Wt(),Error.prepareStackTrace=re}var Zt=y?y.displayName||y.name:"",Lt=Zt?Ve(Zt):"";return typeof y=="function"&&Ue.set(y,Lt),Lt}function Oe(y,R,F){return De(y,!1)}function ut(y){var R=y.prototype;return!!(R&&R.isReactComponent)}function St(y,R,F){if(y==null)return"";if(typeof y=="function")return De(y,ut(y));if(typeof y=="string")return Ve(y);switch(y){case c:return Ve("Suspense");case u:return Ve("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case l:return Oe(y.render);case d:return St(y.type,R,F);case p:{var J=y,re=J._payload,ie=J._init;try{return St(ie(re),R,F)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,Ee={},vt=E.ReactDebugCurrentFrame;function ft(y){if(y){var R=y._owner,F=St(y.type,y._source,R?R.type:null);vt.setExtraStackFrame(F)}else vt.setExtraStackFrame(null)}function Ht(y,R,F,J,re){{var ie=Function.call.bind(Xe);for(var X in y)if(ie(y,X)){var q=void 0;try{if(typeof y[X]!="function"){var je=Error((J||"React class")+": "+F+" type `"+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[X]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}q=y[X](R,X,J,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){q=he}q&&!(q instanceof Error)&&(ft(re),O("%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).",J||"React class",F,X,typeof q),ft(null)),q instanceof Error&&!(q.message in Ee)&&(Ee[q.message]=!0,ft(re),O("Failed %s type: %s",F,q.message),ft(null))}}}var Kt=Array.isArray;function xt(y){return Kt(y)}function wt(y){{var R=typeof Symbol=="function"&&Symbol.toStringTag,F=R&&y[Symbol.toStringTag]||y.constructor.name||"Object";return F}}function qt(y){try{return A(y),!1}catch{return!0}}function A(y){return""+y}function L(y){if(qt(y))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(y)),A(y)}var V=E.ReactCurrentOwner,K={key:!0,ref:!0,__self:!0,__source:!0},te,U;function ye(y){if(Xe.call(y,"ref")){var R=Object.getOwnPropertyDescriptor(y,"ref").get;if(R&&R.isReactWarning)return!1}return y.ref!==void 0}function Re(y){if(Xe.call(y,"key")){var R=Object.getOwnPropertyDescriptor(y,"key").get;if(R&&R.isReactWarning)return!1}return y.key!==void 0}function ge(y,R){typeof y.ref=="string"&&V.current}function Le(y,R){{var F=function(){te||(te=!0,O("%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)",R))};F.isReactWarning=!0,Object.defineProperty(y,"key",{get:F,configurable:!0})}}function _t(y,R){{var F=function(){U||(U=!0,O("%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)",R))};F.isReactWarning=!0,Object.defineProperty(y,"ref",{get:F,configurable:!0})}}var Kn=function(y,R,F,J,re,ie,X){var q={$$typeof:t,type:y,key:R,ref:F,props:X,_owner:ie};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function mr(y,R,F,J,re){{var ie,X={},q=null,je=null;F!==void 0&&(L(F),q=""+F),Re(R)&&(L(R.key),q=""+R.key),ye(R)&&(je=R.ref,ge(R,re));for(ie in R)Xe.call(R,ie)&&!K.hasOwnProperty(ie)&&(X[ie]=R[ie]);if(y&&y.defaultProps){var he=y.defaultProps;for(ie in he)X[ie]===void 0&&(X[ie]=he[ie])}if(q||je){var Se=typeof y=="function"?y.displayName||y.name||"Unknown":y;q&&Le(X,Se),je&&_t(X,Se)}return Kn(y,q,je,re,J,V.current,X)}}var yr=E.ReactCurrentOwner,Yt=E.ReactDebugCurrentFrame;function Qe(y){if(y){var R=y._owner,F=St(y.type,y._source,R?R.type:null);Yt.setExtraStackFrame(F)}else Yt.setExtraStackFrame(null)}var br;br=!1;function ue(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function be(){{if(yr.current){var y=N(yr.current.type);if(y)return`
22
22
 
23
- Check the render method of \``+m+"`."}return""}}function bn(m){return""}var $t={};function He(m){{var O=be();if(!O){var D=typeof m=="string"?m:m.displayName||m.name;D&&(O=`
23
+ Check the render method of \``+y+"`."}return""}}function Sr(y){return""}var $t={};function Ke(y){{var R=be();if(!R){var F=typeof y=="string"?y:y.displayName||y.name;F&&(R=`
24
24
 
25
- Check the top-level render call using <`+D+">.")}return O}}function qo(m,O){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var D=He(O);if($t[D])return;$t[D]=!0;var z="";m&&m._owner&&m._owner!==mn.current&&(z=" It was passed a child from "+N(m._owner.type)+"."),Ze(m),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,z),Ze(null)}}function Yo(m,O){{if(typeof m!="object")return;if(xt(m))for(var D=0;D<m.length;D++){var z=m[D];ue(z)&&qo(z,O)}else if(ue(m))m._store&&(m._store.validated=!0);else if(m){var ne=v(m);if(typeof ne=="function"&&ne!==m.entries)for(var ie=ne.call(m),Z;!(Z=ie.next()).done;)ue(Z.value)&&qo(Z.value,O)}}}function fl(m){{var O=m.type;if(O==null||typeof O=="string")return;var D;if(typeof O=="function")D=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===l||O.$$typeof===d))D=O.propTypes;else return;if(D){var z=N(O);Gt(D,m.props,"prop",z,m)}else if(O.PropTypes!==void 0&&!yn){yn=!0;var ne=N(O);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dl(m){{for(var O=Object.keys(m.props),D=0;D<O.length;D++){var z=O[D];if(z!=="children"&&z!=="key"){Ze(m),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z),Ze(null);break}}m.ref!==null&&(Ze(m),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ze(null))}}var Xo={};function Zo(m,O,D,z,ne,ie){{var Z=g(m);if(!Z){var q="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(q+=" 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 ke=bn();ke?q+=ke:q+=be();var he;m===null?he="null":xt(m)?he="array":m!==void 0&&m.$$typeof===t?(he="<"+(N(m.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):he=typeof m,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,q)}var xe=hn(m,O,D,ne,ie);if(xe==null)return xe;if(Z){var Ue=O.children;if(Ue!==void 0)if(z)if(xt(Ue)){for(var qt=0;qt<Ue.length;qt++)Yo(Ue[qt],m);Object.freeze&&Object.freeze(Ue)}else E("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 Yo(Ue,m)}if(Xe.call(O,"key")){var jt=N(m),_e=Object.keys(O).filter(function(bl){return bl!=="key"}),Kr=_e.length>0?"{key: someKey, "+_e.join(": ..., ")+": ...}":"{key: someKey}";if(!Xo[jt+Kr]){var yl=_e.length>0?"{"+_e.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+F+">.")}return R}}function qo(y,R){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var F=Ke(R);if($t[F])return;$t[F]=!0;var J="";y&&y._owner&&y._owner!==yr.current&&(J=" It was passed a child from "+N(y._owner.type)+"."),Qe(y),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,J),Qe(null)}}function Yo(y,R){{if(typeof y!="object")return;if(xt(y))for(var F=0;F<y.length;F++){var J=y[F];ue(J)&&qo(J,R)}else if(ue(y))y._store&&(y._store.validated=!0);else if(y){var re=v(y);if(typeof re=="function"&&re!==y.entries)for(var ie=re.call(y),X;!(X=ie.next()).done;)ue(X.value)&&qo(X.value,R)}}}function cl(y){{var R=y.type;if(R==null||typeof R=="string")return;var F;if(typeof R=="function")F=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===l||R.$$typeof===d))F=R.propTypes;else return;if(F){var J=N(R);Ht(F,y.props,"prop",J,y)}else if(R.PropTypes!==void 0&&!br){br=!0;var re=N(R);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ul(y){{for(var R=Object.keys(y.props),F=0;F<R.length;F++){var J=R[F];if(J!=="children"&&J!=="key"){Qe(y),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",J),Qe(null);break}}y.ref!==null&&(Qe(y),O("Invalid attribute `ref` supplied to `React.Fragment`."),Qe(null))}}var Zo={};function Xo(y,R,F,J,re,ie){{var X=g(y);if(!X){var q="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(q+=" 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 je=Sr();je?q+=je:q+=be();var he;y===null?he="null":xt(y)?he="array":y!==void 0&&y.$$typeof===t?(he="<"+(N(y.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):he=typeof y,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,q)}var Se=mr(y,R,F,re,ie);if(Se==null)return Se;if(X){var ze=R.children;if(ze!==void 0)if(J)if(xt(ze)){for(var Zt=0;Zt<ze.length;Zt++)Yo(ze[Zt],y);Object.freeze&&Object.freeze(ze)}else O("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 Yo(ze,y)}if(Xe.call(R,"key")){var Lt=N(y),Ie=Object.keys(R).filter(function(ml){return ml!=="key"}),qn=Ie.length>0?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}";if(!Zo[Lt+qn]){var hl=Ie.length>0?"{"+Ie.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Kr,jt,yl,jt),Xo[jt+Kr]=!0}}return m===r?dl(xe):fl(xe),xe}}function pl(m,O,D){return Zo(m,O,D,!0)}function gl(m,O,D){return Zo(m,O,D,!1)}var hl=gl,ml=pl;vn.Fragment=r,vn.jsx=hl,vn.jsxs=ml}()),vn}var ni;function _l(){return ni||(ni=1,process.env.NODE_ENV==="production"?zn.exports=$l():zn.exports=jl()),zn.exports}var b=_l();function Ll(){return b.jsx(Ke.Environment,{children:b.jsx(Il,{})})}function Il({positions:e=[2,0,2,0,2,0,2,0]}){return b.jsxs(b.Fragment,{children:[b.jsx(Ke.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),b.jsx("group",{rotation:[0,.5,0],children:b.jsx("group",{children:e.map((t,n)=>b.jsx(Ke.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,n*4],scale:[3,1,1]},n))})}),b.jsx(Ke.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),b.jsx(Ke.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),b.jsx(Ke.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),b.jsx(Ke.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),b.jsx(Ke.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Nl(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Se.Vector3(e[0].x,e[0].y,e[0].z),n=new Se.Vector3(e[1].x,e[1].y,e[1].z),r=new Se.Vector3(e[2].x,e[2].y,e[2].z),o=new Se.Vector3().subVectors(n,t),i=new Se.Vector3().subVectors(r,t),s=new Se.Vector3().crossVectors(o,i).normalize();for(let a=3;a<e.length;a++){const l=new Se.Vector3(e[a].x,e[a].y,e[a].z),c=new Se.Vector3().subVectors(l,t),u=s.dot(c);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:s}}function Ml({safetyZones:e,...t}){return b.jsx("group",{...t,children:e.map((n,r)=>{let o=[];return n.geometry&&(n.geometry.compound?o=n.geometry.compound.child_geometries:n.geometry.convex_hull&&(o=[n.geometry])),o.map((i,s)=>{if(!i.convex_hull)return null;const a=i.convex_hull.vertices.map(u=>new Se.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=Nl(a);if(l.isCoplanar&&l.normal){const d=new Se.Vector3().addVectors(a[0],l.normal.multiplyScalar(1e-4));a.push(d)}let c;try{c=new Ol.ConvexGeometry(a)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return b.jsx("mesh",{geometry:c,children:b.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-s},r)},`${r}-${s}`)})})})}function Dl({trajectory:e,...t}){var r;const n=((r=e.trajectory)==null?void 0:r.map(o=>o.tcp_pose?new Se.Vector3(o.tcp_pose.position.x/1e3,o.tcp_pose.position.z/1e3,-o.tcp_pose.position.y/1e3):null).filter(o=>o!==null))||[];return b.jsx("group",{...t,children:n.length>0&&b.jsx(Ke.Line,{points:n,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}function Et(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Fl(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Vl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ul=/[A-Z]|^ms/g,zl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_s=function(t){return t.charCodeAt(1)===45},ri=function(t){return t!=null&&typeof t!="boolean"},Yr=Vl(function(e){return _s(e)?e:e.replace(Ul,"-$&").toLowerCase()}),oi=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zl,function(r,o,i){return Ct={name:o,styles:i,next:Ct},o})}return Bl[t]!==1&&!_s(t)&&typeof n=="number"&&n!==0?n+"px":n};function lr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ct={name:o.name,styles:o.styles,next:Ct},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Ct={name:s.name,styles:s.styles,next:Ct},s=s.next;var a=i.styles+";";return a}return Jl(e,t,n)}}var l=n;return l}function Jl(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=lr(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;ri(a)&&(r+=Yr(i)+":"+oi(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)ri(s[l])&&(r+=Yr(i)+":"+oi(i,s[l])+";");else{var c=lr(e,t,s);switch(i){case"animation":case"animationName":{r+=Yr(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var ii=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function Gl(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ct=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=lr(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=lr(n,t,e[a]),r){var l=i;o+=l[a]}ii.lastIndex=0;for(var c="",u;(u=ii.exec(o))!==null;)c+="-"+u[1];var d=Fl(o)+c;return{name:d,styles:o,next:Ct}}/**
31
- * @mui/styled-engine v6.4.3
30
+ <%s key={someKey} {...props} />`,qn,Lt,hl,Lt),Zo[Lt+qn]=!0}}return y===n?ul(Se):cl(Se),Se}}function fl(y,R,F){return Xo(y,R,F,!0)}function dl(y,R,F){return Xo(y,R,F,!1)}var pl=dl,gl=fl;xr.Fragment=n,xr.jsx=pl,xr.jsxs=gl}()),xr}var ri;function jl(){return ri||(ri=1,process.env.NODE_ENV==="production"?zr.exports=kl():zr.exports=Pl()),zr.exports}var m=jl();function _l(){return m.jsx(qe.Environment,{children:m.jsx($l,{})})}function $l({positions:e=[2,0,2,0,2,0,2,0]}){return m.jsxs(m.Fragment,{children:[m.jsx(qe.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),m.jsx("group",{rotation:[0,.5,0],children:m.jsx("group",{children:e.map((t,r)=>m.jsx(qe.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),m.jsx(qe.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),m.jsx(qe.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),m.jsx(qe.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),m.jsx(qe.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),m.jsx(qe.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Ll(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new we.Vector3(e[0].x,e[0].y,e[0].z),r=new we.Vector3(e[1].x,e[1].y,e[1].z),n=new we.Vector3(e[2].x,e[2].y,e[2].z),o=new we.Vector3().subVectors(r,t),i=new we.Vector3().subVectors(n,t),a=new we.Vector3().crossVectors(o,i).normalize();for(let s=3;s<e.length;s++){const l=new we.Vector3(e[s].x,e[s].y,e[s].z),c=new we.Vector3().subVectors(l,t),u=a.dot(c);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:a}}function Il({safetyZones:e,...t}){return m.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((i,a)=>{if(!i.convex_hull)return null;const s=i.convex_hull.vertices.map(u=>new we.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=Ll(s);if(l.isCoplanar&&l.normal){const d=new we.Vector3().addVectors(s[0],l.normal.multiplyScalar(1e-4));s.push(d)}let c;try{c=new El.ConvexGeometry(s)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return m.jsx("mesh",{geometry:c,children:m.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-a},n)},`${n}-${a}`)})})})}function Ml({trajectory:e,...t}){var n;const r=((n=e.trajectory)==null?void 0:n.map(o=>o.tcp_pose?new we.Vector3(o.tcp_pose.position.x/1e3,o.tcp_pose.position.z/1e3,-o.tcp_pose.position.y/1e3):null).filter(o=>o!==null))||[];return m.jsx("group",{...t,children:r.length>0&&m.jsx(qe.Line,{points:r,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}function Rt(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 Nl(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 Dl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Fl(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Bl=/[A-Z]|^ms/g,Vl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_a=function(t){return t.charCodeAt(1)===45},ni=function(t){return t!=null&&typeof t!="boolean"},Zn=Fl(function(e){return _a(e)?e:e.replace(Bl,"-$&").toLowerCase()}),oi=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Vl,function(n,o,i){return Ct={name:o,styles:i,next:Ct},o})}return Dl[t]!==1&&!_a(t)&&typeof r=="number"&&r!==0?r+"px":r};function cn(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 Ct={name:o.name,styles:o.styles,next:Ct},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Ct={name:a.name,styles:a.styles,next:Ct},a=a.next;var s=i.styles+";";return s}return Ul(e,t,r)}}var l=r;return l}function Ul(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=cn(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;ni(s)&&(n+=Zn(i)+":"+oi(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)ni(a[l])&&(n+=Zn(i)+":"+oi(i,a[l])+";");else{var c=cn(e,t,a);switch(i){case"animation":case"animationName":{n+=Zn(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var ii=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function zl(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="";Ct=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=cn(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=cn(r,t,e[s]),n){var l=i;o+=l[s]}ii.lastIndex=0;for(var c="",u;(u=ii.exec(o))!==null;)c+="-"+u[1];var d=Nl(o)+c;return{name:d,styles:o,next:Ct}}/**
31
+ * @mui/styled-engine v6.4.6
32
32
  *
33
33
  * @license MIT
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */function Wl(e,t){const n=Al(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.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(`
37
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function Hl(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const si=[];function ai(e){return si[0]=e,Gl(si)}var Jn={exports:{}},re={};/**
36
+ */function Jl(e,t){const r=Ol(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(`
37
+ `)):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 Gl(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ai=[];function si(e){return ai[0]=e,zl(ai)}var Jr={exports:{}},ne={};/**
38
38
  * @license React
39
39
  * react-is.production.js
40
40
  *
@@ -42,7 +42,7 @@ React keys must be passed directly to JSX without using spread:
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */var li;function Kl(){if(li)return re;li=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),x=Symbol.for("react.client.reference");function y(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case e:switch(f=f.type,f){case n:case o:case r:case l:case c:return f;default:switch(f=f&&f.$$typeof,f){case s:case a:case d:case u:return f;case i:return f;default:return v}}case t:return v}}}return re.ContextConsumer=i,re.ContextProvider=s,re.Element=e,re.ForwardRef=a,re.Fragment=n,re.Lazy=d,re.Memo=u,re.Portal=t,re.Profiler=o,re.StrictMode=r,re.Suspense=l,re.SuspenseList=c,re.isContextConsumer=function(f){return y(f)===i},re.isContextProvider=function(f){return y(f)===s},re.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},re.isForwardRef=function(f){return y(f)===a},re.isFragment=function(f){return y(f)===n},re.isLazy=function(f){return y(f)===d},re.isMemo=function(f){return y(f)===u},re.isPortal=function(f){return y(f)===t},re.isProfiler=function(f){return y(f)===o},re.isStrictMode=function(f){return y(f)===r},re.isSuspense=function(f){return y(f)===l},re.isSuspenseList=function(f){return y(f)===c},re.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===l||f===c||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===u||f.$$typeof===s||f.$$typeof===i||f.$$typeof===a||f.$$typeof===x||f.getModuleId!==void 0)},re.typeOf=y,re}var oe={};/**
45
+ */var li;function Wl(){if(li)return ne;li=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"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),S=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case e:switch(f=f.type,f){case r:case o:case n:case l:case c:return f;default:switch(f=f&&f.$$typeof,f){case a:case s:case d:case u:return f;case i:return f;default:return v}}case t:return v}}}return ne.ContextConsumer=i,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=s,ne.Fragment=r,ne.Lazy=d,ne.Memo=u,ne.Portal=t,ne.Profiler=o,ne.StrictMode=n,ne.Suspense=l,ne.SuspenseList=c,ne.isContextConsumer=function(f){return b(f)===i},ne.isContextProvider=function(f){return b(f)===a},ne.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},ne.isForwardRef=function(f){return b(f)===s},ne.isFragment=function(f){return b(f)===r},ne.isLazy=function(f){return b(f)===d},ne.isMemo=function(f){return b(f)===u},ne.isPortal=function(f){return b(f)===t},ne.isProfiler=function(f){return b(f)===o},ne.isStrictMode=function(f){return b(f)===n},ne.isSuspense=function(f){return b(f)===l},ne.isSuspenseList=function(f){return b(f)===c},ne.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===l||f===c||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===u||f.$$typeof===a||f.$$typeof===i||f.$$typeof===s||f.$$typeof===S||f.getModuleId!==void 0)},ne.typeOf=b,ne}var oe={};/**
46
46
  * @license React
47
47
  * react-is.development.js
48
48
  *
@@ -50,18 +50,18 @@ React keys must be passed directly to JSX without using spread:
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var ci;function ql(){return ci||(ci=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case t:switch(f=f.type,f){case r:case i:case o:case c:case u:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case p:case d:return f;case s:return f;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");oe.ContextConsumer=s,oe.ContextProvider=a,oe.Element=t,oe.ForwardRef=l,oe.Fragment=r,oe.Lazy=p,oe.Memo=d,oe.Portal=n,oe.Profiler=i,oe.StrictMode=o,oe.Suspense=c,oe.SuspenseList=u,oe.isContextConsumer=function(f){return e(f)===s},oe.isContextProvider=function(f){return e(f)===a},oe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},oe.isForwardRef=function(f){return e(f)===l},oe.isFragment=function(f){return e(f)===r},oe.isLazy=function(f){return e(f)===p},oe.isMemo=function(f){return e(f)===d},oe.isPortal=function(f){return e(f)===n},oe.isProfiler=function(f){return e(f)===i},oe.isStrictMode=function(f){return e(f)===o},oe.isSuspense=function(f){return e(f)===c},oe.isSuspenseList=function(f){return e(f)===u},oe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===c||f===u||f===x||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},oe.typeOf=e}()),oe}var ui;function Yl(){return ui||(ui=1,process.env.NODE_ENV==="production"?Jn.exports=Kl():Jn.exports=ql()),Jn.exports}var cr=Yl();function tt(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 Ls(e){if(F.isValidElement(e)||cr.isValidElementType(e)||!tt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ls(e[n])}),t}function $e(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return tt(e)&&tt(t)&&Object.keys(t).forEach(o=>{F.isValidElement(t[o])||cr.isValidElementType(t[o])?r[o]=t[o]:tt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&tt(e[o])?r[o]=$e(e[o],t[o],n):n.clone?r[o]=tt(t[o])?Ls(t[o]):t[o]:r[o]=t[o]}),r}const Xl=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Zl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Xl(t),s=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,x){const y=s.indexOf(x);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:x)-r/100}${n})`}function u(p){return s.indexOf(p)+1<s.length?c(p,s[s.indexOf(p)+1]):a(p)}function d(p){const x=s.indexOf(p);return x===0?a(s[1]):x===s.length-1?l(s[x]):c(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:c,only:u,not:d,unit:n,...o}}function Ql(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function ec(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function tc(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){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>\`.
54
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Et(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function nc(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...a)=>t(e.breakpoints.up(...a),s),i.down=(...a)=>t(e.breakpoints.down(...a),s),i.between=(...a)=>t(e.breakpoints.between(...a),s),i.only=(...a)=>t(e.breakpoints.only(...a),s),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const rc={borderRadius:4},At=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Rn(e,t){return t?$e(e,t,{clone:!1}):e}const Sr={xs:0,sm:600,md:900,lg:1200,xl:1536},fi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Sr[e]}px)`},oc={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Sr[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function qe(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||fi;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||fi;return Object.keys(t).reduce((s,a)=>{if(ec(i.keys,a)){const l=tc(r.containerQueries?r:oc,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||Sr).includes(a)){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Is(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Ns(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ic(e,...t){const n=Is(e),r=[n,...t].reduce((o,i)=>$e(o,i),{});return Ns(Object.keys(n),r)}function sc(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Xr({values:e,breakpoints:t,base:n}){const r=n||sc(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Pe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Et(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ur(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=wr(e,n)||r,t&&(o=t(o,r,e)),o}function me(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=wr(l,r)||{};return qe(s,a,d=>{let p=ur(c,o,d);return d===p&&typeof d=="string"&&(p=ur(c,o,`${t}${d==="default"?"":Pe(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:At}:{},i.filterProps=[t],i}function ac(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const lc={m:"margin",p:"padding"},cc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},di={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uc=ac(e=>{if(e.length>2)if(di[e])e=di[e];else return[e];const[t,n]=e.split(""),r=lc[t],o=cc[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Cr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Tr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],fc=[...Cr,...Tr];function Mn(e,t,n,r){const o=wr(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
53
+ */var ci;function Hl(){return ci||(ci=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case t:switch(f=f.type,f){case n:case i:case o:case c:case u:return f;default:switch(f=f&&f.$$typeof,f){case s:case l:case p:case d:return f;case a:return f;default:return v}}case r:return v}}}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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");oe.ContextConsumer=a,oe.ContextProvider=s,oe.Element=t,oe.ForwardRef=l,oe.Fragment=n,oe.Lazy=p,oe.Memo=d,oe.Portal=r,oe.Profiler=i,oe.StrictMode=o,oe.Suspense=c,oe.SuspenseList=u,oe.isContextConsumer=function(f){return e(f)===a},oe.isContextProvider=function(f){return e(f)===s},oe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},oe.isForwardRef=function(f){return e(f)===l},oe.isFragment=function(f){return e(f)===n},oe.isLazy=function(f){return e(f)===p},oe.isMemo=function(f){return e(f)===d},oe.isPortal=function(f){return e(f)===r},oe.isProfiler=function(f){return e(f)===i},oe.isStrictMode=function(f){return e(f)===o},oe.isSuspense=function(f){return e(f)===c},oe.isSuspenseList=function(f){return e(f)===u},oe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===o||f===c||f===u||f===S||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===s||f.$$typeof===a||f.$$typeof===l||f.$$typeof===b||f.getModuleId!==void 0)},oe.typeOf=e}()),oe}var ui;function Kl(){return ui||(ui=1,process.env.NODE_ENV==="production"?Jr.exports=Wl():Jr.exports=Hl()),Jr.exports}var un=Kl();function rt(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 $a(e){if(C.isValidElement(e)||un.isValidElementType(e)||!rt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=$a(e[r])}),t}function $e(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return rt(e)&&rt(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||un.isValidElementType(t[o])?n[o]=t[o]:rt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rt(e[o])?n[o]=$e(e[o],t[o],r):r.clone?n[o]=rt(t[o])?$a(t[o]):t[o]:n[o]=t[o]}),n}const ql=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 Yl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=ql(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,S){const b=a.indexOf(S);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:S)-n/100}${r})`}function u(p){return a.indexOf(p)+1<a.length?c(p,a[a.indexOf(p)+1]):s(p)}function d(p){const S=a.indexOf(p);return S===0?s(a[1]):S===a.length-1?l(a[S]):c(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:l,between:c,only:u,not:d,unit:r,...o}}function Zl(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=n.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function Xl(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Ql(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>\`.
54
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Rt(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function ec(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const tc={borderRadius:4},Pt=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Ar(e,t){return t?$e(e,t,{clone:!1}):e}const wn={xs:0,sm:600,md:900,lg:1200,xl:1536},fi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wn[e]}px)`},rc={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:wn[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ye(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||fi;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const i=n.breakpoints||fi;return Object.keys(t).reduce((a,s)=>{if(Xl(i.keys,s)){const l=Ql(n.containerQueries?n:rc,s);l&&(a[l]=r(t[s],s))}else if(Object.keys(i.values||wn).includes(s)){const l=i.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function La(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Ia(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function nc(e,...t){const r=La(e),n=[r,...t].reduce((o,i)=>$e(o,i),{});return Ia(Object.keys(r),n)}function oc(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Xn({values:e,breakpoints:t,base:r}){const n=r||oc(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function _e(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Rt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Tn(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 fn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Tn(e,r)||n,t&&(o=t(o,n,e)),o}function me(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Tn(l,n)||{};return Ye(a,s,d=>{let p=fn(c,o,d);return d===p&&typeof d=="string"&&(p=fn(c,o,`${t}${d==="default"?"":_e(d)}`,d)),r===!1?p:{[r]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Pt}:{},i.filterProps=[t],i}function ic(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ac={m:"margin",p:"padding"},sc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},di={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lc=ic(e=>{if(e.length>2)if(di[e])e=di[e];else return[e];const[t,r]=e.split(""),n=ac[t],o=sc[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),En=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Cn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],cc=[...En,...Cn];function Dr(e,t,r,n){const o=Tn(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"?`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(`
55
55
  `)):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(`
56
- `)));const a=o[s];return i>=0?a:typeof a=="number"?-a:`-${a}`}: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(`
57
- `)),()=>{})}function Er(e){return Mn(e,"spacing",8,"spacing")}function It(e,t){return typeof t=="string"||t==null?t:e(t)}function dc(e,t){return n=>e.reduce((r,o)=>(r[o]=It(t,n),r),{})}function pc(e,t,n,r){if(!t.includes(n))return null;const o=uc(n),i=dc(o,r),s=e[n];return qe(e,s,i)}function Ms(e,t){const n=Er(e.theme);return Object.keys(e).map(r=>pc(e,t,r,n)).reduce(Rn,{})}function de(e){return Ms(e,Cr)}de.propTypes=process.env.NODE_ENV!=="production"?Cr.reduce((e,t)=>(e[t]=At,e),{}):{};de.filterProps=Cr;function pe(e){return Ms(e,Tr)}pe.propTypes=process.env.NODE_ENV!=="production"?Tr.reduce((e,t)=>(e[t]=At,e),{}):{};pe.filterProps=Tr;process.env.NODE_ENV!=="production"&&fc.reduce((e,t)=>(e[t]=At,e),{});function Ds(e=8,t=Er({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Or(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Rn(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ze(e){return typeof e!="number"?e:`${e}px solid`}function Ge(e,t){return me({prop:e,themeKey:"borders",transform:t})}const gc=Ge("border",ze),hc=Ge("borderTop",ze),mc=Ge("borderRight",ze),yc=Ge("borderBottom",ze),bc=Ge("borderLeft",ze),xc=Ge("borderColor"),vc=Ge("borderTopColor"),Sc=Ge("borderRightColor"),wc=Ge("borderBottomColor"),Cc=Ge("borderLeftColor"),Tc=Ge("outline",ze),Ec=Ge("outlineColor"),Rr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Mn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:It(t,r)});return qe(e,e.borderRadius,n)}return null};Rr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:At}:{};Rr.filterProps=["borderRadius"];Or(gc,hc,mc,yc,bc,xc,vc,Sc,wc,Cc,Rr,Tc,Ec);const Ar=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Mn(e.theme,"spacing",8,"gap"),n=r=>({gap:It(t,r)});return qe(e,e.gap,n)}return null};Ar.propTypes=process.env.NODE_ENV!=="production"?{gap:At}:{};Ar.filterProps=["gap"];const kr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Mn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:It(t,r)});return qe(e,e.columnGap,n)}return null};kr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:At}:{};kr.filterProps=["columnGap"];const Pr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Mn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:It(t,r)});return qe(e,e.rowGap,n)}return null};Pr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:At}:{};Pr.filterProps=["rowGap"];const Oc=me({prop:"gridColumn"}),Rc=me({prop:"gridRow"}),Ac=me({prop:"gridAutoFlow"}),kc=me({prop:"gridAutoColumns"}),Pc=me({prop:"gridAutoRows"}),$c=me({prop:"gridTemplateColumns"}),jc=me({prop:"gridTemplateRows"}),_c=me({prop:"gridTemplateAreas"}),Lc=me({prop:"gridArea"});Or(Ar,kr,Pr,Oc,Rc,Ac,kc,Pc,$c,jc,_c,Lc);function sn(e,t){return t==="grey"?t:e}const Ic=me({prop:"color",themeKey:"palette",transform:sn}),Nc=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sn}),Mc=me({prop:"backgroundColor",themeKey:"palette",transform:sn});Or(Ic,Nc,Mc);function De(e){return e<=1&&e!==0?`${e*100}%`:e}const Dc=me({prop:"width",transform:De}),jo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,s,a,l;const r=((s=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||Sr[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:De(n)}};return qe(e,e.maxWidth,t)}return null};jo.filterProps=["maxWidth"];const Fc=me({prop:"minWidth",transform:De}),Bc=me({prop:"height",transform:De}),Vc=me({prop:"maxHeight",transform:De}),Uc=me({prop:"minHeight",transform:De});me({prop:"size",cssProperty:"width",transform:De});me({prop:"size",cssProperty:"height",transform:De});const zc=me({prop:"boxSizing"});Or(Dc,jo,Fc,Bc,Vc,Uc,zc);const Dn={border:{themeKey:"borders",transform:ze},borderTop:{themeKey:"borders",transform:ze},borderRight:{themeKey:"borders",transform:ze},borderBottom:{themeKey:"borders",transform:ze},borderLeft:{themeKey:"borders",transform:ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rr},color:{themeKey:"palette",transform:sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sn},backgroundColor:{themeKey:"palette",transform:sn},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},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:Ar},rowGap:{style:Pr},columnGap:{style:kr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:De},maxWidth:{style:jo},minWidth:{transform:De},height:{transform:De},maxHeight:{transform:De},minHeight:{transform:De},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 Jc(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Gc(e,t){return typeof e=="function"?e(t):e}function Wc(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=wr(o,c)||{};return d?d(s):qe(s,r,y=>{let f=ur(p,u,y);return y===f&&typeof y=="string"&&(f=ur(p,u,`${n}${y==="default"?"":Pe(y)}`,y)),l===!1?f:{[l]:f}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Dn;function s(a){let l=a;if(typeof a=="function")l=a(o);else if(typeof a!="object")return a;if(!l)return null;const c=Is(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(p=>{const x=Gc(l[p],o);if(x!=null)if(typeof x=="object")if(i[p])d=Rn(d,e(p,x,o,i));else{const y=qe({theme:o},x,f=>({[p]:f}));Jc(y,x)?d[p]=t({sx:x,theme:o}):d=Rn(d,y)}else d=Rn(d,e(p,x,o,i))}),Ql(o,Ns(u,d))}return Array.isArray(r)?r.map(s):s(r)}return t}const cn=Wc();cn.filterProps=["sx"];function Hc(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function $r(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=Zl(n),l=Ds(o);let c=$e({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...rc,...i}},s);return c=nc(c),c.applyStyles=Hc,c=t.reduce((u,d)=>$e(u,d),c),c.unstable_sxConfig={...Dn,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(d){return cn({sx:d,theme:this})},c}function Kc(e){return Object.keys(e).length===0}function qc(e=null){const t=F.useContext(kl.ThemeContext);return!t||Kc(t)?e:t}const Yc=$r();function Xc(e=Yc){return qc(e)}const Zc=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Dn;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Qc(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Zc(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return tt(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}const pi=e=>e,eu=()=>{let e=pi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pi}}},tu=eu();function Fs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Fs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fs(e))&&(r&&(r+=" "),r+=t);return r}const nu={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 Fn(e,t,n="Mui"){const r=nu[t];return r?`${n}-${r}`:`${tu.generate(e)}-${t}`}function Bs(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Fn(e,o,n)}),r}function Vs(e,t=""){return e.displayName||e.name||t}function gi(e,t,n){const r=Vs(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function ru(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vs(e,"Component");if(typeof e=="object")switch(e.$$typeof){case cr.ForwardRef:return gi(e,e.render,"ForwardRef");case cr.Memo:return gi(e,e.type,"memo");default:return}}}function Us(e){const{variants:t,...n}=e,r={variants:t,style:ai(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ai(o.style))}),r}const ou=$r();function Zr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function iu(e){return e?(t,n)=>n[e]:null}function su(e,t,n){e.theme=cu(e.theme)?n:e.theme[t]||e.theme}function tr(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>tr(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return zs(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function zs(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(r))continue}else for(const a in s.props)if(e[a]!==s.props[a]&&((o=e.ownerState)==null?void 0:o[a])!==s.props[a])continue e;typeof s.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(s.style(r))):n.push(s.style)}return n}function Js(e={}){const{themeId:t,defaultTheme:n=ou,rootShouldForwardProp:r=Zr,slotShouldForwardProp:o=Zr}=e;function i(a){su(a,t,n)}return(a,l={})=>{Hl(a,k=>k.filter($=>$!==cn));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:x=iu(Gs(u)),...y}=l,f=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=p||!1;let T=Zr;u==="Root"||u==="root"?T=r:u?T=o:uu(a)&&(T=void 0);const E=Wl(a,{shouldForwardProp:T,label:lu(c,u),...y}),A=k=>{if(typeof k=="function"&&k.__emotion_real!==k)return function(L){return tr(L,k)};if(tt(k)){const $=Us(k);return $.variants?function(B){return tr(B,$)}:$.style}return k},C=(...k)=>{const $=[],L=k.map(A),B=[];if($.push(i),c&&x&&B.push(function(I){var Y,Oe;const M=(Oe=(Y=I.theme.components)==null?void 0:Y[c])==null?void 0:Oe.styleOverrides;if(!M)return null;const Q={};for(const ee in M)Q[ee]=tr(I,M[ee]);return x(I,Q)}),c&&!f&&B.push(function(I){var Q,Y;const N=I.theme,M=(Y=(Q=N==null?void 0:N.components)==null?void 0:Q[c])==null?void 0:Y.variants;return M?zs(I,M):null}),v||B.push(cn),Array.isArray(L[0])){const P=L.shift(),I=new Array($.length).fill(""),N=new Array(B.length).fill("");let M;M=[...I,...P,...N],M.raw=[...I,...P.raw,...N],$.unshift(M)}const W=[...$,...L,...B],g=E(...W);return a.muiName&&(g.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=au(c,u,a)),g};return E.withConfig&&(C.withConfig=E.withConfig),C}}function au(e,t,n){return e?`${e}${Pe(t||"")}`:`Styled(${ru(n)})`}function lu(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Gs(t||"Root")}`),n}function cu(e){for(const t in e)return!1;return!0}function uu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gs(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const fu=Js();function fr(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],s=t[o];if(!s)n[o]=i||{};else if(!i)n[o]=s;else{n[o]={...s};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;n[o][l]=fr(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function du(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:fr(t.components[n].defaultProps,r)}function pu({props:e,name:t,defaultTheme:n,themeId:r}){let o=Xc(n);return r&&(o=o[r]||o),du({theme:o,name:t,props:e})}const Ws=typeof window<"u"?F.useLayoutEffect:F.useEffect;function on(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function _o(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),on(e,t,n)}function gu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ot(e){if(e.type)return e;if(e.charAt(0)==="#")return Ot(gu(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
58
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Et(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
59
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Et(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const hu=e=>{const t=Ot(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},En=(e,t)=>{try{return hu(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function jr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Hs(e){e=Ot(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),jr({type:a,values:l})}function go(e){e=Ot(e);let t=e.type==="hsl"||e.type==="hsla"?Ot(Hs(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function hi(e,t){const n=go(e),r=go(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ho(e,t){return e=Ot(e),t=_o(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,jr(e)}function Gn(e,t,n){try{return ho(e,t)}catch{return e}}function Pn(e,t){if(e=Ot(e),t=_o(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return jr(e)}function se(e,t,n){try{return Pn(e,t)}catch{return e}}function $n(e,t){if(e=Ot(e),t=_o(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return jr(e)}function ae(e,t,n){try{return $n(e,t)}catch{return e}}function mu(e,t=.15){return go(e)>.5?Pn(e,t):$n(e,t)}function Wn(e,t,n){try{return mu(e,t)}catch{return e}}function mi(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function nr(e){return e&&e.ownerDocument||document}function yu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function bu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=F.useRef(e!==void 0),[i,s]=F.useState(t),a=o?e:i;if(process.env.NODE_ENV!=="production"){F.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"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(`
60
- `))},[r,n,e]);const{current:c}=F.useRef(t);F.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
61
- `))},[JSON.stringify(t)])}const l=F.useCallback(c=>{o||s(c)},[]);return[a,l]}function Qr(e){const t=F.useRef(e);return Ws(()=>{t.current=e}),F.useRef((...n)=>(0,t.current)(...n)).current}function Ks(...e){return F.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{yu(n,t)})},e)}function yi(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(`
62
- `))}return!1}const xu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Lo(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(s+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[o]=s}return r}function vu(e){return typeof e=="string"}function Su(e,t,n){return e===void 0||vu(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function rr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function bi(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function wu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const x=rt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return x.length>0&&(f.className=x),Object.keys(y).length>0&&(f.style=y),{props:f,internalRef:void 0}}const s=rr({...o,...r}),a=bi(r),l=bi(o),c=t(s),u=rt(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...c,...n,...l,...a};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function Cu(e,t,n){return typeof e=="function"?e(t,n):e}function St(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:Cu(n,r),{props:a,internalRef:l}=wu({...i,externalSlotProps:s}),c=Ks(l,s==null?void 0:s.ref,(d=e.additionalProps)==null?void 0:d.ref);return Su(t,{...a,ref:c},r)}const Tu=F.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const Eu=()=>F.useContext(Tu)??!1,Ou=F.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Ru(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?fr(o.defaultProps,r):!o.styleOverrides&&!o.variants?fr(o,r):r}function Au({props:e,name:t}){const n=F.useContext(Ou);return Ru({props:e,name:t,theme:{components:n}})}const xi={theme:void 0};function ku(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(xi.theme=o.theme,i=Us(e(xi)),t=i,n=o.theme),i}}function Pu(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const vi=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},$u=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}r(e)},ju=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function eo(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return $u(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=ju(a,l);Object.assign(o,{[u]:d}),vi(i,a,`var(${u})`,c),vi(s,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function _u(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=eo(l,t);let p=d;const x={},{[a]:y,...f}=i;if(Object.entries(f||{}).forEach(([A,C])=>{const{vars:k,css:$,varsWithDefaults:L}=eo(C,t);p=$e(p,L),x[A]={css:$,vars:k}}),y){const{css:A,vars:C,varsWithDefaults:k}=eo(y,t);p=$e(p,k),x[a]={css:A,vars:C}}function v(A,C){var $,L;let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),A){if(k==="media")return e.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${((L=($=i[A])==null?void 0:$.palette)==null?void 0:L.mode)||A})`]:{":root":C}};if(k)return e.defaultColorScheme===A?`:root, ${k.replace("%s",String(A))}`:k.replace("%s",String(A))}return":root"}return{vars:p,generateThemeVars:()=>{let A={...c};return Object.entries(x).forEach(([,{vars:C}])=>{A=$e(A,C)}),A},generateStyleSheets:()=>{var B,W;const A=[],C=e.defaultColorScheme||"light";function k(g,P){Object.keys(P).length&&A.push(typeof g=="string"?{[g]:{...P}}:g)}k(n(void 0,{...u}),u);const{[C]:$,...L}=x;if($){const{css:g}=$,P=(W=(B=i[C])==null?void 0:B.palette)==null?void 0:W.mode,I=!r&&P?{colorScheme:P,...g}:{...g};k(n(C,{...I}),I)}return Object.entries(L).forEach(([g,{css:P}])=>{var M,Q;const I=(Q=(M=i[g])==null?void 0:M.palette)==null?void 0:Q.mode,N=!r&&I?{colorScheme:I,...P}:{...P};k(n(g,{...N}),N)}),A}}}function Lu(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const Iu=$r(),Nu=fu("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Mu(e){return pu({props:e,name:"MuiStack",defaultTheme:Iu})}function Du(e,t){const n=F.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(F.cloneElement(t,{key:`separator-${i}`})),r),[])}const Fu=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Bu=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...qe({theme:t},Xr({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Er(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Xr({values:e.direction,base:o}),s=Xr({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const p=c>0?i[u[c-1]]:"column";i[l]=p}}),n=$e(n,qe({theme:t},s,(l,c)=>e.useFlexGap?{gap:It(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Fu(c?i[c]:e.direction)}`]:It(r,l)}}))}return n=ic(t.breakpoints,n),n};function Vu(e={}){const{createStyledComponent:t=Nu,useThemeProps:n=Mu,componentName:r="MuiStack"}=e,o=()=>Lo({root:["root"]},l=>Fn(r,l),{}),i=t(Bu),s=F.forwardRef(function(l,c){const u=n(l),d=Qc(u),{component:p="div",direction:x="column",spacing:y=0,divider:f,children:v,className:T,useFlexGap:E=!1,...A}=d,C={direction:x,spacing:y,useFlexGap:E},k=o();return b.jsx(i,{as:p,ownerState:C,ref:c,className:rt(k.root,T),...A,children:f?Du(v,f):v})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:h.node,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])}),s}const jn={black:"#000",white:"#fff"},Uu={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"},Yt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Xt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Sn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Zt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Qt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},en={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function qs(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:jn.white,default:jn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const zu=qs();function Ys(){return{text:{primary:jn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:jn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Si=Ys();function wi(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=$n(e.main,o):t==="dark"&&(e.dark=Pn(e.main,i)))}function Ju(e="light"){return e==="dark"?{main:Zt[200],light:Zt[50],dark:Zt[400]}:{main:Zt[700],light:Zt[400],dark:Zt[800]}}function Gu(e="light"){return e==="dark"?{main:Yt[200],light:Yt[50],dark:Yt[400]}:{main:Yt[500],light:Yt[300],dark:Yt[700]}}function Wu(e="light"){return e==="dark"?{main:Xt[500],light:Xt[300],dark:Xt[700]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Hu(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[500],dark:Qt[900]}}function Ku(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[800],light:en[500],dark:en[900]}}function qu(e="light"){return e==="dark"?{main:Sn[400],light:Sn[300],dark:Sn[700]}:{main:"#ed6c02",light:Sn[500],dark:Sn[900]}}function Io(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||Ju(t),s=e.secondary||Gu(t),a=e.error||Wu(t),l=e.info||Hu(t),c=e.success||Ku(t),u=e.warning||qu(t);function d(f){const v=hi(f,Si.text.primary)>=n?Si.text.primary:zu.text.primary;if(process.env.NODE_ENV!=="production"){const T=hi(f,v);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${v} on ${f}`,"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(`
63
- `))}return v}const p=({color:f,name:v,mainShade:T=500,lightShade:E=300,darkShade:A=700})=>{if(f={...f},!f.main&&f[T]&&(f.main=f[T]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
64
- The color object needs to have a \`main\` property or a \`${T}\` property.`:Et(11,v?` (${v})`:"",T));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
56
+ `)));const s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}: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(`
57
+ `)),()=>{})}function On(e){return Dr(e,"spacing",8,"spacing")}function Nt(e,t){return typeof t=="string"||t==null?t:e(t)}function uc(e,t){return r=>e.reduce((n,o)=>(n[o]=Nt(t,r),n),{})}function fc(e,t,r,n){if(!t.includes(r))return null;const o=lc(r),i=uc(o,n),a=e[r];return Ye(e,a,i)}function Ma(e,t){const r=On(e.theme);return Object.keys(e).map(n=>fc(e,t,n,r)).reduce(Ar,{})}function de(e){return Ma(e,En)}de.propTypes=process.env.NODE_ENV!=="production"?En.reduce((e,t)=>(e[t]=Pt,e),{}):{};de.filterProps=En;function pe(e){return Ma(e,Cn)}pe.propTypes=process.env.NODE_ENV!=="production"?Cn.reduce((e,t)=>(e[t]=Pt,e),{}):{};pe.filterProps=Cn;process.env.NODE_ENV!=="production"&&cc.reduce((e,t)=>(e[t]=Pt,e),{});function Na(e=8,t=On({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 Rn(...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]?Ar(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 Je(e){return typeof e!="number"?e:`${e}px solid`}function We(e,t){return me({prop:e,themeKey:"borders",transform:t})}const dc=We("border",Je),pc=We("borderTop",Je),gc=We("borderRight",Je),hc=We("borderBottom",Je),mc=We("borderLeft",Je),yc=We("borderColor"),bc=We("borderTopColor"),Sc=We("borderRightColor"),vc=We("borderBottomColor"),xc=We("borderLeftColor"),wc=We("outline",Je),Tc=We("outlineColor"),An=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Nt(t,n)});return Ye(e,e.borderRadius,r)}return null};An.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Pt}:{};An.filterProps=["borderRadius"];Rn(dc,pc,gc,hc,mc,yc,bc,Sc,vc,xc,An,wc,Tc);const kn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dr(e.theme,"spacing",8,"gap"),r=n=>({gap:Nt(t,n)});return Ye(e,e.gap,r)}return null};kn.propTypes=process.env.NODE_ENV!=="production"?{gap:Pt}:{};kn.filterProps=["gap"];const Pn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Nt(t,n)});return Ye(e,e.columnGap,r)}return null};Pn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Pt}:{};Pn.filterProps=["columnGap"];const jn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Nt(t,n)});return Ye(e,e.rowGap,r)}return null};jn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Pt}:{};jn.filterProps=["rowGap"];const Ec=me({prop:"gridColumn"}),Cc=me({prop:"gridRow"}),Oc=me({prop:"gridAutoFlow"}),Rc=me({prop:"gridAutoColumns"}),Ac=me({prop:"gridAutoRows"}),kc=me({prop:"gridTemplateColumns"}),Pc=me({prop:"gridTemplateRows"}),jc=me({prop:"gridTemplateAreas"}),_c=me({prop:"gridArea"});Rn(kn,Pn,jn,Ec,Cc,Oc,Rc,Ac,kc,Pc,jc,_c);function sr(e,t){return t==="grey"?t:e}const $c=me({prop:"color",themeKey:"palette",transform:sr}),Lc=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sr}),Ic=me({prop:"backgroundColor",themeKey:"palette",transform:sr});Rn($c,Lc,Ic);function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const Mc=me({prop:"width",transform:Fe}),_o=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,i,a,s,l;const n=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||wn[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Fe(r)}};return Ye(e,e.maxWidth,t)}return null};_o.filterProps=["maxWidth"];const Nc=me({prop:"minWidth",transform:Fe}),Dc=me({prop:"height",transform:Fe}),Fc=me({prop:"maxHeight",transform:Fe}),Bc=me({prop:"minHeight",transform:Fe});me({prop:"size",cssProperty:"width",transform:Fe});me({prop:"size",cssProperty:"height",transform:Fe});const Vc=me({prop:"boxSizing"});Rn(Mc,_o,Nc,Dc,Fc,Bc,Vc);const Fr={border:{themeKey:"borders",transform:Je},borderTop:{themeKey:"borders",transform:Je},borderRight:{themeKey:"borders",transform:Je},borderBottom:{themeKey:"borders",transform:Je},borderLeft:{themeKey:"borders",transform:Je},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Je},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:An},color:{themeKey:"palette",transform:sr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sr},backgroundColor:{themeKey:"palette",transform:sr},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},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:kn},rowGap:{style:jn},columnGap:{style:Pn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:_o},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},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 Uc(...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 zc(e,t){return typeof e=="function"?e(t):e}function Jc(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=Tn(o,c)||{};return d?d(a):Ye(a,n,b=>{let f=fn(p,u,b);return b===f&&typeof b=="string"&&(f=fn(p,u,`${r}${b==="default"?"":_e(b)}`,b)),l===!1?f:{[l]:f}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const i=o.unstable_sxConfig??Fr;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=La(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(p=>{const S=zc(l[p],o);if(S!=null)if(typeof S=="object")if(i[p])d=Ar(d,e(p,S,o,i));else{const b=Ye({theme:o},S,f=>({[p]:f}));Uc(b,S)?d[p]=t({sx:S,theme:o}):d=Ar(d,b)}else d=Ar(d,e(p,S,o,i))}),Zl(o,Ia(u,d))}return Array.isArray(n)?n.map(a):a(n)}return t}const ur=Jc();ur.filterProps=["sx"];function Gc(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 _n(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,s=Yl(r),l=Na(o);let c=$e({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...tc,...i}},a);return c=ec(c),c.applyStyles=Gc,c=t.reduce((u,d)=>$e(u,d),c),c.unstable_sxConfig={...Fr,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return ur({sx:d,theme:this})},c}function Wc(e){return Object.keys(e).length===0}function Hc(e=null){const t=C.useContext(Rl.ThemeContext);return!t||Wc(t)?e:t}const Kc=_n();function qc(e=Kc){return Hc(e)}const Yc=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??Fr;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Zc(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=Yc(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return rt(s)?{...n,...s}:n}:i={...n,...t},{...o,sx:i}}const pi=e=>e,Xc=()=>{let e=pi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pi}}},Qc=Xc();function Da(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=Da(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function it(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Da(e))&&(n&&(n+=" "),n+=t);return n}const eu={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 Br(e,t,r="Mui"){const n=eu[t];return n?`${r}-${n}`:`${Qc.generate(e)}-${t}`}function Fa(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Br(e,o,r)}),n}function Ba(e,t=""){return e.displayName||e.name||t}function gi(e,t,r){const n=Ba(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function tu(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ba(e,"Component");if(typeof e=="object")switch(e.$$typeof){case un.ForwardRef:return gi(e,e.render,"ForwardRef");case un.Memo:return gi(e,e.type,"memo");default:return}}}function Va(e){const{variants:t,...r}=e,n={variants:t,style:si(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=si(o.style))}),n}const ru=_n();function Qn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function nu(e){return e?(t,r)=>r[e]:null}function ou(e,t,r){e.theme=su(e.theme)?r:e.theme[t]||e.theme}function tn(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>tn(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...i}=r;n=i}return Ua(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function Ua(e,t,r=[]){var o;let n;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(n))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&((o=e.ownerState)==null?void 0:o[s])!==a.props[s])continue e;typeof a.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(a.style(n))):r.push(a.style)}return r}function za(e={}){const{themeId:t,defaultTheme:r=ru,rootShouldForwardProp:n=Qn,slotShouldForwardProp:o=Qn}=e;function i(s){ou(s,t,r)}return(s,l={})=>{Gl(s,P=>P.filter($=>$!==ur));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:S=nu(Ja(u)),...b}=l,f=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=p||!1;let E=Qn;u==="Root"||u==="root"?E=n:u?E=o:lu(s)&&(E=void 0);const O=Jl(s,{shouldForwardProp:E,label:au(c,u),...b}),k=P=>{if(typeof P=="function"&&P.__emotion_real!==P)return function(I){return tn(I,P)};if(rt(P)){const $=Va(P);return $.variants?function(B){return tn(B,$)}:$.style}return P},T=(...P)=>{const $=[],I=P.map(k),B=[];if($.push(i),c&&S&&B.push(function(M){var Y,Ae;const D=(Ae=(Y=M.theme.components)==null?void 0:Y[c])==null?void 0:Ae.styleOverrides;if(!D)return null;const Q={};for(const ee in D)Q[ee]=tn(M,D[ee]);return S(M,Q)}),c&&!f&&B.push(function(M){var Q,Y;const N=M.theme,D=(Y=(Q=N==null?void 0:N.components)==null?void 0:Q[c])==null?void 0:Y.variants;return D?Ua(M,D):null}),v||B.push(ur),Array.isArray(I[0])){const _=I.shift(),M=new Array($.length).fill(""),N=new Array(B.length).fill("");let D;D=[...M,..._,...N],D.raw=[...M,..._.raw,...N],$.unshift(D)}const H=[...$,...I,...B],g=O(...H);return s.muiName&&(g.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=iu(c,u,s)),g};return O.withConfig&&(T.withConfig=O.withConfig),T}}function iu(e,t,r){return e?`${e}${_e(t||"")}`:`Styled(${tu(r)})`}function au(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Ja(t||"Root")}`),r}function su(e){for(const t in e)return!1;return!0}function lu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const cu=za();function dn(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)r[o]=i||{};else if(!i)r[o]=a;else{r[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;r[o][l]=dn(i[l],a[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function uu(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:dn(t.components[r].defaultProps,n)}function fu({props:e,name:t,defaultTheme:r,themeId:n}){let o=qc(r);return n&&(o=o[n]||o),uu({theme:o,name:t,props:e})}const Ga=typeof window<"u"?C.useLayoutEffect:C.useEffect;function ar(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function $o(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}].`),ar(e,t,r)}function du(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 At(e){if(e.type)return e;if(e.charAt(0)==="#")return At(du(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.
58
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Rt(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.
59
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Rt(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const pu=e=>{const t=At(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Or=(e,t)=>{try{return pu(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function $n(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 Wa(e){e=At(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,u=(c+r/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),$n({type:s,values:l})}function go(e){e=At(e);let t=e.type==="hsl"||e.type==="hsla"?At(Wa(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 hi(e,t){const r=go(e),n=go(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ho(e,t){return e=At(e),t=$o(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$n(e)}function Gr(e,t,r){try{return ho(e,t)}catch{return e}}function jr(e,t){if(e=At(e),t=$o(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 $n(e)}function ae(e,t,r){try{return jr(e,t)}catch{return e}}function _r(e,t){if(e=At(e),t=$o(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 $n(e)}function se(e,t,r){try{return _r(e,t)}catch{return e}}function gu(e,t=.15){return go(e)>.5?jr(e,t):_r(e,t)}function Wr(e,t,r){try{return gu(e,t)}catch{return e}}function mi(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function rn(e){return e&&e.ownerDocument||document}function hu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function mu({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=C.useRef(e!==void 0),[i,a]=C.useState(t),s=o?e:i;if(process.env.NODE_ENV!=="production"){C.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} 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(`
60
+ `))},[n,r,e]);const{current:c}=C.useRef(t);C.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
61
+ `))},[JSON.stringify(t)])}const l=C.useCallback(c=>{o||a(c)},[]);return[s,l]}function eo(e){const t=C.useRef(e);return Ga(()=>{t.current=e}),C.useRef((...r)=>(0,t.current)(...r)).current}function Ha(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{hu(r,t)})},e)}function yi(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(`
62
+ `))}return!1}const yu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Lo(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(a+=" "+r[c]))}n[o]=a}return n}function bu(e){return typeof e=="string"}function Su(e,t,r){return e===void 0||bu(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function nn(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 bi(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 vu(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const S=it(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},f={...r,...o,...n};return S.length>0&&(f.className=S),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=nn({...o,...n}),s=bi(n),l=bi(o),c=t(a),u=it(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),d={...c==null?void 0:c.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},p={...c,...r,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function xu(e,t,r){return typeof e=="function"?e(t,r):e}function Tt(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:xu(r,n),{props:s,internalRef:l}=vu({...i,externalSlotProps:a}),c=Ha(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return Su(t,{...s,ref:c},n)}const wu=C.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const Tu=()=>C.useContext(wu)??!1,Eu=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Cu(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?dn(o.defaultProps,n):!o.styleOverrides&&!o.variants?dn(o,n):n}function Ou({props:e,name:t}){const r=C.useContext(Eu);return Cu({props:e,name:t,theme:{components:r}})}const Si={theme:void 0};function Ru(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(Si.theme=o.theme,i=Va(e(Si)),t=i,r=o.theme),i}}function Au(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 vi=(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])})},ku=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}n(e)},Pu=(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 to(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return ku(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,d=Pu(s,l);Object.assign(o,{[u]:d}),vi(i,s,`var(${u})`,c),vi(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function ju(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=to(l,t);let p=d;const S={},{[s]:b,...f}=i;if(Object.entries(f||{}).forEach(([k,T])=>{const{vars:P,css:$,varsWithDefaults:I}=to(T,t);p=$e(p,I),S[k]={css:$,vars:P}}),b){const{css:k,vars:T,varsWithDefaults:P}=to(b,t);p=$e(p,P),S[s]={css:k,vars:T}}function v(k,T){var $,I;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),k){if(P==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((I=($=i[k])==null?void 0:$.palette)==null?void 0:I.mode)||k})`]:{":root":T}};if(P)return e.defaultColorScheme===k?`:root, ${P.replace("%s",String(k))}`:P.replace("%s",String(k))}return":root"}return{vars:p,generateThemeVars:()=>{let k={...c};return Object.entries(S).forEach(([,{vars:T}])=>{k=$e(k,T)}),k},generateStyleSheets:()=>{var B,H;const k=[],T=e.defaultColorScheme||"light";function P(g,_){Object.keys(_).length&&k.push(typeof g=="string"?{[g]:{..._}}:g)}P(r(void 0,{...u}),u);const{[T]:$,...I}=S;if($){const{css:g}=$,_=(H=(B=i[T])==null?void 0:B.palette)==null?void 0:H.mode,M=!n&&_?{colorScheme:_,...g}:{...g};P(r(T,{...M}),M)}return Object.entries(I).forEach(([g,{css:_}])=>{var D,Q;const M=(Q=(D=i[g])==null?void 0:D.palette)==null?void 0:Q.mode,N=!n&&M?{colorScheme:M,..._}:{..._};P(r(g,{...N}),N)}),k}}}function _u(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const $u=_n(),Lu=cu("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Iu(e){return fu({props:e,name:"MuiStack",defaultTheme:$u})}function Mu(e,t){const r=C.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i<r.length-1&&n.push(C.cloneElement(t,{key:`separator-${i}`})),n),[])}const Nu=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Du=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...Ye({theme:t},Xn({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=On(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Xn({values:e.direction,base:o}),a=Xn({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const p=c>0?i[u[c-1]]:"column";i[l]=p}}),r=$e(r,Ye({theme:t},a,(l,c)=>e.useFlexGap?{gap:Nt(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Nu(c?i[c]:e.direction)}`]:Nt(n,l)}}))}return r=nc(t.breakpoints,r),r};function Fu(e={}){const{createStyledComponent:t=Lu,useThemeProps:r=Iu,componentName:n="MuiStack"}=e,o=()=>Lo({root:["root"]},l=>Br(n,l),{}),i=t(Du),a=C.forwardRef(function(l,c){const u=r(l),d=Zc(u),{component:p="div",direction:S="column",spacing:b=0,divider:f,children:v,className:E,useFlexGap:O=!1,...k}=d,T={direction:S,spacing:b,useFlexGap:O},P=o();return m.jsx(i,{as:p,ownerState:T,ref:c,className:it(P.root,E),...k,children:f?Mu(v,f):v})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:h.node,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])}),a}const $r={black:"#000",white:"#fff"},Bu={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"},Xt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Qt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},wr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},er={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},tr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},rr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ka(){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:$r.white,default:$r.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 Vu=Ka();function qa(){return{text:{primary:$r.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:$r.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 xi=qa();function wi(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=_r(e.main,o):t==="dark"&&(e.dark=jr(e.main,i)))}function Uu(e="light"){return e==="dark"?{main:er[200],light:er[50],dark:er[400]}:{main:er[700],light:er[400],dark:er[800]}}function zu(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[500],light:Xt[300],dark:Xt[700]}}function Ju(e="light"){return e==="dark"?{main:Qt[500],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[400],dark:Qt[800]}}function Gu(e="light"){return e==="dark"?{main:tr[400],light:tr[300],dark:tr[700]}:{main:tr[700],light:tr[500],dark:tr[900]}}function Wu(e="light"){return e==="dark"?{main:rr[400],light:rr[300],dark:rr[700]}:{main:rr[800],light:rr[500],dark:rr[900]}}function Hu(e="light"){return e==="dark"?{main:wr[400],light:wr[300],dark:wr[700]}:{main:"#ed6c02",light:wr[500],dark:wr[900]}}function Io(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,i=e.primary||Uu(t),a=e.secondary||zu(t),s=e.error||Ju(t),l=e.info||Gu(t),c=e.success||Wu(t),u=e.warning||Hu(t);function d(f){const v=hi(f,xi.text.primary)>=r?xi.text.primary:Vu.text.primary;if(process.env.NODE_ENV!=="production"){const E=hi(f,v);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${v} on ${f}`,"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(`
63
+ `))}return v}const p=({color:f,name:v,mainShade:E=500,lightShade:O=300,darkShade:k=700})=>{if(f={...f},!f.main&&f[E]&&(f.main=f[E]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
64
+ The color object needs to have a \`main\` property or a \`${E}\` property.`:Rt(11,v?` (${v})`:"",E));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
65
65
  \`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
66
66
 
67
67
  Did you intend to use one of the following approaches?
@@ -74,20 +74,21 @@ const theme1 = createTheme({ palette: {
74
74
 
75
75
  const theme2 = createTheme({ palette: {
76
76
  primary: { main: green[500] },
77
- } });`:Et(12,v?` (${v})`:"",JSON.stringify(f.main)));return wi(f,"light",E,r),wi(f,"dark",A,r),f.contrastText||(f.contrastText=d(f.main)),f};let x;return t==="light"?x=qs():t==="dark"&&(x=Ys()),process.env.NODE_ENV!=="production"&&(x||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),$e({common:{...jn},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Uu,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r,...x},o)}function Yu(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;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 Xu(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Zu(e){return Math.round(e*1e5)/1e5}const Ci={textTransform:"uppercase"},Ti='"Roboto", "Helvetica", "Arial", sans-serif';function Qu(e,t){const{fontFamily:n=Ti,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,x=u||(v=>`${v/l*p}rem`),y=(v,T,E,A,C)=>({fontFamily:n,fontWeight:v,fontSize:x(T),lineHeight:E,...n===Ti?{letterSpacing:`${Zu(A/T)}em`}:{},...C,...c}),f={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,Ci),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,Ci),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $e({htmlFontSize:l,pxToRem:x,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...f},d,{clone:!1})}const ef=.2,tf=.14,nf=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ef})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tf})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${nf})`].join(",")}const rf=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],of={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)"},sf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ei(e){return`${Math.round(e)}ms`}function af(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function lf(e){const t={...of,...e.easing},n={...sf,...e.duration};return{getAutoHeightDuration:af,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=i;if(process.env.NODE_ENV!=="production"){const u=p=>typeof p=="string",d=p=>!Number.isNaN(parseFloat(p));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(s)&&!u(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),u(a)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
78
- `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Ei(s)} ${a} ${typeof l=="string"?l:Ei(l)}`).join(",")},...e,easing:t,duration:n}}const cf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function uf(e){return tt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Xs(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[s,a]=o[i];!uf(a)||s.startsWith("unstable_")?delete r[s]:tt(a)&&(r[s]={...a},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
77
+ } });`:Rt(12,v?` (${v})`:"",JSON.stringify(f.main)));return wi(f,"light",O,n),wi(f,"dark",k,n),f.contrastText||(f.contrastText=d(f.main)),f};let S;return t==="light"?S=Ka():t==="dark"&&(S=qa()),process.env.NODE_ENV!=="production"&&(S||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),$e({common:{...$r},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Bu,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n,...S},o)}function Ku(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 qu(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Yu(e){return Math.round(e*1e5)/1e5}const Ti={textTransform:"uppercase"},Ei='"Roboto", "Helvetica", "Arial", sans-serif';function Zu(e,t){const{fontFamily:r=Ei,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,S=u||(v=>`${v/l*p}rem`),b=(v,E,O,k,T)=>({fontFamily:r,fontWeight:v,fontSize:S(E),lineHeight:O,...r===Ei?{letterSpacing:`${Yu(k/E)}em`}:{},...T,...c}),f={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,Ti),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,Ti),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $e({htmlFontSize:l,pxToRem:S,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...f},d,{clone:!1})}const Xu=.2,Qu=.14,ef=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Xu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Qu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ef})`].join(",")}const tf=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],rf={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)"},nf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ci(e){return`${Math.round(e)}ms`}function of(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function af(e){const t={...rf,...e.easing},r={...nf,...e.duration};return{getAutoHeightDuration:of,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;if(process.env.NODE_ENV!=="production"){const u=p=>typeof p=="string",d=p=>!Number.isNaN(parseFloat(p));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
78
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Ci(a)} ${s} ${typeof l=="string"?l:Ci(l)}`).join(",")},...e,easing:t,duration:r}}const sf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lf(e){return rt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ya(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,s]=o[i];!lf(s)||a.startsWith("unstable_")?delete n[a]:rt(s)&&(n[a]={...s},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
79
79
 
80
80
  const theme = ${JSON.stringify(t,null,2)};
81
81
 
82
82
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
83
83
  theme.transitions = createTransitions(theme.transitions || {});
84
84
 
85
- export default theme;`}function mo(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...c}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Et(20));const u=Io(i),d=$r(e);let p=$e(d,{mixins:Xu(d.breakpoints,r),palette:u,shadows:rf.slice(),typography:Qu(u,a),transitions:lf(s),zIndex:{...cf}});if(p=$e(p,c),p=t.reduce((x,y)=>$e(x,y),p),process.env.NODE_ENV!=="production"){const x=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(f,v)=>{let T;for(T in f){const E=f[T];if(x.includes(T)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const A=Fn("",T);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${A}' syntax:`,JSON.stringify({root:{[`&.${A}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
86
- `))}f[T]={}}}};Object.keys(p.components).forEach(f=>{const v=p.components[f].styleOverrides;v&&f.startsWith("Mui")&&y(v,f)})}return p.unstable_sxConfig={...Dn,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(y){return cn({sx:y,theme:this})},p.toRuntimeSource=Xs,p}function ff(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 df=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ff(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Zs(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Qs(e){return e==="dark"?df:[]}function pf(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Io(t);return{palette:i,opacity:{...Zs(i.mode),...n},overlays:r||Qs(i.mode),...o}}function gf(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const hf=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],mf=e=>(t,n)=>{const r=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 s={};return hf(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function yf(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function w(e,t,n){!e[t]&&n&&(e[t]=n)}function On(e){return typeof e!="string"||!e.startsWith("hsl")?e:Hs(e)}function ut(e,t){`${t}Channel`in e||(e[`${t}Channel`]=En(On(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().
87
- 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 bf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Qe=e=>{try{return e()}catch{}},xf=(e="mui")=>Pu(e);function to(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=pf({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=mo({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Zs(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Qs(o)},s}function vf(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=gf,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),p=xf(i),{[d]:x,light:y,dark:f,...v}=n,T={...v};let E=x;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:Et(21,d));const A=to(T,E,c,d);y&&!T.light&&to(T,y,void 0,"light"),f&&!T.dark&&to(T,f,void 0,"dark");let C={defaultColorScheme:d,...A,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:p,colorSchemes:T,font:{...Yu(A.typography),...A.font},spacing:bf(c.spacing)};Object.keys(C.colorSchemes).forEach(W=>{const g=C.colorSchemes[W].palette,P=I=>{const N=I.split("-"),M=N[1],Q=N[2];return p(I,g[M][Q])};if(g.mode==="light"&&(w(g.common,"background","#fff"),w(g.common,"onBackground","#000")),g.mode==="dark"&&(w(g.common,"background","#000"),w(g.common,"onBackground","#fff")),yf(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){w(g.Alert,"errorColor",se(g.error.light,.6)),w(g.Alert,"infoColor",se(g.info.light,.6)),w(g.Alert,"successColor",se(g.success.light,.6)),w(g.Alert,"warningColor",se(g.warning.light,.6)),w(g.Alert,"errorFilledBg",P("palette-error-main")),w(g.Alert,"infoFilledBg",P("palette-info-main")),w(g.Alert,"successFilledBg",P("palette-success-main")),w(g.Alert,"warningFilledBg",P("palette-warning-main")),w(g.Alert,"errorFilledColor",Qe(()=>g.getContrastText(g.error.main))),w(g.Alert,"infoFilledColor",Qe(()=>g.getContrastText(g.info.main))),w(g.Alert,"successFilledColor",Qe(()=>g.getContrastText(g.success.main))),w(g.Alert,"warningFilledColor",Qe(()=>g.getContrastText(g.warning.main))),w(g.Alert,"errorStandardBg",ae(g.error.light,.9)),w(g.Alert,"infoStandardBg",ae(g.info.light,.9)),w(g.Alert,"successStandardBg",ae(g.success.light,.9)),w(g.Alert,"warningStandardBg",ae(g.warning.light,.9)),w(g.Alert,"errorIconColor",P("palette-error-main")),w(g.Alert,"infoIconColor",P("palette-info-main")),w(g.Alert,"successIconColor",P("palette-success-main")),w(g.Alert,"warningIconColor",P("palette-warning-main")),w(g.AppBar,"defaultBg",P("palette-grey-100")),w(g.Avatar,"defaultBg",P("palette-grey-400")),w(g.Button,"inheritContainedBg",P("palette-grey-300")),w(g.Button,"inheritContainedHoverBg",P("palette-grey-A100")),w(g.Chip,"defaultBorder",P("palette-grey-400")),w(g.Chip,"defaultAvatarColor",P("palette-grey-700")),w(g.Chip,"defaultIconColor",P("palette-grey-700")),w(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),w(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),w(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),w(g.LinearProgress,"primaryBg",ae(g.primary.main,.62)),w(g.LinearProgress,"secondaryBg",ae(g.secondary.main,.62)),w(g.LinearProgress,"errorBg",ae(g.error.main,.62)),w(g.LinearProgress,"infoBg",ae(g.info.main,.62)),w(g.LinearProgress,"successBg",ae(g.success.main,.62)),w(g.LinearProgress,"warningBg",ae(g.warning.main,.62)),w(g.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),w(g.Slider,"primaryTrack",ae(g.primary.main,.62)),w(g.Slider,"secondaryTrack",ae(g.secondary.main,.62)),w(g.Slider,"errorTrack",ae(g.error.main,.62)),w(g.Slider,"infoTrack",ae(g.info.main,.62)),w(g.Slider,"successTrack",ae(g.success.main,.62)),w(g.Slider,"warningTrack",ae(g.warning.main,.62));const I=Wn(g.background.default,.8);w(g.SnackbarContent,"bg",I),w(g.SnackbarContent,"color",Qe(()=>g.getContrastText(I))),w(g.SpeedDialAction,"fabHoverBg",Wn(g.background.paper,.15)),w(g.StepConnector,"border",P("palette-grey-400")),w(g.StepContent,"border",P("palette-grey-400")),w(g.Switch,"defaultColor",P("palette-common-white")),w(g.Switch,"defaultDisabledColor",P("palette-grey-100")),w(g.Switch,"primaryDisabledColor",ae(g.primary.main,.62)),w(g.Switch,"secondaryDisabledColor",ae(g.secondary.main,.62)),w(g.Switch,"errorDisabledColor",ae(g.error.main,.62)),w(g.Switch,"infoDisabledColor",ae(g.info.main,.62)),w(g.Switch,"successDisabledColor",ae(g.success.main,.62)),w(g.Switch,"warningDisabledColor",ae(g.warning.main,.62)),w(g.TableCell,"border",ae(Gn(g.divider,1),.88)),w(g.Tooltip,"bg",Gn(g.grey[700],.92))}if(g.mode==="dark"){w(g.Alert,"errorColor",ae(g.error.light,.6)),w(g.Alert,"infoColor",ae(g.info.light,.6)),w(g.Alert,"successColor",ae(g.success.light,.6)),w(g.Alert,"warningColor",ae(g.warning.light,.6)),w(g.Alert,"errorFilledBg",P("palette-error-dark")),w(g.Alert,"infoFilledBg",P("palette-info-dark")),w(g.Alert,"successFilledBg",P("palette-success-dark")),w(g.Alert,"warningFilledBg",P("palette-warning-dark")),w(g.Alert,"errorFilledColor",Qe(()=>g.getContrastText(g.error.dark))),w(g.Alert,"infoFilledColor",Qe(()=>g.getContrastText(g.info.dark))),w(g.Alert,"successFilledColor",Qe(()=>g.getContrastText(g.success.dark))),w(g.Alert,"warningFilledColor",Qe(()=>g.getContrastText(g.warning.dark))),w(g.Alert,"errorStandardBg",se(g.error.light,.9)),w(g.Alert,"infoStandardBg",se(g.info.light,.9)),w(g.Alert,"successStandardBg",se(g.success.light,.9)),w(g.Alert,"warningStandardBg",se(g.warning.light,.9)),w(g.Alert,"errorIconColor",P("palette-error-main")),w(g.Alert,"infoIconColor",P("palette-info-main")),w(g.Alert,"successIconColor",P("palette-success-main")),w(g.Alert,"warningIconColor",P("palette-warning-main")),w(g.AppBar,"defaultBg",P("palette-grey-900")),w(g.AppBar,"darkBg",P("palette-background-paper")),w(g.AppBar,"darkColor",P("palette-text-primary")),w(g.Avatar,"defaultBg",P("palette-grey-600")),w(g.Button,"inheritContainedBg",P("palette-grey-800")),w(g.Button,"inheritContainedHoverBg",P("palette-grey-700")),w(g.Chip,"defaultBorder",P("palette-grey-700")),w(g.Chip,"defaultAvatarColor",P("palette-grey-300")),w(g.Chip,"defaultIconColor",P("palette-grey-300")),w(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),w(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),w(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),w(g.LinearProgress,"primaryBg",se(g.primary.main,.5)),w(g.LinearProgress,"secondaryBg",se(g.secondary.main,.5)),w(g.LinearProgress,"errorBg",se(g.error.main,.5)),w(g.LinearProgress,"infoBg",se(g.info.main,.5)),w(g.LinearProgress,"successBg",se(g.success.main,.5)),w(g.LinearProgress,"warningBg",se(g.warning.main,.5)),w(g.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),w(g.Slider,"primaryTrack",se(g.primary.main,.5)),w(g.Slider,"secondaryTrack",se(g.secondary.main,.5)),w(g.Slider,"errorTrack",se(g.error.main,.5)),w(g.Slider,"infoTrack",se(g.info.main,.5)),w(g.Slider,"successTrack",se(g.success.main,.5)),w(g.Slider,"warningTrack",se(g.warning.main,.5));const I=Wn(g.background.default,.98);w(g.SnackbarContent,"bg",I),w(g.SnackbarContent,"color",Qe(()=>g.getContrastText(I))),w(g.SpeedDialAction,"fabHoverBg",Wn(g.background.paper,.15)),w(g.StepConnector,"border",P("palette-grey-600")),w(g.StepContent,"border",P("palette-grey-600")),w(g.Switch,"defaultColor",P("palette-grey-300")),w(g.Switch,"defaultDisabledColor",P("palette-grey-600")),w(g.Switch,"primaryDisabledColor",se(g.primary.main,.55)),w(g.Switch,"secondaryDisabledColor",se(g.secondary.main,.55)),w(g.Switch,"errorDisabledColor",se(g.error.main,.55)),w(g.Switch,"infoDisabledColor",se(g.info.main,.55)),w(g.Switch,"successDisabledColor",se(g.success.main,.55)),w(g.Switch,"warningDisabledColor",se(g.warning.main,.55)),w(g.TableCell,"border",se(Gn(g.divider,1),.68)),w(g.Tooltip,"bg",Gn(g.grey[700],.92))}ut(g.background,"default"),ut(g.background,"paper"),ut(g.common,"background"),ut(g.common,"onBackground"),ut(g,"divider"),Object.keys(g).forEach(I=>{const N=g[I];I!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&w(g[I],"mainChannel",En(On(N.main))),N.light&&w(g[I],"lightChannel",En(On(N.light))),N.dark&&w(g[I],"darkChannel",En(On(N.dark))),N.contrastText&&w(g[I],"contrastTextChannel",En(On(N.contrastText))),I==="text"&&(ut(g[I],"primary"),ut(g[I],"secondary")),I==="action"&&(N.active&&ut(g[I],"active"),N.selected&&ut(g[I],"selected")))})}),C=t.reduce((W,g)=>$e(W,g),C);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:mf(C)},{vars:$,generateThemeVars:L,generateStyleSheets:B}=_u(C,k);return C.vars=$,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([W,g])=>{C[W]=g}),C.generateThemeVars=L,C.generateStyleSheets=B,C.generateSpacing=function(){return Ds(c.spacing,Er(this))},C.getColorSchemeSelector=Lu(a),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Dn,...c==null?void 0:c.unstable_sxConfig},C.unstable_sx=function(g){return cn({sx:g,theme:this})},C.toRuntimeSource=Xs,C}function Oi(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Io({...n===!0?{}:n.palette,mode:t})})}function ea(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=e,a=i||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return mo(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=mo({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Oi(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Oi(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),vf({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Sf=ea(),wf="$$material";function No(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cf=e=>No(e)&&e!=="classes",pt=Js({themeId:wf,defaultTheme:Sf,rootShouldForwardProp:Cf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function Mo(e){return Au(e)}const an=Vu({createStyledComponent:pt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Mo({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(an.propTypes={children:h.node,component:h.elementType,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),useFlexGap:h.bool});const J=e=>typeof e=="string",wn=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},Ri=e=>e==null?"":""+e,Tf=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Ef=/###/g,Ai=e=>e&&e.indexOf("###")>-1?e.replace(Ef,"."):e,ki=e=>!e||J(e),An=(e,t,n)=>{const r=J(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(ki(e))return{};const i=Ai(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return ki(e)?{}:{obj:e,k:Ai(r[o])}},Pi=(e,t,n)=>{const{obj:r,k:o}=An(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=An(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=An(e,s,Object),a!=null&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Of=(e,t,n,r)=>{const{obj:o,k:i}=An(e,t,Object);o[i]=o[i]||[],o[i].push(n)},dr=(e,t)=>{const{obj:n,k:r}=An(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Rf=(e,t,n)=>{const r=dr(e,n);return r!==void 0?r:dr(t,n)},ta=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?J(e[r])||e[r]instanceof String||J(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ta(e[r],t[r],n):e[r]=t[r]);return e},tn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Af={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const kf=e=>J(e)?e.replace(/[&<>"'\/]/g,t=>Af[t]):e;class Pf{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const $f=[" ",",","?","!",";"],jf=new Pf(20),_f=(e,t,n)=>{t=t||"",n=n||"";const r=$f.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=jf.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},yo=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let s,a="";for(let l=i;l<r.length;++l)if(l!==i&&(a+=n),a+=r[l],s=o[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;i+=l-i+1;break}o=s}return o},pr=e=>e==null?void 0:e.replace("_","-"),Lf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class gr{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Lf,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(J(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new gr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new gr(this.logger,t)}}var nt=new gr;class _r{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[t,...r])})}}class $i extends _r{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){var c,u;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):J(r)&&i?a.push(...r.split(i)):a.push(r)));const l=dr(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!s||!J(r)?l:yo((u=(c=this.data)==null?void 0:c[t])==null?void 0:u[n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),Pi(this.data,a,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(J(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let l=dr(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?ta(l,r,i):l={...l,...r},Pi(this.data,a,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var na={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{var s;t=((s=this.processors[i])==null?void 0:s.process(t,n,r,o))??t}),t}};const ji={},_i=e=>!J(e)&&typeof e!="boolean"&&typeof e!="number";class hr extends _r{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Tf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return(r==null?void 0:r.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!_f(t,r,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:J(i)?[i]:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:J(i)?[i]:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(u){const P=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${P}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${P}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(t,n);let p=d==null?void 0:d.res;const x=(d==null?void 0:d.usedKey)||s,y=(d==null?void 0:d.exactUsedKey)||s,f=["[object Number]","[object Function]","[object RegExp]"],v=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,E=n.count!==void 0&&!J(n.count),A=hr.hasDefaultValue(n),C=E?this.pluralResolver.getSuffix(c,n.count,n):"",k=n.ordinal&&E?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",$=E&&!n.ordinal&&n.count===0,L=$&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${k}`]||n.defaultValue;let B=p;T&&!p&&A&&(B=L);const W=_i(B),g=Object.prototype.toString.apply(B);if(T&&B&&W&&f.indexOf(g)<0&&!(J(v)&&Array.isArray(B))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,B,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=P,d.usedParams=this.getUsedParamsDetails(n),d):P}if(i){const P=Array.isArray(B),I=P?[]:{},N=P?y:x;for(const M in B)if(Object.prototype.hasOwnProperty.call(B,M)){const Q=`${N}${i}${M}`;A&&!p?I[M]=this.translate(Q,{...n,defaultValue:_i(L)?L[M]:void 0,joinArrays:!1,ns:a}):I[M]=this.translate(Q,{...n,joinArrays:!1,ns:a}),I[M]===Q&&(I[M]=B[M])}p=I}}else if(T&&J(v)&&Array.isArray(p))p=p.join(v),p&&(p=this.extendTranslation(p,t,n,r));else{let P=!1,I=!1;!this.isValidLookup(p)&&A&&(P=!0,p=L),this.isValidLookup(p)||(I=!0,p=s);const M=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:p,Q=A&&L!==p&&this.options.updateMissing;if(I||P||Q){if(this.logger.log(Q?"updateKey":"missingKey",c,l,s,Q?L:p),i){const le=this.resolve(s,{...n,keySeparator:!1});le&&le.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const Oe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Oe&&Oe[0])for(let le=0;le<Oe.length;le++)Y.push(Oe[le]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(n.lng||this.language):Y.push(n.lng||this.language);const ee=(le,Ce,X)=>{var st;const Ne=A&&X!==p?X:M;this.options.missingKeyHandler?this.options.missingKeyHandler(le,l,Ce,Ne,Q,n):(st=this.backendConnector)!=null&&st.saveMissing&&this.backendConnector.saveMissing(le,l,Ce,Ne,Q,n),this.emit("missingKey",le,l,Ce,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?Y.forEach(le=>{const Ce=this.pluralResolver.getSuffixes(le,n);$&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Ce.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ce.push(`${this.options.pluralSeparator}zero`),Ce.forEach(X=>{ee([le],s+X,n[`defaultValue${X}`]||L)})}):ee(Y,s,L))}p=this.extendTranslation(p,t,n,d,r),I&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${s}`),(I||P)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,P?p:void 0))}return o?(d.res=p,d.usedParams=this.getUsedParamsDetails(n),d):p}extendTranslation(t,n,r,o,i){var c,u;var s=this;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=J(t)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(d){const y=t.match(this.interpolator.nestingRegexp);p=y&&y.length}let x=r.replace&&!J(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),t=this.interpolator.interpolate(t,x,r.lng||this.language||o.usedLng,r),d){const y=t.match(this.interpolator.nestingRegexp),f=y&&y.length;p<f&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var y=arguments.length,f=new Array(y),v=0;v<y;v++)f[v]=arguments[v];return(i==null?void 0:i[0])===f[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):s.translate(...f,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=J(a)?[a]:a;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=na.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,s,a;return J(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const p=n.count!==void 0&&!J(n.count),x=p&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(J(n.context)||typeof n.context=="number")&&n.context!=="",f=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(v=>{var T,E;this.isValidLookup(r)||(a=v,!ji[`${f[0]}-${v}`]&&((T=this.utils)!=null&&T.hasLoadedNamespace)&&!((E=this.utils)!=null&&E.hasLoadedNamespace(a))&&(ji[`${f[0]}-${v}`]=!0,this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(A=>{var $;if(this.isValidLookup(r))return;s=A;const C=[u];if(($=this.i18nFormat)!=null&&$.addLookupKeys)this.i18nFormat.addLookupKeys(C,u,A,v,n);else{let L;p&&(L=this.pluralResolver.getSuffix(A,n.count,n));const B=`${this.options.pluralSeparator}zero`,W=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(C.push(u+L),n.ordinal&&L.indexOf(W)===0&&C.push(u+L.replace(W,this.options.pluralSeparator)),x&&C.push(u+B)),y){const g=`${u}${this.options.contextSeparator}${n.context}`;C.push(g),p&&(C.push(g+L),n.ordinal&&L.indexOf(W)===0&&C.push(g+L.replace(W,this.options.pluralSeparator)),x&&C.push(g+B))}}let k;for(;k=C.pop();)this.isValidLookup(r)||(i=k,r=this.getResource(A,v,k,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){var i;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!J(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class Li{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nt.create("languageUtils")}getScriptPartFromCode(t){if(t=pr(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=pr(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(J(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),J(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return J(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):J(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}const Ii={zero:0,one:1,two:2,few:3,many:4,other:5},Ni={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class If{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=nt.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=pr(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Ni;if(!t.match(/-|_/))return Ni;const l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,n)}return this.pluralRulesCache[i]=s,s}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,i)=>Ii[o]-Ii[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Mi=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Rf(e,t,n);return!i&&o&&J(n)&&(i=yo(e,n,r),i===void 0&&(i=yo(t,n,r))),i},no=e=>e.replace(/\$/g,"$$$$");class Nf{constructor(){var n;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:p,nestingPrefixEscaped:x,nestingSuffix:y,nestingSuffixEscaped:f,nestingOptionsSeparator:v,maxReplaces:T,alwaysFormat:E}=t.interpolation;this.escape=n!==void 0?n:kf,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?tn(i):s||"{{",this.suffix=a?tn(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?tn(p):x||tn("$t("),this.nestingSuffix=y?tn(y):f||tn(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=T||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){var x;let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=y=>{if(y.indexOf(this.formatSeparator)<0){const E=Mi(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...o,...n,interpolationkey:y}):E}const f=y.split(this.formatSeparator),v=f.shift().trim(),T=f.join(this.formatSeparator).trim();return this.format(Mi(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),T,r,{...o,...n,interpolationkey:v})};this.resetRegExp();const u=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((x=o==null?void 0:o.interpolation)==null?void 0:x.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>no(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?no(this.escape(y)):no(y)}].forEach(y=>{for(a=0;i=y.regex.exec(t);){const f=i[1].trim();if(s=c(f),s===void 0)if(typeof u=="function"){const T=u(t,i,o);s=J(T)?T:""}else if(o&&Object.prototype.hasOwnProperty.call(o,f))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${t}`),s="";else!J(s)&&!this.useRawValueToEscape&&(s=Ri(s));const v=y.safeValue(s);if(t=t.replace(i[0],v),d?(y.regex.lastIndex+=s.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let p=`{${d[1]}`;l=d[0],p=this.interpolate(p,s);const x=p.match(/'/g),y=p.match(/"/g);(((x==null?void 0:x.length)??0)%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),c&&(s={...c,...s})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,f),`${l}${u}${p}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&!J(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),l=u,c=!0}if(i=n(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&!J(i))return i;J(i)||(i=Ri(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Mf=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},nn=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(pr(r),o),t[s]=a),a(n)}};class Df{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("formatter"),this.options=t,this.formats={number:nn((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:nn((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:nn((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:nn((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:nn((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=nn(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{var d;const{formatName:c,formatOptions:u}=Mf(l);if(this.formats[c]){let p=a;try{const x=((d=o==null?void 0:o.formatParams)==null?void 0:d[o.interpolationkey])||{},y=x.locale||x.lng||o.locale||o.lng||r;p=this.formats[c](a,y,{...u,...o,...x})}catch(x){this.logger.warn(x)}return p}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const Ff=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Bf extends _r{constructor(t,n,r){var i,s;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=nt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(s=(i=this.backend)==null?void 0:i.init)==null||s.call(i,r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},a={},l={};return t.forEach(c=>{let u=!0;n.forEach(d=>{const p=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,u=!1,s[p]===void 0&&(s[p]=!0),i[p]===void 0&&(i[p]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{Of(l.loaded,[i],s),Ff(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,s)},i);return}s(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();J(t)&&(t=this.languageUtils.toResolveHierarchy(t)),J(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,o,i){var l,c,u,d,p;let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((d=(u=this.services)==null?void 0:u.utils)!=null&&d.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((p=this.backend)!=null&&p.create){const x={...s,isUpdate:i},y=this.backend.create.bind(this.backend);if(y.length<6)try{let f;y.length===5?f=y(t,n,r,o,x):f=y(t,n,r,o),f&&typeof f.then=="function"?f.then(v=>a(null,v)).catch(a):a(null,f)}catch(f){a(f)}else y(t,n,r,o,a,x)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const Di=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),J(e[1])&&(t.defaultValue=e[1]),J(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Fi=e=>{var t,n;return J(e.ns)&&(e.ns=[e.ns]),J(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),J(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Hn=()=>{},Vf=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class _n extends _r{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Fi(t),this.services={},this.logger=nt,this.modules={external:[]},Vf(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(J(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=Di();this.options={...o,...this.options,...Fi(n)},this.options.interpolation={...o.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?nt.init(i(this.modules.logger),this.options):nt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Df;const d=new Li(this.options);this.store=new $i(this.options.resources,this.options);const p=this.services;p.logger=nt,p.resourceStore=this.store,p.languageUtils=d,p.pluralResolver=new If(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(p.formatter=i(u),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new Nf(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new Bf(i(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(x){for(var y=arguments.length,f=new Array(y>1?y-1:0),v=1;v<y;v++)f[v-1]=arguments[v];t.emit(x,...f)}),this.modules.languageDetector&&(p.languageDetector=i(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=i(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new hr(this.services,this.options),this.translator.on("*",function(x){for(var y=arguments.length,f=new Array(y>1?y-1:0),v=1;v<y;v++)f[v-1]=arguments[v];t.emit(x,...f)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Hn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=wn(),c=()=>{const u=(d,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),r(d,p)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t){var i,s;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hn;const o=J(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&a.indexOf(d)<0&&a.push(d)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),(s=(i=this.options.preload)==null?void 0:i.forEach)==null||s.call(i,c=>l(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const o=wn();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Hn),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&na.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=wn();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{var u,d;!t&&!l&&this.services.languageDetector&&(l=[]);const c=J(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),(d=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||d.call(u,c)),this.loadResources(c,p=>{s(p,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,n,r){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=o.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const p=o.options.keySeparator||".";let x;return l.keyPrefix&&Array.isArray(s)?x=s.map(y=>`${l.keyPrefix}${p}${y}`):x=l.keyPrefix?`${l.keyPrefix}${p}${s}`:s,o.t(x,l)};return J(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){var o;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(o=this.translator)==null?void 0:o.translate(...n)}exists(){var o;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(o=this.translator)==null?void 0:o.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=wn();return this.options.ns?(J(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=wn();J(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){var o,i;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((i=this.services)==null?void 0:i.languageUtils)||new Li(Di());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new _n(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hn;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new _n(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const a=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},Object.keys(l[c]).reduce((u,d)=>(u[d]={...l[c][d]},u),{})),{});i.store=new $i(a,o),i.services.resourceStore=i.store}return i.translator=new hr(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ae=_n.createInstance();Ae.createInstance=_n.createInstance;Ae.createInstance;Ae.dir;Ae.init;Ae.loadResources;Ae.reloadResources;Ae.use;Ae.changeLanguage;Ae.getFixedT;Ae.t;Ae.exists;Ae.setDefaultNamespace;Ae.hasLoadedNamespace;Ae.loadNamespaces;Ae.loadLanguages;const Uf={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base (Roboter)","Jogging.Orientation.tool":"Tool"},zf={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},ra=Ae.createInstance();ra.use(Rl).init({supportedLngs:["en","de"],resources:{en:{translations:zf},de:{translations:Uf}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function Bn(e){return n=>b.jsx(Jf,{children:b.jsx(e,{...n})})}const Jf=({children:e})=>b.jsx(un.I18nextProvider,{i18n:ra,children:e}),Gf=({title:e,titleId:t,...n},r)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.createElement("g",{id:"JogMinus"},F.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),Wf=H.forwardRef(Gf),Hf=({title:e,titleId:t,...n},r)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.createElement("g",{id:"JogPlus"},F.createElement("g",{id:"Plus"},F.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),F.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),F.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),Kf=H.forwardRef(Hf);function Lr(e){H.useEffect(e,[])}function oa(e){Lr(()=>ln.autorun(e))}function ia(e,t,n){Lr(()=>ln.reaction(e,t,n))}function fn(e){return Lr(()=>{let t;function n(){e(),t=requestAnimationFrame(n)}return t=requestAnimationFrame(n),()=>{cancelAnimationFrame(t)}})}const bo=Bn(Ie.observer(({colors:e,label:t,getDisplayedValue:n,startJogging:r,stopJogging:o,disabled:i,activeJoggingDirection:s,...a})=>{var A,C,k,$,L,B,W;fn(()=>{const g=n(),P=p.current;P&&(P.textContent=g)});const l=j.useTheme(),[c,u]=H.useState(null);H.useEffect(()=>{i&&E()},[i]);const d=s||c,p=H.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const x=d?(A=e.buttonBackgroundColor)==null?void 0:A.pressed:e.borderColor,y={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},f={...y,backgroundColor:(C=e.buttonBackgroundColor)==null?void 0:C.default,":hover":{backgroundColor:(k=e.buttonBackgroundColor)==null?void 0:k.hovered},":active":{backgroundColor:($=e.buttonBackgroundColor)==null?void 0:$.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(L=e.buttonBackgroundColor)==null?void 0:L.disabled,"svg path":{fill:l.palette.action.disabled}}},v={...y,backgroundColor:(B=e.buttonBackgroundColor)==null?void 0:B.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(W=e.buttonBackgroundColor)==null?void 0:W.pressed,"svg path":{fill:l.palette.action.disabled}}};function T(g,P){i||g.button===0&&(u(P),r(P))}function E(){u(null),o()}return b.jsxs(an,{height:"64px",direction:"row",justifyContent:"center",...a,children:[b.jsx(j.IconButton,{disabled:i,disableRipple:!0,onPointerDown:g=>T(g,"-"),onPointerUp:E,onPointerOut:E,size:"large",sx:{...d==="-"?v:f,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${x??"#fff"}`,borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:b.jsx(Wf,{})}),b.jsxs(an,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:[b.jsx(an,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...i?{color:l.palette.action.disabled}:{}},...i?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),b.jsx(j.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:p,children:n()})]}),b.jsx(j.IconButton,{disableRipple:!0,disabled:i,onPointerDown:g=>T(g,"+"),onPointerUp:E,onPointerOut:E,size:"large",sx:{...d==="+"?v:f,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${x??"#fff"}`,borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:b.jsx(Kf,{})})]})})),Bt=ku;function qf(e){return Fn("MuiSvgIcon",e)}Bs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Yf=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(n)}`]};return Lo(o,qf,r)},Xf=pt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Pe(n.color)}`],t[`fontSize${Pe(n.fontSize)}`]]}})(Bt(({theme:e})=>{var t,n,r,o,i,s,a,l,c,u,d,p,x,y;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:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,f])=>f&&f.main).map(([f])=>{var v,T;return{props:{color:f},style:{color:(T=(v=(e.vars??e).palette)==null?void 0:v[f])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(p=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(y=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),mr=F.forwardRef(function(t,n){const r=Mo({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...x}=r,y=F.isValidElement(o)&&o.type==="svg",f={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:y},v={};u||(v.viewBox=p);const T=Yf(f);return b.jsxs(Xf,{as:a,className:rt(T.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...x,...y&&o.props,ownerState:f,children:[y?o.props.children:o,d?b.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(mr.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});mr.muiName="SvgIcon";function sa(e,t){function n(r,o){return b.jsx(mr,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=mr.muiName,F.memo(F.forwardRef(n))}const Zf=sa(b.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Qf=sa(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Nt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var aa=typeof global=="object"&&global&&global.Object===Object&&global,ed=typeof self=="object"&&self&&self.Object===Object&&self,it=aa||ed||Function("return this")(),ro=function(){return it.Date.now()},td=/\s/;function nd(e){for(var t=e.length;t--&&td.test(e.charAt(t)););return t}var rd=/^\s+/;function od(e){return e&&e.slice(0,nd(e)+1).replace(rd,"")}var Rt=it.Symbol,la=Object.prototype,id=la.hasOwnProperty,sd=la.toString,Cn=Rt?Rt.toStringTag:void 0;function ad(e){var t=id.call(e,Cn),n=e[Cn];try{e[Cn]=void 0;var r=!0}catch{}var o=sd.call(e);return r&&(t?e[Cn]=n:delete e[Cn]),o}var ld=Object.prototype,cd=ld.toString;function ud(e){return cd.call(e)}var fd="[object Null]",dd="[object Undefined]",Bi=Rt?Rt.toStringTag:void 0;function Vt(e){return e==null?e===void 0?dd:fd:Bi&&Bi in Object(e)?ad(e):ud(e)}function Mt(e){return e!=null&&typeof e=="object"}var pd="[object Symbol]";function Ir(e){return typeof e=="symbol"||Mt(e)&&Vt(e)==pd}var Vi=NaN,gd=/^[-+]0x[0-9a-f]+$/i,hd=/^0b[01]+$/i,md=/^0o[0-7]+$/i,yd=parseInt;function Ui(e){if(typeof e=="number")return e;if(Ir(e))return Vi;if(Nt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Nt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=od(e);var n=hd.test(e);return n||md.test(e)?yd(e.slice(2),n?2:8):gd.test(e)?Vi:+e}var bd="Expected a function",xd=Math.max,vd=Math.min;function Sd(e,t,n){var r,o,i,s,a,l,c=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(bd);t=Ui(t)||0,Nt(n)&&(u=!!n.leading,d="maxWait"in n,i=d?xd(Ui(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function x($){var L=r,B=o;return r=o=void 0,c=$,s=e.apply(B,L),s}function y($){return c=$,a=setTimeout(T,t),u?x($):s}function f($){var L=$-l,B=$-c,W=t-L;return d?vd(W,i-B):W}function v($){var L=$-l,B=$-c;return l===void 0||L>=t||L<0||d&&B>=i}function T(){var $=ro();if(v($))return E($);a=setTimeout(T,f($))}function E($){return a=void 0,p&&r?x($):(r=o=void 0,s)}function A(){a!==void 0&&clearTimeout(a),c=0,r=l=o=a=void 0}function C(){return a===void 0?s:E(ro())}function k(){var $=ro(),L=v($);if(r=arguments,o=this,l=$,L){if(a===void 0)return y(l);if(d)return clearTimeout(a),a=setTimeout(T,t),x(l)}return a===void 0&&(a=setTimeout(T,t)),s}return k.cancel=A,k.flush=C,k}var wd="Expected a function";function Cd(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(wd);return Nt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Sd(e,t,{leading:r,maxWait:t,trailing:o})}const ca=Bn(Ie.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:n,upperLimitDegs:r,getValueDegs:o,disabled:i,...s})=>{var A,C,k,$,L,B,W;const{t:a}=un.useTranslation(),[l,c]=H.useState(),u=j.useTheme(),d={background:(A=u.palette.backgroundPaperElevation)==null?void 0:A[4],color:(C=u.palette.backgroundPaperElevation)==null?void 0:C[11]},p=Ie.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}})),x=Cd(()=>{c(o())},50);fn(x);function y(g){g.button===0&&p.startJogging("-")}function f(g){g.button===0&&p.startJogging("+")}function v(g){p.stopJogging()}function T(g){p.stopJogging()}function E(g,P=1){if(g===void 0||isNaN(g))return"";const I=a("General.degree.variable",{amount:g.toFixed(P)});return g>0&&P===0?`+${I}`:I}return b.jsxs(an,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(k=u.palette.backgroundPaperElevation)==null?void 0:k[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:($=u.palette.backgroundPaperElevation)==null?void 0:$[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(L=u.palette.backgroundPaperElevation)==null?void 0:L[9]},"&:active":{...d}}},children:[b.jsx(j.IconButton,{onPointerDown:y,onPointerUp:v,onPointerOut:T,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...p.activeJoggingDir==="-"?d:{}},children:b.jsx(Zf,{sx:{pointerEvents:"none"}})}),b.jsxs(an,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(B=u.palette.backgroundPaperElevation)==null?void 0:B[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[b.jsx(j.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:E(l)}),b.jsx(j.Slider,{disabled:!0,"aria-label":"Joint position",min:n,max:r,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:i?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:i?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(W=u.palette.backgroundPaperElevation)==null?void 0:W[5],opacity:1}},marks:n!==void 0&&r!==void 0&&[{value:n,label:E(n,0)},{value:r,label:E(r,0)}]})]}),b.jsx(j.IconButton,{onPointerDown:f,onPointerUp:v,onPointerOut:T,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...p.activeJoggingDir==="+"?d:{}},children:b.jsx(Qf,{sx:{pointerEvents:"none"}})})]})}));function ua(e,t){return function(){return e.apply(t,arguments)}}const{toString:Td}=Object.prototype,{getPrototypeOf:Do}=Object,Nr=(e=>t=>{const n=Td.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ye=e=>(e=e.toLowerCase(),t=>Nr(t)===e),Mr=e=>t=>typeof t===e,{isArray:dn}=Array,Ln=Mr("undefined");function Ed(e){return e!==null&&!Ln(e)&&e.constructor!==null&&!Ln(e.constructor)&&Fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fa=Ye("ArrayBuffer");function Od(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fa(e.buffer),t}const Rd=Mr("string"),Fe=Mr("function"),da=Mr("number"),Dr=e=>e!==null&&typeof e=="object",Ad=e=>e===!0||e===!1,or=e=>{if(Nr(e)!=="object")return!1;const t=Do(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kd=Ye("Date"),Pd=Ye("File"),$d=Ye("Blob"),jd=Ye("FileList"),_d=e=>Dr(e)&&Fe(e.pipe),Ld=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Fe(e.append)&&((t=Nr(e))==="formdata"||t==="object"&&Fe(e.toString)&&e.toString()==="[object FormData]"))},Id=Ye("URLSearchParams"),[Nd,Md,Dd,Fd]=["ReadableStream","Request","Response","Headers"].map(Ye),Bd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function pa(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const _t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ga=e=>!Ln(e)&&e!==_t;function xo(){const{caseless:e}=ga(this)&&this||{},t={},n=(r,o)=>{const i=e&&pa(t,o)||o;or(t[i])&&or(r)?t[i]=xo(t[i],r):or(r)?t[i]=xo({},r):dn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Vn(arguments[r],n);return t}const Vd=(e,t,n,{allOwnKeys:r}={})=>(Vn(t,(o,i)=>{n&&Fe(o)?e[i]=ua(o,n):e[i]=o},{allOwnKeys:r}),e),Ud=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zd=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jd=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Do(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Gd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Wd=e=>{if(!e)return null;if(dn(e))return e;let t=e.length;if(!da(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Do(Uint8Array)),Kd=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},qd=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yd=Ye("HTMLFormElement"),Xd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),zi=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zd=Ye("RegExp"),ha=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vn(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Qd=e=>{ha(e,(t,n)=>{if(Fe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Fe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ep=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return dn(e)?r(e):r(String(e).split(t)),n},tp=()=>{},np=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,oo="abcdefghijklmnopqrstuvwxyz",Ji="0123456789",ma={DIGIT:Ji,ALPHA:oo,ALPHA_DIGIT:oo+oo.toUpperCase()+Ji},rp=(e=16,t=ma.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function op(e){return!!(e&&Fe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ip=e=>{const t=new Array(10),n=(r,o)=>{if(Dr(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=dn(r)?[]:{};return Vn(r,(s,a)=>{const l=n(s,o+1);!Ln(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},sp=Ye("AsyncFunction"),ap=e=>e&&(Dr(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),ya=((e,t)=>e?setImmediate:t?((n,r)=>(_t.addEventListener("message",({source:o,data:i})=>{o===_t&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),_t.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Fe(_t.postMessage)),lp=typeof queueMicrotask<"u"?queueMicrotask.bind(_t):typeof process<"u"&&process.nextTick||ya,S={isArray:dn,isArrayBuffer:fa,isBuffer:Ed,isFormData:Ld,isArrayBufferView:Od,isString:Rd,isNumber:da,isBoolean:Ad,isObject:Dr,isPlainObject:or,isReadableStream:Nd,isRequest:Md,isResponse:Dd,isHeaders:Fd,isUndefined:Ln,isDate:kd,isFile:Pd,isBlob:$d,isRegExp:Zd,isFunction:Fe,isStream:_d,isURLSearchParams:Id,isTypedArray:Hd,isFileList:jd,forEach:Vn,merge:xo,extend:Vd,trim:Bd,stripBOM:Ud,inherits:zd,toFlatObject:Jd,kindOf:Nr,kindOfTest:Ye,endsWith:Gd,toArray:Wd,forEachEntry:Kd,matchAll:qd,isHTMLForm:Yd,hasOwnProperty:zi,hasOwnProp:zi,reduceDescriptors:ha,freezeMethods:Qd,toObjectSet:ep,toCamelCase:Xd,noop:tp,toFiniteNumber:np,findKey:pa,global:_t,isContextDefined:ga,ALPHABET:ma,generateString:rp,isSpecCompliantForm:op,toJSONObject:ip,isAsyncFn:sp,isThenable:ap,setImmediate:ya,asap:lp};function G(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}S.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.status}}});const ba=G.prototype,xa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xa[e]={value:e}});Object.defineProperties(G,xa);Object.defineProperty(ba,"isAxiosError",{value:!0});G.from=(e,t,n,r,o,i)=>{const s=Object.create(ba);return S.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),G.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const cp=null;function vo(e){return S.isPlainObject(e)||S.isArray(e)}function va(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Gi(e,t,n){return e?e.concat(t).map(function(o,i){return o=va(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function up(e){return S.isArray(e)&&!e.some(vo)}const fp=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Fr(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!S.isUndefined(v[f])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(S.isDate(y))return y.toISOString();if(!l&&S.isBlob(y))throw new G("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(y)||S.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,f,v){let T=y;if(y&&!v&&typeof y=="object"){if(S.endsWith(f,"{}"))f=r?f:f.slice(0,-2),y=JSON.stringify(y);else if(S.isArray(y)&&up(y)||(S.isFileList(y)||S.endsWith(f,"[]"))&&(T=S.toArray(y)))return f=va(f),T.forEach(function(A,C){!(S.isUndefined(A)||A===null)&&t.append(s===!0?Gi([f],C,i):s===null?f:f+"[]",c(A))}),!1}return vo(y)?!0:(t.append(Gi(v,f,i),c(y)),!1)}const d=[],p=Object.assign(fp,{defaultVisitor:u,convertValue:c,isVisitable:vo});function x(y,f){if(!S.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(y),S.forEach(y,function(T,E){(!(S.isUndefined(T)||T===null)&&o.call(t,T,S.isString(E)?E.trim():E,f,p))===!0&&x(T,f?f.concat(E):[E])}),d.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Wi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Fo(e,t){this._pairs=[],e&&Fr(e,this,t)}const Sa=Fo.prototype;Sa.append=function(t,n){this._pairs.push([t,n])};Sa.toString=function(t){const n=t?function(r){return t.call(this,r,Wi)}:Wi;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function dp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wa(e,t,n){if(!t)return e;const r=n&&n.encode||dp;S.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=S.isURLSearchParams(t)?t.toString():new Fo(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Hi{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ca={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pp=typeof URLSearchParams<"u"?URLSearchParams:Fo,gp=typeof FormData<"u"?FormData:null,hp=typeof Blob<"u"?Blob:null,mp={isBrowser:!0,classes:{URLSearchParams:pp,FormData:gp,Blob:hp},protocols:["http","https","file","blob","url","data"]},Bo=typeof window<"u"&&typeof document<"u",So=typeof navigator=="object"&&navigator||void 0,yp=Bo&&(!So||["ReactNative","NativeScript","NS"].indexOf(So.product)<0),bp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xp=Bo&&window.location.href||"http://localhost",vp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bo,hasStandardBrowserEnv:yp,hasStandardBrowserWebWorkerEnv:bp,navigator:So,origin:xp},Symbol.toStringTag,{value:"Module"})),Re={...vp,...mp};function Sp(e,t){return Fr(e,new Re.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Re.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function wp(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cp(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Ta(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&S.isArray(o)?o.length:s,l?(S.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!S.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&S.isArray(o[s])&&(o[s]=Cp(o[s])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,o)=>{t(wp(r),o,n,0)}),n}return null}function Tp(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Un={transitional:Ca,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(Ta(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Sp(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Fr(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Tp(t)):t}],transformResponse:[function(t){const n=this.transitional||Un.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?G.from(a,G.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Re.classes.FormData,Blob:Re.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Un.headers[e]={}});const Ep=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Op=e=>{const t={};let n,r,o;return e&&e.split(`
88
- `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Ep[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ki=Symbol("internals");function Tn(e){return e&&String(e).trim().toLowerCase()}function ir(e){return e===!1||e==null?e:S.isArray(e)?e.map(ir):String(e)}function Rp(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ap=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function io(e,t,n,r,o){if(S.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function kp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Pp(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Le=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Tn(l);if(!u)throw new Error("header name must be a non-empty string");const d=S.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=ir(a))}const s=(a,l)=>S.forEach(a,(c,u)=>i(c,u,l));if(S.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(S.isString(t)&&(t=t.trim())&&!Ap(t))s(Op(t),n);else if(S.isHeaders(t))for(const[a,l]of t.entries())i(l,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Tn(t),t){const r=S.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Rp(o);if(S.isFunction(n))return n.call(this,o,r);if(S.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tn(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||io(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Tn(s),s){const a=S.findKey(r,s);a&&(!n||io(r,r[a],a,n))&&(delete r[a],o=!0)}}return S.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||io(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return S.forEach(this,(o,i)=>{const s=S.findKey(r,i);if(s){n[s]=ir(o),delete n[i];return}const a=t?kp(i):String(i).trim();a!==i&&delete n[i],n[a]=ir(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
89
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ki]=this[Ki]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Tn(s);r[a]||(Pp(o,s),r[a]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}};Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Le.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Le);function so(e,t){const n=this||Un,r=t||n,o=Le.from(r.headers);let i=r.data;return S.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ea(e){return!!(e&&e.__CANCEL__)}function pn(e,t,n){G.call(this,e??"canceled",G.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(pn,G,{__CANCEL__:!0});function Oa(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function $p(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jp(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,p=0;for(;d!==o;)p+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const x=u&&c-u;return x?Math.round(p*1e3/x):void 0}}function _p(e,t){let n=0,r=1e3/t,o,i;const s=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-d)))},()=>o&&s(o)]}const yr=(e,t,n=3)=>{let r=0;const o=jp(50,250);return _p(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},qi=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Yi=e=>(...t)=>S.asap(()=>e(...t)),Lp=Re.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Re.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Re.origin),Re.navigator&&/(msie|trident)/i.test(Re.navigator.userAgent)):()=>!0,Ip=Re.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),S.isString(r)&&s.push("path="+r),S.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Np(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ra(e,t){return e&&!Np(t)?Mp(e,t):t}const Xi=e=>e instanceof Le?{...e}:e;function Dt(e,t){t=t||{};const n={};function r(c,u,d,p){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:p},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function o(c,u,d,p){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c,d,p)}else return r(c,u,d,p)}function i(c,u){if(!S.isUndefined(u))return r(void 0,u)}function s(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>o(Xi(c),Xi(u),d,!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,p=d(e[u],t[u],u);S.isUndefined(p)&&d!==a||(n[u]=p)}),n}const Aa=e=>{const t=Dt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Le.from(s),t.url=wa(Ra(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(S.isFormData(n)){if(Re.hasStandardBrowserEnv||Re.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Re.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&Lp(t.url))){const c=o&&i&&Ip.read(i);c&&s.set(o,c)}return t},Dp=typeof XMLHttpRequest<"u",Fp=Dp&&function(e){return new Promise(function(n,r){const o=Aa(e);let i=o.data;const s=Le.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,p,x,y;function f(){x&&x(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function T(){if(!v)return;const A=Le.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:A,config:e,request:v};Oa(function(L){n(L),f()},function(L){r(L),f()},k),v=null}"onloadend"in v?v.onloadend=T:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(T)},v.onabort=function(){v&&(r(new G("Request aborted",G.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new G("Network Error",G.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Ca;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new G(C,k.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&S.forEach(s.toJSON(),function(C,k){v.setRequestHeader(k,C)}),S.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([p,y]=yr(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([d,x]=yr(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(u=A=>{v&&(r(!A||A.type?new pn(null,e,v):A),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const E=$p(o.url);if(E&&Re.protocols.indexOf(E)===-1){r(new G("Unsupported protocol "+E+":",G.ERR_BAD_REQUEST,e));return}v.send(i||null)})},Bp=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof G?u:new pn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new G(`timeout ${t} of ms exceeded`,G.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>S.asap(a),l}},Vp=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Up=async function*(e,t){for await(const n of zp(e))yield*Vp(n,t)},zp=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Zi=(e,t,n,r)=>{const o=Up(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let p=i+=d;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Br=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ka=Br&&typeof ReadableStream=="function",Jp=Br&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pa=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gp=ka&&Pa(()=>{let e=!1;const t=new Request(Re.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Qi=64*1024,wo=ka&&Pa(()=>S.isReadableStream(new Response("").body)),br={stream:wo&&(e=>e.body)};Br&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!br[t]&&(br[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,r)})})})(new Response);const Wp=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(Re.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Jp(e)).byteLength},Hp=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??Wp(t)},Kp=Br&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Aa(e);c=c?(c+"").toLowerCase():"text";let x=Bp([o,i&&i.toAbortSignal()],s),y;const f=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let v;try{if(l&&Gp&&n!=="get"&&n!=="head"&&(v=await Hp(u,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(S.isFormData(r)&&($=k.headers.get("content-type"))&&u.setContentType($),k.body){const[L,B]=qi(v,yr(Yi(l)));r=Zi(k.body,Qi,L,B)}}S.isString(d)||(d=d?"include":"omit");const T="credentials"in Request.prototype;y=new Request(t,{...p,signal:x,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:T?d:void 0});let E=await fetch(y);const A=wo&&(c==="stream"||c==="response");if(wo&&(a||A&&f)){const k={};["status","statusText","headers"].forEach(W=>{k[W]=E[W]});const $=S.toFiniteNumber(E.headers.get("content-length")),[L,B]=a&&qi($,yr(Yi(a),!0))||[];E=new Response(Zi(E.body,Qi,L,()=>{B&&B(),f&&f()}),k)}c=c||"text";let C=await br[S.findKey(br,c)||"text"](E,e);return!A&&f&&f(),await new Promise((k,$)=>{Oa(k,$,{data:C,headers:Le.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:y})})}catch(T){throw f&&f(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new G("Network Error",G.ERR_NETWORK,e,y),{cause:T.cause||T}):G.from(T,T&&T.code,e,y)}}),Co={http:cp,xhr:Fp,fetch:Kp};S.forEach(Co,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const es=e=>`- ${e}`,qp=e=>S.isFunction(e)||e===null||e===!1,$a={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!qp(n)&&(r=Co[(s=String(n)).toLowerCase()],r===void 0))throw new G(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
90
- `+i.map(es).join(`
91
- `):" "+es(i[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Co};function ao(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pn(null,e)}function ts(e){return ao(e),e.headers=Le.from(e.headers),e.data=so.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$a.getAdapter(e.adapter||Un.adapter)(e).then(function(r){return ao(e),r.data=so.call(e,e.transformResponse,r),r.headers=Le.from(r.headers),r},function(r){return Ea(r)||(ao(e),r&&r.response&&(r.response.data=so.call(e,e.transformResponse,r.response),r.response.headers=Le.from(r.response.headers))),Promise.reject(r)})}const ja="1.7.9",Vr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ns={};Vr.transitional=function(t,n,r){function o(i,s){return"[Axios v"+ja+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new G(o(s," has been removed"+(n?" in "+n:"")),G.ERR_DEPRECATED);return n&&!ns[s]&&(ns[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};Vr.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Yp(e,t,n){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new G("option "+i+" must be "+l,G.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}}const sr={assertOptions:Yp,validators:Vr},et=sr.validators;let Lt=class{constructor(t){this.defaults=t,this.interceptors={request:new Hi,response:new Hi}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
92
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Dt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&sr.assertOptions(r,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean)},!1),o!=null&&(S.isFunction(o)?n.paramsSerializer={serialize:o}:sr.assertOptions(o,{encode:et.function,serialize:et.function},!0)),sr.assertOptions(n,{baseUrl:et.spelling("baseURL"),withXsrfToken:et.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&S.merge(i.common,i[n.method]);i&&S.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Le.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(l=l&&f.synchronous,a.unshift(f.fulfilled,f.rejected))});const c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,d=0,p;if(!l){const y=[ts.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),p=y.length,u=Promise.resolve(n);d<p;)u=u.then(y[d++],y[d++]);return u}p=a.length;let x=n;for(d=0;d<p;){const y=a[d++],f=a[d++];try{x=y(x)}catch(v){f.call(this,v);break}}try{u=ts.call(this,x)}catch(y){return Promise.reject(y)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Dt(this.defaults,t);const n=Ra(t.baseURL,t.url);return wa(n,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){Lt.prototype[t]=function(n,r){return this.request(Dt(r||{},{method:t,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Dt(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Lt.prototype[t]=n(),Lt.prototype[t+"Form"]=n(!0)});let Xp=class _a{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new pn(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new _a(function(o){t=o}),cancel:t}}};function Zp(e){return function(n){return e.apply(null,n)}}function Qp(e){return S.isObject(e)&&e.isAxiosError===!0}const To={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(To).forEach(([e,t])=>{To[t]=e});function La(e){const t=new Lt(e),n=ua(Lt.prototype.request,t);return S.extend(n,Lt.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return La(Dt(e,o))},n}const ve=La(Un);ve.Axios=Lt;ve.CanceledError=pn;ve.CancelToken=Xp;ve.isCancel=Ea;ve.VERSION=ja;ve.toFormData=Fr;ve.AxiosError=G;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=Zp;ve.isAxiosError=Qp;ve.mergeConfig=Dt;ve.AxiosHeaders=Le;ve.formToJSON=e=>Ta(S.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=$a.getAdapter;ve.HttpStatusCode=To;ve.default=ve;const{Axios:Ob,AxiosError:rs,CanceledError:Rb,isCancel:Ab,CancelToken:kb,VERSION:Pb,all:$b,Cancel:jb,isAxiosError:_b,spread:Lb,toFormData:Ib,AxiosHeaders:Nb,HttpStatusCode:Mb,formToJSON:Db,getAdapter:Fb,mergeConfig:Bb}=ve;function eg(e){try{return JSON.stringify(e)}catch{return}}function tg(e){var t,n,r,o;return e instanceof rs&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof rs&&e.response?`${(t=e.response)==null?void 0:t.status} ${(n=e.response)==null?void 0:n.statusText} from ${(r=e.response)==null?void 0:r.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${eg(e)||e}`}const Vo=e=>{const t=e.softTimeout||3e3,[n,r]=H.useState(!1),o=j.useTheme();return H.useEffect(()=>{const i=setTimeout(()=>{r(!0)},t);return()=>clearTimeout(i)}),b.jsx(j.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?b.jsx(Ia,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx(j.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx(j.Stack,{sx:{visibility:n?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},Ia=e=>{const t=tg(e.error),n=e.error instanceof Error?e.error.stack:null,r=j.useTheme();return b.jsxs(j.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:r.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${$o.lowerFirst(j.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),n&&b.jsx("pre",{children:n})]})},ng=({title:e,titleId:t,...n},r)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),rg=H.forwardRef(ng),og=({title:e,titleId:t,...n},r)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),ig=H.forwardRef(og),sg=({title:e,titleId:t,...n},r)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),ag=H.forwardRef(sg),lg=({title:e,titleId:t,...n},r)=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),cg=H.forwardRef(lg);function ug(){this.__data__=[],this.size=0}function Na(e,t){return e===t||e!==e&&t!==t}function Ur(e,t){for(var n=e.length;n--;)if(Na(e[n][0],t))return n;return-1}var fg=Array.prototype,dg=fg.splice;function pg(e){var t=this.__data__,n=Ur(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():dg.call(t,n,1),--this.size,!0}function gg(e){var t=this.__data__,n=Ur(t,e);return n<0?void 0:t[n][1]}function hg(e){return Ur(this.__data__,e)>-1}function mg(e,t){var n=this.__data__,r=Ur(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=ug;gt.prototype.delete=pg;gt.prototype.get=gg;gt.prototype.has=hg;gt.prototype.set=mg;function yg(){this.__data__=new gt,this.size=0}function bg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function xg(e){return this.__data__.get(e)}function vg(e){return this.__data__.has(e)}var Sg="[object AsyncFunction]",wg="[object Function]",Cg="[object GeneratorFunction]",Tg="[object Proxy]";function Ma(e){if(!Nt(e))return!1;var t=Vt(e);return t==wg||t==Cg||t==Sg||t==Tg}var lo=it["__core-js_shared__"],os=function(){var e=/[^.]+$/.exec(lo&&lo.keys&&lo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Eg(e){return!!os&&os in e}var Og=Function.prototype,Rg=Og.toString;function Ut(e){if(e!=null){try{return Rg.call(e)}catch{}try{return e+""}catch{}}return""}var Ag=/[\\^$.*+?()[\]{}|]/g,kg=/^\[object .+?Constructor\]$/,Pg=Function.prototype,$g=Object.prototype,jg=Pg.toString,_g=$g.hasOwnProperty,Lg=RegExp("^"+jg.call(_g).replace(Ag,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ig(e){if(!Nt(e)||Eg(e))return!1;var t=Ma(e)?Lg:kg;return t.test(Ut(e))}function Ng(e,t){return e==null?void 0:e[t]}function zt(e,t){var n=Ng(e,t);return Ig(n)?n:void 0}var In=zt(it,"Map"),Nn=zt(Object,"create");function Mg(){this.__data__=Nn?Nn(null):{},this.size=0}function Dg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fg="__lodash_hash_undefined__",Bg=Object.prototype,Vg=Bg.hasOwnProperty;function Ug(e){var t=this.__data__;if(Nn){var n=t[e];return n===Fg?void 0:n}return Vg.call(t,e)?t[e]:void 0}var zg=Object.prototype,Jg=zg.hasOwnProperty;function Gg(e){var t=this.__data__;return Nn?t[e]!==void 0:Jg.call(t,e)}var Wg="__lodash_hash_undefined__";function Hg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nn&&t===void 0?Wg:t,this}function Ft(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ft.prototype.clear=Mg;Ft.prototype.delete=Dg;Ft.prototype.get=Ug;Ft.prototype.has=Gg;Ft.prototype.set=Hg;function Kg(){this.size=0,this.__data__={hash:new Ft,map:new(In||gt),string:new Ft}}function qg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zr(e,t){var n=e.__data__;return qg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Yg(e){var t=zr(this,e).delete(e);return this.size-=t?1:0,t}function Xg(e){return zr(this,e).get(e)}function Zg(e){return zr(this,e).has(e)}function Qg(e,t){var n=zr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ht(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ht.prototype.clear=Kg;ht.prototype.delete=Yg;ht.prototype.get=Xg;ht.prototype.has=Zg;ht.prototype.set=Qg;var eh=200;function th(e,t){var n=this.__data__;if(n instanceof gt){var r=n.__data__;if(!In||r.length<eh-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ht(r)}return n.set(e,t),this.size=n.size,this}function dt(e){var t=this.__data__=new gt(e);this.size=t.size}dt.prototype.clear=yg;dt.prototype.delete=bg;dt.prototype.get=xg;dt.prototype.has=vg;dt.prototype.set=th;var nh="__lodash_hash_undefined__";function rh(e){return this.__data__.set(e,nh),this}function oh(e){return this.__data__.has(e)}function xr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ht;++t<n;)this.add(e[t])}xr.prototype.add=xr.prototype.push=rh;xr.prototype.has=oh;function ih(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function sh(e,t){return e.has(t)}var ah=1,lh=2;function Da(e,t,n,r,o,i){var s=n&ah,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,x=n&lh?new xr:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var y=e[d],f=t[d];if(r)var v=s?r(f,y,d,t,e,i):r(y,f,d,e,t,i);if(v!==void 0){if(v)continue;p=!1;break}if(x){if(!ih(t,function(T,E){if(!sh(x,E)&&(y===T||o(y,T,n,r,i)))return x.push(E)})){p=!1;break}}else if(!(y===f||o(y,f,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var is=it.Uint8Array;function ch(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function uh(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var fh=1,dh=2,ph="[object Boolean]",gh="[object Date]",hh="[object Error]",mh="[object Map]",yh="[object Number]",bh="[object RegExp]",xh="[object Set]",vh="[object String]",Sh="[object Symbol]",wh="[object ArrayBuffer]",Ch="[object DataView]",ss=Rt?Rt.prototype:void 0,co=ss?ss.valueOf:void 0;function Th(e,t,n,r,o,i,s){switch(n){case Ch:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wh:return!(e.byteLength!=t.byteLength||!i(new is(e),new is(t)));case ph:case gh:case yh:return Na(+e,+t);case hh:return e.name==t.name&&e.message==t.message;case bh:case vh:return e==t+"";case mh:var a=ch;case xh:var l=r&fh;if(a||(a=uh),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=dh,s.set(e,t);var u=Da(a(e),a(t),r,o,i,s);return s.delete(e),u;case Sh:if(co)return co.call(e)==co.call(t)}return!1}function Eh(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var ot=Array.isArray;function Oh(e,t,n){var r=t(e);return ot(e)?r:Eh(r,n(e))}function Rh(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Ah(){return[]}var kh=Object.prototype,Ph=kh.propertyIsEnumerable,as=Object.getOwnPropertySymbols,$h=as?function(e){return e==null?[]:(e=Object(e),Rh(as(e),function(t){return Ph.call(e,t)}))}:Ah;function jh(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var _h="[object Arguments]";function ls(e){return Mt(e)&&Vt(e)==_h}var Fa=Object.prototype,Lh=Fa.hasOwnProperty,Ih=Fa.propertyIsEnumerable,Ba=ls(function(){return arguments}())?ls:function(e){return Mt(e)&&Lh.call(e,"callee")&&!Ih.call(e,"callee")};function Nh(){return!1}var Va=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cs=Va&&typeof module=="object"&&module&&!module.nodeType&&module,Mh=cs&&cs.exports===Va,us=Mh?it.Buffer:void 0,Dh=us?us.isBuffer:void 0,Eo=Dh||Nh,Fh=9007199254740991,Bh=/^(?:0|[1-9]\d*)$/;function Ua(e,t){var n=typeof e;return t=t??Fh,!!t&&(n=="number"||n!="symbol"&&Bh.test(e))&&e>-1&&e%1==0&&e<t}var Vh=9007199254740991;function Uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Vh}var Uh="[object Arguments]",zh="[object Array]",Jh="[object Boolean]",Gh="[object Date]",Wh="[object Error]",Hh="[object Function]",Kh="[object Map]",qh="[object Number]",Yh="[object Object]",Xh="[object RegExp]",Zh="[object Set]",Qh="[object String]",em="[object WeakMap]",tm="[object ArrayBuffer]",nm="[object DataView]",rm="[object Float32Array]",om="[object Float64Array]",im="[object Int8Array]",sm="[object Int16Array]",am="[object Int32Array]",lm="[object Uint8Array]",cm="[object Uint8ClampedArray]",um="[object Uint16Array]",fm="[object Uint32Array]",ce={};ce[rm]=ce[om]=ce[im]=ce[sm]=ce[am]=ce[lm]=ce[cm]=ce[um]=ce[fm]=!0;ce[Uh]=ce[zh]=ce[tm]=ce[Jh]=ce[nm]=ce[Gh]=ce[Wh]=ce[Hh]=ce[Kh]=ce[qh]=ce[Yh]=ce[Xh]=ce[Zh]=ce[Qh]=ce[em]=!1;function dm(e){return Mt(e)&&Uo(e.length)&&!!ce[Vt(e)]}function pm(e){return function(t){return e(t)}}var za=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kn=za&&typeof module=="object"&&module&&!module.nodeType&&module,gm=kn&&kn.exports===za,uo=gm&&aa.process,fs=function(){try{var e=kn&&kn.require&&kn.require("util").types;return e||uo&&uo.binding&&uo.binding("util")}catch{}}(),ds=fs&&fs.isTypedArray,Ja=ds?pm(ds):dm,hm=Object.prototype,mm=hm.hasOwnProperty;function ym(e,t){var n=ot(e),r=!n&&Ba(e),o=!n&&!r&&Eo(e),i=!n&&!r&&!o&&Ja(e),s=n||r||o||i,a=s?jh(e.length,String):[],l=a.length;for(var c in e)mm.call(e,c)&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ua(c,l)))&&a.push(c);return a}var bm=Object.prototype;function xm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bm;return e===n}function vm(e,t){return function(n){return e(t(n))}}var Sm=vm(Object.keys,Object),wm=Object.prototype,Cm=wm.hasOwnProperty;function Tm(e){if(!xm(e))return Sm(e);var t=[];for(var n in Object(e))Cm.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ga(e){return e!=null&&Uo(e.length)&&!Ma(e)}function zo(e){return Ga(e)?ym(e):Tm(e)}function ps(e){return Oh(e,zo,$h)}var Em=1,Om=Object.prototype,Rm=Om.hasOwnProperty;function Am(e,t,n,r,o,i){var s=n&Em,a=ps(e),l=a.length,c=ps(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var p=a[d];if(!(s?p in t:Rm.call(t,p)))return!1}var x=i.get(e),y=i.get(t);if(x&&y)return x==t&&y==e;var f=!0;i.set(e,t),i.set(t,e);for(var v=s;++d<l;){p=a[d];var T=e[p],E=t[p];if(r)var A=s?r(E,T,p,t,e,i):r(T,E,p,e,t,i);if(!(A===void 0?T===E||o(T,E,n,r,i):A)){f=!1;break}v||(v=p=="constructor")}if(f&&!v){var C=e.constructor,k=t.constructor;C!=k&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof k=="function"&&k instanceof k)&&(f=!1)}return i.delete(e),i.delete(t),f}var Oo=zt(it,"DataView"),Ro=zt(it,"Promise"),Ao=zt(it,"Set"),ko=zt(it,"WeakMap"),gs="[object Map]",km="[object Object]",hs="[object Promise]",ms="[object Set]",ys="[object WeakMap]",bs="[object DataView]",Pm=Ut(Oo),$m=Ut(In),jm=Ut(Ro),_m=Ut(Ao),Lm=Ut(ko),wt=Vt;(Oo&&wt(new Oo(new ArrayBuffer(1)))!=bs||In&&wt(new In)!=gs||Ro&&wt(Ro.resolve())!=hs||Ao&&wt(new Ao)!=ms||ko&&wt(new ko)!=ys)&&(wt=function(e){var t=Vt(e),n=t==km?e.constructor:void 0,r=n?Ut(n):"";if(r)switch(r){case Pm:return bs;case $m:return gs;case jm:return hs;case _m:return ms;case Lm:return ys}return t});var Im=1,xs="[object Arguments]",vs="[object Array]",Kn="[object Object]",Nm=Object.prototype,Ss=Nm.hasOwnProperty;function Mm(e,t,n,r,o,i){var s=ot(e),a=ot(t),l=s?vs:wt(e),c=a?vs:wt(t);l=l==xs?Kn:l,c=c==xs?Kn:c;var u=l==Kn,d=c==Kn,p=l==c;if(p&&Eo(e)){if(!Eo(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new dt),s||Ja(e)?Da(e,t,n,r,o,i):Th(e,t,l,n,r,o,i);if(!(n&Im)){var x=u&&Ss.call(e,"__wrapped__"),y=d&&Ss.call(t,"__wrapped__");if(x||y){var f=x?e.value():e,v=y?t.value():t;return i||(i=new dt),o(f,v,n,r,i)}}return p?(i||(i=new dt),Am(e,t,n,r,o,i)):!1}function Jr(e,t,n,r,o){return e===t?!0:e==null||t==null||!Mt(e)&&!Mt(t)?e!==e&&t!==t:Mm(e,t,n,r,Jr,o)}function Dm(e,t){return Jr(e,t)}const Wa=({store:e})=>{const{t}=un.useTranslation(),[n,r]=H.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=H.useRef(n);fn(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;Dm(o.current,s)||(o.current=s,r(s))});const i=[];for(const[s,a]of n.entries())a&&i.push(s);return b.jsx(j.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",minHeight:"1.5rem",visibility:i.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(s=>s+1).join(", ")})})},Fm=j.styled(j.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function qn({labelValue:e,...t}){return b.jsxs(Fm,{fullWidth:!0,variant:"filled",children:[b.jsx(j.InputLabel,{id:t.labelId,children:e}),b.jsx(j.Select,{...t})]})}var ws=function(){try{var e=zt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Bm(e,t,n){t=="__proto__"&&ws?ws(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Vm(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function Um(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var l=s[++o];if(n(i[l],l,i)===!1)break}return t}}var zm=Um();function Jm(e,t){return e&&zm(e,t,zo)}function Gm(e,t){return function(n,r){if(n==null)return n;if(!Ga(n))return e(n,r);for(var o=n.length,i=-1,s=Object(n);++i<o&&r(s[i],i,s)!==!1;);return n}}var Wm=Gm(Jm);function Hm(e,t,n,r){return Wm(e,function(o,i,s){t(r,o,n(o),s)}),r}var Km=1,qm=2;function Ym(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var a=s[0],l=e[a],c=s[1];if(s[2]){if(l===void 0&&!(a in e))return!1}else{var u=new dt,d;if(!(d===void 0?Jr(c,l,Km|qm,r,u):d))return!1}}return!0}function Ha(e){return e===e&&!Nt(e)}function Xm(e){for(var t=zo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ha(o)]}return t}function Ka(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Zm(e){var t=Xm(e);return t.length==1&&t[0][2]?Ka(t[0][0],t[0][1]):function(n){return n===e||Ym(n,e,t)}}var Qm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ey=/^\w*$/;function Jo(e,t){if(ot(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ir(e)?!0:ey.test(e)||!Qm.test(e)||t!=null&&e in Object(t)}var ty="Expected a function";function Go(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ty);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Go.Cache||ht),n}Go.Cache=ht;var ny=500;function ry(e){var t=Go(e,function(r){return n.size===ny&&n.clear(),r}),n=t.cache;return t}var oy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iy=/\\(\\)?/g,sy=ry(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(oy,function(n,r,o,i){t.push(o?i.replace(iy,"$1"):r||n)}),t});function ay(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Cs=Rt?Rt.prototype:void 0,Ts=Cs?Cs.toString:void 0;function qa(e){if(typeof e=="string")return e;if(ot(e))return ay(e,qa)+"";if(Ir(e))return Ts?Ts.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ya(e){return e==null?"":qa(e)}function Xa(e,t){return ot(e)?e:Jo(e,t)?[e]:sy(Ya(e))}function Gr(e){if(typeof e=="string"||Ir(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Za(e,t){t=Xa(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Gr(t[n++])];return n&&n==r?e:void 0}function ly(e,t,n){var r=e==null?void 0:Za(e,t);return r===void 0?n:r}function cy(e,t){return e!=null&&t in Object(e)}function uy(e,t,n){t=Xa(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=Gr(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Uo(o)&&Ua(s,o)&&(ot(e)||Ba(e)))}function fy(e,t){return e!=null&&uy(e,t,cy)}var dy=1,py=2;function gy(e,t){return Jo(e)&&Ha(t)?Ka(Gr(e),t):function(n){var r=ly(n,e);return r===void 0&&r===t?fy(n,e):Jr(t,r,dy|py)}}function hy(e){return e}function my(e){return function(t){return t==null?void 0:t[e]}}function yy(e){return function(t){return Za(t,e)}}function by(e){return Jo(e)?my(Gr(e)):yy(e)}function xy(e){return typeof e=="function"?e:e==null?hy:typeof e=="object"?ot(e)?gy(e[0],e[1]):Zm(e):by(e)}function vy(e,t){return function(n,r){var o=ot(n)?Vm:Hm,i={};return o(n,e,xy(r),i)}}var Yn=vy(function(e,t,n){Bm(e,n,t)}),Sy=0;function wy(e){var t=++Sy;return Ya(e)+t}const Po=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],Cy=[{id:"continuous"},...Po],Ty=["coordsys","tool"];class Wr{constructor(t,n,r,o){var i,s;this.jogger=t,this.motionGroupSpec=n,this.coordSystems=r,this.tcps=o,this.selectedTabId="cartesian",this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const a of r)if(a.coordinate_system===""){a.coordinate_system="world";break}this.selectedCoordSystemId=((i=r[0])==null?void 0:i.coordinate_system)||"world",this.selectedTcpId=((s=o[0])==null?void 0:s.id)||"",ln.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(ln.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:n}=t,[r,{coordinatesystems:o},{tcps:i}]=await Promise.all([n.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),n.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),n.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Wr(t,r,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return $o.countBy(this.coordSystems,t=>t.name)}async deactivate(){const t=this.jogger.activeWebsocket;this.jogger.setJoggingMode("increment"),t&&await t.closed()}async activate(){if(this.currentTab.id==="cartesian"){const t={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",t):this.jogger.setJoggingMode("cartesian",t)}else this.jogger.setJoggingMode("joint");return this.jogger}loadFromLocalStorage(){const t=Tt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joints"}]}get incrementOptions(){return Cy}get discreteIncrementOptions(){return Po}get incrementOptionsById(){return Yn(this.incrementOptions,t=>t.id)}get tabsById(){return Yn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return Yn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return Yn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:Po.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInDisplayUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,n){const r=this.tabs[n]||this.tabs[0];this.selectedTabId=r.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}lock(t){this.locks.add(t)}unlock(t){this.locks.delete(t)}async withMotionLock(t){const n=wy();this.lock(n);try{return await t()}finally{this.unlock(n)}}}const Ey=Ie.observer(({store:e})=>{var r;const{t}=un.useTranslation();function n(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return b.jsxs(j.Box,{component:"div",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"min-height min-height","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[b.jsx(qn,{labelId:"jogging-coord-select",labelValue:"Coordinate Sys.",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>{e.setSelectedCoordSystemId(o.target.value)},disabled:e.isLocked,children:e.coordSystems.map(o=>b.jsx(j.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))}),b.jsx(qn,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>{e.setSelectedTcpId(o.target.value)},disabled:e.isLocked,children:e.tcps.map(o=>b.jsx(j.MenuItem,{value:o.id,children:o.id},o.id))}),b.jsx(qn,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>{e.setSelectedOrientation(o.target.value)},disabled:e.isLocked,children:Ty.map(o=>b.jsx(j.MenuItem,{value:o,children:n(o)},o))}),b.jsxs(qn,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((r=e.activeDiscreteIncrement)==null?void 0:r.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[b.jsx(j.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx(j.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),Oy=j.styled(j.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function Ry(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const Ay=2;function rn(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function Qa(e,t){return e-t}function Es(e,t){const{index:n}=e.reduce((r,o,i)=>{const s=Math.abs(t-o);return r===null||s<r.distance||s===r.distance?{distance:s,index:i}:r},null)??{};return n}function Xn(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function vr(e,t,n){return(e-t)*100/(n-t)}function ky(e,t,n){return(n-t)*e+t}function Py(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function $y(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Py(t)))}function Os({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Qa)}function Zn({sliderRef:e,activeIndex:t,setActive:n}){var o,i,s;const r=nr(e.current);(!((o=e.current)!=null&&o.contains(r.activeElement))||Number((i=r==null?void 0:r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Qn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Ry(e,t):!1}const jy={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},_y=e=>e;let er;function Rs(){return er===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?er=CSS.supports("touch-action","none"):er=!0),er}function Ly(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:p="horizontal",rootRef:x,scale:y=_y,step:f=1,shiftStep:v=10,tabIndex:T,value:E}=e,A=F.useRef(void 0),[C,k]=F.useState(-1),[$,L]=F.useState(-1),[B,W]=F.useState(!1),g=F.useRef(0),P=F.useRef(null),[I,N]=bu({controlled:E,default:n??l,name:"Slider"}),M=u&&((R,_,V)=>{const K=R.nativeEvent||R,te=new K.constructor(K.type,K);Object.defineProperty(te,"target",{writable:!0,value:{value:_,name:c}}),P.current=_,u(te,_,V)}),Q=Array.isArray(I);let Y=Q?I.slice().sort(Qa):[I];Y=Y.map(R=>R==null?l:on(R,l,a));const Oe=s===!0&&f!==null?[...Array(Math.floor((a-l)/f)+1)].map((R,_)=>({value:l+f*_})):s||[],ee=Oe.map(R=>R.value),[le,Ce]=F.useState(-1),X=F.useRef(null),Ne=Ks(x,X),st=R=>_=>{var K;const V=Number(_.currentTarget.getAttribute("data-index"));yi(_.target)&&Ce(V),L(V),(K=R==null?void 0:R.onFocus)==null||K.call(R,_)},gn=R=>_=>{var V;yi(_.target)||Ce(-1),L(-1),(V=R==null?void 0:R.onBlur)==null||V.call(R,_)},Jt=(R,_)=>{const V=Number(R.currentTarget.getAttribute("data-index")),K=Y[V],te=ee.indexOf(K);let U=_;if(Oe&&f==null){const ye=ee[ee.length-1];U>=ye?U=ye:U<=ee[0]?U=ee[0]:U=U<K?ee[te-1]:ee[te+1]}if(U=on(U,l,a),Q){o&&(U=on(U,Y[V-1]||-1/0,Y[V+1]||1/0));const ye=U;U=Os({values:Y,newValue:U,index:V});let Ee=V;o||(Ee=U.indexOf(ye)),Zn({sliderRef:X,activeIndex:Ee})}N(U),Ce(V),M&&!Qn(U,I)&&M(R,U,V),d&&d(R,P.current??U)},kt=R=>_=>{var V;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(_.key)){_.preventDefault();const K=Number(_.currentTarget.getAttribute("data-index")),te=Y[K];let U=null;if(f!=null){const ye=_.shiftKey?v:f;switch(_.key){case"ArrowUp":U=rn(te,ye,1,l,a);break;case"ArrowRight":U=rn(te,ye,i?-1:1,l,a);break;case"ArrowDown":U=rn(te,ye,-1,l,a);break;case"ArrowLeft":U=rn(te,ye,i?1:-1,l,a);break;case"PageUp":U=rn(te,v,1,l,a);break;case"PageDown":U=rn(te,v,-1,l,a);break;case"Home":U=l;break;case"End":U=a;break}}else if(Oe){const ye=ee[ee.length-1],Ee=ee.indexOf(te),ge=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],je=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ge.includes(_.key)?Ee===0?U=ee[0]:U=ee[Ee-1]:je.includes(_.key)&&(Ee===ee.length-1?U=ye:U=ee[Ee+1])}U!=null&&Jt(_,U)}(V=R==null?void 0:R.onKeyDown)==null||V.call(R,_)};Ws(()=>{var R;r&&X.current.contains(document.activeElement)&&((R=document.activeElement)==null||R.blur())},[r]),r&&C!==-1&&k(-1),r&&le!==-1&&Ce(-1);const mt=R=>_=>{var V;(V=R.onChange)==null||V.call(R,_),Jt(_,_.target.valueAsNumber)},Be=F.useRef(void 0);let We=p;i&&p==="horizontal"&&(We+="-reverse");const Ve=({finger:R,move:_=!1})=>{const{current:V}=X,{width:K,height:te,bottom:U,left:ye}=V.getBoundingClientRect();let Ee;We.startsWith("vertical")?Ee=(U-R.y)/te:Ee=(R.x-ye)/K,We.includes("-reverse")&&(Ee=1-Ee);let ge;if(ge=ky(Ee,l,a),f)ge=$y(ge,f,l);else{const Pt=Es(ee,ge);ge=ee[Pt]}ge=on(ge,l,a);let je=0;if(Q){_?je=Be.current:je=Es(Y,ge),o&&(ge=on(ge,Y[je-1]||-1/0,Y[je+1]||1/0));const Pt=ge;ge=Os({values:Y,newValue:ge,index:je}),o&&_||(je=ge.indexOf(Pt),Be.current=je)}return{newValue:ge,activeIndex:je}},at=Qr(R=>{const _=Xn(R,A);if(!_)return;if(g.current+=1,R.type==="mousemove"&&R.buttons===0){Me(R);return}const{newValue:V,activeIndex:K}=Ve({finger:_,move:!0});Zn({sliderRef:X,activeIndex:K,setActive:k}),N(V),!B&&g.current>Ay&&W(!0),M&&!Qn(V,I)&&M(R,V,K)}),Me=Qr(R=>{const _=Xn(R,A);if(W(!1),!_)return;const{newValue:V}=Ve({finger:_,move:!0});k(-1),R.type==="touchend"&&L(-1),d&&d(R,P.current??V),A.current=void 0,lt()}),Te=Qr(R=>{if(r)return;Rs()||R.preventDefault();const _=R.changedTouches[0];_!=null&&(A.current=_.identifier);const V=Xn(R,A);if(V!==!1){const{newValue:te,activeIndex:U}=Ve({finger:V});Zn({sliderRef:X,activeIndex:U,setActive:k}),N(te),M&&!Qn(te,I)&&M(R,te,U)}g.current=0;const K=nr(X.current);K.addEventListener("touchmove",at,{passive:!0}),K.addEventListener("touchend",Me,{passive:!0})}),lt=F.useCallback(()=>{const R=nr(X.current);R.removeEventListener("mousemove",at),R.removeEventListener("mouseup",Me),R.removeEventListener("touchmove",at),R.removeEventListener("touchend",Me)},[Me,at]);F.useEffect(()=>{const{current:R}=X;return R.addEventListener("touchstart",Te,{passive:Rs()}),()=>{R.removeEventListener("touchstart",Te),lt()}},[lt,Te]),F.useEffect(()=>{r&&lt()},[r,lt]);const yt=R=>_=>{var te;if((te=R.onMouseDown)==null||te.call(R,_),r||_.defaultPrevented||_.button!==0)return;_.preventDefault();const V=Xn(_,A);if(V!==!1){const{newValue:U,activeIndex:ye}=Ve({finger:V});Zn({sliderRef:X,activeIndex:ye,setActive:k}),N(U),M&&!Qn(U,I)&&M(_,U,ye)}g.current=0;const K=nr(X.current);K.addEventListener("mousemove",at,{passive:!0}),K.addEventListener("mouseup",Me)},Xe=vr(Q?Y[0]:l,l,a),we=vr(Y[Y.length-1],l,a)-Xe,bt=(R={})=>{const _=rr(R),V={onMouseDown:yt(_||{})},K={..._,...V};return{...R,ref:Ne,...K}},ct=R=>_=>{var K;(K=R.onMouseOver)==null||K.call(R,_);const V=Number(_.currentTarget.getAttribute("data-index"));L(V)},Gt=R=>_=>{var V;(V=R.onMouseLeave)==null||V.call(R,_),L(-1)},Wt=(R={})=>{const _=rr(R),V={onMouseOver:ct(_||{}),onMouseLeave:Gt(_||{})};return{...R,..._,...V}},xt=R=>({pointerEvents:C!==-1&&C!==R?"none":void 0});let vt;return p==="vertical"&&(vt=i?"vertical-rl":"vertical-lr"),{active:C,axis:We,axisProps:jy,dragging:B,focusedThumbIndex:le,getHiddenInputProps:(R={})=>{const _=rr(R),V={onChange:mt(_||{}),onFocus:st(_||{}),onBlur:gn(_||{}),onKeyDown:kt(_||{})},K={..._,...V};return{tabIndex:T,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":y(a),"aria-valuemin":y(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...R,...K,style:{...xu,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:vt}}},getRootProps:bt,getThumbProps:Wt,marks:Oe,open:$,range:Q,rootRef:Ne,trackLeap:we,trackOffset:Xe,values:Y,getThumbStyle:xt}}function ar(e){return typeof e=="string"}const Iy=e=>!e||!ar(e);function Ny(e){return typeof e.main=="string"}function My(e,t=[]){if(!Ny(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Wo(e=[]){return([,t])=>t&&My(t,e)}function Dy(e){return Fn("MuiSlider",e)}const Je=Bs("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Fy=e=>{const{open:t}=e;return{offset:rt(t&&Je.valueLabelOpen),circle:Je.valueLabelCircle,label:Je.valueLabelLabel}};function el(e){const{children:t,className:n,value:r}=e,o=Fy(e);return t?F.cloneElement(t,{className:rt(t.props.className)},b.jsxs(F.Fragment,{children:[t.props.children,b.jsx("span",{className:rt(o.offset,n),"aria-hidden":!0,children:b.jsx("span",{className:o.circle,children:b.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(el.propTypes={children:h.element.isRequired,className:h.string,value:h.node});function As(e){return e}const By=pt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Pe(n.color)}`],n.size!=="medium"&&t[`size${Pe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Bt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Je.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Je.dragging}`]:{[`& .${Je.thumb}, & .${Je.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Wo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Vy=pt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Uy=pt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(Bt(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Wo()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:$n(e.palette[t].main,.62),borderColor:$n(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Pn(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Pn(e.palette[t].main,.5)})}}}))]}))),zy=pt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Pe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Pe(n.size)}`]]}})(Bt(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Je.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Wo()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Je.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ho(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Je.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ho(e.palette[t].main,.16)}`}}}}))]}))),tl=pt(el,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(Bt(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Je.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Je.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(tl.propTypes={children:h.element.isRequired,index:h.number.isRequired,open:h.bool.isRequired,value:h.node});const Jy=pt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>No(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Bt(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Gy=pt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>No(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(Bt(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Wy=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${Pe(a)}`,l&&`size${Pe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Pe(l)}`,a&&`thumbColor${Pe(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Lo(c,Dy,s)},Hy=({children:e})=>e,nl=F.forwardRef(function(t,n){const r=Mo({props:t,name:"MuiSlider"}),o=Eu(),{"aria-label":i,"aria-valuetext":s,"aria-labelledby":a,component:l="span",components:c={},componentsProps:u={},color:d="primary",classes:p,className:x,disableSwap:y=!1,disabled:f=!1,getAriaLabel:v,getAriaValueText:T,marks:E=!1,max:A=100,min:C=0,name:k,onChange:$,onChangeCommitted:L,orientation:B="horizontal",shiftStep:W=10,size:g="medium",step:P=1,scale:I=As,slotProps:N,slots:M,tabIndex:Q,track:Y="normal",value:Oe,valueLabelDisplay:ee="off",valueLabelFormat:le=As,...Ce}=r,X={...r,isRtl:o,max:A,min:C,classes:p,disabled:f,disableSwap:y,orientation:B,marks:E,color:d,size:g,step:P,shiftStep:W,scale:I,track:Y,valueLabelDisplay:ee,valueLabelFormat:le},{axisProps:Ne,getRootProps:st,getHiddenInputProps:gn,getThumbProps:Jt,open:kt,active:mt,axis:Be,focusedThumbIndex:We,range:Ve,dragging:at,marks:Me,values:Te,trackOffset:lt,trackLeap:yt,getThumbStyle:Xe}=Ly({...X,rootRef:n});X.marked=Me.length>0&&Me.some(ue=>ue.label),X.dragging=at,X.focusedThumbIndex=We;const we=Wy(X),bt=(M==null?void 0:M.root)??c.Root??By,ct=(M==null?void 0:M.rail)??c.Rail??Vy,Gt=(M==null?void 0:M.track)??c.Track??Uy,Wt=(M==null?void 0:M.thumb)??c.Thumb??zy,xt=(M==null?void 0:M.valueLabel)??c.ValueLabel??tl,vt=(M==null?void 0:M.mark)??c.Mark??Jy,Ht=(M==null?void 0:M.markLabel)??c.MarkLabel??Gy,R=(M==null?void 0:M.input)??c.Input??"input",_=(N==null?void 0:N.root)??u.root,V=(N==null?void 0:N.rail)??u.rail,K=(N==null?void 0:N.track)??u.track,te=(N==null?void 0:N.thumb)??u.thumb,U=(N==null?void 0:N.valueLabel)??u.valueLabel,ye=(N==null?void 0:N.mark)??u.mark,Ee=(N==null?void 0:N.markLabel)??u.markLabel,ge=(N==null?void 0:N.input)??u.input,je=St({elementType:bt,getSlotProps:st,externalSlotProps:_,externalForwardedProps:Ce,additionalProps:{...Iy(bt)&&{as:l}},ownerState:{...X,..._==null?void 0:_.ownerState},className:[we.root,x]}),Pt=St({elementType:ct,externalSlotProps:V,ownerState:X,className:we.rail}),Hr=St({elementType:Gt,externalSlotProps:K,additionalProps:{style:{...Ne[Be].offset(lt),...Ne[Be].leap(yt)}},ownerState:{...X,...K==null?void 0:K.ownerState},className:we.track}),hn=St({elementType:Wt,getSlotProps:Jt,externalSlotProps:te,ownerState:{...X,...te==null?void 0:te.ownerState},className:we.thumb}),mn=St({elementType:xt,externalSlotProps:U,ownerState:{...X,...U==null?void 0:U.ownerState},className:we.valueLabel}),Kt=St({elementType:vt,externalSlotProps:ye,ownerState:X,className:we.mark}),Ze=St({elementType:Ht,externalSlotProps:Ee,ownerState:X,className:we.markLabel}),yn=St({elementType:R,getSlotProps:gn,externalSlotProps:ge,ownerState:X});return b.jsxs(bt,{...je,children:[b.jsx(ct,{...Pt}),b.jsx(Gt,{...Hr}),Me.filter(ue=>ue.value>=C&&ue.value<=A).map((ue,be)=>{const bn=vr(ue.value,C,A),$t=Ne[Be].offset(bn);let He;return Y===!1?He=Te.includes(ue.value):He=Y==="normal"&&(Ve?ue.value>=Te[0]&&ue.value<=Te[Te.length-1]:ue.value<=Te[0])||Y==="inverted"&&(Ve?ue.value<=Te[0]||ue.value>=Te[Te.length-1]:ue.value>=Te[0]),b.jsxs(F.Fragment,{children:[b.jsx(vt,{"data-index":be,...Kt,...!ar(vt)&&{markActive:He},style:{...$t,...Kt.style},className:rt(Kt.className,He&&we.markActive)}),ue.label!=null?b.jsx(Ht,{"aria-hidden":!0,"data-index":be,...Ze,...!ar(Ht)&&{markLabelActive:He},style:{...$t,...Ze.style},className:rt(we.markLabel,Ze.className,He&&we.markLabelActive),children:ue.label}):null]},be)}),Te.map((ue,be)=>{const bn=vr(ue,C,A),$t=Ne[Be].offset(bn),He=ee==="off"?Hy:xt;return b.jsx(He,{...!ar(He)&&{valueLabelFormat:le,valueLabelDisplay:ee,value:typeof le=="function"?le(I(ue),be):le,index:be,open:kt===be||mt===be||ee==="on",disabled:f},...mn,children:b.jsx(Wt,{"data-index":be,...hn,className:rt(we.thumb,hn.className,mt===be&&we.active,We===be&&we.focusVisible),style:{...$t,...Xe(be),...hn.style},children:b.jsx(R,{"data-index":be,"aria-label":v?v(be):i,"aria-valuenow":I(ue),"aria-labelledby":a,"aria-valuetext":T?T(I(ue),be):s,value:Te[be],...yn})})},be)})]})});process.env.NODE_ENV!=="production"&&(nl.propTypes={"aria-label":mi(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":h.string,"aria-valuetext":mi(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Mark:h.elementType,MarkLabel:h.elementType,Rail:h.elementType,Root:h.elementType,Thumb:h.elementType,Track:h.elementType,ValueLabel:h.elementType}),componentsProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.node,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),defaultValue:h.oneOfType([h.arrayOf(h.number),h.number]),disabled:h.bool,disableSwap:h.bool,getAriaLabel:h.func,getAriaValueText:h.func,marks:h.oneOfType([h.arrayOf(h.shape({label:h.node,value:h.number.isRequired})),h.bool]),max:h.number,min:h.number,name:h.string,onChange:h.func,onChangeCommitted:h.func,orientation:h.oneOf(["horizontal","vertical"]),scale:h.func,shiftStep:h.number,size:h.oneOfType([h.oneOf(["small","medium"]),h.string]),slotProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.node,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),slots:h.shape({input:h.elementType,mark:h.elementType,markLabel:h.elementType,rail:h.elementType,root:h.elementType,thumb:h.elementType,track:h.elementType,valueLabel:h.elementType}),step:h.number,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,track:h.oneOf(["inverted","normal",!1]),value:h.oneOfType([h.arrayOf(h.number),h.number]),valueLabelDisplay:h.oneOf(["auto","off","on"]),valueLabelFormat:h.oneOfType([h.func,h.string])});var Ky="[object Number]";function qy(e){return typeof e=="number"||Mt(e)&&Vt(e)==Ky}const rl=Ie.observer(e=>{j.useTheme();function t(n,r){r===e.velocity||!qy(r)||e.onVelocityChange(r)}return b.jsxs(j.Stack,{direction:"row",gap:2,children:[b.jsx(nl,{value:e.velocity,color:"secondary",onChange:t,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),e.renderValue?e.renderValue(e.velocity):b.jsx(Ho,{value:e.velocity.toString()})]})});function Ho({value:e,sx:t}){var r;const n=j.useTheme();return b.jsx(j.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(r=n.palette.backgroundPaperElevation)==null?void 0:r[8],borderRadius:"10px",minWidth:"111px",...t},children:b.jsx(j.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:n.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const ol=Ie.observer(({store:e})=>{const{t}=un.useTranslation(),n=Ie.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?r=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:r})}`:r=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:r})}`}}));return b.jsx(rl,{velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:r=>b.jsx(Ho,{value:n.valueLabelFormat(r),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),Yy=Ie.observer(({store:e,children:t})=>{var d,p,x,y,f,v,T,E,A;const{t:n}=un.useTranslation(),r=j.useTheme();function o(C,k){(k==="translate"||k==="rotate")&&e.setSelectedCartesianMotionType(k)}ia(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function i(C,k){const $=await e.activate(),L=$.motionStream.rapidlyChangingMotionState.tcp_pose,B=$.motionStream.rapidlyChangingMotionState.state.joint_position;L&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:C.axis,direction:C.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:L,currentJoints:B,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:C.axis,direction:C.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:k.mm}:{type:"rotate",distanceRads:Tt.degreesToRadians(k.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function s(C){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return i(C,e.activeDiscreteIncrement);C.motionType==="translate"?await e.jogger.startTCPTranslation({axis:C.axis,direction:C.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:C.axis,direction:C.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}const l=[{id:"x",colors:(x=(p=(d=r.componentsExt)==null?void 0:d.JoggingCartesian)==null?void 0:p.Axis)==null?void 0:x.X,icon:b.jsx(rg,{})},{id:"y",colors:(v=(f=(y=r.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.Y,icon:b.jsx(ig,{})},{id:"z",colors:(A=(E=(T=r.componentsExt)==null?void 0:T.JoggingCartesian)==null?void 0:E.Axis)==null?void 0:A.Z,icon:b.jsx(ag,{})}];function c(C){return n("General.mm.variable",{amount:C.toFixed(1)})}function u(C){return n("General.degree.variable",{amount:Tt.radiansToDegrees(C).toFixed(1)})}return b.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs(j.Stack,{gap:2,children:[b.jsx(Ey,{store:e}),b.jsx(ol,{store:e}),b.jsx(j.Divider,{})]}),b.jsx(j.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:b.jsxs(j.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[b.jsxs(Oy,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":n("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx(j.ToggleButton,{value:"translate",children:n("Jogging.Cartesian.Translation.bt")}),b.jsx(j.ToggleButton,{value:"rotate",children:n("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&l.map(C=>{var k;return b.jsx(bo,{colors:C.colors,disabled:e.isLocked,activeJoggingDirection:((k=e.incrementJogInProgress)==null?void 0:k.axis)===C.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[C.icon,b.jsx(j.Typography,{sx:{fontSize:"24px",color:r.palette.text.primary},children:C.id.toUpperCase()})]}),getDisplayedValue:()=>{var $;return c((($=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:$.position[C.id])||0)},startJogging:$=>s({axis:C.id,motionType:"translate",direction:$}),stopJogging:a},C.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(C=>{var k;return b.jsx(bo,{colors:C.colors,disabled:e.isLocked,activeJoggingDirection:((k=e.incrementJogInProgress)==null?void 0:k.axis)===C.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(cg,{}),b.jsx(j.Typography,{sx:{fontSize:"24px",color:r.palette.text.primary},children:C.id.toUpperCase()})]}),getDisplayedValue:()=>{var $,L;return u(((L=($=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:$.orientation)==null?void 0:L[C.id])||0)},startJogging:$=>s({axis:C.id,motionType:"rotate",direction:$}),stopJogging:a},C.id)})]})}),b.jsx(Wa,{store:e}),t&&b.jsx(j.Divider,{}),t]})}),Xy=Ie.observer(({store:e,children:t})=>{async function n(o){await e.activate(),await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function r(){await e.jogger.stop(),await e.deactivate()}return b.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(ol,{store:e}),b.jsx(j.Divider,{}),b.jsx(j.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(j.Stack,{alignItems:"center",gap:"24px",children:e.jogger.motionStream.joints.map(o=>{var l;const i=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[o.index],s=(i==null?void 0:i.lower_limit)!==void 0?Tt.radiansToDegrees(i.lower_limit):void 0,a=(i==null?void 0:i.upper_limit)!==void 0?Tt.radiansToDegrees(i.upper_limit):void 0;return b.jsx(ca,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:a,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Tt.radiansToDegrees(c):void 0},startJogging:c=>n({joint:o.index,direction:c}),stopJogging:r},`joint-${o.index}`)})})}),b.jsx(Wa,{store:e}),t&&b.jsx(j.Divider,{}),t]})}),Zy=Bn(Ie.observer(e=>{const t=$o.isString(e.nova)?new Tt.NovaClient({instanceUrl:e.nova}):e.nova,n=Ie.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function r(){ln.runInAction(()=>{n.loadingError=null,n.joggingStore=null});try{let o=e.store;if(!o){const i=await t.connectJogger(e.motionGroupId);o=await Wr.loadFor(i)}ln.runInAction(()=>{n.joggingStore=o}),e.onSetup&&e.onSetup(o)}catch(o){n.loadingError=o}}return H.useEffect(()=>(r(),e.store?()=>null:()=>{var o;(o=n.joggingStore)==null||o.dispose()}),[e.store,e.nova,e.motionGroupId]),H.useEffect(()=>{const o=n.joggingStore;o&&(e.locked?o.lock("external"):o.unlock("external"))},[n.joggingStore,e.locked]),b.jsx(j.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:n.joggingStore?b.jsx(Qy,{store:n.joggingStore,children:e.children}):b.jsx(Vo,{message:"Loading jogging",error:n.loadingError})})})),Qy=Ie.observer(({store:e,children:t})=>{function n(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(Yy,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(Xy,{store:e,children:t})})}return b.jsxs(j.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx(j.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(r=>b.jsx(j.Tab,{label:r.label,id:`jogging-tab-${r.id}`,"aria-controls":`jogging-tab-${r.id}`},r.id))}),b.jsx(j.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:n()})]})}),il=H.forwardRef(({label:e,value:t},n)=>{var a;const r=j.useTheme(),[o,i]=H.useState(!1);async function s(){if(!n||!("current"in n))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),i(!0),!0}catch(l){console.error(l);const c=window.getSelection(),u=document.createRange();u.selectNodeContents(n.current),c.removeAllRanges(),c.addRange(u)}return!1}return H.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),b.jsx(j.Tooltip,{open:o,title:"Copied!",children:b.jsx(j.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(a=r.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx(j.Typography,{ref:n,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:r.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),eb=Ie.observer(({motionStream:e})=>{const t=H.useRef(null);function n(){const r=e.rapidlyChangingMotionState.tcp_pose;return r?Tt.poseToWandelscriptString(r):""}return fn(()=>{if(!t.current)return;const r=n();t.current.textContent!==r&&(t.current.textContent=r)}),b.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(il,{value:n(),ref:t})})}),tb=Ie.observer(({motionStream:e})=>{const t=H.useRef(null);function n(){const{joints:r}=e.rapidlyChangingMotionState.state.joint_position;return`[${r.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return fn(()=>{if(!t.current)return;const r=n();t.current.textContent!==r&&(t.current.textContent=r)}),b.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(il,{value:n(),ref:t})})});function nb(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function rb({baseUrl:e=nb(),...t}){return b.jsxs(j.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[b.jsx(j.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs(j.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx(j.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx(j.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx(j.DialogActions,{children:b.jsxs(j.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx(j.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx(j.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const ob=Array(6).fill(2*Math.PI),ks="0.0.0-semantically-released";function Ko(e){let t=ks;return ks.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function ib(e){function t(n){return n.children.length===0?[n]:[n,...n.children.flatMap(r=>t(r))]}return t(e).filter(n=>al(n))}function sl(e){return e.name.endsWith("_FLG")}function al(e){return/_J[0-9]+$/.test(e.name)}function sb(e,t){let n;function r(o){if(sl(o)){if(n)throw Error(`Found multiple flange groups in robot model ${t}; first ${n.name} then ${o.name}. Only one _FLG group is allowed.`);n=o}al(o),o.children.map(r)}if(r(e.scene),!n)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function ll({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:n,children:r}){po.Globals.assign({frameLoop:"always"});const o=H.useRef([]),i=H.useRef([]),{invalidate:s}=El.useThree();function a(p){p&&(i.current=ib(p),c(),s())}function l(p){o.current=p,d.start(Object.assign({},o.current))}function c(){const p=i.current.map((x,y)=>u[y].get());if(n)n(i.current,p);else for(const[x,y]of i.current.entries()){const f=t[x],v=f.theta||0,T=f.reverse_rotation_direction?-1:1;y.rotation.y=T*p[x]+v}}oa(()=>{const p=e.state.joint_position.joints.filter(x=>x!==void 0);requestAnimationFrame(()=>l(p))});const[u,d]=po.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),s()},onResolve:()=>{c()}}));return b.jsx("group",{ref:a,children:r})}const Ps="line",$s="mesh";function ab({rapidlyChangingMotionState:e,dhParameters:t,...n}){const r=new ft.Matrix4;function o(a,l){const c=new ft.Vector3,u=new ft.Quaternion,d=new ft.Vector3;r.decompose(c,u,d);const p=c.clone(),x=new ft.Matrix4().makeRotationY(a.theta+l*(a.reverse_rotation_direction?-1:1)).multiply(new ft.Matrix4().makeTranslation(0,a.d/1e3,0)).multiply(new ft.Matrix4().makeTranslation(a.a/1e3,0,0)).multiply(new ft.Matrix4().makeRotationX(a.alpha));return r.multiply(x),r.decompose(c,u,d),{a:p,b:c}}function i(a,l,c,u){if(!t)return;const d=t[a];if(!d)return;const{a:p,b:x}=o(d,u);l.geometry.setPositions([p.toArray(),x.toArray()].flat()),c.position.set(x.x,x.y,x.z)}function s(a,l){r.identity(),a.forEach((c,u)=>{i(u,c.getObjectByName(Ps),c.getObjectByName($s),l[u])})}return b.jsx(b.Fragment,{children:b.jsx(ll,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:s,children:b.jsxs("group",{...n,name:"Scene",children:[b.jsxs("mesh",{children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((a,l)=>{const{a:c,b:u}=o(a,e.state.joint_position.joints[l]??0),d=`dhrobot_J0${l}`;return b.jsxs("group",{name:d,children:[b.jsx(Ke.Line,{name:Ps,points:[c,u],color:"white",lineWidth:5}),b.jsxs("mesh",{name:$s,position:u,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},d)})]})})})}const lb=console.warn;function cb(){return H.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&lb(e)}},[]),b.jsx(b.Fragment,{})}function ub(e){return e.type==="Mesh"}function fb({modelURL:e,flangeRef:t,postModelRender:n,...r}){const{gltf:o}=sb(Ke.useGLTF(e),e.split("/").pop()||e),i=H.useCallback(a=>{a&&n&&n()},[e]);function s(a){return ub(a)?b.jsx("mesh",{name:a.name,geometry:a.geometry,material:a.material,position:a.position,rotation:a.rotation},a.uuid):b.jsx(po.animated.group,{name:a.name,position:a.position,rotation:a.rotation,ref:sl(a)?t:void 0,children:a.children.map(s)},a.uuid)}return b.jsx("group",{...r,dispose:null,ref:i,children:s(o.scene)})}const db=(e,t)=>{e.userData.isGhost||(e.traverse(n=>{if(n instanceof Se.Mesh){n.material instanceof Se.Material&&(n.material.colorWrite=!1);const r=n.clone(),o=n.clone();r.material=new Se.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:Se.DoubleSide}),r.userData.isGhost=!0,o.material=new Se.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:Se.DoubleSide}),o.userData.isGhost=!0,n.parent&&(n.parent.add(r),n.parent.add(o))}}),e.userData.isGhost=!0)},pb=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(n=>{var r;n instanceof Se.Mesh&&((r=n.userData)!=null&&r.isGhost?t.push(n):n.material instanceof Se.Material&&(n.material.colorWrite=!0))}),t.forEach(n=>{n.parent&&n.parent.remove(n)}),e.userData.isGhost=!1},cl=Bn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:n,getModel:r=Ko,flangeRef:o,postModelRender:i,transparentColor:s,...a})=>{const[l,c]=H.useState(null),u=H.useCallback(p=>{c(p)},[]);H.useEffect(()=>{l&&(s?db(l,s):pb(l))},[l,s]);const d=b.jsx(ab,{rapidlyChangingMotionState:e,dhParameters:n,...a});return b.jsxs(Pl.ErrorBoundary,{fallback:d,onError:p=>{if(p.message.includes("404: Not Found"))console.error(p);else throw p},children:[b.jsx(H.Suspense,{fallback:d,children:b.jsx("group",{ref:u,children:b.jsx(ll,{rapidlyChangingMotionState:e,dhParameters:n,children:b.jsx(fb,{modelURL:r(t),postModelRender:i,flangeRef:o,...a})})})}),b.jsx(cb,{})]})});function gb({connectedMotionGroup:e,getModel:t=Ko,flangeRef:n,transparentColor:r,...o}){return e.dhParameters?b.jsx(cl,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:n,transparentColor:r,...o}):null}const hb=j.styled(j.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,n,r;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:o})=>!o,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:o})=>o,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),mb=H.forwardRef((e,t)=>b.jsx(hb,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),yb={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print|and|or|not)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},bb=H.lazy(()=>import("@monaco-editor/react"));let fo=null;async function xb(){if(!fo){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);fo={shiki:await e({langs:[yb],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return fo}const vb=Bn(e=>{const t=j.useTheme(),[n,r]=H.useState("dark-plus"),o=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(s){var c,u;s.languages.register({id:"wandelscript"}),s.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:a,shikiToMonaco:l}=await xb();l(a,s),s.editor.defineTheme(o,((u=(c=t.componentsExt)==null?void 0:c.WandelscriptEditor)==null?void 0:u.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(s),r(o)}return b.jsx(H.Suspense,{fallback:b.jsx(Vo,{}),children:b.jsx(bb,{value:e.code,onMount:(s,a)=>{i(a)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function ul(){var t,n,r,o,i,s,a;const e=j.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(r=(n=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:n.tonal)==null?void 0:r.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(o=e.palette.backgroundPaperElevation)==null?void 0:o[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiDrawer:{styleOverrides:{paper:{border:"none",boxShadow:"4px 0 8px -4px rgba(0, 0, 0, 0.3)"}}},MuiFab:{styleOverrides:{root:{background:(s=(i=e.paletteExt)==null?void 0:i.secondary)==null?void 0:s.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)"}}},WandelscriptEditor:{monacoTheme:{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#b349a9ff"}],colors:{"editor.background":j.rgbToHex(((a=e.palette.backgroundPaperElevation)==null?void 0:a[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function Sb(){const e=ul();return e.palette.mode="light",e}function wb(e){var r,o,i,s;let t=!0;((r=e.palette)==null?void 0:r.mode)==="light"?t=!1:((o=e.palette)==null?void 0:o.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const n=t?ul():Sb();return ea(n,e)}exports.JoggingCartesianAxisControl=bo;exports.JoggingJointRotationControl=ca;exports.JoggingPanel=Zy;exports.JoggingStore=Wr;exports.LoadingCover=Vo;exports.LoadingErrorMessage=Ia;exports.NoMotionGroupModal=rb;exports.PoseCartesianValues=eb;exports.PoseJointValues=tb;exports.PresetEnvironment=Ll;exports.Robot=gb;exports.SafetyZonesRenderer=Ml;exports.SelectableFab=mb;exports.SupportedRobot=cl;exports.TrajectoryRenderer=Dl;exports.VelocitySlider=rl;exports.VelocitySliderLabel=Ho;exports.WandelscriptEditor=vb;exports.createNovaMuiTheme=wb;exports.defaultAxisConfig=ob;exports.defaultGetModel=Ko;exports.useAnimationFrame=fn;exports.useAutorun=oa;exports.useMounted=Lr;exports.useReaction=ia;
85
+ export default theme;`}function mo(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=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.":Rt(20));const u=Io(i),d=_n(e);let p=$e(d,{mixins:qu(d.breakpoints,n),palette:u,shadows:tf.slice(),typography:Zu(u,s),transitions:af(a),zIndex:{...sf}});if(p=$e(p,c),p=t.reduce((S,b)=>$e(S,b),p),process.env.NODE_ENV!=="production"){const S=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(f,v)=>{let E;for(E in f){const O=f[E];if(S.includes(E)&&Object.keys(O).length>0){if(process.env.NODE_ENV!=="production"){const k=Br("",E);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${k}' syntax:`,JSON.stringify({root:{[`&.${k}`]:O}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
86
+ `))}f[E]={}}}};Object.keys(p.components).forEach(f=>{const v=p.components[f].styleOverrides;v&&f.startsWith("Mui")&&b(v,f)})}return p.unstable_sxConfig={...Fr,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(b){return ur({sx:b,theme:this})},p.toRuntimeSource=Ya,p}function cf(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 uf=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=cf(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Za(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Xa(e){return e==="dark"?uf:[]}function ff(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=Io(t);return{palette:i,opacity:{...Za(i.mode),...r},overlays:n||Xa(i.mode),...o}}function df(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const pf=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],gf=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 pf(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),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 hf(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function w(e,t,r){!e[t]&&r&&(e[t]=r)}function Rr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Wa(e)}function dt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Or(Rr(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().
87
+ 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 mf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const et=e=>{try{return e()}catch{}},yf=(e="mui")=>Au(e);function ro(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=ff({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=mo({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...Za(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Xa(o)},a}function bf(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=df,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(r)[0],d=n||(r.light&&u!=="light"?"light":u),p=yf(i),{[d]:S,light:b,dark:f,...v}=r,E={...v};let O=S;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(O=!0),!O)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:Rt(21,d));const k=ro(E,O,c,d);b&&!E.light&&ro(E,b,void 0,"light"),f&&!E.dark&&ro(E,f,void 0,"dark");let T={defaultColorScheme:d,...k,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:p,colorSchemes:E,font:{...Ku(k.typography),...k.font},spacing:mf(c.spacing)};Object.keys(T.colorSchemes).forEach(H=>{const g=T.colorSchemes[H].palette,_=M=>{const N=M.split("-"),D=N[1],Q=N[2];return p(M,g[D][Q])};if(g.mode==="light"&&(w(g.common,"background","#fff"),w(g.common,"onBackground","#000")),g.mode==="dark"&&(w(g.common,"background","#000"),w(g.common,"onBackground","#fff")),hf(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){w(g.Alert,"errorColor",ae(g.error.light,.6)),w(g.Alert,"infoColor",ae(g.info.light,.6)),w(g.Alert,"successColor",ae(g.success.light,.6)),w(g.Alert,"warningColor",ae(g.warning.light,.6)),w(g.Alert,"errorFilledBg",_("palette-error-main")),w(g.Alert,"infoFilledBg",_("palette-info-main")),w(g.Alert,"successFilledBg",_("palette-success-main")),w(g.Alert,"warningFilledBg",_("palette-warning-main")),w(g.Alert,"errorFilledColor",et(()=>g.getContrastText(g.error.main))),w(g.Alert,"infoFilledColor",et(()=>g.getContrastText(g.info.main))),w(g.Alert,"successFilledColor",et(()=>g.getContrastText(g.success.main))),w(g.Alert,"warningFilledColor",et(()=>g.getContrastText(g.warning.main))),w(g.Alert,"errorStandardBg",se(g.error.light,.9)),w(g.Alert,"infoStandardBg",se(g.info.light,.9)),w(g.Alert,"successStandardBg",se(g.success.light,.9)),w(g.Alert,"warningStandardBg",se(g.warning.light,.9)),w(g.Alert,"errorIconColor",_("palette-error-main")),w(g.Alert,"infoIconColor",_("palette-info-main")),w(g.Alert,"successIconColor",_("palette-success-main")),w(g.Alert,"warningIconColor",_("palette-warning-main")),w(g.AppBar,"defaultBg",_("palette-grey-100")),w(g.Avatar,"defaultBg",_("palette-grey-400")),w(g.Button,"inheritContainedBg",_("palette-grey-300")),w(g.Button,"inheritContainedHoverBg",_("palette-grey-A100")),w(g.Chip,"defaultBorder",_("palette-grey-400")),w(g.Chip,"defaultAvatarColor",_("palette-grey-700")),w(g.Chip,"defaultIconColor",_("palette-grey-700")),w(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),w(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),w(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),w(g.LinearProgress,"primaryBg",se(g.primary.main,.62)),w(g.LinearProgress,"secondaryBg",se(g.secondary.main,.62)),w(g.LinearProgress,"errorBg",se(g.error.main,.62)),w(g.LinearProgress,"infoBg",se(g.info.main,.62)),w(g.LinearProgress,"successBg",se(g.success.main,.62)),w(g.LinearProgress,"warningBg",se(g.warning.main,.62)),w(g.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.11)`),w(g.Slider,"primaryTrack",se(g.primary.main,.62)),w(g.Slider,"secondaryTrack",se(g.secondary.main,.62)),w(g.Slider,"errorTrack",se(g.error.main,.62)),w(g.Slider,"infoTrack",se(g.info.main,.62)),w(g.Slider,"successTrack",se(g.success.main,.62)),w(g.Slider,"warningTrack",se(g.warning.main,.62));const M=Wr(g.background.default,.8);w(g.SnackbarContent,"bg",M),w(g.SnackbarContent,"color",et(()=>g.getContrastText(M))),w(g.SpeedDialAction,"fabHoverBg",Wr(g.background.paper,.15)),w(g.StepConnector,"border",_("palette-grey-400")),w(g.StepContent,"border",_("palette-grey-400")),w(g.Switch,"defaultColor",_("palette-common-white")),w(g.Switch,"defaultDisabledColor",_("palette-grey-100")),w(g.Switch,"primaryDisabledColor",se(g.primary.main,.62)),w(g.Switch,"secondaryDisabledColor",se(g.secondary.main,.62)),w(g.Switch,"errorDisabledColor",se(g.error.main,.62)),w(g.Switch,"infoDisabledColor",se(g.info.main,.62)),w(g.Switch,"successDisabledColor",se(g.success.main,.62)),w(g.Switch,"warningDisabledColor",se(g.warning.main,.62)),w(g.TableCell,"border",se(Gr(g.divider,1),.88)),w(g.Tooltip,"bg",Gr(g.grey[700],.92))}if(g.mode==="dark"){w(g.Alert,"errorColor",se(g.error.light,.6)),w(g.Alert,"infoColor",se(g.info.light,.6)),w(g.Alert,"successColor",se(g.success.light,.6)),w(g.Alert,"warningColor",se(g.warning.light,.6)),w(g.Alert,"errorFilledBg",_("palette-error-dark")),w(g.Alert,"infoFilledBg",_("palette-info-dark")),w(g.Alert,"successFilledBg",_("palette-success-dark")),w(g.Alert,"warningFilledBg",_("palette-warning-dark")),w(g.Alert,"errorFilledColor",et(()=>g.getContrastText(g.error.dark))),w(g.Alert,"infoFilledColor",et(()=>g.getContrastText(g.info.dark))),w(g.Alert,"successFilledColor",et(()=>g.getContrastText(g.success.dark))),w(g.Alert,"warningFilledColor",et(()=>g.getContrastText(g.warning.dark))),w(g.Alert,"errorStandardBg",ae(g.error.light,.9)),w(g.Alert,"infoStandardBg",ae(g.info.light,.9)),w(g.Alert,"successStandardBg",ae(g.success.light,.9)),w(g.Alert,"warningStandardBg",ae(g.warning.light,.9)),w(g.Alert,"errorIconColor",_("palette-error-main")),w(g.Alert,"infoIconColor",_("palette-info-main")),w(g.Alert,"successIconColor",_("palette-success-main")),w(g.Alert,"warningIconColor",_("palette-warning-main")),w(g.AppBar,"defaultBg",_("palette-grey-900")),w(g.AppBar,"darkBg",_("palette-background-paper")),w(g.AppBar,"darkColor",_("palette-text-primary")),w(g.Avatar,"defaultBg",_("palette-grey-600")),w(g.Button,"inheritContainedBg",_("palette-grey-800")),w(g.Button,"inheritContainedHoverBg",_("palette-grey-700")),w(g.Chip,"defaultBorder",_("palette-grey-700")),w(g.Chip,"defaultAvatarColor",_("palette-grey-300")),w(g.Chip,"defaultIconColor",_("palette-grey-300")),w(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),w(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),w(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),w(g.LinearProgress,"primaryBg",ae(g.primary.main,.5)),w(g.LinearProgress,"secondaryBg",ae(g.secondary.main,.5)),w(g.LinearProgress,"errorBg",ae(g.error.main,.5)),w(g.LinearProgress,"infoBg",ae(g.info.main,.5)),w(g.LinearProgress,"successBg",ae(g.success.main,.5)),w(g.LinearProgress,"warningBg",ae(g.warning.main,.5)),w(g.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.13)`),w(g.Slider,"primaryTrack",ae(g.primary.main,.5)),w(g.Slider,"secondaryTrack",ae(g.secondary.main,.5)),w(g.Slider,"errorTrack",ae(g.error.main,.5)),w(g.Slider,"infoTrack",ae(g.info.main,.5)),w(g.Slider,"successTrack",ae(g.success.main,.5)),w(g.Slider,"warningTrack",ae(g.warning.main,.5));const M=Wr(g.background.default,.98);w(g.SnackbarContent,"bg",M),w(g.SnackbarContent,"color",et(()=>g.getContrastText(M))),w(g.SpeedDialAction,"fabHoverBg",Wr(g.background.paper,.15)),w(g.StepConnector,"border",_("palette-grey-600")),w(g.StepContent,"border",_("palette-grey-600")),w(g.Switch,"defaultColor",_("palette-grey-300")),w(g.Switch,"defaultDisabledColor",_("palette-grey-600")),w(g.Switch,"primaryDisabledColor",ae(g.primary.main,.55)),w(g.Switch,"secondaryDisabledColor",ae(g.secondary.main,.55)),w(g.Switch,"errorDisabledColor",ae(g.error.main,.55)),w(g.Switch,"infoDisabledColor",ae(g.info.main,.55)),w(g.Switch,"successDisabledColor",ae(g.success.main,.55)),w(g.Switch,"warningDisabledColor",ae(g.warning.main,.55)),w(g.TableCell,"border",ae(Gr(g.divider,1),.68)),w(g.Tooltip,"bg",Gr(g.grey[700],.92))}dt(g.background,"default"),dt(g.background,"paper"),dt(g.common,"background"),dt(g.common,"onBackground"),dt(g,"divider"),Object.keys(g).forEach(M=>{const N=g[M];M!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&w(g[M],"mainChannel",Or(Rr(N.main))),N.light&&w(g[M],"lightChannel",Or(Rr(N.light))),N.dark&&w(g[M],"darkChannel",Or(Rr(N.dark))),N.contrastText&&w(g[M],"contrastTextChannel",Or(Rr(N.contrastText))),M==="text"&&(dt(g[M],"primary"),dt(g[M],"secondary")),M==="action"&&(N.active&&dt(g[M],"active"),N.selected&&dt(g[M],"selected")))})}),T=t.reduce((H,g)=>$e(H,g),T);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:gf(T)},{vars:$,generateThemeVars:I,generateStyleSheets:B}=ju(T,P);return T.vars=$,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([H,g])=>{T[H]=g}),T.generateThemeVars=I,T.generateStyleSheets=B,T.generateSpacing=function(){return Na(c.spacing,On(this))},T.getColorSchemeSelector=_u(s),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...Fr,...c==null?void 0:c.unstable_sxConfig},T.unstable_sx=function(g){return ur({sx:g,theme:this})},T.toRuntimeSource=Ya,T}function Oi(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Io({...r===!0?{}:r.palette,mode:t})})}function Qa(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,s=i||"light",l=o==null?void 0:o[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return mo(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=mo({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Oi(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Oi(d,"light",c.light)),d}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),bf({...a,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const Sf=Qa(),vf="$$material";function Mo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xf=e=>Mo(e)&&e!=="classes",ht=za({themeId:vf,defaultTheme:Sf,rootShouldForwardProp:xf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function No(e){return Ou(e)}const lr=Fu({createStyledComponent:ht("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>No({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(lr.propTypes={children:h.node,component:h.elementType,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),useFlexGap:h.bool});const G=e=>typeof e=="string",Tr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},Ri=e=>e==null?"":""+e,wf=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Tf=/###/g,Ai=e=>e&&e.indexOf("###")>-1?e.replace(Tf,"."):e,ki=e=>!e||G(e),kr=(e,t,r)=>{const n=G(t)?t.split("."):t;let o=0;for(;o<n.length-1;){if(ki(e))return{};const i=Ai(n[o]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return ki(e)?{}:{obj:e,k:Ai(n[o])}},Pi=(e,t,r)=>{const{obj:n,k:o}=kr(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=kr(e,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=kr(e,a,Object),s!=null&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},Ef=(e,t,r,n)=>{const{obj:o,k:i}=kr(e,t,Object);o[i]=o[i]||[],o[i].push(r)},pn=(e,t)=>{const{obj:r,k:n}=kr(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},Cf=(e,t,r)=>{const n=pn(e,r);return n!==void 0?n:pn(t,r)},es=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?G(e[n])||e[n]instanceof String||G(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):es(e[n],t[n],r):e[n]=t[n]);return e},nr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Of={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Rf=e=>G(e)?e.replace(/[&<>"'\/]/g,t=>Of[t]):e;class Af{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const kf=[" ",",","?","!",";"],Pf=new Af(20),jf=(e,t,r)=>{t=t||"",r=r||"";const n=kf.filter(a=>t.indexOf(a)<0&&r.indexOf(a)<0);if(n.length===0)return!0;const o=Pf.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i},yo=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const n=t.split(r);let o=e;for(let i=0;i<n.length;){if(!o||typeof o!="object")return;let a,s="";for(let l=i;l<n.length;++l)if(l!==i&&(s+=r),s+=n[l],a=o[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<n.length-1)continue;i+=l-i+1;break}o=a}return o},gn=e=>e==null?void 0:e.replace("_","-"),_f={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,n;(n=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||n.call(r,console,t)}};class hn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||_f,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,o){return o&&!this.debug?null:(G(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new hn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new hn(this.logger,t)}}var ot=new hn;class Ln{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s.apply(s,[t,...n])})}}class ji extends Ln{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){var c,u;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):G(n)&&i?s.push(...n.split(i)):s.push(n)));const l=pn(this.data,s);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!a||!G(n)?l:yo((u=(c=this.data)==null?void 0:c[t])==null?void 0:u[r],n,i)}addResource(t,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(s=t.split("."),o=r,r=s[1]),this.addNamespaces(r),Pi(this.data,s,o),i.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(G(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,r];t.indexOf(".")>-1&&(s=t.split("."),o=n,n=r,r=s[1]),this.addNamespaces(r);let l=pn(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?es(l,n,i):l={...l,...n},Pi(this.data,s,l),a.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ts={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(i=>{var a;t=((a=this.processors[i])==null?void 0:a.process(t,r,n,o))??t}),t}};const _i={},$i=e=>!G(e)&&typeof e!="boolean"&&typeof e!="number";class mn extends Ln{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),wf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ot.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return(n==null?void 0:n.res)!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const a=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!jf(t,n,o);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:G(i)?[i]:i};const c=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:G(i)?[i]:i}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],r),l=s[s.length-1],c=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(u){const _=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${_}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${_}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a}const d=this.resolve(t,r);let p=d==null?void 0:d.res;const S=(d==null?void 0:d.usedKey)||a,b=(d==null?void 0:d.exactUsedKey)||a,f=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,O=r.count!==void 0&&!G(r.count),k=mn.hasDefaultValue(r),T=O?this.pluralResolver.getSuffix(c,r.count,r):"",P=r.ordinal&&O?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",$=O&&!r.ordinal&&r.count===0,I=$&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${T}`]||r[`defaultValue${P}`]||r.defaultValue;let B=p;E&&!p&&k&&(B=I);const H=$i(B),g=Object.prototype.toString.apply(B);if(E&&B&&H&&f.indexOf(g)<0&&!(G(v)&&Array.isArray(B))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,B,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=_,d.usedParams=this.getUsedParamsDetails(r),d):_}if(i){const _=Array.isArray(B),M=_?[]:{},N=_?b:S;for(const D in B)if(Object.prototype.hasOwnProperty.call(B,D)){const Q=`${N}${i}${D}`;k&&!p?M[D]=this.translate(Q,{...r,defaultValue:$i(I)?I[D]:void 0,joinArrays:!1,ns:s}):M[D]=this.translate(Q,{...r,joinArrays:!1,ns:s}),M[D]===Q&&(M[D]=B[D])}p=M}}else if(E&&G(v)&&Array.isArray(p))p=p.join(v),p&&(p=this.extendTranslation(p,t,r,n));else{let _=!1,M=!1;!this.isValidLookup(p)&&k&&(_=!0,p=I),this.isValidLookup(p)||(M=!0,p=a);const D=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:p,Q=k&&I!==p&&this.options.updateMissing;if(M||_||Q){if(this.logger.log(Q?"updateKey":"missingKey",c,l,a,Q?I:p),i){const le=this.resolve(a,{...r,keySeparator:!1});le&&le.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const Ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ae&&Ae[0])for(let le=0;le<Ae.length;le++)Y.push(Ae[le]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(r.lng||this.language):Y.push(r.lng||this.language);const ee=(le,Ce,Z)=>{var lt;const Ne=k&&Z!==p?Z:D;this.options.missingKeyHandler?this.options.missingKeyHandler(le,l,Ce,Ne,Q,r):(lt=this.backendConnector)!=null&&lt.saveMissing&&this.backendConnector.saveMissing(le,l,Ce,Ne,Q,r),this.emit("missingKey",le,l,Ce,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?Y.forEach(le=>{const Ce=this.pluralResolver.getSuffixes(le,r);$&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ce.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ce.push(`${this.options.pluralSeparator}zero`),Ce.forEach(Z=>{ee([le],a+Z,r[`defaultValue${Z}`]||I)})}):ee(Y,a,I))}p=this.extendTranslation(p,t,r,d,n),M&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${a}`),(M||_)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,_?p:void 0))}return o?(d.res=p,d.usedParams=this.getUsedParamsDetails(r),d):p}extendTranslation(t,r,n,o,i){var c,u;var a=this;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const d=G(t)&&(((u=n==null?void 0:n.interpolation)==null?void 0:u.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(d){const b=t.match(this.interpolator.nestingRegexp);p=b&&b.length}let S=n.replace&&!G(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(S={...this.options.interpolation.defaultVariables,...S}),t=this.interpolator.interpolate(t,S,n.lng||this.language||o.usedLng,n),d){const b=t.match(this.interpolator.nestingRegexp),f=b&&b.length;p<f&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var b=arguments.length,f=new Array(b),v=0;v<b;v++)f[v]=arguments[v];return(i==null?void 0:i[0])===f[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${r[0]}`),null):a.translate(...f,r)},n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,l=G(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&n.applyPostProcessor!==!1&&(t=ts.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,i,a,s;return G(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const p=r.count!==void 0&&!G(r.count),S=p&&!r.ordinal&&r.count===0,b=r.context!==void 0&&(G(r.context)||typeof r.context=="number")&&r.context!=="",f=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(v=>{var E,O;this.isValidLookup(n)||(s=v,!_i[`${f[0]}-${v}`]&&((E=this.utils)!=null&&E.hasLoadedNamespace)&&!((O=this.utils)!=null&&O.hasLoadedNamespace(s))&&(_i[`${f[0]}-${v}`]=!0,this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(k=>{var $;if(this.isValidLookup(n))return;a=k;const T=[u];if(($=this.i18nFormat)!=null&&$.addLookupKeys)this.i18nFormat.addLookupKeys(T,u,k,v,r);else{let I;p&&(I=this.pluralResolver.getSuffix(k,r.count,r));const B=`${this.options.pluralSeparator}zero`,H=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(T.push(u+I),r.ordinal&&I.indexOf(H)===0&&T.push(u+I.replace(H,this.options.pluralSeparator)),S&&T.push(u+B)),b){const g=`${u}${this.options.contextSeparator}${r.context}`;T.push(g),p&&(T.push(g+I),r.ordinal&&I.indexOf(H)===0&&T.push(g+I.replace(H,this.options.pluralSeparator)),S&&T.push(g+B))}}let P;for(;P=T.pop();)this.isValidLookup(n)||(i=P,n=this.getResource(k,v,P,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){var i;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!G(t.replace);let o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const i of r)delete o[i]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}class Li{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ot.create("languageUtils")}getScriptPartFromCode(t){if(t=gn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=gn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(G(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),G(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return G(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):G(t)&&i(this.formatLanguageCode(t)),n.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}const Ii={zero:0,one:1,two:2,few:3,many:4,other:5},Mi={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class $f{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ot.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=gn(t==="dev"?"en":t),o=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Mi;if(!t.match(/-|_/))return Mi;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,r)}return this.pluralRulesCache[i]=a,a}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((o,i)=>Ii[o]-Ii[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}}const Ni=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Cf(e,t,r);return!i&&o&&G(r)&&(i=yo(e,r,n),i===void 0&&(i=yo(t,r,n))),i},no=e=>e.replace(/\$/g,"$$$$");class Lf{constructor(){var r;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ot.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.format)||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:p,nestingPrefixEscaped:S,nestingSuffix:b,nestingSuffixEscaped:f,nestingOptionsSeparator:v,maxReplaces:E,alwaysFormat:O}=t.interpolation;this.escape=r!==void 0?r:Rf,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?nr(i):a||"{{",this.suffix=s?nr(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?nr(p):S||nr("$t("),this.nestingSuffix=b?nr(b):f||nr(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=E||1e3,this.alwaysFormat=O!==void 0?O:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>(r==null?void 0:r.source)===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){var S;let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=b=>{if(b.indexOf(this.formatSeparator)<0){const O=Ni(r,l,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,n,{...o,...r,interpolationkey:b}):O}const f=b.split(this.formatSeparator),v=f.shift().trim(),E=f.join(this.formatSeparator).trim();return this.format(Ni(r,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),E,n,{...o,...r,interpolationkey:v})};this.resetRegExp();const u=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((S=o==null?void 0:o.interpolation)==null?void 0:S.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>no(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?no(this.escape(b)):no(b)}].forEach(b=>{for(s=0;i=b.regex.exec(t);){const f=i[1].trim();if(a=c(f),a===void 0)if(typeof u=="function"){const E=u(t,i,o);a=G(E)?E:""}else if(o&&Object.prototype.hasOwnProperty.call(o,f))a="";else if(d){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${t}`),a="";else!G(a)&&!this.useRawValueToEscape&&(a=Ri(a));const v=b.safeValue(a);if(t=t.replace(i[0],v),d?(b.regex.lastIndex+=a.length,b.regex.lastIndex-=i[0].length):b.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let p=`{${d[1]}`;l=d[0],p=this.interpolate(p,a);const S=p.match(/'/g),b=p.match(/"/g);(((S==null?void 0:S.length)??0)%2===0&&!b||b.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),c&&(a={...c,...a})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,f),`${l}${u}${p}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];a={...n},a=a.replace&&!G(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),l=u,c=!0}if(i=r(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&!G(i))return i;G(i)||(i=Ri(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const If=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},or=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=n+JSON.stringify(i);let s=t[a];return s||(s=e(gn(n),o),t[a]=s),s(r)}};class Mf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ot.create("formatter"),this.options=t,this.formats={number:or((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:or((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:or((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:or((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:or((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=or(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{var d;const{formatName:c,formatOptions:u}=If(l);if(this.formats[c]){let p=s;try{const S=((d=o==null?void 0:o.formatParams)==null?void 0:d[o.interpolationkey])||{},b=S.locale||S.lng||o.locale||o.lng||n;p=this.formats[c](s,b,{...u,...o,...S})}catch(S){this.logger.warn(S)}return p}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const Nf=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Df extends Ln{constructor(t,r,n){var i,a;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=ot.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(a=(i=this.backend)==null?void 0:i.init)==null||a.call(i,n,o.backend,o)}queueLoad(t,r,n,o){const i={},a={},s={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{const p=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,u=!1,a[p]===void 0&&(a[p]=!0),i[p]===void 0&&(i[p]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(s[c]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const o=t.split("|"),i=o[0],a=o[1];r&&this.emit("failedLoading",i,a,r),!r&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const s={};this.queue.forEach(l=>{Ef(l.loaded,[i],a),Nf(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,i*2,a)},i);return}a(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,r,s)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();G(t)&&(t=this.languageUtils.toResolveHierarchy(t)),G(r)&&(r=[r]);const i=this.queueLoad(t,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,r,n,o,i){var l,c,u,d,p;let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((d=(u=this.services)==null?void 0:u.utils)!=null&&d.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((p=this.backend)!=null&&p.create){const S={...a,isUpdate:i},b=this.backend.create.bind(this.backend);if(b.length<6)try{let f;b.length===5?f=b(t,r,n,o,S):f=b(t,r,n,o),f&&typeof f.then=="function"?f.then(v=>s(null,v)).catch(s):s(null,f)}catch(f){s(f)}else b(t,r,n,o,s,S)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Di=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),G(e[1])&&(t.defaultValue=e[1]),G(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Fi=e=>{var t,r;return G(e.ns)&&(e.ns=[e.ns]),G(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),G(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Hr=()=>{},Ff=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Lr extends Ln{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Fi(t),this.services={},this.logger=ot,this.modules={external:[]},Ff(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),r.defaultNS==null&&r.ns&&(G(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Di();this.options={...o,...this.options,...Fi(r)},this.options.interpolation={...o.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?ot.init(i(this.modules.logger),this.options):ot.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Mf;const d=new Li(this.options);this.store=new ji(this.options.resources,this.options);const p=this.services;p.logger=ot,p.resourceStore=this.store,p.languageUtils=d,p.pluralResolver=new $f(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(p.formatter=i(u),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new Lf(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new Df(i(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(S){for(var b=arguments.length,f=new Array(b>1?b-1:0),v=1;v<b;v++)f[v-1]=arguments[v];t.emit(S,...f)}),this.modules.languageDetector&&(p.languageDetector=i(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=i(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new mn(this.services,this.options),this.translator.on("*",function(S){for(var b=arguments.length,f=new Array(b>1?b-1:0),v=1;v<b;v++)f[v-1]=arguments[v];t.emit(S,...f)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Hr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=Tr(),c=()=>{const u=(d,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),n(d,p)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t){var i,a;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hr;const o=G(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&s.indexOf(d)<0&&s.push(d)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),(a=(i=this.options.preload)==null?void 0:i.forEach)==null||a.call(i,c=>l(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(c)})}else n(null)}reloadResources(t,r,n){const o=Tr();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Hr),this.services.backendConnector.reload(t,r,i=>{o.resolve(),n(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ts.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const o=Tr();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},s=l=>{var u,d;!t&&!l&&this.services.languageDetector&&(l=[]);const c=G(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),(d=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||d.call(u,c)),this.loadResources(c,p=>{a(p,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),o}getFixedT(t,r,n){var o=this;const i=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=o.options.overloadTranslationOptionHandler([a,s].concat(u))}else l={...s};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const p=o.options.keySeparator||".";let S;return l.keyPrefix&&Array.isArray(a)?S=a.map(b=>`${l.keyPrefix}${p}${b}`):S=l.keyPrefix?`${l.keyPrefix}${p}${a}`:a,o.t(S,l)};return G(t)?i.lng=t:i.lngs=t,i.ns=r,i.keyPrefix=n,i}t(){var o;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(o=this.translator)==null?void 0:o.translate(...r)}exists(){var o;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(o=this.translator)==null?void 0:o.exists(...r)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const s=r.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!o||a(i,t)))}loadNamespaces(t,r){const n=Tr();return this.options.ns?(G(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Tr();G(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}dir(t){var o,i;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new Li(Di());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Lr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hr;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new Lr(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const s=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},Object.keys(l[c]).reduce((u,d)=>(u[d]={...l[c][d]},u),{})),{});i.store=new ji(s,o),i.services.resourceStore=i.store}return i.translator=new mn(i.services,o),i.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(s,...c)}),i.init(o,r),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pe=Lr.createInstance();Pe.createInstance=Lr.createInstance;Pe.createInstance;Pe.dir;Pe.init;Pe.loadResources;Pe.reloadResources;Pe.use;Pe.changeLanguage;Pe.getFixedT;Pe.t;Pe.exists;Pe.setDefaultNamespace;Pe.hasLoadedNamespace;Pe.loadNamespaces;Pe.loadLanguages;const Bf={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base (Roboter)","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physische Robotersteuerung","SafetyBar.ControllerType.Virtual.lb":"Virtuelle Robotersteuerung","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
88
+ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen."},Vf={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical controller","SafetyBar.ControllerType.Virtual.lb":"Virtual controller","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."},rs=Pe.createInstance();rs.use(Cl).init({supportedLngs:["en","de"],resources:{en:{translations:Vf},de:{translations:Bf}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function fr(e){return r=>m.jsx(Uf,{children:m.jsx(e,{...r})})}const Uf=({children:e})=>m.jsx(Te.I18nextProvider,{i18n:rs,children:e}),zf=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("g",{id:"JogMinus"},C.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),Jf=z.forwardRef(zf),Gf=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("g",{id:"JogPlus"},C.createElement("g",{id:"Plus"},C.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),C.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),C.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),Wf=z.forwardRef(Gf);function In(e){z.useEffect(e,[])}function ns(e){In(()=>cr.autorun(e))}function os(e,t,r){In(()=>cr.reaction(e,t,r))}function dr(e){return In(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const bo=fr(ve.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:i,activeJoggingDirection:a,...s})=>{var k,T,P,$,I,B,H;dr(()=>{const g=r(),_=p.current;_&&(_.textContent=g)});const l=j.useTheme(),[c,u]=z.useState(null);z.useEffect(()=>{i&&O()},[i]);const d=a||c,p=z.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const S=d?(k=e.buttonBackgroundColor)==null?void 0:k.pressed:e.borderColor,b={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},f={...b,backgroundColor:(T=e.buttonBackgroundColor)==null?void 0:T.default,":hover":{backgroundColor:(P=e.buttonBackgroundColor)==null?void 0:P.hovered},":active":{backgroundColor:($=e.buttonBackgroundColor)==null?void 0:$.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(I=e.buttonBackgroundColor)==null?void 0:I.disabled,"svg path":{fill:l.palette.action.disabled}}},v={...b,backgroundColor:(B=e.buttonBackgroundColor)==null?void 0:B.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(H=e.buttonBackgroundColor)==null?void 0:H.pressed,"svg path":{fill:l.palette.action.disabled}}};function E(g,_){i||g.button===0&&(u(_),n(_))}function O(){u(null),o()}return m.jsxs(lr,{height:"64px",direction:"row",justifyContent:"center",...s,children:[m.jsx(j.IconButton,{disabled:i,disableRipple:!0,onPointerDown:g=>E(g,"-"),onPointerUp:O,onPointerOut:O,size:"large",sx:{...d==="-"?v:f,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${S??"#fff"}`,borderBottom:`2px solid ${S??"#fff"}`,borderTop:`2px solid ${S??"#fff"}`},children:m.jsx(Jf,{})}),m.jsxs(lr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${S??"#fff"}`,borderTop:`2px solid ${S??"#fff"}`},children:[m.jsx(lr,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...i?{color:l.palette.action.disabled}:{}},...i?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),m.jsx(j.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:p,children:r()})]}),m.jsx(j.IconButton,{disableRipple:!0,disabled:i,onPointerDown:g=>E(g,"+"),onPointerUp:O,onPointerOut:O,size:"large",sx:{...d==="+"?v:f,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${S??"#fff"}`,borderBottom:`2px solid ${S??"#fff"}`,borderTop:`2px solid ${S??"#fff"}`},children:m.jsx(Wf,{})})]})})),Ut=Ru;function Hf(e){return Br("MuiSvgIcon",e)}Fa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kf=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${_e(t)}`,`fontSize${_e(r)}`]};return Lo(o,Hf,n)},qf=ht("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${_e(r.color)}`],t[`fontSize${_e(r.fontSize)}`]]}})(Ut(({theme:e})=>{var t,r,n,o,i,a,s,l,c,u,d,p,S,b;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:f=>!f.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:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,f])=>f&&f.main).map(([f])=>{var v,E;return{props:{color:f},style:{color:(E=(v=(e.vars??e).palette)==null?void 0:v[f])==null?void 0:E.main}}}),{props:{color:"action"},style:{color:(p=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(b=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),yn=C.forwardRef(function(t,r){const n=No({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...S}=n,b=C.isValidElement(o)&&o.type==="svg",f={...n,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b},v={};u||(v.viewBox=p);const E=Kf(f);return m.jsxs(qf,{as:s,className:it(E.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...v,...S,...b&&o.props,ownerState:f,children:[b?o.props.children:o,d?m.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(yn.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});yn.muiName="SvgIcon";function is(e,t){function r(n,o){return m.jsx(yn,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=yn.muiName,C.memo(C.forwardRef(r))}const Yf=is(m.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Zf=is(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Dt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var as=typeof global=="object"&&global&&global.Object===Object&&global,Xf=typeof self=="object"&&self&&self.Object===Object&&self,st=as||Xf||Function("return this")(),oo=function(){return st.Date.now()},Qf=/\s/;function ed(e){for(var t=e.length;t--&&Qf.test(e.charAt(t)););return t}var td=/^\s+/;function rd(e){return e&&e.slice(0,ed(e)+1).replace(td,"")}var kt=st.Symbol,ss=Object.prototype,nd=ss.hasOwnProperty,od=ss.toString,Er=kt?kt.toStringTag:void 0;function id(e){var t=nd.call(e,Er),r=e[Er];try{e[Er]=void 0;var n=!0}catch{}var o=od.call(e);return n&&(t?e[Er]=r:delete e[Er]),o}var ad=Object.prototype,sd=ad.toString;function ld(e){return sd.call(e)}var cd="[object Null]",ud="[object Undefined]",Bi=kt?kt.toStringTag:void 0;function zt(e){return e==null?e===void 0?ud:cd:Bi&&Bi in Object(e)?id(e):ld(e)}function Ft(e){return e!=null&&typeof e=="object"}var fd="[object Symbol]";function Mn(e){return typeof e=="symbol"||Ft(e)&&zt(e)==fd}var Vi=NaN,dd=/^[-+]0x[0-9a-f]+$/i,pd=/^0b[01]+$/i,gd=/^0o[0-7]+$/i,hd=parseInt;function Ui(e){if(typeof e=="number")return e;if(Mn(e))return Vi;if(Dt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Dt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rd(e);var r=pd.test(e);return r||gd.test(e)?hd(e.slice(2),r?2:8):dd.test(e)?Vi:+e}var md="Expected a function",yd=Math.max,bd=Math.min;function Sd(e,t,r){var n,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(md);t=Ui(t)||0,Dt(r)&&(u=!!r.leading,d="maxWait"in r,i=d?yd(Ui(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p);function S($){var I=n,B=o;return n=o=void 0,c=$,a=e.apply(B,I),a}function b($){return c=$,s=setTimeout(E,t),u?S($):a}function f($){var I=$-l,B=$-c,H=t-I;return d?bd(H,i-B):H}function v($){var I=$-l,B=$-c;return l===void 0||I>=t||I<0||d&&B>=i}function E(){var $=oo();if(v($))return O($);s=setTimeout(E,f($))}function O($){return s=void 0,p&&n?S($):(n=o=void 0,a)}function k(){s!==void 0&&clearTimeout(s),c=0,n=l=o=s=void 0}function T(){return s===void 0?a:O(oo())}function P(){var $=oo(),I=v($);if(n=arguments,o=this,l=$,I){if(s===void 0)return b(l);if(d)return clearTimeout(s),s=setTimeout(E,t),S(l)}return s===void 0&&(s=setTimeout(E,t)),a}return P.cancel=k,P.flush=T,P}var vd="Expected a function";function xd(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(vd);return Dt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Sd(e,t,{leading:n,maxWait:t,trailing:o})}const ls=fr(ve.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:i,...a})=>{var k,T,P,$,I,B,H;const{t:s}=Te.useTranslation(),[l,c]=z.useState(),u=j.useTheme(),d={background:(k=u.palette.backgroundPaperElevation)==null?void 0:k[4],color:(T=u.palette.backgroundPaperElevation)==null?void 0:T[11]},p=ve.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}})),S=xd(()=>{c(o())},50);dr(S);function b(g){g.button===0&&p.startJogging("-")}function f(g){g.button===0&&p.startJogging("+")}function v(g){p.stopJogging()}function E(g){p.stopJogging()}function O(g,_=1){if(g===void 0||isNaN(g))return"";const M=s("General.degree.variable",{amount:g.toFixed(_)});return g>0&&_===0?`+${M}`:M}return m.jsxs(lr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...a,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(P=u.palette.backgroundPaperElevation)==null?void 0:P[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:($=u.palette.backgroundPaperElevation)==null?void 0:$[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(I=u.palette.backgroundPaperElevation)==null?void 0:I[9]},"&:active":{...d}}},children:[m.jsx(j.IconButton,{onPointerDown:b,onPointerUp:v,onPointerOut:E,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...p.activeJoggingDir==="-"?d:{}},children:m.jsx(Yf,{sx:{pointerEvents:"none"}})}),m.jsxs(lr,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(B=u.palette.backgroundPaperElevation)==null?void 0:B[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[m.jsx(j.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:O(l)}),m.jsx(j.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:i?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:i?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(H=u.palette.backgroundPaperElevation)==null?void 0:H[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:O(r,0)},{value:n,label:O(n,0)}]})]}),m.jsx(j.IconButton,{onPointerDown:f,onPointerUp:v,onPointerOut:E,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...p.activeJoggingDir==="+"?d:{}},children:m.jsx(Zf,{sx:{pointerEvents:"none"}})})]})}));function cs(e,t){return function(){return e.apply(t,arguments)}}const{toString:wd}=Object.prototype,{getPrototypeOf:Do}=Object,Nn=(e=>t=>{const r=wd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ze=e=>(e=e.toLowerCase(),t=>Nn(t)===e),Dn=e=>t=>typeof t===e,{isArray:pr}=Array,Ir=Dn("undefined");function Td(e){return e!==null&&!Ir(e)&&e.constructor!==null&&!Ir(e.constructor)&&Be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const us=Ze("ArrayBuffer");function Ed(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&us(e.buffer),t}const Cd=Dn("string"),Be=Dn("function"),fs=Dn("number"),Fn=e=>e!==null&&typeof e=="object",Od=e=>e===!0||e===!1,on=e=>{if(Nn(e)!=="object")return!1;const t=Do(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Rd=Ze("Date"),Ad=Ze("File"),kd=Ze("Blob"),Pd=Ze("FileList"),jd=e=>Fn(e)&&Be(e.pipe),_d=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Be(e.append)&&((t=Nn(e))==="formdata"||t==="object"&&Be(e.toString)&&e.toString()==="[object FormData]"))},$d=Ze("URLSearchParams"),[Ld,Id,Md,Nd]=["ReadableStream","Request","Response","Headers"].map(Ze),Dd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),pr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function ds(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const It=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ps=e=>!Ir(e)&&e!==It;function So(){const{caseless:e}=ps(this)&&this||{},t={},r=(n,o)=>{const i=e&&ds(t,o)||o;on(t[i])&&on(n)?t[i]=So(t[i],n):on(n)?t[i]=So({},n):pr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Vr(arguments[n],r);return t}const Fd=(e,t,r,{allOwnKeys:n}={})=>(Vr(t,(o,i)=>{r&&Be(o)?e[i]=cs(o,r):e[i]=o},{allOwnKeys:n}),e),Bd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vd=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ud=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&Do(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},zd=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Jd=e=>{if(!e)return null;if(pr(e))return e;let t=e.length;if(!fs(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Gd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Do(Uint8Array)),Wd=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Hd=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Kd=Ze("HTMLFormElement"),qd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),zi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Yd=Ze("RegExp"),gs=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Vr(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Zd=e=>{gs(e,(t,r)=>{if(Be(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Be(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Xd=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return pr(e)?n(e):n(String(e).split(t)),r},Qd=()=>{},ep=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function tp(e){return!!(e&&Be(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rp=e=>{const t=new Array(10),r=(n,o)=>{if(Fn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=pr(n)?[]:{};return Vr(n,(a,s)=>{const l=r(a,o+1);!Ir(l)&&(i[s]=l)}),t[o]=void 0,i}}return n};return r(e,0)},np=Ze("AsyncFunction"),op=e=>e&&(Fn(e)||Be(e))&&Be(e.then)&&Be(e.catch),hs=((e,t)=>e?setImmediate:t?((r,n)=>(It.addEventListener("message",({source:o,data:i})=>{o===It&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),It.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Be(It.postMessage)),ip=typeof queueMicrotask<"u"?queueMicrotask.bind(It):typeof process<"u"&&process.nextTick||hs,x={isArray:pr,isArrayBuffer:us,isBuffer:Td,isFormData:_d,isArrayBufferView:Ed,isString:Cd,isNumber:fs,isBoolean:Od,isObject:Fn,isPlainObject:on,isReadableStream:Ld,isRequest:Id,isResponse:Md,isHeaders:Nd,isUndefined:Ir,isDate:Rd,isFile:Ad,isBlob:kd,isRegExp:Yd,isFunction:Be,isStream:jd,isURLSearchParams:$d,isTypedArray:Gd,isFileList:Pd,forEach:Vr,merge:So,extend:Fd,trim:Dd,stripBOM:Bd,inherits:Vd,toFlatObject:Ud,kindOf:Nn,kindOfTest:Ze,endsWith:zd,toArray:Jd,forEachEntry:Wd,matchAll:Hd,isHTMLForm:Kd,hasOwnProperty:zi,hasOwnProp:zi,reduceDescriptors:gs,freezeMethods:Zd,toObjectSet:Xd,toCamelCase:qd,noop:Qd,toFiniteNumber:ep,findKey:ds,global:It,isContextDefined:ps,isSpecCompliantForm:tp,toJSONObject:rp,isAsyncFn:np,isThenable:op,setImmediate:hs,asap:ip};function W(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}x.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.status}}});const ms=W.prototype,ys={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ys[e]={value:e}});Object.defineProperties(W,ys);Object.defineProperty(ms,"isAxiosError",{value:!0});W.from=(e,t,r,n,o,i)=>{const a=Object.create(ms);return x.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),W.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ap=null;function vo(e){return x.isPlainObject(e)||x.isArray(e)}function bs(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ji(e,t,r){return e?e.concat(t).map(function(o,i){return o=bs(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function sp(e){return x.isArray(e)&&!e.some(vo)}const lp=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Bn(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!x.isUndefined(v[f])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(x.isDate(b))return b.toISOString();if(!l&&x.isBlob(b))throw new W("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(b)||x.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function u(b,f,v){let E=b;if(b&&!v&&typeof b=="object"){if(x.endsWith(f,"{}"))f=n?f:f.slice(0,-2),b=JSON.stringify(b);else if(x.isArray(b)&&sp(b)||(x.isFileList(b)||x.endsWith(f,"[]"))&&(E=x.toArray(b)))return f=bs(f),E.forEach(function(k,T){!(x.isUndefined(k)||k===null)&&t.append(a===!0?Ji([f],T,i):a===null?f:f+"[]",c(k))}),!1}return vo(b)?!0:(t.append(Ji(v,f,i),c(b)),!1)}const d=[],p=Object.assign(lp,{defaultVisitor:u,convertValue:c,isVisitable:vo});function S(b,f){if(!x.isUndefined(b)){if(d.indexOf(b)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(b),x.forEach(b,function(E,O){(!(x.isUndefined(E)||E===null)&&o.call(t,E,x.isString(O)?O.trim():O,f,p))===!0&&S(E,f?f.concat(O):[O])}),d.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Gi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fo(e,t){this._pairs=[],e&&Bn(e,this,t)}const Ss=Fo.prototype;Ss.append=function(t,r){this._pairs.push([t,r])};Ss.toString=function(t){const r=t?function(n){return t.call(this,n,Gi)}:Gi;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function cp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vs(e,t,r){if(!t)return e;const n=r&&r.encode||cp;x.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=x.isURLSearchParams(t)?t.toString():new Fo(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Wi{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const xs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},up=typeof URLSearchParams<"u"?URLSearchParams:Fo,fp=typeof FormData<"u"?FormData:null,dp=typeof Blob<"u"?Blob:null,pp={isBrowser:!0,classes:{URLSearchParams:up,FormData:fp,Blob:dp},protocols:["http","https","file","blob","url","data"]},Bo=typeof window<"u"&&typeof document<"u",xo=typeof navigator=="object"&&navigator||void 0,gp=Bo&&(!xo||["ReactNative","NativeScript","NS"].indexOf(xo.product)<0),hp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mp=Bo&&window.location.href||"http://localhost",yp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bo,hasStandardBrowserEnv:gp,hasStandardBrowserWebWorkerEnv:hp,navigator:xo,origin:mp},Symbol.toStringTag,{value:"Module"})),ke={...yp,...pp};function bp(e,t){return Bn(e,new ke.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return ke.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Sp(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vp(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function ws(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=r.length;return a=!a&&x.isArray(o)?o.length:a,l?(x.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!x.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&x.isArray(o[a])&&(o[a]=vp(o[a])),!s)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Sp(n),o,r,0)}),r}return null}function xp(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ur={transitional:xs,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(ws(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return bp(t,this.formSerializer).toString();if((s=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bn(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),xp(t)):t}],transformResponse:[function(t){const r=this.transitional||Ur.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{Ur.headers[e]={}});const wp=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Tp=e=>{const t={};let r,n,o;return e&&e.split(`
89
+ `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&wp[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Hi=Symbol("internals");function Cr(e){return e&&String(e).trim().toLowerCase()}function an(e){return e===!1||e==null?e:x.isArray(e)?e.map(an):String(e)}function Ep(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Cp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function io(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function Op(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Rp(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let Me=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,l,c){const u=Cr(l);if(!u)throw new Error("header name must be a non-empty string");const d=x.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=an(s))}const a=(s,l)=>x.forEach(s,(c,u)=>i(c,u,l));if(x.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(x.isString(t)&&(t=t.trim())&&!Cp(t))a(Tp(t),r);else if(x.isHeaders(t))for(const[s,l]of t.entries())i(l,s,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Cr(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Ep(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Cr(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||io(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=Cr(a),a){const s=x.findKey(n,a);s&&(!r||io(n,n[s],s,r))&&(delete n[s],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||io(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,i)=>{const a=x.findKey(n,i);if(a){r[a]=an(o),delete r[i];return}const s=t?Op(i):String(i).trim();s!==i&&delete r[i],r[s]=an(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
90
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Hi]=this[Hi]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=Cr(a);n[s]||(Rp(o,a),n[s]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}};Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Me.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Me);function ao(e,t){const r=this||Ur,n=t||r,o=Me.from(n.headers);let i=n.data;return x.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ts(e){return!!(e&&e.__CANCEL__)}function gr(e,t,r){W.call(this,e??"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(gr,W,{__CANCEL__:!0});function Es(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ap(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kp(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];a||(a=c),r[o]=l,n[o]=c;let d=i,p=0;for(;d!==o;)p+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const S=u&&c-u;return S?Math.round(p*1e3/S):void 0}}function Pp(e,t){let r=0,n=1e3/t,o,i;const a=(c,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},n-d)))},()=>o&&a(o)]}const bn=(e,t,r=3)=>{let n=0;const o=kp(50,250);return Pp(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-n,c=o(l),u=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},r)},Ki=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},qi=e=>(...t)=>x.asap(()=>e(...t)),jp=ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ke.origin),ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent)):()=>!0,_p=ke.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),x.isString(n)&&a.push("path="+n),x.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $p(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Lp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Cs(e,t,r){let n=!$p(t);return e&&n||r==!1?Lp(e,t):t}const Yi=e=>e instanceof Me?{...e}:e;function Bt(e,t){t=t||{};const r={};function n(c,u,d,p){return x.isPlainObject(c)&&x.isPlainObject(u)?x.merge.call({caseless:p},c,u):x.isPlainObject(u)?x.merge({},u):x.isArray(u)?u.slice():u}function o(c,u,d,p){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c,d,p)}else return n(c,u,d,p)}function i(c,u){if(!x.isUndefined(u))return n(void 0,u)}function a(c,u){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>o(Yi(c),Yi(u),d,!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,p=d(e[u],t[u],u);x.isUndefined(p)&&d!==s||(r[u]=p)}),r}const Os=e=>{const t=Bt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Me.from(a),t.url=vs(Cs(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(x.isFormData(r)){if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ke.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&jp(t.url))){const c=o&&i&&_p.read(i);c&&a.set(o,c)}return t},Ip=typeof XMLHttpRequest<"u",Mp=Ip&&function(e){return new Promise(function(r,n){const o=Os(e);let i=o.data;const a=Me.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,d,p,S,b;function f(){S&&S(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function E(){if(!v)return;const k=Me.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),P={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:k,config:e,request:v};Es(function(I){r(I),f()},function(I){n(I),f()},P),v=null}"onloadend"in v?v.onloadend=E:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(E)},v.onabort=function(){v&&(n(new W("Request aborted",W.ECONNABORTED,e,v)),v=null)},v.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let T=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const P=o.transitional||xs;o.timeoutErrorMessage&&(T=o.timeoutErrorMessage),n(new W(T,P.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&x.forEach(a.toJSON(),function(T,P){v.setRequestHeader(P,T)}),x.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),c&&([p,b]=bn(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([d,S]=bn(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(u=k=>{v&&(n(!k||k.type?new gr(null,e,v):k),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const O=Ap(o.url);if(O&&ke.protocols.indexOf(O)===-1){n(new W("Unsupported protocol "+O+":",W.ERR_BAD_REQUEST,e));return}v.send(i||null)})},Np=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof W?u:new gr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>x.asap(s),l}},Dp=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Fp=async function*(e,t){for await(const r of Bp(e))yield*Dp(r,t)},Bp=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Zi=(e,t,r,n)=>{const o=Fp(e,t);let i=0,a,s=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let d=u.byteLength;if(r){let p=i+=d;r(p)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},Vn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rs=Vn&&typeof ReadableStream=="function",Vp=Vn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),As=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Up=Rs&&As(()=>{let e=!1;const t=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Xi=64*1024,wo=Rs&&As(()=>x.isReadableStream(new Response("").body)),Sn={stream:wo&&(e=>e.body)};Vn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sn[t]&&(Sn[t]=x.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const zp=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(ke.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await Vp(e)).byteLength},Jp=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??zp(t)},Gp=Vn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Os(e);c=c?(c+"").toLowerCase():"text";let S=Np([o,i&&i.toAbortSignal()],a),b;const f=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let v;try{if(l&&Up&&r!=="get"&&r!=="head"&&(v=await Jp(u,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),$;if(x.isFormData(n)&&($=P.headers.get("content-type"))&&u.setContentType($),P.body){const[I,B]=Ki(v,bn(qi(l)));n=Zi(P.body,Xi,I,B)}}x.isString(d)||(d=d?"include":"omit");const E="credentials"in Request.prototype;b=new Request(t,{...p,signal:S,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:E?d:void 0});let O=await fetch(b);const k=wo&&(c==="stream"||c==="response");if(wo&&(s||k&&f)){const P={};["status","statusText","headers"].forEach(H=>{P[H]=O[H]});const $=x.toFiniteNumber(O.headers.get("content-length")),[I,B]=s&&Ki($,bn(qi(s),!0))||[];O=new Response(Zi(O.body,Xi,I,()=>{B&&B(),f&&f()}),P)}c=c||"text";let T=await Sn[x.findKey(Sn,c)||"text"](O,e);return!k&&f&&f(),await new Promise((P,$)=>{Es(P,$,{data:T,headers:Me.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:b})})}catch(E){throw f&&f(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,b),{cause:E.cause||E}):W.from(E,E&&E.code,e,b)}}),To={http:ap,xhr:Mp,fetch:Gp};x.forEach(To,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qi=e=>`- ${e}`,Wp=e=>x.isFunction(e)||e===null||e===!1,ks={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Wp(r)&&(n=To[(a=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
91
+ `+i.map(Qi).join(`
92
+ `):" "+Qi(i[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:To};function so(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gr(null,e)}function ea(e){return so(e),e.headers=Me.from(e.headers),e.data=ao.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ks.getAdapter(e.adapter||Ur.adapter)(e).then(function(n){return so(e),n.data=ao.call(e,e.transformResponse,n),n.headers=Me.from(n.headers),n},function(n){return Ts(n)||(so(e),n&&n.response&&(n.response.data=ao.call(e,e.transformResponse,n.response),n.response.headers=Me.from(n.response.headers))),Promise.reject(n)})}const Ps="1.8.1",Un={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Un[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ta={};Un.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ps+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new W(o(a," has been removed"+(r?" in "+r:"")),W.ERR_DEPRECATED);return r&&!ta[a]&&(ta[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};Un.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Hp(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new W("option "+i+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const sn={assertOptions:Hp,validators:Un},tt=sn.validators;let Mt=class{constructor(t){this.defaults=t,this.interceptors={request:new Wi,response:new Wi}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
93
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Bt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&sn.assertOptions(n,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:sn.assertOptions(o,{encode:tt.function,serialize:tt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),sn.assertOptions(r,{baseUrl:tt.spelling("baseURL"),withXsrfToken:tt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&x.merge(i.common,i[r.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),r.headers=Me.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(l=l&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});const c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,d=0,p;if(!l){const b=[ea.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,c),p=b.length,u=Promise.resolve(r);d<p;)u=u.then(b[d++],b[d++]);return u}p=s.length;let S=r;for(d=0;d<p;){const b=s[d++],f=s[d++];try{S=b(S)}catch(v){f.call(this,v);break}}try{u=ea.call(this,S)}catch(b){return Promise.reject(b)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Bt(this.defaults,t);const r=Cs(t.baseURL,t.url,t.allowAbsoluteUrls);return vs(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){Mt.prototype[t]=function(r,n){return this.request(Bt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(Bt(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Mt.prototype[t]=r(),Mt.prototype[t+"Form"]=r(!0)});let Kp=class js{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new gr(i,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new js(function(o){t=o}),cancel:t}}};function qp(e){return function(r){return e.apply(null,r)}}function Yp(e){return x.isObject(e)&&e.isAxiosError===!0}const Eo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Eo).forEach(([e,t])=>{Eo[t]=e});function _s(e){const t=new Mt(e),r=cs(Mt.prototype.request,t);return x.extend(r,Mt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return _s(Bt(e,o))},r}const xe=_s(Ur);xe.Axios=Mt;xe.CanceledError=gr;xe.CancelToken=Kp;xe.isCancel=Ts;xe.VERSION=Ps;xe.toFormData=Bn;xe.AxiosError=W;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=qp;xe.isAxiosError=Yp;xe.mergeConfig=Bt;xe.AxiosHeaders=Me;xe.formToJSON=e=>ws(x.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=ks.getAdapter;xe.HttpStatusCode=Eo;xe.default=xe;const{Axios:Ky,AxiosError:ra,CanceledError:qy,isCancel:Yy,CancelToken:Zy,VERSION:Xy,all:Qy,Cancel:eb,isAxiosError:tb,spread:rb,toFormData:nb,AxiosHeaders:ob,HttpStatusCode:ib,formToJSON:ab,getAdapter:sb,mergeConfig:lb}=xe;function Zp(e){try{return JSON.stringify(e)}catch{return}}function Xp(e,t){throw new Error(t+` ${JSON.stringify(e)}`)}function Qp(e){var t,r,n,o;return e instanceof ra&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof ra&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${Zp(e)||e}`}const Vo=e=>{const t=e.softTimeout||3e3,[r,n]=z.useState(!1),o=j.useTheme();return z.useEffect(()=>{const i=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(i)}),m.jsx(j.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?m.jsx($s,{loadingMessage:e.message,error:e.error}):m.jsxs(m.Fragment,{children:[m.jsx(j.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&m.jsx("div",{children:e.message}),m.jsx(j.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},$s=e=>{const t=Qp(e.error),r=e.error instanceof Error?e.error.stack:null,n=j.useTheme();return m.jsxs(j.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${jo.lowerFirst(j.capitalize(e.loadingMessage))} - `:"")+t,m.jsx("br",{}),r&&m.jsx("pre",{children:r})]})},eg=({title:e,titleId:t,...r},n)=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),tg=z.forwardRef(eg),rg=({title:e,titleId:t,...r},n)=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),ng=z.forwardRef(rg),og=({title:e,titleId:t,...r},n)=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),ig=z.forwardRef(og),ag=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),sg=z.forwardRef(ag);function lg(){this.__data__=[],this.size=0}function Ls(e,t){return e===t||e!==e&&t!==t}function zn(e,t){for(var r=e.length;r--;)if(Ls(e[r][0],t))return r;return-1}var cg=Array.prototype,ug=cg.splice;function fg(e){var t=this.__data__,r=zn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ug.call(t,r,1),--this.size,!0}function dg(e){var t=this.__data__,r=zn(t,e);return r<0?void 0:t[r][1]}function pg(e){return zn(this.__data__,e)>-1}function gg(e,t){var r=this.__data__,n=zn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function mt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mt.prototype.clear=lg;mt.prototype.delete=fg;mt.prototype.get=dg;mt.prototype.has=pg;mt.prototype.set=gg;function hg(){this.__data__=new mt,this.size=0}function mg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function yg(e){return this.__data__.get(e)}function bg(e){return this.__data__.has(e)}var Sg="[object AsyncFunction]",vg="[object Function]",xg="[object GeneratorFunction]",wg="[object Proxy]";function Is(e){if(!Dt(e))return!1;var t=zt(e);return t==vg||t==xg||t==Sg||t==wg}var lo=st["__core-js_shared__"],na=function(){var e=/[^.]+$/.exec(lo&&lo.keys&&lo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Tg(e){return!!na&&na in e}var Eg=Function.prototype,Cg=Eg.toString;function Jt(e){if(e!=null){try{return Cg.call(e)}catch{}try{return e+""}catch{}}return""}var Og=/[\\^$.*+?()[\]{}|]/g,Rg=/^\[object .+?Constructor\]$/,Ag=Function.prototype,kg=Object.prototype,Pg=Ag.toString,jg=kg.hasOwnProperty,_g=RegExp("^"+Pg.call(jg).replace(Og,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $g(e){if(!Dt(e)||Tg(e))return!1;var t=Is(e)?_g:Rg;return t.test(Jt(e))}function Lg(e,t){return e==null?void 0:e[t]}function Gt(e,t){var r=Lg(e,t);return $g(r)?r:void 0}var Mr=Gt(st,"Map"),Nr=Gt(Object,"create");function Ig(){this.__data__=Nr?Nr(null):{},this.size=0}function Mg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ng="__lodash_hash_undefined__",Dg=Object.prototype,Fg=Dg.hasOwnProperty;function Bg(e){var t=this.__data__;if(Nr){var r=t[e];return r===Ng?void 0:r}return Fg.call(t,e)?t[e]:void 0}var Vg=Object.prototype,Ug=Vg.hasOwnProperty;function zg(e){var t=this.__data__;return Nr?t[e]!==void 0:Ug.call(t,e)}var Jg="__lodash_hash_undefined__";function Gg(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Nr&&t===void 0?Jg:t,this}function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vt.prototype.clear=Ig;Vt.prototype.delete=Mg;Vt.prototype.get=Bg;Vt.prototype.has=zg;Vt.prototype.set=Gg;function Wg(){this.size=0,this.__data__={hash:new Vt,map:new(Mr||mt),string:new Vt}}function Hg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Jn(e,t){var r=e.__data__;return Hg(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Kg(e){var t=Jn(this,e).delete(e);return this.size-=t?1:0,t}function qg(e){return Jn(this,e).get(e)}function Yg(e){return Jn(this,e).has(e)}function Zg(e,t){var r=Jn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}yt.prototype.clear=Wg;yt.prototype.delete=Kg;yt.prototype.get=qg;yt.prototype.has=Yg;yt.prototype.set=Zg;var Xg=200;function Qg(e,t){var r=this.__data__;if(r instanceof mt){var n=r.__data__;if(!Mr||n.length<Xg-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new yt(n)}return r.set(e,t),this.size=r.size,this}function gt(e){var t=this.__data__=new mt(e);this.size=t.size}gt.prototype.clear=hg;gt.prototype.delete=mg;gt.prototype.get=yg;gt.prototype.has=bg;gt.prototype.set=Qg;var eh="__lodash_hash_undefined__";function th(e){return this.__data__.set(e,eh),this}function rh(e){return this.__data__.has(e)}function vn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new yt;++t<r;)this.add(e[t])}vn.prototype.add=vn.prototype.push=th;vn.prototype.has=rh;function nh(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function oh(e,t){return e.has(t)}var ih=1,ah=2;function Ms(e,t,r,n,o,i){var a=r&ih,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,S=r&ah?new vn:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var b=e[d],f=t[d];if(n)var v=a?n(f,b,d,t,e,i):n(b,f,d,e,t,i);if(v!==void 0){if(v)continue;p=!1;break}if(S){if(!nh(t,function(E,O){if(!oh(S,O)&&(b===E||o(b,E,r,n,i)))return S.push(O)})){p=!1;break}}else if(!(b===f||o(b,f,r,n,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var oa=st.Uint8Array;function sh(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function lh(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ch=1,uh=2,fh="[object Boolean]",dh="[object Date]",ph="[object Error]",gh="[object Map]",hh="[object Number]",mh="[object RegExp]",yh="[object Set]",bh="[object String]",Sh="[object Symbol]",vh="[object ArrayBuffer]",xh="[object DataView]",ia=kt?kt.prototype:void 0,co=ia?ia.valueOf:void 0;function wh(e,t,r,n,o,i,a){switch(r){case xh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case vh:return!(e.byteLength!=t.byteLength||!i(new oa(e),new oa(t)));case fh:case dh:case hh:return Ls(+e,+t);case ph:return e.name==t.name&&e.message==t.message;case mh:case bh:return e==t+"";case gh:var s=sh;case yh:var l=n&ch;if(s||(s=lh),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=uh,a.set(e,t);var u=Ms(s(e),s(t),n,o,i,a);return a.delete(e),u;case Sh:if(co)return co.call(e)==co.call(t)}return!1}function Th(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var at=Array.isArray;function Eh(e,t,r){var n=t(e);return at(e)?n:Th(n,r(e))}function Ch(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function Oh(){return[]}var Rh=Object.prototype,Ah=Rh.propertyIsEnumerable,aa=Object.getOwnPropertySymbols,kh=aa?function(e){return e==null?[]:(e=Object(e),Ch(aa(e),function(t){return Ah.call(e,t)}))}:Oh;function Ph(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var jh="[object Arguments]";function sa(e){return Ft(e)&&zt(e)==jh}var Ns=Object.prototype,_h=Ns.hasOwnProperty,$h=Ns.propertyIsEnumerable,Ds=sa(function(){return arguments}())?sa:function(e){return Ft(e)&&_h.call(e,"callee")&&!$h.call(e,"callee")};function Lh(){return!1}var Fs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,la=Fs&&typeof module=="object"&&module&&!module.nodeType&&module,Ih=la&&la.exports===Fs,ca=Ih?st.Buffer:void 0,Mh=ca?ca.isBuffer:void 0,Co=Mh||Lh,Nh=9007199254740991,Dh=/^(?:0|[1-9]\d*)$/;function Bs(e,t){var r=typeof e;return t=t??Nh,!!t&&(r=="number"||r!="symbol"&&Dh.test(e))&&e>-1&&e%1==0&&e<t}var Fh=9007199254740991;function Uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fh}var Bh="[object Arguments]",Vh="[object Array]",Uh="[object Boolean]",zh="[object Date]",Jh="[object Error]",Gh="[object Function]",Wh="[object Map]",Hh="[object Number]",Kh="[object Object]",qh="[object RegExp]",Yh="[object Set]",Zh="[object String]",Xh="[object WeakMap]",Qh="[object ArrayBuffer]",em="[object DataView]",tm="[object Float32Array]",rm="[object Float64Array]",nm="[object Int8Array]",om="[object Int16Array]",im="[object Int32Array]",am="[object Uint8Array]",sm="[object Uint8ClampedArray]",lm="[object Uint16Array]",cm="[object Uint32Array]",ce={};ce[tm]=ce[rm]=ce[nm]=ce[om]=ce[im]=ce[am]=ce[sm]=ce[lm]=ce[cm]=!0;ce[Bh]=ce[Vh]=ce[Qh]=ce[Uh]=ce[em]=ce[zh]=ce[Jh]=ce[Gh]=ce[Wh]=ce[Hh]=ce[Kh]=ce[qh]=ce[Yh]=ce[Zh]=ce[Xh]=!1;function um(e){return Ft(e)&&Uo(e.length)&&!!ce[zt(e)]}function fm(e){return function(t){return e(t)}}var Vs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pr=Vs&&typeof module=="object"&&module&&!module.nodeType&&module,dm=Pr&&Pr.exports===Vs,uo=dm&&as.process,ua=function(){try{var e=Pr&&Pr.require&&Pr.require("util").types;return e||uo&&uo.binding&&uo.binding("util")}catch{}}(),fa=ua&&ua.isTypedArray,Us=fa?fm(fa):um,pm=Object.prototype,gm=pm.hasOwnProperty;function hm(e,t){var r=at(e),n=!r&&Ds(e),o=!r&&!n&&Co(e),i=!r&&!n&&!o&&Us(e),a=r||n||o||i,s=a?Ph(e.length,String):[],l=s.length;for(var c in e)gm.call(e,c)&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Bs(c,l)))&&s.push(c);return s}var mm=Object.prototype;function ym(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||mm;return e===r}function bm(e,t){return function(r){return e(t(r))}}var Sm=bm(Object.keys,Object),vm=Object.prototype,xm=vm.hasOwnProperty;function wm(e){if(!ym(e))return Sm(e);var t=[];for(var r in Object(e))xm.call(e,r)&&r!="constructor"&&t.push(r);return t}function zs(e){return e!=null&&Uo(e.length)&&!Is(e)}function zo(e){return zs(e)?hm(e):wm(e)}function da(e){return Eh(e,zo,kh)}var Tm=1,Em=Object.prototype,Cm=Em.hasOwnProperty;function Om(e,t,r,n,o,i){var a=r&Tm,s=da(e),l=s.length,c=da(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:Cm.call(t,p)))return!1}var S=i.get(e),b=i.get(t);if(S&&b)return S==t&&b==e;var f=!0;i.set(e,t),i.set(t,e);for(var v=a;++d<l;){p=s[d];var E=e[p],O=t[p];if(n)var k=a?n(O,E,p,t,e,i):n(E,O,p,e,t,i);if(!(k===void 0?E===O||o(E,O,r,n,i):k)){f=!1;break}v||(v=p=="constructor")}if(f&&!v){var T=e.constructor,P=t.constructor;T!=P&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof P=="function"&&P instanceof P)&&(f=!1)}return i.delete(e),i.delete(t),f}var Oo=Gt(st,"DataView"),Ro=Gt(st,"Promise"),Ao=Gt(st,"Set"),ko=Gt(st,"WeakMap"),pa="[object Map]",Rm="[object Object]",ga="[object Promise]",ha="[object Set]",ma="[object WeakMap]",ya="[object DataView]",Am=Jt(Oo),km=Jt(Mr),Pm=Jt(Ro),jm=Jt(Ao),_m=Jt(ko),Et=zt;(Oo&&Et(new Oo(new ArrayBuffer(1)))!=ya||Mr&&Et(new Mr)!=pa||Ro&&Et(Ro.resolve())!=ga||Ao&&Et(new Ao)!=ha||ko&&Et(new ko)!=ma)&&(Et=function(e){var t=zt(e),r=t==Rm?e.constructor:void 0,n=r?Jt(r):"";if(n)switch(n){case Am:return ya;case km:return pa;case Pm:return ga;case jm:return ha;case _m:return ma}return t});var $m=1,ba="[object Arguments]",Sa="[object Array]",Kr="[object Object]",Lm=Object.prototype,va=Lm.hasOwnProperty;function Im(e,t,r,n,o,i){var a=at(e),s=at(t),l=a?Sa:Et(e),c=s?Sa:Et(t);l=l==ba?Kr:l,c=c==ba?Kr:c;var u=l==Kr,d=c==Kr,p=l==c;if(p&&Co(e)){if(!Co(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new gt),a||Us(e)?Ms(e,t,r,n,o,i):wh(e,t,l,r,n,o,i);if(!(r&$m)){var S=u&&va.call(e,"__wrapped__"),b=d&&va.call(t,"__wrapped__");if(S||b){var f=S?e.value():e,v=b?t.value():t;return i||(i=new gt),o(f,v,r,n,i)}}return p?(i||(i=new gt),Om(e,t,r,n,o,i)):!1}function Gn(e,t,r,n,o){return e===t?!0:e==null||t==null||!Ft(e)&&!Ft(t)?e!==e&&t!==t:Im(e,t,r,n,Gn,o)}function Mm(e,t){return Gn(e,t)}const Js=({store:e})=>{const{t}=Te.useTranslation(),[r,n]=z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=z.useRef(r);dr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;Mm(o.current,a)||(o.current=a,n(a))});const i=[];for(const[a,s]of r.entries())s&&i.push(a);return m.jsx(j.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",minHeight:"1.5rem",visibility:i.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(a=>a+1).join(", ")})})},Nm=j.styled(j.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function qr({labelValue:e,...t}){return m.jsxs(Nm,{fullWidth:!0,variant:"filled",children:[m.jsx(j.InputLabel,{id:t.labelId,children:e}),m.jsx(j.Select,{...t})]})}var xa=function(){try{var e=Gt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Dm(e,t,r){t=="__proto__"&&xa?xa(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Fm(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function Bm(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[++o];if(r(i[l],l,i)===!1)break}return t}}var Vm=Bm();function Um(e,t){return e&&Vm(e,t,zo)}function zm(e,t){return function(r,n){if(r==null)return r;if(!zs(r))return e(r,n);for(var o=r.length,i=-1,a=Object(r);++i<o&&n(a[i],i,a)!==!1;);return r}}var Jm=zm(Um);function Gm(e,t,r,n){return Jm(e,function(o,i,a){t(n,o,r(o),a)}),n}var Wm=1,Hm=2;function Km(e,t,r,n){var o=r.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var a=r[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=r[o];var s=a[0],l=e[s],c=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var u=new gt,d;if(!(d===void 0?Gn(c,l,Wm|Hm,n,u):d))return!1}}return!0}function Gs(e){return e===e&&!Dt(e)}function qm(e){for(var t=zo(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Gs(o)]}return t}function Ws(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Ym(e){var t=qm(e);return t.length==1&&t[0][2]?Ws(t[0][0],t[0][1]):function(r){return r===e||Km(r,e,t)}}var Zm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xm=/^\w*$/;function Jo(e,t){if(at(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Mn(e)?!0:Xm.test(e)||!Zm.test(e)||t!=null&&e in Object(t)}var Qm="Expected a function";function Go(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Qm);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Go.Cache||yt),r}Go.Cache=yt;var e0=500;function t0(e){var t=Go(e,function(n){return r.size===e0&&r.clear(),n}),r=t.cache;return t}var r0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n0=/\\(\\)?/g,o0=t0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(r0,function(r,n,o,i){t.push(o?i.replace(n0,"$1"):n||r)}),t});function i0(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var wa=kt?kt.prototype:void 0,Ta=wa?wa.toString:void 0;function Hs(e){if(typeof e=="string")return e;if(at(e))return i0(e,Hs)+"";if(Mn(e))return Ta?Ta.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ks(e){return e==null?"":Hs(e)}function qs(e,t){return at(e)?e:Jo(e,t)?[e]:o0(Ks(e))}function Wn(e){if(typeof e=="string"||Mn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ys(e,t){t=qs(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Wn(t[r++])];return r&&r==n?e:void 0}function a0(e,t,r){var n=e==null?void 0:Ys(e,t);return n===void 0?r:n}function s0(e,t){return e!=null&&t in Object(e)}function l0(e,t,r){t=qs(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var a=Wn(t[n]);if(!(i=e!=null&&r(e,a)))break;e=e[a]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Uo(o)&&Bs(a,o)&&(at(e)||Ds(e)))}function c0(e,t){return e!=null&&l0(e,t,s0)}var u0=1,f0=2;function d0(e,t){return Jo(e)&&Gs(t)?Ws(Wn(e),t):function(r){var n=a0(r,e);return n===void 0&&n===t?c0(r,e):Gn(t,n,u0|f0)}}function p0(e){return e}function g0(e){return function(t){return t==null?void 0:t[e]}}function h0(e){return function(t){return Ys(t,e)}}function m0(e){return Jo(e)?g0(Wn(e)):h0(e)}function y0(e){return typeof e=="function"?e:e==null?p0:typeof e=="object"?at(e)?d0(e[0],e[1]):Ym(e):m0(e)}function b0(e,t){return function(r,n){var o=at(r)?Fm:Gm,i={};return o(r,e,y0(n),i)}}var Yr=b0(function(e,t,r){Dm(e,r,t)}),S0=0;function v0(e){var t=++S0;return Ks(e)+t}const Po=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],x0=[{id:"continuous"},...Po],w0=["coordsys","tool"];class Hn{constructor(t,r,n,o){var i,a;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const s of n)if(s.coordinate_system===""){s.coordinate_system="world";break}this.selectedCoordSystemId=((i=n[0])==null?void 0:i.coordinate_system)||"world",this.selectedTcpId=((a=o[0])==null?void 0:a.id)||"",cr.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(cr.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:i}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Hn(t,n,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return jo.countBy(this.coordSystems,t=>t.name)}async deactivate(){const t=this.jogger.activeWebsocket;this.jogger.setJoggingMode("increment"),t&&await t.closed()}async activate(){if(this.currentTab.id==="cartesian"){const t={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",t):this.jogger.setJoggingMode("cartesian",t)}else this.jogger.setJoggingMode("joint");return this.jogger}loadFromLocalStorage(){const t=Ot.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joints"}]}get incrementOptions(){return x0}get discreteIncrementOptions(){return Po}get incrementOptionsById(){return Yr(this.incrementOptions,t=>t.id)}get tabsById(){return Yr(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return Yr(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return Yr(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:Po.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInDisplayUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}lock(t){this.locks.add(t)}unlock(t){this.locks.delete(t)}async withMotionLock(t){const r=v0();this.lock(r);try{return await t()}finally{this.unlock(r)}}}const T0=ve.observer(({store:e})=>{var n;const{t}=Te.useTranslation();function r(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return m.jsxs(j.Box,{component:"div",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"min-height min-height","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[m.jsx(qr,{labelId:"jogging-coord-select",labelValue:"Coordinate Sys.",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>{e.setSelectedCoordSystemId(o.target.value)},disabled:e.isLocked,children:e.coordSystems.map(o=>m.jsx(j.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))}),m.jsx(qr,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>{e.setSelectedTcpId(o.target.value)},disabled:e.isLocked,children:e.tcps.map(o=>m.jsx(j.MenuItem,{value:o.id,children:o.id},o.id))}),m.jsx(qr,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>{e.setSelectedOrientation(o.target.value)},disabled:e.isLocked,children:w0.map(o=>m.jsx(j.MenuItem,{value:o,children:r(o)},o))}),m.jsxs(qr,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[m.jsx(j.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>m.jsx(j.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),E0=j.styled(j.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function C0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const O0=2;function ir(e,t,r,n,o){return r===1?Math.min(e+t,o):Math.max(e-t,n)}function Zs(e,t){return e-t}function Ea(e,t){const{index:r}=e.reduce((n,o,i)=>{const a=Math.abs(t-o);return n===null||a<n.distance||a===n.distance?{distance:a,index:i}:n},null)??{};return r}function Zr(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function xn(e,t,r){return(e-t)*100/(r-t)}function R0(e,t,r){return(r-t)*e+t}function A0(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function k0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(A0(t)))}function Ca({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Zs)}function Xr({sliderRef:e,activeIndex:t,setActive:r}){var o,i,a;const n=rn(e.current);(!((o=e.current)!=null&&o.contains(n.activeElement))||Number((i=n==null?void 0:n.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()),r&&r(t)}function Qr(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?C0(e,t):!1}const P0={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},j0=e=>e;let en;function Oa(){return en===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?en=CSS.supports("touch-action","none"):en=!0),en}function _0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:p="horizontal",rootRef:S,scale:b=j0,step:f=1,shiftStep:v=10,tabIndex:E,value:O}=e,k=C.useRef(void 0),[T,P]=C.useState(-1),[$,I]=C.useState(-1),[B,H]=C.useState(!1),g=C.useRef(0),_=C.useRef(null),[M,N]=mu({controlled:O,default:r??l,name:"Slider"}),D=u&&((A,L,V)=>{const K=A.nativeEvent||A,te=new K.constructor(K.type,K);Object.defineProperty(te,"target",{writable:!0,value:{value:L,name:c}}),_.current=L,u(te,L,V)}),Q=Array.isArray(M);let Y=Q?M.slice().sort(Zs):[M];Y=Y.map(A=>A==null?l:ar(A,l,s));const Ae=a===!0&&f!==null?[...Array(Math.floor((s-l)/f)+1)].map((A,L)=>({value:l+f*L})):a||[],ee=Ae.map(A=>A.value),[le,Ce]=C.useState(-1),Z=C.useRef(null),Ne=Ha(S,Z),lt=A=>L=>{var K;const V=Number(L.currentTarget.getAttribute("data-index"));yi(L.target)&&Ce(V),I(V),(K=A==null?void 0:A.onFocus)==null||K.call(A,L)},hr=A=>L=>{var V;yi(L.target)||Ce(-1),I(-1),(V=A==null?void 0:A.onBlur)==null||V.call(A,L)},Wt=(A,L)=>{const V=Number(A.currentTarget.getAttribute("data-index")),K=Y[V],te=ee.indexOf(K);let U=L;if(Ae&&f==null){const ye=ee[ee.length-1];U>=ye?U=ye:U<=ee[0]?U=ee[0]:U=U<K?ee[te-1]:ee[te+1]}if(U=ar(U,l,s),Q){o&&(U=ar(U,Y[V-1]||-1/0,Y[V+1]||1/0));const ye=U;U=Ca({values:Y,newValue:U,index:V});let Re=V;o||(Re=U.indexOf(ye)),Xr({sliderRef:Z,activeIndex:Re})}N(U),Ce(V),D&&!Qr(U,M)&&D(A,U,V),d&&d(A,_.current??U)},jt=A=>L=>{var V;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(L.key)){L.preventDefault();const K=Number(L.currentTarget.getAttribute("data-index")),te=Y[K];let U=null;if(f!=null){const ye=L.shiftKey?v:f;switch(L.key){case"ArrowUp":U=ir(te,ye,1,l,s);break;case"ArrowRight":U=ir(te,ye,i?-1:1,l,s);break;case"ArrowDown":U=ir(te,ye,-1,l,s);break;case"ArrowLeft":U=ir(te,ye,i?1:-1,l,s);break;case"PageUp":U=ir(te,v,1,l,s);break;case"PageDown":U=ir(te,v,-1,l,s);break;case"Home":U=l;break;case"End":U=s;break}}else if(Ae){const ye=ee[ee.length-1],Re=ee.indexOf(te),ge=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Le=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ge.includes(L.key)?Re===0?U=ee[0]:U=ee[Re-1]:Le.includes(L.key)&&(Re===ee.length-1?U=ye:U=ee[Re+1])}U!=null&&Wt(L,U)}(V=A==null?void 0:A.onKeyDown)==null||V.call(A,L)};Ga(()=>{var A;n&&Z.current.contains(document.activeElement)&&((A=document.activeElement)==null||A.blur())},[n]),n&&T!==-1&&P(-1),n&&le!==-1&&Ce(-1);const bt=A=>L=>{var V;(V=A.onChange)==null||V.call(A,L),Wt(L,L.target.valueAsNumber)},Ve=C.useRef(void 0);let He=p;i&&p==="horizontal"&&(He+="-reverse");const Ue=({finger:A,move:L=!1})=>{const{current:V}=Z,{width:K,height:te,bottom:U,left:ye}=V.getBoundingClientRect();let Re;He.startsWith("vertical")?Re=(U-A.y)/te:Re=(A.x-ye)/K,He.includes("-reverse")&&(Re=1-Re);let ge;if(ge=R0(Re,l,s),f)ge=k0(ge,f,l);else{const _t=Ea(ee,ge);ge=ee[_t]}ge=ar(ge,l,s);let Le=0;if(Q){L?Le=Ve.current:Le=Ea(Y,ge),o&&(ge=ar(ge,Y[Le-1]||-1/0,Y[Le+1]||1/0));const _t=ge;ge=Ca({values:Y,newValue:ge,index:Le}),o&&L||(Le=ge.indexOf(_t),Ve.current=Le)}return{newValue:ge,activeIndex:Le}},ct=eo(A=>{const L=Zr(A,k);if(!L)return;if(g.current+=1,A.type==="mousemove"&&A.buttons===0){De(A);return}const{newValue:V,activeIndex:K}=Ue({finger:L,move:!0});Xr({sliderRef:Z,activeIndex:K,setActive:P}),N(V),!B&&g.current>O0&&H(!0),D&&!Qr(V,M)&&D(A,V,K)}),De=eo(A=>{const L=Zr(A,k);if(H(!1),!L)return;const{newValue:V}=Ue({finger:L,move:!0});P(-1),A.type==="touchend"&&I(-1),d&&d(A,_.current??V),k.current=void 0,ut()}),Oe=eo(A=>{if(n)return;Oa()||A.preventDefault();const L=A.changedTouches[0];L!=null&&(k.current=L.identifier);const V=Zr(A,k);if(V!==!1){const{newValue:te,activeIndex:U}=Ue({finger:V});Xr({sliderRef:Z,activeIndex:U,setActive:P}),N(te),D&&!Qr(te,M)&&D(A,te,U)}g.current=0;const K=rn(Z.current);K.addEventListener("touchmove",ct,{passive:!0}),K.addEventListener("touchend",De,{passive:!0})}),ut=C.useCallback(()=>{const A=rn(Z.current);A.removeEventListener("mousemove",ct),A.removeEventListener("mouseup",De),A.removeEventListener("touchmove",ct),A.removeEventListener("touchend",De)},[De,ct]);C.useEffect(()=>{const{current:A}=Z;return A.addEventListener("touchstart",Oe,{passive:Oa()}),()=>{A.removeEventListener("touchstart",Oe),ut()}},[ut,Oe]),C.useEffect(()=>{n&&ut()},[n,ut]);const St=A=>L=>{var te;if((te=A.onMouseDown)==null||te.call(A,L),n||L.defaultPrevented||L.button!==0)return;L.preventDefault();const V=Zr(L,k);if(V!==!1){const{newValue:U,activeIndex:ye}=Ue({finger:V});Xr({sliderRef:Z,activeIndex:ye,setActive:P}),N(U),D&&!Qr(U,M)&&D(L,U,ye)}g.current=0;const K=rn(Z.current);K.addEventListener("mousemove",ct,{passive:!0}),K.addEventListener("mouseup",De)},Xe=xn(Q?Y[0]:l,l,s),Ee=xn(Y[Y.length-1],l,s)-Xe,vt=(A={})=>{const L=nn(A),V={onMouseDown:St(L||{})},K={...L,...V};return{...A,ref:Ne,...K}},ft=A=>L=>{var K;(K=A.onMouseOver)==null||K.call(A,L);const V=Number(L.currentTarget.getAttribute("data-index"));I(V)},Ht=A=>L=>{var V;(V=A.onMouseLeave)==null||V.call(A,L),I(-1)},Kt=(A={})=>{const L=nn(A),V={onMouseOver:ft(L||{}),onMouseLeave:Ht(L||{})};return{...A,...L,...V}},xt=A=>({pointerEvents:T!==-1&&T!==A?"none":void 0});let wt;return p==="vertical"&&(wt=i?"vertical-rl":"vertical-lr"),{active:T,axis:He,axisProps:P0,dragging:B,focusedThumbIndex:le,getHiddenInputProps:(A={})=>{const L=nn(A),V={onChange:bt(L||{}),onFocus:lt(L||{}),onBlur:hr(L||{}),onKeyDown:jt(L||{})},K={...L,...V};return{tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:n,...A,...K,style:{...yu,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:wt}}},getRootProps:vt,getThumbProps:Kt,marks:Ae,open:$,range:Q,rootRef:Ne,trackLeap:Ee,trackOffset:Xe,values:Y,getThumbStyle:xt}}function ln(e){return typeof e=="string"}const $0=e=>!e||!ln(e);function L0(e){return typeof e.main=="string"}function I0(e,t=[]){if(!L0(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Wo(e=[]){return([,t])=>t&&I0(t,e)}function M0(e){return Br("MuiSlider",e)}const Ge=Fa("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),N0=e=>{const{open:t}=e;return{offset:it(t&&Ge.valueLabelOpen),circle:Ge.valueLabelCircle,label:Ge.valueLabelLabel}};function Xs(e){const{children:t,className:r,value:n}=e,o=N0(e);return t?C.cloneElement(t,{className:it(t.props.className)},m.jsxs(C.Fragment,{children:[t.props.children,m.jsx("span",{className:it(o.offset,r),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Xs.propTypes={children:h.element.isRequired,className:h.string,value:h.node});function Ra(e){return e}const D0=ht("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${_e(r.color)}`],r.size!=="medium"&&t[`size${_e(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(Ut(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ge.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ge.dragging}`]:{[`& .${Ge.thumb}, & .${Ge.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Wo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),F0=ht("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),B0=ht("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(Ut(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Wo()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:_r(e.palette[t].main,.62),borderColor:_r(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:jr(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:jr(e.palette[t].main,.5)})}}}))]}))),V0=ht("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${_e(r.color)}`],r.size!=="medium"&&t[`thumbSize${_e(r.size)}`]]}})(Ut(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Ge.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Wo()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Ge.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ho(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Ge.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ho(e.palette[t].main,.16)}`}}}}))]}))),Qs=ht(Xs,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(Ut(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Ge.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Ge.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Qs.propTypes={children:h.element.isRequired,index:h.number.isRequired,open:h.bool.isRequired,value:h.node});const U0=ht("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Mo(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(Ut(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),z0=ht("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Mo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(Ut(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),J0=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:i,classes:a,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${_e(s)}`,l&&`size${_e(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${_e(l)}`,s&&`thumbColor${_e(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Lo(c,M0,a)},G0=({children:e})=>e,el=C.forwardRef(function(t,r){const n=No({props:t,name:"MuiSlider"}),o=Tu(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":s,component:l="span",components:c={},componentsProps:u={},color:d="primary",classes:p,className:S,disableSwap:b=!1,disabled:f=!1,getAriaLabel:v,getAriaValueText:E,marks:O=!1,max:k=100,min:T=0,name:P,onChange:$,onChangeCommitted:I,orientation:B="horizontal",shiftStep:H=10,size:g="medium",step:_=1,scale:M=Ra,slotProps:N,slots:D,tabIndex:Q,track:Y="normal",value:Ae,valueLabelDisplay:ee="off",valueLabelFormat:le=Ra,...Ce}=n,Z={...n,isRtl:o,max:k,min:T,classes:p,disabled:f,disableSwap:b,orientation:B,marks:O,color:d,size:g,step:_,shiftStep:H,scale:M,track:Y,valueLabelDisplay:ee,valueLabelFormat:le},{axisProps:Ne,getRootProps:lt,getHiddenInputProps:hr,getThumbProps:Wt,open:jt,active:bt,axis:Ve,focusedThumbIndex:He,range:Ue,dragging:ct,marks:De,values:Oe,trackOffset:ut,trackLeap:St,getThumbStyle:Xe}=_0({...Z,rootRef:r});Z.marked=De.length>0&&De.some(ue=>ue.label),Z.dragging=ct,Z.focusedThumbIndex=He;const Ee=J0(Z),vt=(D==null?void 0:D.root)??c.Root??D0,ft=(D==null?void 0:D.rail)??c.Rail??F0,Ht=(D==null?void 0:D.track)??c.Track??B0,Kt=(D==null?void 0:D.thumb)??c.Thumb??V0,xt=(D==null?void 0:D.valueLabel)??c.ValueLabel??Qs,wt=(D==null?void 0:D.mark)??c.Mark??U0,qt=(D==null?void 0:D.markLabel)??c.MarkLabel??z0,A=(D==null?void 0:D.input)??c.Input??"input",L=(N==null?void 0:N.root)??u.root,V=(N==null?void 0:N.rail)??u.rail,K=(N==null?void 0:N.track)??u.track,te=(N==null?void 0:N.thumb)??u.thumb,U=(N==null?void 0:N.valueLabel)??u.valueLabel,ye=(N==null?void 0:N.mark)??u.mark,Re=(N==null?void 0:N.markLabel)??u.markLabel,ge=(N==null?void 0:N.input)??u.input,Le=Tt({elementType:vt,getSlotProps:lt,externalSlotProps:L,externalForwardedProps:Ce,additionalProps:{...$0(vt)&&{as:l}},ownerState:{...Z,...L==null?void 0:L.ownerState},className:[Ee.root,S]}),_t=Tt({elementType:ft,externalSlotProps:V,ownerState:Z,className:Ee.rail}),Kn=Tt({elementType:Ht,externalSlotProps:K,additionalProps:{style:{...Ne[Ve].offset(ut),...Ne[Ve].leap(St)}},ownerState:{...Z,...K==null?void 0:K.ownerState},className:Ee.track}),mr=Tt({elementType:Kt,getSlotProps:Wt,externalSlotProps:te,ownerState:{...Z,...te==null?void 0:te.ownerState},className:Ee.thumb}),yr=Tt({elementType:xt,externalSlotProps:U,ownerState:{...Z,...U==null?void 0:U.ownerState},className:Ee.valueLabel}),Yt=Tt({elementType:wt,externalSlotProps:ye,ownerState:Z,className:Ee.mark}),Qe=Tt({elementType:qt,externalSlotProps:Re,ownerState:Z,className:Ee.markLabel}),br=Tt({elementType:A,getSlotProps:hr,externalSlotProps:ge,ownerState:Z});return m.jsxs(vt,{...Le,children:[m.jsx(ft,{..._t}),m.jsx(Ht,{...Kn}),De.filter(ue=>ue.value>=T&&ue.value<=k).map((ue,be)=>{const Sr=xn(ue.value,T,k),$t=Ne[Ve].offset(Sr);let Ke;return Y===!1?Ke=Oe.includes(ue.value):Ke=Y==="normal"&&(Ue?ue.value>=Oe[0]&&ue.value<=Oe[Oe.length-1]:ue.value<=Oe[0])||Y==="inverted"&&(Ue?ue.value<=Oe[0]||ue.value>=Oe[Oe.length-1]:ue.value>=Oe[0]),m.jsxs(C.Fragment,{children:[m.jsx(wt,{"data-index":be,...Yt,...!ln(wt)&&{markActive:Ke},style:{...$t,...Yt.style},className:it(Yt.className,Ke&&Ee.markActive)}),ue.label!=null?m.jsx(qt,{"aria-hidden":!0,"data-index":be,...Qe,...!ln(qt)&&{markLabelActive:Ke},style:{...$t,...Qe.style},className:it(Ee.markLabel,Qe.className,Ke&&Ee.markLabelActive),children:ue.label}):null]},be)}),Oe.map((ue,be)=>{const Sr=xn(ue,T,k),$t=Ne[Ve].offset(Sr),Ke=ee==="off"?G0:xt;return m.jsx(Ke,{...!ln(Ke)&&{valueLabelFormat:le,valueLabelDisplay:ee,value:typeof le=="function"?le(M(ue),be):le,index:be,open:jt===be||bt===be||ee==="on",disabled:f},...yr,children:m.jsx(Kt,{"data-index":be,...mr,className:it(Ee.thumb,mr.className,bt===be&&Ee.active,He===be&&Ee.focusVisible),style:{...$t,...Xe(be),...mr.style},children:m.jsx(A,{"data-index":be,"aria-label":v?v(be):i,"aria-valuenow":M(ue),"aria-labelledby":s,"aria-valuetext":E?E(M(ue),be):a,value:Oe[be],...br})})},be)})]})});process.env.NODE_ENV!=="production"&&(el.propTypes={"aria-label":mi(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":h.string,"aria-valuetext":mi(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Mark:h.elementType,MarkLabel:h.elementType,Rail:h.elementType,Root:h.elementType,Thumb:h.elementType,Track:h.elementType,ValueLabel:h.elementType}),componentsProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.node,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),defaultValue:h.oneOfType([h.arrayOf(h.number),h.number]),disabled:h.bool,disableSwap:h.bool,getAriaLabel:h.func,getAriaValueText:h.func,marks:h.oneOfType([h.arrayOf(h.shape({label:h.node,value:h.number.isRequired})),h.bool]),max:h.number,min:h.number,name:h.string,onChange:h.func,onChangeCommitted:h.func,orientation:h.oneOf(["horizontal","vertical"]),scale:h.func,shiftStep:h.number,size:h.oneOfType([h.oneOf(["small","medium"]),h.string]),slotProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.node,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),slots:h.shape({input:h.elementType,mark:h.elementType,markLabel:h.elementType,rail:h.elementType,root:h.elementType,thumb:h.elementType,track:h.elementType,valueLabel:h.elementType}),step:h.number,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,track:h.oneOf(["inverted","normal",!1]),value:h.oneOfType([h.arrayOf(h.number),h.number]),valueLabelDisplay:h.oneOf(["auto","off","on"]),valueLabelFormat:h.oneOfType([h.func,h.string])});var W0="[object Number]";function H0(e){return typeof e=="number"||Ft(e)&&zt(e)==W0}const tl=ve.observer(e=>{j.useTheme();function t(r,n){n===e.velocity||!H0(n)||e.onVelocityChange(n)}return m.jsxs(j.Stack,{direction:"row",gap:2,children:[m.jsx(el,{value:e.velocity,color:"secondary",onChange:t,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),e.renderValue?e.renderValue(e.velocity):m.jsx(Ho,{value:e.velocity.toString()})]})});function Ho({value:e,sx:t}){var n;const r=j.useTheme();return m.jsx(j.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(n=r.palette.backgroundPaperElevation)==null?void 0:n[8],borderRadius:"10px",minWidth:"111px",...t},children:m.jsx(j.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const rl=ve.observer(({store:e})=>{const{t}=Te.useTranslation(),r=ve.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return m.jsx(tl,{velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:n=>m.jsx(Ho,{value:r.valueLabelFormat(n),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),K0=ve.observer(({store:e,children:t})=>{var d,p,S,b,f,v,E,O,k;const{t:r}=Te.useTranslation(),n=j.useTheme();function o(T,P){(P==="translate"||P==="rotate")&&e.setSelectedCartesianMotionType(P)}os(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function i(T,P){const $=await e.activate(),I=$.motionStream.rapidlyChangingMotionState.tcp_pose,B=$.motionStream.rapidlyChangingMotionState.state.joint_position;I&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:T.axis,direction:T.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:I,currentJoints:B,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:T.axis,direction:T.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:P.mm}:{type:"rotate",distanceRads:Ot.degreesToRadians(P.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function a(T){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return i(T,e.activeDiscreteIncrement);T.motionType==="translate"?await e.jogger.startTCPTranslation({axis:T.axis,direction:T.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:T.axis,direction:T.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function s(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}const l=[{id:"x",colors:(S=(p=(d=n.componentsExt)==null?void 0:d.JoggingCartesian)==null?void 0:p.Axis)==null?void 0:S.X,icon:m.jsx(tg,{})},{id:"y",colors:(v=(f=(b=n.componentsExt)==null?void 0:b.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.Y,icon:m.jsx(ng,{})},{id:"z",colors:(k=(O=(E=n.componentsExt)==null?void 0:E.JoggingCartesian)==null?void 0:O.Axis)==null?void 0:k.Z,icon:m.jsx(ig,{})}];function c(T){return r("General.mm.variable",{amount:T.toFixed(1)})}function u(T){return r("General.degree.variable",{amount:Ot.radiansToDegrees(T).toFixed(1)})}return m.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[m.jsxs(j.Stack,{gap:2,children:[m.jsx(T0,{store:e}),m.jsx(rl,{store:e}),m.jsx(j.Divider,{})]}),m.jsx(j.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:m.jsxs(j.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[m.jsxs(E0,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[m.jsx(j.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),m.jsx(j.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&l.map(T=>{var P;return m.jsx(bo,{colors:T.colors,disabled:e.isLocked,activeJoggingDirection:((P=e.incrementJogInProgress)==null?void 0:P.axis)===T.id?e.incrementJogInProgress.direction:void 0,label:m.jsxs(m.Fragment,{children:[T.icon,m.jsx(j.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:T.id.toUpperCase()})]}),getDisplayedValue:()=>{var $;return c((($=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:$.position[T.id])||0)},startJogging:$=>a({axis:T.id,motionType:"translate",direction:$}),stopJogging:s},T.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(T=>{var P;return m.jsx(bo,{colors:T.colors,disabled:e.isLocked,activeJoggingDirection:((P=e.incrementJogInProgress)==null?void 0:P.axis)===T.id?e.incrementJogInProgress.direction:void 0,label:m.jsxs(m.Fragment,{children:[m.jsx(sg,{}),m.jsx(j.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:T.id.toUpperCase()})]}),getDisplayedValue:()=>{var $,I;return u(((I=($=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:$.orientation)==null?void 0:I[T.id])||0)},startJogging:$=>a({axis:T.id,motionType:"rotate",direction:$}),stopJogging:s},T.id)})]})}),m.jsx(Js,{store:e}),t&&m.jsx(j.Divider,{}),t]})}),q0=ve.observer(({store:e,children:t})=>{async function r(o){await e.activate(),await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop(),await e.deactivate()}return m.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[m.jsx(rl,{store:e}),m.jsx(j.Divider,{}),m.jsx(j.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:m.jsx(j.Stack,{alignItems:"center",gap:"24px",children:e.jogger.motionStream.joints.map(o=>{var l;const i=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[o.index],a=(i==null?void 0:i.lower_limit)!==void 0?Ot.radiansToDegrees(i.lower_limit):void 0,s=(i==null?void 0:i.upper_limit)!==void 0?Ot.radiansToDegrees(i.upper_limit):void 0;return m.jsx(ls,{disabled:e.isLocked,lowerLimitDegs:a,upperLimitDegs:s,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Ot.radiansToDegrees(c):void 0},startJogging:c=>r({joint:o.index,direction:c}),stopJogging:n},`joint-${o.index}`)})})}),m.jsx(Js,{store:e}),t&&m.jsx(j.Divider,{}),t]})}),Y0=fr(ve.observer(e=>{const t=jo.isString(e.nova)?new Ot.NovaClient({instanceUrl:e.nova}):e.nova,r=ve.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){cr.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{let o=e.store;if(!o){const i=await t.connectJogger(e.motionGroupId);o=await Hn.loadFor(i)}cr.runInAction(()=>{r.joggingStore=o}),e.onSetup&&e.onSetup(o)}catch(o){r.loadingError=o}}return z.useEffect(()=>(n(),e.store?()=>null:()=>{var o;(o=r.joggingStore)==null||o.dispose()}),[e.store,e.nova,e.motionGroupId]),z.useEffect(()=>{const o=r.joggingStore;o&&(e.locked?o.lock("external"):o.unlock("external"))},[r.joggingStore,e.locked]),m.jsx(j.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?m.jsx(Z0,{store:r.joggingStore,children:e.children}):m.jsx(Vo,{message:"Loading jogging",error:r.loadingError})})})),Z0=ve.observer(({store:e,children:t})=>{function r(){if(e.currentTab.id==="cartesian")return m.jsx(m.Fragment,{children:m.jsx(K0,{store:e,children:t})});if(e.currentTab.id==="joint")return m.jsx(m.Fragment,{children:m.jsx(q0,{store:e,children:t})})}return m.jsxs(j.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[m.jsx(j.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>m.jsx(j.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),m.jsx(j.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:r()})]})}),nl=z.forwardRef(({label:e,value:t},r)=>{var s;const n=j.useTheme(),[o,i]=z.useState(!1);async function a(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),i(!0),!0}catch(l){console.error(l);const c=window.getSelection(),u=document.createRange();u.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(u)}return!1}return z.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),m.jsx(j.Tooltip,{open:o,title:"Copied!",children:m.jsx(j.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(s=n.palette.backgroundPaperElevation)==null?void 0:s[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>a(),children:m.jsx(j.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:n.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),X0=ve.observer(({motionStream:e})=>{const t=z.useRef(null);function r(){const n=e.rapidlyChangingMotionState.tcp_pose;return n?Ot.poseToWandelscriptString(n):""}return dr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),m.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:m.jsx(nl,{value:r(),ref:t})})}),Q0=ve.observer(({motionStream:e})=>{const t=z.useRef(null);function r(){const{joints:n}=e.rapidlyChangingMotionState.state.joint_position;return`[${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return dr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),m.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:m.jsx(nl,{value:r(),ref:t})})});function ey(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function ty({baseUrl:e=ey(),...t}){return m.jsxs(j.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[m.jsx(j.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),m.jsxs(j.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[m.jsx(j.Typography,{color:"#fff",children:"Found no devices to connect to."}),m.jsx(j.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),m.jsx(j.DialogActions,{children:m.jsxs(j.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[m.jsx(j.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),m.jsx(j.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const ry=Array(6).fill(2*Math.PI),Aa="0.0.0-semantically-released";function Ko(e){let t=Aa;return Aa.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function ny(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(n=>t(n))]}return t(e).filter(r=>il(r))}function ol(e){return e.name.endsWith("_FLG")}function il(e){return/_J[0-9]+$/.test(e.name)}function oy(e,t){let r;function n(o){if(ol(o)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${o.name}. Only one _FLG group is allowed.`);r=o}il(o),o.children.map(n)}if(n(e.scene),!r)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function al({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:n}){po.Globals.assign({frameLoop:"always"});const o=z.useRef([]),i=z.useRef([]),{invalidate:a}=Tl.useThree();function s(p){p&&(i.current=ny(p),c(),a())}function l(p){o.current=p,d.start(Object.assign({},o.current))}function c(){const p=i.current.map((S,b)=>u[b].get());if(r)r(i.current,p);else for(const[S,b]of i.current.entries()){const f=t[S],v=f.theta||0,E=f.reverse_rotation_direction?-1:1;b.rotation.y=E*p[S]+v}}ns(()=>{const p=e.state.joint_position.joints.filter(S=>S!==void 0);requestAnimationFrame(()=>l(p))});const[u,d]=po.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),a()},onResolve:()=>{c()}}));return m.jsx("group",{ref:s,children:n})}const ka="line",Pa="mesh";function iy({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new pt.Matrix4;function o(s,l){const c=new pt.Vector3,u=new pt.Quaternion,d=new pt.Vector3;n.decompose(c,u,d);const p=c.clone(),S=new pt.Matrix4().makeRotationY(s.theta+l*(s.reverse_rotation_direction?-1:1)).multiply(new pt.Matrix4().makeTranslation(0,s.d/1e3,0)).multiply(new pt.Matrix4().makeTranslation(s.a/1e3,0,0)).multiply(new pt.Matrix4().makeRotationX(s.alpha));return n.multiply(S),n.decompose(c,u,d),{a:p,b:c}}function i(s,l,c,u){if(!t)return;const d=t[s];if(!d)return;const{a:p,b:S}=o(d,u);l.geometry.setPositions([p.toArray(),S.toArray()].flat()),c.position.set(S.x,S.y,S.z)}function a(s,l){n.identity(),s.forEach((c,u)=>{i(u,c.getObjectByName(ka),c.getObjectByName(Pa),l[u])})}return m.jsx(m.Fragment,{children:m.jsx(al,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:a,children:m.jsxs("group",{...r,name:"Scene",children:[m.jsxs("mesh",{children:[m.jsx("sphereGeometry",{args:[.01,32,32]}),m.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((s,l)=>{const{a:c,b:u}=o(s,e.state.joint_position.joints[l]??0),d=`dhrobot_J0${l}`;return m.jsxs("group",{name:d,children:[m.jsx(qe.Line,{name:ka,points:[c,u],color:"white",lineWidth:5}),m.jsxs("mesh",{name:Pa,position:u,children:[m.jsx("sphereGeometry",{args:[.01,32,32]}),m.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},d)})]})})})}const ay=console.warn;function sy(){return z.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&ay(e)}},[]),m.jsx(m.Fragment,{})}function ly(e){return e.type==="Mesh"}function cy({modelURL:e,flangeRef:t,postModelRender:r,...n}){const{gltf:o}=oy(qe.useGLTF(e),e.split("/").pop()||e),i=z.useCallback(s=>{s&&r&&r()},[e]);function a(s){return ly(s)?m.jsx("mesh",{name:s.name,geometry:s.geometry,material:s.material,position:s.position,rotation:s.rotation},s.uuid):m.jsx(po.animated.group,{name:s.name,position:s.position,rotation:s.rotation,ref:ol(s)?t:void 0,children:s.children.map(a)},s.uuid)}return m.jsx("group",{...n,dispose:null,ref:i,children:a(o.scene)})}const uy=(e,t)=>{e.userData.isGhost||(e.traverse(r=>{if(r instanceof we.Mesh){r.material instanceof we.Material&&(r.material.colorWrite=!1);const n=r.clone(),o=r.clone();n.material=new we.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:we.DoubleSide}),n.userData.isGhost=!0,o.material=new we.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:we.DoubleSide}),o.userData.isGhost=!0,r.parent&&(r.parent.add(n),r.parent.add(o))}}),e.userData.isGhost=!0)},fy=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(r=>{var n;r instanceof we.Mesh&&((n=r.userData)!=null&&n.isGhost?t.push(r):r.material instanceof we.Material&&(r.material.colorWrite=!0))}),t.forEach(r=>{r.parent&&r.parent.remove(r)}),e.userData.isGhost=!1},sl=fr(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Ko,flangeRef:o,postModelRender:i,transparentColor:a,...s})=>{const[l,c]=z.useState(null),u=z.useCallback(p=>{c(p)},[]);z.useEffect(()=>{l&&(a?uy(l,a):fy(l))},[l,a]);const d=m.jsx(iy,{rapidlyChangingMotionState:e,dhParameters:r,...s});return m.jsxs(Al.ErrorBoundary,{fallback:d,onError:p=>{if(p.message.includes("404: Not Found"))console.error(p);else throw p},children:[m.jsx(z.Suspense,{fallback:d,children:m.jsx("group",{ref:u,children:m.jsx(al,{rapidlyChangingMotionState:e,dhParameters:r,children:m.jsx(cy,{modelURL:n(t),postModelRender:i,flangeRef:o,...s})})})}),m.jsx(sy,{})]})});function dy({connectedMotionGroup:e,getModel:t=Ko,flangeRef:r,transparentColor:n,...o}){return e.dhParameters?m.jsx(sl,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:r,transparentColor:n,...o}):null}const py=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M5.248 21c-.334 0-.619-.116-.853-.35a1.153 1.153 0 0 1-.351-.848c0-.333.117-.616.351-.85.234-.233.519-.35.853-.35H7.24L4.558 9.87a2.881 2.881 0 0 1-1.126-1.042A2.77 2.77 0 0 1 3 7.317c0-.793.28-1.467.838-2.023a2.774 2.774 0 0 1 2.033-.834 2.71 2.71 0 0 1 1.728.585c.494.389.832.887 1.014 1.493h3.58V5.239c0-.22.076-.406.226-.555a.76.76 0 0 1 .558-.224c.136 0 .263.035.381.104.118.07.209.167.273.292v.14l1.835-1.702a.979.979 0 0 1 .52-.279.881.881 0 0 1 .58.091l4.01 1.85a.74.74 0 0 1 .36.364.537.537 0 0 1-.002.474.592.592 0 0 1-.366.323.657.657 0 0 1-.477-.039l-3.858-1.774L13.76 6.59v1.454l2.473 2.233 3.858-1.774a.648.648 0 0 1 .485-.03.571.571 0 0 1 .358.314.513.513 0 0 1 .01.482.79.79 0 0 1-.367.357l-4.011 1.882a.881.881 0 0 1-.58.09.979.979 0 0 1-.52-.278L13.63 9.638v.14a.92.92 0 0 1-.273.275.665.665 0 0 1-.381.12.76.76 0 0 1-.558-.224.752.752 0 0 1-.225-.555V8.096h-3.58a2.82 2.82 0 0 1-.215.54 2.552 2.552 0 0 1-.323.479l5.139 9.488h2.673c.335 0 .62.116.854.35.234.233.35.516.35.849 0 .332-.116.615-.35.849a1.167 1.167 0 0 1-.854.349H5.248Zm.623-12.385c.362 0 .67-.126.924-.378a1.25 1.25 0 0 0 .38-.92 1.25 1.25 0 0 0-.38-.92 1.261 1.261 0 0 0-.924-.379 1.26 1.26 0 0 0-.925.379 1.25 1.25 0 0 0-.38.92c0 .36.127.667.38.92.254.252.562.378.925.378Z"})),gy=z.forwardRef(py),hy=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"m13.37 9.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95-7.66 7.66-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72 1.79-1.79Zm-.91-2.99.91-.91 2.6 2.6-.91.91-2.6-2.6Zm-2.25 10.24h3.74l-1.34-1.34-.04-.04h-2.5l-3.25-3.25 4.59-4.59.92.92L9.5 10.9l5.33 5.33v1.48H10.2v-1.35l.01.01ZM2 2v4.99h1.41V3.4h3.58V2H2ZM22.21 2h-4.98v1.41h3.59v3.58h1.4V2h-.01ZM20.81 20.65h-3.58v1.4h4.98v-4.99h-1.4v3.59ZM3.4 17.06H2v4.98h4.99v-1.4H3.4v-3.58Z"})),my=z.forwardRef(hy),nt=ve.observer(({id:e,icon:t,color:r,title:n,name:o,explanation:i,literalValue:a})=>{const s=ve.useLocalObservable(()=>({anchorEl:null,get isPopoverOpen(){return!!s.anchorEl},openPopover(l){s.anchorEl=l.currentTarget},closePopover(){s.anchorEl=null}}));return m.jsxs(m.Fragment,{children:[m.jsx(j.Stack,{"aria-owns":s.isPopoverOpen?e:void 0,"aria-haspopup":"true",onMouseEnter:s.openPopover,onMouseLeave:s.closePopover,sx:{cursor:"pointer"},children:m.jsx(j.SvgIcon,{component:t,sx:{color:r}})}),m.jsx(j.Popover,{id:e,sx:{pointerEvents:"none"},open:s.isPopoverOpen,anchorEl:s.anchorEl,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:s.closePopover,disableRestoreFocus:!0,children:m.jsxs(j.Stack,{gap:"1rem",padding:2,maxWidth:"450px",sx:{wordWrap:"break-word"},children:[m.jsxs("div",{children:[n&&m.jsx(j.Typography,{component:"span",fontSize:"14px",children:`${n}: `}),m.jsx(j.Typography,{component:"span",color:r,fontWeight:"bold",fontSize:"14px",children:o})]}),m.jsx(j.Typography,{fontSize:"14px",children:i}),a&&m.jsx(j.Typography,{fontSize:"12px",children:a})]})})]})}),yy=ve.observer(({isVirtual:e,motionGroupId:t})=>{const r=j.useTheme(),{t:n}=Te.useTranslation();return e?m.jsx(nt,{id:"motion-group-virtual",icon:my,color:r.palette.tertiary.main,name:n("SafetyBar.ControllerType.Virtual.lb"),explanation:m.jsxs(Te.Trans,{i18nKey:"SafetyBar.MotionGroup.Virtual.Explanation.lb",values:{motionGroupId:t},children:["Motion group ",m.jsx("code",{children:t})," refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."]})}):m.jsx(nt,{id:"motion-group-physical",icon:gy,color:r.palette.primary.main,name:n("SafetyBar.ControllerType.Physical.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.MotionGroup.Physical.Explanation.lb",values:{motionGroupId:t},components:{code:m.jsx("code",{}),strong:m.jsx("strong",{})}})})}),by=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.306 2.768c0-.424.344-.768.768-.768h.406C19.53 2 22 4.551 22 7.699c0 3.237-2.51 5.587-5.31 5.703-.84 1.595-2.478 2.677-4.36 2.677a4.845 4.845 0 0 1-3.146-1.163c-.6 1.783 0 3.922 1.79 4.99 1.929 1.149 4.395.467 5.508-1.524l.212-.378a.75.75 0 1 1 1.308.732l-.231.414c-1.524 2.725-4.9 3.66-7.54 2.085-2.716-1.618-3.432-5.037-2.129-7.599a5.22 5.22 0 0 1-.73-2.677c0-2.192 1.335-4.063 3.212-4.793-1.195-1.427-3.29-1.96-5.08-.892-1.928 1.15-2.589 3.696-1.475 5.687l.231.413a.75.75 0 0 1-1.308.732l-.212-.377c-1.524-2.726-.62-6.211 2.02-7.785 2.716-1.619 5.943-.55 7.44 1.897l.13-.001c2.739 0 4.96 2.292 4.96 5.12 0 .284-.023.563-.066.834 1.795-.354 3.288-1.96 3.288-4.095 0-2.3-1.805-4.163-4.032-4.163h-.406a.768.768 0 0 1-.768-.768Zm.496 8.191c0 .286-.033.564-.094.831a3.62 3.62 0 0 1-.672 1.415 3.425 3.425 0 0 1-2.706 1.338 3.402 3.402 0 0 1-2.384-.98 3.598 3.598 0 0 1-.852-1.306 3.677 3.677 0 0 1-.235-1.298c0-1.623 1.046-2.994 2.48-3.435a3.37 3.37 0 0 1 1.522-.107c1.665.264 2.94 1.75 2.94 3.542Z"})),Sy=z.forwardRef(by),vy=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z",fill:"#fff",fillOpacity:.56})),xy=z.forwardRef(vy),wy=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z"})),Ty=z.forwardRef(wy),Ey=ve.observer(({operationMode:e})=>{const{t}=Te.useTranslation(),r=j.useTheme();switch(e){case"OPERATION_MODE_AUTO":return m.jsx(nt,{id:"operation-mode-auto",icon:Sy,title:t("SafetyBar.OperationMode.ti"),name:t("SafetyBar.OperationMode.Automatic.ti"),color:"rgba(255, 255, 255, 0.57)",explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.OperationMode.Auto.Explanation.lb",children:"The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode."})});case"OPERATION_MODE_MANUAL":case"OPERATION_MODE_MANUAL_T1":case"OPERATION_MODE_MANUAL_T2":return m.jsx(nt,{id:"operation-mode-manual",icon:Ty,color:r.palette.warning.main,title:t("SafetyBar.OperationMode.ti"),name:t("SafetyBar.OperationMode.Manual.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.OperationMode.Manual.Explanation.lb",children:"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully."}),literalValue:e});default:return m.jsx(nt,{id:"operation-mode-error",icon:xy,color:r.palette.warning.main,title:t("SafetyBar.OperationMode.ti"),name:t("SafetyBar.OperationMode.Error.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.OperationMode.Error.Explanation.lb",children:"The robot controller has entered an unexpected operation mode. Motion group movement may not be possible."}),literalValue:e})}}),Cy=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z"})),Oy=z.forwardRef(Cy),Ry=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M10.24 10.636 12 13.764l1.76-3.128h-3.52Z"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 12a6.364 6.364 0 1 1-12.728 0 6.364 6.364 0 0 1 12.728 0ZM7.909 9.273 12 16.546l4.09-7.273H7.91Z"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.364 0a8.636 8.636 0 1 1-17.273 0 8.636 8.636 0 0 1 17.273 0Z"})),Ay=z.forwardRef(Ry),ky=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M9.057 15.115c-1.681 0-3.111-.59-4.29-1.768C3.59 12.17 3 10.74 3 9.057c0-.29.021-.582.064-.876a4.1 4.1 0 0 1 .214-.844.78.78 0 0 1 .273-.36c.115-.077.244-.133.389-.168a.857.857 0 0 1 .437.008c.146.04.28.12.4.24l2.806 2.787 2.26-2.261-2.775-2.786a.903.903 0 0 1-.241-.405.875.875 0 0 1-.008-.442 1.13 1.13 0 0 1 .174-.389.82.82 0 0 1 .355-.273c.268-.107.548-.182.838-.224.29-.043.581-.064.871-.064 1.682 0 3.112.59 4.29 1.768 1.179 1.178 1.768 2.608 1.768 4.29 0 .444-.042.858-.126 1.241-.084.384-.21.755-.377 1.113l5.726 5.692A2.2 2.2 0 0 1 21 18.721a2.2 2.2 0 0 1-.662 1.617A2.2 2.2 0 0 1 18.72 21a2.173 2.173 0 0 1-1.617-.679l-5.692-5.709c-.372.161-.75.285-1.133.372-.383.087-.79.13-1.222.13Z",fill:"#fff",fillOpacity:.56})),Py=z.forwardRef(ky),jy=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7c0 .283.092.517.275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),_y=z.forwardRef(jy),$y=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),Ly=z.forwardRef($y),Iy=ve.observer(({safetyState:e})=>{const{t}=Te.useTranslation(),r=j.useTheme();switch(e){case"SAFETY_STATE_NORMAL":return m.jsx(nt,{id:"safety-state-normal",title:t("SafetyBar.SafetyState.ti"),name:t("SafetyBar.SafetyState.Normal.lb"),icon:_y,color:"rgba(255, 255, 255, 0.57)",explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.SafetyState.Normal.Explanation.lb",children:"The robot controller is in a normal safety state. Movement is not prevented by this state."})});case"SAFETY_STATE_DEVICE_EMERGENCY_STOP":case"SAFETY_STATE_ROBOT_EMERGENCY_STOP":return m.jsx(nt,{id:"safety-state-estop",title:t("SafetyBar.SafetyState.ti"),name:t("SafetyBar.SafetyState.Estop.lb"),icon:Ay,color:r.palette.error.main,explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.StopState.Estop.Explanation.lb",children:"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."}),literalValue:e});case"SAFETY_STATE_STOP_0":case"SAFETY_STATE_STOP_1":case"SAFETY_STATE_STOP_2":case"SAFETY_STATE_PROTECTIVE_STOP":case"SAFETY_STATE_STOP":return m.jsx(nt,{id:"safety-state-stop",icon:Ly,title:t("SafetyBar.SafetyState.ti"),name:t("SafetyBar.SafetyState.Stop.lb"),color:r.palette.warning.main,explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.SafetyState.Stop.Explanation.lb",children:"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved."}),literalValue:e});case"SAFETY_STATE_REDUCED":case"SAFETY_STATE_MASTERING":case"SAFETY_STATE_CONFIRM_SAFETY":case"SAFETY_STATE_OPERATOR_SAFETY":case"SAFETY_STATE_RECOVERY":case"SAFETY_STATE_VIOLATION":return m.jsx(nt,{id:"safety-state-manual-action-required",icon:Py,color:r.palette.warning.main,title:t("SafetyBar.SafetyState.ti"),name:t("SafetyBar.SafetyState.ManualActionRequired.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb",children:"The robot controller has entered a safety state requiring manual action to resolve."}),literalValue:e});case"SAFETY_STATE_UNKNOWN":case"SAFETY_STATE_FAULT":return m.jsx(nt,{id:"safety-state-error",icon:Oy,color:r.palette.error.main,title:t("SafetyBar.SafetyState.ti"),name:t("SafetyBar.SafetyState.Error.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.SafetyState.Error.Explanation.lb",children:"The robot controller has entered an unexpected safety state."}),literalValue:e});default:Xp(e,`Unknown safety state ${e}`)}}),My=fr(ve.observer(e=>m.jsxs(j.Stack,{direction:"row",gap:"8px",alignItems:"center",sx:{height:"24px"},children:[m.jsx(Iy,{safetyState:e.safetyState}),m.jsx(j.Divider,{orientation:"vertical",flexItem:!0}),m.jsx(Ey,{operationMode:e.operationMode}),m.jsx(j.Divider,{orientation:"vertical",flexItem:!0}),m.jsx(yy,{isVirtual:e.isVirtual,motionGroupId:e.motionGroupId})]}))),Ny=j.styled(j.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:o})=>!o,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:o})=>o,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),Dy=z.forwardRef((e,t)=>m.jsx(Ny,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),Fy={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print|and|or|not)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},By=z.lazy(()=>import("@monaco-editor/react"));let fo=null;async function Vy(){if(!fo){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);fo={shiki:await e({langs:[Fy],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return fo}const Uy=fr(e=>{const t=j.useTheme(),[r,n]=z.useState("dark-plus"),o=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(a){var c,u;a.languages.register({id:"wandelscript"}),a.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:s,shikiToMonaco:l}=await Vy();l(s,a),a.editor.defineTheme(o,((u=(c=t.componentsExt)==null?void 0:c.WandelscriptEditor)==null?void 0:u.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(a),n(o)}return m.jsx(z.Suspense,{fallback:m.jsx(Vo,{}),children:m.jsx(By,{value:e.code,onMount:(a,s)=>{i(s)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:r,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function ll(){var t,r,n,o,i,a,s;const e=j.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(o=e.palette.backgroundPaperElevation)==null?void 0:o[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiDrawer:{styleOverrides:{paper:{border:"none",boxShadow:"4px 0 8px -4px rgba(0, 0, 0, 0.3)"}}},MuiFab:{styleOverrides:{root:{background:(a=(i=e.paletteExt)==null?void 0:i.secondary)==null?void 0:a.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)"}}},WandelscriptEditor:{monacoTheme:{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#b349a9ff"}],colors:{"editor.background":j.rgbToHex(((s=e.palette.backgroundPaperElevation)==null?void 0:s[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function zy(){const e=ll();return e.palette.mode="light",e}function Jy(e){var n,o,i,a;let t=!0;((n=e.palette)==null?void 0:n.mode)==="light"?t=!1:((o=e.palette)==null?void 0:o.mode)!=="dark"&&(t=!(typeof window<"u"&&((a=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:a.matches)));const r=t?ll():zy();return Qa(r,e)}exports.JoggingCartesianAxisControl=bo;exports.JoggingJointRotationControl=ls;exports.JoggingPanel=Y0;exports.JoggingStore=Hn;exports.LoadingCover=Vo;exports.LoadingErrorMessage=$s;exports.NoMotionGroupModal=ty;exports.PoseCartesianValues=X0;exports.PoseJointValues=Q0;exports.PresetEnvironment=_l;exports.Robot=dy;exports.SafetyBar=My;exports.SafetyZonesRenderer=Il;exports.SelectableFab=Dy;exports.SupportedRobot=sl;exports.TrajectoryRenderer=Ml;exports.VelocitySlider=tl;exports.VelocitySliderLabel=Ho;exports.WandelscriptEditor=Uy;exports.createNovaMuiTheme=Jy;exports.defaultAxisConfig=ry;exports.defaultGetModel=Ko;exports.useAnimationFrame=dr;exports.useAutorun=ns;exports.useMounted=In;exports.useReaction=os;
93
94
  //# sourceMappingURL=index.cjs.map