@wandelbots/wandelbots-js-react-components 1.11.2 → 1.11.3
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 +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1461 -1443
- package/dist/index.js.map +1 -1
- package/dist/src/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -1
- package/dist/stories/SafetyZonesRenderer.stories.d.ts +147 -0
- package/dist/stories/SafetyZonesRenderer.stories.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/3d-viewport/SafetyZonesRenderer.tsx +51 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("react"),es=require("@monaco-editor/react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("react"),es=require("@monaco-editor/react"),kc=require("shiki"),$c=require("@shikijs/monaco"),L=require("@mui/material"),qt=require("@emotion/react"),m=require("prop-types"),Ut=require("react-i18next"),Nc=require("i18next-browser-languagedetector"),x=require("@react-spring/three"),ie=require("@react-three/drei"),Fc=require("@react-three/fiber"),br=require("mobx"),Rt=require("three"),Dc=require("react-error-boundary"),Uc=require("three-stdlib"),De=require("mobx-react-lite"),Bc=require("@emotion/styled"),Ct=require("@wandelbots/wandelbots-js");function Fi(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=Fi(Z),Ce=Fi(Rt);function At(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 Yo={exports:{}},$r={};/**
|
|
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 ts;function
|
|
9
|
+
*/var ts;function Jc(){if(ts)return $r;ts=1;var e=Z,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,f={},h=null,b=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(b=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(f[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)f[d]===void 0&&(f[d]=c[d]);return{$$typeof:t,type:l,key:h,ref:b,props:f,_owner:o.current}}return $r.Fragment=r,$r.jsx=i,$r.jsxs=i,$r}var Nr={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,30 +14,30 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var rs;function
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),ge=B.length-1,ve=
|
|
21
|
-
`+B[ge].replace(" at new "," at ");return p.displayName&&
|
|
17
|
+
*/var rs;function Vc(){return rs||(rs=1,process.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),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"),f=Symbol.for("react.memo"),h=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 S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(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 $=S.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 k=!1,j=!1,A=!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||k||j||A||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===f||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 q(p){return p.displayName||"Context"}function G(p){if(p==null)return null;if(typeof p.tag=="number"&&R("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 q(w)+".Consumer";case i:var M=p;return q(M._context)+".Provider";case c:return D(p,p.render,"ForwardRef");case f:var $=p.displayName||null;return $!==null?$:G(p.type)||"Memo";case h:{var U=p,re=U._payload,V=U._init;try{return G(V(re))}catch{return null}}}return null}var X=Object.assign,K=0,we,ce,Q,Pe,Ie,st,xt;function qe(){}qe.__reactDisabledLog=!0;function Re(){{if(K===0){we=console.log,ce=console.info,Q=console.warn,Pe=console.error,Ie=console.group,st=console.groupCollapsed,xt=console.groupEnd;var p={configurable:!0,enumerable:!0,value:qe,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}K++}}function Mt(){{if(K--,K===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},p,{value:we}),info:X({},p,{value:ce}),warn:X({},p,{value:Q}),error:X({},p,{value:Pe}),group:X({},p,{value:Ie}),groupCollapsed:X({},p,{value:st}),groupEnd:X({},p,{value:xt})})}K<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ft=S.ReactCurrentDispatcher,Xe;function Ve(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 ht=!1,mt;{var Vt=typeof WeakMap=="function"?WeakMap:Map;mt=new Vt}function St(p,w){if(!p||ht)return"";{var M=mt.get(p);if(M!==void 0)return M}var $;ht=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=ft.current,ft.current=null,Re();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
|
+
`),ge=B.length-1,ve=Me.length-1;ge>=1&&ve>=0&&B[ge]!==Me[ve];)ve--;for(;ge>=1&&ve>=0;ge--,ve--)if(B[ge]!==Me[ve]){if(ge!==1||ve!==1)do if(ge--,ve--,ve<0||B[ge]!==Me[ve]){var Ze=`
|
|
21
|
+
`+B[ge].replace(" at new "," at ");return p.displayName&&Ze.includes("<anonymous>")&&(Ze=Ze.replace("<anonymous>",p.displayName)),typeof p=="function"&&mt.set(p,Ze),Ze}while(ge>=1&&ve>=0);break}}}finally{ht=!1,ft.current=re,Mt(),Error.prepareStackTrace=U}var sr=p?p.displayName||p.name:"",Ht=sr?Ve(sr):"";return typeof p=="function"&&mt.set(p,Ht),Ht}function Ge(p,w,M){return St(p,!1)}function E(p){var w=p.prototype;return!!(w&&w.isReactComponent)}function ee(p,w,M){if(p==null)return"";if(typeof p=="function")return St(p,E(p));if(typeof p=="string")return Ve(p);switch(p){case u:return Ve("Suspense");case d:return Ve("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case c:return Ge(p.render);case f:return ee(p.type,w,M);case h:{var $=p,U=$._payload,re=$._init;try{return ee(re(U),w,M)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Le={},ke=S.ReactDebugCurrentFrame;function It(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);ke.setExtraStackFrame(M)}else ke.setExtraStackFrame(null)}function je(p,w,M,$,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 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(ge){B=ge}B&&!(B instanceof Error)&&(It(U),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",M,V,typeof B),It(null)),B instanceof Error&&!(B.message in Le)&&(Le[B.message]=!0,It(U),R("Failed %s type: %s",M,B.message),It(null))}}}var Lt=Array.isArray;function Gt(p){return Lt(p)}function Ar(p){{var w=typeof Symbol=="function"&&Symbol.toStringTag,M=w&&p[Symbol.toStringTag]||p.constructor.name||"Object";return M}}function Or(p){try{return Tr(p),!1}catch{return!0}}function Tr(p){return""+p}function rr(p){if(Or(p))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ar(p)),Tr(p)}var it=S.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0},I,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 H(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 ze(p,w){if(typeof p.ref=="string"&&it.current&&w&&it.current.stateNode!==w){var M=G(it.current.type);W[M]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(it.current.type),p.ref),W[M]=!0)}}function Ye(p,w){{var M=function(){I||(I=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};M.isReactWarning=!0,Object.defineProperty(p,"key",{get:M,configurable:!0})}}function te(p,w){{var M=function(){F||(F=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};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 kt(p,w,M,$,U){{var re,V={},B=null,Me=null;M!==void 0&&(rr(M),B=""+M),H(w)&&(rr(w.key),B=""+w.key),Y(w)&&(Me=w.ref,ze(w,U));for(re in w)he.call(w,re)&&!T.hasOwnProperty(re)&&(V[re]=w[re]);if(p&&p.defaultProps){var ge=p.defaultProps;for(re in ge)V[re]===void 0&&(V[re]=ge[re])}if(B||Me){var ve=typeof p=="function"?p.displayName||p.name||"Unknown":p;B&&Ye(V,ve),Me&&te(V,ve)}return $e(p,B,Me,U,$,it.current,V)}}var nr=S.ReactCurrentOwner,Er=S.ReactDebugCurrentFrame;function wt(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);Er.setExtraStackFrame(M)}else Er.setExtraStackFrame(null)}var zt;zt=!1;function Wt(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
23
|
Check the render method of \``+p+"`."}return""}}function Ir(p){return""}var hn={};function Lr(p){{var w=Mr();if(!w){var M=typeof p=="string"?p:p.displayName||p.name;M&&(w=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+M+">.")}return w}}function or(p,w){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var M=Lr(w);if(hn[M])return;hn[M]=!0;var $="";p&&p._owner&&p._owner!==nr.current&&($=" It was passed a child from "+G(p._owner.type)+"."),
|
|
25
|
+
Check the top-level render call using <`+M+">.")}return w}}function or(p,w){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var M=Lr(w);if(hn[M])return;hn[M]=!0;var $="";p&&p._owner&&p._owner!==nr.current&&($=" It was passed a child from "+G(p._owner.type)+"."),wt(p),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,$),wt(null)}}function ar(p,w){{if(typeof p!="object")return;if(Gt(p))for(var M=0;M<p.length;M++){var $=p[M];Wt($)&&or($,w)}else if(Wt(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;)Wt(V.value)&&or(V.value,w)}}}function Po(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===f))M=w.propTypes;else return;if(M){var $=G(w);je(M,p.props,"prop",$,p)}else if(w.PropTypes!==void 0&&!zt){zt=!0;var U=G(w);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ao(p){{for(var w=Object.keys(p.props),M=0;M<w.length;M++){var $=w[M];if($!=="children"&&$!=="key"){wt(p),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),wt(null);break}}p.ref!==null&&(wt(p),R("Invalid attribute `ref` supplied to `React.Fragment`."),wt(null))}}var mn={};function pn(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=Ir();Me?B+=Me:B+=Mr();var ge;p===null?ge="null":Gt(p)?ge="array":p!==void 0&&p.$$typeof===t?(ge="<"+(G(p.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof p,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,B)}var ve=kt(p,w,M,U,re);if(ve==null)return ve;if(V){var Ze=w.children;if(Ze!==void 0)if($)if(Gt(Ze)){for(var sr=0;sr<Ze.length;sr++)ar(Ze[sr],p);Object.freeze&&Object.freeze(Ze)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ar(Ze,p)}if(he.call(w,"key")){var Ht=G(p),Ne=Object.keys(w).filter(function(Lc){return Lc!=="key"}),Mo=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!mn[Ht+Mo]){var Ic=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Mo,Ht,Iu,Ht),mn[Ht+Mo]=!0}}return p===n?Ao(ve):Po(ve),ve}}function Oo(p,w,M){return pn(p,w,M,!0)}function To(p,w,M){return pn(p,w,M,!1)}var kr=To,Eo=Oo;Nr.Fragment=n,Nr.jsx=kr,Nr.jsxs=Eo}()),Nr}process.env.NODE_ENV==="production"?Yo.exports=Ju():Yo.exports=Vu();var s=Yo.exports;const Gu={$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"};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 zu=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),Wu="$$material";function P(){return P=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},P.apply(null,arguments)}function De(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}var Hu=!1;function Ku(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 qu(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 Xu=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?!Hu: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(qu(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Ku(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}(),Oe="-ms-",$n="-moz-",ne="-webkit-",Di="comm",Sa="rule",wa="decl",Yu="@import",Ui="@keyframes",Zu="@layer",Qu=Math.abs,eo=String.fromCharCode,ec=Object.assign;function tc(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 Bi(e){return e.trim()}function rc(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function Zo(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Kr(e,t,r){return e.slice(t,r)}function mt(e){return e.length}function Ra(e){return e.length}function gn(e,t){return t.push(e),e}function nc(e,t){return e.map(t).join("")}var to=1,vr=1,Ji=0,Ue=0,xe=0,xr="";function ro(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:to,column:vr,length:i,return:""}}function Fr(e,t){return ec(ro("",null,null,"",null,null,0),e,{length:-e.length},t)}function oc(){return xe}function ac(){return xe=Ue>0?Pe(xr,--Ue):0,vr--,xe===10&&(vr=1,to--),xe}function We(){return xe=Ue<Ji?Pe(xr,Ue++):0,vr++,xe===10&&(vr=1,to++),xe}function yt(){return Pe(xr,Ue)}function Cn(){return Ue}function tn(e,t){return Kr(xr,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 Vi(e){return to=vr=1,Ji=mt(xr=e),Ue=0,[]}function Gi(e){return xr="",e}function Pn(e){return Bi(tn(Ue-1,Qo(e===91?e+2:e===40?e+1:e)))}function sc(e){for(;(xe=yt())&&xe<33;)We();return qr(e)>2||qr(xe)>3?"":" "}function ic(e,t){for(;--t&&We()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return tn(e,Cn()+(t<6&&yt()==32&&We()==32))}function Qo(e){for(;We();)switch(xe){case e:return Ue;case 34:case 39:e!==34&&e!==39&&Qo(xe);break;case 40:e===41&&Qo(e);break;case 92:We();break}return Ue}function lc(e,t){for(;We()&&e+xe!==57;)if(e+xe===84&&yt()===47)break;return"/*"+tn(t,Ue-1)+"*"+eo(e===47?e:We())}function uc(e){for(;!qr(yt());)We();return tn(e,Ue)}function cc(e){return Gi(An("",null,null,null,[""],e=Vi(e),0,[0],e))}function An(e,t,r,n,o,a,i,l,u){for(var c=0,d=0,h=i,f=0,b=0,y=0,_=1,g=1,S=1,R=0,C="",k=o,j=a,A=n,O=C;g;)switch(y=R,R=We()){case 40:if(y!=108&&Pe(O,h-1)==58){Zo(O+=oe(Pn(R),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:O+=Pn(R);break;case 9:case 10:case 13:case 32:O+=sc(y);break;case 92:O+=ic(Cn()-1,7);continue;case 47:switch(yt()){case 42:case 47:gn(dc(lc(We(),Cn()),t,r),u);break;default:O+="/"}break;case 123*_:l[c++]=mt(O)*S;case 125*_:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+d:S==-1&&(O=oe(O,/\f/g,"")),b>0&&mt(O)-h&&gn(b>32?os(O+";",n,r,h-1):os(oe(O," ","")+";",n,r,h-2),u);break;case 59:O+=";";default:if(gn(A=ns(O,t,r,c,d,o,l,C,k=[],j=[],h),a),R===123)if(d===0)An(O,t,A,A,k,a,h,l,j);else switch(f===99&&Pe(O,3)===110?100:f){case 100:case 108:case 109:case 115:An(e,A,A,n&&gn(ns(e,A,A,0,0,o,l,C,o,k=[],h),j),o,j,h,l,n?k:j);break;default:An(O,A,A,A,[""],j,0,l,j)}}c=d=b=0,_=S=1,C=O="",h=i;break;case 58:h=1+mt(O),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&ac()==125)continue}switch(O+=eo(R),R*_){case 38:S=d>0?1:(O+="\f",-1);break;case 44:l[c++]=(mt(O)-1)*S,S=1;break;case 64:yt()===45&&(O+=Pn(We())),f=yt(),d=h=mt(C=O+=uc(Cn())),R++;break;case 45:y===45&&mt(O)==2&&(_=0)}}return a}function ns(e,t,r,n,o,a,i,l,u,c,d){for(var h=o-1,f=o===0?a:[""],b=Ra(f),y=0,_=0,g=0;y<n;++y)for(var S=0,R=Kr(e,h+1,h=Qu(_=i[y])),C=e;S<b;++S)(C=Bi(_>0?f[S]+" "+R:oe(R,/&\f/g,f[S])))&&(u[g++]=C);return ro(e,t,r,o===0?Sa:l,u,c,d)}function dc(e,t,r){return ro(e,t,r,Di,eo(oc()),Kr(e,2,-2),0)}function os(e,t,r,n){return ro(e,t,r,wa,Kr(e,0,n),Kr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=Ra(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function fc(e,t,r,n){switch(e.type){case Zu:if(e.children.length)break;case Yu:case wa:return e.return=e.return||e.value;case Di:return"";case Ui:return e.return=e.value+"{"+pr(e.children,n)+"}";case Sa:e.value=e.props.join(",")}return mt(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function hc(e){var t=Ra(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 mc(e){return function(t){t.root||(t=t.return)&&e(t)}}var pc=function(t,r,n){for(var o=0,a=0;o=a,a=yt(),o===38&&a===12&&(r[n]=1),!qr(a);)We();return tn(t,Ue)},gc=function(t,r){var n=-1,o=44;do switch(qr(o)){case 0:o===38&&yt()===12&&(r[n]=1),t[n]+=pc(Ue-1,r,n);break;case 2:t[n]+=Pn(o);break;case 4:if(o===44){t[++n]=yt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=eo(o)}while(o=We());return t},yc=function(t,r){return Gi(gc(Vi(t),r))},as=new WeakMap,_c=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&&!as.get(n))&&!o){as.set(t,!0);for(var a=[],i=yc(r,a),l=n.props,u=0,c=0;u<i.length;u++)for(var d=0;d<l.length;d++,c++)t.props[c]=a[u]?i[u].replace(/&\f/g,l[d]):l[d]+" "+i[u]}}},bc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function zi(e,t){switch(tc(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+$n+e+Oe+e+e;case 6828:case 4268:return ne+e+Oe+e+e;case 6165:return ne+e+Oe+"flex-"+e+e;case 5187:return ne+e+oe(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Oe+"flex-$1$2")+e;case 5443:return ne+e+Oe+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ne+e+Oe+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Oe+oe(e,"shrink","negative")+e;case 5292:return ne+e+Oe+oe(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+oe(e,"-grow","")+ne+e+Oe+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"+Oe+"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(mt(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"+$n+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zo(e,"stretch")?zi(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,mt(e)-3-(~Zo(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"+Oe+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ne+e+Oe+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Oe+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Oe+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Oe+e+e}return e}var vc=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case wa:t.return=zi(t.value,t.length);break;case Ui:return pr([Fr(t,{value:oe(t.value,"@","@"+ne)})],o);case Sa:if(t.length)return nc(t.props,function(a){switch(rc(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Fr(t,{props:[oe(a,/:(read-\w+)/,":"+$n+"$1")]})],o);case"::placeholder":return pr([Fr(t,{props:[oe(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,":"+$n+"$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,Oe+"input-$1")]})],o)}return""})}},xc=[vc],Sc=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||xc,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(" "),S=1;S<g.length;S++)a[g[S]]=!0;l.push(_)});var u,c=[_c,bc];{var d,h=[fc,mc(function(_){d.insert(_)})],f=hc(c.concat(o,h)),b=function(g){return pr(cc(g),f)};u=function(g,S,R,C){d=R,b(g?g+"{"+S.styles+"}":S.styles),C&&(y.inserted[S.name]=!0)}}var y={key:r,sheet:new Xu({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return y.sheet.hydrate(l),y};let ea;typeof document=="object"&&(ea=Sc({key:"css",prepend:!0}));function Wi(e){const{injectFirst:t,children:r}=e;return t&&ea?s.jsx(qt.CacheProvider,{value:ea,children:r}):r}process.env.NODE_ENV!=="production"&&(Wi.propTypes={children:m.node,injectFirst:m.bool});function wc(e){return e==null||Object.keys(e).length===0}function Hi(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(wc(o)?r:o):t;return s.jsx(qt.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Hi.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
|
|
30
|
+
<%s key={someKey} {...props} />`,Mo,Ht,Ic,Ht),mn[Ht+Mo]=!0}}return p===n?Ao(ve):Po(ve),ve}}function Oo(p,w,M){return pn(p,w,M,!0)}function To(p,w,M){return pn(p,w,M,!1)}var kr=To,Eo=Oo;Nr.Fragment=n,Nr.jsx=kr,Nr.jsxs=Eo}()),Nr}process.env.NODE_ENV==="production"?Yo.exports=Jc():Yo.exports=Vc();var s=Yo.exports;const Gc={$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"};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 zc=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),Wc="$$material";function P(){return P=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},P.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}var Hc=!1;function Kc(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 qc(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 Xc=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?!Hc: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(qc(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Kc(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-",$n="-moz-",ne="-webkit-",Di="comm",Sa="rule",wa="decl",Yc="@import",Ui="@keyframes",Zc="@layer",Qc=Math.abs,eo=String.fromCharCode,eu=Object.assign;function tu(e,t){return Ae(e,0)^45?(((t<<2^Ae(e,0))<<2^Ae(e,1))<<2^Ae(e,2))<<2^Ae(e,3):0}function Bi(e){return e.trim()}function ru(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function Zo(e,t){return e.indexOf(t)}function Ae(e,t){return e.charCodeAt(t)|0}function Kr(e,t,r){return e.slice(t,r)}function pt(e){return e.length}function Ra(e){return e.length}function gn(e,t){return t.push(e),e}function nu(e,t){return e.map(t).join("")}var to=1,vr=1,Ji=0,Be=0,xe=0,xr="";function ro(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:to,column:vr,length:i,return:""}}function Fr(e,t){return eu(ro("",null,null,"",null,null,0),e,{length:-e.length},t)}function ou(){return xe}function au(){return xe=Be>0?Ae(xr,--Be):0,vr--,xe===10&&(vr=1,to--),xe}function He(){return xe=Be<Ji?Ae(xr,Be++):0,vr++,xe===10&&(vr=1,to++),xe}function _t(){return Ae(xr,Be)}function Cn(){return Be}function tn(e,t){return Kr(xr,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 Vi(e){return to=vr=1,Ji=pt(xr=e),Be=0,[]}function Gi(e){return xr="",e}function Pn(e){return Bi(tn(Be-1,Qo(e===91?e+2:e===40?e+1:e)))}function su(e){for(;(xe=_t())&&xe<33;)He();return qr(e)>2||qr(xe)>3?"":" "}function iu(e,t){for(;--t&&He()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return tn(e,Cn()+(t<6&&_t()==32&&He()==32))}function Qo(e){for(;He();)switch(xe){case e:return Be;case 34:case 39:e!==34&&e!==39&&Qo(xe);break;case 40:e===41&&Qo(e);break;case 92:He();break}return Be}function lu(e,t){for(;He()&&e+xe!==57;)if(e+xe===84&&_t()===47)break;return"/*"+tn(t,Be-1)+"*"+eo(e===47?e:He())}function cu(e){for(;!qr(_t());)He();return tn(e,Be)}function uu(e){return Gi(An("",null,null,null,[""],e=Vi(e),0,[0],e))}function An(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,f=i,h=0,b=0,y=0,_=1,g=1,S=1,R=0,C="",k=o,j=a,A=n,O=C;g;)switch(y=R,R=He()){case 40:if(y!=108&&Ae(O,f-1)==58){Zo(O+=oe(Pn(R),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:O+=Pn(R);break;case 9:case 10:case 13:case 32:O+=su(y);break;case 92:O+=iu(Cn()-1,7);continue;case 47:switch(_t()){case 42:case 47:gn(du(lu(He(),Cn()),t,r),c);break;default:O+="/"}break;case 123*_:l[u++]=pt(O)*S;case 125*_:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+d:S==-1&&(O=oe(O,/\f/g,"")),b>0&&pt(O)-f&&gn(b>32?os(O+";",n,r,f-1):os(oe(O," ","")+";",n,r,f-2),c);break;case 59:O+=";";default:if(gn(A=ns(O,t,r,u,d,o,l,C,k=[],j=[],f),a),R===123)if(d===0)An(O,t,A,A,k,a,f,l,j);else switch(h===99&&Ae(O,3)===110?100:h){case 100:case 108:case 109:case 115:An(e,A,A,n&&gn(ns(e,A,A,0,0,o,l,C,o,k=[],f),j),o,j,f,l,n?k:j);break;default:An(O,A,A,A,[""],j,0,l,j)}}u=d=b=0,_=S=1,C=O="",f=i;break;case 58:f=1+pt(O),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&au()==125)continue}switch(O+=eo(R),R*_){case 38:S=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(pt(O)-1)*S,S=1;break;case 64:_t()===45&&(O+=Pn(He())),h=_t(),d=f=pt(C=O+=cu(Cn())),R++;break;case 45:y===45&&pt(O)==2&&(_=0)}}return a}function ns(e,t,r,n,o,a,i,l,c,u,d){for(var f=o-1,h=o===0?a:[""],b=Ra(h),y=0,_=0,g=0;y<n;++y)for(var S=0,R=Kr(e,f+1,f=Qc(_=i[y])),C=e;S<b;++S)(C=Bi(_>0?h[S]+" "+R:oe(R,/&\f/g,h[S])))&&(c[g++]=C);return ro(e,t,r,o===0?Sa:l,c,u,d)}function du(e,t,r){return ro(e,t,r,Di,eo(ou()),Kr(e,2,-2),0)}function os(e,t,r,n){return ro(e,t,r,wa,Kr(e,0,n),Kr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=Ra(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function fu(e,t,r,n){switch(e.type){case Zc:if(e.children.length)break;case Yc:case wa:return e.return=e.return||e.value;case Di:return"";case Ui:return e.return=e.value+"{"+pr(e.children,n)+"}";case Sa:e.value=e.props.join(",")}return pt(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function hu(e){var t=Ra(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 mu(e){return function(t){t.root||(t=t.return)&&e(t)}}var pu=function(t,r,n){for(var o=0,a=0;o=a,a=_t(),o===38&&a===12&&(r[n]=1),!qr(a);)He();return tn(t,Be)},gu=function(t,r){var n=-1,o=44;do switch(qr(o)){case 0:o===38&&_t()===12&&(r[n]=1),t[n]+=pu(Be-1,r,n);break;case 2:t[n]+=Pn(o);break;case 4:if(o===44){t[++n]=_t()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=eo(o)}while(o=He());return t},yu=function(t,r){return Gi(gu(Vi(t),r))},as=new WeakMap,_u=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&&!as.get(n))&&!o){as.set(t,!0);for(var a=[],i=yu(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]}}},bu=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function zi(e,t){switch(tu(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+$n+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(pt(e)-1-t>6)switch(Ae(e,t+1)){case 109:if(Ae(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+$n+(Ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zo(e,"stretch")?zi(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ae(e,t+1)!==115)break;case 6444:switch(Ae(e,pt(e)-3-(~Zo(e,"!important")&&10))){case 107:return oe(e,":",":"+ne)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Ae(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(Ae(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 vu=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case wa:t.return=zi(t.value,t.length);break;case Ui:return pr([Fr(t,{value:oe(t.value,"@","@"+ne)})],o);case Sa:if(t.length)return nu(t.props,function(a){switch(ru(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Fr(t,{props:[oe(a,/:(read-\w+)/,":"+$n+"$1")]})],o);case"::placeholder":return pr([Fr(t,{props:[oe(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,":"+$n+"$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,Te+"input-$1")]})],o)}return""})}},xu=[vu],Su=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||xu,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(" "),S=1;S<g.length;S++)a[g[S]]=!0;l.push(_)});var c,u=[_u,bu];{var d,f=[fu,mu(function(_){d.insert(_)})],h=hu(u.concat(o,f)),b=function(g){return pr(uu(g),h)};c=function(g,S,R,C){d=R,b(g?g+"{"+S.styles+"}":S.styles),C&&(y.inserted[S.name]=!0)}}var y={key:r,sheet:new Xc({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 ea;typeof document=="object"&&(ea=Su({key:"css",prepend:!0}));function Wi(e){const{injectFirst:t,children:r}=e;return t&&ea?s.jsx(qt.CacheProvider,{value:ea,children:r}):r}process.env.NODE_ENV!=="production"&&(Wi.propTypes={children:m.node,injectFirst:m.bool});function wu(e){return e==null||Object.keys(e).length===0}function Hi(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(wu(o)?r:o):t;return s.jsx(qt.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Hi.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
|
|
31
31
|
* @mui/styled-engine v5.16.6
|
|
32
32
|
*
|
|
33
33
|
* @license MIT
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/function Ki(e,t){const r=
|
|
37
|
-
`)):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 qi=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},
|
|
36
|
+
*/function Ki(e,t){const r=Bc(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
37
|
+
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const qi=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ru=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Hi,StyledEngineProvider:Wi,ThemeContext:qt.ThemeContext,css:qt.css,default:Ki,internal_processStyles:qi,keyframes:qt.keyframes},Symbol.toStringTag,{value:"Module"}));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 Xi(e){if(!jt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Xi(e[r])}),t}function rt(e,t,r={clone:!0}){const n=r.clone?P({},e):e;return jt(e)&&jt(t)&&Object.keys(t).forEach(o=>{jt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&jt(e[o])?n[o]=rt(e[o],t[o],r):r.clone?n[o]=jt(t[o])?Xi(t[o]):t[o]:n[o]=t[o]}),n}const ju=Object.freeze(Object.defineProperty({__proto__:null,default:rt,isPlainObject:jt},Symbol.toStringTag,{value:"Module"})),Cu=["values","unit","step"],Pu=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)=>P({},r,{[n.key]:n.val}),{})};function Yi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ue(e,Cu),a=Pu(t),i=Object.keys(a);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function u(h,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function d(h){return i.indexOf(h)+1<i.length?u(h,i[i.indexOf(h)+1]):l(h)}function f(h){const b=i.indexOf(h);return b===0?l(i[1]):b===i.length-1?c(i[b]):u(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return P({keys:i,values:a,up:l,down:c,between:u,only:d,not:f,unit:r},o)}const Au={borderRadius:4},Bt=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.string,m.object,m.array]):{};function Vr(e,t){return t?rt(e,t,{clone:!1}):e}const ja={xs:0,sm:600,md:900,lg:1200,xl:1536},ss={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ja[e]}px)`};function ct(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||ss;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||ss;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 Zi(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Qi(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Ou(e,...t){const r=Zi(e),n=[r,...t].reduce((o,a)=>rt(o,a),{});return Qi(Object.keys(r),n)}function Tu(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 Io({values:e,breakpoints:t,base:r}){const n=r||Tu(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.":Hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Eu=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function no(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 Nn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=no(e,r)||n,t&&(o=t(o,n,e)),o}function ye(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=no(c,n)||{};return ct(i,l,f=>{let h=Nn(u,o,f);return f===h&&typeof f=="string"&&(h=Nn(u,o,`${t}${f==="default"?"":Oe(f)}`,f)),r===!1?h:{[r]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Bt}:{},a.filterProps=[t],a}function Mu(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Iu={m:"margin",p:"padding"},Lu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},is={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ku=Mu(e=>{if(e.length>2)if(is[e])e=is[e];else return[e];const[t,r]=e.split(""),n=Iu[t],o=Lu[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),oo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ao=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],$u=[...oo,...ao];function rn(e,t,r,n){var o;const a=(o=no(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(`
|
|
38
38
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
39
39
|
`))),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(`
|
|
40
|
-
`)),()=>{})}function Ca(e){return rn(e,"spacing",8,"spacing")}function Yt(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 Nc(e,t){return r=>e.reduce((n,o)=>(n[o]=Yt(t,r),n),{})}function Fc(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=kc(r),a=Nc(o,n),i=e[r];return lt(e,i,a)}function el(e,t){const r=Ca(e.theme);return Object.keys(e).map(n=>Fc(e,t,n,r)).reduce(Vr,{})}function me(e){return el(e,oo)}me.propTypes=process.env.NODE_ENV!=="production"?oo.reduce((e,t)=>(e[t]=Bt,e),{}):{};me.filterProps=oo;function pe(e){return el(e,ao)}pe.propTypes=process.env.NODE_ENV!=="production"?ao.reduce((e,t)=>(e[t]=Bt,e),{}):{};pe.filterProps=ao;process.env.NODE_ENV!=="production"&&$c.reduce((e,t)=>(e[t]=Bt,e),{});function Dc(e=8){if(e.mui)return e;const t=Ca({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 so(...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 ot(e,t){return ye({prop:e,themeKey:"borders",transform:t})}const Uc=ot("border",Qe),Bc=ot("borderTop",Qe),Jc=ot("borderRight",Qe),Vc=ot("borderBottom",Qe),Gc=ot("borderLeft",Qe),zc=ot("borderColor"),Wc=ot("borderTopColor"),Hc=ot("borderRightColor"),Kc=ot("borderBottomColor"),qc=ot("borderLeftColor"),Xc=ot("outline",Qe),Yc=ot("outlineColor"),io=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Yt(t,n)});return lt(e,e.borderRadius,r)}return null};io.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Bt}:{};io.filterProps=["borderRadius"];so(Uc,Bc,Jc,Vc,Gc,zc,Wc,Hc,Kc,qc,io,Xc,Yc);const lo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rn(e.theme,"spacing",8,"gap"),r=n=>({gap:Yt(t,n)});return lt(e,e.gap,r)}return null};lo.propTypes=process.env.NODE_ENV!=="production"?{gap:Bt}:{};lo.filterProps=["gap"];const uo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Yt(t,n)});return lt(e,e.columnGap,r)}return null};uo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Bt}:{};uo.filterProps=["columnGap"];const co=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Yt(t,n)});return lt(e,e.rowGap,r)}return null};co.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Bt}:{};co.filterProps=["rowGap"];const Zc=ye({prop:"gridColumn"}),Qc=ye({prop:"gridRow"}),ed=ye({prop:"gridAutoFlow"}),td=ye({prop:"gridAutoColumns"}),rd=ye({prop:"gridAutoRows"}),nd=ye({prop:"gridTemplateColumns"}),od=ye({prop:"gridTemplateRows"}),ad=ye({prop:"gridTemplateAreas"}),sd=ye({prop:"gridArea"});so(lo,uo,co,Zc,Qc,ed,td,rd,nd,od,ad,sd);function gr(e,t){return t==="grey"?t:e}const id=ye({prop:"color",themeKey:"palette",transform:gr}),ld=ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),ud=ye({prop:"backgroundColor",themeKey:"palette",transform:gr});so(id,ld,ud);function ze(e){return e<=1&&e!==0?`${e*100}%`:e}const cd=ye({prop:"width",transform:ze}),Pa=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:ze(r)}};return lt(e,e.maxWidth,t)}return null};Pa.filterProps=["maxWidth"];const dd=ye({prop:"minWidth",transform:ze}),fd=ye({prop:"height",transform:ze}),hd=ye({prop:"maxHeight",transform:ze}),md=ye({prop:"minHeight",transform:ze});ye({prop:"size",cssProperty:"width",transform:ze});ye({prop:"size",cssProperty:"height",transform:ze});const pd=ye({prop:"boxSizing"});so(cd,Pa,dd,fd,hd,md,pd);const nn={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:io},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:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},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:lo},rowGap:{style:co},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:ze},maxWidth:{style:Pa},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 gd(...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 yd(e,t){return typeof e=="function"?e(t):e}function tl(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:d,style:h}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=no(o,c)||{};return h?h(i):lt(i,n,y=>{let _=Nn(f,d,y);return y===_&&typeof y=="string"&&(_=Nn(f,d,`${r}${y==="default"?"":Ae(y)}`,y)),u===!1?_:{[u]:_}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:nn;function l(u){let c=u;if(typeof u=="function")c=u(a);else if(typeof u!="object")return u;if(!c)return null;const d=Zi(a.breakpoints),h=Object.keys(d);let f=d;return Object.keys(c).forEach(b=>{const y=yd(c[b],a);if(y!=null)if(typeof y=="object")if(i[b])f=Vr(f,e(b,y,a,i));else{const _=lt({theme:a},y,g=>({[b]:g}));gd(_,y)?f[b]=t({sx:y,theme:a}):f=Vr(f,_)}else f=Vr(f,e(b,y,a,i))}),Qi(h,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const on=tl();on.filterProps=["sx"];function rl(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 _d=["breakpoints","palette","spacing","shape"];function an(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=De(e,_d),l=Yi(r),u=Dc(o);let c=tt({breakpoints:l,direction:"ltr",components:{},palette:P({mode:"light"},n),spacing:u,shape:P({},Ac,a)},i);return c.applyStyles=rl,c=t.reduce((d,h)=>tt(d,h),c),c.unstable_sxConfig=P({},nn,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(h){return on({sx:h,theme:this})},c}const bd=Object.freeze(Object.defineProperty({__proto__:null,default:an,private_createBreakpoints:Yi,unstable_applyStyles:rl},Symbol.toStringTag,{value:"Module"}));function vd(e){return Object.keys(e).length===0}function xd(e=null){const t=N.useContext(qt.ThemeContext);return!t||vd(t)?e:t}const Sd=an();function wd(e=Sd){return xd(e)}const Rd=["sx"],jd=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:nn;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function nl(e){const{sx:t}=e,r=De(e,Rd),{systemProps:n,otherProps:o}=jd(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return jt(l)?P({},n,l):n}:a=P({},n,t),P({},o,{sx:a})}const Cd=Object.freeze(Object.defineProperty({__proto__:null,default:on,extendSxProp:nl,unstable_createStyleFunctionSx:tl,unstable_defaultSxConfig:nn},Symbol.toStringTag,{value:"Module"})),ls=e=>e,Pd=()=>{let e=ls;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ls}}},ol=Pd();function al(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=al(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _t(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=al(e))&&(n&&(n+=" "),n+=t);return n}const Ad={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 sn(e,t,r="Mui"){const n=Ad[t];return n?`${r}-${n}`:`${ol.generate(e)}-${t}`}function sl(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=sn(e,o,r)}),n}var ta={exports:{}},ae={};/**
|
|
40
|
+
`)),()=>{})}function Ca(e){return rn(e,"spacing",8,"spacing")}function Yt(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 Nu(e,t){return r=>e.reduce((n,o)=>(n[o]=Yt(t,r),n),{})}function Fu(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=ku(r),a=Nu(o,n),i=e[r];return ct(e,i,a)}function el(e,t){const r=Ca(e.theme);return Object.keys(e).map(n=>Fu(e,t,n,r)).reduce(Vr,{})}function me(e){return el(e,oo)}me.propTypes=process.env.NODE_ENV!=="production"?oo.reduce((e,t)=>(e[t]=Bt,e),{}):{};me.filterProps=oo;function pe(e){return el(e,ao)}pe.propTypes=process.env.NODE_ENV!=="production"?ao.reduce((e,t)=>(e[t]=Bt,e),{}):{};pe.filterProps=ao;process.env.NODE_ENV!=="production"&&$u.reduce((e,t)=>(e[t]=Bt,e),{});function Du(e=8){if(e.mui)return e;const t=Ca({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 so(...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 et(e){return typeof e!="number"?e:`${e}px solid`}function at(e,t){return ye({prop:e,themeKey:"borders",transform:t})}const Uu=at("border",et),Bu=at("borderTop",et),Ju=at("borderRight",et),Vu=at("borderBottom",et),Gu=at("borderLeft",et),zu=at("borderColor"),Wu=at("borderTopColor"),Hu=at("borderRightColor"),Ku=at("borderBottomColor"),qu=at("borderLeftColor"),Xu=at("outline",et),Yu=at("outlineColor"),io=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Yt(t,n)});return ct(e,e.borderRadius,r)}return null};io.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Bt}:{};io.filterProps=["borderRadius"];so(Uu,Bu,Ju,Vu,Gu,zu,Wu,Hu,Ku,qu,io,Xu,Yu);const lo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rn(e.theme,"spacing",8,"gap"),r=n=>({gap:Yt(t,n)});return ct(e,e.gap,r)}return null};lo.propTypes=process.env.NODE_ENV!=="production"?{gap:Bt}:{};lo.filterProps=["gap"];const co=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Yt(t,n)});return ct(e,e.columnGap,r)}return null};co.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Bt}:{};co.filterProps=["columnGap"];const uo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Yt(t,n)});return ct(e,e.rowGap,r)}return null};uo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Bt}:{};uo.filterProps=["rowGap"];const Zu=ye({prop:"gridColumn"}),Qu=ye({prop:"gridRow"}),ed=ye({prop:"gridAutoFlow"}),td=ye({prop:"gridAutoColumns"}),rd=ye({prop:"gridAutoRows"}),nd=ye({prop:"gridTemplateColumns"}),od=ye({prop:"gridTemplateRows"}),ad=ye({prop:"gridTemplateAreas"}),sd=ye({prop:"gridArea"});so(lo,co,uo,Zu,Qu,ed,td,rd,nd,od,ad,sd);function gr(e,t){return t==="grey"?t:e}const id=ye({prop:"color",themeKey:"palette",transform:gr}),ld=ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),cd=ye({prop:"backgroundColor",themeKey:"palette",transform:gr});so(id,ld,cd);function We(e){return e<=1&&e!==0?`${e*100}%`:e}const ud=ye({prop:"width",transform:We}),Pa=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:We(r)}};return ct(e,e.maxWidth,t)}return null};Pa.filterProps=["maxWidth"];const dd=ye({prop:"minWidth",transform:We}),fd=ye({prop:"height",transform:We}),hd=ye({prop:"maxHeight",transform:We}),md=ye({prop:"minHeight",transform:We});ye({prop:"size",cssProperty:"width",transform:We});ye({prop:"size",cssProperty:"height",transform:We});const pd=ye({prop:"boxSizing"});so(ud,Pa,dd,fd,hd,md,pd);const nn={border:{themeKey:"borders",transform:et},borderTop:{themeKey:"borders",transform:et},borderRight:{themeKey:"borders",transform:et},borderBottom:{themeKey:"borders",transform:et},borderLeft:{themeKey:"borders",transform:et},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:et},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:io},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:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},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:lo},rowGap:{style:uo},columnGap:{style:co},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:We},maxWidth:{style:Pa},minWidth:{transform:We},height:{transform:We},maxHeight:{transform:We},minHeight:{transform:We},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function gd(...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 yd(e,t){return typeof e=="function"?e(t):e}function tl(){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:f}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const h=no(o,u)||{};return f?f(i):ct(i,n,y=>{let _=Nn(h,d,y);return y===_&&typeof y=="string"&&(_=Nn(h,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:nn;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=Zi(a.breakpoints),f=Object.keys(d);let h=d;return Object.keys(u).forEach(b=>{const y=yd(u[b],a);if(y!=null)if(typeof y=="object")if(i[b])h=Vr(h,e(b,y,a,i));else{const _=ct({theme:a},y,g=>({[b]:g}));gd(_,y)?h[b]=t({sx:y,theme:a}):h=Vr(h,_)}else h=Vr(h,e(b,y,a,i))}),Qi(f,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const on=tl();on.filterProps=["sx"];function rl(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 _d=["breakpoints","palette","spacing","shape"];function an(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ue(e,_d),l=Yi(r),c=Du(o);let u=rt({breakpoints:l,direction:"ltr",components:{},palette:P({mode:"light"},n),spacing:c,shape:P({},Au,a)},i);return u.applyStyles=rl,u=t.reduce((d,f)=>rt(d,f),u),u.unstable_sxConfig=P({},nn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return on({sx:f,theme:this})},u}const bd=Object.freeze(Object.defineProperty({__proto__:null,default:an,private_createBreakpoints:Yi,unstable_applyStyles:rl},Symbol.toStringTag,{value:"Module"}));function vd(e){return Object.keys(e).length===0}function xd(e=null){const t=N.useContext(qt.ThemeContext);return!t||vd(t)?e:t}const Sd=an();function wd(e=Sd){return xd(e)}const Rd=["sx"],jd=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:nn;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function nl(e){const{sx:t}=e,r=Ue(e,Rd),{systemProps:n,otherProps:o}=jd(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return jt(l)?P({},n,l):n}:a=P({},n,t),P({},o,{sx:a})}const Cd=Object.freeze(Object.defineProperty({__proto__:null,default:on,extendSxProp:nl,unstable_createStyleFunctionSx:tl,unstable_defaultSxConfig:nn},Symbol.toStringTag,{value:"Module"})),ls=e=>e,Pd=()=>{let e=ls;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ls}}},ol=Pd();function al(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=al(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function bt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=al(e))&&(n&&(n+=" "),n+=t);return n}const Ad={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 sn(e,t,r="Mui"){const n=Ad[t];return n?`${r}-${n}`:`${ol.generate(e)}-${t}`}function sl(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=sn(e,o,r)}),n}var ta={exports:{}},ae={};/**
|
|
41
41
|
* @license React
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
@@ -45,7 +45,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
48
|
+
*/var cs;function Od(){if(cs)return ae;cs=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"),f=Symbol.for("react.memo"),h=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 S=g.$$typeof;switch(S){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 h:case f:case a:return g;default:return S}}case t:return S}}}return ae.ContextConsumer=i,ae.ContextProvider=a,ae.Element=e,ae.ForwardRef=c,ae.Fragment=r,ae.Lazy=h,ae.Memo=f,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)===h},ae.isMemo=function(g){return _(g)===f},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===h||g.$$typeof===f||g.$$typeof===a||g.$$typeof===i||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},ae.typeOf=_,ae}var se={};/**
|
|
49
49
|
* @license React
|
|
50
50
|
* react-is.development.js
|
|
51
51
|
*
|
|
@@ -53,12 +53,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var
|
|
57
|
-
`))},[n,r,e]);const{current:
|
|
58
|
-
`))},[JSON.stringify(t)])}const
|
|
56
|
+
*/var us;function Td(){return us||(us=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"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,_=!1,g=!1,S=!1,R=!1,C;C=Symbol.for("react.module.reference");function k(E){return!!(typeof E=="string"||typeof E=="function"||E===r||E===o||R||E===n||E===u||E===d||S||E===b||y||_||g||typeof E=="object"&&E!==null&&(E.$$typeof===h||E.$$typeof===f||E.$$typeof===a||E.$$typeof===i||E.$$typeof===c||E.$$typeof===C||E.getModuleId!==void 0))}function j(E){if(typeof E=="object"&&E!==null){var ee=E.$$typeof;switch(ee){case e:var he=E.type;switch(he){case r:case o:case n:case u:case d:return he;default:var Le=he&&he.$$typeof;switch(Le){case l:case i:case c:case h:case f:case a:return Le;default:return ee}}case t:return ee}}}var A=i,O=a,z=e,le=c,ue=r,D=h,q=f,G=t,X=o,K=n,we=u,ce=d,Q=!1,Pe=!1;function Ie(E){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function st(E){return Pe||(Pe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function xt(E){return j(E)===i}function qe(E){return j(E)===a}function Re(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function Mt(E){return j(E)===c}function ft(E){return j(E)===r}function Xe(E){return j(E)===h}function Ve(E){return j(E)===f}function ht(E){return j(E)===t}function mt(E){return j(E)===o}function Vt(E){return j(E)===n}function St(E){return j(E)===u}function Ge(E){return j(E)===d}se.ContextConsumer=A,se.ContextProvider=O,se.Element=z,se.ForwardRef=le,se.Fragment=ue,se.Lazy=D,se.Memo=q,se.Portal=G,se.Profiler=X,se.StrictMode=K,se.Suspense=we,se.SuspenseList=ce,se.isAsyncMode=Ie,se.isConcurrentMode=st,se.isContextConsumer=xt,se.isContextProvider=qe,se.isElement=Re,se.isForwardRef=Mt,se.isFragment=ft,se.isLazy=Xe,se.isMemo=Ve,se.isPortal=ht,se.isProfiler=mt,se.isStrictMode=Vt,se.isSuspense=St,se.isSuspenseList=Ge,se.isValidElementType=k,se.typeOf=j}()),se}process.env.NODE_ENV==="production"?ta.exports=Od():ta.exports=Td();var ds=ta.exports;const Ed=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function il(e){const t=`${e}`.match(Ed);return t&&t[1]||""}function ll(e,t=""){return e.displayName||e.name||il(e)||t}function fs(e,t,r){const n=ll(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function cl(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ll(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ds.ForwardRef:return fs(e,e.render,"ForwardRef");case ds.Memo:return fs(e,e.type,"memo");default:return}}}const Md=Object.freeze(Object.defineProperty({__proto__:null,default:cl,getFunctionName:il},Symbol.toStringTag,{value:"Module"})),Id=["ownerState"],Ld=["variants"],kd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $d(e){return Object.keys(e).length===0}function Nd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fd=an(),hs=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yn({defaultTheme:e,theme:t,themeId:r}){return $d(t)?e:t[r]||t}function Dd(e){return e?(t,r)=>r[e]:null}function On(e,t){let{ownerState:r}=t,n=Ue(t,Id);const o=typeof e=="function"?e(P({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>On(a,P({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=Ue(o,Ld);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(P({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(P({ownerState:r},n,r)):c.style))}),l}return o}function Ud(e={}){const{themeId:t,defaultTheme:r=Fd,rootShouldForwardProp:n=Lo,slotShouldForwardProp:o=Lo}=e,a=i=>on(P({},i,{theme:yn(P({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{qi(i,j=>j.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=Dd(hs(u))}=l,b=Ue(l,kd),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=f||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${hs(u||"Root")}`);let S=Lo;u==="Root"||u==="root"?S=n:u?S=o:Nd(i)&&(S=void 0);const R=Ki(i,P({shouldForwardProp:S,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||jt(j)?A=>On(j,P({},A,{theme:yn({theme:A.theme,defaultTheme:r,themeId:t})})):j,k=(j,...A)=>{let O=C(j);const z=A?A.map(C):[];c&&h&&z.push(D=>{const q=yn(P({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[c]||!q.components[c].styleOverrides)return null;const G=q.components[c].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=On(we,P({},D,{theme:q}))}),h(D,X)}),c&&!y&&z.push(D=>{var q;const G=yn(P({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[c])==null?void 0:q.variants;return On({variants:X},P({},D,{theme:G}))}),_||z.push(a);const le=z.length-A.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${Oe(u||"")}`),D===void 0&&(D=`Styled(${cl(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}const Bd=Ud();function Fn(e,t){const r=P({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=P({},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]=P({},a),Object.keys(o).forEach(i=>{r[n][i]=Fn(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Jd(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Fn(t.components[r].defaultProps,n)}function Vd({props:e,name:t,defaultTheme:r,themeId:n}){let o=wd(r);return n&&(o=o[n]||o),Jd({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 Gd=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 zd(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Wd(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 Hd(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 Kd(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 qd(e){return yr(e).defaultView||window}function Xd(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?P({},t.propTypes):null;return o=>(a,i,l,c,u,...d)=>{const f=u||i,h=r==null?void 0:r[f];if(h){const b=h(a,i,l,c,u,...d);if(b)return b}return typeof a[i]<"u"&&!a[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function ul(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ps=0;function Yd(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(ps+=1,r(`mui-${ps}`))},[t]),n}const gs=N.useId;function Zd(e){if(gs!==void 0){const t=gs();return e??t}return Yd(e)}function Qd(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 dl({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(`
|
|
57
|
+
`))},[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(`
|
|
58
|
+
`))},[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 Dn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{ul(r,t)})},e)}class Oa{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Oa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let fo=!0,ra=!1;const ef=new Oa,tf={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 rf(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&tf[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function nf(e){e.metaKey||e.altKey||e.ctrlKey||(fo=!0)}function ko(){fo=!1}function of(){this.visibilityState==="hidden"&&ra&&(fo=!0)}function af(e){e.addEventListener("keydown",nf,!0),e.addEventListener("mousedown",ko,!0),e.addEventListener("pointerdown",ko,!0),e.addEventListener("touchstart",ko,!0),e.addEventListener("visibilitychange",of,!0)}function sf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return fo||rf(t)}function fl(){const e=N.useCallback(o=>{o!=null&&af(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(ra=!0,ef.start(100,()=>{ra=!1}),t.current=!1,!0):!1}function n(o){return sf(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const lf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ta(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 cf(e,t,r){return e===void 0||Gr(e)?t:P({},t,{ownerState:P({},t.ownerState,r)})}function En(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 ys(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 uf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const b=bt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),y=P({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),_=P({},r,o,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=En(P({},o,n)),l=ys(n),c=ys(o),u=t(i),d=bt(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),f=P({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),h=P({},u,r,c,l);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function df(e,t,r){return typeof e=="function"?e(t,r):e}const ff=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function $t(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ue(e,ff),l=a?{}:df(n,o),{props:c,internalRef:u}=uf(P({},i,{externalSlotProps:l})),d=Dn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return cf(r,P({},c,{ref:d}),o)}const hf=N.createContext();process.env.NODE_ENV!=="production"&&(m.node,m.bool);const mf=()=>{const e=N.useContext(hf);return e??!1},pf=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(m.node,m.object);function gf(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?Fn(o.defaultProps,n):!o.styleOverrides&&!o.variants?Fn(o,n):n}function yf({props:e,name:t}){const r=N.useContext(pf);return gf({props:e,name:t,theme:{components:r}})}const _f=["component","direction","spacing","divider","children","className","useFlexGap"],bf=an(),vf=Bd("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function xf(e){return Vd({props:e,name:"MuiStack",defaultTheme:bf})}function Sf(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 wf=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Rf=({ownerState:e,theme:t})=>{let r=P({display:"flex",flexDirection:"column"},ct({theme:t},Io({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Ca(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=Io({values:e.direction,base:o}),i=Io({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const h=u>0?a[d[u-1]]:"column";a[c]=h}}),r=rt(r,ct({theme:t},i,(c,u)=>e.useFlexGap?{gap:Yt(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${wf(u?a[u]:e.direction)}`]:Yt(n,c)}}))}return r=Ou(t.breakpoints,r),r};function jf(e={}){const{createStyledComponent:t=vf,useThemeProps:r=xf,componentName:n="MuiStack"}=e,o=()=>Ta({root:["root"]},c=>sn(n,c),{}),a=t(Rf),i=N.forwardRef(function(c,u){const d=r(c),f=nl(d),{component:h="div",direction:b="column",spacing:y=0,divider:_,children:g,className:S,useFlexGap:R=!1}=f,C=Ue(f,_f),k={direction:b,spacing:y,useFlexGap:R},j=o();return s.jsx(a,P({as:h,ownerState:k,ref:u,className:bt(j.root,S)},C,{children:_?Sf(g,_):g}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:m.node,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])}),i}function Cf(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var _e={},hl={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})(hl);var ho=hl.exports;const Pf=At(zc),Af=At(Gd);var ml=ho;Object.defineProperty(_e,"__esModule",{value:!0});var _s=_e.alpha=_l;_e.blend=Ff;_e.colorChannel=void 0;var na=_e.darken=Ma;_e.decomposeColor=nt;_e.emphasize=bl;var bs=_e.getContrastRatio=If;_e.getLuminance=Un;_e.hexToRgb=pl;_e.hslToRgb=yl;var oa=_e.lighten=Ia;_e.private_safeAlpha=Lf;_e.private_safeColorChannel=void 0;_e.private_safeDarken=kf;_e.private_safeEmphasize=Nf;_e.private_safeLighten=$f;_e.recomposeColor=Sr;_e.rgbToHex=Mf;var vs=ml(Pf),Of=ml(Af);function Ea(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,Of.default)(e,t,r)}function pl(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 Tf(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function nt(e){if(e.type)return e;if(e.charAt(0)==="#")return nt(pl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
59
59
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,vs.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.
|
|
60
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,vs.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const gl=e=>{const t=
|
|
61
|
-
`))}return g}const
|
|
60
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,vs.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const gl=e=>{const t=nt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};_e.colorChannel=gl;const Ef=(e,t)=>{try{return gl(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};_e.private_safeColorChannel=Ef;function Sr(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 Mf(e){if(e.indexOf("#")===0)return e;const{values:t}=nt(e);return`#${t.map((r,n)=>Tf(n===3?Math.round(255*r):r)).join("")}`}function yl(e){e=nt(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])),Sr({type:l,values:c})}function Un(e){e=nt(e);let t=e.type==="hsl"||e.type==="hsla"?nt(yl(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 If(e,t){const r=Un(e),n=Un(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function _l(e,t){return e=nt(e),t=Ea(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sr(e)}function Lf(e,t,r){try{return _l(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ma(e,t){if(e=nt(e),t=Ea(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 Sr(e)}function kf(e,t,r){try{return Ma(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ia(e,t){if(e=nt(e),t=Ea(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 Sr(e)}function $f(e,t,r){try{return Ia(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function bl(e,t=.15){return Un(e)>.5?Ma(e,t):Ia(e,t)}function Nf(e,t,r){try{return bl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ff(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=nt(e),i=nt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Sr({type:"rgb",values:l})}const Xr={black:"#000",white:"#fff"},Df={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"},ir={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"},lr={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"},Dr={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"},cr={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"},ur={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"},dr={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"},Uf=["mode","contrastThreshold","tonalOffset"],xs={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:Xr.white,default:Xr.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}},$o={text:{primary:Xr.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:Xr.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 Ss(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=oa(e.main,o):t==="dark"&&(e.dark=na(e.main,a)))}function Bf(e="light"){return e==="dark"?{main:cr[200],light:cr[50],dark:cr[400]}:{main:cr[700],light:cr[400],dark:cr[800]}}function Jf(e="light"){return e==="dark"?{main:ir[200],light:ir[50],dark:ir[400]}:{main:ir[500],light:ir[300],dark:ir[700]}}function Vf(e="light"){return e==="dark"?{main:lr[500],light:lr[300],dark:lr[700]}:{main:lr[700],light:lr[400],dark:lr[800]}}function Gf(e="light"){return e==="dark"?{main:ur[400],light:ur[300],dark:ur[700]}:{main:ur[700],light:ur[500],dark:ur[900]}}function zf(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:dr[800],light:dr[500],dark:dr[900]}}function Wf(e="light"){return e==="dark"?{main:Dr[400],light:Dr[300],dark:Dr[700]}:{main:"#ed6c02",light:Dr[500],dark:Dr[900]}}function Hf(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ue(e,Uf),a=e.primary||Bf(t),i=e.secondary||Jf(t),l=e.error||Vf(t),c=e.info||Gf(t),u=e.success||zf(t),d=e.warning||Wf(t);function f(_){const g=bs(_,$o.text.primary)>=r?$o.text.primary:xs.text.primary;if(process.env.NODE_ENV!=="production"){const S=bs(_,g);S<3&&console.error([`MUI: The contrast ratio of ${S}: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
|
+
`))}return g}const h=({color:_,name:g,mainShade:S=500,lightShade:R=300,darkShade:C=700})=>{if(_=P({},_),!_.main&&_[S]&&(_.main=_[S]),!_.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
62
62
|
The color object needs to have a \`main\` property or a \`${S}\` property.`:Hr(11,g?` (${g})`:"",S));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
63
63
|
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
|
|
64
64
|
|
|
@@ -72,13 +72,13 @@ const theme1 = createTheme({ palette: {
|
|
|
72
72
|
|
|
73
73
|
const theme2 = createTheme({ palette: {
|
|
74
74
|
primary: { main: green[500] },
|
|
75
|
-
} });`:Hr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Ss(_,"light",R,n),Ss(_,"dark",C,n),_.contrastText||(_.contrastText=
|
|
76
|
-
`)),Object.keys(
|
|
77
|
-
`))}f[y]={}}}};Object.keys(c.components).forEach(f=>{const b=c.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&h(b,f)})}return c.unstable_sxConfig=P({},nn,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(h){return on({sx:h,theme:this})},c}const lh=vl();var ln={},No={exports:{}},Cs;function uh(){return Cs||(Cs=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:{}},Ps;function ch(){return Ps||(Ps=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 dh=At(Rc),fh=At(jc),hh=At(Ec),mh=At(Md),ph=At(bd),gh=At(Cd);var wr=ho;Object.defineProperty(ln,"__esModule",{value:!0});var yh=ln.default=Eh;ln.shouldForwardProp=Mn;ln.systemDefaultTheme=void 0;var Ze=wr(uh()),aa=wr(ch()),As=Ch(dh),_h=fh,bh=wr(hh),vh=wr(mh),xh=wr(ph),Sh=wr(gh);const wh=["ownerState"],Rh=["variants"],jh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(xl=function(n){return n?r:t})(e)}function Ch(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=xl(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 Ph(e){return Object.keys(e).length===0}function Ah(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Mn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oh=ln.systemDefaultTheme=(0,xh.default)(),Os=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _n({defaultTheme:e,theme:t,themeId:r}){return Ph(t)?e:t[r]||t}function Th(e){return e?(t,r)=>r[e]:null}function In(e,t){let{ownerState:r}=t,n=(0,aa.default)(t,wh);const o=typeof e=="function"?e((0,Ze.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>In(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,Rh);return a.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props((0,Ze.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style((0,Ze.default)({ownerState:r},n,r)):u.style))}),l}return o}function Eh(e={}){const{themeId:t,defaultTheme:r=Oh,rootShouldForwardProp:n=Mn,slotShouldForwardProp:o=Mn}=e,a=i=>(0,Sh.default)((0,Ze.default)({},i,{theme:_n((0,Ze.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,As.internal_processStyles)(i,j=>j.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:h,overridesResolver:f=Th(Os(c))}=l,b=(0,aa.default)(l,jh),y=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&u&&(g=`${u}-${Os(c||"Root")}`);let S=Mn;c==="Root"||c==="root"?S=n:c?S=o:Ah(i)&&(S=void 0);const R=(0,As.default)(i,(0,Ze.default)({shouldForwardProp:S,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||(0,_h.isPlainObject)(j)?A=>In(j,(0,Ze.default)({},A,{theme:_n({theme:A.theme,defaultTheme:r,themeId:t})})):j,k=(j,...A)=>{let O=C(j);const z=A?A.map(C):[];u&&f&&z.push(D=>{const q=_n((0,Ze.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[u]||!q.components[u].styleOverrides)return null;const G=q.components[u].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=In(we,(0,Ze.default)({},D,{theme:q}))}),f(D,X)}),u&&!y&&z.push(D=>{var q;const G=_n((0,Ze.default)({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[u])==null?void 0:q.variants;return In({variants:X},(0,Ze.default)({},D,{theme:G}))}),_||z.push(a);const le=z.length-A.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ce=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;u&&(D=`${u}${(0,bh.default)(c||"")}`),D===void 0&&(D=`Styled(${(0,vh.default)(i)})`),ce.displayName=D}return i.muiName&&(ce.muiName=i.muiName),ce};return R.withConfig&&(k.withConfig=R.withConfig),k}}function La(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mh=e=>La(e)&&e!=="classes",Ot=yh({themeId:Wu,defaultTheme:lh,rootShouldForwardProp:Mh});function Sl(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ka(e){return e}var Ts=Math.max;function Ih(e,t,r){return t=Ts(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Ts(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=n[o];return l[t]=r(i),Sl(e,this,l)}}function Lh(e){return function(){return e}}var wl=typeof global=="object"&&global&&global.Object===Object&&global,kh=typeof self=="object"&&self&&self.Object===Object&&self,ut=wl||kh||Function("return this")(),Dt=ut.Symbol,Rl=Object.prototype,$h=Rl.hasOwnProperty,Nh=Rl.toString,Ur=Dt?Dt.toStringTag:void 0;function Fh(e){var t=$h.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Nh.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var Dh=Object.prototype,Uh=Dh.toString;function Bh(e){return Uh.call(e)}var Jh="[object Null]",Vh="[object Undefined]",Es=Dt?Dt.toStringTag:void 0;function Jt(e){return e==null?e===void 0?Vh:Jh:Es&&Es in Object(e)?Fh(e):Bh(e)}function Be(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gh="[object AsyncFunction]",zh="[object Function]",Wh="[object GeneratorFunction]",Hh="[object Proxy]";function $a(e){if(!Be(e))return!1;var t=Jt(e);return t==zh||t==Wh||t==Gh||t==Hh}var Do=ut["__core-js_shared__"],Ms=function(){var e=/[^.]+$/.exec(Do&&Do.keys&&Do.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Kh(e){return!!Ms&&Ms in e}var qh=Function.prototype,Xh=qh.toString;function er(e){if(e!=null){try{return Xh.call(e)}catch{}try{return e+""}catch{}}return""}var Yh=/[\\^$.*+?()[\]{}|]/g,Zh=/^\[object .+?Constructor\]$/,Qh=Function.prototype,em=Object.prototype,tm=Qh.toString,rm=em.hasOwnProperty,nm=RegExp("^"+tm.call(rm).replace(Yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function om(e){if(!Be(e)||Kh(e))return!1;var t=$a(e)?nm:Zh;return t.test(er(e))}function am(e,t){return e==null?void 0:e[t]}function tr(e,t){var r=am(e,t);return om(r)?r:void 0}var Bn=function(){try{var e=tr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),sm=Bn?function(e,t){return Bn(e,"toString",{configurable:!0,enumerable:!1,value:Lh(t),writable:!0})}:ka,im=800,lm=16,um=Date.now;function cm(e){var t=0,r=0;return function(){var n=um(),o=lm-(n-r);if(r=n,o>0){if(++t>=im)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dm=cm(sm);function jl(e,t){return dm(Ih(e,t,ka),e+"")}function fm(){this.__data__=[],this.size=0}function un(e,t){return e===t||e!==e&&t!==t}function mo(e,t){for(var r=e.length;r--;)if(un(e[r][0],t))return r;return-1}var hm=Array.prototype,mm=hm.splice;function pm(e){var t=this.__data__,r=mo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():mm.call(t,r,1),--this.size,!0}function gm(e){var t=this.__data__,r=mo(t,e);return r<0?void 0:t[r][1]}function ym(e){return mo(this.__data__,e)>-1}function _m(e,t){var r=this.__data__,n=mo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Tt(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])}}Tt.prototype.clear=fm;Tt.prototype.delete=pm;Tt.prototype.get=gm;Tt.prototype.has=ym;Tt.prototype.set=_m;function bm(){this.__data__=new Tt,this.size=0}function vm(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function xm(e){return this.__data__.get(e)}function Sm(e){return this.__data__.has(e)}var Yr=tr(ut,"Map"),Zr=tr(Object,"create");function wm(){this.__data__=Zr?Zr(null):{},this.size=0}function Rm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jm="__lodash_hash_undefined__",Cm=Object.prototype,Pm=Cm.hasOwnProperty;function Am(e){var t=this.__data__;if(Zr){var r=t[e];return r===jm?void 0:r}return Pm.call(t,e)?t[e]:void 0}var Om=Object.prototype,Tm=Om.hasOwnProperty;function Em(e){var t=this.__data__;return Zr?t[e]!==void 0:Tm.call(t,e)}var Mm="__lodash_hash_undefined__";function Im(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zr&&t===void 0?Mm: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=wm;Zt.prototype.delete=Rm;Zt.prototype.get=Am;Zt.prototype.has=Em;Zt.prototype.set=Im;function Lm(){this.size=0,this.__data__={hash:new Zt,map:new(Yr||Tt),string:new Zt}}function km(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function po(e,t){var r=e.__data__;return km(t)?r[typeof t=="string"?"string":"hash"]:r.map}function $m(e){var t=po(this,e).delete(e);return this.size-=t?1:0,t}function Nm(e){return po(this,e).get(e)}function Fm(e){return po(this,e).has(e)}function Dm(e,t){var r=po(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Et.prototype.clear=Lm;Et.prototype.delete=$m;Et.prototype.get=Nm;Et.prototype.has=Fm;Et.prototype.set=Dm;var Um=200;function Bm(e,t){var r=this.__data__;if(r instanceof Tt){var n=r.__data__;if(!Yr||n.length<Um-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Et(n)}return r.set(e,t),this.size=r.size,this}function bt(e){var t=this.__data__=new Tt(e);this.size=t.size}bt.prototype.clear=bm;bt.prototype.delete=vm;bt.prototype.get=xm;bt.prototype.has=Sm;bt.prototype.set=Bm;function go(e,t,r){t=="__proto__"&&Bn?Bn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function sa(e,t,r){(r!==void 0&&!un(e[t],r)||r===void 0&&!(t in e))&&go(e,t,r)}function Jm(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var u=i[++o];if(r(a[u],u,a)===!1)break}return t}}var Cl=Jm(),Pl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Is=Pl&&typeof module=="object"&&module&&!module.nodeType&&module,Vm=Is&&Is.exports===Pl,Ls=Vm?ut.Buffer:void 0;Ls&&Ls.allocUnsafe;function Gm(e,t){return e.slice()}var Jn=ut.Uint8Array;function zm(e){var t=new e.constructor(e.byteLength);return new Jn(t).set(new Jn(e)),t}function Wm(e,t){var r=zm(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Hm(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ks=Object.create,Km=function(){function e(){}return function(t){if(!Be(t))return{};if(ks)return ks(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Al(e,t){return function(r){return e(t(r))}}var Ol=Al(Object.getPrototypeOf,Object),qm=Object.prototype;function Na(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qm;return e===r}function Xm(e){return typeof e.constructor=="function"&&!Na(e)?Km(Ol(e)):{}}function Pt(e){return e!=null&&typeof e=="object"}var Ym="[object Arguments]";function $s(e){return Pt(e)&&Jt(e)==Ym}var Tl=Object.prototype,Zm=Tl.hasOwnProperty,Qm=Tl.propertyIsEnumerable,Vn=$s(function(){return arguments}())?$s:function(e){return Pt(e)&&Zm.call(e,"callee")&&!Qm.call(e,"callee")},nt=Array.isArray,e0=9007199254740991;function Fa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=e0}function cn(e){return e!=null&&Fa(e.length)&&!$a(e)}function t0(e){return Pt(e)&&cn(e)}function r0(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ns=El&&typeof module=="object"&&module&&!module.nodeType&&module,n0=Ns&&Ns.exports===El,Fs=n0?ut.Buffer:void 0,o0=Fs?Fs.isBuffer:void 0,Gn=o0||r0,a0="[object Object]",s0=Function.prototype,i0=Object.prototype,Ml=s0.toString,l0=i0.hasOwnProperty,u0=Ml.call(Object);function c0(e){if(!Pt(e)||Jt(e)!=a0)return!1;var t=Ol(e);if(t===null)return!0;var r=l0.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ml.call(r)==u0}var d0="[object Arguments]",f0="[object Array]",h0="[object Boolean]",m0="[object Date]",p0="[object Error]",g0="[object Function]",y0="[object Map]",_0="[object Number]",b0="[object Object]",v0="[object RegExp]",x0="[object Set]",S0="[object String]",w0="[object WeakMap]",R0="[object ArrayBuffer]",j0="[object DataView]",C0="[object Float32Array]",P0="[object Float64Array]",A0="[object Int8Array]",O0="[object Int16Array]",T0="[object Int32Array]",E0="[object Uint8Array]",M0="[object Uint8ClampedArray]",I0="[object Uint16Array]",L0="[object Uint32Array]",de={};de[C0]=de[P0]=de[A0]=de[O0]=de[T0]=de[E0]=de[M0]=de[I0]=de[L0]=!0;de[d0]=de[f0]=de[R0]=de[h0]=de[j0]=de[m0]=de[p0]=de[g0]=de[y0]=de[_0]=de[b0]=de[v0]=de[x0]=de[S0]=de[w0]=!1;function k0(e){return Pt(e)&&Fa(e.length)&&!!de[Jt(e)]}function $0(e){return function(t){return e(t)}}var Il=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Il&&typeof module=="object"&&module&&!module.nodeType&&module,N0=zr&&zr.exports===Il,Uo=N0&&wl.process,Ds=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Uo&&Uo.binding&&Uo.binding("util")}catch{}}(),Us=Ds&&Ds.isTypedArray,Da=Us?$0(Us):k0;function ia(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var F0=Object.prototype,D0=F0.hasOwnProperty;function U0(e,t,r){var n=e[t];(!(D0.call(e,t)&&un(n,r))||r===void 0&&!(t in e))&&go(e,t,r)}function B0(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var l=t[a],u=void 0;u===void 0&&(u=e[l]),o?go(r,l,u):U0(r,l,u)}return r}function J0(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var V0=9007199254740991,G0=/^(?:0|[1-9]\d*)$/;function Ua(e,t){var r=typeof e;return t=t??V0,!!t&&(r=="number"||r!="symbol"&&G0.test(e))&&e>-1&&e%1==0&&e<t}var z0=Object.prototype,W0=z0.hasOwnProperty;function Ll(e,t){var r=nt(e),n=!r&&Vn(e),o=!r&&!n&&Gn(e),a=!r&&!n&&!o&&Da(e),i=r||n||o||a,l=i?J0(e.length,String):[],u=l.length;for(var c in e)(t||W0.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ua(c,u)))&&l.push(c);return l}function H0(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var K0=Object.prototype,q0=K0.hasOwnProperty;function X0(e){if(!Be(e))return H0(e);var t=Na(e),r=[];for(var n in e)n=="constructor"&&(t||!q0.call(e,n))||r.push(n);return r}function kl(e){return cn(e)?Ll(e,!0):X0(e)}function Y0(e){return B0(e,kl(e))}function Z0(e,t,r,n,o,a,i){var l=ia(e,r),u=ia(t,r),c=i.get(u);if(c){sa(e,r,c);return}var d=a?a(l,u,r+"",e,t,i):void 0,h=d===void 0;if(h){var f=nt(u),b=!f&&Gn(u),y=!f&&!b&&Da(u);d=u,f||b||y?nt(l)?d=l:t0(l)?d=Hm(l):b?(h=!1,d=Gm(u)):y?(h=!1,d=Wm(u)):d=[]:c0(u)||Vn(u)?(d=l,Vn(l)?d=Y0(l):(!Be(l)||$a(l))&&(d=Xm(u))):h=!1}h&&(i.set(u,d),o(d,u,n,a,i),i.delete(u)),sa(e,r,d)}function Ba(e,t,r,n,o){e!==t&&Cl(t,function(a,i){if(o||(o=new bt),Be(a))Z0(e,t,i,r,Ba,n,o);else{var l=n?n(ia(e,i),a,i+"",e,t,o):void 0;l===void 0&&(l=a),sa(e,i,l)}},kl)}function $l(e,t,r,n,o,a){return Be(e)&&Be(t)&&(a.set(t,e),Ba(e,t,void 0,$l,a),a.delete(t)),e}function Q0(e,t,r){if(!Be(r))return!1;var n=typeof t;return(n=="number"?cn(r)&&Ua(t,r.length):n=="string"&&t in r)?un(r[t],e):!1}function ep(e){return jl(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Q0(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var l=r[n];l&&e(t,l,n,a)}return t})}var tp=ep(function(e,t,r,n){Ba(e,t,r,n)}),rp=jl(function(e){return e.push(void 0,$l),Sl(tp,void 0,e)});const pt={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"},np={mode:"dark",colors:{primary:pt.skyblue500,textDefault:pt.white,textSubtle:pt.midnightgray,background:{default:pt.darkishblue,panel:pt.darkestblue}}},op={mode:"light",colors:{primary:pt.skyblue500,textDefault:pt.darkishblue,textSubtle:pt.midnightgray,background:{default:pt.skyblue500,panel:pt.white}}};function ap(e={}){const t=e.mode==="light"?op:np;return rp(e,t)}function sp(e){const t=e,r=t.mode==="dark";return vl({palette:{mode:t.mode,primary:{main:t.colors.primary},background:{default:t.colors.background.default,paper:t.colors.background.panel}},typography:{allVariants:{color:t.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:r?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:r?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:r?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:r?"#3d4455":void 0,color:r?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":r?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:r?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":r?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:t})}const ip={"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"},lp={"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"},up={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 zn{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||up,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 zn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zn(this.logger,t)}}var gt=new zn;class yo{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,u]=i;for(let c=0;c<u;c++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l.apply(l,[t,...n])})}}const Br=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},Bs=e=>e==null?"":""+e,cp=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},dp=/###/g,Js=e=>e&&e.indexOf("###")>-1?e.replace(dp,"."):e,Vs=e=>!e||typeof e=="string",Wr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Vs(e))return{};const a=Js(n[o]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Vs(e)?{}:{obj:e,k:Js(n[o])}},Gs=(e,t,r)=>{const{obj:n,k:o}=Wr(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=Wr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Wr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r},fp=(e,t,r,n)=>{const{obj:o,k:a}=Wr(e,t,Object);o[a]=o[a]||[],o[a].push(r)},Wn=(e,t)=>{const{obj:r,k:n}=Wr(e,t);if(r)return r[n]},hp=(e,t,r)=>{const n=Wn(e,r);return n!==void 0?n:Wn(t,r)},Nl=(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]):Nl(e[n],t[n],r):e[n]=t[n]);return e},fr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var mp={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const pp=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>mp[t]):e;class gp{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 yp=[" ",",","?","!",";"],_p=new gp(20),bp=(e,t,r)=>{t=t||"",r=r||"";const n=yp.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=_p.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},la=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 u=a;u<n.length;++u)if(u!==a&&(l+=r),l+=n[u],i=o[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<n.length-1)continue;a+=u-a+1;break}o=i}return o},Hn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class zs extends yo{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 u=Wn(this.data,l);return!u&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),u||!i||typeof n!="string"?u:la(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),Gs(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 u=Wn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Nl(u,n,a):u={...u,...n},Gs(this.data,l,u),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var Fl={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 Ws={};class Kn extends yo{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),cp(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=gt.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&&!bp(t,n,o);if(i&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:a};const c=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),t=c.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),u=l[l.length-1],c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(d){const k=r.nsSeparator||this.options.nsSeparator;return o?{res:`${u}${k}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${k}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:i}const h=this.resolve(t,r);let f=h&&h.res;const b=h&&h.usedKey||i,y=h&&h.exactUsedKey||i,_=Object.prototype.toString.apply(f),g=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&g.indexOf(_)<0&&!(typeof S=="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 k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,f,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(h.res=k,h.usedParams=this.getUsedParamsDetails(r),h):k}if(a){const k=Array.isArray(f),j=k?[]:{},A=k?y:b;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const z=`${A}${a}${O}`;j[O]=this.translate(z,{...r,joinArrays:!1,ns:l}),j[O]===z&&(j[O]=f[O])}f=j}}else if(R&&typeof S=="string"&&Array.isArray(f))f=f.join(S),f&&(f=this.extendTranslation(f,t,r,n));else{let k=!1,j=!1;const A=r.count!==void 0&&typeof r.count!="string",O=Kn.hasDefaultValue(r),z=A?this.pluralResolver.getSuffix(c,r.count,r):"",le=r.ordinal&&A?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",ce=A&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ce&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(f)&&O&&(k=!0,f=D),this.isValidLookup(f)||(j=!0,f=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:f,X=O&&D!==f&&this.options.updateMissing;if(j||k||X){if(this.logger.log(X?"updateKey":"missingKey",c,u,i,X?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 ue=(Q,Ce,Me)=>{const at=O&&Me!==f?Me:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,u,Ce,at,X,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,u,Ce,at,X,r),this.emit("missingKey",Q,u,Ce,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?K.forEach(Q=>{const Ce=this.pluralResolver.getSuffixes(Q,r);ce&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ce.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ce.push(`${this.options.pluralSeparator}zero`),Ce.forEach(Me=>{ue([Q],i+Me,r[`defaultValue${Me}`]||D)})}):ue(K,i,D))}f=this.extendTranslation(f,t,r,h,n),j&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${u}:${i}`),(j||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,k?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(h.res=f,h.usedParams=this.getUsedParamsDetails(r),h):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 c=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let h=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,n.lng||this.language||o.usedLng,n),c){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,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&n.applyPostProcessor!==!1&&(t=Fl.handle(u,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(u=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(u,r),d=c.key;o=d;let h=c.namespaces;this.options.fallbackNS&&(h=h.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);h.forEach(g=>{this.isValidLookup(n)||(l=g,!Ws[`${_[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Ws[`${_[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(S=>{if(this.isValidLookup(n))return;i=S;const R=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,S,g,r);else{let k;f&&(k=this.pluralResolver.getSuffix(S,r.count,r));const j=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(R.push(d+k),r.ordinal&&k.indexOf(A)===0&&R.push(d+k.replace(A,this.options.pluralSeparator)),b&&R.push(d+j)),y){const O=`${d}${this.options.contextSeparator}${r.context}`;R.push(O),f&&(R.push(O+k),r.ordinal&&k.indexOf(A)===0&&R.push(O+k.replace(A,this.options.pluralSeparator)),b&&R.push(O+j))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(a=C,n=this.getResource(S,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 Bo=e=>e.charAt(0).toUpperCase()+e.slice(1);class Hs{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gt.create("languageUtils")}getScriptPartFromCode(t){if(t=Hn(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=Hn(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]=Bo(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]=Bo(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Bo(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 vp=[{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}],xp={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 Sp=["v1","v2","v3"],wp=["v4"],Ks={zero:0,one:1,two:2,few:3,many:4,other:5},Rp=()=>{const e={};return vp.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:xp[t.fc]}})}),e};class jp{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=gt.create("pluralResolver"),(!this.options.compatibilityJSON||wp.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=Rp()}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(Hn(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)=>Ks[o]-Ks[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!Sp.includes(this.options.compatibilityJSON)}}const qs=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=hp(e,t,r);return!a&&o&&typeof r=="string"&&(a=la(e,r,n),a===void 0&&(a=la(t,r,n))),a},Jo=e=>e.replace(/\$/g,"$$$$");class Cp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gt.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:u,formatSeparator:c,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:f,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:g,maxReplaces:S,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:pp,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?fr(a):i||"{{",this.suffix=l?fr(l):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?fr(f):b||fr("$t("),this.nestingSuffix=y?fr(y):_||fr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=S||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let a,i,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=b=>{if(b.indexOf(this.formatSeparator)<0){const S=qs(r,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...o,...r,interpolationkey:b}):S}const y=b.split(this.formatSeparator),_=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(qs(r,u,_,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...o,...r,interpolationkey:_})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Jo(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Jo(this.escape(b)):Jo(b)}].forEach(b=>{for(l=0;a=b.regex.exec(t);){const y=a[1].trim();if(i=c(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(h){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=Bs(i));const _=b.safeValue(i);if(t=t.replace(a[0],_),h?(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=(u,c)=>{const d=this.nestingOptionsSeparator;if(u.indexOf(d)<0)return u;const h=u.split(new RegExp(`${d}[ ]*{`));let f=`{${h[1]}`;u=h[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),c&&(i={...c,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,_),`${u}${d}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;o=this.nestingRegexp.exec(t);){let u=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(h=>h.trim());o[1]=d.shift(),u=d,c=!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=Bs(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),c&&(a=u.reduce((d,h)=>this.format(d,h,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const Pp=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,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();r[d]||(r[d]=c),c==="false"&&(r[d]=!1),c==="true"&&(r[d]=!0),isNaN(c)||(r[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},hr=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(Hn(n),o),t[i]=l),l(r)}};class Ap{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gt.create("formatter"),this.options=t,this.formats={number:hr((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:hr((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:hr((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:hr((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:hr((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()]=hr(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(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{const{formatName:c,formatOptions:d}=Pp(u);if(this.formats[c]){let h=l;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=f.locale||f.lng||o.locale||o.lng||n;h=this.formats[c](l,b,{...d,...o,...f})}catch(f){this.logger.warn(f)}return h}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}const Op=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Tp extends yo{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=gt.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={},u={};return t.forEach(c=>{let d=!0;r.forEach(h=>{const f=`${c}|${h}`;!n.reload&&this.store.hasResourceBundle(c,h)?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),u[h]===void 0&&(u[h]=!0)))}),d||(l[c]=!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(u)}}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(u=>{fp(u.loaded,[a],i),Op(u,t),r&&u.errors.push(r),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{l[c]||(l[c]={});const d=u.loaded[c];d.length&&d.forEach(h=>{l[c][h]===void 0&&(l[c][h]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,r,n){let 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=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(c&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(c,d)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const c=u(t,r);c&&typeof c.then=="function"?c.then(d=>l(null,d)).catch(l):l(null,c)}catch(c){l(c)}return}return u(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},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 u={...i,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(t,r,n,o,u):d=c(t,r,n,o),d&&typeof d.then=="function"?d.then(h=>l(null,h)).catch(l):l(null,d)}catch(d){l(d)}else c(t,r,n,o,l,u)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Xs=()=>({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}}),Ys=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),bn=()=>{},Ep=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Qr extends yo{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ys(t),this.services={},this.logger=gt,this.modules={external:[]},Ep(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=Xs();this.options={...o,...this.options,...Ys(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?gt.init(a(this.modules.logger),this.options):gt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Ap);const h=new Hs(this.options);this.store=new zs(this.options.resources,this.options);const f=this.services;f.logger=gt,f.resourceStore=this.store,f.languageUtils=h,f.pluralResolver=new jp(h,{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 Cp(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Tp(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 Kn(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=bn),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 u=Br(),c=()=>{const d=(h,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),u.resolve(f),n(h,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?c():setTimeout(c,0),u}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bn;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(c=>{c!=="cimode"&&a.indexOf(c)<0&&a.push(c)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(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=Br();return t||(t=this.languages),r||(r=this.options.ns),n||(n=bn),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"&&Fl.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=Br();this.emit("languageChanging",t);const a=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,c)=>{c?(a(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(u,function(){return n.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const c=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||a(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,d=>{i(d,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let u;if(typeof l!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),h=2;h<c;h++)d[h-2]=arguments[h];u=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||a.keyPrefix);const f=o.options.keySeparator||".";let b;return u.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${u.keyPrefix}${f}${y}`):b=u.keyPrefix?`${u.keyPrefix}${f}${i}`:i,o.t(b,u)};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,u)=>{const c=this.services.backendConnector.state[`${l}|${u}`];return c===-1||c===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!o||i(a,t)))}loadNamespaces(t,r){const n=Br();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=Br();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 Hs(Xs());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Qr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new Qr(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 zs(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Kn(a.services,o),a.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];a.emit(l,...c)}),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 Te=Qr.createInstance();Te.createInstance=Qr.createInstance;Te.createInstance;Te.dir;Te.init;Te.loadResources;Te.reloadResources;Te.use;Te.changeLanguage;Te.getFixedT;Te.t;Te.exists;Te.setDefaultNamespace;Te.hasLoadedNamespace;Te.loadNamespaces;Te.loadLanguages;const Dl=Te.createInstance();Dl.use(Nu).use(Ut.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:lp},de:{translations:ip}},ns:["translations"],defaultNS:"translations"});function Rr(e){return r=>s.jsx(Mp,{children:s.jsx(e,{...r})})}const Mp=({children:e})=>{const t=L.useTheme(),r=ap({mode:t.palette.mode}),n=sp(r);return s.jsx(qt.ThemeProvider,{theme:n,children:s.jsx(Ut.I18nextProvider,{i18n:Dl,children:e})})},Ip=Rr(e=>{const t=es.useMonaco(),r=L.useTheme(),n=Z.useRef(null),[o,a]=Z.useState("dark-plus"),i=r.palette.mode==="dark"?"dark-plus":"light-plus";async function l(u){u.languages.register({id:"wandelscript"}),u.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),n.current||(n.current=await ku.createHighlighter({langs:[Gu],themes:["dark-plus","light-plus"]})),$u.shikiToMonaco(n.current,u),u.editor.defineTheme(i,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:r.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(u),a(i)}return Z.useEffect(()=>{t&&l(t)},[t,i]),t?s.jsx(es,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:o,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null}),Lp="(^joint_[0-9]+$)|(_J[0-9]+$)";function Ul(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Ul(t))]}function kp(e,t){return new RegExp(t??Lp).test(e)}function Bl(e,t){return Ul(e).filter(r=>kp(r.name,t))}function _o(e){Z.useEffect(e,[])}function Jl(e){_o(()=>br.autorun(e))}function Vl(e,t,r){_o(()=>br.reaction(e,t,r))}function jr(e){return _o(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function be({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){x.Globals.assign({frameLoop:"always"});const o=Z.useRef([]),a=Z.useRef([]),{scene:i,invalidate:l}=Fu.useThree();Z.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):Bl(f),c(),l())},[]);function u(f){o.current=f,h.start(Object.assign({},o.current))}function c(){const f=a.current.map((b,y)=>d[y].get());r(a.current,f)}Jl(()=>{const f=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>u(f))});const[d,h]=x.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),l()},onResolve:()=>{c()}}));return null}function $p({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,u){l.forEach((c,d)=>c.rotation.y=u[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(x.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(x.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 Np({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,u){l.forEach((c,d)=>c.rotation.y=u[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(x.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Fp({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=ie.useGLTF(e).nodes;function a(i,l){i.forEach((u,c)=>u.rotation.y=l[c])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function Dp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,u){l.forEach((c,d)=>c.rotation.y=u[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Up({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,u){l.forEach((c,d)=>c.rotation.y=u[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Bp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,u){l.forEach((c,d)=>c.rotation.y=u[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.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(x.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 Zs({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Jp({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 u(c,d){c.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:u}),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(x.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(x.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Vp({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 u(c,d){c.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:u}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"AR1730_J00",children:[s.jsxs(x.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Gp({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 u(c,d){c.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:u}),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(x.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(x.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 zp({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 u(c,d){c.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:u}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"AR3120_J00",children:[s.jsxs(x.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Wp({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Hp({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(x.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(x.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(x.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(x.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 Kp({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 qp({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Xp({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"joint_01",children:[s.jsxs(x.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.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 Yp({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"joint_01",children:[s.jsxs(x.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.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 Zp({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Qs({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"M20iD25_J00",children:[s.jsxs(x.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Qp({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(u,c){u.forEach((d,h)=>d.rotation.y=c[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 ei="line",ti="mesh";function Vo({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new wt.Matrix4;function o(u,c){const d=new wt.Vector3,h=new wt.Quaternion,f=new wt.Vector3;n.decompose(d,h,f);const b=d.clone(),y=new wt.Matrix4().makeRotationY(u.theta+c*(u.reverse_rotation_direction?-1:1)).multiply(new wt.Matrix4().makeTranslation(0,u.d/1e3,0)).multiply(new wt.Matrix4().makeTranslation(u.a/1e3,0,0)).multiply(new wt.Matrix4().makeRotationX(u.alpha));return n.multiply(y),n.decompose(d,h,f),{a:b,b:d}}function a(u,c,d,h){if(!t)return;const f=t[u];if(!f)return;const{a:b,b:y}=o(f,h);c.geometry.setPositions([b.toArray(),y.toArray()].flat()),d.position.set(y.x,y.y,y.z)}function i(u,c){n.identity(),u.forEach((d,h)=>{a(h,d.getObjectByName(ei),d.getObjectByName(ti),c[h])})}function l(u){return Bl(u,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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((u,c)=>{const{a:d,b:h}=o(u,e.state.joint_position.joints[c]??0);return s.jsxs("group",{name:`group_${c}`,children:[s.jsx(ie.Line,{name:ei,points:[d,h],color:"white",lineWidth:5}),s.jsxs("mesh",{name:ti,position:h,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+c)]},"group_"+c)})]})]})}const eg=console.warn;function tg(){return Z.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&eg(e)}},[]),s.jsx(s.Fragment,{})}function Ja(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const Gl=Rr(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Ja,isGhost:o=!1,...a})=>{let i;const l=Z.useRef(new Rt.Group),u=Z.useCallback(h=>{h!==null&&(l.current=h,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&c())},[o]),c=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(h=>{if(h instanceof Rt.Mesh&&!h.userData.isGhost){h.material instanceof Rt.Material&&(h.material.colorWrite=!1);const f=h.clone(),b=h.clone();f.material=new Rt.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,b.material=new Rt.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),b.userData.isGhost=!0,h.parent&&(h.parent.add(f),h.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const h=[];l.current.traverse(f=>{f instanceof Rt.Mesh&&f.material instanceof Rt.Material&&(f.material.colorWrite=!0),f instanceof Rt.Mesh&&f.userData!==void 0&&f.userData&&f.userData.isGhost!==void 0&&f.userData.isGhost&&h.push(f)}),h.forEach(f=>{f.parent&&f.parent.remove(f)}),l.current.userData.ghostsCreated=!1}};switch(Z.useEffect(()=>{o?c():d()},[o]),t){case"UniversalRobots_UR3":i=$p;break;case"UniversalRobots_UR3e":i=Np;break;case"UniversalRobots_UR5":i=Fp;break;case"UniversalRobots_UR5e":i=Dp;break;case"UniversalRobots_UR10":i=Up;break;case"UniversalRobots_UR10e":i=Bp;break;case"Yaskawa_AR900":i=Zs;break;case"Yaskawa_GP7":i=Zs;break;case"Yaskawa_AR1440":i=Jp;break;case"Yaskawa_AR1730":i=Vp;break;case"Yaskawa_AR2010":i=Gp;break;case"Yaskawa_AR3120":i=zp;break;case"FANUC_CRX10iA":i=Wp;break;case"FANUC_CRX20iAL":i=Hp;break;case"FANUC_CRX25iA":i=Kp;break;case"FANUC_CRX25iAL":i=qp;break;case"FANUC_ARC_Mate_120iD":i=Qs;break;case"FANUC_ARC_Mate_120iD35":i=Qs;break;case"FANUC_ARC_Mate_100iD":i=Zp;break;case"KUKA_KR210_R2700":i=Xp;break;case"KUKA_KR270_R2700":i=Yp;break;case"ABB_1200_07_7":i=Qp;break;default:console.warn(`Unknown robot type: ${t}`),i=Vo}return s.jsxs(Du.ErrorBoundary,{fallback:s.jsx(Vo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:[s.jsx(Z.Suspense,{fallback:s.jsx(Vo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:u,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})}),s.jsx(tg,{})]})});function rg({connectedMotionGroup:e,getModel:t=Ja,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(Gl,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function ng(){return s.jsx(ie.Environment,{children:s.jsx(og,{})})}function og({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 ag({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(c=>new Rt.Vector3(c.x/1e3,c.y/1e3,c.z/1e3));let u;try{u=new Uu.ConvexGeometry(l)}catch(c){return console.log("Error creating ConvexGeometry:",c),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}`)})})})})}process.env.NODE_ENV!=="production"&&(m.node,m.object.isRequired);function Va(e){return yf(e)}const _r=jf({createStyledComponent:Ot("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Va({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:m.node,component:m.elementType,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),useFlexGap:m.bool});const ua=Rr(Fe.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{jr(()=>{const d=r(),h=l.current;h&&(h.textContent=d)});const l=Z.useRef(null);e=e||"#F14D42";function u(d){d.button===0&&n("-")}function c(d){d.button===0&&n("+")}return s.jsxs(_r,{height:"72px",direction:"row",...i,children:[s.jsx(L.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(L.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(L.Button,{onPointerDown:c,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 Ga={},Go={};function sg(e){return sn("MuiSvgIcon",e)}sl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ig=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],lg=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ae(t)}`,`fontSize${Ae(r)}`]};return Ta(o,sg,n)},ug=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ae(r.color)}`],t[`fontSize${Ae(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,u,c,d,h,f,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),qn=N.forwardRef(function(t,r){const n=Va({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,b=De(n,ig),y=N.isValidElement(o)&&o.type==="svg",_=P({},n,{color:i,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),g={};d||(g.viewBox=f);const S=lg(_);return s.jsxs(ug,P({as:l,className:_t(S.root,a),focusable:"false",color:c,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,h?s.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(qn.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});qn.muiName="SvgIcon";function cg(e,t){function r(n,o){return s.jsx(qn,P({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=qn.muiName,N.memo(N.forwardRef(r))}const dg={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
-
`)),ol.configure(e)}},fg=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ae,createChainedFunction:zd,createSvgIcon:cg,debounce:Wd,deprecatedPropType:Hd,isMuiElement:Kd,ownerDocument:yr,ownerWindow:qd,requirePropFactory:Xd,setRef:cl,unstable_ClassNameGenerator:dg,unstable_useEnhancedEffect:Aa,unstable_useId:Zd,unsupportedProp:Qd,useControlled:dl,useEventCallback:Tn,useForkRef:Dn,useIsFocusVisible:fl},Symbol.toStringTag,{value:"Module"})),hg=At(fg);var ri;function zl(){return ri||(ri=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hg}(Go)),Go}var mg=ho;Object.defineProperty(Ga,"__esModule",{value:!0});var Wl=Ga.default=void 0,pg=mg(zl()),gg=s;Wl=Ga.default=(0,pg.default)((0,gg.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var za={},yg=ho;Object.defineProperty(za,"__esModule",{value:!0});var Hl=za.default=void 0,_g=yg(zl()),bg=s;Hl=za.default=(0,_g.default)((0,bg.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var zo=function(){return ut.Date.now()},vg=/\s/;function xg(e){for(var t=e.length;t--&&vg.test(e.charAt(t)););return t}var Sg=/^\s+/;function wg(e){return e&&e.slice(0,xg(e)+1).replace(Sg,"")}var Rg="[object Symbol]";function bo(e){return typeof e=="symbol"||Pt(e)&&Jt(e)==Rg}var ni=NaN,jg=/^[-+]0x[0-9a-f]+$/i,Cg=/^0b[01]+$/i,Pg=/^0o[0-7]+$/i,Ag=parseInt;function oi(e){if(typeof e=="number")return e;if(bo(e))return ni;if(Be(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Be(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wg(e);var r=Cg.test(e);return r||Pg.test(e)?Ag(e.slice(2),r?2:8):jg.test(e)?ni:+e}var Og="Expected a function",Tg=Math.max,Eg=Math.min;function Mg(e,t,r){var n,o,a,i,l,u,c=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(Og);t=oi(t)||0,Be(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Tg(oi(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(A){var O=n,z=o;return n=o=void 0,c=A,i=e.apply(z,O),i}function y(A){return c=A,l=setTimeout(S,t),d?b(A):i}function _(A){var O=A-u,z=A-c,le=t-O;return h?Eg(le,a-z):le}function g(A){var O=A-u,z=A-c;return u===void 0||O>=t||O<0||h&&z>=a}function S(){var A=zo();if(g(A))return R(A);l=setTimeout(S,_(A))}function R(A){return l=void 0,f&&n?b(A):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),c=0,n=u=o=l=void 0}function k(){return l===void 0?i:R(zo())}function j(){var A=zo(),O=g(A);if(n=arguments,o=this,u=A,O){if(l===void 0)return y(u);if(h)return clearTimeout(l),l=setTimeout(S,t),b(u)}return l===void 0&&(l=setTimeout(S,t)),i}return j.cancel=C,j.flush=k,j}var Ig="Expected a function";function Lg(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Ig);return Be(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Mg(e,t,{leading:n,maxWait:t,trailing:o})}const Kl=Rr(Fe.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ut.useTranslation(),[u,c]=Z.useState(),d=Fe.useLocalObservable(()=>({activeJoggingDir:null,startJogging(S){this.activeJoggingDir=S,e(S)},stopJogging(){this.activeJoggingDir=null,t()}})),h=Lg(()=>{c(o())},50);jr(h);function f(S){S.button===0&&d.startJogging("-")}function b(S){S.button===0&&d.startJogging("+")}function y(S){d.stopJogging()}function _(S){S.target===S.currentTarget&&d.stopJogging()}function g(S,R=1){if(S===void 0||isNaN(S))return"";const C=l("General.degree.variable",{amount:S.toFixed(R)});return S>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Wl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(u)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:u||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Hl,{})})]})})),kg=({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"})),$g=Z.forwardRef(kg),Ng=({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"})),Fg=Z.forwardRef(Ng),Dg=({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"})),Ug=Z.forwardRef(Dg),Bg=({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"})),Jg=Z.forwardRef(Bg),Vg=({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"})),Gg=Z.forwardRef(Vg),zg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",fillOpacity:.8,d:"m11.87 7.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95L4.21 8.8l-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72zm-.91-2.99.91-.91 2.6 2.6-.91.91zM8.71 14.37h3.74l-1.34-1.34-.04-.04h-2.5L5.32 9.74l4.59-4.59.92.92L8 8.9l5.33 5.33v1.48H8.7v-1.35z"})),Wg=Z.forwardRef(zg),Hg=Fe.observer(({store:e})=>{const{t}=Ut.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(Gg,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(Wg,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function Kg(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const qg=2;function ql(e,t){return e-t}function ai(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 vn(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Xn(e,t,r){return(e-t)*100/(r-t)}function Xg(e,t,r){return(r-t)*e+t}function Yg(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 Zg(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Yg(t)))}function si({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(ql)}function xn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function Sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Kg(e,t):!1}const Qg={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}%`})}},ey=e=>e;let wn;function ii(){return wn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?wn=CSS.supports("touch-action","none"):wn=!0),wn}function ty(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:u=0,name:c,onChange:d,onChangeCommitted:h,orientation:f="horizontal",rootRef:b,scale:y=ey,step:_=1,shiftStep:g=10,tabIndex:S,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[A,O]=N.useState(-1),[z,le]=N.useState(!1),ce=N.useRef(0),[D,q]=dl({controlled:R,default:r??u,name:"Slider"}),G=d&&((T,I,F)=>{const W=T.nativeEvent||T,Y=new W.constructor(W.type,W);Object.defineProperty(Y,"target",{writable:!0,value:{value:I,name:c}}),d(Y,I,F)}),X=Array.isArray(D);let K=X?D.slice().sort(ql):[D];K=K.map(T=>T==null?u:mr(T,u,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-u)/_)+1)].map((T,I)=>({value:u+_*I})):i||[],ue=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ce,onFocus:Me,ref:at}=fl(),[vt,Ke]=N.useState(-1),Re=N.useRef(),Mt=Dn(at,Re),dt=Dn(b,Mt),qe=T=>I=>{var F;const W=Number(I.currentTarget.getAttribute("data-index"));Me(I),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,I)},Je=T=>I=>{var F;Ce(I),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,I)},ft=(T,I)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Y=ue.indexOf(W);let H=I;if(we&&_==null){const Ge=ue[ue.length-1];H>Ge?H=Ge:H<ue[0]?H=ue[0]:H=H<W?ue[Y-1]:ue[Y+1]}if(H=mr(H,u,l),X){o&&(H=mr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ge=H;H=si({values:K,newValue:H,index:F});let Xe=F;o||(Xe=H.indexOf(Ge)),xn({sliderRef:Re,activeIndex:Xe})}q(H),Ke(F),G&&!Sn(H,D)&&G(T,H,F),h&&h(T,H)},ht=T=>I=>{var F;if(_!==null){const W=Number(I.currentTarget.getAttribute("data-index")),Y=K[W];let H=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?H=Math.max(Y-g,u):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(H=Math.min(Y+g,l)),H!==null&&(ft(I,H),I.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,I)};Aa(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&vt!==-1&&Ke(-1);const Vt=T=>I=>{var F;(F=T.onChange)==null||F.call(T,I),ft(I,I.target.valueAsNumber)},xt=N.useRef();let Ve=f;a&&f==="horizontal"&&(Ve+="-reverse");const E=({finger:T,move:I=!1})=>{const{current:F}=Re,{width:W,height:Y,bottom:H,left:Ge}=F.getBoundingClientRect();let Xe;Ve.indexOf("vertical")===0?Xe=(H-T.y)/Y:Xe=(T.x-Ge)/W,Ve.indexOf("-reverse")!==-1&&(Xe=1-Xe);let te;if(te=Xg(Xe,u,l),_)te=Zg(te,_,u);else{const kt=ai(ue,te);te=ue[kt]}te=mr(te,u,l);let ke=0;if(X){I?ke=xt.current:ke=ai(K,te),o&&(te=mr(te,K[ke-1]||-1/0,K[ke+1]||1/0));const kt=te;te=si({values:K,newValue:te,index:ke}),o&&I||(ke=te.indexOf(kt),xt.current=ke)}return{newValue:te,activeIndex:ke}},ee=Tn(T=>{const I=vn(T,C);if(!I)return;if(ce.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=E({finger:I,move:!0});xn({sliderRef:Re,activeIndex:W,setActive:j}),q(F),!z&&ce.current>qg&&le(!0),G&&!Sn(F,D)&&G(T,F,W)}),he=Tn(T=>{const I=vn(T,C);if(le(!1),!I)return;const{newValue:F}=E({finger:I,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,Le()}),Ie=Tn(T=>{if(n)return;ii()||T.preventDefault();const I=T.changedTouches[0];I!=null&&(C.current=I.identifier);const F=vn(T,C);if(F!==!1){const{newValue:Y,activeIndex:H}=E({finger:F});xn({sliderRef:Re,activeIndex:H,setActive:j}),q(Y),G&&!Sn(Y,D)&&G(T,Y,H)}ce.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),Le=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Ie,{passive:ii()}),()=>{T.removeEventListener("touchstart",Ie),Le()}},[Le,Ie]),N.useEffect(()=>{n&&Le()},[n,Le]);const It=T=>I=>{var F;if((F=T.onMouseDown)==null||F.call(T,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const W=vn(I,C);if(W!==!1){const{newValue:H,activeIndex:Ge}=E({finger:W});xn({sliderRef:Re,activeIndex:Ge,setActive:j}),q(H),G&&!Sn(H,D)&&G(I,H,Ge)}ce.current=0;const Y=yr(Re.current);Y.addEventListener("mousemove",ee,{passive:!0}),Y.addEventListener("mouseup",he)},je=Xn(X?K[0]:u,u,l),Lt=Xn(K[K.length-1],u,l)-je,Gt=(T={})=>{const I=En(T),F={onMouseDown:It(I||{})},W=P({},I,F);return P({},T,{ref:dt},W)},Ar=T=>I=>{var F;(F=T.onMouseOver)==null||F.call(T,I);const W=Number(I.currentTarget.getAttribute("data-index"));O(W)},Or=T=>I=>{var F;(F=T.onMouseLeave)==null||F.call(T,I),O(-1)};return{active:k,axis:Ve,axisProps:Qg,dragging:z,focusedThumbIndex:vt,getHiddenInputProps:(T={})=>{var I;const F=En(T),W={onChange:Vt(F||{}),onFocus:qe(F||{}),onBlur:Je(F||{}),onKeyDown:ht(F||{})},Y=P({},F,W);return P({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(u),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(I=e.step)!=null?I:void 0,disabled:n},T,Y,{style:P({},lf,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Gt,getThumbProps:(T={})=>{const I=En(T),F={onMouseOver:Ar(I||{}),onMouseLeave:Or(I||{})};return P({},T,I,F)},marks:we,open:A,range:X,rootRef:dt,trackLeap:Lt,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const ry=e=>!e||!Gr(e);function ny(e){return sn("MuiSlider",e)}const et=sl("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"]),oy=e=>{const{open:t}=e;return{offset:_t(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Xl(e){const{children:t,className:r,value:n}=e,o=oy(e);return t?N.cloneElement(t,{className:_t(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:_t(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"&&(Xl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const ay=["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 li(e){return e}const sy=Ot("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ae(r.color)}`],r.size!=="medium"&&t[`size${Ae(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}}]}}),iy=Ot("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),ly=Ot("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:P({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:P({backgroundColor:oa(e.palette[r].main,.62),borderColor:oa(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:na(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:na(e.palette[r].main,.5)})))}))]}}),uy=Ot("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Ae(r.color)}`],r.size!=="medium"&&t[`thumbSize${Ae(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}`]:P({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${_s(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:P({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${_s(e.palette[r].main,.16)}`})}}))]}}),cy=Ot(Xl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>P({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"}}]})),dy=Ot("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>La(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}}]})),fy=Ot("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>La(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>P({},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}}]})),hy=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:u}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Ae(l)}`,u&&`size${Ae(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Ae(u)}`,l&&`thumbColor${Ae(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ta(c,ny,i)},my=({children:e})=>e,Yl=N.forwardRef(function(t,r){var n,o,a,i,l,u,c,d,h,f,b,y,_,g,S,R,C,k,j,A,O,z,le,ce;const D=Va({props:t,name:"MuiSlider"}),q=mf(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":K,component:we="span",components:ue={},componentsProps:Q={},color:Ce="primary",classes:Me,className:at,disableSwap:vt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Mt,marks:dt=!1,max:qe=100,min:Je=0,orientation:ft="horizontal",shiftStep:ht=10,size:Vt="medium",step:xt=1,scale:Ve=li,slotProps:E,slots:ee,track:he="normal",valueLabelDisplay:Ie="off",valueLabelFormat:Le=li}=D,It=De(D,ay),je=P({},D,{isRtl:q,max:qe,min:Je,classes:Me,disabled:Ke,disableSwap:vt,orientation:ft,marks:dt,color:Ce,size:Vt,step:xt,shiftStep:ht,scale:Ve,track:he,valueLabelDisplay:Ie,valueLabelFormat:Le}),{axisProps:Lt,getRootProps:Gt,getHiddenInputProps:Ar,getThumbProps:Or,open:Tr,active:rr,axis:st,focusedThumbIndex:T,range:I,dragging:F,marks:W,values:Y,trackOffset:H,trackLeap:Ge,getThumbStyle:Xe}=ty(P({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=hy(je),ke=(n=(o=ee==null?void 0:ee.root)!=null?o:ue.Root)!=null?n:sy,kt=(a=(i=ee==null?void 0:ee.rail)!=null?i:ue.Rail)!=null?a:iy,nr=(l=(u=ee==null?void 0:ee.track)!=null?u:ue.Track)!=null?l:ly,Er=(c=(d=ee==null?void 0:ee.thumb)!=null?d:ue.Thumb)!=null?c:uy,St=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ue.ValueLabel)!=null?h:cy,zt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ue.Mark)!=null?b:dy,Wt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ue.MarkLabel)!=null?_:fy,Mr=(S=(R=ee==null?void 0:ee.input)!=null?R:ue.Input)!=null?S:"input",Ir=(C=E==null?void 0:E.root)!=null?C:Q.root,hn=(k=E==null?void 0:E.rail)!=null?k:Q.rail,Lr=(j=E==null?void 0:E.track)!=null?j:Q.track,or=(A=E==null?void 0:E.thumb)!=null?A:Q.thumb,ar=(O=E==null?void 0:E.valueLabel)!=null?O:Q.valueLabel,Po=(z=E==null?void 0:E.mark)!=null?z:Q.mark,Ao=(le=E==null?void 0:E.markLabel)!=null?le:Q.markLabel,mn=(ce=E==null?void 0:E.input)!=null?ce:Q.input,pn=$t({elementType:ke,getSlotProps:Gt,externalSlotProps:Ir,externalForwardedProps:It,additionalProps:P({},ry(ke)&&{as:we}),ownerState:P({},je,Ir==null?void 0:Ir.ownerState),className:[te.root,at]}),Oo=$t({elementType:kt,externalSlotProps:hn,ownerState:je,className:te.rail}),To=$t({elementType:nr,externalSlotProps:Lr,additionalProps:{style:P({},Lt[st].offset(H),Lt[st].leap(Ge))},ownerState:P({},je,Lr==null?void 0:Lr.ownerState),className:te.track}),kr=$t({elementType:Er,getSlotProps:Or,externalSlotProps:or,ownerState:P({},je,or==null?void 0:or.ownerState),className:te.thumb}),Eo=$t({elementType:St,externalSlotProps:ar,ownerState:P({},je,ar==null?void 0:ar.ownerState),className:te.valueLabel}),p=$t({elementType:zt,externalSlotProps:Po,ownerState:je,className:te.mark}),w=$t({elementType:Wt,externalSlotProps:Ao,ownerState:je,className:te.markLabel}),M=$t({elementType:Mr,getSlotProps:Ar,externalSlotProps:mn,ownerState:je});return s.jsxs(ke,P({},pn,{children:[s.jsx(kt,P({},Oo)),s.jsx(nr,P({},To)),W.filter($=>$.value>=Je&&$.value<=qe).map(($,U)=>{const re=Xn($.value,Je,qe),V=Lt[st].offset(re);let B;return he===!1?B=Y.indexOf($.value)!==-1:B=he==="normal"&&(I?$.value>=Y[0]&&$.value<=Y[Y.length-1]:$.value<=Y[0])||he==="inverted"&&(I?$.value<=Y[0]||$.value>=Y[Y.length-1]:$.value>=Y[0]),s.jsxs(N.Fragment,{children:[s.jsx(zt,P({"data-index":U},p,!Gr(zt)&&{markActive:B},{style:P({},V,p.style),className:_t(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Wt,P({"aria-hidden":!0,"data-index":U},w,!Gr(Wt)&&{markLabelActive:B},{style:P({},V,w.style),className:_t(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Y.map(($,U)=>{const re=Xn($,Je,qe),V=Lt[st].offset(re),B=Ie==="off"?my:St;return s.jsx(B,P({},!Gr(B)&&{valueLabelFormat:Le,valueLabelDisplay:Ie,value:typeof Le=="function"?Le(Ve($),U):Le,index:U,open:Tr===U||rr===U||Ie==="on",disabled:Ke},Eo,{children:s.jsx(Er,P({"data-index":U},kr,{className:_t(te.thumb,kr.className,rr===U&&te.active,T===U&&te.focusVisible),style:P({},V,Xe(U),kr.style),children:s.jsx(Mr,P({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Ve($),"aria-labelledby":K,"aria-valuetext":Mt?Mt(Ve($),U):X,value:Y[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Yl.propTypes={"aria-label":ms(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":m.string,"aria-valuetext":ms(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var py="[object Number]";function gy(e){return typeof e=="number"||Pt(e)&&Jt(e)==py}const Zl=Fe.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!gy(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Yl,{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"}}})]})}),Ql=Fe.observer(({store:e})=>{const{t}=Ut.useTranslation(),r=Fe.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(Zl,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),eu=Z.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),yy=Fe.observer(({store:e})=>{const t=Z.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Ct.poseToWandelscriptString(n):""}return jr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(eu,{label:"Pose",value:r(),ref:t})})});var _y="__lodash_hash_undefined__";function by(e){return this.__data__.set(e,_y),this}function vy(e){return this.__data__.has(e)}function Yn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Et;++t<r;)this.add(e[t])}Yn.prototype.add=Yn.prototype.push=by;Yn.prototype.has=vy;function xy(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 Sy(e,t){return e.has(t)}var wy=1,Ry=2;function tu(e,t,r,n,o,a){var i=r&wy,l=e.length,u=t.length;if(l!=u&&!(i&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var h=-1,f=!0,b=r&Ry?new Yn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!xy(t,function(S,R){if(!Sy(b,R)&&(y===S||o(y,S,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function jy(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Cy(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Py=1,Ay=2,Oy="[object Boolean]",Ty="[object Date]",Ey="[object Error]",My="[object Map]",Iy="[object Number]",Ly="[object RegExp]",ky="[object Set]",$y="[object String]",Ny="[object Symbol]",Fy="[object ArrayBuffer]",Dy="[object DataView]",ui=Dt?Dt.prototype:void 0,Wo=ui?ui.valueOf:void 0;function Uy(e,t,r,n,o,a,i){switch(r){case Dy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Fy:return!(e.byteLength!=t.byteLength||!a(new Jn(e),new Jn(t)));case Oy:case Ty:case Iy:return un(+e,+t);case Ey:return e.name==t.name&&e.message==t.message;case Ly:case $y:return e==t+"";case My:var l=jy;case ky:var u=n&Py;if(l||(l=Cy),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;n|=Ay,i.set(e,t);var d=tu(l(e),l(t),n,o,a,i);return i.delete(e),d;case Ny:if(Wo)return Wo.call(e)==Wo.call(t)}return!1}function By(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Jy(e,t,r){var n=t(e);return nt(e)?n:By(n,r(e))}function Vy(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 Gy(){return[]}var zy=Object.prototype,Wy=zy.propertyIsEnumerable,ci=Object.getOwnPropertySymbols,Hy=ci?function(e){return e==null?[]:(e=Object(e),Vy(ci(e),function(t){return Wy.call(e,t)}))}:Gy,Ky=Al(Object.keys,Object),qy=Object.prototype,Xy=qy.hasOwnProperty;function Yy(e){if(!Na(e))return Ky(e);var t=[];for(var r in Object(e))Xy.call(e,r)&&r!="constructor"&&t.push(r);return t}function Wa(e){return cn(e)?Ll(e):Yy(e)}function di(e){return Jy(e,Wa,Hy)}var Zy=1,Qy=Object.prototype,e1=Qy.hasOwnProperty;function t1(e,t,r,n,o,a){var i=r&Zy,l=di(e),u=l.length,c=di(t),d=c.length;if(u!=d&&!i)return!1;for(var h=u;h--;){var f=l[h];if(!(i?f in t:e1.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<u;){f=l[h];var S=e[f],R=t[f];if(n)var C=i?n(R,S,f,t,e,a):n(S,R,f,e,t,a);if(!(C===void 0?S===R||o(S,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var ca=tr(ut,"DataView"),da=tr(ut,"Promise"),fa=tr(ut,"Set"),ha=tr(ut,"WeakMap"),fi="[object Map]",r1="[object Object]",hi="[object Promise]",mi="[object Set]",pi="[object WeakMap]",gi="[object DataView]",n1=er(ca),o1=er(Yr),a1=er(da),s1=er(fa),i1=er(ha),Ft=Jt;(ca&&Ft(new ca(new ArrayBuffer(1)))!=gi||Yr&&Ft(new Yr)!=fi||da&&Ft(da.resolve())!=hi||fa&&Ft(new fa)!=mi||ha&&Ft(new ha)!=pi)&&(Ft=function(e){var t=Jt(e),r=t==r1?e.constructor:void 0,n=r?er(r):"";if(n)switch(n){case n1:return gi;case o1:return fi;case a1:return hi;case s1:return mi;case i1:return pi}return t});var l1=1,yi="[object Arguments]",_i="[object Array]",Rn="[object Object]",u1=Object.prototype,bi=u1.hasOwnProperty;function c1(e,t,r,n,o,a){var i=nt(e),l=nt(t),u=i?_i:Ft(e),c=l?_i:Ft(t);u=u==yi?Rn:u,c=c==yi?Rn:c;var d=u==Rn,h=c==Rn,f=u==c;if(f&&Gn(e)){if(!Gn(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new bt),i||Da(e)?tu(e,t,r,n,o,a):Uy(e,t,u,r,n,o,a);if(!(r&l1)){var b=d&&bi.call(e,"__wrapped__"),y=h&&bi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new bt),o(_,g,r,n,a)}}return f?(a||(a=new bt),t1(e,t,r,n,o,a)):!1}function vo(e,t,r,n,o){return e===t?!0:e==null||t==null||!Pt(e)&&!Pt(t)?e!==e&&t!==t:c1(e,t,r,n,vo,o)}function d1(e,t){return vo(e,t)}const f1=({store:e})=>{const{t}=Ut.useTranslation(),[r,n]=Z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);jr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;d1(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},h1=Fe.observer(({store:e})=>{const{t}=Ut.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}Vl(()=>[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}),Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.selectedCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:Ct.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(h,e.selectedDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const u=[{id:"x",color:"#F14D42",icon:s.jsx(Fg,{})},{id:"y",color:"#42A705",icon:s.jsx(Ug,{})},{id:"z",color:"#0075FF",icon:s.jsx(Jg,{})}];function c(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:Ct.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(yy,{store:e}),s.jsx(Hg,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&u.map(h=>s.jsx(ua,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return c(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&u.map(h=>s.jsx(ua,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx($g,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Ql,{store:e}),s.jsx(f1,{store:e})]})}),m1=Fe.observer(({store:e})=>{const t=Z.useRef(null);Ut.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return jr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(eu,{label:"Pose",value:r(),ref:t})})}),p1=Fe.observer(({store:e})=>{Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(m1,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var c;const i=(c=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:c[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?Ct.radiansToDegrees(i.lower_limit):void 0,u=(i==null?void 0:i.upper_limit)!==void 0?Ct.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(Kl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:u,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?Ct.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Ql,{store:e})]})});function g1(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 y1(e,t){return e&&Cl(e,t,Wa)}function _1(e,t){return function(r,n){if(r==null)return r;if(!cn(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 b1=_1(y1);function v1(e,t,r,n){return b1(e,function(o,a,i){t(n,o,r(o),i)}),n}var x1=1,S1=2;function w1(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],u=e[l],c=i[1];if(i[2]){if(u===void 0&&!(l in e))return!1}else{var d=new bt,h;if(!(h===void 0?vo(c,u,x1|S1,n,d):h))return!1}}return!0}function ru(e){return e===e&&!Be(e)}function R1(e){for(var t=Wa(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ru(o)]}return t}function nu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function j1(e){var t=R1(e);return t.length==1&&t[0][2]?nu(t[0][0],t[0][1]):function(r){return r===e||w1(r,e,t)}}var C1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P1=/^\w*$/;function Ha(e,t){if(nt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||bo(e)?!0:P1.test(e)||!C1.test(e)||t!=null&&e in Object(t)}var A1="Expected a function";function Ka(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(A1);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(Ka.Cache||Et),r}Ka.Cache=Et;var O1=500;function T1(e){var t=Ka(e,function(n){return r.size===O1&&r.clear(),n}),r=t.cache;return t}var E1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M1=/\\(\\)?/g,I1=T1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(E1,function(r,n,o,a){t.push(o?a.replace(M1,"$1"):n||r)}),t});function L1(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 k1=1/0,vi=Dt?Dt.prototype:void 0,xi=vi?vi.toString:void 0;function ou(e){if(typeof e=="string")return e;if(nt(e))return L1(e,ou)+"";if(bo(e))return xi?xi.call(e):"";var t=e+"";return t=="0"&&1/e==-k1?"-0":t}function au(e){return e==null?"":ou(e)}function su(e,t){return nt(e)?e:Ha(e,t)?[e]:I1(au(e))}var $1=1/0;function xo(e){if(typeof e=="string"||bo(e))return e;var t=e+"";return t=="0"&&1/e==-$1?"-0":t}function iu(e,t){t=su(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xo(t[r++])];return r&&r==n?e:void 0}function N1(e,t,r){var n=e==null?void 0:iu(e,t);return n===void 0?r:n}function F1(e,t){return e!=null&&t in Object(e)}function D1(e,t,r){t=su(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=xo(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&&Fa(o)&&Ua(i,o)&&(nt(e)||Vn(e)))}function U1(e,t){return e!=null&&D1(e,t,F1)}var B1=1,J1=2;function V1(e,t){return Ha(e)&&ru(t)?nu(xo(e),t):function(r){var n=N1(r,e);return n===void 0&&n===t?U1(r,e):vo(t,n,B1|J1)}}function G1(e){return function(t){return t==null?void 0:t[e]}}function z1(e){return function(t){return iu(t,e)}}function W1(e){return Ha(e)?G1(xo(e)):z1(e)}function H1(e){return typeof e=="function"?e:e==null?ka:typeof e=="object"?nt(e)?V1(e[0],e[1]):j1(e):W1(e)}function K1(e,t){return function(r,n){var o=nt(r)?g1:v1,a={};return o(r,e,H1(n),a)}}var jn=K1(function(e,t,r){go(e,r,t)}),q1=0;function X1(e){var t=++q1;return au(e)+t}const ma=[{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}],Y1=[{id:"continuous"},...ma];class qa{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 qa(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=Ct.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return Y1}get discreteIncrementOptions(){return ma}get incrementOptionsById(){return jn(this.incrementOptions,t=>t.id)}get tabsById(){return jn(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 jn(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 jn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return ma.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=X1();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}function lu(e,t){return function(){return e.apply(t,arguments)}}const{toString:Z1}=Object.prototype,{getPrototypeOf:Xa}=Object,So=(e=>t=>{const r=Z1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ct=e=>(e=e.toLowerCase(),t=>So(t)===e),wo=e=>t=>typeof t===e,{isArray:Cr}=Array,en=wo("undefined");function Q1(e){return e!==null&&!en(e)&&e.constructor!==null&&!en(e.constructor)&&He(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uu=ct("ArrayBuffer");function e_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uu(e.buffer),t}const t_=wo("string"),He=wo("function"),cu=wo("number"),Ro=e=>e!==null&&typeof e=="object",r_=e=>e===!0||e===!1,Ln=e=>{if(So(e)!=="object")return!1;const t=Xa(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},n_=ct("Date"),o_=ct("File"),a_=ct("Blob"),s_=ct("FileList"),i_=e=>Ro(e)&&He(e.pipe),l_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||He(e.append)&&((t=So(e))==="formdata"||t==="object"&&He(e.toString)&&e.toString()==="[object FormData]"))},u_=ct("URLSearchParams"),[c_,d_,f_,h_]=["ReadableStream","Request","Response","Headers"].map(ct),m_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Cr(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 du(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 Kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fu=e=>!en(e)&&e!==Kt;function pa(){const{caseless:e}=fu(this)&&this||{},t={},r=(n,o)=>{const a=e&&du(t,o)||o;Ln(t[a])&&Ln(n)?t[a]=pa(t[a],n):Ln(n)?t[a]=pa({},n):Cr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&dn(arguments[n],r);return t}const p_=(e,t,r,{allOwnKeys:n}={})=>(dn(t,(o,a)=>{r&&He(o)?e[a]=lu(o,r):e[a]=o},{allOwnKeys:n}),e),g_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),y_=(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)},__=(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&&Xa(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},b_=(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},v_=e=>{if(!e)return null;if(Cr(e))return e;let t=e.length;if(!cu(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},x_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xa(Uint8Array)),S_=(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])}},w_=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},R_=ct("HTMLFormElement"),j_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Si=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),C_=ct("RegExp"),hu=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};dn(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},P_=e=>{hu(e,(t,r)=>{if(He(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(He(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+"'")})}})},A_=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Cr(e)?n(e):n(String(e).split(t)),r},O_=()=>{},T_=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ho="abcdefghijklmnopqrstuvwxyz",wi="0123456789",mu={DIGIT:wi,ALPHA:Ho,ALPHA_DIGIT:Ho+Ho.toUpperCase()+wi},E_=(e=16,t=mu.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function M_(e){return!!(e&&He(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const I_=e=>{const t=new Array(10),r=(n,o)=>{if(Ro(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=Cr(n)?[]:{};return dn(n,(i,l)=>{const u=r(i,o+1);!en(u)&&(a[l]=u)}),t[o]=void 0,a}}return n};return r(e,0)},L_=ct("AsyncFunction"),k_=e=>e&&(Ro(e)||He(e))&&He(e.then)&&He(e.catch),pu=((e,t)=>e?setImmediate:t?((r,n)=>(Kt.addEventListener("message",({source:o,data:a})=>{o===Kt&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Kt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",He(Kt.postMessage)),$_=typeof queueMicrotask<"u"?queueMicrotask.bind(Kt):typeof process<"u"&&process.nextTick||pu,v={isArray:Cr,isArrayBuffer:uu,isBuffer:Q1,isFormData:l_,isArrayBufferView:e_,isString:t_,isNumber:cu,isBoolean:r_,isObject:Ro,isPlainObject:Ln,isReadableStream:c_,isRequest:d_,isResponse:f_,isHeaders:h_,isUndefined:en,isDate:n_,isFile:o_,isBlob:a_,isRegExp:C_,isFunction:He,isStream:i_,isURLSearchParams:u_,isTypedArray:x_,isFileList:s_,forEach:dn,merge:pa,extend:p_,trim:m_,stripBOM:g_,inherits:y_,toFlatObject:__,kindOf:So,kindOfTest:ct,endsWith:b_,toArray:v_,forEachEntry:S_,matchAll:w_,isHTMLForm:R_,hasOwnProperty:Si,hasOwnProp:Si,reduceDescriptors:hu,freezeMethods:P_,toObjectSet:A_,toCamelCase:j_,noop:O_,toFiniteNumber:T_,findKey:du,global:Kt,isContextDefined:fu,ALPHABET:mu,generateString:E_,isSpecCompliantForm:M_,toJSONObject:I_,isAsyncFn:L_,isThenable:k_,setImmediate:pu,asap:$_};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)}v.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gu=J.prototype,yu={};["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=>{yu[e]={value:e}});Object.defineProperties(J,yu);Object.defineProperty(gu,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create(gu);return v.toFlatObject(e,i,function(u){return u!==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 N_=null;function ga(e){return v.isPlainObject(e)||v.isArray(e)}function _u(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Ri(e,t,r){return e?e.concat(t).map(function(o,a){return o=_u(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function F_(e){return v.isArray(e)&&!e.some(ga)}const D_=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function jo(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,g){return!v.isUndefined(g[_])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!u&&v.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let S=y;if(y&&!g&&typeof y=="object"){if(v.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&F_(y)||(v.isFileList(y)||v.endsWith(_,"[]"))&&(S=v.toArray(y)))return _=_u(_),S.forEach(function(C,k){!(v.isUndefined(C)||C===null)&&t.append(i===!0?Ri([_],k,a):i===null?_:_+"[]",c(C))}),!1}return ga(y)?!0:(t.append(Ri(g,_,a),c(y)),!1)}const h=[],f=Object.assign(D_,{defaultVisitor:d,convertValue:c,isVisitable:ga});function b(y,_){if(!v.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(y),v.forEach(y,function(S,R){(!(v.isUndefined(S)||S===null)&&o.call(t,S,v.isString(R)?R.trim():R,_,f))===!0&&b(S,_?_.concat(R):[R])}),h.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ji(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&&jo(e,this,t)}const bu=Ya.prototype;bu.append=function(t,r){this._pairs.push([t,r])};bu.toString=function(t){const r=t?function(n){return t.call(this,n,ji)}:ji;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function U_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vu(e,t,r){if(!t)return e;const n=r&&r.encode||U_,o=r&&r.serialize;let a;if(o?a=o(t,r):a=v.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 Ci{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const xu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},B_=typeof URLSearchParams<"u"?URLSearchParams:Ya,J_=typeof FormData<"u"?FormData:null,V_=typeof Blob<"u"?Blob:null,G_={isBrowser:!0,classes:{URLSearchParams:B_,FormData:J_,Blob:V_},protocols:["http","https","file","blob","url","data"]},Za=typeof window<"u"&&typeof document<"u",z_=(e=>Za&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),W_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",H_=Za&&window.location.href||"http://localhost",K_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Za,hasStandardBrowserEnv:z_,hasStandardBrowserWebWorkerEnv:W_,origin:H_},Symbol.toStringTag,{value:"Module"})),it={...K_,...G_};function q_(e,t){return jo(e,new it.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return it.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function X_(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Y_(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 Su(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),u=a>=r.length;return i=!i&&v.isArray(o)?o.length:i,u?(v.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!v.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&v.isArray(o[i])&&(o[i]=Y_(o[i])),!l)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,o)=>{t(X_(n),o,r,0)}),r}return null}function Z_(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const fn={transitional:xu,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=v.isObject(t);if(a&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return o?JSON.stringify(Su(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return q_(t,this.formSerializer).toString();if((l=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return jo(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Z_(t)):t}],transformResponse:[function(t){const r=this.transitional||fn.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.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:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{fn.headers[e]={}});const Q_=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eb=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
79
|
-
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&
|
|
80
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Pi]=this[Pi]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Jr(i);n[l]||(ob(o,i),n[l]=!0)}return v.isArray(t)?t.forEach(a):a(t),this}};Ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Ne.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Ne);function qo(e,t){const r=this||fn,n=t||r,o=Ne.from(n.headers);let a=n.data;return v.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function wu(e){return!!(e&&e.__CANCEL__)}function Pr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Pr,J,{__CANCEL__:!0});function Ru(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 ab(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sb(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(u){const c=Date.now(),d=n[a];i||(i=c),r[o]=u,n[o]=c;let h=a,f=0;for(;h!==o;)f+=r[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;const b=d&&c-d;return b?Math.round(f*1e3/b):void 0}}function ib(e,t){let r=0,n=1e3/t,o,a;const i=(c,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),h=d-r;h>=n?i(c,d):(o=c,a||(a=setTimeout(()=>{a=null,i(o)},n-h)))},()=>o&&i(o)]}const Zn=(e,t,r=3)=>{let n=0;const o=sb(50,250);return ib(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,u=i-n,c=o(u),d=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-i)/c:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},Ai=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Oi=e=>(...t)=>v.asap(()=>e(...t)),lb=it.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=v.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),ub=it.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),v.isString(n)&&i.push("path="+n),v.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 cb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function db(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ju(e,t){return e&&!cb(t)?db(e,t):t}const Ti=e=>e instanceof Ne?{...e}:e;function Qt(e,t){t=t||{};const r={};function n(c,d,h){return v.isPlainObject(c)&&v.isPlainObject(d)?v.merge.call({caseless:h},c,d):v.isPlainObject(d)?v.merge({},d):v.isArray(d)?d.slice():d}function o(c,d,h){if(v.isUndefined(d)){if(!v.isUndefined(c))return n(void 0,c,h)}else return n(c,d,h)}function a(c,d){if(!v.isUndefined(d))return n(void 0,d)}function i(c,d){if(v.isUndefined(d)){if(!v.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function l(c,d,h){if(h in t)return n(c,d);if(h in e)return n(void 0,c)}const u={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:(c,d)=>o(Ti(c),Ti(d),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=u[d]||o,f=h(e[d],t[d],d);v.isUndefined(f)&&h!==l||(r[d]=f)}),r}const Cu=e=>{const t=Qt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Ne.from(i),t.url=vu(ju(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(v.isFormData(r)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...d]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...d].join("; "))}}if(it.hasStandardBrowserEnv&&(n&&v.isFunction(n)&&(n=n(t)),n||n!==!1&&lb(t.url))){const c=o&&a&&ub.read(a);c&&i.set(o,c)}return t},fb=typeof XMLHttpRequest<"u",hb=fb&&function(e){return new Promise(function(r,n){const o=Cu(e);let a=o.data;const i=Ne.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=o,d,h,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 S(){if(!g)return;const C=Ne.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};Ru(function(O){r(O),_()},function(O){n(O),_()},j),g=null}"onloadend"in g?g.onloadend=S:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(S)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||xu;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new J(k,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&v.forEach(i.toJSON(),function(k,j){g.setRequestHeader(j,k)}),v.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),c&&([f,y]=Zn(c,!0),g.addEventListener("progress",f)),u&&g.upload&&([h,b]=Zn(u),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=C=>{g&&(n(!C||C.type?new Pr(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 R=ab(o.url);if(R&&it.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},mb=(e,t)=>{let r=new AbortController,n;const o=function(u){if(!n){n=!0,i();const c=u instanceof Error?u:this.reason;r.abort(c instanceof J?c:new Pr(c instanceof Error?c.message:c))}};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(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",o):u.unsubscribe(o))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},pb=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},gb=async function*(e,t,r){for await(const n of e)yield*pb(ArrayBuffer.isView(n)?n:await r(String(n)),t)},Ei=(e,t,r,n,o)=>{const a=gb(e,t,o);let i=0,l,u=c=>{l||(l=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:d,value:h}=await a.next();if(d){u(),c.close();return}let f=h.byteLength;if(r){let b=i+=f;r(b)}c.enqueue(new Uint8Array(h))}catch(d){throw u(d),d}},cancel(c){return u(c),a.return()}},{highWaterMark:2})},Co=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Pu=Co&&typeof ReadableStream=="function",ya=Co&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Au=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yb=Pu&&Au(()=>{let e=!1;const t=new Request(it.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Mi=64*1024,_a=Pu&&Au(()=>v.isReadableStream(new Response("").body)),Qn={stream:_a&&(e=>e.body)};Co&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qn[t]&&(Qn[t]=v.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const _b=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await ya(e)).byteLength},bb=async(e,t)=>{const r=v.toFiniteNumber(e.getContentLength());return r??_b(t)},vb=Co&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:h="same-origin",fetchOptions:f}=Cu(e);c=c?(c+"").toLowerCase():"text";let[b,y]=o||a||i?mb([o,a],i):[],_,g;const S=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(u&&yb&&r!=="get"&&r!=="head"&&(R=await bb(d,n))!==0){let A=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(v.isFormData(n)&&(O=A.headers.get("content-type"))&&d.setContentType(O),A.body){const[z,le]=Ai(R,Zn(Oi(u)));n=Ei(A.body,Mi,z,le,ya)}}v.isString(h)||(h=h?"include":"omit"),g=new Request(t,{...f,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:h});let C=await fetch(g);const k=_a&&(c==="stream"||c==="response");if(_a&&(l||k)){const A={};["status","statusText","headers"].forEach(ce=>{A[ce]=C[ce]});const O=v.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&Ai(O,Zn(Oi(l),!0))||[];C=new Response(Ei(C.body,Mi,z,()=>{le&&le(),k&&S()},ya),A)}c=c||"text";let j=await Qn[v.findKey(Qn,c)||"text"](C,e);return!k&&S(),y&&y(),await new Promise((A,O)=>{Ru(A,O,{data:j,headers:Ne.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw S(),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)}}),ba={http:N_,xhr:hb,fetch:vb};v.forEach(ba,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ii=e=>`- ${e}`,xb=e=>v.isFunction(e)||e===null||e===!1,Ou={getAdapter:e=>{e=v.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,!xb(r)&&(n=ba[(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,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
|
|
75
|
+
} });`:Hr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Ss(_,"light",R,n),Ss(_,"dark",C,n),_.contrastText||(_.contrastText=f(_.main)),_},b={dark:$o,light:xs};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),rt(P({common:P({},Xr),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:Df,contrastThreshold:r,getContrastText:f,augmentColor:h,tonalOffset:n},b[t]),o)}const Kf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function qf(e){return Math.round(e*1e5)/1e5}const ws={textTransform:"uppercase"},Rs='"Roboto", "Helvetica", "Arial", sans-serif';function Xf(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Rs,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=r,h=Ue(r,Kf);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=f||(S=>`${S/u*b}rem`),_=(S,R,C,k,j)=>P({fontFamily:n,fontWeight:S,fontSize:y(R),lineHeight:C},n===Rs?{letterSpacing:`${qf(k/R)}em`}:{},j,d),g={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,ws),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,ws),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rt(P({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),h,{clone:!1})}const Yf=.2,Zf=.14,Qf=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Yf})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zf})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Qf})`].join(",")}const eh=["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)],th=["duration","easing","delay"],rh={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)"},nh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function js(e){return`${Math.round(e)}ms`}function oh(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ah(e){const t=P({},rh,e.easing),r=P({},nh,e.duration);return P({getAutoHeightDuration:oh,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=Ue(a,th);if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",f=h=>!isNaN(parseFloat(h));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(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.'),!f(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(`
|
|
76
|
+
`)),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:js(i)} ${l} ${typeof c=="string"?c:js(c)}`).join(",")}},e,{easing:t,duration:r})}const sh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ih=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function vl(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ue(e,ih);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=Hf(n),c=an(e);let u=rt(c,{mixins:Cf(c.breakpoints,r),palette:l,shadows:eh.slice(),typography:Xf(l,a),transitions:ah(o),zIndex:P({},sh)});if(u=rt(u,i),u=t.reduce((d,f)=>rt(d,f),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(h,b)=>{let y;for(y in h){const _=h[y];if(d.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=sn("",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(h,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
77
|
+
`))}h[y]={}}}};Object.keys(u.components).forEach(h=>{const b=u.components[h].styleOverrides;b&&h.indexOf("Mui")===0&&f(b,h)})}return u.unstable_sxConfig=P({},nn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return on({sx:f,theme:this})},u}const lh=vl();var ln={},No={exports:{}},Cs;function ch(){return Cs||(Cs=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:{}},Ps;function uh(){return Ps||(Ps=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 dh=At(Ru),fh=At(ju),hh=At(Eu),mh=At(Md),ph=At(bd),gh=At(Cd);var wr=ho;Object.defineProperty(ln,"__esModule",{value:!0});var yh=ln.default=Eh;ln.shouldForwardProp=Mn;ln.systemDefaultTheme=void 0;var Qe=wr(ch()),aa=wr(uh()),As=Ch(dh),_h=fh,bh=wr(hh),vh=wr(mh),xh=wr(ph),Sh=wr(gh);const wh=["ownerState"],Rh=["variants"],jh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(xl=function(n){return n?r:t})(e)}function Ch(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=xl(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 Ph(e){return Object.keys(e).length===0}function Ah(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Mn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oh=ln.systemDefaultTheme=(0,xh.default)(),Os=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _n({defaultTheme:e,theme:t,themeId:r}){return Ph(t)?e:t[r]||t}function Th(e){return e?(t,r)=>r[e]:null}function In(e,t){let{ownerState:r}=t,n=(0,aa.default)(t,wh);const o=typeof e=="function"?e((0,Qe.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>In(a,(0,Qe.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,aa.default)(o,Rh);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Qe.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,Qe.default)({ownerState:r},n,r)):c.style))}),l}return o}function Eh(e={}){const{themeId:t,defaultTheme:r=Oh,rootShouldForwardProp:n=Mn,slotShouldForwardProp:o=Mn}=e,a=i=>(0,Sh.default)((0,Qe.default)({},i,{theme:_n((0,Qe.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,As.internal_processStyles)(i,j=>j.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=Th(Os(u))}=l,b=(0,aa.default)(l,jh),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=f||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Os(u||"Root")}`);let S=Mn;u==="Root"||u==="root"?S=n:u?S=o:Ah(i)&&(S=void 0);const R=(0,As.default)(i,(0,Qe.default)({shouldForwardProp:S,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||(0,_h.isPlainObject)(j)?A=>In(j,(0,Qe.default)({},A,{theme:_n({theme:A.theme,defaultTheme:r,themeId:t})})):j,k=(j,...A)=>{let O=C(j);const z=A?A.map(C):[];c&&h&&z.push(D=>{const q=_n((0,Qe.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[c]||!q.components[c].styleOverrides)return null;const G=q.components[c].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=In(we,(0,Qe.default)({},D,{theme:q}))}),h(D,X)}),c&&!y&&z.push(D=>{var q;const G=_n((0,Qe.default)({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[c])==null?void 0:q.variants;return In({variants:X},(0,Qe.default)({},D,{theme:G}))}),_||z.push(a);const le=z.length-A.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,bh.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,vh.default)(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}function La(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mh=e=>La(e)&&e!=="classes",Ot=yh({themeId:Wc,defaultTheme:lh,rootShouldForwardProp:Mh});function Sl(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ka(e){return e}var Ts=Math.max;function Ih(e,t,r){return t=Ts(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Ts(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=n[o];return l[t]=r(i),Sl(e,this,l)}}function Lh(e){return function(){return e}}var wl=typeof global=="object"&&global&&global.Object===Object&&global,kh=typeof self=="object"&&self&&self.Object===Object&&self,ut=wl||kh||Function("return this")(),Dt=ut.Symbol,Rl=Object.prototype,$h=Rl.hasOwnProperty,Nh=Rl.toString,Ur=Dt?Dt.toStringTag:void 0;function Fh(e){var t=$h.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Nh.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var Dh=Object.prototype,Uh=Dh.toString;function Bh(e){return Uh.call(e)}var Jh="[object Null]",Vh="[object Undefined]",Es=Dt?Dt.toStringTag:void 0;function Jt(e){return e==null?e===void 0?Vh:Jh:Es&&Es in Object(e)?Fh(e):Bh(e)}function Je(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gh="[object AsyncFunction]",zh="[object Function]",Wh="[object GeneratorFunction]",Hh="[object Proxy]";function $a(e){if(!Je(e))return!1;var t=Jt(e);return t==zh||t==Wh||t==Gh||t==Hh}var Do=ut["__core-js_shared__"],Ms=function(){var e=/[^.]+$/.exec(Do&&Do.keys&&Do.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Kh(e){return!!Ms&&Ms in e}var qh=Function.prototype,Xh=qh.toString;function er(e){if(e!=null){try{return Xh.call(e)}catch{}try{return e+""}catch{}}return""}var Yh=/[\\^$.*+?()[\]{}|]/g,Zh=/^\[object .+?Constructor\]$/,Qh=Function.prototype,em=Object.prototype,tm=Qh.toString,rm=em.hasOwnProperty,nm=RegExp("^"+tm.call(rm).replace(Yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function om(e){if(!Je(e)||Kh(e))return!1;var t=$a(e)?nm:Zh;return t.test(er(e))}function am(e,t){return e==null?void 0:e[t]}function tr(e,t){var r=am(e,t);return om(r)?r:void 0}var Bn=function(){try{var e=tr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),sm=Bn?function(e,t){return Bn(e,"toString",{configurable:!0,enumerable:!1,value:Lh(t),writable:!0})}:ka,im=800,lm=16,cm=Date.now;function um(e){var t=0,r=0;return function(){var n=cm(),o=lm-(n-r);if(r=n,o>0){if(++t>=im)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dm=um(sm);function jl(e,t){return dm(Ih(e,t,ka),e+"")}function fm(){this.__data__=[],this.size=0}function cn(e,t){return e===t||e!==e&&t!==t}function mo(e,t){for(var r=e.length;r--;)if(cn(e[r][0],t))return r;return-1}var hm=Array.prototype,mm=hm.splice;function pm(e){var t=this.__data__,r=mo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():mm.call(t,r,1),--this.size,!0}function gm(e){var t=this.__data__,r=mo(t,e);return r<0?void 0:t[r][1]}function ym(e){return mo(this.__data__,e)>-1}function _m(e,t){var r=this.__data__,n=mo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Tt(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])}}Tt.prototype.clear=fm;Tt.prototype.delete=pm;Tt.prototype.get=gm;Tt.prototype.has=ym;Tt.prototype.set=_m;function bm(){this.__data__=new Tt,this.size=0}function vm(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function xm(e){return this.__data__.get(e)}function Sm(e){return this.__data__.has(e)}var Yr=tr(ut,"Map"),Zr=tr(Object,"create");function wm(){this.__data__=Zr?Zr(null):{},this.size=0}function Rm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jm="__lodash_hash_undefined__",Cm=Object.prototype,Pm=Cm.hasOwnProperty;function Am(e){var t=this.__data__;if(Zr){var r=t[e];return r===jm?void 0:r}return Pm.call(t,e)?t[e]:void 0}var Om=Object.prototype,Tm=Om.hasOwnProperty;function Em(e){var t=this.__data__;return Zr?t[e]!==void 0:Tm.call(t,e)}var Mm="__lodash_hash_undefined__";function Im(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zr&&t===void 0?Mm: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=wm;Zt.prototype.delete=Rm;Zt.prototype.get=Am;Zt.prototype.has=Em;Zt.prototype.set=Im;function Lm(){this.size=0,this.__data__={hash:new Zt,map:new(Yr||Tt),string:new Zt}}function km(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function po(e,t){var r=e.__data__;return km(t)?r[typeof t=="string"?"string":"hash"]:r.map}function $m(e){var t=po(this,e).delete(e);return this.size-=t?1:0,t}function Nm(e){return po(this,e).get(e)}function Fm(e){return po(this,e).has(e)}function Dm(e,t){var r=po(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Et.prototype.clear=Lm;Et.prototype.delete=$m;Et.prototype.get=Nm;Et.prototype.has=Fm;Et.prototype.set=Dm;var Um=200;function Bm(e,t){var r=this.__data__;if(r instanceof Tt){var n=r.__data__;if(!Yr||n.length<Um-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Et(n)}return r.set(e,t),this.size=r.size,this}function vt(e){var t=this.__data__=new Tt(e);this.size=t.size}vt.prototype.clear=bm;vt.prototype.delete=vm;vt.prototype.get=xm;vt.prototype.has=Sm;vt.prototype.set=Bm;function go(e,t,r){t=="__proto__"&&Bn?Bn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function sa(e,t,r){(r!==void 0&&!cn(e[t],r)||r===void 0&&!(t in e))&&go(e,t,r)}function Jm(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 Cl=Jm(),Pl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Is=Pl&&typeof module=="object"&&module&&!module.nodeType&&module,Vm=Is&&Is.exports===Pl,Ls=Vm?ut.Buffer:void 0;Ls&&Ls.allocUnsafe;function Gm(e,t){return e.slice()}var Jn=ut.Uint8Array;function zm(e){var t=new e.constructor(e.byteLength);return new Jn(t).set(new Jn(e)),t}function Wm(e,t){var r=zm(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Hm(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ks=Object.create,Km=function(){function e(){}return function(t){if(!Je(t))return{};if(ks)return ks(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Al(e,t){return function(r){return e(t(r))}}var Ol=Al(Object.getPrototypeOf,Object),qm=Object.prototype;function Na(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qm;return e===r}function Xm(e){return typeof e.constructor=="function"&&!Na(e)?Km(Ol(e)):{}}function Pt(e){return e!=null&&typeof e=="object"}var Ym="[object Arguments]";function $s(e){return Pt(e)&&Jt(e)==Ym}var Tl=Object.prototype,Zm=Tl.hasOwnProperty,Qm=Tl.propertyIsEnumerable,Vn=$s(function(){return arguments}())?$s:function(e){return Pt(e)&&Zm.call(e,"callee")&&!Qm.call(e,"callee")},ot=Array.isArray,e0=9007199254740991;function Fa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=e0}function un(e){return e!=null&&Fa(e.length)&&!$a(e)}function t0(e){return Pt(e)&&un(e)}function r0(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ns=El&&typeof module=="object"&&module&&!module.nodeType&&module,n0=Ns&&Ns.exports===El,Fs=n0?ut.Buffer:void 0,o0=Fs?Fs.isBuffer:void 0,Gn=o0||r0,a0="[object Object]",s0=Function.prototype,i0=Object.prototype,Ml=s0.toString,l0=i0.hasOwnProperty,c0=Ml.call(Object);function u0(e){if(!Pt(e)||Jt(e)!=a0)return!1;var t=Ol(e);if(t===null)return!0;var r=l0.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ml.call(r)==c0}var d0="[object Arguments]",f0="[object Array]",h0="[object Boolean]",m0="[object Date]",p0="[object Error]",g0="[object Function]",y0="[object Map]",_0="[object Number]",b0="[object Object]",v0="[object RegExp]",x0="[object Set]",S0="[object String]",w0="[object WeakMap]",R0="[object ArrayBuffer]",j0="[object DataView]",C0="[object Float32Array]",P0="[object Float64Array]",A0="[object Int8Array]",O0="[object Int16Array]",T0="[object Int32Array]",E0="[object Uint8Array]",M0="[object Uint8ClampedArray]",I0="[object Uint16Array]",L0="[object Uint32Array]",de={};de[C0]=de[P0]=de[A0]=de[O0]=de[T0]=de[E0]=de[M0]=de[I0]=de[L0]=!0;de[d0]=de[f0]=de[R0]=de[h0]=de[j0]=de[m0]=de[p0]=de[g0]=de[y0]=de[_0]=de[b0]=de[v0]=de[x0]=de[S0]=de[w0]=!1;function k0(e){return Pt(e)&&Fa(e.length)&&!!de[Jt(e)]}function $0(e){return function(t){return e(t)}}var Il=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Il&&typeof module=="object"&&module&&!module.nodeType&&module,N0=zr&&zr.exports===Il,Uo=N0&&wl.process,Ds=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Uo&&Uo.binding&&Uo.binding("util")}catch{}}(),Us=Ds&&Ds.isTypedArray,Da=Us?$0(Us):k0;function ia(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var F0=Object.prototype,D0=F0.hasOwnProperty;function U0(e,t,r){var n=e[t];(!(D0.call(e,t)&&cn(n,r))||r===void 0&&!(t in e))&&go(e,t,r)}function B0(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var l=t[a],c=void 0;c===void 0&&(c=e[l]),o?go(r,l,c):U0(r,l,c)}return r}function J0(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var V0=9007199254740991,G0=/^(?:0|[1-9]\d*)$/;function Ua(e,t){var r=typeof e;return t=t??V0,!!t&&(r=="number"||r!="symbol"&&G0.test(e))&&e>-1&&e%1==0&&e<t}var z0=Object.prototype,W0=z0.hasOwnProperty;function Ll(e,t){var r=ot(e),n=!r&&Vn(e),o=!r&&!n&&Gn(e),a=!r&&!n&&!o&&Da(e),i=r||n||o||a,l=i?J0(e.length,String):[],c=l.length;for(var u in e)(t||W0.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ua(u,c)))&&l.push(u);return l}function H0(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var K0=Object.prototype,q0=K0.hasOwnProperty;function X0(e){if(!Je(e))return H0(e);var t=Na(e),r=[];for(var n in e)n=="constructor"&&(t||!q0.call(e,n))||r.push(n);return r}function kl(e){return un(e)?Ll(e,!0):X0(e)}function Y0(e){return B0(e,kl(e))}function Z0(e,t,r,n,o,a,i){var l=ia(e,r),c=ia(t,r),u=i.get(c);if(u){sa(e,r,u);return}var d=a?a(l,c,r+"",e,t,i):void 0,f=d===void 0;if(f){var h=ot(c),b=!h&&Gn(c),y=!h&&!b&&Da(c);d=c,h||b||y?ot(l)?d=l:t0(l)?d=Hm(l):b?(f=!1,d=Gm(c)):y?(f=!1,d=Wm(c)):d=[]:u0(c)||Vn(c)?(d=l,Vn(l)?d=Y0(l):(!Je(l)||$a(l))&&(d=Xm(c))):f=!1}f&&(i.set(c,d),o(d,c,n,a,i),i.delete(c)),sa(e,r,d)}function Ba(e,t,r,n,o){e!==t&&Cl(t,function(a,i){if(o||(o=new vt),Je(a))Z0(e,t,i,r,Ba,n,o);else{var l=n?n(ia(e,i),a,i+"",e,t,o):void 0;l===void 0&&(l=a),sa(e,i,l)}},kl)}function $l(e,t,r,n,o,a){return Je(e)&&Je(t)&&(a.set(t,e),Ba(e,t,void 0,$l,a),a.delete(t)),e}function Q0(e,t,r){if(!Je(r))return!1;var n=typeof t;return(n=="number"?un(r)&&Ua(t,r.length):n=="string"&&t in r)?cn(r[t],e):!1}function ep(e){return jl(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Q0(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var l=r[n];l&&e(t,l,n,a)}return t})}var tp=ep(function(e,t,r,n){Ba(e,t,r,n)}),rp=jl(function(e){return e.push(void 0,$l),Sl(tp,void 0,e)});const gt={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"},np={mode:"dark",colors:{primary:gt.skyblue500,textDefault:gt.white,textSubtle:gt.midnightgray,background:{default:gt.darkishblue,panel:gt.darkestblue}}},op={mode:"light",colors:{primary:gt.skyblue500,textDefault:gt.darkishblue,textSubtle:gt.midnightgray,background:{default:gt.skyblue500,panel:gt.white}}};function ap(e={}){const t=e.mode==="light"?op:np;return rp(e,t)}function sp(e){const t=e,r=t.mode==="dark";return vl({palette:{mode:t.mode,primary:{main:t.colors.primary},background:{default:t.colors.background.default,paper:t.colors.background.panel}},typography:{allVariants:{color:t.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:r?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:r?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:r?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:r?"#3d4455":void 0,color:r?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":r?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:r?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":r?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:t})}const ip={"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"},lp={"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"},cp={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 zn{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||cp,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 zn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zn(this.logger,t)}}var yt=new zn;class yo{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 Br=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},Bs=e=>e==null?"":""+e,up=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},dp=/###/g,Js=e=>e&&e.indexOf("###")>-1?e.replace(dp,"."):e,Vs=e=>!e||typeof e=="string",Wr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Vs(e))return{};const a=Js(n[o]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Vs(e)?{}:{obj:e,k:Js(n[o])}},Gs=(e,t,r)=>{const{obj:n,k:o}=Wr(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=Wr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Wr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r},fp=(e,t,r,n)=>{const{obj:o,k:a}=Wr(e,t,Object);o[a]=o[a]||[],o[a].push(r)},Wn=(e,t)=>{const{obj:r,k:n}=Wr(e,t);if(r)return r[n]},hp=(e,t,r)=>{const n=Wn(e,r);return n!==void 0?n:Wn(t,r)},Nl=(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]):Nl(e[n],t[n],r):e[n]=t[n]);return e},fr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var mp={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const pp=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>mp[t]):e;class gp{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 yp=[" ",",","?","!",";"],_p=new gp(20),bp=(e,t,r)=>{t=t||"",r=r||"";const n=yp.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=_p.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},la=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},Hn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class zs extends yo{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=Wn(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:la(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),Gs(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=Wn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Nl(c,n,a):c={...c,...n},Gs(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 Fl={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 Ws={};class Kn extends yo{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),up(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=yt.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&&!bp(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 k=r.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${k}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${k}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:i}const f=this.resolve(t,r);let h=f&&f.res;const b=f&&f.usedKey||i,y=f&&f.exactUsedKey||i,_=Object.prototype.toString.apply(h),g=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&g.indexOf(_)<0&&!(typeof S=="string"&&Array.isArray(h))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,h,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(f.res=k,f.usedParams=this.getUsedParamsDetails(r),f):k}if(a){const k=Array.isArray(h),j=k?[]:{},A=k?y:b;for(const O in h)if(Object.prototype.hasOwnProperty.call(h,O)){const z=`${A}${a}${O}`;j[O]=this.translate(z,{...r,joinArrays:!1,ns:l}),j[O]===z&&(j[O]=h[O])}h=j}}else if(R&&typeof S=="string"&&Array.isArray(h))h=h.join(S),h&&(h=this.extendTranslation(h,t,r,n));else{let k=!1,j=!1;const A=r.count!==void 0&&typeof r.count!="string",O=Kn.hasDefaultValue(r),z=A?this.pluralResolver.getSuffix(u,r.count,r):"",le=r.ordinal&&A?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",ue=A&&!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(h)&&O&&(k=!0,h=D),this.isValidLookup(h)||(j=!0,h=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:h,X=O&&D!==h&&this.options.updateMissing;if(j||k||X){if(this.logger.log(X?"updateKey":"missingKey",u,c,i,X?D:h),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,Pe,Ie)=>{const st=O&&Ie!==h?Ie:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,c,Pe,st,X,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,c,Pe,st,X,r),this.emit("missingKey",Q,c,Pe,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?K.forEach(Q=>{const Pe=this.pluralResolver.getSuffixes(Q,r);ue&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Pe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Pe.push(`${this.options.pluralSeparator}zero`),Pe.forEach(Ie=>{ce([Q],i+Ie,r[`defaultValue${Ie}`]||D)})}):ce(K,i,D))}h=this.extendTranslation(h,t,r,f,n),j&&h===i&&this.options.appendNamespaceToMissingKey&&(h=`${c}:${i}`),(j||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,k?h:void 0):h=this.options.parseMissingKeyHandler(h))}return o?(f.res=h,f.usedParams=this.getUsedParamsDetails(r),f):h}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 h=t.match(this.interpolator.nestingRegexp);d=h&&h.length}let f=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,n.lng||this.language||o.usedLng,n),u){const h=t.match(this.interpolator.nestingRegexp),b=h&&h.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 h=arguments.length,b=new Array(h),y=0;y<h;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=Fl.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 f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=r.count!==void 0&&typeof r.count!="string",b=h&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(g=>{this.isValidLookup(n)||(l=g,!Ws[`${_[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Ws[`${_[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(S=>{if(this.isValidLookup(n))return;i=S;const R=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,S,g,r);else{let k;h&&(k=this.pluralResolver.getSuffix(S,r.count,r));const j=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(R.push(d+k),r.ordinal&&k.indexOf(A)===0&&R.push(d+k.replace(A,this.options.pluralSeparator)),b&&R.push(d+j)),y){const O=`${d}${this.options.contextSeparator}${r.context}`;R.push(O),h&&(R.push(O+k),r.ordinal&&k.indexOf(A)===0&&R.push(O+k.replace(A,this.options.pluralSeparator)),b&&R.push(O+j))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(a=C,n=this.getResource(S,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 Bo=e=>e.charAt(0).toUpperCase()+e.slice(1);class Hs{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yt.create("languageUtils")}getScriptPartFromCode(t){if(t=Hn(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=Hn(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]=Bo(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]=Bo(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Bo(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 vp=[{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}],xp={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 Sp=["v1","v2","v3"],wp=["v4"],Ks={zero:0,one:1,two:2,few:3,many:4,other:5},Rp=()=>{const e={};return vp.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:xp[t.fc]}})}),e};class jp{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=yt.create("pluralResolver"),(!this.options.compatibilityJSON||wp.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=Rp()}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(Hn(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)=>Ks[o]-Ks[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!Sp.includes(this.options.compatibilityJSON)}}const qs=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=hp(e,t,r);return!a&&o&&typeof r=="string"&&(a=la(e,r,n),a===void 0&&(a=la(t,r,n))),a},Jo=e=>e.replace(/\$/g,"$$$$");class Cp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yt.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:f,nestingPrefix:h,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:g,maxReplaces:S,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:pp,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?fr(a):i||"{{",this.suffix=l?fr(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=h?fr(h):b||fr("$t("),this.nestingSuffix=y?fr(y):_||fr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=S||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,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 S=qs(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...o,...r,interpolationkey:b}):S}const y=b.split(this.formatSeparator),_=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(qs(r,c,_,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...o,...r,interpolationkey:_})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Jo(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Jo(this.escape(b)):Jo(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(f){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=Bs(i));const _=b.safeValue(i);if(t=t.replace(a[0],_),f?(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 f=c.split(new RegExp(`${d}[ ]*{`));let h=`{${f[1]}`;c=f[0],h=this.interpolate(h,i);const b=h.match(/'/g),y=h.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(h=h.replace(/'/g,'"'));try{i=JSON.parse(h),u&&(i={...u,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,_),`${c}${d}${h}`}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(f=>f.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=Bs(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,f)=>this.format(d,f,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const Pp=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}},hr=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(Hn(n),o),t[i]=l),l(r)}};class Ap{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yt.create("formatter"),this.options=t,this.formats={number:hr((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:hr((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:hr((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:hr((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:hr((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()]=hr(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}=Pp(c);if(this.formats[u]){let f=l;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=h.locale||h.lng||o.locale||o.lng||n;f=this.formats[u](l,b,{...d,...o,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const Op=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Tp extends yo{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=yt.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(f=>{const h=`${u}|${f}`;!n.reload&&this.store.hasResourceBundle(u,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?i[h]===void 0&&(i[h]=!0):(this.state[h]=1,d=!1,i[h]===void 0&&(i[h]=!0),a[h]===void 0&&(a[h]=!0),c[f]===void 0&&(c[f]=!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=>{fp(c.loaded,[a],i),Op(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(f=>{l[u][f]===void 0&&(l[u][f]=!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 f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.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(f=>l(null,f)).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 Xs=()=>({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}}),Ys=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),bn=()=>{},Ep=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Qr extends yo{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ys(t),this.services={},this.logger=yt,this.modules={external:[]},Ep(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=Xs();this.options={...o,...this.options,...Ys(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?yt.init(a(this.modules.logger),this.options):yt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Ap);const f=new Hs(this.options);this.store=new zs(this.options.resources,this.options);const h=this.services;h.logger=yt,h.resourceStore=this.store,h.languageUtils=f,h.pluralResolver=new jp(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(h.formatter=a(d),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new Cp(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Tp(a(this.modules.backend),h.resourceStore,h,this.options),h.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&&(h.languageDetector=a(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=a(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Kn(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=bn),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=Br(),u=()=>{const d=(f,h)=>{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(h),n(f,h)};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]:bn;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=Br();return t||(t=this.languages),r||(r=this.options.ns),n||(n=bn),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"&&Fl.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=Br();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),f=2;f<u;f++)d[f-2]=arguments[f];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 h=o.options.keySeparator||".";let b;return c.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${c.keyPrefix}${h}${y}`):b=c.keyPrefix?`${c.keyPrefix}${h}${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=Br();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=Br();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 Hs(Xs());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Qr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new Qr(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 zs(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Kn(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 Ee=Qr.createInstance();Ee.createInstance=Qr.createInstance;Ee.createInstance;Ee.dir;Ee.init;Ee.loadResources;Ee.reloadResources;Ee.use;Ee.changeLanguage;Ee.getFixedT;Ee.t;Ee.exists;Ee.setDefaultNamespace;Ee.hasLoadedNamespace;Ee.loadNamespaces;Ee.loadLanguages;const Dl=Ee.createInstance();Dl.use(Nc).use(Ut.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:lp},de:{translations:ip}},ns:["translations"],defaultNS:"translations"});function Rr(e){return r=>s.jsx(Mp,{children:s.jsx(e,{...r})})}const Mp=({children:e})=>{const t=L.useTheme(),r=ap({mode:t.palette.mode}),n=sp(r);return s.jsx(qt.ThemeProvider,{theme:n,children:s.jsx(Ut.I18nextProvider,{i18n:Dl,children:e})})},Ip=Rr(e=>{const t=es.useMonaco(),r=L.useTheme(),n=Z.useRef(null),[o,a]=Z.useState("dark-plus"),i=r.palette.mode==="dark"?"dark-plus":"light-plus";async function l(c){c.languages.register({id:"wandelscript"}),c.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),n.current||(n.current=await kc.createHighlighter({langs:[Gc],themes:["dark-plus","light-plus"]})),$c.shikiToMonaco(n.current,c),c.editor.defineTheme(i,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:r.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(c),a(i)}return Z.useEffect(()=>{t&&l(t)},[t,i]),t?s.jsx(es,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:o,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null}),Lp="(^joint_[0-9]+$)|(_J[0-9]+$)";function Ul(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Ul(t))]}function kp(e,t){return new RegExp(t??Lp).test(e)}function Bl(e,t){return Ul(e).filter(r=>kp(r.name,t))}function _o(e){Z.useEffect(e,[])}function Jl(e){_o(()=>br.autorun(e))}function Vl(e,t,r){_o(()=>br.reaction(e,t,r))}function jr(e){return _o(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function be({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){x.Globals.assign({frameLoop:"always"});const o=Z.useRef([]),a=Z.useRef([]),{scene:i,invalidate:l}=Fc.useThree();Z.useEffect(()=>{const h=i.getObjectByName(t);h&&(a.current=n?n(h):Bl(h),u(),l())},[]);function c(h){o.current=h,f.start(Object.assign({},o.current))}function u(){const h=a.current.map((b,y)=>d[y].get());r(a.current,h)}Jl(()=>{const h=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>c(h))});const[d,f]=x.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function $p({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(be,{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(x.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(x.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(x.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 Np({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(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(x.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Fp({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=ie.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function Dp({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(be,{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(x.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Up({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(be,{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(x.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Bp({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(be,{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(x.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.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(x.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 Zs({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Jp({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((f,h)=>f.rotation.y=l[h]*d[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(x.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Vp({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((f,h)=>f.rotation.y=l[h]*d[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"AR1730_J00",children:[s.jsxs(x.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Gp({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((f,h)=>f.rotation.y=l[h]*d[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(x.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 zp({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((f,h)=>f.rotation.y=l[h]*d[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"AR3120_J00",children:[s.jsxs(x.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Wp({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Hp({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(x.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(x.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(x.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(x.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 Kp({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 qp({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Xp({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"joint_01",children:[s.jsxs(x.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.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 Yp({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"joint_01",children:[s.jsxs(x.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.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 Zp({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Qs({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"M20iD25_J00",children:[s.jsxs(x.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 Qp({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,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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(x.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.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 ei="line",ti="mesh";function Vo({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new Rt.Matrix4;function o(c,u){const d=new Rt.Vector3,f=new Rt.Quaternion,h=new Rt.Vector3;n.decompose(d,f,h);const b=d.clone(),y=new Rt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new Rt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new Rt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new Rt.Matrix4().makeRotationX(c.alpha));return n.multiply(y),n.decompose(d,f,h),{a:b,b:d}}function a(c,u,d,f){if(!t)return;const h=t[c];if(!h)return;const{a:b,b:y}=o(h,f);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,f)=>{a(f,d.getObjectByName(ei),d.getObjectByName(ti),u[f])})}function l(c){return Bl(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(be,{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:f}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(ie.Line,{name:ei,points:[d,f],color:"white",lineWidth:5}),s.jsxs("mesh",{name:ti,position:f,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}const eg=console.warn;function tg(){return Z.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&eg(e)}},[]),s.jsx(s.Fragment,{})}function Ja(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const Gl=Rr(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Ja,isGhost:o=!1,...a})=>{let i;const l=Z.useRef(new Ce.Group),c=Z.useCallback(f=>{f!==null&&(l.current=f,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(f=>{if(f instanceof Ce.Mesh&&!f.userData.isGhost){f.material instanceof Ce.Material&&(f.material.colorWrite=!1);const h=f.clone(),b=f.clone();h.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),h.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,f.parent&&(f.parent.add(h),f.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const f=[];l.current.traverse(h=>{h instanceof Ce.Mesh&&h.material instanceof Ce.Material&&(h.material.colorWrite=!0),h instanceof Ce.Mesh&&h.userData!==void 0&&h.userData&&h.userData.isGhost!==void 0&&h.userData.isGhost&&f.push(h)}),f.forEach(h=>{h.parent&&h.parent.remove(h)}),l.current.userData.ghostsCreated=!1}};switch(Z.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=$p;break;case"UniversalRobots_UR3e":i=Np;break;case"UniversalRobots_UR5":i=Fp;break;case"UniversalRobots_UR5e":i=Dp;break;case"UniversalRobots_UR10":i=Up;break;case"UniversalRobots_UR10e":i=Bp;break;case"Yaskawa_AR900":i=Zs;break;case"Yaskawa_GP7":i=Zs;break;case"Yaskawa_AR1440":i=Jp;break;case"Yaskawa_AR1730":i=Vp;break;case"Yaskawa_AR2010":i=Gp;break;case"Yaskawa_AR3120":i=zp;break;case"FANUC_CRX10iA":i=Wp;break;case"FANUC_CRX20iAL":i=Hp;break;case"FANUC_CRX25iA":i=Kp;break;case"FANUC_CRX25iAL":i=qp;break;case"FANUC_ARC_Mate_120iD":i=Qs;break;case"FANUC_ARC_Mate_120iD35":i=Qs;break;case"FANUC_ARC_Mate_100iD":i=Zp;break;case"KUKA_KR210_R2700":i=Xp;break;case"KUKA_KR270_R2700":i=Yp;break;case"ABB_1200_07_7":i=Qp;break;default:console.warn(`Unknown robot type: ${t}`),i=Vo}return s.jsxs(Dc.ErrorBoundary,{fallback:s.jsx(Vo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:[s.jsx(Z.Suspense,{fallback:s.jsx(Vo,{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(tg,{})]})});function rg({connectedMotionGroup:e,getModel:t=Ja,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(Gl,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function ng(){return s.jsx(ie.Environment,{children:s.jsx(og,{})})}function og({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 ag(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 sg({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=ag(l);if(c.isCoplanar&&c.normal){const f=new Ce.Vector3().addVectors(l[0],c.normal.multiplyScalar(1e-4));l.push(f)}let u;try{u=new Uc.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}`)})})})})}process.env.NODE_ENV!=="production"&&(m.node,m.object.isRequired);function Va(e){return yf(e)}const _r=jf({createStyledComponent:Ot("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Va({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:m.node,component:m.elementType,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),useFlexGap:m.bool});const ca=Rr(De.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{jr(()=>{const d=r(),f=l.current;f&&(f.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(_r,{height:"72px",direction:"row",...i,children:[s.jsx(L.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(L.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(L.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}));var Ga={},Go={};function ig(e){return sn("MuiSvgIcon",e)}sl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cg=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Ta(o,ig,n)},ug=Ot("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,f,h,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:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),qn=N.forwardRef(function(t,r){const n=Va({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24"}=n,b=Ue(n,lg),y=N.isValidElement(o)&&o.type==="svg",_=P({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y}),g={};d||(g.viewBox=h);const S=cg(_);return s.jsxs(ug,P({as:l,className:bt(S.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,f?s.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(qn.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});qn.muiName="SvgIcon";function dg(e,t){function r(n,o){return s.jsx(qn,P({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=qn.muiName,N.memo(N.forwardRef(r))}const fg={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
+
`)),ol.configure(e)}},hg=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:zd,createSvgIcon:dg,debounce:Wd,deprecatedPropType:Hd,isMuiElement:Kd,ownerDocument:yr,ownerWindow:qd,requirePropFactory:Xd,setRef:ul,unstable_ClassNameGenerator:fg,unstable_useEnhancedEffect:Aa,unstable_useId:Zd,unsupportedProp:Qd,useControlled:dl,useEventCallback:Tn,useForkRef:Dn,useIsFocusVisible:fl},Symbol.toStringTag,{value:"Module"})),mg=At(hg);var ri;function zl(){return ri||(ri=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mg}(Go)),Go}var pg=ho;Object.defineProperty(Ga,"__esModule",{value:!0});var Wl=Ga.default=void 0,gg=pg(zl()),yg=s;Wl=Ga.default=(0,gg.default)((0,yg.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var za={},_g=ho;Object.defineProperty(za,"__esModule",{value:!0});var Hl=za.default=void 0,bg=_g(zl()),vg=s;Hl=za.default=(0,bg.default)((0,vg.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var zo=function(){return ut.Date.now()},xg=/\s/;function Sg(e){for(var t=e.length;t--&&xg.test(e.charAt(t)););return t}var wg=/^\s+/;function Rg(e){return e&&e.slice(0,Sg(e)+1).replace(wg,"")}var jg="[object Symbol]";function bo(e){return typeof e=="symbol"||Pt(e)&&Jt(e)==jg}var ni=NaN,Cg=/^[-+]0x[0-9a-f]+$/i,Pg=/^0b[01]+$/i,Ag=/^0o[0-7]+$/i,Og=parseInt;function oi(e){if(typeof e=="number")return e;if(bo(e))return ni;if(Je(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Je(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rg(e);var r=Pg.test(e);return r||Ag.test(e)?Og(e.slice(2),r?2:8):Cg.test(e)?ni:+e}var Tg="Expected a function",Eg=Math.max,Mg=Math.min;function Ig(e,t,r){var n,o,a,i,l,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Tg);t=oi(t)||0,Je(r)&&(d=!!r.leading,f="maxWait"in r,a=f?Eg(oi(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function b(A){var O=n,z=o;return n=o=void 0,u=A,i=e.apply(z,O),i}function y(A){return u=A,l=setTimeout(S,t),d?b(A):i}function _(A){var O=A-c,z=A-u,le=t-O;return f?Mg(le,a-z):le}function g(A){var O=A-c,z=A-u;return c===void 0||O>=t||O<0||f&&z>=a}function S(){var A=zo();if(g(A))return R(A);l=setTimeout(S,_(A))}function R(A){return l=void 0,h&&n?b(A):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R(zo())}function j(){var A=zo(),O=g(A);if(n=arguments,o=this,c=A,O){if(l===void 0)return y(c);if(f)return clearTimeout(l),l=setTimeout(S,t),b(c)}return l===void 0&&(l=setTimeout(S,t)),i}return j.cancel=C,j.flush=k,j}var Lg="Expected a function";function kg(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Lg);return Je(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ig(e,t,{leading:n,maxWait:t,trailing:o})}const Kl=Rr(De.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ut.useTranslation(),[c,u]=Z.useState(),d=De.useLocalObservable(()=>({activeJoggingDir:null,startJogging(S){this.activeJoggingDir=S,e(S)},stopJogging(){this.activeJoggingDir=null,t()}})),f=kg(()=>{u(o())},50);jr(f);function h(S){S.button===0&&d.startJogging("-")}function b(S){S.button===0&&d.startJogging("+")}function y(S){d.stopJogging()}function _(S){S.target===S.currentTarget&&d.stopJogging()}function g(S,R=1){if(S===void 0||isNaN(S))return"";const C=l("General.degree.variable",{amount:S.toFixed(R)});return S>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:h,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Wl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Hl,{})})]})})),$g=({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"})),Ng=Z.forwardRef($g),Fg=({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"})),Dg=Z.forwardRef(Fg),Ug=({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"})),Bg=Z.forwardRef(Ug),Jg=({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"})),Vg=Z.forwardRef(Jg),Gg=({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"})),zg=Z.forwardRef(Gg),Wg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",fillOpacity:.8,d:"m11.87 7.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95L4.21 8.8l-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72zm-.91-2.99.91-.91 2.6 2.6-.91.91zM8.71 14.37h3.74l-1.34-1.34-.04-.04h-2.5L5.32 9.74l4.59-4.59.92.92L8 8.9l5.33 5.33v1.48H8.7v-1.35z"})),Hg=Z.forwardRef(Wg),Kg=De.observer(({store:e})=>{const{t}=Ut.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(zg,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(Hg,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function qg(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const Xg=2;function ql(e,t){return e-t}function ai(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 vn(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Xn(e,t,r){return(e-t)*100/(r-t)}function Yg(e,t,r){return(r-t)*e+t}function Zg(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 Qg(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Zg(t)))}function si({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(ql)}function xn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function Sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?qg(e,t):!1}const ey={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}%`})}},ty=e=>e;let wn;function ii(){return wn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?wn=CSS.supports("touch-action","none"):wn=!0),wn}function ry(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:f,orientation:h="horizontal",rootRef:b,scale:y=ty,step:_=1,shiftStep:g=10,tabIndex:S,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[A,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,q]=dl({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,I,F)=>{const W=T.nativeEvent||T,Y=new W.constructor(W.type,W);Object.defineProperty(Y,"target",{writable:!0,value:{value:I,name:u}}),d(Y,I,F)}),X=Array.isArray(D);let K=X?D.slice().sort(ql):[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,I)=>({value:c+_*I})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Pe,onFocus:Ie,ref:st}=fl(),[xt,qe]=N.useState(-1),Re=N.useRef(),Mt=Dn(st,Re),ft=Dn(b,Mt),Xe=T=>I=>{var F;const W=Number(I.currentTarget.getAttribute("data-index"));Ie(I),Q.current===!0&&qe(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,I)},Ve=T=>I=>{var F;Pe(I),Q.current===!1&&qe(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,I)},ht=(T,I)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Y=ce.indexOf(W);let H=I;if(we&&_==null){const ze=ce[ce.length-1];H>ze?H=ze:H<ce[0]?H=ce[0]:H=H<W?ce[Y-1]:ce[Y+1]}if(H=mr(H,c,l),X){o&&(H=mr(H,K[F-1]||-1/0,K[F+1]||1/0));const ze=H;H=si({values:K,newValue:H,index:F});let Ye=F;o||(Ye=H.indexOf(ze)),xn({sliderRef:Re,activeIndex:Ye})}q(H),qe(F),G&&!Sn(H,D)&&G(T,H,F),f&&f(T,H)},mt=T=>I=>{var F;if(_!==null){const W=Number(I.currentTarget.getAttribute("data-index")),Y=K[W];let H=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?H=Math.max(Y-g,c):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(H=Math.min(Y+g,l)),H!==null&&(ht(I,H),I.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,I)};Aa(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&xt!==-1&&qe(-1);const Vt=T=>I=>{var F;(F=T.onChange)==null||F.call(T,I),ht(I,I.target.valueAsNumber)},St=N.useRef();let Ge=h;a&&h==="horizontal"&&(Ge+="-reverse");const E=({finger:T,move:I=!1})=>{const{current:F}=Re,{width:W,height:Y,bottom:H,left:ze}=F.getBoundingClientRect();let Ye;Ge.indexOf("vertical")===0?Ye=(H-T.y)/Y:Ye=(T.x-ze)/W,Ge.indexOf("-reverse")!==-1&&(Ye=1-Ye);let te;if(te=Yg(Ye,c,l),_)te=Qg(te,_,c);else{const kt=ai(ce,te);te=ce[kt]}te=mr(te,c,l);let $e=0;if(X){I?$e=St.current:$e=ai(K,te),o&&(te=mr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const kt=te;te=si({values:K,newValue:te,index:$e}),o&&I||($e=te.indexOf(kt),St.current=$e)}return{newValue:te,activeIndex:$e}},ee=Tn(T=>{const I=vn(T,C);if(!I)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=E({finger:I,move:!0});xn({sliderRef:Re,activeIndex:W,setActive:j}),q(F),!z&&ue.current>Xg&&le(!0),G&&!Sn(F,D)&&G(T,F,W)}),he=Tn(T=>{const I=vn(T,C);if(le(!1),!I)return;const{newValue:F}=E({finger:I,move:!0});j(-1),T.type==="touchend"&&O(-1),f&&f(T,F),C.current=void 0,ke()}),Le=Tn(T=>{if(n)return;ii()||T.preventDefault();const I=T.changedTouches[0];I!=null&&(C.current=I.identifier);const F=vn(T,C);if(F!==!1){const{newValue:Y,activeIndex:H}=E({finger:F});xn({sliderRef:Re,activeIndex:H,setActive:j}),q(Y),G&&!Sn(Y,D)&&G(T,Y,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:ii()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const It=T=>I=>{var F;if((F=T.onMouseDown)==null||F.call(T,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const W=vn(I,C);if(W!==!1){const{newValue:H,activeIndex:ze}=E({finger:W});xn({sliderRef:Re,activeIndex:ze,setActive:j}),q(H),G&&!Sn(H,D)&&G(I,H,ze)}ue.current=0;const Y=yr(Re.current);Y.addEventListener("mousemove",ee,{passive:!0}),Y.addEventListener("mouseup",he)},je=Xn(X?K[0]:c,c,l),Lt=Xn(K[K.length-1],c,l)-je,Gt=(T={})=>{const I=En(T),F={onMouseDown:It(I||{})},W=P({},I,F);return P({},T,{ref:ft},W)},Ar=T=>I=>{var F;(F=T.onMouseOver)==null||F.call(T,I);const W=Number(I.currentTarget.getAttribute("data-index"));O(W)},Or=T=>I=>{var F;(F=T.onMouseLeave)==null||F.call(T,I),O(-1)};return{active:k,axis:Ge,axisProps:ey,dragging:z,focusedThumbIndex:xt,getHiddenInputProps:(T={})=>{var I;const F=En(T),W={onChange:Vt(F||{}),onFocus:Xe(F||{}),onBlur:Ve(F||{}),onKeyDown:mt(F||{})},Y=P({},F,W);return P({tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"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":(I=e.step)!=null?I:void 0,disabled:n},T,Y,{style:P({},lf,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Gt,getThumbProps:(T={})=>{const I=En(T),F={onMouseOver:Ar(I||{}),onMouseLeave:Or(I||{})};return P({},T,I,F)},marks:we,open:A,range:X,rootRef:ft,trackLeap:Lt,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const ny=e=>!e||!Gr(e);function oy(e){return sn("MuiSlider",e)}const tt=sl("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"]),ay=e=>{const{open:t}=e;return{offset:bt(t&&tt.valueLabelOpen),circle:tt.valueLabelCircle,label:tt.valueLabelLabel}};function Xl(e){const{children:t,className:r,value:n}=e,o=ay(e);return t?N.cloneElement(t,{className:bt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:bt(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"&&(Xl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const sy=["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 li(e){return e}const iy=Ot("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"},[`&.${tt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${tt.dragging}`]:{[`& .${tt.thumb}, & .${tt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),ly=Ot("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),cy=Ot("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:P({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:P({backgroundColor:oa(e.palette[r].main,.62),borderColor:oa(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:na(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:na(e.palette[r].main,.5)})))}))]}}),uy=Ot("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%)"},[`&.${tt.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, &.${tt.focusVisible}`]:P({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${_s(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${tt.active}`]:P({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${_s(e.palette[r].main,.16)}`})}}))]}}),dy=Ot(Xl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>P({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%"},[`&.${tt.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%"},[`&.${tt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),fy=Ot("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>La(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}}]})),hy=Ot("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>La(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>P({},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}}]})),my=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 Ta(u,oy,i)},py=({children:e})=>e,Yl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,f,h,b,y,_,g,S,R,C,k,j,A,O,z,le,ue;const D=Va({props:t,name:"MuiSlider"}),q=mf(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Pe="primary",classes:Ie,className:st,disableSwap:xt=!1,disabled:qe=!1,getAriaLabel:Re,getAriaValueText:Mt,marks:ft=!1,max:Xe=100,min:Ve=0,orientation:ht="horizontal",shiftStep:mt=10,size:Vt="medium",step:St=1,scale:Ge=li,slotProps:E,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=li}=D,It=Ue(D,sy),je=P({},D,{isRtl:q,max:Xe,min:Ve,classes:Ie,disabled:qe,disableSwap:xt,orientation:ht,marks:ft,color:Pe,size:Vt,step:St,shiftStep:mt,scale:Ge,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Lt,getRootProps:Gt,getHiddenInputProps:Ar,getThumbProps:Or,open:Tr,active:rr,axis:it,focusedThumbIndex:T,range:I,dragging:F,marks:W,values:Y,trackOffset:H,trackLeap:ze,getThumbStyle:Ye}=ry(P({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=my(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:iy,kt=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:ly,nr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:cy,Er=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:uy,wt=(f=(h=ee==null?void 0:ee.valueLabel)!=null?h:ce.ValueLabel)!=null?f:dy,zt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:fy,Wt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:hy,Mr=(S=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?S:"input",Ir=(C=E==null?void 0:E.root)!=null?C:Q.root,hn=(k=E==null?void 0:E.rail)!=null?k:Q.rail,Lr=(j=E==null?void 0:E.track)!=null?j:Q.track,or=(A=E==null?void 0:E.thumb)!=null?A:Q.thumb,ar=(O=E==null?void 0:E.valueLabel)!=null?O:Q.valueLabel,Po=(z=E==null?void 0:E.mark)!=null?z:Q.mark,Ao=(le=E==null?void 0:E.markLabel)!=null?le:Q.markLabel,mn=(ue=E==null?void 0:E.input)!=null?ue:Q.input,pn=$t({elementType:$e,getSlotProps:Gt,externalSlotProps:Ir,externalForwardedProps:It,additionalProps:P({},ny($e)&&{as:we}),ownerState:P({},je,Ir==null?void 0:Ir.ownerState),className:[te.root,st]}),Oo=$t({elementType:kt,externalSlotProps:hn,ownerState:je,className:te.rail}),To=$t({elementType:nr,externalSlotProps:Lr,additionalProps:{style:P({},Lt[it].offset(H),Lt[it].leap(ze))},ownerState:P({},je,Lr==null?void 0:Lr.ownerState),className:te.track}),kr=$t({elementType:Er,getSlotProps:Or,externalSlotProps:or,ownerState:P({},je,or==null?void 0:or.ownerState),className:te.thumb}),Eo=$t({elementType:wt,externalSlotProps:ar,ownerState:P({},je,ar==null?void 0:ar.ownerState),className:te.valueLabel}),p=$t({elementType:zt,externalSlotProps:Po,ownerState:je,className:te.mark}),w=$t({elementType:Wt,externalSlotProps:Ao,ownerState:je,className:te.markLabel}),M=$t({elementType:Mr,getSlotProps:Ar,externalSlotProps:mn,ownerState:je});return s.jsxs($e,P({},pn,{children:[s.jsx(kt,P({},Oo)),s.jsx(nr,P({},To)),W.filter($=>$.value>=Ve&&$.value<=Xe).map(($,U)=>{const re=Xn($.value,Ve,Xe),V=Lt[it].offset(re);let B;return he===!1?B=Y.indexOf($.value)!==-1:B=he==="normal"&&(I?$.value>=Y[0]&&$.value<=Y[Y.length-1]:$.value<=Y[0])||he==="inverted"&&(I?$.value<=Y[0]||$.value>=Y[Y.length-1]:$.value>=Y[0]),s.jsxs(N.Fragment,{children:[s.jsx(zt,P({"data-index":U},p,!Gr(zt)&&{markActive:B},{style:P({},V,p.style),className:bt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Wt,P({"aria-hidden":!0,"data-index":U},w,!Gr(Wt)&&{markLabelActive:B},{style:P({},V,w.style),className:bt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Y.map(($,U)=>{const re=Xn($,Ve,Xe),V=Lt[it].offset(re),B=Le==="off"?py:wt;return s.jsx(B,P({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Ge($),U):ke,index:U,open:Tr===U||rr===U||Le==="on",disabled:qe},Eo,{children:s.jsx(Er,P({"data-index":U},kr,{className:bt(te.thumb,kr.className,rr===U&&te.active,T===U&&te.focusVisible),style:P({},V,Ye(U),kr.style),children:s.jsx(Mr,P({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Ge($),"aria-labelledby":K,"aria-valuetext":Mt?Mt(Ge($),U):X,value:Y[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Yl.propTypes={"aria-label":ms(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":m.string,"aria-valuetext":ms(m.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var gy="[object Number]";function yy(e){return typeof e=="number"||Pt(e)&&Jt(e)==gy}const Zl=De.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!yy(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Yl,{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"}}})]})}),Ql=De.observer(({store:e})=>{const{t}=Ut.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(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(Zl,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),ec=Z.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),_y=De.observer(({store:e})=>{const t=Z.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Ct.poseToWandelscriptString(n):""}return jr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(ec,{label:"Pose",value:r(),ref:t})})});var by="__lodash_hash_undefined__";function vy(e){return this.__data__.set(e,by),this}function xy(e){return this.__data__.has(e)}function Yn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Et;++t<r;)this.add(e[t])}Yn.prototype.add=Yn.prototype.push=vy;Yn.prototype.has=xy;function Sy(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 wy(e,t){return e.has(t)}var Ry=1,jy=2;function tc(e,t,r,n,o,a){var i=r&Ry,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 f=-1,h=!0,b=r&jy?new Yn:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var y=e[f],_=t[f];if(n)var g=i?n(_,y,f,t,e,a):n(y,_,f,e,t,a);if(g!==void 0){if(g)continue;h=!1;break}if(b){if(!Sy(t,function(S,R){if(!wy(b,R)&&(y===S||o(y,S,r,n,a)))return b.push(R)})){h=!1;break}}else if(!(y===_||o(y,_,r,n,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function Cy(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Py(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ay=1,Oy=2,Ty="[object Boolean]",Ey="[object Date]",My="[object Error]",Iy="[object Map]",Ly="[object Number]",ky="[object RegExp]",$y="[object Set]",Ny="[object String]",Fy="[object Symbol]",Dy="[object ArrayBuffer]",Uy="[object DataView]",ci=Dt?Dt.prototype:void 0,Wo=ci?ci.valueOf:void 0;function By(e,t,r,n,o,a,i){switch(r){case Uy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Dy:return!(e.byteLength!=t.byteLength||!a(new Jn(e),new Jn(t)));case Ty:case Ey:case Ly:return cn(+e,+t);case My:return e.name==t.name&&e.message==t.message;case ky:case Ny:return e==t+"";case Iy:var l=Cy;case $y:var c=n&Ay;if(l||(l=Py),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=Oy,i.set(e,t);var d=tc(l(e),l(t),n,o,a,i);return i.delete(e),d;case Fy:if(Wo)return Wo.call(e)==Wo.call(t)}return!1}function Jy(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Vy(e,t,r){var n=t(e);return ot(e)?n:Jy(n,r(e))}function Gy(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 zy(){return[]}var Wy=Object.prototype,Hy=Wy.propertyIsEnumerable,ui=Object.getOwnPropertySymbols,Ky=ui?function(e){return e==null?[]:(e=Object(e),Gy(ui(e),function(t){return Hy.call(e,t)}))}:zy,qy=Al(Object.keys,Object),Xy=Object.prototype,Yy=Xy.hasOwnProperty;function Zy(e){if(!Na(e))return qy(e);var t=[];for(var r in Object(e))Yy.call(e,r)&&r!="constructor"&&t.push(r);return t}function Wa(e){return un(e)?Ll(e):Zy(e)}function di(e){return Vy(e,Wa,Ky)}var Qy=1,e1=Object.prototype,t1=e1.hasOwnProperty;function r1(e,t,r,n,o,a){var i=r&Qy,l=di(e),c=l.length,u=di(t),d=u.length;if(c!=d&&!i)return!1;for(var f=c;f--;){var h=l[f];if(!(i?h in t:t1.call(t,h)))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;++f<c;){h=l[f];var S=e[h],R=t[h];if(n)var C=i?n(R,S,h,t,e,a):n(S,R,h,e,t,a);if(!(C===void 0?S===R||o(S,R,r,n,a):C)){_=!1;break}g||(g=h=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var ua=tr(ut,"DataView"),da=tr(ut,"Promise"),fa=tr(ut,"Set"),ha=tr(ut,"WeakMap"),fi="[object Map]",n1="[object Object]",hi="[object Promise]",mi="[object Set]",pi="[object WeakMap]",gi="[object DataView]",o1=er(ua),a1=er(Yr),s1=er(da),i1=er(fa),l1=er(ha),Ft=Jt;(ua&&Ft(new ua(new ArrayBuffer(1)))!=gi||Yr&&Ft(new Yr)!=fi||da&&Ft(da.resolve())!=hi||fa&&Ft(new fa)!=mi||ha&&Ft(new ha)!=pi)&&(Ft=function(e){var t=Jt(e),r=t==n1?e.constructor:void 0,n=r?er(r):"";if(n)switch(n){case o1:return gi;case a1:return fi;case s1:return hi;case i1:return mi;case l1:return pi}return t});var c1=1,yi="[object Arguments]",_i="[object Array]",Rn="[object Object]",u1=Object.prototype,bi=u1.hasOwnProperty;function d1(e,t,r,n,o,a){var i=ot(e),l=ot(t),c=i?_i:Ft(e),u=l?_i:Ft(t);c=c==yi?Rn:c,u=u==yi?Rn:u;var d=c==Rn,f=u==Rn,h=c==u;if(h&&Gn(e)){if(!Gn(t))return!1;i=!0,d=!1}if(h&&!d)return a||(a=new vt),i||Da(e)?tc(e,t,r,n,o,a):By(e,t,c,r,n,o,a);if(!(r&c1)){var b=d&&bi.call(e,"__wrapped__"),y=f&&bi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new vt),o(_,g,r,n,a)}}return h?(a||(a=new vt),r1(e,t,r,n,o,a)):!1}function vo(e,t,r,n,o){return e===t?!0:e==null||t==null||!Pt(e)&&!Pt(t)?e!==e&&t!==t:d1(e,t,r,n,vo,o)}function f1(e,t){return vo(e,t)}const h1=({store:e})=>{const{t}=Ut.useTranslation(),[r,n]=Z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);jr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;f1(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},m1=De.observer(({store:e})=>{const{t}=Ut.useTranslation();function r(f,h){(h==="translate"||h==="rotate")&&e.setSelectedCartesianMotionType(h)}Vl(()=>[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}),Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.selectedCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(f,h){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:f.axis,direction:f.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:h.mm}:{type:"rotate",distanceRads:Ct.degreesToRadians(h.degrees)}})})}async function i(f){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(f,e.selectedDiscreteIncrement);f.motionType==="translate"?await e.jogger.startTCPTranslation({axis:f.axis,direction:f.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:f.axis,direction:f.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(Dg,{})},{id:"y",color:"#42A705",icon:s.jsx(Bg,{})},{id:"z",color:"#0075FF",icon:s.jsx(Vg,{})}];function u(f){return t("General.mm.variable",{amount:f.toFixed(1)})}function d(f){return t("General.degree.variable",{amount:Ct.radiansToDegrees(f).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(_y,{store:e}),s.jsx(Kg,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(f=>s.jsx(ca,{color:f.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[f.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:f.id.toUpperCase()})]}),getDisplayedValue:()=>{var h;return u(((h=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:h.position[f.id])||0)},startJogging:h=>i({axis:f.id,motionType:"translate",direction:h}),stopJogging:l},f.id)),e.selectedCartesianMotionType==="rotate"&&c.map(f=>s.jsx(ca,{color:f.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Ng,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:f.id.toUpperCase()})]}),getDisplayedValue:()=>{var h,b;return d(((b=(h=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:h.orientation)==null?void 0:b[f.id])||0)},startJogging:h=>i({axis:f.id,motionType:"rotate",direction:h}),stopJogging:l},f.id))]}),s.jsx(Ql,{store:e}),s.jsx(h1,{store:e})]})}),p1=De.observer(({store:e})=>{const t=Z.useRef(null);Ut.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return jr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(ec,{label:"Pose",value:r(),ref:t})})}),g1=De.observer(({store:e})=>{Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(p1,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?Ct.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?Ct.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(Kl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?Ct.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Ql,{store:e})]})});function y1(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 _1(e,t){return e&&Cl(e,t,Wa)}function b1(e,t){return function(r,n){if(r==null)return r;if(!un(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 v1=b1(_1);function x1(e,t,r,n){return v1(e,function(o,a,i){t(n,o,r(o),i)}),n}var S1=1,w1=2;function R1(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 vt,f;if(!(f===void 0?vo(u,c,S1|w1,n,d):f))return!1}}return!0}function rc(e){return e===e&&!Je(e)}function j1(e){for(var t=Wa(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,rc(o)]}return t}function nc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function C1(e){var t=j1(e);return t.length==1&&t[0][2]?nc(t[0][0],t[0][1]):function(r){return r===e||R1(r,e,t)}}var P1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A1=/^\w*$/;function Ha(e,t){if(ot(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||bo(e)?!0:A1.test(e)||!P1.test(e)||t!=null&&e in Object(t)}var O1="Expected a function";function Ka(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O1);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(Ka.Cache||Et),r}Ka.Cache=Et;var T1=500;function E1(e){var t=Ka(e,function(n){return r.size===T1&&r.clear(),n}),r=t.cache;return t}var M1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I1=/\\(\\)?/g,L1=E1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(M1,function(r,n,o,a){t.push(o?a.replace(I1,"$1"):n||r)}),t});function k1(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 $1=1/0,vi=Dt?Dt.prototype:void 0,xi=vi?vi.toString:void 0;function oc(e){if(typeof e=="string")return e;if(ot(e))return k1(e,oc)+"";if(bo(e))return xi?xi.call(e):"";var t=e+"";return t=="0"&&1/e==-$1?"-0":t}function ac(e){return e==null?"":oc(e)}function sc(e,t){return ot(e)?e:Ha(e,t)?[e]:L1(ac(e))}var N1=1/0;function xo(e){if(typeof e=="string"||bo(e))return e;var t=e+"";return t=="0"&&1/e==-N1?"-0":t}function ic(e,t){t=sc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xo(t[r++])];return r&&r==n?e:void 0}function F1(e,t,r){var n=e==null?void 0:ic(e,t);return n===void 0?r:n}function D1(e,t){return e!=null&&t in Object(e)}function U1(e,t,r){t=sc(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=xo(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&&Fa(o)&&Ua(i,o)&&(ot(e)||Vn(e)))}function B1(e,t){return e!=null&&U1(e,t,D1)}var J1=1,V1=2;function G1(e,t){return Ha(e)&&rc(t)?nc(xo(e),t):function(r){var n=F1(r,e);return n===void 0&&n===t?B1(r,e):vo(t,n,J1|V1)}}function z1(e){return function(t){return t==null?void 0:t[e]}}function W1(e){return function(t){return ic(t,e)}}function H1(e){return Ha(e)?z1(xo(e)):W1(e)}function K1(e){return typeof e=="function"?e:e==null?ka:typeof e=="object"?ot(e)?G1(e[0],e[1]):C1(e):H1(e)}function q1(e,t){return function(r,n){var o=ot(r)?y1:x1,a={};return o(r,e,K1(n),a)}}var jn=q1(function(e,t,r){go(e,r,t)}),X1=0;function Y1(e){var t=++X1;return ac(e)+t}const ma=[{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}],Z1=[{id:"continuous"},...ma];class qa{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 qa(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=Ct.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return Z1}get discreteIncrementOptions(){return ma}get incrementOptionsById(){return jn(this.incrementOptions,t=>t.id)}get tabsById(){return jn(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 jn(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 jn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return ma.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=Y1();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}function lc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Q1}=Object.prototype,{getPrototypeOf:Xa}=Object,So=(e=>t=>{const r=Q1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),dt=e=>(e=e.toLowerCase(),t=>So(t)===e),wo=e=>t=>typeof t===e,{isArray:Cr}=Array,en=wo("undefined");function e_(e){return e!==null&&!en(e)&&e.constructor!==null&&!en(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cc=dt("ArrayBuffer");function t_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cc(e.buffer),t}const r_=wo("string"),Ke=wo("function"),uc=wo("number"),Ro=e=>e!==null&&typeof e=="object",n_=e=>e===!0||e===!1,Ln=e=>{if(So(e)!=="object")return!1;const t=Xa(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},o_=dt("Date"),a_=dt("File"),s_=dt("Blob"),i_=dt("FileList"),l_=e=>Ro(e)&&Ke(e.pipe),c_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=So(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},u_=dt("URLSearchParams"),[d_,f_,h_,m_]=["ReadableStream","Request","Response","Headers"].map(dt),p_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Cr(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 dc(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 Kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fc=e=>!en(e)&&e!==Kt;function pa(){const{caseless:e}=fc(this)&&this||{},t={},r=(n,o)=>{const a=e&&dc(t,o)||o;Ln(t[a])&&Ln(n)?t[a]=pa(t[a],n):Ln(n)?t[a]=pa({},n):Cr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&dn(arguments[n],r);return t}const g_=(e,t,r,{allOwnKeys:n}={})=>(dn(t,(o,a)=>{r&&Ke(o)?e[a]=lc(o,r):e[a]=o},{allOwnKeys:n}),e),y_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),__=(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)},b_=(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&&Xa(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},v_=(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},x_=e=>{if(!e)return null;if(Cr(e))return e;let t=e.length;if(!uc(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},S_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xa(Uint8Array)),w_=(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])}},R_=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},j_=dt("HTMLFormElement"),C_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Si=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),P_=dt("RegExp"),hc=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};dn(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},A_=e=>{hc(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},O_=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Cr(e)?n(e):n(String(e).split(t)),r},T_=()=>{},E_=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ho="abcdefghijklmnopqrstuvwxyz",wi="0123456789",mc={DIGIT:wi,ALPHA:Ho,ALPHA_DIGIT:Ho+Ho.toUpperCase()+wi},M_=(e=16,t=mc.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function I_(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const L_=e=>{const t=new Array(10),r=(n,o)=>{if(Ro(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=Cr(n)?[]:{};return dn(n,(i,l)=>{const c=r(i,o+1);!en(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},k_=dt("AsyncFunction"),$_=e=>e&&(Ro(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),pc=((e,t)=>e?setImmediate:t?((r,n)=>(Kt.addEventListener("message",({source:o,data:a})=>{o===Kt&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Kt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke(Kt.postMessage)),N_=typeof queueMicrotask<"u"?queueMicrotask.bind(Kt):typeof process<"u"&&process.nextTick||pc,v={isArray:Cr,isArrayBuffer:cc,isBuffer:e_,isFormData:c_,isArrayBufferView:t_,isString:r_,isNumber:uc,isBoolean:n_,isObject:Ro,isPlainObject:Ln,isReadableStream:d_,isRequest:f_,isResponse:h_,isHeaders:m_,isUndefined:en,isDate:o_,isFile:a_,isBlob:s_,isRegExp:P_,isFunction:Ke,isStream:l_,isURLSearchParams:u_,isTypedArray:S_,isFileList:i_,forEach:dn,merge:pa,extend:g_,trim:p_,stripBOM:y_,inherits:__,toFlatObject:b_,kindOf:So,kindOfTest:dt,endsWith:v_,toArray:x_,forEachEntry:w_,matchAll:R_,isHTMLForm:j_,hasOwnProperty:Si,hasOwnProp:Si,reduceDescriptors:hc,freezeMethods:A_,toObjectSet:O_,toCamelCase:C_,noop:T_,toFiniteNumber:E_,findKey:dc,global:Kt,isContextDefined:fc,ALPHABET:mc,generateString:M_,isSpecCompliantForm:I_,toJSONObject:L_,isAsyncFn:k_,isThenable:$_,setImmediate:pc,asap:N_};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)}v.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gc=J.prototype,yc={};["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=>{yc[e]={value:e}});Object.defineProperties(J,yc);Object.defineProperty(gc,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create(gc);return v.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 F_=null;function ga(e){return v.isPlainObject(e)||v.isArray(e)}function _c(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Ri(e,t,r){return e?e.concat(t).map(function(o,a){return o=_c(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function D_(e){return v.isArray(e)&&!e.some(ga)}const U_=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function jo(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,g){return!v.isUndefined(g[_])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(o))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!c&&v.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let S=y;if(y&&!g&&typeof y=="object"){if(v.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&D_(y)||(v.isFileList(y)||v.endsWith(_,"[]"))&&(S=v.toArray(y)))return _=_c(_),S.forEach(function(C,k){!(v.isUndefined(C)||C===null)&&t.append(i===!0?Ri([_],k,a):i===null?_:_+"[]",u(C))}),!1}return ga(y)?!0:(t.append(Ri(g,_,a),u(y)),!1)}const f=[],h=Object.assign(U_,{defaultVisitor:d,convertValue:u,isVisitable:ga});function b(y,_){if(!v.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(y),v.forEach(y,function(S,R){(!(v.isUndefined(S)||S===null)&&o.call(t,S,v.isString(R)?R.trim():R,_,h))===!0&&b(S,_?_.concat(R):[R])}),f.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ji(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&&jo(e,this,t)}const bc=Ya.prototype;bc.append=function(t,r){this._pairs.push([t,r])};bc.toString=function(t){const r=t?function(n){return t.call(this,n,ji)}:ji;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function B_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vc(e,t,r){if(!t)return e;const n=r&&r.encode||B_,o=r&&r.serialize;let a;if(o?a=o(t,r):a=v.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 Ci{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const xc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},J_=typeof URLSearchParams<"u"?URLSearchParams:Ya,V_=typeof FormData<"u"?FormData:null,G_=typeof Blob<"u"?Blob:null,z_={isBrowser:!0,classes:{URLSearchParams:J_,FormData:V_,Blob:G_},protocols:["http","https","file","blob","url","data"]},Za=typeof window<"u"&&typeof document<"u",W_=(e=>Za&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),H_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",K_=Za&&window.location.href||"http://localhost",q_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Za,hasStandardBrowserEnv:W_,hasStandardBrowserWebWorkerEnv:H_,origin:K_},Symbol.toStringTag,{value:"Module"})),lt={...q_,...z_};function X_(e,t){return jo(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return lt.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Y_(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Z_(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 Sc(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&&v.isArray(o)?o.length:i,c?(v.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!v.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&v.isArray(o[i])&&(o[i]=Z_(o[i])),!l)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,o)=>{t(Y_(n),o,r,0)}),r}return null}function Q_(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const fn={transitional:xc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=v.isObject(t);if(a&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return o?JSON.stringify(Sc(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return X_(t,this.formSerializer).toString();if((l=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return jo(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Q_(t)):t}],transformResponse:[function(t){const r=this.transitional||fn.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.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:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{fn.headers[e]={}});const eb=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),tb=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
79
|
+
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&eb[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Pi=Symbol("internals");function Jr(e){return e&&String(e).trim().toLowerCase()}function kn(e){return e===!1||e==null?e:v.isArray(e)?e.map(kn):String(e)}function rb(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 nb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ko(e,t,r,n,o){if(v.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!v.isString(t)){if(v.isString(n))return t.indexOf(n)!==-1;if(v.isRegExp(n))return n.test(t)}}function ob(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ab(e,t){const r=v.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=Jr(c);if(!d)throw new Error("header name must be a non-empty string");const f=v.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||c]=kn(l))}const i=(l,c)=>v.forEach(l,(u,d)=>a(u,d,c));if(v.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(v.isString(t)&&(t=t.trim())&&!nb(t))i(tb(t),r);else if(v.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=Jr(t),t){const n=v.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return rb(o);if(v.isFunction(r))return r.call(this,o,n);if(v.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Jr(t),t){const n=v.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ko(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Jr(i),i){const l=v.findKey(n,i);l&&(!r||Ko(n,n[l],l,r))&&(delete n[l],o=!0)}}return v.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||Ko(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return v.forEach(this,(o,a)=>{const i=v.findKey(n,a);if(i){r[i]=kn(o),delete r[a];return}const l=t?ob(a):String(a).trim();l!==a&&delete r[a],r[l]=kn(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return v.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&v.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
80
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Pi]=this[Pi]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Jr(i);n[l]||(ab(o,i),n[l]=!0)}return v.isArray(t)?t.forEach(a):a(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Fe);function qo(e,t){const r=this||fn,n=t||r,o=Fe.from(n.headers);let a=n.data;return v.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function wc(e){return!!(e&&e.__CANCEL__)}function Pr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Pr,J,{__CANCEL__:!0});function Rc(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 sb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ib(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 f=a,h=0;for(;f!==o;)h+=r[f++],f=f%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(h*1e3/b):void 0}}function lb(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(),f=d-r;f>=n?i(u,d):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},n-f)))},()=>o&&i(o)]}const Zn=(e,t,r=3)=>{let n=0;const o=ib(50,250);return lb(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const f={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(f)},r)},Ai=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Oi=e=>(...t)=>v.asap(()=>e(...t)),cb=lt.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=v.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),ub=lt.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),v.isString(n)&&i.push("path="+n),v.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 db(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function jc(e,t){return e&&!db(t)?fb(e,t):t}const Ti=e=>e instanceof Fe?{...e}:e;function Qt(e,t){t=t||{};const r={};function n(u,d,f){return v.isPlainObject(u)&&v.isPlainObject(d)?v.merge.call({caseless:f},u,d):v.isPlainObject(d)?v.merge({},d):v.isArray(d)?d.slice():d}function o(u,d,f){if(v.isUndefined(d)){if(!v.isUndefined(u))return n(void 0,u,f)}else return n(u,d,f)}function a(u,d){if(!v.isUndefined(d))return n(void 0,d)}function i(u,d){if(v.isUndefined(d)){if(!v.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,f){if(f in t)return n(u,d);if(f 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(Ti(u),Ti(d),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=c[d]||o,h=f(e[d],t[d],d);v.isUndefined(h)&&f!==l||(r[d]=h)}),r}const Cc=e=>{const t=Qt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=vc(jc(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(v.isFormData(r)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(lt.hasStandardBrowserEnv&&(n&&v.isFunction(n)&&(n=n(t)),n||n!==!1&&cb(t.url))){const u=o&&a&&ub.read(a);u&&i.set(o,u)}return t},hb=typeof XMLHttpRequest<"u",mb=hb&&function(e){return new Promise(function(r,n){const o=Cc(e);let a=o.data;const i=Fe.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,f,h,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 S(){if(!g)return;const C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};Rc(function(O){r(O),_()},function(O){n(O),_()},j),g=null}"onloadend"in g?g.onloadend=S:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(S)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||xc;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new J(k,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&v.forEach(i.toJSON(),function(k,j){g.setRequestHeader(j,k)}),v.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),u&&([h,y]=Zn(u,!0),g.addEventListener("progress",h)),c&&g.upload&&([f,b]=Zn(c),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=C=>{g&&(n(!C||C.type?new Pr(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 R=sb(o.url);if(R&<.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},pb=(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 Pr(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}]},gb=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},yb=async function*(e,t,r){for await(const n of e)yield*gb(ArrayBuffer.isView(n)?n:await r(String(n)),t)},Ei=(e,t,r,n,o)=>{const a=yb(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:f}=await a.next();if(d){c(),u.close();return}let h=f.byteLength;if(r){let b=i+=h;r(b)}u.enqueue(new Uint8Array(f))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},Co=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Pc=Co&&typeof ReadableStream=="function",ya=Co&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ac=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_b=Pc&&Ac(()=>{let e=!1;const t=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Mi=64*1024,_a=Pc&&Ac(()=>v.isReadableStream(new Response("").body)),Qn={stream:_a&&(e=>e.body)};Co&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qn[t]&&(Qn[t]=v.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const bb=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await ya(e)).byteLength},vb=async(e,t)=>{const r=v.toFiniteNumber(e.getContentLength());return r??bb(t)},xb=Co&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:h}=Cc(e);u=u?(u+"").toLowerCase():"text";let[b,y]=o||a||i?pb([o,a],i):[],_,g;const S=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(c&&_b&&r!=="get"&&r!=="head"&&(R=await vb(d,n))!==0){let A=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(v.isFormData(n)&&(O=A.headers.get("content-type"))&&d.setContentType(O),A.body){const[z,le]=Ai(R,Zn(Oi(c)));n=Ei(A.body,Mi,z,le,ya)}}v.isString(f)||(f=f?"include":"omit"),g=new Request(t,{...h,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:f});let C=await fetch(g);const k=_a&&(u==="stream"||u==="response");if(_a&&(l||k)){const A={};["status","statusText","headers"].forEach(ue=>{A[ue]=C[ue]});const O=v.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&Ai(O,Zn(Oi(l),!0))||[];C=new Response(Ei(C.body,Mi,z,()=>{le&&le(),k&&S()},ya),A)}u=u||"text";let j=await Qn[v.findKey(Qn,u)||"text"](C,e);return!k&&S(),y&&y(),await new Promise((A,O)=>{Rc(A,O,{data:j,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw S(),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)}}),ba={http:F_,xhr:mb,fetch:xb};v.forEach(ba,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ii=e=>`- ${e}`,Sb=e=>v.isFunction(e)||e===null||e===!1,Oc={getAdapter:e=>{e=v.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,!Sb(r)&&(n=ba[(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 :
|
|
81
81
|
`+a.map(Ii).join(`
|
|
82
|
-
`):" "+Ii(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:ba};function Xo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pr(null,e)}function Li(e){return Xo(e),e.headers=
|
|
83
|
-
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Qt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&va.assertOptions(n,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean)},!1),o!=null&&(v.isFunction(o)?r.paramsSerializer={serialize:o}:va.assertOptions(o,{encode:Nt.function,serialize:Nt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&v.merge(a.common,a[r.method]);a&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=
|
|
82
|
+
`):" "+Ii(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:ba};function Xo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pr(null,e)}function Li(e){return Xo(e),e.headers=Fe.from(e.headers),e.data=qo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Oc.getAdapter(e.adapter||fn.adapter)(e).then(function(n){return Xo(e),n.data=qo.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return wc(n)||(Xo(e),n&&n.response&&(n.response.data=qo.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const Tc="1.7.4",Qa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qa[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ki={};Qa.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Tc+"] 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&&!ki[i]&&(ki[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 wb(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 va={assertOptions:wb,validators:Qa},Nt=va.validators;let Xt=class{constructor(t){this.defaults=t,this.interceptors={request:new Ci,response:new Ci}}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+=`
|
|
83
|
+
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Qt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&va.assertOptions(n,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean)},!1),o!=null&&(v.isFunction(o)?r.paramsSerializer={serialize:o}:va.assertOptions(o,{encode:Nt.function,serialize:Nt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&v.merge(a.common,a[r.method]);a&&v.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,f=0,h;if(!c){const y=[Li.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),h=y.length,d=Promise.resolve(r);f<h;)d=d.then(y[f++],y[f++]);return d}h=l.length;let b=r;for(f=0;f<h;){const y=l[f++],_=l[f++];try{b=y(b)}catch(g){_.call(this,g);break}}try{d=Li.call(this,b)}catch(y){return Promise.reject(y)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=Qt(this.defaults,t);const r=jc(t.baseURL,t.url);return vc(r,t.params,t.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(t){Xt.prototype[t]=function(r,n){return this.request(Qt(n||{},{method:t,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Qt(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Xt.prototype[t]=r(),Xt.prototype[t+"Form"]=r(!0)});let Rb=class Ec{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 Pr(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 Ec(function(o){t=o}),cancel:t}}};function jb(e){return function(r){return e.apply(null,r)}}function Cb(e){return v.isObject(e)&&e.isAxiosError===!0}const xa={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(xa).forEach(([e,t])=>{xa[t]=e});function Mc(e){const t=new Xt(e),r=lc(Xt.prototype.request,t);return v.extend(r,Xt.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Mc(Qt(e,o))},r}const Se=Mc(fn);Se.Axios=Xt;Se.CanceledError=Pr;Se.CancelToken=Rb;Se.isCancel=wc;Se.VERSION=Tc;Se.toFormData=jo;Se.AxiosError=J;Se.Cancel=Se.CanceledError;Se.all=function(t){return Promise.all(t)};Se.spread=jb;Se.isAxiosError=Cb;Se.mergeConfig=Qt;Se.AxiosHeaders=Fe;Se.formToJSON=e=>Sc(v.isHTMLForm(e)?new FormData(e):e);Se.getAdapter=Oc.getAdapter;Se.HttpStatusCode=xa;Se.default=Se;const{Axios:Nb,AxiosError:$i,CanceledError:Fb,isCancel:Db,CancelToken:Ub,VERSION:Bb,all:Jb,Cancel:Vb,isAxiosError:Gb,spread:zb,toFormData:Wb,AxiosHeaders:Hb,HttpStatusCode:Kb,formToJSON:qb,getAdapter:Xb,mergeConfig:Yb}=Se;function Pb(e){try{return JSON.stringify(e)}catch{return}}function Ab(e){var t,r,n,o;return e instanceof $i&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof $i&&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: ${Pb(e)||e}`}const Ob=e=>{const t=e.softTimeout||3e3,[r,n]=Z.useState(!1);return Z.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(L.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(Tb,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(L.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(L.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},Tb=e=>{const t=Ab(e.error),r=e.error instanceof Error?e.error.stack:null,n=L.useTheme();return s.jsxs(L.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})]})},Eb=Rr(De.observer(e=>{var a,i,l,c;const t=e.nova instanceof Ct.NovaClient?e.nova:new Ct.NovaClient({instanceUrl:e.nova}),r=De.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 qa.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(Z.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),Z.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:f,selectedDiscreteIncrement:h}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:f};h&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(Ni,{children:s.jsx(Ob,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(Ni,{children:s.jsxs(L.Stack,{flexGrow:1,children:[s.jsx(L.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(L.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(L.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(m1,{store:o}),o.currentTab.id==="joint"&&s.jsx(g1,{store:o}),e.children]})]})})}));function Ni({children:e}){return s.jsx(L.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(L.Paper,{sx:{height:"100%"},children:e})})}function Mb(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}const Ib=Rr(De.observer((e=Mb())=>s.jsxs(L.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[s.jsx(L.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(L.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(L.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(L.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(L.DialogActions,{children:s.jsxs(L.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(L.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(L.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]}))),Lb=Array(6).fill(2*Math.PI);exports.JoggingCartesianAxisControl=ca;exports.JoggingJointRotationControl=Kl;exports.JoggingPanel=Eb;exports.NoMotionGroupModal=Ib;exports.PresetEnvironment=ng;exports.Robot=rg;exports.SafetyZonesRenderer=sg;exports.SupportedRobot=Gl;exports.VelocitySlider=Zl;exports.WandelscriptEditor=Ip;exports.defaultAxisConfig=Lb;exports.defaultGetModel=Ja;exports.useAnimationFrame=jr;exports.useAutorun=Jl;exports.useMounted=_o;exports.useReaction=Vl;
|
|
84
84
|
//# sourceMappingURL=index.cjs.map
|