@wandelbots/wandelbots-js-react-components 1.13.1 → 1.13.2

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/index.cjs CHANGED
@@ -80,5 +80,5 @@ const theme2 = createTheme({ palette: {
80
80
  } });`:Kr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Gs(_,"light",R,n),Gs(_,"dark",C,n),_.contrastText||(_.contrastText=h(_.main)),_},b={dark:Do,light:Vs};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(A({common:A({},Yr),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:C0,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},b[t]),o)}const k0=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function $0(e){return Math.round(e*1e5)/1e5}const zs={textTransform:"uppercase"},Ws='"Roboto", "Helvetica", "Arial", sans-serif';function N0(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Ws,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,f=Ue(r,k0);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,y=h||(v=>`${v/u*b}rem`),_=(v,R,C,k,j)=>A({fontFamily:n,fontWeight:v,fontSize:y(R),lineHeight:C},n===Ws?{letterSpacing:`${$0(k/R)}em`}:{},j,d),g={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,zs),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,zs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(A({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),f,{clone:!1})}const F0=.2,D0=.14,U0=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${F0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${D0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${U0})`].join(",")}const B0=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],J0=["duration","easing","delay"],V0={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)"},G0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hs(e){return`${Math.round(e)}ms`}function z0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function W0(e){const t=A({},V0,e.easing),r=A({},G0,e.duration);return A({getAutoHeightDuration:z0,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=Ue(a,J0);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",h=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(`
81
81
  `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Hs(i)} ${l} ${typeof c=="string"?c:Hs(c)}`).join(",")}},e,{easing:t,duration:r})}const H0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},K0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function la(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ue(e,K0);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.":Kr(18));const l=L0(n),c=ln(e);let u=tt(c,{mixins:h0(c.breakpoints,r),palette:l,shadows:B0.slice(),typography:N0(l,a),transitions:W0(o),zIndex:A({},H0)});if(u=tt(u,i),u=t.reduce((d,h)=>tt(d,h),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(f,b)=>{let y;for(y in f){const _=f[y];if(d.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=cn("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
82
82
  `))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const b=u.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&h(b,f)})}return u.unstable_sxConfig=A({},an,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return sn({sx:h,theme:this})},u}const X0=la(),q0="$$material";function Ea(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Y0=e=>Ea(e)&&e!=="classes",Ct=Zm({themeId:q0,defaultTheme:X0,rootShouldForwardProp:Y0});process.env.NODE_ENV!=="production"&&(m.node,m.object.isRequired);function La(e){return km(e)}const _r=Vm({createStyledComponent:Ct("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>La({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:m.node,component:m.elementType,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),useFlexGap:m.bool});const ca=en(He.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{wr(()=>{const d=r(),h=l.current;h&&(h.textContent=d)});const l=q.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(_r,{height:"72px",direction:"row",...i,children:[s.jsx(L.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(L.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(L.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}));var ka={},Uo={};function Z0(e){return cn("MuiSvgIcon",e)}Cl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Q0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ep=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Oa(o,Z0,n)},tp=Ct("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,h,f,b,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:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),zn=N.forwardRef(function(t,r){const n=La({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,b=Ue(n,Q0),y=N.isValidElement(o)&&o.type==="svg",_=A({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),g={};d||(g.viewBox=f);const v=ep(_);return s.jsxs(tp,A({as:l,className:gt(v.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,h?s.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(zn.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});zn.muiName="SvgIcon";function rp(e,t){function r(n,o){return s.jsx(zn,A({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=zn.muiName,N.memo(N.forwardRef(r))}const np={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(`
83
- `)),Rl.configure(e)}},op=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:um,createSvgIcon:rp,debounce:dm,deprecatedPropType:fm,isMuiElement:hm,ownerDocument:yr,ownerWindow:mm,requirePropFactory:pm,setRef:Tl,unstable_ClassNameGenerator:np,unstable_useEnhancedEffect:Aa,unstable_useId:ym,unsupportedProp:_m,useControlled:Ml,useEventCallback:Tn,useForkRef:Vn,useIsFocusVisible:Il},Symbol.toStringTag,{value:"Module"})),ap=jt(op);var Ks;function Bl(){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=ap}(Uo)),Uo}var sp=mo;Object.defineProperty(ka,"__esModule",{value:!0});var Jl=ka.default=void 0,ip=sp(Bl()),lp=s;Jl=ka.default=(0,ip.default)((0,lp.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var $a={},cp=mo;Object.defineProperty($a,"__esModule",{value:!0});var Vl=$a.default=void 0,up=cp(Bl()),dp=s;Vl=$a.default=(0,up.default)((0,dp.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Xt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gl=typeof global=="object"&&global&&global.Object===Object&&global,fp=typeof self=="object"&&self&&self.Object===Object&&self,_t=Gl||fp||Function("return this")(),Bo=function(){return _t.Date.now()},hp=/\s/;function mp(e){for(var t=e.length;t--&&hp.test(e.charAt(t)););return t}var pp=/^\s+/;function gp(e){return e&&e.slice(0,mp(e)+1).replace(pp,"")}var Nt=_t.Symbol,zl=Object.prototype,yp=zl.hasOwnProperty,_p=zl.toString,Br=Nt?Nt.toStringTag:void 0;function bp(e){var t=yp.call(e,Br),r=e[Br];try{e[Br]=void 0;var n=!0}catch{}var o=_p.call(e);return n&&(t?e[Br]=r:delete e[Br]),o}var Sp=Object.prototype,xp=Sp.toString;function vp(e){return xp.call(e)}var wp="[object Null]",Rp="[object Undefined]",Xs=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Rp:wp:Xs&&Xs in Object(e)?bp(e):vp(e)}function qt(e){return e!=null&&typeof e=="object"}var jp="[object Symbol]";function po(e){return typeof e=="symbol"||qt(e)&&Zt(e)==jp}var qs=NaN,Cp=/^[-+]0x[0-9a-f]+$/i,Ap=/^0b[01]+$/i,Pp=/^0o[0-7]+$/i,Op=parseInt;function Ys(e){if(typeof e=="number")return e;if(po(e))return qs;if(Xt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gp(e);var r=Ap.test(e);return r||Pp.test(e)?Op(e.slice(2),r?2:8):Cp.test(e)?qs:+e}var Tp="Expected a function",Mp=Math.max,Ip=Math.min;function Ep(e,t,r){var n,o,a,i,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(Tp);t=Ys(t)||0,Xt(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Mp(Ys(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(v,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return h?Ip(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||h&&z>=a}function v(){var P=Bo();if(g(P))return R(P);l=setTimeout(v,_(P))}function R(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R(Bo())}function j(){var P=Bo(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(v,t),b(c)}return l===void 0&&(l=setTimeout(v,t)),i}return j.cancel=C,j.flush=k,j}var Lp="Expected a function";function kp(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Lp);return Xt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ep(e,t,{leading:n,maxWait:t,trailing:o})}const Wl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=q.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=kp(()=>{u(o())},50);wr(h);function f(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function y(v){d.stopJogging()}function _(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const C=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Jl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Vl,{})})]})})),$p=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Np=q.forwardRef($p),Fp=({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"})),Dp=q.forwardRef(Fp),Up=({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"})),Bp=q.forwardRef(Up),Jp=({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"})),Vp=q.forwardRef(Jp),Gp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),zp=q.forwardRef(Gp),Wp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:17,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467"})),Hp=q.forwardRef(Wp),Kp=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(zp,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(Hp,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function Xp(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const qp=2;function Hl(e,t){return e-t}function Zs(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function _n(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 Yp(e,t,r){return(r-t)*e+t}function Zp(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 Qp(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Zp(t)))}function Qs({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Hl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.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"?Xp(e,t):!1}const eg={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}%`})}},tg=e=>e;let xn;function ei(){return xn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xn=CSS.supports("touch-action","none"):xn=!0),xn}function rg(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:h,orientation:f="horizontal",rootRef:b,scale:y=tg,step:_=1,shiftStep:g=10,tabIndex:v,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,X]=Ml({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,E,F)=>{const W=T.nativeEvent||T,Z=new W.constructor(W.type,W);Object.defineProperty(Z,"target",{writable:!0,value:{value:E,name:u}}),d(Z,E,F)}),Y=Array.isArray(D);let K=Y?D.slice().sort(Hl):[D];K=K.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,E)=>({value:c+_*E})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ee,ref:ot}=Il(),[bt,Ke]=N.useState(-1),Re=N.useRef(),Ot=Vn(ot,Re),ct=Vn(b,Ot),Xe=T=>E=>{var F;const W=Number(E.currentTarget.getAttribute("data-index"));Ee(E),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,E)},Be=T=>E=>{var F;Ae(E),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,E)},ut=(T,E)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Z=ce.indexOf(W);let H=E;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Z-1]:ce[Z+1]}if(H=hr(H,c,l),Y){o&&(H=hr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Qs({values:K,newValue:H,index:F});let qe=F;o||(qe=H.indexOf(Ve)),bn({sliderRef:Re,activeIndex:qe})}X(H),Ke(F),G&&!Sn(H,D)&&G(T,H,F),h&&h(T,H)},dt=T=>E=>{var F;if(_!==null){const W=Number(E.currentTarget.getAttribute("data-index")),Z=K[W];let H=null;(E.key==="ArrowLeft"||E.key==="ArrowDown")&&E.shiftKey||E.key==="PageDown"?H=Math.max(Z-g,c):((E.key==="ArrowRight"||E.key==="ArrowUp")&&E.shiftKey||E.key==="PageUp")&&(H=Math.min(Z+g,l)),H!==null&&(ut(E,H),E.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,E)};Aa(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>E=>{var F;(F=T.onChange)==null||F.call(T,E),ut(E,E.target.valueAsNumber)},St=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const M=({finger:T,move:E=!1})=>{const{current:F}=Re,{width:W,height:Z,bottom:H,left:Ve}=F.getBoundingClientRect();let qe;Je.indexOf("vertical")===0?qe=(H-T.y)/Z:qe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(qe=1-qe);let te;if(te=Yp(qe,c,l),_)te=Qp(te,_,c);else{const It=Zs(ce,te);te=ce[It]}te=hr(te,c,l);let $e=0;if(Y){E?$e=St.current:$e=Zs(K,te),o&&(te=hr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const It=te;te=Qs({values:K,newValue:te,index:$e}),o&&E||($e=te.indexOf(It),St.current=$e)}return{newValue:te,activeIndex:$e}},ee=Tn(T=>{const E=_n(T,C);if(!E)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=M({finger:E,move:!0});bn({sliderRef:Re,activeIndex:W,setActive:j}),X(F),!z&&ue.current>qp&&le(!0),G&&!Sn(F,D)&&G(T,F,W)}),he=Tn(T=>{const E=_n(T,C);if(le(!1),!E)return;const{newValue:F}=M({finger:E,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,ke()}),Le=Tn(T=>{if(n)return;ei()||T.preventDefault();const E=T.changedTouches[0];E!=null&&(C.current=E.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Z,activeIndex:H}=M({finger:F});bn({sliderRef:Re,activeIndex:H,setActive:j}),X(Z),G&&!Sn(Z,D)&&G(T,Z,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:ei()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const Tt=T=>E=>{var F;if((F=T.onMouseDown)==null||F.call(T,E),n||E.defaultPrevented||E.button!==0)return;E.preventDefault();const W=_n(E,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=M({finger:W});bn({sliderRef:Re,activeIndex:Ve,setActive:j}),X(H),G&&!Sn(H,D)&&G(E,H,Ve)}ue.current=0;const Z=yr(Re.current);Z.addEventListener("mousemove",ee,{passive:!0}),Z.addEventListener("mouseup",he)},je=Wn(Y?K[0]:c,c,l),Mt=Wn(K[K.length-1],c,l)-je,Bt=(T={})=>{const E=Mn(T),F={onMouseDown:Tt(E||{})},W=A({},E,F);return A({},T,{ref:ct},W)},Ar=T=>E=>{var F;(F=T.onMouseOver)==null||F.call(T,E);const W=Number(E.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>E=>{var F;(F=T.onMouseLeave)==null||F.call(T,E),O(-1)};return{active:k,axis:Je,axisProps:eg,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var E;const F=Mn(T),W={onChange:Ut(F||{}),onFocus:Xe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Z=A({},F,W);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(E=e.step)!=null?E:void 0,disabled:n},T,Z,{style:A({},Cm,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const E=Mn(T),F={onMouseOver:Ar(E||{}),onMouseLeave:Pr(E||{})};return A({},T,E,F)},marks:we,open:P,range:Y,rootRef:ct,trackLeap:Mt,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const ng=e=>!e||!Gr(e);function og(e){return cn("MuiSlider",e)}const et=Cl("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"]),ag=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Kl(e){const{children:t,className:r,value:n}=e,o=ag(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Kl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const sg=["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 ti(e){return e}const ig=Ct("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(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"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.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}}]}}),lg=Ct("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}}]}),cg=Ct("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:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:ia(e.palette[r].main,.62),borderColor:ia(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:sa(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:sa(e.palette[r].main,.5)})))}))]}}),ug=Ct("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(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%)"},[`&.${et.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, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Us(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Us(e.palette[r].main,.16)}`})}}))]}}),dg=Ct(Kl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({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%"},[`&.${et.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%"},[`&.${et.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"}}]})),fg=Ct("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ea(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}}]})),hg=Ct("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ea(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},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}}]})),mg=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Oa(u,og,i)},pg=({children:e})=>e,Xl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,f,b,y,_,g,v,R,C,k,j,P,O,z,le,ue;const D=La({props:t,name:"MuiSlider"}),X=Im(),{"aria-label":G,"aria-valuetext":Y,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ee,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Ot,marks:ct=!1,max:Xe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:St=1,scale:Je=ti,slotProps:M,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=ti}=D,Tt=Ue(D,sg),je=A({},D,{isRtl:X,max:Xe,min:Be,classes:Ee,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:St,shiftStep:dt,scale:Je,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Mt,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:E,dragging:F,marks:W,values:Z,trackOffset:H,trackLeap:Ve,getThumbStyle:qe}=rg(A({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=mg(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:ig,It=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:lg,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:cg,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:ug,xt=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?h:dg,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:fg,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:hg,Mr=(v=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?v:"input",Ir=(C=M==null?void 0:M.root)!=null?C:Q.root,dn=(k=M==null?void 0:M.rail)!=null?k:Q.rail,Er=(j=M==null?void 0:M.track)!=null?j:Q.track,nr=(P=M==null?void 0:M.thumb)!=null?P:Q.thumb,or=(O=M==null?void 0:M.valueLabel)!=null?O:Q.valueLabel,So=(z=M==null?void 0:M.mark)!=null?z:Q.mark,xo=(le=M==null?void 0:M.markLabel)!=null?le:Q.markLabel,fn=(ue=M==null?void 0:M.input)!=null?ue:Q.input,hn=Lt({elementType:$e,getSlotProps:Bt,externalSlotProps:Ir,externalForwardedProps:Tt,additionalProps:A({},ng($e)&&{as:we}),ownerState:A({},je,Ir==null?void 0:Ir.ownerState),className:[te.root,ot]}),vo=Lt({elementType:It,externalSlotProps:dn,ownerState:je,className:te.rail}),wo=Lt({elementType:rr,externalSlotProps:Er,additionalProps:{style:A({},Mt[at].offset(H),Mt[at].leap(Ve))},ownerState:A({},je,Er==null?void 0:Er.ownerState),className:te.track}),Lr=Lt({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},je,nr==null?void 0:nr.ownerState),className:te.thumb}),Ro=Lt({elementType:xt,externalSlotProps:or,ownerState:A({},je,or==null?void 0:or.ownerState),className:te.valueLabel}),p=Lt({elementType:Jt,externalSlotProps:So,ownerState:je,className:te.mark}),w=Lt({elementType:Vt,externalSlotProps:xo,ownerState:je,className:te.markLabel}),I=Lt({elementType:Mr,getSlotProps:Ar,externalSlotProps:fn,ownerState:je});return s.jsxs($e,A({},hn,{children:[s.jsx(It,A({},vo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=Xe).map(($,U)=>{const re=Wn($.value,Be,Xe),V=Mt[at].offset(re);let B;return he===!1?B=Z.indexOf($.value)!==-1:B=he==="normal"&&(E?$.value>=Z[0]&&$.value<=Z[Z.length-1]:$.value<=Z[0])||he==="inverted"&&(E?$.value<=Z[0]||$.value>=Z[Z.length-1]:$.value>=Z[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Z.map(($,U)=>{const re=Wn($,Be,Xe),V=Mt[at].offset(re),B=Le==="off"?pg:xt;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Je($),U):ke,index:U,open:Or===U||tr===U||Le==="on",disabled:Ke},Ro,{children:s.jsx(Tr,A({"data-index":U},Lr,{className:gt(te.thumb,Lr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,qe(U),Lr.style),children:s.jsx(Mr,A({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Ot?Ot(Je($),U):Y,value:Z[U]},I))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Xl.propTypes={"aria-label":Is(m.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":m.string,"aria-valuetext":Is(m.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:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var gg="[object Number]";function yg(e){return typeof e=="number"||qt(e)&&Zt(e)==gg}const ql=He.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!yg(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Xl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Yl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(ql,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),Zl=q.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),_g=He.observer(({store:e})=>{const t=q.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?$t.poseToWandelscriptString(n):""}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})});function bg(){this.__data__=[],this.size=0}function Ql(e,t){return e===t||e!==e&&t!==t}function go(e,t){for(var r=e.length;r--;)if(Ql(e[r][0],t))return r;return-1}var Sg=Array.prototype,xg=Sg.splice;function vg(e){var t=this.__data__,r=go(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xg.call(t,r,1),--this.size,!0}function wg(e){var t=this.__data__,r=go(t,e);return r<0?void 0:t[r][1]}function Rg(e){return go(this.__data__,e)>-1}function jg(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 At(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])}}At.prototype.clear=bg;At.prototype.delete=vg;At.prototype.get=wg;At.prototype.has=Rg;At.prototype.set=jg;function Cg(){this.__data__=new At,this.size=0}function Ag(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Pg(e){return this.__data__.get(e)}function Og(e){return this.__data__.has(e)}var Tg="[object AsyncFunction]",Mg="[object Function]",Ig="[object GeneratorFunction]",Eg="[object Proxy]";function ec(e){if(!Xt(e))return!1;var t=Zt(e);return t==Mg||t==Ig||t==Tg||t==Eg}var Jo=_t["__core-js_shared__"],ri=function(){var e=/[^.]+$/.exec(Jo&&Jo.keys&&Jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Lg(e){return!!ri&&ri in e}var kg=Function.prototype,$g=kg.toString;function Qt(e){if(e!=null){try{return $g.call(e)}catch{}try{return e+""}catch{}}return""}var Ng=/[\\^$.*+?()[\]{}|]/g,Fg=/^\[object .+?Constructor\]$/,Dg=Function.prototype,Ug=Object.prototype,Bg=Dg.toString,Jg=Ug.hasOwnProperty,Vg=RegExp("^"+Bg.call(Jg).replace(Ng,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gg(e){if(!Xt(e)||Lg(e))return!1;var t=ec(e)?Vg:Fg;return t.test(Qt(e))}function zg(e,t){return e==null?void 0:e[t]}function er(e,t){var r=zg(e,t);return Gg(r)?r:void 0}var Zr=er(_t,"Map"),Qr=er(Object,"create");function Wg(){this.__data__=Qr?Qr(null):{},this.size=0}function Hg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kg="__lodash_hash_undefined__",Xg=Object.prototype,qg=Xg.hasOwnProperty;function Yg(e){var t=this.__data__;if(Qr){var r=t[e];return r===Kg?void 0:r}return qg.call(t,e)?t[e]:void 0}var Zg=Object.prototype,Qg=Zg.hasOwnProperty;function ey(e){var t=this.__data__;return Qr?t[e]!==void 0:Qg.call(t,e)}var ty="__lodash_hash_undefined__";function ry(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qr&&t===void 0?ty:t,this}function Yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yt.prototype.clear=Wg;Yt.prototype.delete=Hg;Yt.prototype.get=Yg;Yt.prototype.has=ey;Yt.prototype.set=ry;function ny(){this.size=0,this.__data__={hash:new Yt,map:new(Zr||At),string:new Yt}}function oy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yo(e,t){var r=e.__data__;return oy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ay(e){var t=yo(this,e).delete(e);return this.size-=t?1:0,t}function sy(e){return yo(this,e).get(e)}function iy(e){return yo(this,e).has(e)}function ly(e,t){var r=yo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(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])}}Pt.prototype.clear=ny;Pt.prototype.delete=ay;Pt.prototype.get=sy;Pt.prototype.has=iy;Pt.prototype.set=ly;var cy=200;function uy(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!Zr||n.length<cy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(e,t),this.size=r.size,this}function Rt(e){var t=this.__data__=new At(e);this.size=t.size}Rt.prototype.clear=Cg;Rt.prototype.delete=Ag;Rt.prototype.get=Pg;Rt.prototype.has=Og;Rt.prototype.set=uy;var dy="__lodash_hash_undefined__";function fy(e){return this.__data__.set(e,dy),this}function hy(e){return this.__data__.has(e)}function Hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Hn.prototype.add=Hn.prototype.push=fy;Hn.prototype.has=hy;function my(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 py(e,t){return e.has(t)}var gy=1,yy=2;function tc(e,t,r,n,o,a){var i=r&gy,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,b=r&yy?new Hn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!my(t,function(v,R){if(!py(b,R)&&(y===v||o(y,v,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var ni=_t.Uint8Array;function _y(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function by(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Sy=1,xy=2,vy="[object Boolean]",wy="[object Date]",Ry="[object Error]",jy="[object Map]",Cy="[object Number]",Ay="[object RegExp]",Py="[object Set]",Oy="[object String]",Ty="[object Symbol]",My="[object ArrayBuffer]",Iy="[object DataView]",oi=Nt?Nt.prototype:void 0,Vo=oi?oi.valueOf:void 0;function Ey(e,t,r,n,o,a,i){switch(r){case Iy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case My:return!(e.byteLength!=t.byteLength||!a(new ni(e),new ni(t)));case vy:case wy:case Cy:return Ql(+e,+t);case Ry:return e.name==t.name&&e.message==t.message;case Ay:case Oy:return e==t+"";case jy:var l=_y;case Py:var c=n&Sy;if(l||(l=by),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=xy,i.set(e,t);var d=tc(l(e),l(t),n,o,a,i);return i.delete(e),d;case Ty:if(Vo)return Vo.call(e)==Vo.call(t)}return!1}function Ly(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var yt=Array.isArray;function ky(e,t,r){var n=t(e);return yt(e)?n:Ly(n,r(e))}function $y(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Ny(){return[]}var Fy=Object.prototype,Dy=Fy.propertyIsEnumerable,ai=Object.getOwnPropertySymbols,Uy=ai?function(e){return e==null?[]:(e=Object(e),$y(ai(e),function(t){return Dy.call(e,t)}))}:Ny;function By(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Jy="[object Arguments]";function si(e){return qt(e)&&Zt(e)==Jy}var rc=Object.prototype,Vy=rc.hasOwnProperty,Gy=rc.propertyIsEnumerable,nc=si(function(){return arguments}())?si:function(e){return qt(e)&&Vy.call(e,"callee")&&!Gy.call(e,"callee")};function zy(){return!1}var oc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ii=oc&&typeof module=="object"&&module&&!module.nodeType&&module,Wy=ii&&ii.exports===oc,li=Wy?_t.Buffer:void 0,Hy=li?li.isBuffer:void 0,ua=Hy||zy,Ky=9007199254740991,Xy=/^(?:0|[1-9]\d*)$/;function ac(e,t){var r=typeof e;return t=t??Ky,!!t&&(r=="number"||r!="symbol"&&Xy.test(e))&&e>-1&&e%1==0&&e<t}var qy=9007199254740991;function Na(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qy}var Yy="[object Arguments]",Zy="[object Array]",Qy="[object Boolean]",e1="[object Date]",t1="[object Error]",r1="[object Function]",n1="[object Map]",o1="[object Number]",a1="[object Object]",s1="[object RegExp]",i1="[object Set]",l1="[object String]",c1="[object WeakMap]",u1="[object ArrayBuffer]",d1="[object DataView]",f1="[object Float32Array]",h1="[object Float64Array]",m1="[object Int8Array]",p1="[object Int16Array]",g1="[object Int32Array]",y1="[object Uint8Array]",_1="[object Uint8ClampedArray]",b1="[object Uint16Array]",S1="[object Uint32Array]",de={};de[f1]=de[h1]=de[m1]=de[p1]=de[g1]=de[y1]=de[_1]=de[b1]=de[S1]=!0;de[Yy]=de[Zy]=de[u1]=de[Qy]=de[d1]=de[e1]=de[t1]=de[r1]=de[n1]=de[o1]=de[a1]=de[s1]=de[i1]=de[l1]=de[c1]=!1;function x1(e){return qt(e)&&Na(e.length)&&!!de[Zt(e)]}function v1(e){return function(t){return e(t)}}var sc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=sc&&typeof module=="object"&&module&&!module.nodeType&&module,w1=zr&&zr.exports===sc,Go=w1&&Gl.process,ci=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Go&&Go.binding&&Go.binding("util")}catch{}}(),ui=ci&&ci.isTypedArray,ic=ui?v1(ui):x1,R1=Object.prototype,j1=R1.hasOwnProperty;function C1(e,t){var r=yt(e),n=!r&&nc(e),o=!r&&!n&&ua(e),a=!r&&!n&&!o&&ic(e),i=r||n||o||a,l=i?By(e.length,String):[],c=l.length;for(var u in e)j1.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ac(u,c)))&&l.push(u);return l}var A1=Object.prototype;function P1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||A1;return e===r}function O1(e,t){return function(r){return e(t(r))}}var T1=O1(Object.keys,Object),M1=Object.prototype,I1=M1.hasOwnProperty;function E1(e){if(!P1(e))return T1(e);var t=[];for(var r in Object(e))I1.call(e,r)&&r!="constructor"&&t.push(r);return t}function lc(e){return e!=null&&Na(e.length)&&!ec(e)}function Fa(e){return lc(e)?C1(e):E1(e)}function di(e){return ky(e,Fa,Uy)}var L1=1,k1=Object.prototype,$1=k1.hasOwnProperty;function N1(e,t,r,n,o,a){var i=r&L1,l=di(e),c=l.length,u=di(t),d=u.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var f=l[h];if(!(i?f in t:$1.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<c;){f=l[h];var v=e[f],R=t[f];if(n)var C=i?n(R,v,f,t,e,a):n(v,R,f,e,t,a);if(!(C===void 0?v===R||o(v,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var da=er(_t,"DataView"),fa=er(_t,"Promise"),ha=er(_t,"Set"),ma=er(_t,"WeakMap"),fi="[object Map]",F1="[object Object]",hi="[object Promise]",mi="[object Set]",pi="[object WeakMap]",gi="[object DataView]",D1=Qt(da),U1=Qt(Zr),B1=Qt(fa),J1=Qt(ha),V1=Qt(ma),kt=Zt;(da&&kt(new da(new ArrayBuffer(1)))!=gi||Zr&&kt(new Zr)!=fi||fa&&kt(fa.resolve())!=hi||ha&&kt(new ha)!=mi||ma&&kt(new ma)!=pi)&&(kt=function(e){var t=Zt(e),r=t==F1?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case D1:return gi;case U1:return fi;case B1:return hi;case J1:return mi;case V1:return pi}return t});var G1=1,yi="[object Arguments]",_i="[object Array]",vn="[object Object]",z1=Object.prototype,bi=z1.hasOwnProperty;function W1(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?_i:kt(e),u=l?_i:kt(t);c=c==yi?vn:c,u=u==yi?vn:u;var d=c==vn,h=u==vn,f=c==u;if(f&&ua(e)){if(!ua(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new Rt),i||ic(e)?tc(e,t,r,n,o,a):Ey(e,t,c,r,n,o,a);if(!(r&G1)){var b=d&&bi.call(e,"__wrapped__"),y=h&&bi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new Rt),o(_,g,r,n,a)}}return f?(a||(a=new Rt),N1(e,t,r,n,o,a)):!1}function _o(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:W1(e,t,r,n,_o,o)}function H1(e,t){return _o(e,t)}const K1=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=q.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);wr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;H1(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},X1=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}nl(()=>[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}),q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.selectedCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:$t.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(h,e.selectedDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(Dp,{})},{id:"y",color:"#42A705",icon:s.jsx(Bp,{})},{id:"z",color:"#0075FF",icon:s.jsx(Vp,{})}];function u(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:$t.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(_g,{store:e}),s.jsx(Kp,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>s.jsx(ca,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&c.map(h=>s.jsx(ca,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Np,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Yl,{store:e}),s.jsx(K1,{store:e})]})}),q1=He.observer(({store:e})=>{const t=q.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})}),Y1=He.observer(({store:e})=>{q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(q1,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?$t.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?$t.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(Wl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?$t.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Yl,{store:e})]})});var Si=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Z1(e,t,r){t=="__proto__"&&Si?Si(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Q1(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function e_(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var t_=e_();function r_(e,t){return e&&t_(e,t,Fa)}function n_(e,t){return function(r,n){if(r==null)return r;if(!lc(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var o_=n_(r_);function a_(e,t,r,n){return o_(e,function(o,a,i){t(n,o,r(o),i)}),n}var s_=1,i_=2;function l_(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Rt,h;if(!(h===void 0?_o(u,c,s_|i_,n,d):h))return!1}}return!0}function cc(e){return e===e&&!Xt(e)}function c_(e){for(var t=Fa(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,cc(o)]}return t}function uc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function u_(e){var t=c_(e);return t.length==1&&t[0][2]?uc(t[0][0],t[0][1]):function(r){return r===e||l_(r,e,t)}}var d_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f_=/^\w*$/;function Da(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||po(e)?!0:f_.test(e)||!d_.test(e)||t!=null&&e in Object(t)}var h_="Expected a function";function Ua(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(h_);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ua.Cache||Pt),r}Ua.Cache=Pt;var m_=500;function p_(e){var t=Ua(e,function(n){return r.size===m_&&r.clear(),n}),r=t.cache;return t}var g_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y_=/\\(\\)?/g,__=p_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(g_,function(r,n,o,a){t.push(o?a.replace(y_,"$1"):n||r)}),t});function b_(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 S_=1/0,xi=Nt?Nt.prototype:void 0,vi=xi?xi.toString:void 0;function dc(e){if(typeof e=="string")return e;if(yt(e))return b_(e,dc)+"";if(po(e))return vi?vi.call(e):"";var t=e+"";return t=="0"&&1/e==-S_?"-0":t}function fc(e){return e==null?"":dc(e)}function hc(e,t){return yt(e)?e:Da(e,t)?[e]:__(fc(e))}var x_=1/0;function bo(e){if(typeof e=="string"||po(e))return e;var t=e+"";return t=="0"&&1/e==-x_?"-0":t}function mc(e,t){t=hc(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 v_(e,t,r){var n=e==null?void 0:mc(e,t);return n===void 0?r:n}function w_(e,t){return e!=null&&t in Object(e)}function R_(e,t,r){t=hc(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=bo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Na(o)&&ac(i,o)&&(yt(e)||nc(e)))}function j_(e,t){return e!=null&&R_(e,t,w_)}var C_=1,A_=2;function P_(e,t){return Da(e)&&cc(t)?uc(bo(e),t):function(r){var n=v_(r,e);return n===void 0&&n===t?j_(r,e):_o(t,n,C_|A_)}}function O_(e){return e}function T_(e){return function(t){return t==null?void 0:t[e]}}function M_(e){return function(t){return mc(t,e)}}function I_(e){return Da(e)?T_(bo(e)):M_(e)}function E_(e){return typeof e=="function"?e:e==null?O_:typeof e=="object"?yt(e)?P_(e[0],e[1]):u_(e):I_(e)}function L_(e,t){return function(r,n){var o=yt(r)?Q1:a_,a={};return o(r,e,E_(n),a)}}var wn=L_(function(e,t,r){Z1(e,r,t)}),k_=0;function $_(e){var t=++k_;return fc(e)+t}const pa=[{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}],N_=[{id:"continuous"},...pa];class Ba{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Ba(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=$t.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 N_}get discreteIncrementOptions(){return pa}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(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 wn(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 wn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return pa.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){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}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=$_();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const F_=en(He.observer(e=>{var a,i,l,c;const t=Pc.isString(e.nova)?new $t.NovaClient({instanceUrl:e.nova}):e.nova,r=He.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){br.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const u=await t.connectJogger(e.motionGroupId),d=await Ba.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(q.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),q.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:h,selectedDiscreteIncrement:f}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:h};f&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(wi,{children:s.jsx(Qi,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(wi,{children:s.jsxs(L.Stack,{flexGrow:1,children:[s.jsx(L.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(L.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(L.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(X1,{store:o}),o.currentTab.id==="joint"&&s.jsx(Y1,{store:o}),e.children]})]})})}));function wi({children:e}){return s.jsx(L.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(L.Paper,{sx:{height:"100%"},children:e})})}function D_(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function U_({baseUrl:e=D_(),...t}){return s.jsxs(L.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:[s.jsx(L.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(L.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(L.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(L.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(L.DialogActions,{children:s.jsxs(L.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(L.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(L.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const B_=Array(6).fill(2*Math.PI),ht={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},J_={mode:"dark",colors:{primary:ht.skyblue500,textDefault:ht.white,textSubtle:ht.midnightgray,background:{default:ht.darkishblue,panel:ht.darkestblue}}},V_={mode:"light",colors:{primary:ht.skyblue500,textDefault:ht.darkishblue,textSubtle:ht.midnightgray,background:{default:ht.skyblue500,panel:ht.white}}};function G_(e){var o,a,i,l;let t=!0;((o=e.palette)==null?void 0:o.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((l=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:l.matches)));const r=t?J_:V_,n=la({palette:{mode:r.mode,primary:{main:r.colors.primary},background:{default:r.colors.background.default,paper:r.colors.background.panel}},typography:{allVariants:{color:r.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:t?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:t?"#3d4455":void 0,color:t?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":t?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:t?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":t?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:r});return e?la(n,e):n}exports.JoggingCartesianAxisControl=ca;exports.JoggingJointRotationControl=Wl;exports.JoggingPanel=F_;exports.NoMotionGroupModal=U_;exports.PresetEnvironment=sf;exports.Robot=af;exports.SafetyZonesRenderer=uf;exports.SupportedRobot=ol;exports.VelocitySlider=ql;exports.WandelscriptEditor=kd;exports.createNovaMuiTheme=G_;exports.defaultAxisConfig=B_;exports.defaultGetModel=Sa;exports.useAnimationFrame=wr;exports.useAutorun=rl;exports.useMounted=eo;exports.useReaction=nl;
83
+ `)),Rl.configure(e)}},op=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:um,createSvgIcon:rp,debounce:dm,deprecatedPropType:fm,isMuiElement:hm,ownerDocument:yr,ownerWindow:mm,requirePropFactory:pm,setRef:Tl,unstable_ClassNameGenerator:np,unstable_useEnhancedEffect:Aa,unstable_useId:ym,unsupportedProp:_m,useControlled:Ml,useEventCallback:Tn,useForkRef:Vn,useIsFocusVisible:Il},Symbol.toStringTag,{value:"Module"})),ap=jt(op);var Ks;function Bl(){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=ap}(Uo)),Uo}var sp=mo;Object.defineProperty(ka,"__esModule",{value:!0});var Jl=ka.default=void 0,ip=sp(Bl()),lp=s;Jl=ka.default=(0,ip.default)((0,lp.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var $a={},cp=mo;Object.defineProperty($a,"__esModule",{value:!0});var Vl=$a.default=void 0,up=cp(Bl()),dp=s;Vl=$a.default=(0,up.default)((0,dp.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Xt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gl=typeof global=="object"&&global&&global.Object===Object&&global,fp=typeof self=="object"&&self&&self.Object===Object&&self,_t=Gl||fp||Function("return this")(),Bo=function(){return _t.Date.now()},hp=/\s/;function mp(e){for(var t=e.length;t--&&hp.test(e.charAt(t)););return t}var pp=/^\s+/;function gp(e){return e&&e.slice(0,mp(e)+1).replace(pp,"")}var Nt=_t.Symbol,zl=Object.prototype,yp=zl.hasOwnProperty,_p=zl.toString,Br=Nt?Nt.toStringTag:void 0;function bp(e){var t=yp.call(e,Br),r=e[Br];try{e[Br]=void 0;var n=!0}catch{}var o=_p.call(e);return n&&(t?e[Br]=r:delete e[Br]),o}var Sp=Object.prototype,xp=Sp.toString;function vp(e){return xp.call(e)}var wp="[object Null]",Rp="[object Undefined]",Xs=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Rp:wp:Xs&&Xs in Object(e)?bp(e):vp(e)}function qt(e){return e!=null&&typeof e=="object"}var jp="[object Symbol]";function po(e){return typeof e=="symbol"||qt(e)&&Zt(e)==jp}var qs=NaN,Cp=/^[-+]0x[0-9a-f]+$/i,Ap=/^0b[01]+$/i,Pp=/^0o[0-7]+$/i,Op=parseInt;function Ys(e){if(typeof e=="number")return e;if(po(e))return qs;if(Xt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gp(e);var r=Ap.test(e);return r||Pp.test(e)?Op(e.slice(2),r?2:8):Cp.test(e)?qs:+e}var Tp="Expected a function",Mp=Math.max,Ip=Math.min;function Ep(e,t,r){var n,o,a,i,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(Tp);t=Ys(t)||0,Xt(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Mp(Ys(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(v,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return h?Ip(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||h&&z>=a}function v(){var P=Bo();if(g(P))return R(P);l=setTimeout(v,_(P))}function R(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R(Bo())}function j(){var P=Bo(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(v,t),b(c)}return l===void 0&&(l=setTimeout(v,t)),i}return j.cancel=C,j.flush=k,j}var Lp="Expected a function";function kp(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Lp);return Xt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ep(e,t,{leading:n,maxWait:t,trailing:o})}const Wl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=q.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=kp(()=>{u(o())},50);wr(h);function f(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function y(v){d.stopJogging()}function _(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const C=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Jl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Vl,{})})]})})),$p=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Np=q.forwardRef($p),Fp=({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"})),Dp=q.forwardRef(Fp),Up=({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"})),Bp=q.forwardRef(Up),Jp=({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"})),Vp=q.forwardRef(Jp),Gp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),zp=q.forwardRef(Gp),Wp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:17,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467"})),Hp=q.forwardRef(Wp),Kp=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(zp,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(Hp,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function Xp(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const qp=2;function Hl(e,t){return e-t}function Zs(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function _n(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 Yp(e,t,r){return(r-t)*e+t}function Zp(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 Qp(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Zp(t)))}function Qs({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Hl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.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"?Xp(e,t):!1}const eg={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}%`})}},tg=e=>e;let xn;function ei(){return xn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xn=CSS.supports("touch-action","none"):xn=!0),xn}function rg(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:h,orientation:f="horizontal",rootRef:b,scale:y=tg,step:_=1,shiftStep:g=10,tabIndex:v,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,X]=Ml({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,E,F)=>{const W=T.nativeEvent||T,Z=new W.constructor(W.type,W);Object.defineProperty(Z,"target",{writable:!0,value:{value:E,name:u}}),d(Z,E,F)}),Y=Array.isArray(D);let K=Y?D.slice().sort(Hl):[D];K=K.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,E)=>({value:c+_*E})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ee,ref:ot}=Il(),[bt,Ke]=N.useState(-1),Re=N.useRef(),Ot=Vn(ot,Re),ct=Vn(b,Ot),Xe=T=>E=>{var F;const W=Number(E.currentTarget.getAttribute("data-index"));Ee(E),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,E)},Be=T=>E=>{var F;Ae(E),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,E)},ut=(T,E)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Z=ce.indexOf(W);let H=E;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Z-1]:ce[Z+1]}if(H=hr(H,c,l),Y){o&&(H=hr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Qs({values:K,newValue:H,index:F});let qe=F;o||(qe=H.indexOf(Ve)),bn({sliderRef:Re,activeIndex:qe})}X(H),Ke(F),G&&!Sn(H,D)&&G(T,H,F),h&&h(T,H)},dt=T=>E=>{var F;if(_!==null){const W=Number(E.currentTarget.getAttribute("data-index")),Z=K[W];let H=null;(E.key==="ArrowLeft"||E.key==="ArrowDown")&&E.shiftKey||E.key==="PageDown"?H=Math.max(Z-g,c):((E.key==="ArrowRight"||E.key==="ArrowUp")&&E.shiftKey||E.key==="PageUp")&&(H=Math.min(Z+g,l)),H!==null&&(ut(E,H),E.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,E)};Aa(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>E=>{var F;(F=T.onChange)==null||F.call(T,E),ut(E,E.target.valueAsNumber)},St=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const M=({finger:T,move:E=!1})=>{const{current:F}=Re,{width:W,height:Z,bottom:H,left:Ve}=F.getBoundingClientRect();let qe;Je.indexOf("vertical")===0?qe=(H-T.y)/Z:qe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(qe=1-qe);let te;if(te=Yp(qe,c,l),_)te=Qp(te,_,c);else{const It=Zs(ce,te);te=ce[It]}te=hr(te,c,l);let $e=0;if(Y){E?$e=St.current:$e=Zs(K,te),o&&(te=hr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const It=te;te=Qs({values:K,newValue:te,index:$e}),o&&E||($e=te.indexOf(It),St.current=$e)}return{newValue:te,activeIndex:$e}},ee=Tn(T=>{const E=_n(T,C);if(!E)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=M({finger:E,move:!0});bn({sliderRef:Re,activeIndex:W,setActive:j}),X(F),!z&&ue.current>qp&&le(!0),G&&!Sn(F,D)&&G(T,F,W)}),he=Tn(T=>{const E=_n(T,C);if(le(!1),!E)return;const{newValue:F}=M({finger:E,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,ke()}),Le=Tn(T=>{if(n)return;ei()||T.preventDefault();const E=T.changedTouches[0];E!=null&&(C.current=E.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Z,activeIndex:H}=M({finger:F});bn({sliderRef:Re,activeIndex:H,setActive:j}),X(Z),G&&!Sn(Z,D)&&G(T,Z,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:ei()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const Tt=T=>E=>{var F;if((F=T.onMouseDown)==null||F.call(T,E),n||E.defaultPrevented||E.button!==0)return;E.preventDefault();const W=_n(E,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=M({finger:W});bn({sliderRef:Re,activeIndex:Ve,setActive:j}),X(H),G&&!Sn(H,D)&&G(E,H,Ve)}ue.current=0;const Z=yr(Re.current);Z.addEventListener("mousemove",ee,{passive:!0}),Z.addEventListener("mouseup",he)},je=Wn(Y?K[0]:c,c,l),Mt=Wn(K[K.length-1],c,l)-je,Bt=(T={})=>{const E=Mn(T),F={onMouseDown:Tt(E||{})},W=A({},E,F);return A({},T,{ref:ct},W)},Ar=T=>E=>{var F;(F=T.onMouseOver)==null||F.call(T,E);const W=Number(E.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>E=>{var F;(F=T.onMouseLeave)==null||F.call(T,E),O(-1)};return{active:k,axis:Je,axisProps:eg,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var E;const F=Mn(T),W={onChange:Ut(F||{}),onFocus:Xe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Z=A({},F,W);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(E=e.step)!=null?E:void 0,disabled:n},T,Z,{style:A({},Cm,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const E=Mn(T),F={onMouseOver:Ar(E||{}),onMouseLeave:Pr(E||{})};return A({},T,E,F)},marks:we,open:P,range:Y,rootRef:ct,trackLeap:Mt,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const ng=e=>!e||!Gr(e);function og(e){return cn("MuiSlider",e)}const et=Cl("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"]),ag=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Kl(e){const{children:t,className:r,value:n}=e,o=ag(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Kl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const sg=["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 ti(e){return e}const ig=Ct("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(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"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.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}}]}}),lg=Ct("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}}]}),cg=Ct("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:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:ia(e.palette[r].main,.62),borderColor:ia(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:sa(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:sa(e.palette[r].main,.5)})))}))]}}),ug=Ct("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(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%)"},[`&.${et.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, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Us(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Us(e.palette[r].main,.16)}`})}}))]}}),dg=Ct(Kl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({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%"},[`&.${et.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%"},[`&.${et.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"}}]})),fg=Ct("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ea(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}}]})),hg=Ct("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ea(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},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}}]})),mg=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Oa(u,og,i)},pg=({children:e})=>e,Xl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,f,b,y,_,g,v,R,C,k,j,P,O,z,le,ue;const D=La({props:t,name:"MuiSlider"}),X=Im(),{"aria-label":G,"aria-valuetext":Y,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ee,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Ot,marks:ct=!1,max:Xe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:St=1,scale:Je=ti,slotProps:M,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=ti}=D,Tt=Ue(D,sg),je=A({},D,{isRtl:X,max:Xe,min:Be,classes:Ee,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:St,shiftStep:dt,scale:Je,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Mt,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:E,dragging:F,marks:W,values:Z,trackOffset:H,trackLeap:Ve,getThumbStyle:qe}=rg(A({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=mg(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:ig,It=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:lg,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:cg,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:ug,xt=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?h:dg,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:fg,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:hg,Mr=(v=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?v:"input",Ir=(C=M==null?void 0:M.root)!=null?C:Q.root,dn=(k=M==null?void 0:M.rail)!=null?k:Q.rail,Er=(j=M==null?void 0:M.track)!=null?j:Q.track,nr=(P=M==null?void 0:M.thumb)!=null?P:Q.thumb,or=(O=M==null?void 0:M.valueLabel)!=null?O:Q.valueLabel,So=(z=M==null?void 0:M.mark)!=null?z:Q.mark,xo=(le=M==null?void 0:M.markLabel)!=null?le:Q.markLabel,fn=(ue=M==null?void 0:M.input)!=null?ue:Q.input,hn=Lt({elementType:$e,getSlotProps:Bt,externalSlotProps:Ir,externalForwardedProps:Tt,additionalProps:A({},ng($e)&&{as:we}),ownerState:A({},je,Ir==null?void 0:Ir.ownerState),className:[te.root,ot]}),vo=Lt({elementType:It,externalSlotProps:dn,ownerState:je,className:te.rail}),wo=Lt({elementType:rr,externalSlotProps:Er,additionalProps:{style:A({},Mt[at].offset(H),Mt[at].leap(Ve))},ownerState:A({},je,Er==null?void 0:Er.ownerState),className:te.track}),Lr=Lt({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},je,nr==null?void 0:nr.ownerState),className:te.thumb}),Ro=Lt({elementType:xt,externalSlotProps:or,ownerState:A({},je,or==null?void 0:or.ownerState),className:te.valueLabel}),p=Lt({elementType:Jt,externalSlotProps:So,ownerState:je,className:te.mark}),w=Lt({elementType:Vt,externalSlotProps:xo,ownerState:je,className:te.markLabel}),I=Lt({elementType:Mr,getSlotProps:Ar,externalSlotProps:fn,ownerState:je});return s.jsxs($e,A({},hn,{children:[s.jsx(It,A({},vo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=Xe).map(($,U)=>{const re=Wn($.value,Be,Xe),V=Mt[at].offset(re);let B;return he===!1?B=Z.indexOf($.value)!==-1:B=he==="normal"&&(E?$.value>=Z[0]&&$.value<=Z[Z.length-1]:$.value<=Z[0])||he==="inverted"&&(E?$.value<=Z[0]||$.value>=Z[Z.length-1]:$.value>=Z[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Z.map(($,U)=>{const re=Wn($,Be,Xe),V=Mt[at].offset(re),B=Le==="off"?pg:xt;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Je($),U):ke,index:U,open:Or===U||tr===U||Le==="on",disabled:Ke},Ro,{children:s.jsx(Tr,A({"data-index":U},Lr,{className:gt(te.thumb,Lr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,qe(U),Lr.style),children:s.jsx(Mr,A({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Ot?Ot(Je($),U):Y,value:Z[U]},I))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Xl.propTypes={"aria-label":Is(m.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":m.string,"aria-valuetext":Is(m.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:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var gg="[object Number]";function yg(e){return typeof e=="number"||qt(e)&&Zt(e)==gg}const ql=He.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!yg(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Xl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Yl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(ql,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),Zl=q.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),_g=He.observer(({store:e})=>{const t=q.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?$t.poseToWandelscriptString(n):""}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})});function bg(){this.__data__=[],this.size=0}function Ql(e,t){return e===t||e!==e&&t!==t}function go(e,t){for(var r=e.length;r--;)if(Ql(e[r][0],t))return r;return-1}var Sg=Array.prototype,xg=Sg.splice;function vg(e){var t=this.__data__,r=go(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xg.call(t,r,1),--this.size,!0}function wg(e){var t=this.__data__,r=go(t,e);return r<0?void 0:t[r][1]}function Rg(e){return go(this.__data__,e)>-1}function jg(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 At(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])}}At.prototype.clear=bg;At.prototype.delete=vg;At.prototype.get=wg;At.prototype.has=Rg;At.prototype.set=jg;function Cg(){this.__data__=new At,this.size=0}function Ag(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Pg(e){return this.__data__.get(e)}function Og(e){return this.__data__.has(e)}var Tg="[object AsyncFunction]",Mg="[object Function]",Ig="[object GeneratorFunction]",Eg="[object Proxy]";function ec(e){if(!Xt(e))return!1;var t=Zt(e);return t==Mg||t==Ig||t==Tg||t==Eg}var Jo=_t["__core-js_shared__"],ri=function(){var e=/[^.]+$/.exec(Jo&&Jo.keys&&Jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Lg(e){return!!ri&&ri in e}var kg=Function.prototype,$g=kg.toString;function Qt(e){if(e!=null){try{return $g.call(e)}catch{}try{return e+""}catch{}}return""}var Ng=/[\\^$.*+?()[\]{}|]/g,Fg=/^\[object .+?Constructor\]$/,Dg=Function.prototype,Ug=Object.prototype,Bg=Dg.toString,Jg=Ug.hasOwnProperty,Vg=RegExp("^"+Bg.call(Jg).replace(Ng,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gg(e){if(!Xt(e)||Lg(e))return!1;var t=ec(e)?Vg:Fg;return t.test(Qt(e))}function zg(e,t){return e==null?void 0:e[t]}function er(e,t){var r=zg(e,t);return Gg(r)?r:void 0}var Zr=er(_t,"Map"),Qr=er(Object,"create");function Wg(){this.__data__=Qr?Qr(null):{},this.size=0}function Hg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kg="__lodash_hash_undefined__",Xg=Object.prototype,qg=Xg.hasOwnProperty;function Yg(e){var t=this.__data__;if(Qr){var r=t[e];return r===Kg?void 0:r}return qg.call(t,e)?t[e]:void 0}var Zg=Object.prototype,Qg=Zg.hasOwnProperty;function ey(e){var t=this.__data__;return Qr?t[e]!==void 0:Qg.call(t,e)}var ty="__lodash_hash_undefined__";function ry(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qr&&t===void 0?ty:t,this}function Yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yt.prototype.clear=Wg;Yt.prototype.delete=Hg;Yt.prototype.get=Yg;Yt.prototype.has=ey;Yt.prototype.set=ry;function ny(){this.size=0,this.__data__={hash:new Yt,map:new(Zr||At),string:new Yt}}function oy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yo(e,t){var r=e.__data__;return oy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ay(e){var t=yo(this,e).delete(e);return this.size-=t?1:0,t}function sy(e){return yo(this,e).get(e)}function iy(e){return yo(this,e).has(e)}function ly(e,t){var r=yo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(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])}}Pt.prototype.clear=ny;Pt.prototype.delete=ay;Pt.prototype.get=sy;Pt.prototype.has=iy;Pt.prototype.set=ly;var cy=200;function uy(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!Zr||n.length<cy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(e,t),this.size=r.size,this}function Rt(e){var t=this.__data__=new At(e);this.size=t.size}Rt.prototype.clear=Cg;Rt.prototype.delete=Ag;Rt.prototype.get=Pg;Rt.prototype.has=Og;Rt.prototype.set=uy;var dy="__lodash_hash_undefined__";function fy(e){return this.__data__.set(e,dy),this}function hy(e){return this.__data__.has(e)}function Hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Hn.prototype.add=Hn.prototype.push=fy;Hn.prototype.has=hy;function my(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 py(e,t){return e.has(t)}var gy=1,yy=2;function tc(e,t,r,n,o,a){var i=r&gy,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,b=r&yy?new Hn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!my(t,function(v,R){if(!py(b,R)&&(y===v||o(y,v,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var ni=_t.Uint8Array;function _y(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function by(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Sy=1,xy=2,vy="[object Boolean]",wy="[object Date]",Ry="[object Error]",jy="[object Map]",Cy="[object Number]",Ay="[object RegExp]",Py="[object Set]",Oy="[object String]",Ty="[object Symbol]",My="[object ArrayBuffer]",Iy="[object DataView]",oi=Nt?Nt.prototype:void 0,Vo=oi?oi.valueOf:void 0;function Ey(e,t,r,n,o,a,i){switch(r){case Iy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case My:return!(e.byteLength!=t.byteLength||!a(new ni(e),new ni(t)));case vy:case wy:case Cy:return Ql(+e,+t);case Ry:return e.name==t.name&&e.message==t.message;case Ay:case Oy:return e==t+"";case jy:var l=_y;case Py:var c=n&Sy;if(l||(l=by),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=xy,i.set(e,t);var d=tc(l(e),l(t),n,o,a,i);return i.delete(e),d;case Ty:if(Vo)return Vo.call(e)==Vo.call(t)}return!1}function Ly(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var yt=Array.isArray;function ky(e,t,r){var n=t(e);return yt(e)?n:Ly(n,r(e))}function $y(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Ny(){return[]}var Fy=Object.prototype,Dy=Fy.propertyIsEnumerable,ai=Object.getOwnPropertySymbols,Uy=ai?function(e){return e==null?[]:(e=Object(e),$y(ai(e),function(t){return Dy.call(e,t)}))}:Ny;function By(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Jy="[object Arguments]";function si(e){return qt(e)&&Zt(e)==Jy}var rc=Object.prototype,Vy=rc.hasOwnProperty,Gy=rc.propertyIsEnumerable,nc=si(function(){return arguments}())?si:function(e){return qt(e)&&Vy.call(e,"callee")&&!Gy.call(e,"callee")};function zy(){return!1}var oc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ii=oc&&typeof module=="object"&&module&&!module.nodeType&&module,Wy=ii&&ii.exports===oc,li=Wy?_t.Buffer:void 0,Hy=li?li.isBuffer:void 0,ua=Hy||zy,Ky=9007199254740991,Xy=/^(?:0|[1-9]\d*)$/;function ac(e,t){var r=typeof e;return t=t??Ky,!!t&&(r=="number"||r!="symbol"&&Xy.test(e))&&e>-1&&e%1==0&&e<t}var qy=9007199254740991;function Na(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qy}var Yy="[object Arguments]",Zy="[object Array]",Qy="[object Boolean]",e1="[object Date]",t1="[object Error]",r1="[object Function]",n1="[object Map]",o1="[object Number]",a1="[object Object]",s1="[object RegExp]",i1="[object Set]",l1="[object String]",c1="[object WeakMap]",u1="[object ArrayBuffer]",d1="[object DataView]",f1="[object Float32Array]",h1="[object Float64Array]",m1="[object Int8Array]",p1="[object Int16Array]",g1="[object Int32Array]",y1="[object Uint8Array]",_1="[object Uint8ClampedArray]",b1="[object Uint16Array]",S1="[object Uint32Array]",de={};de[f1]=de[h1]=de[m1]=de[p1]=de[g1]=de[y1]=de[_1]=de[b1]=de[S1]=!0;de[Yy]=de[Zy]=de[u1]=de[Qy]=de[d1]=de[e1]=de[t1]=de[r1]=de[n1]=de[o1]=de[a1]=de[s1]=de[i1]=de[l1]=de[c1]=!1;function x1(e){return qt(e)&&Na(e.length)&&!!de[Zt(e)]}function v1(e){return function(t){return e(t)}}var sc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=sc&&typeof module=="object"&&module&&!module.nodeType&&module,w1=zr&&zr.exports===sc,Go=w1&&Gl.process,ci=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Go&&Go.binding&&Go.binding("util")}catch{}}(),ui=ci&&ci.isTypedArray,ic=ui?v1(ui):x1,R1=Object.prototype,j1=R1.hasOwnProperty;function C1(e,t){var r=yt(e),n=!r&&nc(e),o=!r&&!n&&ua(e),a=!r&&!n&&!o&&ic(e),i=r||n||o||a,l=i?By(e.length,String):[],c=l.length;for(var u in e)j1.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ac(u,c)))&&l.push(u);return l}var A1=Object.prototype;function P1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||A1;return e===r}function O1(e,t){return function(r){return e(t(r))}}var T1=O1(Object.keys,Object),M1=Object.prototype,I1=M1.hasOwnProperty;function E1(e){if(!P1(e))return T1(e);var t=[];for(var r in Object(e))I1.call(e,r)&&r!="constructor"&&t.push(r);return t}function lc(e){return e!=null&&Na(e.length)&&!ec(e)}function Fa(e){return lc(e)?C1(e):E1(e)}function di(e){return ky(e,Fa,Uy)}var L1=1,k1=Object.prototype,$1=k1.hasOwnProperty;function N1(e,t,r,n,o,a){var i=r&L1,l=di(e),c=l.length,u=di(t),d=u.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var f=l[h];if(!(i?f in t:$1.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<c;){f=l[h];var v=e[f],R=t[f];if(n)var C=i?n(R,v,f,t,e,a):n(v,R,f,e,t,a);if(!(C===void 0?v===R||o(v,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var da=er(_t,"DataView"),fa=er(_t,"Promise"),ha=er(_t,"Set"),ma=er(_t,"WeakMap"),fi="[object Map]",F1="[object Object]",hi="[object Promise]",mi="[object Set]",pi="[object WeakMap]",gi="[object DataView]",D1=Qt(da),U1=Qt(Zr),B1=Qt(fa),J1=Qt(ha),V1=Qt(ma),kt=Zt;(da&&kt(new da(new ArrayBuffer(1)))!=gi||Zr&&kt(new Zr)!=fi||fa&&kt(fa.resolve())!=hi||ha&&kt(new ha)!=mi||ma&&kt(new ma)!=pi)&&(kt=function(e){var t=Zt(e),r=t==F1?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case D1:return gi;case U1:return fi;case B1:return hi;case J1:return mi;case V1:return pi}return t});var G1=1,yi="[object Arguments]",_i="[object Array]",vn="[object Object]",z1=Object.prototype,bi=z1.hasOwnProperty;function W1(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?_i:kt(e),u=l?_i:kt(t);c=c==yi?vn:c,u=u==yi?vn:u;var d=c==vn,h=u==vn,f=c==u;if(f&&ua(e)){if(!ua(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new Rt),i||ic(e)?tc(e,t,r,n,o,a):Ey(e,t,c,r,n,o,a);if(!(r&G1)){var b=d&&bi.call(e,"__wrapped__"),y=h&&bi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new Rt),o(_,g,r,n,a)}}return f?(a||(a=new Rt),N1(e,t,r,n,o,a)):!1}function _o(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:W1(e,t,r,n,_o,o)}function H1(e,t){return _o(e,t)}const K1=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=q.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);wr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;H1(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},X1=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}nl(()=>[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}),q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.activeCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:$t.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(h,e.selectedDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(Dp,{})},{id:"y",color:"#42A705",icon:s.jsx(Bp,{})},{id:"z",color:"#0075FF",icon:s.jsx(Vp,{})}];function u(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:$t.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(_g,{store:e}),s.jsx(Kp,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>s.jsx(ca,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&c.map(h=>s.jsx(ca,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Np,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Yl,{store:e}),s.jsx(K1,{store:e})]})}),q1=He.observer(({store:e})=>{const t=q.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})}),Y1=He.observer(({store:e})=>{q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(q1,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?$t.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?$t.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(Wl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?$t.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Yl,{store:e})]})});var Si=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Z1(e,t,r){t=="__proto__"&&Si?Si(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Q1(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function e_(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var t_=e_();function r_(e,t){return e&&t_(e,t,Fa)}function n_(e,t){return function(r,n){if(r==null)return r;if(!lc(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var o_=n_(r_);function a_(e,t,r,n){return o_(e,function(o,a,i){t(n,o,r(o),i)}),n}var s_=1,i_=2;function l_(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Rt,h;if(!(h===void 0?_o(u,c,s_|i_,n,d):h))return!1}}return!0}function cc(e){return e===e&&!Xt(e)}function c_(e){for(var t=Fa(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,cc(o)]}return t}function uc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function u_(e){var t=c_(e);return t.length==1&&t[0][2]?uc(t[0][0],t[0][1]):function(r){return r===e||l_(r,e,t)}}var d_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f_=/^\w*$/;function Da(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||po(e)?!0:f_.test(e)||!d_.test(e)||t!=null&&e in Object(t)}var h_="Expected a function";function Ua(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(h_);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ua.Cache||Pt),r}Ua.Cache=Pt;var m_=500;function p_(e){var t=Ua(e,function(n){return r.size===m_&&r.clear(),n}),r=t.cache;return t}var g_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y_=/\\(\\)?/g,__=p_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(g_,function(r,n,o,a){t.push(o?a.replace(y_,"$1"):n||r)}),t});function b_(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 S_=1/0,xi=Nt?Nt.prototype:void 0,vi=xi?xi.toString:void 0;function dc(e){if(typeof e=="string")return e;if(yt(e))return b_(e,dc)+"";if(po(e))return vi?vi.call(e):"";var t=e+"";return t=="0"&&1/e==-S_?"-0":t}function fc(e){return e==null?"":dc(e)}function hc(e,t){return yt(e)?e:Da(e,t)?[e]:__(fc(e))}var x_=1/0;function bo(e){if(typeof e=="string"||po(e))return e;var t=e+"";return t=="0"&&1/e==-x_?"-0":t}function mc(e,t){t=hc(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 v_(e,t,r){var n=e==null?void 0:mc(e,t);return n===void 0?r:n}function w_(e,t){return e!=null&&t in Object(e)}function R_(e,t,r){t=hc(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=bo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Na(o)&&ac(i,o)&&(yt(e)||nc(e)))}function j_(e,t){return e!=null&&R_(e,t,w_)}var C_=1,A_=2;function P_(e,t){return Da(e)&&cc(t)?uc(bo(e),t):function(r){var n=v_(r,e);return n===void 0&&n===t?j_(r,e):_o(t,n,C_|A_)}}function O_(e){return e}function T_(e){return function(t){return t==null?void 0:t[e]}}function M_(e){return function(t){return mc(t,e)}}function I_(e){return Da(e)?T_(bo(e)):M_(e)}function E_(e){return typeof e=="function"?e:e==null?O_:typeof e=="object"?yt(e)?P_(e[0],e[1]):u_(e):I_(e)}function L_(e,t){return function(r,n){var o=yt(r)?Q1:a_,a={};return o(r,e,E_(n),a)}}var wn=L_(function(e,t,r){Z1(e,r,t)}),k_=0;function $_(e){var t=++k_;return fc(e)+t}const pa=[{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}],N_=[{id:"continuous"},...pa];class Ba{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Ba(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=$t.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 N_}get discreteIncrementOptions(){return pa}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(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 wn(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 wn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return pa.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){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}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=$_();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const F_=en(He.observer(e=>{var a,i,l,c;const t=Pc.isString(e.nova)?new $t.NovaClient({instanceUrl:e.nova}):e.nova,r=He.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){br.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const u=await t.connectJogger(e.motionGroupId),d=await Ba.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(q.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),q.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:h,selectedDiscreteIncrement:f}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:h};f&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(wi,{children:s.jsx(Qi,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(wi,{children:s.jsxs(L.Stack,{flexGrow:1,children:[s.jsx(L.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(L.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(L.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(X1,{store:o}),o.currentTab.id==="joint"&&s.jsx(Y1,{store:o}),e.children]})]})})}));function wi({children:e}){return s.jsx(L.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(L.Paper,{sx:{height:"100%"},children:e})})}function D_(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function U_({baseUrl:e=D_(),...t}){return s.jsxs(L.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:[s.jsx(L.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(L.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(L.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(L.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(L.DialogActions,{children:s.jsxs(L.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(L.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(L.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const B_=Array(6).fill(2*Math.PI),ht={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},J_={mode:"dark",colors:{primary:ht.skyblue500,textDefault:ht.white,textSubtle:ht.midnightgray,background:{default:ht.darkishblue,panel:ht.darkestblue}}},V_={mode:"light",colors:{primary:ht.skyblue500,textDefault:ht.darkishblue,textSubtle:ht.midnightgray,background:{default:ht.skyblue500,panel:ht.white}}};function G_(e){var o,a,i,l;let t=!0;((o=e.palette)==null?void 0:o.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((l=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:l.matches)));const r=t?J_:V_,n=la({palette:{mode:r.mode,primary:{main:r.colors.primary},background:{default:r.colors.background.default,paper:r.colors.background.panel}},typography:{allVariants:{color:r.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:t?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:t?"#3d4455":void 0,color:t?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":t?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:t?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":t?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:r});return e?la(n,e):n}exports.JoggingCartesianAxisControl=ca;exports.JoggingJointRotationControl=Wl;exports.JoggingPanel=F_;exports.NoMotionGroupModal=U_;exports.PresetEnvironment=sf;exports.Robot=af;exports.SafetyZonesRenderer=uf;exports.SupportedRobot=ol;exports.VelocitySlider=ql;exports.WandelscriptEditor=kd;exports.createNovaMuiTheme=G_;exports.defaultAxisConfig=B_;exports.defaultGetModel=Sa;exports.useAnimationFrame=wr;exports.useAutorun=rl;exports.useMounted=eo;exports.useReaction=nl;
84
84
  //# sourceMappingURL=index.cjs.map