@wandelbots/wandelbots-js-react-components 1.28.1 → 1.28.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/README.md +0 -1
- package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1210 -1207
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/robots/SupportedRobot.tsx +3 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Uu=Object.create;var Vs=Object.defineProperty;var Ju=Object.getOwnPropertyDescriptor;var Vu=Object.getOwnPropertyNames;var Gu=Object.getPrototypeOf,zu=Object.prototype.hasOwnProperty;var Ku=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Vu(t))!zu.call(e,a)&&a!==r&&Vs(e,a,{get:()=>t[a],enumerable:!(n=Ju(t,a))||n.enumerable});return e};var wa=(e,t,r)=>(r=e!=null?Uu(Gu(e)):{},Ku(t||!e||!e.__esModule?Vs(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react"),H=require("@react-three/drei"),vt=require("three"),Wu=require("three-stdlib"),Hu=require("@react-three/fiber"),Gs=require("@mui/icons-material"),T=require("@mui/material"),Te=require("mobx-react-lite"),qt=require("react-i18next"),Xu=require("i18next-browser-languagedetector"),mt=require("mobx"),h=require("prop-types"),qu=require("@emotion/styled"),fr=require("@emotion/react"),Lt=require("@wandelbots/wandelbots-js"),Kn=require("lodash-es"),x=require("@react-spring/three"),Yu=require("react-error-boundary");function Ai(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const N=Ai(Y),ke=Ai(vt);function Rt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Ga={exports:{}},Or={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var zs;function
|
|
9
|
+
*/var zs;function Zu(){if(zs)return Or;zs=1;var e=Y,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,c){var m,f={},d=null,b=null;c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(b=u.ref);for(m in u)n.call(u,m)&&!s.hasOwnProperty(m)&&(f[m]=u[m]);if(l&&l.defaultProps)for(m in u=l.defaultProps,u)f[m]===void 0&&(f[m]=u[m]);return{$$typeof:t,type:l,key:d,ref:b,props:f,_owner:a.current}}return Or.Fragment=r,Or.jsx=i,Or.jsxs=i,Or}var Er={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,30 +14,30 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Ks;function
|
|
17
|
+
*/var Ks;function Qu(){return Ks||(Ks=1,process.env.NODE_ENV!=="production"&&function(){var e=Y,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function p(g){if(g===null||typeof g!="object")return null;var w=y&&g[y]||g[_];return typeof w=="function"?w:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(g){{for(var w=arguments.length,E=new Array(w>1?w-1:0),$=1;$<w;$++)E[$-1]=arguments[$];C("error",g,E)}}function C(g,w,E){{var $=j.ReactDebugCurrentFrame,B=$.getStackAddendum();B!==""&&(w+="%s",E=E.concat([B]));var ne=E.map(function(V){return String(V)});ne.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,ne)}}var A=!1,S=!1,P=!1,k=!1,z=!1,le;le=Symbol.for("react.module.reference");function ce(g){return!!(typeof g=="string"||typeof g=="function"||g===n||g===s||z||g===a||g===c||g===m||k||g===b||A||S||P||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===f||g.$$typeof===i||g.$$typeof===l||g.$$typeof===u||g.$$typeof===le||g.getModuleId!==void 0))}function D(g,w,E){var $=g.displayName;if($)return $;var B=w.displayName||w.name||"";return B!==""?E+"("+B+")":E}function q(g){return g.displayName||"Context"}function G(g){if(g==null)return null;if(typeof g.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case m:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case l:var w=g;return q(w)+".Consumer";case i:var E=g;return q(E._context)+".Provider";case u:return D(g,g.render,"ForwardRef");case f:var $=g.displayName||null;return $!==null?$:G(g.type)||"Memo";case d:{var B=g,ne=B._payload,V=B._init;try{return G(V(ne))}catch{return null}}}return null}var Z=Object.assign,X=0,je,ue,ee,we,Oe,nt,yt;function We(){}We.__reactDisabledLog=!0;function Se(){{if(X===0){je=console.log,ue=console.info,ee=console.warn,we=console.error,Oe=console.group,nt=console.groupCollapsed,yt=console.groupEnd;var g={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}X++}}function Ct(){{if(X--,X===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},g,{value:je}),info:Z({},g,{value:ue}),warn:Z({},g,{value:ee}),error:Z({},g,{value:we}),group:Z({},g,{value:Oe}),groupCollapsed:Z({},g,{value:nt}),groupEnd:Z({},g,{value:yt})})}X<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var lt=j.ReactCurrentDispatcher,He;function Ue(g,w,E){{if(He===void 0)try{throw Error()}catch(B){var $=B.stack.trim().match(/\n( *(at )?)/);He=$&&$[1]||""}return`
|
|
18
18
|
`+He+g}}var ut=!1,ct;{var Ft=typeof WeakMap=="function"?WeakMap:Map;ct=new Ft}function bt(g,w){if(!g||ut)return"";{var E=ct.get(g);if(E!==void 0)return E}var $;ut=!0;var B=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ne;ne=lt.current,lt.current=null,Se();try{if(w){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(Ne){$=Ne}Reflect.construct(g,[],V)}else{try{V.call()}catch(Ne){$=Ne}g.call(V.prototype)}}else{try{throw Error()}catch(Ne){$=Ne}g()}}catch(Ne){if(Ne&&$&&typeof Ne.stack=="string"){for(var U=Ne.stack.split(`
|
|
19
19
|
`),Ie=$.stack.split(`
|
|
20
20
|
`),pe=U.length-1,be=Ie.length-1;pe>=1&&be>=0&&U[pe]!==Ie[be];)be--;for(;pe>=1&&be>=0;pe--,be--)if(U[pe]!==Ie[be]){if(pe!==1||be!==1)do if(pe--,be--,be<0||U[pe]!==Ie[be]){var qe=`
|
|
21
|
-
`+U[pe].replace(" at new "," at ");return g.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",g.displayName)),typeof g=="function"&&ct.set(g,qe),qe}while(pe>=1&&be>=0);break}}}finally{ut=!1,lt.current=ne,Ct(),Error.prepareStackTrace=B}var ar=g?g.displayName||g.name:"",Jt=ar?Ue(ar):"";return typeof g=="function"&&ct.set(g,Jt),Jt}function Je(g,w,E){return bt(g,!1)}function O(g){var w=g.prototype;return!!(w&&w.isReactComponent)}function te(g,w,E){if(g==null)return"";if(typeof g=="function")return bt(g,O(g));if(typeof g=="string")return Ue(g);switch(g){case c:return Ue("Suspense");case m:return Ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case u:return Je(g.render);case f:return te(g.type,w,E);case d:{var $=g,B=$._payload,ne=$._init;try{return te(ne(B),w,E)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,Ee={},Le=j.ReactDebugCurrentFrame;function
|
|
21
|
+
`+U[pe].replace(" at new "," at ");return g.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",g.displayName)),typeof g=="function"&&ct.set(g,qe),qe}while(pe>=1&&be>=0);break}}}finally{ut=!1,lt.current=ne,Ct(),Error.prepareStackTrace=B}var ar=g?g.displayName||g.name:"",Jt=ar?Ue(ar):"";return typeof g=="function"&&ct.set(g,Jt),Jt}function Je(g,w,E){return bt(g,!1)}function O(g){var w=g.prototype;return!!(w&&w.isReactComponent)}function te(g,w,E){if(g==null)return"";if(typeof g=="function")return bt(g,O(g));if(typeof g=="string")return Ue(g);switch(g){case c:return Ue("Suspense");case m:return Ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case u:return Je(g.render);case f:return te(g.type,w,E);case d:{var $=g,B=$._payload,ne=$._init;try{return te(ne(B),w,E)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,Ee={},Le=j.ReactDebugCurrentFrame;function kt(g){if(g){var w=g._owner,E=te(g.type,g._source,w?w.type:null);Le.setExtraStackFrame(E)}else Le.setExtraStackFrame(null)}function Re(g,w,E,$,B){{var ne=Function.call.bind(fe);for(var V in g)if(ne(g,V)){var U=void 0;try{if(typeof g[V]!="function"){var Ie=Error(($||"React class")+": "+E+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}U=g[V](w,V,$,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pe){U=pe}U&&!(U instanceof Error)&&(kt(B),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",E,V,typeof U),kt(null)),U instanceof Error&&!(U.message in Ee)&&(Ee[U.message]=!0,kt(B),R("Failed %s type: %s",E,U.message),kt(null))}}}var Mt=Array.isArray;function Dt(g){return Mt(g)}function wr(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,E=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return E}}function Ar(g){try{return Pr(g),!1}catch{return!0}}function Pr(g){return""+g}function er(g){if(Ar(g))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wr(g)),Pr(g)}var at=j.ReactCurrentOwner,I={key:!0,ref:!0,__self:!0,__source:!0},L,F,K;K={};function Q(g){if(fe.call(g,"ref")){var w=Object.getOwnPropertyDescriptor(g,"ref").get;if(w&&w.isReactWarning)return!1}return g.ref!==void 0}function W(g){if(fe.call(g,"key")){var w=Object.getOwnPropertyDescriptor(g,"key").get;if(w&&w.isReactWarning)return!1}return g.key!==void 0}function Ve(g,w){if(typeof g.ref=="string"&&at.current&&w&&at.current.stateNode!==w){var E=G(at.current.type);K[E]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(at.current.type),g.ref),K[E]=!0)}}function Xe(g,w){{var E=function(){L||(L=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};E.isReactWarning=!0,Object.defineProperty(g,"key",{get:E,configurable:!0})}}function re(g,w){{var E=function(){F||(F=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};E.isReactWarning=!0,Object.defineProperty(g,"ref",{get:E,configurable:!0})}}var $e=function(g,w,E,$,B,ne,V){var U={$$typeof:t,type:g,key:w,ref:E,props:V,_owner:ne};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function It(g,w,E,$,B){{var ne,V={},U=null,Ie=null;E!==void 0&&(er(E),U=""+E),W(w)&&(er(w.key),U=""+w.key),Q(w)&&(Ie=w.ref,Ve(w,B));for(ne in w)fe.call(w,ne)&&!I.hasOwnProperty(ne)&&(V[ne]=w[ne]);if(g&&g.defaultProps){var pe=g.defaultProps;for(ne in pe)V[ne]===void 0&&(V[ne]=pe[ne])}if(U||Ie){var be=typeof g=="function"?g.displayName||g.name||"Unknown":g;U&&Xe(V,be),Ie&&re(V,be)}return $e(g,U,Ie,B,$,at.current,V)}}var tr=j.ReactCurrentOwner,Cr=j.ReactDebugCurrentFrame;function xt(g){if(g){var w=g._owner,E=te(g.type,g._source,w?w.type:null);Cr.setExtraStackFrame(E)}else Cr.setExtraStackFrame(null)}var Bt;Bt=!1;function Ut(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function kr(){{if(tr.current){var g=G(tr.current.type);if(g)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+g+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+g+"`."}return""}}function Mr(g){return""}var un={};function Ir(g){{var w=kr();if(!w){var E=typeof g=="string"?g:g.displayName||g.name;E&&(w=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+E+">.")}return w}}function rr(g,w){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var E=Ir(w);if(un[E])return;un[E]=!0;var $="";g&&g._owner&&g._owner!==tr.current&&($=" It was passed a child from "+G(g._owner.type)+"."),xt(g),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,$),xt(null)}}function nr(g,w){{if(typeof g!="object")return;if(Dt(g))for(var E=0;E<g.length;E++){var $=g[E];Ut($)&&rr($,w)}else if(Ut(g))g._store&&(g._store.validated=!0);else if(g){var B=p(g);if(typeof B=="function"&&B!==g.entries)for(var ne=B.call(g),V;!(V=ne.next()).done;)Ut(V.value)&&rr(V.value,w)}}}function ba(g){{var w=g.type;if(w==null||typeof w=="string")return;var E;if(typeof w=="function")E=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===u||w.$$typeof===f))E=w.propTypes;else return;if(E){var $=G(w);Re(E,g.props,"prop",$,g)}else if(w.PropTypes!==void 0&&!Bt){Bt=!0;var B=G(w);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xa(g){{for(var w=Object.keys(g.props),E=0;E<w.length;E++){var $=w[E];if($!=="children"&&$!=="key"){xt(g),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),xt(null);break}}g.ref!==null&&(xt(g),R("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}var cn={};function mn(g,w,E,$,B,ne){{var V=ce(g);if(!V){var U="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=
|
|
25
|
+
Check the top-level render call using <`+E+">.")}return w}}function rr(g,w){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var E=Ir(w);if(un[E])return;un[E]=!0;var $="";g&&g._owner&&g._owner!==tr.current&&($=" It was passed a child from "+G(g._owner.type)+"."),xt(g),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,$),xt(null)}}function nr(g,w){{if(typeof g!="object")return;if(Dt(g))for(var E=0;E<g.length;E++){var $=g[E];Ut($)&&rr($,w)}else if(Ut(g))g._store&&(g._store.validated=!0);else if(g){var B=p(g);if(typeof B=="function"&&B!==g.entries)for(var ne=B.call(g),V;!(V=ne.next()).done;)Ut(V.value)&&rr(V.value,w)}}}function ba(g){{var w=g.type;if(w==null||typeof w=="string")return;var E;if(typeof w=="function")E=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===u||w.$$typeof===f))E=w.propTypes;else return;if(E){var $=G(w);Re(E,g.props,"prop",$,g)}else if(w.PropTypes!==void 0&&!Bt){Bt=!0;var B=G(w);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xa(g){{for(var w=Object.keys(g.props),E=0;E<w.length;E++){var $=w[E];if($!=="children"&&$!=="key"){xt(g),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),xt(null);break}}g.ref!==null&&(xt(g),R("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}var cn={};function mn(g,w,E,$,B,ne){{var V=ce(g);if(!V){var U="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=Mr();Ie?U+=Ie:U+=kr();var pe;g===null?pe="null":Dt(g)?pe="array":g!==void 0&&g.$$typeof===t?(pe="<"+(G(g.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):pe=typeof g,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pe,U)}var be=It(g,w,E,B,ne);if(be==null)return be;if(V){var qe=w.children;if(qe!==void 0)if($)if(Dt(qe)){for(var ar=0;ar<qe.length;ar++)nr(qe[ar],g);Object.freeze&&Object.freeze(qe)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else nr(qe,g)}if(fe.call(w,"key")){var Jt=G(g),Ne=Object.keys(w).filter(function(Bu){return Bu!=="key"}),Ra=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!cn[Jt+Ra]){var Du=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ra,Jt,Fu,Jt),cn[Jt+Ra]=!0}}return g===n?xa(be):ba(be),be}}function va(g,w,E){return mn(g,w,E,!0)}function ja(g,w,E){return mn(g,w,E,!1)}var Tr=ja,Sa=va;Er.Fragment=n,Er.jsx=Tr,Er.jsxs=Sa}()),Er}process.env.NODE_ENV==="production"?Ga.exports=Yu():Ga.exports=Zu();var o=Ga.exports;function Qu(){return o.jsx(H.Environment,{children:o.jsx(ec,{})})}function ec({positions:e=[2,0,2,0,2,0,2,0]}){return o.jsxs(o.Fragment,{children:[o.jsx(H.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),o.jsx("group",{rotation:[0,.5,0],children:o.jsx("group",{children:e.map((t,r)=>o.jsx(H.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),o.jsx(H.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),o.jsx(H.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),o.jsx(H.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),o.jsx(H.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),o.jsx(H.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function tc(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Me.Vector3(e[0].x,e[0].y,e[0].z),r=new Me.Vector3(e[1].x,e[1].y,e[1].z),n=new Me.Vector3(e[2].x,e[2].y,e[2].z),a=new Me.Vector3().subVectors(r,t),s=new Me.Vector3().subVectors(n,t),i=new Me.Vector3().crossVectors(a,s).normalize();for(let l=3;l<e.length;l++){const u=new Me.Vector3(e[l].x,e[l].y,e[l].z),c=new Me.Vector3().subVectors(u,t),m=i.dot(c);if(Math.abs(m)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function rc({safetyZones:e,...t}){return o.jsx("group",{...t,children:e.map((r,n)=>{let a=[];return r.geometry&&(r.geometry.compound?a=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(a=[r.geometry])),a.map((s,i)=>{if(!s.convex_hull)return null;const l=s.convex_hull.vertices.map(m=>new Me.Vector3(m.x/1e3,m.y/1e3,m.z/1e3)),u=tc(l);if(u.isCoplanar&&u.normal){const f=new Me.Vector3().addVectors(l[0],u.normal.multiplyScalar(1e-4));l.push(f)}let c;try{c=new Ku.ConvexGeometry(l)}catch(m){return console.log("Error creating ConvexGeometry:",m),null}return o.jsx(o.Fragment,{children:o.jsx("mesh",{geometry:c,children:o.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Gr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const nc=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"}));var ac=!1;function sc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function oc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ic=function(){function e(r){var n=this;this._insertTag=function(a){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,s),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!ac:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(oc(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=sc(a);try{s.insertRule(n,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ce="-ms-",Tn="-moz-",ae="-webkit-",Ai="comm",ps="rule",_s="decl",lc="@import",Pi="@keyframes",uc="@layer",cc=Math.abs,Wn=String.fromCharCode,mc=Object.assign;function dc(e,t){return Ae(e,0)^45?(((t<<2^Ae(e,0))<<2^Ae(e,1))<<2^Ae(e,2))<<2^Ae(e,3):0}function Ci(e){return e.trim()}function fc(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,r){return e.replace(t,r)}function za(e,t){return e.indexOf(t)}function Ae(e,t){return e.charCodeAt(t)|0}function zr(e,t,r){return e.slice(t,r)}function dt(e){return e.length}function ys(e){return e.length}function dn(e,t){return t.push(e),e}function hc(e,t){return e.map(t).join("")}var Hn=1,yr=1,Mi=0,De=0,xe=0,br="";function Xn(e,t,r,n,a,s,i){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:Hn,column:yr,length:i,return:""}}function Lr(e,t){return mc(Xn("",null,null,"",null,null,0),e,{length:-e.length},t)}function gc(){return xe}function pc(){return xe=De>0?Ae(br,--De):0,yr--,xe===10&&(yr=1,Hn--),xe}function ze(){return xe=De<Mi?Ae(br,De++):0,yr++,xe===10&&(yr=1,Hn++),xe}function ht(){return Ae(br,De)}function jn(){return De}function Zr(e,t){return zr(br,e,t)}function Kr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ki(e){return Hn=yr=1,Mi=dt(br=e),De=0,[]}function Ii(e){return br="",e}function Sn(e){return Ci(Zr(De-1,Ka(e===91?e+2:e===40?e+1:e)))}function _c(e){for(;(xe=ht())&&xe<33;)ze();return Kr(e)>2||Kr(xe)>3?"":" "}function yc(e,t){for(;--t&&ze()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Zr(e,jn()+(t<6&&ht()==32&&ze()==32))}function Ka(e){for(;ze();)switch(xe){case e:return De;case 34:case 39:e!==34&&e!==39&&Ka(xe);break;case 40:e===41&&Ka(e);break;case 92:ze();break}return De}function bc(e,t){for(;ze()&&e+xe!==57;)if(e+xe===84&&ht()===47)break;return"/*"+Zr(t,De-1)+"*"+Wn(e===47?e:ze())}function xc(e){for(;!Kr(ht());)ze();return Zr(e,De)}function vc(e){return Ii(Rn("",null,null,null,[""],e=ki(e),0,[0],e))}function Rn(e,t,r,n,a,s,i,l,u){for(var c=0,m=0,f=i,d=0,b=0,y=0,_=1,p=1,j=1,R=0,C="",A=a,S=s,P=n,M=C;p;)switch(y=R,R=ze()){case 40:if(y!=108&&Ae(M,f-1)==58){za(M+=se(Sn(R),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:M+=Sn(R);break;case 9:case 10:case 13:case 32:M+=_c(y);break;case 92:M+=yc(jn()-1,7);continue;case 47:switch(ht()){case 42:case 47:dn(jc(bc(ze(),jn()),t,r),u);break;default:M+="/"}break;case 123*_:l[c++]=dt(M)*j;case 125*_:case 59:case 0:switch(R){case 0:case 125:p=0;case 59+m:j==-1&&(M=se(M,/\f/g,"")),b>0&&dt(M)-f&&dn(b>32?Hs(M+";",n,r,f-1):Hs(se(M," ","")+";",n,r,f-2),u);break;case 59:M+=";";default:if(dn(P=Ws(M,t,r,c,m,a,l,C,A=[],S=[],f),s),R===123)if(m===0)Rn(M,t,P,P,A,s,f,l,S);else switch(d===99&&Ae(M,3)===110?100:d){case 100:case 108:case 109:case 115:Rn(e,P,P,n&&dn(Ws(e,P,P,0,0,a,l,C,a,A=[],f),S),a,S,f,l,n?A:S);break;default:Rn(M,P,P,P,[""],S,0,l,S)}}c=m=b=0,_=j=1,C=M="",f=i;break;case 58:f=1+dt(M),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&pc()==125)continue}switch(M+=Wn(R),R*_){case 38:j=m>0?1:(M+="\f",-1);break;case 44:l[c++]=(dt(M)-1)*j,j=1;break;case 64:ht()===45&&(M+=Sn(ze())),d=ht(),m=f=dt(C=M+=xc(jn())),R++;break;case 45:y===45&&dt(M)==2&&(_=0)}}return s}function Ws(e,t,r,n,a,s,i,l,u,c,m){for(var f=a-1,d=a===0?s:[""],b=ys(d),y=0,_=0,p=0;y<n;++y)for(var j=0,R=zr(e,f+1,f=cc(_=i[y])),C=e;j<b;++j)(C=Ci(_>0?d[j]+" "+R:se(R,/&\f/g,d[j])))&&(u[p++]=C);return Xn(e,t,r,a===0?ps:l,u,c,m)}function jc(e,t,r){return Xn(e,t,r,Ai,Wn(gc()),zr(e,2,-2),0)}function Hs(e,t,r,n){return Xn(e,t,r,_s,zr(e,0,n),zr(e,n+1,-1),n)}function hr(e,t){for(var r="",n=ys(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Sc(e,t,r,n){switch(e.type){case uc:if(e.children.length)break;case lc:case _s:return e.return=e.return||e.value;case Ai:return"";case Pi:return e.return=e.value+"{"+hr(e.children,n)+"}";case ps:e.value=e.props.join(",")}return dt(r=hr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Rc(e){var t=ys(e);return function(r,n,a,s){for(var i="",l=0;l<t;l++)i+=e[l](r,n,a,s)||"";return i}}function wc(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ac=function(t,r,n){for(var a=0,s=0;a=s,s=ht(),a===38&&s===12&&(r[n]=1),!Kr(s);)ze();return Zr(t,De)},Pc=function(t,r){var n=-1,a=44;do switch(Kr(a)){case 0:a===38&&ht()===12&&(r[n]=1),t[n]+=Ac(De-1,r,n);break;case 2:t[n]+=Sn(a);break;case 4:if(a===44){t[++n]=ht()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Wn(a)}while(a=ze());return t},Cc=function(t,r){return Ii(Pc(ki(t),r))},Xs=new WeakMap,Mc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Xs.get(n))&&!a){Xs.set(t,!0);for(var s=[],i=Cc(r,s),l=n.props,u=0,c=0;u<i.length;u++)for(var m=0;m<l.length;m++,c++)t.props[c]=s[u]?i[u].replace(/&\f/g,l[m]):l[m]+" "+i[u]}}},kc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ti(e,t){switch(dc(e,t)){case 5103:return ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+Tn+e+Ce+e+e;case 6828:case 4268:return ae+e+Ce+e+e;case 6165:return ae+e+Ce+"flex-"+e+e;case 5187:return ae+e+se(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+Ce+"flex-$1$2")+e;case 5443:return ae+e+Ce+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ae+e+Ce+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ae+e+Ce+se(e,"shrink","negative")+e;case 5292:return ae+e+Ce+se(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+se(e,"-grow","")+ae+e+Ce+se(e,"grow","positive")+e;case 4554:return ae+se(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+Ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(e)-1-t>6)switch(Ae(e,t+1)){case 109:if(Ae(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Tn+(Ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~za(e,"stretch")?Ti(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ae(e,t+1)!==115)break;case 6444:switch(Ae(e,dt(e)-3-(~za(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Ae(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(Ae(e,t+11)){case 114:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Ce+e+e}return e}var Ic=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case _s:t.return=Ti(t.value,t.length);break;case Pi:return hr([Lr(t,{value:se(t.value,"@","@"+ae)})],a);case ps:if(t.length)return hc(t.props,function(s){switch(fc(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hr([Lr(t,{props:[se(s,/:(read-\w+)/,":"+Tn+"$1")]})],a);case"::placeholder":return hr([Lr(t,{props:[se(s,/:(plac\w+)/,":"+ae+"input-$1")]}),Lr(t,{props:[se(s,/:(plac\w+)/,":"+Tn+"$1")]}),Lr(t,{props:[se(s,/:(plac\w+)/,Ce+"input-$1")]})],a)}return""})}},Tc=[Ic],Oc=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(_){var p=_.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var a=t.stylisPlugins||Tc,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var p=_.getAttribute("data-emotion").split(" "),j=1;j<p.length;j++)s[p[j]]=!0;l.push(_)});var u,c=[Mc,kc];{var m,f=[Sc,wc(function(_){m.insert(_)})],d=Rc(c.concat(a,f)),b=function(p){return hr(vc(p),d)};u=function(p,j,R,C){m=R,b(p?p+"{"+j.styles+"}":j.styles),C&&(y.inserted[j.name]=!0)}}var y={key:r,sheet:new ic({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return y.sheet.hydrate(l),y};let Wa;typeof document=="object"&&(Wa=Oc({key:"css",prepend:!0}));function Oi(e){const{injectFirst:t,children:r}=e;return t&&Wa?o.jsx(fr.CacheProvider,{value:Wa,children:r}):r}process.env.NODE_ENV!=="production"&&(Oi.propTypes={children:h.node,injectFirst:h.bool});function Ec(e){return e==null||Object.keys(e).length===0}function Ei(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(Ec(a)?r:a):t;return o.jsx(fr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Ei.propTypes={defaultTheme:h.object,styles:h.oneOfType([h.array,h.string,h.object,h.func])});/**
|
|
30
|
+
<%s key={someKey} {...props} />`,Ra,Jt,Du,Jt),cn[Jt+Ra]=!0}}return g===n?xa(be):ba(be),be}}function va(g,w,E){return mn(g,w,E,!0)}function ja(g,w,E){return mn(g,w,E,!1)}var Tr=ja,Sa=va;Er.Fragment=n,Er.jsx=Tr,Er.jsxs=Sa}()),Er}process.env.NODE_ENV==="production"?Ga.exports=Zu():Ga.exports=Qu();var o=Ga.exports;function ec(){return o.jsx(H.Environment,{children:o.jsx(tc,{})})}function tc({positions:e=[2,0,2,0,2,0,2,0]}){return o.jsxs(o.Fragment,{children:[o.jsx(H.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),o.jsx("group",{rotation:[0,.5,0],children:o.jsx("group",{children:e.map((t,r)=>o.jsx(H.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),o.jsx(H.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),o.jsx(H.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),o.jsx(H.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),o.jsx(H.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),o.jsx(H.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function rc(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new ke.Vector3(e[0].x,e[0].y,e[0].z),r=new ke.Vector3(e[1].x,e[1].y,e[1].z),n=new ke.Vector3(e[2].x,e[2].y,e[2].z),a=new ke.Vector3().subVectors(r,t),s=new ke.Vector3().subVectors(n,t),i=new ke.Vector3().crossVectors(a,s).normalize();for(let l=3;l<e.length;l++){const u=new ke.Vector3(e[l].x,e[l].y,e[l].z),c=new ke.Vector3().subVectors(u,t),m=i.dot(c);if(Math.abs(m)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function nc({safetyZones:e,...t}){return o.jsx("group",{...t,children:e.map((r,n)=>{let a=[];return r.geometry&&(r.geometry.compound?a=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(a=[r.geometry])),a.map((s,i)=>{if(!s.convex_hull)return null;const l=s.convex_hull.vertices.map(m=>new ke.Vector3(m.x/1e3,m.y/1e3,m.z/1e3)),u=rc(l);if(u.isCoplanar&&u.normal){const f=new ke.Vector3().addVectors(l[0],u.normal.multiplyScalar(1e-4));l.push(f)}let c;try{c=new Wu.ConvexGeometry(l)}catch(m){return console.log("Error creating ConvexGeometry:",m),null}return o.jsx(o.Fragment,{children:o.jsx("mesh",{geometry:c,children:o.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Gr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ac=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"}));var sc=!1;function oc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ic(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var lc=function(){function e(r){var n=this;this._insertTag=function(a){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,s),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!sc:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ic(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=oc(a);try{s.insertRule(n,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ce="-ms-",Tn="-moz-",ae="-webkit-",Pi="comm",ps="rule",_s="decl",uc="@import",Ci="@keyframes",cc="@layer",mc=Math.abs,Wn=String.fromCharCode,dc=Object.assign;function fc(e,t){return Ae(e,0)^45?(((t<<2^Ae(e,0))<<2^Ae(e,1))<<2^Ae(e,2))<<2^Ae(e,3):0}function ki(e){return e.trim()}function hc(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,r){return e.replace(t,r)}function za(e,t){return e.indexOf(t)}function Ae(e,t){return e.charCodeAt(t)|0}function zr(e,t,r){return e.slice(t,r)}function dt(e){return e.length}function ys(e){return e.length}function dn(e,t){return t.push(e),e}function gc(e,t){return e.map(t).join("")}var Hn=1,yr=1,Mi=0,De=0,xe=0,br="";function Xn(e,t,r,n,a,s,i){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:Hn,column:yr,length:i,return:""}}function Lr(e,t){return dc(Xn("",null,null,"",null,null,0),e,{length:-e.length},t)}function pc(){return xe}function _c(){return xe=De>0?Ae(br,--De):0,yr--,xe===10&&(yr=1,Hn--),xe}function ze(){return xe=De<Mi?Ae(br,De++):0,yr++,xe===10&&(yr=1,Hn++),xe}function ht(){return Ae(br,De)}function jn(){return De}function Zr(e,t){return zr(br,e,t)}function Kr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ii(e){return Hn=yr=1,Mi=dt(br=e),De=0,[]}function Ti(e){return br="",e}function Sn(e){return ki(Zr(De-1,Ka(e===91?e+2:e===40?e+1:e)))}function yc(e){for(;(xe=ht())&&xe<33;)ze();return Kr(e)>2||Kr(xe)>3?"":" "}function bc(e,t){for(;--t&&ze()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Zr(e,jn()+(t<6&&ht()==32&&ze()==32))}function Ka(e){for(;ze();)switch(xe){case e:return De;case 34:case 39:e!==34&&e!==39&&Ka(xe);break;case 40:e===41&&Ka(e);break;case 92:ze();break}return De}function xc(e,t){for(;ze()&&e+xe!==57;)if(e+xe===84&&ht()===47)break;return"/*"+Zr(t,De-1)+"*"+Wn(e===47?e:ze())}function vc(e){for(;!Kr(ht());)ze();return Zr(e,De)}function jc(e){return Ti(Rn("",null,null,null,[""],e=Ii(e),0,[0],e))}function Rn(e,t,r,n,a,s,i,l,u){for(var c=0,m=0,f=i,d=0,b=0,y=0,_=1,p=1,j=1,R=0,C="",A=a,S=s,P=n,k=C;p;)switch(y=R,R=ze()){case 40:if(y!=108&&Ae(k,f-1)==58){za(k+=se(Sn(R),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:k+=Sn(R);break;case 9:case 10:case 13:case 32:k+=yc(y);break;case 92:k+=bc(jn()-1,7);continue;case 47:switch(ht()){case 42:case 47:dn(Sc(xc(ze(),jn()),t,r),u);break;default:k+="/"}break;case 123*_:l[c++]=dt(k)*j;case 125*_:case 59:case 0:switch(R){case 0:case 125:p=0;case 59+m:j==-1&&(k=se(k,/\f/g,"")),b>0&&dt(k)-f&&dn(b>32?Hs(k+";",n,r,f-1):Hs(se(k," ","")+";",n,r,f-2),u);break;case 59:k+=";";default:if(dn(P=Ws(k,t,r,c,m,a,l,C,A=[],S=[],f),s),R===123)if(m===0)Rn(k,t,P,P,A,s,f,l,S);else switch(d===99&&Ae(k,3)===110?100:d){case 100:case 108:case 109:case 115:Rn(e,P,P,n&&dn(Ws(e,P,P,0,0,a,l,C,a,A=[],f),S),a,S,f,l,n?A:S);break;default:Rn(k,P,P,P,[""],S,0,l,S)}}c=m=b=0,_=j=1,C=k="",f=i;break;case 58:f=1+dt(k),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&_c()==125)continue}switch(k+=Wn(R),R*_){case 38:j=m>0?1:(k+="\f",-1);break;case 44:l[c++]=(dt(k)-1)*j,j=1;break;case 64:ht()===45&&(k+=Sn(ze())),d=ht(),m=f=dt(C=k+=vc(jn())),R++;break;case 45:y===45&&dt(k)==2&&(_=0)}}return s}function Ws(e,t,r,n,a,s,i,l,u,c,m){for(var f=a-1,d=a===0?s:[""],b=ys(d),y=0,_=0,p=0;y<n;++y)for(var j=0,R=zr(e,f+1,f=mc(_=i[y])),C=e;j<b;++j)(C=ki(_>0?d[j]+" "+R:se(R,/&\f/g,d[j])))&&(u[p++]=C);return Xn(e,t,r,a===0?ps:l,u,c,m)}function Sc(e,t,r){return Xn(e,t,r,Pi,Wn(pc()),zr(e,2,-2),0)}function Hs(e,t,r,n){return Xn(e,t,r,_s,zr(e,0,n),zr(e,n+1,-1),n)}function hr(e,t){for(var r="",n=ys(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Rc(e,t,r,n){switch(e.type){case cc:if(e.children.length)break;case uc:case _s:return e.return=e.return||e.value;case Pi:return"";case Ci:return e.return=e.value+"{"+hr(e.children,n)+"}";case ps:e.value=e.props.join(",")}return dt(r=hr(e.children,n))?e.return=e.value+"{"+r+"}":""}function wc(e){var t=ys(e);return function(r,n,a,s){for(var i="",l=0;l<t;l++)i+=e[l](r,n,a,s)||"";return i}}function Ac(e){return function(t){t.root||(t=t.return)&&e(t)}}var Pc=function(t,r,n){for(var a=0,s=0;a=s,s=ht(),a===38&&s===12&&(r[n]=1),!Kr(s);)ze();return Zr(t,De)},Cc=function(t,r){var n=-1,a=44;do switch(Kr(a)){case 0:a===38&&ht()===12&&(r[n]=1),t[n]+=Pc(De-1,r,n);break;case 2:t[n]+=Sn(a);break;case 4:if(a===44){t[++n]=ht()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Wn(a)}while(a=ze());return t},kc=function(t,r){return Ti(Cc(Ii(t),r))},Xs=new WeakMap,Mc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Xs.get(n))&&!a){Xs.set(t,!0);for(var s=[],i=kc(r,s),l=n.props,u=0,c=0;u<i.length;u++)for(var m=0;m<l.length;m++,c++)t.props[c]=s[u]?i[u].replace(/&\f/g,l[m]):l[m]+" "+i[u]}}},Ic=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Oi(e,t){switch(fc(e,t)){case 5103:return ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+Tn+e+Ce+e+e;case 6828:case 4268:return ae+e+Ce+e+e;case 6165:return ae+e+Ce+"flex-"+e+e;case 5187:return ae+e+se(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+Ce+"flex-$1$2")+e;case 5443:return ae+e+Ce+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ae+e+Ce+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ae+e+Ce+se(e,"shrink","negative")+e;case 5292:return ae+e+Ce+se(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+se(e,"-grow","")+ae+e+Ce+se(e,"grow","positive")+e;case 4554:return ae+se(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+Ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(e)-1-t>6)switch(Ae(e,t+1)){case 109:if(Ae(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Tn+(Ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~za(e,"stretch")?Oi(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ae(e,t+1)!==115)break;case 6444:switch(Ae(e,dt(e)-3-(~za(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Ae(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(Ae(e,t+11)){case 114:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Ce+e+e}return e}var Tc=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case _s:t.return=Oi(t.value,t.length);break;case Ci:return hr([Lr(t,{value:se(t.value,"@","@"+ae)})],a);case ps:if(t.length)return gc(t.props,function(s){switch(hc(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hr([Lr(t,{props:[se(s,/:(read-\w+)/,":"+Tn+"$1")]})],a);case"::placeholder":return hr([Lr(t,{props:[se(s,/:(plac\w+)/,":"+ae+"input-$1")]}),Lr(t,{props:[se(s,/:(plac\w+)/,":"+Tn+"$1")]}),Lr(t,{props:[se(s,/:(plac\w+)/,Ce+"input-$1")]})],a)}return""})}},Oc=[Tc],Ec=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(_){var p=_.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var a=t.stylisPlugins||Oc,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var p=_.getAttribute("data-emotion").split(" "),j=1;j<p.length;j++)s[p[j]]=!0;l.push(_)});var u,c=[Mc,Ic];{var m,f=[Rc,Ac(function(_){m.insert(_)})],d=wc(c.concat(a,f)),b=function(p){return hr(jc(p),d)};u=function(p,j,R,C){m=R,b(p?p+"{"+j.styles+"}":j.styles),C&&(y.inserted[j.name]=!0)}}var y={key:r,sheet:new lc({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return y.sheet.hydrate(l),y};let Wa;typeof document=="object"&&(Wa=Ec({key:"css",prepend:!0}));function Ei(e){const{injectFirst:t,children:r}=e;return t&&Wa?o.jsx(fr.CacheProvider,{value:Wa,children:r}):r}process.env.NODE_ENV!=="production"&&(Ei.propTypes={children:h.node,injectFirst:h.bool});function Lc(e){return e==null||Object.keys(e).length===0}function Li(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(Lc(a)?r:a):t;return o.jsx(fr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Li.propTypes={defaultTheme:h.object,styles:h.oneOfType([h.array,h.string,h.object,h.func])});/**
|
|
31
31
|
* @mui/styled-engine v5.16.6
|
|
32
32
|
*
|
|
33
33
|
* @license MIT
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/function
|
|
37
|
-
`)):n.some(s=>s===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...n)}:r}const
|
|
36
|
+
*/function $i(e,t){const r=qu(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const a=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
37
|
+
`)):n.some(s=>s===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...n)}:r}const Ni=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},$c=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Li,StyledEngineProvider:Ei,ThemeContext:fr.ThemeContext,css:fr.css,default:$i,internal_processStyles:Ni,keyframes:fr.keyframes},Symbol.toStringTag,{value:"Module"}));function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(null,arguments)}function Be(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function jt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fi(e){if(!jt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Fi(e[r])}),t}function et(e,t,r={clone:!0}){const n=r.clone?M({},e):e;return jt(e)&&jt(t)&&Object.keys(t).forEach(a=>{jt(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&jt(e[a])?n[a]=et(e[a],t[a],r):r.clone?n[a]=jt(t[a])?Fi(t[a]):t[a]:n[a]=t[a]}),n}const Nc=Object.freeze(Object.defineProperty({__proto__:null,default:et,isPlainObject:jt},Symbol.toStringTag,{value:"Module"})),Fc=["values","unit","step"],Dc=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>M({},r,{[n.key]:n.val}),{})};function Di(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Be(e,Fc),s=Dc(t),i=Object.keys(s);function l(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function c(d,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function m(d){return i.indexOf(d)+1<i.length?c(d,i[i.indexOf(d)+1]):l(d)}function f(d){const b=i.indexOf(d);return b===0?l(i[1]):b===i.length-1?u(i[b]):c(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return M({keys:i,values:s,up:l,down:u,between:c,only:m,not:f,unit:r},a)}const Bc={borderRadius:4},Nt=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Br(e,t){return t?et(e,t,{clone:!1}):e}const bs={xs:0,sm:600,md:900,lg:1200,xl:1536},qs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bs[e]}px)`};function ot(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||qs;return t.reduce((i,l,u)=>(i[s.up(s.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const s=n.breakpoints||qs;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||bs).indexOf(l)!==-1){const u=s.up(l);i[u]=r(t[l],l)}else{const u=l;i[u]=t[u]}return i},{})}return r(t)}function Bi(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const s=e.up(a);return n[s]={},n},{}))||{}}function Ui(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Uc(e,...t){const r=Bi(e),n=[r,...t].reduce((a,s)=>et(a,s),{});return Ui(Object.keys(r),n)}function Jc(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,s)=>{s<e.length&&(r[a]=!0)}):n.forEach(a=>{e[a]!=null&&(r[a]=!0)}),r}function Aa({values:e,breakpoints:t,base:r}){const n=r||Jc(e,t),a=Object.keys(n);if(a.length===0)return e;let s;return a.reduce((i,l,u)=>(Array.isArray(e)?(i[l]=e[u]!=null?e[u]:e[s],s=u):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[s],s=l):i[l]=e,i),{})}function Pe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Gr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Vc=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"}));function qn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function On(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=qn(e,r)||n,t&&(a=t(a,n,e)),a}function _e(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,s=i=>{if(i[t]==null)return null;const l=i[t],u=i.theme,c=qn(u,n)||{};return ot(i,l,f=>{let d=On(c,a,f);return f===d&&typeof f=="string"&&(d=On(c,a,`${t}${f==="default"?"":Pe(f)}`,f)),r===!1?d:{[r]:d}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Nt}:{},s.filterProps=[t],s}function Gc(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const zc={m:"margin",p:"padding"},Kc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ys={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Wc=Gc(e=>{if(e.length>2)if(Ys[e])e=Ys[e];else return[e];const[t,r]=e.split(""),n=zc[t],a=Kc[r]||"";return Array.isArray(a)?a.map(s=>n+s):[n+a]}),Yn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Hc=[...Yn,...Zn];function Qr(e,t,r,n){var a;const s=(a=qn(e,t,!1))!=null?a:r;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(`
|
|
38
38
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
39
39
|
`))),s[i]):typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
40
|
-
`)),()=>{})}function xs(e){return Qr(e,"spacing",8,"spacing")}function zt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Hc(e,t){return r=>e.reduce((n,a)=>(n[a]=zt(t,r),n),{})}function Xc(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Kc(r),s=Hc(a,n),i=e[r];return ot(e,i,s)}function Ui(e,t){const r=xs(e.theme);return Object.keys(e).map(n=>Xc(e,t,n,r)).reduce(Br,{})}function he(e){return Ui(e,Yn)}he.propTypes=process.env.NODE_ENV!=="production"?Yn.reduce((e,t)=>(e[t]=Nt,e),{}):{};he.filterProps=Yn;function ge(e){return Ui(e,Zn)}ge.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=Nt,e),{}):{};ge.filterProps=Zn;process.env.NODE_ENV!=="production"&&Wc.reduce((e,t)=>(e[t]=Nt,e),{});function qc(e=8){if(e.mui)return e;const t=xs({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function Qn(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(s=>{n[s]=a}),n),{}),r=n=>Object.keys(n).reduce((a,s)=>t[s]?Br(a,t[s](n)):a,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,a)=>Object.assign(n,a.propTypes),{}):{},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const Yc=rt("border",Ze),Zc=rt("borderTop",Ze),Qc=rt("borderRight",Ze),em=rt("borderBottom",Ze),tm=rt("borderLeft",Ze),rm=rt("borderColor"),nm=rt("borderTopColor"),am=rt("borderRightColor"),sm=rt("borderBottomColor"),om=rt("borderLeftColor"),im=rt("outline",Ze),lm=rt("outlineColor"),ea=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:zt(t,n)});return ot(e,e.borderRadius,r)}return null};ea.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Nt}:{};ea.filterProps=["borderRadius"];Qn(Yc,Zc,Qc,em,tm,rm,nm,am,sm,om,ea,im,lm);const ta=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qr(e.theme,"spacing",8,"gap"),r=n=>({gap:zt(t,n)});return ot(e,e.gap,r)}return null};ta.propTypes=process.env.NODE_ENV!=="production"?{gap:Nt}:{};ta.filterProps=["gap"];const ra=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:zt(t,n)});return ot(e,e.columnGap,r)}return null};ra.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Nt}:{};ra.filterProps=["columnGap"];const na=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:zt(t,n)});return ot(e,e.rowGap,r)}return null};na.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Nt}:{};na.filterProps=["rowGap"];const um=_e({prop:"gridColumn"}),cm=_e({prop:"gridRow"}),mm=_e({prop:"gridAutoFlow"}),dm=_e({prop:"gridAutoColumns"}),fm=_e({prop:"gridAutoRows"}),hm=_e({prop:"gridTemplateColumns"}),gm=_e({prop:"gridTemplateRows"}),pm=_e({prop:"gridTemplateAreas"}),_m=_e({prop:"gridArea"});Qn(ta,ra,na,um,cm,mm,dm,fm,hm,gm,pm,_m);function gr(e,t){return t==="grey"?t:e}const ym=_e({prop:"color",themeKey:"palette",transform:gr}),bm=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),xm=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});Qn(ym,bm,xm);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const vm=_e({prop:"width",transform:Ge}),vs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||bs[r];return s?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Ge(r)}};return ot(e,e.maxWidth,t)}return null};vs.filterProps=["maxWidth"];const jm=_e({prop:"minWidth",transform:Ge}),Sm=_e({prop:"height",transform:Ge}),Rm=_e({prop:"maxHeight",transform:Ge}),wm=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const Am=_e({prop:"boxSizing"});Qn(vm,vs,jm,Sm,Rm,wm,Am);const en={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ea},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:he},mt:{style:he},mr:{style:he},mb:{style:he},ml:{style:he},mx:{style:he},my:{style:he},margin:{style:he},marginTop:{style:he},marginRight:{style:he},marginBottom:{style:he},marginLeft:{style:he},marginX:{style:he},marginY:{style:he},marginInline:{style:he},marginInlineStart:{style:he},marginInlineEnd:{style:he},marginBlock:{style:he},marginBlockStart:{style:he},marginBlockEnd:{style:he},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ta},rowGap:{style:na},columnGap:{style:ra},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:vs},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Pm(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Cm(e,t){return typeof e=="function"?e(t):e}function Ji(){function e(r,n,a,s){const i={[r]:n,theme:a},l=s[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:m,style:f}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const d=qn(a,c)||{};return f?f(i):ot(i,n,y=>{let _=On(d,m,y);return y===_&&typeof y=="string"&&(_=On(d,m,`${r}${y==="default"?"":Pe(y)}`,y)),u===!1?_:{[u]:_}})}function t(r){var n;const{sx:a,theme:s={}}=r||{};if(!a)return null;const i=(n=s.unstable_sxConfig)!=null?n:en;function l(u){let c=u;if(typeof u=="function")c=u(s);else if(typeof u!="object")return u;if(!c)return null;const m=Di(s.breakpoints),f=Object.keys(m);let d=m;return Object.keys(c).forEach(b=>{const y=Cm(c[b],s);if(y!=null)if(typeof y=="object")if(i[b])d=Br(d,e(b,y,s,i));else{const _=ot({theme:s},y,p=>({[b]:p}));Pm(_,y)?d[b]=t({sx:y,theme:s}):d=Br(d,_)}else d=Br(d,e(b,y,s,i))}),Bi(f,d)}return Array.isArray(a)?a.map(l):l(a)}return t}const tn=Ji();tn.filterProps=["sx"];function Vi(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Mm=["breakpoints","palette","spacing","shape"];function rn(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:s={}}=e,i=Be(e,Mm),l=Fi(r),u=qc(a);let c=et({breakpoints:l,direction:"ltr",components:{},palette:k({mode:"light"},n),spacing:u,shape:k({},Dc,s)},i);return c.applyStyles=Vi,c=t.reduce((m,f)=>et(m,f),c),c.unstable_sxConfig=k({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const km=Object.freeze(Object.defineProperty({__proto__:null,default:rn,private_createBreakpoints:Fi,unstable_applyStyles:Vi},Symbol.toStringTag,{value:"Module"}));function Im(e){return Object.keys(e).length===0}function Tm(e=null){const t=N.useContext(fr.ThemeContext);return!t||Im(t)?e:t}const Om=rn();function Em(e=Om){return Tm(e)}const Lm=["sx"],$m=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:en;return Object.keys(e).forEach(s=>{a[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function Gi(e){const{sx:t}=e,r=Be(e,Lm),{systemProps:n,otherProps:a}=$m(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return jt(l)?k({},n,l):n}:s=k({},n,t),k({},a,{sx:s})}const Nm=Object.freeze(Object.defineProperty({__proto__:null,default:tn,extendSxProp:Gi,unstable_createStyleFunctionSx:Ji,unstable_defaultSxConfig:en},Symbol.toStringTag,{value:"Module"})),Zs=e=>e,Fm=()=>{let e=Zs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zs}}},zi=Fm();function Ki(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Ki(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Ki(e))&&(n&&(n+=" "),n+=t);return n}const Dm={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function nn(e,t,r="Mui"){const n=Dm[t];return n?`${r}-${n}`:`${zi.generate(e)}-${t}`}function Wi(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=nn(e,a,r)}),n}var Ha={exports:{}},oe={};/**
|
|
40
|
+
`)),()=>{})}function xs(e){return Qr(e,"spacing",8,"spacing")}function zt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Xc(e,t){return r=>e.reduce((n,a)=>(n[a]=zt(t,r),n),{})}function qc(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Wc(r),s=Xc(a,n),i=e[r];return ot(e,i,s)}function Ji(e,t){const r=xs(e.theme);return Object.keys(e).map(n=>qc(e,t,n,r)).reduce(Br,{})}function he(e){return Ji(e,Yn)}he.propTypes=process.env.NODE_ENV!=="production"?Yn.reduce((e,t)=>(e[t]=Nt,e),{}):{};he.filterProps=Yn;function ge(e){return Ji(e,Zn)}ge.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=Nt,e),{}):{};ge.filterProps=Zn;process.env.NODE_ENV!=="production"&&Hc.reduce((e,t)=>(e[t]=Nt,e),{});function Yc(e=8){if(e.mui)return e;const t=xs({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function Qn(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(s=>{n[s]=a}),n),{}),r=n=>Object.keys(n).reduce((a,s)=>t[s]?Br(a,t[s](n)):a,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,a)=>Object.assign(n,a.propTypes),{}):{},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const Zc=rt("border",Ze),Qc=rt("borderTop",Ze),em=rt("borderRight",Ze),tm=rt("borderBottom",Ze),rm=rt("borderLeft",Ze),nm=rt("borderColor"),am=rt("borderTopColor"),sm=rt("borderRightColor"),om=rt("borderBottomColor"),im=rt("borderLeftColor"),lm=rt("outline",Ze),um=rt("outlineColor"),ea=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:zt(t,n)});return ot(e,e.borderRadius,r)}return null};ea.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Nt}:{};ea.filterProps=["borderRadius"];Qn(Zc,Qc,em,tm,rm,nm,am,sm,om,im,ea,lm,um);const ta=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qr(e.theme,"spacing",8,"gap"),r=n=>({gap:zt(t,n)});return ot(e,e.gap,r)}return null};ta.propTypes=process.env.NODE_ENV!=="production"?{gap:Nt}:{};ta.filterProps=["gap"];const ra=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:zt(t,n)});return ot(e,e.columnGap,r)}return null};ra.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Nt}:{};ra.filterProps=["columnGap"];const na=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:zt(t,n)});return ot(e,e.rowGap,r)}return null};na.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Nt}:{};na.filterProps=["rowGap"];const cm=_e({prop:"gridColumn"}),mm=_e({prop:"gridRow"}),dm=_e({prop:"gridAutoFlow"}),fm=_e({prop:"gridAutoColumns"}),hm=_e({prop:"gridAutoRows"}),gm=_e({prop:"gridTemplateColumns"}),pm=_e({prop:"gridTemplateRows"}),_m=_e({prop:"gridTemplateAreas"}),ym=_e({prop:"gridArea"});Qn(ta,ra,na,cm,mm,dm,fm,hm,gm,pm,_m,ym);function gr(e,t){return t==="grey"?t:e}const bm=_e({prop:"color",themeKey:"palette",transform:gr}),xm=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),vm=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});Qn(bm,xm,vm);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const jm=_e({prop:"width",transform:Ge}),vs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||bs[r];return s?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Ge(r)}};return ot(e,e.maxWidth,t)}return null};vs.filterProps=["maxWidth"];const Sm=_e({prop:"minWidth",transform:Ge}),Rm=_e({prop:"height",transform:Ge}),wm=_e({prop:"maxHeight",transform:Ge}),Am=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const Pm=_e({prop:"boxSizing"});Qn(jm,vs,Sm,Rm,wm,Am,Pm);const en={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ea},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:he},mt:{style:he},mr:{style:he},mb:{style:he},ml:{style:he},mx:{style:he},my:{style:he},margin:{style:he},marginTop:{style:he},marginRight:{style:he},marginBottom:{style:he},marginLeft:{style:he},marginX:{style:he},marginY:{style:he},marginInline:{style:he},marginInlineStart:{style:he},marginInlineEnd:{style:he},marginBlock:{style:he},marginBlockStart:{style:he},marginBlockEnd:{style:he},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ta},rowGap:{style:na},columnGap:{style:ra},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:vs},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Cm(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function km(e,t){return typeof e=="function"?e(t):e}function Vi(){function e(r,n,a,s){const i={[r]:n,theme:a},l=s[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:m,style:f}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const d=qn(a,c)||{};return f?f(i):ot(i,n,y=>{let _=On(d,m,y);return y===_&&typeof y=="string"&&(_=On(d,m,`${r}${y==="default"?"":Pe(y)}`,y)),u===!1?_:{[u]:_}})}function t(r){var n;const{sx:a,theme:s={}}=r||{};if(!a)return null;const i=(n=s.unstable_sxConfig)!=null?n:en;function l(u){let c=u;if(typeof u=="function")c=u(s);else if(typeof u!="object")return u;if(!c)return null;const m=Bi(s.breakpoints),f=Object.keys(m);let d=m;return Object.keys(c).forEach(b=>{const y=km(c[b],s);if(y!=null)if(typeof y=="object")if(i[b])d=Br(d,e(b,y,s,i));else{const _=ot({theme:s},y,p=>({[b]:p}));Cm(_,y)?d[b]=t({sx:y,theme:s}):d=Br(d,_)}else d=Br(d,e(b,y,s,i))}),Ui(f,d)}return Array.isArray(a)?a.map(l):l(a)}return t}const tn=Vi();tn.filterProps=["sx"];function Gi(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Mm=["breakpoints","palette","spacing","shape"];function rn(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:s={}}=e,i=Be(e,Mm),l=Di(r),u=Yc(a);let c=et({breakpoints:l,direction:"ltr",components:{},palette:M({mode:"light"},n),spacing:u,shape:M({},Bc,s)},i);return c.applyStyles=Gi,c=t.reduce((m,f)=>et(m,f),c),c.unstable_sxConfig=M({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const Im=Object.freeze(Object.defineProperty({__proto__:null,default:rn,private_createBreakpoints:Di,unstable_applyStyles:Gi},Symbol.toStringTag,{value:"Module"}));function Tm(e){return Object.keys(e).length===0}function Om(e=null){const t=N.useContext(fr.ThemeContext);return!t||Tm(t)?e:t}const Em=rn();function Lm(e=Em){return Om(e)}const $m=["sx"],Nm=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:en;return Object.keys(e).forEach(s=>{a[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function zi(e){const{sx:t}=e,r=Be(e,$m),{systemProps:n,otherProps:a}=Nm(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return jt(l)?M({},n,l):n}:s=M({},n,t),M({},a,{sx:s})}const Fm=Object.freeze(Object.defineProperty({__proto__:null,default:tn,extendSxProp:zi,unstable_createStyleFunctionSx:Vi,unstable_defaultSxConfig:en},Symbol.toStringTag,{value:"Module"})),Zs=e=>e,Dm=()=>{let e=Zs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zs}}},Ki=Dm();function Wi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Wi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Wi(e))&&(n&&(n+=" "),n+=t);return n}const Bm={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function nn(e,t,r="Mui"){const n=Bm[t];return n?`${r}-${n}`:`${Ki.generate(e)}-${t}`}function Hi(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=nn(e,a,r)}),n}var Ha={exports:{}},oe={};/**
|
|
41
41
|
* @license React
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
@@ -45,7 +45,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var Qs;function
|
|
48
|
+
*/var Qs;function Um(){if(Qs)return oe;Qs=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(p){if(typeof p=="object"&&p!==null){var j=p.$$typeof;switch(j){case e:switch(p=p.type,p){case r:case a:case n:case c:case m:return p;default:switch(p=p&&p.$$typeof,p){case l:case i:case u:case d:case f:case s:return p;default:return j}}case t:return j}}}return oe.ContextConsumer=i,oe.ContextProvider=s,oe.Element=e,oe.ForwardRef=u,oe.Fragment=r,oe.Lazy=d,oe.Memo=f,oe.Portal=t,oe.Profiler=a,oe.StrictMode=n,oe.Suspense=c,oe.SuspenseList=m,oe.isAsyncMode=function(){return!1},oe.isConcurrentMode=function(){return!1},oe.isContextConsumer=function(p){return _(p)===i},oe.isContextProvider=function(p){return _(p)===s},oe.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},oe.isForwardRef=function(p){return _(p)===u},oe.isFragment=function(p){return _(p)===r},oe.isLazy=function(p){return _(p)===d},oe.isMemo=function(p){return _(p)===f},oe.isPortal=function(p){return _(p)===t},oe.isProfiler=function(p){return _(p)===a},oe.isStrictMode=function(p){return _(p)===n},oe.isSuspense=function(p){return _(p)===c},oe.isSuspenseList=function(p){return _(p)===m},oe.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===a||p===n||p===c||p===m||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===s||p.$$typeof===i||p.$$typeof===u||p.$$typeof===y||p.getModuleId!==void 0)},oe.typeOf=_,oe}var ie={};/**
|
|
49
49
|
* @license React
|
|
50
50
|
* react-is.development.js
|
|
51
51
|
*
|
|
@@ -53,12 +53,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var eo;function
|
|
56
|
+
*/var eo;function Jm(){return eo||(eo=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,_=!1,p=!1,j=!1,R=!1,C;C=Symbol.for("react.module.reference");function A(O){return!!(typeof O=="string"||typeof O=="function"||O===r||O===a||R||O===n||O===c||O===m||j||O===b||y||_||p||typeof O=="object"&&O!==null&&(O.$$typeof===d||O.$$typeof===f||O.$$typeof===s||O.$$typeof===i||O.$$typeof===u||O.$$typeof===C||O.getModuleId!==void 0))}function S(O){if(typeof O=="object"&&O!==null){var te=O.$$typeof;switch(te){case e:var fe=O.type;switch(fe){case r:case a:case n:case c:case m:return fe;default:var Ee=fe&&fe.$$typeof;switch(Ee){case l:case i:case u:case d:case f:case s:return Ee;default:return te}}case t:return te}}}var P=i,k=s,z=e,le=u,ce=r,D=d,q=f,G=t,Z=a,X=n,je=c,ue=m,ee=!1,we=!1;function Oe(O){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function nt(O){return we||(we=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function yt(O){return S(O)===i}function We(O){return S(O)===s}function Se(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function Ct(O){return S(O)===u}function lt(O){return S(O)===r}function He(O){return S(O)===d}function Ue(O){return S(O)===f}function ut(O){return S(O)===t}function ct(O){return S(O)===a}function Ft(O){return S(O)===n}function bt(O){return S(O)===c}function Je(O){return S(O)===m}ie.ContextConsumer=P,ie.ContextProvider=k,ie.Element=z,ie.ForwardRef=le,ie.Fragment=ce,ie.Lazy=D,ie.Memo=q,ie.Portal=G,ie.Profiler=Z,ie.StrictMode=X,ie.Suspense=je,ie.SuspenseList=ue,ie.isAsyncMode=Oe,ie.isConcurrentMode=nt,ie.isContextConsumer=yt,ie.isContextProvider=We,ie.isElement=Se,ie.isForwardRef=Ct,ie.isFragment=lt,ie.isLazy=He,ie.isMemo=Ue,ie.isPortal=ut,ie.isProfiler=ct,ie.isStrictMode=Ft,ie.isSuspense=bt,ie.isSuspenseList=Je,ie.isValidElementType=A,ie.typeOf=S}()),ie}process.env.NODE_ENV==="production"?Ha.exports=Um():Ha.exports=Jm();var to=Ha.exports;const Vm=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Xi(e){const t=`${e}`.match(Vm);return t&&t[1]||""}function qi(e,t=""){return e.displayName||e.name||Xi(e)||t}function ro(e,t,r){const n=qi(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Yi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qi(e,"Component");if(typeof e=="object")switch(e.$$typeof){case to.ForwardRef:return ro(e,e.render,"ForwardRef");case to.Memo:return ro(e,e.type,"memo");default:return}}}const Gm=Object.freeze(Object.defineProperty({__proto__:null,default:Yi,getFunctionName:Xi},Symbol.toStringTag,{value:"Module"})),zm=["ownerState"],Km=["variants"],Wm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Hm(e){return Object.keys(e).length===0}function Xm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qm=rn(),no=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fn({defaultTheme:e,theme:t,themeId:r}){return Hm(t)?e:t[r]||t}function Ym(e){return e?(t,r)=>r[e]:null}function wn(e,t){let{ownerState:r}=t,n=Be(t,zm);const a=typeof e=="function"?e(M({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(s=>wn(s,M({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:s=[]}=a;let l=Be(a,Km);return s.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props(M({ownerState:r},n,r)):Object.keys(u.props).forEach(m=>{(r==null?void 0:r[m])!==u.props[m]&&n[m]!==u.props[m]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style(M({ownerState:r},n,r)):u.style))}),l}return a}function Zm(e={}){const{themeId:t,defaultTheme:r=qm,rootShouldForwardProp:n=Pa,slotShouldForwardProp:a=Pa}=e,s=i=>tn(M({},i,{theme:fn(M({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{Ni(i,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:m,skipSx:f,overridesResolver:d=Ym(no(c))}=l,b=Be(l,Wm),y=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,_=f||!1;let p;process.env.NODE_ENV!=="production"&&u&&(p=`${u}-${no(c||"Root")}`);let j=Pa;c==="Root"||c==="root"?j=n:c?j=a:Xm(i)&&(j=void 0);const R=$i(i,M({shouldForwardProp:j,label:p},b)),C=S=>typeof S=="function"&&S.__emotion_real!==S||jt(S)?P=>wn(S,M({},P,{theme:fn({theme:P.theme,defaultTheme:r,themeId:t})})):S,A=(S,...P)=>{let k=C(S);const z=P?P.map(C):[];u&&d&&z.push(D=>{const q=fn(M({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[u]||!q.components[u].styleOverrides)return null;const G=q.components[u].styleOverrides,Z={};return Object.entries(G).forEach(([X,je])=>{Z[X]=wn(je,M({},D,{theme:q}))}),d(D,Z)}),u&&!y&&z.push(D=>{var q;const G=fn(M({},D,{defaultTheme:r,themeId:t})),Z=G==null||(q=G.components)==null||(q=q[u])==null?void 0:q.variants;return wn({variants:Z},M({},D,{theme:G}))}),_||z.push(s);const le=z.length-P.length;if(Array.isArray(S)&&le>0){const D=new Array(le).fill("");k=[...S,...D],k.raw=[...S.raw,...D]}const ce=R(k,...z);if(process.env.NODE_ENV!=="production"){let D;u&&(D=`${u}${Pe(c||"")}`),D===void 0&&(D=`Styled(${Yi(i)})`),ce.displayName=D}return i.muiName&&(ce.muiName=i.muiName),ce};return R.withConfig&&(A.withConfig=R.withConfig),A}}const Qm=Zm();function En(e,t){const r=M({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=M({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},s=t[n];r[n]={},!s||!Object.keys(s)?r[n]=a:!a||!Object.keys(a)?r[n]=s:(r[n]=M({},s),Object.keys(a).forEach(i=>{r[n][i]=En(a[i],s[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function ed(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:En(t.components[r].defaultProps,n)}function td({props:e,name:t,defaultTheme:r,themeId:n}){let a=Lm(r);return n&&(a=a[n]||a),ed({theme:a,name:t,props:e})}const js=typeof window<"u"?N.useLayoutEffect:N.useEffect;function dr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const rd=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"}));function ao(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function nd(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function ad(e,t=166){let r;function n(...a){const s=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function sd(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,a,s,i)=>{const l=a||"<<anonymous>>",u=i||n;return typeof r[n]<"u"?new Error(`The ${s} \`${u}\` of \`${l}\` is deprecated. ${t}`):null}}function od(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function pr(e){return e&&e.ownerDocument||document}function id(e){return pr(e).defaultView||window}function ld(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?M({},t.propTypes):null;return a=>(s,i,l,u,c,...m)=>{const f=c||i,d=r==null?void 0:r[f];if(d){const b=d(s,i,l,u,c,...m);if(b)return b}return typeof s[i]<"u"&&!s[a]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${a}\` prop.`):null}}function Zi(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let so=0;function ud(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(so+=1,r(`mui-${so}`))},[t]),n}const oo=N.useId;function cd(e){if(oo!==void 0){const t=oo();return e??t}return ud(e)}function md(e,t,r,n,a){if(process.env.NODE_ENV==="production")return null;const s=a||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function Qi({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=N.useRef(e!==void 0),[s,i]=N.useState(t),l=a?e:s;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{a!==(e!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${n} state of ${r} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
57
57
|
`))},[n,r,e]);const{current:c}=N.useRef(t);N.useEffect(()=>{!a&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
58
|
-
`))},[JSON.stringify(t)])}const u=N.useCallback(c=>{a||i(c)},[]);return[l,u]}function An(e){const t=N.useRef(e);return js(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Ln(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Yi(r,t)})},e)}class Ss{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ss}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let aa=!0,Xa=!1;const md=new Ss,dd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fd(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&dd[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hd(e){e.metaKey||e.altKey||e.ctrlKey||(aa=!0)}function Ca(){aa=!1}function gd(){this.visibilityState==="hidden"&&Xa&&(aa=!0)}function pd(e){e.addEventListener("keydown",hd,!0),e.addEventListener("mousedown",Ca,!0),e.addEventListener("pointerdown",Ca,!0),e.addEventListener("touchstart",Ca,!0),e.addEventListener("visibilitychange",gd,!0)}function _d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return aa||fd(t)}function Qi(){const e=N.useCallback(a=>{a!=null&&pd(a.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Xa=!0,md.start(100,()=>{Xa=!1}),t.current=!1,!0):!1}function n(a){return _d(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const yd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Rs(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}function Ur(e){return typeof e=="string"}function bd(e,t,r){return e===void 0||Ur(e)?t:k({},t,{ownerState:k({},t.ownerState,r)})}function Pn(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function io(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function xd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:s}=e;if(!t){const b=gt(r==null?void 0:r.className,s,a==null?void 0:a.className,n==null?void 0:n.className),y=k({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),_=k({},r,a,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=Pn(k({},a,n)),l=io(n),u=io(a),c=t(i),m=gt(c==null?void 0:c.className,r==null?void 0:r.className,s,a==null?void 0:a.className,n==null?void 0:n.className),f=k({},c==null?void 0:c.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),d=k({},c,r,u,l);return m.length>0&&(d.className=m),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:c.ref}}function vd(e,t,r){return typeof e=="function"?e(t,r):e}const jd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Tt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:s=!1}=e,i=Be(e,jd),l=s?{}:vd(n,a),{props:u,internalRef:c}=xd(k({},i,{externalSlotProps:l})),m=Ln(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return bd(r,k({},u,{ref:m}),a)}const Sd=N.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const Rd=()=>{const e=N.useContext(Sd);return e??!1},wd=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Ad(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?En(a.defaultProps,n):!a.styleOverrides&&!a.variants?En(a,n):n}function Pd({props:e,name:t}){const r=N.useContext(wd);return Ad({props:e,name:t,theme:{components:r}})}const Cd=["component","direction","spacing","divider","children","className","useFlexGap"],Md=rn(),kd=Zm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Id(e){return ed({props:e,name:"MuiStack",defaultTheme:Md})}function Td(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,a,s)=>(n.push(a),s<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${s}`})),n),[])}const Od=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Ed=({ownerState:e,theme:t})=>{let r=k({display:"flex",flexDirection:"column"},ot({theme:t},Aa({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xs(t),a=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),s=Aa({values:e.direction,base:a}),i=Aa({values:e.spacing,base:a});typeof s=="object"&&Object.keys(s).forEach((u,c,m)=>{if(!s[u]){const d=c>0?s[m[c-1]]:"column";s[u]=d}}),r=et(r,ot({theme:t},i,(u,c)=>e.useFlexGap?{gap:zt(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Od(c?s[c]:e.direction)}`]:zt(n,u)}}))}return r=Bc(t.breakpoints,r),r};function Ld(e={}){const{createStyledComponent:t=kd,useThemeProps:r=Id,componentName:n="MuiStack"}=e,a=()=>Rs({root:["root"]},u=>nn(n,u),{}),s=t(Ed),i=N.forwardRef(function(u,c){const m=r(u),f=Gi(m),{component:d="div",direction:b="column",spacing:y=0,divider:_,children:p,className:j,useFlexGap:R=!1}=f,C=Be(f,Cd),A={direction:b,spacing:y,useFlexGap:R},S=a();return o.jsx(s,k({as:d,ownerState:A,ref:c,className:gt(S.root,j)},C,{children:_?Td(p,_):p}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:h.node,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])}),i}var an={},el={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(el);var sa=el.exports,Ma={exports:{}},lo;function $d(){return lo||(lo=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)({}).hasOwnProperty.call(a,s)&&(r[s]=a[s])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ma)),Ma.exports}var ka={exports:{}},uo;function Nd(){return uo||(uo=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.includes(s))continue;a[s]=r[s]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ka)),ka.exports}const Fd=Rt(Lc),Dd=Rt($c),Bd=Rt(Jc),Ud=Rt(Vm),Jd=Rt(km),Vd=Rt(Nm);var xr=sa;Object.defineProperty(an,"__esModule",{value:!0});var Gd=an.default=af;an.shouldForwardProp=Cn;an.systemDefaultTheme=void 0;var Ye=xr($d()),qa=xr(Nd()),co=Qd(Fd),zd=Dd,Kd=xr(Bd),Wd=xr(Ud),Hd=xr(Jd),Xd=xr(Vd);const qd=["ownerState"],Yd=["variants"],Zd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(tl=function(n){return n?r:t})(e)}function Qd(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=tl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=a?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function ef(e){return Object.keys(e).length===0}function tf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const rf=an.systemDefaultTheme=(0,Hd.default)(),mo=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hn({defaultTheme:e,theme:t,themeId:r}){return ef(t)?e:t[r]||t}function nf(e){return e?(t,r)=>r[e]:null}function Mn(e,t){let{ownerState:r}=t,n=(0,qa.default)(t,qd);const a=typeof e=="function"?e((0,Ye.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(s=>Mn(s,(0,Ye.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:s=[]}=a;let l=(0,qa.default)(a,Yd);return s.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props((0,Ye.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(m=>{(r==null?void 0:r[m])!==u.props[m]&&n[m]!==u.props[m]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style((0,Ye.default)({ownerState:r},n,r)):u.style))}),l}return a}function af(e={}){const{themeId:t,defaultTheme:r=rf,rootShouldForwardProp:n=Cn,slotShouldForwardProp:a=Cn}=e,s=i=>(0,Xd.default)((0,Ye.default)({},i,{theme:hn((0,Ye.default)({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{(0,co.internal_processStyles)(i,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:m,skipSx:f,overridesResolver:d=nf(mo(c))}=l,b=(0,qa.default)(l,Zd),y=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,_=f||!1;let p;process.env.NODE_ENV!=="production"&&u&&(p=`${u}-${mo(c||"Root")}`);let j=Cn;c==="Root"||c==="root"?j=n:c?j=a:tf(i)&&(j=void 0);const R=(0,co.default)(i,(0,Ye.default)({shouldForwardProp:j,label:p},b)),C=S=>typeof S=="function"&&S.__emotion_real!==S||(0,zd.isPlainObject)(S)?P=>Mn(S,(0,Ye.default)({},P,{theme:hn({theme:P.theme,defaultTheme:r,themeId:t})})):S,A=(S,...P)=>{let M=C(S);const z=P?P.map(C):[];u&&d&&z.push(D=>{const q=hn((0,Ye.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[u]||!q.components[u].styleOverrides)return null;const G=q.components[u].styleOverrides,Z={};return Object.entries(G).forEach(([X,je])=>{Z[X]=Mn(je,(0,Ye.default)({},D,{theme:q}))}),d(D,Z)}),u&&!y&&z.push(D=>{var q;const G=hn((0,Ye.default)({},D,{defaultTheme:r,themeId:t})),Z=G==null||(q=G.components)==null||(q=q[u])==null?void 0:q.variants;return Mn({variants:Z},(0,Ye.default)({},D,{theme:G}))}),_||z.push(s);const le=z.length-P.length;if(Array.isArray(S)&&le>0){const D=new Array(le).fill("");M=[...S,...D],M.raw=[...S.raw,...D]}const ce=R(M,...z);if(process.env.NODE_ENV!=="production"){let D;u&&(D=`${u}${(0,Kd.default)(c||"")}`),D===void 0&&(D=`Styled(${(0,Wd.default)(i)})`),ce.displayName=D}return i.muiName&&(ce.muiName=i.muiName),ce};return R.withConfig&&(A.withConfig=R.withConfig),A}}function sf(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ye={};const of=Rt(nc),lf=Rt(td);var rl=sa;Object.defineProperty(ye,"__esModule",{value:!0});var fo=ye.alpha=ol;ye.blend=yf;ye.colorChannel=void 0;var Ya=ye.darken=As;ye.decomposeColor=tt;ye.emphasize=il;var ho=ye.getContrastRatio=ff;ye.getLuminance=$n;ye.hexToRgb=nl;ye.hslToRgb=sl;var Za=ye.lighten=Ps;ye.private_safeAlpha=hf;ye.private_safeColorChannel=void 0;ye.private_safeDarken=gf;ye.private_safeEmphasize=_f;ye.private_safeLighten=pf;ye.recomposeColor=vr;ye.rgbToHex=df;var go=rl(of),uf=rl(lf);function ws(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,uf.default)(e,t,r)}function nl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function cf(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function tt(e){if(e.type)return e;if(e.charAt(0)==="#")return tt(nl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
58
|
+
`))},[JSON.stringify(t)])}const u=N.useCallback(c=>{a||i(c)},[]);return[l,u]}function An(e){const t=N.useRef(e);return js(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Ln(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Zi(r,t)})},e)}class Ss{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ss}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let aa=!0,Xa=!1;const dd=new Ss,fd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function hd(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&fd[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gd(e){e.metaKey||e.altKey||e.ctrlKey||(aa=!0)}function Ca(){aa=!1}function pd(){this.visibilityState==="hidden"&&Xa&&(aa=!0)}function _d(e){e.addEventListener("keydown",gd,!0),e.addEventListener("mousedown",Ca,!0),e.addEventListener("pointerdown",Ca,!0),e.addEventListener("touchstart",Ca,!0),e.addEventListener("visibilitychange",pd,!0)}function yd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return aa||hd(t)}function el(){const e=N.useCallback(a=>{a!=null&&_d(a.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Xa=!0,dd.start(100,()=>{Xa=!1}),t.current=!1,!0):!1}function n(a){return yd(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const bd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Rs(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}function Ur(e){return typeof e=="string"}function xd(e,t,r){return e===void 0||Ur(e)?t:M({},t,{ownerState:M({},t.ownerState,r)})}function Pn(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function io(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function vd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:s}=e;if(!t){const b=gt(r==null?void 0:r.className,s,a==null?void 0:a.className,n==null?void 0:n.className),y=M({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),_=M({},r,a,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=Pn(M({},a,n)),l=io(n),u=io(a),c=t(i),m=gt(c==null?void 0:c.className,r==null?void 0:r.className,s,a==null?void 0:a.className,n==null?void 0:n.className),f=M({},c==null?void 0:c.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),d=M({},c,r,u,l);return m.length>0&&(d.className=m),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:c.ref}}function jd(e,t,r){return typeof e=="function"?e(t,r):e}const Sd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Tt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:s=!1}=e,i=Be(e,Sd),l=s?{}:jd(n,a),{props:u,internalRef:c}=vd(M({},i,{externalSlotProps:l})),m=Ln(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return xd(r,M({},u,{ref:m}),a)}const Rd=N.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const wd=()=>{const e=N.useContext(Rd);return e??!1},Ad=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Pd(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?En(a.defaultProps,n):!a.styleOverrides&&!a.variants?En(a,n):n}function Cd({props:e,name:t}){const r=N.useContext(Ad);return Pd({props:e,name:t,theme:{components:r}})}const kd=["component","direction","spacing","divider","children","className","useFlexGap"],Md=rn(),Id=Qm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Td(e){return td({props:e,name:"MuiStack",defaultTheme:Md})}function Od(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,a,s)=>(n.push(a),s<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${s}`})),n),[])}const Ed=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Ld=({ownerState:e,theme:t})=>{let r=M({display:"flex",flexDirection:"column"},ot({theme:t},Aa({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xs(t),a=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),s=Aa({values:e.direction,base:a}),i=Aa({values:e.spacing,base:a});typeof s=="object"&&Object.keys(s).forEach((u,c,m)=>{if(!s[u]){const d=c>0?s[m[c-1]]:"column";s[u]=d}}),r=et(r,ot({theme:t},i,(u,c)=>e.useFlexGap?{gap:zt(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Ed(c?s[c]:e.direction)}`]:zt(n,u)}}))}return r=Uc(t.breakpoints,r),r};function $d(e={}){const{createStyledComponent:t=Id,useThemeProps:r=Td,componentName:n="MuiStack"}=e,a=()=>Rs({root:["root"]},u=>nn(n,u),{}),s=t(Ld),i=N.forwardRef(function(u,c){const m=r(u),f=zi(m),{component:d="div",direction:b="column",spacing:y=0,divider:_,children:p,className:j,useFlexGap:R=!1}=f,C=Be(f,kd),A={direction:b,spacing:y,useFlexGap:R},S=a();return o.jsx(s,M({as:d,ownerState:A,ref:c,className:gt(S.root,j)},C,{children:_?Od(p,_):p}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:h.node,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])}),i}var an={},tl={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(tl);var sa=tl.exports,ka={exports:{}},lo;function Nd(){return lo||(lo=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)({}).hasOwnProperty.call(a,s)&&(r[s]=a[s])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ka)),ka.exports}var Ma={exports:{}},uo;function Fd(){return uo||(uo=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.includes(s))continue;a[s]=r[s]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ma)),Ma.exports}const Dd=Rt($c),Bd=Rt(Nc),Ud=Rt(Vc),Jd=Rt(Gm),Vd=Rt(Im),Gd=Rt(Fm);var xr=sa;Object.defineProperty(an,"__esModule",{value:!0});var zd=an.default=sf;an.shouldForwardProp=Cn;an.systemDefaultTheme=void 0;var Ye=xr(Nd()),qa=xr(Fd()),co=ef(Dd),Kd=Bd,Wd=xr(Ud),Hd=xr(Jd),Xd=xr(Vd),qd=xr(Gd);const Yd=["ownerState"],Zd=["variants"],Qd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(rl=function(n){return n?r:t})(e)}function ef(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=rl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=a?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function tf(e){return Object.keys(e).length===0}function rf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const nf=an.systemDefaultTheme=(0,Xd.default)(),mo=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hn({defaultTheme:e,theme:t,themeId:r}){return tf(t)?e:t[r]||t}function af(e){return e?(t,r)=>r[e]:null}function kn(e,t){let{ownerState:r}=t,n=(0,qa.default)(t,Yd);const a=typeof e=="function"?e((0,Ye.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(s=>kn(s,(0,Ye.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:s=[]}=a;let l=(0,qa.default)(a,Zd);return s.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props((0,Ye.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(m=>{(r==null?void 0:r[m])!==u.props[m]&&n[m]!==u.props[m]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style((0,Ye.default)({ownerState:r},n,r)):u.style))}),l}return a}function sf(e={}){const{themeId:t,defaultTheme:r=nf,rootShouldForwardProp:n=Cn,slotShouldForwardProp:a=Cn}=e,s=i=>(0,qd.default)((0,Ye.default)({},i,{theme:hn((0,Ye.default)({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{(0,co.internal_processStyles)(i,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:m,skipSx:f,overridesResolver:d=af(mo(c))}=l,b=(0,qa.default)(l,Qd),y=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,_=f||!1;let p;process.env.NODE_ENV!=="production"&&u&&(p=`${u}-${mo(c||"Root")}`);let j=Cn;c==="Root"||c==="root"?j=n:c?j=a:rf(i)&&(j=void 0);const R=(0,co.default)(i,(0,Ye.default)({shouldForwardProp:j,label:p},b)),C=S=>typeof S=="function"&&S.__emotion_real!==S||(0,Kd.isPlainObject)(S)?P=>kn(S,(0,Ye.default)({},P,{theme:hn({theme:P.theme,defaultTheme:r,themeId:t})})):S,A=(S,...P)=>{let k=C(S);const z=P?P.map(C):[];u&&d&&z.push(D=>{const q=hn((0,Ye.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[u]||!q.components[u].styleOverrides)return null;const G=q.components[u].styleOverrides,Z={};return Object.entries(G).forEach(([X,je])=>{Z[X]=kn(je,(0,Ye.default)({},D,{theme:q}))}),d(D,Z)}),u&&!y&&z.push(D=>{var q;const G=hn((0,Ye.default)({},D,{defaultTheme:r,themeId:t})),Z=G==null||(q=G.components)==null||(q=q[u])==null?void 0:q.variants;return kn({variants:Z},(0,Ye.default)({},D,{theme:G}))}),_||z.push(s);const le=z.length-P.length;if(Array.isArray(S)&&le>0){const D=new Array(le).fill("");k=[...S,...D],k.raw=[...S.raw,...D]}const ce=R(k,...z);if(process.env.NODE_ENV!=="production"){let D;u&&(D=`${u}${(0,Wd.default)(c||"")}`),D===void 0&&(D=`Styled(${(0,Hd.default)(i)})`),ce.displayName=D}return i.muiName&&(ce.muiName=i.muiName),ce};return R.withConfig&&(A.withConfig=R.withConfig),A}}function of(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ye={};const lf=Rt(ac),uf=Rt(rd);var nl=sa;Object.defineProperty(ye,"__esModule",{value:!0});var fo=ye.alpha=il;ye.blend=bf;ye.colorChannel=void 0;var Ya=ye.darken=As;ye.decomposeColor=tt;ye.emphasize=ll;var ho=ye.getContrastRatio=hf;ye.getLuminance=$n;ye.hexToRgb=al;ye.hslToRgb=ol;var Za=ye.lighten=Ps;ye.private_safeAlpha=gf;ye.private_safeColorChannel=void 0;ye.private_safeDarken=pf;ye.private_safeEmphasize=yf;ye.private_safeLighten=_f;ye.recomposeColor=vr;ye.rgbToHex=ff;var go=nl(lf),cf=nl(uf);function ws(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,cf.default)(e,t,r)}function al(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function mf(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function tt(e){if(e.type)return e;if(e.charAt(0)==="#")return tt(al(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
59
59
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,go.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space.
|
|
60
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,go.default)(10,a))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:a}}const
|
|
61
|
-
`))}return p}const d=({color:_,name:p,mainShade:j=500,lightShade:R=300,darkShade:C=700})=>{if(_=
|
|
60
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,go.default)(10,a))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:a}}const sl=e=>{const t=tt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ye.colorChannel=sl;const df=(e,t)=>{try{return sl(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ye.private_safeColorChannel=df;function vr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,s)=>s<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function ff(e){if(e.indexOf("#")===0)return e;const{values:t}=tt(e);return`#${t.map((r,n)=>mf(n===3?Math.round(255*r):r)).join("")}`}function ol(e){e=tt(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,s=n*Math.min(a,1-a),i=(c,m=(c+r/30)%12)=>a-s*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),vr({type:l,values:u})}function $n(e){e=tt(e);let t=e.type==="hsl"||e.type==="hsla"?tt(ol(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function hf(e,t){const r=$n(e),n=$n(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function il(e,t){return e=tt(e),t=ws(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vr(e)}function gf(e,t,r){try{return il(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function As(e,t){if(e=tt(e),t=ws(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return vr(e)}function pf(e,t,r){try{return As(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ps(e,t){if(e=tt(e),t=ws(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return vr(e)}function _f(e,t,r){try{return Ps(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ll(e,t=.15){return $n(e)>.5?As(e,t):Ps(e,t)}function yf(e,t,r){try{return ll(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function bf(e,t,r,n=1){const a=(u,c)=>Math.round((u**(1/n)*(1-r)+c**(1/n)*r)**n),s=tt(e),i=tt(t),l=[a(s.values[0],i.values[0]),a(s.values[1],i.values[1]),a(s.values[2],i.values[2])];return vr({type:"rgb",values:l})}const Wr={black:"#000",white:"#fff"},xf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},sr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},or={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$r={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ir={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ur={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},vf=["mode","contrastThreshold","tonalOffset"],po={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Wr.white,default:Wr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ia={text:{primary:Wr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Wr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _o(e,t,r,n){const a=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Za(e.main,a):t==="dark"&&(e.dark=Ya(e.main,s)))}function jf(e="light"){return e==="dark"?{main:ir[200],light:ir[50],dark:ir[400]}:{main:ir[700],light:ir[400],dark:ir[800]}}function Sf(e="light"){return e==="dark"?{main:sr[200],light:sr[50],dark:sr[400]}:{main:sr[500],light:sr[300],dark:sr[700]}}function Rf(e="light"){return e==="dark"?{main:or[500],light:or[300],dark:or[700]}:{main:or[700],light:or[400],dark:or[800]}}function wf(e="light"){return e==="dark"?{main:lr[400],light:lr[300],dark:lr[700]}:{main:lr[700],light:lr[500],dark:lr[900]}}function Af(e="light"){return e==="dark"?{main:ur[400],light:ur[300],dark:ur[700]}:{main:ur[800],light:ur[500],dark:ur[900]}}function Pf(e="light"){return e==="dark"?{main:$r[400],light:$r[300],dark:$r[700]}:{main:"#ed6c02",light:$r[500],dark:$r[900]}}function Cf(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Be(e,vf),s=e.primary||jf(t),i=e.secondary||Sf(t),l=e.error||Rf(t),u=e.info||wf(t),c=e.success||Af(t),m=e.warning||Pf(t);function f(_){const p=ho(_,Ia.text.primary)>=r?Ia.text.primary:po.text.primary;if(process.env.NODE_ENV!=="production"){const j=ho(_,p);j<3&&console.error([`MUI: The contrast ratio of ${j}:1 for ${p} on ${_}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
61
|
+
`))}return p}const d=({color:_,name:p,mainShade:j=500,lightShade:R=300,darkShade:C=700})=>{if(_=M({},_),!_.main&&_[j]&&(_.main=_[j]),!_.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${p?` (${p})`:""} provided to augmentColor(color) is invalid.
|
|
62
62
|
The color object needs to have a \`main\` property or a \`${j}\` property.`:Gr(11,p?` (${p})`:"",j));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${p?` (${p})`:""} provided to augmentColor(color) is invalid.
|
|
63
63
|
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
|
|
64
64
|
|
|
@@ -72,13 +72,13 @@ const theme1 = createTheme({ palette: {
|
|
|
72
72
|
|
|
73
73
|
const theme2 = createTheme({ palette: {
|
|
74
74
|
primary: { main: green[500] },
|
|
75
|
-
} });`:Gr(12,p?` (${p})`:"",JSON.stringify(_.main)));return _o(_,"light",R,n),_o(_,"dark",C,n),_.contrastText||(_.contrastText=f(_.main)),_},b={dark:Ia,light:po};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),et(
|
|
76
|
-
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(m=>`${m} ${typeof i=="string"?i:xo(i)} ${l} ${typeof u=="string"?u:xo(u)}`).join(",")}},e,{easing:t,duration:r})}const
|
|
77
|
-
`))}d[y]={}}}};Object.keys(c.components).forEach(d=>{const b=c.components[d].styleOverrides;b&&d.indexOf("Mui")===0&&f(b,d)})}return c.unstable_sxConfig=k({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const Vf=Jf(),Gf="$$material";function Cs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zf=e=>Cs(e)&&e!=="classes",wt=Gd({themeId:Gf,defaultTheme:Vf,rootShouldForwardProp:zf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function Ms(e){return Pd(e)}const _r=Ld({createStyledComponent:wt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ms({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:h.node,component:h.elementType,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),useFlexGap:h.bool});const Kf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Nn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Kf,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Nn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Nn(this.logger,t)}}var ft=new Nn;class oa{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l.apply(l,[t,...n])})}}const Nr=()=>{let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r},vo=e=>e==null?"":""+e,Wf=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Hf=/###/g,jo=e=>e&&e.indexOf("###")>-1?e.replace(Hf,"."):e,So=e=>!e||typeof e=="string",Jr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let a=0;for(;a<n.length-1;){if(So(e))return{};const s=jo(n[a]);!e[s]&&r&&(e[s]=new r),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++a}return So(e)?{}:{obj:e,k:jo(n[a])}},Ro=(e,t,r)=>{const{obj:n,k:a}=Jr(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let s=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=r},Xf=(e,t,r,n)=>{const{obj:a,k:s}=Jr(e,t,Object);a[s]=a[s]||[],a[s].push(r)},Fn=(e,t)=>{const{obj:r,k:n}=Jr(e,t);if(r)return r[n]},qf=(e,t,r)=>{const n=Fn(e,r);return n!==void 0?n:Fn(t,r)},ll=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):ll(e[n],t[n],r):e[n]=t[n]);return e},cr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Yf={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Zf=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Yf[t]):e;class Qf{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const e0=[" ",",","?","!",";"],t0=new Qf(20),r0=(e,t,r)=>{t=t||"",r=r||"";const n=e0.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const a=t0.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(e);if(!s){const i=e.indexOf(r);i>0&&!a.test(e.substring(0,i))&&(s=!0)}return s},Qa=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let a=e;for(let s=0;s<n.length;){if(!a||typeof a!="object")return;let i,l="";for(let u=s;u<n.length;++u)if(u!==s&&(l+=r),l+=n[u],i=a[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<n.length-1)continue;s+=u-s+1;break}a=i}return a},Dn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class wo extends oa{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,r],n&&(Array.isArray(n)?l.push(...n):typeof n=="string"&&s?l.push(...n.split(s)):l.push(n)));const u=Fn(this.data,l);return!u&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),u||!i||typeof n!="string"?u:Qa(this.data&&this.data[t]&&this.data[t][r],n,s)}addResource(t,r,n,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),a=r,r=l[1]),this.addNamespaces(r),Ro(this.data,l,a),s.silent||this.emit("added",t,r,n,a)}addResources(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in n)(typeof n[s]=="string"||Array.isArray(n[s]))&&this.addResource(t,r,s,n[s],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),a=n,n=r,r=l[1]),this.addNamespaces(r);let u=Fn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?ll(u,n,s):u={...u,...n},Ro(this.data,l,u),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}}var ul={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,r,n,a))}),t}};const Ao={};class Bn extends oa{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Wf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ft.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let s=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!r0(t,n,a);if(i&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:s};const c=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(a)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),u=l[l.length-1],c=r.lng||this.language,m=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(m){const A=r.nsSeparator||this.options.nsSeparator;return a?{res:`${u}${A}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${A}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:i}const f=this.resolve(t,r);let d=f&&f.res;const b=f&&f.usedKey||i,y=f&&f.exactUsedKey||i,_=Object.prototype.toString.apply(d),p=["[object Number]","[object Function]","[object RegExp]"],j=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&p.indexOf(_)<0&&!(typeof j=="string"&&Array.isArray(d))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,d,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=A,f.usedParams=this.getUsedParamsDetails(r),f):A}if(s){const A=Array.isArray(d),S=A?[]:{},P=A?y:b;for(const M in d)if(Object.prototype.hasOwnProperty.call(d,M)){const z=`${P}${s}${M}`;S[M]=this.translate(z,{...r,joinArrays:!1,ns:l}),S[M]===z&&(S[M]=d[M])}d=S}}else if(R&&typeof j=="string"&&Array.isArray(d))d=d.join(j),d&&(d=this.extendTranslation(d,t,r,n));else{let A=!1,S=!1;const P=r.count!==void 0&&typeof r.count!="string",M=Bn.hasDefaultValue(r),z=P?this.pluralResolver.getSuffix(c,r.count,r):"",le=r.ordinal&&P?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",ce=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ce&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(d)&&M&&(A=!0,d=D),this.isValidLookup(d)||(S=!0,d=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:d,Z=M&&D!==d&&this.options.updateMissing;if(S||A||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,u,i,Z?D:d),s){const ee=this.resolve(i,{...r,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let X=[];const je=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&je&&je[0])for(let ee=0;ee<je.length;ee++)X.push(je[ee]);else this.options.saveMissingTo==="all"?X=this.languageUtils.toResolveHierarchy(r.lng||this.language):X.push(r.lng||this.language);const ue=(ee,we,Oe)=>{const nt=M&&Oe!==d?Oe:G;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,u,we,nt,Z,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,u,we,nt,Z,r),this.emit("missingKey",ee,u,we,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?X.forEach(ee=>{const we=this.pluralResolver.getSuffixes(ee,r);ce&&r[`defaultValue${this.options.pluralSeparator}zero`]&&we.indexOf(`${this.options.pluralSeparator}zero`)<0&&we.push(`${this.options.pluralSeparator}zero`),we.forEach(Oe=>{ue([ee],i+Oe,r[`defaultValue${Oe}`]||D)})}):ue(X,i,D))}d=this.extendTranslation(d,t,r,f,n),S&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${u}:${i}`),(S||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,A?d:void 0):d=this.options.parseMissingKeyHandler(d))}return a?(f.res=d,f.usedParams=this.getUsedParamsDetails(r),f):d}extendTranslation(t,r,n,a,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(c){const d=t.match(this.interpolator.nestingRegexp);m=d&&d.length}let f=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,n.lng||this.language||a.usedLng,n),c){const d=t.match(this.interpolator.nestingRegexp),b=d&&d.length;m<b&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(n.lng=this.language||a.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,b=new Array(d),y=0;y<d;y++)b[y]=arguments[y];return s&&s[0]===b[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${r[0]}`),null):i.translate(...b,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&n.applyPostProcessor!==!1&&(t=ul.handle(u,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a,s,i,l;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(u,r),m=c.key;a=m;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=r.count!==void 0&&typeof r.count!="string",b=d&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(p=>{this.isValidLookup(n)||(l=p,!Ao[`${_[0]}-${p}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Ao[`${_[0]}-${p}`]=!0,this.logger.warn(`key "${a}" for languages "${_.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(j=>{if(this.isValidLookup(n))return;i=j;const R=[m];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,m,j,p,r);else{let A;d&&(A=this.pluralResolver.getSuffix(j,r.count,r));const S=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(R.push(m+A),r.ordinal&&A.indexOf(P)===0&&R.push(m+A.replace(P,this.options.pluralSeparator)),b&&R.push(m+S)),y){const M=`${m}${this.options.contextSeparator}${r.context}`;R.push(M),d&&(R.push(M+A),r.ordinal&&A.indexOf(P)===0&&R.push(M+A.replace(P,this.options.pluralSeparator)),b&&R.push(M+S))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(s=C,n=this.getResource(j,p,C,r))}))})}),{res:n,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let a=n?t.replace:t;if(n&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const s of r)delete a[s]}return a}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Ta=e=>e.charAt(0).toUpperCase()+e.slice(1);class Po{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ft.create("languageUtils")}getScriptPartFromCode(t){if(t=Dn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Dn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(a=>a.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ta(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ta(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ta(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),n.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}let n0=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],a0={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const s0=["v1","v2","v3"],o0=["v4"],Co={zero:0,one:1,two:2,few:3,many:4,other:5},i0=()=>{const e={};return n0.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:a0[t.fc]}})}),e};class l0{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ft.create("pluralResolver"),(!this.options.compatibilityJSON||o0.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=i0()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Dn(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(a=>`${r}${a}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((a,s)=>Co[a]-Co[s]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):n.numbers.map(a=>this.getSuffix(t,a,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,n);return a?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:this.getSuffixRetroCompatible(a,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let a=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const s=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!s0.includes(this.options.compatibilityJSON)}}const Mo=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=qf(e,t,r);return!s&&a&&typeof r=="string"&&(s=Qa(e,r,n),s===void 0&&(s=Qa(t,r,n))),s},Oa=e=>e.replace(/\$/g,"$$$$");class u0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:l,suffixEscaped:u,formatSeparator:c,unescapeSuffix:m,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:p,maxReplaces:j,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:Zf,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?cr(s):i||"{{",this.suffix=l?cr(l):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=m?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=d?cr(d):b||cr("$t("),this.nestingSuffix=y?cr(y):_||cr(")"),this.nestingOptionsSeparator=p||",",this.maxReplaces=j||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,a){let s,i,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=b=>{if(b.indexOf(this.formatSeparator)<0){const j=Mo(r,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,n,{...a,...r,interpolationkey:b}):j}const y=b.split(this.formatSeparator),_=y.shift().trim(),p=y.join(this.formatSeparator).trim();return this.format(Mo(r,u,_,this.options.keySeparator,this.options.ignoreJSONStructure),p,n,{...a,...r,interpolationkey:_})};this.resetRegExp();const m=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Oa(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Oa(this.escape(b)):Oa(b)}].forEach(b=>{for(l=0;s=b.regex.exec(t);){const y=s[1].trim();if(i=c(y),i===void 0)if(typeof m=="function"){const p=m(t,s,a);i=typeof p=="string"?p:""}else if(a&&Object.prototype.hasOwnProperty.call(a,y))i="";else if(f){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=vo(i));const _=b.safeValue(i);if(t=t.replace(s[0],_),f?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const l=(u,c)=>{const m=this.nestingOptionsSeparator;if(u.indexOf(m)<0)return u;const f=u.split(new RegExp(`${m}[ ]*{`));let d=`{${f[1]}`;u=f[0],d=this.interpolate(d,i);const b=d.match(/'/g),y=d.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(d=d.replace(/'/g,'"'));try{i=JSON.parse(d),c&&(i={...c,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,_),`${u}${m}${d}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;a=this.nestingRegexp.exec(t);){let u=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const m=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=m.shift(),u=m,c=!0}if(s=r(l.call(this,a[1].trim(),i),i),s&&a[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=vo(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),s=""),c&&(s=u.reduce((m,f)=>this.format(m,f,n.lng,{...n,interpolationkey:a[1].trim()}),s.trim())),t=t.replace(a[0],s),this.regexp.lastIndex=0}return t}}const c0=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(i=>{if(i){const[l,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),m=l.trim();r[m]||(r[m]=c),c==="false"&&(r[m]=!1),c==="true"&&(r[m]=!0),isNaN(c)||(r[m]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},mr=e=>{const t={};return(r,n,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={formatParams:{[a.interpolationkey]:a.formatParams[a.interpolationkey]},interpolationKey:a.interpolationkey});const i=n+JSON.stringify(s);let l=t[i];return l||(l=e(Dn(n),a),t[i]=l),l(r)}};class m0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("formatter"),this.options=t,this.formats={number:mr((r,n)=>{const a=new Intl.NumberFormat(r,{...n});return s=>a.format(s)}),currency:mr((r,n)=>{const a=new Intl.NumberFormat(r,{...n,style:"currency"});return s=>a.format(s)}),datetime:mr((r,n)=>{const a=new Intl.DateTimeFormat(r,{...n});return s=>a.format(s)}),relativetime:mr((r,n)=>{const a=new Intl.RelativeTimeFormat(r,{...n});return s=>a.format(s,n.range||"day")}),list:mr((r,n)=>{const a=new Intl.ListFormat(r,{...n});return s=>a.format(s)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=mr(r)}format(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(u=>u.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,u)=>{const{formatName:c,formatOptions:m}=c0(u);if(this.formats[c]){let f=l;try{const d=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},b=d.locale||d.lng||a.locale||a.lng||n;f=this.formats[c](l,b,{...m,...a,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}const d0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class f0 extends oa{constructor(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=ft.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,a.backend,a)}queueLoad(t,r,n,a){const s={},i={},l={},u={};return t.forEach(c=>{let m=!0;r.forEach(f=>{const d=`${c}|${f}`;!n.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?i[d]===void 0&&(i[d]=!0):(this.state[d]=1,m=!1,i[d]===void 0&&(i[d]=!0),s[d]===void 0&&(s[d]=!0),u[f]===void 0&&(u[f]=!0)))}),m||(l[c]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,r,n){const a=t.split("|"),s=a[0],i=a[1];r&&this.emit("failedLoading",s,i,r),n&&this.store.addResourceBundle(s,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(u=>{Xf(u.loaded,[s],i),d0(u,t),r&&u.errors.push(r),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{l[c]||(l[c]={});const m=u.loaded[c];m.length&&m.forEach(f=>{l[c][f]===void 0&&(l[c][f]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:a,wait:s,callback:i});return}this.readingCalls++;const l=(c,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&m&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,s*2,i)},s);return}i(c,m)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const c=u(t,r);c&&typeof c.then=="function"?c.then(m=>l(null,m)).catch(l):l(null,c)}catch(c){l(c)}return}return u(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const s=this.queueLoad(t,r,n,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),a=n[0],s=n[1];this.read(a,s,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${s} for language ${a} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${s} for language ${a}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let m;c.length===5?m=c(t,r,n,a,u):m=c(t,r,n,a),m&&typeof m.then=="function"?m.then(f=>l(null,f)).catch(l):l(null,m)}catch(m){l(m)}else c(t,r,n,a,l,u)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}const ko=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Io=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),gn=()=>{},h0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Hr extends oa{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Io(t),this.services={},this.logger=ft,this.modules={external:[]},h0(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const a=ko();this.options={...a,...this.options,...Io(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?ft.init(s(this.modules.logger),this.options):ft.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=m0);const f=new Po(this.options);this.store=new wo(this.options.resources,this.options);const d=this.services;d.logger=ft,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new l0(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=s(m),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new u0(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new f0(s(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),p=1;p<y;p++)_[p-1]=arguments[p];t.emit(b,..._)}),this.modules.languageDetector&&(d.languageDetector=s(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=s(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Bn(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),p=1;p<y;p++)_[p-1]=arguments[p];t.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=gn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=function(){return t.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return t.store[m](...arguments),t}});const u=Nr(),c=()=>{const m=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(d),n(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(s,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const a=Nr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=gn),this.services.backendConnector.reload(t,r,s=>{a.resolve(),n(s)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ul.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const a=Nr();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,a.resolve(function(){return n.t(...arguments)}),r&&r(u,function(){return n.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const c=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,m=>{i(m,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),a}getFixedT(t,r,n){var a=this;const s=function(i,l){let u;if(typeof l!="object"){for(var c=arguments.length,m=new Array(c>2?c-2:0),f=2;f<c;f++)m[f-2]=arguments[f];u=a.options.overloadTranslationOptionHandler([i,l].concat(m))}else u={...l};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||s.keyPrefix);const d=a.options.keySeparator||".";let b;return u.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${u.keyPrefix}${d}${y}`):b=u.keyPrefix?`${u.keyPrefix}${d}${i}`:i,a.t(b,u)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=r,s.keyPrefix=n,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,u)=>{const c=this.services.backendConnector.state[`${l}|${u}`];return c===-1||c===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!a||i(s,t)))}loadNamespaces(t,r){const n=Nr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Nr();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],s=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Po(ko());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Hr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},s=new Hr(a);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n&&(s.store=new wo(this.store.data,a),s.services.resourceStore=s.store),s.translator=new Bn(s.services,a),s.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),m=1;m<u;m++)c[m-1]=arguments[m];s.emit(l,...c)}),s.init(a,r),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ke=Hr.createInstance();ke.createInstance=Hr.createInstance;ke.createInstance;ke.dir;ke.init;ke.loadResources;ke.reloadResources;ke.use;ke.changeLanguage;ke.getFixedT;ke.t;ke.exists;ke.setDefaultNamespace;ke.hasLoadedNamespace;ke.loadNamespaces;ke.loadLanguages;const g0={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.Activate.bt":"Jogging aktivieren","Jogging.Activating.lb":"Jogging wird aktiviert","Jogging.JointLimitsReached.lb":"Joint-Limit für Joint {{jointNumbers}} erreicht"},p0={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activate.bt":"Activate jogging","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}"},cl=ke.createInstance();cl.use(Hu).init({supportedLngs:["en","de"],resources:{en:{translations:p0},de:{translations:g0}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function sn(e){return r=>o.jsx(_0,{children:o.jsx(e,{...r})})}const _0=({children:e})=>o.jsx(qt.I18nextProvider,{i18n:cl,children:e});function ia(e){Y.useEffect(e,[])}function ml(e){ia(()=>mt.autorun(e))}function ks(e,t,r){ia(()=>mt.reaction(e,t,r))}function jr(e){return ia(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const es=sn(Te.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:s,...i})=>{jr(()=>{const m=r(),f=l.current;f&&(f.textContent=m)});const l=Y.useRef(null);function u(m){s||m.button===0&&n("-")}function c(m){s||m.button===0&&n("+")}return e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:"#000"}),o.jsxs(_r,{height:"72px",direction:"row",justifyContent:"center",...i,children:[o.jsx(T.IconButton,{onPointerDown:u,onPointerUp:a,onPointerOut:a,size:"large",sx:{width:"55px",backgroundColor:e.buttonBackgroundColor,color:e.color,alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${e.borderColor??"#fff"}`,borderBottom:`2px solid ${e.borderColor??"#fff"}`,borderTop:`2px solid ${e.borderColor??"#fff"}`,":hover":{backgroundColor:e.buttonBackgroundColor}},children:o.jsx(Gs.Remove,{})}),o.jsxs(_r,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[o.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),o.jsx(T.Typography,{height:"22px",sx:{fontSize:"15px",color:e.color},ref:l,children:r()})]}),o.jsx(T.IconButton,{onPointerDown:c,onPointerUp:a,onPointerOut:a,size:"large",sx:{width:"55px",backgroundColor:e.buttonBackgroundColor,color:e.color,alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${e.borderColor??"#fff"}`,borderBottom:`2px solid ${e.borderColor??"#fff"}`,borderTop:`2px solid ${e.borderColor??"#fff"}`,":hover":{backgroundColor:e.buttonBackgroundColor}},children:o.jsx(Gs.Add,{})})]})}));var Is={},Ea={};function y0(e){return nn("MuiSvgIcon",e)}Wi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const b0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],x0=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(r)}`]};return Rs(a,y0,n)},v0=wt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Pe(r.color)}`],t[`fontSize${Pe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,s,i,l,u,c,m,f,d,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:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=e.typography)==null||(m=c.pxToRem)==null?void 0:m.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{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]}}),Un=N.forwardRef(function(t,r){const n=Ms({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:m=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,b=Be(n,b0),y=N.isValidElement(a)&&a.type==="svg",_=k({},n,{color:i,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:d,hasSvgAsChild:y}),p={};m||(p.viewBox=d);const j=x0(_);return o.jsxs(v0,k({as:l,className:gt(j.root,s),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},p,b,y&&a.props,{ownerState:_,children:[y?a.props.children:a,f?o.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(Un.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});Un.muiName="SvgIcon";function j0(e,t){function r(n,a){return o.jsx(Un,k({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Un.muiName,N.memo(N.forwardRef(r))}const S0={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
-
`)),zi.configure(e)}},R0=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:rd,createSvgIcon:j0,debounce:nd,deprecatedPropType:ad,isMuiElement:sd,ownerDocument:pr,ownerWindow:od,requirePropFactory:id,setRef:Yi,unstable_ClassNameGenerator:S0,unstable_useEnhancedEffect:js,unstable_useId:ud,unsupportedProp:cd,useControlled:Zi,useEventCallback:An,useForkRef:Ln,useIsFocusVisible:Qi},Symbol.toStringTag,{value:"Module"})),w0=Rt(R0);var To;function dl(){return To||(To=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=w0}(Ea)),Ea}var A0=sa;Object.defineProperty(Is,"__esModule",{value:!0});var fl=Is.default=void 0,P0=A0(dl()),C0=o;fl=Is.default=(0,P0.default)((0,C0.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Ts={},M0=sa;Object.defineProperty(Ts,"__esModule",{value:!0});var hl=Ts.default=void 0,k0=M0(dl()),I0=o;hl=Ts.default=(0,k0.default)((0,I0.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gl=typeof global=="object"&&global&&global.Object===Object&&global,T0=typeof self=="object"&&self&&self.Object===Object&&self,_t=gl||T0||Function("return this")(),La=function(){return _t.Date.now()},O0=/\s/;function E0(e){for(var t=e.length;t--&&O0.test(e.charAt(t)););return t}var L0=/^\s+/;function $0(e){return e&&e.slice(0,E0(e)+1).replace(L0,"")}var $t=_t.Symbol,pl=Object.prototype,N0=pl.hasOwnProperty,F0=pl.toString,Fr=$t?$t.toStringTag:void 0;function D0(e){var t=N0.call(e,Fr),r=e[Fr];try{e[Fr]=void 0;var n=!0}catch{}var a=F0.call(e);return n&&(t?e[Fr]=r:delete e[Fr]),a}var B0=Object.prototype,U0=B0.toString;function J0(e){return U0.call(e)}var V0="[object Null]",G0="[object Undefined]",Oo=$t?$t.toStringTag:void 0;function Yt(e){return e==null?e===void 0?G0:V0:Oo&&Oo in Object(e)?D0(e):J0(e)}function Wt(e){return e!=null&&typeof e=="object"}var z0="[object Symbol]";function la(e){return typeof e=="symbol"||Wt(e)&&Yt(e)==z0}var Eo=NaN,K0=/^[-+]0x[0-9a-f]+$/i,W0=/^0b[01]+$/i,H0=/^0o[0-7]+$/i,X0=parseInt;function Lo(e){if(typeof e=="number")return e;if(la(e))return Eo;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$0(e);var r=W0.test(e);return r||H0.test(e)?X0(e.slice(2),r?2:8):K0.test(e)?Eo:+e}var q0="Expected a function",Y0=Math.max,Z0=Math.min;function Q0(e,t,r){var n,a,s,i,l,u,c=0,m=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(q0);t=Lo(t)||0,Kt(r)&&(m=!!r.leading,f="maxWait"in r,s=f?Y0(Lo(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d);function b(P){var M=n,z=a;return n=a=void 0,c=P,i=e.apply(z,M),i}function y(P){return c=P,l=setTimeout(j,t),m?b(P):i}function _(P){var M=P-u,z=P-c,le=t-M;return f?Z0(le,s-z):le}function p(P){var M=P-u,z=P-c;return u===void 0||M>=t||M<0||f&&z>=s}function j(){var P=La();if(p(P))return R(P);l=setTimeout(j,_(P))}function R(P){return l=void 0,d&&n?b(P):(n=a=void 0,i)}function C(){l!==void 0&&clearTimeout(l),c=0,n=u=a=l=void 0}function A(){return l===void 0?i:R(La())}function S(){var P=La(),M=p(P);if(n=arguments,a=this,u=P,M){if(l===void 0)return y(u);if(f)return clearTimeout(l),l=setTimeout(j,t),b(u)}return l===void 0&&(l=setTimeout(j,t)),i}return S.cancel=C,S.flush=A,S}var eh="Expected a function";function th(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(eh);return Kt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Q0(e,t,{leading:n,maxWait:t,trailing:a})}const _l=sn(Te.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:a,disabled:s,...i})=>{const{t:l}=qt.useTranslation(),[u,c]=Y.useState(),m=Te.useLocalObservable(()=>({activeJoggingDir:null,startJogging(j){this.activeJoggingDir=j,e(j)},stopJogging(){this.activeJoggingDir=null,t()}})),f=th(()=>{c(a())},50);jr(f);function d(j){j.button===0&&m.startJogging("-")}function b(j){j.button===0&&m.startJogging("+")}function y(j){m.stopJogging()}function _(j){j.target===j.currentTarget&&m.stopJogging()}function p(j,R=1){if(j===void 0||isNaN(j))return"";const C=l("General.degree.variable",{amount:j.toFixed(R)});return j>0&&R===0?`+${C}`:C}return o.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:[o.jsx(T.IconButton,{onPointerDown:d,onPointerUp:y,onPointerOut:_,disabled:s,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:m.activeJoggingDir==="-"?"#495975":void 0},children:o.jsx(fl,{})}),o.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:[o.jsx(T.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:p(u)}),o.jsx(T.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:u||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:p(r,0)},{value:n,label:p(n,0)}]})]}),o.jsx(T.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:s,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:m.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:o.jsx(hl,{})})]})}));function yl(e,t){return function(){return e.apply(t,arguments)}}const{toString:rh}=Object.prototype,{getPrototypeOf:Os}=Object,ua=(e=>t=>{const r=rh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>ua(t)===e),ca=e=>t=>typeof t===e,{isArray:Sr}=Array,Xr=ca("undefined");function nh(e){return e!==null&&!Xr(e)&&e.constructor!==null&&!Xr(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bl=it("ArrayBuffer");function ah(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bl(e.buffer),t}const sh=ca("string"),Ke=ca("function"),xl=ca("number"),ma=e=>e!==null&&typeof e=="object",oh=e=>e===!0||e===!1,kn=e=>{if(ua(e)!=="object")return!1;const t=Os(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ih=it("Date"),lh=it("File"),uh=it("Blob"),ch=it("FileList"),mh=e=>ma(e)&&Ke(e.pipe),dh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=ua(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},fh=it("URLSearchParams"),[hh,gh,ph,_h]=["ReadableStream","Request","Response","Headers"].map(it),yh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function on(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Sr(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(n=0;n<i;n++)l=s[n],t.call(null,e[l],l,e)}}function vl(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jl=e=>!Xr(e)&&e!==Vt;function ts(){const{caseless:e}=jl(this)&&this||{},t={},r=(n,a)=>{const s=e&&vl(t,a)||a;kn(t[s])&&kn(n)?t[s]=ts(t[s],n):kn(n)?t[s]=ts({},n):Sr(n)?t[s]=n.slice():t[s]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&on(arguments[n],r);return t}const bh=(e,t,r,{allOwnKeys:n}={})=>(on(t,(a,s)=>{r&&Ke(a)?e[s]=yl(a,r):e[s]=a},{allOwnKeys:n}),e),xh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},jh=(e,t,r,n)=>{let a,s,i;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Os(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Sh=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Rh=e=>{if(!e)return null;if(Sr(e))return e;let t=e.length;if(!xl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},wh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Os(Uint8Array)),Ah=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},Ph=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Ch=it("HTMLFormElement"),Mh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),$o=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),kh=it("RegExp"),Sl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};on(r,(a,s)=>{let i;(i=t(a,s,e))!==!1&&(n[s]=i||a)}),Object.defineProperties(e,n)},Ih=e=>{Sl(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Th=(e,t)=>{const r={},n=a=>{a.forEach(s=>{r[s]=!0})};return Sr(e)?n(e):n(String(e).split(t)),r},Oh=()=>{},Eh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,$a="abcdefghijklmnopqrstuvwxyz",No="0123456789",Rl={DIGIT:No,ALPHA:$a,ALPHA_DIGIT:$a+$a.toUpperCase()+No},Lh=(e=16,t=Rl.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function $h(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Nh=e=>{const t=new Array(10),r=(n,a)=>{if(ma(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const s=Sr(n)?[]:{};return on(n,(i,l)=>{const u=r(i,a+1);!Xr(u)&&(s[l]=u)}),t[a]=void 0,s}}return n};return r(e,0)},Fh=it("AsyncFunction"),Dh=e=>e&&(ma(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),wl=((e,t)=>e?setImmediate:t?((r,n)=>(Vt.addEventListener("message",({source:a,data:s})=>{a===Vt&&s===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke(Vt.postMessage)),Bh=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||wl,v={isArray:Sr,isArrayBuffer:bl,isBuffer:nh,isFormData:dh,isArrayBufferView:ah,isString:sh,isNumber:xl,isBoolean:oh,isObject:ma,isPlainObject:kn,isReadableStream:hh,isRequest:gh,isResponse:ph,isHeaders:_h,isUndefined:Xr,isDate:ih,isFile:lh,isBlob:uh,isRegExp:kh,isFunction:Ke,isStream:mh,isURLSearchParams:fh,isTypedArray:wh,isFileList:ch,forEach:on,merge:ts,extend:bh,trim:yh,stripBOM:xh,inherits:vh,toFlatObject:jh,kindOf:ua,kindOfTest:it,endsWith:Sh,toArray:Rh,forEachEntry:Ah,matchAll:Ph,isHTMLForm:Ch,hasOwnProperty:$o,hasOwnProp:$o,reduceDescriptors:Sl,freezeMethods:Ih,toObjectSet:Th,toCamelCase:Mh,noop:Oh,toFiniteNumber:Eh,findKey:vl,global:Vt,isContextDefined:jl,ALPHABET:Rl,generateString:Lh,isSpecCompliantForm:$h,toJSONObject:Nh,isAsyncFn:Fh,isThenable:Dh,setImmediate:wl,asap:Bh};function J(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}v.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Al=J.prototype,Pl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Pl[e]={value:e}});Object.defineProperties(J,Pl);Object.defineProperty(Al,"isAxiosError",{value:!0});J.from=(e,t,r,n,a,s)=>{const i=Object.create(Al);return v.toFlatObject(e,i,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,a),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Uh=null;function rs(e){return v.isPlainObject(e)||v.isArray(e)}function Cl(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Fo(e,t,r){return e?e.concat(t).map(function(a,s){return a=Cl(a),!r&&s?"["+a+"]":a}).join(r?".":""):t}function Jh(e){return v.isArray(e)&&!e.some(rs)}const Vh=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function da(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,p){return!v.isUndefined(p[_])});const n=r.metaTokens,a=r.visitor||m,s=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(a))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!u&&v.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function m(y,_,p){let j=y;if(y&&!p&&typeof y=="object"){if(v.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&Jh(y)||(v.isFileList(y)||v.endsWith(_,"[]"))&&(j=v.toArray(y)))return _=Cl(_),j.forEach(function(C,A){!(v.isUndefined(C)||C===null)&&t.append(i===!0?Fo([_],A,s):i===null?_:_+"[]",c(C))}),!1}return rs(y)?!0:(t.append(Fo(p,_,s),c(y)),!1)}const f=[],d=Object.assign(Vh,{defaultVisitor:m,convertValue:c,isVisitable:rs});function b(y,_){if(!v.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(y),v.forEach(y,function(j,R){(!(v.isUndefined(j)||j===null)&&a.call(t,j,v.isString(R)?R.trim():R,_,d))===!0&&b(j,_?_.concat(R):[R])}),f.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Do(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Es(e,t){this._pairs=[],e&&da(e,this,t)}const Ml=Es.prototype;Ml.append=function(t,r){this._pairs.push([t,r])};Ml.toString=function(t){const r=t?function(n){return t.call(this,n,Do)}:Do;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Gh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kl(e,t,r){if(!t)return e;const n=r&&r.encode||Gh,a=r&&r.serialize;let s;if(a?s=a(t,r):s=v.isURLSearchParams(t)?t.toString():new Es(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Bo{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Il={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zh=typeof URLSearchParams<"u"?URLSearchParams:Es,Kh=typeof FormData<"u"?FormData:null,Wh=typeof Blob<"u"?Blob:null,Hh={isBrowser:!0,classes:{URLSearchParams:zh,FormData:Kh,Blob:Wh},protocols:["http","https","file","blob","url","data"]},Ls=typeof window<"u"&&typeof document<"u",Xh=(e=>Ls&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),qh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yh=Ls&&window.location.href||"http://localhost",Zh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ls,hasStandardBrowserEnv:Xh,hasStandardBrowserWebWorkerEnv:qh,origin:Yh},Symbol.toStringTag,{value:"Module"})),st={...Zh,...Hh};function Qh(e,t){return da(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,s){return st.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function eg(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tg(e){const t={},r=Object.keys(e);let n;const a=r.length;let s;for(n=0;n<a;n++)s=r[n],t[s]=e[s];return t}function Tl(e){function t(r,n,a,s){let i=r[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),u=s>=r.length;return i=!i&&v.isArray(a)?a.length:i,u?(v.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!l):((!a[i]||!v.isObject(a[i]))&&(a[i]=[]),t(r,n,a[i],s)&&v.isArray(a[i])&&(a[i]=tg(a[i])),!l)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,a)=>{t(eg(n),a,r,0)}),r}return null}function rg(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ln={transitional:Il,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,s=v.isObject(t);if(s&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return a?JSON.stringify(Tl(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Qh(t,this.formSerializer).toString();if((l=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return da(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||a?(r.setContentType("application/json",!1),rg(t)):t}],transformResponse:[function(t){const r=this.transitional||ln.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(n&&!this.responseType||a)){const i=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?J.from(l,J.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{ln.headers[e]={}});const ng=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ag=e=>{const t={};let r,n,a;return e&&e.split(`
|
|
79
|
-
`).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),n=i.substring(a+1).trim(),!(!r||t[r]&&
|
|
80
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Uo]=this[Uo]={accessors:{}}).accessors,a=this.prototype;function s(i){const l=Dr(i);n[l]||(lg(a,i),n[l]=!0)}return v.isArray(t)?t.forEach(s):s(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Fe);function Fa(e,t){const r=this||ln,n=t||r,a=Fe.from(n.headers);let s=n.data;return v.forEach(e,function(l){s=l.call(r,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function Ol(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Rr,J,{__CANCEL__:!0});function El(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ug(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cg(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,s=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),m=n[s];i||(i=c),r[a]=u,n[a]=c;let f=s,d=0;for(;f!==a;)d+=r[f++],f=f%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),c-i<t)return;const b=m&&c-m;return b?Math.round(d*1e3/b):void 0}}function mg(e,t){let r=0,n=1e3/t,a,s;const i=(c,m=Date.now())=>{r=m,a=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const m=Date.now(),f=m-r;f>=n?i(c,m):(a=c,s||(s=setTimeout(()=>{s=null,i(a)},n-f)))},()=>a&&i(a)]}const Jn=(e,t,r=3)=>{let n=0;const a=cg(50,250);return mg(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,u=i-n,c=a(u),m=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&m?(l-i)/c:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},Jo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Vo=e=>(...t)=>v.asap(()=>e(...t)),dg=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(s){let i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(i){const l=v.isString(i)?a(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),fg=st.hasStandardBrowserEnv?{write(e,t,r,n,a,s){const i=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),v.isString(n)&&i.push("path="+n),v.isString(a)&&i.push("domain="+a),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ll(e,t){return e&&!hg(t)?gg(e,t):t}const Go=e=>e instanceof Fe?{...e}:e;function Ht(e,t){t=t||{};const r={};function n(c,m,f){return v.isPlainObject(c)&&v.isPlainObject(m)?v.merge.call({caseless:f},c,m):v.isPlainObject(m)?v.merge({},m):v.isArray(m)?m.slice():m}function a(c,m,f){if(v.isUndefined(m)){if(!v.isUndefined(c))return n(void 0,c,f)}else return n(c,m,f)}function s(c,m){if(!v.isUndefined(m))return n(void 0,m)}function i(c,m){if(v.isUndefined(m)){if(!v.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,f){if(f in t)return n(c,m);if(f in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,m)=>a(Go(c),Go(m),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(m){const f=u[m]||a,d=f(e[m],t[m],m);v.isUndefined(d)&&f!==l||(r[m]=d)}),r}const $l=e=>{const t=Ht({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=kl(Ll(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(v.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...m]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...m].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&v.isFunction(n)&&(n=n(t)),n||n!==!1&&dg(t.url))){const c=a&&s&&fg.read(s);c&&i.set(a,c)}return t},pg=typeof XMLHttpRequest<"u",_g=pg&&function(e){return new Promise(function(r,n){const a=$l(e);let s=a.data;const i=Fe.from(a.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=a,m,f,d,b,y;function _(){b&&b(),y&&y(),a.cancelToken&&a.cancelToken.unsubscribe(m),a.signal&&a.signal.removeEventListener("abort",m)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function j(){if(!p)return;const C=Fe.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:C,config:e,request:p};El(function(M){r(M),_()},function(M){n(M),_()},S),p=null}"onloadend"in p?p.onloadend=j:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(j)},p.onabort=function(){p&&(n(new J("Request aborted",J.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let A=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||Il;a.timeoutErrorMessage&&(A=a.timeoutErrorMessage),n(new J(A,S.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,p)),p=null},s===void 0&&i.setContentType(null),"setRequestHeader"in p&&v.forEach(i.toJSON(),function(A,S){p.setRequestHeader(S,A)}),v.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),l&&l!=="json"&&(p.responseType=a.responseType),c&&([d,y]=Jn(c,!0),p.addEventListener("progress",d)),u&&p.upload&&([f,b]=Jn(u),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(m=C=>{p&&(n(!C||C.type?new Rr(null,e,p):C),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(m),a.signal&&(a.signal.aborted?m():a.signal.addEventListener("abort",m)));const R=ug(a.url);if(R&&st.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}p.send(s||null)})},yg=(e,t)=>{let r=new AbortController,n;const a=function(u){if(!n){n=!0,i();const c=u instanceof Error?u:this.reason;r.abort(c instanceof J?c:new Rr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{a(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",a):u.unsubscribe(a))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{s&&clearTimeout(s),s=null}]},bg=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},xg=async function*(e,t,r){for await(const n of e)yield*bg(ArrayBuffer.isView(n)?n:await r(String(n)),t)},zo=(e,t,r,n,a)=>{const s=xg(e,t,a);let i=0,l,u=c=>{l||(l=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:m,value:f}=await s.next();if(m){u(),c.close();return}let d=f.byteLength;if(r){let b=i+=d;r(b)}c.enqueue(new Uint8Array(f))}catch(m){throw u(m),m}},cancel(c){return u(c),s.return()}},{highWaterMark:2})},fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Nl=fa&&typeof ReadableStream=="function",ns=fa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vg=Nl&&Fl(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ko=64*1024,as=Nl&&Fl(()=>v.isReadableStream(new Response("").body)),Vn={stream:as&&(e=>e.body)};fa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vn[t]&&(Vn[t]=v.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const jg=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await ns(e)).byteLength},Sg=async(e,t)=>{const r=v.toFiniteNumber(e.getContentLength());return r??jg(t)},Rg=fa&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:m,withCredentials:f="same-origin",fetchOptions:d}=$l(e);c=c?(c+"").toLowerCase():"text";let[b,y]=a||s||i?yg([a,s],i):[],_,p;const j=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(u&&vg&&r!=="get"&&r!=="head"&&(R=await Sg(m,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),M;if(v.isFormData(n)&&(M=P.headers.get("content-type"))&&m.setContentType(M),P.body){const[z,le]=Jo(R,Jn(Vo(u)));n=zo(P.body,Ko,z,le,ns)}}v.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:b,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:n,duplex:"half",credentials:f});let C=await fetch(p);const A=as&&(c==="stream"||c==="response");if(as&&(l||A)){const P={};["status","statusText","headers"].forEach(ce=>{P[ce]=C[ce]});const M=v.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&Jo(M,Jn(Vo(l),!0))||[];C=new Response(zo(C.body,Ko,z,()=>{le&&le(),A&&j()},ns),P)}c=c||"text";let S=await Vn[v.findKey(Vn,c)||"text"](C,e);return!A&&j(),y&&y(),await new Promise((P,M)=>{El(P,M,{data:S,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:p})})}catch(C){throw j(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:C.cause||C}):J.from(C,C&&C.code,e,p)}}),ss={http:Uh,xhr:_g,fetch:Rg};v.forEach(ss,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wo=e=>`- ${e}`,wg=e=>v.isFunction(e)||e===null||e===!1,Dl={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let s=0;s<t;s++){r=e[s];let i;if(n=r,!wg(r)&&(n=ss[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;a[i||"#"+s]=n}if(!n){const s=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
|
|
75
|
+
} });`:Gr(12,p?` (${p})`:"",JSON.stringify(_.main)));return _o(_,"light",R,n),_o(_,"dark",C,n),_.contrastText||(_.contrastText=f(_.main)),_},b={dark:Ia,light:po};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),et(M({common:M({},Wr),mode:t,primary:d({color:s,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:l,name:"error"}),warning:d({color:m,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:c,name:"success"}),grey:xf,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},b[t]),a)}const kf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Mf(e){return Math.round(e*1e5)/1e5}const yo={textTransform:"uppercase"},bo='"Roboto", "Helvetica", "Arial", sans-serif';function If(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=bo,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:m,pxToRem:f}=r,d=Be(r,kf);process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=a/14,y=f||(j=>`${j/c*b}rem`),_=(j,R,C,A,S)=>M({fontFamily:n,fontWeight:j,fontSize:y(R),lineHeight:C},n===bo?{letterSpacing:`${Mf(A/R)}em`}:{},S,m),p={h1:_(s,96,1.167,-1.5),h2:_(s,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,yo),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,yo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return et(M({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:a,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:u},p),d,{clone:!1})}const Tf=.2,Of=.14,Ef=.12;function de(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Tf})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Of})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ef})`].join(",")}const Lf=["none",de(0,2,1,-1,0,1,1,0,0,1,3,0),de(0,3,1,-2,0,2,2,0,0,1,5,0),de(0,3,3,-2,0,3,4,0,0,1,8,0),de(0,2,4,-1,0,4,5,0,0,1,10,0),de(0,3,5,-1,0,5,8,0,0,1,14,0),de(0,3,5,-1,0,6,10,0,0,1,18,0),de(0,4,5,-2,0,7,10,1,0,2,16,1),de(0,5,5,-3,0,8,10,1,0,3,14,2),de(0,5,6,-3,0,9,12,1,0,3,16,2),de(0,6,6,-3,0,10,14,1,0,4,18,3),de(0,6,7,-4,0,11,15,1,0,4,20,3),de(0,7,8,-4,0,12,17,2,0,5,22,4),de(0,7,8,-4,0,13,19,2,0,5,24,4),de(0,7,9,-4,0,14,21,2,0,5,26,4),de(0,8,9,-5,0,15,22,2,0,6,28,5),de(0,8,10,-5,0,16,24,2,0,6,30,5),de(0,8,11,-5,0,17,26,2,0,6,32,5),de(0,9,11,-5,0,18,28,2,0,7,34,6),de(0,9,12,-6,0,19,29,2,0,7,36,6),de(0,10,13,-6,0,20,31,3,0,8,38,7),de(0,10,13,-6,0,21,33,3,0,8,40,7),de(0,10,14,-6,0,22,35,3,0,8,42,7),de(0,11,14,-7,0,23,36,3,0,9,44,8),de(0,11,15,-7,0,24,38,3,0,9,46,8)],$f=["duration","easing","delay"],Nf={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ff={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xo(e){return`${Math.round(e)}ms`}function Df(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Bf(e){const t=M({},Nf,e.easing),r=M({},Ff,e.duration);return M({getAutoHeightDuration:Df,create:(a=["all"],s={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:u=0}=s,c=Be(s,$f);if(process.env.NODE_ENV!=="production"){const m=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!m(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!m(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),m(l)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!m(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="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(`
|
|
76
|
+
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(m=>`${m} ${typeof i=="string"?i:xo(i)} ${l} ${typeof u=="string"?u:xo(u)}`).join(",")}},e,{easing:t,duration:r})}const Uf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Jf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Vf(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:s={}}=e,i=Be(e,Jf);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.":Gr(18));const l=Cf(n),u=rn(e);let c=et(u,{mixins:of(u.breakpoints,r),palette:l,shadows:Lf.slice(),typography:If(l,s),transitions:Bf(a),zIndex:M({},Uf)});if(c=et(c,i),c=t.reduce((m,f)=>et(m,f),c),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,b)=>{let y;for(y in d){const _=d[y];if(m.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const p=nn("",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(d,null,2),"",`Instead, you need to use the '&.${p}' syntax:`,JSON.stringify({root:{[`&.${p}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
77
|
+
`))}d[y]={}}}};Object.keys(c.components).forEach(d=>{const b=c.components[d].styleOverrides;b&&d.indexOf("Mui")===0&&f(b,d)})}return c.unstable_sxConfig=M({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const Gf=Vf(),zf="$$material";function Cs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Kf=e=>Cs(e)&&e!=="classes",wt=zd({themeId:zf,defaultTheme:Gf,rootShouldForwardProp:Kf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function ks(e){return Cd(e)}const _r=$d({createStyledComponent:wt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ks({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:h.node,component:h.elementType,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),useFlexGap:h.bool});const Wf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Nn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Wf,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Nn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Nn(this.logger,t)}}var ft=new Nn;class oa{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l.apply(l,[t,...n])})}}const Nr=()=>{let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r},vo=e=>e==null?"":""+e,Hf=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Xf=/###/g,jo=e=>e&&e.indexOf("###")>-1?e.replace(Xf,"."):e,So=e=>!e||typeof e=="string",Jr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let a=0;for(;a<n.length-1;){if(So(e))return{};const s=jo(n[a]);!e[s]&&r&&(e[s]=new r),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++a}return So(e)?{}:{obj:e,k:jo(n[a])}},Ro=(e,t,r)=>{const{obj:n,k:a}=Jr(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let s=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=r},qf=(e,t,r,n)=>{const{obj:a,k:s}=Jr(e,t,Object);a[s]=a[s]||[],a[s].push(r)},Fn=(e,t)=>{const{obj:r,k:n}=Jr(e,t);if(r)return r[n]},Yf=(e,t,r)=>{const n=Fn(e,r);return n!==void 0?n:Fn(t,r)},ul=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):ul(e[n],t[n],r):e[n]=t[n]);return e},cr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Zf={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Qf=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Zf[t]):e;class e0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const t0=[" ",",","?","!",";"],r0=new e0(20),n0=(e,t,r)=>{t=t||"",r=r||"";const n=t0.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const a=r0.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(e);if(!s){const i=e.indexOf(r);i>0&&!a.test(e.substring(0,i))&&(s=!0)}return s},Qa=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let a=e;for(let s=0;s<n.length;){if(!a||typeof a!="object")return;let i,l="";for(let u=s;u<n.length;++u)if(u!==s&&(l+=r),l+=n[u],i=a[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<n.length-1)continue;s+=u-s+1;break}a=i}return a},Dn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class wo extends oa{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,r],n&&(Array.isArray(n)?l.push(...n):typeof n=="string"&&s?l.push(...n.split(s)):l.push(n)));const u=Fn(this.data,l);return!u&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),u||!i||typeof n!="string"?u:Qa(this.data&&this.data[t]&&this.data[t][r],n,s)}addResource(t,r,n,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),a=r,r=l[1]),this.addNamespaces(r),Ro(this.data,l,a),s.silent||this.emit("added",t,r,n,a)}addResources(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in n)(typeof n[s]=="string"||Array.isArray(n[s]))&&this.addResource(t,r,s,n[s],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),a=n,n=r,r=l[1]),this.addNamespaces(r);let u=Fn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?ul(u,n,s):u={...u,...n},Ro(this.data,l,u),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}}var cl={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,r,n,a))}),t}};const Ao={};class Bn extends oa{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Hf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ft.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let s=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!n0(t,n,a);if(i&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:s};const c=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(a)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),u=l[l.length-1],c=r.lng||this.language,m=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(m){const A=r.nsSeparator||this.options.nsSeparator;return a?{res:`${u}${A}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${A}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:i}const f=this.resolve(t,r);let d=f&&f.res;const b=f&&f.usedKey||i,y=f&&f.exactUsedKey||i,_=Object.prototype.toString.apply(d),p=["[object Number]","[object Function]","[object RegExp]"],j=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&p.indexOf(_)<0&&!(typeof j=="string"&&Array.isArray(d))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,d,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=A,f.usedParams=this.getUsedParamsDetails(r),f):A}if(s){const A=Array.isArray(d),S=A?[]:{},P=A?y:b;for(const k in d)if(Object.prototype.hasOwnProperty.call(d,k)){const z=`${P}${s}${k}`;S[k]=this.translate(z,{...r,joinArrays:!1,ns:l}),S[k]===z&&(S[k]=d[k])}d=S}}else if(R&&typeof j=="string"&&Array.isArray(d))d=d.join(j),d&&(d=this.extendTranslation(d,t,r,n));else{let A=!1,S=!1;const P=r.count!==void 0&&typeof r.count!="string",k=Bn.hasDefaultValue(r),z=P?this.pluralResolver.getSuffix(c,r.count,r):"",le=r.ordinal&&P?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",ce=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ce&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(d)&&k&&(A=!0,d=D),this.isValidLookup(d)||(S=!0,d=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:d,Z=k&&D!==d&&this.options.updateMissing;if(S||A||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,u,i,Z?D:d),s){const ee=this.resolve(i,{...r,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let X=[];const je=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&je&&je[0])for(let ee=0;ee<je.length;ee++)X.push(je[ee]);else this.options.saveMissingTo==="all"?X=this.languageUtils.toResolveHierarchy(r.lng||this.language):X.push(r.lng||this.language);const ue=(ee,we,Oe)=>{const nt=k&&Oe!==d?Oe:G;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,u,we,nt,Z,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,u,we,nt,Z,r),this.emit("missingKey",ee,u,we,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?X.forEach(ee=>{const we=this.pluralResolver.getSuffixes(ee,r);ce&&r[`defaultValue${this.options.pluralSeparator}zero`]&&we.indexOf(`${this.options.pluralSeparator}zero`)<0&&we.push(`${this.options.pluralSeparator}zero`),we.forEach(Oe=>{ue([ee],i+Oe,r[`defaultValue${Oe}`]||D)})}):ue(X,i,D))}d=this.extendTranslation(d,t,r,f,n),S&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${u}:${i}`),(S||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,A?d:void 0):d=this.options.parseMissingKeyHandler(d))}return a?(f.res=d,f.usedParams=this.getUsedParamsDetails(r),f):d}extendTranslation(t,r,n,a,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(c){const d=t.match(this.interpolator.nestingRegexp);m=d&&d.length}let f=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,n.lng||this.language||a.usedLng,n),c){const d=t.match(this.interpolator.nestingRegexp),b=d&&d.length;m<b&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(n.lng=this.language||a.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,b=new Array(d),y=0;y<d;y++)b[y]=arguments[y];return s&&s[0]===b[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${r[0]}`),null):i.translate(...b,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&n.applyPostProcessor!==!1&&(t=cl.handle(u,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a,s,i,l;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(u,r),m=c.key;a=m;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=r.count!==void 0&&typeof r.count!="string",b=d&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(p=>{this.isValidLookup(n)||(l=p,!Ao[`${_[0]}-${p}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Ao[`${_[0]}-${p}`]=!0,this.logger.warn(`key "${a}" for languages "${_.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(j=>{if(this.isValidLookup(n))return;i=j;const R=[m];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,m,j,p,r);else{let A;d&&(A=this.pluralResolver.getSuffix(j,r.count,r));const S=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(R.push(m+A),r.ordinal&&A.indexOf(P)===0&&R.push(m+A.replace(P,this.options.pluralSeparator)),b&&R.push(m+S)),y){const k=`${m}${this.options.contextSeparator}${r.context}`;R.push(k),d&&(R.push(k+A),r.ordinal&&A.indexOf(P)===0&&R.push(k+A.replace(P,this.options.pluralSeparator)),b&&R.push(k+S))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(s=C,n=this.getResource(j,p,C,r))}))})}),{res:n,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let a=n?t.replace:t;if(n&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const s of r)delete a[s]}return a}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Ta=e=>e.charAt(0).toUpperCase()+e.slice(1);class Po{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ft.create("languageUtils")}getScriptPartFromCode(t){if(t=Dn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Dn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(a=>a.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ta(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ta(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ta(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),n.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}let a0=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],s0={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const o0=["v1","v2","v3"],i0=["v4"],Co={zero:0,one:1,two:2,few:3,many:4,other:5},l0=()=>{const e={};return a0.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:s0[t.fc]}})}),e};class u0{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ft.create("pluralResolver"),(!this.options.compatibilityJSON||i0.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=l0()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Dn(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(a=>`${r}${a}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((a,s)=>Co[a]-Co[s]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):n.numbers.map(a=>this.getSuffix(t,a,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,n);return a?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:this.getSuffixRetroCompatible(a,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let a=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const s=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!o0.includes(this.options.compatibilityJSON)}}const ko=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Yf(e,t,r);return!s&&a&&typeof r=="string"&&(s=Qa(e,r,n),s===void 0&&(s=Qa(t,r,n))),s},Oa=e=>e.replace(/\$/g,"$$$$");class c0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:l,suffixEscaped:u,formatSeparator:c,unescapeSuffix:m,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:p,maxReplaces:j,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:Qf,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?cr(s):i||"{{",this.suffix=l?cr(l):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=m?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=d?cr(d):b||cr("$t("),this.nestingSuffix=y?cr(y):_||cr(")"),this.nestingOptionsSeparator=p||",",this.maxReplaces=j||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,a){let s,i,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=b=>{if(b.indexOf(this.formatSeparator)<0){const j=ko(r,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,n,{...a,...r,interpolationkey:b}):j}const y=b.split(this.formatSeparator),_=y.shift().trim(),p=y.join(this.formatSeparator).trim();return this.format(ko(r,u,_,this.options.keySeparator,this.options.ignoreJSONStructure),p,n,{...a,...r,interpolationkey:_})};this.resetRegExp();const m=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Oa(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Oa(this.escape(b)):Oa(b)}].forEach(b=>{for(l=0;s=b.regex.exec(t);){const y=s[1].trim();if(i=c(y),i===void 0)if(typeof m=="function"){const p=m(t,s,a);i=typeof p=="string"?p:""}else if(a&&Object.prototype.hasOwnProperty.call(a,y))i="";else if(f){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=vo(i));const _=b.safeValue(i);if(t=t.replace(s[0],_),f?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const l=(u,c)=>{const m=this.nestingOptionsSeparator;if(u.indexOf(m)<0)return u;const f=u.split(new RegExp(`${m}[ ]*{`));let d=`{${f[1]}`;u=f[0],d=this.interpolate(d,i);const b=d.match(/'/g),y=d.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(d=d.replace(/'/g,'"'));try{i=JSON.parse(d),c&&(i={...c,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,_),`${u}${m}${d}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;a=this.nestingRegexp.exec(t);){let u=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const m=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=m.shift(),u=m,c=!0}if(s=r(l.call(this,a[1].trim(),i),i),s&&a[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=vo(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),s=""),c&&(s=u.reduce((m,f)=>this.format(m,f,n.lng,{...n,interpolationkey:a[1].trim()}),s.trim())),t=t.replace(a[0],s),this.regexp.lastIndex=0}return t}}const m0=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(i=>{if(i){const[l,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),m=l.trim();r[m]||(r[m]=c),c==="false"&&(r[m]=!1),c==="true"&&(r[m]=!0),isNaN(c)||(r[m]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},mr=e=>{const t={};return(r,n,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={formatParams:{[a.interpolationkey]:a.formatParams[a.interpolationkey]},interpolationKey:a.interpolationkey});const i=n+JSON.stringify(s);let l=t[i];return l||(l=e(Dn(n),a),t[i]=l),l(r)}};class d0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("formatter"),this.options=t,this.formats={number:mr((r,n)=>{const a=new Intl.NumberFormat(r,{...n});return s=>a.format(s)}),currency:mr((r,n)=>{const a=new Intl.NumberFormat(r,{...n,style:"currency"});return s=>a.format(s)}),datetime:mr((r,n)=>{const a=new Intl.DateTimeFormat(r,{...n});return s=>a.format(s)}),relativetime:mr((r,n)=>{const a=new Intl.RelativeTimeFormat(r,{...n});return s=>a.format(s,n.range||"day")}),list:mr((r,n)=>{const a=new Intl.ListFormat(r,{...n});return s=>a.format(s)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=mr(r)}format(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(u=>u.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,u)=>{const{formatName:c,formatOptions:m}=m0(u);if(this.formats[c]){let f=l;try{const d=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},b=d.locale||d.lng||a.locale||a.lng||n;f=this.formats[c](l,b,{...m,...a,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}const f0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class h0 extends oa{constructor(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=ft.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,a.backend,a)}queueLoad(t,r,n,a){const s={},i={},l={},u={};return t.forEach(c=>{let m=!0;r.forEach(f=>{const d=`${c}|${f}`;!n.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?i[d]===void 0&&(i[d]=!0):(this.state[d]=1,m=!1,i[d]===void 0&&(i[d]=!0),s[d]===void 0&&(s[d]=!0),u[f]===void 0&&(u[f]=!0)))}),m||(l[c]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,r,n){const a=t.split("|"),s=a[0],i=a[1];r&&this.emit("failedLoading",s,i,r),n&&this.store.addResourceBundle(s,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(u=>{qf(u.loaded,[s],i),f0(u,t),r&&u.errors.push(r),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{l[c]||(l[c]={});const m=u.loaded[c];m.length&&m.forEach(f=>{l[c][f]===void 0&&(l[c][f]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:a,wait:s,callback:i});return}this.readingCalls++;const l=(c,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&m&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,s*2,i)},s);return}i(c,m)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const c=u(t,r);c&&typeof c.then=="function"?c.then(m=>l(null,m)).catch(l):l(null,c)}catch(c){l(c)}return}return u(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const s=this.queueLoad(t,r,n,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),a=n[0],s=n[1];this.read(a,s,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${s} for language ${a} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${s} for language ${a}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let m;c.length===5?m=c(t,r,n,a,u):m=c(t,r,n,a),m&&typeof m.then=="function"?m.then(f=>l(null,f)).catch(l):l(null,m)}catch(m){l(m)}else c(t,r,n,a,l,u)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}const Mo=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Io=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),gn=()=>{},g0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Hr extends oa{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Io(t),this.services={},this.logger=ft,this.modules={external:[]},g0(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const a=Mo();this.options={...a,...this.options,...Io(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?ft.init(s(this.modules.logger),this.options):ft.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=d0);const f=new Po(this.options);this.store=new wo(this.options.resources,this.options);const d=this.services;d.logger=ft,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new u0(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=s(m),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new c0(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new h0(s(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),p=1;p<y;p++)_[p-1]=arguments[p];t.emit(b,..._)}),this.modules.languageDetector&&(d.languageDetector=s(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=s(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Bn(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),p=1;p<y;p++)_[p-1]=arguments[p];t.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=gn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=function(){return t.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return t.store[m](...arguments),t}});const u=Nr(),c=()=>{const m=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(d),n(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(s,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const a=Nr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=gn),this.services.backendConnector.reload(t,r,s=>{a.resolve(),n(s)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&cl.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const a=Nr();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,a.resolve(function(){return n.t(...arguments)}),r&&r(u,function(){return n.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const c=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,m=>{i(m,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),a}getFixedT(t,r,n){var a=this;const s=function(i,l){let u;if(typeof l!="object"){for(var c=arguments.length,m=new Array(c>2?c-2:0),f=2;f<c;f++)m[f-2]=arguments[f];u=a.options.overloadTranslationOptionHandler([i,l].concat(m))}else u={...l};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||s.keyPrefix);const d=a.options.keySeparator||".";let b;return u.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${u.keyPrefix}${d}${y}`):b=u.keyPrefix?`${u.keyPrefix}${d}${i}`:i,a.t(b,u)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=r,s.keyPrefix=n,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,u)=>{const c=this.services.backendConnector.state[`${l}|${u}`];return c===-1||c===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!a||i(s,t)))}loadNamespaces(t,r){const n=Nr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Nr();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],s=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Po(Mo());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Hr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},s=new Hr(a);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n&&(s.store=new wo(this.store.data,a),s.services.resourceStore=s.store),s.translator=new Bn(s.services,a),s.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),m=1;m<u;m++)c[m-1]=arguments[m];s.emit(l,...c)}),s.init(a,r),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Me=Hr.createInstance();Me.createInstance=Hr.createInstance;Me.createInstance;Me.dir;Me.init;Me.loadResources;Me.reloadResources;Me.use;Me.changeLanguage;Me.getFixedT;Me.t;Me.exists;Me.setDefaultNamespace;Me.hasLoadedNamespace;Me.loadNamespaces;Me.loadLanguages;const p0={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.Activate.bt":"Jogging aktivieren","Jogging.Activating.lb":"Jogging wird aktiviert","Jogging.JointLimitsReached.lb":"Joint-Limit für Joint {{jointNumbers}} erreicht"},_0={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activate.bt":"Activate jogging","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}"},ml=Me.createInstance();ml.use(Xu).init({supportedLngs:["en","de"],resources:{en:{translations:_0},de:{translations:p0}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function sn(e){return r=>o.jsx(y0,{children:o.jsx(e,{...r})})}const y0=({children:e})=>o.jsx(qt.I18nextProvider,{i18n:ml,children:e});function ia(e){Y.useEffect(e,[])}function dl(e){ia(()=>mt.autorun(e))}function Ms(e,t,r){ia(()=>mt.reaction(e,t,r))}function jr(e){return ia(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const es=sn(Te.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:s,...i})=>{jr(()=>{const m=r(),f=l.current;f&&(f.textContent=m)});const l=Y.useRef(null);function u(m){s||m.button===0&&n("-")}function c(m){s||m.button===0&&n("+")}return e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:"#000"}),o.jsxs(_r,{height:"72px",direction:"row",justifyContent:"center",...i,children:[o.jsx(T.IconButton,{onPointerDown:u,onPointerUp:a,onPointerOut:a,size:"large",sx:{width:"55px",backgroundColor:e.buttonBackgroundColor,color:e.color,alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${e.borderColor??"#fff"}`,borderBottom:`2px solid ${e.borderColor??"#fff"}`,borderTop:`2px solid ${e.borderColor??"#fff"}`,":hover":{backgroundColor:e.buttonBackgroundColor}},children:o.jsx(Gs.Remove,{})}),o.jsxs(_r,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[o.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),o.jsx(T.Typography,{height:"22px",sx:{fontSize:"15px",color:e.color},ref:l,children:r()})]}),o.jsx(T.IconButton,{onPointerDown:c,onPointerUp:a,onPointerOut:a,size:"large",sx:{width:"55px",backgroundColor:e.buttonBackgroundColor,color:e.color,alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${e.borderColor??"#fff"}`,borderBottom:`2px solid ${e.borderColor??"#fff"}`,borderTop:`2px solid ${e.borderColor??"#fff"}`,":hover":{backgroundColor:e.buttonBackgroundColor}},children:o.jsx(Gs.Add,{})})]})}));var Is={},Ea={};function b0(e){return nn("MuiSvgIcon",e)}Hi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const x0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],v0=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(r)}`]};return Rs(a,b0,n)},j0=wt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Pe(r.color)}`],t[`fontSize${Pe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,s,i,l,u,c,m,f,d,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:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=e.typography)==null||(m=c.pxToRem)==null?void 0:m.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{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]}}),Un=N.forwardRef(function(t,r){const n=ks({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:m=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,b=Be(n,x0),y=N.isValidElement(a)&&a.type==="svg",_=M({},n,{color:i,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:d,hasSvgAsChild:y}),p={};m||(p.viewBox=d);const j=v0(_);return o.jsxs(j0,M({as:l,className:gt(j.root,s),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},p,b,y&&a.props,{ownerState:_,children:[y?a.props.children:a,f?o.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(Un.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});Un.muiName="SvgIcon";function S0(e,t){function r(n,a){return o.jsx(Un,M({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Un.muiName,N.memo(N.forwardRef(r))}const R0={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
+
`)),Ki.configure(e)}},w0=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:nd,createSvgIcon:S0,debounce:ad,deprecatedPropType:sd,isMuiElement:od,ownerDocument:pr,ownerWindow:id,requirePropFactory:ld,setRef:Zi,unstable_ClassNameGenerator:R0,unstable_useEnhancedEffect:js,unstable_useId:cd,unsupportedProp:md,useControlled:Qi,useEventCallback:An,useForkRef:Ln,useIsFocusVisible:el},Symbol.toStringTag,{value:"Module"})),A0=Rt(w0);var To;function fl(){return To||(To=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=A0}(Ea)),Ea}var P0=sa;Object.defineProperty(Is,"__esModule",{value:!0});var hl=Is.default=void 0,C0=P0(fl()),k0=o;hl=Is.default=(0,C0.default)((0,k0.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Ts={},M0=sa;Object.defineProperty(Ts,"__esModule",{value:!0});var gl=Ts.default=void 0,I0=M0(fl()),T0=o;gl=Ts.default=(0,I0.default)((0,T0.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pl=typeof global=="object"&&global&&global.Object===Object&&global,O0=typeof self=="object"&&self&&self.Object===Object&&self,_t=pl||O0||Function("return this")(),La=function(){return _t.Date.now()},E0=/\s/;function L0(e){for(var t=e.length;t--&&E0.test(e.charAt(t)););return t}var $0=/^\s+/;function N0(e){return e&&e.slice(0,L0(e)+1).replace($0,"")}var $t=_t.Symbol,_l=Object.prototype,F0=_l.hasOwnProperty,D0=_l.toString,Fr=$t?$t.toStringTag:void 0;function B0(e){var t=F0.call(e,Fr),r=e[Fr];try{e[Fr]=void 0;var n=!0}catch{}var a=D0.call(e);return n&&(t?e[Fr]=r:delete e[Fr]),a}var U0=Object.prototype,J0=U0.toString;function V0(e){return J0.call(e)}var G0="[object Null]",z0="[object Undefined]",Oo=$t?$t.toStringTag:void 0;function Yt(e){return e==null?e===void 0?z0:G0:Oo&&Oo in Object(e)?B0(e):V0(e)}function Wt(e){return e!=null&&typeof e=="object"}var K0="[object Symbol]";function la(e){return typeof e=="symbol"||Wt(e)&&Yt(e)==K0}var Eo=NaN,W0=/^[-+]0x[0-9a-f]+$/i,H0=/^0b[01]+$/i,X0=/^0o[0-7]+$/i,q0=parseInt;function Lo(e){if(typeof e=="number")return e;if(la(e))return Eo;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=N0(e);var r=H0.test(e);return r||X0.test(e)?q0(e.slice(2),r?2:8):W0.test(e)?Eo:+e}var Y0="Expected a function",Z0=Math.max,Q0=Math.min;function eh(e,t,r){var n,a,s,i,l,u,c=0,m=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Y0);t=Lo(t)||0,Kt(r)&&(m=!!r.leading,f="maxWait"in r,s=f?Z0(Lo(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d);function b(P){var k=n,z=a;return n=a=void 0,c=P,i=e.apply(z,k),i}function y(P){return c=P,l=setTimeout(j,t),m?b(P):i}function _(P){var k=P-u,z=P-c,le=t-k;return f?Q0(le,s-z):le}function p(P){var k=P-u,z=P-c;return u===void 0||k>=t||k<0||f&&z>=s}function j(){var P=La();if(p(P))return R(P);l=setTimeout(j,_(P))}function R(P){return l=void 0,d&&n?b(P):(n=a=void 0,i)}function C(){l!==void 0&&clearTimeout(l),c=0,n=u=a=l=void 0}function A(){return l===void 0?i:R(La())}function S(){var P=La(),k=p(P);if(n=arguments,a=this,u=P,k){if(l===void 0)return y(u);if(f)return clearTimeout(l),l=setTimeout(j,t),b(u)}return l===void 0&&(l=setTimeout(j,t)),i}return S.cancel=C,S.flush=A,S}var th="Expected a function";function rh(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(th);return Kt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),eh(e,t,{leading:n,maxWait:t,trailing:a})}const yl=sn(Te.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:a,disabled:s,...i})=>{const{t:l}=qt.useTranslation(),[u,c]=Y.useState(),m=Te.useLocalObservable(()=>({activeJoggingDir:null,startJogging(j){this.activeJoggingDir=j,e(j)},stopJogging(){this.activeJoggingDir=null,t()}})),f=rh(()=>{c(a())},50);jr(f);function d(j){j.button===0&&m.startJogging("-")}function b(j){j.button===0&&m.startJogging("+")}function y(j){m.stopJogging()}function _(j){j.target===j.currentTarget&&m.stopJogging()}function p(j,R=1){if(j===void 0||isNaN(j))return"";const C=l("General.degree.variable",{amount:j.toFixed(R)});return j>0&&R===0?`+${C}`:C}return o.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:[o.jsx(T.IconButton,{onPointerDown:d,onPointerUp:y,onPointerOut:_,disabled:s,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:m.activeJoggingDir==="-"?"#495975":void 0},children:o.jsx(hl,{})}),o.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:[o.jsx(T.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:p(u)}),o.jsx(T.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:u||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:p(r,0)},{value:n,label:p(n,0)}]})]}),o.jsx(T.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:s,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:m.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:o.jsx(gl,{})})]})}));function bl(e,t){return function(){return e.apply(t,arguments)}}const{toString:nh}=Object.prototype,{getPrototypeOf:Os}=Object,ua=(e=>t=>{const r=nh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>ua(t)===e),ca=e=>t=>typeof t===e,{isArray:Sr}=Array,Xr=ca("undefined");function ah(e){return e!==null&&!Xr(e)&&e.constructor!==null&&!Xr(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xl=it("ArrayBuffer");function sh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xl(e.buffer),t}const oh=ca("string"),Ke=ca("function"),vl=ca("number"),ma=e=>e!==null&&typeof e=="object",ih=e=>e===!0||e===!1,Mn=e=>{if(ua(e)!=="object")return!1;const t=Os(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lh=it("Date"),uh=it("File"),ch=it("Blob"),mh=it("FileList"),dh=e=>ma(e)&&Ke(e.pipe),fh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=ua(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},hh=it("URLSearchParams"),[gh,ph,_h,yh]=["ReadableStream","Request","Response","Headers"].map(it),bh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function on(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Sr(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(n=0;n<i;n++)l=s[n],t.call(null,e[l],l,e)}}function jl(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sl=e=>!Xr(e)&&e!==Vt;function ts(){const{caseless:e}=Sl(this)&&this||{},t={},r=(n,a)=>{const s=e&&jl(t,a)||a;Mn(t[s])&&Mn(n)?t[s]=ts(t[s],n):Mn(n)?t[s]=ts({},n):Sr(n)?t[s]=n.slice():t[s]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&on(arguments[n],r);return t}const xh=(e,t,r,{allOwnKeys:n}={})=>(on(t,(a,s)=>{r&&Ke(a)?e[s]=bl(a,r):e[s]=a},{allOwnKeys:n}),e),vh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Sh=(e,t,r,n)=>{let a,s,i;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Os(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Rh=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},wh=e=>{if(!e)return null;if(Sr(e))return e;let t=e.length;if(!vl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ah=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Os(Uint8Array)),Ph=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},Ch=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},kh=it("HTMLFormElement"),Mh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),$o=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ih=it("RegExp"),Rl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};on(r,(a,s)=>{let i;(i=t(a,s,e))!==!1&&(n[s]=i||a)}),Object.defineProperties(e,n)},Th=e=>{Rl(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Oh=(e,t)=>{const r={},n=a=>{a.forEach(s=>{r[s]=!0})};return Sr(e)?n(e):n(String(e).split(t)),r},Eh=()=>{},Lh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,$a="abcdefghijklmnopqrstuvwxyz",No="0123456789",wl={DIGIT:No,ALPHA:$a,ALPHA_DIGIT:$a+$a.toUpperCase()+No},$h=(e=16,t=wl.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Nh(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Fh=e=>{const t=new Array(10),r=(n,a)=>{if(ma(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const s=Sr(n)?[]:{};return on(n,(i,l)=>{const u=r(i,a+1);!Xr(u)&&(s[l]=u)}),t[a]=void 0,s}}return n};return r(e,0)},Dh=it("AsyncFunction"),Bh=e=>e&&(ma(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),Al=((e,t)=>e?setImmediate:t?((r,n)=>(Vt.addEventListener("message",({source:a,data:s})=>{a===Vt&&s===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke(Vt.postMessage)),Uh=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||Al,v={isArray:Sr,isArrayBuffer:xl,isBuffer:ah,isFormData:fh,isArrayBufferView:sh,isString:oh,isNumber:vl,isBoolean:ih,isObject:ma,isPlainObject:Mn,isReadableStream:gh,isRequest:ph,isResponse:_h,isHeaders:yh,isUndefined:Xr,isDate:lh,isFile:uh,isBlob:ch,isRegExp:Ih,isFunction:Ke,isStream:dh,isURLSearchParams:hh,isTypedArray:Ah,isFileList:mh,forEach:on,merge:ts,extend:xh,trim:bh,stripBOM:vh,inherits:jh,toFlatObject:Sh,kindOf:ua,kindOfTest:it,endsWith:Rh,toArray:wh,forEachEntry:Ph,matchAll:Ch,isHTMLForm:kh,hasOwnProperty:$o,hasOwnProp:$o,reduceDescriptors:Rl,freezeMethods:Th,toObjectSet:Oh,toCamelCase:Mh,noop:Eh,toFiniteNumber:Lh,findKey:jl,global:Vt,isContextDefined:Sl,ALPHABET:wl,generateString:$h,isSpecCompliantForm:Nh,toJSONObject:Fh,isAsyncFn:Dh,isThenable:Bh,setImmediate:Al,asap:Uh};function J(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}v.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Pl=J.prototype,Cl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Cl[e]={value:e}});Object.defineProperties(J,Cl);Object.defineProperty(Pl,"isAxiosError",{value:!0});J.from=(e,t,r,n,a,s)=>{const i=Object.create(Pl);return v.toFlatObject(e,i,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,a),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Jh=null;function rs(e){return v.isPlainObject(e)||v.isArray(e)}function kl(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Fo(e,t,r){return e?e.concat(t).map(function(a,s){return a=kl(a),!r&&s?"["+a+"]":a}).join(r?".":""):t}function Vh(e){return v.isArray(e)&&!e.some(rs)}const Gh=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function da(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,p){return!v.isUndefined(p[_])});const n=r.metaTokens,a=r.visitor||m,s=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(a))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!u&&v.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function m(y,_,p){let j=y;if(y&&!p&&typeof y=="object"){if(v.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&Vh(y)||(v.isFileList(y)||v.endsWith(_,"[]"))&&(j=v.toArray(y)))return _=kl(_),j.forEach(function(C,A){!(v.isUndefined(C)||C===null)&&t.append(i===!0?Fo([_],A,s):i===null?_:_+"[]",c(C))}),!1}return rs(y)?!0:(t.append(Fo(p,_,s),c(y)),!1)}const f=[],d=Object.assign(Gh,{defaultVisitor:m,convertValue:c,isVisitable:rs});function b(y,_){if(!v.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(y),v.forEach(y,function(j,R){(!(v.isUndefined(j)||j===null)&&a.call(t,j,v.isString(R)?R.trim():R,_,d))===!0&&b(j,_?_.concat(R):[R])}),f.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Do(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Es(e,t){this._pairs=[],e&&da(e,this,t)}const Ml=Es.prototype;Ml.append=function(t,r){this._pairs.push([t,r])};Ml.toString=function(t){const r=t?function(n){return t.call(this,n,Do)}:Do;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function zh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Il(e,t,r){if(!t)return e;const n=r&&r.encode||zh,a=r&&r.serialize;let s;if(a?s=a(t,r):s=v.isURLSearchParams(t)?t.toString():new Es(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Bo{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Tl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kh=typeof URLSearchParams<"u"?URLSearchParams:Es,Wh=typeof FormData<"u"?FormData:null,Hh=typeof Blob<"u"?Blob:null,Xh={isBrowser:!0,classes:{URLSearchParams:Kh,FormData:Wh,Blob:Hh},protocols:["http","https","file","blob","url","data"]},Ls=typeof window<"u"&&typeof document<"u",qh=(e=>Ls&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Yh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zh=Ls&&window.location.href||"http://localhost",Qh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ls,hasStandardBrowserEnv:qh,hasStandardBrowserWebWorkerEnv:Yh,origin:Zh},Symbol.toStringTag,{value:"Module"})),st={...Qh,...Xh};function eg(e,t){return da(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,s){return st.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function tg(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rg(e){const t={},r=Object.keys(e);let n;const a=r.length;let s;for(n=0;n<a;n++)s=r[n],t[s]=e[s];return t}function Ol(e){function t(r,n,a,s){let i=r[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),u=s>=r.length;return i=!i&&v.isArray(a)?a.length:i,u?(v.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!l):((!a[i]||!v.isObject(a[i]))&&(a[i]=[]),t(r,n,a[i],s)&&v.isArray(a[i])&&(a[i]=rg(a[i])),!l)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,a)=>{t(tg(n),a,r,0)}),r}return null}function ng(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ln={transitional:Tl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,s=v.isObject(t);if(s&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return a?JSON.stringify(Ol(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return eg(t,this.formSerializer).toString();if((l=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return da(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||a?(r.setContentType("application/json",!1),ng(t)):t}],transformResponse:[function(t){const r=this.transitional||ln.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(n&&!this.responseType||a)){const i=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?J.from(l,J.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{ln.headers[e]={}});const ag=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sg=e=>{const t={};let r,n,a;return e&&e.split(`
|
|
79
|
+
`).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),n=i.substring(a+1).trim(),!(!r||t[r]&&ag[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Uo=Symbol("internals");function Dr(e){return e&&String(e).trim().toLowerCase()}function In(e){return e===!1||e==null?e:v.isArray(e)?e.map(In):String(e)}function og(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const ig=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Na(e,t,r,n,a){if(v.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!v.isString(t)){if(v.isString(n))return t.indexOf(n)!==-1;if(v.isRegExp(n))return n.test(t)}}function lg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ug(e,t){const r=v.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,s,i){return this[n].call(this,t,a,s,i)},configurable:!0})})}let Fe=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function s(l,u,c){const m=Dr(u);if(!m)throw new Error("header name must be a non-empty string");const f=v.findKey(a,m);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||u]=In(l))}const i=(l,u)=>v.forEach(l,(c,m)=>s(c,m,u));if(v.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(v.isString(t)&&(t=t.trim())&&!ig(t))i(sg(t),r);else if(v.isHeaders(t))for(const[l,u]of t.entries())s(u,l,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=Dr(t),t){const n=v.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return og(a);if(v.isFunction(r))return r.call(this,a,n);if(v.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Dr(t),t){const n=v.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Na(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function s(i){if(i=Dr(i),i){const l=v.findKey(n,i);l&&(!r||Na(n,n[l],l,r))&&(delete n[l],a=!0)}}return v.isArray(t)?t.forEach(s):s(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const s=r[n];(!t||Na(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const r=this,n={};return v.forEach(this,(a,s)=>{const i=v.findKey(n,s);if(i){r[i]=In(a),delete r[s];return}const l=t?lg(s):String(s).trim();l!==s&&delete r[s],r[l]=In(a),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return v.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&v.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
80
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Uo]=this[Uo]={accessors:{}}).accessors,a=this.prototype;function s(i){const l=Dr(i);n[l]||(ug(a,i),n[l]=!0)}return v.isArray(t)?t.forEach(s):s(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Fe);function Fa(e,t){const r=this||ln,n=t||r,a=Fe.from(n.headers);let s=n.data;return v.forEach(e,function(l){s=l.call(r,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function El(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Rr,J,{__CANCEL__:!0});function Ll(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function cg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mg(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,s=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),m=n[s];i||(i=c),r[a]=u,n[a]=c;let f=s,d=0;for(;f!==a;)d+=r[f++],f=f%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),c-i<t)return;const b=m&&c-m;return b?Math.round(d*1e3/b):void 0}}function dg(e,t){let r=0,n=1e3/t,a,s;const i=(c,m=Date.now())=>{r=m,a=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const m=Date.now(),f=m-r;f>=n?i(c,m):(a=c,s||(s=setTimeout(()=>{s=null,i(a)},n-f)))},()=>a&&i(a)]}const Jn=(e,t,r=3)=>{let n=0;const a=mg(50,250);return dg(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,u=i-n,c=a(u),m=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&m?(l-i)/c:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},Jo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Vo=e=>(...t)=>v.asap(()=>e(...t)),fg=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(s){let i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(i){const l=v.isString(i)?a(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),hg=st.hasStandardBrowserEnv?{write(e,t,r,n,a,s){const i=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),v.isString(n)&&i.push("path="+n),v.isString(a)&&i.push("domain="+a),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $l(e,t){return e&&!gg(t)?pg(e,t):t}const Go=e=>e instanceof Fe?{...e}:e;function Ht(e,t){t=t||{};const r={};function n(c,m,f){return v.isPlainObject(c)&&v.isPlainObject(m)?v.merge.call({caseless:f},c,m):v.isPlainObject(m)?v.merge({},m):v.isArray(m)?m.slice():m}function a(c,m,f){if(v.isUndefined(m)){if(!v.isUndefined(c))return n(void 0,c,f)}else return n(c,m,f)}function s(c,m){if(!v.isUndefined(m))return n(void 0,m)}function i(c,m){if(v.isUndefined(m)){if(!v.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,f){if(f in t)return n(c,m);if(f in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,m)=>a(Go(c),Go(m),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(m){const f=u[m]||a,d=f(e[m],t[m],m);v.isUndefined(d)&&f!==l||(r[m]=d)}),r}const Nl=e=>{const t=Ht({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=Il($l(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(v.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...m]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...m].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&v.isFunction(n)&&(n=n(t)),n||n!==!1&&fg(t.url))){const c=a&&s&&hg.read(s);c&&i.set(a,c)}return t},_g=typeof XMLHttpRequest<"u",yg=_g&&function(e){return new Promise(function(r,n){const a=Nl(e);let s=a.data;const i=Fe.from(a.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=a,m,f,d,b,y;function _(){b&&b(),y&&y(),a.cancelToken&&a.cancelToken.unsubscribe(m),a.signal&&a.signal.removeEventListener("abort",m)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function j(){if(!p)return;const C=Fe.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:C,config:e,request:p};Ll(function(k){r(k),_()},function(k){n(k),_()},S),p=null}"onloadend"in p?p.onloadend=j:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(j)},p.onabort=function(){p&&(n(new J("Request aborted",J.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let A=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||Tl;a.timeoutErrorMessage&&(A=a.timeoutErrorMessage),n(new J(A,S.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,p)),p=null},s===void 0&&i.setContentType(null),"setRequestHeader"in p&&v.forEach(i.toJSON(),function(A,S){p.setRequestHeader(S,A)}),v.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),l&&l!=="json"&&(p.responseType=a.responseType),c&&([d,y]=Jn(c,!0),p.addEventListener("progress",d)),u&&p.upload&&([f,b]=Jn(u),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(m=C=>{p&&(n(!C||C.type?new Rr(null,e,p):C),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(m),a.signal&&(a.signal.aborted?m():a.signal.addEventListener("abort",m)));const R=cg(a.url);if(R&&st.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}p.send(s||null)})},bg=(e,t)=>{let r=new AbortController,n;const a=function(u){if(!n){n=!0,i();const c=u instanceof Error?u:this.reason;r.abort(c instanceof J?c:new Rr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{a(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",a):u.unsubscribe(a))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{s&&clearTimeout(s),s=null}]},xg=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},vg=async function*(e,t,r){for await(const n of e)yield*xg(ArrayBuffer.isView(n)?n:await r(String(n)),t)},zo=(e,t,r,n,a)=>{const s=vg(e,t,a);let i=0,l,u=c=>{l||(l=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:m,value:f}=await s.next();if(m){u(),c.close();return}let d=f.byteLength;if(r){let b=i+=d;r(b)}c.enqueue(new Uint8Array(f))}catch(m){throw u(m),m}},cancel(c){return u(c),s.return()}},{highWaterMark:2})},fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fl=fa&&typeof ReadableStream=="function",ns=fa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Dl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jg=Fl&&Dl(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ko=64*1024,as=Fl&&Dl(()=>v.isReadableStream(new Response("").body)),Vn={stream:as&&(e=>e.body)};fa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vn[t]&&(Vn[t]=v.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const Sg=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await ns(e)).byteLength},Rg=async(e,t)=>{const r=v.toFiniteNumber(e.getContentLength());return r??Sg(t)},wg=fa&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:m,withCredentials:f="same-origin",fetchOptions:d}=Nl(e);c=c?(c+"").toLowerCase():"text";let[b,y]=a||s||i?bg([a,s],i):[],_,p;const j=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(u&&jg&&r!=="get"&&r!=="head"&&(R=await Rg(m,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),k;if(v.isFormData(n)&&(k=P.headers.get("content-type"))&&m.setContentType(k),P.body){const[z,le]=Jo(R,Jn(Vo(u)));n=zo(P.body,Ko,z,le,ns)}}v.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:b,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:n,duplex:"half",credentials:f});let C=await fetch(p);const A=as&&(c==="stream"||c==="response");if(as&&(l||A)){const P={};["status","statusText","headers"].forEach(ce=>{P[ce]=C[ce]});const k=v.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&Jo(k,Jn(Vo(l),!0))||[];C=new Response(zo(C.body,Ko,z,()=>{le&&le(),A&&j()},ns),P)}c=c||"text";let S=await Vn[v.findKey(Vn,c)||"text"](C,e);return!A&&j(),y&&y(),await new Promise((P,k)=>{Ll(P,k,{data:S,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:p})})}catch(C){throw j(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:C.cause||C}):J.from(C,C&&C.code,e,p)}}),ss={http:Jh,xhr:yg,fetch:wg};v.forEach(ss,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wo=e=>`- ${e}`,Ag=e=>v.isFunction(e)||e===null||e===!1,Bl={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let s=0;s<t;s++){r=e[s];let i;if(n=r,!Ag(r)&&(n=ss[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;a[i||"#"+s]=n}if(!n){const s=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
|
|
81
81
|
`+s.map(Wo).join(`
|
|
82
|
-
`):" "+Wo(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:ss};function Da(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function Ho(e){return Da(e),e.headers=Fe.from(e.headers),e.data=Fa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),
|
|
83
|
-
`+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ht(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:s}=r;n!==void 0&&os.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),a!=null&&(v.isFunction(a)?r.paramsSerializer={serialize:a}:os.assertOptions(a,{encode:Ot.function,serialize:Ot.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&v.merge(s.common,s[r.method]);s&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=Fe.concat(i,s);const l=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(u=u&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let m,f=0,d;if(!u){const y=[Ho.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),d=y.length,m=Promise.resolve(r);f<d;)m=m.then(y[f++],y[f++]);return m}d=l.length;let b=r;for(f=0;f<d;){const y=l[f++],_=l[f++];try{b=y(b)}catch(p){_.call(this,p);break}}try{m=Ho.call(this,b)}catch(y){return Promise.reject(y)}for(f=0,d=c.length;f<d;)m=m.then(c[f++],c[f++]);return m}getUri(t){t=Ht(this.defaults,t);const r=Ll(t.baseURL,t.url);return kl(r,t.params,t.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(t){Gt.prototype[t]=function(r,n){return this.request(Ht(n||{},{method:t,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,l){return this.request(Ht(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Gt.prototype[t]=r(),Gt.prototype[t+"Form"]=r(!0)});let Pg=class Ul{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(a=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](a);n._listeners=null}),this.promise.then=a=>{let s;const i=new Promise(l=>{n.subscribe(l),s=l}).then(a);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,l){n.reason||(n.reason=new Rr(s,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Ul(function(a){t=a}),cancel:t}}};function Cg(e){return function(r){return e.apply(null,r)}}function Mg(e){return v.isObject(e)&&e.isAxiosError===!0}const is={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(is).forEach(([e,t])=>{is[t]=e});function Jl(e){const t=new Gt(e),r=yl(Gt.prototype.request,t);return v.extend(r,Gt.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Jl(Ht(e,a))},r}const ve=Jl(ln);ve.Axios=Gt;ve.CanceledError=Rr;ve.CancelToken=Pg;ve.isCancel=Ol;ve.VERSION=Bl;ve.toFormData=da;ve.AxiosError=J;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=Cg;ve.isAxiosError=Mg;ve.mergeConfig=Ht;ve.AxiosHeaders=Fe;ve.formToJSON=e=>Tl(v.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Dl.getAdapter;ve.HttpStatusCode=is;ve.default=ve;const{Axios:sb,AxiosError:qo,CanceledError:ob,isCancel:ib,CancelToken:lb,VERSION:ub,all:cb,Cancel:mb,isAxiosError:db,spread:fb,toFormData:hb,AxiosHeaders:gb,HttpStatusCode:pb,formToJSON:_b,getAdapter:yb,mergeConfig:bb}=ve;function kg(e){try{return JSON.stringify(e)}catch{return}}function Ig(e){var t,r,n,a;return e instanceof qo&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof qo&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((a=e.response)==null?void 0:a.data)}`:e instanceof Error?e.message:`Unexpected error: ${kg(e)||e}`}const ha=e=>{const t=e.softTimeout||3e3,[r,n]=Y.useState(!1);return Y.useEffect(()=>{const a=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(a)}),o.jsx(T.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?o.jsx(Vl,{loadingMessage:e.message,error:e.error}):o.jsxs(o.Fragment,{children:[o.jsx(T.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&o.jsx("div",{children:e.message}),o.jsx(T.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},Vl=e=>{const t=Ig(e.error),r=e.error instanceof Error?e.error.stack:null,n=T.useTheme();return o.jsxs(T.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Kn.lowerFirst(T.capitalize(e.loadingMessage))} - `:"")+t,o.jsx("br",{}),r&&o.jsx("pre",{children:r})]})},Tg=({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"})),Og=Y.forwardRef(Tg),Eg=({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"})),Lg=Y.forwardRef(Eg),$g=({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"})),Ng=Y.forwardRef($g),Fg=({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"})),Dg=Y.forwardRef(Fg),Yo=e=>o.jsx(T.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(2px)",zIndex:100,...e.sx||{}},...Kn.omit(e,"sx")}),Gl=Te.observer(({store:e,children:t})=>{const{t:r}=qt.useTranslation(),n=T.useTheme();function a(){var s,i;if(e.activationState==="inactive"&&!e.activationError)return o.jsx(Yo,{sx:{borderRadius:"6px",backgroundColor:`color-mix(in srgb, ${(s=n.palette.backgroundPaperElevation)==null?void 0:s[5]}, transparent)`},children:o.jsx(T.Button,{color:"primary",variant:"contained",onClick:()=>e.activate({manual:!0}),disabled:e.isLocked,children:r("Jogging.Activate.bt")})});if(e.activationState==="loading"||e.activationError)return o.jsx(Yo,{sx:{backgroundColor:`color-mix(in srgb, ${(i=n.palette.backgroundPaperElevation)==null?void 0:i[5]}, transparent)`},children:o.jsx(ha,{message:r("Jogging.Activating.lb"),error:e.activationError})})}return o.jsxs(T.Stack,{sx:{position:"relative",padding:"6px"},children:[a(),t]})}),zl=Y.forwardRef(({label:e,value:t},r)=>o.jsxs(o.Fragment,{children:[e&&o.jsx(T.InputLabel,{children:e}),o.jsx(T.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),Bg=Te.observer(({store:e})=>{const t=Y.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Lt.poseToWandelscriptString(n):""}return jr(()=>{t.current&&(t.current.textContent=r())}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:o.jsx(zl,{label:"Pose",value:r(),ref:t})})});function Ug(){this.__data__=[],this.size=0}function Kl(e,t){return e===t||e!==e&&t!==t}function ga(e,t){for(var r=e.length;r--;)if(Kl(e[r][0],t))return r;return-1}var Jg=Array.prototype,Vg=Jg.splice;function Gg(e){var t=this.__data__,r=ga(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Vg.call(t,r,1),--this.size,!0}function zg(e){var t=this.__data__,r=ga(t,e);return r<0?void 0:t[r][1]}function Kg(e){return ga(this.__data__,e)>-1}function Wg(e,t){var r=this.__data__,n=ga(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=Ug;At.prototype.delete=Gg;At.prototype.get=zg;At.prototype.has=Kg;At.prototype.set=Wg;function Hg(){this.__data__=new At,this.size=0}function Xg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function qg(e){return this.__data__.get(e)}function Yg(e){return this.__data__.has(e)}var Zg="[object AsyncFunction]",Qg="[object Function]",ep="[object GeneratorFunction]",tp="[object Proxy]";function Wl(e){if(!Kt(e))return!1;var t=Yt(e);return t==Qg||t==ep||t==Zg||t==tp}var Ba=_t["__core-js_shared__"],Zo=function(){var e=/[^.]+$/.exec(Ba&&Ba.keys&&Ba.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function rp(e){return!!Zo&&Zo in e}var np=Function.prototype,ap=np.toString;function Zt(e){if(e!=null){try{return ap.call(e)}catch{}try{return e+""}catch{}}return""}var sp=/[\\^$.*+?()[\]{}|]/g,op=/^\[object .+?Constructor\]$/,ip=Function.prototype,lp=Object.prototype,up=ip.toString,cp=lp.hasOwnProperty,mp=RegExp("^"+up.call(cp).replace(sp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dp(e){if(!Kt(e)||rp(e))return!1;var t=Wl(e)?mp:op;return t.test(Zt(e))}function fp(e,t){return e==null?void 0:e[t]}function Qt(e,t){var r=fp(e,t);return dp(r)?r:void 0}var qr=Qt(_t,"Map"),Yr=Qt(Object,"create");function hp(){this.__data__=Yr?Yr(null):{},this.size=0}function gp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pp="__lodash_hash_undefined__",_p=Object.prototype,yp=_p.hasOwnProperty;function bp(e){var t=this.__data__;if(Yr){var r=t[e];return r===pp?void 0:r}return yp.call(t,e)?t[e]:void 0}var xp=Object.prototype,vp=xp.hasOwnProperty;function jp(e){var t=this.__data__;return Yr?t[e]!==void 0:vp.call(t,e)}var Sp="__lodash_hash_undefined__";function Rp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&t===void 0?Sp:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=hp;Xt.prototype.delete=gp;Xt.prototype.get=bp;Xt.prototype.has=jp;Xt.prototype.set=Rp;function wp(){this.size=0,this.__data__={hash:new Xt,map:new(qr||At),string:new Xt}}function Ap(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pa(e,t){var r=e.__data__;return Ap(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Pp(e){var t=pa(this,e).delete(e);return this.size-=t?1:0,t}function Cp(e){return pa(this,e).get(e)}function Mp(e){return pa(this,e).has(e)}function kp(e,t){var r=pa(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=wp;Pt.prototype.delete=Pp;Pt.prototype.get=Cp;Pt.prototype.has=Mp;Pt.prototype.set=kp;var Ip=200;function Tp(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!qr||n.length<Ip-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 St(e){var t=this.__data__=new At(e);this.size=t.size}St.prototype.clear=Hg;St.prototype.delete=Xg;St.prototype.get=qg;St.prototype.has=Yg;St.prototype.set=Tp;var Op="__lodash_hash_undefined__";function Ep(e){return this.__data__.set(e,Op),this}function Lp(e){return this.__data__.has(e)}function Gn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Gn.prototype.add=Gn.prototype.push=Ep;Gn.prototype.has=Lp;function $p(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 Np(e,t){return e.has(t)}var Fp=1,Dp=2;function Hl(e,t,r,n,a,s){var i=r&Fp,l=e.length,u=t.length;if(l!=u&&!(i&&u>l))return!1;var c=s.get(e),m=s.get(t);if(c&&m)return c==t&&m==e;var f=-1,d=!0,b=r&Dp?new Gn:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var y=e[f],_=t[f];if(n)var p=i?n(_,y,f,t,e,s):n(y,_,f,e,t,s);if(p!==void 0){if(p)continue;d=!1;break}if(b){if(!$p(t,function(j,R){if(!Np(b,R)&&(y===j||a(y,j,r,n,s)))return b.push(R)})){d=!1;break}}else if(!(y===_||a(y,_,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}var Qo=_t.Uint8Array;function Bp(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function Up(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Jp=1,Vp=2,Gp="[object Boolean]",zp="[object Date]",Kp="[object Error]",Wp="[object Map]",Hp="[object Number]",Xp="[object RegExp]",qp="[object Set]",Yp="[object String]",Zp="[object Symbol]",Qp="[object ArrayBuffer]",e_="[object DataView]",ei=$t?$t.prototype:void 0,Ua=ei?ei.valueOf:void 0;function t_(e,t,r,n,a,s,i){switch(r){case e_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Qp:return!(e.byteLength!=t.byteLength||!s(new Qo(e),new Qo(t)));case Gp:case zp:case Hp:return Kl(+e,+t);case Kp:return e.name==t.name&&e.message==t.message;case Xp:case Yp:return e==t+"";case Wp:var l=Bp;case qp:var u=n&Jp;if(l||(l=Up),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;n|=Vp,i.set(e,t);var m=Hl(l(e),l(t),n,a,s,i);return i.delete(e),m;case Zp:if(Ua)return Ua.call(e)==Ua.call(t)}return!1}function r_(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var pt=Array.isArray;function n_(e,t,r){var n=t(e);return pt(e)?n:r_(n,r(e))}function a_(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[a++]=i)}return s}function s_(){return[]}var o_=Object.prototype,i_=o_.propertyIsEnumerable,ti=Object.getOwnPropertySymbols,l_=ti?function(e){return e==null?[]:(e=Object(e),a_(ti(e),function(t){return i_.call(e,t)}))}:s_;function u_(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var c_="[object Arguments]";function ri(e){return Wt(e)&&Yt(e)==c_}var Xl=Object.prototype,m_=Xl.hasOwnProperty,d_=Xl.propertyIsEnumerable,ql=ri(function(){return arguments}())?ri:function(e){return Wt(e)&&m_.call(e,"callee")&&!d_.call(e,"callee")};function f_(){return!1}var Yl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ni=Yl&&typeof module=="object"&&module&&!module.nodeType&&module,h_=ni&&ni.exports===Yl,ai=h_?_t.Buffer:void 0,g_=ai?ai.isBuffer:void 0,ls=g_||f_,p_=9007199254740991,__=/^(?:0|[1-9]\d*)$/;function Zl(e,t){var r=typeof e;return t=t??p_,!!t&&(r=="number"||r!="symbol"&&__.test(e))&&e>-1&&e%1==0&&e<t}var y_=9007199254740991;function Ns(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=y_}var b_="[object Arguments]",x_="[object Array]",v_="[object Boolean]",j_="[object Date]",S_="[object Error]",R_="[object Function]",w_="[object Map]",A_="[object Number]",P_="[object Object]",C_="[object RegExp]",M_="[object Set]",k_="[object String]",I_="[object WeakMap]",T_="[object ArrayBuffer]",O_="[object DataView]",E_="[object Float32Array]",L_="[object Float64Array]",$_="[object Int8Array]",N_="[object Int16Array]",F_="[object Int32Array]",D_="[object Uint8Array]",B_="[object Uint8ClampedArray]",U_="[object Uint16Array]",J_="[object Uint32Array]",me={};me[E_]=me[L_]=me[$_]=me[N_]=me[F_]=me[D_]=me[B_]=me[U_]=me[J_]=!0;me[b_]=me[x_]=me[T_]=me[v_]=me[O_]=me[j_]=me[S_]=me[R_]=me[w_]=me[A_]=me[P_]=me[C_]=me[M_]=me[k_]=me[I_]=!1;function V_(e){return Wt(e)&&Ns(e.length)&&!!me[Yt(e)]}function G_(e){return function(t){return e(t)}}var Ql=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vr=Ql&&typeof module=="object"&&module&&!module.nodeType&&module,z_=Vr&&Vr.exports===Ql,Ja=z_&&gl.process,si=function(){try{var e=Vr&&Vr.require&&Vr.require("util").types;return e||Ja&&Ja.binding&&Ja.binding("util")}catch{}}(),oi=si&&si.isTypedArray,eu=oi?G_(oi):V_,K_=Object.prototype,W_=K_.hasOwnProperty;function H_(e,t){var r=pt(e),n=!r&&ql(e),a=!r&&!n&&ls(e),s=!r&&!n&&!a&&eu(e),i=r||n||a||s,l=i?u_(e.length,String):[],u=l.length;for(var c in e)W_.call(e,c)&&!(i&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Zl(c,u)))&&l.push(c);return l}var X_=Object.prototype;function q_(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||X_;return e===r}function Y_(e,t){return function(r){return e(t(r))}}var Z_=Y_(Object.keys,Object),Q_=Object.prototype,ey=Q_.hasOwnProperty;function ty(e){if(!q_(e))return Z_(e);var t=[];for(var r in Object(e))ey.call(e,r)&&r!="constructor"&&t.push(r);return t}function tu(e){return e!=null&&Ns(e.length)&&!Wl(e)}function Fs(e){return tu(e)?H_(e):ty(e)}function ii(e){return n_(e,Fs,l_)}var ry=1,ny=Object.prototype,ay=ny.hasOwnProperty;function sy(e,t,r,n,a,s){var i=r&ry,l=ii(e),u=l.length,c=ii(t),m=c.length;if(u!=m&&!i)return!1;for(var f=u;f--;){var d=l[f];if(!(i?d in t:ay.call(t,d)))return!1}var b=s.get(e),y=s.get(t);if(b&&y)return b==t&&y==e;var _=!0;s.set(e,t),s.set(t,e);for(var p=i;++f<u;){d=l[f];var j=e[d],R=t[d];if(n)var C=i?n(R,j,d,t,e,s):n(j,R,d,e,t,s);if(!(C===void 0?j===R||a(j,R,r,n,s):C)){_=!1;break}p||(p=d=="constructor")}if(_&&!p){var A=e.constructor,S=t.constructor;A!=S&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof S=="function"&&S instanceof S)&&(_=!1)}return s.delete(e),s.delete(t),_}var us=Qt(_t,"DataView"),cs=Qt(_t,"Promise"),ms=Qt(_t,"Set"),ds=Qt(_t,"WeakMap"),li="[object Map]",oy="[object Object]",ui="[object Promise]",ci="[object Set]",mi="[object WeakMap]",di="[object DataView]",iy=Zt(us),ly=Zt(qr),uy=Zt(cs),cy=Zt(ms),my=Zt(ds),Et=Yt;(us&&Et(new us(new ArrayBuffer(1)))!=di||qr&&Et(new qr)!=li||cs&&Et(cs.resolve())!=ui||ms&&Et(new ms)!=ci||ds&&Et(new ds)!=mi)&&(Et=function(e){var t=Yt(e),r=t==oy?e.constructor:void 0,n=r?Zt(r):"";if(n)switch(n){case iy:return di;case ly:return li;case uy:return ui;case cy:return ci;case my:return mi}return t});var dy=1,fi="[object Arguments]",hi="[object Array]",pn="[object Object]",fy=Object.prototype,gi=fy.hasOwnProperty;function hy(e,t,r,n,a,s){var i=pt(e),l=pt(t),u=i?hi:Et(e),c=l?hi:Et(t);u=u==fi?pn:u,c=c==fi?pn:c;var m=u==pn,f=c==pn,d=u==c;if(d&&ls(e)){if(!ls(t))return!1;i=!0,m=!1}if(d&&!m)return s||(s=new St),i||eu(e)?Hl(e,t,r,n,a,s):t_(e,t,u,r,n,a,s);if(!(r&dy)){var b=m&&gi.call(e,"__wrapped__"),y=f&&gi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,p=y?t.value():t;return s||(s=new St),a(_,p,r,n,s)}}return d?(s||(s=new St),sy(e,t,r,n,a,s)):!1}function _a(e,t,r,n,a){return e===t?!0:e==null||t==null||!Wt(e)&&!Wt(t)?e!==e&&t!==t:hy(e,t,r,n,_a,a)}function gy(e,t){return _a(e,t)}const ru=({store:e})=>{const{t}=qt.useTranslation(),[r,n]=Y.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),a=Y.useRef(r);jr(()=>{const i=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;gy(a.current,i)||(a.current=i,n(i))});const s=[];for(const[i,l]of r.entries())l&&s.push(i);return o.jsx(T.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:s.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:s.map(i=>i+1).join(", ")})})},py=({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"})),_y=Y.forwardRef(py),yy=({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"})),by=Y.forwardRef(yy),xy=Te.observer(({store:e})=>{var n;const{t}=qt.useTranslation();function r(a,s){(s==="coordsys"||s==="tool")&&e.setSelectedOrientation(s)}return o.jsxs(o.Fragment,{children:[o.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"6px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),o.jsx(T.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:a=>{e.setSelectedCoordSystemId(a.target.value)},disabled:e.isLocked,children:e.coordSystems.map(a=>o.jsx(T.MenuItem,{value:a.coordinate_system,children:a.name&&e.coordSystemCountByName[a.name]>1?`${a.name} / ${a.coordinate_system}`:a.name||a.coordinate_system},a.coordinate_system))})]}),o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),o.jsx(T.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,size:"small",variant:"filled",onChange:a=>{e.setSelectedTcpId(a.target.value)},disabled:e.isLocked,children:e.tcps.map(a=>o.jsx(T.MenuItem,{value:a.id,children:a.id},a.id))})]})]}),o.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"6px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),o.jsxs(T.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[o.jsx(T.ToggleButton,{value:"coordsys",sx:{flexGrow:1},children:o.jsx(_y,{})}),o.jsx(T.ToggleButton,{value:"tool",sx:{flexGrow:1},children:o.jsx(by,{})})]})]}),o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-increment-select",children:"Increment"}),o.jsxs(T.Select,{labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:a=>{e.setSelectedIncrementId(a.target.value)},disabled:e.isLocked,children:[o.jsx(T.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(a=>o.jsx(T.MenuItem,{value:a.id,children:e.currentMotionType==="translate"?`${a.mm}mm`:`${a.degrees}°`},a.id))]})]})]})]})});function vy(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const jy=2;function nu(e,t){return e-t}function pi(e,t){var r;const{index:n}=(r=e.reduce((a,s,i)=>{const l=Math.abs(t-s);return a===null||l<a.distance||l===a.distance?{distance:l,index:i}:a},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 a=r.changedTouches[n];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function zn(e,t,r){return(e-t)*100/(r-t)}function Sy(e,t,r){return(r-t)*e+t}function Ry(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 wy(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Ry(t)))}function _i({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(nu)}function yn({sliderRef:e,activeIndex:t,setActive:r}){var n,a;const s=pr(e.current);if(!((n=e.current)!=null&&n.contains(s.activeElement))||Number(s==null||(a=s.activeElement)==null?void 0:a.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function bn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?vy(e,t):!1}const Ay={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}%`})}},Py=e=>e;let xn;function yi(){return xn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xn=CSS.supports("touch-action","none"):xn=!0),xn}function Cy(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:s=!1,marks:i=!1,max:l=100,min:u=0,name:c,onChange:m,onChangeCommitted:f,orientation:d="horizontal",rootRef:b,scale:y=Py,step:_=1,shiftStep:p=10,tabIndex:j,value:R}=e,C=N.useRef(),[A,S]=N.useState(-1),[P,M]=N.useState(-1),[z,le]=N.useState(!1),ce=N.useRef(0),[D,q]=Zi({controlled:R,default:r??u,name:"Slider"}),G=m&&((I,L,F)=>{const K=I.nativeEvent||I,Q=new K.constructor(K.type,K);Object.defineProperty(Q,"target",{writable:!0,value:{value:L,name:c}}),m(Q,L,F)}),Z=Array.isArray(D);let X=Z?D.slice().sort(nu):[D];X=X.map(I=>I==null?u:dr(I,u,l));const je=i===!0&&_!==null?[...Array(Math.floor((l-u)/_)+1)].map((I,L)=>({value:u+_*L})):i||[],ue=je.map(I=>I.value),{isFocusVisibleRef:ee,onBlur:we,onFocus:Oe,ref:nt}=Qi(),[yt,We]=N.useState(-1),Se=N.useRef(),Ct=Ln(nt,Se),lt=Ln(b,Ct),He=I=>L=>{var F;const K=Number(L.currentTarget.getAttribute("data-index"));Oe(L),ee.current===!0&&We(K),M(K),I==null||(F=I.onFocus)==null||F.call(I,L)},Ue=I=>L=>{var F;we(L),ee.current===!1&&We(-1),M(-1),I==null||(F=I.onBlur)==null||F.call(I,L)},ut=(I,L)=>{const F=Number(I.currentTarget.getAttribute("data-index")),K=X[F],Q=ue.indexOf(K);let W=L;if(je&&_==null){const Ve=ue[ue.length-1];W>Ve?W=Ve:W<ue[0]?W=ue[0]:W=W<K?ue[Q-1]:ue[Q+1]}if(W=dr(W,u,l),Z){a&&(W=dr(W,X[F-1]||-1/0,X[F+1]||1/0));const Ve=W;W=_i({values:X,newValue:W,index:F});let Xe=F;a||(Xe=W.indexOf(Ve)),yn({sliderRef:Se,activeIndex:Xe})}q(W),We(F),G&&!bn(W,D)&&G(I,W,F),f&&f(I,W)},ct=I=>L=>{var F;if(_!==null){const K=Number(L.currentTarget.getAttribute("data-index")),Q=X[K];let W=null;(L.key==="ArrowLeft"||L.key==="ArrowDown")&&L.shiftKey||L.key==="PageDown"?W=Math.max(Q-p,u):((L.key==="ArrowRight"||L.key==="ArrowUp")&&L.shiftKey||L.key==="PageUp")&&(W=Math.min(Q+p,l)),W!==null&&(ut(L,W),L.preventDefault())}I==null||(F=I.onKeyDown)==null||F.call(I,L)};js(()=>{if(n&&Se.current.contains(document.activeElement)){var I;(I=document.activeElement)==null||I.blur()}},[n]),n&&A!==-1&&S(-1),n&&yt!==-1&&We(-1);const Ft=I=>L=>{var F;(F=I.onChange)==null||F.call(I,L),ut(L,L.target.valueAsNumber)},bt=N.useRef();let Je=d;s&&d==="horizontal"&&(Je+="-reverse");const O=({finger:I,move:L=!1})=>{const{current:F}=Se,{width:K,height:Q,bottom:W,left:Ve}=F.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(W-I.y)/Q:Xe=(I.x-Ve)/K,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let re;if(re=Sy(Xe,u,l),_)re=wy(re,_,u);else{const It=pi(ue,re);re=ue[It]}re=dr(re,u,l);let $e=0;if(Z){L?$e=bt.current:$e=pi(X,re),a&&(re=dr(re,X[$e-1]||-1/0,X[$e+1]||1/0));const It=re;re=_i({values:X,newValue:re,index:$e}),a&&L||($e=re.indexOf(It),bt.current=$e)}return{newValue:re,activeIndex:$e}},te=An(I=>{const L=_n(I,C);if(!L)return;if(ce.current+=1,I.type==="mousemove"&&I.buttons===0){fe(I);return}const{newValue:F,activeIndex:K}=O({finger:L,move:!0});yn({sliderRef:Se,activeIndex:K,setActive:S}),q(F),!z&&ce.current>jy&&le(!0),G&&!bn(F,D)&&G(I,F,K)}),fe=An(I=>{const L=_n(I,C);if(le(!1),!L)return;const{newValue:F}=O({finger:L,move:!0});S(-1),I.type==="touchend"&&M(-1),f&&f(I,F),C.current=void 0,Le()}),Ee=An(I=>{if(n)return;yi()||I.preventDefault();const L=I.changedTouches[0];L!=null&&(C.current=L.identifier);const F=_n(I,C);if(F!==!1){const{newValue:Q,activeIndex:W}=O({finger:F});yn({sliderRef:Se,activeIndex:W,setActive:S}),q(Q),G&&!bn(Q,D)&&G(I,Q,W)}ce.current=0;const K=pr(Se.current);K.addEventListener("touchmove",te,{passive:!0}),K.addEventListener("touchend",fe,{passive:!0})}),Le=N.useCallback(()=>{const I=pr(Se.current);I.removeEventListener("mousemove",te),I.removeEventListener("mouseup",fe),I.removeEventListener("touchmove",te),I.removeEventListener("touchend",fe)},[fe,te]);N.useEffect(()=>{const{current:I}=Se;return I.addEventListener("touchstart",Ee,{passive:yi()}),()=>{I.removeEventListener("touchstart",Ee),Le()}},[Le,Ee]),N.useEffect(()=>{n&&Le()},[n,Le]);const Mt=I=>L=>{var F;if((F=I.onMouseDown)==null||F.call(I,L),n||L.defaultPrevented||L.button!==0)return;L.preventDefault();const K=_n(L,C);if(K!==!1){const{newValue:W,activeIndex:Ve}=O({finger:K});yn({sliderRef:Se,activeIndex:Ve,setActive:S}),q(W),G&&!bn(W,D)&&G(L,W,Ve)}ce.current=0;const Q=pr(Se.current);Q.addEventListener("mousemove",te,{passive:!0}),Q.addEventListener("mouseup",fe)},Re=zn(Z?X[0]:u,u,l),kt=zn(X[X.length-1],u,l)-Re,Dt=(I={})=>{const L=Pn(I),F={onMouseDown:Mt(L||{})},K=k({},L,F);return k({},I,{ref:lt},K)},wr=I=>L=>{var F;(F=I.onMouseOver)==null||F.call(I,L);const K=Number(L.currentTarget.getAttribute("data-index"));M(K)},Ar=I=>L=>{var F;(F=I.onMouseLeave)==null||F.call(I,L),M(-1)};return{active:A,axis:Je,axisProps:Ay,dragging:z,focusedThumbIndex:yt,getHiddenInputProps:(I={})=>{var L;const F=Pn(I),K={onChange:Ft(F||{}),onFocus:He(F||{}),onBlur:Ue(F||{}),onKeyDown:ct(F||{})},Q=k({},F,K);return k({tabIndex:j,"aria-labelledby":t,"aria-orientation":d,"aria-valuemax":y(l),"aria-valuemin":y(u),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(L=e.step)!=null?L:void 0,disabled:n},I,Q,{style:k({},yd,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Dt,getThumbProps:(I={})=>{const L=Pn(I),F={onMouseOver:wr(L||{}),onMouseLeave:Ar(L||{})};return k({},I,L,F)},marks:je,open:P,range:Z,rootRef:lt,trackLeap:kt,trackOffset:Re,values:X,getThumbStyle:I=>({pointerEvents:A!==-1&&A!==I?"none":void 0})}}const My=e=>!e||!Ur(e);function ky(e){return nn("MuiSlider",e)}const Qe=Wi("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"]),Iy=e=>{const{open:t}=e;return{offset:gt(t&&Qe.valueLabelOpen),circle:Qe.valueLabelCircle,label:Qe.valueLabelLabel}};function au(e){const{children:t,className:r,value:n}=e,a=Iy(e);return t?N.cloneElement(t,{className:gt(t.props.className)},o.jsxs(N.Fragment,{children:[t.props.children,o.jsx("span",{className:gt(a.offset,r),"aria-hidden":!0,children:o.jsx("span",{className:a.circle,children:o.jsx("span",{className:a.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(au.propTypes={children:h.element.isRequired,className:h.string,value:h.node});const Ty=["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 bi(e){return e}const Oy=wt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Pe(r.color)}`],r.size!=="medium"&&t[`size${Pe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Qe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Qe.dragging}`]:{[`& .${Qe.thumb}, & .${Qe.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Ey=wt("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}}]}),Ly=wt("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:k({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:k({backgroundColor:Za(e.palette[r].main,.62),borderColor:Za(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Ya(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Ya(e.palette[r].main,.5)})))}))]}}),$y=wt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Pe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Pe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Qe.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${Qe.focusVisible}`]:k({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${fo(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Qe.active}`]:k({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${fo(e.palette[r].main,.16)}`})}}))]}}),Ny=wt(au,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>k({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Fy=wt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Cs(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}}]})),Dy=wt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Cs(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>k({},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}}]})),By=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:s,classes:i,color:l,size:u}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${Pe(l)}`,u&&`size${Pe(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Pe(u)}`,l&&`thumbColor${Pe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rs(c,ky,i)},Uy=({children:e})=>e,su=N.forwardRef(function(t,r){var n,a,s,i,l,u,c,m,f,d,b,y,_,p,j,R,C,A,S,P,M,z,le,ce;const D=Ms({props:t,name:"MuiSlider"}),q=Rd(),{"aria-label":G,"aria-valuetext":Z,"aria-labelledby":X,component:je="span",components:ue={},componentsProps:ee={},color:we="primary",classes:Oe,className:nt,disableSwap:yt=!1,disabled:We=!1,getAriaLabel:Se,getAriaValueText:Ct,marks:lt=!1,max:He=100,min:Ue=0,orientation:ut="horizontal",shiftStep:ct=10,size:Ft="medium",step:bt=1,scale:Je=bi,slotProps:O,slots:te,track:fe="normal",valueLabelDisplay:Ee="off",valueLabelFormat:Le=bi}=D,Mt=Be(D,Ty),Re=k({},D,{isRtl:q,max:He,min:Ue,classes:Oe,disabled:We,disableSwap:yt,orientation:ut,marks:lt,color:we,size:Ft,step:bt,shiftStep:ct,scale:Je,track:fe,valueLabelDisplay:Ee,valueLabelFormat:Le}),{axisProps:kt,getRootProps:Dt,getHiddenInputProps:wr,getThumbProps:Ar,open:Pr,active:er,axis:at,focusedThumbIndex:I,range:L,dragging:F,marks:K,values:Q,trackOffset:W,trackLeap:Ve,getThumbStyle:Xe}=Cy(k({},Re,{rootRef:r}));Re.marked=K.length>0&&K.some($=>$.label),Re.dragging=F,Re.focusedThumbIndex=I;const re=By(Re),$e=(n=(a=te==null?void 0:te.root)!=null?a:ue.Root)!=null?n:Oy,It=(s=(i=te==null?void 0:te.rail)!=null?i:ue.Rail)!=null?s:Ey,tr=(l=(u=te==null?void 0:te.track)!=null?u:ue.Track)!=null?l:Ly,Cr=(c=(m=te==null?void 0:te.thumb)!=null?m:ue.Thumb)!=null?c:$y,xt=(f=(d=te==null?void 0:te.valueLabel)!=null?d:ue.ValueLabel)!=null?f:Ny,Bt=(b=(y=te==null?void 0:te.mark)!=null?y:ue.Mark)!=null?b:Fy,Ut=(_=(p=te==null?void 0:te.markLabel)!=null?p:ue.MarkLabel)!=null?_:Dy,Mr=(j=(R=te==null?void 0:te.input)!=null?R:ue.Input)!=null?j:"input",kr=(C=O==null?void 0:O.root)!=null?C:ee.root,un=(A=O==null?void 0:O.rail)!=null?A:ee.rail,Ir=(S=O==null?void 0:O.track)!=null?S:ee.track,rr=(P=O==null?void 0:O.thumb)!=null?P:ee.thumb,nr=(M=O==null?void 0:O.valueLabel)!=null?M:ee.valueLabel,ba=(z=O==null?void 0:O.mark)!=null?z:ee.mark,xa=(le=O==null?void 0:O.markLabel)!=null?le:ee.markLabel,cn=(ce=O==null?void 0:O.input)!=null?ce:ee.input,mn=Tt({elementType:$e,getSlotProps:Dt,externalSlotProps:kr,externalForwardedProps:Mt,additionalProps:k({},My($e)&&{as:je}),ownerState:k({},Re,kr==null?void 0:kr.ownerState),className:[re.root,nt]}),va=Tt({elementType:It,externalSlotProps:un,ownerState:Re,className:re.rail}),ja=Tt({elementType:tr,externalSlotProps:Ir,additionalProps:{style:k({},kt[at].offset(W),kt[at].leap(Ve))},ownerState:k({},Re,Ir==null?void 0:Ir.ownerState),className:re.track}),Tr=Tt({elementType:Cr,getSlotProps:Ar,externalSlotProps:rr,ownerState:k({},Re,rr==null?void 0:rr.ownerState),className:re.thumb}),Sa=Tt({elementType:xt,externalSlotProps:nr,ownerState:k({},Re,nr==null?void 0:nr.ownerState),className:re.valueLabel}),g=Tt({elementType:Bt,externalSlotProps:ba,ownerState:Re,className:re.mark}),w=Tt({elementType:Ut,externalSlotProps:xa,ownerState:Re,className:re.markLabel}),E=Tt({elementType:Mr,getSlotProps:wr,externalSlotProps:cn,ownerState:Re});return o.jsxs($e,k({},mn,{children:[o.jsx(It,k({},va)),o.jsx(tr,k({},ja)),K.filter($=>$.value>=Ue&&$.value<=He).map(($,B)=>{const ne=zn($.value,Ue,He),V=kt[at].offset(ne);let U;return fe===!1?U=Q.indexOf($.value)!==-1:U=fe==="normal"&&(L?$.value>=Q[0]&&$.value<=Q[Q.length-1]:$.value<=Q[0])||fe==="inverted"&&(L?$.value<=Q[0]||$.value>=Q[Q.length-1]:$.value>=Q[0]),o.jsxs(N.Fragment,{children:[o.jsx(Bt,k({"data-index":B},g,!Ur(Bt)&&{markActive:U},{style:k({},V,g.style),className:gt(g.className,U&&re.markActive)})),$.label!=null?o.jsx(Ut,k({"aria-hidden":!0,"data-index":B},w,!Ur(Ut)&&{markLabelActive:U},{style:k({},V,w.style),className:gt(re.markLabel,w.className,U&&re.markLabelActive),children:$.label})):null]},B)}),Q.map(($,B)=>{const ne=zn($,Ue,He),V=kt[at].offset(ne),U=Ee==="off"?Uy:xt;return o.jsx(U,k({},!Ur(U)&&{valueLabelFormat:Le,valueLabelDisplay:Ee,value:typeof Le=="function"?Le(Je($),B):Le,index:B,open:Pr===B||er===B||Ee==="on",disabled:We},Sa,{children:o.jsx(Cr,k({"data-index":B},Tr,{className:gt(re.thumb,Tr.className,er===B&&re.active,I===B&&re.focusVisible),style:k({},V,Xe(B),Tr.style),children:o.jsx(Mr,k({"data-index":B,"aria-label":Se?Se(B):G,"aria-valuenow":Je($),"aria-labelledby":X,"aria-valuetext":Ct?Ct(Je($),B):Z,value:Q[B]},E))}))}),B)})]}))});process.env.NODE_ENV!=="production"&&(su.propTypes={"aria-label":ao(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":h.string,"aria-valuetext":ao(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Mark:h.elementType,MarkLabel:h.elementType,Rail:h.elementType,Root:h.elementType,Thumb:h.elementType,Track:h.elementType,ValueLabel:h.elementType}),componentsProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),defaultValue:h.oneOfType([h.arrayOf(h.number),h.number]),disabled:h.bool,disableSwap:h.bool,getAriaLabel:h.func,getAriaValueText:h.func,marks:h.oneOfType([h.arrayOf(h.shape({label:h.node,value:h.number.isRequired})),h.bool]),max:h.number,min:h.number,name:h.string,onChange:h.func,onChangeCommitted:h.func,orientation:h.oneOf(["horizontal","vertical"]),scale:h.func,shiftStep:h.number,size:h.oneOfType([h.oneOf(["small","medium"]),h.string]),slotProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),slots:h.shape({input:h.elementType,mark:h.elementType,markLabel:h.elementType,rail:h.elementType,root:h.elementType,thumb:h.elementType,track:h.elementType,valueLabel:h.elementType}),step:h.number,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,track:h.oneOf(["inverted","normal",!1]),value:h.oneOfType([h.arrayOf(h.number),h.number]),valueLabelDisplay:h.oneOf(["auto","off","on"]),valueLabelFormat:h.oneOfType([h.func,h.string])});var Jy="[object Number]";function Vy(e){return typeof e=="number"||Wt(e)&&Yt(e)==Jy}const ou=Te.observer(e=>{const t=T.useTheme(),r=e.valueLabelFormat||(a=>`${a}`);function n(a,s){s===e.velocity||!Vy(s)||e.onVelocityChange(s)}return o.jsxs(o.Fragment,{children:[o.jsx(T.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,lineHeight:1,color:t.palette.text.primary},children:r(e.velocity)}),o.jsx(su,{value:e.velocity,color:"secondary",onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),iu=Te.observer(({store:e})=>{const{t}=qt.useTranslation(),r=Te.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 o.jsx(T.Stack,{sx:{margin:"0px 20px",marginBottom:"6px"},children:o.jsx(T.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:o.jsx(ou,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),Gy=Te.observer(({store:e,children:t})=>{var f,d,b,y,_,p,j,R,C;const{t:r}=qt.useTranslation(),n=T.useTheme();function a(A,S){(S==="translate"||S==="rotate")&&e.setSelectedCartesianMotionType(S)}ks(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function s(A,S){const P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,M=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;P&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:P,currentJoints:M,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:A.axis,direction:A.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:S.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(S.degrees)}})})}async function i(A){if(!e.isLocked){if(e.activeDiscreteIncrement)return s(A,e.activeDiscreteIncrement);A.motionType==="translate"?await e.jogger.startTCPTranslation({axis:A.axis,direction:A.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:A.axis,direction:A.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const u=[{id:"x",colors:(b=(d=(f=n.componentsExt)==null?void 0:f.JoggingCartesian)==null?void 0:d.Axis)==null?void 0:b.X,icon:o.jsx(Og,{})},{id:"y",colors:(p=(_=(y=n.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:_.Axis)==null?void 0:p.Y,icon:o.jsx(Lg,{})},{id:"z",colors:(C=(R=(j=n.componentsExt)==null?void 0:j.JoggingCartesian)==null?void 0:R.Axis)==null?void 0:C.Z,icon:o.jsx(Ng,{})}];function c(A){return r("General.mm.variable",{amount:A.toFixed(1)})}function m(A){return r("General.degree.variable",{amount:Lt.radiansToDegrees(A).toFixed(1)})}return o.jsxs(T.Stack,{flexGrow:1,gap:4,children:[o.jsxs(T.Stack,{children:[o.jsx(Bg,{store:e}),o.jsx(xy,{store:e})]}),o.jsx(T.Stack,{width:"80%",maxWidth:"296px",marginLeft:"auto",marginRight:"auto",marginTop:"8px",marginBottom:"8px",gap:"12px",children:o.jsxs(T.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:a,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[o.jsx(T.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),o.jsx(T.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]})}),o.jsx(Gl,{store:e,children:o.jsxs(T.Stack,{width:"80%",maxWidth:"296px",marginLeft:"auto",marginRight:"auto",marginTop:"8px",marginBottom:"8px",gap:"12px",children:[e.selectedCartesianMotionType==="translate"&&u.map(A=>o.jsx(es,{colors:A.colors,disabled:e.isLocked,label:o.jsxs(o.Fragment,{children:[A.icon,o.jsx(T.Typography,{sx:{fontSize:"24px",color:"white"},children:A.id.toUpperCase()})]}),getDisplayedValue:()=>{var S;return c(((S=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:S.position[A.id])||0)},startJogging:S=>i({axis:A.id,motionType:"translate",direction:S}),stopJogging:l},A.id)),e.selectedCartesianMotionType==="rotate"&&u.map(A=>o.jsx(es,{colors:A.colors,disabled:e.isLocked,label:o.jsxs(o.Fragment,{children:[o.jsx(Dg,{}),o.jsx(T.Typography,{sx:{fontSize:"24px",color:"white"},children:A.id.toUpperCase()})]}),getDisplayedValue:()=>{var S,P;return m(((P=(S=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:S.orientation)==null?void 0:P[A.id])||0)},startJogging:S=>i({axis:A.id,motionType:"rotate",direction:S}),stopJogging:l},A.id))]})}),o.jsxs(T.Stack,{children:[o.jsx(ru,{store:e}),o.jsx(iu,{store:e}),t]})]})}),zy=Te.observer(({store:e})=>{const t=Y.useRef(null);function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`[${n.map(a=>parseFloat(a.toFixed(4))).join(", ")}]`}return jr(()=>{t.current&&(t.current.textContent=r())}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:o.jsx(zl,{value:r(),ref:t})})}),Ky=Te.observer(({store:e,children:t})=>{async function r(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop()}return o.jsxs(T.Stack,{flexGrow:1,justifyContent:"space-between",children:[o.jsx(zy,{store:e}),o.jsx(Gl,{store:e,children:o.jsx(T.Stack,{gap:"0.8rem",children:e.jogger.motionStream.joints.map(a=>{var u;const s=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],i=(s==null?void 0:s.lower_limit)!==void 0?Lt.radiansToDegrees(s.lower_limit):void 0,l=(s==null?void 0:s.upper_limit)!==void 0?Lt.radiansToDegrees(s.upper_limit):void 0;return o.jsxs(T.Stack,{direction:"row",alignItems:"center",gap:2,children:[o.jsx(T.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),o.jsx(_l,{disabled:e.isLocked,lowerLimitDegs:i,upperLimitDegs:l,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:a.index,direction:c}),stopJogging:n},a.index),o.jsx(T.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})})}),o.jsx(ru,{store:e}),o.jsx(iu,{store:e}),t]})});var xi=function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Wy(e,t,r){t=="__proto__"&&xi?xi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Hy(e,t,r,n){for(var a=-1,s=e==null?0:e.length;++a<s;){var i=e[a];t(n,i,r(i),e)}return n}function Xy(e){return function(t,r,n){for(var a=-1,s=Object(t),i=n(t),l=i.length;l--;){var u=i[++a];if(r(s[u],u,s)===!1)break}return t}}var qy=Xy();function Yy(e,t){return e&&qy(e,t,Fs)}function Zy(e,t){return function(r,n){if(r==null)return r;if(!tu(r))return e(r,n);for(var a=r.length,s=-1,i=Object(r);++s<a&&n(i[s],s,i)!==!1;);return r}}var Qy=Zy(Yy);function e1(e,t,r,n){return Qy(e,function(a,s,i){t(n,a,r(a),i)}),n}var t1=1,r1=2;function n1(e,t,r,n){var a=r.length,s=a;if(e==null)return!s;for(e=Object(e);a--;){var i=r[a];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++a<s;){i=r[a];var l=i[0],u=e[l],c=i[1];if(i[2]){if(u===void 0&&!(l in e))return!1}else{var m=new St,f;if(!(f===void 0?_a(c,u,t1|r1,n,m):f))return!1}}return!0}function lu(e){return e===e&&!Kt(e)}function a1(e){for(var t=Fs(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,lu(a)]}return t}function uu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function s1(e){var t=a1(e);return t.length==1&&t[0][2]?uu(t[0][0],t[0][1]):function(r){return r===e||n1(r,e,t)}}var o1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i1=/^\w*$/;function Ds(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||la(e)?!0:i1.test(e)||!o1.test(e)||t!=null&&e in Object(t)}var l1="Expected a function";function Bs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(l1);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var i=e.apply(this,n);return r.cache=s.set(a,i)||s,i};return r.cache=new(Bs.Cache||Pt),r}Bs.Cache=Pt;var u1=500;function c1(e){var t=Bs(e,function(n){return r.size===u1&&r.clear(),n}),r=t.cache;return t}var m1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d1=/\\(\\)?/g,f1=c1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(m1,function(r,n,a,s){t.push(a?s.replace(d1,"$1"):n||r)}),t});function h1(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var g1=1/0,vi=$t?$t.prototype:void 0,ji=vi?vi.toString:void 0;function cu(e){if(typeof e=="string")return e;if(pt(e))return h1(e,cu)+"";if(la(e))return ji?ji.call(e):"";var t=e+"";return t=="0"&&1/e==-g1?"-0":t}function mu(e){return e==null?"":cu(e)}function du(e,t){return pt(e)?e:Ds(e,t)?[e]:f1(mu(e))}var p1=1/0;function ya(e){if(typeof e=="string"||la(e))return e;var t=e+"";return t=="0"&&1/e==-p1?"-0":t}function fu(e,t){t=du(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ya(t[r++])];return r&&r==n?e:void 0}function _1(e,t,r){var n=e==null?void 0:fu(e,t);return n===void 0?r:n}function y1(e,t){return e!=null&&t in Object(e)}function b1(e,t,r){t=du(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var i=ya(t[n]);if(!(s=e!=null&&r(e,i)))break;e=e[i]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&Ns(a)&&Zl(i,a)&&(pt(e)||ql(e)))}function x1(e,t){return e!=null&&b1(e,t,y1)}var v1=1,j1=2;function S1(e,t){return Ds(e)&&lu(t)?uu(ya(e),t):function(r){var n=_1(r,e);return n===void 0&&n===t?x1(r,e):_a(t,n,v1|j1)}}function R1(e){return e}function w1(e){return function(t){return t==null?void 0:t[e]}}function A1(e){return function(t){return fu(t,e)}}function P1(e){return Ds(e)?w1(ya(e)):A1(e)}function C1(e){return typeof e=="function"?e:e==null?R1:typeof e=="object"?pt(e)?S1(e[0],e[1]):s1(e):P1(e)}function M1(e,t){return function(r,n){var a=pt(r)?Hy:e1,s={};return a(r,e,C1(n),s)}}var vn=M1(function(e,t,r){Wy(e,r,t)}),k1=0;function I1(e){var t=++k1;return mu(e)+t}const fs=[{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}],T1=[{id:"continuous"},...fs];class Us{constructor(t,r,n,a){var s,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=a,this.selectedTabId="cartesian",this.manualActivationRequired=!0,this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.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=((s=n[0])==null?void 0:s.coordinate_system)||"world",this.selectedTcpId=((i=a[0])==null?void 0:i.id)||"",mt.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(mt.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:a},{tcps:s}]=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 Us(t,n,a||[],s||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Kn.countBy(this.coordSystems,t=>t.name)}async deactivate(t={}){if(this.activationState==="inactive")return;const r=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),r&&await r.closed();try{await this.jogger.nova.api.motionGroupJogging.stopJogging(this.jogger.motionGroupId)}catch(n){console.error(n)}t.requireManualReactivation&&mt.runInAction(()=>{this.manualActivationRequired=!0})}async activate(t={}){if(!(this.manualActivationRequired&&!t.manual)){mt.runInAction(()=>{this.activationState="loading",this.activationError=null});try{await this.jogger.nova.api.controller.setDefaultMode(this.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(r){console.error(r)}if(this.currentTab.id==="cartesian"){const r={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",r):this.jogger.setJoggingMode("cartesian",r)}else this.jogger.setJoggingMode("joint");if(this.jogger.activeWebsocket)try{this.jogger.stop(),await this.jogger.activeWebsocket.nextMessage()}catch(r){mt.runInAction(()=>{this.activationState="inactive",this.activationError=r});return}mt.runInAction(()=>{this.activationState="active",t.manual&&(this.manualActivationRequired=!1)})}}loadFromLocalStorage(){const t=Lt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return T1}get discreteIncrementOptions(){return fs}get incrementOptionsById(){return vn(this.incrementOptions,t=>t.id)}get tabsById(){return vn(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 vn(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 vn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:fs.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=I1();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const O1=sn(Te.observer(e=>{const t=Kn.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=Te.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){mt.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const a=await t.connectJogger(e.motionGroupId),s=await Us.loadFor(a);mt.runInAction(()=>{r.joggingStore=s}),e.onSetup&&e.onSetup(s)}catch(a){r.loadingError=a}}return Y.useEffect(()=>(n(),()=>{var a;(a=r.joggingStore)==null||a.dispose()}),[e.nova,e.motionGroupId]),Y.useEffect(()=>{const a=r.joggingStore;a&&(e.locked?a.locks.add("external"):a.locks.delete("external"))},[e.locked]),o.jsx(T.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:r.joggingStore?o.jsx(E1,{store:r.joggingStore,children:e.children}):o.jsx(ha,{message:"Loading jogging",error:r.loadingError})})})),E1=Te.observer(({store:e,children:t})=>{Y.useEffect(()=>{function n(){e.deactivate()}function a(){e.activate()}return window.addEventListener("blur",n),window.addEventListener("focus",a),()=>{window.removeEventListener("blur",n),window.removeEventListener("focus",a)}}),ks(()=>[e.currentTab.id,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState!=="inactive"&&e.activate()});function r(){if(e.currentTab.id==="cartesian")return o.jsx(o.Fragment,{children:o.jsx(Gy,{store:e,children:t})});if(e.currentTab.id==="joint")return o.jsx(o.Fragment,{children:o.jsx(Ky,{store:e,children:t})})}return o.jsxs(T.Stack,{flexGrow:1,height:"100%",children:[o.jsx(T.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>o.jsx(T.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),o.jsx(T.Stack,{flexGrow:1,position:"relative",children:r()})]})});function L1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function $1({baseUrl:e=L1(),...t}){return o.jsxs(T.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:[o.jsx(T.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),o.jsxs(T.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[o.jsx(T.Typography,{color:"#fff",children:"Found no devices to connect to."}),o.jsx(T.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),o.jsx(T.DialogActions,{children:o.jsxs(T.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[o.jsx(T.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),o.jsx(T.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const N1=Array(6).fill(2*Math.PI);hu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function hu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.abb_white})]}),o.jsxs(x.animated.group,{name:"ABB_IRB1200_J00",children:[o.jsxs("group",{name:"ABB_IRB1200_J01",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J02",position:[.35,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J03",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J04",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1200_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"visuals006",geometry:a.visuals006.geometry,material:s.abb_metal_black,position:[.791,-.351,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"visuals005",position:[-.791,0,.351],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals005_1",geometry:a.visuals005_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals005_2",geometry:a.visuals005_2.geometry,material:s.abb_white})]})]}),o.jsxs("group",{name:"visuals004",position:[-.791,0,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals004_3",geometry:a.visuals004_3.geometry,material:s.abb_red})]})]}),o.jsxs("group",{name:"visuals003",position:[-.749,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals002",position:[-.399,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.abb_metal_polished})]})]})]})})}gu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function gu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.abb_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_0_3",geometry:a.visuals_0_3.geometry,material:s.abb_red})]}),o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J00",children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J01",position:[.15,.544,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J02",position:[.575,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J04",position:[0,.425,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1300_115_10_FLG",position:[0,.092,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.abb_metal_polished,position:[1.159,-.575,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-1.159,0,.575],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-1.159,-.15,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_3",position:[-1.119,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_2",position:[-.544,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.abb_metal_black})]})]})]})})}pu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function pu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M10iD_L06",geometry:a.M10iD_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"M10iD_L05",geometry:a.M10iD_L05.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_654",geometry:a.Mesh_654.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_654_1",geometry:a.Mesh_654_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_378",geometry:a.Mesh_378.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_378_1",geometry:a.Mesh_378_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_378_2",geometry:a.Mesh_378_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_358",geometry:a.Mesh_358.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_358_1",geometry:a.Mesh_358_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L01",children:[o.jsx("mesh",{name:"Mesh_356",geometry:a.Mesh_356.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_356_1",geometry:a.Mesh_356_1.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_356_2",geometry:a.Mesh_356_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M10iD_L00",geometry:a.M10iD_L00.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})})}hs.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function hs({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J00",children:[o.jsxs(x.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M20iD25_L06",geometry:a.M20iD25_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),o.jsx("mesh",{name:"M20iD25_L05",geometry:a.M20iD25_L05.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),o.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_2",geometry:a.Mesh_2.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_2_1",geometry:a.Mesh_2_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_15",geometry:a.Mesh_15.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_15_1",geometry:a.Mesh_15_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_15_2",geometry:a.Mesh_15_2.geometry,material:s.Material_9_AO})]})]}),o.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_37",geometry:a.Mesh_37.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_37_1",geometry:a.Mesh_37_1.geometry,material:s.Fanuc_Yellow_Textured_AO})]})]}),o.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"Mesh_45",geometry:a.Mesh_45.geometry,material:s.Material_9_AO}),o.jsx("mesh",{name:"Mesh_45_1",geometry:a.Mesh_45_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_45_2",geometry:a.Mesh_45_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M20iD25_L00",geometry:a.M20iD25_L00.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})})}_u.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function _u({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:a.CRX10iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:a.J5CASING_UNIT001.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:a.J5CASING_UNIT001_1.geometry,material:s.Fanuc_Green})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",geometry:a.NAME_LABEL_CRX_10iA.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",geometry:a.NAME_LABEL_CRX_10iA_1.geometry,material:s.Fanuc_BlackPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",geometry:a.NAME_LABEL_CRX_10iA_2.geometry,material:s.Fanuc_WhitePlastic})]})]}),o.jsx("mesh",{name:"CRX10iA_L03",geometry:a.CRX10iA_L03.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:a.CRX10iA_L02.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:a.J2BASE_UNIT001.geometry,material:s.Fanuc_Green}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:a.J2BASE_UNIT001_1.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:a.J2BASE_UNIT001_2.geometry,material:s.Fanuc_GreenLED})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:a.CRX10iA_L00.geometry,material:s.Fanuc_BlackMetal,position:[0,-.245,0]})]})})})}yu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function yu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsx("mesh",{name:"link_0",geometry:a.link_0.geometry,material:s.fanuc_metal_black}),o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(x.animated.group,{ref:t,name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),o.jsxs(x.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape053",geometry:a.shape053.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape053_1",geometry:a.shape053_1.geometry,material:s.fanuc_green})]})]}),o.jsxs(x.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape054",geometry:a.shape054.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape054_1",geometry:a.shape054_1.geometry,material:s.fanuc_red}),o.jsx("mesh",{name:"shape054_2",geometry:a.shape054_2.geometry,material:s.fanuc_metal_black})]})]}),o.jsxs(x.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape009",geometry:a.shape009.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"shape009_1",geometry:a.shape009_1.geometry,material:s.fanuc_white})]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",position:[0,.245,0],children:[o.jsx("mesh",{name:"shape005",geometry:a.shape005.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape005_1",geometry:a.shape005_1.geometry,material:s.fanuc_green})]})]})]})})})}bu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function bu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[o.jsxs("group",{name:"CRX25iA_L00",children:[o.jsx("mesh",{name:"J1BASE_NetGen_Coarse",geometry:a.J1BASE_NetGen_Coarse.geometry,material:s.Fanuc_BlackMetal}),o.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",geometry:a.J1BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]}),o.jsxs(x.animated.group,{name:"CRX25iA_J00",children:[o.jsxs(x.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX25iA_L06",geometry:a.CRX25iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.18,0]})]}),o.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[o.jsx("mesh",{name:"J6CASING_NetGen_Coarse",geometry:a.J6CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",geometry:a.J6CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[o.jsx("mesh",{name:"J3ARM_NetGen_Coarse",geometry:a.J3ARM_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",geometry:a.J3ARM_NetGen_Coarse_1.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",geometry:a.J3ARM_NetGen_Coarse_2.geometry,material:s.Fanuc_BlackPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L03",children:[o.jsx("mesh",{name:"J3CASING_NetGen_Coarse",geometry:a.J3CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",geometry:a.J3CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsx("mesh",{name:"CRX25iA_L02",geometry:a.CRX25iA_L02.geometry,material:s.Fanuc_WhitePlastic})]}),o.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[o.jsx("mesh",{name:"J2BASE_NetGen_Coarse",geometry:a.J2BASE_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",geometry:a.J2BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenLED})]})]})]})})})}xu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function xu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:a.CRX10iA_L06.geometry,material:s["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:a.J5CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:a.J5CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",geometry:a.NAME_LABEL_CRX_10iA_L001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",geometry:a.NAME_LABEL_CRX_10iA_L001_1.geometry,material:s["Fanuc_RedPlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",geometry:a.NAME_LABEL_CRX_10iA_L001_2.geometry,material:s["Fanuc_BlackPlastic.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J3CASING_UNIT001",geometry:a.J3CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J3CASING_UNIT001_1",geometry:a.J3CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:a.CRX10iA_L02.geometry,material:s["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:a.J2BASE_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:a.J2BASE_UNIT001_1.geometry,material:s["Fanuc_Green.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:a.J2BASE_UNIT001_2.geometry,material:s["Fanuc_GreenLED.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:a.CRX10iA_L00.geometry,material:s["Fanuc_BlackMetal.001"]})]})})})}vu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function vu({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=H.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape002",geometry:n.shape002.geometry,material:a.fanuc_metal_black_AO}),o.jsx("mesh",{name:"shape002_1",geometry:n.shape002_1.geometry,material:a.fanuc_stainless_steel_AO})]}),o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J02",position:[.33,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J04",position:[0,-.335,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_LRMATE-200ID_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black_AO,position:[-.365,.385,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.fanuc_yellow_AO,position:[-.365,0,-.385],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.365,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape010",geometry:n.shape010.geometry,material:a.fanuc_yellow_AO}),o.jsx("mesh",{name:"shape010_1",geometry:n.shape010_1.geometry,material:a.fanuc_aluminium_black_AO})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.fanuc_yellow_AO,position:[-.33,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow_AO,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.fanuc_yellow_AO})]})]})})}ju.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function ju({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=H.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:a.fanuc_aluminium_black})]}),o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J02",position:[.44,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J04",position:[0,-.42,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx(x.animated.group,{ref:t,name:"FANUC_LRMATE200ID7L_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black,position:[-.475,.47,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-.475,0,-.47],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:n.visuals_5.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_5_1",geometry:n.visuals_5_1.geometry,material:a.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_5_2",geometry:n.visuals_5_2.geometry,material:a.fanuc_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-.475,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:a.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_3",position:[-.44,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:a.fanuc_stainless_steel})]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:a.fanuc_stainless_steel})]})]})]})})}Su.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Su({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=H.useGLTF(e);return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.material_Material_Metall}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:a.material_Material_Metall})]}),o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J00",children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J01",position:[.16,.52,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J02",position:[.98,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J03",position:[.15,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J04",position:[0,-.86,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(x.animated.group,{ref:t,name:"KUKA_KR16R2010_2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.material_Material_Farbe__2_,position:[.67,2,0],rotation:[-Math.PI,0,Math.PI/2]})}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.material_Material_Farbe,position:[-.67,0,2],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_4",geometry:n.link_4.geometry,material:a.material_Material_Farbe,position:[-.67,1.14,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_3",position:[-.52,0,1.14],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:a.material_Material_Metall}),o.jsx("mesh",{name:"visuals_3_2",geometry:n.visuals_3_2.geometry,material:a.material_Material_Farbe__2_})]})]}),o.jsxs("group",{name:"link_2",position:[-.16,0,-.52],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:a.material_Material_Metall})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:a.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_1_2",geometry:n.visuals_1_2.geometry,material:a.material_Material_Metall})]})]})]})})})}Ru.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Ru({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"kuka_kr210_2700",children:[o.jsxs(x.animated.group,{name:"joint_01",children:[o.jsxs(x.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals006",geometry:a.visuals006.geometry,material:s.material_Material_Metall_black})})]}),o.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals005",children:[o.jsx("mesh",{name:"visuals005_1",geometry:a.visuals005_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals005_2",geometry:a.visuals005_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals004",children:[o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals003_4",geometry:a.visuals003_4.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals003_5",geometry:a.visuals003_5.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals003_6",geometry:a.visuals003_6.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals003_7",geometry:a.visuals003_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals002_3",geometry:a.visuals002_3.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_1",position:[0,.236,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals001_3",geometry:a.visuals001_3.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals001_4",geometry:a.visuals001_4.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals001_5",geometry:a.visuals001_5.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals001_6",geometry:a.visuals001_6.geometry,material:s.material_Material_rubber_black}),o.jsx("mesh",{name:"visuals001_7",geometry:a.visuals001_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_0",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.material_Material_metal_black})]})})]})})})})}wu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function wu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"joint_01",children:[o.jsxs(x.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals006",children:[o.jsx("mesh",{name:"visuals006_1",geometry:a.visuals006_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals006_2",geometry:a.visuals006_2.geometry,material:s.material_Material_Metall})]})})]}),o.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals005",geometry:a.visuals005.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals004",geometry:a.visuals004.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals003_4",geometry:a.visuals003_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.material_Material_Farbe}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals002_3",geometry:a.visuals002_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals002_4",geometry:a.visuals002_4.geometry,material:s.material_Material_Farbe__2_})]})})]}),o.jsx("group",{name:"link_1",position:[0,.226,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals001_3",geometry:a.visuals001_3.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals001_4",geometry:a.visuals001_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_0-base",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.material_Material_Farbe__1_})]})})]})})})}Au.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0],rotationSign:[-1,1,1,1,1,1]};function Au({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=H.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.kuka_metal}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.kuka_black})]}),o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J00",children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J01",position:[.025,.4,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J02",position:[.335,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J03",position:[.025,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J04",position:[0,-.365,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"KUKA_KR6R700-2_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.kuka_black,position:[.425,.725,0],rotation:[-Math.PI,0,Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.kuka_white,position:[-.425,0,.725],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.425,.36,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:a.kuka_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:a.kuka_orange})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.kuka_white,position:[-.4,0,.36],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_2",position:[-.025,0,-.4],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:a.kuka_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:a.kuka_orange})]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.kuka_white})]})]})})}function F1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J00",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J01",position:[0,.127,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_1",position:[0,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_4",geometry:a.visuals_1_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_5",geometry:a.visuals_1_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J02",position:[-.612,0,0],children:[o.jsxs("group",{name:"link_2",position:[.612,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:a.visuals_2_4.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_5",geometry:a.visuals_2_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J03",position:[-.572,0,0],children:[o.jsxs("group",{name:"link_3",position:[1.184,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_4",geometry:a.visuals_3_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J04",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[1.184,.127,.164],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_4",geometry:a.visuals_4_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J05",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[1.184,-.164,.012],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_3",geometry:a.visuals_5_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_4",geometry:a.visuals_5_4.geometry,material:s.universalrobots_lightblue})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR10CB_FLG",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:o.jsxs("group",{name:"link_6",position:[1.184,-.012,-.28],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.universalrobots_aluminum})]})})]})]})]})]})]})]})})})}function D1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{ref:t,name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000493",geometry:a["C-1000493"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000493_1",geometry:a["C-1000493_1"].geometry,material:s.Metal})]}),o.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),o.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"C-1000492",geometry:a["C-1000492"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000492_1",geometry:a["C-1000492_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000492_2",geometry:a["C-1000492_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000492_3",geometry:a["C-1000492_3"].geometry,material:s.Screw})]})]}),o.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000491",geometry:a["C-1000491"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000491_1",geometry:a["C-1000491_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000491_2",geometry:a["C-1000491_2"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000491_3",geometry:a["C-1000491_3"].geometry,material:s.Screw})]})]}),o.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000490",geometry:a["C-1000490"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000490_1",geometry:a["C-1000490_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000490_2",geometry:a["C-1000490_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000490_3",geometry:a["C-1000490_3"].geometry,material:s.Blue})]})]}),o.jsxs(x.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000489",geometry:a["C-1000489"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000489_1",geometry:a["C-1000489_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000489_2",geometry:a["C-1000489_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000489_3",geometry:a["C-1000489_3"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000489_4",geometry:a["C-1000489_4"].geometry,material:s.Metal})]})]}),o.jsxs("group",{name:"UR10e_L02",children:[o.jsx("mesh",{name:"C-1000488",geometry:a["C-1000488"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000488_1",geometry:a["C-1000488_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000488_2",geometry:a["C-1000488_2"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000488_3",geometry:a["C-1000488_3"].geometry,material:s.DarkGray})]})]}),o.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000487",geometry:a["C-1000487"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000487_1",geometry:a["C-1000487_1"].geometry,material:s.Metal})]})]})})})})}function B1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"UR3_05",geometry:a.UR3_05.geometry,material:s.Standard}),o.jsxs(x.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR3_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"UR3_L06",geometry:a.UR3_L06.geometry,material:s.Standard})]})]}),o.jsx("mesh",{name:"UR3_L04",geometry:a.UR3_L04.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L03",geometry:a.UR3_L03.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L02",geometry:a.UR3_L02.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L01",geometry:a.UR3_L01.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L00",geometry:a.UR3_L00.geometry,material:s.Standard,rotation:[-Math.PI/2,0,0]})]})})})})}function U1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_4",geometry:a.visuals_1_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J01",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J02",position:[-.244,0,0],children:[o.jsxs("group",{name:"link_3",position:[.244,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J03",position:[-.213,0,0],children:[o.jsxs("group",{name:"link_4",position:[.457,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J04",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.457,.152,.131],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J05",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_6",position:[.457,-.131,.067],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_6_2",geometry:a.visuals_6_2.geometry,material:s.universalrobots_aluminum})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR3E_FLG",position:[0,.092,0]})]})]})]})]})]})]})]})})}function J1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J01",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:a.visuals_2_4.geometry,material:s.universalrobots_darkgrey})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J02",position:[-.425,0,0],children:[o.jsxs("group",{name:"link_3",position:[.425,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_4",geometry:a.visuals_3_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J03",position:[-.392,0,0],children:[o.jsxs("group",{name:"link_4",position:[.817,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.universalrobots_black})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J04",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.817,.089,.109],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_3",geometry:a.visuals_5_3.geometry,material:s.universalrobots_black})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J05",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.universalrobots_stainlesssteel,position:[.817,-.109,-.005],rotation:[-Math.PI/2,0,0]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR5CB_FLG",position:[0,.082,0]})]})]})]})]})]})]}),o.jsx("mesh",{name:"link_0",geometry:a.link_0.geometry,material:s.universalrobots_aluminum})]})})}function V1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR5e_FLG",position:[0,.1,0]}),o.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000255",geometry:a["C-1000255"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000255_1",geometry:a["C-1000255_1"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000253",geometry:a["C-1000253"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000253_1",geometry:a["C-1000253_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000253_2",geometry:a["C-1000253_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000253_3",geometry:a["C-1000253_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000251",geometry:a["C-1000251"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000251_1",geometry:a["C-1000251_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000251_2",geometry:a["C-1000251_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000251_3",geometry:a["C-1000251_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L03",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000250",geometry:a["C-1000250"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000250_1",geometry:a["C-1000250_1"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000250_2",geometry:a["C-1000250_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000250_3",geometry:a["C-1000250_3"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000250_4",geometry:a["C-1000250_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000249",geometry:a["C-1000249"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000249_1",geometry:a["C-1000249_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000249_2",geometry:a["C-1000249_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000249_3",geometry:a["C-1000249_3"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000249_4",geometry:a["C-1000249_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000248",geometry:a["C-1000248"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000248_1",geometry:a["C-1000248_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000248_2",geometry:a["C-1000248_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000248_3",geometry:a["C-1000248_3"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L00",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000257",geometry:a["C-1000257"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000257_1",geometry:a["C-1000257_1"].geometry,material:s.Metal})]})})]})})})})}Pu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Pu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[o.jsxs(x.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1440_L06_CAD",geometry:a.AR1440_L06_CAD.geometry,material:s.metall})]}),o.jsx("mesh",{name:"AR1440_L05_CAD",geometry:a.AR1440_L05_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L04_CAD",children:[o.jsx("mesh",{name:"AR1440_L04_CAD001",geometry:a.AR1440_L04_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L04_CAD001_1",geometry:a.AR1440_L04_CAD001_1.geometry,material:s.white})]})]}),o.jsxs("group",{name:"AR1440_L03_CAD",children:[o.jsx("mesh",{name:"AR1440_L03_CAD001",geometry:a.AR1440_L03_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L03_CAD001_1",geometry:a.AR1440_L03_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L02_CAD",geometry:a.AR1440_L02_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L01_CAD",children:[o.jsx("mesh",{name:"AR1440_L01_CAD001",geometry:a.AR1440_L01_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L01_CAD001_1",geometry:a.AR1440_L01_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L00_CAD",geometry:a.AR1440_L00_CAD.geometry,material:s.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})})}Cu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Cu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"AR1730_J00",children:[o.jsxs(x.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1730_L06",geometry:a.AR1730_L06.geometry,material:s.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR1730_L05",geometry:a.AR1730_L05.geometry,material:s.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_R_AXIS_SW0001002",geometry:a._R_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_R_AXIS_SW0001002_1",geometry:a._R_AXIS_SW0001002_1.geometry,material:s.White})]})]}),o.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_U_AXIS_SW0001002",geometry:a._U_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_U_AXIS_SW0001002_1",geometry:a._U_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L02",geometry:a.AR1730_L02.geometry,material:s.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),o.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_S_AXIS_SW0001002",geometry:a._S_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_S_AXIS_SW0001002_1",geometry:a._S_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L00",geometry:a.AR1730_L00.geometry,material:s.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})})}Mu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Mu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape",geometry:a.shape.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape_1",geometry:a.shape_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape_2",geometry:a.shape_2.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape_3",geometry:a.shape_3.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"shape001",geometry:a.shape001.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape001_1",geometry:a.shape001_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.15],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.76,0,-.15],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape003",geometry:a.shape003.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape003_1",geometry:a.shape003_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:a.link_4.geometry,material:s.yaskawa_blue,position:[-.96,.15,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J04",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-.96,0,-1.232],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalsilver,position:[-.96,1.232,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})}ku.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function ku({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"AR3120_J00",children:[o.jsxs(x.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR3120_L06",geometry:a.AR3120_L06.geometry,material:s["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR3120_L05",geometry:a.AR3120_L05.geometry,material:s["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"R_AXIS_GP20HL001",geometry:a.R_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"R_AXIS_GP20HL001_1",geometry:a.R_AXIS_GP20HL001_1.geometry,material:s["White.001"]})]})]}),o.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_3001",geometry:a.Mesh_3001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"Mesh_3001_1",geometry:a.Mesh_3001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L02",geometry:a.AR3120_L02.geometry,material:s["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),o.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[o.jsx("mesh",{name:"S_AXIS_GP20HL001",geometry:a.S_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"S_AXIS_GP20HL001_1",geometry:a.S_AXIS_GP20HL001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L00",geometry:a.AR3120_L00.geometry,material:s["Blue.001"],position:[0,-.54,0]})]})})})}gs.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function gs({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals",geometry:a.visuals.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J00",children:[o.jsx("mesh",{name:"link_1",geometry:a.link_1.geometry,material:s.yaskawa_blue}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J01",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.04],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J02",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.445,0,-.04],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003",geometry:a.visuals003.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_Metall__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[-.485,.04,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004",geometry:a.visuals004.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.yaskawa_blue})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J04",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-.485,0,-.48],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalgold,position:[-.485,.48,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP7_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}Iu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Iu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape439",geometry:a.shape439.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape439_1",geometry:a.shape439_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape439_2",geometry:a.shape439_2.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J00",position:[0,-.54,0],children:[o.jsxs("group",{name:"link_1",position:[0,.54,0],children:[o.jsx("mesh",{name:"shape320",geometry:a.shape320.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape320_1",geometry:a.shape320_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_2",geometry:a.shape320_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape320_3",geometry:a.shape320_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_4",geometry:a.shape320_4.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape320_5",geometry:a.shape320_5.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J01",position:[.145,.54,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.145],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape440",geometry:a.shape440.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape440_1",geometry:a.shape440_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape440_2",geometry:a.shape440_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape440_3",geometry:a.shape440_3.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.87,0,-.145],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape341",geometry:a.shape341.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape341_1",geometry:a.shape341_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape341_2",geometry:a.shape341_2.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_3",geometry:a.shape341_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_4",geometry:a.shape341_4.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape341_5",geometry:a.shape341_5.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:a.link_4.geometry,material:s.yaskawa_blue,position:[-1.08,.145,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-1.08,0,-1.17],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalsilver,position:[-1.08,1.17,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP50_FLG",position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}const G1="(^joint_[0-9]+$)|(_J[0-9]+$)";function Tu(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Tu(t))]}function z1(e,t){return new RegExp(t??G1).test(e)}function Ou(e,t){return Tu(e).filter(r=>z1(r.name,t))}function Eu({rapidlyChangingMotionState:e,jointCollector:t,onRotationChanged:r,robotConfig:n,children:a}){x.Globals.assign({frameLoop:"always"});const s=Y.useRef([]),i=Y.useRef([]),{invalidate:l}=Wu.useThree();function u(_){_&&(i.current=t?t(_):Ou(_),d(),l())}function c(_){s.current=_,y.start(Object.assign({},s.current))}const m=(n==null?void 0:n.rotationSign)||[1,1,1,1,1,1],f=(n==null?void 0:n.rotationOffsets)||[0,0,0,0,0,0];function d(){const _=i.current.map((p,j)=>b[j].get());if(r)r(i.current,_);else for(const[p,j]of i.current.entries())j.rotation.y=m[p]*_[p]+f[p]}ml(()=>{const _=e.state.joint_position.joints.filter(p=>p!==void 0);requestAnimationFrame(()=>c(_))});const[b,y]=x.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{d(),l()},onResolve:()=>{d()}}));return o.jsx("group",{ref:u,children:a})}const Si="line",Ri="mesh";function Va({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new vt.Matrix4;function a(u,c){const m=new vt.Vector3,f=new vt.Quaternion,d=new vt.Vector3;n.decompose(m,f,d);const b=m.clone(),y=new vt.Matrix4().makeRotationY(u.theta+c*(u.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,u.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(u.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(u.alpha));return n.multiply(y),n.decompose(m,f,d),{a:b,b:m}}function s(u,c,m,f){if(!t)return;const d=t[u];if(!d)return;const{a:b,b:y}=a(d,f);c.geometry.setPositions([b.toArray(),y.toArray()].flat()),m.position.set(y.x,y.y,y.z)}function i(u,c){n.identity(),u.forEach((m,f)=>{s(f,m.getObjectByName(Si),m.getObjectByName(Ri),c[f])})}function l(u){return Ou(u,"^group_[0-9]+$")}return o.jsx(o.Fragment,{children:o.jsx(Eu,{rapidlyChangingMotionState:e,jointCollector:l,onRotationChanged:i,children:o.jsxs("group",{...r,name:"Scene",children:[o.jsxs("mesh",{children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((u,c)=>{const{a:m,b:f}=a(u,e.state.joint_position.joints[c]??0);return o.jsxs("group",{name:`group_${c}`,children:[o.jsx(H.Line,{name:Si,points:[m,f],color:"white",lineWidth:5}),o.jsxs("mesh",{name:Ri,position:f,children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+c)]},"group_"+c)})]})})})}const K1=console.warn;function W1(){return Y.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&K1(e)}},[]),o.jsx(o.Fragment,{})}Lu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Lu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_3",geometry:a.visuals_0_3.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_4",geometry:a.visuals_0_4.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_5",geometry:a.visuals_0_5.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_6",geometry:a.visuals_0_6.geometry,material:s.fanuc_rubber})]}),o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J02",position:[.71,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_CRX10IAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsxs("group",{name:"link_6",position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_6_2",geometry:a.visuals_6_2.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_6_3",geometry:a.visuals_6_3.geometry,material:s.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.fanuc_stainless_steel})]})]}),o.jsxs("group",{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.fanuc_red})]})]}),o.jsxs("group",{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.fanuc_green})]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.fanuc_green})]})]})]})})}function Js(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const $u=sn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Js,isGhost:a=!1,flangeRef:s,...i})=>{let l=null;const u=Y.useRef(),c=Y.useCallback(d=>{d&&(u.current=d,a&&m())},[a]),m=()=>{!u.current||u.current.userData.isGhost||(u.current.traverse(d=>{if(d instanceof Me.Mesh){d.material instanceof Me.Material&&(d.material.colorWrite=!0);const b=d.clone(),y=d.clone();b.material=new Me.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),b.userData.isGhost=!0,y.material=new Me.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),y.userData.isGhost=!0,d.parent&&(d.parent.add(b),d.parent.add(y))}}),u.current.userData.isGhost=!0)},f=()=>{if(!u.current||!u.current.userData.isGhost)return;const d=[];u.current.traverse(b=>{var y;b instanceof Me.Mesh&&((y=b.userData)!=null&&y.isGhost?d.push(b):b.material instanceof Me.Material&&(b.material.colorWrite=!0))}),d.forEach(b=>{b.parent&&b.parent.remove(b)}),u.current.userData.isGhost=!0};switch(Y.useEffect(()=>{a?m():f()},[a]),t){case"UniversalRobots_UR3CB":l=B1;break;case"UniversalRobots_UR3e":l=U1;break;case"UniversalRobots_UR5CB":l=J1;break;case"UniversalRobots_UR5e":l=V1;break;case"UniversalRobots_UR10CB":l=F1;break;case"UniversalRobots_UR10e":l=D1;break;case"Yaskawa_AR900":l=gs;break;case"Yaskawa_GP7":l=gs;break;case"Yaskawa_AR1440":l=Pu;break;case"Yaskawa_AR1730":l=Cu;break;case"Yaskawa_AR2010":l=Mu;break;case"Yaskawa_AR3120":l=ku;break;case"Yaskawa_GP50":l=Iu;break;case"FANUC_CRX10iA":l=_u;break;case"FANUC_CRX10iAL":l=Lu;break;case"FANUC_CRX20iAL":l=yu;break;case"FANUC_CRX25iA":l=bu;break;case"FANUC_CRX25iAL":l=xu;break;case"FANUC_LR_Mate_200iD":l=vu;break;case"FANUC_LR_Mate_200iD7L":l=ju;break;case"FANUC_ARC_Mate_120iD":l=hs;break;case"FANUC_ARC_Mate_120iD35":l=hs;break;case"FANUC_ARC_Mate_100iD":l=pu;break;case"KUKA_KR210_R2700":l=Ru;break;case"KUKA_KR270_R2700":l=wu;break;case"KUKA_KR16_R2010_2":l=Su;break;case"KUKA_KR6_R700_2":l=Au;break;case"ABB_1200_07_7":l=hu;break;case"ABB_1300_115_10":l=gu;break;default:console.warn(`Unknown robot type: ${t}`),l=null}return o.jsxs(qu.ErrorBoundary,{fallback:o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:[o.jsx(Y.Suspense,{fallback:o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:o.jsx("group",{ref:c,children:l?o.jsx(Eu,{rapidlyChangingMotionState:e,robotConfig:l.config,children:o.jsx(l,{modelURL:n(t),flangeRef:s,...i})}):o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r})})}),o.jsx(W1,{})]})});function H1({connectedMotionGroup:e,getModel:t=Js,isGhost:r=!1,flangeRef:n,...a}){return e.dhParameters?o.jsx($u,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,flangeRef:n,...a}):null}const X1=T.styled(T.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:a})=>!a,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:a})=>a,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),q1=Y.forwardRef((e,t)=>o.jsx(X1,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),Y1={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},Z1=Y.lazy(()=>import("@monaco-editor/react")),Q1=sn(e=>{const t=T.useTheme(),r=Y.useRef(null),[n,a]=Y.useState("dark-plus"),s=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(l){const[{createHighlighter:u},{shikiToMonaco:c}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);l.languages.register({id:"wandelscript"}),l.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await u({langs:[Y1],themes:["dark-plus","light-plus"]})),c(r.current,l),l.editor.defineTheme(s,{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:t.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(l),a(s)}return o.jsx(Y.Suspense,{fallback:o.jsx(ha,{}),children:o.jsx(Z1,{value:e.code,onMount:(l,u)=>{i(u)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function Nu(){var t,r,n,a,s,i;const e=T.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiDivider:{styleOverrides:{root:{border:"1px solid"}}},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiFab:{styleOverrides:{root:{background:(i=(s=e.paletteExt)==null?void 0:s.secondary)==null?void 0:i.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:"rgba(241, 77, 66, 1)",color:"rgba(255, 255, 255, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:"rgba(28, 188, 135, 1)",color:"rgba(255, 255, 255, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:"rgba(2, 136, 209, 1)",color:"rgba(255, 255, 255, 1)"}}}}}}function eb(){const e=Nu();return e.palette.mode="light",e}function tb(e){var r,n,a,s;let t=!0;return((r=e.palette)==null?void 0:r.mode)==="light"?t=!1:((n=e.palette)==null?void 0:n.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(a=window.matchMedia)==null?void 0:a.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches))),t?Nu():eb()}exports.JoggingCartesianAxisControl=es;exports.JoggingJointRotationControl=_l;exports.JoggingPanel=O1;exports.LoadingCover=ha;exports.LoadingErrorMessage=Vl;exports.NoMotionGroupModal=$1;exports.PresetEnvironment=Qu;exports.Robot=H1;exports.SafetyZonesRenderer=rc;exports.SelectableFab=q1;exports.SupportedRobot=$u;exports.VelocitySlider=ou;exports.WandelscriptEditor=Q1;exports.createNovaMuiTheme=tb;exports.defaultAxisConfig=N1;exports.defaultGetModel=Js;exports.useAnimationFrame=jr;exports.useAutorun=ml;exports.useMounted=ia;exports.useReaction=ks;
|
|
82
|
+
`):" "+Wo(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:ss};function Da(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function Ho(e){return Da(e),e.headers=Fe.from(e.headers),e.data=Fa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bl.getAdapter(e.adapter||ln.adapter)(e).then(function(n){return Da(e),n.data=Fa.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return El(n)||(Da(e),n&&n.response&&(n.response.data=Fa.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const Ul="1.7.4",$s={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$s[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Xo={};$s.transitional=function(t,r,n){function a(s,i){return"[Axios v"+Ul+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,l)=>{if(t===!1)throw new J(a(i," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!Xo[i]&&(Xo[i]=!0,console.warn(a(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,l):!0}};function Pg(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const s=n[a],i=t[s];if(i){const l=e[s],u=l===void 0||i(l,s,e);if(u!==!0)throw new J("option "+s+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const os={assertOptions:Pg,validators:$s},Ot=os.validators;let Gt=class{constructor(t){this.defaults=t,this.interceptors={request:new Bo,response:new Bo}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
83
|
+
`+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ht(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:s}=r;n!==void 0&&os.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),a!=null&&(v.isFunction(a)?r.paramsSerializer={serialize:a}:os.assertOptions(a,{encode:Ot.function,serialize:Ot.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&v.merge(s.common,s[r.method]);s&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=Fe.concat(i,s);const l=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(u=u&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let m,f=0,d;if(!u){const y=[Ho.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),d=y.length,m=Promise.resolve(r);f<d;)m=m.then(y[f++],y[f++]);return m}d=l.length;let b=r;for(f=0;f<d;){const y=l[f++],_=l[f++];try{b=y(b)}catch(p){_.call(this,p);break}}try{m=Ho.call(this,b)}catch(y){return Promise.reject(y)}for(f=0,d=c.length;f<d;)m=m.then(c[f++],c[f++]);return m}getUri(t){t=Ht(this.defaults,t);const r=$l(t.baseURL,t.url);return Il(r,t.params,t.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(t){Gt.prototype[t]=function(r,n){return this.request(Ht(n||{},{method:t,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,l){return this.request(Ht(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Gt.prototype[t]=r(),Gt.prototype[t+"Form"]=r(!0)});let Cg=class Jl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(a=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](a);n._listeners=null}),this.promise.then=a=>{let s;const i=new Promise(l=>{n.subscribe(l),s=l}).then(a);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,l){n.reason||(n.reason=new Rr(s,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Jl(function(a){t=a}),cancel:t}}};function kg(e){return function(r){return e.apply(null,r)}}function Mg(e){return v.isObject(e)&&e.isAxiosError===!0}const is={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(is).forEach(([e,t])=>{is[t]=e});function Vl(e){const t=new Gt(e),r=bl(Gt.prototype.request,t);return v.extend(r,Gt.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Vl(Ht(e,a))},r}const ve=Vl(ln);ve.Axios=Gt;ve.CanceledError=Rr;ve.CancelToken=Cg;ve.isCancel=El;ve.VERSION=Ul;ve.toFormData=da;ve.AxiosError=J;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=kg;ve.isAxiosError=Mg;ve.mergeConfig=Ht;ve.AxiosHeaders=Fe;ve.formToJSON=e=>Ol(v.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Bl.getAdapter;ve.HttpStatusCode=is;ve.default=ve;const{Axios:sb,AxiosError:qo,CanceledError:ob,isCancel:ib,CancelToken:lb,VERSION:ub,all:cb,Cancel:mb,isAxiosError:db,spread:fb,toFormData:hb,AxiosHeaders:gb,HttpStatusCode:pb,formToJSON:_b,getAdapter:yb,mergeConfig:bb}=ve;function Ig(e){try{return JSON.stringify(e)}catch{return}}function Tg(e){var t,r,n,a;return e instanceof qo&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof qo&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((a=e.response)==null?void 0:a.data)}`:e instanceof Error?e.message:`Unexpected error: ${Ig(e)||e}`}const ha=e=>{const t=e.softTimeout||3e3,[r,n]=Y.useState(!1);return Y.useEffect(()=>{const a=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(a)}),o.jsx(T.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?o.jsx(Gl,{loadingMessage:e.message,error:e.error}):o.jsxs(o.Fragment,{children:[o.jsx(T.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&o.jsx("div",{children:e.message}),o.jsx(T.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},Gl=e=>{const t=Tg(e.error),r=e.error instanceof Error?e.error.stack:null,n=T.useTheme();return o.jsxs(T.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Kn.lowerFirst(T.capitalize(e.loadingMessage))} - `:"")+t,o.jsx("br",{}),r&&o.jsx("pre",{children:r})]})},Og=({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"})),Eg=Y.forwardRef(Og),Lg=({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"})),$g=Y.forwardRef(Lg),Ng=({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"})),Fg=Y.forwardRef(Ng),Dg=({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"})),Bg=Y.forwardRef(Dg),Yo=e=>o.jsx(T.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(2px)",zIndex:100,...e.sx||{}},...Kn.omit(e,"sx")}),zl=Te.observer(({store:e,children:t})=>{const{t:r}=qt.useTranslation(),n=T.useTheme();function a(){var s,i;if(e.activationState==="inactive"&&!e.activationError)return o.jsx(Yo,{sx:{borderRadius:"6px",backgroundColor:`color-mix(in srgb, ${(s=n.palette.backgroundPaperElevation)==null?void 0:s[5]}, transparent)`},children:o.jsx(T.Button,{color:"primary",variant:"contained",onClick:()=>e.activate({manual:!0}),disabled:e.isLocked,children:r("Jogging.Activate.bt")})});if(e.activationState==="loading"||e.activationError)return o.jsx(Yo,{sx:{backgroundColor:`color-mix(in srgb, ${(i=n.palette.backgroundPaperElevation)==null?void 0:i[5]}, transparent)`},children:o.jsx(ha,{message:r("Jogging.Activating.lb"),error:e.activationError})})}return o.jsxs(T.Stack,{sx:{position:"relative",padding:"6px"},children:[a(),t]})}),Kl=Y.forwardRef(({label:e,value:t},r)=>o.jsxs(o.Fragment,{children:[e&&o.jsx(T.InputLabel,{children:e}),o.jsx(T.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),Ug=Te.observer(({store:e})=>{const t=Y.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Lt.poseToWandelscriptString(n):""}return jr(()=>{t.current&&(t.current.textContent=r())}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:o.jsx(Kl,{label:"Pose",value:r(),ref:t})})});function Jg(){this.__data__=[],this.size=0}function Wl(e,t){return e===t||e!==e&&t!==t}function ga(e,t){for(var r=e.length;r--;)if(Wl(e[r][0],t))return r;return-1}var Vg=Array.prototype,Gg=Vg.splice;function zg(e){var t=this.__data__,r=ga(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Gg.call(t,r,1),--this.size,!0}function Kg(e){var t=this.__data__,r=ga(t,e);return r<0?void 0:t[r][1]}function Wg(e){return ga(this.__data__,e)>-1}function Hg(e,t){var r=this.__data__,n=ga(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=Jg;At.prototype.delete=zg;At.prototype.get=Kg;At.prototype.has=Wg;At.prototype.set=Hg;function Xg(){this.__data__=new At,this.size=0}function qg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Yg(e){return this.__data__.get(e)}function Zg(e){return this.__data__.has(e)}var Qg="[object AsyncFunction]",ep="[object Function]",tp="[object GeneratorFunction]",rp="[object Proxy]";function Hl(e){if(!Kt(e))return!1;var t=Yt(e);return t==ep||t==tp||t==Qg||t==rp}var Ba=_t["__core-js_shared__"],Zo=function(){var e=/[^.]+$/.exec(Ba&&Ba.keys&&Ba.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function np(e){return!!Zo&&Zo in e}var ap=Function.prototype,sp=ap.toString;function Zt(e){if(e!=null){try{return sp.call(e)}catch{}try{return e+""}catch{}}return""}var op=/[\\^$.*+?()[\]{}|]/g,ip=/^\[object .+?Constructor\]$/,lp=Function.prototype,up=Object.prototype,cp=lp.toString,mp=up.hasOwnProperty,dp=RegExp("^"+cp.call(mp).replace(op,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fp(e){if(!Kt(e)||np(e))return!1;var t=Hl(e)?dp:ip;return t.test(Zt(e))}function hp(e,t){return e==null?void 0:e[t]}function Qt(e,t){var r=hp(e,t);return fp(r)?r:void 0}var qr=Qt(_t,"Map"),Yr=Qt(Object,"create");function gp(){this.__data__=Yr?Yr(null):{},this.size=0}function pp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _p="__lodash_hash_undefined__",yp=Object.prototype,bp=yp.hasOwnProperty;function xp(e){var t=this.__data__;if(Yr){var r=t[e];return r===_p?void 0:r}return bp.call(t,e)?t[e]:void 0}var vp=Object.prototype,jp=vp.hasOwnProperty;function Sp(e){var t=this.__data__;return Yr?t[e]!==void 0:jp.call(t,e)}var Rp="__lodash_hash_undefined__";function wp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&t===void 0?Rp:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=gp;Xt.prototype.delete=pp;Xt.prototype.get=xp;Xt.prototype.has=Sp;Xt.prototype.set=wp;function Ap(){this.size=0,this.__data__={hash:new Xt,map:new(qr||At),string:new Xt}}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pa(e,t){var r=e.__data__;return Pp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Cp(e){var t=pa(this,e).delete(e);return this.size-=t?1:0,t}function kp(e){return pa(this,e).get(e)}function Mp(e){return pa(this,e).has(e)}function Ip(e,t){var r=pa(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=Ap;Pt.prototype.delete=Cp;Pt.prototype.get=kp;Pt.prototype.has=Mp;Pt.prototype.set=Ip;var Tp=200;function Op(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!qr||n.length<Tp-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 St(e){var t=this.__data__=new At(e);this.size=t.size}St.prototype.clear=Xg;St.prototype.delete=qg;St.prototype.get=Yg;St.prototype.has=Zg;St.prototype.set=Op;var Ep="__lodash_hash_undefined__";function Lp(e){return this.__data__.set(e,Ep),this}function $p(e){return this.__data__.has(e)}function Gn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Gn.prototype.add=Gn.prototype.push=Lp;Gn.prototype.has=$p;function Np(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 Fp(e,t){return e.has(t)}var Dp=1,Bp=2;function Xl(e,t,r,n,a,s){var i=r&Dp,l=e.length,u=t.length;if(l!=u&&!(i&&u>l))return!1;var c=s.get(e),m=s.get(t);if(c&&m)return c==t&&m==e;var f=-1,d=!0,b=r&Bp?new Gn:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var y=e[f],_=t[f];if(n)var p=i?n(_,y,f,t,e,s):n(y,_,f,e,t,s);if(p!==void 0){if(p)continue;d=!1;break}if(b){if(!Np(t,function(j,R){if(!Fp(b,R)&&(y===j||a(y,j,r,n,s)))return b.push(R)})){d=!1;break}}else if(!(y===_||a(y,_,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}var Qo=_t.Uint8Array;function Up(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function Jp(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Vp=1,Gp=2,zp="[object Boolean]",Kp="[object Date]",Wp="[object Error]",Hp="[object Map]",Xp="[object Number]",qp="[object RegExp]",Yp="[object Set]",Zp="[object String]",Qp="[object Symbol]",e_="[object ArrayBuffer]",t_="[object DataView]",ei=$t?$t.prototype:void 0,Ua=ei?ei.valueOf:void 0;function r_(e,t,r,n,a,s,i){switch(r){case t_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case e_:return!(e.byteLength!=t.byteLength||!s(new Qo(e),new Qo(t)));case zp:case Kp:case Xp:return Wl(+e,+t);case Wp:return e.name==t.name&&e.message==t.message;case qp:case Zp:return e==t+"";case Hp:var l=Up;case Yp:var u=n&Vp;if(l||(l=Jp),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;n|=Gp,i.set(e,t);var m=Xl(l(e),l(t),n,a,s,i);return i.delete(e),m;case Qp:if(Ua)return Ua.call(e)==Ua.call(t)}return!1}function n_(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var pt=Array.isArray;function a_(e,t,r){var n=t(e);return pt(e)?n:n_(n,r(e))}function s_(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[a++]=i)}return s}function o_(){return[]}var i_=Object.prototype,l_=i_.propertyIsEnumerable,ti=Object.getOwnPropertySymbols,u_=ti?function(e){return e==null?[]:(e=Object(e),s_(ti(e),function(t){return l_.call(e,t)}))}:o_;function c_(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var m_="[object Arguments]";function ri(e){return Wt(e)&&Yt(e)==m_}var ql=Object.prototype,d_=ql.hasOwnProperty,f_=ql.propertyIsEnumerable,Yl=ri(function(){return arguments}())?ri:function(e){return Wt(e)&&d_.call(e,"callee")&&!f_.call(e,"callee")};function h_(){return!1}var Zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ni=Zl&&typeof module=="object"&&module&&!module.nodeType&&module,g_=ni&&ni.exports===Zl,ai=g_?_t.Buffer:void 0,p_=ai?ai.isBuffer:void 0,ls=p_||h_,__=9007199254740991,y_=/^(?:0|[1-9]\d*)$/;function Ql(e,t){var r=typeof e;return t=t??__,!!t&&(r=="number"||r!="symbol"&&y_.test(e))&&e>-1&&e%1==0&&e<t}var b_=9007199254740991;function Ns(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=b_}var x_="[object Arguments]",v_="[object Array]",j_="[object Boolean]",S_="[object Date]",R_="[object Error]",w_="[object Function]",A_="[object Map]",P_="[object Number]",C_="[object Object]",k_="[object RegExp]",M_="[object Set]",I_="[object String]",T_="[object WeakMap]",O_="[object ArrayBuffer]",E_="[object DataView]",L_="[object Float32Array]",$_="[object Float64Array]",N_="[object Int8Array]",F_="[object Int16Array]",D_="[object Int32Array]",B_="[object Uint8Array]",U_="[object Uint8ClampedArray]",J_="[object Uint16Array]",V_="[object Uint32Array]",me={};me[L_]=me[$_]=me[N_]=me[F_]=me[D_]=me[B_]=me[U_]=me[J_]=me[V_]=!0;me[x_]=me[v_]=me[O_]=me[j_]=me[E_]=me[S_]=me[R_]=me[w_]=me[A_]=me[P_]=me[C_]=me[k_]=me[M_]=me[I_]=me[T_]=!1;function G_(e){return Wt(e)&&Ns(e.length)&&!!me[Yt(e)]}function z_(e){return function(t){return e(t)}}var eu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vr=eu&&typeof module=="object"&&module&&!module.nodeType&&module,K_=Vr&&Vr.exports===eu,Ja=K_&&pl.process,si=function(){try{var e=Vr&&Vr.require&&Vr.require("util").types;return e||Ja&&Ja.binding&&Ja.binding("util")}catch{}}(),oi=si&&si.isTypedArray,tu=oi?z_(oi):G_,W_=Object.prototype,H_=W_.hasOwnProperty;function X_(e,t){var r=pt(e),n=!r&&Yl(e),a=!r&&!n&&ls(e),s=!r&&!n&&!a&&tu(e),i=r||n||a||s,l=i?c_(e.length,String):[],u=l.length;for(var c in e)H_.call(e,c)&&!(i&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ql(c,u)))&&l.push(c);return l}var q_=Object.prototype;function Y_(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||q_;return e===r}function Z_(e,t){return function(r){return e(t(r))}}var Q_=Z_(Object.keys,Object),ey=Object.prototype,ty=ey.hasOwnProperty;function ry(e){if(!Y_(e))return Q_(e);var t=[];for(var r in Object(e))ty.call(e,r)&&r!="constructor"&&t.push(r);return t}function ru(e){return e!=null&&Ns(e.length)&&!Hl(e)}function Fs(e){return ru(e)?X_(e):ry(e)}function ii(e){return a_(e,Fs,u_)}var ny=1,ay=Object.prototype,sy=ay.hasOwnProperty;function oy(e,t,r,n,a,s){var i=r&ny,l=ii(e),u=l.length,c=ii(t),m=c.length;if(u!=m&&!i)return!1;for(var f=u;f--;){var d=l[f];if(!(i?d in t:sy.call(t,d)))return!1}var b=s.get(e),y=s.get(t);if(b&&y)return b==t&&y==e;var _=!0;s.set(e,t),s.set(t,e);for(var p=i;++f<u;){d=l[f];var j=e[d],R=t[d];if(n)var C=i?n(R,j,d,t,e,s):n(j,R,d,e,t,s);if(!(C===void 0?j===R||a(j,R,r,n,s):C)){_=!1;break}p||(p=d=="constructor")}if(_&&!p){var A=e.constructor,S=t.constructor;A!=S&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof S=="function"&&S instanceof S)&&(_=!1)}return s.delete(e),s.delete(t),_}var us=Qt(_t,"DataView"),cs=Qt(_t,"Promise"),ms=Qt(_t,"Set"),ds=Qt(_t,"WeakMap"),li="[object Map]",iy="[object Object]",ui="[object Promise]",ci="[object Set]",mi="[object WeakMap]",di="[object DataView]",ly=Zt(us),uy=Zt(qr),cy=Zt(cs),my=Zt(ms),dy=Zt(ds),Et=Yt;(us&&Et(new us(new ArrayBuffer(1)))!=di||qr&&Et(new qr)!=li||cs&&Et(cs.resolve())!=ui||ms&&Et(new ms)!=ci||ds&&Et(new ds)!=mi)&&(Et=function(e){var t=Yt(e),r=t==iy?e.constructor:void 0,n=r?Zt(r):"";if(n)switch(n){case ly:return di;case uy:return li;case cy:return ui;case my:return ci;case dy:return mi}return t});var fy=1,fi="[object Arguments]",hi="[object Array]",pn="[object Object]",hy=Object.prototype,gi=hy.hasOwnProperty;function gy(e,t,r,n,a,s){var i=pt(e),l=pt(t),u=i?hi:Et(e),c=l?hi:Et(t);u=u==fi?pn:u,c=c==fi?pn:c;var m=u==pn,f=c==pn,d=u==c;if(d&&ls(e)){if(!ls(t))return!1;i=!0,m=!1}if(d&&!m)return s||(s=new St),i||tu(e)?Xl(e,t,r,n,a,s):r_(e,t,u,r,n,a,s);if(!(r&fy)){var b=m&&gi.call(e,"__wrapped__"),y=f&&gi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,p=y?t.value():t;return s||(s=new St),a(_,p,r,n,s)}}return d?(s||(s=new St),oy(e,t,r,n,a,s)):!1}function _a(e,t,r,n,a){return e===t?!0:e==null||t==null||!Wt(e)&&!Wt(t)?e!==e&&t!==t:gy(e,t,r,n,_a,a)}function py(e,t){return _a(e,t)}const nu=({store:e})=>{const{t}=qt.useTranslation(),[r,n]=Y.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),a=Y.useRef(r);jr(()=>{const i=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;py(a.current,i)||(a.current=i,n(i))});const s=[];for(const[i,l]of r.entries())l&&s.push(i);return o.jsx(T.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:s.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:s.map(i=>i+1).join(", ")})})},_y=({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"})),yy=Y.forwardRef(_y),by=({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"})),xy=Y.forwardRef(by),vy=Te.observer(({store:e})=>{var n;const{t}=qt.useTranslation();function r(a,s){(s==="coordsys"||s==="tool")&&e.setSelectedOrientation(s)}return o.jsxs(o.Fragment,{children:[o.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"6px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),o.jsx(T.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:a=>{e.setSelectedCoordSystemId(a.target.value)},disabled:e.isLocked,children:e.coordSystems.map(a=>o.jsx(T.MenuItem,{value:a.coordinate_system,children:a.name&&e.coordSystemCountByName[a.name]>1?`${a.name} / ${a.coordinate_system}`:a.name||a.coordinate_system},a.coordinate_system))})]}),o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),o.jsx(T.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,size:"small",variant:"filled",onChange:a=>{e.setSelectedTcpId(a.target.value)},disabled:e.isLocked,children:e.tcps.map(a=>o.jsx(T.MenuItem,{value:a.id,children:a.id},a.id))})]})]}),o.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"6px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),o.jsxs(T.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[o.jsx(T.ToggleButton,{value:"coordsys",sx:{flexGrow:1},children:o.jsx(yy,{})}),o.jsx(T.ToggleButton,{value:"tool",sx:{flexGrow:1},children:o.jsx(xy,{})})]})]}),o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-increment-select",children:"Increment"}),o.jsxs(T.Select,{labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:a=>{e.setSelectedIncrementId(a.target.value)},disabled:e.isLocked,children:[o.jsx(T.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(a=>o.jsx(T.MenuItem,{value:a.id,children:e.currentMotionType==="translate"?`${a.mm}mm`:`${a.degrees}°`},a.id))]})]})]})]})});function jy(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const Sy=2;function au(e,t){return e-t}function pi(e,t){var r;const{index:n}=(r=e.reduce((a,s,i)=>{const l=Math.abs(t-s);return a===null||l<a.distance||l===a.distance?{distance:l,index:i}:a},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 a=r.changedTouches[n];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function zn(e,t,r){return(e-t)*100/(r-t)}function Ry(e,t,r){return(r-t)*e+t}function wy(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 Ay(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(wy(t)))}function _i({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(au)}function yn({sliderRef:e,activeIndex:t,setActive:r}){var n,a;const s=pr(e.current);if(!((n=e.current)!=null&&n.contains(s.activeElement))||Number(s==null||(a=s.activeElement)==null?void 0:a.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function bn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?jy(e,t):!1}const Py={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}%`})}},Cy=e=>e;let xn;function yi(){return xn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xn=CSS.supports("touch-action","none"):xn=!0),xn}function ky(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:s=!1,marks:i=!1,max:l=100,min:u=0,name:c,onChange:m,onChangeCommitted:f,orientation:d="horizontal",rootRef:b,scale:y=Cy,step:_=1,shiftStep:p=10,tabIndex:j,value:R}=e,C=N.useRef(),[A,S]=N.useState(-1),[P,k]=N.useState(-1),[z,le]=N.useState(!1),ce=N.useRef(0),[D,q]=Qi({controlled:R,default:r??u,name:"Slider"}),G=m&&((I,L,F)=>{const K=I.nativeEvent||I,Q=new K.constructor(K.type,K);Object.defineProperty(Q,"target",{writable:!0,value:{value:L,name:c}}),m(Q,L,F)}),Z=Array.isArray(D);let X=Z?D.slice().sort(au):[D];X=X.map(I=>I==null?u:dr(I,u,l));const je=i===!0&&_!==null?[...Array(Math.floor((l-u)/_)+1)].map((I,L)=>({value:u+_*L})):i||[],ue=je.map(I=>I.value),{isFocusVisibleRef:ee,onBlur:we,onFocus:Oe,ref:nt}=el(),[yt,We]=N.useState(-1),Se=N.useRef(),Ct=Ln(nt,Se),lt=Ln(b,Ct),He=I=>L=>{var F;const K=Number(L.currentTarget.getAttribute("data-index"));Oe(L),ee.current===!0&&We(K),k(K),I==null||(F=I.onFocus)==null||F.call(I,L)},Ue=I=>L=>{var F;we(L),ee.current===!1&&We(-1),k(-1),I==null||(F=I.onBlur)==null||F.call(I,L)},ut=(I,L)=>{const F=Number(I.currentTarget.getAttribute("data-index")),K=X[F],Q=ue.indexOf(K);let W=L;if(je&&_==null){const Ve=ue[ue.length-1];W>Ve?W=Ve:W<ue[0]?W=ue[0]:W=W<K?ue[Q-1]:ue[Q+1]}if(W=dr(W,u,l),Z){a&&(W=dr(W,X[F-1]||-1/0,X[F+1]||1/0));const Ve=W;W=_i({values:X,newValue:W,index:F});let Xe=F;a||(Xe=W.indexOf(Ve)),yn({sliderRef:Se,activeIndex:Xe})}q(W),We(F),G&&!bn(W,D)&&G(I,W,F),f&&f(I,W)},ct=I=>L=>{var F;if(_!==null){const K=Number(L.currentTarget.getAttribute("data-index")),Q=X[K];let W=null;(L.key==="ArrowLeft"||L.key==="ArrowDown")&&L.shiftKey||L.key==="PageDown"?W=Math.max(Q-p,u):((L.key==="ArrowRight"||L.key==="ArrowUp")&&L.shiftKey||L.key==="PageUp")&&(W=Math.min(Q+p,l)),W!==null&&(ut(L,W),L.preventDefault())}I==null||(F=I.onKeyDown)==null||F.call(I,L)};js(()=>{if(n&&Se.current.contains(document.activeElement)){var I;(I=document.activeElement)==null||I.blur()}},[n]),n&&A!==-1&&S(-1),n&&yt!==-1&&We(-1);const Ft=I=>L=>{var F;(F=I.onChange)==null||F.call(I,L),ut(L,L.target.valueAsNumber)},bt=N.useRef();let Je=d;s&&d==="horizontal"&&(Je+="-reverse");const O=({finger:I,move:L=!1})=>{const{current:F}=Se,{width:K,height:Q,bottom:W,left:Ve}=F.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(W-I.y)/Q:Xe=(I.x-Ve)/K,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let re;if(re=Ry(Xe,u,l),_)re=Ay(re,_,u);else{const It=pi(ue,re);re=ue[It]}re=dr(re,u,l);let $e=0;if(Z){L?$e=bt.current:$e=pi(X,re),a&&(re=dr(re,X[$e-1]||-1/0,X[$e+1]||1/0));const It=re;re=_i({values:X,newValue:re,index:$e}),a&&L||($e=re.indexOf(It),bt.current=$e)}return{newValue:re,activeIndex:$e}},te=An(I=>{const L=_n(I,C);if(!L)return;if(ce.current+=1,I.type==="mousemove"&&I.buttons===0){fe(I);return}const{newValue:F,activeIndex:K}=O({finger:L,move:!0});yn({sliderRef:Se,activeIndex:K,setActive:S}),q(F),!z&&ce.current>Sy&&le(!0),G&&!bn(F,D)&&G(I,F,K)}),fe=An(I=>{const L=_n(I,C);if(le(!1),!L)return;const{newValue:F}=O({finger:L,move:!0});S(-1),I.type==="touchend"&&k(-1),f&&f(I,F),C.current=void 0,Le()}),Ee=An(I=>{if(n)return;yi()||I.preventDefault();const L=I.changedTouches[0];L!=null&&(C.current=L.identifier);const F=_n(I,C);if(F!==!1){const{newValue:Q,activeIndex:W}=O({finger:F});yn({sliderRef:Se,activeIndex:W,setActive:S}),q(Q),G&&!bn(Q,D)&&G(I,Q,W)}ce.current=0;const K=pr(Se.current);K.addEventListener("touchmove",te,{passive:!0}),K.addEventListener("touchend",fe,{passive:!0})}),Le=N.useCallback(()=>{const I=pr(Se.current);I.removeEventListener("mousemove",te),I.removeEventListener("mouseup",fe),I.removeEventListener("touchmove",te),I.removeEventListener("touchend",fe)},[fe,te]);N.useEffect(()=>{const{current:I}=Se;return I.addEventListener("touchstart",Ee,{passive:yi()}),()=>{I.removeEventListener("touchstart",Ee),Le()}},[Le,Ee]),N.useEffect(()=>{n&&Le()},[n,Le]);const kt=I=>L=>{var F;if((F=I.onMouseDown)==null||F.call(I,L),n||L.defaultPrevented||L.button!==0)return;L.preventDefault();const K=_n(L,C);if(K!==!1){const{newValue:W,activeIndex:Ve}=O({finger:K});yn({sliderRef:Se,activeIndex:Ve,setActive:S}),q(W),G&&!bn(W,D)&&G(L,W,Ve)}ce.current=0;const Q=pr(Se.current);Q.addEventListener("mousemove",te,{passive:!0}),Q.addEventListener("mouseup",fe)},Re=zn(Z?X[0]:u,u,l),Mt=zn(X[X.length-1],u,l)-Re,Dt=(I={})=>{const L=Pn(I),F={onMouseDown:kt(L||{})},K=M({},L,F);return M({},I,{ref:lt},K)},wr=I=>L=>{var F;(F=I.onMouseOver)==null||F.call(I,L);const K=Number(L.currentTarget.getAttribute("data-index"));k(K)},Ar=I=>L=>{var F;(F=I.onMouseLeave)==null||F.call(I,L),k(-1)};return{active:A,axis:Je,axisProps:Py,dragging:z,focusedThumbIndex:yt,getHiddenInputProps:(I={})=>{var L;const F=Pn(I),K={onChange:Ft(F||{}),onFocus:He(F||{}),onBlur:Ue(F||{}),onKeyDown:ct(F||{})},Q=M({},F,K);return M({tabIndex:j,"aria-labelledby":t,"aria-orientation":d,"aria-valuemax":y(l),"aria-valuemin":y(u),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(L=e.step)!=null?L:void 0,disabled:n},I,Q,{style:M({},bd,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Dt,getThumbProps:(I={})=>{const L=Pn(I),F={onMouseOver:wr(L||{}),onMouseLeave:Ar(L||{})};return M({},I,L,F)},marks:je,open:P,range:Z,rootRef:lt,trackLeap:Mt,trackOffset:Re,values:X,getThumbStyle:I=>({pointerEvents:A!==-1&&A!==I?"none":void 0})}}const My=e=>!e||!Ur(e);function Iy(e){return nn("MuiSlider",e)}const Qe=Hi("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"]),Ty=e=>{const{open:t}=e;return{offset:gt(t&&Qe.valueLabelOpen),circle:Qe.valueLabelCircle,label:Qe.valueLabelLabel}};function su(e){const{children:t,className:r,value:n}=e,a=Ty(e);return t?N.cloneElement(t,{className:gt(t.props.className)},o.jsxs(N.Fragment,{children:[t.props.children,o.jsx("span",{className:gt(a.offset,r),"aria-hidden":!0,children:o.jsx("span",{className:a.circle,children:o.jsx("span",{className:a.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(su.propTypes={children:h.element.isRequired,className:h.string,value:h.node});const Oy=["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 bi(e){return e}const Ey=wt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Pe(r.color)}`],r.size!=="medium"&&t[`size${Pe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Qe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Qe.dragging}`]:{[`& .${Qe.thumb}, & .${Qe.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Ly=wt("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}}]}),$y=wt("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:M({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:M({backgroundColor:Za(e.palette[r].main,.62),borderColor:Za(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Ya(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Ya(e.palette[r].main,.5)})))}))]}}),Ny=wt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Pe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Pe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Qe.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${Qe.focusVisible}`]:M({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${fo(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Qe.active}`]:M({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${fo(e.palette[r].main,.16)}`})}}))]}}),Fy=wt(su,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>M({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Dy=wt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Cs(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}}]})),By=wt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Cs(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>M({},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}}]})),Uy=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:s,classes:i,color:l,size:u}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${Pe(l)}`,u&&`size${Pe(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Pe(u)}`,l&&`thumbColor${Pe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rs(c,Iy,i)},Jy=({children:e})=>e,ou=N.forwardRef(function(t,r){var n,a,s,i,l,u,c,m,f,d,b,y,_,p,j,R,C,A,S,P,k,z,le,ce;const D=ks({props:t,name:"MuiSlider"}),q=wd(),{"aria-label":G,"aria-valuetext":Z,"aria-labelledby":X,component:je="span",components:ue={},componentsProps:ee={},color:we="primary",classes:Oe,className:nt,disableSwap:yt=!1,disabled:We=!1,getAriaLabel:Se,getAriaValueText:Ct,marks:lt=!1,max:He=100,min:Ue=0,orientation:ut="horizontal",shiftStep:ct=10,size:Ft="medium",step:bt=1,scale:Je=bi,slotProps:O,slots:te,track:fe="normal",valueLabelDisplay:Ee="off",valueLabelFormat:Le=bi}=D,kt=Be(D,Oy),Re=M({},D,{isRtl:q,max:He,min:Ue,classes:Oe,disabled:We,disableSwap:yt,orientation:ut,marks:lt,color:we,size:Ft,step:bt,shiftStep:ct,scale:Je,track:fe,valueLabelDisplay:Ee,valueLabelFormat:Le}),{axisProps:Mt,getRootProps:Dt,getHiddenInputProps:wr,getThumbProps:Ar,open:Pr,active:er,axis:at,focusedThumbIndex:I,range:L,dragging:F,marks:K,values:Q,trackOffset:W,trackLeap:Ve,getThumbStyle:Xe}=ky(M({},Re,{rootRef:r}));Re.marked=K.length>0&&K.some($=>$.label),Re.dragging=F,Re.focusedThumbIndex=I;const re=Uy(Re),$e=(n=(a=te==null?void 0:te.root)!=null?a:ue.Root)!=null?n:Ey,It=(s=(i=te==null?void 0:te.rail)!=null?i:ue.Rail)!=null?s:Ly,tr=(l=(u=te==null?void 0:te.track)!=null?u:ue.Track)!=null?l:$y,Cr=(c=(m=te==null?void 0:te.thumb)!=null?m:ue.Thumb)!=null?c:Ny,xt=(f=(d=te==null?void 0:te.valueLabel)!=null?d:ue.ValueLabel)!=null?f:Fy,Bt=(b=(y=te==null?void 0:te.mark)!=null?y:ue.Mark)!=null?b:Dy,Ut=(_=(p=te==null?void 0:te.markLabel)!=null?p:ue.MarkLabel)!=null?_:By,kr=(j=(R=te==null?void 0:te.input)!=null?R:ue.Input)!=null?j:"input",Mr=(C=O==null?void 0:O.root)!=null?C:ee.root,un=(A=O==null?void 0:O.rail)!=null?A:ee.rail,Ir=(S=O==null?void 0:O.track)!=null?S:ee.track,rr=(P=O==null?void 0:O.thumb)!=null?P:ee.thumb,nr=(k=O==null?void 0:O.valueLabel)!=null?k:ee.valueLabel,ba=(z=O==null?void 0:O.mark)!=null?z:ee.mark,xa=(le=O==null?void 0:O.markLabel)!=null?le:ee.markLabel,cn=(ce=O==null?void 0:O.input)!=null?ce:ee.input,mn=Tt({elementType:$e,getSlotProps:Dt,externalSlotProps:Mr,externalForwardedProps:kt,additionalProps:M({},My($e)&&{as:je}),ownerState:M({},Re,Mr==null?void 0:Mr.ownerState),className:[re.root,nt]}),va=Tt({elementType:It,externalSlotProps:un,ownerState:Re,className:re.rail}),ja=Tt({elementType:tr,externalSlotProps:Ir,additionalProps:{style:M({},Mt[at].offset(W),Mt[at].leap(Ve))},ownerState:M({},Re,Ir==null?void 0:Ir.ownerState),className:re.track}),Tr=Tt({elementType:Cr,getSlotProps:Ar,externalSlotProps:rr,ownerState:M({},Re,rr==null?void 0:rr.ownerState),className:re.thumb}),Sa=Tt({elementType:xt,externalSlotProps:nr,ownerState:M({},Re,nr==null?void 0:nr.ownerState),className:re.valueLabel}),g=Tt({elementType:Bt,externalSlotProps:ba,ownerState:Re,className:re.mark}),w=Tt({elementType:Ut,externalSlotProps:xa,ownerState:Re,className:re.markLabel}),E=Tt({elementType:kr,getSlotProps:wr,externalSlotProps:cn,ownerState:Re});return o.jsxs($e,M({},mn,{children:[o.jsx(It,M({},va)),o.jsx(tr,M({},ja)),K.filter($=>$.value>=Ue&&$.value<=He).map(($,B)=>{const ne=zn($.value,Ue,He),V=Mt[at].offset(ne);let U;return fe===!1?U=Q.indexOf($.value)!==-1:U=fe==="normal"&&(L?$.value>=Q[0]&&$.value<=Q[Q.length-1]:$.value<=Q[0])||fe==="inverted"&&(L?$.value<=Q[0]||$.value>=Q[Q.length-1]:$.value>=Q[0]),o.jsxs(N.Fragment,{children:[o.jsx(Bt,M({"data-index":B},g,!Ur(Bt)&&{markActive:U},{style:M({},V,g.style),className:gt(g.className,U&&re.markActive)})),$.label!=null?o.jsx(Ut,M({"aria-hidden":!0,"data-index":B},w,!Ur(Ut)&&{markLabelActive:U},{style:M({},V,w.style),className:gt(re.markLabel,w.className,U&&re.markLabelActive),children:$.label})):null]},B)}),Q.map(($,B)=>{const ne=zn($,Ue,He),V=Mt[at].offset(ne),U=Ee==="off"?Jy:xt;return o.jsx(U,M({},!Ur(U)&&{valueLabelFormat:Le,valueLabelDisplay:Ee,value:typeof Le=="function"?Le(Je($),B):Le,index:B,open:Pr===B||er===B||Ee==="on",disabled:We},Sa,{children:o.jsx(Cr,M({"data-index":B},Tr,{className:gt(re.thumb,Tr.className,er===B&&re.active,I===B&&re.focusVisible),style:M({},V,Xe(B),Tr.style),children:o.jsx(kr,M({"data-index":B,"aria-label":Se?Se(B):G,"aria-valuenow":Je($),"aria-labelledby":X,"aria-valuetext":Ct?Ct(Je($),B):Z,value:Q[B]},E))}))}),B)})]}))});process.env.NODE_ENV!=="production"&&(ou.propTypes={"aria-label":ao(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":h.string,"aria-valuetext":ao(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Mark:h.elementType,MarkLabel:h.elementType,Rail:h.elementType,Root:h.elementType,Thumb:h.elementType,Track:h.elementType,ValueLabel:h.elementType}),componentsProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),defaultValue:h.oneOfType([h.arrayOf(h.number),h.number]),disabled:h.bool,disableSwap:h.bool,getAriaLabel:h.func,getAriaValueText:h.func,marks:h.oneOfType([h.arrayOf(h.shape({label:h.node,value:h.number.isRequired})),h.bool]),max:h.number,min:h.number,name:h.string,onChange:h.func,onChangeCommitted:h.func,orientation:h.oneOf(["horizontal","vertical"]),scale:h.func,shiftStep:h.number,size:h.oneOfType([h.oneOf(["small","medium"]),h.string]),slotProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),slots:h.shape({input:h.elementType,mark:h.elementType,markLabel:h.elementType,rail:h.elementType,root:h.elementType,thumb:h.elementType,track:h.elementType,valueLabel:h.elementType}),step:h.number,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,track:h.oneOf(["inverted","normal",!1]),value:h.oneOfType([h.arrayOf(h.number),h.number]),valueLabelDisplay:h.oneOf(["auto","off","on"]),valueLabelFormat:h.oneOfType([h.func,h.string])});var Vy="[object Number]";function Gy(e){return typeof e=="number"||Wt(e)&&Yt(e)==Vy}const iu=Te.observer(e=>{const t=T.useTheme(),r=e.valueLabelFormat||(a=>`${a}`);function n(a,s){s===e.velocity||!Gy(s)||e.onVelocityChange(s)}return o.jsxs(o.Fragment,{children:[o.jsx(T.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,lineHeight:1,color:t.palette.text.primary},children:r(e.velocity)}),o.jsx(ou,{value:e.velocity,color:"secondary",onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),lu=Te.observer(({store:e})=>{const{t}=qt.useTranslation(),r=Te.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 o.jsx(T.Stack,{sx:{margin:"0px 20px",marginBottom:"6px"},children:o.jsx(T.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:o.jsx(iu,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),zy=Te.observer(({store:e,children:t})=>{var f,d,b,y,_,p,j,R,C;const{t:r}=qt.useTranslation(),n=T.useTheme();function a(A,S){(S==="translate"||S==="rotate")&&e.setSelectedCartesianMotionType(S)}Ms(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function s(A,S){const P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,k=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;P&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:P,currentJoints:k,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:A.axis,direction:A.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:S.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(S.degrees)}})})}async function i(A){if(!e.isLocked){if(e.activeDiscreteIncrement)return s(A,e.activeDiscreteIncrement);A.motionType==="translate"?await e.jogger.startTCPTranslation({axis:A.axis,direction:A.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:A.axis,direction:A.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const u=[{id:"x",colors:(b=(d=(f=n.componentsExt)==null?void 0:f.JoggingCartesian)==null?void 0:d.Axis)==null?void 0:b.X,icon:o.jsx(Eg,{})},{id:"y",colors:(p=(_=(y=n.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:_.Axis)==null?void 0:p.Y,icon:o.jsx($g,{})},{id:"z",colors:(C=(R=(j=n.componentsExt)==null?void 0:j.JoggingCartesian)==null?void 0:R.Axis)==null?void 0:C.Z,icon:o.jsx(Fg,{})}];function c(A){return r("General.mm.variable",{amount:A.toFixed(1)})}function m(A){return r("General.degree.variable",{amount:Lt.radiansToDegrees(A).toFixed(1)})}return o.jsxs(T.Stack,{flexGrow:1,gap:4,children:[o.jsxs(T.Stack,{children:[o.jsx(Ug,{store:e}),o.jsx(vy,{store:e})]}),o.jsx(T.Stack,{width:"80%",maxWidth:"296px",marginLeft:"auto",marginRight:"auto",marginTop:"8px",marginBottom:"8px",gap:"12px",children:o.jsxs(T.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:a,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[o.jsx(T.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),o.jsx(T.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]})}),o.jsx(zl,{store:e,children:o.jsxs(T.Stack,{width:"80%",maxWidth:"296px",marginLeft:"auto",marginRight:"auto",marginTop:"8px",marginBottom:"8px",gap:"12px",children:[e.selectedCartesianMotionType==="translate"&&u.map(A=>o.jsx(es,{colors:A.colors,disabled:e.isLocked,label:o.jsxs(o.Fragment,{children:[A.icon,o.jsx(T.Typography,{sx:{fontSize:"24px",color:"white"},children:A.id.toUpperCase()})]}),getDisplayedValue:()=>{var S;return c(((S=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:S.position[A.id])||0)},startJogging:S=>i({axis:A.id,motionType:"translate",direction:S}),stopJogging:l},A.id)),e.selectedCartesianMotionType==="rotate"&&u.map(A=>o.jsx(es,{colors:A.colors,disabled:e.isLocked,label:o.jsxs(o.Fragment,{children:[o.jsx(Bg,{}),o.jsx(T.Typography,{sx:{fontSize:"24px",color:"white"},children:A.id.toUpperCase()})]}),getDisplayedValue:()=>{var S,P;return m(((P=(S=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:S.orientation)==null?void 0:P[A.id])||0)},startJogging:S=>i({axis:A.id,motionType:"rotate",direction:S}),stopJogging:l},A.id))]})}),o.jsxs(T.Stack,{children:[o.jsx(nu,{store:e}),o.jsx(lu,{store:e}),t]})]})}),Ky=Te.observer(({store:e})=>{const t=Y.useRef(null);function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`[${n.map(a=>parseFloat(a.toFixed(4))).join(", ")}]`}return jr(()=>{t.current&&(t.current.textContent=r())}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:o.jsx(Kl,{value:r(),ref:t})})}),Wy=Te.observer(({store:e,children:t})=>{async function r(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop()}return o.jsxs(T.Stack,{flexGrow:1,justifyContent:"space-between",children:[o.jsx(Ky,{store:e}),o.jsx(zl,{store:e,children:o.jsx(T.Stack,{gap:"0.8rem",children:e.jogger.motionStream.joints.map(a=>{var u;const s=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],i=(s==null?void 0:s.lower_limit)!==void 0?Lt.radiansToDegrees(s.lower_limit):void 0,l=(s==null?void 0:s.upper_limit)!==void 0?Lt.radiansToDegrees(s.upper_limit):void 0;return o.jsxs(T.Stack,{direction:"row",alignItems:"center",gap:2,children:[o.jsx(T.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),o.jsx(yl,{disabled:e.isLocked,lowerLimitDegs:i,upperLimitDegs:l,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:a.index,direction:c}),stopJogging:n},a.index),o.jsx(T.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})})}),o.jsx(nu,{store:e}),o.jsx(lu,{store:e}),t]})});var xi=function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Hy(e,t,r){t=="__proto__"&&xi?xi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Xy(e,t,r,n){for(var a=-1,s=e==null?0:e.length;++a<s;){var i=e[a];t(n,i,r(i),e)}return n}function qy(e){return function(t,r,n){for(var a=-1,s=Object(t),i=n(t),l=i.length;l--;){var u=i[++a];if(r(s[u],u,s)===!1)break}return t}}var Yy=qy();function Zy(e,t){return e&&Yy(e,t,Fs)}function Qy(e,t){return function(r,n){if(r==null)return r;if(!ru(r))return e(r,n);for(var a=r.length,s=-1,i=Object(r);++s<a&&n(i[s],s,i)!==!1;);return r}}var e1=Qy(Zy);function t1(e,t,r,n){return e1(e,function(a,s,i){t(n,a,r(a),i)}),n}var r1=1,n1=2;function a1(e,t,r,n){var a=r.length,s=a;if(e==null)return!s;for(e=Object(e);a--;){var i=r[a];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++a<s;){i=r[a];var l=i[0],u=e[l],c=i[1];if(i[2]){if(u===void 0&&!(l in e))return!1}else{var m=new St,f;if(!(f===void 0?_a(c,u,r1|n1,n,m):f))return!1}}return!0}function uu(e){return e===e&&!Kt(e)}function s1(e){for(var t=Fs(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,uu(a)]}return t}function cu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function o1(e){var t=s1(e);return t.length==1&&t[0][2]?cu(t[0][0],t[0][1]):function(r){return r===e||a1(r,e,t)}}var i1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l1=/^\w*$/;function Ds(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||la(e)?!0:l1.test(e)||!i1.test(e)||t!=null&&e in Object(t)}var u1="Expected a function";function Bs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(u1);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var i=e.apply(this,n);return r.cache=s.set(a,i)||s,i};return r.cache=new(Bs.Cache||Pt),r}Bs.Cache=Pt;var c1=500;function m1(e){var t=Bs(e,function(n){return r.size===c1&&r.clear(),n}),r=t.cache;return t}var d1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f1=/\\(\\)?/g,h1=m1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(d1,function(r,n,a,s){t.push(a?s.replace(f1,"$1"):n||r)}),t});function g1(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var p1=1/0,vi=$t?$t.prototype:void 0,ji=vi?vi.toString:void 0;function mu(e){if(typeof e=="string")return e;if(pt(e))return g1(e,mu)+"";if(la(e))return ji?ji.call(e):"";var t=e+"";return t=="0"&&1/e==-p1?"-0":t}function du(e){return e==null?"":mu(e)}function fu(e,t){return pt(e)?e:Ds(e,t)?[e]:h1(du(e))}var _1=1/0;function ya(e){if(typeof e=="string"||la(e))return e;var t=e+"";return t=="0"&&1/e==-_1?"-0":t}function hu(e,t){t=fu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ya(t[r++])];return r&&r==n?e:void 0}function y1(e,t,r){var n=e==null?void 0:hu(e,t);return n===void 0?r:n}function b1(e,t){return e!=null&&t in Object(e)}function x1(e,t,r){t=fu(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var i=ya(t[n]);if(!(s=e!=null&&r(e,i)))break;e=e[i]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&Ns(a)&&Ql(i,a)&&(pt(e)||Yl(e)))}function v1(e,t){return e!=null&&x1(e,t,b1)}var j1=1,S1=2;function R1(e,t){return Ds(e)&&uu(t)?cu(ya(e),t):function(r){var n=y1(r,e);return n===void 0&&n===t?v1(r,e):_a(t,n,j1|S1)}}function w1(e){return e}function A1(e){return function(t){return t==null?void 0:t[e]}}function P1(e){return function(t){return hu(t,e)}}function C1(e){return Ds(e)?A1(ya(e)):P1(e)}function k1(e){return typeof e=="function"?e:e==null?w1:typeof e=="object"?pt(e)?R1(e[0],e[1]):o1(e):C1(e)}function M1(e,t){return function(r,n){var a=pt(r)?Xy:t1,s={};return a(r,e,k1(n),s)}}var vn=M1(function(e,t,r){Hy(e,r,t)}),I1=0;function T1(e){var t=++I1;return du(e)+t}const fs=[{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}],O1=[{id:"continuous"},...fs];class Us{constructor(t,r,n,a){var s,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=a,this.selectedTabId="cartesian",this.manualActivationRequired=!0,this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.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=((s=n[0])==null?void 0:s.coordinate_system)||"world",this.selectedTcpId=((i=a[0])==null?void 0:i.id)||"",mt.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(mt.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:a},{tcps:s}]=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 Us(t,n,a||[],s||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Kn.countBy(this.coordSystems,t=>t.name)}async deactivate(t={}){if(this.activationState==="inactive")return;const r=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),r&&await r.closed();try{await this.jogger.nova.api.motionGroupJogging.stopJogging(this.jogger.motionGroupId)}catch(n){console.error(n)}t.requireManualReactivation&&mt.runInAction(()=>{this.manualActivationRequired=!0})}async activate(t={}){if(!(this.manualActivationRequired&&!t.manual)){mt.runInAction(()=>{this.activationState="loading",this.activationError=null});try{await this.jogger.nova.api.controller.setDefaultMode(this.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(r){console.error(r)}if(this.currentTab.id==="cartesian"){const r={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",r):this.jogger.setJoggingMode("cartesian",r)}else this.jogger.setJoggingMode("joint");if(this.jogger.activeWebsocket)try{this.jogger.stop(),await this.jogger.activeWebsocket.nextMessage()}catch(r){mt.runInAction(()=>{this.activationState="inactive",this.activationError=r});return}mt.runInAction(()=>{this.activationState="active",t.manual&&(this.manualActivationRequired=!1)})}}loadFromLocalStorage(){const t=Lt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return O1}get discreteIncrementOptions(){return fs}get incrementOptionsById(){return vn(this.incrementOptions,t=>t.id)}get tabsById(){return vn(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 vn(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 vn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:fs.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=T1();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const E1=sn(Te.observer(e=>{const t=Kn.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=Te.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){mt.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const a=await t.connectJogger(e.motionGroupId),s=await Us.loadFor(a);mt.runInAction(()=>{r.joggingStore=s}),e.onSetup&&e.onSetup(s)}catch(a){r.loadingError=a}}return Y.useEffect(()=>(n(),()=>{var a;(a=r.joggingStore)==null||a.dispose()}),[e.nova,e.motionGroupId]),Y.useEffect(()=>{const a=r.joggingStore;a&&(e.locked?a.locks.add("external"):a.locks.delete("external"))},[e.locked]),o.jsx(T.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:r.joggingStore?o.jsx(L1,{store:r.joggingStore,children:e.children}):o.jsx(ha,{message:"Loading jogging",error:r.loadingError})})})),L1=Te.observer(({store:e,children:t})=>{Y.useEffect(()=>{function n(){e.deactivate()}function a(){e.activate()}return window.addEventListener("blur",n),window.addEventListener("focus",a),()=>{window.removeEventListener("blur",n),window.removeEventListener("focus",a)}}),Ms(()=>[e.currentTab.id,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState!=="inactive"&&e.activate()});function r(){if(e.currentTab.id==="cartesian")return o.jsx(o.Fragment,{children:o.jsx(zy,{store:e,children:t})});if(e.currentTab.id==="joint")return o.jsx(o.Fragment,{children:o.jsx(Wy,{store:e,children:t})})}return o.jsxs(T.Stack,{flexGrow:1,height:"100%",children:[o.jsx(T.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>o.jsx(T.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),o.jsx(T.Stack,{flexGrow:1,position:"relative",children:r()})]})});function $1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function N1({baseUrl:e=$1(),...t}){return o.jsxs(T.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:[o.jsx(T.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),o.jsxs(T.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[o.jsx(T.Typography,{color:"#fff",children:"Found no devices to connect to."}),o.jsx(T.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),o.jsx(T.DialogActions,{children:o.jsxs(T.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[o.jsx(T.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),o.jsx(T.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const F1=Array(6).fill(2*Math.PI);gu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function gu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.abb_white})]}),o.jsxs(x.animated.group,{name:"ABB_IRB1200_J00",children:[o.jsxs("group",{name:"ABB_IRB1200_J01",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J02",position:[.35,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J03",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J04",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1200_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"visuals006",geometry:a.visuals006.geometry,material:s.abb_metal_black,position:[.791,-.351,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"visuals005",position:[-.791,0,.351],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals005_1",geometry:a.visuals005_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals005_2",geometry:a.visuals005_2.geometry,material:s.abb_white})]})]}),o.jsxs("group",{name:"visuals004",position:[-.791,0,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals004_3",geometry:a.visuals004_3.geometry,material:s.abb_red})]})]}),o.jsxs("group",{name:"visuals003",position:[-.749,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals002",position:[-.399,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.abb_metal_polished})]})]})]})})}pu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function pu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.abb_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_0_3",geometry:a.visuals_0_3.geometry,material:s.abb_red})]}),o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J00",children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J01",position:[.15,.544,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J02",position:[.575,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J04",position:[0,.425,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1300_115_10_FLG",position:[0,.092,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.abb_metal_polished,position:[1.159,-.575,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-1.159,0,.575],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-1.159,-.15,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_3",position:[-1.119,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_2",position:[-.544,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.abb_metal_black})]})]})]})})}_u.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function _u({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M10iD_L06",geometry:a.M10iD_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"M10iD_L05",geometry:a.M10iD_L05.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_654",geometry:a.Mesh_654.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_654_1",geometry:a.Mesh_654_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_378",geometry:a.Mesh_378.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_378_1",geometry:a.Mesh_378_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_378_2",geometry:a.Mesh_378_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_358",geometry:a.Mesh_358.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_358_1",geometry:a.Mesh_358_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L01",children:[o.jsx("mesh",{name:"Mesh_356",geometry:a.Mesh_356.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_356_1",geometry:a.Mesh_356_1.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_356_2",geometry:a.Mesh_356_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M10iD_L00",geometry:a.M10iD_L00.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})})}hs.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function hs({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J00",children:[o.jsxs(x.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M20iD25_L06",geometry:a.M20iD25_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),o.jsx("mesh",{name:"M20iD25_L05",geometry:a.M20iD25_L05.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),o.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_2",geometry:a.Mesh_2.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_2_1",geometry:a.Mesh_2_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_15",geometry:a.Mesh_15.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_15_1",geometry:a.Mesh_15_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_15_2",geometry:a.Mesh_15_2.geometry,material:s.Material_9_AO})]})]}),o.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_37",geometry:a.Mesh_37.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_37_1",geometry:a.Mesh_37_1.geometry,material:s.Fanuc_Yellow_Textured_AO})]})]}),o.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"Mesh_45",geometry:a.Mesh_45.geometry,material:s.Material_9_AO}),o.jsx("mesh",{name:"Mesh_45_1",geometry:a.Mesh_45_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_45_2",geometry:a.Mesh_45_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M20iD25_L00",geometry:a.M20iD25_L00.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})})}yu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function yu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:a.CRX10iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:a.J5CASING_UNIT001.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:a.J5CASING_UNIT001_1.geometry,material:s.Fanuc_Green})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",geometry:a.NAME_LABEL_CRX_10iA.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",geometry:a.NAME_LABEL_CRX_10iA_1.geometry,material:s.Fanuc_BlackPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",geometry:a.NAME_LABEL_CRX_10iA_2.geometry,material:s.Fanuc_WhitePlastic})]})]}),o.jsx("mesh",{name:"CRX10iA_L03",geometry:a.CRX10iA_L03.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:a.CRX10iA_L02.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:a.J2BASE_UNIT001.geometry,material:s.Fanuc_Green}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:a.J2BASE_UNIT001_1.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:a.J2BASE_UNIT001_2.geometry,material:s.Fanuc_GreenLED})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:a.CRX10iA_L00.geometry,material:s.Fanuc_BlackMetal,position:[0,-.245,0]})]})})})}bu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function bu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsx("mesh",{name:"link_0",geometry:a.link_0.geometry,material:s.fanuc_metal_black}),o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(x.animated.group,{ref:t,name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),o.jsxs(x.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape053",geometry:a.shape053.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape053_1",geometry:a.shape053_1.geometry,material:s.fanuc_green})]})]}),o.jsxs(x.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape054",geometry:a.shape054.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape054_1",geometry:a.shape054_1.geometry,material:s.fanuc_red}),o.jsx("mesh",{name:"shape054_2",geometry:a.shape054_2.geometry,material:s.fanuc_metal_black})]})]}),o.jsxs(x.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape009",geometry:a.shape009.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"shape009_1",geometry:a.shape009_1.geometry,material:s.fanuc_white})]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",position:[0,.245,0],children:[o.jsx("mesh",{name:"shape005",geometry:a.shape005.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape005_1",geometry:a.shape005_1.geometry,material:s.fanuc_green})]})]})]})})})}xu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function xu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[o.jsxs("group",{name:"CRX25iA_L00",children:[o.jsx("mesh",{name:"J1BASE_NetGen_Coarse",geometry:a.J1BASE_NetGen_Coarse.geometry,material:s.Fanuc_BlackMetal}),o.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",geometry:a.J1BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]}),o.jsxs(x.animated.group,{name:"CRX25iA_J00",children:[o.jsxs(x.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX25iA_L06",geometry:a.CRX25iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.18,0]})]}),o.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[o.jsx("mesh",{name:"J6CASING_NetGen_Coarse",geometry:a.J6CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",geometry:a.J6CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[o.jsx("mesh",{name:"J3ARM_NetGen_Coarse",geometry:a.J3ARM_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",geometry:a.J3ARM_NetGen_Coarse_1.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",geometry:a.J3ARM_NetGen_Coarse_2.geometry,material:s.Fanuc_BlackPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L03",children:[o.jsx("mesh",{name:"J3CASING_NetGen_Coarse",geometry:a.J3CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",geometry:a.J3CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsx("mesh",{name:"CRX25iA_L02",geometry:a.CRX25iA_L02.geometry,material:s.Fanuc_WhitePlastic})]}),o.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[o.jsx("mesh",{name:"J2BASE_NetGen_Coarse",geometry:a.J2BASE_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",geometry:a.J2BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenLED})]})]})]})})})}vu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function vu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:a.CRX10iA_L06.geometry,material:s["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:a.J5CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:a.J5CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",geometry:a.NAME_LABEL_CRX_10iA_L001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",geometry:a.NAME_LABEL_CRX_10iA_L001_1.geometry,material:s["Fanuc_RedPlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",geometry:a.NAME_LABEL_CRX_10iA_L001_2.geometry,material:s["Fanuc_BlackPlastic.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J3CASING_UNIT001",geometry:a.J3CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J3CASING_UNIT001_1",geometry:a.J3CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:a.CRX10iA_L02.geometry,material:s["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:a.J2BASE_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:a.J2BASE_UNIT001_1.geometry,material:s["Fanuc_Green.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:a.J2BASE_UNIT001_2.geometry,material:s["Fanuc_GreenLED.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:a.CRX10iA_L00.geometry,material:s["Fanuc_BlackMetal.001"]})]})})})}ju.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function ju({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=H.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape002",geometry:n.shape002.geometry,material:a.fanuc_metal_black_AO}),o.jsx("mesh",{name:"shape002_1",geometry:n.shape002_1.geometry,material:a.fanuc_stainless_steel_AO})]}),o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J02",position:[.33,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J04",position:[0,-.335,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_LRMATE-200ID_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black_AO,position:[-.365,.385,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.fanuc_yellow_AO,position:[-.365,0,-.385],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.365,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape010",geometry:n.shape010.geometry,material:a.fanuc_yellow_AO}),o.jsx("mesh",{name:"shape010_1",geometry:n.shape010_1.geometry,material:a.fanuc_aluminium_black_AO})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.fanuc_yellow_AO,position:[-.33,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow_AO,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.fanuc_yellow_AO})]})]})})}Su.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Su({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=H.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:a.fanuc_aluminium_black})]}),o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J02",position:[.44,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J04",position:[0,-.42,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx(x.animated.group,{ref:t,name:"FANUC_LRMATE200ID7L_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black,position:[-.475,.47,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-.475,0,-.47],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:n.visuals_5.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_5_1",geometry:n.visuals_5_1.geometry,material:a.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_5_2",geometry:n.visuals_5_2.geometry,material:a.fanuc_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-.475,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:a.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_3",position:[-.44,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:a.fanuc_stainless_steel})]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:a.fanuc_stainless_steel})]})]})]})})}Ru.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Ru({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=H.useGLTF(e);return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.material_Material_Metall}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:a.material_Material_Metall})]}),o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J00",children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J01",position:[.16,.52,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J02",position:[.98,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J03",position:[.15,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J04",position:[0,-.86,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(x.animated.group,{ref:t,name:"KUKA_KR16R2010_2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.material_Material_Farbe__2_,position:[.67,2,0],rotation:[-Math.PI,0,Math.PI/2]})}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.material_Material_Farbe,position:[-.67,0,2],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_4",geometry:n.link_4.geometry,material:a.material_Material_Farbe,position:[-.67,1.14,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_3",position:[-.52,0,1.14],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:a.material_Material_Metall}),o.jsx("mesh",{name:"visuals_3_2",geometry:n.visuals_3_2.geometry,material:a.material_Material_Farbe__2_})]})]}),o.jsxs("group",{name:"link_2",position:[-.16,0,-.52],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:a.material_Material_Metall})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:a.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_1_2",geometry:n.visuals_1_2.geometry,material:a.material_Material_Metall})]})]})]})})})}wu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function wu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"kuka_kr210_2700",children:[o.jsxs(x.animated.group,{name:"joint_01",children:[o.jsxs(x.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals006",geometry:a.visuals006.geometry,material:s.material_Material_Metall_black})})]}),o.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals005",children:[o.jsx("mesh",{name:"visuals005_1",geometry:a.visuals005_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals005_2",geometry:a.visuals005_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals004",children:[o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals003_4",geometry:a.visuals003_4.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals003_5",geometry:a.visuals003_5.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals003_6",geometry:a.visuals003_6.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals003_7",geometry:a.visuals003_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals002_3",geometry:a.visuals002_3.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_1",position:[0,.236,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals001_3",geometry:a.visuals001_3.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals001_4",geometry:a.visuals001_4.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals001_5",geometry:a.visuals001_5.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals001_6",geometry:a.visuals001_6.geometry,material:s.material_Material_rubber_black}),o.jsx("mesh",{name:"visuals001_7",geometry:a.visuals001_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_0",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.material_Material_metal_black})]})})]})})})})}Au.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Au({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"joint_01",children:[o.jsxs(x.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals006",children:[o.jsx("mesh",{name:"visuals006_1",geometry:a.visuals006_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals006_2",geometry:a.visuals006_2.geometry,material:s.material_Material_Metall})]})})]}),o.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals005",geometry:a.visuals005.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals004",geometry:a.visuals004.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals003_4",geometry:a.visuals003_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.material_Material_Farbe}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals002_3",geometry:a.visuals002_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals002_4",geometry:a.visuals002_4.geometry,material:s.material_Material_Farbe__2_})]})})]}),o.jsx("group",{name:"link_1",position:[0,.226,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals001_3",geometry:a.visuals001_3.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals001_4",geometry:a.visuals001_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_0-base",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.material_Material_Farbe__1_})]})})]})})})}Pu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0],rotationSign:[-1,1,1,1,1,1]};function Pu({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=H.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.kuka_metal}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.kuka_black})]}),o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J00",children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J01",position:[.025,.4,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J02",position:[.335,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J03",position:[.025,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J04",position:[0,-.365,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"KUKA_KR6R700-2_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.kuka_black,position:[.425,.725,0],rotation:[-Math.PI,0,Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.kuka_white,position:[-.425,0,.725],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.425,.36,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:a.kuka_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:a.kuka_orange})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.kuka_white,position:[-.4,0,.36],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_2",position:[-.025,0,-.4],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:a.kuka_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:a.kuka_orange})]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.kuka_white})]})]})})}function D1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J00",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J01",position:[0,.127,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_1",position:[0,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_4",geometry:a.visuals_1_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_5",geometry:a.visuals_1_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J02",position:[-.612,0,0],children:[o.jsxs("group",{name:"link_2",position:[.612,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:a.visuals_2_4.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_5",geometry:a.visuals_2_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J03",position:[-.572,0,0],children:[o.jsxs("group",{name:"link_3",position:[1.184,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_4",geometry:a.visuals_3_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J04",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[1.184,.127,.164],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_4",geometry:a.visuals_4_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J05",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[1.184,-.164,.012],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_3",geometry:a.visuals_5_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_4",geometry:a.visuals_5_4.geometry,material:s.universalrobots_lightblue})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR10CB_FLG",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:o.jsxs("group",{name:"link_6",position:[1.184,-.012,-.28],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.universalrobots_aluminum})]})})]})]})]})]})]})]})})})}function B1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{ref:t,name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000493",geometry:a["C-1000493"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000493_1",geometry:a["C-1000493_1"].geometry,material:s.Metal})]}),o.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),o.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"C-1000492",geometry:a["C-1000492"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000492_1",geometry:a["C-1000492_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000492_2",geometry:a["C-1000492_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000492_3",geometry:a["C-1000492_3"].geometry,material:s.Screw})]})]}),o.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000491",geometry:a["C-1000491"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000491_1",geometry:a["C-1000491_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000491_2",geometry:a["C-1000491_2"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000491_3",geometry:a["C-1000491_3"].geometry,material:s.Screw})]})]}),o.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000490",geometry:a["C-1000490"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000490_1",geometry:a["C-1000490_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000490_2",geometry:a["C-1000490_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000490_3",geometry:a["C-1000490_3"].geometry,material:s.Blue})]})]}),o.jsxs(x.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000489",geometry:a["C-1000489"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000489_1",geometry:a["C-1000489_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000489_2",geometry:a["C-1000489_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000489_3",geometry:a["C-1000489_3"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000489_4",geometry:a["C-1000489_4"].geometry,material:s.Metal})]})]}),o.jsxs("group",{name:"UR10e_L02",children:[o.jsx("mesh",{name:"C-1000488",geometry:a["C-1000488"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000488_1",geometry:a["C-1000488_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000488_2",geometry:a["C-1000488_2"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000488_3",geometry:a["C-1000488_3"].geometry,material:s.DarkGray})]})]}),o.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000487",geometry:a["C-1000487"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000487_1",geometry:a["C-1000487_1"].geometry,material:s.Metal})]})]})})})})}function U1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"UR3_05",geometry:a.UR3_05.geometry,material:s.Standard}),o.jsxs(x.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR3_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"UR3_L06",geometry:a.UR3_L06.geometry,material:s.Standard})]})]}),o.jsx("mesh",{name:"UR3_L04",geometry:a.UR3_L04.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L03",geometry:a.UR3_L03.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L02",geometry:a.UR3_L02.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L01",geometry:a.UR3_L01.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L00",geometry:a.UR3_L00.geometry,material:s.Standard,rotation:[-Math.PI/2,0,0]})]})})})})}function J1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_4",geometry:a.visuals_1_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J01",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J02",position:[-.244,0,0],children:[o.jsxs("group",{name:"link_3",position:[.244,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J03",position:[-.213,0,0],children:[o.jsxs("group",{name:"link_4",position:[.457,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J04",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.457,.152,.131],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J05",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_6",position:[.457,-.131,.067],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_6_2",geometry:a.visuals_6_2.geometry,material:s.universalrobots_aluminum})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR3E_FLG",position:[0,.092,0]})]})]})]})]})]})]})]})})}function Si({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J01",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:a.visuals_2_4.geometry,material:s.universalrobots_darkgrey})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J02",position:[-.425,0,0],children:[o.jsxs("group",{name:"link_3",position:[.425,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_4",geometry:a.visuals_3_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J03",position:[-.392,0,0],children:[o.jsxs("group",{name:"link_4",position:[.817,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.universalrobots_black})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J04",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.817,.089,.109],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_3",geometry:a.visuals_5_3.geometry,material:s.universalrobots_black})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J05",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.universalrobots_stainlesssteel,position:[.817,-.109,-.005],rotation:[-Math.PI/2,0,0]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR5CB_FLG",position:[0,.082,0]})]})]})]})]})]})]}),o.jsx("mesh",{name:"link_0",geometry:a.link_0.geometry,material:s.universalrobots_aluminum})]})})}function V1({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR5e_FLG",position:[0,.1,0]}),o.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000255",geometry:a["C-1000255"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000255_1",geometry:a["C-1000255_1"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000253",geometry:a["C-1000253"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000253_1",geometry:a["C-1000253_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000253_2",geometry:a["C-1000253_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000253_3",geometry:a["C-1000253_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000251",geometry:a["C-1000251"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000251_1",geometry:a["C-1000251_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000251_2",geometry:a["C-1000251_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000251_3",geometry:a["C-1000251_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L03",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000250",geometry:a["C-1000250"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000250_1",geometry:a["C-1000250_1"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000250_2",geometry:a["C-1000250_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000250_3",geometry:a["C-1000250_3"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000250_4",geometry:a["C-1000250_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000249",geometry:a["C-1000249"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000249_1",geometry:a["C-1000249_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000249_2",geometry:a["C-1000249_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000249_3",geometry:a["C-1000249_3"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000249_4",geometry:a["C-1000249_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000248",geometry:a["C-1000248"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000248_1",geometry:a["C-1000248_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000248_2",geometry:a["C-1000248_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000248_3",geometry:a["C-1000248_3"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L00",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000257",geometry:a["C-1000257"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000257_1",geometry:a["C-1000257_1"].geometry,material:s.Metal})]})})]})})})})}Cu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Cu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[o.jsxs(x.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1440_L06_CAD",geometry:a.AR1440_L06_CAD.geometry,material:s.metall})]}),o.jsx("mesh",{name:"AR1440_L05_CAD",geometry:a.AR1440_L05_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L04_CAD",children:[o.jsx("mesh",{name:"AR1440_L04_CAD001",geometry:a.AR1440_L04_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L04_CAD001_1",geometry:a.AR1440_L04_CAD001_1.geometry,material:s.white})]})]}),o.jsxs("group",{name:"AR1440_L03_CAD",children:[o.jsx("mesh",{name:"AR1440_L03_CAD001",geometry:a.AR1440_L03_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L03_CAD001_1",geometry:a.AR1440_L03_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L02_CAD",geometry:a.AR1440_L02_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L01_CAD",children:[o.jsx("mesh",{name:"AR1440_L01_CAD001",geometry:a.AR1440_L01_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L01_CAD001_1",geometry:a.AR1440_L01_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L00_CAD",geometry:a.AR1440_L00_CAD.geometry,material:s.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})})}ku.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function ku({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"AR1730_J00",children:[o.jsxs(x.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1730_L06",geometry:a.AR1730_L06.geometry,material:s.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR1730_L05",geometry:a.AR1730_L05.geometry,material:s.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_R_AXIS_SW0001002",geometry:a._R_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_R_AXIS_SW0001002_1",geometry:a._R_AXIS_SW0001002_1.geometry,material:s.White})]})]}),o.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_U_AXIS_SW0001002",geometry:a._U_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_U_AXIS_SW0001002_1",geometry:a._U_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L02",geometry:a.AR1730_L02.geometry,material:s.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),o.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_S_AXIS_SW0001002",geometry:a._S_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_S_AXIS_SW0001002_1",geometry:a._S_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L00",geometry:a.AR1730_L00.geometry,material:s.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})})}Mu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Mu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape",geometry:a.shape.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape_1",geometry:a.shape_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape_2",geometry:a.shape_2.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape_3",geometry:a.shape_3.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"shape001",geometry:a.shape001.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape001_1",geometry:a.shape001_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.15],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.76,0,-.15],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape003",geometry:a.shape003.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape003_1",geometry:a.shape003_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:a.link_4.geometry,material:s.yaskawa_blue,position:[-.96,.15,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J04",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-.96,0,-1.232],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalsilver,position:[-.96,1.232,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})}Iu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Iu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"AR3120_J00",children:[o.jsxs(x.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR3120_L06",geometry:a.AR3120_L06.geometry,material:s["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR3120_L05",geometry:a.AR3120_L05.geometry,material:s["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"R_AXIS_GP20HL001",geometry:a.R_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"R_AXIS_GP20HL001_1",geometry:a.R_AXIS_GP20HL001_1.geometry,material:s["White.001"]})]})]}),o.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_3001",geometry:a.Mesh_3001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"Mesh_3001_1",geometry:a.Mesh_3001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L02",geometry:a.AR3120_L02.geometry,material:s["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),o.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[o.jsx("mesh",{name:"S_AXIS_GP20HL001",geometry:a.S_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"S_AXIS_GP20HL001_1",geometry:a.S_AXIS_GP20HL001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L00",geometry:a.AR3120_L00.geometry,material:s["Blue.001"],position:[0,-.54,0]})]})})})}gs.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function gs({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals",geometry:a.visuals.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J00",children:[o.jsx("mesh",{name:"link_1",geometry:a.link_1.geometry,material:s.yaskawa_blue}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J01",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.04],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J02",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.445,0,-.04],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003",geometry:a.visuals003.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_Metall__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[-.485,.04,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004",geometry:a.visuals004.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.yaskawa_blue})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J04",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-.485,0,-.48],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalgold,position:[-.485,.48,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP7_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}Tu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Tu({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape439",geometry:a.shape439.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape439_1",geometry:a.shape439_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape439_2",geometry:a.shape439_2.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J00",position:[0,-.54,0],children:[o.jsxs("group",{name:"link_1",position:[0,.54,0],children:[o.jsx("mesh",{name:"shape320",geometry:a.shape320.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape320_1",geometry:a.shape320_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_2",geometry:a.shape320_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape320_3",geometry:a.shape320_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_4",geometry:a.shape320_4.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape320_5",geometry:a.shape320_5.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J01",position:[.145,.54,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.145],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape440",geometry:a.shape440.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape440_1",geometry:a.shape440_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape440_2",geometry:a.shape440_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape440_3",geometry:a.shape440_3.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.87,0,-.145],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape341",geometry:a.shape341.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape341_1",geometry:a.shape341_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape341_2",geometry:a.shape341_2.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_3",geometry:a.shape341_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_4",geometry:a.shape341_4.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape341_5",geometry:a.shape341_5.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:a.link_4.geometry,material:s.yaskawa_blue,position:[-1.08,.145,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-1.08,0,-1.17],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalsilver,position:[-1.08,1.17,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP50_FLG",position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}const G1="(^joint_[0-9]+$)|(_J[0-9]+$)";function Ou(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Ou(t))]}function z1(e,t){return new RegExp(t??G1).test(e)}function Eu(e,t){return Ou(e).filter(r=>z1(r.name,t))}function Lu({rapidlyChangingMotionState:e,jointCollector:t,onRotationChanged:r,robotConfig:n,children:a}){x.Globals.assign({frameLoop:"always"});const s=Y.useRef([]),i=Y.useRef([]),{invalidate:l}=Hu.useThree();function u(_){_&&(i.current=t?t(_):Eu(_),d(),l())}function c(_){s.current=_,y.start(Object.assign({},s.current))}const m=(n==null?void 0:n.rotationSign)||[1,1,1,1,1,1],f=(n==null?void 0:n.rotationOffsets)||[0,0,0,0,0,0];function d(){const _=i.current.map((p,j)=>b[j].get());if(r)r(i.current,_);else for(const[p,j]of i.current.entries())j.rotation.y=m[p]*_[p]+f[p]}dl(()=>{const _=e.state.joint_position.joints.filter(p=>p!==void 0);requestAnimationFrame(()=>c(_))});const[b,y]=x.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{d(),l()},onResolve:()=>{d()}}));return o.jsx("group",{ref:u,children:a})}const Ri="line",wi="mesh";function Va({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new vt.Matrix4;function a(u,c){const m=new vt.Vector3,f=new vt.Quaternion,d=new vt.Vector3;n.decompose(m,f,d);const b=m.clone(),y=new vt.Matrix4().makeRotationY(u.theta+c*(u.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,u.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(u.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(u.alpha));return n.multiply(y),n.decompose(m,f,d),{a:b,b:m}}function s(u,c,m,f){if(!t)return;const d=t[u];if(!d)return;const{a:b,b:y}=a(d,f);c.geometry.setPositions([b.toArray(),y.toArray()].flat()),m.position.set(y.x,y.y,y.z)}function i(u,c){n.identity(),u.forEach((m,f)=>{s(f,m.getObjectByName(Ri),m.getObjectByName(wi),c[f])})}function l(u){return Eu(u,"^group_[0-9]+$")}return o.jsx(o.Fragment,{children:o.jsx(Lu,{rapidlyChangingMotionState:e,jointCollector:l,onRotationChanged:i,children:o.jsxs("group",{...r,name:"Scene",children:[o.jsxs("mesh",{children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((u,c)=>{const{a:m,b:f}=a(u,e.state.joint_position.joints[c]??0);return o.jsxs("group",{name:`group_${c}`,children:[o.jsx(H.Line,{name:Ri,points:[m,f],color:"white",lineWidth:5}),o.jsxs("mesh",{name:wi,position:f,children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+c)]},"group_"+c)})]})})})}const K1=console.warn;function W1(){return Y.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&K1(e)}},[]),o.jsx(o.Fragment,{})}$u.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function $u({modelURL:e,flangeRef:t,...r}){const n=H.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_3",geometry:a.visuals_0_3.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_4",geometry:a.visuals_0_4.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_5",geometry:a.visuals_0_5.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_6",geometry:a.visuals_0_6.geometry,material:s.fanuc_rubber})]}),o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J02",position:[.71,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_CRX10IAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsxs("group",{name:"link_6",position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_6_2",geometry:a.visuals_6_2.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_6_3",geometry:a.visuals_6_3.geometry,material:s.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.fanuc_stainless_steel})]})]}),o.jsxs("group",{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.fanuc_red})]})]}),o.jsxs("group",{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.fanuc_green})]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.fanuc_green})]})]})]})})}function Js(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const Nu=sn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Js,isGhost:a=!1,flangeRef:s,...i})=>{let l=null;const u=Y.useRef(),c=Y.useCallback(d=>{d&&(u.current=d,a&&m())},[a]),m=()=>{!u.current||u.current.userData.isGhost||(u.current.traverse(d=>{if(d instanceof ke.Mesh){d.material instanceof ke.Material&&(d.material.colorWrite=!0);const b=d.clone(),y=d.clone();b.material=new ke.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),b.userData.isGhost=!0,y.material=new ke.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),y.userData.isGhost=!0,d.parent&&(d.parent.add(b),d.parent.add(y))}}),u.current.userData.isGhost=!0)},f=()=>{if(!u.current||!u.current.userData.isGhost)return;const d=[];u.current.traverse(b=>{var y;b instanceof ke.Mesh&&((y=b.userData)!=null&&y.isGhost?d.push(b):b.material instanceof ke.Material&&(b.material.colorWrite=!0))}),d.forEach(b=>{b.parent&&b.parent.remove(b)}),u.current.userData.isGhost=!0};switch(Y.useEffect(()=>{a?m():f()},[a]),t){case"UniversalRobots_UR3CB":l=U1;break;case"UniversalRobots_UR3e":l=J1;break;case"UniversalRobots_UR5":l=Si;break;case"UniversalRobots_UR5CB":l=Si;break;case"UniversalRobots_UR5e":l=V1;break;case"UniversalRobots_UR10CB":l=D1;break;case"UniversalRobots_UR10e":l=B1;break;case"Yaskawa_AR900":l=gs;break;case"Yaskawa_GP7":l=gs;break;case"Yaskawa_AR1440":l=Cu;break;case"Yaskawa_AR1730":l=ku;break;case"Yaskawa_AR2010":l=Mu;break;case"Yaskawa_AR3120":l=Iu;break;case"Yaskawa_GP50":l=Tu;break;case"FANUC_CRX10iA":l=yu;break;case"FANUC_CRX10iAL":l=$u;break;case"FANUC_CRX20iAL":l=bu;break;case"FANUC_CRX25iA":l=xu;break;case"FANUC_CRX25iAL":l=vu;break;case"FANUC_LR_Mate_200iD":l=ju;break;case"FANUC_LR_Mate_200iD7L":l=Su;break;case"FANUC_ARC_Mate_120iD":l=hs;break;case"FANUC_ARC_Mate_120iD35":l=hs;break;case"FANUC_ARC_Mate_100iD":l=_u;break;case"KUKA_KR210_R2700":l=wu;break;case"KUKA_KR270_R2700":l=Au;break;case"KUKA_KR16_R2010_2":l=Ru;break;case"KUKA_KR6_R700_2":l=Pu;break;case"ABB_1200_07_7":l=gu;break;case"ABB_1300_115_10":l=pu;break;default:console.warn(`Unknown robot type: ${t}`),l=null}return o.jsxs(Yu.ErrorBoundary,{fallback:o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:[o.jsx(Y.Suspense,{fallback:o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:o.jsx("group",{ref:c,children:l?o.jsx(Lu,{rapidlyChangingMotionState:e,robotConfig:l.config,children:o.jsx(l,{modelURL:n(t),flangeRef:s,...i})}):o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r})})}),o.jsx(W1,{})]})});function H1({connectedMotionGroup:e,getModel:t=Js,isGhost:r=!1,flangeRef:n,...a}){return e.dhParameters?o.jsx(Nu,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,flangeRef:n,...a}):null}const X1=T.styled(T.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:a})=>!a,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:a})=>a,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),q1=Y.forwardRef((e,t)=>o.jsx(X1,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),Y1={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},Z1=Y.lazy(()=>import("@monaco-editor/react")),Q1=sn(e=>{const t=T.useTheme(),r=Y.useRef(null),[n,a]=Y.useState("dark-plus"),s=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(l){const[{createHighlighter:u},{shikiToMonaco:c}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);l.languages.register({id:"wandelscript"}),l.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await u({langs:[Y1],themes:["dark-plus","light-plus"]})),c(r.current,l),l.editor.defineTheme(s,{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:t.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(l),a(s)}return o.jsx(Y.Suspense,{fallback:o.jsx(ha,{}),children:o.jsx(Z1,{value:e.code,onMount:(l,u)=>{i(u)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function Fu(){var t,r,n,a,s,i;const e=T.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiDivider:{styleOverrides:{root:{border:"1px solid"}}},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiFab:{styleOverrides:{root:{background:(i=(s=e.paletteExt)==null?void 0:s.secondary)==null?void 0:i.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:"rgba(241, 77, 66, 1)",color:"rgba(255, 255, 255, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:"rgba(28, 188, 135, 1)",color:"rgba(255, 255, 255, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:"rgba(2, 136, 209, 1)",color:"rgba(255, 255, 255, 1)"}}}}}}function eb(){const e=Fu();return e.palette.mode="light",e}function tb(e){var r,n,a,s;let t=!0;return((r=e.palette)==null?void 0:r.mode)==="light"?t=!1:((n=e.palette)==null?void 0:n.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(a=window.matchMedia)==null?void 0:a.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches))),t?Fu():eb()}exports.JoggingCartesianAxisControl=es;exports.JoggingJointRotationControl=yl;exports.JoggingPanel=E1;exports.LoadingCover=ha;exports.LoadingErrorMessage=Gl;exports.NoMotionGroupModal=N1;exports.PresetEnvironment=ec;exports.Robot=H1;exports.SafetyZonesRenderer=nc;exports.SelectableFab=q1;exports.SupportedRobot=Nu;exports.VelocitySlider=iu;exports.WandelscriptEditor=Q1;exports.createNovaMuiTheme=tb;exports.defaultAxisConfig=F1;exports.defaultGetModel=Js;exports.useAnimationFrame=jr;exports.useAutorun=dl;exports.useMounted=ia;exports.useReaction=Ms;
|
|
84
84
|
//# sourceMappingURL=index.cjs.map
|