@wandelbots/wandelbots-js-react-components 1.51.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/jogging/JoggingToggleButtonGroup.d.ts +2 -1
- package/dist/components/jogging/JoggingToggleButtonGroup.d.ts.map +1 -1
- package/dist/index.cjs +45 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6105 -6222
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/components/jogging/JoggingToggleButtonGroup.tsx +4 -4
- package/dist/components/LoadingButton.d.ts +0 -5
- package/dist/components/LoadingButton.d.ts.map +0 -1
- package/src/components/LoadingButton.tsx +0 -19
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var yl=Object.create;var Qo=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var vl=Object.getOwnPropertyNames;var xl=Object.getPrototypeOf,Sl=Object.prototype.hasOwnProperty;var wl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vl(t))!Sl.call(e,o)&&o!==n&&Qo(e,o,{get:()=>t[o],enumerable:!(r=bl(t,o))||r.enumerable});return e};var Jr=(e,t,n)=>(n=e!=null?yl(xl(e)):{},wl(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),He=require("@react-three/drei"),Cl=require("@react-three/fiber"),lt=require("three"),Tl=require("three-stdlib"),j=require("@mui/material"),Le=require("mobx-react-lite"),dn=require("react-i18next"),El=require("i18next-browser-languagedetector"),un=require("mobx"),h=require("prop-types"),Ol=require("@emotion/styled"),Rl=require("@emotion/react"),Ct=require("@wandelbots/wandelbots-js"),Po=require("lodash-es"),lo=require("@react-spring/three"),Al=require("react-error-boundary");function ks(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 M=ks(H),Se=ks(lt);var co={exports:{}},bn={};/**
|
|
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
|
|
9
|
+
*/var ei;function kl(){if(ei)return bn;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,p={},f=null,v=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(v=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(p[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)p[u]===void 0&&(p[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:v,props:p,_owner:o.current}}return bn.Fragment=n,bn.jsx=s,bn.jsxs=s,bn}var vn={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,53 +14,55 @@
|
|
|
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
|
|
18
|
-
`+
|
|
19
|
-
`)
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var ti;function Pl(){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"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.iterator,d="@@iterator";function x(m){if(m===null||typeof m!="object")return null;var R=y&&m[y]||m[d];return typeof R=="function"?R:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(m){{for(var R=arguments.length,I=new Array(R>1?R-1:0),U=1;U<R;U++)I[U-1]=arguments[U];k("error",m,I)}}function k(m,R,I){{var U=T.ReactDebugCurrentFrame,te=U.getStackAddendum();te!==""&&(R+="%s",I=I.concat([te]));var ie=I.map(function(Z){return String(Z)});ie.unshift("Warning: "+R),Function.prototype.apply.call(console[m],console,ie)}}var w=!1,O=!1,P=!1,L=!1,z=!1,Y;Y=Symbol.for("react.module.reference");function g(m){return!!(typeof m=="string"||typeof m=="function"||m===r||m===i||z||m===o||m===c||m===u||L||m===v||w||O||P||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===p||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===Y||m.getModuleId!==void 0))}function $(m,R,I){var U=m.displayName;if(U)return U;var te=R.displayName||R.name||"";return te!==""?I+"("+te+")":I}function F(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 R=m;return F(R)+".Consumer";case s:var I=m;return F(I._context)+".Provider";case l:return $(m,m.render,"ForwardRef");case p:var U=m.displayName||null;return U!==null?U:N(m.type)||"Memo";case f:{var te=m,ie=te._payload,Z=te._init;try{return N(Z(ie))}catch{return null}}}return null}var D=Object.assign,ne=0,X,Pe,G,xe,Oe,Q,Ye;function zt(){}zt.__reactDisabledLog=!0;function mn(){{if(ne===0){X=console.log,Pe=console.info,G=console.warn,xe=console.error,Oe=console.group,Q=console.groupCollapsed,Ye=console.groupEnd;var m={configurable:!0,enumerable:!0,value:zt,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}ne++}}function Jt(){{if(ne--,ne===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},m,{value:X}),info:D({},m,{value:Pe}),warn:D({},m,{value:G}),error:D({},m,{value:xe}),group:D({},m,{value:Oe}),groupCollapsed:D({},m,{value:Q}),groupEnd:D({},m,{value:Ye})})}ne<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var At=T.ReactCurrentDispatcher,pt;function Fe(m,R,I){{if(pt===void 0)try{throw Error()}catch(te){var U=te.stack.trim().match(/\n( *(at )?)/);pt=U&&U[1]||""}return`
|
|
18
|
+
`+pt+m}}var Ge=!1,Be;{var ot=typeof WeakMap=="function"?WeakMap:Map;Be=new ot}function Ne(m,R){if(!m||Ge)return"";{var I=Be.get(m);if(I!==void 0)return I}var U;Ge=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=At.current,At.current=null,mn();try{if(R){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(je){U=je}Reflect.construct(m,[],Z)}else{try{Z.call()}catch(je){U=je}m.call(Z.prototype)}}else{try{throw Error()}catch(je){U=je}m()}}catch(je){if(je&&U&&typeof je.stack=="string"){for(var q=je.stack.split(`
|
|
19
|
+
`),Re=U.stack.split(`
|
|
20
|
+
`),me=q.length-1,be=Re.length-1;me>=1&&be>=0&&q[me]!==Re[be];)be--;for(;me>=1&&be>=0;me--,be--)if(q[me]!==Re[be]){if(me!==1||be!==1)do if(me--,be--,be<0||q[me]!==Re[be]){var Ue=`
|
|
21
|
+
`+q[me].replace(" at new "," at ");return m.displayName&&Ue.includes("<anonymous>")&&(Ue=Ue.replace("<anonymous>",m.displayName)),typeof m=="function"&&Be.set(m,Ue),Ue}while(me>=1&&be>=0);break}}}finally{Ge=!1,At.current=ie,Jt(),Error.prepareStackTrace=te}var Xt=m?m.displayName||m.name:"",$t=Xt?Fe(Xt):"";return typeof m=="function"&&Be.set(m,$t),$t}function Ce(m,R,I){return Ne(m,!1)}function it(m){var R=m.prototype;return!!(R&&R.isReactComponent)}function gt(m,R,I){if(m==null)return"";if(typeof m=="function")return Ne(m,it(m));if(typeof m=="string")return Fe(m);switch(m){case c:return Fe("Suspense");case u:return Fe("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case l:return Ce(m.render);case p:return gt(m.type,R,I);case f:{var U=m,te=U._payload,ie=U._init;try{return gt(ie(te),R,I)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,we={},ht=T.ReactDebugCurrentFrame;function st(m){if(m){var R=m._owner,I=gt(m.type,m._source,R?R.type:null);ht.setExtraStackFrame(I)}else ht.setExtraStackFrame(null)}function Wt(m,R,I,U,te){{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 Re=Error((U||"React class")+": "+I+" 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 Re.name="Invariant Violation",Re}q=m[Z](R,Z,U,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(me){q=me}q&&!(q instanceof Error)&&(st(te),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).",U||"React class",I,Z,typeof q),st(null)),q instanceof Error&&!(q.message in we)&&(we[q.message]=!0,st(te),E("Failed %s type: %s",I,q.message),st(null))}}}var Gt=Array.isArray;function mt(m){return Gt(m)}function yt(m){{var R=typeof Symbol=="function"&&Symbol.toStringTag,I=R&&m[Symbol.toStringTag]||m.constructor.name||"Object";return I}}function Ht(m){try{return A(m),!1}catch{return!0}}function A(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.",yt(m)),A(m)}var B=T.ReactCurrentOwner,K={key:!0,ref:!0,__self:!0,__source:!0},ee,V,fe;fe={};function Te(m){if(Xe.call(m,"ref")){var R=Object.getOwnPropertyDescriptor(m,"ref").get;if(R&&R.isReactWarning)return!1}return m.ref!==void 0}function ge(m){if(Xe.call(m,"key")){var R=Object.getOwnPropertyDescriptor(m,"key").get;if(R&&R.isReactWarning)return!1}return m.key!==void 0}function $e(m,R){if(typeof m.ref=="string"&&B.current&&R&&B.current.stateNode!==R){var I=N(B.current.type);fe[I]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N(B.current.type),m.ref),fe[I]=!0)}}function kt(m,R){{var I=function(){ee||(ee=!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)",R))};I.isReactWarning=!0,Object.defineProperty(m,"key",{get:I,configurable:!0})}}function Vr(m,R){{var I=function(){V||(V=!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)",R))};I.isReactWarning=!0,Object.defineProperty(m,"ref",{get:I,configurable:!0})}}var yn=function(m,R,I,U,te,ie,Z){var q={$$typeof:t,type:m,key:R,ref:I,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:U}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function Ur(m,R,I,U,te){{var ie,Z={},q=null,Re=null;I!==void 0&&(_(I),q=""+I),ge(R)&&(_(R.key),q=""+R.key),Te(R)&&(Re=R.ref,$e(R,te));for(ie in R)Xe.call(R,ie)&&!K.hasOwnProperty(ie)&&(Z[ie]=R[ie]);if(m&&m.defaultProps){var me=m.defaultProps;for(ie in me)Z[ie]===void 0&&(Z[ie]=me[ie])}if(q||Re){var be=typeof m=="function"?m.displayName||m.name||"Unknown":m;q&&kt(Z,be),Re&&Vr(Z,be)}return yn(m,q,Re,te,U,B.current,Z)}}var Pt=T.ReactCurrentOwner,Kt=T.ReactDebugCurrentFrame;function bt(m){if(m){var R=m._owner,I=gt(m.type,m._source,R?R.type:null);Kt.setExtraStackFrame(I)}else Kt.setExtraStackFrame(null)}var ce;ce=!1;function he(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function qt(){{if(Pt.current){var m=N(Pt.current.type);if(m)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+m+"`."}return""}}function Yt(m){return""}var Ve={};function ll(m){{var R=qt();if(!R){var I=typeof m=="string"?m:m.displayName||m.name;I&&(R=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+I+">.")}return R}}function qo(m,R){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var I=ll(R);if(Ve[I])return;Ve[I]=!0;var U="";m&&m._owner&&m._owner!==Pt.current&&(U=" It was passed a child from "+N(m._owner.type)+"."),bt(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.',I,U),bt(null)}}function Yo(m,R){{if(typeof m!="object")return;if(mt(m))for(var I=0;I<m.length;I++){var U=m[I];he(U)&&qo(U,R)}else if(he(m))m._store&&(m._store.validated=!0);else if(m){var te=x(m);if(typeof te=="function"&&te!==m.entries)for(var ie=te.call(m),Z;!(Z=ie.next()).done;)he(Z.value)&&qo(Z.value,R)}}}function cl(m){{var R=m.type;if(R==null||typeof R=="string")return;var I;if(typeof R=="function")I=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===l||R.$$typeof===p))I=R.propTypes;else return;if(I){var U=N(R);Wt(I,m.props,"prop",U,m)}else if(R.PropTypes!==void 0&&!ce){ce=!0;var te=N(R);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ul(m){{for(var R=Object.keys(m.props),I=0;I<R.length;I++){var U=R[I];if(U!=="children"&&U!=="key"){bt(m),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U),bt(null);break}}m.ref!==null&&(bt(m),E("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}var Xo={};function Zo(m,R,I,U,te,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 Re=Yt();Re?q+=Re:q+=qt();var me;m===null?me="null":mt(m)?me="array":m!==void 0&&m.$$typeof===t?(me="<"+(N(m.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):me=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",me,q)}var be=Ur(m,R,I,te,ie);if(be==null)return be;if(Z){var Ue=R.children;if(Ue!==void 0)if(U)if(mt(Ue)){for(var Xt=0;Xt<Ue.length;Xt++)Yo(Ue[Xt],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(R,"key")){var $t=N(m),je=Object.keys(R).filter(function(ml){return ml!=="key"}),zr=je.length>0?"{key: someKey, "+je.join(": ..., ")+": ...}":"{key: someKey}";if(!Xo[$t+zr]){var hl=je.length>0?"{"+je.join(": ..., ")+": ...}":"{}";E(`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} />`,Eo,Bt,vc,Bt),un[Bt+Eo]=!0}}return h===n?So(be):xo(be),be}}function wo(h,E,A){return fn(h,E,A,!0)}function To(h,E,A){return fn(h,E,A,!1)}var jr=To,Oo=wo;Lr.Fragment=n,Lr.jsx=jr,Lr.jsxs=Oo}()),Lr}process.env.NODE_ENV==="production"?Wo.exports=jc():Wo.exports=Ac();var b=Wo.exports;function Lc(){return b.jsx(it.Environment,{children:b.jsx(Ic,{})})}function Ic({positions:e=[2,0,2,0,2,0,2,0]}){return b.jsxs(b.Fragment,{children:[b.jsx(it.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,r)=>b.jsx(it.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),b.jsx(it.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),b.jsx(it.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),b.jsx(it.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),b.jsx(it.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),b.jsx(it.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Nc(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),s=new we.Vector3().crossVectors(o,i).normalize();for(let a=3;a<e.length;a++){const l=new we.Vector3(e[a].x,e[a].y,e[a].z),c=new we.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 Mc({safetyZones:e,...t}){return b.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,s)=>{if(!i.convex_hull)return null;const a=i.convex_hull.vertices.map(u=>new we.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=Nc(a);if(l.isCoplanar&&l.normal){const d=new we.Vector3().addVectors(a[0],l.normal.multiplyScalar(1e-4));a.push(d)}let c;try{c=new _c.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},n)},`${n}-${s}`)})})})}function Dc({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 b.jsx("group",{...t,children:r.length>0&&b.jsx(it.Line,{points:r,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}function Jr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Fc=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"}));var Vc=!1;function Bc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Uc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var zc=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Vc:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Uc(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Bc(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),_e="-ms-",An="-moz-",oe="-webkit-",Ea="comm",yi="rule",bi="decl",Jc="@import",Ca="@keyframes",Hc="@layer",Wc=Math.abs,Gn=String.fromCharCode,Gc=Object.assign;function qc(e,t){return Ce(e,0)^45?(((t<<2^Ce(e,0))<<2^Ce(e,1))<<2^Ce(e,2))<<2^Ce(e,3):0}function Ra(e){return e.trim()}function Kc(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function Go(e,t){return e.indexOf(t)}function Ce(e,t){return e.charCodeAt(t)|0}function Hr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function vi(e){return e.length}function dn(e,t){return t.push(e),e}function Yc(e,t){return e.map(t).join("")}var qn=1,yr=1,_a=0,Fe=0,ve=0,vr="";function Kn(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:qn,column:yr,length:s,return:""}}function Ir(e,t){return Gc(Kn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xc(){return ve}function Zc(){return ve=Fe>0?Ce(vr,--Fe):0,yr--,ve===10&&(yr=1,qn--),ve}function He(){return ve=Fe<_a?Ce(vr,Fe++):0,yr++,ve===10&&(yr=1,qn++),ve}function pt(){return Ce(vr,Fe)}function Tn(){return Fe}function Zr(e,t){return Hr(vr,e,t)}function Wr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pa(e){return qn=yr=1,_a=ft(vr=e),Fe=0,[]}function $a(e){return vr="",e}function On(e){return Ra(Zr(Fe-1,qo(e===91?e+2:e===40?e+1:e)))}function Qc(e){for(;(ve=pt())&&ve<33;)He();return Wr(e)>2||Wr(ve)>3?"":" "}function eu(e,t){for(;--t&&He()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return Zr(e,Tn()+(t<6&&pt()==32&&He()==32))}function qo(e){for(;He();)switch(ve){case e:return Fe;case 34:case 39:e!==34&&e!==39&&qo(ve);break;case 40:e===41&&qo(e);break;case 92:He();break}return Fe}function tu(e,t){for(;He()&&e+ve!==57;)if(e+ve===84&&pt()===47)break;return"/*"+Zr(t,Fe-1)+"*"+Gn(e===47?e:He())}function ru(e){for(;!Wr(pt());)He();return Zr(e,Fe)}function nu(e){return $a(En("",null,null,null,[""],e=Pa(e),0,[0],e))}function En(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,v=0,y=0,m=1,g=1,S=1,T=0,$="",O=o,w=i,C=n,R=$;g;)switch(y=T,T=He()){case 40:if(y!=108&&Ce(R,d-1)==58){Go(R+=ie(On(T),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=On(T);break;case 9:case 10:case 13:case 32:R+=Qc(y);break;case 92:R+=eu(Tn()-1,7);continue;case 47:switch(pt()){case 42:case 47:dn(ou(tu(He(),Tn()),t,r),l);break;default:R+="/"}break;case 123*m:a[c++]=ft(R)*S;case 125*m:case 59:case 0:switch(T){case 0:case 125:g=0;case 59+u:S==-1&&(R=ie(R,/\f/g,"")),v>0&&ft(R)-d&&dn(v>32?qi(R+";",n,r,d-1):qi(ie(R," ","")+";",n,r,d-2),l);break;case 59:R+=";";default:if(dn(C=Gi(R,t,r,c,u,o,a,$,O=[],w=[],d),i),T===123)if(u===0)En(R,t,C,C,O,i,d,a,w);else switch(f===99&&Ce(R,3)===110?100:f){case 100:case 108:case 109:case 115:En(e,C,C,n&&dn(Gi(e,C,C,0,0,o,a,$,o,O=[],d),w),o,w,d,a,n?O:w);break;default:En(R,C,C,C,[""],w,0,a,w)}}c=u=v=0,m=S=1,$=R="",d=s;break;case 58:d=1+ft(R),v=y;default:if(m<1){if(T==123)--m;else if(T==125&&m++==0&&Zc()==125)continue}switch(R+=Gn(T),T*m){case 38:S=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(ft(R)-1)*S,S=1;break;case 64:pt()===45&&(R+=On(He())),f=pt(),u=d=ft($=R+=ru(Tn())),T++;break;case 45:y===45&&ft(R)==2&&(m=0)}}return i}function Gi(e,t,r,n,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],v=vi(f),y=0,m=0,g=0;y<n;++y)for(var S=0,T=Hr(e,d+1,d=Wc(m=s[y])),$=e;S<v;++S)($=Ra(m>0?f[S]+" "+T:ie(T,/&\f/g,f[S])))&&(l[g++]=$);return Kn(e,t,r,o===0?yi:a,l,c,u)}function ou(e,t,r){return Kn(e,t,r,Ea,Gn(Xc()),Hr(e,2,-2),0)}function qi(e,t,r,n){return Kn(e,t,r,bi,Hr(e,0,n),Hr(e,n+1,-1),n)}function dr(e,t){for(var r="",n=vi(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function iu(e,t,r,n){switch(e.type){case Hc:if(e.children.length)break;case Jc:case bi:return e.return=e.return||e.value;case Ea:return"";case Ca:return e.return=e.value+"{"+dr(e.children,n)+"}";case yi:e.value=e.props.join(",")}return ft(r=dr(e.children,n))?e.return=e.value+"{"+r+"}":""}function su(e){var t=vi(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function au(e){return function(t){t.root||(t=t.return)&&e(t)}}var lu=function(t,r,n){for(var o=0,i=0;o=i,i=pt(),o===38&&i===12&&(r[n]=1),!Wr(i);)He();return Zr(t,Fe)},cu=function(t,r){var n=-1,o=44;do switch(Wr(o)){case 0:o===38&&pt()===12&&(r[n]=1),t[n]+=lu(Fe-1,r,n);break;case 2:t[n]+=On(o);break;case 4:if(o===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Gn(o)}while(o=He());return t},uu=function(t,r){return $a(cu(Pa(t),r))},Ki=new WeakMap,fu=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ki.get(n))&&!o){Ki.set(t,!0);for(var i=[],s=uu(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},du=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ka(e,t){switch(qc(e,t)){case 5103:return oe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oe+e+An+e+_e+e+e;case 6828:case 4268:return oe+e+_e+e+e;case 6165:return oe+e+_e+"flex-"+e+e;case 5187:return oe+e+ie(e,/(\w+).+(:[^]+)/,oe+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return oe+e+_e+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return oe+e+_e+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return oe+e+_e+ie(e,"shrink","negative")+e;case 5292:return oe+e+_e+ie(e,"basis","preferred-size")+e;case 6060:return oe+"box-"+ie(e,"-grow","")+oe+e+_e+ie(e,"grow","positive")+e;case 4554:return oe+ie(e,/([^-])(transform)/g,"$1"+oe+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,oe+"$1"),/(image-set)/,oe+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,oe+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,oe+"box-pack:$3"+_e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+oe+e+e;case 4095:case 3583:case 4068:case 2532:return ie(e,/(.+)-inline(.+)/,oe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+An+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Go(e,"stretch")?ka(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,ft(e)-3-(~Go(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Ce(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+_e+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return oe+e+_e+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+_e+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+_e+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+_e+e+e}return e}var pu=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case bi:t.return=ka(t.value,t.length);break;case Ca:return dr([Ir(t,{value:ie(t.value,"@","@"+oe)})],o);case yi:if(t.length)return Yc(t.props,function(i){switch(Kc(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return dr([Ir(t,{props:[ie(i,/:(read-\w+)/,":"+An+"$1")]})],o);case"::placeholder":return dr([Ir(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Ir(t,{props:[ie(i,/:(plac\w+)/,":"+An+"$1")]}),Ir(t,{props:[ie(i,/:(plac\w+)/,_e+"input-$1")]})],o)}return""})}},hu=[pu],gu=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||hu,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),S=1;S<g.length;S++)i[g[S]]=!0;a.push(m)});var l,c=[fu,du];{var u,d=[iu,au(function(m){u.insert(m)})],f=su(c.concat(o,d)),v=function(g){return dr(nu(g),f)};l=function(g,S,T,$){u=T,v(g?g+"{"+S.styles+"}":S.styles),$&&(y.inserted[S.name]=!0)}}var y={key:r,sheet:new zc({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return y.sheet.hydrate(a),y};let Ko;typeof document=="object"&&(Ko=gu({key:"css",prepend:!0}));function ja(e){const{injectFirst:t,children:r}=e;return t&&Ko?b.jsx(fr.CacheProvider,{value:Ko,children:r}):r}process.env.NODE_ENV!=="production"&&(ja.propTypes={children:p.node,injectFirst:p.bool});function mu(e){return e==null||Object.keys(e).length===0}function Aa(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(mu(o)?r:o):t;return b.jsx(fr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Aa.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});/**
|
|
31
|
-
* @mui/styled-engine
|
|
30
|
+
<%s key={someKey} {...props} />`,zr,$t,hl,$t),Xo[$t+zr]=!0}}return m===r?ul(be):cl(be),be}}function fl(m,R,I){return Zo(m,R,I,!0)}function dl(m,R,I){return Zo(m,R,I,!1)}var pl=dl,gl=fl;vn.Fragment=r,vn.jsx=pl,vn.jsxs=gl}()),vn}process.env.NODE_ENV==="production"?co.exports=kl():co.exports=Pl();var b=co.exports;function $l(){return b.jsx(He.Environment,{children:b.jsx(jl,{})})}function jl({positions:e=[2,0,2,0,2,0,2,0]}){return b.jsxs(b.Fragment,{children:[b.jsx(He.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(He.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,n*4],scale:[3,1,1]},n))})}),b.jsx(He.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),b.jsx(He.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),b.jsx(He.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),b.jsx(He.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),b.jsx(He.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function _l(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 Il({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=_l(a);if(l.isCoplanar&&l.normal){const p=new Se.Vector3().addVectors(a[0],l.normal.multiplyScalar(1e-4));a.push(p)}let c;try{c=new Tl.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 Ll({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(He.Line,{points:n,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}function Tt(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 Nl(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 Ml={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 Dl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fl=!1,Bl=/[A-Z]|^ms/g,Vl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ps=function(t){return t.charCodeAt(1)===45},ni=function(t){return t!=null&&typeof t!="boolean"},Wr=Dl(function(e){return Ps(e)?e:e.replace(Bl,"-$&").toLowerCase()}),ri=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vl,function(r,o,i){return wt={name:o,styles:i,next:wt},o})}return Ml[t]!==1&&!Ps(t)&&typeof n=="number"&&n!==0?n+"px":n},Ul="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function or(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 wt={name:o.name,styles:o.styles,next:wt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)wt={name:s.name,styles:s.styles,next:wt},s=s.next;var a=i.styles+";";return a}return zl(e,t,n)}}var l=n;return l}function zl(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=or(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;ni(a)&&(r+=Wr(i)+":"+ri(i,a)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&Fl)throw new Error(Ul);if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)ni(s[l])&&(r+=Wr(i)+":"+ri(i,s[l])+";");else{var c=or(e,t,s);switch(i){case"animation":case"animationName":{r+=Wr(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}}return r}var oi=/label:\s*([^\s;{]+)\s*(;|$)/g,wt;function Jl(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="";wt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=or(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=or(n,t,e[a]),r){var l=i;o+=l[a]}oi.lastIndex=0;for(var c="",u;(u=oi.exec(o))!==null;)c+="-"+u[1];var p=Nl(o)+c;return{name:p,styles:o,next:wt}}/**
|
|
31
|
+
* @mui/styled-engine v6.4.0
|
|
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
|
|
37
|
-
`)):
|
|
36
|
+
*/function Wl(e,t){const n=Ol(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 Gl(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ii=[];function si(e){return ii[0]=e,Jl(ii)}function Qe(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 $s(e){if(M.isValidElement(e)||!Qe(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$s(e[n])}),t}function ke(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Qe(e)&&Qe(t)&&Object.keys(t).forEach(o=>{M.isValidElement(t[o])?r[o]=t[o]:Qe(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Qe(e[o])?r[o]=ke(e[o],t[o],n):n.clone?r[o]=Qe(t[o])?$s(t[o]):t[o]:r[o]=t[o]}),r}const Hl=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 Kl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Hl(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,v){const y=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:v)-r/100}${n})`}function u(f){return s.indexOf(f)+1<s.length?c(f,s[s.indexOf(f)+1]):a(f)}function p(f){const v=s.indexOf(f);return v===0?a(s[1]):v===s.length-1?l(s[v]):c(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:c,only:u,not:p,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 Yl(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Xl(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>\`.
|
|
38
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Tt(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function Zl(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 Ql={borderRadius:4},Rt=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function On(e,t){return t?ke(e,t,{clone:!1}):e}const mr={xs:0,sm:600,md:900,lg:1200,xl:1536},ai={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mr[e]}px)`},ec={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:mr[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ke(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||ai;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||ai;return Object.keys(t).reduce((s,a)=>{if(Yl(i.keys,a)){const l=Xl(r.containerQueries?r:ec,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||mr).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 js(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function _s(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tc(e,...t){const n=js(e),r=[n,...t].reduce((o,i)=>ke(o,i),{});return _s(Object.keys(n),r)}function nc(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 Gr({values:e,breakpoints:t,base:n}){const r=n||nc(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 Ae(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function yr(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 ir(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=yr(e,n)||r,t&&(o=t(o,r,e)),o}function ye(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=yr(l,r)||{};return Ke(s,a,p=>{let f=ir(c,o,p);return p===f&&typeof p=="string"&&(f=ir(c,o,`${t}${p==="default"?"":Ae(p)}`,p)),n===!1?f:{[n]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Rt}:{},i.filterProps=[t],i}function rc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const oc={m:"margin",p:"padding"},ic={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},li={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sc=rc(e=>{if(e.length>2)if(li[e])e=li[e];else return[e];const[t,n]=e.split(""),r=oc[t],o=ic[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),br=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ac=[...br,...vr];function Nn(e,t,n,r){const o=yr(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(`
|
|
38
39
|
`)):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(`
|
|
39
|
-
`)))
|
|
40
|
-
`)),()=>{})}function Si(e){return Qr(e,"spacing",8,"spacing")}function Jt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function $u(e,t){return r=>e.reduce((n,o)=>(n[o]=Jt(t,r),n),{})}function ku(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=_u(r),i=$u(o,n),s=e[r];return st(e,s,i)}function Va(e,t){const r=Si(e.theme);return Object.keys(e).map(n=>ku(e,t,n,r)).reduce(Vr,{})}function pe(e){return Va(e,Xn)}pe.propTypes=process.env.NODE_ENV!=="production"?Xn.reduce((e,t)=>(e[t]=Nt,e),{}):{};pe.filterProps=Xn;function he(e){return Va(e,Zn)}he.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=Nt,e),{}):{};he.filterProps=Zn;process.env.NODE_ENV!=="production"&&Pu.reduce((e,t)=>(e[t]=Nt,e),{});function ju(e=8){if(e.mui)return e;const t=Si({spacing:e}),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 s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Qn(...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]?Vr(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 Ze(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return me({prop:e,themeKey:"borders",transform:t})}const Au=rt("border",Ze),Lu=rt("borderTop",Ze),Iu=rt("borderRight",Ze),Nu=rt("borderBottom",Ze),Mu=rt("borderLeft",Ze),Du=rt("borderColor"),Fu=rt("borderTopColor"),Vu=rt("borderRightColor"),Bu=rt("borderBottomColor"),Uu=rt("borderLeftColor"),zu=rt("outline",Ze),Ju=rt("outlineColor"),eo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Jt(t,n)});return st(e,e.borderRadius,r)}return null};eo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Nt}:{};eo.filterProps=["borderRadius"];Qn(Au,Lu,Iu,Nu,Mu,Du,Fu,Vu,Bu,Uu,eo,zu,Ju);const to=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qr(e.theme,"spacing",8,"gap"),r=n=>({gap:Jt(t,n)});return st(e,e.gap,r)}return null};to.propTypes=process.env.NODE_ENV!=="production"?{gap:Nt}:{};to.filterProps=["gap"];const ro=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Jt(t,n)});return st(e,e.columnGap,r)}return null};ro.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Nt}:{};ro.filterProps=["columnGap"];const no=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Jt(t,n)});return st(e,e.rowGap,r)}return null};no.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Nt}:{};no.filterProps=["rowGap"];const Hu=me({prop:"gridColumn"}),Wu=me({prop:"gridRow"}),Gu=me({prop:"gridAutoFlow"}),qu=me({prop:"gridAutoColumns"}),Ku=me({prop:"gridAutoRows"}),Yu=me({prop:"gridTemplateColumns"}),Xu=me({prop:"gridTemplateRows"}),Zu=me({prop:"gridTemplateAreas"}),Qu=me({prop:"gridArea"});Qn(to,ro,no,Hu,Wu,Gu,qu,Ku,Yu,Xu,Zu,Qu);function pr(e,t){return t==="grey"?t:e}const ef=me({prop:"color",themeKey:"palette",transform:pr}),tf=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pr}),rf=me({prop:"backgroundColor",themeKey:"palette",transform:pr});Qn(ef,tf,rf);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const nf=me({prop:"width",transform:Je}),wi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||xi[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Je(r)}};return st(e,e.maxWidth,t)}return null};wi.filterProps=["maxWidth"];const of=me({prop:"minWidth",transform:Je}),sf=me({prop:"height",transform:Je}),af=me({prop:"maxHeight",transform:Je}),lf=me({prop:"minHeight",transform:Je});me({prop:"size",cssProperty:"width",transform:Je});me({prop:"size",cssProperty:"height",transform:Je});const cf=me({prop:"boxSizing"});Qn(nf,wi,of,sf,af,lf,cf);const en={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:eo},color:{themeKey:"palette",transform:pr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pr},backgroundColor:{themeKey:"palette",transform:pr},p:{style:he},pt:{style:he},pr:{style:he},pb:{style:he},pl:{style:he},px:{style:he},py:{style:he},padding:{style:he},paddingTop:{style:he},paddingRight:{style:he},paddingBottom:{style:he},paddingLeft:{style:he},paddingX:{style:he},paddingY:{style:he},paddingInline:{style:he},paddingInlineStart:{style:he},paddingInlineEnd:{style:he},paddingBlock:{style:he},paddingBlockStart:{style:he},paddingBlockEnd:{style:he},m:{style:pe},mt:{style:pe},mr:{style:pe},mb:{style:pe},ml:{style:pe},mx:{style:pe},my:{style:pe},margin:{style:pe},marginTop:{style:pe},marginRight:{style:pe},marginBottom:{style:pe},marginLeft:{style:pe},marginX:{style:pe},marginY:{style:pe},marginInline:{style:pe},marginInlineStart:{style:pe},marginInlineEnd:{style:pe},marginBlock:{style:pe},marginBlockStart:{style:pe},marginBlockEnd:{style:pe},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:to},rowGap:{style:no},columnGap:{style:ro},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:wi},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function uf(...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 ff(e,t){return typeof e=="function"?e(t):e}function Ba(){function e(r,n,o,i){const s={[r]:n,theme:o},a=i[r];if(!a)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=Yn(o,c)||{};return d?d(s):st(s,n,y=>{let m=Ln(f,u,y);return y===m&&typeof y=="string"&&(m=Ln(f,u,`${r}${y==="default"?"":Re(y)}`,y)),l===!1?m:{[l]:m}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:en;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Da(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(v=>{const y=ff(c[v],i);if(y!=null)if(typeof y=="object")if(s[v])f=Vr(f,e(v,y,i,s));else{const m=st({theme:i},y,g=>({[v]:g}));uf(m,y)?f[v]=t({sx:y,theme:i}):f=Vr(f,m)}else f=Vr(f,e(v,y,i,s))}),Fa(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const tn=Ba();tn.filterProps=["sx"];function Ua(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const df=["breakpoints","palette","spacing","shape"];function rn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=Ve(e,df),a=Ma(r),l=ju(o);let c=et({breakpoints:a,direction:"ltr",components:{},palette:_({mode:"light"},n),spacing:l,shape:_({},Su,i)},s);return c.applyStyles=Ua,c=t.reduce((u,d)=>et(u,d),c),c.unstable_sxConfig=_({},en,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return tn({sx:d,theme:this})},c}const pf=Object.freeze(Object.defineProperty({__proto__:null,default:rn,private_createBreakpoints:Ma,unstable_applyStyles:Ua},Symbol.toStringTag,{value:"Module"}));function hf(e){return Object.keys(e).length===0}function gf(e=null){const t=N.useContext(fr.ThemeContext);return!t||hf(t)?e:t}const mf=rn();function yf(e=mf){return gf(e)}const bf=["sx"],vf=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:en;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function za(e){const{sx:t}=e,r=Ve(e,bf),{systemProps:n,otherProps:o}=vf(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return St(a)?_({},n,a):n}:i=_({},n,t),_({},o,{sx:i})}const xf=Object.freeze(Object.defineProperty({__proto__:null,default:tn,extendSxProp:za,unstable_createStyleFunctionSx:Ba,unstable_defaultSxConfig:en},Symbol.toStringTag,{value:"Module"})),Zi=e=>e,Sf=()=>{let e=Zi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zi}}},Ja=Sf();function Ha(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=Ha(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ht(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ha(e))&&(n&&(n+=" "),n+=t);return n}const wf={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 nn(e,t,r="Mui"){const n=wf[t];return n?`${r}-${n}`:`${Ja.generate(e)}-${t}`}function Wa(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=nn(e,o,r)}),n}var Yo={exports:{}},ae={};/**
|
|
40
|
+
`)));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(`
|
|
41
|
+
`)),()=>{})}function xr(e){return Nn(e,"spacing",8,"spacing")}function It(e,t){return typeof t=="string"||t==null?t:e(t)}function lc(e,t){return n=>e.reduce((r,o)=>(r[o]=It(t,n),r),{})}function cc(e,t,n,r){if(!t.includes(n))return null;const o=sc(n),i=lc(o,r),s=e[n];return Ke(e,s,i)}function Is(e,t){const n=xr(e.theme);return Object.keys(e).map(r=>cc(e,t,r,n)).reduce(On,{})}function de(e){return Is(e,br)}de.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=Rt,e),{}):{};de.filterProps=br;function pe(e){return Is(e,vr)}pe.propTypes=process.env.NODE_ENV!=="production"?vr.reduce((e,t)=>(e[t]=Rt,e),{}):{};pe.filterProps=vr;process.env.NODE_ENV!=="production"&&ac.reduce((e,t)=>(e[t]=Rt,e),{});function Ls(e=8,t=xr({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 Sr(...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]?On(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 We(e,t){return ye({prop:e,themeKey:"borders",transform:t})}const uc=We("border",ze),fc=We("borderTop",ze),dc=We("borderRight",ze),pc=We("borderBottom",ze),gc=We("borderLeft",ze),hc=We("borderColor"),mc=We("borderTopColor"),yc=We("borderRightColor"),bc=We("borderBottomColor"),vc=We("borderLeftColor"),xc=We("outline",ze),Sc=We("outlineColor"),wr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:It(t,r)});return Ke(e,e.borderRadius,n)}return null};wr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Rt}:{};wr.filterProps=["borderRadius"];Sr(uc,fc,dc,pc,gc,hc,mc,yc,bc,vc,wr,xc,Sc);const Cr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nn(e.theme,"spacing",8,"gap"),n=r=>({gap:It(t,r)});return Ke(e,e.gap,n)}return null};Cr.propTypes=process.env.NODE_ENV!=="production"?{gap:Rt}:{};Cr.filterProps=["gap"];const Tr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:It(t,r)});return Ke(e,e.columnGap,n)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Rt}:{};Tr.filterProps=["columnGap"];const Er=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:It(t,r)});return Ke(e,e.rowGap,n)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Rt}:{};Er.filterProps=["rowGap"];const wc=ye({prop:"gridColumn"}),Cc=ye({prop:"gridRow"}),Tc=ye({prop:"gridAutoFlow"}),Ec=ye({prop:"gridAutoColumns"}),Oc=ye({prop:"gridAutoRows"}),Rc=ye({prop:"gridTemplateColumns"}),Ac=ye({prop:"gridTemplateRows"}),kc=ye({prop:"gridTemplateAreas"}),Pc=ye({prop:"gridArea"});Sr(Cr,Tr,Er,wc,Cc,Tc,Ec,Oc,Rc,Ac,kc,Pc);function ln(e,t){return t==="grey"?t:e}const $c=ye({prop:"color",themeKey:"palette",transform:ln}),jc=ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ln}),_c=ye({prop:"backgroundColor",themeKey:"palette",transform:ln});Sr($c,jc,_c);function Me(e){return e<=1&&e!==0?`${e*100}%`:e}const Ic=ye({prop:"width",transform:Me}),$o=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])||mr[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:Me(n)}};return Ke(e,e.maxWidth,t)}return null};$o.filterProps=["maxWidth"];const Lc=ye({prop:"minWidth",transform:Me}),Nc=ye({prop:"height",transform:Me}),Mc=ye({prop:"maxHeight",transform:Me}),Dc=ye({prop:"minHeight",transform:Me});ye({prop:"size",cssProperty:"width",transform:Me});ye({prop:"size",cssProperty:"height",transform:Me});const Fc=ye({prop:"boxSizing"});Sr(Ic,$o,Lc,Nc,Mc,Dc,Fc);const Mn={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:wr},color:{themeKey:"palette",transform:ln},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ln},backgroundColor:{themeKey:"palette",transform:ln},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:Cr},rowGap:{style:Er},columnGap:{style:Tr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Me},maxWidth:{style:$o},minWidth:{transform:Me},height:{transform:Me},maxHeight:{transform:Me},minHeight:{transform:Me},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 Bc(...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 Vc(e,t){return typeof e=="function"?e(t):e}function Uc(){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:p}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=yr(o,c)||{};return p?p(s):Ke(s,r,y=>{let d=ir(f,u,y);return y===d&&typeof y=="string"&&(d=ir(f,u,`${n}${y==="default"?"":Ae(y)}`,y)),l===!1?d:{[l]:d}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Mn;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=js(o.breakpoints),u=Object.keys(c);let p=c;return Object.keys(l).forEach(f=>{const v=Vc(l[f],o);if(v!=null)if(typeof v=="object")if(i[f])p=On(p,e(f,v,o,i));else{const y=Ke({theme:o},v,d=>({[f]:d}));Bc(y,v)?p[f]=t({sx:v,theme:o}):p=On(p,y)}else p=On(p,e(f,v,o,i))}),ql(o,_s(u,p))}return Array.isArray(r)?r.map(s):s(r)}return t}const fn=Uc();fn.filterProps=["sx"];function zc(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 Or(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=Kl(n),l=Ls(o);let c=ke({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Ql,...i}},s);return c=Zl(c),c.applyStyles=zc,c=t.reduce((u,p)=>ke(u,p),c),c.unstable_sxConfig={...Mn,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(p){return fn({sx:p,theme:this})},c}function Jc(e){return Object.keys(e).length===0}function Wc(e=null){const t=M.useContext(Rl.ThemeContext);return!t||Jc(t)?e:t}const Gc=Or();function Hc(e=Gc){return Wc(e)}const Kc=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Mn;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}=Kc(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Qe(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}const ci=e=>e,Yc=()=>{let e=ci;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ci}}},Xc=Yc();function Ns(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=Ns(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ns(e))&&(r&&(r+=" "),r+=t);return r}const Zc={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 Dn(e,t,n="Mui"){const r=Zc[t];return r?`${n}-${r}`:`${Xc.generate(e)}-${t}`}function Ms(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Dn(e,o,n)}),r}var uo={exports:{}},re={};/**
|
|
41
42
|
* @license React
|
|
42
|
-
* react-is.production.
|
|
43
|
+
* react-is.production.js
|
|
43
44
|
*
|
|
44
|
-
* Copyright (c)
|
|
45
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
46
|
*
|
|
46
47
|
* This source code is licensed under the MIT license found in the
|
|
47
48
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
49
|
+
*/var ui;function Qc(){if(ui)return re;ui=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"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");function y(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case e:switch(d=d.type,d){case n:case o:case r:case l:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case a:case p:case u:return d;case i:return d;default:return x}}case t:return x}}}return re.ContextConsumer=i,re.ContextProvider=s,re.Element=e,re.ForwardRef=a,re.Fragment=n,re.Lazy=p,re.Memo=u,re.Portal=t,re.Profiler=o,re.StrictMode=r,re.Suspense=l,re.SuspenseList=c,re.isContextConsumer=function(d){return y(d)===i},re.isContextProvider=function(d){return y(d)===s},re.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},re.isForwardRef=function(d){return y(d)===a},re.isFragment=function(d){return y(d)===n},re.isLazy=function(d){return y(d)===p},re.isMemo=function(d){return y(d)===u},re.isPortal=function(d){return y(d)===t},re.isProfiler=function(d){return y(d)===o},re.isStrictMode=function(d){return y(d)===r},re.isSuspense=function(d){return y(d)===l},re.isSuspenseList=function(d){return y(d)===c},re.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===o||d===r||d===l||d===c||d===f||typeof d=="object"&&d!==null&&(d.$$typeof===p||d.$$typeof===u||d.$$typeof===s||d.$$typeof===i||d.$$typeof===a||d.$$typeof===v||d.getModuleId!==void 0)},re.typeOf=y,re}var oe={};/**
|
|
49
50
|
* @license React
|
|
50
51
|
* react-is.development.js
|
|
51
52
|
*
|
|
52
|
-
* Copyright (c)
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
54
|
*
|
|
54
55
|
* This source code is licensed under the MIT license found in the
|
|
55
56
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var
|
|
57
|
-
|
|
58
|
-
`))},[JSON.stringify(t)])}const l=N.useCallback(c=>{o||s(c)},[]);return[a,l]}function Rn(e){const t=N.useRef(e);return Ti(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Nn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ya(r,t)})},e)}class Oi{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Oi}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let oo=!0,Xo=!1;const qf=new Oi,Kf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Yf(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Kf[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Xf(e){e.metaKey||e.altKey||e.ctrlKey||(oo=!0)}function Po(){oo=!1}function Zf(){this.visibilityState==="hidden"&&Xo&&(oo=!0)}function Qf(e){e.addEventListener("keydown",Xf,!0),e.addEventListener("mousedown",Po,!0),e.addEventListener("pointerdown",Po,!0),e.addEventListener("touchstart",Po,!0),e.addEventListener("visibilitychange",Zf,!0)}function ed(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return oo||Yf(t)}function Za(){const e=N.useCallback(o=>{o!=null&&Qf(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Xo=!0,qf.start(100,()=>{Xo=!1}),t.current=!1,!0):!1}function n(o){return ed(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const td={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ei(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),r&&r[s]&&i.push(r[s])}return i},[]).join(" ")}),n}function Br(e){return typeof e=="string"}function rd(e,t,r){return e===void 0||Br(e)?t:_({},t,{ownerState:_({},t.ownerState,r)})}function _n(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 as(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 nd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const v=ht(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),y=_({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=_({},r,o,n);return v.length>0&&(m.className=v),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const s=_n(_({},o,n)),a=as(n),l=as(o),c=t(s),u=ht(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),f=_({},c,r,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function od(e,t,r){return typeof e=="function"?e(t,r):e}const id=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=Ve(e,id),a=i?{}:od(n,o),{props:l,internalRef:c}=nd(_({},s,{externalSlotProps:a})),u=Nn(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return rd(r,_({},l,{ref:u}),o)}const sd=N.createContext();process.env.NODE_ENV!=="production"&&(p.node,p.bool);const ad=()=>{const e=N.useContext(sd);return e??!1},ld=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.node,p.object);function cd(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?In(o.defaultProps,n):!o.styleOverrides&&!o.variants?In(o,n):n}function ud({props:e,name:t}){const r=N.useContext(ld);return cd({props:e,name:t,theme:{components:r}})}const fd=["component","direction","spacing","divider","children","className","useFlexGap"],dd=rn(),pd=If("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function hd(e){return Mf({props:e,name:"MuiStack",defaultTheme:dd})}function gd(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${i}`})),n),[])}const md=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yd=({ownerState:e,theme:t})=>{let r=_({display:"flex",flexDirection:"column"},st({theme:t},Ro({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Si(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=Ro({values:e.direction,base:o}),s=Ro({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),r=et(r,st({theme:t},s,(l,c)=>e.useFlexGap?{gap:Jt(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${md(c?i[c]:e.direction)}`]:Jt(n,l)}}))}return r=wu(t.breakpoints,r),r};function bd(e={}){const{createStyledComponent:t=pd,useThemeProps:r=hd,componentName:n="MuiStack"}=e,o=()=>Ei({root:["root"]},l=>nn(n,l),{}),i=t(yd),s=N.forwardRef(function(l,c){const u=r(l),d=za(u),{component:f="div",direction:v="column",spacing:y=0,divider:m,children:g,className:S,useFlexGap:T=!1}=d,$=Ve(d,fd),O={direction:v,spacing:y,useFlexGap:T},w=o();return b.jsx(i,_({as:f,ownerState:O,ref:c,className:ht(w.root,S)},$,{children:m?gd(g,m):g}))});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:p.node,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),s}var on={},Qa={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Qa);var io=Qa.exports,$o={exports:{}},ls;function vd(){return ls||(ls=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)({}).hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($o)),$o.exports}var ko={exports:{}},cs;function xd(){return cs||(cs=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(n.includes(i))continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ko)),ko.exports}const Sd=Tt(yu),wd=Tt(bu),Td=Tt(Ou),Od=Tt(Cf),Ed=Tt(pf),Cd=Tt(xf);var xr=io;Object.defineProperty(on,"__esModule",{value:!0});var Rd=on.default=Bd;on.shouldForwardProp=Pn;on.systemDefaultTheme=void 0;var Xe=xr(vd()),Zo=xr(xd()),us=Nd(Sd),_d=wd,Pd=xr(Td),$d=xr(Od),kd=xr(Ed),jd=xr(Cd);const Ad=["ownerState"],Ld=["variants"],Id=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function el(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(el=function(n){return n?r:t})(e)}function Nd(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=el(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function Md(e){return Object.keys(e).length===0}function Dd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fd=on.systemDefaultTheme=(0,kd.default)(),fs=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hn({defaultTheme:e,theme:t,themeId:r}){return Md(t)?e:t[r]||t}function Vd(e){return e?(t,r)=>r[e]:null}function $n(e,t){let{ownerState:r}=t,n=(0,Zo.default)(t,Ad);const o=typeof e=="function"?e((0,Xe.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>$n(i,(0,Xe.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Zo.default)(o,Ld);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Xe.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Xe.default)({ownerState:r},n,r)):l.style))}),a}return o}function Bd(e={}){const{themeId:t,defaultTheme:r=Fd,rootShouldForwardProp:n=Pn,slotShouldForwardProp:o=Pn}=e,i=s=>(0,jd.default)((0,Xe.default)({},s,{theme:hn((0,Xe.default)({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,us.internal_processStyles)(s,w=>w.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Vd(fs(c))}=a,v=(0,Zo.default)(a,Id),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let g;process.env.NODE_ENV!=="production"&&l&&(g=`${l}-${fs(c||"Root")}`);let S=Pn;c==="Root"||c==="root"?S=n:c?S=o:Dd(s)&&(S=void 0);const T=(0,us.default)(s,(0,Xe.default)({shouldForwardProp:S,label:g},v)),$=w=>typeof w=="function"&&w.__emotion_real!==w||(0,_d.isPlainObject)(w)?C=>$n(w,(0,Xe.default)({},C,{theme:hn({theme:C.theme,defaultTheme:r,themeId:t})})):w,O=(w,...C)=>{let R=$(w);const B=C?C.map($):[];l&&f&&B.push(M=>{const W=hn((0,Xe.default)({},M,{defaultTheme:r,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const G=W.components[l].styleOverrides,Z={};return Object.entries(G).forEach(([X,Se])=>{Z[X]=$n(Se,(0,Xe.default)({},M,{theme:W}))}),f(M,Z)}),l&&!y&&B.push(M=>{var W;const G=hn((0,Xe.default)({},M,{defaultTheme:r,themeId:t})),Z=G==null||(W=G.components)==null||(W=W[l])==null?void 0:W.variants;return $n({variants:Z},(0,Xe.default)({},M,{theme:G}))}),m||B.push(i);const se=B.length-C.length;if(Array.isArray(w)&&se>0){const M=new Array(se).fill("");R=[...w,...M],R.raw=[...w.raw,...M]}const U=T(R,...B);if(process.env.NODE_ENV!=="production"){let M;l&&(M=`${l}${(0,Pd.default)(c||"")}`),M===void 0&&(M=`Styled(${(0,$d.default)(s)})`),U.displayName=M}return s.muiName&&(U.muiName=s.muiName),U};return T.withConfig&&(O.withConfig=T.withConfig),O}}function Ud(e,t){return _({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ye={};const zd=Tt(Fc),Jd=Tt(Df);var tl=io;Object.defineProperty(ye,"__esModule",{value:!0});var ds=ye.alpha=il;ye.blend=ep;ye.colorChannel=void 0;var Qo=ye.darken=Ri;ye.decomposeColor=tt;ye.emphasize=sl;var ps=ye.getContrastRatio=Kd;ye.getLuminance=Mn;ye.hexToRgb=rl;ye.hslToRgb=ol;var ei=ye.lighten=_i;ye.private_safeAlpha=Yd;ye.private_safeColorChannel=void 0;ye.private_safeDarken=Xd;ye.private_safeEmphasize=Qd;ye.private_safeLighten=Zd;ye.recomposeColor=Sr;ye.rgbToHex=qd;var hs=tl(zd),Hd=tl(Jd);function Ci(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Hd.default)(e,t,r)}function rl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Wd(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function tt(e){if(e.type)return e;if(e.charAt(0)==="#")return tt(rl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
`))}return g}const f=({color:m,name:g,mainShade:S=500,lightShade:T=300,darkShade:$=700})=>{if(m=_({},m),!m.main&&m[S]&&(m.main=m[S]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
62
|
-
|
|
63
|
-
\`
|
|
57
|
+
*/var fi;function eu(){return fi||(fi=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case t:switch(d=d.type,d){case r:case i:case o:case c:case u:return d;default:switch(d=d&&d.$$typeof,d){case a:case l:case f:case p:return d;case s:return d;default:return x}}case n:return x}}}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"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=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=f,oe.Memo=p,oe.Portal=n,oe.Profiler=i,oe.StrictMode=o,oe.Suspense=c,oe.SuspenseList=u,oe.isContextConsumer=function(d){return e(d)===s},oe.isContextProvider=function(d){return e(d)===a},oe.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},oe.isForwardRef=function(d){return e(d)===l},oe.isFragment=function(d){return e(d)===r},oe.isLazy=function(d){return e(d)===f},oe.isMemo=function(d){return e(d)===p},oe.isPortal=function(d){return e(d)===n},oe.isProfiler=function(d){return e(d)===i},oe.isStrictMode=function(d){return e(d)===o},oe.isSuspense=function(d){return e(d)===c},oe.isSuspenseList=function(d){return e(d)===u},oe.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===o||d===c||d===u||d===v||typeof d=="object"&&d!==null&&(d.$$typeof===f||d.$$typeof===p||d.$$typeof===a||d.$$typeof===s||d.$$typeof===l||d.$$typeof===y||d.getModuleId!==void 0)},oe.typeOf=e}()),oe}process.env.NODE_ENV==="production"?uo.exports=Qc():uo.exports=eu();var di=uo.exports;function Ds(e,t=""){return e.displayName||e.name||t}function pi(e,t,n){const r=Ds(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function tu(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ds(e,"Component");if(typeof e=="object")switch(e.$$typeof){case di.ForwardRef:return pi(e,e.render,"ForwardRef");case di.Memo:return pi(e,e.type,"memo");default:return}}}function Fs(e){const{variants:t,...n}=e,r={variants:t,style:si(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=si(o.style))}),r}const nu=Or();function Hr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ru(e){return e?(t,n)=>n[e]:null}function ou(e,t,n){e.theme=au(e.theme)?n:e.theme[t]||e.theme}function Zn(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Zn(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 Bs(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Bs(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 Vs(e={}){const{themeId:t,defaultTheme:n=nu,rootShouldForwardProp:r=Hr,slotShouldForwardProp:o=Hr}=e;function i(a){ou(a,t,n)}return(a,l={})=>{Gl(a,O=>O.filter(P=>P!==fn));const{name:c,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:v=ru(Us(u)),...y}=l,d=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,x=f||!1;let T=Hr;u==="Root"||u==="root"?T=r:u?T=o:lu(a)&&(T=void 0);const E=Wl(a,{shouldForwardProp:T,label:su(c,u),...y}),k=O=>{if(typeof O=="function"&&O.__emotion_real!==O)return function(L){return Zn(L,O)};if(Qe(O)){const P=Fs(O);return P.variants?function(z){return Zn(z,P)}:P.style}return O},w=(...O)=>{const P=[],L=O.map(k),z=[];if(P.push(i),c&&v&&z.push(function(F){var X,Pe;const D=(Pe=(X=F.theme.components)==null?void 0:X[c])==null?void 0:Pe.styleOverrides;if(!D)return null;const ne={};for(const G in D)ne[G]=Zn(F,D[G]);return v(F,ne)}),c&&!d&&z.push(function(F){var ne,X;const N=F.theme,D=(X=(ne=N==null?void 0:N.components)==null?void 0:ne[c])==null?void 0:X.variants;return D?Bs(F,D):null}),x||z.push(fn),Array.isArray(L[0])){const $=L.shift(),F=new Array(P.length).fill(""),N=new Array(z.length).fill("");let D;D=[...F,...$,...N],D.raw=[...F,...$.raw,...N],P.unshift(D)}const Y=[...P,...L,...z],g=E(...Y);return a.muiName&&(g.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=iu(c,u,a)),g};return E.withConfig&&(w.withConfig=E.withConfig),w}}function iu(e,t,n){return e?`${e}${Ae(t||"")}`:`Styled(${tu(n)})`}function su(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Us(t||"Root")}`),n}function au(e){for(const t in e)return!1;return!0}function lu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Us(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const cu=Vs();function sr(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]=sr(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function uu(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:sr(t.components[n].defaultProps,r)}function fu({props:e,name:t,defaultTheme:n,themeId:r}){let o=Hc(n);return r&&(o=o[r]||o),uu({theme:o,name:t,props:e})}const zs=typeof window<"u"?M.useLayoutEffect:M.useEffect;function an(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function jo(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}].`),an(e,t,n)}function du(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 Et(e){if(e.type)return e;if(e.charAt(0)==="#")return Et(du(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().`:Tt(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.`:Tt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const pu=e=>{const t=Et(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Tn=(e,t)=>{try{return pu(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Rr(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 Js(e){e=Et(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])),Rr({type:a,values:l})}function fo(e){e=Et(e);let t=e.type==="hsl"||e.type==="hsla"?Et(Js(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 gi(e,t){const n=fo(e),r=fo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function po(e,t){return e=Et(e),t=jo(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rr(e)}function Un(e,t,n){try{return po(e,t)}catch{return e}}function kn(e,t){if(e=Et(e),t=jo(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 Rr(e)}function se(e,t,n){try{return kn(e,t)}catch{return e}}function Pn(e,t){if(e=Et(e),t=jo(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 Rr(e)}function ae(e,t,n){try{return Pn(e,t)}catch{return e}}function gu(e,t=.15){return fo(e)>.5?kn(e,t):Pn(e,t)}function zn(e,t,n){try{return gu(e,t)}catch{return e}}function hi(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Qn(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:n,state:r="value"}){const{current:o}=M.useRef(e!==void 0),[i,s]=M.useState(t),a=o?e:i;if(process.env.NODE_ENV!=="production"){M.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}=M.useRef(t);M.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=M.useCallback(c=>{o||s(c)},[]);return[a,l]}function Kr(e){const t=M.useRef(e);return zs(()=>{t.current=e}),M.useRef((...n)=>(0,t.current)(...n)).current}function Ws(...e){return M.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{hu(n,t)})},e)}function mi(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 _o(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 bu(e){return typeof e=="string"}function vu(e,t,n){return e===void 0||bu(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function er(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 yi(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 xu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=tt(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},d={...n,...o,...r};return v.length>0&&(d.className=v),Object.keys(y).length>0&&(d.style=y),{props:d,internalRef:void 0}}const s=er({...o,...r}),a=yi(r),l=yi(o),c=t(s),u=tt(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),p={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...a};return u.length>0&&(f.className=u),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}}function Su(e,t,n){return typeof e=="function"?e(t,n):e}function vt(e){var p;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:Su(n,r),{props:a,internalRef:l}=xu({...i,externalSlotProps:s}),c=Ws(l,s==null?void 0:s.ref,(p=e.additionalProps)==null?void 0:p.ref);return vu(t,{...a,ref:c},r)}const wu=M.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const Cu=()=>M.useContext(wu)??!1,Tu=M.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Eu(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?sr(o.defaultProps,r):!o.styleOverrides&&!o.variants?sr(o,r):r}function Ou({props:e,name:t}){const n=M.useContext(Tu);return Eu({props:e,name:t,theme:{components:n}})}const bi={theme:void 0};function Ru(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(bi.theme=o.theme,i=Fs(e(bi)),t=i,n=o.theme),i}}function Au(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])})},ku=(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)},Pu=(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 qr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return ku(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,p=Pu(a,l);Object.assign(o,{[u]:p}),vi(i,a,`var(${u})`,c),vi(s,a,`var(${u}, ${p})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function $u(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:p}=qr(l,t);let f=p;const v={},{[a]:y,...d}=i;if(Object.entries(d||{}).forEach(([k,w])=>{const{vars:O,css:P,varsWithDefaults:L}=qr(w,t);f=ke(f,L),v[k]={css:P,vars:O}}),y){const{css:k,vars:w,varsWithDefaults:O}=qr(y,t);f=ke(f,O),v[a]={css:k,vars:w}}function x(k,w){var P,L;let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),k){if(O==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((L=(P=i[k])==null?void 0:P.palette)==null?void 0:L.mode)||k})`]:{":root":w}};if(O)return e.defaultColorScheme===k?`:root, ${O.replace("%s",String(k))}`:O.replace("%s",String(k))}return":root"}return{vars:f,generateThemeVars:()=>{let k={...c};return Object.entries(v).forEach(([,{vars:w}])=>{k=ke(k,w)}),k},generateStyleSheets:()=>{var z,Y;const k=[],w=e.defaultColorScheme||"light";function O(g,$){Object.keys($).length&&k.push(typeof g=="string"?{[g]:{...$}}:g)}O(n(void 0,{...u}),u);const{[w]:P,...L}=v;if(P){const{css:g}=P,$=(Y=(z=i[w])==null?void 0:z.palette)==null?void 0:Y.mode,F=!r&&$?{colorScheme:$,...g}:{...g};O(n(w,{...F}),F)}return Object.entries(L).forEach(([g,{css:$}])=>{var D,ne;const F=(ne=(D=i[g])==null?void 0:D.palette)==null?void 0:ne.mode,N=!r&&F?{colorScheme:F,...$}:{...$};O(n(g,{...N}),N)}),k}}}function ju(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 _u=Or(),Iu=cu("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Lu(e){return fu({props:e,name:"MuiStack",defaultTheme:_u})}function Nu(e,t){const n=M.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(M.cloneElement(t,{key:`separator-${i}`})),r),[])}const Mu=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Du=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Ke({theme:t},Gr({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=xr(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=Gr({values:e.direction,base:o}),s=Gr({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),n=ke(n,Ke({theme:t},s,(l,c)=>e.useFlexGap?{gap:It(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Mu(c?i[c]:e.direction)}`]:It(r,l)}}))}return n=tc(t.breakpoints,n),n};function Fu(e={}){const{createStyledComponent:t=Iu,useThemeProps:n=Lu,componentName:r="MuiStack"}=e,o=()=>_o({root:["root"]},l=>Dn(r,l),{}),i=t(Du),s=M.forwardRef(function(l,c){const u=n(l),p=qc(u),{component:f="div",direction:v="column",spacing:y=0,divider:d,children:x,className:T,useFlexGap:E=!1,...k}=p,w={direction:v,spacing:y,useFlexGap:E},O=o();return b.jsx(i,{as:f,ownerState:w,ref:c,className:tt(O.root,T),...k,children:d?Nu(x,d):x})});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 $n={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"},Zt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Qt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},xn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},en={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},tn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},nn={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Gs(){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:$n.white,default:$n.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=Gs();function Hs(){return{text:{primary:$n.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:$n.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=Hs();function Si(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=Pn(e.main,o):t==="dark"&&(e.dark=kn(e.main,i)))}function Uu(e="light"){return e==="dark"?{main:en[200],light:en[50],dark:en[400]}:{main:en[700],light:en[400],dark:en[800]}}function zu(e="light"){return e==="dark"?{main:Zt[200],light:Zt[50],dark:Zt[400]}:{main:Zt[500],light:Zt[300],dark:Zt[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 Wu(e="light"){return e==="dark"?{main:tn[400],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[500],dark:tn[900]}}function Gu(e="light"){return e==="dark"?{main:nn[400],light:nn[300],dark:nn[700]}:{main:nn[800],light:nn[500],dark:nn[900]}}function Hu(e="light"){return e==="dark"?{main:xn[400],light:xn[300],dark:xn[700]}:{main:"#ed6c02",light:xn[500],dark:xn[900]}}function Io(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||Uu(t),s=e.secondary||zu(t),a=e.error||Ju(t),l=e.info||Wu(t),c=e.success||Gu(t),u=e.warning||Hu(t);function p(d){const x=gi(d,xi.text.primary)>=n?xi.text.primary:Vu.text.primary;if(process.env.NODE_ENV!=="production"){const T=gi(d,x);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${x} on ${d}`,"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 x}const f=({color:d,name:x,mainShade:T=500,lightShade:E=300,darkShade:k=700})=>{if(d={...d},!d.main&&d[T]&&(d.main=d[T]),!d.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
64
|
+
The color object needs to have a \`main\` property or a \`${T}\` property.`:Tt(11,x?` (${x})`:"",T));if(typeof d.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
65
|
+
\`color.main\` should be a string, but \`${JSON.stringify(d.main)}\` was provided instead.
|
|
64
66
|
|
|
65
67
|
Did you intend to use one of the following approaches?
|
|
66
68
|
|
|
@@ -72,13 +74,20 @@ const theme1 = createTheme({ palette: {
|
|
|
72
74
|
|
|
73
75
|
const theme2 = createTheme({ palette: {
|
|
74
76
|
primary: { main: green[500] },
|
|
75
|
-
} });`:
|
|
76
|
-
`)),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:
|
|
77
|
-
`))}f[y]={}}}};Object.keys(c.components).forEach(f=>{const v=c.components[f].styleOverrides;v&&f.indexOf("Mui")===0&&d(v,f)})}return c.unstable_sxConfig=_({},en,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return tn({sx:d,theme:this})},c}const Op=al(),Ep="$$material";function Pi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cp=e=>Pi(e)&&e!=="classes",Ot=Rd({themeId:Ep,defaultTheme:Op,rootShouldForwardProp:Cp});process.env.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function $i(e){return ud(e)}const gr=bd({createStyledComponent:Ot("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$i({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(gr.propTypes={children:p.node,component:p.elementType,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),useFlexGap:p.bool});const z=e=>typeof e=="string",Mr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},xs=e=>e==null?"":""+e,Rp=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},_p=/###/g,Ss=e=>e&&e.indexOf("###")>-1?e.replace(_p,"."):e,ws=e=>!e||z(e),Ur=(e,t,r)=>{const n=z(t)?t.split("."):t;let o=0;for(;o<n.length-1;){if(ws(e))return{};const i=Ss(n[o]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return ws(e)?{}:{obj:e,k:Ss(n[o])}},Ts=(e,t,r)=>{const{obj:n,k:o}=Ur(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=Ur(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Ur(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=r},Pp=(e,t,r,n)=>{const{obj:o,k:i}=Ur(e,t,Object);o[i]=o[i]||[],o[i].push(r)},Dn=(e,t)=>{const{obj:r,k:n}=Ur(e,t);if(r)return r[n]},$p=(e,t,r)=>{const n=Dn(e,r);return n!==void 0?n:Dn(t,r)},ll=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?z(e[n])||e[n]instanceof String||z(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):ll(e[n],t[n],r):e[n]=t[n]);return e},lr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var kp={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const jp=e=>z(e)?e.replace(/[&<>"'\/]/g,t=>kp[t]):e;class Ap{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 Lp=[" ",",","?","!",";"],Ip=new Ap(20),Np=(e,t,r)=>{t=t||"",r=r||"";const n=Lp.filter(s=>t.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const o=Ip.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(r);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},ti=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let i=0;i<n.length;){if(!o||typeof o!="object")return;let s,a="";for(let l=i;l<n.length;++l)if(l!==i&&(a+=r),a+=n[l],s=o[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<n.length-1)continue;i+=l-i+1;break}o=s}return o},Fn=e=>e&&e.replace("_","-"),Mp={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Vn{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||Mp,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:(z(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Vn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Vn(this.logger,t)}}var dt=new Vn;class so{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(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[t,...n])})}}class Os extends so{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){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,r],n&&(Array.isArray(n)?a.push(...n):z(n)&&i?a.push(...n.split(i)):a.push(n)));const l=Dn(this.data,a);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=a[0],r=a[1],n=a.slice(2).join(".")),l||!s||!z(n)?l:ti(this.data&&this.data[t]&&this.data[t][r],n,i)}addResource(t,r,n,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,r];n&&(a=a.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(a=t.split("."),o=r,r=a[1]),this.addNamespaces(r),Ts(this.data,a,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)(z(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 s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,r];t.indexOf(".")>-1&&(a=t.split("."),o=n,n=r,r=a[1]),this.addNamespaces(r);let l=Dn(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?ll(l,n,i):l={...l,...n},Ts(this.data,a,l),s.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.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}: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 cl={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,r,n,o))}),t}};const Es={};class Bn extends so{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Rp(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=dt.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&&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 s=n&&t.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Np(t,n,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces: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 z(i)&&(i=[i]),{key:t,namespaces: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:s,namespaces:a}=this.extractFromKey(t[t.length-1],r),l=a[a.length-1],c=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const O=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${O}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${O}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const d=this.resolve(t,r);let f=d&&d.res;const v=d&&d.usedKey||s,y=d&&d.exactUsedKey||s,m=Object.prototype.toString.apply(f),g=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,$=!z(f)&&typeof f!="boolean"&&typeof f!="number";if(T&&f&&$&&g.indexOf(m)<0&&!(z(S)&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=O,d.usedParams=this.getUsedParamsDetails(r),d):O}if(i){const O=Array.isArray(f),w=O?[]:{},C=O?y:v;for(const R in f)if(Object.prototype.hasOwnProperty.call(f,R)){const B=`${C}${i}${R}`;w[R]=this.translate(B,{...r,joinArrays:!1,ns:a}),w[R]===B&&(w[R]=f[R])}f=w}}else if(T&&z(S)&&Array.isArray(f))f=f.join(S),f&&(f=this.extendTranslation(f,t,r,n));else{let O=!1,w=!1;const C=r.count!==void 0&&!z(r.count),R=Bn.hasDefaultValue(r),B=C?this.pluralResolver.getSuffix(c,r.count,r):"",se=r.ordinal&&C?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",U=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),M=U&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${B}`]||r[`defaultValue${se}`]||r.defaultValue;!this.isValidLookup(f)&&R&&(O=!0,f=M),this.isValidLookup(f)||(w=!0,f=s);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:f,Z=R&&M!==f&&this.options.updateMissing;if(w||O||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,l,s,Z?M:f),i){const ee=this.resolve(s,{...r,keySeparator:!1});ee&&ee.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 X=[];const Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(let ee=0;ee<Se.length;ee++)X.push(Se[ee]);else this.options.saveMissingTo==="all"?X=this.languageUtils.toResolveHierarchy(r.lng||this.language):X.push(r.lng||this.language);const ce=(ee,Ee,ke)=>{const nt=R&&ke!==f?ke:G;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,l,Ee,nt,Z,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,l,Ee,nt,Z,r),this.emit("missingKey",ee,l,Ee,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?X.forEach(ee=>{const Ee=this.pluralResolver.getSuffixes(ee,r);U&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ee.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ee.push(`${this.options.pluralSeparator}zero`),Ee.forEach(ke=>{ce([ee],s+ke,r[`defaultValue${ke}`]||M)})}):ce(X,s,M))}f=this.extendTranslation(f,t,r,d,n),w&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(w||O)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,O?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(r),d):f}extendTranslation(t,r,n,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.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 c=z(t)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=n.replace&&!z(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,n.lng||this.language||o.usedLng,n),c){const f=t.match(this.interpolator.nestingRegexp),v=f&&f.length;u<v&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,v=new Array(f),y=0;y<f;y++)v[y]=arguments[y];return i&&i[0]===v[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${r[0]}`),null):s.translate(...v,r)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=z(a)?[a]:a;return t!=null&&l&&l.length&&n.applyPostProcessor!==!1&&(t=cl.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,s,a;return z(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 f=r.count!==void 0&&!z(r.count),v=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(z(r.context)||typeof r.context=="number")&&r.context!=="",m=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(g=>{this.isValidLookup(n)||(a=g,!Es[`${m[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Es[`${m[0]}-${g}`]=!0,this.logger.warn(`key "${o}" for languages "${m.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!!!")),m.forEach(S=>{if(this.isValidLookup(n))return;s=S;const T=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(T,u,S,g,r);else{let O;f&&(O=this.pluralResolver.getSuffix(S,r.count,r));const w=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(T.push(u+O),r.ordinal&&O.indexOf(C)===0&&T.push(u+O.replace(C,this.options.pluralSeparator)),v&&T.push(u+w)),y){const R=`${u}${this.options.contextSeparator}${r.context}`;T.push(R),f&&(T.push(R+O),r.ordinal&&O.indexOf(C)===0&&T.push(R+O.replace(C,this.options.pluralSeparator)),v&&T.push(R+w))}}let $;for(;$=T.pop();)this.isValidLookup(n)||(i=$,n=this.getResource(S,g,$,r))}))})}),{res:n,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,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.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&&!z(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}}const Ao=e=>e.charAt(0).toUpperCase()+e.slice(1);class Cs{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dt.create("languageUtils")}getScriptPartFromCode(t){if(t=Fn(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=Fn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(z(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ao(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ao(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ao(n[2].toLowerCase()))),n.join("-")}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)),z(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=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return z(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))):z(t)&&i(this.formatLanguageCode(t)),n.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let Dp=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Fp={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Vp=["v1","v2","v3"],Bp=["v4"],Rs={zero:0,one:1,two:2,few:3,many:4,other:5},Up=()=>{const e={};return Dp.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Fp[t.fc]}})}),e};class zp{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=dt.create("pluralResolver"),(!this.options.compatibilityJSON||Bp.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Up(),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]:{};if(this.shouldUseIntlApi())try{const n=Fn(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];const s=new Intl.PluralRules(n,{type:o});return this.pluralRulesCache[i]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.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]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,i)=>Rs[o]-Rs[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Vp.includes(this.options.compatibilityJSON)}}const _s=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=$p(e,t,r);return!i&&o&&z(r)&&(i=ti(e,r,n),i===void 0&&(i=ti(t,r,n))),i},Lo=e=>e.replace(/\$/g,"$$$$");class Jp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.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:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:v,nestingSuffix:y,nestingSuffixEscaped:m,nestingOptionsSeparator:g,maxReplaces:S,alwaysFormat:T}=t.interpolation;this.escape=r!==void 0?r:jp,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?lr(i):s||"{{",this.suffix=a?lr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?lr(f):v||lr("$t("),this.nestingSuffix=y?lr(y):m||lr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=S||1e3,this.alwaysFormat=T!==void 0?T:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&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){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=v=>{if(v.indexOf(this.formatSeparator)<0){const S=_s(r,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...o,...r,interpolationkey:v}):S}const y=v.split(this.formatSeparator),m=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(_s(r,l,m,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...o,...r,interpolationkey:m})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Lo(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Lo(this.escape(v)):Lo(v)}].forEach(v=>{for(a=0;i=v.regex.exec(t);){const y=i[1].trim();if(s=c(y),s===void 0)if(typeof u=="function"){const g=u(t,i,o);s=z(g)?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else!z(s)&&!this.useRawValueToEscape&&(s=xs(s));const m=v.safeValue(s);if(t=t.replace(i[0],m),d?(v.regex.lastIndex+=s.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,r){let n=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 f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const v=f.match(/'/g),y=f.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${u}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...n},s=s.replace&&!z(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=r(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&!z(i))return i;z(i)||(i=xs(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 Hp=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(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.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}},cr=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 s=n+JSON.stringify(i);let a=t[s];return a||(a=e(Fn(n),o),t[s]=a),a(r)}};class Wp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dt.create("formatter"),this.options=t,this.formats={number:cr((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:cr((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:cr((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:cr((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:cr((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()]=cr(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(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)=>{const{formatName:c,formatOptions:u}=Hp(l);if(this.formats[c]){let d=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},v=f.locale||f.lng||o.locale||o.lng||n;d=this.formats[c](a,v,{...u,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const Gp=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class qp extends so{constructor(t,r,n){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=dt.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=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const i={},s={},a={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{const f=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,u=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!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,r,n){const o=t.split("|"),i=o[0],s=o[1];r&&this.emit("failedLoading",i,s,r),!r&&n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const a={};this.queue.forEach(l=>{Pp(l.loaded,[i],s),Gp(l,t),r&&l.errors.push(r),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,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,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:r,fcName:n,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,r,n,o+1,i*2,s)},i);return}s(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=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,r,a)}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();z(t)&&(t=this.languageUtils.toResolveHierarchy(t)),z(r)&&(r=[r]);const i=this.queueLoad(t,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}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,(s,a)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.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(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,n,o,l):u=c(t,r,n,o),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(t,r,n,o,a,l)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Ps=()=>({debug:!1,initImmediate:!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]),z(e[1])&&(t.defaultValue=e[1]),z(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}}),$s=e=>(z(e.ns)&&(e.ns=[e.ns]),z(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),z(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),gn=()=>{},Kp=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class qr extends so{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=$s(t),this.services={},this.logger=dt,this.modules={external:[]},Kp(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)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&&r.defaultNS!==!1&&r.ns&&(z(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Ps();this.options={...o,...this.options,...$s(r)},this.options.compatibilityAPI!=="v1"&&(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?dt.init(i(this.modules.logger),this.options):dt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Wp);const d=new Cs(this.options);this.store=new Os(this.options.resources,this.options);const f=this.services;f.logger=dt,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new zp(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Jp(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new qp(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var y=arguments.length,m=new Array(y>1?y-1:0),g=1;g<y;g++)m[g-1]=arguments[g];t.emit(v,...m)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Bn(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,m=new Array(y>1?y-1:0),g=1;g<y;g++)m[g-1]=arguments[g];t.emit(v,...m)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=gn),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=Mr(),c=()=>{const u=(d,f)=>{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(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const o=z(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(t,r,n){const o=Mr();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=gn),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"&&cl.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=Mr();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 n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=z(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,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,r,n){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||n||i.keyPrefix);const f=o.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(s)?v=s.map(y=>`${l.keyPrefix}${f}${y}`):v=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(v,l)};return z(t)?i.lng=t:i.lngs=t,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}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 s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const a=r.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,t)&&(!o||s(i,t)))}loadNamespaces(t,r){const n=Mr();return this.options.ns?(z(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=Mr();z(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=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.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=this.services&&this.services.languageUtils||new Cs(Ps());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 qr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new qr(o);return(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)},n&&(i.store=new Os(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Bn(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,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=qr.createInstance();Pe.createInstance=qr.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 Yp={"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":"Joint-Limit für Joint {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},Xp={"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"},ul=Pe.createInstance();ul.use(Pc).init({supportedLngs:["en","de"],resources:{en:{translations:Xp},de:{translations:Yp}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function sn(e){return r=>b.jsx(Zp,{children:b.jsx(e,{...r})})}const Zp=({children:e})=>b.jsx(br.I18nextProvider,{i18n:ul,children:e}),Qp=({title:e,titleId:t,...r},n)=>N.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?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogMinus"},N.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),eh=q.forwardRef(Qp),th=({title:e,titleId:t,...r},n)=>N.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?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogPlus"},N.createElement("g",{id:"Plus"},N.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),N.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),N.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),rh=q.forwardRef(th);function ao(e){q.useEffect(e,[])}function fl(e){ao(()=>mr.autorun(e))}function dl(e,t,r){ao(()=>mr.reaction(e,t,r))}function wr(e){return ao(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const ri=sn(De.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:i,activeJoggingDirection:s,...a})=>{var $,O,w,C,R,B,se;wr(()=>{const U=r(),M=f.current;M&&(M.textContent=U)});const l=k.useTheme(),[c,u]=q.useState(null);q.useEffect(()=>{i&&T()},[i]);const d=s||c,f=q.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const v=d?($=e.buttonBackgroundColor)==null?void 0:$.pressed:e.borderColor,y={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},m={...y,backgroundColor:(O=e.buttonBackgroundColor)==null?void 0:O.default,":hover":{backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.hovered},":active":{backgroundColor:(C=e.buttonBackgroundColor)==null?void 0:C.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(R=e.buttonBackgroundColor)==null?void 0:R.disabled,"svg path":{fill:l.palette.action.disabled}}},g={...y,backgroundColor:(B=e.buttonBackgroundColor)==null?void 0:B.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(se=e.buttonBackgroundColor)==null?void 0:se.pressed,"svg path":{fill:l.palette.action.disabled}}};function S(U,M){i||U.button===0&&(u(M),n(M))}function T(){u(null),o()}return b.jsxs(gr,{height:"64px",direction:"row",justifyContent:"center",...a,children:[b.jsx(k.IconButton,{disabled:i,disableRipple:!0,onPointerDown:U=>S(U,"-"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="-"?g:m,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(eh,{})}),b.jsxs(gr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:[b.jsx(gr,{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(k.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:f,children:r()})]}),b.jsx(k.IconButton,{disableRipple:!0,disabled:i,onPointerDown:U=>S(U,"+"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="+"?g:m,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(rh,{})})]})}));var ki={},Io={};function nh(e){return nn("MuiSvgIcon",e)}Wa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const oh=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ih=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Re(t)}`,`fontSize${Re(r)}`]};return Ei(o,nh,n)},sh=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Re(r.color)}`],t[`fontSize${Re(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,a,l,c,u,d,f,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Un=N.forwardRef(function(t,r){const n=$i({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:f="0 0 24 24"}=n,v=Ve(n,oh),y=N.isValidElement(o)&&o.type==="svg",m=_({},n,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:y}),g={};u||(g.viewBox=f);const S=ih(m);return b.jsxs(sh,_({as:a,className:ht(S.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},g,v,y&&o.props,{ownerState:m,children:[y?o.props.children:o,d?b.jsx("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(Un.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,fontSize:p.oneOfType([p.oneOf(["inherit","large","medium","small"]),p.string]),htmlColor:p.string,inheritViewBox:p.bool,shapeRendering:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),titleAccess:p.string,viewBox:p.string});Un.muiName="SvgIcon";function ah(e,t){function r(n,o){return b.jsx(Un,_({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Un.muiName,N.memo(N.forwardRef(r))}const lh={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
-
`)),Ja.configure(e)}},ch=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Re,createChainedFunction:Ff,createSvgIcon:ah,debounce:Vf,deprecatedPropType:Bf,isMuiElement:Uf,ownerDocument:hr,ownerWindow:zf,requirePropFactory:Jf,setRef:Ya,unstable_ClassNameGenerator:lh,unstable_useEnhancedEffect:Ti,unstable_useId:Wf,unsupportedProp:Gf,useControlled:Xa,useEventCallback:Rn,useForkRef:Nn,useIsFocusVisible:Za},Symbol.toStringTag,{value:"Module"})),uh=Tt(ch);var ks;function pl(){return ks||(ks=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=uh}(Io)),Io}var fh=io;Object.defineProperty(ki,"__esModule",{value:!0});var hl=ki.default=void 0,dh=fh(pl()),ph=b;hl=ki.default=(0,dh.default)((0,ph.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var ji={},hh=io;Object.defineProperty(ji,"__esModule",{value:!0});var gl=ji.default=void 0,gh=hh(pl()),mh=b;gl=ji.default=(0,gh.default)((0,mh.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Ht(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ml=typeof global=="object"&&global&&global.Object===Object&&global,yh=typeof self=="object"&&self&&self.Object===Object&&self,mt=ml||yh||Function("return this")(),No=function(){return mt.Date.now()},bh=/\s/;function vh(e){for(var t=e.length;t--&&bh.test(e.charAt(t)););return t}var xh=/^\s+/;function Sh(e){return e&&e.slice(0,vh(e)+1).replace(xh,"")}var It=mt.Symbol,yl=Object.prototype,wh=yl.hasOwnProperty,Th=yl.toString,Dr=It?It.toStringTag:void 0;function Oh(e){var t=wh.call(e,Dr),r=e[Dr];try{e[Dr]=void 0;var n=!0}catch{}var o=Th.call(e);return n&&(t?e[Dr]=r:delete e[Dr]),o}var Eh=Object.prototype,Ch=Eh.toString;function Rh(e){return Ch.call(e)}var _h="[object Null]",Ph="[object Undefined]",js=It?It.toStringTag:void 0;function Kt(e){return e==null?e===void 0?Ph:_h:js&&js in Object(e)?Oh(e):Rh(e)}function Wt(e){return e!=null&&typeof e=="object"}var $h="[object Symbol]";function lo(e){return typeof e=="symbol"||Wt(e)&&Kt(e)==$h}var As=NaN,kh=/^[-+]0x[0-9a-f]+$/i,jh=/^0b[01]+$/i,Ah=/^0o[0-7]+$/i,Lh=parseInt;function Ls(e){if(typeof e=="number")return e;if(lo(e))return As;if(Ht(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ht(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sh(e);var r=jh.test(e);return r||Ah.test(e)?Lh(e.slice(2),r?2:8):kh.test(e)?As:+e}var Ih="Expected a function",Nh=Math.max,Mh=Math.min;function Dh(e,t,r){var n,o,i,s,a,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Ih);t=Ls(t)||0,Ht(r)&&(u=!!r.leading,d="maxWait"in r,i=d?Nh(Ls(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function v(C){var R=n,B=o;return n=o=void 0,c=C,s=e.apply(B,R),s}function y(C){return c=C,a=setTimeout(S,t),u?v(C):s}function m(C){var R=C-l,B=C-c,se=t-R;return d?Mh(se,i-B):se}function g(C){var R=C-l,B=C-c;return l===void 0||R>=t||R<0||d&&B>=i}function S(){var C=No();if(g(C))return T(C);a=setTimeout(S,m(C))}function T(C){return a=void 0,f&&n?v(C):(n=o=void 0,s)}function $(){a!==void 0&&clearTimeout(a),c=0,n=l=o=a=void 0}function O(){return a===void 0?s:T(No())}function w(){var C=No(),R=g(C);if(n=arguments,o=this,l=C,R){if(a===void 0)return y(l);if(d)return clearTimeout(a),a=setTimeout(S,t),v(l)}return a===void 0&&(a=setTimeout(S,t)),s}return w.cancel=$,w.flush=O,w}var Fh="Expected a function";function Vh(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Fh);return Ht(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Dh(e,t,{leading:n,maxWait:t,trailing:o})}const bl=sn(De.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:i,...s})=>{var $,O,w,C,R,B,se;const{t:a}=br.useTranslation(),[l,c]=q.useState(),u=k.useTheme(),d={background:($=u.palette.backgroundPaperElevation)==null?void 0:$[4],color:(O=u.palette.backgroundPaperElevation)==null?void 0:O[11]},f=De.useLocalObservable(()=>({activeJoggingDir:null,startJogging(U){this.activeJoggingDir=U,e(U)},stopJogging(){this.activeJoggingDir=null,t()}})),v=Vh(()=>{c(o())},50);wr(v);function y(U){U.button===0&&f.startJogging("-")}function m(U){U.button===0&&f.startJogging("+")}function g(U){f.stopJogging()}function S(U){f.stopJogging()}function T(U,M=1){if(U===void 0||isNaN(U))return"";const W=a("General.degree.variable",{amount:U.toFixed(M)});return U>0&&M===0?`+${W}`:W}return b.jsxs(gr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(w=u.palette.backgroundPaperElevation)==null?void 0:w[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(C=u.palette.backgroundPaperElevation)==null?void 0:C[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(R=u.palette.backgroundPaperElevation)==null?void 0:R[9]},"&:active":{...d}}},children:[b.jsx(k.IconButton,{onPointerDown:y,onPointerUp:g,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...f.activeJoggingDir==="-"?d:{}},children:b.jsx(hl,{sx:{pointerEvents:"none"}})}),b.jsxs(gr,{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(k.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:T(l)}),b.jsx(k.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:(se=u.palette.backgroundPaperElevation)==null?void 0:se[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:T(r,0)},{value:n,label:T(n,0)}]})]}),b.jsx(k.IconButton,{onPointerDown:m,onPointerUp:g,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...f.activeJoggingDir==="+"?d:{}},children:b.jsx(gl,{sx:{pointerEvents:"none"}})})]})}));function vl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bh}=Object.prototype,{getPrototypeOf:Ai}=Object,co=(e=>t=>{const r=Bh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),at=e=>(e=e.toLowerCase(),t=>co(t)===e),uo=e=>t=>typeof t===e,{isArray:Tr}=Array,Kr=uo("undefined");function Uh(e){return e!==null&&!Kr(e)&&e.constructor!==null&&!Kr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xl=at("ArrayBuffer");function zh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xl(e.buffer),t}const Jh=uo("string"),We=uo("function"),Sl=uo("number"),fo=e=>e!==null&&typeof e=="object",Hh=e=>e===!0||e===!1,kn=e=>{if(co(e)!=="object")return!1;const t=Ai(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wh=at("Date"),Gh=at("File"),qh=at("Blob"),Kh=at("FileList"),Yh=e=>fo(e)&&We(e.pipe),Xh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=co(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},Zh=at("URLSearchParams"),[Qh,eg,tg,rg]=["ReadableStream","Request","Response","Headers"].map(at),ng=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function an(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Tr(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),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function wl(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 Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tl=e=>!Kr(e)&&e!==Ut;function ni(){const{caseless:e}=Tl(this)&&this||{},t={},r=(n,o)=>{const i=e&&wl(t,o)||o;kn(t[i])&&kn(n)?t[i]=ni(t[i],n):kn(n)?t[i]=ni({},n):Tr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&an(arguments[n],r);return t}const og=(e,t,r,{allOwnKeys:n}={})=>(an(t,(o,i)=>{r&&We(o)?e[i]=vl(o,r):e[i]=o},{allOwnKeys:n}),e),ig=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sg=(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)},ag=(e,t,r,n)=>{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],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Ai(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},lg=(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},cg=e=>{if(!e)return null;if(Tr(e))return e;let t=e.length;if(!Sl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ug=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ai(Uint8Array)),fg=(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])}},dg=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},pg=at("HTMLFormElement"),hg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Is=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),gg=at("RegExp"),Ol=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};an(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},mg=e=>{Ol(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(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+"'")})}})},yg=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Tr(e)?n(e):n(String(e).split(t)),r},bg=()=>{},vg=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mo="abcdefghijklmnopqrstuvwxyz",Ns="0123456789",El={DIGIT:Ns,ALPHA:Mo,ALPHA_DIGIT:Mo+Mo.toUpperCase()+Ns},xg=(e=16,t=El.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Sg(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wg=e=>{const t=new Array(10),r=(n,o)=>{if(fo(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Tr(n)?[]:{};return an(n,(s,a)=>{const l=r(s,o+1);!Kr(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},Tg=at("AsyncFunction"),Og=e=>e&&(fo(e)||We(e))&&We(e.then)&&We(e.catch),Cl=((e,t)=>e?setImmediate:t?((r,n)=>(Ut.addEventListener("message",({source:o,data:i})=>{o===Ut&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ut.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(Ut.postMessage)),Eg=typeof queueMicrotask<"u"?queueMicrotask.bind(Ut):typeof process<"u"&&process.nextTick||Cl,x={isArray:Tr,isArrayBuffer:xl,isBuffer:Uh,isFormData:Xh,isArrayBufferView:zh,isString:Jh,isNumber:Sl,isBoolean:Hh,isObject:fo,isPlainObject:kn,isReadableStream:Qh,isRequest:eg,isResponse:tg,isHeaders:rg,isUndefined:Kr,isDate:Wh,isFile:Gh,isBlob:qh,isRegExp:gg,isFunction:We,isStream:Yh,isURLSearchParams:Zh,isTypedArray:ug,isFileList:Kh,forEach:an,merge:ni,extend:og,trim:ng,stripBOM:ig,inherits:sg,toFlatObject:ag,kindOf:co,kindOfTest:at,endsWith:lg,toArray:cg,forEachEntry:fg,matchAll:dg,isHTMLForm:pg,hasOwnProperty:Is,hasOwnProp:Is,reduceDescriptors:Ol,freezeMethods:mg,toObjectSet:yg,toCamelCase:hg,noop:bg,toFiniteNumber:vg,findKey:wl,global:Ut,isContextDefined:Tl,ALPHABET:El,generateString:xg,isSpecCompliantForm:Sg,toJSONObject:wg,isAsyncFn:Tg,isThenable:Og,setImmediate:Cl,asap:Eg};function J(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(J,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 Rl=J.prototype,_l={};["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=>{_l[e]={value:e}});Object.defineProperties(J,_l);Object.defineProperty(Rl,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,i)=>{const s=Object.create(Rl);return x.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),J.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Cg=null;function oi(e){return x.isPlainObject(e)||x.isArray(e)}function Pl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ms(e,t,r){return e?e.concat(t).map(function(o,i){return o=Pl(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Rg(e){return x.isArray(e)&&!e.some(oi)}const _g=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function po(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(m,g){return!x.isUndefined(g[m])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=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(y){if(y===null)return"";if(x.isDate(y))return y.toISOString();if(!l&&x.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(y)||x.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,m,g){let S=y;if(y&&!g&&typeof y=="object"){if(x.endsWith(m,"{}"))m=n?m:m.slice(0,-2),y=JSON.stringify(y);else if(x.isArray(y)&&Rg(y)||(x.isFileList(y)||x.endsWith(m,"[]"))&&(S=x.toArray(y)))return m=Pl(m),S.forEach(function($,O){!(x.isUndefined($)||$===null)&&t.append(s===!0?Ms([m],O,i):s===null?m:m+"[]",c($))}),!1}return oi(y)?!0:(t.append(Ms(g,m,i),c(y)),!1)}const d=[],f=Object.assign(_g,{defaultVisitor:u,convertValue:c,isVisitable:oi});function v(y,m){if(!x.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(y),x.forEach(y,function(S,T){(!(x.isUndefined(S)||S===null)&&o.call(t,S,x.isString(T)?T.trim():T,m,f))===!0&&v(S,m?m.concat(T):[T])}),d.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Ds(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Li(e,t){this._pairs=[],e&&po(e,this,t)}const $l=Li.prototype;$l.append=function(t,r){this._pairs.push([t,r])};$l.toString=function(t){const r=t?function(n){return t.call(this,n,Ds)}:Ds;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Pg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kl(e,t,r){if(!t)return e;const n=r&&r.encode||Pg,o=r&&r.serialize;let i;if(o?i=o(t,r):i=x.isURLSearchParams(t)?t.toString():new Li(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fs{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 jl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$g=typeof URLSearchParams<"u"?URLSearchParams:Li,kg=typeof FormData<"u"?FormData:null,jg=typeof Blob<"u"?Blob:null,Ag={isBrowser:!0,classes:{URLSearchParams:$g,FormData:kg,Blob:jg},protocols:["http","https","file","blob","url","data"]},Ii=typeof window<"u"&&typeof document<"u",ii=typeof navigator=="object"&&navigator||void 0,Lg=Ii&&(!ii||["ReactNative","NativeScript","NS"].indexOf(ii.product)<0),Ig=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ng=Ii&&window.location.href||"http://localhost",Mg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ii,hasStandardBrowserEnv:Lg,hasStandardBrowserWebWorkerEnv:Ig,navigator:ii,origin:Ng},Symbol.toStringTag,{value:"Module"})),Ne={...Mg,...Ag};function Dg(e,t){return po(e,new Ne.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Ne.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Fg(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vg(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 Al(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=r.length;return s=!s&&x.isArray(o)?o.length:s,l?(x.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!x.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&x.isArray(o[s])&&(o[s]=Vg(o[s])),!a)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Fg(n),o,r,0)}),r}return null}function Bg(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(0,JSON.stringify)(e)}const ln={transitional:jl,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(Al(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 a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Dg(t,this.formSerializer).toString();if((a=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return po(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Bg(t)):t}],transformResponse:[function(t){const r=this.transitional||ln.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 s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?J.from(a,J.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:Ne.classes.FormData,Blob:Ne.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=>{ln.headers[e]={}});const Ug=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"]),zg=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
79
|
-
|
|
80
|
-
`)}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[Vs]=this[Vs]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Fr(s);n[a]||(Gg(o,s),n[a]=!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 Fo(e,t){const r=this||ln,n=t||r,o=Me.from(n.headers);let i=n.data;return x.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ll(e){return!!(e&&e.__CANCEL__)}function Or(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Or,J,{__CANCEL__:!0});function Il(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kg(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];s||(s=c),r[o]=l,n[o]=c;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const v=u&&c-u;return v?Math.round(f*1e3/v):void 0}}function Yg(e,t){let r=0,n=1e3/t,o,i;const s=(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?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-d)))},()=>o&&s(o)]}const zn=(e,t,r=3)=>{let n=0;const o=Kg(50,250);return Yg(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-n,c=o(l),u=s<=a;n=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)},r)},Bs=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Us=e=>(...t)=>x.asap(()=>e(...t)),Xg=Ne.hasStandardBrowserEnv?function(){const t=Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=x.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),Zg=Ne.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),x.isString(n)&&s.push("path="+n),x.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 Qg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function em(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nl(e,t){return e&&!Qg(t)?em(e,t):t}const zs=e=>e instanceof Me?{...e}:e;function Gt(e,t){t=t||{};const r={};function n(c,u,d){return x.isPlainObject(c)&&x.isPlainObject(u)?x.merge.call({caseless:d},c,u):x.isPlainObject(u)?x.merge({},u):x.isArray(u)?u.slice():u}function o(c,u,d){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c,d)}else return n(c,u,d)}function i(c,u){if(!x.isUndefined(u))return n(void 0,u)}function s(c,u){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(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: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)=>o(zs(c),zs(u),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);x.isUndefined(f)&&d!==a||(r[u]=f)}),r}const Ml=e=>{const t=Gt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Me.from(s),t.url=kl(Nl(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(x.isFormData(r)){if(Ne.hasStandardBrowserEnv||Ne.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(Ne.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&Xg(t.url))){const c=o&&i&&Zg.read(i);c&&s.set(o,c)}return t},tm=typeof XMLHttpRequest<"u",rm=tm&&function(e){return new Promise(function(r,n){const o=Ml(e);let i=o.data;const s=Me.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,v,y;function m(){v&&v(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function S(){if(!g)return;const $=Me.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:$,config:e,request:g};Il(function(R){r(R),m()},function(R){n(R),m()},w),g=null}"onloadend"in g?g.onloadend=S:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(S)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||jl;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new J(O,w.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&x.forEach(s.toJSON(),function(O,w){g.setRequestHeader(w,O)}),x.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),a&&a!=="json"&&(g.responseType=o.responseType),c&&([f,y]=zn(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,v]=zn(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(u=$=>{g&&(n(!$||$.type?new Or(null,e,g):$),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const T=qg(o.url);if(T&&Ne.protocols.indexOf(T)===-1){n(new J("Unsupported protocol "+T+":",J.ERR_BAD_REQUEST,e));return}g.send(i||null)})},nm=(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,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof J?u:new Or(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new J(`timeout ${t} of ms exceeded`,J.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}=n;return l.unsubscribe=()=>x.asap(a),l}},om=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},im=async function*(e,t){for await(const r of sm(e))yield*om(r,t)},sm=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()}},Js=(e,t,r,n)=>{const o=im(e,t);let i=0,s,a=l=>{s||(s=!0,n&&n(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(r){let f=i+=d;r(f)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},ho=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dl=ho&&typeof ReadableStream=="function",am=ho&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},lm=Dl&&Fl(()=>{let e=!1;const t=new Request(Ne.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Hs=64*1024,si=Dl&&Fl(()=>x.isReadableStream(new Response("").body)),Jn={stream:si&&(e=>e.body)};ho&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Jn[t]&&(Jn[t]=x.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const cm=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(Ne.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 am(e)).byteLength},um=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??cm(t)},fm=ho&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Ml(e);c=c?(c+"").toLowerCase():"text";let v=nm([o,i&&i.toAbortSignal()],s),y;const m=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let g;try{if(l&&lm&&r!=="get"&&r!=="head"&&(g=await um(u,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),C;if(x.isFormData(n)&&(C=w.headers.get("content-type"))&&u.setContentType(C),w.body){const[R,B]=Bs(g,zn(Us(l)));n=Js(w.body,Hs,R,B)}}x.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;y=new Request(t,{...f,signal:v,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:S?d:void 0});let T=await fetch(y);const $=si&&(c==="stream"||c==="response");if(si&&(a||$&&m)){const w={};["status","statusText","headers"].forEach(se=>{w[se]=T[se]});const C=x.toFiniteNumber(T.headers.get("content-length")),[R,B]=a&&Bs(C,zn(Us(a),!0))||[];T=new Response(Js(T.body,Hs,R,()=>{B&&B(),m&&m()}),w)}c=c||"text";let O=await Jn[x.findKey(Jn,c)||"text"](T,e);return!$&&m&&m(),await new Promise((w,C)=>{Il(w,C,{data:O,headers:Me.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:y})})}catch(S){throw m&&m(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,y),{cause:S.cause||S}):J.from(S,S&&S.code,e,y)}}),ai={http:Cg,xhr:rm,fetch:fm};x.forEach(ai,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ws=e=>`- ${e}`,dm=e=>x.isFunction(e)||e===null||e===!1,Vl={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 s;if(n=r,!dm(r)&&(n=ai[(s=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){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 :
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Gt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&li.assertOptions(n,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:li.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&x.merge(i.common,i[r.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),r.headers=Me.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const y=[Gs.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),f=y.length,u=Promise.resolve(r);d<f;)u=u.then(y[d++],y[d++]);return u}f=a.length;let v=r;for(d=0;d<f;){const y=a[d++],m=a[d++];try{v=y(v)}catch(g){m.call(this,g);break}}try{u=Gs.call(this,v)}catch(y){return Promise.reject(y)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Gt(this.defaults,t);const r=Nl(t.baseURL,t.url);return kl(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){zt.prototype[t]=function(r,n){return this.request(Gt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,a){return this.request(Gt(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}zt.prototype[t]=r(),zt.prototype[t+"Form"]=r(!0)});let hm=class Ul{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 s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Or(i,s,a),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 Ul(function(o){t=o}),cancel:t}}};function gm(e){return function(r){return e.apply(null,r)}}function mm(e){return x.isObject(e)&&e.isAxiosError===!0}const ci={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(ci).forEach(([e,t])=>{ci[t]=e});function zl(e){const t=new zt(e),r=vl(zt.prototype.request,t);return x.extend(r,zt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return zl(Gt(e,o))},r}const xe=zl(ln);xe.Axios=zt;xe.CanceledError=Or;xe.CancelToken=hm;xe.isCancel=Ll;xe.VERSION=Bl;xe.toFormData=po;xe.AxiosError=J;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=gm;xe.isAxiosError=mm;xe.mergeConfig=Gt;xe.AxiosHeaders=Me;xe.formToJSON=e=>Al(x.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=Vl.getAdapter;xe.HttpStatusCode=ci;xe.default=xe;const{Axios:H1,AxiosError:Ks,CanceledError:W1,isCancel:G1,CancelToken:q1,VERSION:K1,all:Y1,Cancel:X1,isAxiosError:Z1,spread:Q1,toFormData:ev,AxiosHeaders:tv,HttpStatusCode:rv,formToJSON:nv,getAdapter:ov,mergeConfig:iv}=xe;function ym(e){try{return JSON.stringify(e)}catch{return}}function bm(e){var t,r,n,o;return e instanceof Ks&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof Ks&&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: ${ym(e)||e}`}const Mi=e=>{const t=e.softTimeout||3e3,[r,n]=q.useState(!1),o=k.useTheme();return q.useEffect(()=>{const i=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(i)}),b.jsx(k.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?b.jsx(Jl,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx(k.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx(k.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},Jl=e=>{const t=bm(e.error),r=e.error instanceof Error?e.error.stack:null,n=k.useTheme();return b.jsxs(k.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 ${mi.lowerFirst(k.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),r&&b.jsx("pre",{children:r})]})},vm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.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"})),xm=q.forwardRef(vm),Sm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.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"})),wm=q.forwardRef(Sm),Tm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.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"})),Om=q.forwardRef(Tm),Em=({title:e,titleId:t,...r},n)=>N.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?N.createElement("title",{id:t},e):null,N.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"})),Cm=q.forwardRef(Em);function Rm(){this.__data__=[],this.size=0}function Hl(e,t){return e===t||e!==e&&t!==t}function go(e,t){for(var r=e.length;r--;)if(Hl(e[r][0],t))return r;return-1}var _m=Array.prototype,Pm=_m.splice;function $m(e){var t=this.__data__,r=go(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Pm.call(t,r,1),--this.size,!0}function km(e){var t=this.__data__,r=go(t,e);return r<0?void 0:t[r][1]}function jm(e){return go(this.__data__,e)>-1}function Am(e,t){var r=this.__data__,n=go(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Et(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])}}Et.prototype.clear=Rm;Et.prototype.delete=$m;Et.prototype.get=km;Et.prototype.has=jm;Et.prototype.set=Am;function Lm(){this.__data__=new Et,this.size=0}function Im(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Nm(e){return this.__data__.get(e)}function Mm(e){return this.__data__.has(e)}var Dm="[object AsyncFunction]",Fm="[object Function]",Vm="[object GeneratorFunction]",Bm="[object Proxy]";function Wl(e){if(!Ht(e))return!1;var t=Kt(e);return t==Fm||t==Vm||t==Dm||t==Bm}var Bo=mt["__core-js_shared__"],Ys=function(){var e=/[^.]+$/.exec(Bo&&Bo.keys&&Bo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Um(e){return!!Ys&&Ys in e}var zm=Function.prototype,Jm=zm.toString;function Yt(e){if(e!=null){try{return Jm.call(e)}catch{}try{return e+""}catch{}}return""}var Hm=/[\\^$.*+?()[\]{}|]/g,Wm=/^\[object .+?Constructor\]$/,Gm=Function.prototype,qm=Object.prototype,Km=Gm.toString,Ym=qm.hasOwnProperty,Xm=RegExp("^"+Km.call(Ym).replace(Hm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zm(e){if(!Ht(e)||Um(e))return!1;var t=Wl(e)?Xm:Wm;return t.test(Yt(e))}function Qm(e,t){return e==null?void 0:e[t]}function Xt(e,t){var r=Qm(e,t);return Zm(r)?r:void 0}var Yr=Xt(mt,"Map"),Xr=Xt(Object,"create");function ey(){this.__data__=Xr?Xr(null):{},this.size=0}function ty(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ry="__lodash_hash_undefined__",ny=Object.prototype,oy=ny.hasOwnProperty;function iy(e){var t=this.__data__;if(Xr){var r=t[e];return r===ry?void 0:r}return oy.call(t,e)?t[e]:void 0}var sy=Object.prototype,ay=sy.hasOwnProperty;function ly(e){var t=this.__data__;return Xr?t[e]!==void 0:ay.call(t,e)}var cy="__lodash_hash_undefined__";function uy(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xr&&t===void 0?cy:t,this}function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qt.prototype.clear=ey;qt.prototype.delete=ty;qt.prototype.get=iy;qt.prototype.has=ly;qt.prototype.set=uy;function fy(){this.size=0,this.__data__={hash:new qt,map:new(Yr||Et),string:new qt}}function dy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function mo(e,t){var r=e.__data__;return dy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function py(e){var t=mo(this,e).delete(e);return this.size-=t?1:0,t}function hy(e){return mo(this,e).get(e)}function gy(e){return mo(this,e).has(e)}function my(e,t){var r=mo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ct(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])}}Ct.prototype.clear=fy;Ct.prototype.delete=py;Ct.prototype.get=hy;Ct.prototype.has=gy;Ct.prototype.set=my;var yy=200;function by(e,t){var r=this.__data__;if(r instanceof Et){var n=r.__data__;if(!Yr||n.length<yy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ct(n)}return r.set(e,t),this.size=r.size,this}function wt(e){var t=this.__data__=new Et(e);this.size=t.size}wt.prototype.clear=Lm;wt.prototype.delete=Im;wt.prototype.get=Nm;wt.prototype.has=Mm;wt.prototype.set=by;var vy="__lodash_hash_undefined__";function xy(e){return this.__data__.set(e,vy),this}function Sy(e){return this.__data__.has(e)}function Hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ct;++t<r;)this.add(e[t])}Hn.prototype.add=Hn.prototype.push=xy;Hn.prototype.has=Sy;function wy(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 Ty(e,t){return e.has(t)}var Oy=1,Ey=2;function Gl(e,t,r,n,o,i){var s=r&Oy,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,f=!0,v=r&Ey?new Hn:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var y=e[d],m=t[d];if(n)var g=s?n(m,y,d,t,e,i):n(y,m,d,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(v){if(!wy(t,function(S,T){if(!Ty(v,T)&&(y===S||o(y,S,r,n,i)))return v.push(T)})){f=!1;break}}else if(!(y===m||o(y,m,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Xs=mt.Uint8Array;function Cy(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Ry(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var _y=1,Py=2,$y="[object Boolean]",ky="[object Date]",jy="[object Error]",Ay="[object Map]",Ly="[object Number]",Iy="[object RegExp]",Ny="[object Set]",My="[object String]",Dy="[object Symbol]",Fy="[object ArrayBuffer]",Vy="[object DataView]",Zs=It?It.prototype:void 0,Uo=Zs?Zs.valueOf:void 0;function By(e,t,r,n,o,i,s){switch(r){case Vy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Fy:return!(e.byteLength!=t.byteLength||!i(new Xs(e),new Xs(t)));case $y:case ky:case Ly:return Hl(+e,+t);case jy:return e.name==t.name&&e.message==t.message;case Iy:case My:return e==t+"";case Ay:var a=Cy;case Ny:var l=n&_y;if(a||(a=Ry),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=Py,s.set(e,t);var u=Gl(a(e),a(t),n,o,i,s);return s.delete(e),u;case Dy:if(Uo)return Uo.call(e)==Uo.call(t)}return!1}function Uy(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var gt=Array.isArray;function zy(e,t,r){var n=t(e);return gt(e)?n:Uy(n,r(e))}function Jy(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function Hy(){return[]}var Wy=Object.prototype,Gy=Wy.propertyIsEnumerable,Qs=Object.getOwnPropertySymbols,qy=Qs?function(e){return e==null?[]:(e=Object(e),Jy(Qs(e),function(t){return Gy.call(e,t)}))}:Hy;function Ky(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Yy="[object Arguments]";function ea(e){return Wt(e)&&Kt(e)==Yy}var ql=Object.prototype,Xy=ql.hasOwnProperty,Zy=ql.propertyIsEnumerable,Kl=ea(function(){return arguments}())?ea:function(e){return Wt(e)&&Xy.call(e,"callee")&&!Zy.call(e,"callee")};function Qy(){return!1}var Yl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ta=Yl&&typeof module=="object"&&module&&!module.nodeType&&module,eb=ta&&ta.exports===Yl,ra=eb?mt.Buffer:void 0,tb=ra?ra.isBuffer:void 0,ui=tb||Qy,rb=9007199254740991,nb=/^(?:0|[1-9]\d*)$/;function Xl(e,t){var r=typeof e;return t=t??rb,!!t&&(r=="number"||r!="symbol"&&nb.test(e))&&e>-1&&e%1==0&&e<t}var ob=9007199254740991;function Di(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ob}var ib="[object Arguments]",sb="[object Array]",ab="[object Boolean]",lb="[object Date]",cb="[object Error]",ub="[object Function]",fb="[object Map]",db="[object Number]",pb="[object Object]",hb="[object RegExp]",gb="[object Set]",mb="[object String]",yb="[object WeakMap]",bb="[object ArrayBuffer]",vb="[object DataView]",xb="[object Float32Array]",Sb="[object Float64Array]",wb="[object Int8Array]",Tb="[object Int16Array]",Ob="[object Int32Array]",Eb="[object Uint8Array]",Cb="[object Uint8ClampedArray]",Rb="[object Uint16Array]",_b="[object Uint32Array]",ue={};ue[xb]=ue[Sb]=ue[wb]=ue[Tb]=ue[Ob]=ue[Eb]=ue[Cb]=ue[Rb]=ue[_b]=!0;ue[ib]=ue[sb]=ue[bb]=ue[ab]=ue[vb]=ue[lb]=ue[cb]=ue[ub]=ue[fb]=ue[db]=ue[pb]=ue[hb]=ue[gb]=ue[mb]=ue[yb]=!1;function Pb(e){return Wt(e)&&Di(e.length)&&!!ue[Kt(e)]}function $b(e){return function(t){return e(t)}}var Zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Zl&&typeof module=="object"&&module&&!module.nodeType&&module,kb=zr&&zr.exports===Zl,zo=kb&&ml.process,na=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||zo&&zo.binding&&zo.binding("util")}catch{}}(),oa=na&&na.isTypedArray,Ql=oa?$b(oa):Pb,jb=Object.prototype,Ab=jb.hasOwnProperty;function Lb(e,t){var r=gt(e),n=!r&&Kl(e),o=!r&&!n&&ui(e),i=!r&&!n&&!o&&Ql(e),s=r||n||o||i,a=s?Ky(e.length,String):[],l=a.length;for(var c in e)Ab.call(e,c)&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Xl(c,l)))&&a.push(c);return a}var Ib=Object.prototype;function Nb(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ib;return e===r}function Mb(e,t){return function(r){return e(t(r))}}var Db=Mb(Object.keys,Object),Fb=Object.prototype,Vb=Fb.hasOwnProperty;function Bb(e){if(!Nb(e))return Db(e);var t=[];for(var r in Object(e))Vb.call(e,r)&&r!="constructor"&&t.push(r);return t}function ec(e){return e!=null&&Di(e.length)&&!Wl(e)}function Fi(e){return ec(e)?Lb(e):Bb(e)}function ia(e){return zy(e,Fi,qy)}var Ub=1,zb=Object.prototype,Jb=zb.hasOwnProperty;function Hb(e,t,r,n,o,i){var s=r&Ub,a=ia(e),l=a.length,c=ia(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var f=a[d];if(!(s?f in t:Jb.call(t,f)))return!1}var v=i.get(e),y=i.get(t);if(v&&y)return v==t&&y==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=s;++d<l;){f=a[d];var S=e[f],T=t[f];if(n)var $=s?n(T,S,f,t,e,i):n(S,T,f,e,t,i);if(!($===void 0?S===T||o(S,T,r,n,i):$)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(m=!1)}return i.delete(e),i.delete(t),m}var fi=Xt(mt,"DataView"),di=Xt(mt,"Promise"),pi=Xt(mt,"Set"),hi=Xt(mt,"WeakMap"),sa="[object Map]",Wb="[object Object]",aa="[object Promise]",la="[object Set]",ca="[object WeakMap]",ua="[object DataView]",Gb=Yt(fi),qb=Yt(Yr),Kb=Yt(di),Yb=Yt(pi),Xb=Yt(hi),At=Kt;(fi&&At(new fi(new ArrayBuffer(1)))!=ua||Yr&&At(new Yr)!=sa||di&&At(di.resolve())!=aa||pi&&At(new pi)!=la||hi&&At(new hi)!=ca)&&(At=function(e){var t=Kt(e),r=t==Wb?e.constructor:void 0,n=r?Yt(r):"";if(n)switch(n){case Gb:return ua;case qb:return sa;case Kb:return aa;case Yb:return la;case Xb:return ca}return t});var Zb=1,fa="[object Arguments]",da="[object Array]",mn="[object Object]",Qb=Object.prototype,pa=Qb.hasOwnProperty;function e0(e,t,r,n,o,i){var s=gt(e),a=gt(t),l=s?da:At(e),c=a?da:At(t);l=l==fa?mn:l,c=c==fa?mn:c;var u=l==mn,d=c==mn,f=l==c;if(f&&ui(e)){if(!ui(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new wt),s||Ql(e)?Gl(e,t,r,n,o,i):By(e,t,l,r,n,o,i);if(!(r&Zb)){var v=u&&pa.call(e,"__wrapped__"),y=d&&pa.call(t,"__wrapped__");if(v||y){var m=v?e.value():e,g=y?t.value():t;return i||(i=new wt),o(m,g,r,n,i)}}return f?(i||(i=new wt),Hb(e,t,r,n,o,i)):!1}function yo(e,t,r,n,o){return e===t?!0:e==null||t==null||!Wt(e)&&!Wt(t)?e!==e&&t!==t:e0(e,t,r,n,yo,o)}function t0(e,t){return yo(e,t)}const tc=({store:e})=>{const{t}=br.useTranslation(),[r,n]=q.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=q.useRef(r);wr(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;t0(o.current,s)||(o.current=s,n(s))});const i=[];for(const[s,a]of r.entries())a&&i.push(s);return i.length===0?null:b.jsx(k.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:i.length?"visible":"collapse"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(s=>s+1).join(", ")})})},r0=k.styled(k.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 yn({labelValue:e,...t}){return b.jsxs(r0,{fullWidth:!0,variant:"filled",children:[b.jsx(k.InputLabel,{id:t.labelId,children:e}),b.jsx(k.Select,{...t})]})}var ha=function(){try{var e=Xt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function n0(e,t,r){t=="__proto__"&&ha?ha(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function o0(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var s=e[o];t(n,s,r(s),e)}return n}function i0(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),a=s.length;a--;){var l=s[++o];if(r(i[l],l,i)===!1)break}return t}}var s0=i0();function a0(e,t){return e&&s0(e,t,Fi)}function l0(e,t){return function(r,n){if(r==null)return r;if(!ec(r))return e(r,n);for(var o=r.length,i=-1,s=Object(r);++i<o&&n(s[i],i,s)!==!1;);return r}}var c0=l0(a0);function u0(e,t,r,n){return c0(e,function(o,i,s){t(n,o,r(o),s)}),n}var f0=1,d0=2;function p0(e,t,r,n){var o=r.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var s=r[o];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[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 wt,d;if(!(d===void 0?yo(c,l,f0|d0,n,u):d))return!1}}return!0}function rc(e){return e===e&&!Ht(e)}function h0(e){for(var t=Fi(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,rc(o)]}return t}function nc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function g0(e){var t=h0(e);return t.length==1&&t[0][2]?nc(t[0][0],t[0][1]):function(r){return r===e||p0(r,e,t)}}var m0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y0=/^\w*$/;function Vi(e,t){if(gt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lo(e)?!0:y0.test(e)||!m0.test(e)||t!=null&&e in Object(t)}var b0="Expected a function";function Bi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(b0);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 s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Bi.Cache||Ct),r}Bi.Cache=Ct;var v0=500;function x0(e){var t=Bi(e,function(n){return r.size===v0&&r.clear(),n}),r=t.cache;return t}var S0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w0=/\\(\\)?/g,T0=x0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(S0,function(r,n,o,i){t.push(o?i.replace(w0,"$1"):n||r)}),t});function O0(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 E0=1/0,ga=It?It.prototype:void 0,ma=ga?ga.toString:void 0;function oc(e){if(typeof e=="string")return e;if(gt(e))return O0(e,oc)+"";if(lo(e))return ma?ma.call(e):"";var t=e+"";return t=="0"&&1/e==-E0?"-0":t}function ic(e){return e==null?"":oc(e)}function sc(e,t){return gt(e)?e:Vi(e,t)?[e]:T0(ic(e))}var C0=1/0;function bo(e){if(typeof e=="string"||lo(e))return e;var t=e+"";return t=="0"&&1/e==-C0?"-0":t}function ac(e,t){t=sc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[bo(t[r++])];return r&&r==n?e:void 0}function R0(e,t,r){var n=e==null?void 0:ac(e,t);return n===void 0?r:n}function _0(e,t){return e!=null&&t in Object(e)}function P0(e,t,r){t=sc(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var s=bo(t[n]);if(!(i=e!=null&&r(e,s)))break;e=e[s]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Di(o)&&Xl(s,o)&&(gt(e)||Kl(e)))}function $0(e,t){return e!=null&&P0(e,t,_0)}var k0=1,j0=2;function A0(e,t){return Vi(e)&&rc(t)?nc(bo(e),t):function(r){var n=R0(r,e);return n===void 0&&n===t?$0(r,e):yo(t,n,k0|j0)}}function L0(e){return e}function I0(e){return function(t){return t==null?void 0:t[e]}}function N0(e){return function(t){return ac(t,e)}}function M0(e){return Vi(e)?I0(bo(e)):N0(e)}function D0(e){return typeof e=="function"?e:e==null?L0:typeof e=="object"?gt(e)?A0(e[0],e[1]):g0(e):M0(e)}function F0(e,t){return function(r,n){var o=gt(r)?o0:u0,i={};return o(r,e,D0(n),i)}}var bn=F0(function(e,t,r){n0(e,r,t)}),V0=0;function B0(e){var t=++V0;return ic(e)+t}const gi=[{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}],U0=[{id:"continuous"},...gi],z0=["coordsys","tool"];class vo{constructor(t,r,n,o){var i,s;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 a of n)if(a.coordinate_system===""){a.coordinate_system="world";break}this.selectedCoordSystemId=((i=n[0])==null?void 0:i.coordinate_system)||"world",this.selectedTcpId=((s=o[0])==null?void 0:s.id)||"",mr.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(mr.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")]);try{await t.nova.api.controller.setDefaultMode(t.motionStream.controllerId,"MODE_CONTROL")}catch(s){console.error(s)}return new vo(t,n,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return mi.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=Lt.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:"Joint"}]}get incrementOptions(){return U0}get discreteIncrementOptions(){return gi}get incrementOptionsById(){return bn(this.incrementOptions,t=>t.id)}get tabsById(){return bn(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 bn(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 bn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:gi.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=B0();this.lock(r);try{return await t()}finally{this.unlock(r)}}}const J0=De.observer(({store:e})=>{var n;const{t}=br.useTranslation();function r(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return b.jsxs(k.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(yn,{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(k.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(yn,{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(k.MenuItem,{value:o.id,children:o.id},o.id))}),b.jsx(yn,{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:z0.map(o=>b.jsx(k.MenuItem,{value:o,children:r(o)},o))}),b.jsxs(yn,{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:[b.jsx(k.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx(k.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),H0=k.styled(k.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 W0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const G0=2;function lc(e,t){return e-t}function ya(e,t){var r;const{index:n}=(r=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a<o.distance||a===o.distance?{distance:a,index:s}:o},null))!=null?r:{};return n}function vn(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 Wn(e,t,r){return(e-t)*100/(r-t)}function q0(e,t,r){return(r-t)*e+t}function K0(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 Y0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(K0(t)))}function ba({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(lc)}function xn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const i=hr(e.current);if(!((n=e.current)!=null&&n.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var s;(s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function Sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?W0(e,t):!1}const X0={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}%`})}},Z0=e=>e;let wn;function va(){return wn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?wn=CSS.supports("touch-action","none"):wn=!0),wn}function Q0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:y=Z0,step:m=1,shiftStep:g=10,tabIndex:S,value:T}=e,$=N.useRef(),[O,w]=N.useState(-1),[C,R]=N.useState(-1),[B,se]=N.useState(!1),U=N.useRef(0),[M,W]=Xa({controlled:T,default:r??l,name:"Slider"}),G=u&&((P,L,D)=>{const K=P.nativeEvent||P,Q=new K.constructor(K.type,K);Object.defineProperty(Q,"target",{writable:!0,value:{value:L,name:c}}),u(Q,L,D)}),Z=Array.isArray(M);let X=Z?M.slice().sort(lc):[M];X=X.map(P=>P==null?l:ur(P,l,a));const Se=s===!0&&m!==null?[...Array(Math.floor((a-l)/m)+1)].map((P,L)=>({value:l+m*L})):s||[],ce=Se.map(P=>P.value),{isFocusVisibleRef:ee,onBlur:Ee,onFocus:ke,ref:nt}=Za(),[yt,Ge]=N.useState(-1),Te=N.useRef(),Rt=Nn(nt,Te),lt=Nn(v,Rt),qe=P=>L=>{var D;const K=Number(L.currentTarget.getAttribute("data-index"));ke(L),ee.current===!0&&Ge(K),R(K),P==null||(D=P.onFocus)==null||D.call(P,L)},Be=P=>L=>{var D;Ee(L),ee.current===!1&&Ge(-1),R(-1),P==null||(D=P.onBlur)==null||D.call(P,L)},ct=(P,L)=>{const D=Number(P.currentTarget.getAttribute("data-index")),K=X[D],Q=ce.indexOf(K);let Y=L;if(Se&&m==null){const ze=ce[ce.length-1];Y>ze?Y=ze:Y<ce[0]?Y=ce[0]:Y=Y<K?ce[Q-1]:ce[Q+1]}if(Y=ur(Y,l,a),Z){o&&(Y=ur(Y,X[D-1]||-1/0,X[D+1]||1/0));const ze=Y;Y=ba({values:X,newValue:Y,index:D});let Ke=D;o||(Ke=Y.indexOf(ze)),xn({sliderRef:Te,activeIndex:Ke})}W(Y),Ge(D),G&&!Sn(Y,M)&&G(P,Y,D),d&&d(P,Y)},ut=P=>L=>{var D;if(m!==null){const K=Number(L.currentTarget.getAttribute("data-index")),Q=X[K];let Y=null;(L.key==="ArrowLeft"||L.key==="ArrowDown")&&L.shiftKey||L.key==="PageDown"?Y=Math.max(Q-g,l):((L.key==="ArrowRight"||L.key==="ArrowUp")&&L.shiftKey||L.key==="PageUp")&&(Y=Math.min(Q+g,a)),Y!==null&&(ct(L,Y),L.preventDefault())}P==null||(D=P.onKeyDown)==null||D.call(P,L)};Ti(()=>{if(n&&Te.current.contains(document.activeElement)){var P;(P=document.activeElement)==null||P.blur()}},[n]),n&&O!==-1&&w(-1),n&&yt!==-1&&Ge(-1);const Mt=P=>L=>{var D;(D=P.onChange)==null||D.call(P,L),ct(L,L.target.valueAsNumber)},bt=N.useRef();let Ue=f;i&&f==="horizontal"&&(Ue+="-reverse");const j=({finger:P,move:L=!1})=>{const{current:D}=Te,{width:K,height:Q,bottom:Y,left:ze}=D.getBoundingClientRect();let Ke;Ue.indexOf("vertical")===0?Ke=(Y-P.y)/Q:Ke=(P.x-ze)/K,Ue.indexOf("-reverse")!==-1&&(Ke=1-Ke);let re;if(re=q0(Ke,l,a),m)re=Y0(re,m,l);else{const $t=ya(ce,re);re=ce[$t]}re=ur(re,l,a);let Le=0;if(Z){L?Le=bt.current:Le=ya(X,re),o&&(re=ur(re,X[Le-1]||-1/0,X[Le+1]||1/0));const $t=re;re=ba({values:X,newValue:re,index:Le}),o&&L||(Le=re.indexOf($t),bt.current=Le)}return{newValue:re,activeIndex:Le}},te=Rn(P=>{const L=vn(P,$);if(!L)return;if(U.current+=1,P.type==="mousemove"&&P.buttons===0){de(P);return}const{newValue:D,activeIndex:K}=j({finger:L,move:!0});xn({sliderRef:Te,activeIndex:K,setActive:w}),W(D),!B&&U.current>G0&&se(!0),G&&!Sn(D,M)&&G(P,D,K)}),de=Rn(P=>{const L=vn(P,$);if(se(!1),!L)return;const{newValue:D}=j({finger:L,move:!0});w(-1),P.type==="touchend"&&R(-1),d&&d(P,D),$.current=void 0,Ae()}),je=Rn(P=>{if(n)return;va()||P.preventDefault();const L=P.changedTouches[0];L!=null&&($.current=L.identifier);const D=vn(P,$);if(D!==!1){const{newValue:Q,activeIndex:Y}=j({finger:D});xn({sliderRef:Te,activeIndex:Y,setActive:w}),W(Q),G&&!Sn(Q,M)&&G(P,Q,Y)}U.current=0;const K=hr(Te.current);K.addEventListener("touchmove",te,{passive:!0}),K.addEventListener("touchend",de,{passive:!0})}),Ae=N.useCallback(()=>{const P=hr(Te.current);P.removeEventListener("mousemove",te),P.removeEventListener("mouseup",de),P.removeEventListener("touchmove",te),P.removeEventListener("touchend",de)},[de,te]);N.useEffect(()=>{const{current:P}=Te;return P.addEventListener("touchstart",je,{passive:va()}),()=>{P.removeEventListener("touchstart",je),Ae()}},[Ae,je]),N.useEffect(()=>{n&&Ae()},[n,Ae]);const _t=P=>L=>{var D;if((D=P.onMouseDown)==null||D.call(P,L),n||L.defaultPrevented||L.button!==0)return;L.preventDefault();const K=vn(L,$);if(K!==!1){const{newValue:Y,activeIndex:ze}=j({finger:K});xn({sliderRef:Te,activeIndex:ze,setActive:w}),W(Y),G&&!Sn(Y,M)&&G(L,Y,ze)}U.current=0;const Q=hr(Te.current);Q.addEventListener("mousemove",te,{passive:!0}),Q.addEventListener("mouseup",de)},Oe=Wn(Z?X[0]:l,l,a),Pt=Wn(X[X.length-1],l,a)-Oe,Dt=(P={})=>{const L=_n(P),D={onMouseDown:_t(L||{})},K=_({},L,D);return _({},P,{ref:lt},K)},Er=P=>L=>{var D;(D=P.onMouseOver)==null||D.call(P,L);const K=Number(L.currentTarget.getAttribute("data-index"));R(K)},Cr=P=>L=>{var D;(D=P.onMouseLeave)==null||D.call(P,L),R(-1)};return{active:O,axis:Ue,axisProps:X0,dragging:B,focusedThumbIndex:yt,getHiddenInputProps:(P={})=>{var L;const D=_n(P),K={onChange:Mt(D||{}),onFocus:qe(D||{}),onBlur:Be(D||{}),onKeyDown:ut(D||{})},Q=_({},D,K);return _({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"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":(L=e.step)!=null?L:void 0,disabled:n},P,Q,{style:_({},td,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Dt,getThumbProps:(P={})=>{const L=_n(P),D={onMouseOver:Er(L||{}),onMouseLeave:Cr(L||{})};return _({},P,L,D)},marks:Se,open:C,range:Z,rootRef:lt,trackLeap:Pt,trackOffset:Oe,values:X,getThumbStyle:P=>({pointerEvents:O!==-1&&O!==P?"none":void 0})}}const e1=e=>!e||!Br(e);function t1(e){return nn("MuiSlider",e)}const Qe=Wa("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"]),r1=e=>{const{open:t}=e;return{offset:ht(t&&Qe.valueLabelOpen),circle:Qe.valueLabelCircle,label:Qe.valueLabelLabel}};function cc(e){const{children:t,className:r,value:n}=e,o=r1(e);return t?N.cloneElement(t,{className:ht(t.props.className)},b.jsxs(N.Fragment,{children:[t.props.children,b.jsx("span",{className:ht(o.offset,r),"aria-hidden":!0,children:b.jsx("span",{className:o.circle,children:b.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(cc.propTypes={children:p.element.isRequired,className:p.string,value:p.node});const n1=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function xa(e){return e}const o1=Ot("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Re(r.color)}`],r.size!=="medium"&&t[`size${Re(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Qe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Qe.dragging}`]:{[`& .${Qe.thumb}, & .${Qe.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].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}}]}}),i1=Ot("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}}]}),s1=Ot("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{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.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:_({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:_({backgroundColor:ei(e.palette[r].main,.62),borderColor:ei(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Qo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Qo(e.palette[r].main,.5)})))}))]}}),a1=Ot("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Re(r.color)}`],r.size!=="medium"&&t[`thumbSize${Re(r.size)}`]]}})(({theme:e})=>{var t;return{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%)"},[`&.${Qe.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.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${Qe.focusVisible}`]:_({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ds(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Qe.active}`]:_({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ds(e.palette[r].main,.16)}`})}}))]}}),l1=Ot(cc,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({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%"},[`&.${Qe.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%"},[`&.${Qe.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"}}]})),c1=Ot("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Pi(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({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}}]})),u1=Ot("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Pi(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({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}}]})),f1=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${Re(a)}`,l&&`size${Re(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Re(l)}`,a&&`thumbColor${Re(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ei(c,t1,s)},d1=({children:e})=>e,uc=N.forwardRef(function(t,r){var n,o,i,s,a,l,c,u,d,f,v,y,m,g,S,T,$,O,w,C,R,B,se,U;const M=$i({props:t,name:"MuiSlider"}),W=ad(),{"aria-label":G,"aria-valuetext":Z,"aria-labelledby":X,component:Se="span",components:ce={},componentsProps:ee={},color:Ee="primary",classes:ke,className:nt,disableSwap:yt=!1,disabled:Ge=!1,getAriaLabel:Te,getAriaValueText:Rt,marks:lt=!1,max:qe=100,min:Be=0,orientation:ct="horizontal",shiftStep:ut=10,size:Mt="medium",step:bt=1,scale:Ue=xa,slotProps:j,slots:te,track:de="normal",valueLabelDisplay:je="off",valueLabelFormat:Ae=xa}=M,_t=Ve(M,n1),Oe=_({},M,{isRtl:W,max:qe,min:Be,classes:ke,disabled:Ge,disableSwap:yt,orientation:ct,marks:lt,color:Ee,size:Mt,step:bt,shiftStep:ut,scale:Ue,track:de,valueLabelDisplay:je,valueLabelFormat:Ae}),{axisProps:Pt,getRootProps:Dt,getHiddenInputProps:Er,getThumbProps:Cr,open:Rr,active:Zt,axis:ot,focusedThumbIndex:P,range:L,dragging:D,marks:K,values:Q,trackOffset:Y,trackLeap:ze,getThumbStyle:Ke}=Q0(_({},Oe,{rootRef:r}));Oe.marked=K.length>0&&K.some(I=>I.label),Oe.dragging=D,Oe.focusedThumbIndex=P;const re=f1(Oe),Le=(n=(o=te==null?void 0:te.root)!=null?o:ce.Root)!=null?n:o1,$t=(i=(s=te==null?void 0:te.rail)!=null?s:ce.Rail)!=null?i:i1,Qt=(a=(l=te==null?void 0:te.track)!=null?l:ce.Track)!=null?a:s1,_r=(c=(u=te==null?void 0:te.thumb)!=null?u:ce.Thumb)!=null?c:a1,vt=(d=(f=te==null?void 0:te.valueLabel)!=null?f:ce.ValueLabel)!=null?d:l1,Ft=(v=(y=te==null?void 0:te.mark)!=null?y:ce.Mark)!=null?v:c1,Vt=(m=(g=te==null?void 0:te.markLabel)!=null?g:ce.MarkLabel)!=null?m:u1,Pr=(S=(T=te==null?void 0:te.input)!=null?T:ce.Input)!=null?S:"input",$r=($=j==null?void 0:j.root)!=null?$:ee.root,cn=(O=j==null?void 0:j.rail)!=null?O:ee.rail,kr=(w=j==null?void 0:j.track)!=null?w:ee.track,er=(C=j==null?void 0:j.thumb)!=null?C:ee.thumb,tr=(R=j==null?void 0:j.valueLabel)!=null?R:ee.valueLabel,xo=(B=j==null?void 0:j.mark)!=null?B:ee.mark,So=(se=j==null?void 0:j.markLabel)!=null?se:ee.markLabel,un=(U=j==null?void 0:j.input)!=null?U:ee.input,fn=kt({elementType:Le,getSlotProps:Dt,externalSlotProps:$r,externalForwardedProps:_t,additionalProps:_({},e1(Le)&&{as:Se}),ownerState:_({},Oe,$r==null?void 0:$r.ownerState),className:[re.root,nt]}),wo=kt({elementType:$t,externalSlotProps:cn,ownerState:Oe,className:re.rail}),To=kt({elementType:Qt,externalSlotProps:kr,additionalProps:{style:_({},Pt[ot].offset(Y),Pt[ot].leap(ze))},ownerState:_({},Oe,kr==null?void 0:kr.ownerState),className:re.track}),jr=kt({elementType:_r,getSlotProps:Cr,externalSlotProps:er,ownerState:_({},Oe,er==null?void 0:er.ownerState),className:re.thumb}),Oo=kt({elementType:vt,externalSlotProps:tr,ownerState:_({},Oe,tr==null?void 0:tr.ownerState),className:re.valueLabel}),h=kt({elementType:Ft,externalSlotProps:xo,ownerState:Oe,className:re.mark}),E=kt({elementType:Vt,externalSlotProps:So,ownerState:Oe,className:re.markLabel}),A=kt({elementType:Pr,getSlotProps:Er,externalSlotProps:un,ownerState:Oe});return b.jsxs(Le,_({},fn,{children:[b.jsx($t,_({},wo)),b.jsx(Qt,_({},To)),K.filter(I=>I.value>=Be&&I.value<=qe).map((I,F)=>{const ne=Wn(I.value,Be,qe),H=Pt[ot].offset(ne);let V;return de===!1?V=Q.indexOf(I.value)!==-1:V=de==="normal"&&(L?I.value>=Q[0]&&I.value<=Q[Q.length-1]:I.value<=Q[0])||de==="inverted"&&(L?I.value<=Q[0]||I.value>=Q[Q.length-1]:I.value>=Q[0]),b.jsxs(N.Fragment,{children:[b.jsx(Ft,_({"data-index":F},h,!Br(Ft)&&{markActive:V},{style:_({},H,h.style),className:ht(h.className,V&&re.markActive)})),I.label!=null?b.jsx(Vt,_({"aria-hidden":!0,"data-index":F},E,!Br(Vt)&&{markLabelActive:V},{style:_({},H,E.style),className:ht(re.markLabel,E.className,V&&re.markLabelActive),children:I.label})):null]},F)}),Q.map((I,F)=>{const ne=Wn(I,Be,qe),H=Pt[ot].offset(ne),V=je==="off"?d1:vt;return b.jsx(V,_({},!Br(V)&&{valueLabelFormat:Ae,valueLabelDisplay:je,value:typeof Ae=="function"?Ae(Ue(I),F):Ae,index:F,open:Rr===F||Zt===F||je==="on",disabled:Ge},Oo,{children:b.jsx(_r,_({"data-index":F},jr,{className:ht(re.thumb,jr.className,Zt===F&&re.active,P===F&&re.focusVisible),style:_({},H,Ke(F),jr.style),children:b.jsx(Pr,_({"data-index":F,"aria-label":Te?Te(F):G,"aria-valuenow":Ue(I),"aria-labelledby":X,"aria-valuetext":Rt?Rt(Ue(I),F):Z,value:Q[F]},A))}))}),F)})]}))});process.env.NODE_ENV!=="production"&&(uc.propTypes={"aria-label":os(p.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":p.string,"aria-valuetext":os(p.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:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});var p1="[object Number]";function h1(e){return typeof e=="number"||Wt(e)&&Kt(e)==p1}const fc=De.observer(e=>{k.useTheme();function t(r,n){n===e.velocity||!h1(n)||e.onVelocityChange(n)}return b.jsxs(k.Stack,{direction:"row",gap:2,children:[b.jsx(uc,{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(Ui,{value:e.velocity.toString()})]})});function Ui({value:e,sx:t}){var n;const r=k.useTheme();return b.jsx(k.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:b.jsx(k.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const dc=De.observer(({store:e})=>{const{t}=br.useTranslation(),r=De.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 b.jsx(fc,{velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:n=>b.jsx(Ui,{value:r.valueLabelFormat(n),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),g1=De.observer(({store:e,children:t})=>{var d,f,v,y,m,g,S,T,$;const{t:r}=br.useTranslation(),n=k.useTheme();function o(O,w){(w==="translate"||w==="rotate")&&e.setSelectedCartesianMotionType(w)}dl(()=>[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(O,w){const C=await e.activate(),R=C.motionStream.rapidlyChangingMotionState.tcp_pose,B=C.motionStream.rapidlyChangingMotionState.state.joint_position;R&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:O.axis,direction:O.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:R,currentJoints:B,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:O.axis,direction:O.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:w.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(w.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function s(O){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return i(O,e.activeDiscreteIncrement);O.motionType==="translate"?await e.jogger.startTCPTranslation({axis:O.axis,direction:O.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:O.axis,direction:O.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}const l=[{id:"x",colors:(v=(f=(d=n.componentsExt)==null?void 0:d.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.X,icon:b.jsx(xm,{})},{id:"y",colors:(g=(m=(y=n.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:m.Axis)==null?void 0:g.Y,icon:b.jsx(wm,{})},{id:"z",colors:($=(T=(S=n.componentsExt)==null?void 0:S.JoggingCartesian)==null?void 0:T.Axis)==null?void 0:$.Z,icon:b.jsx(Om,{})}];function c(O){return r("General.mm.variable",{amount:O.toFixed(1)})}function u(O){return r("General.degree.variable",{amount:Lt.radiansToDegrees(O).toFixed(1)})}return b.jsxs(k.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs(k.Stack,{gap:2,children:[b.jsx(J0,{store:e}),b.jsx(dc,{store:e}),b.jsx(k.Divider,{})]}),b.jsx(k.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:b.jsxs(k.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[b.jsxs(H0,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx(k.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),b.jsx(k.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&l.map(O=>{var w;return b.jsx(ri,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[O.icon,b.jsx(k.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var C;return c(((C=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:C.position[O.id])||0)},startJogging:C=>s({axis:O.id,motionType:"translate",direction:C}),stopJogging:a},O.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(O=>{var w;return b.jsx(ri,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(Cm,{}),b.jsx(k.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var C,R;return u(((R=(C=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:C.orientation)==null?void 0:R[O.id])||0)},startJogging:C=>s({axis:O.id,motionType:"rotate",direction:C}),stopJogging:a},O.id)})]})}),b.jsx(tc,{store:e}),t&&b.jsx(k.Divider,{}),t]})}),m1=De.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 b.jsxs(k.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(dc,{store:e}),b.jsx(k.Divider,{}),b.jsx(k.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(k.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?Lt.radiansToDegrees(i.lower_limit):void 0,a=(i==null?void 0:i.upper_limit)!==void 0?Lt.radiansToDegrees(i.upper_limit):void 0;return b.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:a,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:o.index,direction:c}),stopJogging:n},`joint-${o.index}`)})})}),b.jsx(tc,{store:e}),t&&b.jsx(k.Divider,{}),t]})}),y1=sn(De.observer(e=>{const t=mi.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=De.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){mr.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{let o=e.store;if(!o){const i=await t.connectJogger(e.motionGroupId);o=await vo.loadFor(i)}mr.runInAction(()=>{r.joggingStore=o}),e.onSetup&&e.onSetup(o)}catch(o){r.loadingError=o}}return q.useEffect(()=>(n(),e.store?()=>null:()=>{var o;(o=r.joggingStore)==null||o.dispose()}),[e.store,e.nova,e.motionGroupId]),q.useEffect(()=>{const o=r.joggingStore;o&&(e.locked?o.lock("external"):o.unlock("external"))},[r.joggingStore,e.locked]),b.jsx(k.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?b.jsx(b1,{store:r.joggingStore,children:e.children}):b.jsx(Mi,{message:"Loading jogging",error:r.loadingError})})})),b1=De.observer(({store:e,children:t})=>{function r(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(g1,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(m1,{store:e,children:t})})}return b.jsxs(k.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx(k.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>b.jsx(k.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),b.jsx(k.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:r()})]})}),pc=q.forwardRef(({label:e,value:t},r)=>{var a;const n=k.useTheme(),[o,i]=q.useState(!1);async function s(){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 q.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),b.jsx(k.Tooltip,{open:o,title:"Copied!",children:b.jsx(k.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(a=n.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx(k.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})})})}),v1=De.observer(({motionStream:e})=>{const t=q.useRef(null);function r(){const n=e.rapidlyChangingMotionState.tcp_pose;return n?Lt.poseToWandelscriptString(n):""}return wr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx(k.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(pc,{value:r(),ref:t})})}),x1=De.observer(({motionStream:e})=>{const t=q.useRef(null);function r(){const{joints:n}=e.rapidlyChangingMotionState.state.joint_position;return`[${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return wr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx(k.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(pc,{value:r(),ref:t})})});function S1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function w1({baseUrl:e=S1(),...t}){return b.jsxs(k.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(k.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs(k.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx(k.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx(k.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx(k.DialogActions,{children:b.jsxs(k.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx(k.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx(k.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const T1=Array(6).fill(2*Math.PI),Sa="0.0.0-semantically-released";function zi(e){let t=Sa;return Sa.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function O1(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(n=>t(n))]}return t(e).filter(r=>gc(r))}function hc(e){return e.name.endsWith("_FLG")}function gc(e){return/_J[0-9]+$/.test(e.name)}function E1(e,t){let r;const n=[];function o(s){return s.length===6}function i(s){if(hc(s)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${s.name}. Only one _FLG group is allowed.`);r=s}gc(s)&&n.push(s),s.children.map(i)}if(i(e.scene),!o(n))throw Error(`Expected to find 6 joint groups in robot model ${t} with names _J01, _J02 etc, found ${n.length}. Only 6-joint robot models are currently supported.`);if(!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 mc({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:n}){Ho.Globals.assign({frameLoop:"always"});const o=q.useRef([]),i=q.useRef([]),{invalidate:s}=Rc.useThree();function a(f){f&&(i.current=O1(f),c(),s())}function l(f){o.current=f,d.start(Object.assign({},o.current))}function c(){const f=i.current.map((v,y)=>u[y].get());if(r)r(i.current,f);else for(const[v,y]of i.current.entries()){const m=t[v],g=m.theta||0,S=m.reverse_rotation_direction?-1:1;y.rotation.y=S*f[v]+g}}fl(()=>{const f=e.state.joint_position.joints.filter(v=>v!==void 0);requestAnimationFrame(()=>l(f))});const[u,d]=Ho.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),s()},onResolve:()=>{c()}}));return b.jsx("group",{ref:a,children:n})}const wa="line",Ta="mesh";function C1({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new xt.Matrix4;function o(a,l){const c=new xt.Vector3,u=new xt.Quaternion,d=new xt.Vector3;n.decompose(c,u,d);const f=c.clone(),v=new xt.Matrix4().makeRotationY(a.theta+l*(a.reverse_rotation_direction?-1:1)).multiply(new xt.Matrix4().makeTranslation(0,a.d/1e3,0)).multiply(new xt.Matrix4().makeTranslation(a.a/1e3,0,0)).multiply(new xt.Matrix4().makeRotationX(a.alpha));return n.multiply(v),n.decompose(c,u,d),{a:f,b:c}}function i(a,l,c,u){if(!t)return;const d=t[a];if(!d)return;const{a:f,b:v}=o(d,u);l.geometry.setPositions([f.toArray(),v.toArray()].flat()),c.position.set(v.x,v.y,v.z)}function s(a,l){n.identity(),a.forEach((c,u)=>{i(u,c.getObjectByName(wa),c.getObjectByName(Ta),l[u])})}return b.jsx(b.Fragment,{children:b.jsx(mc,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:s,children:b.jsxs("group",{...r,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(it.Line,{name:wa,points:[c,u],color:"white",lineWidth:5}),b.jsxs("mesh",{name:Ta,position:u,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},d)})]})})})}const R1=console.warn;function _1(){return q.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&R1(e)}},[]),b.jsx(b.Fragment,{})}function P1(e){return e.type==="Mesh"}function $1({modelURL:e,flangeRef:t,postModelRender:r,...n}){const{gltf:o}=E1(it.useGLTF(e),e.split("/").pop()||e),i=q.useCallback(a=>{a&&r&&r()},[e]);function s(a){return P1(a)?b.jsx("mesh",{name:a.name,geometry:a.geometry,material:a.material,position:a.position,rotation:a.rotation},a.uuid):b.jsx(Ho.animated.group,{name:a.name,position:a.position,rotation:a.rotation,ref:hc(a)?t:void 0,children:a.children.map(s)},a.uuid)}return b.jsx("group",{...n,dispose:null,ref:i,children:s(o.scene)})}const k1=(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)},j1=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},yc=sn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=zi,flangeRef:o,postModelRender:i,transparentColor:s,...a})=>{const[l,c]=q.useState(null),u=q.useCallback(f=>{c(f)},[]);q.useEffect(()=>{l&&(s?k1(l,s):j1(l))},[l,s]);const d=b.jsx(C1,{rapidlyChangingMotionState:e,dhParameters:r,...a});return b.jsxs(kc.ErrorBoundary,{fallback:d,onError:f=>{if(f.message.includes("404: Not Found"))console.error(f);else throw f},children:[b.jsx(q.Suspense,{fallback:d,children:b.jsx("group",{ref:u,children:b.jsx(mc,{rapidlyChangingMotionState:e,dhParameters:r,children:b.jsx($1,{modelURL:n(t),postModelRender:i,flangeRef:o,...a})})})}),b.jsx(_1,{})]})});function A1({connectedMotionGroup:e,getModel:t=zi,flangeRef:r,transparentColor:n,...o}){return e.dhParameters?b.jsx(yc,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:r,transparentColor:n,...o}):null}const L1=k.styled(k.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}}]}}),I1=q.forwardRef((e,t)=>b.jsx(L1,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),N1={$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"},M1=q.lazy(()=>import("@monaco-editor/react"));let Jo=null;async function D1(){if(!Jo){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);Jo={shiki:await e({langs:[N1],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return Jo}const F1=sn(e=>{const t=k.useTheme(),[r,n]=q.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 D1();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),n(o)}return b.jsx(q.Suspense,{fallback:b.jsx(Mi,{}),children:b.jsx(M1,{value:e.code,onMount:(s,a)=>{i(a)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:r,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function bc(){var t,r,n,o,i,s,a;const e=k.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"}}}]},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":k.rgbToHex(((a=e.palette.backgroundPaperElevation)==null?void 0:a[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function V1(){const e=bc();return e.palette.mode="light",e}function B1(e){var n,o,i,s;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"&&((s=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const r=t?bc():V1();return al(r,e)}exports.JoggingCartesianAxisControl=ri;exports.JoggingJointRotationControl=bl;exports.JoggingPanel=y1;exports.JoggingStore=vo;exports.LoadingCover=Mi;exports.LoadingErrorMessage=Jl;exports.NoMotionGroupModal=w1;exports.PoseCartesianValues=v1;exports.PoseJointValues=x1;exports.PresetEnvironment=Lc;exports.Robot=A1;exports.SafetyZonesRenderer=Mc;exports.SelectableFab=I1;exports.SupportedRobot=yc;exports.TrajectoryRenderer=Dc;exports.VelocitySlider=fc;exports.VelocitySliderLabel=Ui;exports.WandelscriptEditor=F1;exports.createNovaMuiTheme=B1;exports.defaultAxisConfig=T1;exports.defaultGetModel=zi;exports.useAnimationFrame=wr;exports.useAutorun=fl;exports.useMounted=ao;exports.useReaction=dl;
|
|
77
|
+
} });`:Tt(12,x?` (${x})`:"",JSON.stringify(d.main)));return Si(d,"light",E,r),Si(d,"dark",k,r),d.contrastText||(d.contrastText=p(d.main)),d};let v;return t==="light"?v=Gs():t==="dark"&&(v=Hs()),process.env.NODE_ENV!=="production"&&(v||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ke({common:{...$n},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:Bu,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r,...v},o)}function Ku(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 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 wi={textTransform:"uppercase"},Ci='"Roboto", "Helvetica", "Arial", sans-serif';function Xu(e,t){const{fontFamily:n=Ci,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...p}=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 f=r/14,v=u||(x=>`${x/l*f}rem`),y=(x,T,E,k,w)=>({fontFamily:n,fontWeight:x,fontSize:v(T),lineHeight:E,...n===Ci?{letterSpacing:`${Yu(k/T)}em`}:{},...w,...c}),d={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,wi),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,wi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ke({htmlFontSize:l,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...d},p,{clone:!1})}const Zu=.2,Qu=.14,ef=.12;function ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Zu})`,`${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",ue(0,2,1,-1,0,1,1,0,0,1,3,0),ue(0,3,1,-2,0,2,2,0,0,1,5,0),ue(0,3,3,-2,0,3,4,0,0,1,8,0),ue(0,2,4,-1,0,4,5,0,0,1,10,0),ue(0,3,5,-1,0,5,8,0,0,1,14,0),ue(0,3,5,-1,0,6,10,0,0,1,18,0),ue(0,4,5,-2,0,7,10,1,0,2,16,1),ue(0,5,5,-3,0,8,10,1,0,3,14,2),ue(0,5,6,-3,0,9,12,1,0,3,16,2),ue(0,6,6,-3,0,10,14,1,0,4,18,3),ue(0,6,7,-4,0,11,15,1,0,4,20,3),ue(0,7,8,-4,0,12,17,2,0,5,22,4),ue(0,7,8,-4,0,13,19,2,0,5,24,4),ue(0,7,9,-4,0,14,21,2,0,5,26,4),ue(0,8,9,-5,0,15,22,2,0,6,28,5),ue(0,8,10,-5,0,16,24,2,0,6,30,5),ue(0,8,11,-5,0,17,26,2,0,6,32,5),ue(0,9,11,-5,0,18,28,2,0,7,34,6),ue(0,9,12,-6,0,19,29,2,0,7,36,6),ue(0,10,13,-6,0,20,31,3,0,8,38,7),ue(0,10,13,-6,0,21,33,3,0,8,40,7),ue(0,10,14,-6,0,22,35,3,0,8,42,7),ue(0,11,14,-7,0,23,36,3,0,9,44,8),ue(0,11,15,-7,0,24,38,3,0,9,46,8)],nf={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)"},rf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ti(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 sf(e){const t={...nf,...e.easing},n={...rf,...e.duration};return{getAutoHeightDuration:of,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=f=>typeof f=="string",p=f=>!Number.isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(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.'),!p(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:Ti(s)} ${a} ${typeof l=="string"?l:Ti(l)}`).join(",")},...e,easing:t,duration:n}}const af={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lf(e){return Qe(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ks(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];!lf(a)||s.startsWith("unstable_")?delete r[s]:Qe(a)&&(r[s]={...a},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
79
|
+
|
|
80
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
81
|
+
|
|
82
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
83
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
84
|
+
|
|
85
|
+
export default theme;`}function go(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.":Tt(20));const u=Io(i),p=Or(e);let f=ke(p,{mixins:qu(p.breakpoints,r),palette:u,shadows:tf.slice(),typography:Xu(u,a),transitions:sf(s),zIndex:{...af}});if(f=ke(f,c),f=t.reduce((v,y)=>ke(v,y),f),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(d,x)=>{let T;for(T in d){const E=d[T];if(v.includes(T)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const k=Dn("",T);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${k}' syntax:`,JSON.stringify({root:{[`&.${k}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
86
|
+
`))}d[T]={}}}};Object.keys(f.components).forEach(d=>{const x=f.components[d].styleOverrides;x&&d.startsWith("Mui")&&y(x,d)})}return f.unstable_sxConfig={...Mn,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(y){return fn({sx:y,theme:this})},f.toRuntimeSource=Ks,f}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 n=cf(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function qs(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ys(e){return e==="dark"?uf:[]}function ff(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Io(t);return{palette:i,opacity:{...qs(i.mode),...n},overlays:r||Ys(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,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],gf=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 pf(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 hf(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function C(e,t,n){!e[t]&&n&&(e[t]=n)}function En(e){return typeof e!="string"||!e.startsWith("hsl")?e:Js(e)}function at(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tn(En(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 Ze=e=>{try{return e()}catch{}},yf=(e="mui")=>Au(e);function Yr(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=ff({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=go({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...qs(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Ys(o)},s}function bf(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=df,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],p=r||(n.light&&u!=="light"?"light":u),f=yf(i),{[p]:v,light:y,dark:d,...x}=n,T={...x};let E=v;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Tt(21,p));const k=Yr(T,E,c,p);y&&!T.light&&Yr(T,y,void 0,"light"),d&&!T.dark&&Yr(T,d,void 0,"dark");let w={defaultColorScheme:p,...k,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:f,colorSchemes:T,font:{...Ku(k.typography),...k.font},spacing:mf(c.spacing)};Object.keys(w.colorSchemes).forEach(Y=>{const g=w.colorSchemes[Y].palette,$=F=>{const N=F.split("-"),D=N[1],ne=N[2];return f(F,g[D][ne])};if(g.mode==="light"&&(C(g.common,"background","#fff"),C(g.common,"onBackground","#000")),g.mode==="dark"&&(C(g.common,"background","#000"),C(g.common,"onBackground","#fff")),hf(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){C(g.Alert,"errorColor",se(g.error.light,.6)),C(g.Alert,"infoColor",se(g.info.light,.6)),C(g.Alert,"successColor",se(g.success.light,.6)),C(g.Alert,"warningColor",se(g.warning.light,.6)),C(g.Alert,"errorFilledBg",$("palette-error-main")),C(g.Alert,"infoFilledBg",$("palette-info-main")),C(g.Alert,"successFilledBg",$("palette-success-main")),C(g.Alert,"warningFilledBg",$("palette-warning-main")),C(g.Alert,"errorFilledColor",Ze(()=>g.getContrastText(g.error.main))),C(g.Alert,"infoFilledColor",Ze(()=>g.getContrastText(g.info.main))),C(g.Alert,"successFilledColor",Ze(()=>g.getContrastText(g.success.main))),C(g.Alert,"warningFilledColor",Ze(()=>g.getContrastText(g.warning.main))),C(g.Alert,"errorStandardBg",ae(g.error.light,.9)),C(g.Alert,"infoStandardBg",ae(g.info.light,.9)),C(g.Alert,"successStandardBg",ae(g.success.light,.9)),C(g.Alert,"warningStandardBg",ae(g.warning.light,.9)),C(g.Alert,"errorIconColor",$("palette-error-main")),C(g.Alert,"infoIconColor",$("palette-info-main")),C(g.Alert,"successIconColor",$("palette-success-main")),C(g.Alert,"warningIconColor",$("palette-warning-main")),C(g.AppBar,"defaultBg",$("palette-grey-100")),C(g.Avatar,"defaultBg",$("palette-grey-400")),C(g.Button,"inheritContainedBg",$("palette-grey-300")),C(g.Button,"inheritContainedHoverBg",$("palette-grey-A100")),C(g.Chip,"defaultBorder",$("palette-grey-400")),C(g.Chip,"defaultAvatarColor",$("palette-grey-700")),C(g.Chip,"defaultIconColor",$("palette-grey-700")),C(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),C(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),C(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),C(g.LinearProgress,"primaryBg",ae(g.primary.main,.62)),C(g.LinearProgress,"secondaryBg",ae(g.secondary.main,.62)),C(g.LinearProgress,"errorBg",ae(g.error.main,.62)),C(g.LinearProgress,"infoBg",ae(g.info.main,.62)),C(g.LinearProgress,"successBg",ae(g.success.main,.62)),C(g.LinearProgress,"warningBg",ae(g.warning.main,.62)),C(g.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),C(g.Slider,"primaryTrack",ae(g.primary.main,.62)),C(g.Slider,"secondaryTrack",ae(g.secondary.main,.62)),C(g.Slider,"errorTrack",ae(g.error.main,.62)),C(g.Slider,"infoTrack",ae(g.info.main,.62)),C(g.Slider,"successTrack",ae(g.success.main,.62)),C(g.Slider,"warningTrack",ae(g.warning.main,.62));const F=zn(g.background.default,.8);C(g.SnackbarContent,"bg",F),C(g.SnackbarContent,"color",Ze(()=>g.getContrastText(F))),C(g.SpeedDialAction,"fabHoverBg",zn(g.background.paper,.15)),C(g.StepConnector,"border",$("palette-grey-400")),C(g.StepContent,"border",$("palette-grey-400")),C(g.Switch,"defaultColor",$("palette-common-white")),C(g.Switch,"defaultDisabledColor",$("palette-grey-100")),C(g.Switch,"primaryDisabledColor",ae(g.primary.main,.62)),C(g.Switch,"secondaryDisabledColor",ae(g.secondary.main,.62)),C(g.Switch,"errorDisabledColor",ae(g.error.main,.62)),C(g.Switch,"infoDisabledColor",ae(g.info.main,.62)),C(g.Switch,"successDisabledColor",ae(g.success.main,.62)),C(g.Switch,"warningDisabledColor",ae(g.warning.main,.62)),C(g.TableCell,"border",ae(Un(g.divider,1),.88)),C(g.Tooltip,"bg",Un(g.grey[700],.92))}if(g.mode==="dark"){C(g.Alert,"errorColor",ae(g.error.light,.6)),C(g.Alert,"infoColor",ae(g.info.light,.6)),C(g.Alert,"successColor",ae(g.success.light,.6)),C(g.Alert,"warningColor",ae(g.warning.light,.6)),C(g.Alert,"errorFilledBg",$("palette-error-dark")),C(g.Alert,"infoFilledBg",$("palette-info-dark")),C(g.Alert,"successFilledBg",$("palette-success-dark")),C(g.Alert,"warningFilledBg",$("palette-warning-dark")),C(g.Alert,"errorFilledColor",Ze(()=>g.getContrastText(g.error.dark))),C(g.Alert,"infoFilledColor",Ze(()=>g.getContrastText(g.info.dark))),C(g.Alert,"successFilledColor",Ze(()=>g.getContrastText(g.success.dark))),C(g.Alert,"warningFilledColor",Ze(()=>g.getContrastText(g.warning.dark))),C(g.Alert,"errorStandardBg",se(g.error.light,.9)),C(g.Alert,"infoStandardBg",se(g.info.light,.9)),C(g.Alert,"successStandardBg",se(g.success.light,.9)),C(g.Alert,"warningStandardBg",se(g.warning.light,.9)),C(g.Alert,"errorIconColor",$("palette-error-main")),C(g.Alert,"infoIconColor",$("palette-info-main")),C(g.Alert,"successIconColor",$("palette-success-main")),C(g.Alert,"warningIconColor",$("palette-warning-main")),C(g.AppBar,"defaultBg",$("palette-grey-900")),C(g.AppBar,"darkBg",$("palette-background-paper")),C(g.AppBar,"darkColor",$("palette-text-primary")),C(g.Avatar,"defaultBg",$("palette-grey-600")),C(g.Button,"inheritContainedBg",$("palette-grey-800")),C(g.Button,"inheritContainedHoverBg",$("palette-grey-700")),C(g.Chip,"defaultBorder",$("palette-grey-700")),C(g.Chip,"defaultAvatarColor",$("palette-grey-300")),C(g.Chip,"defaultIconColor",$("palette-grey-300")),C(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),C(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),C(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),C(g.LinearProgress,"primaryBg",se(g.primary.main,.5)),C(g.LinearProgress,"secondaryBg",se(g.secondary.main,.5)),C(g.LinearProgress,"errorBg",se(g.error.main,.5)),C(g.LinearProgress,"infoBg",se(g.info.main,.5)),C(g.LinearProgress,"successBg",se(g.success.main,.5)),C(g.LinearProgress,"warningBg",se(g.warning.main,.5)),C(g.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),C(g.Slider,"primaryTrack",se(g.primary.main,.5)),C(g.Slider,"secondaryTrack",se(g.secondary.main,.5)),C(g.Slider,"errorTrack",se(g.error.main,.5)),C(g.Slider,"infoTrack",se(g.info.main,.5)),C(g.Slider,"successTrack",se(g.success.main,.5)),C(g.Slider,"warningTrack",se(g.warning.main,.5));const F=zn(g.background.default,.98);C(g.SnackbarContent,"bg",F),C(g.SnackbarContent,"color",Ze(()=>g.getContrastText(F))),C(g.SpeedDialAction,"fabHoverBg",zn(g.background.paper,.15)),C(g.StepConnector,"border",$("palette-grey-600")),C(g.StepContent,"border",$("palette-grey-600")),C(g.Switch,"defaultColor",$("palette-grey-300")),C(g.Switch,"defaultDisabledColor",$("palette-grey-600")),C(g.Switch,"primaryDisabledColor",se(g.primary.main,.55)),C(g.Switch,"secondaryDisabledColor",se(g.secondary.main,.55)),C(g.Switch,"errorDisabledColor",se(g.error.main,.55)),C(g.Switch,"infoDisabledColor",se(g.info.main,.55)),C(g.Switch,"successDisabledColor",se(g.success.main,.55)),C(g.Switch,"warningDisabledColor",se(g.warning.main,.55)),C(g.TableCell,"border",se(Un(g.divider,1),.68)),C(g.Tooltip,"bg",Un(g.grey[700],.92))}at(g.background,"default"),at(g.background,"paper"),at(g.common,"background"),at(g.common,"onBackground"),at(g,"divider"),Object.keys(g).forEach(F=>{const N=g[F];F!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&C(g[F],"mainChannel",Tn(En(N.main))),N.light&&C(g[F],"lightChannel",Tn(En(N.light))),N.dark&&C(g[F],"darkChannel",Tn(En(N.dark))),N.contrastText&&C(g[F],"contrastTextChannel",Tn(En(N.contrastText))),F==="text"&&(at(g[F],"primary"),at(g[F],"secondary")),F==="action"&&(N.active&&at(g[F],"active"),N.selected&&at(g[F],"selected")))})}),w=t.reduce((Y,g)=>ke(Y,g),w);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:gf(w)},{vars:P,generateThemeVars:L,generateStyleSheets:z}=$u(w,O);return w.vars=P,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([Y,g])=>{w[Y]=g}),w.generateThemeVars=L,w.generateStyleSheets=z,w.generateSpacing=function(){return Ls(c.spacing,xr(this))},w.getColorSchemeSelector=ju(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...Mn,...c==null?void 0:c.unstable_sxConfig},w.unstable_sx=function(g){return fn({sx:g,theme:this})},w.toRuntimeSource=Ks,w}function Ei(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Io({...n===!0?{}:n.palette,mode:t})})}function Xs(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 go(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const p=go({...e,palette:u},...t);return p.defaultColorScheme=a,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},Ei(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Ei(p,"light",c.light)),p}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),bf({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const vf=Xs(),xf="$$material";function Lo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sf=e=>Lo(e)&&e!=="classes",ut=Vs({themeId:xf,defaultTheme:vf,rootShouldForwardProp:Sf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function No(e){return Ou(e)}const cn=Fu({createStyledComponent:ut("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>No({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(cn.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",Sn=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},Oi=e=>e==null?"":""+e,wf=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Cf=/###/g,Ri=e=>e&&e.indexOf("###")>-1?e.replace(Cf,"."):e,Ai=e=>!e||J(e),Rn=(e,t,n)=>{const r=J(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Ai(e))return{};const i=Ri(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return Ai(e)?{}:{obj:e,k:Ri(r[o])}},ki=(e,t,n)=>{const{obj:r,k:o}=Rn(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=Rn(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Rn(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Tf=(e,t,n,r)=>{const{obj:o,k:i}=Rn(e,t,Object);o[i]=o[i]||[],o[i].push(n)},ar=(e,t)=>{const{obj:n,k:r}=Rn(e,t);if(n)return n[r]},Ef=(e,t,n)=>{const r=ar(e,n);return r!==void 0?r:ar(t,n)},Zs=(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]):Zs(e[r],t[r],n):e[r]=t[r]);return e},rn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Of={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Rf=e=>J(e)?e.replace(/[&<>"'\/]/g,t=>Of[t]):e;class Af{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 kf=[" ",",","?","!",";"],Pf=new Af(20),$f=(e,t,n)=>{t=t||"",n=n||"";const r=kf.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=Pf.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},ho=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];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},lr=e=>e&&e.replace("_","-"),jf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class cr{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||jf,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 cr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new cr(this.logger,t)}}var et=new cr;class Ar{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 Pi extends Ar{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){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=ar(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:ho(this.data&&this.data[t]&&this.data[t][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),ki(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=ar(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Zs(l,r,i):l={...l,...r},ki(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.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}: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 Qs={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const $i={};class ur extends Ar{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),wf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=et.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&&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: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 J(i)&&(i=[i]),{key:t,namespaces: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&&c.toLowerCase()==="cimode"){if(u){const w=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${w}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const p=this.resolve(t,n);let f=p&&p.res;const v=p&&p.usedKey||s,y=p&&p.exactUsedKey||s,d=Object.prototype.toString.apply(f),x=["[object Number]","[object Function]","[object RegExp]"],T=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=!J(f)&&typeof f!="boolean"&&typeof f!="number";if(E&&f&&k&&x.indexOf(d)<0&&!(J(T)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(p.res=w,p.usedParams=this.getUsedParamsDetails(n),p):w}if(i){const w=Array.isArray(f),O=w?[]:{},P=w?y:v;for(const L in f)if(Object.prototype.hasOwnProperty.call(f,L)){const z=`${P}${i}${L}`;O[L]=this.translate(z,{...n,joinArrays:!1,ns:a}),O[L]===z&&(O[L]=f[L])}f=O}}else if(E&&J(T)&&Array.isArray(f))f=f.join(T),f&&(f=this.extendTranslation(f,t,n,r));else{let w=!1,O=!1;const P=n.count!==void 0&&!J(n.count),L=ur.hasDefaultValue(n),z=P?this.pluralResolver.getSuffix(c,n.count,n):"",Y=n.ordinal&&P?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",g=P&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${z}`]||n[`defaultValue${Y}`]||n.defaultValue;!this.isValidLookup(f)&&L&&(w=!0,f=$),this.isValidLookup(f)||(O=!0,f=s);const N=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:f,D=L&&$!==f&&this.options.updateMissing;if(O||w||D){if(this.logger.log(D?"updateKey":"missingKey",c,l,s,D?$:f),i){const G=this.resolve(s,{...n,keySeparator:!1});G&&G.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 ne=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let G=0;G<X.length;G++)ne.push(X[G]);else this.options.saveMissingTo==="all"?ne=this.languageUtils.toResolveHierarchy(n.lng||this.language):ne.push(n.lng||this.language);const Pe=(G,xe,Oe)=>{const Q=L&&Oe!==f?Oe:N;this.options.missingKeyHandler?this.options.missingKeyHandler(G,l,xe,Q,D,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(G,l,xe,Q,D,n),this.emit("missingKey",G,l,xe,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?ne.forEach(G=>{const xe=this.pluralResolver.getSuffixes(G,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&xe.indexOf(`${this.options.pluralSeparator}zero`)<0&&xe.push(`${this.options.pluralSeparator}zero`),xe.forEach(Oe=>{Pe([G],s+Oe,n[`defaultValue${Oe}`]||$)})}):Pe(ne,s,$))}f=this.extendTranslation(f,t,n,p,r),O&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(O||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,w?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(p.res=f,p.usedParams=this.getUsedParamsDetails(n),p):f}extendTranslation(t,n,r,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.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 c=J(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let p=r.replace&&!J(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||o.usedLng,r),c){const f=t.match(this.interpolator.nestingRegexp),v=f&&f.length;u<v&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,v=new Array(f),y=0;y<f;y++)v[y]=arguments[y];return i&&i[0]===v[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):s.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=J(a)?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=Qs.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 p=c.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const f=n.count!==void 0&&!J(n.count),v=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(J(n.context)||typeof n.context=="number")&&n.context!=="",d=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(x=>{this.isValidLookup(r)||(a=x,!$i[`${d[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&($i[`${d[0]}-${x}`]=!0,this.logger.warn(`key "${o}" for languages "${d.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!!!")),d.forEach(T=>{if(this.isValidLookup(r))return;s=T;const E=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(E,u,T,x,n);else{let w;f&&(w=this.pluralResolver.getSuffix(T,n.count,n));const O=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(E.push(u+w),n.ordinal&&w.indexOf(P)===0&&E.push(u+w.replace(P,this.options.pluralSeparator)),v&&E.push(u+O)),y){const L=`${u}${this.options.contextSeparator}${n.context}`;E.push(L),f&&(E.push(L+w),n.ordinal&&w.indexOf(P)===0&&E.push(L+w.replace(P,this.options.pluralSeparator)),v&&E.push(L+O))}}let k;for(;k=E.pop();)this.isValidLookup(r)||(i=k,r=this.getResource(T,x,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){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.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}}const Xr=e=>e.charAt(0).toUpperCase()+e.slice(1);class ji{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=et.create("languageUtils")}getScriptPartFromCode(t){if(t=lr(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=lr(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(J(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Xr(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Xr(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Xr(r[2].toLowerCase()))),r.join("-")}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}}let _f=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],If={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Lf=["v1","v2","v3"],Nf=["v4"],_i={zero:0,one:1,two:2,few:3,many:4,other:5},Mf=()=>{const e={};return _f.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:If[t.fc]}})}),e};class Df{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=et.create("pluralResolver"),(!this.options.compatibilityJSON||Nf.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Mf(),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]:{};if(this.shouldUseIntlApi())try{const r=lr(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];const s=new Intl.PluralRules(r,{type:o});return this.pluralRulesCache[i]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.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]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>_i[o]-_i[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Lf.includes(this.options.compatibilityJSON)}}const Ii=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=Ef(e,t,n);return!i&&o&&J(n)&&(i=ho(e,n,r),i===void 0&&(i=ho(t,n,r))),i},Zr=e=>e.replace(/\$/g,"$$$$");class Ff{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=et.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.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:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:p,nestingPrefix:f,nestingPrefixEscaped:v,nestingSuffix:y,nestingSuffixEscaped:d,nestingOptionsSeparator:x,maxReplaces:T,alwaysFormat:E}=t.interpolation;this.escape=n!==void 0?n:Rf,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?rn(i):s||"{{",this.suffix=a?rn(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?rn(f):v||rn("$t("),this.nestingSuffix=y?rn(y):d||rn(")"),this.nestingOptionsSeparator=x||",",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&&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){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=v=>{if(v.indexOf(this.formatSeparator)<0){const T=Ii(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,r,{...o,...n,interpolationkey:v}):T}const y=v.split(this.formatSeparator),d=y.shift().trim(),x=y.join(this.formatSeparator).trim();return this.format(Ii(n,l,d,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...o,...n,interpolationkey:d})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Zr(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Zr(this.escape(v)):Zr(v)}].forEach(v=>{for(a=0;i=v.regex.exec(t);){const y=i[1].trim();if(s=c(y),s===void 0)if(typeof u=="function"){const x=u(t,i,o);s=J(x)?x:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))s="";else if(p){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else!J(s)&&!this.useRawValueToEscape&&(s=Oi(s));const d=v.safeValue(s);if(t=t.replace(i[0],d),p?(v.regex.lastIndex+=s.length,v.regex.lastIndex-=i[0].length):v.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 p=l.split(new RegExp(`${u}[ ]*{`));let f=`{${p[1]}`;l=p[0],f=this.interpolate(f,s);const v=f.match(/'/g),y=f.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(d){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,d),`${l}${u}${f}`}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(p=>p.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=Oi(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,p)=>this.format(u,p,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Bf=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}},on=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(lr(r),o),t[s]=a),a(n)}};class Vf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=et.create("formatter"),this.options=t,this.formats={number:on((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:on((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:on((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:on((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:on((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()]=on(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)=>{const{formatName:c,formatOptions:u}=Bf(l);if(this.formats[c]){let p=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},v=f.locale||f.lng||o.locale||o.lng||r;p=this.formats[c](a,v,{...u,...o,...f})}catch(f){this.logger.warn(f)}return p}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const Uf=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class zf extends Ar{constructor(t,n,r){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=et.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=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},a={},l={};return t.forEach(c=>{let u=!0;n.forEach(p=>{const f=`${c}|${p}`;!r.reload&&this.store.hasResourceBundle(c,p)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,u=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[p]===void 0&&(l[p]=!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=>{Tf(l.loaded,[i],s),Uf(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(p=>{a[c][p]===void 0&&(a[c][p]=!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 p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.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){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.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(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,o,l):u=c(t,n,r,o),u&&typeof u.then=="function"?u.then(p=>a(null,p)).catch(a):a(null,u)}catch(u){a(u)}else c(t,n,r,o,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const Li=()=>({debug:!1,initImmediate:!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}}),Ni=e=>(J(e.ns)&&(e.ns=[e.ns]),J(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),J(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Jn=()=>{},Jf=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class jn extends Ar{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ni(t),this.services={},this.logger=et,this.modules={external:[]},Jf(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)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&&n.defaultNS!==!1&&n.ns&&(J(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=Li();this.options={...o,...this.options,...Ni(n)},this.options.compatibilityAPI!=="v1"&&(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?et.init(i(this.modules.logger),this.options):et.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Vf);const p=new ji(this.options);this.store=new Pi(this.options.resources,this.options);const f=this.services;f.logger=et,f.resourceStore=this.store,f.languageUtils=p,f.pluralResolver=new Df(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Ff(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new zf(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var y=arguments.length,d=new Array(y>1?y-1:0),x=1;x<y;x++)d[x-1]=arguments[x];t.emit(v,...d)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new ur(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,d=new Array(y>1?y-1:0),x=1;x<y;x++)d[x-1]=arguments[x];t.emit(v,...d)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Jn),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=Sn(),c=()=>{const u=(p,f)=>{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(f),r(p,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jn;const o=J(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const o=Sn();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=Jn),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"&&Qs.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=Sn();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=>{!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),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,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),p=2;p<c;p++)u[p-2]=arguments[p];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 f=o.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(s)?v=s.map(y=>`${l.keyPrefix}${f}${y}`):v=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(v,l)};return J(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}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=Sn();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=Sn();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){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.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=this.services&&this.services.languageUtils||new ji(Li());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 jn(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jn;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new jn(o);return(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&&(i.store=new Pi(this.store.data,o),i.services.resourceStore=i.store),i.translator=new ur(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 Ee=jn.createInstance();Ee.createInstance=jn.createInstance;Ee.createInstance;Ee.dir;Ee.init;Ee.loadResources;Ee.reloadResources;Ee.use;Ee.changeLanguage;Ee.getFixedT;Ee.t;Ee.exists;Ee.setDefaultNamespace;Ee.hasLoadedNamespace;Ee.loadNamespaces;Ee.loadLanguages;const Wf={"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":"Joint-Limit für Joint {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},Gf={"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"},ea=Ee.createInstance();ea.use(El).init({supportedLngs:["en","de"],resources:{en:{translations:Gf},de:{translations:Wf}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function Fn(e){return n=>b.jsx(Hf,{children:b.jsx(e,{...n})})}const Hf=({children:e})=>b.jsx(dn.I18nextProvider,{i18n:ea,children:e}),Kf=({title:e,titleId:t,...n},r)=>M.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?M.createElement("title",{id:t},e):null,M.createElement("g",{id:"JogMinus"},M.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),qf=H.forwardRef(Kf),Yf=({title:e,titleId:t,...n},r)=>M.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?M.createElement("title",{id:t},e):null,M.createElement("g",{id:"JogPlus"},M.createElement("g",{id:"Plus"},M.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),M.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),M.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),Xf=H.forwardRef(Yf);function kr(e){H.useEffect(e,[])}function ta(e){kr(()=>un.autorun(e))}function na(e,t,n){kr(()=>un.reaction(e,t,n))}function pn(e){return kr(()=>{let t;function n(){e(),t=requestAnimationFrame(n)}return t=requestAnimationFrame(n),()=>{cancelAnimationFrame(t)}})}const mo=Fn(Le.observer(({colors:e,label:t,getDisplayedValue:n,startJogging:r,stopJogging:o,disabled:i,activeJoggingDirection:s,...a})=>{var k,w,O,P,L,z,Y;pn(()=>{const g=n(),$=f.current;$&&($.textContent=g)});const l=j.useTheme(),[c,u]=H.useState(null);H.useEffect(()=>{i&&E()},[i]);const p=s||c,f=H.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const v=p?(k=e.buttonBackgroundColor)==null?void 0:k.pressed:e.borderColor,y={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},d={...y,backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.default,":hover":{backgroundColor:(O=e.buttonBackgroundColor)==null?void 0:O.hovered},":active":{backgroundColor:(P=e.buttonBackgroundColor)==null?void 0:P.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}}},x={...y,backgroundColor:(z=e.buttonBackgroundColor)==null?void 0:z.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(Y=e.buttonBackgroundColor)==null?void 0:Y.pressed,"svg path":{fill:l.palette.action.disabled}}};function T(g,$){i||g.button===0&&(u($),r($))}function E(){u(null),o()}return b.jsxs(cn,{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:{...p==="-"?x:d,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(qf,{})}),b.jsxs(cn,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:[b.jsx(cn,{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:f,children:n()})]}),b.jsx(j.IconButton,{disableRipple:!0,disabled:i,onPointerDown:g=>T(g,"+"),onPointerUp:E,onPointerOut:E,size:"large",sx:{...p==="+"?x:d,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(Xf,{})})]})})),Ft=Ru;function Zf(e){return Dn("MuiSvgIcon",e)}Ms("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qf=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ae(t)}`,`fontSize${Ae(n)}`]};return _o(o,Zf,r)},ed=ut("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ae(n.color)}`],t[`fontSize${Ae(n.fontSize)}`]]}})(Ft(({theme:e})=>{var t,n,r,o,i,s,a,l,c,u,p,f,v,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:d=>!d.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(([,d])=>d&&d.main).map(([d])=>{var x,T;return{props:{color:d},style:{color:(T=(x=(e.vars??e).palette)==null?void 0:x[d])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(f=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(y=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),fr=M.forwardRef(function(t,n){const r=No({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox:f="0 0 24 24",...v}=r,y=M.isValidElement(o)&&o.type==="svg",d={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:y},x={};u||(x.viewBox=f);const T=Qf(d);return b.jsxs(ed,{as:a,className:tt(T.root,i),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...x,...v,...y&&o.props,ownerState:d,children:[y?o.props.children:o,p?b.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(fr.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});fr.muiName="SvgIcon";function ra(e,t){function n(r,o){return b.jsx(fr,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=fr.muiName,M.memo(M.forwardRef(n))}const td=ra(b.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),nd=ra(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Lt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var oa=typeof global=="object"&&global&&global.Object===Object&&global,rd=typeof self=="object"&&self&&self.Object===Object&&self,rt=oa||rd||Function("return this")(),Qr=function(){return rt.Date.now()},od=/\s/;function id(e){for(var t=e.length;t--&&od.test(e.charAt(t)););return t}var sd=/^\s+/;function ad(e){return e&&e.slice(0,id(e)+1).replace(sd,"")}var Ot=rt.Symbol,ia=Object.prototype,ld=ia.hasOwnProperty,cd=ia.toString,wn=Ot?Ot.toStringTag:void 0;function ud(e){var t=ld.call(e,wn),n=e[wn];try{e[wn]=void 0;var r=!0}catch{}var o=cd.call(e);return r&&(t?e[wn]=n:delete e[wn]),o}var fd=Object.prototype,dd=fd.toString;function pd(e){return dd.call(e)}var gd="[object Null]",hd="[object Undefined]",Mi=Ot?Ot.toStringTag:void 0;function Bt(e){return e==null?e===void 0?hd:gd:Mi&&Mi in Object(e)?ud(e):pd(e)}function Nt(e){return e!=null&&typeof e=="object"}var md="[object Symbol]";function Pr(e){return typeof e=="symbol"||Nt(e)&&Bt(e)==md}var Di=NaN,yd=/^[-+]0x[0-9a-f]+$/i,bd=/^0b[01]+$/i,vd=/^0o[0-7]+$/i,xd=parseInt;function Fi(e){if(typeof e=="number")return e;if(Pr(e))return Di;if(Lt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Lt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ad(e);var n=bd.test(e);return n||vd.test(e)?xd(e.slice(2),n?2:8):yd.test(e)?Di:+e}var Sd="Expected a function",wd=Math.max,Cd=Math.min;function Td(e,t,n){var r,o,i,s,a,l,c=0,u=!1,p=!1,f=!0;if(typeof e!="function")throw new TypeError(Sd);t=Fi(t)||0,Lt(n)&&(u=!!n.leading,p="maxWait"in n,i=p?wd(Fi(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function v(P){var L=r,z=o;return r=o=void 0,c=P,s=e.apply(z,L),s}function y(P){return c=P,a=setTimeout(T,t),u?v(P):s}function d(P){var L=P-l,z=P-c,Y=t-L;return p?Cd(Y,i-z):Y}function x(P){var L=P-l,z=P-c;return l===void 0||L>=t||L<0||p&&z>=i}function T(){var P=Qr();if(x(P))return E(P);a=setTimeout(T,d(P))}function E(P){return a=void 0,f&&r?v(P):(r=o=void 0,s)}function k(){a!==void 0&&clearTimeout(a),c=0,r=l=o=a=void 0}function w(){return a===void 0?s:E(Qr())}function O(){var P=Qr(),L=x(P);if(r=arguments,o=this,l=P,L){if(a===void 0)return y(l);if(p)return clearTimeout(a),a=setTimeout(T,t),v(l)}return a===void 0&&(a=setTimeout(T,t)),s}return O.cancel=k,O.flush=w,O}var Ed="Expected a function";function Od(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Ed);return Lt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Td(e,t,{leading:r,maxWait:t,trailing:o})}const sa=Fn(Le.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:n,upperLimitDegs:r,getValueDegs:o,disabled:i,...s})=>{var k,w,O,P,L,z,Y;const{t:a}=dn.useTranslation(),[l,c]=H.useState(),u=j.useTheme(),p={background:(k=u.palette.backgroundPaperElevation)==null?void 0:k[4],color:(w=u.palette.backgroundPaperElevation)==null?void 0:w[11]},f=Le.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}})),v=Od(()=>{c(o())},50);pn(v);function y(g){g.button===0&&f.startJogging("-")}function d(g){g.button===0&&f.startJogging("+")}function x(g){f.stopJogging()}function T(g){f.stopJogging()}function E(g,$=1){if(g===void 0||isNaN(g))return"";const F=a("General.degree.variable",{amount:g.toFixed($)});return g>0&&$===0?`+${F}`:F}return b.jsxs(cn,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(O=u.palette.backgroundPaperElevation)==null?void 0:O[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(P=u.palette.backgroundPaperElevation)==null?void 0:P[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(L=u.palette.backgroundPaperElevation)==null?void 0:L[9]},"&:active":{...p}}},children:[b.jsx(j.IconButton,{onPointerDown:y,onPointerUp:x,onPointerOut:T,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...f.activeJoggingDir==="-"?p:{}},children:b.jsx(td,{sx:{pointerEvents:"none"}})}),b.jsxs(cn,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(z=u.palette.backgroundPaperElevation)==null?void 0:z[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:(Y=u.palette.backgroundPaperElevation)==null?void 0:Y[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:d,onPointerUp:x,onPointerOut:T,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...f.activeJoggingDir==="+"?p:{}},children:b.jsx(nd,{sx:{pointerEvents:"none"}})})]})}));function aa(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rd}=Object.prototype,{getPrototypeOf:Mo}=Object,$r=(e=>t=>{const n=Rd.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qe=e=>(e=e.toLowerCase(),t=>$r(t)===e),jr=e=>t=>typeof t===e,{isArray:gn}=Array,_n=jr("undefined");function Ad(e){return e!==null&&!_n(e)&&e.constructor!==null&&!_n(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const la=qe("ArrayBuffer");function kd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&la(e.buffer),t}const Pd=jr("string"),De=jr("function"),ca=jr("number"),_r=e=>e!==null&&typeof e=="object",$d=e=>e===!0||e===!1,tr=e=>{if($r(e)!=="object")return!1;const t=Mo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jd=qe("Date"),_d=qe("File"),Id=qe("Blob"),Ld=qe("FileList"),Nd=e=>_r(e)&&De(e.pipe),Md=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||De(e.append)&&((t=$r(e))==="formdata"||t==="object"&&De(e.toString)&&e.toString()==="[object FormData]"))},Dd=qe("URLSearchParams"),[Fd,Bd,Vd,Ud]=["ReadableStream","Request","Response","Headers"].map(qe),zd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),gn(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 ua(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 jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fa=e=>!_n(e)&&e!==jt;function yo(){const{caseless:e}=fa(this)&&this||{},t={},n=(r,o)=>{const i=e&&ua(t,o)||o;tr(t[i])&&tr(r)?t[i]=yo(t[i],r):tr(r)?t[i]=yo({},r):gn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Bn(arguments[r],n);return t}const Jd=(e,t,n,{allOwnKeys:r}={})=>(Bn(t,(o,i)=>{n&&De(o)?e[i]=aa(o,n):e[i]=o},{allOwnKeys:r}),e),Wd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gd=(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)},Hd=(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&&Mo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Kd=(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},qd=e=>{if(!e)return null;if(gn(e))return e;let t=e.length;if(!ca(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Yd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mo(Uint8Array)),Xd=(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])}},Zd=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qd=qe("HTMLFormElement"),ep=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Bi=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tp=qe("RegExp"),da=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bn(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},np=e=>{da(e,(t,n)=>{if(De(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(De(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+"'")})}})},rp=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return gn(e)?r(e):r(String(e).split(t)),n},op=()=>{},ip=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,eo="abcdefghijklmnopqrstuvwxyz",Vi="0123456789",pa={DIGIT:Vi,ALPHA:eo,ALPHA_DIGIT:eo+eo.toUpperCase()+Vi},sp=(e=16,t=pa.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ap(e){return!!(e&&De(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lp=e=>{const t=new Array(10),n=(r,o)=>{if(_r(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=gn(r)?[]:{};return Bn(r,(s,a)=>{const l=n(s,o+1);!_n(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},cp=qe("AsyncFunction"),up=e=>e&&(_r(e)||De(e))&&De(e.then)&&De(e.catch),ga=((e,t)=>e?setImmediate:t?((n,r)=>(jt.addEventListener("message",({source:o,data:i})=>{o===jt&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),jt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",De(jt.postMessage)),fp=typeof queueMicrotask<"u"?queueMicrotask.bind(jt):typeof process<"u"&&process.nextTick||ga,S={isArray:gn,isArrayBuffer:la,isBuffer:Ad,isFormData:Md,isArrayBufferView:kd,isString:Pd,isNumber:ca,isBoolean:$d,isObject:_r,isPlainObject:tr,isReadableStream:Fd,isRequest:Bd,isResponse:Vd,isHeaders:Ud,isUndefined:_n,isDate:jd,isFile:_d,isBlob:Id,isRegExp:tp,isFunction:De,isStream:Nd,isURLSearchParams:Dd,isTypedArray:Yd,isFileList:Ld,forEach:Bn,merge:yo,extend:Jd,trim:zd,stripBOM:Wd,inherits:Gd,toFlatObject:Hd,kindOf:$r,kindOfTest:qe,endsWith:Kd,toArray:qd,forEachEntry:Xd,matchAll:Zd,isHTMLForm:Qd,hasOwnProperty:Bi,hasOwnProp:Bi,reduceDescriptors:da,freezeMethods:np,toObjectSet:rp,toCamelCase:ep,noop:op,toFiniteNumber:ip,findKey:ua,global:jt,isContextDefined:fa,ALPHABET:pa,generateString:sp,isSpecCompliantForm:ap,toJSONObject:lp,isAsyncFn:cp,isThenable:up,setImmediate:ga,asap:fp};function W(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(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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const ha=W.prototype,ma={};["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=>{ma[e]={value:e}});Object.defineProperties(W,ma);Object.defineProperty(ha,"isAxiosError",{value:!0});W.from=(e,t,n,r,o,i)=>{const s=Object.create(ha);return S.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),W.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const dp=null;function bo(e){return S.isPlainObject(e)||S.isArray(e)}function ya(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Ui(e,t,n){return e?e.concat(t).map(function(o,i){return o=ya(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function pp(e){return S.isArray(e)&&!e.some(bo)}const gp=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Ir(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(d,x){return!S.isUndefined(x[d])});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 W("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,d,x){let T=y;if(y&&!x&&typeof y=="object"){if(S.endsWith(d,"{}"))d=r?d:d.slice(0,-2),y=JSON.stringify(y);else if(S.isArray(y)&&pp(y)||(S.isFileList(y)||S.endsWith(d,"[]"))&&(T=S.toArray(y)))return d=ya(d),T.forEach(function(k,w){!(S.isUndefined(k)||k===null)&&t.append(s===!0?Ui([d],w,i):s===null?d:d+"[]",c(k))}),!1}return bo(y)?!0:(t.append(Ui(x,d,i),c(y)),!1)}const p=[],f=Object.assign(gp,{defaultVisitor:u,convertValue:c,isVisitable:bo});function v(y,d){if(!S.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+d.join("."));p.push(y),S.forEach(y,function(T,E){(!(S.isUndefined(T)||T===null)&&o.call(t,T,S.isString(E)?E.trim():E,d,f))===!0&&v(T,d?d.concat(E):[E])}),p.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return v(e),t}function zi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Do(e,t){this._pairs=[],e&&Ir(e,this,t)}const ba=Do.prototype;ba.append=function(t,n){this._pairs.push([t,n])};ba.toString=function(t){const n=t?function(r){return t.call(this,r,zi)}:zi;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function hp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function va(e,t,n){if(!t)return e;const r=n&&n.encode||hp,o=n&&n.serialize;let i;if(o?i=o(t,n):i=S.isURLSearchParams(t)?t.toString():new Do(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ji{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 xa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mp=typeof URLSearchParams<"u"?URLSearchParams:Do,yp=typeof FormData<"u"?FormData:null,bp=typeof Blob<"u"?Blob:null,vp={isBrowser:!0,classes:{URLSearchParams:mp,FormData:yp,Blob:bp},protocols:["http","https","file","blob","url","data"]},Fo=typeof window<"u"&&typeof document<"u",vo=typeof navigator=="object"&&navigator||void 0,xp=Fo&&(!vo||["ReactNative","NativeScript","NS"].indexOf(vo.product)<0),Sp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wp=Fo&&window.location.href||"http://localhost",Cp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fo,hasStandardBrowserEnv:xp,hasStandardBrowserWebWorkerEnv:Sp,navigator:vo,origin:wp},Symbol.toStringTag,{value:"Module"})),_e={...Cp,...vp};function Tp(e,t){return Ir(e,new _e.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return _e.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Ep(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Op(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 Sa(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]=Op(o[s])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,o)=>{t(Ep(r),o,n,0)}),n}return null}function Rp(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(0,JSON.stringify)(e)}const Vn={transitional:xa,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(Sa(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 Tp(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ir(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Rp(t)):t}],transformResponse:[function(t){const n=this.transitional||Vn.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"?W.from(a,W.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:_e.classes.FormData,Blob:_e.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=>{Vn.headers[e]={}});const Ap=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"]),kp=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]&&Ap[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wi=Symbol("internals");function Cn(e){return e&&String(e).trim().toLowerCase()}function nr(e){return e===!1||e==null?e:S.isArray(e)?e.map(nr):String(e)}function Pp(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 $p=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function to(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 jp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _p(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 Ie=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Cn(l);if(!u)throw new Error("header name must be a non-empty string");const p=S.findKey(o,u);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||l]=nr(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())&&!$p(t))s(kp(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=Cn(t),t){const r=S.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Pp(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=Cn(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||to(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Cn(s),s){const a=S.findKey(r,s);a&&(!n||to(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||to(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]=nr(o),delete n[i];return}const a=t?jp(i):String(i).trim();a!==i&&delete n[i],n[a]=nr(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[Wi]=this[Wi]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Cn(s);r[a]||(_p(o,s),r[a]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}};Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Ie.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Ie);function no(e,t){const n=this||Vn,r=t||n,o=Ie.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 wa(e){return!!(e&&e.__CANCEL__)}function hn(e,t,n){W.call(this,e??"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(hn,W,{__CANCEL__:!0});function Ca(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ip(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lp(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 p=i,f=0;for(;p!==o;)f+=n[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const v=u&&c-u;return v?Math.round(f*1e3/v):void 0}}function Np(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(),p=u-n;p>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-p)))},()=>o&&s(o)]}const dr=(e,t,n=3)=>{let r=0;const o=Lp(50,250);return Np(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const p={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(p)},n)},Gi=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Hi=e=>(...t)=>S.asap(()=>e(...t)),Mp=_e.hasStandardBrowserEnv?function(){const t=_e.navigator&&/(msie|trident)/i.test(_e.navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=S.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Dp=_e.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 Fp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ta(e,t){return e&&!Fp(t)?Bp(e,t):t}const Ki=e=>e instanceof Ie?{...e}:e;function Mt(e,t){t=t||{};const n={};function r(c,u,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,p){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c,p)}else return r(c,u,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,p){if(p in t)return r(c,u);if(p 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)=>o(Ki(c),Ki(u),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=l[u]||o,f=p(e[u],t[u],u);S.isUndefined(f)&&p!==a||(n[u]=f)}),n}const Ea=e=>{const t=Mt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Ie.from(s),t.url=va(Ta(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(_e.hasStandardBrowserEnv||_e.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(_e.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&Mp(t.url))){const c=o&&i&&Dp.read(i);c&&s.set(o,c)}return t},Vp=typeof XMLHttpRequest<"u",Up=Vp&&function(e){return new Promise(function(n,r){const o=Ea(e);let i=o.data;const s=Ie.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,p,f,v,y;function d(){v&&v(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function T(){if(!x)return;const k=Ie.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),O={data:!a||a==="text"||a==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:k,config:e,request:x};Ca(function(L){n(L),d()},function(L){r(L),d()},O),x=null}"onloadend"in x?x.onloadend=T:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(T)},x.onabort=function(){x&&(r(new W("Request aborted",W.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||xa;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new W(w,O.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,x)),x=null},i===void 0&&s.setContentType(null),"setRequestHeader"in x&&S.forEach(s.toJSON(),function(w,O){x.setRequestHeader(O,w)}),S.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),a&&a!=="json"&&(x.responseType=o.responseType),c&&([f,y]=dr(c,!0),x.addEventListener("progress",f)),l&&x.upload&&([p,v]=dr(l),x.upload.addEventListener("progress",p),x.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(u=k=>{x&&(r(!k||k.type?new hn(null,e,x):k),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const E=Ip(o.url);if(E&&_e.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,e));return}x.send(i||null)})},zp=(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 W?u:new hn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new W(`timeout ${t} of ms exceeded`,W.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}},Jp=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},Wp=async function*(e,t){for await(const n of Gp(e))yield*Jp(n,t)},Gp=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()}},qi=(e,t,n,r)=>{const o=Wp(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 p=u.byteLength;if(n){let f=i+=p;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Lr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Oa=Lr&&typeof ReadableStream=="function",Hp=Lr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ra=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Kp=Oa&&Ra(()=>{let e=!1;const t=new Request(_e.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Yi=64*1024,xo=Oa&&Ra(()=>S.isReadableStream(new Response("").body)),pr={stream:xo&&(e=>e.body)};Lr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pr[t]&&(pr[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,r)})})})(new Response);const qp=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(_e.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 Hp(e)).byteLength},Yp=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??qp(t)},Xp=Lr&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:p="same-origin",fetchOptions:f}=Ea(e);c=c?(c+"").toLowerCase():"text";let v=zp([o,i&&i.toAbortSignal()],s),y;const d=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let x;try{if(l&&Kp&&n!=="get"&&n!=="head"&&(x=await Yp(u,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(S.isFormData(r)&&(P=O.headers.get("content-type"))&&u.setContentType(P),O.body){const[L,z]=Gi(x,dr(Hi(l)));r=qi(O.body,Yi,L,z)}}S.isString(p)||(p=p?"include":"omit");const T="credentials"in Request.prototype;y=new Request(t,{...f,signal:v,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:T?p:void 0});let E=await fetch(y);const k=xo&&(c==="stream"||c==="response");if(xo&&(a||k&&d)){const O={};["status","statusText","headers"].forEach(Y=>{O[Y]=E[Y]});const P=S.toFiniteNumber(E.headers.get("content-length")),[L,z]=a&&Gi(P,dr(Hi(a),!0))||[];E=new Response(qi(E.body,Yi,L,()=>{z&&z(),d&&d()}),O)}c=c||"text";let w=await pr[S.findKey(pr,c)||"text"](E,e);return!k&&d&&d(),await new Promise((O,P)=>{Ca(O,P,{data:w,headers:Ie.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:y})})}catch(T){throw d&&d(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,y),{cause:T.cause||T}):W.from(T,T&&T.code,e,y)}}),So={http:dp,xhr:Up,fetch:Xp};S.forEach(So,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Xi=e=>`- ${e}`,Zp=e=>S.isFunction(e)||e===null||e===!1,Aa={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,!Zp(n)&&(r=So[(s=String(n)).toLowerCase()],r===void 0))throw new W(`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(Xi).join(`
|
|
91
|
+
`):" "+Xi(i[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:So};function ro(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hn(null,e)}function Zi(e){return ro(e),e.headers=Ie.from(e.headers),e.data=no.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Aa.getAdapter(e.adapter||Vn.adapter)(e).then(function(r){return ro(e),r.data=no.call(e,e.transformResponse,r),r.headers=Ie.from(r.headers),r},function(r){return wa(r)||(ro(e),r&&r.response&&(r.response.data=no.call(e,e.transformResponse,r.response),r.response.headers=Ie.from(r.response.headers))),Promise.reject(r)})}const ka="1.7.7",Bo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Bo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Qi={};Bo.transitional=function(t,n,r){function o(i,s){return"[Axios v"+ka+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new W(o(s," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!Qi[s]&&(Qi[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}};function Qp(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.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 W("option "+i+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const wo={assertOptions:Qp,validators:Bo},xt=wo.validators;let _t=class{constructor(t){this.defaults=t,this.interceptors={request:new Ji,response:new Ji}}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=Mt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&wo.assertOptions(r,{silentJSONParsing:xt.transitional(xt.boolean),forcedJSONParsing:xt.transitional(xt.boolean),clarifyTimeoutError:xt.transitional(xt.boolean)},!1),o!=null&&(S.isFunction(o)?n.paramsSerializer={serialize:o}:wo.assertOptions(o,{encode:xt.function,serialize:xt.function},!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=Ie.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(l=l&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let u,p=0,f;if(!l){const y=[Zi.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),f=y.length,u=Promise.resolve(n);p<f;)u=u.then(y[p++],y[p++]);return u}f=a.length;let v=n;for(p=0;p<f;){const y=a[p++],d=a[p++];try{v=y(v)}catch(x){d.call(this,x);break}}try{u=Zi.call(this,v)}catch(y){return Promise.reject(y)}for(p=0,f=c.length;p<f;)u=u.then(c[p++],c[p++]);return u}getUri(t){t=Mt(this.defaults,t);const n=Ta(t.baseURL,t.url);return va(n,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){_t.prototype[t]=function(n,r){return this.request(Mt(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(Mt(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}_t.prototype[t]=n(),_t.prototype[t+"Form"]=n(!0)});let eg=class Pa{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 hn(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 Pa(function(o){t=o}),cancel:t}}};function tg(e){return function(n){return e.apply(null,n)}}function ng(e){return S.isObject(e)&&e.isAxiosError===!0}const Co={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(Co).forEach(([e,t])=>{Co[t]=e});function $a(e){const t=new _t(e),n=aa(_t.prototype.request,t);return S.extend(n,_t.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return $a(Mt(e,o))},n}const ve=$a(Vn);ve.Axios=_t;ve.CanceledError=hn;ve.CancelToken=eg;ve.isCancel=wa;ve.VERSION=ka;ve.toFormData=Ir;ve.AxiosError=W;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=tg;ve.isAxiosError=ng;ve.mergeConfig=Mt;ve.AxiosHeaders=Ie;ve.formToJSON=e=>Sa(S.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Aa.getAdapter;ve.HttpStatusCode=Co;ve.default=ve;const{Axios:$b,AxiosError:es,CanceledError:jb,isCancel:_b,CancelToken:Ib,VERSION:Lb,all:Nb,Cancel:Mb,isAxiosError:Db,spread:Fb,toFormData:Bb,AxiosHeaders:Vb,HttpStatusCode:Ub,formToJSON:zb,getAdapter:Jb,mergeConfig:Wb}=ve;function rg(e){try{return JSON.stringify(e)}catch{return}}function og(e){var t,n,r,o;return e instanceof es&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof es&&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: ${rg(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(ja,{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..."})]})})},ja=e=>{const t=og(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 ${Po.lowerFirst(j.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),n&&b.jsx("pre",{children:n})]})},ig=({title:e,titleId:t,...n},r)=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:r,"aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"})),sg=H.forwardRef(ig),ag=({title:e,titleId:t,...n},r)=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:r,"aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"})),lg=H.forwardRef(ag),cg=({title:e,titleId:t,...n},r)=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:r,"aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"})),ug=H.forwardRef(cg),fg=({title:e,titleId:t,...n},r)=>M.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?M.createElement("title",{id:t},e):null,M.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"})),dg=H.forwardRef(fg);function pg(){this.__data__=[],this.size=0}function _a(e,t){return e===t||e!==e&&t!==t}function Nr(e,t){for(var n=e.length;n--;)if(_a(e[n][0],t))return n;return-1}var gg=Array.prototype,hg=gg.splice;function mg(e){var t=this.__data__,n=Nr(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():hg.call(t,n,1),--this.size,!0}function yg(e){var t=this.__data__,n=Nr(t,e);return n<0?void 0:t[n][1]}function bg(e){return Nr(this.__data__,e)>-1}function vg(e,t){var n=this.__data__,r=Nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=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=pg;ft.prototype.delete=mg;ft.prototype.get=yg;ft.prototype.has=bg;ft.prototype.set=vg;function xg(){this.__data__=new ft,this.size=0}function Sg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function wg(e){return this.__data__.get(e)}function Cg(e){return this.__data__.has(e)}var Tg="[object AsyncFunction]",Eg="[object Function]",Og="[object GeneratorFunction]",Rg="[object Proxy]";function Ia(e){if(!Lt(e))return!1;var t=Bt(e);return t==Eg||t==Og||t==Tg||t==Rg}var oo=rt["__core-js_shared__"],ts=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ag(e){return!!ts&&ts in e}var kg=Function.prototype,Pg=kg.toString;function Vt(e){if(e!=null){try{return Pg.call(e)}catch{}try{return e+""}catch{}}return""}var $g=/[\\^$.*+?()[\]{}|]/g,jg=/^\[object .+?Constructor\]$/,_g=Function.prototype,Ig=Object.prototype,Lg=_g.toString,Ng=Ig.hasOwnProperty,Mg=RegExp("^"+Lg.call(Ng).replace($g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dg(e){if(!Lt(e)||Ag(e))return!1;var t=Ia(e)?Mg:jg;return t.test(Vt(e))}function Fg(e,t){return e==null?void 0:e[t]}function Ut(e,t){var n=Fg(e,t);return Dg(n)?n:void 0}var In=Ut(rt,"Map"),Ln=Ut(Object,"create");function Bg(){this.__data__=Ln?Ln(null):{},this.size=0}function Vg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ug="__lodash_hash_undefined__",zg=Object.prototype,Jg=zg.hasOwnProperty;function Wg(e){var t=this.__data__;if(Ln){var n=t[e];return n===Ug?void 0:n}return Jg.call(t,e)?t[e]:void 0}var Gg=Object.prototype,Hg=Gg.hasOwnProperty;function Kg(e){var t=this.__data__;return Ln?t[e]!==void 0:Hg.call(t,e)}var qg="__lodash_hash_undefined__";function Yg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ln&&t===void 0?qg:t,this}function Dt(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])}}Dt.prototype.clear=Bg;Dt.prototype.delete=Vg;Dt.prototype.get=Wg;Dt.prototype.has=Kg;Dt.prototype.set=Yg;function Xg(){this.size=0,this.__data__={hash:new Dt,map:new(In||ft),string:new Dt}}function Zg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Mr(e,t){var n=e.__data__;return Zg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Qg(e){var t=Mr(this,e).delete(e);return this.size-=t?1:0,t}function eh(e){return Mr(this,e).get(e)}function th(e){return Mr(this,e).has(e)}function nh(e,t){var n=Mr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function dt(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])}}dt.prototype.clear=Xg;dt.prototype.delete=Qg;dt.prototype.get=eh;dt.prototype.has=th;dt.prototype.set=nh;var rh=200;function oh(e,t){var n=this.__data__;if(n instanceof ft){var r=n.__data__;if(!In||r.length<rh-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(e,t),this.size=n.size,this}function ct(e){var t=this.__data__=new ft(e);this.size=t.size}ct.prototype.clear=xg;ct.prototype.delete=Sg;ct.prototype.get=wg;ct.prototype.has=Cg;ct.prototype.set=oh;var ih="__lodash_hash_undefined__";function sh(e){return this.__data__.set(e,ih),this}function ah(e){return this.__data__.has(e)}function gr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new dt;++t<n;)this.add(e[t])}gr.prototype.add=gr.prototype.push=sh;gr.prototype.has=ah;function lh(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 ch(e,t){return e.has(t)}var uh=1,fh=2;function La(e,t,n,r,o,i){var s=n&uh,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 p=-1,f=!0,v=n&fh?new gr:void 0;for(i.set(e,t),i.set(t,e);++p<a;){var y=e[p],d=t[p];if(r)var x=s?r(d,y,p,t,e,i):r(y,d,p,e,t,i);if(x!==void 0){if(x)continue;f=!1;break}if(v){if(!lh(t,function(T,E){if(!ch(v,E)&&(y===T||o(y,T,n,r,i)))return v.push(E)})){f=!1;break}}else if(!(y===d||o(y,d,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var ns=rt.Uint8Array;function dh(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function ph(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var gh=1,hh=2,mh="[object Boolean]",yh="[object Date]",bh="[object Error]",vh="[object Map]",xh="[object Number]",Sh="[object RegExp]",wh="[object Set]",Ch="[object String]",Th="[object Symbol]",Eh="[object ArrayBuffer]",Oh="[object DataView]",rs=Ot?Ot.prototype:void 0,io=rs?rs.valueOf:void 0;function Rh(e,t,n,r,o,i,s){switch(n){case Oh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Eh:return!(e.byteLength!=t.byteLength||!i(new ns(e),new ns(t)));case mh:case yh:case xh:return _a(+e,+t);case bh:return e.name==t.name&&e.message==t.message;case Sh:case Ch:return e==t+"";case vh:var a=dh;case wh:var l=r&gh;if(a||(a=ph),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=hh,s.set(e,t);var u=La(a(e),a(t),r,o,i,s);return s.delete(e),u;case Th:if(io)return io.call(e)==io.call(t)}return!1}function Ah(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var nt=Array.isArray;function kh(e,t,n){var r=t(e);return nt(e)?r:Ah(r,n(e))}function Ph(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 $h(){return[]}var jh=Object.prototype,_h=jh.propertyIsEnumerable,os=Object.getOwnPropertySymbols,Ih=os?function(e){return e==null?[]:(e=Object(e),Ph(os(e),function(t){return _h.call(e,t)}))}:$h;function Lh(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Nh="[object Arguments]";function is(e){return Nt(e)&&Bt(e)==Nh}var Na=Object.prototype,Mh=Na.hasOwnProperty,Dh=Na.propertyIsEnumerable,Ma=is(function(){return arguments}())?is:function(e){return Nt(e)&&Mh.call(e,"callee")&&!Dh.call(e,"callee")};function Fh(){return!1}var Da=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ss=Da&&typeof module=="object"&&module&&!module.nodeType&&module,Bh=ss&&ss.exports===Da,as=Bh?rt.Buffer:void 0,Vh=as?as.isBuffer:void 0,To=Vh||Fh,Uh=9007199254740991,zh=/^(?:0|[1-9]\d*)$/;function Fa(e,t){var n=typeof e;return t=t??Uh,!!t&&(n=="number"||n!="symbol"&&zh.test(e))&&e>-1&&e%1==0&&e<t}var Jh=9007199254740991;function Uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jh}var Wh="[object Arguments]",Gh="[object Array]",Hh="[object Boolean]",Kh="[object Date]",qh="[object Error]",Yh="[object Function]",Xh="[object Map]",Zh="[object Number]",Qh="[object Object]",em="[object RegExp]",tm="[object Set]",nm="[object String]",rm="[object WeakMap]",om="[object ArrayBuffer]",im="[object DataView]",sm="[object Float32Array]",am="[object Float64Array]",lm="[object Int8Array]",cm="[object Int16Array]",um="[object Int32Array]",fm="[object Uint8Array]",dm="[object Uint8ClampedArray]",pm="[object Uint16Array]",gm="[object Uint32Array]",le={};le[sm]=le[am]=le[lm]=le[cm]=le[um]=le[fm]=le[dm]=le[pm]=le[gm]=!0;le[Wh]=le[Gh]=le[om]=le[Hh]=le[im]=le[Kh]=le[qh]=le[Yh]=le[Xh]=le[Zh]=le[Qh]=le[em]=le[tm]=le[nm]=le[rm]=!1;function hm(e){return Nt(e)&&Uo(e.length)&&!!le[Bt(e)]}function mm(e){return function(t){return e(t)}}var Ba=typeof exports=="object"&&exports&&!exports.nodeType&&exports,An=Ba&&typeof module=="object"&&module&&!module.nodeType&&module,ym=An&&An.exports===Ba,so=ym&&oa.process,ls=function(){try{var e=An&&An.require&&An.require("util").types;return e||so&&so.binding&&so.binding("util")}catch{}}(),cs=ls&&ls.isTypedArray,Va=cs?mm(cs):hm,bm=Object.prototype,vm=bm.hasOwnProperty;function xm(e,t){var n=nt(e),r=!n&&Ma(e),o=!n&&!r&&To(e),i=!n&&!r&&!o&&Va(e),s=n||r||o||i,a=s?Lh(e.length,String):[],l=a.length;for(var c in e)vm.call(e,c)&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Fa(c,l)))&&a.push(c);return a}var Sm=Object.prototype;function wm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Sm;return e===n}function Cm(e,t){return function(n){return e(t(n))}}var Tm=Cm(Object.keys,Object),Em=Object.prototype,Om=Em.hasOwnProperty;function Rm(e){if(!wm(e))return Tm(e);var t=[];for(var n in Object(e))Om.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ua(e){return e!=null&&Uo(e.length)&&!Ia(e)}function zo(e){return Ua(e)?xm(e):Rm(e)}function us(e){return kh(e,zo,Ih)}var Am=1,km=Object.prototype,Pm=km.hasOwnProperty;function $m(e,t,n,r,o,i){var s=n&Am,a=us(e),l=a.length,c=us(t),u=c.length;if(l!=u&&!s)return!1;for(var p=l;p--;){var f=a[p];if(!(s?f in t:Pm.call(t,f)))return!1}var v=i.get(e),y=i.get(t);if(v&&y)return v==t&&y==e;var d=!0;i.set(e,t),i.set(t,e);for(var x=s;++p<l;){f=a[p];var T=e[f],E=t[f];if(r)var k=s?r(E,T,f,t,e,i):r(T,E,f,e,t,i);if(!(k===void 0?T===E||o(T,E,n,r,i):k)){d=!1;break}x||(x=f=="constructor")}if(d&&!x){var w=e.constructor,O=t.constructor;w!=O&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof O=="function"&&O instanceof O)&&(d=!1)}return i.delete(e),i.delete(t),d}var Eo=Ut(rt,"DataView"),Oo=Ut(rt,"Promise"),Ro=Ut(rt,"Set"),Ao=Ut(rt,"WeakMap"),fs="[object Map]",jm="[object Object]",ds="[object Promise]",ps="[object Set]",gs="[object WeakMap]",hs="[object DataView]",_m=Vt(Eo),Im=Vt(In),Lm=Vt(Oo),Nm=Vt(Ro),Mm=Vt(Ao),St=Bt;(Eo&&St(new Eo(new ArrayBuffer(1)))!=hs||In&&St(new In)!=fs||Oo&&St(Oo.resolve())!=ds||Ro&&St(new Ro)!=ps||Ao&&St(new Ao)!=gs)&&(St=function(e){var t=Bt(e),n=t==jm?e.constructor:void 0,r=n?Vt(n):"";if(r)switch(r){case _m:return hs;case Im:return fs;case Lm:return ds;case Nm:return ps;case Mm:return gs}return t});var Dm=1,ms="[object Arguments]",ys="[object Array]",Wn="[object Object]",Fm=Object.prototype,bs=Fm.hasOwnProperty;function Bm(e,t,n,r,o,i){var s=nt(e),a=nt(t),l=s?ys:St(e),c=a?ys:St(t);l=l==ms?Wn:l,c=c==ms?Wn:c;var u=l==Wn,p=c==Wn,f=l==c;if(f&&To(e)){if(!To(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new ct),s||Va(e)?La(e,t,n,r,o,i):Rh(e,t,l,n,r,o,i);if(!(n&Dm)){var v=u&&bs.call(e,"__wrapped__"),y=p&&bs.call(t,"__wrapped__");if(v||y){var d=v?e.value():e,x=y?t.value():t;return i||(i=new ct),o(d,x,n,r,i)}}return f?(i||(i=new ct),$m(e,t,n,r,o,i)):!1}function Dr(e,t,n,r,o){return e===t?!0:e==null||t==null||!Nt(e)&&!Nt(t)?e!==e&&t!==t:Bm(e,t,n,r,Dr,o)}function Vm(e,t){return Dr(e,t)}const za=({store:e})=>{const{t}=dn.useTranslation(),[n,r]=H.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=H.useRef(n);pn(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;Vm(o.current,s)||(o.current=s,r(s))});const i=[];for(const[s,a]of n.entries())a&&i.push(s);return i.length===0?null:b.jsx(j.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:i.length?"visible":"collapse"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(s=>s+1).join(", ")})})},Um=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 Gn({labelValue:e,...t}){return b.jsxs(Um,{fullWidth:!0,variant:"filled",children:[b.jsx(j.InputLabel,{id:t.labelId,children:e}),b.jsx(j.Select,{...t})]})}var vs=function(){try{var e=Ut(Object,"defineProperty");return e({},"",{}),e}catch{}}();function zm(e,t,n){t=="__proto__"&&vs?vs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Jm(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 Wm(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 Gm=Wm();function Hm(e,t){return e&&Gm(e,t,zo)}function Km(e,t){return function(n,r){if(n==null)return n;if(!Ua(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 qm=Km(Hm);function Ym(e,t,n,r){return qm(e,function(o,i,s){t(r,o,n(o),s)}),r}var Xm=1,Zm=2;function Qm(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 ct,p;if(!(p===void 0?Dr(c,l,Xm|Zm,r,u):p))return!1}}return!0}function Ja(e){return e===e&&!Lt(e)}function ey(e){for(var t=zo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ja(o)]}return t}function Wa(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function ty(e){var t=ey(e);return t.length==1&&t[0][2]?Wa(t[0][0],t[0][1]):function(n){return n===e||Qm(n,e,t)}}var ny=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ry=/^\w*$/;function Jo(e,t){if(nt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Pr(e)?!0:ry.test(e)||!ny.test(e)||t!=null&&e in Object(t)}var oy="Expected a function";function Wo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(oy);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(Wo.Cache||dt),n}Wo.Cache=dt;var iy=500;function sy(e){var t=Wo(e,function(r){return n.size===iy&&n.clear(),r}),n=t.cache;return t}var ay=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ly=/\\(\\)?/g,cy=sy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ay,function(n,r,o,i){t.push(o?i.replace(ly,"$1"):r||n)}),t});function uy(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 fy=1/0,xs=Ot?Ot.prototype:void 0,Ss=xs?xs.toString:void 0;function Ga(e){if(typeof e=="string")return e;if(nt(e))return uy(e,Ga)+"";if(Pr(e))return Ss?Ss.call(e):"";var t=e+"";return t=="0"&&1/e==-fy?"-0":t}function Ha(e){return e==null?"":Ga(e)}function Ka(e,t){return nt(e)?e:Jo(e,t)?[e]:cy(Ha(e))}var dy=1/0;function Fr(e){if(typeof e=="string"||Pr(e))return e;var t=e+"";return t=="0"&&1/e==-dy?"-0":t}function qa(e,t){t=Ka(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Fr(t[n++])];return n&&n==r?e:void 0}function py(e,t,n){var r=e==null?void 0:qa(e,t);return r===void 0?n:r}function gy(e,t){return e!=null&&t in Object(e)}function hy(e,t,n){t=Ka(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=Fr(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)&&Fa(s,o)&&(nt(e)||Ma(e)))}function my(e,t){return e!=null&&hy(e,t,gy)}var yy=1,by=2;function vy(e,t){return Jo(e)&&Ja(t)?Wa(Fr(e),t):function(n){var r=py(n,e);return r===void 0&&r===t?my(n,e):Dr(t,r,yy|by)}}function xy(e){return e}function Sy(e){return function(t){return t==null?void 0:t[e]}}function wy(e){return function(t){return qa(t,e)}}function Cy(e){return Jo(e)?Sy(Fr(e)):wy(e)}function Ty(e){return typeof e=="function"?e:e==null?xy:typeof e=="object"?nt(e)?vy(e[0],e[1]):ty(e):Cy(e)}function Ey(e,t){return function(n,r){var o=nt(n)?Jm:Ym,i={};return o(n,e,Ty(r),i)}}var Hn=Ey(function(e,t,n){zm(e,n,t)}),Oy=0;function Ry(e){var t=++Oy;return Ha(e)+t}const ko=[{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}],Ay=[{id:"continuous"},...ko],ky=["coordsys","tool"];class Br{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)||"",un.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(un.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")]);try{await t.nova.api.controller.setDefaultMode(t.motionStream.controllerId,"MODE_CONTROL")}catch(s){console.error(s)}return new Br(t,r,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Po.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=Ct.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:"Joint"}]}get incrementOptions(){return Ay}get discreteIncrementOptions(){return ko}get incrementOptionsById(){return Hn(this.incrementOptions,t=>t.id)}get tabsById(){return Hn(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 Hn(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 Hn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:ko.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=Ry();this.lock(n);try{return await t()}finally{this.unlock(n)}}}const Py=Le.observer(({store:e})=>{var r;const{t}=dn.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(Gn,{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(Gn,{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(Gn,{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:ky.map(o=>b.jsx(j.MenuItem,{value:o,children:n(o)},o))}),b.jsxs(Gn,{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))]})]})}),$y=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 jy(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const _y=2;function sn(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function Ya(e,t){return e-t}function ws(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 Kn(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 hr(e,t,n){return(e-t)*100/(n-t)}function Iy(e,t,n){return(n-t)*e+t}function Ly(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 Ny(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Ly(t)))}function Cs({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ya)}function qn({sliderRef:e,activeIndex:t,setActive:n}){var o,i,s;const r=Qn(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 Yn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?jy(e,t):!1}const My={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}%`})}},Dy=e=>e;let Xn;function Ts(){return Xn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Xn=CSS.supports("touch-action","none"):Xn=!0),Xn}function Fy(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:p,orientation:f="horizontal",rootRef:v,scale:y=Dy,step:d=1,shiftStep:x=10,tabIndex:T,value:E}=e,k=M.useRef(void 0),[w,O]=M.useState(-1),[P,L]=M.useState(-1),[z,Y]=M.useState(!1),g=M.useRef(0),$=M.useRef(null),[F,N]=mu({controlled:E,default:n??l,name:"Slider"}),D=u&&((A,_,B)=>{const K=A.nativeEvent||A,ee=new K.constructor(K.type,K);Object.defineProperty(ee,"target",{writable:!0,value:{value:_,name:c}}),$.current=_,u(ee,_,B)}),ne=Array.isArray(F);let X=ne?F.slice().sort(Ya):[F];X=X.map(A=>A==null?l:an(A,l,a));const Pe=s===!0&&d!==null?[...Array(Math.floor((a-l)/d)+1)].map((A,_)=>({value:l+d*_})):s||[],G=Pe.map(A=>A.value),[xe,Oe]=M.useState(-1),Q=M.useRef(null),Ye=Ws(v,Q),zt=A=>_=>{var K;const B=Number(_.currentTarget.getAttribute("data-index"));mi(_.target)&&Oe(B),L(B),(K=A==null?void 0:A.onFocus)==null||K.call(A,_)},mn=A=>_=>{var B;mi(_.target)||Oe(-1),L(-1),(B=A==null?void 0:A.onBlur)==null||B.call(A,_)},Jt=(A,_)=>{const B=Number(A.currentTarget.getAttribute("data-index")),K=X[B],ee=G.indexOf(K);let V=_;if(Pe&&d==null){const fe=G[G.length-1];V>fe?V=fe:V<G[0]?V=G[0]:V=V<K?G[ee-1]:G[ee+1]}if(V=an(V,l,a),ne){o&&(V=an(V,X[B-1]||-1/0,X[B+1]||1/0));const fe=V;V=Cs({values:X,newValue:V,index:B});let Te=B;o||(Te=V.indexOf(fe)),qn({sliderRef:Q,activeIndex:Te})}N(V),Oe(B),D&&!Yn(V,F)&&D(A,V,B),p&&p(A,$.current??V)},At=A=>_=>{var B;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(_.key)){_.preventDefault();const K=Number(_.currentTarget.getAttribute("data-index")),ee=X[K];let V=null;if(d!=null){const fe=_.shiftKey?x:d;switch(_.key){case"ArrowUp":V=sn(ee,fe,1,l,a);break;case"ArrowRight":V=sn(ee,fe,i?-1:1,l,a);break;case"ArrowDown":V=sn(ee,fe,-1,l,a);break;case"ArrowLeft":V=sn(ee,fe,i?1:-1,l,a);break;case"PageUp":V=sn(ee,x,1,l,a);break;case"PageDown":V=sn(ee,x,-1,l,a);break;case"Home":V=l;break;case"End":V=a;break}}else if(Pe){const fe=G[G.length-1],Te=G.indexOf(ee),ge=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],$e=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ge.includes(_.key)?Te===0?V=G[0]:V=G[Te-1]:$e.includes(_.key)&&(Te===G.length-1?V=fe:V=G[Te+1])}V!=null&&Jt(_,V)}(B=A==null?void 0:A.onKeyDown)==null||B.call(A,_)};zs(()=>{var A;r&&Q.current.contains(document.activeElement)&&((A=document.activeElement)==null||A.blur())},[r]),r&&w!==-1&&O(-1),r&&xe!==-1&&Oe(-1);const pt=A=>_=>{var B;(B=A.onChange)==null||B.call(A,_),Jt(_,_.target.valueAsNumber)},Fe=M.useRef(void 0);let Ge=f;i&&f==="horizontal"&&(Ge+="-reverse");const Be=({finger:A,move:_=!1})=>{const{current:B}=Q,{width:K,height:ee,bottom:V,left:fe}=B.getBoundingClientRect();let Te;Ge.startsWith("vertical")?Te=(V-A.y)/ee:Te=(A.x-fe)/K,Ge.includes("-reverse")&&(Te=1-Te);let ge;if(ge=Iy(Te,l,a),d)ge=Ny(ge,d,l);else{const kt=ws(G,ge);ge=G[kt]}ge=an(ge,l,a);let $e=0;if(ne){_?$e=Fe.current:$e=ws(X,ge),o&&(ge=an(ge,X[$e-1]||-1/0,X[$e+1]||1/0));const kt=ge;ge=Cs({values:X,newValue:ge,index:$e}),o&&_||($e=ge.indexOf(kt),Fe.current=$e)}return{newValue:ge,activeIndex:$e}},ot=Kr(A=>{const _=Kn(A,k);if(!_)return;if(g.current+=1,A.type==="mousemove"&&A.buttons===0){Ne(A);return}const{newValue:B,activeIndex:K}=Be({finger:_,move:!0});qn({sliderRef:Q,activeIndex:K,setActive:O}),N(B),!z&&g.current>_y&&Y(!0),D&&!Yn(B,F)&&D(A,B,K)}),Ne=Kr(A=>{const _=Kn(A,k);if(Y(!1),!_)return;const{newValue:B}=Be({finger:_,move:!0});O(-1),A.type==="touchend"&&L(-1),p&&p(A,$.current??B),k.current=void 0,it()}),Ce=Kr(A=>{if(r)return;Ts()||A.preventDefault();const _=A.changedTouches[0];_!=null&&(k.current=_.identifier);const B=Kn(A,k);if(B!==!1){const{newValue:ee,activeIndex:V}=Be({finger:B});qn({sliderRef:Q,activeIndex:V,setActive:O}),N(ee),D&&!Yn(ee,F)&&D(A,ee,V)}g.current=0;const K=Qn(Q.current);K.addEventListener("touchmove",ot,{passive:!0}),K.addEventListener("touchend",Ne,{passive:!0})}),it=M.useCallback(()=>{const A=Qn(Q.current);A.removeEventListener("mousemove",ot),A.removeEventListener("mouseup",Ne),A.removeEventListener("touchmove",ot),A.removeEventListener("touchend",Ne)},[Ne,ot]);M.useEffect(()=>{const{current:A}=Q;return A.addEventListener("touchstart",Ce,{passive:Ts()}),()=>{A.removeEventListener("touchstart",Ce),it()}},[it,Ce]),M.useEffect(()=>{r&&it()},[r,it]);const gt=A=>_=>{var ee;if((ee=A.onMouseDown)==null||ee.call(A,_),r||_.defaultPrevented||_.button!==0)return;_.preventDefault();const B=Kn(_,k);if(B!==!1){const{newValue:V,activeIndex:fe}=Be({finger:B});qn({sliderRef:Q,activeIndex:fe,setActive:O}),N(V),D&&!Yn(V,F)&&D(_,V,fe)}g.current=0;const K=Qn(Q.current);K.addEventListener("mousemove",ot,{passive:!0}),K.addEventListener("mouseup",Ne)},Xe=hr(ne?X[0]:l,l,a),we=hr(X[X.length-1],l,a)-Xe,ht=(A={})=>{const _=er(A),B={onMouseDown:gt(_||{})},K={..._,...B};return{...A,ref:Ye,...K}},st=A=>_=>{var K;(K=A.onMouseOver)==null||K.call(A,_);const B=Number(_.currentTarget.getAttribute("data-index"));L(B)},Wt=A=>_=>{var B;(B=A.onMouseLeave)==null||B.call(A,_),L(-1)},Gt=(A={})=>{const _=er(A),B={onMouseOver:st(_||{}),onMouseLeave:Wt(_||{})};return{...A,..._,...B}},mt=A=>({pointerEvents:w!==-1&&w!==A?"none":void 0});let yt;return f==="vertical"&&(yt=i?"vertical-rl":"vertical-lr"),{active:w,axis:Ge,axisProps:My,dragging:z,focusedThumbIndex:xe,getHiddenInputProps:(A={})=>{const _=er(A),B={onChange:pt(_||{}),onFocus:zt(_||{}),onBlur:mn(_||{}),onKeyDown:At(_||{})},K={..._,...B};return{tabIndex:T,"aria-labelledby":t,"aria-orientation":f,"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,...A,...K,style:{...yu,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:yt}}},getRootProps:ht,getThumbProps:Gt,marks:Pe,open:P,range:ne,rootRef:Ye,trackLeap:we,trackOffset:Xe,values:X,getThumbStyle:mt}}function rr(e){return typeof e=="string"}const By=e=>!e||!rr(e);function Vy(e){return typeof e.main=="string"}function Uy(e,t=[]){if(!Vy(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Go(e=[]){return([,t])=>t&&Uy(t,e)}function zy(e){return Dn("MuiSlider",e)}const Je=Ms("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"]),Jy=e=>{const{open:t}=e;return{offset:tt(t&&Je.valueLabelOpen),circle:Je.valueLabelCircle,label:Je.valueLabelLabel}};function Xa(e){const{children:t,className:n,value:r}=e,o=Jy(e);return t?M.cloneElement(t,{className:tt(t.props.className)},b.jsxs(M.Fragment,{children:[t.props.children,b.jsx("span",{className:tt(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"&&(Xa.propTypes={children:h.element.isRequired,className:h.string,value:h.node});function Es(e){return e}const Wy=ut("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ae(n.color)}`],n.size!=="medium"&&t[`size${Ae(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ft(({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(Go()).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}}]}))),Gy=ut("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}}]}),Hy=ut("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(Ft(({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(Go()).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:Pn(e.palette[t].main,.62),borderColor:Pn(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:kn(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:kn(e.palette[t].main,.5)})}}}))]}))),Ky=ut("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Ae(n.color)}`],n.size!=="medium"&&t[`thumbSize${Ae(n.size)}`]]}})(Ft(({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(Go()).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 ${po(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 ${po(e.palette[t].main,.16)}`}}}}))]}))),Za=ut(Xa,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(Ft(({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"&&(Za.propTypes={children:h.element.isRequired,index:h.number.isRequired,open:h.bool.isRequired,value:h.node});const qy=ut("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Lo(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ft(({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}}]}))),Yy=ut("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Lo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(Ft(({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}}]}))),Xy=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${Ae(a)}`,l&&`size${Ae(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Ae(l)}`,a&&`thumbColor${Ae(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return _o(c,zy,s)},Zy=({children:e})=>e,Qa=M.forwardRef(function(t,n){const r=No({props:t,name:"MuiSlider"}),o=Cu(),{"aria-label":i,"aria-valuetext":s,"aria-labelledby":a,component:l="span",components:c={},componentsProps:u={},color:p="primary",classes:f,className:v,disableSwap:y=!1,disabled:d=!1,getAriaLabel:x,getAriaValueText:T,marks:E=!1,max:k=100,min:w=0,name:O,onChange:P,onChangeCommitted:L,orientation:z="horizontal",shiftStep:Y=10,size:g="medium",step:$=1,scale:F=Es,slotProps:N,slots:D,tabIndex:ne,track:X="normal",value:Pe,valueLabelDisplay:G="off",valueLabelFormat:xe=Es,...Oe}=r,Q={...r,isRtl:o,max:k,min:w,classes:f,disabled:d,disableSwap:y,orientation:z,marks:E,color:p,size:g,step:$,shiftStep:Y,scale:F,track:X,valueLabelDisplay:G,valueLabelFormat:xe},{axisProps:Ye,getRootProps:zt,getHiddenInputProps:mn,getThumbProps:Jt,open:At,active:pt,axis:Fe,focusedThumbIndex:Ge,range:Be,dragging:ot,marks:Ne,values:Ce,trackOffset:it,trackLeap:gt,getThumbStyle:Xe}=Fy({...Q,rootRef:n});Q.marked=Ne.length>0&&Ne.some(ce=>ce.label),Q.dragging=ot,Q.focusedThumbIndex=Ge;const we=Xy(Q),ht=(D==null?void 0:D.root)??c.Root??Wy,st=(D==null?void 0:D.rail)??c.Rail??Gy,Wt=(D==null?void 0:D.track)??c.Track??Hy,Gt=(D==null?void 0:D.thumb)??c.Thumb??Ky,mt=(D==null?void 0:D.valueLabel)??c.ValueLabel??Za,yt=(D==null?void 0:D.mark)??c.Mark??qy,Ht=(D==null?void 0:D.markLabel)??c.MarkLabel??Yy,A=(D==null?void 0:D.input)??c.Input??"input",_=(N==null?void 0:N.root)??u.root,B=(N==null?void 0:N.rail)??u.rail,K=(N==null?void 0:N.track)??u.track,ee=(N==null?void 0:N.thumb)??u.thumb,V=(N==null?void 0:N.valueLabel)??u.valueLabel,fe=(N==null?void 0:N.mark)??u.mark,Te=(N==null?void 0:N.markLabel)??u.markLabel,ge=(N==null?void 0:N.input)??u.input,$e=vt({elementType:ht,getSlotProps:zt,externalSlotProps:_,externalForwardedProps:Oe,additionalProps:{...By(ht)&&{as:l}},ownerState:{...Q,..._==null?void 0:_.ownerState},className:[we.root,v]}),kt=vt({elementType:st,externalSlotProps:B,ownerState:Q,className:we.rail}),Vr=vt({elementType:Wt,externalSlotProps:K,additionalProps:{style:{...Ye[Fe].offset(it),...Ye[Fe].leap(gt)}},ownerState:{...Q,...K==null?void 0:K.ownerState},className:we.track}),yn=vt({elementType:Gt,getSlotProps:Jt,externalSlotProps:ee,ownerState:{...Q,...ee==null?void 0:ee.ownerState},className:we.thumb}),Ur=vt({elementType:mt,externalSlotProps:V,ownerState:{...Q,...V==null?void 0:V.ownerState},className:we.valueLabel}),Pt=vt({elementType:yt,externalSlotProps:fe,ownerState:Q,className:we.mark}),Kt=vt({elementType:Ht,externalSlotProps:Te,ownerState:Q,className:we.markLabel}),bt=vt({elementType:A,getSlotProps:mn,externalSlotProps:ge,ownerState:Q});return b.jsxs(ht,{...$e,children:[b.jsx(st,{...kt}),b.jsx(Wt,{...Vr}),Ne.filter(ce=>ce.value>=w&&ce.value<=k).map((ce,he)=>{const qt=hr(ce.value,w,k),Yt=Ye[Fe].offset(qt);let Ve;return X===!1?Ve=Ce.includes(ce.value):Ve=X==="normal"&&(Be?ce.value>=Ce[0]&&ce.value<=Ce[Ce.length-1]:ce.value<=Ce[0])||X==="inverted"&&(Be?ce.value<=Ce[0]||ce.value>=Ce[Ce.length-1]:ce.value>=Ce[0]),b.jsxs(M.Fragment,{children:[b.jsx(yt,{"data-index":he,...Pt,...!rr(yt)&&{markActive:Ve},style:{...Yt,...Pt.style},className:tt(Pt.className,Ve&&we.markActive)}),ce.label!=null?b.jsx(Ht,{"aria-hidden":!0,"data-index":he,...Kt,...!rr(Ht)&&{markLabelActive:Ve},style:{...Yt,...Kt.style},className:tt(we.markLabel,Kt.className,Ve&&we.markLabelActive),children:ce.label}):null]},he)}),Ce.map((ce,he)=>{const qt=hr(ce,w,k),Yt=Ye[Fe].offset(qt),Ve=G==="off"?Zy:mt;return b.jsx(Ve,{...!rr(Ve)&&{valueLabelFormat:xe,valueLabelDisplay:G,value:typeof xe=="function"?xe(F(ce),he):xe,index:he,open:At===he||pt===he||G==="on",disabled:d},...Ur,children:b.jsx(Gt,{"data-index":he,...yn,className:tt(we.thumb,yn.className,pt===he&&we.active,Ge===he&&we.focusVisible),style:{...Yt,...Xe(he),...yn.style},children:b.jsx(A,{"data-index":he,"aria-label":x?x(he):i,"aria-valuenow":F(ce),"aria-labelledby":a,"aria-valuetext":T?T(F(ce),he):s,value:Ce[he],...bt})})},he)})]})});process.env.NODE_ENV!=="production"&&(Qa.propTypes={"aria-label":hi(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":hi(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 Qy="[object Number]";function eb(e){return typeof e=="number"||Nt(e)&&Bt(e)==Qy}const el=Le.observer(e=>{j.useTheme();function t(n,r){r===e.velocity||!eb(r)||e.onVelocityChange(r)}return b.jsxs(j.Stack,{direction:"row",gap:2,children:[b.jsx(Qa,{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 tl=Le.observer(({store:e})=>{const{t}=dn.useTranslation(),n=Le.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(el,{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)"}}})})}),tb=Le.observer(({store:e,children:t})=>{var p,f,v,y,d,x,T,E,k;const{t:n}=dn.useTranslation(),r=j.useTheme();function o(w,O){(O==="translate"||O==="rotate")&&e.setSelectedCartesianMotionType(O)}na(()=>[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(w,O){const P=await e.activate(),L=P.motionStream.rapidlyChangingMotionState.tcp_pose,z=P.motionStream.rapidlyChangingMotionState.state.joint_position;L&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:w.axis,direction:w.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:L,currentJoints:z,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:w.axis,direction:w.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:O.mm}:{type:"rotate",distanceRads:Ct.degreesToRadians(O.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function s(w){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return i(w,e.activeDiscreteIncrement);w.motionType==="translate"?await e.jogger.startTCPTranslation({axis:w.axis,direction:w.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:w.axis,direction:w.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}const l=[{id:"x",colors:(v=(f=(p=r.componentsExt)==null?void 0:p.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.X,icon:b.jsx(sg,{})},{id:"y",colors:(x=(d=(y=r.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:d.Axis)==null?void 0:x.Y,icon:b.jsx(lg,{})},{id:"z",colors:(k=(E=(T=r.componentsExt)==null?void 0:T.JoggingCartesian)==null?void 0:E.Axis)==null?void 0:k.Z,icon:b.jsx(ug,{})}];function c(w){return n("General.mm.variable",{amount:w.toFixed(1)})}function u(w){return n("General.degree.variable",{amount:Ct.radiansToDegrees(w).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(Py,{store:e}),b.jsx(tl,{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($y,{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(w=>{var O;return b.jsx(mo,{colors:w.colors,disabled:e.isLocked,activeJoggingDirection:((O=e.incrementJogInProgress)==null?void 0:O.axis)===w.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[w.icon,b.jsx(j.Typography,{sx:{fontSize:"24px",color:r.palette.text.primary},children:w.id.toUpperCase()})]}),getDisplayedValue:()=>{var P;return c(((P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:P.position[w.id])||0)},startJogging:P=>s({axis:w.id,motionType:"translate",direction:P}),stopJogging:a},w.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(w=>{var O;return b.jsx(mo,{colors:w.colors,disabled:e.isLocked,activeJoggingDirection:((O=e.incrementJogInProgress)==null?void 0:O.axis)===w.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(dg,{}),b.jsx(j.Typography,{sx:{fontSize:"24px",color:r.palette.text.primary},children:w.id.toUpperCase()})]}),getDisplayedValue:()=>{var P,L;return u(((L=(P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:P.orientation)==null?void 0:L[w.id])||0)},startJogging:P=>s({axis:w.id,motionType:"rotate",direction:P}),stopJogging:a},w.id)})]})}),b.jsx(za,{store:e}),t&&b.jsx(j.Divider,{}),t]})}),nb=Le.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(tl,{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?Ct.radiansToDegrees(i.lower_limit):void 0,a=(i==null?void 0:i.upper_limit)!==void 0?Ct.radiansToDegrees(i.upper_limit):void 0;return b.jsx(sa,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:a,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Ct.radiansToDegrees(c):void 0},startJogging:c=>n({joint:o.index,direction:c}),stopJogging:r},`joint-${o.index}`)})})}),b.jsx(za,{store:e}),t&&b.jsx(j.Divider,{}),t]})}),rb=Fn(Le.observer(e=>{const t=Po.isString(e.nova)?new Ct.NovaClient({instanceUrl:e.nova}):e.nova,n=Le.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function r(){un.runInAction(()=>{n.loadingError=null,n.joggingStore=null});try{let o=e.store;if(!o){const i=await t.connectJogger(e.motionGroupId);o=await Br.loadFor(i)}un.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(ob,{store:n.joggingStore,children:e.children}):b.jsx(Vo,{message:"Loading jogging",error:n.loadingError})})})),ob=Le.observer(({store:e,children:t})=>{function n(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(tb,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(nb,{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()})]})}),nl=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})})})}),ib=Le.observer(({motionStream:e})=>{const t=H.useRef(null);function n(){const r=e.rapidlyChangingMotionState.tcp_pose;return r?Ct.poseToWandelscriptString(r):""}return pn(()=>{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(nl,{value:n(),ref:t})})}),sb=Le.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 pn(()=>{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(nl,{value:n(),ref:t})})});function ab(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function lb({baseUrl:e=ab(),...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 cb=Array(6).fill(2*Math.PI),Os="0.0.0-semantically-released";function Ko(e){let t=Os;return Os.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function ub(e){function t(n){return n.children.length===0?[n]:[n,...n.children.flatMap(r=>t(r))]}return t(e).filter(n=>ol(n))}function rl(e){return e.name.endsWith("_FLG")}function ol(e){return/_J[0-9]+$/.test(e.name)}function fb(e,t){let n;const r=[];function o(s){return s.length===6}function i(s){if(rl(s)){if(n)throw Error(`Found multiple flange groups in robot model ${t}; first ${n.name} then ${s.name}. Only one _FLG group is allowed.`);n=s}ol(s)&&r.push(s),s.children.map(i)}if(i(e.scene),!o(r))throw Error(`Expected to find 6 joint groups in robot model ${t} with names _J01, _J02 etc, found ${r.length}. Only 6-joint robot models are currently supported.`);if(!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 il({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:n,children:r}){lo.Globals.assign({frameLoop:"always"});const o=H.useRef([]),i=H.useRef([]),{invalidate:s}=Cl.useThree();function a(f){f&&(i.current=ub(f),c(),s())}function l(f){o.current=f,p.start(Object.assign({},o.current))}function c(){const f=i.current.map((v,y)=>u[y].get());if(n)n(i.current,f);else for(const[v,y]of i.current.entries()){const d=t[v],x=d.theta||0,T=d.reverse_rotation_direction?-1:1;y.rotation.y=T*f[v]+x}}ta(()=>{const f=e.state.joint_position.joints.filter(v=>v!==void 0);requestAnimationFrame(()=>l(f))});const[u,p]=lo.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),s()},onResolve:()=>{c()}}));return b.jsx("group",{ref:a,children:r})}const Rs="line",As="mesh";function db({rapidlyChangingMotionState:e,dhParameters:t,...n}){const r=new lt.Matrix4;function o(a,l){const c=new lt.Vector3,u=new lt.Quaternion,p=new lt.Vector3;r.decompose(c,u,p);const f=c.clone(),v=new lt.Matrix4().makeRotationY(a.theta+l*(a.reverse_rotation_direction?-1:1)).multiply(new lt.Matrix4().makeTranslation(0,a.d/1e3,0)).multiply(new lt.Matrix4().makeTranslation(a.a/1e3,0,0)).multiply(new lt.Matrix4().makeRotationX(a.alpha));return r.multiply(v),r.decompose(c,u,p),{a:f,b:c}}function i(a,l,c,u){if(!t)return;const p=t[a];if(!p)return;const{a:f,b:v}=o(p,u);l.geometry.setPositions([f.toArray(),v.toArray()].flat()),c.position.set(v.x,v.y,v.z)}function s(a,l){r.identity(),a.forEach((c,u)=>{i(u,c.getObjectByName(Rs),c.getObjectByName(As),l[u])})}return b.jsx(b.Fragment,{children:b.jsx(il,{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),p=`dhrobot_J0${l}`;return b.jsxs("group",{name:p,children:[b.jsx(He.Line,{name:Rs,points:[c,u],color:"white",lineWidth:5}),b.jsxs("mesh",{name:As,position:u,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},p)})]})})})}const pb=console.warn;function gb(){return H.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&pb(e)}},[]),b.jsx(b.Fragment,{})}function hb(e){return e.type==="Mesh"}function mb({modelURL:e,flangeRef:t,postModelRender:n,...r}){const{gltf:o}=fb(He.useGLTF(e),e.split("/").pop()||e),i=H.useCallback(a=>{a&&n&&n()},[e]);function s(a){return hb(a)?b.jsx("mesh",{name:a.name,geometry:a.geometry,material:a.material,position:a.position,rotation:a.rotation},a.uuid):b.jsx(lo.animated.group,{name:a.name,position:a.position,rotation:a.rotation,ref:rl(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 yb=(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)},bb=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},sl=Fn(({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(f=>{c(f)},[]);H.useEffect(()=>{l&&(s?yb(l,s):bb(l))},[l,s]);const p=b.jsx(db,{rapidlyChangingMotionState:e,dhParameters:n,...a});return b.jsxs(Al.ErrorBoundary,{fallback:p,onError:f=>{if(f.message.includes("404: Not Found"))console.error(f);else throw f},children:[b.jsx(H.Suspense,{fallback:p,children:b.jsx("group",{ref:u,children:b.jsx(il,{rapidlyChangingMotionState:e,dhParameters:n,children:b.jsx(mb,{modelURL:r(t),postModelRender:i,flangeRef:o,...a})})})}),b.jsx(gb,{})]})});function vb({connectedMotionGroup:e,getModel:t=Ko,flangeRef:n,transparentColor:r,...o}){return e.dhParameters?b.jsx(sl,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:n,transparentColor:r,...o}):null}const xb=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}}]}}),Sb=H.forwardRef((e,t)=>b.jsx(xb,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),wb={$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"},Cb=H.lazy(()=>import("@monaco-editor/react"));let ao=null;async function Tb(){if(!ao){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);ao={shiki:await e({langs:[wb],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return ao}const Eb=Fn(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 Tb();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(Cb,{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 al(){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"}}}]},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 Ob(){const e=al();return e.palette.mode="light",e}function Rb(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?al():Ob();return Xs(n,e)}exports.JoggingCartesianAxisControl=mo;exports.JoggingJointRotationControl=sa;exports.JoggingPanel=rb;exports.JoggingStore=Br;exports.LoadingCover=Vo;exports.LoadingErrorMessage=ja;exports.NoMotionGroupModal=lb;exports.PoseCartesianValues=ib;exports.PoseJointValues=sb;exports.PresetEnvironment=$l;exports.Robot=vb;exports.SafetyZonesRenderer=Il;exports.SelectableFab=Sb;exports.SupportedRobot=sl;exports.TrajectoryRenderer=Ll;exports.VelocitySlider=el;exports.VelocitySliderLabel=Ho;exports.WandelscriptEditor=Eb;exports.createNovaMuiTheme=Rb;exports.defaultAxisConfig=cb;exports.defaultGetModel=Ko;exports.useAnimationFrame=pn;exports.useAutorun=ta;exports.useMounted=kr;exports.useReaction=na;
|
|
84
93
|
//# sourceMappingURL=index.cjs.map
|