@wandelbots/wandelbots-js-react-components 1.13.5 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var yc=Object.create;var Ja=Object.defineProperty;var _c=Object.getOwnPropertyDescriptor;var bc=Object.getOwnPropertyNames;var vc=Object.getPrototypeOf,Sc=Object.prototype.hasOwnProperty;var xc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bc(t))!Sc.call(e,o)&&o!==r&&Ja(e,o,{get:()=>t[o],enumerable:!(n=_c(t,o))||n.enumerable});return e};var Co=(e,t,r)=>(r=e!=null?yc(vc(e)):{},xc(t||!e||!e.__esModule?Ja(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),k=require("@mui/material"),Ft=require("react-i18next"),wc=require("i18next-browser-languagedetector"),v=require("@react-spring/three"),ie=require("@react-three/drei"),jc=require("@react-three/fiber"),br=require("mobx"),xt=require("three"),Rc=require("react-error-boundary"),Cc=require("three-stdlib"),He=require("mobx-react-lite"),h=require("prop-types"),Ac=require("@emotion/styled"),hr=require("@emotion/react"),$t=require("@wandelbots/wandelbots-js"),Pc=require("lodash-es");function ji(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=ji(q),Ce=ji(xt);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 o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var zo={exports:{}},Lr={};/**
1
+ "use strict";var yc=Object.create;var Go=Object.defineProperty;var _c=Object.getOwnPropertyDescriptor;var vc=Object.getOwnPropertyNames;var bc=Object.getPrototypeOf,Sc=Object.prototype.hasOwnProperty;var xc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vc(t))!Sc.call(e,a)&&a!==r&&Go(e,a,{get:()=>t[a],enumerable:!(n=_c(t,a))||n.enumerable});return e};var Ra=(e,t,r)=>(r=e!=null?yc(bc(e)):{},xc(t||!e||!e.__esModule?Go(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("react"),E=require("@mui/material"),Dt=require("react-i18next"),wc=require("i18next-browser-languagedetector"),b=require("@react-spring/three"),oe=require("@react-three/drei"),jc=require("@react-three/fiber"),wt=require("mobx"),xt=require("three"),Rc=require("react-error-boundary"),Cc=require("three-stdlib"),De=require("mobx-react-lite"),h=require("prop-types"),Ac=require("@emotion/styled"),pr=require("@emotion/react"),Nt=require("@wandelbots/wandelbots-js"),Pc=require("lodash-es");function Ci(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=Ci(Z),Ce=Ci(xt);function Ct(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:{}},Lr={};/**
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 Va;function Oc(){if(Va)return Lr;Va=1;var e=q,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,m={},f=null,b=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(b=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(m[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:t,type:l,key:f,ref:b,props:m,_owner:o.current}}return Lr.Fragment=r,Lr.jsx=i,Lr.jsxs=i,Lr}var $r={};/**
9
+ */var zo;function Oc(){if(zo)return Lr;zo=1;var e=Z,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,o={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,m={},f=null,v=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(v=c.ref);for(d in c)n.call(c,d)&&!o.hasOwnProperty(d)&&(m[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:t,type:l,key:f,ref:v,props:m,_owner:a.current}}return Lr.Fragment=r,Lr.jsx=i,Lr.jsxs=i,Lr}var $r={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,35 +14,35 @@
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 Ga;function Tc(){return Ga||(Ga=1,process.env.NODE_ENV!=="production"&&function(){var e=q,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function g(p){if(p===null||typeof p!="object")return null;var w=y&&p[y]||p[_];return typeof w=="function"?w:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(p){{for(var w=arguments.length,M=new Array(w>1?w-1:0),$=1;$<w;$++)M[$-1]=arguments[$];C("error",p,M)}}function C(p,w,M){{var $=x.ReactDebugCurrentFrame,U=$.getStackAddendum();U!==""&&(w+="%s",M=M.concat([U]));var re=M.map(function(V){return String(V)});re.unshift("Warning: "+w),Function.prototype.apply.call(console[p],console,re)}}var L=!1,R=!1,P=!1,O=!1,z=!1,le;le=Symbol.for("react.module.reference");function ue(p){return!!(typeof p=="string"||typeof p=="function"||p===n||p===a||z||p===o||p===u||p===d||O||p===b||L||R||P||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===m||p.$$typeof===i||p.$$typeof===l||p.$$typeof===c||p.$$typeof===le||p.getModuleId!==void 0))}function D(p,w,M){var $=p.displayName;if($)return $;var U=w.displayName||w.name||"";return U!==""?M+"("+U+")":M}function X(p){return p.displayName||"Context"}function G(p){if(p==null)return null;if(typeof p.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case l:var w=p;return X(w)+".Consumer";case i:var M=p;return X(M._context)+".Provider";case c:return D(p,p.render,"ForwardRef");case m:var $=p.displayName||null;return $!==null?$:G(p.type)||"Memo";case f:{var U=p,re=U._payload,V=U._init;try{return G(V(re))}catch{return null}}}return null}var Y=Object.assign,K=0,we,ce,Q,Ae,Ee,ot,bt;function Ke(){}Ke.__reactDisabledLog=!0;function je(){{if(K===0){we=console.log,ce=console.info,Q=console.warn,Ae=console.error,Ee=console.group,ot=console.groupCollapsed,bt=console.groupEnd;var p={configurable:!0,enumerable:!0,value:Ke,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}K++}}function Ot(){{if(K--,K===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},p,{value:we}),info:Y({},p,{value:ce}),warn:Y({},p,{value:Q}),error:Y({},p,{value:Ae}),group:Y({},p,{value:Ee}),groupCollapsed:Y({},p,{value:ot}),groupEnd:Y({},p,{value:bt})})}K<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ct=x.ReactCurrentDispatcher,Xe;function Be(p,w,M){{if(Xe===void 0)try{throw Error()}catch(U){var $=U.stack.trim().match(/\n( *(at )?)/);Xe=$&&$[1]||""}return`
18
- `+Xe+p}}var ut=!1,dt;{var Ut=typeof WeakMap=="function"?WeakMap:Map;dt=new Ut}function vt(p,w){if(!p||ut)return"";{var M=dt.get(p);if(M!==void 0)return M}var $;ut=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=ct.current,ct.current=null,je();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(p,[],V)}else{try{V.call()}catch(Ne){$=Ne}p.call(V.prototype)}}else{try{throw Error()}catch(Ne){$=Ne}p()}}catch(Ne){if(Ne&&$&&typeof Ne.stack=="string"){for(var B=Ne.stack.split(`
19
- `),Me=$.stack.split(`
20
- `),ye=B.length-1,ve=Me.length-1;ye>=1&&ve>=0&&B[ye]!==Me[ve];)ve--;for(;ye>=1&&ve>=0;ye--,ve--)if(B[ye]!==Me[ve]){if(ye!==1||ve!==1)do if(ye--,ve--,ve<0||B[ye]!==Me[ve]){var Ye=`
21
- `+B[ye].replace(" at new "," at ");return p.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",p.displayName)),typeof p=="function"&&dt.set(p,Ye),Ye}while(ye>=1&&ve>=0);break}}}finally{ut=!1,ct.current=re,Ot(),Error.prepareStackTrace=U}var ar=p?p.displayName||p.name:"",Gt=ar?Be(ar):"";return typeof p=="function"&&dt.set(p,Gt),Gt}function Je(p,w,M){return vt(p,!1)}function I(p){var w=p.prototype;return!!(w&&w.isReactComponent)}function ee(p,w,M){if(p==null)return"";if(typeof p=="function")return vt(p,I(p));if(typeof p=="string")return Be(p);switch(p){case u:return Be("Suspense");case d:return Be("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case c:return Je(p.render);case m:return ee(p.type,w,M);case f:{var $=p,U=$._payload,re=$._init;try{return ee(re(U),w,M)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,ke={},Le=x.ReactDebugCurrentFrame;function Tt(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);Le.setExtraStackFrame(M)}else Le.setExtraStackFrame(null)}function Re(p,w,M,$,U){{var re=Function.call.bind(me);for(var V in p)if(re(p,V)){var B=void 0;try{if(typeof p[V]!="function"){var Me=Error(($||"React class")+": "+M+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Me.name="Invariant Violation",Me}B=p[V](w,V,$,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ye){B=ye}B&&!(B instanceof Error)&&(Tt(U),j("%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",M,V,typeof B),Tt(null)),B instanceof Error&&!(B.message in ke)&&(ke[B.message]=!0,Tt(U),j("Failed %s type: %s",M,B.message),Tt(null))}}}var It=Array.isArray;function Bt(p){return It(p)}function Ar(p){{var w=typeof Symbol=="function"&&Symbol.toStringTag,M=w&&p[Symbol.toStringTag]||p.constructor.name||"Object";return M}}function Pr(p){try{return Or(p),!1}catch{return!0}}function Or(p){return""+p}function tr(p){if(Pr(p))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ar(p)),Or(p)}var at=x.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0},E,F,W;W={};function Z(p){if(me.call(p,"ref")){var w=Object.getOwnPropertyDescriptor(p,"ref").get;if(w&&w.isReactWarning)return!1}return p.ref!==void 0}function H(p){if(me.call(p,"key")){var w=Object.getOwnPropertyDescriptor(p,"key").get;if(w&&w.isReactWarning)return!1}return p.key!==void 0}function Ve(p,w){if(typeof p.ref=="string"&&at.current&&w&&at.current.stateNode!==w){var M=G(at.current.type);W[M]||(j('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),p.ref),W[M]=!0)}}function qe(p,w){{var M=function(){E||(E=!0,j("%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))};M.isReactWarning=!0,Object.defineProperty(p,"key",{get:M,configurable:!0})}}function te(p,w){{var M=function(){F||(F=!0,j("%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))};M.isReactWarning=!0,Object.defineProperty(p,"ref",{get:M,configurable:!0})}}var $e=function(p,w,M,$,U,re,V){var B={$$typeof:t,type:p,key:w,ref:M,props:V,_owner:re};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function Mt(p,w,M,$,U){{var re,V={},B=null,Me=null;M!==void 0&&(tr(M),B=""+M),H(w)&&(tr(w.key),B=""+w.key),Z(w)&&(Me=w.ref,Ve(w,U));for(re in w)me.call(w,re)&&!T.hasOwnProperty(re)&&(V[re]=w[re]);if(p&&p.defaultProps){var ye=p.defaultProps;for(re in ye)V[re]===void 0&&(V[re]=ye[re])}if(B||Me){var ve=typeof p=="function"?p.displayName||p.name||"Unknown":p;B&&qe(V,ve),Me&&te(V,ve)}return $e(p,B,Me,U,$,at.current,V)}}var rr=x.ReactCurrentOwner,Tr=x.ReactDebugCurrentFrame;function St(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);Tr.setExtraStackFrame(M)}else Tr.setExtraStackFrame(null)}var Jt;Jt=!1;function Vt(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function Ir(){{if(rr.current){var p=G(rr.current.type);if(p)return`
17
+ */var Wo;function Tc(){return Wo||(Wo=1,process.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function g(p){if(p===null||typeof p!="object")return null;var w=y&&p[y]||p[_];return typeof w=="function"?w:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(p){{for(var w=arguments.length,I=new Array(w>1?w-1:0),$=1;$<w;$++)I[$-1]=arguments[$];C("error",p,I)}}function C(p,w,I){{var $=x.ReactDebugCurrentFrame,U=$.getStackAddendum();U!==""&&(w+="%s",I=I.concat([U]));var re=I.map(function(V){return String(V)});re.unshift("Warning: "+w),Function.prototype.apply.call(console[p],console,re)}}var L=!1,R=!1,P=!1,O=!1,z=!1,le;le=Symbol.for("react.module.reference");function ue(p){return!!(typeof p=="string"||typeof p=="function"||p===n||p===o||z||p===a||p===u||p===d||O||p===v||L||R||P||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===m||p.$$typeof===i||p.$$typeof===l||p.$$typeof===c||p.$$typeof===le||p.getModuleId!==void 0))}function D(p,w,I){var $=p.displayName;if($)return $;var U=w.displayName||w.name||"";return U!==""?I+"("+U+")":I}function X(p){return p.displayName||"Context"}function G(p){if(p==null)return null;if(typeof p.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case l:var w=p;return X(w)+".Consumer";case i:var I=p;return X(I._context)+".Provider";case c:return D(p,p.render,"ForwardRef");case m:var $=p.displayName||null;return $!==null?$:G(p.type)||"Memo";case f:{var U=p,re=U._payload,V=U._init;try{return G(V(re))}catch{return null}}}return null}var q=Object.assign,H=0,we,ce,Q,Ae,Ee,at,vt;function He(){}He.__reactDisabledLog=!0;function je(){{if(H===0){we=console.log,ce=console.info,Q=console.warn,Ae=console.error,Ee=console.group,at=console.groupCollapsed,vt=console.groupEnd;var p={configurable:!0,enumerable:!0,value:He,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}H++}}function Tt(){{if(H--,H===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},p,{value:we}),info:q({},p,{value:ce}),warn:q({},p,{value:Q}),error:q({},p,{value:Ae}),group:q({},p,{value:Ee}),groupCollapsed:q({},p,{value:at}),groupEnd:q({},p,{value:vt})})}H<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ct=x.ReactCurrentDispatcher,Xe;function Je(p,w,I){{if(Xe===void 0)try{throw Error()}catch(U){var $=U.stack.trim().match(/\n( *(at )?)/);Xe=$&&$[1]||""}return`
18
+ `+Xe+p}}var ut=!1,dt;{var Bt=typeof WeakMap=="function"?WeakMap:Map;dt=new Bt}function bt(p,w){if(!p||ut)return"";{var I=dt.get(p);if(I!==void 0)return I}var $;ut=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=ct.current,ct.current=null,je();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(p,[],V)}else{try{V.call()}catch(Ne){$=Ne}p.call(V.prototype)}}else{try{throw Error()}catch(Ne){$=Ne}p()}}catch(Ne){if(Ne&&$&&typeof Ne.stack=="string"){for(var B=Ne.stack.split(`
19
+ `),Ie=$.stack.split(`
20
+ `),ye=B.length-1,be=Ie.length-1;ye>=1&&be>=0&&B[ye]!==Ie[be];)be--;for(;ye>=1&&be>=0;ye--,be--)if(B[ye]!==Ie[be]){if(ye!==1||be!==1)do if(ye--,be--,be<0||B[ye]!==Ie[be]){var Ye=`
21
+ `+B[ye].replace(" at new "," at ");return p.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",p.displayName)),typeof p=="function"&&dt.set(p,Ye),Ye}while(ye>=1&&be>=0);break}}}finally{ut=!1,ct.current=re,Tt(),Error.prepareStackTrace=U}var sr=p?p.displayName||p.name:"",zt=sr?Je(sr):"";return typeof p=="function"&&dt.set(p,zt),zt}function Ve(p,w,I){return bt(p,!1)}function M(p){var w=p.prototype;return!!(w&&w.isReactComponent)}function ee(p,w,I){if(p==null)return"";if(typeof p=="function")return bt(p,M(p));if(typeof p=="string")return Je(p);switch(p){case u:return Je("Suspense");case d:return Je("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case c:return Ve(p.render);case m:return ee(p.type,w,I);case f:{var $=p,U=$._payload,re=$._init;try{return ee(re(U),w,I)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,ke={},Le=x.ReactDebugCurrentFrame;function Mt(p){if(p){var w=p._owner,I=ee(p.type,p._source,w?w.type:null);Le.setExtraStackFrame(I)}else Le.setExtraStackFrame(null)}function Re(p,w,I,$,U){{var re=Function.call.bind(he);for(var V in p)if(re(p,V)){var B=void 0;try{if(typeof p[V]!="function"){var Ie=Error(($||"React class")+": "+I+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}B=p[V](w,V,$,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ye){B=ye}B&&!(B instanceof Error)&&(Mt(U),j("%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",I,V,typeof B),Mt(null)),B instanceof Error&&!(B.message in ke)&&(ke[B.message]=!0,Mt(U),j("Failed %s type: %s",I,B.message),Mt(null))}}}var It=Array.isArray;function Jt(p){return It(p)}function Ar(p){{var w=typeof Symbol=="function"&&Symbol.toStringTag,I=w&&p[Symbol.toStringTag]||p.constructor.name||"Object";return I}}function Pr(p){try{return Or(p),!1}catch{return!0}}function Or(p){return""+p}function rr(p){if(Pr(p))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ar(p)),Or(p)}var ot=x.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0},k,F,W;W={};function Y(p){if(he.call(p,"ref")){var w=Object.getOwnPropertyDescriptor(p,"ref").get;if(w&&w.isReactWarning)return!1}return p.ref!==void 0}function K(p){if(he.call(p,"key")){var w=Object.getOwnPropertyDescriptor(p,"key").get;if(w&&w.isReactWarning)return!1}return p.key!==void 0}function Ge(p,w){if(typeof p.ref=="string"&&ot.current&&w&&ot.current.stateNode!==w){var I=G(ot.current.type);W[I]||(j('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(ot.current.type),p.ref),W[I]=!0)}}function qe(p,w){{var I=function(){k||(k=!0,j("%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))};I.isReactWarning=!0,Object.defineProperty(p,"key",{get:I,configurable:!0})}}function te(p,w){{var I=function(){F||(F=!0,j("%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))};I.isReactWarning=!0,Object.defineProperty(p,"ref",{get:I,configurable:!0})}}var $e=function(p,w,I,$,U,re,V){var B={$$typeof:t,type:p,key:w,ref:I,props:V,_owner:re};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function Et(p,w,I,$,U){{var re,V={},B=null,Ie=null;I!==void 0&&(rr(I),B=""+I),K(w)&&(rr(w.key),B=""+w.key),Y(w)&&(Ie=w.ref,Ge(w,U));for(re in w)he.call(w,re)&&!T.hasOwnProperty(re)&&(V[re]=w[re]);if(p&&p.defaultProps){var ye=p.defaultProps;for(re in ye)V[re]===void 0&&(V[re]=ye[re])}if(B||Ie){var be=typeof p=="function"?p.displayName||p.name||"Unknown":p;B&&qe(V,be),Ie&&te(V,be)}return $e(p,B,Ie,U,$,ot.current,V)}}var nr=x.ReactCurrentOwner,Tr=x.ReactDebugCurrentFrame;function St(p){if(p){var w=p._owner,I=ee(p.type,p._source,w?w.type:null);Tr.setExtraStackFrame(I)}else Tr.setExtraStackFrame(null)}var Vt;Vt=!1;function Gt(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function Mr(){{if(nr.current){var p=G(nr.current.type);if(p)return`
22
22
 
23
- Check the render method of \``+p+"`."}return""}}function Mr(p){return""}var dn={};function Er(p){{var w=Ir();if(!w){var M=typeof p=="string"?p:p.displayName||p.name;M&&(w=`
23
+ Check the render method of \``+p+"`."}return""}}function Ir(p){return""}var dn={};function Er(p){{var w=Mr();if(!w){var I=typeof p=="string"?p:p.displayName||p.name;I&&(w=`
24
24
 
25
- Check the top-level render call using <`+M+">.")}return w}}function nr(p,w){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var M=Er(w);if(dn[M])return;dn[M]=!0;var $="";p&&p._owner&&p._owner!==rr.current&&($=" It was passed a child from "+G(p._owner.type)+"."),St(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,$),St(null)}}function or(p,w){{if(typeof p!="object")return;if(Bt(p))for(var M=0;M<p.length;M++){var $=p[M];Vt($)&&nr($,w)}else if(Vt(p))p._store&&(p._store.validated=!0);else if(p){var U=g(p);if(typeof U=="function"&&U!==p.entries)for(var re=U.call(p),V;!(V=re.next()).done;)Vt(V.value)&&nr(V.value,w)}}}function vo(p){{var w=p.type;if(w==null||typeof w=="string")return;var M;if(typeof w=="function")M=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===c||w.$$typeof===m))M=w.propTypes;else return;if(M){var $=G(w);Re(M,p.props,"prop",$,p)}else if(w.PropTypes!==void 0&&!Jt){Jt=!0;var U=G(w);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function So(p){{for(var w=Object.keys(p.props),M=0;M<w.length;M++){var $=w[M];if($!=="children"&&$!=="key"){St(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),St(null);break}}p.ref!==null&&(St(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var fn={};function mn(p,w,M,$,U,re){{var V=ue(p);if(!V){var B="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(B+=" 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 Me=Mr();Me?B+=Me:B+=Ir();var ye;p===null?ye="null":Bt(p)?ye="array":p!==void 0&&p.$$typeof===t?(ye="<"+(G(p.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ye=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ye,B)}var ve=Mt(p,w,M,U,re);if(ve==null)return ve;if(V){var Ye=w.children;if(Ye!==void 0)if($)if(Bt(Ye)){for(var ar=0;ar<Ye.length;ar++)or(Ye[ar],p);Object.freeze&&Object.freeze(Ye)}else j("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 or(Ye,p)}if(me.call(w,"key")){var Gt=G(p),Ne=Object.keys(w).filter(function(gc){return gc!=="key"}),Ro=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!fn[Gt+Ro]){var pc=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+I+">.")}return w}}function ar(p,w){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var I=Er(w);if(dn[I])return;dn[I]=!0;var $="";p&&p._owner&&p._owner!==nr.current&&($=" It was passed a child from "+G(p._owner.type)+"."),St(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,$),St(null)}}function or(p,w){{if(typeof p!="object")return;if(Jt(p))for(var I=0;I<p.length;I++){var $=p[I];Gt($)&&ar($,w)}else if(Gt(p))p._store&&(p._store.validated=!0);else if(p){var U=g(p);if(typeof U=="function"&&U!==p.entries)for(var re=U.call(p),V;!(V=re.next()).done;)Gt(V.value)&&ar(V.value,w)}}}function va(p){{var w=p.type;if(w==null||typeof w=="string")return;var I;if(typeof w=="function")I=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===c||w.$$typeof===m))I=w.propTypes;else return;if(I){var $=G(w);Re(I,p.props,"prop",$,p)}else if(w.PropTypes!==void 0&&!Vt){Vt=!0;var U=G(w);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ba(p){{for(var w=Object.keys(p.props),I=0;I<w.length;I++){var $=w[I];if($!=="children"&&$!=="key"){St(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),St(null);break}}p.ref!==null&&(St(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var fn={};function mn(p,w,I,$,U,re){{var V=ue(p);if(!V){var B="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(B+=" 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=Ir();Ie?B+=Ie:B+=Mr();var ye;p===null?ye="null":Jt(p)?ye="array":p!==void 0&&p.$$typeof===t?(ye="<"+(G(p.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ye=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ye,B)}var be=Et(p,w,I,U,re);if(be==null)return be;if(V){var Ye=w.children;if(Ye!==void 0)if($)if(Jt(Ye)){for(var sr=0;sr<Ye.length;sr++)or(Ye[sr],p);Object.freeze&&Object.freeze(Ye)}else j("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 or(Ye,p)}if(he.call(w,"key")){var zt=G(p),Ne=Object.keys(w).filter(function(gc){return gc!=="key"}),ja=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!fn[zt+ja]){var pc=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";j(`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} />`,Ro,Gt,pc,Gt),fn[Gt+Ro]=!0}}return p===n?So(ve):vo(ve),ve}}function xo(p,w,M){return mn(p,w,M,!0)}function wo(p,w,M){return mn(p,w,M,!1)}var kr=wo,jo=xo;$r.Fragment=n,$r.jsx=kr,$r.jsxs=jo}()),$r}process.env.NODE_ENV==="production"?zo.exports=Oc():zo.exports=Tc();var s=zo.exports;const Ic={$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"},Mc={"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"},Ec={"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"},kc={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 kn{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||kc,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new kn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new kn(this.logger,t)}}var ht=new kn;class Kn{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l.apply(l,[t,...n])})}}const Nr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},za=e=>e==null?"":""+e,Lc=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},$c=/###/g,Wa=e=>e&&e.indexOf("###")>-1?e.replace($c,"."):e,Ha=e=>!e||typeof e=="string",Jr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Ha(e))return{};const a=Wa(n[o]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Ha(e)?{}:{obj:e,k:Wa(n[o])}},Ka=(e,t,r)=>{const{obj:n,k:o}=Jr(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let a=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r},Nc=(e,t,r,n)=>{const{obj:o,k:a}=Jr(e,t,Object);o[a]=o[a]||[],o[a].push(r)},Ln=(e,t)=>{const{obj:r,k:n}=Jr(e,t);if(r)return r[n]},Fc=(e,t,r)=>{const n=Ln(e,r);return n!==void 0?n:Ln(t,r)},Ri=(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]):Ri(e[n],t[n],r):e[n]=t[n]);return e},sr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Dc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Uc=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Dc[t]):e;class Bc{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 Jc=[" ",",","?","!",";"],Vc=new Bc(20),Gc=(e,t,r)=>{t=t||"",r=r||"";const n=Jc.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=Vc.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!o.test(e);if(!a){const i=e.indexOf(r);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a},Wo=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let a=0;a<n.length;){if(!o||typeof o!="object")return;let i,l="";for(let c=a;c<n.length;++c)if(c!==a&&(l+=r),l+=n[c],i=o[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<n.length-1)continue;a+=c-a+1;break}o=i}return o},$n=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Xa extends Kn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.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"&&a?l.push(...n.split(a)):l.push(n)));const c=Ln(this.data,l);return!c&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),c||!i||typeof n!="string"?c:Wo(this.data&&this.data[t]&&this.data[t][r],n,a)}addResource(t,r,n,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),o=r,r=l[1]),this.addNamespaces(r),Ka(this.data,l,o),a.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in n)(typeof n[a]=="string"||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),o=n,n=r,r=l[1]),this.addNamespaces(r);let c=Ln(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Ri(c,n,a):c={...c,...n},Ka(this.data,l,c),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(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var Ci={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,r,n,o))}),t}};const qa={};class Nn extends Kn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Lc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ht.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Gc(t,n,o);if(i&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:a};const u=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(o)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const L=r.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${L}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${L}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:i}const m=this.resolve(t,r);let f=m&&m.res;const b=m&&m.usedKey||i,y=m&&m.exactUsedKey||i,_=Object.prototype.toString.apply(f),g=["[object Number]","[object Function]","[object RegExp]"],x=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject;if(j&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&g.indexOf(_)<0&&!(typeof x=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,f,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(m.res=L,m.usedParams=this.getUsedParamsDetails(r),m):L}if(a){const L=Array.isArray(f),R=L?[]:{},P=L?y:b;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const z=`${P}${a}${O}`;R[O]=this.translate(z,{...r,joinArrays:!1,ns:l}),R[O]===z&&(R[O]=f[O])}f=R}}else if(j&&typeof x=="string"&&Array.isArray(f))f=f.join(x),f&&(f=this.extendTranslation(f,t,r,n));else{let L=!1,R=!1;const P=r.count!==void 0&&typeof r.count!="string",O=Nn.hasDefaultValue(r),z=P?this.pluralResolver.getSuffix(u,r.count,r):"",le=r.ordinal&&P?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",ue=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ue&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(f)&&O&&(L=!0,f=D),this.isValidLookup(f)||(R=!0,f=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:f,Y=O&&D!==f&&this.options.updateMissing;if(R||L||Y){if(this.logger.log(Y?"updateKey":"missingKey",u,c,i,Y?D:f),a){const Q=this.resolve(i,{...r,keySeparator:!1});Q&&Q.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 K=[];const we=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&we&&we[0])for(let Q=0;Q<we.length;Q++)K.push(we[Q]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(r.lng||this.language):K.push(r.lng||this.language);const ce=(Q,Ae,Ee)=>{const ot=O&&Ee!==f?Ee:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,c,Ae,ot,Y,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,c,Ae,ot,Y,r),this.emit("missingKey",Q,c,Ae,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(Q=>{const Ae=this.pluralResolver.getSuffixes(Q,r);ue&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ae.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ae.push(`${this.options.pluralSeparator}zero`),Ae.forEach(Ee=>{ce([Q],i+Ee,r[`defaultValue${Ee}`]||D)})}):ce(K,i,D))}f=this.extendTranslation(f,t,r,m,n),R&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${i}`),(R||L)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,L?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(m.res=f,m.usedParams=this.getUsedParamsDetails(r),m):f}extendTranslation(t,r,n,o,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let m=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,n.lng||this.language||o.usedLng,n),u){const f=t.match(this.interpolator.nestingRegexp),b=f&&f.length;d<b&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,b=new Array(f),y=0;y<f;y++)b[y]=arguments[y];return a&&a[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,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(t=Ci.handle(c,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,a,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;o=d;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",b=f&&!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);m.forEach(g=>{this.isValidLookup(n)||(l=g,!qa[`${_[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(qa[`${_[0]}-${g}`]=!0,this.logger.warn(`key "${o}" 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(x=>{if(this.isValidLookup(n))return;i=x;const j=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(j,d,x,g,r);else{let L;f&&(L=this.pluralResolver.getSuffix(x,r.count,r));const R=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(j.push(d+L),r.ordinal&&L.indexOf(P)===0&&j.push(d+L.replace(P,this.options.pluralSeparator)),b&&j.push(d+R)),y){const O=`${d}${this.options.contextSeparator}${r.context}`;j.push(O),f&&(j.push(O+L),r.ordinal&&L.indexOf(P)===0&&j.push(O+L.replace(P,this.options.pluralSeparator)),b&&j.push(O+R))}}let C;for(;C=j.pop();)this.isValidLookup(n)||(a=C,n=this.getResource(x,g,C,r))}))})}),{res:n,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const a of r)delete o[a]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Ao=e=>e.charAt(0).toUpperCase()+e.slice(1);class Ya{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ht.create("languageUtils")}getScriptPartFromCode(t){if(t=$n(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=$n(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(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ao(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ao(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ao(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),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),o=[],a=i=>{i&&(this.isSupportedCode(i)?o.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"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),n.forEach(i=>{o.indexOf(i)<0&&a(this.formatLanguageCode(i))}),o}}let zc=[{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}],Wc={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 Hc=["v1","v2","v3"],Kc=["v4"],Za={zero:0,one:1,two:2,few:3,many:4,other:5},Xc=()=>{const e={};return zc.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Wc[t.fc]}})}),e};class qc{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ht.create("pluralResolver"),(!this.options.compatibilityJSON||Kc.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=Xc()}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($n(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(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,a)=>Za[o]-Za[a]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const a=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Hc.includes(this.options.compatibilityJSON)}}const Qa=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Fc(e,t,r);return!a&&o&&typeof r=="string"&&(a=Wo(e,r,n),a===void 0&&(a=Wo(t,r,n))),a},Po=e=>e.replace(/\$/g,"$$$$");class Yc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ht.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:a,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:f,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:g,maxReplaces:x,alwaysFormat:j}=t.interpolation;this.escape=r!==void 0?r:Uc,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?sr(a):i||"{{",this.suffix=l?sr(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?sr(f):b||sr("$t("),this.nestingSuffix=y?sr(y):_||sr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=x||1e3,this.alwaysFormat=j!==void 0?j:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let a,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=b=>{if(b.indexOf(this.formatSeparator)<0){const x=Qa(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,n,{...o,...r,interpolationkey:b}):x}const y=b.split(this.formatSeparator),_=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Qa(r,c,_,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...o,...r,interpolationkey:_})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Po(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Po(this.escape(b)):Po(b)}].forEach(b=>{for(l=0;a=b.regex.exec(t);){const y=a[1].trim();if(i=u(y),i===void 0)if(typeof d=="function"){const g=d(t,a,o);i=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))i="";else if(m){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=za(i));const _=b.safeValue(i);if(t=t.replace(a[0],_),m?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=a[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]:{},o,a,i;const l=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const m=c.split(new RegExp(`${d}[ ]*{`));let f=`{${m[1]}`;c=m[0],f=this.interpolate(f,i);const b=f.match(/'/g),y=f.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),u&&(i={...u,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,_),`${c}${d}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;o=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=d.shift(),c=d,u=!0}if(a=r(l.call(this,o[1].trim(),i),i),a&&o[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=za(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,m)=>this.format(d,m,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const Zc=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(i=>{if(i){const[l,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();r[d]||(r[d]=u),u==="false"&&(r[d]=!1),u==="true"&&(r[d]=!0),isNaN(u)||(r[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},ir=e=>{const t={};return(r,n,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={formatParams:{[o.interpolationkey]:o.formatParams[o.interpolationkey]},interpolationKey:o.interpolationkey});const i=n+JSON.stringify(a);let l=t[i];return l||(l=e($n(n),o),t[i]=l),l(r)}};class Qc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ht.create("formatter"),this.options=t,this.formats={number:ir((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:ir((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:ir((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:ir((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:ir((r,n)=>{const o=new Intl.ListFormat(r,{...n});return a=>o.format(a)})},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()]=ir(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{const{formatName:u,formatOptions:d}=Zc(c);if(this.formats[u]){let m=l;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=f.locale||f.lng||o.locale||o.lng||n;m=this.formats[u](l,b,{...d,...o,...f})}catch(f){this.logger.warn(f)}return m}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const eu=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class tu extends Kn{constructor(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=ht.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const a={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(m=>{const f=`${u}|${m}`;!n.reload&&this.store.hasResourceBundle(u,m)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,d=!1,i[f]===void 0&&(i[f]=!0),a[f]===void 0&&(a[f]=!0),c[m]===void 0&&(c[m]=!0)))}),d||(l[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const o=t.split("|"),a=o[0],i=o[1];r&&this.emit("failedLoading",a,i,r),n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{Nc(c.loaded,[a],i),eu(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(m=>{l[u][m]===void 0&&(l[u][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=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:o,wait:a,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const a=this.queueLoad(t,r,n,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.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("|"),o=n[0],a=n[1];this.read(o,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${a} for language ${o} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${o}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,o,a){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 c={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,o,c):d=u(t,r,n,o),d&&typeof d.then=="function"?d.then(m=>l(null,m)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,o,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const es=()=>({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}}),ts=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),hn=()=>{},ru=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Wr extends Kn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ts(t),this.services={},this.logger=ht,this.modules={external:[]},ru(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 o=es();this.options={...o,...this.options,...ts(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?ht.init(a(this.modules.logger),this.options):ht.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Qc);const m=new Ya(this.options);this.store=new Xa(this.options.resources,this.options);const f=this.services;f.logger=ht,f.resourceStore=this.store,f.languageUtils=m,f.pluralResolver=new qc(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=a(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Yc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new tu(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Nn(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=hn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=Nr(),u=()=>{const d=(m,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(f),n(m,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hn;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const o=Nr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=hn),this.services.backendConnector.reload(t,r,a=>{o.resolve(),n(a)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Ci.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const o=Nr();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};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),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),m=2;m<u;m++)d[m-2]=arguments[m];c=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||a.keyPrefix);const f=o.options.keySeparator||".";let b;return c.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${c.keyPrefix}${f}${y}`):b=c.keyPrefix?`${c.keyPrefix}${f}${i}`:i,o.t(b,c)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===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)&&(!o||i(a,t)))}loadNamespaces(t,r){const n=Nr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Nr();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],a=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=o.concat(a),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 Ya(es());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 Wr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new Wr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new Xa(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Nn(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];a.emit(l,...u)}),a.init(o,r),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ie=Wr.createInstance();Ie.createInstance=Wr.createInstance;Ie.createInstance;Ie.dir;Ie.init;Ie.loadResources;Ie.reloadResources;Ie.use;Ie.changeLanguage;Ie.getFixedT;Ie.t;Ie.exists;Ie.setDefaultNamespace;Ie.hasLoadedNamespace;Ie.loadNamespaces;Ie.loadLanguages;const Ai=Ie.createInstance();Ai.use(wc).use(Ft.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:Ec},de:{translations:Mc}},ns:["translations"],defaultNS:"translations"});function en(e){return r=>s.jsx(nu,{children:s.jsx(e,{...r})})}const nu=({children:e})=>s.jsx(Ft.I18nextProvider,{i18n:Ai,children:e});function Pi(e,t){return function(){return e.apply(t,arguments)}}const{toString:ou}=Object.prototype,{getPrototypeOf:ga}=Object,Xn=(e=>t=>{const r=ou.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Xn(t)===e),qn=e=>t=>typeof t===e,{isArray:Sr}=Array,Hr=qn("undefined");function au(e){return e!==null&&!Hr(e)&&e.constructor!==null&&!Hr(e.constructor)&&ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Oi=lt("ArrayBuffer");function su(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Oi(e.buffer),t}const iu=qn("string"),ze=qn("function"),Ti=qn("number"),Yn=e=>e!==null&&typeof e=="object",lu=e=>e===!0||e===!1,jn=e=>{if(Xn(e)!=="object")return!1;const t=ga(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cu=lt("Date"),uu=lt("File"),du=lt("Blob"),fu=lt("FileList"),mu=e=>Yn(e)&&ze(e.pipe),hu=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ze(e.append)&&((t=Xn(e))==="formdata"||t==="object"&&ze(e.toString)&&e.toString()==="[object FormData]"))},pu=lt("URLSearchParams"),[gu,yu,_u,bu]=["ReadableStream","Request","Response","Headers"].map(lt),vu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Sr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(n=0;n<i;n++)l=a[n],t.call(null,e[l],l,e)}}function Ii(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mi=e=>!Hr(e)&&e!==zt;function Ho(){const{caseless:e}=Mi(this)&&this||{},t={},r=(n,o)=>{const a=e&&Ii(t,o)||o;jn(t[a])&&jn(n)?t[a]=Ho(t[a],n):jn(n)?t[a]=Ho({},n):Sr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&tn(arguments[n],r);return t}const Su=(e,t,r,{allOwnKeys:n}={})=>(tn(t,(o,a)=>{r&&ze(o)?e[a]=Pi(o,r):e[a]=o},{allOwnKeys:n}),e),xu=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wu=(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)},ju=(e,t,r,n)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&ga(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ru=(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},Cu=e=>{if(!e)return null;if(Sr(e))return e;let t=e.length;if(!Ti(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Au=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ga(Uint8Array)),Pu=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Ou=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Tu=lt("HTMLFormElement"),Iu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),rs=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Mu=lt("RegExp"),Ei=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};tn(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},Eu=e=>{Ei(e,(t,r)=>{if(ze(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ze(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+"'")})}})},ku=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Sr(e)?n(e):n(String(e).split(t)),r},Lu=()=>{},$u=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Oo="abcdefghijklmnopqrstuvwxyz",ns="0123456789",ki={DIGIT:ns,ALPHA:Oo,ALPHA_DIGIT:Oo+Oo.toUpperCase()+ns},Nu=(e=16,t=ki.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Fu(e){return!!(e&&ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Du=e=>{const t=new Array(10),r=(n,o)=>{if(Yn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=Sr(n)?[]:{};return tn(n,(i,l)=>{const c=r(i,o+1);!Hr(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},Uu=lt("AsyncFunction"),Bu=e=>e&&(Yn(e)||ze(e))&&ze(e.then)&&ze(e.catch),Li=((e,t)=>e?setImmediate:t?((r,n)=>(zt.addEventListener("message",({source:o,data:a})=>{o===zt&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ze(zt.postMessage)),Ju=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||Li,S={isArray:Sr,isArrayBuffer:Oi,isBuffer:au,isFormData:hu,isArrayBufferView:su,isString:iu,isNumber:Ti,isBoolean:lu,isObject:Yn,isPlainObject:jn,isReadableStream:gu,isRequest:yu,isResponse:_u,isHeaders:bu,isUndefined:Hr,isDate:cu,isFile:uu,isBlob:du,isRegExp:Mu,isFunction:ze,isStream:mu,isURLSearchParams:pu,isTypedArray:Au,isFileList:fu,forEach:tn,merge:Ho,extend:Su,trim:vu,stripBOM:xu,inherits:wu,toFlatObject:ju,kindOf:Xn,kindOfTest:lt,endsWith:Ru,toArray:Cu,forEachEntry:Pu,matchAll:Ou,isHTMLForm:Tu,hasOwnProperty:rs,hasOwnProp:rs,reduceDescriptors:Ei,freezeMethods:Eu,toObjectSet:ku,toCamelCase:Iu,noop:Lu,toFiniteNumber:$u,findKey:Ii,global:zt,isContextDefined:Mi,ALPHABET:ki,generateString:Nu,isSpecCompliantForm:Fu,toJSONObject:Du,isAsyncFn:Uu,isThenable:Bu,setImmediate:Li,asap:Ju};function J(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}S.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:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $i=J.prototype,Ni={};["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=>{Ni[e]={value:e}});Object.defineProperties(J,Ni);Object.defineProperty($i,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create($i);return S.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const Vu=null;function Ko(e){return S.isPlainObject(e)||S.isArray(e)}function Fi(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function os(e,t,r){return e?e.concat(t).map(function(o,a){return o=Fi(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function Gu(e){return S.isArray(e)&&!e.some(Ko)}const zu=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Zn(e,t,r){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=S.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,g){return!S.isUndefined(g[_])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(S.isDate(y))return y.toISOString();if(!c&&S.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(y)||S.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let x=y;if(y&&!g&&typeof y=="object"){if(S.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(S.isArray(y)&&Gu(y)||(S.isFileList(y)||S.endsWith(_,"[]"))&&(x=S.toArray(y)))return _=Fi(_),x.forEach(function(C,L){!(S.isUndefined(C)||C===null)&&t.append(i===!0?os([_],L,a):i===null?_:_+"[]",u(C))}),!1}return Ko(y)?!0:(t.append(os(g,_,a),u(y)),!1)}const m=[],f=Object.assign(zu,{defaultVisitor:d,convertValue:u,isVisitable:Ko});function b(y,_){if(!S.isUndefined(y)){if(m.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));m.push(y),S.forEach(y,function(x,j){(!(S.isUndefined(x)||x===null)&&o.call(t,x,S.isString(j)?j.trim():j,_,f))===!0&&b(x,_?_.concat(j):[j])}),m.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return b(e),t}function as(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ya(e,t){this._pairs=[],e&&Zn(e,this,t)}const Di=ya.prototype;Di.append=function(t,r){this._pairs.push([t,r])};Di.toString=function(t){const r=t?function(n){return t.call(this,n,as)}:as;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Wu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ui(e,t,r){if(!t)return e;const n=r&&r.encode||Wu,o=r&&r.serialize;let a;if(o?a=o(t,r):a=S.isURLSearchParams(t)?t.toString():new ya(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ss{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){S.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Bi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hu=typeof URLSearchParams<"u"?URLSearchParams:ya,Ku=typeof FormData<"u"?FormData:null,Xu=typeof Blob<"u"?Blob:null,qu={isBrowser:!0,classes:{URLSearchParams:Hu,FormData:Ku,Blob:Xu},protocols:["http","https","file","blob","url","data"]},_a=typeof window<"u"&&typeof document<"u",Yu=(e=>_a&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Zu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qu=_a&&window.location.href||"http://localhost",ed=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_a,hasStandardBrowserEnv:Yu,hasStandardBrowserWebWorkerEnv:Zu,origin:Qu},Symbol.toStringTag,{value:"Module"})),st={...ed,...qu};function td(e,t){return Zn(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return st.isNode&&S.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function rd(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nd(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function Ji(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=r.length;return i=!i&&S.isArray(o)?o.length:i,c?(S.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!S.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&S.isArray(o[i])&&(o[i]=nd(o[i])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const r={};return S.forEachEntry(e,(n,o)=>{t(rd(n),o,r,0)}),r}return null}function od(e,t,r){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const rn={transitional:Bi,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=S.isObject(t);if(a&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(Ji(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return td(t,this.formSerializer).toString();if((l=S.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Zn(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),od(t)):t}],transformResponse:[function(t){const r=this.transitional||rn.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;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}}};S.forEach(["delete","get","head","post","put","patch"],e=>{rn.headers[e]={}});const ad=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sd=e=>{const t={};let r,n,o;return e&&e.split(`
31
- `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&ad[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},is=Symbol("internals");function Fr(e){return e&&String(e).trim().toLowerCase()}function Rn(e){return e===!1||e==null?e:S.isArray(e)?e.map(Rn):String(e)}function id(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 ld=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function To(e,t,r,n,o){if(S.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!S.isString(t)){if(S.isString(n))return t.indexOf(n)!==-1;if(S.isRegExp(n))return n.test(t)}}function cd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ud(e,t){const r=S.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Fe=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(l,c,u){const d=Fr(c);if(!d)throw new Error("header name must be a non-empty string");const m=S.findKey(o,d);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||c]=Rn(l))}const i=(l,c)=>S.forEach(l,(u,d)=>a(u,d,c));if(S.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(S.isString(t)&&(t=t.trim())&&!ld(t))i(sd(t),r);else if(S.isHeaders(t))for(const[l,c]of t.entries())a(c,l,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=Fr(t),t){const n=S.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return id(o);if(S.isFunction(r))return r.call(this,o,n);if(S.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Fr(t),t){const n=S.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||To(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Fr(i),i){const l=S.findKey(n,i);l&&(!r||To(n,n[l],l,r))&&(delete n[l],o=!0)}}return S.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||To(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return S.forEach(this,(o,a)=>{const i=S.findKey(n,a);if(i){r[i]=Rn(o),delete r[a];return}const l=t?cd(a):String(a).trim();l!==a&&delete r[a],r[l]=Rn(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return S.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&S.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(`
32
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[is]=this[is]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Fr(i);n[l]||(ud(o,i),n[l]=!0)}return S.isArray(t)?t.forEach(a):a(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});S.freezeMethods(Fe);function Io(e,t){const r=this||rn,n=t||r,o=Fe.from(n.headers);let a=n.data;return S.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Vi(e){return!!(e&&e.__CANCEL__)}function xr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}S.inherits(xr,J,{__CANCEL__:!0});function Gi(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 dd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let m=a,f=0;for(;m!==o;)f+=r[m++],m=m%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const b=d&&u-d;return b?Math.round(f*1e3/b):void 0}}function md(e,t){let r=0,n=1e3/t,o,a;const i=(u,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),m=d-r;m>=n?i(u,d):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},n-m)))},()=>o&&i(o)]}const Fn=(e,t,r=3)=>{let n=0;const o=fd(50,250);return md(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const m={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(m)},r)},ls=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},cs=e=>(...t)=>S.asap(()=>e(...t)),hd=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;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=o(window.location.href),function(i){const l=S.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),pd=st.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];S.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),S.isString(n)&&i.push("path="+n),S.isString(o)&&i.push("domain="+o),a===!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 gd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zi(e,t){return e&&!gd(t)?yd(e,t):t}const us=e=>e instanceof Fe?{...e}:e;function Ht(e,t){t=t||{};const r={};function n(u,d,m){return S.isPlainObject(u)&&S.isPlainObject(d)?S.merge.call({caseless:m},u,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function o(u,d,m){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u,m)}else return n(u,d,m)}function a(u,d){if(!S.isUndefined(d))return n(void 0,d)}function i(u,d){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,m){if(m in t)return n(u,d);if(m in e)return n(void 0,u)}const c={url:a,method:a,data:a,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:(u,d)=>o(us(u),us(d),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(d){const m=c[d]||o,f=m(e[d],t[d],d);S.isUndefined(f)&&m!==l||(r[d]=f)}),r}const Wi=e=>{const t=Ht({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=Ui(zi(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(S.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&S.isFunction(n)&&(n=n(t)),n||n!==!1&&hd(t.url))){const u=o&&a&&pd.read(a);u&&i.set(o,u)}return t},_d=typeof XMLHttpRequest<"u",bd=_d&&function(e){return new Promise(function(r,n){const o=Wi(e);let a=o.data;const i=Fe.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,m,f,b,y;function _(){b&&b(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function x(){if(!g)return;const C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),R={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};Gi(function(O){r(O),_()},function(O){n(O),_()},R),g=null}"onloadend"in g?g.onloadend=x:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(x)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||Bi;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),n(new J(L,R.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&S.forEach(i.toJSON(),function(L,R){g.setRequestHeader(R,L)}),S.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),u&&([f,y]=Fn(u,!0),g.addEventListener("progress",f)),c&&g.upload&&([m,b]=Fn(c),g.upload.addEventListener("progress",m),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=C=>{g&&(n(!C||C.type?new xr(null,e,g):C),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const j=dd(o.url);if(j&&st.protocols.indexOf(j)===-1){n(new J("Unsupported protocol "+j+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},vd=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof J?u:new xr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},Sd=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},xd=async function*(e,t,r){for await(const n of e)yield*Sd(ArrayBuffer.isView(n)?n:await r(String(n)),t)},ds=(e,t,r,n,o)=>{const a=xd(e,t,o);let i=0,l,c=u=>{l||(l=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:m}=await a.next();if(d){c(),u.close();return}let f=m.byteLength;if(r){let b=i+=f;r(b)}u.enqueue(new Uint8Array(m))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},Qn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hi=Qn&&typeof ReadableStream=="function",Xo=Qn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ki=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wd=Hi&&Ki(()=>{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}),fs=64*1024,qo=Hi&&Ki(()=>S.isReadableStream(new Response("").body)),Dn={stream:qo&&(e=>e.body)};Qn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Dn[t]&&(Dn[t]=S.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 jd=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Xo(e)).byteLength},Rd=async(e,t)=>{const r=S.toFiniteNumber(e.getContentLength());return r??jd(t)},Cd=Qn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:f}=Wi(e);u=u?(u+"").toLowerCase():"text";let[b,y]=o||a||i?vd([o,a],i):[],_,g;const x=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let j;try{if(c&&wd&&r!=="get"&&r!=="head"&&(j=await Rd(d,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(S.isFormData(n)&&(O=P.headers.get("content-type"))&&d.setContentType(O),P.body){const[z,le]=ls(j,Fn(cs(c)));n=ds(P.body,fs,z,le,Xo)}}S.isString(m)||(m=m?"include":"omit"),g=new Request(t,{...f,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:m});let C=await fetch(g);const L=qo&&(u==="stream"||u==="response");if(qo&&(l||L)){const P={};["status","statusText","headers"].forEach(ue=>{P[ue]=C[ue]});const O=S.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&ls(O,Fn(cs(l),!0))||[];C=new Response(ds(C.body,fs,z,()=>{le&&le(),L&&x()},Xo),P)}u=u||"text";let R=await Dn[S.findKey(Dn,u)||"text"](C,e);return!L&&x(),y&&y(),await new Promise((P,O)=>{Gi(P,O,{data:R,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw x(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:C.cause||C}):J.from(C,C&&C.code,e,g)}}),Yo={http:Vu,xhr:bd,fetch:Cd};S.forEach(Yo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ms=e=>`- ${e}`,Ad=e=>S.isFunction(e)||e===null||e===!1,Xi={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!Ad(r)&&(n=Yo[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
33
- `+a.map(ms).join(`
34
- `):" "+ms(a[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Yo};function Mo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function hs(e){return Mo(e),e.headers=Fe.from(e.headers),e.data=Io.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xi.getAdapter(e.adapter||rn.adapter)(e).then(function(n){return Mo(e),n.data=Io.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return Vi(n)||(Mo(e),n&&n.response&&(n.response.data=Io.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const qi="1.7.4",ba={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ba[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ps={};ba.transitional=function(t,r,n){function o(a,i){return"[Axios v"+qi+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new J(o(i," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!ps[i]&&(ps[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,l):!0}};function Pd(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 o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const l=e[a],c=l===void 0||i(l,a,e);if(c!==!0)throw new J("option "+a+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}}const Zo={assertOptions:Pd,validators:ba},Et=Zo.validators;let Wt=class{constructor(t){this.defaults=t,this.interceptors={request:new ss,response:new ss}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
35
- `+a):n.stack=a}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:o,headers:a}=r;n!==void 0&&Zo.assertOptions(n,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),o!=null&&(S.isFunction(o)?r.paramsSerializer={serialize:o}:Zo.assertOptions(o,{encode:Et.function,serialize:Et.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&S.merge(a.common,a[r.method]);a&&S.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=Fe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let d,m=0,f;if(!c){const y=[hs.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),f=y.length,d=Promise.resolve(r);m<f;)d=d.then(y[m++],y[m++]);return d}f=l.length;let b=r;for(m=0;m<f;){const y=l[m++],_=l[m++];try{b=y(b)}catch(g){_.call(this,g);break}}try{d=hs.call(this,b)}catch(y){return Promise.reject(y)}for(m=0,f=u.length;m<f;)d=d.then(u[m++],u[m++]);return d}getUri(t){t=Ht(this.defaults,t);const r=zi(t.baseURL,t.url);return Ui(r,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){Wt.prototype[t]=function(r,n){return this.request(Ht(n||{},{method:t,url:r,data:(n||{}).data}))}});S.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Ht(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Wt.prototype[t]=r(),Wt.prototype[t+"Form"]=r(!0)});let Od=class Yi{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new xr(a,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 Yi(function(o){t=o}),cancel:t}}};function Td(e){return function(r){return e.apply(null,r)}}function Id(e){return S.isObject(e)&&e.isAxiosError===!0}const Qo={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(Qo).forEach(([e,t])=>{Qo[t]=e});function Zi(e){const t=new Wt(e),r=Pi(Wt.prototype.request,t);return S.extend(r,Wt.prototype,t,{allOwnKeys:!0}),S.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Zi(Ht(e,o))},r}const xe=Zi(rn);xe.Axios=Wt;xe.CanceledError=xr;xe.CancelToken=Od;xe.isCancel=Vi;xe.VERSION=qi;xe.toFormData=Zn;xe.AxiosError=J;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=Td;xe.isAxiosError=Id;xe.mergeConfig=Ht;xe.AxiosHeaders=Fe;xe.formToJSON=e=>Ji(S.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=Xi.getAdapter;xe.HttpStatusCode=Qo;xe.default=xe;const{Axios:X_,AxiosError:gs,CanceledError:q_,isCancel:Y_,CancelToken:Z_,VERSION:Q_,all:eb,Cancel:tb,isAxiosError:rb,spread:nb,toFormData:ob,AxiosHeaders:ab,HttpStatusCode:sb,formToJSON:ib,getAdapter:lb,mergeConfig:cb}=xe;function Md(e){try{return JSON.stringify(e)}catch{return}}function Ed(e){var t,r,n,o;return e instanceof gs&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof gs&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${Md(e)||e}`}const Qi=e=>{const t=e.softTimeout||3e3,[r,n]=q.useState(!1);return q.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(k.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(kd,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(k.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(k.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},kd=e=>{const t=Ed(e.error),r=e.error instanceof Error?e.error.stack:null,n=k.useTheme();return s.jsxs(k.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},Ld=q.lazy(()=>import("@monaco-editor/react")),$d=en(e=>{const t=k.useTheme(),r=q.useRef(null),[n,o]=q.useState("dark-plus"),a=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(l){const[{createHighlighter:c},{shikiToMonaco:u}]=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 c({langs:[Ic],themes:["dark-plus","light-plus"]})),u(r.current,l),l.editor.defineTheme(a,{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),o(a)}return s.jsx(q.Suspense,{fallback:s.jsx(Qi,{}),children:s.jsx(Ld,{value:e.code,onMount:(l,c)=>{i(c)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})}),Nd="(^joint_[0-9]+$)|(_J[0-9]+$)";function el(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>el(t))]}function Fd(e,t){return new RegExp(t??Nd).test(e)}function tl(e,t){return el(e).filter(r=>Fd(r.name,t))}function eo(e){q.useEffect(e,[])}function rl(e){eo(()=>br.autorun(e))}function nl(e,t,r){eo(()=>br.reaction(e,t,r))}function wr(e){return eo(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function ge({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){v.Globals.assign({frameLoop:"always"});const o=q.useRef([]),a=q.useRef([]),{scene:i,invalidate:l}=jc.useThree();q.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):tl(f),u(),l())},[]);function c(f){o.current=f,m.start(Object.assign({},o.current))}function u(){const f=a.current.map((b,y)=>d[y].get());r(a.current,f)}rl(()=>{const f=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>c(f))});const[d,m]=v.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function Dd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(v.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(v.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:o.UR3_05.geometry,material:a.Standard}),s.jsxs(v.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L06.geometry,material:a.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Ud({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(v.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(v.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(v.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Bd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(v.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J00",children:[s.jsxs(v.animated.group,{name:"link_1",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.universalrobots_darkgrey}),s.jsx("mesh",{name:"visuals_1_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1_1.geometry,material:a.universalrobots_black}),s.jsx("mesh",{name:"visuals_1_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1_2.geometry,material:a.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_1_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1_3.geometry,material:a.universalrobots_lightblue})]}),s.jsxs(v.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J01",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"link_2",position:[0,0,.089],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.universalrobots_stainlesssteel}),s.jsx("mesh",{name:"visuals_2_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2_1.geometry,material:a.universalrobots_lightblue}),s.jsx("mesh",{name:"visuals_2_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2_2.geometry,material:a.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_2_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2_3.geometry,material:a.universalrobots_black}),s.jsx("mesh",{name:"visuals_2_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2_4.geometry,material:a.universalrobots_darkgrey})]}),s.jsxs(v.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J02",position:[-.425,0,0],children:[s.jsxs(v.animated.group,{name:"link_3",position:[.425,0,.089],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"visuals_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals_3.geometry,material:a.universalrobots_lightblue}),s.jsx("mesh",{name:"visuals_3_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_3_1.geometry,material:a.universalrobots_black}),s.jsx("mesh",{name:"visuals_3_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_3_2.geometry,material:a.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_3_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals_3_3.geometry,material:a.universalrobots_darkgrey}),s.jsx("mesh",{name:"visuals_3_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals_3_4.geometry,material:a.universalrobots_stainlesssteel})]}),s.jsxs(v.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J03",position:[-.392,0,0],children:[s.jsxs(v.animated.group,{name:"link_4",position:[.817,0,.089],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"visuals_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals_4.geometry,material:a.universalrobots_darkgrey}),s.jsx("mesh",{name:"visuals_4_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_4_1.geometry,material:a.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_4_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_4_2.geometry,material:a.universalrobots_lightblue}),s.jsx("mesh",{name:"visuals_4_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals_4_3.geometry,material:a.universalrobots_black})]}),s.jsxs(v.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J04",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"link_5",position:[.817,.089,.109],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"visuals_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals_5.geometry,material:a.universalrobots_darkgrey}),s.jsx("mesh",{name:"visuals_5_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_5_1.geometry,material:a.universalrobots_lightblue}),s.jsx("mesh",{name:"visuals_5_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_5_2.geometry,material:a.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_5_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals_5_3.geometry,material:a.universalrobots_black})]}),s.jsxs(v.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J05",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.universalrobots_stainlesssteel,position:[.817,-.109,-.005],rotation:[-Math.PI/2,0,0]}),s.jsx(v.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_FLG",position:[0,.082,0]})]})]})]})]})]})]}),s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:o.link_0.geometry,material:a.universalrobots_aluminum})]})})]})}function Jd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(v.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(v.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255_1"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_1"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_3"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_2"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_3"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_3"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257_1"].geometry,material:a.Metal})]})})]})})})]})}function Vd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(v.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(v.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Gd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(v.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(v.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:o["C-1000493"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:o["C-1000493_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:o["C-1000492"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:o["C-1000492_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:o["C-1000492_2"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:o["C-1000492_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:o["C-1000491"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:o["C-1000491_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:o["C-1000491_2"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:o["C-1000491_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:o["C-1000490"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:o["C-1000490_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:o["C-1000490_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:o["C-1000490_3"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(v.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:o["C-1000489"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:o["C-1000489_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:o["C-1000489_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:o["C-1000489_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:o["C-1000489_4"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:o["C-1000488"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:o["C-1000488_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:o["C-1000488_2"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:o["C-1000488_3"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:o["C-1000487"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:o["C-1000487_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function ys({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(v.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L06.geometry,material:a["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L05.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L04.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L03.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L02.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L01.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L00.geometry,material:a["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function zd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(v.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(v.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L06_CAD.geometry,material:a.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L05_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L02_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L00_CAD.geometry,material:a.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function Wd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(v.animated.group,{name:"AR1730_J00",children:[s.jsxs(v.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(v.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L06.geometry,material:a.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L05.geometry,material:a.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002_1.geometry,material:a.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L02.geometry,material:a.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L00.geometry,material:a.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function Hd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(v.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(v.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001_1.geometry,material:a.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L05.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L02.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L00.geometry,material:a.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function Kd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(v.animated.group,{name:"AR3120_J00",children:[s.jsxs(v.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(v.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L06.geometry,material:a["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L05.geometry,material:a["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001_1.geometry,material:a["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L02.geometry,material:a["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L00.geometry,material:a["Blue.001"],position:[0,-.54,0]})]})})]})}function Xd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs("group",{name:"link_0",children:[s.jsx("mesh",{name:"shape439",castShadow:!0,receiveShadow:!0,geometry:o.shape439.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape439_1",castShadow:!0,receiveShadow:!0,geometry:o.shape439_1.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape439_2",castShadow:!0,receiveShadow:!0,geometry:o.shape439_2.geometry,material:a.yaskawa_black})]}),s.jsxs(v.animated.group,{name:"YASKAWA_GP50_J00",position:[0,-.54,0],children:[s.jsxs("group",{name:"link_1",position:[0,.54,0],children:[s.jsx("mesh",{name:"shape320",castShadow:!0,receiveShadow:!0,geometry:o.shape320.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape320_1",castShadow:!0,receiveShadow:!0,geometry:o.shape320_1.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape320_2",castShadow:!0,receiveShadow:!0,geometry:o.shape320_2.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape320_3",castShadow:!0,receiveShadow:!0,geometry:o.shape320_3.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape320_4",castShadow:!0,receiveShadow:!0,geometry:o.shape320_4.geometry,material:a.yaskawa_white}),s.jsx("mesh",{name:"shape320_5",castShadow:!0,receiveShadow:!0,geometry:o.shape320_5.geometry,material:a.yaskawa_black})]}),s.jsxs(v.animated.group,{name:"YASKAWA_GP50_J01",position:[.145,.54,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs("group",{name:"link_2",position:[0,0,.145],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape440",castShadow:!0,receiveShadow:!0,geometry:o.shape440.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape440_1",castShadow:!0,receiveShadow:!0,geometry:o.shape440_1.geometry,material:a.yaskawa_white}),s.jsx("mesh",{name:"shape440_2",castShadow:!0,receiveShadow:!0,geometry:o.shape440_2.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape440_3",castShadow:!0,receiveShadow:!0,geometry:o.shape440_3.geometry,material:a.yaskawa_black})]}),s.jsxs(v.animated.group,{name:"YASKAWA_GP50_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs("group",{name:"link_3",position:[-.87,0,-.145],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape341",castShadow:!0,receiveShadow:!0,geometry:o.shape341.geometry,material:a.yaskawa_blue}),s.jsx("mesh",{name:"shape341_1",castShadow:!0,receiveShadow:!0,geometry:o.shape341_1.geometry,material:a.yaskawa_white}),s.jsx("mesh",{name:"shape341_2",castShadow:!0,receiveShadow:!0,geometry:o.shape341_2.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape341_3",castShadow:!0,receiveShadow:!0,geometry:o.shape341_3.geometry,material:a.yaskawa_black}),s.jsx("mesh",{name:"shape341_4",castShadow:!0,receiveShadow:!0,geometry:o.shape341_4.geometry,material:a.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape341_5",castShadow:!0,receiveShadow:!0,geometry:o.shape341_5.geometry,material:a.yaskawa_metalsilver})]}),s.jsxs(v.animated.group,{name:"YASKAWA_GP50_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_4",castShadow:!0,receiveShadow:!0,geometry:o.link_4.geometry,material:a.yaskawa_blue,position:[-1.08,.145,0],rotation:[0,0,-Math.PI/2]}),s.jsxs(v.animated.group,{name:"YASKAWA_GP50_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_5",castShadow:!0,receiveShadow:!0,geometry:o.link_5.geometry,material:a.yaskawa_blue,position:[-1.08,0,-1.17],rotation:[-Math.PI/2,0,-Math.PI/2]}),s.jsxs(v.animated.group,{name:"YASKAWA_GP50_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.yaskawa_metalsilver,position:[-1.08,1.17,0],rotation:[0,0,-Math.PI/2]}),s.jsx("group",{name:"YASKAWA_GP50_FLG",position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})]})}function qd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(v.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(v.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(v.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_1.geometry,material:a.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_2.geometry,material:a.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L03.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function Yd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:o.link_0.geometry,material:a.fanuc_metal_black}),s.jsxs(v.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(v.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(v.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(v.animated.group,{name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),s.jsxs(v.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape053",castShadow:!0,receiveShadow:!0,geometry:o.shape053.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape053_1",castShadow:!0,receiveShadow:!0,geometry:o.shape053_1.geometry,material:a.fanuc_green})]})]}),s.jsxs(v.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape054",castShadow:!0,receiveShadow:!0,geometry:o.shape054.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape054_1",castShadow:!0,receiveShadow:!0,geometry:o.shape054_1.geometry,material:a.fanuc_red}),s.jsx("mesh",{name:"shape054_2",castShadow:!0,receiveShadow:!0,geometry:o.shape054_2.geometry,material:a.fanuc_metal_black})]})]}),s.jsxs(v.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape009",castShadow:!0,receiveShadow:!0,geometry:o.shape009.geometry,material:a.fanuc_green}),s.jsx("mesh",{name:"shape009_1",castShadow:!0,receiveShadow:!0,geometry:o.shape009_1.geometry,material:a.fanuc_white})]})]}),s.jsx("mesh",{name:"link_2",castShadow:!0,receiveShadow:!0,geometry:o.link_2.geometry,material:a.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_1",position:[0,.245,0],children:[s.jsx("mesh",{name:"shape005",castShadow:!0,receiveShadow:!0,geometry:o.shape005.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape005_1",castShadow:!0,receiveShadow:!0,geometry:o.shape005_1.geometry,material:a.fanuc_green})]})]})]})})]})}function Zd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse.geometry,material:a.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]}),s.jsxs(v.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(v.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(v.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_1.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_2.geometry,material:a.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L02.geometry,material:a.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenLED})]})]})]})})]})}function Qd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(v.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(v.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(v.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_1.geometry,material:a["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_2.geometry,material:a["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a["Fanuc_BlackMetal.001"]})]})})]})}function ef({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(v.animated.group,{name:"joint_01",children:[s.jsxs(v.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:o.visuals006.geometry,material:a.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_5.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_6.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_5.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_6.geometry,material:a.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_metal_black})]})})]})})})]})}function tf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(v.animated.group,{name:"joint_01",children:[s.jsxs(v.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_2.geometry,material:a.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:o.visuals005.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:o.visuals004.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_4.geometry,material:a.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_Farbe__1_})]})]})]})})})]})}function rf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(v.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L05.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_1.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L00.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function _s({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(v.animated.group,{name:"M20iD25_J00",children:[s.jsxs(v.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(v.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L05.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_2.geometry,material:a.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37_1.geometry,material:a.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45.geometry,material:a.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L00.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function nf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(v.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(v.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(v.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L06.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L05.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L04.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L03.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L02.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L01.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L00.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const bs="line",vs="mesh";function Eo({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new xt.Matrix4;function o(c,u){const d=new xt.Vector3,m=new xt.Quaternion,f=new xt.Vector3;n.decompose(d,m,f);const b=d.clone(),y=new xt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new xt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new xt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new xt.Matrix4().makeRotationX(c.alpha));return n.multiply(y),n.decompose(d,m,f),{a:b,b:d}}function a(c,u,d,m){if(!t)return;const f=t[c];if(!f)return;const{a:b,b:y}=o(f,m);u.geometry.setPositions([b.toArray(),y.toArray()].flat()),d.position.set(y.x,y.y,y.z)}function i(c,u){n.identity(),c.forEach((d,m)=>{a(m,d.getObjectByName(bs),d.getObjectByName(vs),u[m])})}function l(c){return tl(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(ge,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:m}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(ie.Line,{name:bs,points:[d,m],color:"white",lineWidth:5}),s.jsxs("mesh",{name:vs,position:m,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}const of=console.warn;function af(){return q.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&of(e)}},[]),s.jsx(s.Fragment,{})}function va(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const ol=en(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=va,isGhost:o=!1,...a})=>{let i;const l=q.useRef(new Ce.Group),c=q.useCallback(m=>{m!==null&&(l.current=m,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&u())},[o]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(m=>{if(m instanceof Ce.Mesh&&!m.userData.isGhost){m.material instanceof Ce.Material&&(m.material.colorWrite=!1);const f=m.clone(),b=m.clone();f.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,b.material=new Ce.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),b.userData.isGhost=!0,m.parent&&(m.parent.add(f),m.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const m=[];l.current.traverse(f=>{f instanceof Ce.Mesh&&f.material instanceof Ce.Material&&(f.material.colorWrite=!0),f instanceof Ce.Mesh&&f.userData!==void 0&&f.userData&&f.userData.isGhost!==void 0&&f.userData.isGhost&&m.push(f)}),m.forEach(f=>{f.parent&&f.parent.remove(f)}),l.current.userData.ghostsCreated=!1}};switch(q.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=Dd;break;case"UniversalRobots_UR3e":i=Ud;break;case"UniversalRobots_UR5":i=Bd;break;case"UniversalRobots_UR5e":i=Jd;break;case"UniversalRobots_UR10":i=Vd;break;case"UniversalRobots_UR10e":i=Gd;break;case"Yaskawa_AR900":i=ys;break;case"Yaskawa_GP7":i=ys;break;case"Yaskawa_AR1440":i=zd;break;case"Yaskawa_AR1730":i=Wd;break;case"Yaskawa_AR2010":i=Hd;break;case"Yaskawa_AR3120":i=Kd;break;case"Yaskawa_GP50":i=Xd;break;case"FANUC_CRX10iA":i=qd;break;case"FANUC_CRX20iAL":i=Yd;break;case"FANUC_CRX25iA":i=Zd;break;case"FANUC_CRX25iAL":i=Qd;break;case"FANUC_ARC_Mate_120iD":i=_s;break;case"FANUC_ARC_Mate_120iD35":i=_s;break;case"FANUC_ARC_Mate_100iD":i=rf;break;case"KUKA_KR210_R2700":i=ef;break;case"KUKA_KR270_R2700":i=tf;break;case"ABB_1200_07_7":i=nf;break;default:console.warn(`Unknown robot type: ${t}`),i=Eo}return s.jsxs(Rc.ErrorBoundary,{fallback:s.jsx(Eo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:[s.jsx(q.Suspense,{fallback:s.jsx(Eo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})}),s.jsx(af,{})]})});function sf({connectedMotionGroup:e,getModel:t=va,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(ol,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function lf(){return s.jsx(ie.Environment,{children:s.jsx(cf,{})})}function cf({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(ie.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),s.jsx("group",{rotation:[0,.5,0],children:s.jsx("group",{children:e.map((t,r)=>s.jsx(ie.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(ie.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(ie.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(ie.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function uf(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ce.Vector3(e[0].x,e[0].y,e[0].z),r=new Ce.Vector3(e[1].x,e[1].y,e[1].z),n=new Ce.Vector3(e[2].x,e[2].y,e[2].z),o=new Ce.Vector3().subVectors(r,t),a=new Ce.Vector3().subVectors(n,t),i=new Ce.Vector3().crossVectors(o,a).normalize();for(let l=3;l<e.length;l++){const c=new Ce.Vector3(e[l].x,e[l].y,e[l].z),u=new Ce.Vector3().subVectors(c,t),d=i.dot(u);if(Math.abs(d)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function df({safetyZones:e,...t}){return s.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((a,i)=>{if(!a.convex_hull)return null;const l=a.convex_hull.vertices.map(d=>new Ce.Vector3(d.x/1e3,d.y/1e3,d.z/1e3)),c=uf(l);if(c.isCoplanar&&c.normal){const m=new Ce.Vector3().addVectors(l[0],c.normal.multiplyScalar(1e-4));l.push(m)}let u;try{u=new Cc.ConvexGeometry(l)}catch(d){return console.log("Error creating ConvexGeometry:",d),null}return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:u,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Kr(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 ff=Object.freeze(Object.defineProperty({__proto__:null,default:Kr},Symbol.toStringTag,{value:"Module"}));var mf=!1;function hf(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 pf(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 gf=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!mf: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(pf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=hf(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Te="-ms-",Un="-moz-",ne="-webkit-",al="comm",Sa="rule",xa="decl",yf="@import",sl="@keyframes",_f="@layer",bf=Math.abs,to=String.fromCharCode,vf=Object.assign;function Sf(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function il(e){return e.trim()}function xf(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function ea(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Xr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function wa(e){return e.length}function pn(e,t){return t.push(e),e}function wf(e,t){return e.map(t).join("")}var ro=1,vr=1,ll=0,De=0,Se=0,jr="";function no(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ro,column:vr,length:i,return:""}}function Dr(e,t){return vf(no("",null,null,"",null,null,0),e,{length:-e.length},t)}function jf(){return Se}function Rf(){return Se=De>0?Pe(jr,--De):0,vr--,Se===10&&(vr=1,ro--),Se}function We(){return Se=De<ll?Pe(jr,De++):0,vr++,Se===10&&(vr=1,ro++),Se}function pt(){return Pe(jr,De)}function Cn(){return De}function nn(e,t){return Xr(jr,e,t)}function qr(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 cl(e){return ro=vr=1,ll=ft(jr=e),De=0,[]}function ul(e){return jr="",e}function An(e){return il(nn(De-1,ta(e===91?e+2:e===40?e+1:e)))}function Cf(e){for(;(Se=pt())&&Se<33;)We();return qr(e)>2||qr(Se)>3?"":" "}function Af(e,t){for(;--t&&We()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return nn(e,Cn()+(t<6&&pt()==32&&We()==32))}function ta(e){for(;We();)switch(Se){case e:return De;case 34:case 39:e!==34&&e!==39&&ta(Se);break;case 40:e===41&&ta(e);break;case 92:We();break}return De}function Pf(e,t){for(;We()&&e+Se!==57;)if(e+Se===84&&pt()===47)break;return"/*"+nn(t,De-1)+"*"+to(e===47?e:We())}function Of(e){for(;!qr(pt());)We();return nn(e,De)}function Tf(e){return ul(Pn("",null,null,null,[""],e=cl(e),0,[0],e))}function Pn(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,m=i,f=0,b=0,y=0,_=1,g=1,x=1,j=0,C="",L=o,R=a,P=n,O=C;g;)switch(y=j,j=We()){case 40:if(y!=108&&Pe(O,m-1)==58){ea(O+=oe(An(j),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:O+=An(j);break;case 9:case 10:case 13:case 32:O+=Cf(y);break;case 92:O+=Af(Cn()-1,7);continue;case 47:switch(pt()){case 42:case 47:pn(If(Pf(We(),Cn()),t,r),c);break;default:O+="/"}break;case 123*_:l[u++]=ft(O)*x;case 125*_:case 59:case 0:switch(j){case 0:case 125:g=0;case 59+d:x==-1&&(O=oe(O,/\f/g,"")),b>0&&ft(O)-m&&pn(b>32?xs(O+";",n,r,m-1):xs(oe(O," ","")+";",n,r,m-2),c);break;case 59:O+=";";default:if(pn(P=Ss(O,t,r,u,d,o,l,C,L=[],R=[],m),a),j===123)if(d===0)Pn(O,t,P,P,L,a,m,l,R);else switch(f===99&&Pe(O,3)===110?100:f){case 100:case 108:case 109:case 115:Pn(e,P,P,n&&pn(Ss(e,P,P,0,0,o,l,C,o,L=[],m),R),o,R,m,l,n?L:R);break;default:Pn(O,P,P,P,[""],R,0,l,R)}}u=d=b=0,_=x=1,C=O="",m=i;break;case 58:m=1+ft(O),b=y;default:if(_<1){if(j==123)--_;else if(j==125&&_++==0&&Rf()==125)continue}switch(O+=to(j),j*_){case 38:x=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(ft(O)-1)*x,x=1;break;case 64:pt()===45&&(O+=An(We())),f=pt(),d=m=ft(C=O+=Of(Cn())),j++;break;case 45:y===45&&ft(O)==2&&(_=0)}}return a}function Ss(e,t,r,n,o,a,i,l,c,u,d){for(var m=o-1,f=o===0?a:[""],b=wa(f),y=0,_=0,g=0;y<n;++y)for(var x=0,j=Xr(e,m+1,m=bf(_=i[y])),C=e;x<b;++x)(C=il(_>0?f[x]+" "+j:oe(j,/&\f/g,f[x])))&&(c[g++]=C);return no(e,t,r,o===0?Sa:l,c,u,d)}function If(e,t,r){return no(e,t,r,al,to(jf()),Xr(e,2,-2),0)}function xs(e,t,r,n){return no(e,t,r,xa,Xr(e,0,n),Xr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=wa(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Mf(e,t,r,n){switch(e.type){case _f:if(e.children.length)break;case yf:case xa:return e.return=e.return||e.value;case al:return"";case sl:return e.return=e.value+"{"+pr(e.children,n)+"}";case Sa:e.value=e.props.join(",")}return ft(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ef(e){var t=wa(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function kf(e){return function(t){t.root||(t=t.return)&&e(t)}}var Lf=function(t,r,n){for(var o=0,a=0;o=a,a=pt(),o===38&&a===12&&(r[n]=1),!qr(a);)We();return nn(t,De)},$f=function(t,r){var n=-1,o=44;do switch(qr(o)){case 0:o===38&&pt()===12&&(r[n]=1),t[n]+=Lf(De-1,r,n);break;case 2:t[n]+=An(o);break;case 4:if(o===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=to(o)}while(o=We());return t},Nf=function(t,r){return ul($f(cl(t),r))},ws=new WeakMap,Ff=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!ws.get(n))&&!o){ws.set(t,!0);for(var a=[],i=Nf(r,a),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},Df=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function dl(e,t){switch(Sf(e,t)){case 5103:return ne+"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 ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Un+e+Te+e+e;case 6828:case 4268:return ne+e+Te+e+e;case 6165:return ne+e+Te+"flex-"+e+e;case 5187:return ne+e+oe(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return ne+e+Te+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ne+e+Te+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Te+oe(e,"shrink","negative")+e;case 5292:return ne+e+Te+oe(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+oe(e,"-grow","")+ne+e+Te+oe(e,"grow","positive")+e;case 4554:return ne+oe(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Un+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ea(e,"stretch")?dl(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,ft(e)-3-(~ea(e,"!important")&&10))){case 107:return oe(e,":",":"+ne)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Te+e+e}return e}var Uf=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case xa:t.return=dl(t.value,t.length);break;case sl:return pr([Dr(t,{value:oe(t.value,"@","@"+ne)})],o);case Sa:if(t.length)return wf(t.props,function(a){switch(xf(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Dr(t,{props:[oe(a,/:(read-\w+)/,":"+Un+"$1")]})],o);case"::placeholder":return pr([Dr(t,{props:[oe(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Dr(t,{props:[oe(a,/:(plac\w+)/,":"+Un+"$1")]}),Dr(t,{props:[oe(a,/:(plac\w+)/,Te+"input-$1")]})],o)}return""})}},Bf=[Uf],Jf=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 g=_.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||Bf,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var g=_.getAttribute("data-emotion").split(" "),x=1;x<g.length;x++)a[g[x]]=!0;l.push(_)});var c,u=[Ff,Df];{var d,m=[Mf,kf(function(_){d.insert(_)})],f=Ef(u.concat(o,m)),b=function(g){return pr(Tf(g),f)};c=function(g,x,j,C){d=j,b(g?g+"{"+x.styles+"}":x.styles),C&&(y.inserted[x.name]=!0)}}var y={key:r,sheet:new gf({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return y.sheet.hydrate(l),y};let ra;typeof document=="object"&&(ra=Jf({key:"css",prepend:!0}));function fl(e){const{injectFirst:t,children:r}=e;return t&&ra?s.jsx(hr.CacheProvider,{value:ra,children:r}):r}process.env.NODE_ENV!=="production"&&(fl.propTypes={children:h.node,injectFirst:h.bool});function Vf(e){return e==null||Object.keys(e).length===0}function ml(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(Vf(o)?r:o):t;return s.jsx(hr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(ml.propTypes={defaultTheme:h.object,styles:h.oneOfType([h.array,h.string,h.object,h.func])});/**
30
+ <%s key={someKey} {...props} />`,ja,zt,pc,zt),fn[zt+ja]=!0}}return p===n?ba(be):va(be),be}}function Sa(p,w,I){return mn(p,w,I,!0)}function xa(p,w,I){return mn(p,w,I,!1)}var kr=xa,wa=Sa;$r.Fragment=n,$r.jsx=kr,$r.jsxs=wa}()),$r}process.env.NODE_ENV==="production"?Ga.exports=Oc():Ga.exports=Tc();var s=Ga.exports;const Mc={$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"},Ic={"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"},Ec={"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"},kc={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 kn{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||kc,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 kn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new kn(this.logger,t)}}var ht=new kn;class Hn{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,c]=i;for(let u=0;u<c;u++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)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},Ko=e=>e==null?"":""+e,Lc=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},$c=/###/g,Ho=e=>e&&e.indexOf("###")>-1?e.replace($c,"."):e,Xo=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(Xo(e))return{};const o=Ho(n[a]);!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++a}return Xo(e)?{}:{obj:e,k:Ho(n[a])}},qo=(e,t,r)=>{const{obj:n,k:a}=Jr(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let o=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=r},Nc=(e,t,r,n)=>{const{obj:a,k:o}=Jr(e,t,Object);a[o]=a[o]||[],a[o].push(r)},Ln=(e,t)=>{const{obj:r,k:n}=Jr(e,t);if(r)return r[n]},Fc=(e,t,r)=>{const n=Ln(e,r);return n!==void 0?n:Ln(t,r)},Ai=(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]):Ai(e[n],t[n],r):e[n]=t[n]);return e},ir=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Dc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Uc=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Dc[t]):e;class Bc{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 Jc=[" ",",","?","!",";"],Vc=new Bc(20),Gc=(e,t,r)=>{t=t||"",r=r||"";const n=Jc.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const a=Vc.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(r);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},za=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 o=0;o<n.length;){if(!a||typeof a!="object")return;let i,l="";for(let c=o;c<n.length;++c)if(c!==o&&(l+=r),l+=n[c],i=a[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<n.length-1)continue;o+=c-o+1;break}a=i}return a},$n=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Yo extends Hn{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 o=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"&&o?l.push(...n.split(o)):l.push(n)));const c=Ln(this.data,l);return!c&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),c||!i||typeof n!="string"?c:za(this.data&&this.data[t]&&this.data[t][r],n,o)}addResource(t,r,n,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.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),qo(this.data,l,a),o.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 o in n)(typeof n[o]=="string"||Array.isArray(n[o]))&&this.addResource(t,r,o,n[o],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,o){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 c=Ln(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?Ai(c,n,o):c={...c,...n},qo(this.data,l,c),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 Pi={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,r,n,a))}),t}};const Zo={};class Nn extends Hn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Lc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ht.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 o=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Gc(t,n,a);if(i&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:o};const u=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(a)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}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,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const L=r.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${L}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${L}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:i}const m=this.resolve(t,r);let f=m&&m.res;const v=m&&m.usedKey||i,y=m&&m.exactUsedKey||i,_=Object.prototype.toString.apply(f),g=["[object Number]","[object Function]","[object RegExp]"],x=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject;if(j&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&g.indexOf(_)<0&&!(typeof x=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(m.res=L,m.usedParams=this.getUsedParamsDetails(r),m):L}if(o){const L=Array.isArray(f),R=L?[]:{},P=L?y:v;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const z=`${P}${o}${O}`;R[O]=this.translate(z,{...r,joinArrays:!1,ns:l}),R[O]===z&&(R[O]=f[O])}f=R}}else if(j&&typeof x=="string"&&Array.isArray(f))f=f.join(x),f&&(f=this.extendTranslation(f,t,r,n));else{let L=!1,R=!1;const P=r.count!==void 0&&typeof r.count!="string",O=Nn.hasDefaultValue(r),z=P?this.pluralResolver.getSuffix(u,r.count,r):"",le=r.ordinal&&P?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",ue=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ue&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(f)&&O&&(L=!0,f=D),this.isValidLookup(f)||(R=!0,f=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:f,q=O&&D!==f&&this.options.updateMissing;if(R||L||q){if(this.logger.log(q?"updateKey":"missingKey",u,c,i,q?D:f),o){const Q=this.resolve(i,{...r,keySeparator:!1});Q&&Q.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 H=[];const we=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&we&&we[0])for(let Q=0;Q<we.length;Q++)H.push(we[Q]);else this.options.saveMissingTo==="all"?H=this.languageUtils.toResolveHierarchy(r.lng||this.language):H.push(r.lng||this.language);const ce=(Q,Ae,Ee)=>{const at=O&&Ee!==f?Ee:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,c,Ae,at,q,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,c,Ae,at,q,r),this.emit("missingKey",Q,c,Ae,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?H.forEach(Q=>{const Ae=this.pluralResolver.getSuffixes(Q,r);ue&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ae.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ae.push(`${this.options.pluralSeparator}zero`),Ae.forEach(Ee=>{ce([Q],i+Ee,r[`defaultValue${Ee}`]||D)})}):ce(H,i,D))}f=this.extendTranslation(f,t,r,m,n),R&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${i}`),(R||L)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,L?f:void 0):f=this.options.parseMissingKeyHandler(f))}return a?(m.res=f,m.usedParams=this.getUsedParamsDetails(r),m):f}extendTranslation(t,r,n,a,o){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 u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let m=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,n.lng||this.language||a.usedLng,n),u){const f=t.match(this.interpolator.nestingRegexp),v=f&&f.length;d<v&&(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 f=arguments.length,v=new Array(f),y=0;y<f;y++)v[y]=arguments[y];return o&&o[0]===v[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${r[0]}`),null):i.translate(...v,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(t=Pi.handle(c,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,o,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;a=d;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",v=f&&!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);m.forEach(g=>{this.isValidLookup(n)||(l=g,!Zo[`${_[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Zo[`${_[0]}-${g}`]=!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(x=>{if(this.isValidLookup(n))return;i=x;const j=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(j,d,x,g,r);else{let L;f&&(L=this.pluralResolver.getSuffix(x,r.count,r));const R=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(j.push(d+L),r.ordinal&&L.indexOf(P)===0&&j.push(d+L.replace(P,this.options.pluralSeparator)),v&&j.push(d+R)),y){const O=`${d}${this.options.contextSeparator}${r.context}`;j.push(O),f&&(j.push(O+L),r.ordinal&&L.indexOf(P)===0&&j.push(O+L.replace(P,this.options.pluralSeparator)),v&&j.push(O+R))}}let C;for(;C=j.pop();)this.isValidLookup(n)||(o=C,n=this.getResource(x,g,C,r))}))})}),{res:n,usedKey:a,exactUsedKey:o,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 o of r)delete a[o]}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 Ca=e=>e.charAt(0).toUpperCase()+e.slice(1);class Qo{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ht.create("languageUtils")}getScriptPartFromCode(t){if(t=$n(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=$n(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]=Ca(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]=Ca(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ca(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(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),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=[],o=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"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),n.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}let zc=[{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}],Wc={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 Kc=["v1","v2","v3"],Hc=["v4"],es={zero:0,one:1,two:2,few:3,many:4,other:5},Xc=()=>{const e={};return zc.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Wc[t.fc]}})}),e};class qc{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ht.create("pluralResolver"),(!this.options.compatibilityJSON||Hc.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=Xc()}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($n(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,o)=>es[a]-es[o]).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 o=()=>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()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Kc.includes(this.options.compatibilityJSON)}}const ts=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,o=Fc(e,t,r);return!o&&a&&typeof r=="string"&&(o=za(e,r,n),o===void 0&&(o=za(t,r,n))),o},Aa=e=>e.replace(/\$/g,"$$$$");class Yc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ht.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:o,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:f,nestingPrefixEscaped:v,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:g,maxReplaces:x,alwaysFormat:j}=t.interpolation;this.escape=r!==void 0?r:Uc,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?ir(o):i||"{{",this.suffix=l?ir(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?ir(f):v||ir("$t("),this.nestingSuffix=y?ir(y):_||ir(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=x||1e3,this.alwaysFormat=j!==void 0?j:!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 o,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=v=>{if(v.indexOf(this.formatSeparator)<0){const x=ts(r,c,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,n,{...a,...r,interpolationkey:v}):x}const y=v.split(this.formatSeparator),_=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(ts(r,c,_,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...a,...r,interpolationkey:_})};this.resetRegExp();const d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Aa(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Aa(this.escape(v)):Aa(v)}].forEach(v=>{for(l=0;o=v.regex.exec(t);){const y=o[1].trim();if(i=u(y),i===void 0)if(typeof d=="function"){const g=d(t,o,a);i=typeof g=="string"?g:""}else if(a&&Object.prototype.hasOwnProperty.call(a,y))i="";else if(m){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=Ko(i));const _=v.safeValue(i);if(t=t.replace(o[0],_),m?(v.regex.lastIndex+=i.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const l=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const m=c.split(new RegExp(`${d}[ ]*{`));let f=`{${m[1]}`;c=m[0],f=this.interpolate(f,i);const v=f.match(/'/g),y=f.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),u&&(i={...u,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,_),`${c}${d}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(m=>m.trim());a[1]=d.shift(),c=d,u=!0}if(o=r(l.call(this,a[1].trim(),i),i),o&&a[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Ko(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),u&&(o=c.reduce((d,m)=>this.format(d,m,n.lng,{...n,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const Zc=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,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();r[d]||(r[d]=u),u==="false"&&(r[d]=!1),u==="true"&&(r[d]=!0),isNaN(u)||(r[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},lr=e=>{const t={};return(r,n,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={formatParams:{[a.interpolationkey]:a.formatParams[a.interpolationkey]},interpolationKey:a.interpolationkey});const i=n+JSON.stringify(o);let l=t[i];return l||(l=e($n(n),a),t[i]=l),l(r)}};class Qc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ht.create("formatter"),this.options=t,this.formats={number:lr((r,n)=>{const a=new Intl.NumberFormat(r,{...n});return o=>a.format(o)}),currency:lr((r,n)=>{const a=new Intl.NumberFormat(r,{...n,style:"currency"});return o=>a.format(o)}),datetime:lr((r,n)=>{const a=new Intl.DateTimeFormat(r,{...n});return o=>a.format(o)}),relativetime:lr((r,n)=>{const a=new Intl.RelativeTimeFormat(r,{...n});return o=>a.format(o,n.range||"day")}),list:lr((r,n)=>{const a=new Intl.ListFormat(r,{...n});return o=>a.format(o)})},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()]=lr(r)}format(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=r.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,c)=>{const{formatName:u,formatOptions:d}=Zc(c);if(this.formats[u]){let m=l;try{const f=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},v=f.locale||f.lng||a.locale||a.lng||n;m=this.formats[u](l,v,{...d,...a,...f})}catch(f){this.logger.warn(f)}return m}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const eu=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class tu extends Hn{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=ht.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 o={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(m=>{const f=`${u}|${m}`;!n.reload&&this.store.hasResourceBundle(u,m)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,d=!1,i[f]===void 0&&(i[f]=!0),o[f]===void 0&&(o[f]=!0),c[m]===void 0&&(c[m]=!0)))}),d||(l[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const a=t.split("|"),o=a[0],i=a[1];r&&this.emit("failedLoading",o,i,r),n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{Nc(c.loaded,[o],i),eu(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(m=>{l[u][m]===void 0&&(l[u][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=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:o,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&d&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,o*2,i)},o);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(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 o=this.queueLoad(t,r,n,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.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],o=n[1];this.read(a,o,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${o} for language ${a} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${o} for language ${a}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,a,o){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 c={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,a,c):d=u(t,r,n,a),d&&typeof d.then=="function"?d.then(m=>l(null,m)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,a,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}const rs=()=>({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}}),ns=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),hn=()=>{},ru=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Wr extends Hn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ns(t),this.services={},this.logger=ht,this.modules={external:[]},ru(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=rs();this.options={...a,...this.options,...ns(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 o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?ht.init(o(this.modules.logger),this.options):ht.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Qc);const m=new Qo(this.options);this.store=new Yo(this.options.resources,this.options);const f=this.services;f.logger=ht,f.resourceStore=this.store,f.languageUtils=m,f.pluralResolver=new qc(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(f.formatter=o(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Yc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new tu(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(v,..._)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Nn(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(v,..._)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=hn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=Nr(),u=()=>{const d=(m,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(f),n(m,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hn;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 o=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(o,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=hn),this.services.backendConnector.reload(t,r,o=>{a.resolve(),n(o)}),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"&&Pi.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 o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};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 o=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),m=2;m<u;m++)d[m-2]=arguments[m];c=a.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||o.lng,c.lngs=c.lngs||o.lngs,c.ns=c.ns||o.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||o.keyPrefix);const f=a.options.keySeparator||".";let v;return c.keyPrefix&&Array.isArray(i)?v=i.map(y=>`${c.keyPrefix}${f}${y}`):v=c.keyPrefix?`${c.keyPrefix}${f}${i}`:i,a.t(v,c)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=r,o.keyPrefix=n,o}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,o=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===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(o,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||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),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 Qo(rs());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 Wr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new Wr(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new Yo(this.store.data,a),o.services.resourceStore=o.store),o.translator=new Nn(o.services,a),o.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];o.emit(l,...u)}),o.init(a,r),o.translator.options=a,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Me=Wr.createInstance();Me.createInstance=Wr.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 Oi=Me.createInstance();Oi.use(wc).use(Dt.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:Ec},de:{translations:Ic}},ns:["translations"],defaultNS:"translations"});function en(e){return r=>s.jsx(nu,{children:s.jsx(e,{...r})})}const nu=({children:e})=>s.jsx(Dt.I18nextProvider,{i18n:Oi,children:e});function Ti(e,t){return function(){return e.apply(t,arguments)}}const{toString:au}=Object.prototype,{getPrototypeOf:go}=Object,Xn=(e=>t=>{const r=au.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Xn(t)===e),qn=e=>t=>typeof t===e,{isArray:Sr}=Array,Kr=qn("undefined");function ou(e){return e!==null&&!Kr(e)&&e.constructor!==null&&!Kr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Mi=lt("ArrayBuffer");function su(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Mi(e.buffer),t}const iu=qn("string"),We=qn("function"),Ii=qn("number"),Yn=e=>e!==null&&typeof e=="object",lu=e=>e===!0||e===!1,jn=e=>{if(Xn(e)!=="object")return!1;const t=go(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cu=lt("Date"),uu=lt("File"),du=lt("Blob"),fu=lt("FileList"),mu=e=>Yn(e)&&We(e.pipe),hu=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=Xn(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},pu=lt("URLSearchParams"),[gu,yu,_u,vu]=["ReadableStream","Request","Response","Headers"].map(lt),bu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tn(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 o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(n=0;n<i;n++)l=o[n],t.call(null,e[l],l,e)}}function Ei(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 Wt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ki=e=>!Kr(e)&&e!==Wt;function Wa(){const{caseless:e}=ki(this)&&this||{},t={},r=(n,a)=>{const o=e&&Ei(t,a)||a;jn(t[o])&&jn(n)?t[o]=Wa(t[o],n):jn(n)?t[o]=Wa({},n):Sr(n)?t[o]=n.slice():t[o]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&tn(arguments[n],r);return t}const Su=(e,t,r,{allOwnKeys:n}={})=>(tn(t,(a,o)=>{r&&We(a)?e[o]=Ti(a,r):e[o]=a},{allOwnKeys:n}),e),xu=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wu=(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)},ju=(e,t,r,n)=>{let a,o,i;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&go(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ru=(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},Cu=e=>{if(!e)return null;if(Sr(e))return e;let t=e.length;if(!Ii(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Au=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&go(Uint8Array)),Pu=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},Ou=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Tu=lt("HTMLFormElement"),Mu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),as=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Iu=lt("RegExp"),Li=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};tn(r,(a,o)=>{let i;(i=t(a,o,e))!==!1&&(n[o]=i||a)}),Object.defineProperties(e,n)},Eu=e=>{Li(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ku=(e,t)=>{const r={},n=a=>{a.forEach(o=>{r[o]=!0})};return Sr(e)?n(e):n(String(e).split(t)),r},Lu=()=>{},$u=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Pa="abcdefghijklmnopqrstuvwxyz",os="0123456789",$i={DIGIT:os,ALPHA:Pa,ALPHA_DIGIT:Pa+Pa.toUpperCase()+os},Nu=(e=16,t=$i.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Fu(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Du=e=>{const t=new Array(10),r=(n,a)=>{if(Yn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const o=Sr(n)?[]:{};return tn(n,(i,l)=>{const c=r(i,a+1);!Kr(c)&&(o[l]=c)}),t[a]=void 0,o}}return n};return r(e,0)},Uu=lt("AsyncFunction"),Bu=e=>e&&(Yn(e)||We(e))&&We(e.then)&&We(e.catch),Ni=((e,t)=>e?setImmediate:t?((r,n)=>(Wt.addEventListener("message",({source:a,data:o})=>{a===Wt&&o===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Wt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(Wt.postMessage)),Ju=typeof queueMicrotask<"u"?queueMicrotask.bind(Wt):typeof process<"u"&&process.nextTick||Ni,S={isArray:Sr,isArrayBuffer:Mi,isBuffer:ou,isFormData:hu,isArrayBufferView:su,isString:iu,isNumber:Ii,isBoolean:lu,isObject:Yn,isPlainObject:jn,isReadableStream:gu,isRequest:yu,isResponse:_u,isHeaders:vu,isUndefined:Kr,isDate:cu,isFile:uu,isBlob:du,isRegExp:Iu,isFunction:We,isStream:mu,isURLSearchParams:pu,isTypedArray:Au,isFileList:fu,forEach:tn,merge:Wa,extend:Su,trim:bu,stripBOM:xu,inherits:wu,toFlatObject:ju,kindOf:Xn,kindOfTest:lt,endsWith:Ru,toArray:Cu,forEachEntry:Pu,matchAll:Ou,isHTMLForm:Tu,hasOwnProperty:as,hasOwnProp:as,reduceDescriptors:Li,freezeMethods:Eu,toObjectSet:ku,toCamelCase:Mu,noop:Lu,toFiniteNumber:$u,findKey:Ei,global:Wt,isContextDefined:ki,ALPHABET:$i,generateString:Nu,isSpecCompliantForm:Fu,toJSONObject:Du,isAsyncFn:Uu,isThenable:Bu,setImmediate:Ni,asap:Ju};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)}S.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:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fi=J.prototype,Di={};["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=>{Di[e]={value:e}});Object.defineProperties(J,Di);Object.defineProperty(Fi,"isAxiosError",{value:!0});J.from=(e,t,r,n,a,o)=>{const i=Object.create(Fi);return S.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,a),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Vu=null;function Ka(e){return S.isPlainObject(e)||S.isArray(e)}function Ui(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function ss(e,t,r){return e?e.concat(t).map(function(a,o){return a=Ui(a),!r&&o?"["+a+"]":a}).join(r?".":""):t}function Gu(e){return S.isArray(e)&&!e.some(Ka)}const zu=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Zn(e,t,r){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=S.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,g){return!S.isUndefined(g[_])});const n=r.metaTokens,a=r.visitor||d,o=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(a))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(S.isDate(y))return y.toISOString();if(!c&&S.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(y)||S.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let x=y;if(y&&!g&&typeof y=="object"){if(S.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(S.isArray(y)&&Gu(y)||(S.isFileList(y)||S.endsWith(_,"[]"))&&(x=S.toArray(y)))return _=Ui(_),x.forEach(function(C,L){!(S.isUndefined(C)||C===null)&&t.append(i===!0?ss([_],L,o):i===null?_:_+"[]",u(C))}),!1}return Ka(y)?!0:(t.append(ss(g,_,o),u(y)),!1)}const m=[],f=Object.assign(zu,{defaultVisitor:d,convertValue:u,isVisitable:Ka});function v(y,_){if(!S.isUndefined(y)){if(m.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));m.push(y),S.forEach(y,function(x,j){(!(S.isUndefined(x)||x===null)&&a.call(t,x,S.isString(j)?j.trim():j,_,f))===!0&&v(x,_?_.concat(j):[j])}),m.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return v(e),t}function is(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function yo(e,t){this._pairs=[],e&&Zn(e,this,t)}const Bi=yo.prototype;Bi.append=function(t,r){this._pairs.push([t,r])};Bi.toString=function(t){const r=t?function(n){return t.call(this,n,is)}:is;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Wu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ji(e,t,r){if(!t)return e;const n=r&&r.encode||Wu,a=r&&r.serialize;let o;if(a?o=a(t,r):o=S.isURLSearchParams(t)?t.toString():new yo(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ls{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){S.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Vi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ku=typeof URLSearchParams<"u"?URLSearchParams:yo,Hu=typeof FormData<"u"?FormData:null,Xu=typeof Blob<"u"?Blob:null,qu={isBrowser:!0,classes:{URLSearchParams:Ku,FormData:Hu,Blob:Xu},protocols:["http","https","file","blob","url","data"]},_o=typeof window<"u"&&typeof document<"u",Yu=(e=>_o&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Zu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qu=_o&&window.location.href||"http://localhost",ed=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_o,hasStandardBrowserEnv:Yu,hasStandardBrowserWebWorkerEnv:Zu,origin:Qu},Symbol.toStringTag,{value:"Module"})),st={...ed,...qu};function td(e,t){return Zn(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,o){return st.isNode&&S.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function rd(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nd(e){const t={},r=Object.keys(e);let n;const a=r.length;let o;for(n=0;n<a;n++)o=r[n],t[o]=e[o];return t}function Gi(e){function t(r,n,a,o){let i=r[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=o>=r.length;return i=!i&&S.isArray(a)?a.length:i,c?(S.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!l):((!a[i]||!S.isObject(a[i]))&&(a[i]=[]),t(r,n,a[i],o)&&S.isArray(a[i])&&(a[i]=nd(a[i])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const r={};return S.forEachEntry(e,(n,a)=>{t(rd(n),a,r,0)}),r}return null}function ad(e,t,r){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const rn={transitional:Vi,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return a?JSON.stringify(Gi(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return td(t,this.formSerializer).toString();if((l=S.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Zn(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||a?(r.setContentType("application/json",!1),ad(t)):t}],transformResponse:[function(t){const r=this.transitional||rn.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.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}}};S.forEach(["delete","get","head","post","put","patch"],e=>{rn.headers[e]={}});const od=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sd=e=>{const t={};let r,n,a;return e&&e.split(`
31
+ `).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),n=i.substring(a+1).trim(),!(!r||t[r]&&od[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},cs=Symbol("internals");function Fr(e){return e&&String(e).trim().toLowerCase()}function Rn(e){return e===!1||e==null?e:S.isArray(e)?e.map(Rn):String(e)}function id(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 ld=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oa(e,t,r,n,a){if(S.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!S.isString(t)){if(S.isString(n))return t.indexOf(n)!==-1;if(S.isRegExp(n))return n.test(t)}}function cd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ud(e,t){const r=S.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,o,i){return this[n].call(this,t,a,o,i)},configurable:!0})})}let Fe=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function o(l,c,u){const d=Fr(c);if(!d)throw new Error("header name must be a non-empty string");const m=S.findKey(a,d);(!m||a[m]===void 0||u===!0||u===void 0&&a[m]!==!1)&&(a[m||c]=Rn(l))}const i=(l,c)=>S.forEach(l,(u,d)=>o(u,d,c));if(S.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(S.isString(t)&&(t=t.trim())&&!ld(t))i(sd(t),r);else if(S.isHeaders(t))for(const[l,c]of t.entries())o(c,l,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=Fr(t),t){const n=S.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return id(a);if(S.isFunction(r))return r.call(this,a,n);if(S.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Fr(t),t){const n=S.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Oa(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function o(i){if(i=Fr(i),i){const l=S.findKey(n,i);l&&(!r||Oa(n,n[l],l,r))&&(delete n[l],a=!0)}}return S.isArray(t)?t.forEach(o):o(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const o=r[n];(!t||Oa(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const r=this,n={};return S.forEach(this,(a,o)=>{const i=S.findKey(n,o);if(i){r[i]=Rn(a),delete r[o];return}const l=t?cd(o):String(o).trim();l!==o&&delete r[o],r[l]=Rn(a),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return S.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&S.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(`
32
+ `)}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[cs]=this[cs]={accessors:{}}).accessors,a=this.prototype;function o(i){const l=Fr(i);n[l]||(ud(a,i),n[l]=!0)}return S.isArray(t)?t.forEach(o):o(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});S.freezeMethods(Fe);function Ta(e,t){const r=this||rn,n=t||r,a=Fe.from(n.headers);let o=n.data;return S.forEach(e,function(l){o=l.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function zi(e){return!!(e&&e.__CANCEL__)}function xr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}S.inherits(xr,J,{__CANCEL__:!0});function Wi(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 dd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[o];i||(i=u),r[a]=c,n[a]=u;let m=o,f=0;for(;m!==a;)f+=r[m++],m=m%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),u-i<t)return;const v=d&&u-d;return v?Math.round(f*1e3/v):void 0}}function md(e,t){let r=0,n=1e3/t,a,o;const i=(u,d=Date.now())=>{r=d,a=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),m=d-r;m>=n?i(u,d):(a=u,o||(o=setTimeout(()=>{o=null,i(a)},n-m)))},()=>a&&i(a)]}const Fn=(e,t,r=3)=>{let n=0;const a=fd(50,250);return md(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-n,u=a(c),d=i<=l;n=i;const m={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(m)},r)},us=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ds=e=>(...t)=>S.asap(()=>e(...t)),hd=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(o){let i=o;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=S.isString(i)?a(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),pd=st.hasStandardBrowserEnv?{write(e,t,r,n,a,o){const i=[e+"="+encodeURIComponent(t)];S.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),S.isString(n)&&i.push("path="+n),S.isString(a)&&i.push("domain="+a),o===!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 gd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ki(e,t){return e&&!gd(t)?yd(e,t):t}const fs=e=>e instanceof Fe?{...e}:e;function Ht(e,t){t=t||{};const r={};function n(u,d,m){return S.isPlainObject(u)&&S.isPlainObject(d)?S.merge.call({caseless:m},u,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function a(u,d,m){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u,m)}else return n(u,d,m)}function o(u,d){if(!S.isUndefined(d))return n(void 0,d)}function i(u,d){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,m){if(m in t)return n(u,d);if(m in e)return n(void 0,u)}const c={url:o,method:o,data:o,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:(u,d)=>a(fs(u),fs(d),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(d){const m=c[d]||a,f=m(e[d],t[d],d);S.isUndefined(f)&&m!==l||(r[d]=f)}),r}const Hi=e=>{const t=Ht({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=Ji(Ki(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(S.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&S.isFunction(n)&&(n=n(t)),n||n!==!1&&hd(t.url))){const u=a&&o&&pd.read(o);u&&i.set(a,u)}return t},_d=typeof XMLHttpRequest<"u",vd=_d&&function(e){return new Promise(function(r,n){const a=Hi(e);let o=a.data;const i=Fe.from(a.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=a,d,m,f,v,y;function _(){v&&v(),y&&y(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function x(){if(!g)return;const C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),R={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};Wi(function(O){r(O),_()},function(O){n(O),_()},R),g=null}"onloadend"in g?g.onloadend=x:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(x)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let L=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const R=a.transitional||Vi;a.timeoutErrorMessage&&(L=a.timeoutErrorMessage),n(new J(L,R.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},o===void 0&&i.setContentType(null),"setRequestHeader"in g&&S.forEach(i.toJSON(),function(L,R){g.setRequestHeader(R,L)}),S.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),l&&l!=="json"&&(g.responseType=a.responseType),u&&([f,y]=Fn(u,!0),g.addEventListener("progress",f)),c&&g.upload&&([m,v]=Fn(c),g.upload.addEventListener("progress",m),g.upload.addEventListener("loadend",v)),(a.cancelToken||a.signal)&&(d=C=>{g&&(n(!C||C.type?new xr(null,e,g):C),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const j=dd(a.url);if(j&&st.protocols.indexOf(j)===-1){n(new J("Unsupported protocol "+j+":",J.ERR_BAD_REQUEST,e));return}g.send(o||null)})},bd=(e,t)=>{let r=new AbortController,n;const a=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof J?u:new xr(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{a(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",a):c.unsubscribe(a))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{o&&clearTimeout(o),o=null}]},Sd=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},xd=async function*(e,t,r){for await(const n of e)yield*Sd(ArrayBuffer.isView(n)?n:await r(String(n)),t)},ms=(e,t,r,n,a)=>{const o=xd(e,t,a);let i=0,l,c=u=>{l||(l=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:m}=await o.next();if(d){c(),u.close();return}let f=m.byteLength;if(r){let v=i+=f;r(v)}u.enqueue(new Uint8Array(m))}catch(d){throw c(d),d}},cancel(u){return c(u),o.return()}},{highWaterMark:2})},Qn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xi=Qn&&typeof ReadableStream=="function",Ha=Qn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qi=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wd=Xi&&qi(()=>{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}),hs=64*1024,Xa=Xi&&qi(()=>S.isReadableStream(new Response("").body)),Dn={stream:Xa&&(e=>e.body)};Qn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Dn[t]&&(Dn[t]=S.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 jd=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Ha(e)).byteLength},Rd=async(e,t)=>{const r=S.toFiniteNumber(e.getContentLength());return r??jd(t)},Cd=Qn&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:f}=Hi(e);u=u?(u+"").toLowerCase():"text";let[v,y]=a||o||i?bd([a,o],i):[],_,g;const x=()=>{!_&&setTimeout(()=>{v&&v.unsubscribe()}),_=!0};let j;try{if(c&&wd&&r!=="get"&&r!=="head"&&(j=await Rd(d,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(S.isFormData(n)&&(O=P.headers.get("content-type"))&&d.setContentType(O),P.body){const[z,le]=us(j,Fn(ds(c)));n=ms(P.body,hs,z,le,Ha)}}S.isString(m)||(m=m?"include":"omit"),g=new Request(t,{...f,signal:v,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:m});let C=await fetch(g);const L=Xa&&(u==="stream"||u==="response");if(Xa&&(l||L)){const P={};["status","statusText","headers"].forEach(ue=>{P[ue]=C[ue]});const O=S.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&us(O,Fn(ds(l),!0))||[];C=new Response(ms(C.body,hs,z,()=>{le&&le(),L&&x()},Ha),P)}u=u||"text";let R=await Dn[S.findKey(Dn,u)||"text"](C,e);return!L&&x(),y&&y(),await new Promise((P,O)=>{Wi(P,O,{data:R,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw x(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:C.cause||C}):J.from(C,C&&C.code,e,g)}}),qa={http:Vu,xhr:vd,fetch:Cd};S.forEach(qa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ps=e=>`- ${e}`,Ad=e=>S.isFunction(e)||e===null||e===!1,Yi={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let o=0;o<t;o++){r=e[o];let i;if(n=r,!Ad(r)&&(n=qa[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;a[i||"#"+o]=n}if(!n){const o=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
33
+ `+o.map(ps).join(`
34
+ `):" "+ps(o[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:qa};function Ma(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function gs(e){return Ma(e),e.headers=Fe.from(e.headers),e.data=Ta.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yi.getAdapter(e.adapter||rn.adapter)(e).then(function(n){return Ma(e),n.data=Ta.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return zi(n)||(Ma(e),n&&n.response&&(n.response.data=Ta.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const Zi="1.7.4",vo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ys={};vo.transitional=function(t,r,n){function a(o,i){return"[Axios v"+Zi+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,l)=>{if(t===!1)throw new J(a(i," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!ys[i]&&(ys[i]=!0,console.warn(a(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Pd(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 o=n[a],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new J("option "+o+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}}const Ya={assertOptions:Pd,validators:vo},kt=Ya.validators;let Kt=class{constructor(t){this.defaults=t,this.interceptors={request:new ls,response:new ls}}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 o=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
35
+ `+o):n.stack=o}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:o}=r;n!==void 0&&Ya.assertOptions(n,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean)},!1),a!=null&&(S.isFunction(a)?r.paramsSerializer={serialize:a}:Ya.assertOptions(a,{encode:kt.function,serialize:kt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&S.merge(o.common,o[r.method]);o&&S.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),r.headers=Fe.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let d,m=0,f;if(!c){const y=[gs.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),f=y.length,d=Promise.resolve(r);m<f;)d=d.then(y[m++],y[m++]);return d}f=l.length;let v=r;for(m=0;m<f;){const y=l[m++],_=l[m++];try{v=y(v)}catch(g){_.call(this,g);break}}try{d=gs.call(this,v)}catch(y){return Promise.reject(y)}for(m=0,f=u.length;m<f;)d=d.then(u[m++],u[m++]);return d}getUri(t){t=Ht(this.defaults,t);const r=Ki(t.baseURL,t.url);return Ji(r,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){Kt.prototype[t]=function(r,n){return this.request(Ht(n||{},{method:t,url:r,data:(n||{}).data}))}});S.forEach(["post","put","patch"],function(t){function r(n){return function(o,i,l){return this.request(Ht(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Kt.prototype[t]=r(),Kt.prototype[t+"Form"]=r(!0)});let Od=class Qi{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(a=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](a);n._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(l=>{n.subscribe(l),o=l}).then(a);return i.cancel=function(){n.unsubscribe(o)},i},t(function(o,i,l){n.reason||(n.reason=new xr(o,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 Qi(function(a){t=a}),cancel:t}}};function Td(e){return function(r){return e.apply(null,r)}}function Md(e){return S.isObject(e)&&e.isAxiosError===!0}const Za={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(Za).forEach(([e,t])=>{Za[t]=e});function el(e){const t=new Kt(e),r=Ti(Kt.prototype.request,t);return S.extend(r,Kt.prototype,t,{allOwnKeys:!0}),S.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return el(Ht(e,a))},r}const xe=el(rn);xe.Axios=Kt;xe.CanceledError=xr;xe.CancelToken=Od;xe.isCancel=zi;xe.VERSION=Zi;xe.toFormData=Zn;xe.AxiosError=J;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=Td;xe.isAxiosError=Md;xe.mergeConfig=Ht;xe.AxiosHeaders=Fe;xe.formToJSON=e=>Gi(S.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=Yi.getAdapter;xe.HttpStatusCode=Za;xe.default=xe;const{Axios:Y_,AxiosError:_s,CanceledError:Z_,isCancel:Q_,CancelToken:ev,VERSION:tv,all:rv,Cancel:nv,isAxiosError:av,spread:ov,toFormData:sv,AxiosHeaders:iv,HttpStatusCode:lv,formToJSON:cv,getAdapter:uv,mergeConfig:dv}=xe;function Id(e){try{return JSON.stringify(e)}catch{return}}function Ed(e){var t,r,n,a;return e instanceof _s&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof _s&&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: ${Id(e)||e}`}const bo=e=>{const t=e.softTimeout||3e3,[r,n]=Z.useState(!1);return Z.useEffect(()=>{const a=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(a)}),s.jsx(E.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(kd,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(E.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(E.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},kd=e=>{const t=Ed(e.error),r=e.error instanceof Error?e.error.stack:null,n=E.useTheme();return s.jsxs(E.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:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},Ld=Z.lazy(()=>import("@monaco-editor/react")),$d=en(e=>{const t=E.useTheme(),r=Z.useRef(null),[n,a]=Z.useState("dark-plus"),o=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(l){const[{createHighlighter:c},{shikiToMonaco:u}]=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 c({langs:[Mc],themes:["dark-plus","light-plus"]})),u(r.current,l),l.editor.defineTheme(o,{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(o)}return s.jsx(Z.Suspense,{fallback:s.jsx(bo,{}),children:s.jsx(Ld,{value:e.code,onMount:(l,c)=>{i(c)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})}),Nd="(^joint_[0-9]+$)|(_J[0-9]+$)";function tl(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>tl(t))]}function Fd(e,t){return new RegExp(t??Nd).test(e)}function rl(e,t){return tl(e).filter(r=>Fd(r.name,t))}function ea(e){Z.useEffect(e,[])}function nl(e){ea(()=>wt.autorun(e))}function So(e,t,r){ea(()=>wt.reaction(e,t,r))}function wr(e){return ea(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function me({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){b.Globals.assign({frameLoop:"always"});const a=Z.useRef([]),o=Z.useRef([]),{scene:i,invalidate:l}=jc.useThree();Z.useEffect(()=>{const f=i.getObjectByName(t);f&&(o.current=n?n(f):rl(f),u(),l())},[]);function c(f){a.current=f,m.start(Object.assign({},a.current))}function u(){const f=o.current.map((v,y)=>d[y].get());r(o.current,f)}nl(()=>{const f=e.state.joint_position.joints.filter(v=>v!==void 0);requestAnimationFrame(()=>c(f))});const[d,m]=b.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function Dd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(b.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(b.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:a.UR3_05.geometry,material:o.Standard}),s.jsxs(b.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:a.UR3_L06.geometry,material:o.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:a.UR3_L04.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:a.UR3_L03.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:a.UR3_L02.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:a.UR3_L01.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:a.UR3_L00.geometry,material:o.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Ud({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(b.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(b.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(b.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:a.UR3e_L06.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:a.UR3e_L05.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:a.UR3e_L04.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:a.UR3e_L03.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:a.UR3e_L02.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:a.UR3e_L01.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:a.UR3e_L00.geometry,material:o.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Bd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J00",children:[s.jsxs(b.animated.group,{name:"link_1",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals_1.geometry,material:o.universalrobots_darkgrey}),s.jsx("mesh",{name:"visuals_1_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals_1_1.geometry,material:o.universalrobots_black}),s.jsx("mesh",{name:"visuals_1_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals_1_2.geometry,material:o.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_1_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals_1_3.geometry,material:o.universalrobots_lightblue})]}),s.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J01",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"link_2",position:[0,0,.089],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals_2.geometry,material:o.universalrobots_stainlesssteel}),s.jsx("mesh",{name:"visuals_2_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals_2_1.geometry,material:o.universalrobots_lightblue}),s.jsx("mesh",{name:"visuals_2_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals_2_2.geometry,material:o.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_2_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals_2_3.geometry,material:o.universalrobots_black}),s.jsx("mesh",{name:"visuals_2_4",castShadow:!0,receiveShadow:!0,geometry:a.visuals_2_4.geometry,material:o.universalrobots_darkgrey})]}),s.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J02",position:[-.425,0,0],children:[s.jsxs(b.animated.group,{name:"link_3",position:[.425,0,.089],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"visuals_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals_3.geometry,material:o.universalrobots_lightblue}),s.jsx("mesh",{name:"visuals_3_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals_3_1.geometry,material:o.universalrobots_black}),s.jsx("mesh",{name:"visuals_3_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals_3_2.geometry,material:o.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_3_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals_3_3.geometry,material:o.universalrobots_darkgrey}),s.jsx("mesh",{name:"visuals_3_4",castShadow:!0,receiveShadow:!0,geometry:a.visuals_3_4.geometry,material:o.universalrobots_stainlesssteel})]}),s.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J03",position:[-.392,0,0],children:[s.jsxs(b.animated.group,{name:"link_4",position:[.817,0,.089],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"visuals_4",castShadow:!0,receiveShadow:!0,geometry:a.visuals_4.geometry,material:o.universalrobots_darkgrey}),s.jsx("mesh",{name:"visuals_4_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals_4_1.geometry,material:o.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_4_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals_4_2.geometry,material:o.universalrobots_lightblue}),s.jsx("mesh",{name:"visuals_4_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals_4_3.geometry,material:o.universalrobots_black})]}),s.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J04",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"link_5",position:[.817,.089,.109],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"visuals_5",castShadow:!0,receiveShadow:!0,geometry:a.visuals_5.geometry,material:o.universalrobots_darkgrey}),s.jsx("mesh",{name:"visuals_5_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals_5_1.geometry,material:o.universalrobots_lightblue}),s.jsx("mesh",{name:"visuals_5_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals_5_2.geometry,material:o.universalrobots_aluminum}),s.jsx("mesh",{name:"visuals_5_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals_5_3.geometry,material:o.universalrobots_black})]}),s.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_J05",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:a.link_6.geometry,material:o.universalrobots_stainlesssteel,position:[.817,-.109,-.005],rotation:[-Math.PI/2,0,0]}),s.jsx(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB3_FLG",position:[0,.082,0]})]})]})]})]})]})]}),s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:a.link_0.geometry,material:o.universalrobots_aluminum})]})})]})}function Jd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(b.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(b.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:a["C-1000255"].geometry,material:o.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000255_1"].geometry,material:o.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:a["C-1000253"].geometry,material:o.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000253_1"].geometry,material:o.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000253_2"].geometry,material:o.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000253_3"].geometry,material:o.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:a["C-1000251"].geometry,material:o.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000251_1"].geometry,material:o.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000251_2"].geometry,material:o.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000251_3"].geometry,material:o.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:a["C-1000250"].geometry,material:o.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000250_1"].geometry,material:o.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000250_2"].geometry,material:o.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000250_3"].geometry,material:o.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:a["C-1000250_4"].geometry,material:o.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:a["C-1000249"].geometry,material:o.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000249_1"].geometry,material:o.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000249_2"].geometry,material:o.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000249_3"].geometry,material:o.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:a["C-1000249_4"].geometry,material:o.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:a["C-1000248"].geometry,material:o.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000248_1"].geometry,material:o.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000248_2"].geometry,material:o.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000248_3"].geometry,material:o.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:a["C-1000257"].geometry,material:o.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000257_1"].geometry,material:o.Metal})]})})]})})})]})}function Vd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(b.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(b.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:a.UR10_L06.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:a.UR10_L05.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:a.UR10_L04.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:a.UR10_L03.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:a.UR10_L02.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:a.UR10_L01.geometry,material:o.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:a.UR10_L00.geometry,material:o.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Gd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(b.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(b.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:a["C-1000493"].geometry,material:o.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:a["C-1000493_1"].geometry,material:o.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:a["C-1000492"].geometry,material:o.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:a["C-1000492_1"].geometry,material:o.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:a["C-1000492_2"].geometry,material:o.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:a["C-1000492_3"].geometry,material:o.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:a["C-1000491"].geometry,material:o.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:a["C-1000491_1"].geometry,material:o.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:a["C-1000491_2"].geometry,material:o.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:a["C-1000491_3"].geometry,material:o.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:a["C-1000490"].geometry,material:o.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:a["C-1000490_1"].geometry,material:o.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:a["C-1000490_2"].geometry,material:o.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:a["C-1000490_3"].geometry,material:o.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(b.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:a["C-1000489"].geometry,material:o.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:a["C-1000489_1"].geometry,material:o.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:a["C-1000489_2"].geometry,material:o.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:a["C-1000489_3"].geometry,material:o.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:a["C-1000489_4"].geometry,material:o.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:a["C-1000488"].geometry,material:o.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:a["C-1000488_1"].geometry,material:o.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:a["C-1000488_2"].geometry,material:o.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:a["C-1000488_3"].geometry,material:o.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:a["C-1000487"].geometry,material:o.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:a["C-1000487_1"].geometry,material:o.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function vs({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(b.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:a.AR900_L06.geometry,material:o["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:a.AR900_L05.geometry,material:o["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:a.AR900_L04.geometry,material:o["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:a.AR900_L03.geometry,material:o["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:a.AR900_L02.geometry,material:o["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:a.AR900_L01.geometry,material:o["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:a.AR900_L00.geometry,material:o["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function zd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(b.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(b.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L06_CAD.geometry,material:o.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L05_CAD.geometry,material:o.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L04_CAD001.geometry,material:o.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L04_CAD001_1.geometry,material:o.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L03_CAD001.geometry,material:o.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L03_CAD001_1.geometry,material:o.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L02_CAD.geometry,material:o.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L01_CAD001.geometry,material:o.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L01_CAD001_1.geometry,material:o.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:a.AR1440_L00_CAD.geometry,material:o.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function Wd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(b.animated.group,{name:"AR1730_J00",children:[s.jsxs(b.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(b.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:a.AR1730_L06.geometry,material:o.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:a.AR1730_L05.geometry,material:o.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:a._R_AXIS_SW0001002.geometry,material:o.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:a._R_AXIS_SW0001002_1.geometry,material:o.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:a._U_AXIS_SW0001002.geometry,material:o.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:a._U_AXIS_SW0001002_1.geometry,material:o.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:a.AR1730_L02.geometry,material:o.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:a._S_AXIS_SW0001002.geometry,material:o.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:a._S_AXIS_SW0001002_1.geometry,material:o.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:a.AR1730_L00.geometry,material:o.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function Kd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(b.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(b.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_06001.geometry,material:o.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_06001_1.geometry,material:o.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_L05.geometry,material:o.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_04001.geometry,material:o.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_04001_1.geometry,material:o.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_03001.geometry,material:o.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_03001_1.geometry,material:o.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_L02.geometry,material:o.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_01001.geometry,material:o.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_01001_1.geometry,material:o.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:a.AR2010_L00.geometry,material:o.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function Hd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(b.animated.group,{name:"AR3120_J00",children:[s.jsxs(b.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(b.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:a.AR3120_L06.geometry,material:o["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:a.AR3120_L05.geometry,material:o["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:a.R_AXIS_GP20HL001.geometry,material:o["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:a.R_AXIS_GP20HL001_1.geometry,material:o["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_3001.geometry,material:o["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_3001_1.geometry,material:o["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:a.AR3120_L02.geometry,material:o["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:a.S_AXIS_GP20HL001.geometry,material:o["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:a.S_AXIS_GP20HL001_1.geometry,material:o["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:a.AR3120_L00.geometry,material:o["Blue.001"],position:[0,-.54,0]})]})})]})}function Xd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs("group",{name:"link_0",children:[s.jsx("mesh",{name:"shape439",castShadow:!0,receiveShadow:!0,geometry:a.shape439.geometry,material:o.yaskawa_blue}),s.jsx("mesh",{name:"shape439_1",castShadow:!0,receiveShadow:!0,geometry:a.shape439_1.geometry,material:o.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape439_2",castShadow:!0,receiveShadow:!0,geometry:a.shape439_2.geometry,material:o.yaskawa_black})]}),s.jsxs(b.animated.group,{name:"YASKAWA_GP50_J00",position:[0,-.54,0],children:[s.jsxs("group",{name:"link_1",position:[0,.54,0],children:[s.jsx("mesh",{name:"shape320",castShadow:!0,receiveShadow:!0,geometry:a.shape320.geometry,material:o.yaskawa_blue}),s.jsx("mesh",{name:"shape320_1",castShadow:!0,receiveShadow:!0,geometry:a.shape320_1.geometry,material:o.yaskawa_black}),s.jsx("mesh",{name:"shape320_2",castShadow:!0,receiveShadow:!0,geometry:a.shape320_2.geometry,material:o.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape320_3",castShadow:!0,receiveShadow:!0,geometry:a.shape320_3.geometry,material:o.yaskawa_black}),s.jsx("mesh",{name:"shape320_4",castShadow:!0,receiveShadow:!0,geometry:a.shape320_4.geometry,material:o.yaskawa_white}),s.jsx("mesh",{name:"shape320_5",castShadow:!0,receiveShadow:!0,geometry:a.shape320_5.geometry,material:o.yaskawa_black})]}),s.jsxs(b.animated.group,{name:"YASKAWA_GP50_J01",position:[.145,.54,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs("group",{name:"link_2",position:[0,0,.145],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape440",castShadow:!0,receiveShadow:!0,geometry:a.shape440.geometry,material:o.yaskawa_blue}),s.jsx("mesh",{name:"shape440_1",castShadow:!0,receiveShadow:!0,geometry:a.shape440_1.geometry,material:o.yaskawa_white}),s.jsx("mesh",{name:"shape440_2",castShadow:!0,receiveShadow:!0,geometry:a.shape440_2.geometry,material:o.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape440_3",castShadow:!0,receiveShadow:!0,geometry:a.shape440_3.geometry,material:o.yaskawa_black})]}),s.jsxs(b.animated.group,{name:"YASKAWA_GP50_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs("group",{name:"link_3",position:[-.87,0,-.145],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape341",castShadow:!0,receiveShadow:!0,geometry:a.shape341.geometry,material:o.yaskawa_blue}),s.jsx("mesh",{name:"shape341_1",castShadow:!0,receiveShadow:!0,geometry:a.shape341_1.geometry,material:o.yaskawa_white}),s.jsx("mesh",{name:"shape341_2",castShadow:!0,receiveShadow:!0,geometry:a.shape341_2.geometry,material:o.yaskawa_black}),s.jsx("mesh",{name:"shape341_3",castShadow:!0,receiveShadow:!0,geometry:a.shape341_3.geometry,material:o.yaskawa_black}),s.jsx("mesh",{name:"shape341_4",castShadow:!0,receiveShadow:!0,geometry:a.shape341_4.geometry,material:o.yaskawa_metalsilver}),s.jsx("mesh",{name:"shape341_5",castShadow:!0,receiveShadow:!0,geometry:a.shape341_5.geometry,material:o.yaskawa_metalsilver})]}),s.jsxs(b.animated.group,{name:"YASKAWA_GP50_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_4",castShadow:!0,receiveShadow:!0,geometry:a.link_4.geometry,material:o.yaskawa_blue,position:[-1.08,.145,0],rotation:[0,0,-Math.PI/2]}),s.jsxs(b.animated.group,{name:"YASKAWA_GP50_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_5",castShadow:!0,receiveShadow:!0,geometry:a.link_5.geometry,material:o.yaskawa_blue,position:[-1.08,0,-1.17],rotation:[-Math.PI/2,0,-Math.PI/2]}),s.jsxs(b.animated.group,{name:"YASKAWA_GP50_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:a.link_6.geometry,material:o.yaskawa_metalsilver,position:[-1.08,1.17,0],rotation:[0,0,-Math.PI/2]}),s.jsx("group",{name:"YASKAWA_GP50_FLG",position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})]})}function qd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(b.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(b.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(b.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:a.CRX10iA_L06.geometry,material:o.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:a.J5CASING_UNIT001.geometry,material:o.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:a.J5CASING_UNIT001_1.geometry,material:o.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:a.NAME_LABEL_CRX_10iA.geometry,material:o.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:a.NAME_LABEL_CRX_10iA_1.geometry,material:o.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:a.NAME_LABEL_CRX_10iA_2.geometry,material:o.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:a.CRX10iA_L03.geometry,material:o.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:a.CRX10iA_L02.geometry,material:o.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:a.J2BASE_UNIT001.geometry,material:o.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:a.J2BASE_UNIT001_1.geometry,material:o.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:a.J2BASE_UNIT001_2.geometry,material:o.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:a.CRX10iA_L00.geometry,material:o.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function Yd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:a.link_0.geometry,material:o.fanuc_metal_black}),s.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(b.animated.group,{name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:a.link_6.geometry,material:o.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),s.jsxs(b.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape053",castShadow:!0,receiveShadow:!0,geometry:a.shape053.geometry,material:o.fanuc_white}),s.jsx("mesh",{name:"shape053_1",castShadow:!0,receiveShadow:!0,geometry:a.shape053_1.geometry,material:o.fanuc_green})]})]}),s.jsxs(b.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape054",castShadow:!0,receiveShadow:!0,geometry:a.shape054.geometry,material:o.fanuc_white}),s.jsx("mesh",{name:"shape054_1",castShadow:!0,receiveShadow:!0,geometry:a.shape054_1.geometry,material:o.fanuc_red}),s.jsx("mesh",{name:"shape054_2",castShadow:!0,receiveShadow:!0,geometry:a.shape054_2.geometry,material:o.fanuc_metal_black})]})]}),s.jsxs(b.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape009",castShadow:!0,receiveShadow:!0,geometry:a.shape009.geometry,material:o.fanuc_green}),s.jsx("mesh",{name:"shape009_1",castShadow:!0,receiveShadow:!0,geometry:a.shape009_1.geometry,material:o.fanuc_white})]})]}),s.jsx("mesh",{name:"link_2",castShadow:!0,receiveShadow:!0,geometry:a.link_2.geometry,material:o.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_1",position:[0,.245,0],children:[s.jsx("mesh",{name:"shape005",castShadow:!0,receiveShadow:!0,geometry:a.shape005.geometry,material:o.fanuc_white}),s.jsx("mesh",{name:"shape005_1",castShadow:!0,receiveShadow:!0,geometry:a.shape005_1.geometry,material:o.fanuc_green})]})]})]})})]})}function Zd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:a.J1BASE_NetGen_Coarse.geometry,material:o.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:a.J1BASE_NetGen_Coarse_1.geometry,material:o.Fanuc_GreenPlastic})]}),s.jsxs(b.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(b.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(b.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:a.CRX25iA_L06.geometry,material:o.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:a.J6CASING_NetGen_Coarse.geometry,material:o.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:a.J6CASING_NetGen_Coarse_1.geometry,material:o.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:a.J3ARM_NetGen_Coarse.geometry,material:o.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:a.J3ARM_NetGen_Coarse_1.geometry,material:o.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:a.J3ARM_NetGen_Coarse_2.geometry,material:o.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:a.J3CASING_NetGen_Coarse.geometry,material:o.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:a.J3CASING_NetGen_Coarse_1.geometry,material:o.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:a.CRX25iA_L02.geometry,material:o.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:a.J2BASE_NetGen_Coarse.geometry,material:o.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:a.J2BASE_NetGen_Coarse_1.geometry,material:o.Fanuc_GreenLED})]})]})]})})]})}function Qd({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(b.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(b.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(b.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:a.CRX10iA_L06.geometry,material:o["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:a.J5CASING_UNIT001.geometry,material:o["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:a.J5CASING_UNIT001_1.geometry,material:o["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:a.NAME_LABEL_CRX_10iA_L001.geometry,material:o["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:a.NAME_LABEL_CRX_10iA_L001_1.geometry,material:o["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:a.NAME_LABEL_CRX_10iA_L001_2.geometry,material:o["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:a.J3CASING_UNIT001.geometry,material:o["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:a.J3CASING_UNIT001_1.geometry,material:o["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:a.CRX10iA_L02.geometry,material:o["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:a.J2BASE_UNIT001.geometry,material:o["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:a.J2BASE_UNIT001_1.geometry,material:o["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:a.J2BASE_UNIT001_2.geometry,material:o["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:a.CRX10iA_L00.geometry,material:o["Fanuc_BlackMetal.001"]})]})})]})}function ef({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(b.animated.group,{name:"joint_01",children:[s.jsxs(b.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:a.visuals006.geometry,material:o.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals005_1.geometry,material:o.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals005_2.geometry,material:o.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals004_1.geometry,material:o.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals004_2.geometry,material:o.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_1.geometry,material:o.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_2.geometry,material:o.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_3.geometry,material:o.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_4.geometry,material:o.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_5.geometry,material:o.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_6.geometry,material:o.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_7.geometry,material:o.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals002_1.geometry,material:o.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals002_2.geometry,material:o.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals002_3.geometry,material:o.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_1.geometry,material:o.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_2.geometry,material:o.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_3.geometry,material:o.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_4.geometry,material:o.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_5.geometry,material:o.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_6.geometry,material:o.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_7.geometry,material:o.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals_1.geometry,material:o.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals_2.geometry,material:o.material_Material_metal_black})]})})]})})})]})}function tf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(b.animated.group,{name:"joint_01",children:[s.jsxs(b.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals006_1.geometry,material:o.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals006_2.geometry,material:o.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:a.visuals005.geometry,material:o.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:a.visuals004.geometry,material:o.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_1.geometry,material:o.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_2.geometry,material:o.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_3.geometry,material:o.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:a.visuals003_4.geometry,material:o.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals002_1.geometry,material:o.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals002_2.geometry,material:o.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals002_3.geometry,material:o.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:a.visuals002_4.geometry,material:o.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_1.geometry,material:o.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_2.geometry,material:o.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_3.geometry,material:o.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:a.visuals001_4.geometry,material:o.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:a.visuals_1.geometry,material:o.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:a.visuals_2.geometry,material:o.material_Material_Farbe__1_})]})]})]})})})]})}function rf({modelURL:e,rapidlyChangingMotionState:t,...r}){const{nodes:n,materials:a}=oe.useGLTF(e),o=[0,0,-Math.PI/2,0,0,0];function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d]+o[d])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs("group",{name:"link_0",children:[s.jsx("mesh",{name:"visuals_0",castShadow:!0,receiveShadow:!0,geometry:n.visuals_0.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_0_1",castShadow:!0,receiveShadow:!0,geometry:n.visuals_0_1.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals_0_2",castShadow:!0,receiveShadow:!0,geometry:n.visuals_0_2.geometry,material:a.material_Material_Metall})]}),s.jsxs("group",{name:"KUKA_KR16R2010_2_J00",children:[s.jsxs("group",{name:"KUKA_KR16R2010_2_J01",position:[.16,.52,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs("group",{name:"KUKA_KR16R2010_2_J02",position:[.98,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs("group",{name:"KUKA_KR16R2010_2_J03",position:[.15,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs("group",{name:"KUKA_KR16R2010_2_J04",position:[0,-.86,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"KUKA_KR16R2010_2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:n.link_6.geometry,material:a.material_Material_Farbe__2_,position:[.67,2,0],rotation:[-Math.PI,0,Math.PI/2]})}),s.jsx("mesh",{name:"link_5",castShadow:!0,receiveShadow:!0,geometry:n.link_5.geometry,material:a.material_Material_Farbe,position:[-.67,0,2],rotation:[Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"link_4",castShadow:!0,receiveShadow:!0,geometry:n.link_4.geometry,material:a.material_Material_Farbe,position:[-.67,1.14,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_3",position:[-.52,0,1.14],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"visuals_3",castShadow:!0,receiveShadow:!0,geometry:n.visuals_3.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals_3_1",castShadow:!0,receiveShadow:!0,geometry:n.visuals_3_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_3_2",castShadow:!0,receiveShadow:!0,geometry:n.visuals_3_2.geometry,material:a.material_Material_Farbe__2_})]})]}),s.jsxs("group",{name:"link_2",position:[-.16,0,-.52],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:n.visuals_2.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals_2_1",castShadow:!0,receiveShadow:!0,geometry:n.visuals_2_1.geometry,material:a.material_Material_Metall})]})]}),s.jsxs("group",{name:"link_1",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:n.visuals_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals_1_1",castShadow:!0,receiveShadow:!0,geometry:n.visuals_1_1.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals_1_2",castShadow:!0,receiveShadow:!0,geometry:n.visuals_1_2.geometry,material:a.material_Material_Metall})]})]})]})})]})}function nf({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(b.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:a.M10iD_L06.geometry,material:o.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:a.M10iD_L05.geometry,material:o.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_654.geometry,material:o.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_654_1.geometry,material:o.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_378.geometry,material:o.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_378_1.geometry,material:o.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_378_2.geometry,material:o.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_358.geometry,material:o.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_358_1.geometry,material:o.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_356.geometry,material:o.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_356_1.geometry,material:o.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_356_2.geometry,material:o.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:a.M10iD_L00.geometry,material:o.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function bs({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(b.animated.group,{name:"M20iD25_J00",children:[s.jsxs(b.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(b.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:a.M20iD25_L06.geometry,material:o.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:a.M20iD25_L05.geometry,material:o.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_2.geometry,material:o.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_2_1.geometry,material:o.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_15.geometry,material:o.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_15_1.geometry,material:o.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_15_2.geometry,material:o.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_37.geometry,material:o.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_37_1.geometry,material:o.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_45.geometry,material:o.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_45_1.geometry,material:o.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:a.Mesh_45_2.geometry,material:o.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:a.M20iD25_L00.geometry,material:o.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function af({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=oe.useGLTF(e),a=n.nodes,o=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(b.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(b.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(b.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:a.IRB1200_7_70_IRC5_L06.geometry,material:o["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:a.IRB1200_7_70_IRC5_L05.geometry,material:o["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:a.IRB1200_7_70_IRC5_L04.geometry,material:o["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:a.IRB1200_7_70_IRC5_L03.geometry,material:o["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:a.IRB1200_7_70_IRC5_L02.geometry,material:o["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:a.IRB1200_7_70_IRC5_L01.geometry,material:o["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:a.IRB1200_7_70_IRC5_L00.geometry,material:o["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const Ss="line",xs="mesh";function Ia({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new xt.Matrix4;function a(c,u){const d=new xt.Vector3,m=new xt.Quaternion,f=new xt.Vector3;n.decompose(d,m,f);const v=d.clone(),y=new xt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new xt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new xt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new xt.Matrix4().makeRotationX(c.alpha));return n.multiply(y),n.decompose(d,m,f),{a:v,b:d}}function o(c,u,d,m){if(!t)return;const f=t[c];if(!f)return;const{a:v,b:y}=a(f,m);u.geometry.setPositions([v.toArray(),y.toArray()].flat()),d.position.set(y.x,y.y,y.z)}function i(c,u){n.identity(),c.forEach((d,m)=>{o(m,d.getObjectByName(Ss),d.getObjectByName(xs),u[m])})}function l(c){return rl(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(me,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:m}=a(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(oe.Line,{name:Ss,points:[d,m],color:"white",lineWidth:5}),s.jsxs("mesh",{name:xs,position:m,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}const of=console.warn;function sf(){return Z.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&of(e)}},[]),s.jsx(s.Fragment,{})}function xo(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const al=en(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=xo,isGhost:a=!1,...o})=>{let i;const l=Z.useRef(new Ce.Group),c=Z.useCallback(m=>{m!==null&&(l.current=m,console.log("robotRef.current",l.current),a&&l.current&&l.current.children.length>0&&u())},[a]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(m=>{if(m instanceof Ce.Mesh&&!m.userData.isGhost){m.material instanceof Ce.Material&&(m.material.colorWrite=!1);const f=m.clone(),v=m.clone();f.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,v.material=new Ce.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),v.userData.isGhost=!0,m.parent&&(m.parent.add(f),m.parent.add(v))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const m=[];l.current.traverse(f=>{f instanceof Ce.Mesh&&f.material instanceof Ce.Material&&(f.material.colorWrite=!0),f instanceof Ce.Mesh&&f.userData!==void 0&&f.userData&&f.userData.isGhost!==void 0&&f.userData.isGhost&&m.push(f)}),m.forEach(f=>{f.parent&&f.parent.remove(f)}),l.current.userData.ghostsCreated=!1}};switch(Z.useEffect(()=>{a?u():d()},[a]),t){case"UniversalRobots_UR3":i=Dd;break;case"UniversalRobots_UR3e":i=Ud;break;case"UniversalRobots_UR5":i=Bd;break;case"UniversalRobots_UR5e":i=Jd;break;case"UniversalRobots_UR10":i=Vd;break;case"UniversalRobots_UR10e":i=Gd;break;case"Yaskawa_AR900":i=vs;break;case"Yaskawa_GP7":i=vs;break;case"Yaskawa_AR1440":i=zd;break;case"Yaskawa_AR1730":i=Wd;break;case"Yaskawa_AR2010":i=Kd;break;case"Yaskawa_AR3120":i=Hd;break;case"Yaskawa_GP50":i=Xd;break;case"FANUC_CRX10iA":i=qd;break;case"FANUC_CRX20iAL":i=Yd;break;case"FANUC_CRX25iA":i=Zd;break;case"FANUC_CRX25iAL":i=Qd;break;case"FANUC_ARC_Mate_120iD":i=bs;break;case"FANUC_ARC_Mate_120iD35":i=bs;break;case"FANUC_ARC_Mate_100iD":i=nf;break;case"KUKA_KR210_R2700":i=ef;break;case"KUKA_KR270_R2700":i=tf;break;case"KUKA_KR16_R2010_2":i=rf;break;case"ABB_1200_07_7":i=af;break;default:console.warn(`Unknown robot type: ${t}`),i=Ia}return s.jsxs(Rc.ErrorBoundary,{fallback:s.jsx(Ia,{rapidlyChangingMotionState:e,dhParameters:r,...o}),children:[s.jsx(Z.Suspense,{fallback:s.jsx(Ia,{rapidlyChangingMotionState:e,dhParameters:r,...o}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...o})})}),s.jsx(sf,{})]})});function lf({connectedMotionGroup:e,getModel:t=xo,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(al,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function cf(){return s.jsx(oe.Environment,{children:s.jsx(uf,{})})}function uf({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(oe.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),s.jsx("group",{rotation:[0,.5,0],children:s.jsx("group",{children:e.map((t,r)=>s.jsx(oe.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(oe.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(oe.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(oe.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(oe.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(oe.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function df(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ce.Vector3(e[0].x,e[0].y,e[0].z),r=new Ce.Vector3(e[1].x,e[1].y,e[1].z),n=new Ce.Vector3(e[2].x,e[2].y,e[2].z),a=new Ce.Vector3().subVectors(r,t),o=new Ce.Vector3().subVectors(n,t),i=new Ce.Vector3().crossVectors(a,o).normalize();for(let l=3;l<e.length;l++){const c=new Ce.Vector3(e[l].x,e[l].y,e[l].z),u=new Ce.Vector3().subVectors(c,t),d=i.dot(u);if(Math.abs(d)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function ff({safetyZones:e,...t}){return s.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((o,i)=>{if(!o.convex_hull)return null;const l=o.convex_hull.vertices.map(d=>new Ce.Vector3(d.x/1e3,d.y/1e3,d.z/1e3)),c=df(l);if(c.isCoplanar&&c.normal){const m=new Ce.Vector3().addVectors(l[0],c.normal.multiplyScalar(1e-4));l.push(m)}let u;try{u=new Cc.ConvexGeometry(l)}catch(d){return console.log("Error creating ConvexGeometry:",d),null}return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:u,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Hr(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 mf=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"}));var hf=!1;function pf(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 gf(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 yf=function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!hf: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(gf(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=pf(a);try{o.insertRule(n,o.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}(),Te="-ms-",Un="-moz-",ne="-webkit-",ol="comm",wo="rule",jo="decl",_f="@import",sl="@keyframes",vf="@layer",bf=Math.abs,ta=String.fromCharCode,Sf=Object.assign;function xf(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function il(e){return e.trim()}function wf(e,t){return(e=t.exec(e))?e[0]:e}function ae(e,t,r){return e.replace(t,r)}function Qa(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Xr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function Ro(e){return e.length}function pn(e,t){return t.push(e),e}function jf(e,t){return e.map(t).join("")}var ra=1,br=1,ll=0,Ue=0,Se=0,jr="";function na(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:ra,column:br,length:i,return:""}}function Dr(e,t){return Sf(na("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rf(){return Se}function Cf(){return Se=Ue>0?Pe(jr,--Ue):0,br--,Se===10&&(br=1,ra--),Se}function Ke(){return Se=Ue<ll?Pe(jr,Ue++):0,br++,Se===10&&(br=1,ra++),Se}function pt(){return Pe(jr,Ue)}function Cn(){return Ue}function nn(e,t){return Xr(jr,e,t)}function qr(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 cl(e){return ra=br=1,ll=ft(jr=e),Ue=0,[]}function ul(e){return jr="",e}function An(e){return il(nn(Ue-1,eo(e===91?e+2:e===40?e+1:e)))}function Af(e){for(;(Se=pt())&&Se<33;)Ke();return qr(e)>2||qr(Se)>3?"":" "}function Pf(e,t){for(;--t&&Ke()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return nn(e,Cn()+(t<6&&pt()==32&&Ke()==32))}function eo(e){for(;Ke();)switch(Se){case e:return Ue;case 34:case 39:e!==34&&e!==39&&eo(Se);break;case 40:e===41&&eo(e);break;case 92:Ke();break}return Ue}function Of(e,t){for(;Ke()&&e+Se!==57;)if(e+Se===84&&pt()===47)break;return"/*"+nn(t,Ue-1)+"*"+ta(e===47?e:Ke())}function Tf(e){for(;!qr(pt());)Ke();return nn(e,Ue)}function Mf(e){return ul(Pn("",null,null,null,[""],e=cl(e),0,[0],e))}function Pn(e,t,r,n,a,o,i,l,c){for(var u=0,d=0,m=i,f=0,v=0,y=0,_=1,g=1,x=1,j=0,C="",L=a,R=o,P=n,O=C;g;)switch(y=j,j=Ke()){case 40:if(y!=108&&Pe(O,m-1)==58){Qa(O+=ae(An(j),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:O+=An(j);break;case 9:case 10:case 13:case 32:O+=Af(y);break;case 92:O+=Pf(Cn()-1,7);continue;case 47:switch(pt()){case 42:case 47:pn(If(Of(Ke(),Cn()),t,r),c);break;default:O+="/"}break;case 123*_:l[u++]=ft(O)*x;case 125*_:case 59:case 0:switch(j){case 0:case 125:g=0;case 59+d:x==-1&&(O=ae(O,/\f/g,"")),v>0&&ft(O)-m&&pn(v>32?js(O+";",n,r,m-1):js(ae(O," ","")+";",n,r,m-2),c);break;case 59:O+=";";default:if(pn(P=ws(O,t,r,u,d,a,l,C,L=[],R=[],m),o),j===123)if(d===0)Pn(O,t,P,P,L,o,m,l,R);else switch(f===99&&Pe(O,3)===110?100:f){case 100:case 108:case 109:case 115:Pn(e,P,P,n&&pn(ws(e,P,P,0,0,a,l,C,a,L=[],m),R),a,R,m,l,n?L:R);break;default:Pn(O,P,P,P,[""],R,0,l,R)}}u=d=v=0,_=x=1,C=O="",m=i;break;case 58:m=1+ft(O),v=y;default:if(_<1){if(j==123)--_;else if(j==125&&_++==0&&Cf()==125)continue}switch(O+=ta(j),j*_){case 38:x=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(ft(O)-1)*x,x=1;break;case 64:pt()===45&&(O+=An(Ke())),f=pt(),d=m=ft(C=O+=Tf(Cn())),j++;break;case 45:y===45&&ft(O)==2&&(_=0)}}return o}function ws(e,t,r,n,a,o,i,l,c,u,d){for(var m=a-1,f=a===0?o:[""],v=Ro(f),y=0,_=0,g=0;y<n;++y)for(var x=0,j=Xr(e,m+1,m=bf(_=i[y])),C=e;x<v;++x)(C=il(_>0?f[x]+" "+j:ae(j,/&\f/g,f[x])))&&(c[g++]=C);return na(e,t,r,a===0?wo:l,c,u,d)}function If(e,t,r){return na(e,t,r,ol,ta(Rf()),Xr(e,2,-2),0)}function js(e,t,r,n){return na(e,t,r,jo,Xr(e,0,n),Xr(e,n+1,-1),n)}function gr(e,t){for(var r="",n=Ro(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Ef(e,t,r,n){switch(e.type){case vf:if(e.children.length)break;case _f:case jo:return e.return=e.return||e.value;case ol:return"";case sl:return e.return=e.value+"{"+gr(e.children,n)+"}";case wo:e.value=e.props.join(",")}return ft(r=gr(e.children,n))?e.return=e.value+"{"+r+"}":""}function kf(e){var t=Ro(e);return function(r,n,a,o){for(var i="",l=0;l<t;l++)i+=e[l](r,n,a,o)||"";return i}}function Lf(e){return function(t){t.root||(t=t.return)&&e(t)}}var $f=function(t,r,n){for(var a=0,o=0;a=o,o=pt(),a===38&&o===12&&(r[n]=1),!qr(o);)Ke();return nn(t,Ue)},Nf=function(t,r){var n=-1,a=44;do switch(qr(a)){case 0:a===38&&pt()===12&&(r[n]=1),t[n]+=$f(Ue-1,r,n);break;case 2:t[n]+=An(a);break;case 4:if(a===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ta(a)}while(a=Ke());return t},Ff=function(t,r){return ul(Nf(cl(t),r))},Rs=new WeakMap,Df=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&&!Rs.get(n))&&!a){Rs.set(t,!0);for(var o=[],i=Ff(r,o),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=o[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},Uf=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function dl(e,t){switch(xf(e,t)){case 5103:return ne+"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 ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Un+e+Te+e+e;case 6828:case 4268:return ne+e+Te+e+e;case 6165:return ne+e+Te+"flex-"+e+e;case 5187:return ne+e+ae(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return ne+e+Te+"flex-item-"+ae(e,/flex-|-self/,"")+e;case 4675:return ne+e+Te+"flex-line-pack"+ae(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Te+ae(e,"shrink","negative")+e;case 5292:return ne+e+Te+ae(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+ae(e,"-grow","")+ne+e+Te+ae(e,"grow","positive")+e;case 4554:return ne+ae(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return ae(ae(ae(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return ae(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return ae(ae(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return ae(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Un+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qa(e,"stretch")?dl(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,ft(e)-3-(~Qa(e,"!important")&&10))){case 107:return ae(e,":",":"+ne)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ne+e+Te+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Te+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Te+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Te+e+e}return e}var Bf=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case jo:t.return=dl(t.value,t.length);break;case sl:return gr([Dr(t,{value:ae(t.value,"@","@"+ne)})],a);case wo:if(t.length)return jf(t.props,function(o){switch(wf(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gr([Dr(t,{props:[ae(o,/:(read-\w+)/,":"+Un+"$1")]})],a);case"::placeholder":return gr([Dr(t,{props:[ae(o,/:(plac\w+)/,":"+ne+"input-$1")]}),Dr(t,{props:[ae(o,/:(plac\w+)/,":"+Un+"$1")]}),Dr(t,{props:[ae(o,/:(plac\w+)/,Te+"input-$1")]})],a)}return""})}},Jf=[Bf],Vf=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 g=_.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var a=t.stylisPlugins||Jf,o={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var g=_.getAttribute("data-emotion").split(" "),x=1;x<g.length;x++)o[g[x]]=!0;l.push(_)});var c,u=[Df,Uf];{var d,m=[Ef,Lf(function(_){d.insert(_)})],f=kf(u.concat(a,m)),v=function(g){return gr(Mf(g),f)};c=function(g,x,j,C){d=j,v(g?g+"{"+x.styles+"}":x.styles),C&&(y.inserted[x.name]=!0)}}var y={key:r,sheet:new yf({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return y.sheet.hydrate(l),y};let to;typeof document=="object"&&(to=Vf({key:"css",prepend:!0}));function fl(e){const{injectFirst:t,children:r}=e;return t&&to?s.jsx(pr.CacheProvider,{value:to,children:r}):r}process.env.NODE_ENV!=="production"&&(fl.propTypes={children:h.node,injectFirst:h.bool});function Gf(e){return e==null||Object.keys(e).length===0}function ml(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(Gf(a)?r:a):t;return s.jsx(pr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(ml.propTypes={defaultTheme:h.object,styles:h.oneOfType([h.array,h.string,h.object,h.func])});/**
36
36
  * @mui/styled-engine v5.16.6
37
37
  *
38
38
  * @license MIT
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */function hl(e,t){const r=Ac(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
42
- `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const pl=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Gf=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ml,StyledEngineProvider:fl,ThemeContext:hr.ThemeContext,css:hr.css,default:hl,internal_processStyles:pl,keyframes:hr.keyframes},Symbol.toStringTag,{value:"Module"}));function A(){return A=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},A.apply(null,arguments)}function Ue(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 wt(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 gl(e){if(!wt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=gl(e[r])}),t}function tt(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?n[o]=tt(e[o],t[o],r):r.clone?n[o]=wt(t[o])?gl(t[o]):t[o]:n[o]=t[o]}),n}const zf=Object.freeze(Object.defineProperty({__proto__:null,default:tt,isPlainObject:wt},Symbol.toStringTag,{value:"Module"})),Wf=["values","unit","step"],Hf=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)=>A({},r,{[n.key]:n.val}),{})};function yl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ue(e,Wf),a=Hf(t),i=Object.keys(a);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function d(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):l(f)}function m(f){const b=i.indexOf(f);return b===0?l(i[1]):b===i.length-1?c(i[b]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return A({keys:i,values:a,up:l,down:c,between:u,only:d,not:m,unit:r},o)}const Kf={borderRadius:4},Dt=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Vr(e,t){return t?tt(e,t,{clone:!1}):e}const ja={xs:0,sm:600,md:900,lg:1200,xl:1536},js={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ja[e]}px)`};function it(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||js;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||js;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||ja).indexOf(l)!==-1){const c=a.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function _l(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function bl(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Xf(e,...t){const r=_l(e),n=[r,...t].reduce((o,a)=>tt(o,a),{});return bl(Object.keys(r),n)}function qf(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function ko({values:e,breakpoints:t,base:r}){const n=r||qf(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function Oe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Kr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Yf=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function oo(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Bn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=oo(e,r)||n,t&&(o=t(o,n,e)),o}function _e(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=oo(c,n)||{};return it(i,l,m=>{let f=Bn(u,o,m);return m===f&&typeof m=="string"&&(f=Bn(u,o,`${t}${m==="default"?"":Oe(m)}`,m)),r===!1?f:{[r]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Dt}:{},a.filterProps=[t],a}function Zf(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Qf={m:"margin",p:"padding"},em={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tm=Zf(e=>{if(e.length>2)if(Rs[e])e=Rs[e];else return[e];const[t,r]=e.split(""),n=Qf[t],o=em[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),ao=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],so=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rm=[...ao,...so];function on(e,t,r,n){var o;const a=(o=oo(e,t,!1))!=null?o:r;return typeof a=="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}.`),a*i):Array.isArray(a)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
41
+ */function hl(e,t){const r=Ac(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(`
42
+ `)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...n)}:r}const pl=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},zf=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ml,StyledEngineProvider:fl,ThemeContext:pr.ThemeContext,css:pr.css,default:hl,internal_processStyles:pl,keyframes:pr.keyframes},Symbol.toStringTag,{value:"Module"}));function A(){return A=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},A.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 gl(e){if(!jt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=gl(e[r])}),t}function tt(e,t,r={clone:!0}){const n=r.clone?A({},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]=tt(e[a],t[a],r):r.clone?n[a]=jt(t[a])?gl(t[a]):t[a]:n[a]=t[a]}),n}const Wf=Object.freeze(Object.defineProperty({__proto__:null,default:tt,isPlainObject:jt},Symbol.toStringTag,{value:"Module"})),Kf=["values","unit","step"],Hf=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)=>A({},r,{[n.key]:n.val}),{})};function yl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Be(e,Kf),o=Hf(t),i=Object.keys(o);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,v){const y=i.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:v)-n/100}${r})`}function d(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):l(f)}function m(f){const v=i.indexOf(f);return v===0?l(i[1]):v===i.length-1?c(i[v]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return A({keys:i,values:o,up:l,down:c,between:u,only:d,not:m,unit:r},a)}const Xf={borderRadius:4},Ut=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Vr(e,t){return t?tt(e,t,{clone:!1}):e}const Co={xs:0,sm:600,md:900,lg:1200,xl:1536},Cs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Co[e]}px)`};function it(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Cs;return t.reduce((i,l,c)=>(i[o.up(o.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const o=n.breakpoints||Cs;return Object.keys(t).reduce((i,l)=>{if(Object.keys(o.values||Co).indexOf(l)!==-1){const c=o.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function _l(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function vl(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function qf(e,...t){const r=_l(e),n=[r,...t].reduce((a,o)=>tt(a,o),{});return vl(Object.keys(r),n)}function Yf(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o<e.length&&(r[a]=!0)}):n.forEach(a=>{e[a]!=null&&(r[a]=!0)}),r}function Ea({values:e,breakpoints:t,base:r}){const n=r||Yf(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[o],o=l):i[l]=e,i),{})}function Oe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Zf=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function aa(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Bn(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=aa(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,o=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=aa(c,n)||{};return it(i,l,m=>{let f=Bn(u,a,m);return m===f&&typeof m=="string"&&(f=Bn(u,a,`${t}${m==="default"?"":Oe(m)}`,m)),r===!1?f:{[r]:f}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ut}:{},o.filterProps=[t],o}function Qf(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const em={m:"margin",p:"padding"},tm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},As={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rm=Qf(e=>{if(e.length>2)if(As[e])e=As[e];else return[e];const[t,r]=e.split(""),n=em[t],a=tm[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),oa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],sa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],nm=[...oa,...sa];function an(e,t,r,n){var a;const o=(a=aa(e,t,!1))!=null?a:r;return typeof o=="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}.`),o*i):Array.isArray(o)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>o.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${i} > ${o.length-1}, you need to add the missing values.`].join(`
43
43
  `)):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(`
44
- `))),a[i]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
45
- `)),()=>{})}function Ra(e){return on(e,"spacing",8,"spacing")}function Kt(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 nm(e,t){return r=>e.reduce((n,o)=>(n[o]=Kt(t,r),n),{})}function om(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=tm(r),a=nm(o,n),i=e[r];return it(e,i,a)}function vl(e,t){const r=Ra(e.theme);return Object.keys(e).map(n=>om(e,t,n,r)).reduce(Vr,{})}function he(e){return vl(e,ao)}he.propTypes=process.env.NODE_ENV!=="production"?ao.reduce((e,t)=>(e[t]=Dt,e),{}):{};he.filterProps=ao;function pe(e){return vl(e,so)}pe.propTypes=process.env.NODE_ENV!=="production"?so.reduce((e,t)=>(e[t]=Dt,e),{}):{};pe.filterProps=so;process.env.NODE_ENV!=="production"&&rm.reduce((e,t)=>(e[t]=Dt,e),{});function am(e=8){if(e.mui)return e;const t=Ra({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(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function io(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Vr(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Qe(e){return typeof e!="number"?e:`${e}px solid`}function nt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const sm=nt("border",Qe),im=nt("borderTop",Qe),lm=nt("borderRight",Qe),cm=nt("borderBottom",Qe),um=nt("borderLeft",Qe),dm=nt("borderColor"),fm=nt("borderTopColor"),mm=nt("borderRightColor"),hm=nt("borderBottomColor"),pm=nt("borderLeftColor"),gm=nt("outline",Qe),ym=nt("outlineColor"),lo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=on(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Kt(t,n)});return it(e,e.borderRadius,r)}return null};lo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Dt}:{};lo.filterProps=["borderRadius"];io(sm,im,lm,cm,um,dm,fm,mm,hm,pm,lo,gm,ym);const co=e=>{if(e.gap!==void 0&&e.gap!==null){const t=on(e.theme,"spacing",8,"gap"),r=n=>({gap:Kt(t,n)});return it(e,e.gap,r)}return null};co.propTypes=process.env.NODE_ENV!=="production"?{gap:Dt}:{};co.filterProps=["gap"];const uo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=on(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Kt(t,n)});return it(e,e.columnGap,r)}return null};uo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Dt}:{};uo.filterProps=["columnGap"];const fo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=on(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Kt(t,n)});return it(e,e.rowGap,r)}return null};fo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Dt}:{};fo.filterProps=["rowGap"];const _m=_e({prop:"gridColumn"}),bm=_e({prop:"gridRow"}),vm=_e({prop:"gridAutoFlow"}),Sm=_e({prop:"gridAutoColumns"}),xm=_e({prop:"gridAutoRows"}),wm=_e({prop:"gridTemplateColumns"}),jm=_e({prop:"gridTemplateRows"}),Rm=_e({prop:"gridTemplateAreas"}),Cm=_e({prop:"gridArea"});io(co,uo,fo,_m,bm,vm,Sm,xm,wm,jm,Rm,Cm);function gr(e,t){return t==="grey"?t:e}const Am=_e({prop:"color",themeKey:"palette",transform:gr}),Pm=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),Om=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});io(Am,Pm,Om);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const Tm=_e({prop:"width",transform:Ge}),Ca=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ja[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ge(r)}};return it(e,e.maxWidth,t)}return null};Ca.filterProps=["maxWidth"];const Im=_e({prop:"minWidth",transform:Ge}),Mm=_e({prop:"height",transform:Ge}),Em=_e({prop:"maxHeight",transform:Ge}),km=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const Lm=_e({prop:"boxSizing"});io(Tm,Ca,Im,Mm,Em,km,Lm);const an={border:{themeKey:"borders",transform:Qe},borderTop:{themeKey:"borders",transform:Qe},borderRight:{themeKey:"borders",transform:Qe},borderBottom:{themeKey:"borders",transform:Qe},borderLeft:{themeKey:"borders",transform:Qe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lo},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},m:{style: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:co},rowGap:{style:fo},columnGap:{style:uo},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:Ca},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 $m(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Nm(e,t){return typeof e=="function"?e(t):e}function Sl(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:m}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=oo(o,u)||{};return m?m(i):it(i,n,y=>{let _=Bn(f,d,y);return y===_&&typeof y=="string"&&(_=Bn(f,d,`${r}${y==="default"?"":Oe(y)}`,y)),c===!1?_:{[c]:_}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:an;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=_l(a.breakpoints),m=Object.keys(d);let f=d;return Object.keys(u).forEach(b=>{const y=Nm(u[b],a);if(y!=null)if(typeof y=="object")if(i[b])f=Vr(f,e(b,y,a,i));else{const _=it({theme:a},y,g=>({[b]:g}));$m(_,y)?f[b]=t({sx:y,theme:a}):f=Vr(f,_)}else f=Vr(f,e(b,y,a,i))}),bl(m,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const sn=Sl();sn.filterProps=["sx"];function xl(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 Fm=["breakpoints","palette","spacing","shape"];function ln(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ue(e,Fm),l=yl(r),c=am(o);let u=tt({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},Kf,a)},i);return u.applyStyles=xl,u=t.reduce((d,m)=>tt(d,m),u),u.unstable_sxConfig=A({},an,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return sn({sx:m,theme:this})},u}const Dm=Object.freeze(Object.defineProperty({__proto__:null,default:ln,private_createBreakpoints:yl,unstable_applyStyles:xl},Symbol.toStringTag,{value:"Module"}));function Um(e){return Object.keys(e).length===0}function Bm(e=null){const t=N.useContext(hr.ThemeContext);return!t||Um(t)?e:t}const Jm=ln();function Vm(e=Jm){return Bm(e)}const Gm=["sx"],zm=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:an;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function wl(e){const{sx:t}=e,r=Ue(e,Gm),{systemProps:n,otherProps:o}=zm(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return wt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const Wm=Object.freeze(Object.defineProperty({__proto__:null,default:sn,extendSxProp:wl,unstable_createStyleFunctionSx:Sl,unstable_defaultSxConfig:an},Symbol.toStringTag,{value:"Module"})),Cs=e=>e,Hm=()=>{let e=Cs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cs}}},jl=Hm();function Rl(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Rl(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="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Rl(e))&&(n&&(n+=" "),n+=t);return n}const Km={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 cn(e,t,r="Mui"){const n=Km[t];return n?`${r}-${n}`:`${jl.generate(e)}-${t}`}function Cl(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=cn(e,o,r)}),n}var na={exports:{}},ae={};/**
44
+ `))),o[i]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
45
+ `)),()=>{})}function Ao(e){return an(e,"spacing",8,"spacing")}function Xt(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 am(e,t){return r=>e.reduce((n,a)=>(n[a]=Xt(t,r),n),{})}function om(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=rm(r),o=am(a,n),i=e[r];return it(e,i,o)}function bl(e,t){const r=Ao(e.theme);return Object.keys(e).map(n=>om(e,t,n,r)).reduce(Vr,{})}function pe(e){return bl(e,oa)}pe.propTypes=process.env.NODE_ENV!=="production"?oa.reduce((e,t)=>(e[t]=Ut,e),{}):{};pe.filterProps=oa;function ge(e){return bl(e,sa)}ge.propTypes=process.env.NODE_ENV!=="production"?sa.reduce((e,t)=>(e[t]=Ut,e),{}):{};ge.filterProps=sa;process.env.NODE_ENV!=="production"&&nm.reduce((e,t)=>(e[t]=Ut,e),{});function sm(e=8){if(e.mui)return e;const t=Ao({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(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function ia(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Vr(a,t[o](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 Qe(e){return typeof e!="number"?e:`${e}px solid`}function nt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const im=nt("border",Qe),lm=nt("borderTop",Qe),cm=nt("borderRight",Qe),um=nt("borderBottom",Qe),dm=nt("borderLeft",Qe),fm=nt("borderColor"),mm=nt("borderTopColor"),hm=nt("borderRightColor"),pm=nt("borderBottomColor"),gm=nt("borderLeftColor"),ym=nt("outline",Qe),_m=nt("outlineColor"),la=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=an(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Xt(t,n)});return it(e,e.borderRadius,r)}return null};la.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ut}:{};la.filterProps=["borderRadius"];ia(im,lm,cm,um,dm,fm,mm,hm,pm,gm,la,ym,_m);const ca=e=>{if(e.gap!==void 0&&e.gap!==null){const t=an(e.theme,"spacing",8,"gap"),r=n=>({gap:Xt(t,n)});return it(e,e.gap,r)}return null};ca.propTypes=process.env.NODE_ENV!=="production"?{gap:Ut}:{};ca.filterProps=["gap"];const ua=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=an(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Xt(t,n)});return it(e,e.columnGap,r)}return null};ua.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ut}:{};ua.filterProps=["columnGap"];const da=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=an(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Xt(t,n)});return it(e,e.rowGap,r)}return null};da.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ut}:{};da.filterProps=["rowGap"];const vm=_e({prop:"gridColumn"}),bm=_e({prop:"gridRow"}),Sm=_e({prop:"gridAutoFlow"}),xm=_e({prop:"gridAutoColumns"}),wm=_e({prop:"gridAutoRows"}),jm=_e({prop:"gridTemplateColumns"}),Rm=_e({prop:"gridTemplateRows"}),Cm=_e({prop:"gridTemplateAreas"}),Am=_e({prop:"gridArea"});ia(ca,ua,da,vm,bm,Sm,xm,wm,jm,Rm,Cm,Am);function yr(e,t){return t==="grey"?t:e}const Pm=_e({prop:"color",themeKey:"palette",transform:yr}),Om=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yr}),Tm=_e({prop:"backgroundColor",themeKey:"palette",transform:yr});ia(Pm,Om,Tm);function ze(e){return e<=1&&e!==0?`${e*100}%`:e}const Mm=_e({prop:"width",transform:ze}),Po=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Co[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ze(r)}};return it(e,e.maxWidth,t)}return null};Po.filterProps=["maxWidth"];const Im=_e({prop:"minWidth",transform:ze}),Em=_e({prop:"height",transform:ze}),km=_e({prop:"maxHeight",transform:ze}),Lm=_e({prop:"minHeight",transform:ze});_e({prop:"size",cssProperty:"width",transform:ze});_e({prop:"size",cssProperty:"height",transform:ze});const $m=_e({prop:"boxSizing"});ia(Mm,Po,Im,Em,km,Lm,$m);const on={border:{themeKey:"borders",transform:Qe},borderTop:{themeKey:"borders",transform:Qe},borderRight:{themeKey:"borders",transform:Qe},borderBottom:{themeKey:"borders",transform:Qe},borderLeft:{themeKey:"borders",transform:Qe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:la},color:{themeKey:"palette",transform:yr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yr},backgroundColor:{themeKey:"palette",transform:yr},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:pe},mt:{style:pe},mr:{style:pe},mb:{style:pe},ml:{style:pe},mx:{style:pe},my:{style:pe},margin:{style:pe},marginTop:{style:pe},marginRight:{style:pe},marginBottom:{style:pe},marginLeft:{style:pe},marginX:{style:pe},marginY:{style:pe},marginInline:{style:pe},marginInlineStart:{style:pe},marginInlineEnd:{style:pe},marginBlock:{style:pe},marginBlockStart:{style:pe},marginBlockEnd:{style:pe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ca},rowGap:{style:da},columnGap:{style:ua},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ze},maxWidth:{style:Po},minWidth:{transform:ze},height:{transform:ze},maxHeight:{transform:ze},minHeight:{transform:ze},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Nm(...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 Fm(e,t){return typeof e=="function"?e(t):e}function Sl(){function e(r,n,a,o){const i={[r]:n,theme:a},l=o[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:m}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=aa(a,u)||{};return m?m(i):it(i,n,y=>{let _=Bn(f,d,y);return y===_&&typeof y=="string"&&(_=Bn(f,d,`${r}${y==="default"?"":Oe(y)}`,y)),c===!1?_:{[c]:_}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:on;function l(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=_l(o.breakpoints),m=Object.keys(d);let f=d;return Object.keys(u).forEach(v=>{const y=Fm(u[v],o);if(y!=null)if(typeof y=="object")if(i[v])f=Vr(f,e(v,y,o,i));else{const _=it({theme:o},y,g=>({[v]:g}));Nm(_,y)?f[v]=t({sx:y,theme:o}):f=Vr(f,_)}else f=Vr(f,e(v,y,o,i))}),vl(m,f)}return Array.isArray(a)?a.map(l):l(a)}return t}const sn=Sl();sn.filterProps=["sx"];function xl(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 Dm=["breakpoints","palette","spacing","shape"];function ln(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Be(e,Dm),l=yl(r),c=sm(a);let u=tt({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},Xf,o)},i);return u.applyStyles=xl,u=t.reduce((d,m)=>tt(d,m),u),u.unstable_sxConfig=A({},on,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return sn({sx:m,theme:this})},u}const Um=Object.freeze(Object.defineProperty({__proto__:null,default:ln,private_createBreakpoints:yl,unstable_applyStyles:xl},Symbol.toStringTag,{value:"Module"}));function Bm(e){return Object.keys(e).length===0}function Jm(e=null){const t=N.useContext(pr.ThemeContext);return!t||Bm(t)?e:t}const Vm=ln();function Gm(e=Vm){return Jm(e)}const zm=["sx"],Wm=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:on;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function wl(e){const{sx:t}=e,r=Be(e,zm),{systemProps:n,otherProps:a}=Wm(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const l=t(...i);return jt(l)?A({},n,l):n}:o=A({},n,t),A({},a,{sx:o})}const Km=Object.freeze(Object.defineProperty({__proto__:null,default:sn,extendSxProp:wl,unstable_createStyleFunctionSx:Sl,unstable_defaultSxConfig:on},Symbol.toStringTag,{value:"Module"})),Ps=e=>e,Hm=()=>{let e=Ps;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ps}}},jl=Hm();function Rl(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=Rl(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=Rl(e))&&(n&&(n+=" "),n+=t);return n}const Xm={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 cn(e,t,r="Mui"){const n=Xm[t];return n?`${r}-${n}`:`${jl.generate(e)}-${t}`}function Cl(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=cn(e,a,r)}),n}var ro={exports:{}},se={};/**
46
46
  * @license React
47
47
  * react-is.production.min.js
48
48
  *
@@ -50,7 +50,7 @@ React keys must be passed directly to JSX without using spread:
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var As;function Xm(){if(As)return ae;As=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(g){if(typeof g=="object"&&g!==null){var x=g.$$typeof;switch(x){case e:switch(g=g.type,g){case r:case o:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case i:case c:case f:case m:case a:return g;default:return x}}case t:return x}}}return ae.ContextConsumer=i,ae.ContextProvider=a,ae.Element=e,ae.ForwardRef=c,ae.Fragment=r,ae.Lazy=f,ae.Memo=m,ae.Portal=t,ae.Profiler=o,ae.StrictMode=n,ae.Suspense=u,ae.SuspenseList=d,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(g){return _(g)===i},ae.isContextProvider=function(g){return _(g)===a},ae.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ae.isForwardRef=function(g){return _(g)===c},ae.isFragment=function(g){return _(g)===r},ae.isLazy=function(g){return _(g)===f},ae.isMemo=function(g){return _(g)===m},ae.isPortal=function(g){return _(g)===t},ae.isProfiler=function(g){return _(g)===o},ae.isStrictMode=function(g){return _(g)===n},ae.isSuspense=function(g){return _(g)===u},ae.isSuspenseList=function(g){return _(g)===d},ae.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===m||g.$$typeof===a||g.$$typeof===i||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},ae.typeOf=_,ae}var se={};/**
53
+ */var Os;function qm(){if(Os)return se;Os=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"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(g){if(typeof g=="object"&&g!==null){var x=g.$$typeof;switch(x){case e:switch(g=g.type,g){case r:case a:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case i:case c:case f:case m:case o:return g;default:return x}}case t:return x}}}return se.ContextConsumer=i,se.ContextProvider=o,se.Element=e,se.ForwardRef=c,se.Fragment=r,se.Lazy=f,se.Memo=m,se.Portal=t,se.Profiler=a,se.StrictMode=n,se.Suspense=u,se.SuspenseList=d,se.isAsyncMode=function(){return!1},se.isConcurrentMode=function(){return!1},se.isContextConsumer=function(g){return _(g)===i},se.isContextProvider=function(g){return _(g)===o},se.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},se.isForwardRef=function(g){return _(g)===c},se.isFragment=function(g){return _(g)===r},se.isLazy=function(g){return _(g)===f},se.isMemo=function(g){return _(g)===m},se.isPortal=function(g){return _(g)===t},se.isProfiler=function(g){return _(g)===a},se.isStrictMode=function(g){return _(g)===n},se.isSuspense=function(g){return _(g)===u},se.isSuspenseList=function(g){return _(g)===d},se.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===a||g===n||g===u||g===d||g===v||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===m||g.$$typeof===o||g.$$typeof===i||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},se.typeOf=_,se}var ie={};/**
54
54
  * @license React
55
55
  * react-is.development.js
56
56
  *
@@ -58,13 +58,13 @@ React keys must be passed directly to JSX without using spread:
58
58
  *
59
59
  * This source code is licensed under the MIT license found in the
60
60
  * LICENSE file in the root directory of this source tree.
61
- */var Ps;function qm(){return Ps||(Ps=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"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,_=!1,g=!1,x=!1,j=!1,C;C=Symbol.for("react.module.reference");function L(I){return!!(typeof I=="string"||typeof I=="function"||I===r||I===o||j||I===n||I===u||I===d||x||I===b||y||_||g||typeof I=="object"&&I!==null&&(I.$$typeof===f||I.$$typeof===m||I.$$typeof===a||I.$$typeof===i||I.$$typeof===c||I.$$typeof===C||I.getModuleId!==void 0))}function R(I){if(typeof I=="object"&&I!==null){var ee=I.$$typeof;switch(ee){case e:var me=I.type;switch(me){case r:case o:case n:case u:case d:return me;default:var ke=me&&me.$$typeof;switch(ke){case l:case i:case c:case f:case m:case a:return ke;default:return ee}}case t:return ee}}}var P=i,O=a,z=e,le=c,ue=r,D=f,X=m,G=t,Y=o,K=n,we=u,ce=d,Q=!1,Ae=!1;function Ee(I){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ot(I){return Ae||(Ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function bt(I){return R(I)===i}function Ke(I){return R(I)===a}function je(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function Ot(I){return R(I)===c}function ct(I){return R(I)===r}function Xe(I){return R(I)===f}function Be(I){return R(I)===m}function ut(I){return R(I)===t}function dt(I){return R(I)===o}function Ut(I){return R(I)===n}function vt(I){return R(I)===u}function Je(I){return R(I)===d}se.ContextConsumer=P,se.ContextProvider=O,se.Element=z,se.ForwardRef=le,se.Fragment=ue,se.Lazy=D,se.Memo=X,se.Portal=G,se.Profiler=Y,se.StrictMode=K,se.Suspense=we,se.SuspenseList=ce,se.isAsyncMode=Ee,se.isConcurrentMode=ot,se.isContextConsumer=bt,se.isContextProvider=Ke,se.isElement=je,se.isForwardRef=Ot,se.isFragment=ct,se.isLazy=Xe,se.isMemo=Be,se.isPortal=ut,se.isProfiler=dt,se.isStrictMode=Ut,se.isSuspense=vt,se.isSuspenseList=Je,se.isValidElementType=L,se.typeOf=R}()),se}process.env.NODE_ENV==="production"?na.exports=Xm():na.exports=qm();var Os=na.exports;const Ym=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Al(e){const t=`${e}`.match(Ym);return t&&t[1]||""}function Pl(e,t=""){return e.displayName||e.name||Al(e)||t}function Ts(e,t,r){const n=Pl(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ol(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Pl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Os.ForwardRef:return Ts(e,e.render,"ForwardRef");case Os.Memo:return Ts(e,e.type,"memo");default:return}}}const Zm=Object.freeze(Object.defineProperty({__proto__:null,default:Ol,getFunctionName:Al},Symbol.toStringTag,{value:"Module"})),Qm=["ownerState"],eh=["variants"],th=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rh(e){return Object.keys(e).length===0}function nh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oh=ln(),Is=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gn({defaultTheme:e,theme:t,themeId:r}){return rh(t)?e:t[r]||t}function ah(e){return e?(t,r)=>r[e]:null}function On(e,t){let{ownerState:r}=t,n=Ue(t,Qm);const o=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>On(a,A({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=Ue(o,eh);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return o}function sh(e={}){const{themeId:t,defaultTheme:r=oh,rootShouldForwardProp:n=Lo,slotShouldForwardProp:o=Lo}=e,a=i=>sn(A({},i,{theme:gn(A({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{pl(i,R=>R.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=ah(Is(u))}=l,b=Ue(l,th),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=m||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Is(u||"Root")}`);let x=Lo;u==="Root"||u==="root"?x=n:u?x=o:nh(i)&&(x=void 0);const j=hl(i,A({shouldForwardProp:x,label:g},b)),C=R=>typeof R=="function"&&R.__emotion_real!==R||wt(R)?P=>On(R,A({},P,{theme:gn({theme:P.theme,defaultTheme:r,themeId:t})})):R,L=(R,...P)=>{let O=C(R);const z=P?P.map(C):[];c&&f&&z.push(D=>{const X=gn(A({},D,{defaultTheme:r,themeId:t}));if(!X.components||!X.components[c]||!X.components[c].styleOverrides)return null;const G=X.components[c].styleOverrides,Y={};return Object.entries(G).forEach(([K,we])=>{Y[K]=On(we,A({},D,{theme:X}))}),f(D,Y)}),c&&!y&&z.push(D=>{var X;const G=gn(A({},D,{defaultTheme:r,themeId:t})),Y=G==null||(X=G.components)==null||(X=X[c])==null?void 0:X.variants;return On({variants:Y},A({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(R)&&le>0){const D=new Array(le).fill("");O=[...R,...D],O.raw=[...R.raw,...D]}const ue=j(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${Oe(u||"")}`),D===void 0&&(D=`Styled(${Ol(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return j.withConfig&&(L.withConfig=j.withConfig),L}}const ih=sh();function Jn(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=A({},a),Object.keys(o).forEach(i=>{r[n][i]=Jn(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function lh(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Jn(t.components[r].defaultProps,n)}function ch({props:e,name:t,defaultTheme:r,themeId:n}){let o=Vm(r);return n&&(o=o[n]||o),lh({theme:o,name:t,props:e})}const Aa=typeof window<"u"?N.useLayoutEffect:N.useEffect;function mr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const uh=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"}));function Ms(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function dh(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function fh(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function mh(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,a,i)=>{const l=o||"<<anonymous>>",c=i||n;return typeof r[n]<"u"?new Error(`The ${a} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function hh(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 yr(e){return e&&e.ownerDocument||document}function ph(e){return yr(e).defaultView||window}function gh(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?A({},t.propTypes):null;return o=>(a,i,l,c,u,...d)=>{const m=u||i,f=r==null?void 0:r[m];if(f){const b=f(a,i,l,c,u,...d);if(b)return b}return typeof a[i]<"u"&&!a[o]?new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Tl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Es=0;function yh(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(Es+=1,r(`mui-${Es}`))},[t]),n}const ks=N.useId;function _h(e){if(ks!==void 0){const t=ks();return e??t}return yh(e)}function bh(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const a=o||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function Il({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[a,i]=N.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
62
- `))},[n,r,e]);const{current:u}=N.useRef(t);N.useEffect(()=>{!o&&!Object.is(u,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(`
63
- `))},[JSON.stringify(t)])}const c=N.useCallback(u=>{o||i(u)},[]);return[l,c]}function Tn(e){const t=N.useRef(e);return Aa(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Vn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Tl(r,t)})},e)}class Pa{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Pa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let mo=!0,oa=!1;const vh=new Pa,Sh={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 xh(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Sh[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function wh(e){e.metaKey||e.altKey||e.ctrlKey||(mo=!0)}function $o(){mo=!1}function jh(){this.visibilityState==="hidden"&&oa&&(mo=!0)}function Rh(e){e.addEventListener("keydown",wh,!0),e.addEventListener("mousedown",$o,!0),e.addEventListener("pointerdown",$o,!0),e.addEventListener("touchstart",$o,!0),e.addEventListener("visibilitychange",jh,!0)}function Ch(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return mo||xh(t)}function Ml(){const e=N.useCallback(o=>{o!=null&&Rh(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(oa=!0,vh.start(100,()=>{oa=!1}),t.current=!1,!0):!1}function n(o){return Ch(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Ah={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Oa(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Gr(e){return typeof e=="string"}function Ph(e,t,r){return e===void 0||Gr(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function In(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 Ls(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 Oh(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const b=gt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),y=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),_=A({},r,o,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=In(A({},o,n)),l=Ls(n),c=Ls(o),u=t(i),d=gt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),m=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:u.ref}}function Th(e,t,r){return typeof e=="function"?e(t,r):e}const Ih=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ue(e,Ih),l=a?{}:Th(n,o),{props:c,internalRef:u}=Oh(A({},i,{externalSlotProps:l})),d=Vn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ph(r,A({},c,{ref:d}),o)}const Mh=N.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const Eh=()=>{const e=N.useContext(Mh);return e??!1},kh=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Lh(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Jn(o.defaultProps,n):!o.styleOverrides&&!o.variants?Jn(o,n):n}function $h({props:e,name:t}){const r=N.useContext(kh);return Lh({props:e,name:t,theme:{components:r}})}const Nh=["component","direction","spacing","divider","children","className","useFlexGap"],Fh=ln(),Dh=ih("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Uh(e){return ch({props:e,name:"MuiStack",defaultTheme:Fh})}function Bh(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${a}`})),n),[])}const Jh=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Vh=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},it({theme:t},ko({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Ra(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=ko({values:e.direction,base:o}),i=ko({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const f=u>0?a[d[u-1]]:"column";a[c]=f}}),r=tt(r,it({theme:t},i,(c,u)=>e.useFlexGap?{gap:Kt(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Jh(u?a[u]:e.direction)}`]:Kt(n,c)}}))}return r=Xf(t.breakpoints,r),r};function Gh(e={}){const{createStyledComponent:t=Dh,useThemeProps:r=Uh,componentName:n="MuiStack"}=e,o=()=>Oa({root:["root"]},c=>cn(n,c),{}),a=t(Vh),i=N.forwardRef(function(c,u){const d=r(c),m=wl(d),{component:f="div",direction:b="column",spacing:y=0,divider:_,children:g,className:x,useFlexGap:j=!1}=m,C=Ue(m,Nh),L={direction:b,spacing:y,useFlexGap:j},R=o();return s.jsx(a,A({as:f,ownerState:L,ref:u,className:gt(R.root,x)},C,{children:_?Bh(g,_):g}))});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 un={},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 ho=El.exports,No={exports:{}},$s;function zh(){return $s||($s=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}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}(No)),No.exports}var Fo={exports:{}},Ns;function Wh(){return Ns||(Ns=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Fo)),Fo.exports}const Hh=Rt(Gf),Kh=Rt(zf),Xh=Rt(Yf),qh=Rt(Zm),Yh=Rt(Dm),Zh=Rt(Wm);var Rr=ho;Object.defineProperty(un,"__esModule",{value:!0});var Qh=un.default=m0;un.shouldForwardProp=Mn;un.systemDefaultTheme=void 0;var Ze=Rr(zh()),aa=Rr(Wh()),Fs=l0(Hh),e0=Kh,t0=Rr(Xh),r0=Rr(qh),n0=Rr(Yh),o0=Rr(Zh);const a0=["ownerState"],s0=["variants"],i0=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function kl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(kl=function(n){return n?r:t})(e)}function l0(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=kl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function c0(e){return Object.keys(e).length===0}function u0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Mn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const d0=un.systemDefaultTheme=(0,n0.default)(),Ds=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yn({defaultTheme:e,theme:t,themeId:r}){return c0(t)?e:t[r]||t}function f0(e){return e?(t,r)=>r[e]:null}function En(e,t){let{ownerState:r}=t,n=(0,aa.default)(t,a0);const o=typeof e=="function"?e((0,Ze.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>En(a,(0,Ze.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,aa.default)(o,s0);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Ze.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Ze.default)({ownerState:r},n,r)):c.style))}),l}return o}function m0(e={}){const{themeId:t,defaultTheme:r=d0,rootShouldForwardProp:n=Mn,slotShouldForwardProp:o=Mn}=e,a=i=>(0,o0.default)((0,Ze.default)({},i,{theme:yn((0,Ze.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,Fs.internal_processStyles)(i,R=>R.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=f0(Ds(u))}=l,b=(0,aa.default)(l,i0),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=m||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Ds(u||"Root")}`);let x=Mn;u==="Root"||u==="root"?x=n:u?x=o:u0(i)&&(x=void 0);const j=(0,Fs.default)(i,(0,Ze.default)({shouldForwardProp:x,label:g},b)),C=R=>typeof R=="function"&&R.__emotion_real!==R||(0,e0.isPlainObject)(R)?P=>En(R,(0,Ze.default)({},P,{theme:yn({theme:P.theme,defaultTheme:r,themeId:t})})):R,L=(R,...P)=>{let O=C(R);const z=P?P.map(C):[];c&&f&&z.push(D=>{const X=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t}));if(!X.components||!X.components[c]||!X.components[c].styleOverrides)return null;const G=X.components[c].styleOverrides,Y={};return Object.entries(G).forEach(([K,we])=>{Y[K]=En(we,(0,Ze.default)({},D,{theme:X}))}),f(D,Y)}),c&&!y&&z.push(D=>{var X;const G=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t})),Y=G==null||(X=G.components)==null||(X=X[c])==null?void 0:X.variants;return En({variants:Y},(0,Ze.default)({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(R)&&le>0){const D=new Array(le).fill("");O=[...R,...D],O.raw=[...R.raw,...D]}const ue=j(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,t0.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,r0.default)(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return j.withConfig&&(L.withConfig=j.withConfig),L}}function h0(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var be={};const p0=Rt(ff),g0=Rt(uh);var Ll=ho;Object.defineProperty(be,"__esModule",{value:!0});var Us=be.alpha=Dl;be.blend=C0;be.colorChannel=void 0;var sa=be.darken=Ia;be.decomposeColor=rt;be.emphasize=Ul;var Bs=be.getContrastRatio=S0;be.getLuminance=Gn;be.hexToRgb=$l;be.hslToRgb=Fl;var ia=be.lighten=Ma;be.private_safeAlpha=x0;be.private_safeColorChannel=void 0;be.private_safeDarken=w0;be.private_safeEmphasize=R0;be.private_safeLighten=j0;be.recomposeColor=Cr;be.rgbToHex=v0;var Js=Ll(p0),y0=Ll(g0);function Ta(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,y0.default)(e,t,r)}function $l(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function _0(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rt(e){if(e.type)return e;if(e.charAt(0)==="#")return rt($l(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.
64
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Js.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
65
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Js.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const Nl=e=>{const t=rt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};be.colorChannel=Nl;const b0=(e,t)=>{try{return Nl(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};be.private_safeColorChannel=b0;function Cr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):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 v0(e){if(e.indexOf("#")===0)return e;const{values:t}=rt(e);return`#${t.map((r,n)=>_0(n===3?Math.round(255*r):r)).join("")}`}function Fl(e){e=rt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Cr({type:l,values:c})}function Gn(e){e=rt(e);let t=e.type==="hsl"||e.type==="hsla"?rt(Fl(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 S0(e,t){const r=Gn(e),n=Gn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Dl(e,t){return e=rt(e),t=Ta(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Cr(e)}function x0(e,t,r){try{return Dl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ia(e,t){if(e=rt(e),t=Ta(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 Cr(e)}function w0(e,t,r){try{return Ia(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ma(e,t){if(e=rt(e),t=Ta(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 Cr(e)}function j0(e,t,r){try{return Ma(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ul(e,t=.15){return Gn(e)>.5?Ia(e,t):Ma(e,t)}function R0(e,t,r){try{return Ul(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function C0(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=rt(e),i=rt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Cr({type:"rgb",values:l})}const Yr={black:"#000",white:"#fff"},A0={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"},lr={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"},cr={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"},Ur={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"},ur={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"},dr={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"},fr={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"},P0=["mode","contrastThreshold","tonalOffset"],Vs={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:Yr.white,default:Yr.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}},Do={text:{primary:Yr.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:Yr.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 Gs(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ia(e.main,o):t==="dark"&&(e.dark=sa(e.main,a)))}function O0(e="light"){return e==="dark"?{main:ur[200],light:ur[50],dark:ur[400]}:{main:ur[700],light:ur[400],dark:ur[800]}}function T0(e="light"){return e==="dark"?{main:lr[200],light:lr[50],dark:lr[400]}:{main:lr[500],light:lr[300],dark:lr[700]}}function I0(e="light"){return e==="dark"?{main:cr[500],light:cr[300],dark:cr[700]}:{main:cr[700],light:cr[400],dark:cr[800]}}function M0(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:dr[700],light:dr[500],dark:dr[900]}}function E0(e="light"){return e==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:fr[800],light:fr[500],dark:fr[900]}}function k0(e="light"){return e==="dark"?{main:Ur[400],light:Ur[300],dark:Ur[700]}:{main:"#ed6c02",light:Ur[500],dark:Ur[900]}}function L0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ue(e,P0),a=e.primary||O0(t),i=e.secondary||T0(t),l=e.error||I0(t),c=e.info||M0(t),u=e.success||E0(t),d=e.warning||k0(t);function m(_){const g=Bs(_,Do.text.primary)>=r?Do.text.primary:Vs.text.primary;if(process.env.NODE_ENV!=="production"){const x=Bs(_,g);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${g} 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
+ */var Ts;function Ym(){return Ts||(Ts=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"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=!1,_=!1,g=!1,x=!1,j=!1,C;C=Symbol.for("react.module.reference");function L(M){return!!(typeof M=="string"||typeof M=="function"||M===r||M===a||j||M===n||M===u||M===d||x||M===v||y||_||g||typeof M=="object"&&M!==null&&(M.$$typeof===f||M.$$typeof===m||M.$$typeof===o||M.$$typeof===i||M.$$typeof===c||M.$$typeof===C||M.getModuleId!==void 0))}function R(M){if(typeof M=="object"&&M!==null){var ee=M.$$typeof;switch(ee){case e:var he=M.type;switch(he){case r:case a:case n:case u:case d:return he;default:var ke=he&&he.$$typeof;switch(ke){case l:case i:case c:case f:case m:case o:return ke;default:return ee}}case t:return ee}}}var P=i,O=o,z=e,le=c,ue=r,D=f,X=m,G=t,q=a,H=n,we=u,ce=d,Q=!1,Ae=!1;function Ee(M){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function at(M){return Ae||(Ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function vt(M){return R(M)===i}function He(M){return R(M)===o}function je(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Tt(M){return R(M)===c}function ct(M){return R(M)===r}function Xe(M){return R(M)===f}function Je(M){return R(M)===m}function ut(M){return R(M)===t}function dt(M){return R(M)===a}function Bt(M){return R(M)===n}function bt(M){return R(M)===u}function Ve(M){return R(M)===d}ie.ContextConsumer=P,ie.ContextProvider=O,ie.Element=z,ie.ForwardRef=le,ie.Fragment=ue,ie.Lazy=D,ie.Memo=X,ie.Portal=G,ie.Profiler=q,ie.StrictMode=H,ie.Suspense=we,ie.SuspenseList=ce,ie.isAsyncMode=Ee,ie.isConcurrentMode=at,ie.isContextConsumer=vt,ie.isContextProvider=He,ie.isElement=je,ie.isForwardRef=Tt,ie.isFragment=ct,ie.isLazy=Xe,ie.isMemo=Je,ie.isPortal=ut,ie.isProfiler=dt,ie.isStrictMode=Bt,ie.isSuspense=bt,ie.isSuspenseList=Ve,ie.isValidElementType=L,ie.typeOf=R}()),ie}process.env.NODE_ENV==="production"?ro.exports=qm():ro.exports=Ym();var Ms=ro.exports;const Zm=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Al(e){const t=`${e}`.match(Zm);return t&&t[1]||""}function Pl(e,t=""){return e.displayName||e.name||Al(e)||t}function Is(e,t,r){const n=Pl(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ol(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Pl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ms.ForwardRef:return Is(e,e.render,"ForwardRef");case Ms.Memo:return Is(e,e.type,"memo");default:return}}}const Qm=Object.freeze(Object.defineProperty({__proto__:null,default:Ol,getFunctionName:Al},Symbol.toStringTag,{value:"Module"})),eh=["ownerState"],th=["variants"],rh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nh(e){return Object.keys(e).length===0}function ah(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ka(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oh=ln(),Es=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gn({defaultTheme:e,theme:t,themeId:r}){return nh(t)?e:t[r]||t}function sh(e){return e?(t,r)=>r[e]:null}function On(e,t){let{ownerState:r}=t,n=Be(t,eh);const a=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>On(o,A({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=Be(a,th);return o.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return a}function ih(e={}){const{themeId:t,defaultTheme:r=oh,rootShouldForwardProp:n=ka,slotShouldForwardProp:a=ka}=e,o=i=>sn(A({},i,{theme:gn(A({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,l={})=>{pl(i,R=>R.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=sh(Es(u))}=l,v=Be(l,rh),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=m||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Es(u||"Root")}`);let x=ka;u==="Root"||u==="root"?x=n:u?x=a:ah(i)&&(x=void 0);const j=hl(i,A({shouldForwardProp:x,label:g},v)),C=R=>typeof R=="function"&&R.__emotion_real!==R||jt(R)?P=>On(R,A({},P,{theme:gn({theme:P.theme,defaultTheme:r,themeId:t})})):R,L=(R,...P)=>{let O=C(R);const z=P?P.map(C):[];c&&f&&z.push(D=>{const X=gn(A({},D,{defaultTheme:r,themeId:t}));if(!X.components||!X.components[c]||!X.components[c].styleOverrides)return null;const G=X.components[c].styleOverrides,q={};return Object.entries(G).forEach(([H,we])=>{q[H]=On(we,A({},D,{theme:X}))}),f(D,q)}),c&&!y&&z.push(D=>{var X;const G=gn(A({},D,{defaultTheme:r,themeId:t})),q=G==null||(X=G.components)==null||(X=X[c])==null?void 0:X.variants;return On({variants:q},A({},D,{theme:G}))}),_||z.push(o);const le=z.length-P.length;if(Array.isArray(R)&&le>0){const D=new Array(le).fill("");O=[...R,...D],O.raw=[...R.raw,...D]}const ue=j(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${Oe(u||"")}`),D===void 0&&(D=`Styled(${Ol(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return j.withConfig&&(L.withConfig=j.withConfig),L}}const lh=ih();function Jn(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=A({},o),Object.keys(a).forEach(i=>{r[n][i]=Jn(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function ch(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Jn(t.components[r].defaultProps,n)}function uh({props:e,name:t,defaultTheme:r,themeId:n}){let a=Gm(r);return n&&(a=a[n]||a),ch({theme:a,name:t,props:e})}const Oo=typeof window<"u"?N.useLayoutEffect:N.useEffect;function hr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const dh=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"}));function ks(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function fh(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function mh(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function hh(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,a,o,i)=>{const l=a||"<<anonymous>>",c=i||n;return typeof r[n]<"u"?new Error(`The ${o} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function ph(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 _r(e){return e&&e.ownerDocument||document}function gh(e){return _r(e).defaultView||window}function yh(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?A({},t.propTypes):null;return a=>(o,i,l,c,u,...d)=>{const m=u||i,f=r==null?void 0:r[m];if(f){const v=f(o,i,l,c,u,...d);if(v)return v}return typeof o[i]<"u"&&!o[a]?new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${a}\` prop.`):null}}function Tl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Ls=0;function _h(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(Ls+=1,r(`mui-${Ls}`))},[t]),n}const $s=N.useId;function vh(e){if($s!==void 0){const t=$s();return e??t}return _h(e)}function bh(e,t,r,n,a){if(process.env.NODE_ENV==="production")return null;const o=a||t;return typeof e[t]<"u"?new Error(`The prop \`${o}\` is not supported. Please remove it.`):null}function Ml({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=N.useRef(e!==void 0),[o,i]=N.useState(t),l=a?e:o;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(`
62
+ `))},[n,r,e]);const{current:u}=N.useRef(t);N.useEffect(()=>{!a&&!Object.is(u,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(`
63
+ `))},[JSON.stringify(t)])}const c=N.useCallback(u=>{a||i(u)},[]);return[l,c]}function Tn(e){const t=N.useRef(e);return Oo(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Vn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Tl(r,t)})},e)}class To{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new To}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let fa=!0,no=!1;const Sh=new To,xh={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 wh(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&xh[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function jh(e){e.metaKey||e.altKey||e.ctrlKey||(fa=!0)}function La(){fa=!1}function Rh(){this.visibilityState==="hidden"&&no&&(fa=!0)}function Ch(e){e.addEventListener("keydown",jh,!0),e.addEventListener("mousedown",La,!0),e.addEventListener("pointerdown",La,!0),e.addEventListener("touchstart",La,!0),e.addEventListener("visibilitychange",Rh,!0)}function Ah(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return fa||wh(t)}function Il(){const e=N.useCallback(a=>{a!=null&&Ch(a.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(no=!0,Sh.start(100,()=>{no=!1}),t.current=!1,!0):!1}function n(a){return Ah(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Ph={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Mo(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const l=t(i);l!==""&&o.push(l),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function Gr(e){return typeof e=="string"}function Oh(e,t,r){return e===void 0||Gr(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function Mn(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 Ns(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 Th(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const v=gt(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),y=A({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),_=A({},r,a,n);return v.length>0&&(_.className=v),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=Mn(A({},a,n)),l=Ns(n),c=Ns(a),u=t(i),d=gt(u==null?void 0:u.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),m=A({},u==null?void 0:u.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:u.ref}}function Mh(e,t,r){return typeof e=="function"?e(t,r):e}const Ih=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Lt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Be(e,Ih),l=o?{}:Mh(n,a),{props:c,internalRef:u}=Th(A({},i,{externalSlotProps:l})),d=Vn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Oh(r,A({},c,{ref:d}),a)}const Eh=N.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const kh=()=>{const e=N.useContext(Eh);return e??!1},Lh=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function $h(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?Jn(a.defaultProps,n):!a.styleOverrides&&!a.variants?Jn(a,n):n}function Nh({props:e,name:t}){const r=N.useContext(Lh);return $h({props:e,name:t,theme:{components:r}})}const Fh=["component","direction","spacing","divider","children","className","useFlexGap"],Dh=ln(),Uh=lh("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Bh(e){return uh({props:e,name:"MuiStack",defaultTheme:Dh})}function Jh(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${o}`})),n),[])}const Vh=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Gh=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},it({theme:t},Ea({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Ao(t),a=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),o=Ea({values:e.direction,base:a}),i=Ea({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((c,u,d)=>{if(!o[c]){const f=u>0?o[d[u-1]]:"column";o[c]=f}}),r=tt(r,it({theme:t},i,(c,u)=>e.useFlexGap?{gap:Xt(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Vh(u?o[u]:e.direction)}`]:Xt(n,c)}}))}return r=qf(t.breakpoints,r),r};function zh(e={}){const{createStyledComponent:t=Uh,useThemeProps:r=Bh,componentName:n="MuiStack"}=e,a=()=>Mo({root:["root"]},c=>cn(n,c),{}),o=t(Gh),i=N.forwardRef(function(c,u){const d=r(c),m=wl(d),{component:f="div",direction:v="column",spacing:y=0,divider:_,children:g,className:x,useFlexGap:j=!1}=m,C=Be(m,Fh),L={direction:v,spacing:y,useFlexGap:j},R=a();return s.jsx(o,A({as:f,ownerState:L,ref:u,className:gt(R.root,x)},C,{children:_?Jh(g,_):g}))});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 un={},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 ma=El.exports,$a={exports:{}},Fs;function Wh(){return Fs||(Fs=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 o in a)({}).hasOwnProperty.call(a,o)&&(r[o]=a[o])}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}($a)),$a.exports}var Na={exports:{}},Ds;function Kh(){return Ds||(Ds=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Na)),Na.exports}const Hh=Ct(zf),Xh=Ct(Wf),qh=Ct(Zf),Yh=Ct(Qm),Zh=Ct(Um),Qh=Ct(Km);var Rr=ma;Object.defineProperty(un,"__esModule",{value:!0});var e0=un.default=h0;un.shouldForwardProp=In;un.systemDefaultTheme=void 0;var Ze=Rr(Wh()),ao=Rr(Kh()),Us=c0(Hh),t0=Xh,r0=Rr(qh),n0=Rr(Yh),a0=Rr(Zh),o0=Rr(Qh);const s0=["ownerState"],i0=["variants"],l0=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function kl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(kl=function(n){return n?r:t})(e)}function c0(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=kl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function u0(e){return Object.keys(e).length===0}function d0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function In(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const f0=un.systemDefaultTheme=(0,a0.default)(),Bs=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yn({defaultTheme:e,theme:t,themeId:r}){return u0(t)?e:t[r]||t}function m0(e){return e?(t,r)=>r[e]:null}function En(e,t){let{ownerState:r}=t,n=(0,ao.default)(t,s0);const a=typeof e=="function"?e((0,Ze.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>En(o,(0,Ze.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=(0,ao.default)(a,i0);return o.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Ze.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Ze.default)({ownerState:r},n,r)):c.style))}),l}return a}function h0(e={}){const{themeId:t,defaultTheme:r=f0,rootShouldForwardProp:n=In,slotShouldForwardProp:a=In}=e,o=i=>(0,o0.default)((0,Ze.default)({},i,{theme:yn((0,Ze.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,l={})=>{(0,Us.internal_processStyles)(i,R=>R.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=m0(Bs(u))}=l,v=(0,ao.default)(l,l0),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=m||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Bs(u||"Root")}`);let x=In;u==="Root"||u==="root"?x=n:u?x=a:d0(i)&&(x=void 0);const j=(0,Us.default)(i,(0,Ze.default)({shouldForwardProp:x,label:g},v)),C=R=>typeof R=="function"&&R.__emotion_real!==R||(0,t0.isPlainObject)(R)?P=>En(R,(0,Ze.default)({},P,{theme:yn({theme:P.theme,defaultTheme:r,themeId:t})})):R,L=(R,...P)=>{let O=C(R);const z=P?P.map(C):[];c&&f&&z.push(D=>{const X=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t}));if(!X.components||!X.components[c]||!X.components[c].styleOverrides)return null;const G=X.components[c].styleOverrides,q={};return Object.entries(G).forEach(([H,we])=>{q[H]=En(we,(0,Ze.default)({},D,{theme:X}))}),f(D,q)}),c&&!y&&z.push(D=>{var X;const G=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t})),q=G==null||(X=G.components)==null||(X=X[c])==null?void 0:X.variants;return En({variants:q},(0,Ze.default)({},D,{theme:G}))}),_||z.push(o);const le=z.length-P.length;if(Array.isArray(R)&&le>0){const D=new Array(le).fill("");O=[...R,...D],O.raw=[...R.raw,...D]}const ue=j(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,r0.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,n0.default)(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return j.withConfig&&(L.withConfig=j.withConfig),L}}function p0(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ve={};const g0=Ct(mf),y0=Ct(dh);var Ll=ma;Object.defineProperty(ve,"__esModule",{value:!0});var Js=ve.alpha=Dl;ve.blend=A0;ve.colorChannel=void 0;var oo=ve.darken=Eo;ve.decomposeColor=rt;ve.emphasize=Ul;var Vs=ve.getContrastRatio=x0;ve.getLuminance=Gn;ve.hexToRgb=$l;ve.hslToRgb=Fl;var so=ve.lighten=ko;ve.private_safeAlpha=w0;ve.private_safeColorChannel=void 0;ve.private_safeDarken=j0;ve.private_safeEmphasize=C0;ve.private_safeLighten=R0;ve.recomposeColor=Cr;ve.rgbToHex=S0;var Gs=Ll(g0),_0=Ll(y0);function Io(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,_0.default)(e,t,r)}function $l(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 v0(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rt(e){if(e.type)return e;if(e.charAt(0)==="#")return rt($l(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.
64
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Gs.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.
65
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Gs.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const Nl=e=>{const t=rt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ve.colorChannel=Nl;const b0=(e,t)=>{try{return Nl(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ve.private_safeColorChannel=b0;function Cr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<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 S0(e){if(e.indexOf("#")===0)return e;const{values:t}=rt(e);return`#${t.map((r,n)=>v0(n===3?Math.round(255*r):r)).join("")}`}function Fl(e){e=rt(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(u,d=(u+r/30)%12)=>a-o*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Cr({type:l,values:c})}function Gn(e){e=rt(e);let t=e.type==="hsl"||e.type==="hsla"?rt(Fl(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 x0(e,t){const r=Gn(e),n=Gn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Dl(e,t){return e=rt(e),t=Io(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Cr(e)}function w0(e,t,r){try{return Dl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Eo(e,t){if(e=rt(e),t=Io(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 Cr(e)}function j0(e,t,r){try{return Eo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ko(e,t){if(e=rt(e),t=Io(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 Cr(e)}function R0(e,t,r){try{return ko(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ul(e,t=.15){return Gn(e)>.5?Eo(e,t):ko(e,t)}function C0(e,t,r){try{return Ul(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function A0(e,t,r,n=1){const a=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),o=rt(e),i=rt(t),l=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Cr({type:"rgb",values:l})}const Yr={black:"#000",white:"#fff"},P0={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"},cr={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"},ur={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"},Ur={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"},dr={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"},fr={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"},mr={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"},O0=["mode","contrastThreshold","tonalOffset"],zs={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:Yr.white,default:Yr.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}},Fa={text:{primary:Yr.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:Yr.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 Ws(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=so(e.main,a):t==="dark"&&(e.dark=oo(e.main,o)))}function T0(e="light"){return e==="dark"?{main:dr[200],light:dr[50],dark:dr[400]}:{main:dr[700],light:dr[400],dark:dr[800]}}function M0(e="light"){return e==="dark"?{main:cr[200],light:cr[50],dark:cr[400]}:{main:cr[500],light:cr[300],dark:cr[700]}}function I0(e="light"){return e==="dark"?{main:ur[500],light:ur[300],dark:ur[700]}:{main:ur[700],light:ur[400],dark:ur[800]}}function E0(e="light"){return e==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:fr[700],light:fr[500],dark:fr[900]}}function k0(e="light"){return e==="dark"?{main:mr[400],light:mr[300],dark:mr[700]}:{main:mr[800],light:mr[500],dark:mr[900]}}function L0(e="light"){return e==="dark"?{main:Ur[400],light:Ur[300],dark:Ur[700]}:{main:"#ed6c02",light:Ur[500],dark:Ur[900]}}function $0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Be(e,O0),o=e.primary||T0(t),i=e.secondary||M0(t),l=e.error||I0(t),c=e.info||E0(t),u=e.success||k0(t),d=e.warning||L0(t);function m(_){const g=Vs(_,Fa.text.primary)>=r?Fa.text.primary:zs.text.primary;if(process.env.NODE_ENV!=="production"){const x=Vs(_,g);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${g} 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(`
66
66
  `))}return g}const f=({color:_,name:g,mainShade:x=500,lightShade:j=300,darkShade:C=700})=>{if(_=A({},_),!_.main&&_[x]&&(_.main=_[x]),!_.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
67
- The color object needs to have a \`main\` property or a \`${x}\` property.`:Kr(11,g?` (${g})`:"",x));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
67
+ The color object needs to have a \`main\` property or a \`${x}\` property.`:Hr(11,g?` (${g})`:"",x));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
68
68
  \`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
69
69
 
70
70
  Did you intend to use one of the following approaches?
@@ -77,8 +77,8 @@ const theme1 = createTheme({ palette: {
77
77
 
78
78
  const theme2 = createTheme({ palette: {
79
79
  primary: { main: green[500] },
80
- } });`:Kr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Gs(_,"light",j,n),Gs(_,"dark",C,n),_.contrastText||(_.contrastText=m(_.main)),_},b={dark:Do,light:Vs};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(A({common:A({},Yr),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:A0,contrastThreshold:r,getContrastText:m,augmentColor:f,tonalOffset:n},b[t]),o)}const $0=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function N0(e){return Math.round(e*1e5)/1e5}const zs={textTransform:"uppercase"},Ws='"Roboto", "Helvetica", "Arial", sans-serif';function F0(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Ws,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:m}=r,f=Ue(r,$0);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,y=m||(x=>`${x/u*b}rem`),_=(x,j,C,L,R)=>A({fontFamily:n,fontWeight:x,fontSize:y(j),lineHeight:C},n===Ws?{letterSpacing:`${N0(L/j)}em`}:{},R,d),g={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,zs),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,zs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(A({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),f,{clone:!1})}const D0=.2,U0=.14,B0=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${D0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${U0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${B0})`].join(",")}const J0=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],V0=["duration","easing","delay"],G0={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)"},z0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hs(e){return`${Math.round(e)}ms`}function W0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function H0(e){const t=A({},G0,e.easing),r=A({},z0,e.duration);return A({getAutoHeightDuration:W0,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=Ue(a,V0);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",m=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
81
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Hs(i)} ${l} ${typeof c=="string"?c:Hs(c)}`).join(",")}},e,{easing:t,duration:r})}const K0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},X0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function la(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ue(e,X0);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Kr(18));const l=L0(n),c=ln(e);let u=tt(c,{mixins:h0(c.breakpoints,r),palette:l,shadows:J0.slice(),typography:F0(l,a),transitions:H0(o),zIndex:A({},K0)});if(u=tt(u,i),u=t.reduce((d,m)=>tt(d,m),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(f,b)=>{let y;for(y in f){const _=f[y];if(d.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=cn("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
82
- `))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const b=u.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&m(b,f)})}return u.unstable_sxConfig=A({},an,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return sn({sx:m,theme:this})},u}const q0=la(),Y0="$$material";function Ea(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Z0=e=>Ea(e)&&e!=="classes",Ct=Qh({themeId:Y0,defaultTheme:q0,rootShouldForwardProp:Z0});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function ka(e){return $h(e)}const _r=Gh({createStyledComponent:Ct("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ka({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 ca=en(He.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{wr(()=>{const d=r(),m=l.current;m&&(m.textContent=d)});const l=q.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(_r,{height:"72px",direction:"row",...i,children:[s.jsx(k.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(k.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(k.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}));var La={},Uo={};function Q0(e){return cn("MuiSvgIcon",e)}Cl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ep=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],tp=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Oa(o,Q0,n)},rp=Ct("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,m,f,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(m=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?m:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),zn=N.forwardRef(function(t,r){const n=ka({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:f="0 0 24 24"}=n,b=Ue(n,ep),y=N.isValidElement(o)&&o.type==="svg",_=A({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),g={};d||(g.viewBox=f);const x=tp(_);return s.jsxs(rp,A({as:l,className:gt(x.root,a),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,m?s.jsx("title",{children:m}):null]}))});process.env.NODE_ENV!=="production"&&(zn.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});zn.muiName="SvgIcon";function np(e,t){function r(n,o){return s.jsx(zn,A({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=zn.muiName,N.memo(N.forwardRef(r))}const op={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
83
- `)),jl.configure(e)}},ap=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:dh,createSvgIcon:np,debounce:fh,deprecatedPropType:mh,isMuiElement:hh,ownerDocument:yr,ownerWindow:ph,requirePropFactory:gh,setRef:Tl,unstable_ClassNameGenerator:op,unstable_useEnhancedEffect:Aa,unstable_useId:_h,unsupportedProp:bh,useControlled:Il,useEventCallback:Tn,useForkRef:Vn,useIsFocusVisible:Ml},Symbol.toStringTag,{value:"Module"})),sp=Rt(ap);var Ks;function Bl(){return Ks||(Ks=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=sp}(Uo)),Uo}var ip=ho;Object.defineProperty(La,"__esModule",{value:!0});var Jl=La.default=void 0,lp=ip(Bl()),cp=s;Jl=La.default=(0,lp.default)((0,cp.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var $a={},up=ho;Object.defineProperty($a,"__esModule",{value:!0});var Vl=$a.default=void 0,dp=up(Bl()),fp=s;Vl=$a.default=(0,dp.default)((0,fp.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Xt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gl=typeof global=="object"&&global&&global.Object===Object&&global,mp=typeof self=="object"&&self&&self.Object===Object&&self,_t=Gl||mp||Function("return this")(),Bo=function(){return _t.Date.now()},hp=/\s/;function pp(e){for(var t=e.length;t--&&hp.test(e.charAt(t)););return t}var gp=/^\s+/;function yp(e){return e&&e.slice(0,pp(e)+1).replace(gp,"")}var Nt=_t.Symbol,zl=Object.prototype,_p=zl.hasOwnProperty,bp=zl.toString,Br=Nt?Nt.toStringTag:void 0;function vp(e){var t=_p.call(e,Br),r=e[Br];try{e[Br]=void 0;var n=!0}catch{}var o=bp.call(e);return n&&(t?e[Br]=r:delete e[Br]),o}var Sp=Object.prototype,xp=Sp.toString;function wp(e){return xp.call(e)}var jp="[object Null]",Rp="[object Undefined]",Xs=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Rp:jp:Xs&&Xs in Object(e)?vp(e):wp(e)}function qt(e){return e!=null&&typeof e=="object"}var Cp="[object Symbol]";function po(e){return typeof e=="symbol"||qt(e)&&Zt(e)==Cp}var qs=NaN,Ap=/^[-+]0x[0-9a-f]+$/i,Pp=/^0b[01]+$/i,Op=/^0o[0-7]+$/i,Tp=parseInt;function Ys(e){if(typeof e=="number")return e;if(po(e))return qs;if(Xt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yp(e);var r=Pp.test(e);return r||Op.test(e)?Tp(e.slice(2),r?2:8):Ap.test(e)?qs:+e}var Ip="Expected a function",Mp=Math.max,Ep=Math.min;function kp(e,t,r){var n,o,a,i,l,c,u=0,d=!1,m=!1,f=!0;if(typeof e!="function")throw new TypeError(Ip);t=Ys(t)||0,Xt(r)&&(d=!!r.leading,m="maxWait"in r,a=m?Mp(Ys(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(x,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return m?Ep(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||m&&z>=a}function x(){var P=Bo();if(g(P))return j(P);l=setTimeout(x,_(P))}function j(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function L(){return l===void 0?i:j(Bo())}function R(){var P=Bo(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(m)return clearTimeout(l),l=setTimeout(x,t),b(c)}return l===void 0&&(l=setTimeout(x,t)),i}return R.cancel=C,R.flush=L,R}var Lp="Expected a function";function $p(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Lp);return Xt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),kp(e,t,{leading:n,maxWait:t,trailing:o})}const Wl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=q.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(x){this.activeJoggingDir=x,e(x)},stopJogging(){this.activeJoggingDir=null,t()}})),m=$p(()=>{u(o())},50);wr(m);function f(x){x.button===0&&d.startJogging("-")}function b(x){x.button===0&&d.startJogging("+")}function y(x){d.stopJogging()}function _(x){x.target===x.currentTarget&&d.stopJogging()}function g(x,j=1){if(x===void 0||isNaN(x))return"";const C=l("General.degree.variable",{amount:x.toFixed(j)});return x>0&&j===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(k.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Jl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(k.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(k.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(k.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Vl,{})})]})})),Np=({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"})),Fp=q.forwardRef(Np),Dp=({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"})),Up=q.forwardRef(Dp),Bp=({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"})),Jp=q.forwardRef(Bp),Vp=({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"})),Gp=q.forwardRef(Vp),zp=({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"})),Wp=q.forwardRef(zp),Hp=({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"})),Kp=q.forwardRef(Hp),Xp=He.observer(({store:e})=>{var n;const{t}=Ft.useTranslation();function r(o,a){(a==="coordsys"||a==="tool")&&e.setSelectedOrientation(a)}return s.jsxs(s.Fragment,{children:[s.jsxs(k.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(k.Stack,{width:"50%",children:[s.jsx(k.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(k.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:o=>{e.setSelectedCoordSystemId(o.target.value)},disabled:e.isLocked,children:e.coordSystems.map(o=>s.jsx(k.MenuItem,{value:o.coordinate_system,children:o.name||o.coordinate_system},o.coordinate_system))})]}),s.jsxs(k.Stack,{width:"50%",children:[s.jsx(k.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(k.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:o=>{e.setSelectedTcpId(o.target.value)},disabled:e.isLocked,children:e.tcps.map(o=>s.jsx(k.MenuItem,{value:o.id,children:o.id},o.id))})]})]}),s.jsxs(k.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(k.Stack,{width:"35%",children:[s.jsx(k.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(k.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(k.ToggleButton,{value:"coordsys",children:s.jsx(Wp,{})}),s.jsx(k.ToggleButton,{value:"tool",children:s.jsx(Kp,{})})]})]}),s.jsxs(k.Stack,{width:"65%",children:[s.jsx(k.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(k.Select,{labelId:"jogging-increment-select",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[s.jsx(k.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>s.jsx(k.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})]})]})});function qp(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const Yp=2;function Hl(e,t){return e-t}function Zs(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function _n(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Wn(e,t,r){return(e-t)*100/(r-t)}function Zp(e,t,r){return(r-t)*e+t}function Qp(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 eg(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Qp(t)))}function Qs({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Hl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function vn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?qp(e,t):!1}const tg={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}%`})}},rg=e=>e;let Sn;function ei(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function ng(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:m,orientation:f="horizontal",rootRef:b,scale:y=rg,step:_=1,shiftStep:g=10,tabIndex:x,value:j}=e,C=N.useRef(),[L,R]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,X]=Il({controlled:j,default:r??c,name:"Slider"}),G=d&&((T,E,F)=>{const W=T.nativeEvent||T,Z=new W.constructor(W.type,W);Object.defineProperty(Z,"target",{writable:!0,value:{value:E,name:u}}),d(Z,E,F)}),Y=Array.isArray(D);let K=Y?D.slice().sort(Hl):[D];K=K.map(T=>T==null?c:mr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,E)=>({value:c+_*E})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ee,ref:ot}=Ml(),[bt,Ke]=N.useState(-1),je=N.useRef(),Ot=Vn(ot,je),ct=Vn(b,Ot),Xe=T=>E=>{var F;const W=Number(E.currentTarget.getAttribute("data-index"));Ee(E),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,E)},Be=T=>E=>{var F;Ae(E),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,E)},ut=(T,E)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Z=ce.indexOf(W);let H=E;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Z-1]:ce[Z+1]}if(H=mr(H,c,l),Y){o&&(H=mr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Qs({values:K,newValue:H,index:F});let qe=F;o||(qe=H.indexOf(Ve)),bn({sliderRef:je,activeIndex:qe})}X(H),Ke(F),G&&!vn(H,D)&&G(T,H,F),m&&m(T,H)},dt=T=>E=>{var F;if(_!==null){const W=Number(E.currentTarget.getAttribute("data-index")),Z=K[W];let H=null;(E.key==="ArrowLeft"||E.key==="ArrowDown")&&E.shiftKey||E.key==="PageDown"?H=Math.max(Z-g,c):((E.key==="ArrowRight"||E.key==="ArrowUp")&&E.shiftKey||E.key==="PageUp")&&(H=Math.min(Z+g,l)),H!==null&&(ut(E,H),E.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,E)};Aa(()=>{if(n&&je.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&L!==-1&&R(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>E=>{var F;(F=T.onChange)==null||F.call(T,E),ut(E,E.target.valueAsNumber)},vt=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const I=({finger:T,move:E=!1})=>{const{current:F}=je,{width:W,height:Z,bottom:H,left:Ve}=F.getBoundingClientRect();let qe;Je.indexOf("vertical")===0?qe=(H-T.y)/Z:qe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(qe=1-qe);let te;if(te=Zp(qe,c,l),_)te=eg(te,_,c);else{const Mt=Zs(ce,te);te=ce[Mt]}te=mr(te,c,l);let $e=0;if(Y){E?$e=vt.current:$e=Zs(K,te),o&&(te=mr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const Mt=te;te=Qs({values:K,newValue:te,index:$e}),o&&E||($e=te.indexOf(Mt),vt.current=$e)}return{newValue:te,activeIndex:$e}},ee=Tn(T=>{const E=_n(T,C);if(!E)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){me(T);return}const{newValue:F,activeIndex:W}=I({finger:E,move:!0});bn({sliderRef:je,activeIndex:W,setActive:R}),X(F),!z&&ue.current>Yp&&le(!0),G&&!vn(F,D)&&G(T,F,W)}),me=Tn(T=>{const E=_n(T,C);if(le(!1),!E)return;const{newValue:F}=I({finger:E,move:!0});R(-1),T.type==="touchend"&&O(-1),m&&m(T,F),C.current=void 0,Le()}),ke=Tn(T=>{if(n)return;ei()||T.preventDefault();const E=T.changedTouches[0];E!=null&&(C.current=E.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Z,activeIndex:H}=I({finger:F});bn({sliderRef:je,activeIndex:H,setActive:R}),X(Z),G&&!vn(Z,D)&&G(T,Z,H)}ue.current=0;const W=yr(je.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",me,{passive:!0})}),Le=N.useCallback(()=>{const T=yr(je.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",me),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",me)},[me,ee]);N.useEffect(()=>{const{current:T}=je;return T.addEventListener("touchstart",ke,{passive:ei()}),()=>{T.removeEventListener("touchstart",ke),Le()}},[Le,ke]),N.useEffect(()=>{n&&Le()},[n,Le]);const Tt=T=>E=>{var F;if((F=T.onMouseDown)==null||F.call(T,E),n||E.defaultPrevented||E.button!==0)return;E.preventDefault();const W=_n(E,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=I({finger:W});bn({sliderRef:je,activeIndex:Ve,setActive:R}),X(H),G&&!vn(H,D)&&G(E,H,Ve)}ue.current=0;const Z=yr(je.current);Z.addEventListener("mousemove",ee,{passive:!0}),Z.addEventListener("mouseup",me)},Re=Wn(Y?K[0]:c,c,l),It=Wn(K[K.length-1],c,l)-Re,Bt=(T={})=>{const E=In(T),F={onMouseDown:Tt(E||{})},W=A({},E,F);return A({},T,{ref:ct},W)},Ar=T=>E=>{var F;(F=T.onMouseOver)==null||F.call(T,E);const W=Number(E.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>E=>{var F;(F=T.onMouseLeave)==null||F.call(T,E),O(-1)};return{active:L,axis:Je,axisProps:tg,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var E;const F=In(T),W={onChange:Ut(F||{}),onFocus:Xe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Z=A({},F,W);return A({tabIndex:x,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(E=e.step)!=null?E:void 0,disabled:n},T,Z,{style:A({},Ah,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const E=In(T),F={onMouseOver:Ar(E||{}),onMouseLeave:Pr(E||{})};return A({},T,E,F)},marks:we,open:P,range:Y,rootRef:ct,trackLeap:It,trackOffset:Re,values:K,getThumbStyle:T=>({pointerEvents:L!==-1&&L!==T?"none":void 0})}}const og=e=>!e||!Gr(e);function ag(e){return cn("MuiSlider",e)}const et=Cl("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),sg=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Kl(e){const{children:t,className:r,value:n}=e,o=sg(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Kl.propTypes={children:h.element.isRequired,className:h.string,value:h.node});const ig=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function ti(e){return e}const lg=Ct("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),cg=Ct("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),ug=Ct("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:ia(e.palette[r].main,.62),borderColor:ia(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:sa(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:sa(e.palette[r].main,.5)})))}))]}}),dg=Ct("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${et.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Us(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Us(e.palette[r].main,.16)}`})}}))]}}),fg=Ct(Kl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),mg=Ct("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ea(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),hg=Ct("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ea(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),pg=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Oa(u,ag,i)},gg=({children:e})=>e,Xl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,m,f,b,y,_,g,x,j,C,L,R,P,O,z,le,ue;const D=ka({props:t,name:"MuiSlider"}),X=Eh(),{"aria-label":G,"aria-valuetext":Y,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ee,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:je,getAriaValueText:Ot,marks:ct=!1,max:Xe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:vt=1,scale:Je=ti,slotProps:I,slots:ee,track:me="normal",valueLabelDisplay:ke="off",valueLabelFormat:Le=ti}=D,Tt=Ue(D,ig),Re=A({},D,{isRtl:X,max:Xe,min:Be,classes:Ee,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:vt,shiftStep:dt,scale:Je,track:me,valueLabelDisplay:ke,valueLabelFormat:Le}),{axisProps:It,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:E,dragging:F,marks:W,values:Z,trackOffset:H,trackLeap:Ve,getThumbStyle:qe}=ng(A({},Re,{rootRef:r}));Re.marked=W.length>0&&W.some($=>$.label),Re.dragging=F,Re.focusedThumbIndex=T;const te=pg(Re),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:lg,Mt=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:cg,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:ug,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:dg,St=(m=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?m:fg,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:mg,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:hg,Ir=(x=(j=ee==null?void 0:ee.input)!=null?j:ce.Input)!=null?x:"input",Mr=(C=I==null?void 0:I.root)!=null?C:Q.root,dn=(L=I==null?void 0:I.rail)!=null?L:Q.rail,Er=(R=I==null?void 0:I.track)!=null?R:Q.track,nr=(P=I==null?void 0:I.thumb)!=null?P:Q.thumb,or=(O=I==null?void 0:I.valueLabel)!=null?O:Q.valueLabel,vo=(z=I==null?void 0:I.mark)!=null?z:Q.mark,So=(le=I==null?void 0:I.markLabel)!=null?le:Q.markLabel,fn=(ue=I==null?void 0:I.input)!=null?ue:Q.input,mn=kt({elementType:$e,getSlotProps:Bt,externalSlotProps:Mr,externalForwardedProps:Tt,additionalProps:A({},og($e)&&{as:we}),ownerState:A({},Re,Mr==null?void 0:Mr.ownerState),className:[te.root,ot]}),xo=kt({elementType:Mt,externalSlotProps:dn,ownerState:Re,className:te.rail}),wo=kt({elementType:rr,externalSlotProps:Er,additionalProps:{style:A({},It[at].offset(H),It[at].leap(Ve))},ownerState:A({},Re,Er==null?void 0:Er.ownerState),className:te.track}),kr=kt({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},Re,nr==null?void 0:nr.ownerState),className:te.thumb}),jo=kt({elementType:St,externalSlotProps:or,ownerState:A({},Re,or==null?void 0:or.ownerState),className:te.valueLabel}),p=kt({elementType:Jt,externalSlotProps:vo,ownerState:Re,className:te.mark}),w=kt({elementType:Vt,externalSlotProps:So,ownerState:Re,className:te.markLabel}),M=kt({elementType:Ir,getSlotProps:Ar,externalSlotProps:fn,ownerState:Re});return s.jsxs($e,A({},mn,{children:[s.jsx(Mt,A({},xo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=Xe).map(($,U)=>{const re=Wn($.value,Be,Xe),V=It[at].offset(re);let B;return me===!1?B=Z.indexOf($.value)!==-1:B=me==="normal"&&(E?$.value>=Z[0]&&$.value<=Z[Z.length-1]:$.value<=Z[0])||me==="inverted"&&(E?$.value<=Z[0]||$.value>=Z[Z.length-1]:$.value>=Z[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Z.map(($,U)=>{const re=Wn($,Be,Xe),V=It[at].offset(re),B=ke==="off"?gg:St;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:Le,valueLabelDisplay:ke,value:typeof Le=="function"?Le(Je($),U):Le,index:U,open:Or===U||tr===U||ke==="on",disabled:Ke},jo,{children:s.jsx(Tr,A({"data-index":U},kr,{className:gt(te.thumb,kr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,qe(U),kr.style),children:s.jsx(Ir,A({"data-index":U,"aria-label":je?je(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Ot?Ot(Je($),U):Y,value:Z[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Xl.propTypes={"aria-label":Ms(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":Ms(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 yg="[object Number]";function _g(e){return typeof e=="number"||qt(e)&&Zt(e)==yg}const ql=He.observer(e=>{const t=k.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!_g(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(k.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Xl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Yl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(k.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(k.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(ql,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),Zl=q.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(k.InputLabel,{children:e}),s.jsx(k.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),bg=He.observer(({store:e})=>{const t=q.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?$t.poseToWandelscriptString(n):""}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(k.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})});function vg(){this.__data__=[],this.size=0}function Ql(e,t){return e===t||e!==e&&t!==t}function go(e,t){for(var r=e.length;r--;)if(Ql(e[r][0],t))return r;return-1}var Sg=Array.prototype,xg=Sg.splice;function wg(e){var t=this.__data__,r=go(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xg.call(t,r,1),--this.size,!0}function jg(e){var t=this.__data__,r=go(t,e);return r<0?void 0:t[r][1]}function Rg(e){return go(this.__data__,e)>-1}function Cg(e,t){var r=this.__data__,n=go(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}At.prototype.clear=vg;At.prototype.delete=wg;At.prototype.get=jg;At.prototype.has=Rg;At.prototype.set=Cg;function Ag(){this.__data__=new At,this.size=0}function Pg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Og(e){return this.__data__.get(e)}function Tg(e){return this.__data__.has(e)}var Ig="[object AsyncFunction]",Mg="[object Function]",Eg="[object GeneratorFunction]",kg="[object Proxy]";function ec(e){if(!Xt(e))return!1;var t=Zt(e);return t==Mg||t==Eg||t==Ig||t==kg}var Jo=_t["__core-js_shared__"],ri=function(){var e=/[^.]+$/.exec(Jo&&Jo.keys&&Jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Lg(e){return!!ri&&ri in e}var $g=Function.prototype,Ng=$g.toString;function Qt(e){if(e!=null){try{return Ng.call(e)}catch{}try{return e+""}catch{}}return""}var Fg=/[\\^$.*+?()[\]{}|]/g,Dg=/^\[object .+?Constructor\]$/,Ug=Function.prototype,Bg=Object.prototype,Jg=Ug.toString,Vg=Bg.hasOwnProperty,Gg=RegExp("^"+Jg.call(Vg).replace(Fg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zg(e){if(!Xt(e)||Lg(e))return!1;var t=ec(e)?Gg:Dg;return t.test(Qt(e))}function Wg(e,t){return e==null?void 0:e[t]}function er(e,t){var r=Wg(e,t);return zg(r)?r:void 0}var Zr=er(_t,"Map"),Qr=er(Object,"create");function Hg(){this.__data__=Qr?Qr(null):{},this.size=0}function Kg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xg="__lodash_hash_undefined__",qg=Object.prototype,Yg=qg.hasOwnProperty;function Zg(e){var t=this.__data__;if(Qr){var r=t[e];return r===Xg?void 0:r}return Yg.call(t,e)?t[e]:void 0}var Qg=Object.prototype,ey=Qg.hasOwnProperty;function ty(e){var t=this.__data__;return Qr?t[e]!==void 0:ey.call(t,e)}var ry="__lodash_hash_undefined__";function ny(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qr&&t===void 0?ry:t,this}function Yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yt.prototype.clear=Hg;Yt.prototype.delete=Kg;Yt.prototype.get=Zg;Yt.prototype.has=ty;Yt.prototype.set=ny;function oy(){this.size=0,this.__data__={hash:new Yt,map:new(Zr||At),string:new Yt}}function ay(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yo(e,t){var r=e.__data__;return ay(t)?r[typeof t=="string"?"string":"hash"]:r.map}function sy(e){var t=yo(this,e).delete(e);return this.size-=t?1:0,t}function iy(e){return yo(this,e).get(e)}function ly(e){return yo(this,e).has(e)}function cy(e,t){var r=yo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pt.prototype.clear=oy;Pt.prototype.delete=sy;Pt.prototype.get=iy;Pt.prototype.has=ly;Pt.prototype.set=cy;var uy=200;function dy(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!Zr||n.length<uy-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 jt(e){var t=this.__data__=new At(e);this.size=t.size}jt.prototype.clear=Ag;jt.prototype.delete=Pg;jt.prototype.get=Og;jt.prototype.has=Tg;jt.prototype.set=dy;var fy="__lodash_hash_undefined__";function my(e){return this.__data__.set(e,fy),this}function hy(e){return this.__data__.has(e)}function Hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Hn.prototype.add=Hn.prototype.push=my;Hn.prototype.has=hy;function py(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 gy(e,t){return e.has(t)}var yy=1,_y=2;function tc(e,t,r,n,o,a){var i=r&yy,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var m=-1,f=!0,b=r&_y?new Hn:void 0;for(a.set(e,t),a.set(t,e);++m<l;){var y=e[m],_=t[m];if(n)var g=i?n(_,y,m,t,e,a):n(y,_,m,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!py(t,function(x,j){if(!gy(b,j)&&(y===x||o(y,x,r,n,a)))return b.push(j)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var ni=_t.Uint8Array;function by(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function vy(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Sy=1,xy=2,wy="[object Boolean]",jy="[object Date]",Ry="[object Error]",Cy="[object Map]",Ay="[object Number]",Py="[object RegExp]",Oy="[object Set]",Ty="[object String]",Iy="[object Symbol]",My="[object ArrayBuffer]",Ey="[object DataView]",oi=Nt?Nt.prototype:void 0,Vo=oi?oi.valueOf:void 0;function ky(e,t,r,n,o,a,i){switch(r){case Ey:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case My:return!(e.byteLength!=t.byteLength||!a(new ni(e),new ni(t)));case wy:case jy:case Ay:return Ql(+e,+t);case Ry:return e.name==t.name&&e.message==t.message;case Py:case Ty:return e==t+"";case Cy:var l=by;case Oy:var c=n&Sy;if(l||(l=vy),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=xy,i.set(e,t);var d=tc(l(e),l(t),n,o,a,i);return i.delete(e),d;case Iy:if(Vo)return Vo.call(e)==Vo.call(t)}return!1}function Ly(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var yt=Array.isArray;function $y(e,t,r){var n=t(e);return yt(e)?n:Ly(n,r(e))}function Ny(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Fy(){return[]}var Dy=Object.prototype,Uy=Dy.propertyIsEnumerable,ai=Object.getOwnPropertySymbols,By=ai?function(e){return e==null?[]:(e=Object(e),Ny(ai(e),function(t){return Uy.call(e,t)}))}:Fy;function Jy(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Vy="[object Arguments]";function si(e){return qt(e)&&Zt(e)==Vy}var rc=Object.prototype,Gy=rc.hasOwnProperty,zy=rc.propertyIsEnumerable,nc=si(function(){return arguments}())?si:function(e){return qt(e)&&Gy.call(e,"callee")&&!zy.call(e,"callee")};function Wy(){return!1}var oc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ii=oc&&typeof module=="object"&&module&&!module.nodeType&&module,Hy=ii&&ii.exports===oc,li=Hy?_t.Buffer:void 0,Ky=li?li.isBuffer:void 0,ua=Ky||Wy,Xy=9007199254740991,qy=/^(?:0|[1-9]\d*)$/;function ac(e,t){var r=typeof e;return t=t??Xy,!!t&&(r=="number"||r!="symbol"&&qy.test(e))&&e>-1&&e%1==0&&e<t}var Yy=9007199254740991;function Na(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yy}var Zy="[object Arguments]",Qy="[object Array]",e1="[object Boolean]",t1="[object Date]",r1="[object Error]",n1="[object Function]",o1="[object Map]",a1="[object Number]",s1="[object Object]",i1="[object RegExp]",l1="[object Set]",c1="[object String]",u1="[object WeakMap]",d1="[object ArrayBuffer]",f1="[object DataView]",m1="[object Float32Array]",h1="[object Float64Array]",p1="[object Int8Array]",g1="[object Int16Array]",y1="[object Int32Array]",_1="[object Uint8Array]",b1="[object Uint8ClampedArray]",v1="[object Uint16Array]",S1="[object Uint32Array]",de={};de[m1]=de[h1]=de[p1]=de[g1]=de[y1]=de[_1]=de[b1]=de[v1]=de[S1]=!0;de[Zy]=de[Qy]=de[d1]=de[e1]=de[f1]=de[t1]=de[r1]=de[n1]=de[o1]=de[a1]=de[s1]=de[i1]=de[l1]=de[c1]=de[u1]=!1;function x1(e){return qt(e)&&Na(e.length)&&!!de[Zt(e)]}function w1(e){return function(t){return e(t)}}var sc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=sc&&typeof module=="object"&&module&&!module.nodeType&&module,j1=zr&&zr.exports===sc,Go=j1&&Gl.process,ci=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Go&&Go.binding&&Go.binding("util")}catch{}}(),ui=ci&&ci.isTypedArray,ic=ui?w1(ui):x1,R1=Object.prototype,C1=R1.hasOwnProperty;function A1(e,t){var r=yt(e),n=!r&&nc(e),o=!r&&!n&&ua(e),a=!r&&!n&&!o&&ic(e),i=r||n||o||a,l=i?Jy(e.length,String):[],c=l.length;for(var u in e)C1.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ac(u,c)))&&l.push(u);return l}var P1=Object.prototype;function O1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||P1;return e===r}function T1(e,t){return function(r){return e(t(r))}}var I1=T1(Object.keys,Object),M1=Object.prototype,E1=M1.hasOwnProperty;function k1(e){if(!O1(e))return I1(e);var t=[];for(var r in Object(e))E1.call(e,r)&&r!="constructor"&&t.push(r);return t}function lc(e){return e!=null&&Na(e.length)&&!ec(e)}function Fa(e){return lc(e)?A1(e):k1(e)}function di(e){return $y(e,Fa,By)}var L1=1,$1=Object.prototype,N1=$1.hasOwnProperty;function F1(e,t,r,n,o,a){var i=r&L1,l=di(e),c=l.length,u=di(t),d=u.length;if(c!=d&&!i)return!1;for(var m=c;m--;){var f=l[m];if(!(i?f in t:N1.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++m<c;){f=l[m];var x=e[f],j=t[f];if(n)var C=i?n(j,x,f,t,e,a):n(x,j,f,e,t,a);if(!(C===void 0?x===j||o(x,j,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var L=e.constructor,R=t.constructor;L!=R&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof R=="function"&&R instanceof R)&&(_=!1)}return a.delete(e),a.delete(t),_}var da=er(_t,"DataView"),fa=er(_t,"Promise"),ma=er(_t,"Set"),ha=er(_t,"WeakMap"),fi="[object Map]",D1="[object Object]",mi="[object Promise]",hi="[object Set]",pi="[object WeakMap]",gi="[object DataView]",U1=Qt(da),B1=Qt(Zr),J1=Qt(fa),V1=Qt(ma),G1=Qt(ha),Lt=Zt;(da&&Lt(new da(new ArrayBuffer(1)))!=gi||Zr&&Lt(new Zr)!=fi||fa&&Lt(fa.resolve())!=mi||ma&&Lt(new ma)!=hi||ha&&Lt(new ha)!=pi)&&(Lt=function(e){var t=Zt(e),r=t==D1?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case U1:return gi;case B1:return fi;case J1:return mi;case V1:return hi;case G1:return pi}return t});var z1=1,yi="[object Arguments]",_i="[object Array]",xn="[object Object]",W1=Object.prototype,bi=W1.hasOwnProperty;function H1(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?_i:Lt(e),u=l?_i:Lt(t);c=c==yi?xn:c,u=u==yi?xn:u;var d=c==xn,m=u==xn,f=c==u;if(f&&ua(e)){if(!ua(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new jt),i||ic(e)?tc(e,t,r,n,o,a):ky(e,t,c,r,n,o,a);if(!(r&z1)){var b=d&&bi.call(e,"__wrapped__"),y=m&&bi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new jt),o(_,g,r,n,a)}}return f?(a||(a=new jt),F1(e,t,r,n,o,a)):!1}function _o(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:H1(e,t,r,n,_o,o)}function K1(e,t){return _o(e,t)}const X1=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=q.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);wr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;K1(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(k.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},q1=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(m,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}nl(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0}),q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.activeDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.activeCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(m,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:m.axis,direction:m.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:$t.degreesToRadians(f.degrees)}})})}async function i(m){if(!e.isLocked){if(n(),e.activeDiscreteIncrement)return a(m,e.activeDiscreteIncrement);m.motionType==="translate"?await e.jogger.startTCPTranslation({axis:m.axis,direction:m.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:m.axis,direction:m.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(Up,{})},{id:"y",color:"#42A705",icon:s.jsx(Jp,{})},{id:"z",color:"#0075FF",icon:s.jsx(Gp,{})}];function u(m){return t("General.mm.variable",{amount:m.toFixed(1)})}function d(m){return t("General.degree.variable",{amount:$t.radiansToDegrees(m).toFixed(1)})}return s.jsxs(k.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(bg,{store:e}),s.jsx(Xp,{store:e}),s.jsxs(k.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(k.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(k.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(k.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(m=>s.jsx(ca,{color:m.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[m.icon,s.jsx(k.Typography,{sx:{fontSize:"24px",color:"white"},children:m.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[m.id])||0)},startJogging:f=>i({axis:m.id,motionType:"translate",direction:f}),stopJogging:l},m.id)),e.selectedCartesianMotionType==="rotate"&&c.map(m=>s.jsx(ca,{color:m.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Fp,{}),s.jsx(k.Typography,{sx:{fontSize:"24px",color:"white"},children:m.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[m.id])||0)},startJogging:f=>i({axis:m.id,motionType:"rotate",direction:f}),stopJogging:l},m.id))]}),s.jsx(Yl,{store:e}),s.jsx(X1,{store:e})]})}),Y1=He.observer(({store:e})=>{const t=q.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(k.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})}),Z1=He.observer(({store:e})=>{q.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(k.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(Y1,{store:e}),s.jsx(k.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?$t.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?$t.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(k.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(k.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(Wl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?$t.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(k.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Yl,{store:e})]})});var vi=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Q1(e,t,r){t=="__proto__"&&vi?vi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function e_(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function t_(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var r_=t_();function n_(e,t){return e&&r_(e,t,Fa)}function o_(e,t){return function(r,n){if(r==null)return r;if(!lc(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var a_=o_(n_);function s_(e,t,r,n){return a_(e,function(o,a,i){t(n,o,r(o),i)}),n}var i_=1,l_=2;function c_(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new jt,m;if(!(m===void 0?_o(u,c,i_|l_,n,d):m))return!1}}return!0}function cc(e){return e===e&&!Xt(e)}function u_(e){for(var t=Fa(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,cc(o)]}return t}function uc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function d_(e){var t=u_(e);return t.length==1&&t[0][2]?uc(t[0][0],t[0][1]):function(r){return r===e||c_(r,e,t)}}var f_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m_=/^\w*$/;function Da(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||po(e)?!0:m_.test(e)||!f_.test(e)||t!=null&&e in Object(t)}var h_="Expected a function";function Ua(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(h_);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ua.Cache||Pt),r}Ua.Cache=Pt;var p_=500;function g_(e){var t=Ua(e,function(n){return r.size===p_&&r.clear(),n}),r=t.cache;return t}var y_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,__=/\\(\\)?/g,b_=g_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(y_,function(r,n,o,a){t.push(o?a.replace(__,"$1"):n||r)}),t});function v_(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var S_=1/0,Si=Nt?Nt.prototype:void 0,xi=Si?Si.toString:void 0;function dc(e){if(typeof e=="string")return e;if(yt(e))return v_(e,dc)+"";if(po(e))return xi?xi.call(e):"";var t=e+"";return t=="0"&&1/e==-S_?"-0":t}function fc(e){return e==null?"":dc(e)}function mc(e,t){return yt(e)?e:Da(e,t)?[e]:b_(fc(e))}var x_=1/0;function bo(e){if(typeof e=="string"||po(e))return e;var t=e+"";return t=="0"&&1/e==-x_?"-0":t}function hc(e,t){t=mc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[bo(t[r++])];return r&&r==n?e:void 0}function w_(e,t,r){var n=e==null?void 0:hc(e,t);return n===void 0?r:n}function j_(e,t){return e!=null&&t in Object(e)}function R_(e,t,r){t=mc(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=bo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Na(o)&&ac(i,o)&&(yt(e)||nc(e)))}function C_(e,t){return e!=null&&R_(e,t,j_)}var A_=1,P_=2;function O_(e,t){return Da(e)&&cc(t)?uc(bo(e),t):function(r){var n=w_(r,e);return n===void 0&&n===t?C_(r,e):_o(t,n,A_|P_)}}function T_(e){return e}function I_(e){return function(t){return t==null?void 0:t[e]}}function M_(e){return function(t){return hc(t,e)}}function E_(e){return Da(e)?I_(bo(e)):M_(e)}function k_(e){return typeof e=="function"?e:e==null?T_:typeof e=="object"?yt(e)?O_(e[0],e[1]):d_(e):E_(e)}function L_(e,t){return function(r,n){var o=yt(r)?e_:s_,a={};return o(r,e,k_(n),a)}}var wn=L_(function(e,t,r){Q1(e,r,t)}),$_=0;function N_(e){var t=++$_;return fc(e)+t}const pa=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],F_=[{id:"continuous"},...pa];class Ba{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Ba(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=$t.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return F_}get discreteIncrementOptions(){return pa}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return wn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return wn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:pa.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=N_();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const D_=en(He.observer(e=>{var a,i,l,c;const t=Pc.isString(e.nova)?new $t.NovaClient({instanceUrl:e.nova}):e.nova,r=He.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){br.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const u=await t.connectJogger(e.motionGroupId),d=await Ba.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(q.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),q.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:m,activeDiscreteIncrement:f}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:m};f&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.activeDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(wi,{children:s.jsx(Qi,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(wi,{children:s.jsxs(k.Stack,{flexGrow:1,children:[s.jsx(k.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(k.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(k.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(q1,{store:o}),o.currentTab.id==="joint"&&s.jsx(Z1,{store:o}),e.children]})]})})}));function wi({children:e}){return s.jsx(k.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(k.Paper,{sx:{height:"100%"},children:e})})}function U_(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function B_({baseUrl:e=U_(),...t}){return s.jsxs(k.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[s.jsx(k.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(k.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(k.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(k.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(k.DialogActions,{children:s.jsxs(k.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(k.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(k.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const J_=Array(6).fill(2*Math.PI),mt={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},V_={mode:"dark",colors:{primary:mt.skyblue500,textDefault:mt.white,textSubtle:mt.midnightgray,background:{default:mt.darkishblue,panel:mt.darkestblue}}},G_={mode:"light",colors:{primary:mt.skyblue500,textDefault:mt.darkishblue,textSubtle:mt.midnightgray,background:{default:mt.skyblue500,panel:mt.white}}};function z_(e){var o,a,i,l;let t=!0;((o=e.palette)==null?void 0:o.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((l=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:l.matches)));const r=t?V_:G_,n=la({palette:{mode:r.mode,primary:{main:r.colors.primary},background:{default:r.colors.background.default,paper:r.colors.background.panel}},typography:{allVariants:{color:r.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:t?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:t?"#3d4455":void 0,color:t?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":t?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:t?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":t?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:r});return e?la(n,e):n}exports.JoggingCartesianAxisControl=ca;exports.JoggingJointRotationControl=Wl;exports.JoggingPanel=D_;exports.NoMotionGroupModal=B_;exports.PresetEnvironment=lf;exports.Robot=sf;exports.SafetyZonesRenderer=df;exports.SupportedRobot=ol;exports.VelocitySlider=ql;exports.WandelscriptEditor=$d;exports.createNovaMuiTheme=z_;exports.defaultAxisConfig=J_;exports.defaultGetModel=va;exports.useAnimationFrame=wr;exports.useAutorun=rl;exports.useMounted=eo;exports.useReaction=nl;
80
+ } });`:Hr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Ws(_,"light",j,n),Ws(_,"dark",C,n),_.contrastText||(_.contrastText=m(_.main)),_},v={dark:Fa,light:zs};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(A({common:A({},Yr),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:P0,contrastThreshold:r,getContrastText:m,augmentColor:f,tonalOffset:n},v[t]),a)}const N0=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function F0(e){return Math.round(e*1e5)/1e5}const Ks={textTransform:"uppercase"},Hs='"Roboto", "Helvetica", "Arial", sans-serif';function D0(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Hs,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:m}=r,f=Be(r,N0);process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=a/14,y=m||(x=>`${x/u*v}rem`),_=(x,j,C,L,R)=>A({fontFamily:n,fontWeight:x,fontSize:y(j),lineHeight:C},n===Hs?{letterSpacing:`${F0(L/j)}em`}:{},R,d),g={h1:_(o,96,1.167,-1.5),h2:_(o,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,Ks),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,Ks),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(A({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),f,{clone:!1})}const U0=.2,B0=.14,J0=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${U0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${B0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${J0})`].join(",")}const V0=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],G0=["duration","easing","delay"],z0={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)"},W0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xs(e){return`${Math.round(e)}ms`}function K0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function H0(e){const t=A({},z0,e.easing),r=A({},W0,e.duration);return A({getAutoHeightDuration:K0,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=o,u=Be(o,G0);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",m=f=>!isNaN(parseFloat(f));!d(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
81
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(d=>`${d} ${typeof i=="string"?i:Xs(i)} ${l} ${typeof c=="string"?c:Xs(c)}`).join(",")}},e,{easing:t,duration:r})}const X0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},q0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function io(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Be(e,q0);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.":Hr(18));const l=$0(n),c=ln(e);let u=tt(c,{mixins:p0(c.breakpoints,r),palette:l,shadows:V0.slice(),typography:D0(l,o),transitions:H0(a),zIndex:A({},X0)});if(u=tt(u,i),u=t.reduce((d,m)=>tt(d,m),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(f,v)=>{let y;for(y in f){const _=f[y];if(d.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=cn("",y);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
82
+ `))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const v=u.components[f].styleOverrides;v&&f.indexOf("Mui")===0&&m(v,f)})}return u.unstable_sxConfig=A({},on,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return sn({sx:m,theme:this})},u}const Y0=io(),Z0="$$material";function Lo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Q0=e=>Lo(e)&&e!=="classes",At=e0({themeId:Z0,defaultTheme:Y0,rootShouldForwardProp:Q0});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function $o(e){return Nh(e)}const vr=zh({createStyledComponent:At("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$o({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(vr.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 lo=en(De.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:o,...i})=>{wr(()=>{const d=r(),m=l.current;m&&(m.textContent=d)});const l=Z.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(vr,{height:"72px",direction:"row",...i,children:[s.jsx(E.Button,{onPointerDown:c,onPointerUp:a,onPointerOut:a,disabled:o,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(vr,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(vr,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(E.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(E.Button,{onPointerDown:u,onPointerUp:a,onPointerOut:a,disabled:o,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}));var No={},Da={};function ep(e){return cn("MuiSvgIcon",e)}Cl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tp=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],rp=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Mo(a,ep,n)},np=At("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,l,c,u,d,m,f,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(m=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?m:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),zn=N.forwardRef(function(t,r){const n=$o({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:f="0 0 24 24"}=n,v=Be(n,tp),y=N.isValidElement(a)&&a.type==="svg",_=A({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),g={};d||(g.viewBox=f);const x=rp(_);return s.jsxs(np,A({as:l,className:gt(x.root,o),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r},g,v,y&&a.props,{ownerState:_,children:[y?a.props.children:a,m?s.jsx("title",{children:m}):null]}))});process.env.NODE_ENV!=="production"&&(zn.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});zn.muiName="SvgIcon";function ap(e,t){function r(n,a){return s.jsx(zn,A({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=zn.muiName,N.memo(N.forwardRef(r))}const op={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
83
+ `)),jl.configure(e)}},sp=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:fh,createSvgIcon:ap,debounce:mh,deprecatedPropType:hh,isMuiElement:ph,ownerDocument:_r,ownerWindow:gh,requirePropFactory:yh,setRef:Tl,unstable_ClassNameGenerator:op,unstable_useEnhancedEffect:Oo,unstable_useId:vh,unsupportedProp:bh,useControlled:Ml,useEventCallback:Tn,useForkRef:Vn,useIsFocusVisible:Il},Symbol.toStringTag,{value:"Module"})),ip=Ct(sp);var qs;function Bl(){return qs||(qs=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ip}(Da)),Da}var lp=ma;Object.defineProperty(No,"__esModule",{value:!0});var Jl=No.default=void 0,cp=lp(Bl()),up=s;Jl=No.default=(0,cp.default)((0,up.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Fo={},dp=ma;Object.defineProperty(Fo,"__esModule",{value:!0});var Vl=Fo.default=void 0,fp=dp(Bl()),mp=s;Vl=Fo.default=(0,fp.default)((0,mp.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function qt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gl=typeof global=="object"&&global&&global.Object===Object&&global,hp=typeof self=="object"&&self&&self.Object===Object&&self,_t=Gl||hp||Function("return this")(),Ua=function(){return _t.Date.now()},pp=/\s/;function gp(e){for(var t=e.length;t--&&pp.test(e.charAt(t)););return t}var yp=/^\s+/;function _p(e){return e&&e.slice(0,gp(e)+1).replace(yp,"")}var Ft=_t.Symbol,zl=Object.prototype,vp=zl.hasOwnProperty,bp=zl.toString,Br=Ft?Ft.toStringTag:void 0;function Sp(e){var t=vp.call(e,Br),r=e[Br];try{e[Br]=void 0;var n=!0}catch{}var a=bp.call(e);return n&&(t?e[Br]=r:delete e[Br]),a}var xp=Object.prototype,wp=xp.toString;function jp(e){return wp.call(e)}var Rp="[object Null]",Cp="[object Undefined]",Ys=Ft?Ft.toStringTag:void 0;function Qt(e){return e==null?e===void 0?Cp:Rp:Ys&&Ys in Object(e)?Sp(e):jp(e)}function Yt(e){return e!=null&&typeof e=="object"}var Ap="[object Symbol]";function ha(e){return typeof e=="symbol"||Yt(e)&&Qt(e)==Ap}var Zs=NaN,Pp=/^[-+]0x[0-9a-f]+$/i,Op=/^0b[01]+$/i,Tp=/^0o[0-7]+$/i,Mp=parseInt;function Qs(e){if(typeof e=="number")return e;if(ha(e))return Zs;if(qt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_p(e);var r=Op.test(e);return r||Tp.test(e)?Mp(e.slice(2),r?2:8):Pp.test(e)?Zs:+e}var Ip="Expected a function",Ep=Math.max,kp=Math.min;function Lp(e,t,r){var n,a,o,i,l,c,u=0,d=!1,m=!1,f=!0;if(typeof e!="function")throw new TypeError(Ip);t=Qs(t)||0,qt(r)&&(d=!!r.leading,m="maxWait"in r,o=m?Ep(Qs(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f);function v(P){var O=n,z=a;return n=a=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(x,t),d?v(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return m?kp(le,o-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||m&&z>=o}function x(){var P=Ua();if(g(P))return j(P);l=setTimeout(x,_(P))}function j(P){return l=void 0,f&&n?v(P):(n=a=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=a=l=void 0}function L(){return l===void 0?i:j(Ua())}function R(){var P=Ua(),O=g(P);if(n=arguments,a=this,c=P,O){if(l===void 0)return y(c);if(m)return clearTimeout(l),l=setTimeout(x,t),v(c)}return l===void 0&&(l=setTimeout(x,t)),i}return R.cancel=C,R.flush=L,R}var $p="Expected a function";function Np(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError($p);return qt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Lp(e,t,{leading:n,maxWait:t,trailing:a})}const Wl=en(De.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:a,disabled:o,...i})=>{const{t:l}=Dt.useTranslation(),[c,u]=Z.useState(),d=De.useLocalObservable(()=>({activeJoggingDir:null,startJogging(x){this.activeJoggingDir=x,e(x)},stopJogging(){this.activeJoggingDir=null,t()}})),m=Np(()=>{u(a())},50);wr(m);function f(x){x.button===0&&d.startJogging("-")}function v(x){x.button===0&&d.startJogging("+")}function y(x){d.stopJogging()}function _(x){x.target===x.currentTarget&&d.stopJogging()}function g(x,j=1){if(x===void 0||isNaN(x))return"";const C=l("General.degree.variable",{amount:x.toFixed(j)});return x>0&&j===0?`+${C}`:C}return s.jsxs(vr,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(E.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:o,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Jl,{})}),s.jsxs(vr,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(E.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(E.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(E.IconButton,{onPointerDown:v,onPointerUp:y,onPointerOut:_,disabled:o,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Vl,{})})]})})),Fp=({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"})),Dp=Z.forwardRef(Fp),Up=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Bp=Z.forwardRef(Up),Jp=({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"})),Vp=Z.forwardRef(Jp),Gp=({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"})),zp=Z.forwardRef(Gp),Wp=({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"})),Kp=Z.forwardRef(Wp),Hp=({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"})),Xp=Z.forwardRef(Hp),qp=De.observer(({store:e})=>{var n;const{t}=Dt.useTranslation();function r(a,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(E.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(E.Stack,{width:"50%",children:[s.jsx(E.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(E.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:a=>{e.setSelectedCoordSystemId(a.target.value)},disabled:e.isLocked,children:e.coordSystems.map(a=>s.jsx(E.MenuItem,{value:a.coordinate_system,children:a.name||a.coordinate_system},a.coordinate_system))})]}),s.jsxs(E.Stack,{width:"50%",children:[s.jsx(E.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(E.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:a=>{e.setSelectedTcpId(a.target.value)},disabled:e.isLocked,children:e.tcps.map(a=>s.jsx(E.MenuItem,{value:a.id,children:a.id},a.id))})]})]}),s.jsxs(E.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(E.Stack,{width:"35%",children:[s.jsx(E.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(E.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(E.ToggleButton,{value:"coordsys",children:s.jsx(Kp,{})}),s.jsx(E.ToggleButton,{value:"tool",children:s.jsx(Xp,{})})]})]}),s.jsxs(E.Stack,{width:"65%",children:[s.jsx(E.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(E.Select,{labelId:"jogging-increment-select",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:a=>{e.setSelectedIncrementId(a.target.value)},disabled:e.isLocked,children:[s.jsx(E.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(a=>s.jsx(E.MenuItem,{value:a.id,children:e.currentMotionType==="translate"?`${a.mm}mm`:`${a.degrees}°`},a.id))]})]})]})]})});function Yp(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const Zp=2;function Kl(e,t){return e-t}function ei(e,t){var r;const{index:n}=(r=e.reduce((a,o,i)=>{const l=Math.abs(t-o);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 Wn(e,t,r){return(e-t)*100/(r-t)}function Qp(e,t,r){return(r-t)*e+t}function eg(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 tg(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(eg(t)))}function ti({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Kl)}function vn({sliderRef:e,activeIndex:t,setActive:r}){var n,a;const o=_r(e.current);if(!((n=e.current)!=null&&n.contains(o.activeElement))||Number(o==null||(a=o.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"?Yp(e,t):!1}const rg={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}%`})}},ng=e=>e;let Sn;function ri(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function ag(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:o=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:m,orientation:f="horizontal",rootRef:v,scale:y=ng,step:_=1,shiftStep:g=10,tabIndex:x,value:j}=e,C=N.useRef(),[L,R]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,X]=Ml({controlled:j,default:r??c,name:"Slider"}),G=d&&((T,k,F)=>{const W=T.nativeEvent||T,Y=new W.constructor(W.type,W);Object.defineProperty(Y,"target",{writable:!0,value:{value:k,name:u}}),d(Y,k,F)}),q=Array.isArray(D);let H=q?D.slice().sort(Kl):[D];H=H.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,k)=>({value:c+_*k})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ee,ref:at}=Il(),[vt,He]=N.useState(-1),je=N.useRef(),Tt=Vn(at,je),ct=Vn(v,Tt),Xe=T=>k=>{var F;const W=Number(k.currentTarget.getAttribute("data-index"));Ee(k),Q.current===!0&&He(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,k)},Je=T=>k=>{var F;Ae(k),Q.current===!1&&He(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,k)},ut=(T,k)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=H[F],Y=ce.indexOf(W);let K=k;if(we&&_==null){const Ge=ce[ce.length-1];K>Ge?K=Ge:K<ce[0]?K=ce[0]:K=K<W?ce[Y-1]:ce[Y+1]}if(K=hr(K,c,l),q){a&&(K=hr(K,H[F-1]||-1/0,H[F+1]||1/0));const Ge=K;K=ti({values:H,newValue:K,index:F});let qe=F;a||(qe=K.indexOf(Ge)),vn({sliderRef:je,activeIndex:qe})}X(K),He(F),G&&!bn(K,D)&&G(T,K,F),m&&m(T,K)},dt=T=>k=>{var F;if(_!==null){const W=Number(k.currentTarget.getAttribute("data-index")),Y=H[W];let K=null;(k.key==="ArrowLeft"||k.key==="ArrowDown")&&k.shiftKey||k.key==="PageDown"?K=Math.max(Y-g,c):((k.key==="ArrowRight"||k.key==="ArrowUp")&&k.shiftKey||k.key==="PageUp")&&(K=Math.min(Y+g,l)),K!==null&&(ut(k,K),k.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,k)};Oo(()=>{if(n&&je.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&L!==-1&&R(-1),n&&vt!==-1&&He(-1);const Bt=T=>k=>{var F;(F=T.onChange)==null||F.call(T,k),ut(k,k.target.valueAsNumber)},bt=N.useRef();let Ve=f;o&&f==="horizontal"&&(Ve+="-reverse");const M=({finger:T,move:k=!1})=>{const{current:F}=je,{width:W,height:Y,bottom:K,left:Ge}=F.getBoundingClientRect();let qe;Ve.indexOf("vertical")===0?qe=(K-T.y)/Y:qe=(T.x-Ge)/W,Ve.indexOf("-reverse")!==-1&&(qe=1-qe);let te;if(te=Qp(qe,c,l),_)te=tg(te,_,c);else{const Et=ei(ce,te);te=ce[Et]}te=hr(te,c,l);let $e=0;if(q){k?$e=bt.current:$e=ei(H,te),a&&(te=hr(te,H[$e-1]||-1/0,H[$e+1]||1/0));const Et=te;te=ti({values:H,newValue:te,index:$e}),a&&k||($e=te.indexOf(Et),bt.current=$e)}return{newValue:te,activeIndex:$e}},ee=Tn(T=>{const k=_n(T,C);if(!k)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=M({finger:k,move:!0});vn({sliderRef:je,activeIndex:W,setActive:R}),X(F),!z&&ue.current>Zp&&le(!0),G&&!bn(F,D)&&G(T,F,W)}),he=Tn(T=>{const k=_n(T,C);if(le(!1),!k)return;const{newValue:F}=M({finger:k,move:!0});R(-1),T.type==="touchend"&&O(-1),m&&m(T,F),C.current=void 0,Le()}),ke=Tn(T=>{if(n)return;ri()||T.preventDefault();const k=T.changedTouches[0];k!=null&&(C.current=k.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Y,activeIndex:K}=M({finger:F});vn({sliderRef:je,activeIndex:K,setActive:R}),X(Y),G&&!bn(Y,D)&&G(T,Y,K)}ue.current=0;const W=_r(je.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),Le=N.useCallback(()=>{const T=_r(je.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=je;return T.addEventListener("touchstart",ke,{passive:ri()}),()=>{T.removeEventListener("touchstart",ke),Le()}},[Le,ke]),N.useEffect(()=>{n&&Le()},[n,Le]);const Mt=T=>k=>{var F;if((F=T.onMouseDown)==null||F.call(T,k),n||k.defaultPrevented||k.button!==0)return;k.preventDefault();const W=_n(k,C);if(W!==!1){const{newValue:K,activeIndex:Ge}=M({finger:W});vn({sliderRef:je,activeIndex:Ge,setActive:R}),X(K),G&&!bn(K,D)&&G(k,K,Ge)}ue.current=0;const Y=_r(je.current);Y.addEventListener("mousemove",ee,{passive:!0}),Y.addEventListener("mouseup",he)},Re=Wn(q?H[0]:c,c,l),It=Wn(H[H.length-1],c,l)-Re,Jt=(T={})=>{const k=Mn(T),F={onMouseDown:Mt(k||{})},W=A({},k,F);return A({},T,{ref:ct},W)},Ar=T=>k=>{var F;(F=T.onMouseOver)==null||F.call(T,k);const W=Number(k.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>k=>{var F;(F=T.onMouseLeave)==null||F.call(T,k),O(-1)};return{active:L,axis:Ve,axisProps:rg,dragging:z,focusedThumbIndex:vt,getHiddenInputProps:(T={})=>{var k;const F=Mn(T),W={onChange:Bt(F||{}),onFocus:Xe(F||{}),onBlur:Je(F||{}),onKeyDown:dt(F||{})},Y=A({},F,W);return A({tabIndex:x,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(k=e.step)!=null?k:void 0,disabled:n},T,Y,{style:A({},Ph,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Jt,getThumbProps:(T={})=>{const k=Mn(T),F={onMouseOver:Ar(k||{}),onMouseLeave:Pr(k||{})};return A({},T,k,F)},marks:we,open:P,range:q,rootRef:ct,trackLeap:It,trackOffset:Re,values:H,getThumbStyle:T=>({pointerEvents:L!==-1&&L!==T?"none":void 0})}}const og=e=>!e||!Gr(e);function sg(e){return cn("MuiSlider",e)}const et=Cl("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),ig=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Hl(e){const{children:t,className:r,value:n}=e,a=ig(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(a.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:a.circle,children:s.jsx("span",{className:a.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Hl.propTypes={children:h.element.isRequired,className:h.string,value:h.node});const lg=["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 ni(e){return e}const cg=At("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),ug=At("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}}]}),dg=At("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:so(e.palette[r].main,.62),borderColor:so(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:oo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:oo(e.palette[r].main,.5)})))}))]}}),fg=At("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${et.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Js(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Js(e.palette[r].main,.16)}`})}}))]}}),mg=At(Hl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),hg=At("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Lo(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}}]})),pg=At("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Lo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),gg=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:o,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Mo(u,sg,i)},yg=({children:e})=>e,Xl=N.forwardRef(function(t,r){var n,a,o,i,l,c,u,d,m,f,v,y,_,g,x,j,C,L,R,P,O,z,le,ue;const D=$o({props:t,name:"MuiSlider"}),X=kh(),{"aria-label":G,"aria-valuetext":q,"aria-labelledby":H,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ee,className:at,disableSwap:vt=!1,disabled:He=!1,getAriaLabel:je,getAriaValueText:Tt,marks:ct=!1,max:Xe=100,min:Je=0,orientation:ut="horizontal",shiftStep:dt=10,size:Bt="medium",step:bt=1,scale:Ve=ni,slotProps:M,slots:ee,track:he="normal",valueLabelDisplay:ke="off",valueLabelFormat:Le=ni}=D,Mt=Be(D,lg),Re=A({},D,{isRtl:X,max:Xe,min:Je,classes:Ee,disabled:He,disableSwap:vt,orientation:ut,marks:ct,color:Ae,size:Bt,step:bt,shiftStep:dt,scale:Ve,track:he,valueLabelDisplay:ke,valueLabelFormat:Le}),{axisProps:It,getRootProps:Jt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:rr,axis:ot,focusedThumbIndex:T,range:k,dragging:F,marks:W,values:Y,trackOffset:K,trackLeap:Ge,getThumbStyle:qe}=ag(A({},Re,{rootRef:r}));Re.marked=W.length>0&&W.some($=>$.label),Re.dragging=F,Re.focusedThumbIndex=T;const te=gg(Re),$e=(n=(a=ee==null?void 0:ee.root)!=null?a:ce.Root)!=null?n:cg,Et=(o=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?o:ug,nr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:dg,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:fg,St=(m=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?m:mg,Vt=(v=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?v:hg,Gt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:pg,Mr=(x=(j=ee==null?void 0:ee.input)!=null?j:ce.Input)!=null?x:"input",Ir=(C=M==null?void 0:M.root)!=null?C:Q.root,dn=(L=M==null?void 0:M.rail)!=null?L:Q.rail,Er=(R=M==null?void 0:M.track)!=null?R:Q.track,ar=(P=M==null?void 0:M.thumb)!=null?P:Q.thumb,or=(O=M==null?void 0:M.valueLabel)!=null?O:Q.valueLabel,va=(z=M==null?void 0:M.mark)!=null?z:Q.mark,ba=(le=M==null?void 0:M.markLabel)!=null?le:Q.markLabel,fn=(ue=M==null?void 0:M.input)!=null?ue:Q.input,mn=Lt({elementType:$e,getSlotProps:Jt,externalSlotProps:Ir,externalForwardedProps:Mt,additionalProps:A({},og($e)&&{as:we}),ownerState:A({},Re,Ir==null?void 0:Ir.ownerState),className:[te.root,at]}),Sa=Lt({elementType:Et,externalSlotProps:dn,ownerState:Re,className:te.rail}),xa=Lt({elementType:nr,externalSlotProps:Er,additionalProps:{style:A({},It[ot].offset(K),It[ot].leap(Ge))},ownerState:A({},Re,Er==null?void 0:Er.ownerState),className:te.track}),kr=Lt({elementType:Tr,getSlotProps:Pr,externalSlotProps:ar,ownerState:A({},Re,ar==null?void 0:ar.ownerState),className:te.thumb}),wa=Lt({elementType:St,externalSlotProps:or,ownerState:A({},Re,or==null?void 0:or.ownerState),className:te.valueLabel}),p=Lt({elementType:Vt,externalSlotProps:va,ownerState:Re,className:te.mark}),w=Lt({elementType:Gt,externalSlotProps:ba,ownerState:Re,className:te.markLabel}),I=Lt({elementType:Mr,getSlotProps:Ar,externalSlotProps:fn,ownerState:Re});return s.jsxs($e,A({},mn,{children:[s.jsx(Et,A({},Sa)),s.jsx(nr,A({},xa)),W.filter($=>$.value>=Je&&$.value<=Xe).map(($,U)=>{const re=Wn($.value,Je,Xe),V=It[ot].offset(re);let B;return he===!1?B=Y.indexOf($.value)!==-1:B=he==="normal"&&(k?$.value>=Y[0]&&$.value<=Y[Y.length-1]:$.value<=Y[0])||he==="inverted"&&(k?$.value<=Y[0]||$.value>=Y[Y.length-1]:$.value>=Y[0]),s.jsxs(N.Fragment,{children:[s.jsx(Vt,A({"data-index":U},p,!Gr(Vt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Gt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Gt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Y.map(($,U)=>{const re=Wn($,Je,Xe),V=It[ot].offset(re),B=ke==="off"?yg:St;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:Le,valueLabelDisplay:ke,value:typeof Le=="function"?Le(Ve($),U):Le,index:U,open:Or===U||rr===U||ke==="on",disabled:He},wa,{children:s.jsx(Tr,A({"data-index":U},kr,{className:gt(te.thumb,kr.className,rr===U&&te.active,T===U&&te.focusVisible),style:A({},V,qe(U),kr.style),children:s.jsx(Mr,A({"data-index":U,"aria-label":je?je(U):G,"aria-valuenow":Ve($),"aria-labelledby":H,"aria-valuetext":Tt?Tt(Ve($),U):q,value:Y[U]},I))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Xl.propTypes={"aria-label":ks(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":ks(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 _g="[object Number]";function vg(e){return typeof e=="number"||Yt(e)&&Qt(e)==_g}const ql=De.observer(e=>{const t=E.useTheme(),r=e.valueLabelFormat||(a=>`${a}`);function n(a,o){o===e.velocity||!vg(o)||e.onVelocityChange(o)}return s.jsxs(s.Fragment,{children:[s.jsx(E.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Xl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Yl=De.observer(({store:e})=>{const{t}=Dt.useTranslation(),r=De.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(E.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(E.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(ql,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),Zl=Z.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(E.InputLabel,{children:e}),s.jsx(E.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),bg=De.observer(({store:e})=>{const t=Z.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Nt.poseToWandelscriptString(n):""}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(E.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})});function Sg(){this.__data__=[],this.size=0}function Ql(e,t){return e===t||e!==e&&t!==t}function pa(e,t){for(var r=e.length;r--;)if(Ql(e[r][0],t))return r;return-1}var xg=Array.prototype,wg=xg.splice;function jg(e){var t=this.__data__,r=pa(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():wg.call(t,r,1),--this.size,!0}function Rg(e){var t=this.__data__,r=pa(t,e);return r<0?void 0:t[r][1]}function Cg(e){return pa(this.__data__,e)>-1}function Ag(e,t){var r=this.__data__,n=pa(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,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=Sg;Pt.prototype.delete=jg;Pt.prototype.get=Rg;Pt.prototype.has=Cg;Pt.prototype.set=Ag;function Pg(){this.__data__=new Pt,this.size=0}function Og(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Tg(e){return this.__data__.get(e)}function Mg(e){return this.__data__.has(e)}var Ig="[object AsyncFunction]",Eg="[object Function]",kg="[object GeneratorFunction]",Lg="[object Proxy]";function ec(e){if(!qt(e))return!1;var t=Qt(e);return t==Eg||t==kg||t==Ig||t==Lg}var Ba=_t["__core-js_shared__"],ai=function(){var e=/[^.]+$/.exec(Ba&&Ba.keys&&Ba.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $g(e){return!!ai&&ai in e}var Ng=Function.prototype,Fg=Ng.toString;function er(e){if(e!=null){try{return Fg.call(e)}catch{}try{return e+""}catch{}}return""}var Dg=/[\\^$.*+?()[\]{}|]/g,Ug=/^\[object .+?Constructor\]$/,Bg=Function.prototype,Jg=Object.prototype,Vg=Bg.toString,Gg=Jg.hasOwnProperty,zg=RegExp("^"+Vg.call(Gg).replace(Dg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wg(e){if(!qt(e)||$g(e))return!1;var t=ec(e)?zg:Ug;return t.test(er(e))}function Kg(e,t){return e==null?void 0:e[t]}function tr(e,t){var r=Kg(e,t);return Wg(r)?r:void 0}var Zr=tr(_t,"Map"),Qr=tr(Object,"create");function Hg(){this.__data__=Qr?Qr(null):{},this.size=0}function Xg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qg="__lodash_hash_undefined__",Yg=Object.prototype,Zg=Yg.hasOwnProperty;function Qg(e){var t=this.__data__;if(Qr){var r=t[e];return r===qg?void 0:r}return Zg.call(t,e)?t[e]:void 0}var ey=Object.prototype,ty=ey.hasOwnProperty;function ry(e){var t=this.__data__;return Qr?t[e]!==void 0:ty.call(t,e)}var ny="__lodash_hash_undefined__";function ay(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qr&&t===void 0?ny:t,this}function Zt(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])}}Zt.prototype.clear=Hg;Zt.prototype.delete=Xg;Zt.prototype.get=Qg;Zt.prototype.has=ry;Zt.prototype.set=ay;function oy(){this.size=0,this.__data__={hash:new Zt,map:new(Zr||Pt),string:new Zt}}function sy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ga(e,t){var r=e.__data__;return sy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function iy(e){var t=ga(this,e).delete(e);return this.size-=t?1:0,t}function ly(e){return ga(this,e).get(e)}function cy(e){return ga(this,e).has(e)}function uy(e,t){var r=ga(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ot(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])}}Ot.prototype.clear=oy;Ot.prototype.delete=iy;Ot.prototype.get=ly;Ot.prototype.has=cy;Ot.prototype.set=uy;var dy=200;function fy(e,t){var r=this.__data__;if(r instanceof Pt){var n=r.__data__;if(!Zr||n.length<dy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ot(n)}return r.set(e,t),this.size=r.size,this}function Rt(e){var t=this.__data__=new Pt(e);this.size=t.size}Rt.prototype.clear=Pg;Rt.prototype.delete=Og;Rt.prototype.get=Tg;Rt.prototype.has=Mg;Rt.prototype.set=fy;var my="__lodash_hash_undefined__";function hy(e){return this.__data__.set(e,my),this}function py(e){return this.__data__.has(e)}function Kn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ot;++t<r;)this.add(e[t])}Kn.prototype.add=Kn.prototype.push=hy;Kn.prototype.has=py;function gy(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 yy(e,t){return e.has(t)}var _y=1,vy=2;function tc(e,t,r,n,a,o){var i=r&_y,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var m=-1,f=!0,v=r&vy?new Kn:void 0;for(o.set(e,t),o.set(t,e);++m<l;){var y=e[m],_=t[m];if(n)var g=i?n(_,y,m,t,e,o):n(y,_,m,e,t,o);if(g!==void 0){if(g)continue;f=!1;break}if(v){if(!gy(t,function(x,j){if(!yy(v,j)&&(y===x||a(y,x,r,n,o)))return v.push(j)})){f=!1;break}}else if(!(y===_||a(y,_,r,n,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var oi=_t.Uint8Array;function by(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function Sy(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var xy=1,wy=2,jy="[object Boolean]",Ry="[object Date]",Cy="[object Error]",Ay="[object Map]",Py="[object Number]",Oy="[object RegExp]",Ty="[object Set]",My="[object String]",Iy="[object Symbol]",Ey="[object ArrayBuffer]",ky="[object DataView]",si=Ft?Ft.prototype:void 0,Ja=si?si.valueOf:void 0;function Ly(e,t,r,n,a,o,i){switch(r){case ky:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ey:return!(e.byteLength!=t.byteLength||!o(new oi(e),new oi(t)));case jy:case Ry:case Py:return Ql(+e,+t);case Cy:return e.name==t.name&&e.message==t.message;case Oy:case My:return e==t+"";case Ay:var l=by;case Ty:var c=n&xy;if(l||(l=Sy),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=wy,i.set(e,t);var d=tc(l(e),l(t),n,a,o,i);return i.delete(e),d;case Iy:if(Ja)return Ja.call(e)==Ja.call(t)}return!1}function $y(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var yt=Array.isArray;function Ny(e,t,r){var n=t(e);return yt(e)?n:$y(n,r(e))}function Fy(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}function Dy(){return[]}var Uy=Object.prototype,By=Uy.propertyIsEnumerable,ii=Object.getOwnPropertySymbols,Jy=ii?function(e){return e==null?[]:(e=Object(e),Fy(ii(e),function(t){return By.call(e,t)}))}:Dy;function Vy(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Gy="[object Arguments]";function li(e){return Yt(e)&&Qt(e)==Gy}var rc=Object.prototype,zy=rc.hasOwnProperty,Wy=rc.propertyIsEnumerable,nc=li(function(){return arguments}())?li:function(e){return Yt(e)&&zy.call(e,"callee")&&!Wy.call(e,"callee")};function Ky(){return!1}var ac=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ci=ac&&typeof module=="object"&&module&&!module.nodeType&&module,Hy=ci&&ci.exports===ac,ui=Hy?_t.Buffer:void 0,Xy=ui?ui.isBuffer:void 0,co=Xy||Ky,qy=9007199254740991,Yy=/^(?:0|[1-9]\d*)$/;function oc(e,t){var r=typeof e;return t=t??qy,!!t&&(r=="number"||r!="symbol"&&Yy.test(e))&&e>-1&&e%1==0&&e<t}var Zy=9007199254740991;function Do(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zy}var Qy="[object Arguments]",e1="[object Array]",t1="[object Boolean]",r1="[object Date]",n1="[object Error]",a1="[object Function]",o1="[object Map]",s1="[object Number]",i1="[object Object]",l1="[object RegExp]",c1="[object Set]",u1="[object String]",d1="[object WeakMap]",f1="[object ArrayBuffer]",m1="[object DataView]",h1="[object Float32Array]",p1="[object Float64Array]",g1="[object Int8Array]",y1="[object Int16Array]",_1="[object Int32Array]",v1="[object Uint8Array]",b1="[object Uint8ClampedArray]",S1="[object Uint16Array]",x1="[object Uint32Array]",de={};de[h1]=de[p1]=de[g1]=de[y1]=de[_1]=de[v1]=de[b1]=de[S1]=de[x1]=!0;de[Qy]=de[e1]=de[f1]=de[t1]=de[m1]=de[r1]=de[n1]=de[a1]=de[o1]=de[s1]=de[i1]=de[l1]=de[c1]=de[u1]=de[d1]=!1;function w1(e){return Yt(e)&&Do(e.length)&&!!de[Qt(e)]}function j1(e){return function(t){return e(t)}}var sc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=sc&&typeof module=="object"&&module&&!module.nodeType&&module,R1=zr&&zr.exports===sc,Va=R1&&Gl.process,di=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Va&&Va.binding&&Va.binding("util")}catch{}}(),fi=di&&di.isTypedArray,ic=fi?j1(fi):w1,C1=Object.prototype,A1=C1.hasOwnProperty;function P1(e,t){var r=yt(e),n=!r&&nc(e),a=!r&&!n&&co(e),o=!r&&!n&&!a&&ic(e),i=r||n||a||o,l=i?Vy(e.length,String):[],c=l.length;for(var u in e)A1.call(e,u)&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||oc(u,c)))&&l.push(u);return l}var O1=Object.prototype;function T1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||O1;return e===r}function M1(e,t){return function(r){return e(t(r))}}var I1=M1(Object.keys,Object),E1=Object.prototype,k1=E1.hasOwnProperty;function L1(e){if(!T1(e))return I1(e);var t=[];for(var r in Object(e))k1.call(e,r)&&r!="constructor"&&t.push(r);return t}function lc(e){return e!=null&&Do(e.length)&&!ec(e)}function Uo(e){return lc(e)?P1(e):L1(e)}function mi(e){return Ny(e,Uo,Jy)}var $1=1,N1=Object.prototype,F1=N1.hasOwnProperty;function D1(e,t,r,n,a,o){var i=r&$1,l=mi(e),c=l.length,u=mi(t),d=u.length;if(c!=d&&!i)return!1;for(var m=c;m--;){var f=l[m];if(!(i?f in t:F1.call(t,f)))return!1}var v=o.get(e),y=o.get(t);if(v&&y)return v==t&&y==e;var _=!0;o.set(e,t),o.set(t,e);for(var g=i;++m<c;){f=l[m];var x=e[f],j=t[f];if(n)var C=i?n(j,x,f,t,e,o):n(x,j,f,e,t,o);if(!(C===void 0?x===j||a(x,j,r,n,o):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var L=e.constructor,R=t.constructor;L!=R&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof R=="function"&&R instanceof R)&&(_=!1)}return o.delete(e),o.delete(t),_}var uo=tr(_t,"DataView"),fo=tr(_t,"Promise"),mo=tr(_t,"Set"),ho=tr(_t,"WeakMap"),hi="[object Map]",U1="[object Object]",pi="[object Promise]",gi="[object Set]",yi="[object WeakMap]",_i="[object DataView]",B1=er(uo),J1=er(Zr),V1=er(fo),G1=er(mo),z1=er(ho),$t=Qt;(uo&&$t(new uo(new ArrayBuffer(1)))!=_i||Zr&&$t(new Zr)!=hi||fo&&$t(fo.resolve())!=pi||mo&&$t(new mo)!=gi||ho&&$t(new ho)!=yi)&&($t=function(e){var t=Qt(e),r=t==U1?e.constructor:void 0,n=r?er(r):"";if(n)switch(n){case B1:return _i;case J1:return hi;case V1:return pi;case G1:return gi;case z1:return yi}return t});var W1=1,vi="[object Arguments]",bi="[object Array]",xn="[object Object]",K1=Object.prototype,Si=K1.hasOwnProperty;function H1(e,t,r,n,a,o){var i=yt(e),l=yt(t),c=i?bi:$t(e),u=l?bi:$t(t);c=c==vi?xn:c,u=u==vi?xn:u;var d=c==xn,m=u==xn,f=c==u;if(f&&co(e)){if(!co(t))return!1;i=!0,d=!1}if(f&&!d)return o||(o=new Rt),i||ic(e)?tc(e,t,r,n,a,o):Ly(e,t,c,r,n,a,o);if(!(r&W1)){var v=d&&Si.call(e,"__wrapped__"),y=m&&Si.call(t,"__wrapped__");if(v||y){var _=v?e.value():e,g=y?t.value():t;return o||(o=new Rt),a(_,g,r,n,o)}}return f?(o||(o=new Rt),D1(e,t,r,n,a,o)):!1}function ya(e,t,r,n,a){return e===t?!0:e==null||t==null||!Yt(e)&&!Yt(t)?e!==e&&t!==t:H1(e,t,r,n,ya,a)}function X1(e,t){return ya(e,t)}const q1=({store:e})=>{const{t}=Dt.useTranslation(),[r,n]=Z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);wr(()=>{const o=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;X1(r,o)||n(o)});const a=[];return r.forEach((o,i)=>{o&&a.push(i)}),a.length?s.jsx(E.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:a.map(o=>o+1).join(", ")})}):null},Y1=De.observer(({store:e})=>{const{t}=Dt.useTranslation();function r(u,d){(d==="translate"||d==="rotate")&&e.setSelectedCartesianMotionType(d)}So(()=>[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 n(u,d){const m=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,f=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;m&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:m,currentJoints:f,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:u.axis,direction:u.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:d.mm}:{type:"rotate",distanceRads:Nt.degreesToRadians(d.degrees)}})})}async function a(u){if(!e.isLocked){if(e.activeDiscreteIncrement)return n(u,e.activeDiscreteIncrement);u.motionType==="translate"?await e.jogger.startTCPTranslation({axis:u.axis,direction:u.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:u.axis,direction:u.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function o(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const i=[{id:"x",color:"#F14D42",icon:s.jsx(Bp,{})},{id:"y",color:"#42A705",icon:s.jsx(Vp,{})},{id:"z",color:"#0075FF",icon:s.jsx(zp,{})}];function l(u){return t("General.mm.variable",{amount:u.toFixed(1)})}function c(u){return t("General.degree.variable",{amount:Nt.radiansToDegrees(u).toFixed(1)})}return s.jsxs(E.Stack,{children:[s.jsx(bg,{store:e}),s.jsx(qp,{store:e}),s.jsxs(E.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(E.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(E.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(E.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&i.map(u=>s.jsx(lo,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[u.icon,s.jsx(E.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d;return l(((d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.position[u.id])||0)},startJogging:d=>a({axis:u.id,motionType:"translate",direction:d}),stopJogging:o},u.id)),e.selectedCartesianMotionType==="rotate"&&i.map(u=>s.jsx(lo,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Dp,{}),s.jsx(E.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d,m;return c(((m=(d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.orientation)==null?void 0:m[u.id])||0)},startJogging:d=>a({axis:u.id,motionType:"rotate",direction:d}),stopJogging:o},u.id))]}),s.jsx(Yl,{store:e}),s.jsx(q1,{store:e})]})}),Z1=De.observer(({store:e})=>{const t=Z.useRef(null);Dt.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(a=>parseFloat(a.toFixed(4))).join(", ")}}`}return wr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(E.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(Zl,{label:"Pose",value:r(),ref:t})})}),Q1=De.observer(({store:e})=>{async function t(n){await e.jogger.startJointRotation({joint:n.joint,direction:n.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function r(){await e.jogger.stop()}return s.jsxs(E.Stack,{children:[s.jsx(Z1,{store:e}),s.jsx(E.Stack,{children:e.jogger.motionStream.joints.map(n=>{var l;const a=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[n.index],o=(a==null?void 0:a.lower_limit)!==void 0?Nt.radiansToDegrees(a.lower_limit):void 0,i=(a==null?void 0:a.upper_limit)!==void 0?Nt.radiansToDegrees(a.upper_limit):void 0;return s.jsxs(E.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(E.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${n.index+1}`}),s.jsx(Wl,{disabled:e.isLocked,lowerLimitDegs:o,upperLimitDegs:i,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[n.index];return c!==void 0?Nt.radiansToDegrees(c):void 0},startJogging:c=>t({joint:n.index,direction:c}),stopJogging:r},n.index),s.jsx(E.Typography,{sx:{flexGrow:1}})]},`joint-${n.index}`)})}),s.jsx(Yl,{store:e})]})});var xi=function(){try{var e=tr(Object,"defineProperty");return e({},"",{}),e}catch{}}();function e_(e,t,r){t=="__proto__"&&xi?xi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function t_(e,t,r,n){for(var a=-1,o=e==null?0:e.length;++a<o;){var i=e[a];t(n,i,r(i),e)}return n}function r_(e){return function(t,r,n){for(var a=-1,o=Object(t),i=n(t),l=i.length;l--;){var c=i[++a];if(r(o[c],c,o)===!1)break}return t}}var n_=r_();function a_(e,t){return e&&n_(e,t,Uo)}function o_(e,t){return function(r,n){if(r==null)return r;if(!lc(r))return e(r,n);for(var a=r.length,o=-1,i=Object(r);++o<a&&n(i[o],o,i)!==!1;);return r}}var s_=o_(a_);function i_(e,t,r,n){return s_(e,function(a,o,i){t(n,a,r(a),i)}),n}var l_=1,c_=2;function u_(e,t,r,n){var a=r.length,o=a;if(e==null)return!o;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<o;){i=r[a];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Rt,m;if(!(m===void 0?ya(u,c,l_|c_,n,d):m))return!1}}return!0}function cc(e){return e===e&&!qt(e)}function d_(e){for(var t=Uo(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,cc(a)]}return t}function uc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function f_(e){var t=d_(e);return t.length==1&&t[0][2]?uc(t[0][0],t[0][1]):function(r){return r===e||u_(r,e,t)}}var m_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h_=/^\w*$/;function Bo(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ha(e)?!0:h_.test(e)||!m_.test(e)||t!=null&&e in Object(t)}var p_="Expected a function";function Jo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(p_);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(Jo.Cache||Ot),r}Jo.Cache=Ot;var g_=500;function y_(e){var t=Jo(e,function(n){return r.size===g_&&r.clear(),n}),r=t.cache;return t}var __=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v_=/\\(\\)?/g,b_=y_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(__,function(r,n,a,o){t.push(a?o.replace(v_,"$1"):n||r)}),t});function S_(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 x_=1/0,wi=Ft?Ft.prototype:void 0,ji=wi?wi.toString:void 0;function dc(e){if(typeof e=="string")return e;if(yt(e))return S_(e,dc)+"";if(ha(e))return ji?ji.call(e):"";var t=e+"";return t=="0"&&1/e==-x_?"-0":t}function fc(e){return e==null?"":dc(e)}function mc(e,t){return yt(e)?e:Bo(e,t)?[e]:b_(fc(e))}var w_=1/0;function _a(e){if(typeof e=="string"||ha(e))return e;var t=e+"";return t=="0"&&1/e==-w_?"-0":t}function hc(e,t){t=mc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[_a(t[r++])];return r&&r==n?e:void 0}function j_(e,t,r){var n=e==null?void 0:hc(e,t);return n===void 0?r:n}function R_(e,t){return e!=null&&t in Object(e)}function C_(e,t,r){t=mc(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var i=_a(t[n]);if(!(o=e!=null&&r(e,i)))break;e=e[i]}return o||++n!=a?o:(a=e==null?0:e.length,!!a&&Do(a)&&oc(i,a)&&(yt(e)||nc(e)))}function A_(e,t){return e!=null&&C_(e,t,R_)}var P_=1,O_=2;function T_(e,t){return Bo(e)&&cc(t)?uc(_a(e),t):function(r){var n=j_(r,e);return n===void 0&&n===t?A_(r,e):ya(t,n,P_|O_)}}function M_(e){return e}function I_(e){return function(t){return t==null?void 0:t[e]}}function E_(e){return function(t){return hc(t,e)}}function k_(e){return Bo(e)?I_(_a(e)):E_(e)}function L_(e){return typeof e=="function"?e:e==null?M_:typeof e=="object"?yt(e)?T_(e[0],e[1]):f_(e):k_(e)}function $_(e,t){return function(r,n){var a=yt(r)?t_:i_,o={};return a(r,e,L_(n),o)}}var wn=$_(function(e,t,r){e_(e,r,t)}),N_=0;function F_(e){var t=++N_;return fc(e)+t}const po=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],D_=[{id:"continuous"},...po];class Vo{constructor(t,r,n,a){var o,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=a,this.selectedTabId="cartesian",this.activationState="inactive",this.activationError=null,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=((o=n[0])==null?void 0:o.coordinate_system)||"world",this.selectedTcpId=((i=a[0])==null?void 0:i.id)||"",wt.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(wt.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:a},{tcps:o}]=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 Vo(t,n,a||[],o||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}async deactivate(){if(this.activationState==="inactive")return;const t=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),t&&await t.closed()}async activate(){const{currentTab:t,selectedTcpId:r,activeCoordSystemId:n,activeDiscreteIncrement:a,jogger:o}=this;if(this.activationState!=="loading"){if(wt.runInAction(()=>{this.activationState="loading",this.activationError=null}),t.id==="cartesian"){const i={tcpId:r,coordSystemId:n};a?o.setJoggingMode("increment",i):o.setJoggingMode("cartesian",i)}else o.setJoggingMode("joint");if(o.activeWebsocket)try{o.stop(),await o.activeWebsocket.nextMessage()}catch(i){wt.runInAction(()=>{this.activationState="inactive",this.activationError=i});return}wt.runInAction(()=>{this.activationState="active"})}}loadFromLocalStorage(){const t=Nt.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 D_}get discreteIncrementOptions(){return po}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return wn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return wn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:po.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=F_();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const Ri=e=>s.jsx(E.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.5)",backdropFilter:"blur(10px)",zIndex:100},...e}),U_=en(De.observer(e=>{const t=Pc.isString(e.nova)?new Nt.NovaClient({instanceUrl:e.nova}):e.nova,r=De.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){wt.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const a=await t.connectJogger(e.motionGroupId),o=await Vo.loadFor(a);wt.runInAction(()=>{r.joggingStore=o}),e.onSetup&&e.onSetup(o)}catch(a){r.loadingError=a}}return Z.useEffect(()=>(n(),()=>{var a;(a=r.joggingStore)==null||a.dispose()}),[e.nova]),Z.useEffect(()=>{const a=r.joggingStore;a&&(e.locked?a.locks.add("external"):a.locks.delete("external"))},[e.locked]),s.jsx(E.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(E.Paper,{sx:{height:"100%"},children:r.joggingStore?s.jsx(B_,{store:r.joggingStore,children:e.children}):s.jsx(bo,{message:"Loading jogging",error:r.loadingError})})})})),B_=De.observer(({store:e,children:t})=>{Z.useEffect(()=>(window.addEventListener("blur",e.deactivate),()=>{window.removeEventListener("blur",e.deactivate)})),So(()=>[e.currentTab,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState==="active"&&e.activate()});function r(){if(e.activationState==="inactive"&&!e.activationError)return s.jsx(Ri,{children:s.jsx(E.Button,{color:"primary",variant:"contained",onClick:e.activate,disabled:e.isLocked,children:"Activate jogging"})});if(e.activationState==="loading"||e.activationError)return s.jsx(Ri,{children:s.jsx(bo,{message:"Activating jogging",error:e.activationError})})}function n(){if(e.currentTab.id==="cartesian")return s.jsxs(s.Fragment,{children:[s.jsx(Y1,{store:e}),t]});if(e.currentTab.id==="joint")return s.jsxs(s.Fragment,{children:[s.jsx(Q1,{store:e}),t]})}return s.jsxs(E.Stack,{flexGrow:1,height:"100%",children:[s.jsx(E.Tabs,{value:e.tabIndex,onChange:e.onTabChange,children:e.tabs.map(a=>s.jsx(E.Tab,{label:a.label,id:`jogging-tab-${a.id}`,"aria-controls":`jogging-tab-${a.id}`},a.id))}),s.jsxs(E.Stack,{flexGrow:1,position:"relative",children:[r(),n()]})]})});function J_(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function V_({baseUrl:e=J_(),...t}){return s.jsxs(E.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[s.jsx(E.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(E.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(E.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(E.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(E.DialogActions,{children:s.jsxs(E.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(E.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(E.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const G_=Array(6).fill(2*Math.PI),mt={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},z_={mode:"dark",colors:{primary:mt.skyblue500,textDefault:mt.white,textSubtle:mt.midnightgray,background:{default:mt.darkishblue,panel:mt.darkestblue}}},W_={mode:"light",colors:{primary:mt.skyblue500,textDefault:mt.darkishblue,textSubtle:mt.midnightgray,background:{default:mt.skyblue500,panel:mt.white}}};function K_(e){var a,o,i,l;let t=!0;((a=e.palette)==null?void 0:a.mode)==="light"?t=!1:((o=e.palette)==null?void 0:o.mode)!=="dark"&&(t=!(typeof window<"u"&&((l=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:l.matches)));const r=t?z_:W_,n=io({palette:{mode:r.mode,primary:{main:r.colors.primary},background:{default:r.colors.background.default,paper:r.colors.background.panel}},typography:{allVariants:{color:r.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:t?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:t?"#3d4455":void 0,color:t?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":t?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:t?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":t?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:r});return e?io(n,e):n}exports.JoggingCartesianAxisControl=lo;exports.JoggingJointRotationControl=Wl;exports.JoggingPanel=U_;exports.NoMotionGroupModal=V_;exports.PresetEnvironment=cf;exports.Robot=lf;exports.SafetyZonesRenderer=ff;exports.SupportedRobot=al;exports.VelocitySlider=ql;exports.WandelscriptEditor=$d;exports.createNovaMuiTheme=K_;exports.defaultAxisConfig=G_;exports.defaultGetModel=xo;exports.useAnimationFrame=wr;exports.useAutorun=nl;exports.useMounted=ea;exports.useReaction=So;
84
84
  //# sourceMappingURL=index.cjs.map