@wandelbots/wandelbots-js-react-components 1.4.2 → 1.4.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 CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pe=require("react"),ra=require("@monaco-editor/react"),Hi=require("shiki"),qi=require("@shikijs/monaco"),U=require("@mui/material"),x=require("@react-spring/three"),we=require("@react-three/drei"),Ki=require("@react-three/fiber"),Er=require("mobx"),xt=require("three"),Xi=require("three-stdlib"),tt=require("mobx-react-lite"),Yi=require("@emotion/styled"),er=require("@emotion/react"),At=require("react-i18next"),na=require("@mui/icons-material"),Zi=require("i18next-browser-languagedetector"),tr=require("@wandelbots/wandelbots-js"),bt=require("lodash-es");function bs(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 V=bs(Pe),Qi=bs(xt);function el(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ot(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 go={exports:{}},_r={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pe=require("react"),ra=require("@monaco-editor/react"),qi=require("shiki"),Ki=require("@shikijs/monaco"),U=require("@mui/material"),x=require("@react-spring/three"),we=require("@react-three/drei"),Xi=require("@react-three/fiber"),Er=require("mobx"),xt=require("three"),Yi=require("three-stdlib"),tt=require("mobx-react-lite"),Zi=require("@emotion/styled"),er=require("@emotion/react"),At=require("react-i18next"),na=require("@mui/icons-material"),Qi=require("i18next-browser-languagedetector"),tr=require("@wandelbots/wandelbots-js"),bt=require("lodash-es");function _s(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 V=_s(Pe),el=_s(xt);function tl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ot(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 go={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 oa;function tl(){if(oa)return _r;oa=1;var e=Pe,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,m={},f=null,_=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(_=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(m[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:t,type:l,key:f,ref:_,props:m,_owner:o.current}}return _r.Fragment=r,_r.jsx=i,_r.jsxs=i,_r}var vr={};/**
9
+ */var oa;function rl(){if(oa)return _r;oa=1;var e=Pe,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,m={},f=null,_=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(_=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(m[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:t,type:l,key:f,ref:_,props:m,_owner:o.current}}return _r.Fragment=r,_r.jsx=i,_r.jsxs=i,_r}var vr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,7 +14,7 @@
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 aa;function rl(){return aa||(aa=1,process.env.NODE_ENV!=="production"&&function(){var e=Pe,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g=Symbol.iterator,y="@@iterator";function b(h){if(h===null||typeof h!="object")return null;var j=g&&h[g]||h[y];return typeof j=="function"?j:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(h){{for(var j=arguments.length,L=new Array(j>1?j-1:0),F=1;F<j;F++)L[F-1]=arguments[F];P("error",h,L)}}function P(h,j,L){{var F=w.ReactDebugCurrentFrame,H=F.getStackAddendum();H!==""&&(j+="%s",L=L.concat([H]));var he=L.map(function(oe){return String(oe)});he.unshift("Warning: "+j),Function.prototype.apply.call(console[h],console,he)}}var k=!1,v=!1,N=!1,I=!1,de=!1,Ee;Ee=Symbol.for("react.module.reference");function Re(h){return!!(typeof h=="string"||typeof h=="function"||h===n||h===a||de||h===o||h===u||h===d||I||h===_||k||v||N||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===m||h.$$typeof===i||h.$$typeof===l||h.$$typeof===c||h.$$typeof===Ee||h.getModuleId!==void 0))}function B(h,j,L){var F=h.displayName;if(F)return F;var H=j.displayName||j.name||"";return H!==""?L+"("+H+")":L}function ae(h){return h.displayName||"Context"}function Q(h){if(h==null)return null;if(typeof h.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){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 h=="object")switch(h.$$typeof){case l:var j=h;return ae(j)+".Consumer";case i:var L=h;return ae(L._context)+".Provider";case c:return B(h,h.render,"ForwardRef");case m:var F=h.displayName||null;return F!==null?F:Q(h.type)||"Memo";case f:{var H=h,he=H._payload,oe=H._init;try{return Q(oe(he))}catch{return null}}}return null}var te=Object.assign,ne=0,be,ce,se,ke,R,M,X;function G(){}G.__reactDisabledLog=!0;function D(){{if(ne===0){be=console.log,ce=console.info,se=console.warn,ke=console.error,R=console.group,M=console.groupCollapsed,X=console.groupEnd;var h={configurable:!0,enumerable:!0,value:G,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}ne++}}function ee(){{if(ne--,ne===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},h,{value:be}),info:te({},h,{value:ce}),warn:te({},h,{value:se}),error:te({},h,{value:ke}),group:te({},h,{value:R}),groupCollapsed:te({},h,{value:M}),groupEnd:te({},h,{value:X})})}ne<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=w.ReactCurrentDispatcher,z;function q(h,j,L){{if(z===void 0)try{throw Error()}catch(H){var F=H.stack.trim().match(/\n( *(at )?)/);z=F&&F[1]||""}return`
17
+ */var aa;function nl(){return aa||(aa=1,process.env.NODE_ENV!=="production"&&function(){var e=Pe,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g=Symbol.iterator,y="@@iterator";function b(h){if(h===null||typeof h!="object")return null;var j=g&&h[g]||h[y];return typeof j=="function"?j:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(h){{for(var j=arguments.length,L=new Array(j>1?j-1:0),F=1;F<j;F++)L[F-1]=arguments[F];P("error",h,L)}}function P(h,j,L){{var F=w.ReactDebugCurrentFrame,H=F.getStackAddendum();H!==""&&(j+="%s",L=L.concat([H]));var he=L.map(function(oe){return String(oe)});he.unshift("Warning: "+j),Function.prototype.apply.call(console[h],console,he)}}var k=!1,v=!1,N=!1,I=!1,de=!1,Ee;Ee=Symbol.for("react.module.reference");function Re(h){return!!(typeof h=="string"||typeof h=="function"||h===n||h===a||de||h===o||h===u||h===d||I||h===_||k||v||N||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===m||h.$$typeof===i||h.$$typeof===l||h.$$typeof===c||h.$$typeof===Ee||h.getModuleId!==void 0))}function B(h,j,L){var F=h.displayName;if(F)return F;var H=j.displayName||j.name||"";return H!==""?L+"("+H+")":L}function ae(h){return h.displayName||"Context"}function Q(h){if(h==null)return null;if(typeof h.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){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 h=="object")switch(h.$$typeof){case l:var j=h;return ae(j)+".Consumer";case i:var L=h;return ae(L._context)+".Provider";case c:return B(h,h.render,"ForwardRef");case m:var F=h.displayName||null;return F!==null?F:Q(h.type)||"Memo";case f:{var H=h,he=H._payload,oe=H._init;try{return Q(oe(he))}catch{return null}}}return null}var te=Object.assign,ne=0,be,ce,se,ke,R,M,X;function G(){}G.__reactDisabledLog=!0;function D(){{if(ne===0){be=console.log,ce=console.info,se=console.warn,ke=console.error,R=console.group,M=console.groupCollapsed,X=console.groupEnd;var h={configurable:!0,enumerable:!0,value:G,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}ne++}}function ee(){{if(ne--,ne===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},h,{value:be}),info:te({},h,{value:ce}),warn:te({},h,{value:se}),error:te({},h,{value:ke}),group:te({},h,{value:R}),groupCollapsed:te({},h,{value:M}),groupEnd:te({},h,{value:X})})}ne<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=w.ReactCurrentDispatcher,z;function q(h,j,L){{if(z===void 0)try{throw Error()}catch(H){var F=H.stack.trim().match(/\n( *(at )?)/);z=F&&F[1]||""}return`
18
18
  `+z+h}}var re=!1,Y;{var Te=typeof WeakMap=="function"?WeakMap:Map;Y=new Te}function O(h,j){if(!h||re)return"";{var L=Y.get(h);if(L!==void 0)return L}var F;re=!0;var H=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var he;he=W.current,W.current=null,D();try{if(j){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Ke){F=Ke}Reflect.construct(h,[],oe)}else{try{oe.call()}catch(Ke){F=Ke}h.call(oe.prototype)}}else{try{throw Error()}catch(Ke){F=Ke}h()}}catch(Ke){if(Ke&&F&&typeof Ke.stack=="string"){for(var K=Ke.stack.split(`
19
19
  `),ze=F.stack.split(`
20
20
  `),Ie=K.length-1,Ne=ze.length-1;Ie>=1&&Ne>=0&&K[Ie]!==ze[Ne];)Ne--;for(;Ie>=1&&Ne>=0;Ie--,Ne--)if(K[Ie]!==ze[Ne]){if(Ie!==1||Ne!==1)do if(Ie--,Ne--,Ne<0||K[Ie]!==ze[Ne]){var ot=`
@@ -22,41 +22,41 @@
22
22
 
23
23
  Check the render method of \``+h+"`."}return""}}function gr(h){return""}var Gr={};function yr(h){{var j=pr();if(!j){var L=typeof h=="string"?h:h.displayName||h.name;L&&(j=`
24
24
 
25
- Check the top-level render call using <`+L+">.")}return j}}function Vt(h,j){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var L=yr(j);if(Gr[L])return;Gr[L]=!0;var F="";h&&h._owner&&h._owner!==Jt.current&&(F=" It was passed a child from "+Q(h._owner.type)+"."),St(h),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',L,F),St(null)}}function Gt(h,j){{if(typeof h!="object")return;if(It(h))for(var L=0;L<h.length;L++){var F=h[L];$t(F)&&Vt(F,j)}else if($t(h))h._store&&(h._store.validated=!0);else if(h){var H=b(h);if(typeof H=="function"&&H!==h.entries)for(var he=H.call(h),oe;!(oe=he.next()).done;)$t(oe.value)&&Vt(oe.value,j)}}}function Vn(h){{var j=h.type;if(j==null||typeof j=="string")return;var L;if(typeof j=="function")L=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===c||j.$$typeof===m))L=j.propTypes;else return;if(L){var F=Q(j);Be(L,h.props,"prop",F,h)}else if(j.PropTypes!==void 0&&!Lt){Lt=!0;var H=Q(j);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Gn(h){{for(var j=Object.keys(h.props),L=0;L<j.length;L++){var F=j[L];if(F!=="children"&&F!=="key"){St(h),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),St(null);break}}h.ref!==null&&(St(h),C("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var zr={};function Wr(h,j,L,F,H,he){{var oe=Re(h);if(!oe){var K="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(K+=" 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 ze=gr();ze?K+=ze:K+=pr();var Ie;h===null?Ie="null":It(h)?Ie="array":h!==void 0&&h.$$typeof===t?(Ie="<"+(Q(h.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):Ie=typeof h,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ie,K)}var Ne=Pt(h,j,L,H,he);if(Ne==null)return Ne;if(oe){var ot=j.children;if(ot!==void 0)if(F)if(It(ot)){for(var zt=0;zt<ot.length;zt++)Gt(ot[zt],h);Object.freeze&&Object.freeze(ot)}else C("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 Gt(ot,h)}if(Ae.call(j,"key")){var Nt=Q(h),Ke=Object.keys(j).filter(function(Wi){return Wi!=="key"}),qn=Ke.length>0?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}";if(!zr[Nt+qn]){var zi=Ke.length>0?"{"+Ke.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+L+">.")}return j}}function Vt(h,j){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var L=yr(j);if(Gr[L])return;Gr[L]=!0;var F="";h&&h._owner&&h._owner!==Jt.current&&(F=" It was passed a child from "+Q(h._owner.type)+"."),St(h),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',L,F),St(null)}}function Gt(h,j){{if(typeof h!="object")return;if(It(h))for(var L=0;L<h.length;L++){var F=h[L];$t(F)&&Vt(F,j)}else if($t(h))h._store&&(h._store.validated=!0);else if(h){var H=b(h);if(typeof H=="function"&&H!==h.entries)for(var he=H.call(h),oe;!(oe=he.next()).done;)$t(oe.value)&&Vt(oe.value,j)}}}function Vn(h){{var j=h.type;if(j==null||typeof j=="string")return;var L;if(typeof j=="function")L=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===c||j.$$typeof===m))L=j.propTypes;else return;if(L){var F=Q(j);Be(L,h.props,"prop",F,h)}else if(j.PropTypes!==void 0&&!Lt){Lt=!0;var H=Q(j);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Gn(h){{for(var j=Object.keys(h.props),L=0;L<j.length;L++){var F=j[L];if(F!=="children"&&F!=="key"){St(h),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),St(null);break}}h.ref!==null&&(St(h),C("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var zr={};function Wr(h,j,L,F,H,he){{var oe=Re(h);if(!oe){var K="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(K+=" 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 ze=gr();ze?K+=ze:K+=pr();var Ie;h===null?Ie="null":It(h)?Ie="array":h!==void 0&&h.$$typeof===t?(Ie="<"+(Q(h.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):Ie=typeof h,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ie,K)}var Ne=Pt(h,j,L,H,he);if(Ne==null)return Ne;if(oe){var ot=j.children;if(ot!==void 0)if(F)if(It(ot)){for(var zt=0;zt<ot.length;zt++)Gt(ot[zt],h);Object.freeze&&Object.freeze(ot)}else C("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 Gt(ot,h)}if(Ae.call(j,"key")){var Nt=Q(h),Ke=Object.keys(j).filter(function(Hi){return Hi!=="key"}),qn=Ke.length>0?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}";if(!zr[Nt+qn]){var Wi=Ke.length>0?"{"+Ke.join(": ..., ")+": ...}":"{}";C(`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} />`,qn,Nt,zi,Nt),zr[Nt+qn]=!0}}return h===n?Gn(Ne):Vn(Ne),Ne}}function zn(h,j,L){return Wr(h,j,L,!0)}function Wn(h,j,L){return Wr(h,j,L,!1)}var br=Wn,Hn=zn;vr.Fragment=n,vr.jsx=br,vr.jsxs=Hn}()),vr}process.env.NODE_ENV==="production"?go.exports=tl():go.exports=rl();var s=go.exports;const nl={$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"},Kn="dark-plus",ol=e=>{const t=ra.useMonaco(),r=U.useTheme();async function n(o){o.languages.register({id:"wandelscript"}),o.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const a=await Hi.createHighlighter({langs:[nl],themes:[Kn]});qi.shikiToMonaco(a,o),o.editor.defineTheme(Kn,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9"}}),e.monacoSetup&&e.monacoSetup(o)}return Pe.useEffect(()=>{t&&n(t)},[t]),t?s.jsx(ra,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:Kn,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null},al="(^joint_[0-9]+$)|(_J[0-9]+$)";function _s(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>_s(t))]}function sl(e,t){return new RegExp(t??al).test(e)}function vs(e,t){return _s(e).filter(r=>sl(r.name,t))}function No(e){Pe.useEffect(e,[])}function il(e){No(()=>Er.autorun(e))}function ll(e,t,r){No(()=>Er.reaction(e,t,r))}function Lr(e){return No(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function Ue({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){x.Globals.assign({frameLoop:"always"});const o=Pe.useRef([]),a=Pe.useRef([]),{scene:i,invalidate:l}=Ki.useThree();Pe.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):vs(f),u(),l())},[]);function c(f){o.current=f,m.start(Object.assign({},o.current))}function u(){const f=a.current.map((_,g)=>d[g].get());r(a.current,f)}il(()=>{const f=e.state.joint_position.joints.filter(_=>_!==void 0);requestAnimationFrame(()=>c(f))});const[d,m]=x.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function cl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 ul({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 dl({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=we.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 fl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 ml({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 hl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 sa({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 pl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 gl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 yl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 bl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 _l({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 vl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 Sl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 xl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 wl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 Rl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 jl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 Cl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 ia="line",la="mesh";function ca({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new xt.Matrix4;function o(c,u){const d=new xt.Vector3,m=new xt.Quaternion,f=new xt.Vector3;n.decompose(d,m,f);const _=d.clone(),g=new xt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new xt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new xt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new xt.Matrix4().makeRotationX(c.alpha));return n.multiply(g),n.decompose(d,m,f),{a:_,b:d}}function a(c,u,d,m){if(!t)return;const f=t[c];if(!f)return;const{a:_,b:g}=o(f,m);u.geometry.setPositions([_.toArray(),g.toArray()].flat()),d.position.set(g.x,g.y,g.z)}function i(c,u){n.identity(),c.forEach((d,m)=>{a(m,d.getObjectByName(ia),d.getObjectByName(la),u[m])})}function l(c){return vs(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:m}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(we.Line,{name:ia,points:[d,m],color:"white",lineWidth:5}),s.jsxs("mesh",{name:la,position:m,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}function Fo(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}function Ss({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Fo,...o}){let a;switch(t){case"UniversalRobots_UR3":a=cl;break;case"UniversalRobots_UR3e":a=ul;break;case"UniversalRobots_UR5":a=dl;break;case"UniversalRobots_UR5e":a=fl;break;case"UniversalRobots_UR10":a=ml;break;case"UniversalRobots_UR10e":a=hl;break;case"Yaskawa_AR900":a=sa;break;case"Yaskawa_GP7":a=sa;break;case"Yaskawa_AR1440":a=pl;break;case"Yaskawa_AR1730":a=gl;break;case"Yaskawa_AR2010":a=yl;break;case"Yaskawa_AR3120":a=bl;break;case"FANUC_CRX10iA":a=_l;break;case"FANUC_CRX25iA":a=vl;break;case"FANUC_CRX25iAL":a=Sl;break;case"FANUC_ARC_Mate_120iD":a=jl;break;case"FANUC_ARC_Mate_100iD":a=Rl;break;case"KUKA_KR210_R2700":a=xl;break;case"KUKA_KR270_R2700":a=wl;break;case"ABB_1200_07_7":a=Cl;break;default:console.warn(`Unknown robot type: ${t}`),a=ca}return s.jsx(Pe.Suspense,{fallback:s.jsx(ca,{rapidlyChangingMotionState:e,dhParameters:r,...o}),children:s.jsx(a,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...o})})}function Pl({connectedMotionGroup:e,getModel:t=Fo,...r}){return e.dhParameters?s.jsx(Ss,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,...r}):null}const El=Array(6).fill(2*Math.PI);function Tl(){return s.jsx(we.Environment,{children:s.jsx(Al,{})})}function Al({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(we.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(we.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(we.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(we.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(we.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(we.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(we.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Ol({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(u=>new Qi.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),c=new Xi.ConvexGeometry(l);return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:c,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}var yo={exports:{}},Hr={exports:{}},_e={};/** @license React v16.13.1
30
+ <%s key={someKey} {...props} />`,qn,Nt,Wi,Nt),zr[Nt+qn]=!0}}return h===n?Gn(Ne):Vn(Ne),Ne}}function zn(h,j,L){return Wr(h,j,L,!0)}function Wn(h,j,L){return Wr(h,j,L,!1)}var br=Wn,Hn=zn;vr.Fragment=n,vr.jsx=br,vr.jsxs=Hn}()),vr}process.env.NODE_ENV==="production"?go.exports=rl():go.exports=nl();var s=go.exports;const ol={$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"},Kn="dark-plus",al=e=>{const t=ra.useMonaco(),r=U.useTheme();async function n(o){o.languages.register({id:"wandelscript"}),o.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const a=await qi.createHighlighter({langs:[ol],themes:[Kn]});Ki.shikiToMonaco(a,o),o.editor.defineTheme(Kn,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9"}}),e.monacoSetup&&e.monacoSetup(o)}return Pe.useEffect(()=>{t&&n(t)},[t]),t?s.jsx(ra,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:Kn,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null},sl="(^joint_[0-9]+$)|(_J[0-9]+$)";function vs(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>vs(t))]}function il(e,t){return new RegExp(t??sl).test(e)}function Ss(e,t){return vs(e).filter(r=>il(r.name,t))}function No(e){Pe.useEffect(e,[])}function ll(e){No(()=>Er.autorun(e))}function cl(e,t,r){No(()=>Er.reaction(e,t,r))}function Lr(e){return No(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function Ue({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){x.Globals.assign({frameLoop:"always"});const o=Pe.useRef([]),a=Pe.useRef([]),{scene:i,invalidate:l}=Xi.useThree();Pe.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):Ss(f),u(),l())},[]);function c(f){o.current=f,m.start(Object.assign({},o.current))}function u(){const f=a.current.map((_,g)=>d[g].get());r(a.current,f)}ll(()=>{const f=e.state.joint_position.joints.filter(_=>_!==void 0);requestAnimationFrame(()=>c(f))});const[d,m]=x.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function ul({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 dl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 fl({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=we.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 ml({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 hl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 pl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.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(Ue,{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 sa({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 gl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 yl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 bl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 _l({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 vl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 Sl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 xl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 wl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 Rl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 jl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 ia({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 Cl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{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 la="line",ca="mesh";function ua({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new xt.Matrix4;function o(c,u){const d=new xt.Vector3,m=new xt.Quaternion,f=new xt.Vector3;n.decompose(d,m,f);const _=d.clone(),g=new xt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new xt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new xt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new xt.Matrix4().makeRotationX(c.alpha));return n.multiply(g),n.decompose(d,m,f),{a:_,b:d}}function a(c,u,d,m){if(!t)return;const f=t[c];if(!f)return;const{a:_,b:g}=o(f,m);u.geometry.setPositions([_.toArray(),g.toArray()].flat()),d.position.set(g.x,g.y,g.z)}function i(c,u){n.identity(),c.forEach((d,m)=>{a(m,d.getObjectByName(la),d.getObjectByName(ca),u[m])})}function l(c){return Ss(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:m}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(we.Line,{name:la,points:[d,m],color:"white",lineWidth:5}),s.jsxs("mesh",{name:ca,position:m,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}function Fo(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}function xs({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Fo,...o}){let a;switch(t){case"UniversalRobots_UR3":a=ul;break;case"UniversalRobots_UR3e":a=dl;break;case"UniversalRobots_UR5":a=fl;break;case"UniversalRobots_UR5e":a=ml;break;case"UniversalRobots_UR10":a=hl;break;case"UniversalRobots_UR10e":a=pl;break;case"Yaskawa_AR900":a=sa;break;case"Yaskawa_GP7":a=sa;break;case"Yaskawa_AR1440":a=gl;break;case"Yaskawa_AR1730":a=yl;break;case"Yaskawa_AR2010":a=bl;break;case"Yaskawa_AR3120":a=_l;break;case"FANUC_CRX10iA":a=vl;break;case"FANUC_CRX25iA":a=Sl;break;case"FANUC_CRX25iAL":a=xl;break;case"FANUC_ARC_Mate_120iD":a=ia;break;case"FANUC_ARC_Mate_120iD35":a=ia;break;case"FANUC_ARC_Mate_100iD":a=jl;break;case"KUKA_KR210_R2700":a=wl;break;case"KUKA_KR270_R2700":a=Rl;break;case"ABB_1200_07_7":a=Cl;break;default:console.warn(`Unknown robot type: ${t}`),a=ua}return s.jsx(Pe.Suspense,{fallback:s.jsx(ua,{rapidlyChangingMotionState:e,dhParameters:r,...o}),children:s.jsx(a,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...o})})}function Pl({connectedMotionGroup:e,getModel:t=Fo,...r}){return e.dhParameters?s.jsx(xs,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,...r}):null}const El=Array(6).fill(2*Math.PI);function Tl(){return s.jsx(we.Environment,{children:s.jsx(Al,{})})}function Al({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(we.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(we.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(we.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(we.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(we.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(we.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(we.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Ol({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(u=>new el.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),c=new Yi.ConvexGeometry(l);return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:c,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}var yo={exports:{}},Hr={exports:{}},_e={};/** @license React v16.13.1
31
31
  * react-is.production.min.js
32
32
  *
33
33
  * Copyright (c) Facebook, Inc. and its affiliates.
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var ua;function Ml(){if(ua)return _e;ua=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function P(v){if(typeof v=="object"&&v!==null){var N=v.$$typeof;switch(N){case t:switch(v=v.type,v){case c:case u:case n:case a:case o:case m:return v;default:switch(v=v&&v.$$typeof,v){case l:case d:case g:case _:case i:return v;default:return N}}case r:return N}}}function k(v){return P(v)===u}return _e.AsyncMode=c,_e.ConcurrentMode=u,_e.ContextConsumer=l,_e.ContextProvider=i,_e.Element=t,_e.ForwardRef=d,_e.Fragment=n,_e.Lazy=g,_e.Memo=_,_e.Portal=r,_e.Profiler=a,_e.StrictMode=o,_e.Suspense=m,_e.isAsyncMode=function(v){return k(v)||P(v)===c},_e.isConcurrentMode=k,_e.isContextConsumer=function(v){return P(v)===l},_e.isContextProvider=function(v){return P(v)===i},_e.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},_e.isForwardRef=function(v){return P(v)===d},_e.isFragment=function(v){return P(v)===n},_e.isLazy=function(v){return P(v)===g},_e.isMemo=function(v){return P(v)===_},_e.isPortal=function(v){return P(v)===r},_e.isProfiler=function(v){return P(v)===a},_e.isStrictMode=function(v){return P(v)===o},_e.isSuspense=function(v){return P(v)===m},_e.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===u||v===a||v===o||v===m||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===g||v.$$typeof===_||v.$$typeof===i||v.$$typeof===l||v.$$typeof===d||v.$$typeof===b||v.$$typeof===w||v.$$typeof===C||v.$$typeof===y)},_e.typeOf=P,_e}var ve={};/** @license React v16.13.1
37
+ */var da;function Ml(){if(da)return _e;da=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function P(v){if(typeof v=="object"&&v!==null){var N=v.$$typeof;switch(N){case t:switch(v=v.type,v){case c:case u:case n:case a:case o:case m:return v;default:switch(v=v&&v.$$typeof,v){case l:case d:case g:case _:case i:return v;default:return N}}case r:return N}}}function k(v){return P(v)===u}return _e.AsyncMode=c,_e.ConcurrentMode=u,_e.ContextConsumer=l,_e.ContextProvider=i,_e.Element=t,_e.ForwardRef=d,_e.Fragment=n,_e.Lazy=g,_e.Memo=_,_e.Portal=r,_e.Profiler=a,_e.StrictMode=o,_e.Suspense=m,_e.isAsyncMode=function(v){return k(v)||P(v)===c},_e.isConcurrentMode=k,_e.isContextConsumer=function(v){return P(v)===l},_e.isContextProvider=function(v){return P(v)===i},_e.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},_e.isForwardRef=function(v){return P(v)===d},_e.isFragment=function(v){return P(v)===n},_e.isLazy=function(v){return P(v)===g},_e.isMemo=function(v){return P(v)===_},_e.isPortal=function(v){return P(v)===r},_e.isProfiler=function(v){return P(v)===a},_e.isStrictMode=function(v){return P(v)===o},_e.isSuspense=function(v){return P(v)===m},_e.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===u||v===a||v===o||v===m||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===g||v.$$typeof===_||v.$$typeof===i||v.$$typeof===l||v.$$typeof===d||v.$$typeof===b||v.$$typeof===w||v.$$typeof===C||v.$$typeof===y)},_e.typeOf=P,_e}var ve={};/** @license React v16.13.1
38
38
  * react-is.development.js
39
39
  *
40
40
  * Copyright (c) Facebook, Inc. and its affiliates.
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var da;function kl(){return da||(da=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function P(O){return typeof O=="string"||typeof O=="function"||O===n||O===u||O===a||O===o||O===m||O===f||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===_||O.$$typeof===i||O.$$typeof===l||O.$$typeof===d||O.$$typeof===b||O.$$typeof===w||O.$$typeof===C||O.$$typeof===y)}function k(O){if(typeof O=="object"&&O!==null){var je=O.$$typeof;switch(je){case t:var T=O.type;switch(T){case c:case u:case n:case a:case o:case m:return T;default:var ue=T&&T.$$typeof;switch(ue){case l:case d:case g:case _:case i:return ue;default:return je}}case r:return je}}}var v=c,N=u,I=l,de=i,Ee=t,Re=d,B=n,ae=g,Q=_,te=r,ne=a,be=o,ce=m,se=!1;function ke(O){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(O)||k(O)===c}function R(O){return k(O)===u}function M(O){return k(O)===l}function X(O){return k(O)===i}function G(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function D(O){return k(O)===d}function ee(O){return k(O)===n}function W(O){return k(O)===g}function z(O){return k(O)===_}function q(O){return k(O)===r}function re(O){return k(O)===a}function Y(O){return k(O)===o}function Te(O){return k(O)===m}ve.AsyncMode=v,ve.ConcurrentMode=N,ve.ContextConsumer=I,ve.ContextProvider=de,ve.Element=Ee,ve.ForwardRef=Re,ve.Fragment=B,ve.Lazy=ae,ve.Memo=Q,ve.Portal=te,ve.Profiler=ne,ve.StrictMode=be,ve.Suspense=ce,ve.isAsyncMode=ke,ve.isConcurrentMode=R,ve.isContextConsumer=M,ve.isContextProvider=X,ve.isElement=G,ve.isForwardRef=D,ve.isFragment=ee,ve.isLazy=W,ve.isMemo=z,ve.isPortal=q,ve.isProfiler=re,ve.isStrictMode=Y,ve.isSuspense=Te,ve.isValidElementType=P,ve.typeOf=k}()),ve}var fa;function xs(){return fa||(fa=1,process.env.NODE_ENV==="production"?Hr.exports=Ml():Hr.exports=kl()),Hr.exports}/*
44
+ */var fa;function kl(){return fa||(fa=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function P(O){return typeof O=="string"||typeof O=="function"||O===n||O===u||O===a||O===o||O===m||O===f||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===_||O.$$typeof===i||O.$$typeof===l||O.$$typeof===d||O.$$typeof===b||O.$$typeof===w||O.$$typeof===C||O.$$typeof===y)}function k(O){if(typeof O=="object"&&O!==null){var je=O.$$typeof;switch(je){case t:var T=O.type;switch(T){case c:case u:case n:case a:case o:case m:return T;default:var ue=T&&T.$$typeof;switch(ue){case l:case d:case g:case _:case i:return ue;default:return je}}case r:return je}}}var v=c,N=u,I=l,de=i,Ee=t,Re=d,B=n,ae=g,Q=_,te=r,ne=a,be=o,ce=m,se=!1;function ke(O){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(O)||k(O)===c}function R(O){return k(O)===u}function M(O){return k(O)===l}function X(O){return k(O)===i}function G(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function D(O){return k(O)===d}function ee(O){return k(O)===n}function W(O){return k(O)===g}function z(O){return k(O)===_}function q(O){return k(O)===r}function re(O){return k(O)===a}function Y(O){return k(O)===o}function Te(O){return k(O)===m}ve.AsyncMode=v,ve.ConcurrentMode=N,ve.ContextConsumer=I,ve.ContextProvider=de,ve.Element=Ee,ve.ForwardRef=Re,ve.Fragment=B,ve.Lazy=ae,ve.Memo=Q,ve.Portal=te,ve.Profiler=ne,ve.StrictMode=be,ve.Suspense=ce,ve.isAsyncMode=ke,ve.isConcurrentMode=R,ve.isContextConsumer=M,ve.isContextProvider=X,ve.isElement=G,ve.isForwardRef=D,ve.isFragment=ee,ve.isLazy=W,ve.isMemo=z,ve.isPortal=q,ve.isProfiler=re,ve.isStrictMode=Y,ve.isSuspense=Te,ve.isValidElementType=P,ve.typeOf=k}()),ve}var ma;function ws(){return ma||(ma=1,process.env.NODE_ENV==="production"?Hr.exports=Ml():Hr.exports=kl()),Hr.exports}/*
45
45
  object-assign
46
46
  (c) Sindre Sorhus
47
47
  @license MIT
48
- */var Xn,ma;function Il(){if(ma)return Xn;ma=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xn=o()?Object.assign:function(a,i){for(var l,c=n(a),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var f=0;f<u.length;f++)r.call(l,u[f])&&(c[u[f]]=l[u[f]])}}return c},Xn}var Yn,ha;function Do(){if(ha)return Yn;ha=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Yn=e,Yn}var Zn,pa;function ws(){return pa||(pa=1,Zn=Function.call.bind(Object.prototype.hasOwnProperty)),Zn}var Qn,ga;function Ll(){if(ga)return Qn;ga=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Do(),r={},n=ws();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(n(a,d)){var m;try{if(typeof a[d]!="function"){var f=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}m=a[d](i,d,c,l,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var _=u?u():"";e("Failed "+l+" type: "+m.message+(_??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Qn=o,Qn}var eo,ya;function $l(){if(ya)return eo;ya=1;var e=xs(),t=Il(),r=Do(),n=ws(),o=Ll(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return eo=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(R){var M=R&&(u&&R[u]||R[d]);if(typeof M=="function")return M}var f="<<anonymous>>",_={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:P,element:k(),elementType:v(),instanceOf:N,node:Re(),objectOf:de,oneOf:I,oneOfType:Ee,shape:ae,exact:Q};function g(R,M){return R===M?R!==0||1/R===1/M:R!==R&&M!==M}function y(R,M){this.message=R,this.data=M&&typeof M=="object"?M:{},this.stack=""}y.prototype=Error.prototype;function b(R){if(process.env.NODE_ENV!=="production")var M={},X=0;function G(ee,W,z,q,re,Y,Te){if(q=q||f,Y=Y||z,Te!==r){if(c){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var je=q+":"+z;!M[je]&&X<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[je]=!0,X++)}}return W[z]==null?ee?W[z]===null?new y("The "+re+" `"+Y+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new y("The "+re+" `"+Y+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:R(W,z,q,re,Y)}var D=G.bind(null,!1);return D.isRequired=G.bind(null,!0),D}function w(R){function M(X,G,D,ee,W,z){var q=X[G],re=be(q);if(re!==R){var Y=ce(q);return new y("Invalid "+ee+" `"+W+"` of type "+("`"+Y+"` supplied to `"+D+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return b(M)}function C(){return b(i)}function P(R){function M(X,G,D,ee,W){if(typeof R!="function")return new y("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var z=X[G];if(!Array.isArray(z)){var q=be(z);return new y("Invalid "+ee+" `"+W+"` of type "+("`"+q+"` supplied to `"+D+"`, expected an array."))}for(var re=0;re<z.length;re++){var Y=R(z,re,D,ee,W+"["+re+"]",r);if(Y instanceof Error)return Y}return null}return b(M)}function k(){function R(M,X,G,D,ee){var W=M[X];if(!l(W)){var z=be(W);return new y("Invalid "+D+" `"+ee+"` of type "+("`"+z+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return b(R)}function v(){function R(M,X,G,D,ee){var W=M[X];if(!e.isValidElementType(W)){var z=be(W);return new y("Invalid "+D+" `"+ee+"` of type "+("`"+z+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return b(R)}function N(R){function M(X,G,D,ee,W){if(!(X[G]instanceof R)){var z=R.name||f,q=ke(X[G]);return new y("Invalid "+ee+" `"+W+"` of type "+("`"+q+"` supplied to `"+D+"`, expected ")+("instance of `"+z+"`."))}return null}return b(M)}function I(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function M(X,G,D,ee,W){for(var z=X[G],q=0;q<R.length;q++)if(g(z,R[q]))return null;var re=JSON.stringify(R,function(Te,O){var je=ce(O);return je==="symbol"?String(O):O});return new y("Invalid "+ee+" `"+W+"` of value `"+String(z)+"` "+("supplied to `"+D+"`, expected one of "+re+"."))}return b(M)}function de(R){function M(X,G,D,ee,W){if(typeof R!="function")return new y("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var z=X[G],q=be(z);if(q!=="object")return new y("Invalid "+ee+" `"+W+"` of type "+("`"+q+"` supplied to `"+D+"`, expected an object."));for(var re in z)if(n(z,re)){var Y=R(z,re,D,ee,W+"."+re,r);if(Y instanceof Error)return Y}return null}return b(M)}function Ee(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var M=0;M<R.length;M++){var X=R[M];if(typeof X!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(X)+" at index "+M+"."),i}function G(D,ee,W,z,q){for(var re=[],Y=0;Y<R.length;Y++){var Te=R[Y],O=Te(D,ee,W,z,q,r);if(O==null)return null;O.data&&n(O.data,"expectedType")&&re.push(O.data.expectedType)}var je=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new y("Invalid "+z+" `"+q+"` supplied to "+("`"+W+"`"+je+"."))}return b(G)}function Re(){function R(M,X,G,D,ee){return te(M[X])?null:new y("Invalid "+D+" `"+ee+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return b(R)}function B(R,M,X,G,D){return new y((R||"React class")+": "+M+" type `"+X+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function ae(R){function M(X,G,D,ee,W){var z=X[G],q=be(z);if(q!=="object")return new y("Invalid "+ee+" `"+W+"` of type `"+q+"` "+("supplied to `"+D+"`, expected `object`."));for(var re in R){var Y=R[re];if(typeof Y!="function")return B(D,ee,W,re,ce(Y));var Te=Y(z,re,D,ee,W+"."+re,r);if(Te)return Te}return null}return b(M)}function Q(R){function M(X,G,D,ee,W){var z=X[G],q=be(z);if(q!=="object")return new y("Invalid "+ee+" `"+W+"` of type `"+q+"` "+("supplied to `"+D+"`, expected `object`."));var re=t({},X[G],R);for(var Y in re){var Te=R[Y];if(n(R,Y)&&typeof Te!="function")return B(D,ee,W,Y,ce(Te));if(!Te)return new y("Invalid "+ee+" `"+W+"` key `"+Y+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(X[G],null," ")+`
49
- Valid keys: `+JSON.stringify(Object.keys(R),null," "));var O=Te(z,Y,D,ee,W+"."+Y,r);if(O)return O}return null}return b(M)}function te(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(te);if(R===null||l(R))return!0;var M=m(R);if(M){var X=M.call(R),G;if(M!==R.entries){for(;!(G=X.next()).done;)if(!te(G.value))return!1}else for(;!(G=X.next()).done;){var D=G.value;if(D&&!te(D[1]))return!1}}else return!1;return!0;default:return!1}}function ne(R,M){return R==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function be(R){var M=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":ne(M,R)?"symbol":M}function ce(R){if(typeof R>"u"||R===null)return""+R;var M=be(R);if(M==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return M}function se(R){var M=ce(R);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function ke(R){return!R.constructor||!R.constructor.name?f:R.constructor.name}return _.checkPropTypes=o,_.resetWarningCache=o.resetWarningCache,_.PropTypes=_,_},eo}var to,ba;function Nl(){if(ba)return to;ba=1;var e=Do();function t(){}function r(){}return r.resetWarningCache=t,to=function(){function n(i,l,c,u,d,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},to}if(process.env.NODE_ENV!=="production"){var Fl=xs(),Dl=!0;yo.exports=$l()(Fl.isElement,Dl)}else yo.exports=Nl()();var Ul=yo.exports;const p=el(Ul);function Tr(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 Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Tr},Symbol.toStringTag,{value:"Module"}));var Jl=!1;function Vl(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 Gl(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 zl=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?!Jl: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(Gl(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Vl(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}(),Ve="-ms-",mn="-moz-",pe="-webkit-",Rs="comm",Uo="rule",Bo="decl",Wl="@import",js="@keyframes",Hl="@layer",ql=Math.abs,Rn=String.fromCharCode,Kl=Object.assign;function Xl(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function Cs(e){return e.trim()}function Yl(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,r){return e.replace(t,r)}function bo(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function Ar(e,t,r){return e.slice(t,r)}function yt(e){return e.length}function Jo(e){return e.length}function qr(e,t){return t.push(e),e}function Zl(e,t){return e.map(t).join("")}var jn=1,ar=1,Ps=0,Ye=0,Fe=0,sr="";function Cn(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:jn,column:ar,length:i,return:""}}function Sr(e,t){return Kl(Cn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ql(){return Fe}function ec(){return Fe=Ye>0?Je(sr,--Ye):0,ar--,Fe===10&&(ar=1,jn--),Fe}function et(){return Fe=Ye<Ps?Je(sr,Ye++):0,ar++,Fe===10&&(ar=1,jn++),Fe}function vt(){return Je(sr,Ye)}function rn(){return Ye}function $r(e,t){return Ar(sr,e,t)}function Or(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 Es(e){return jn=ar=1,Ps=yt(sr=e),Ye=0,[]}function Ts(e){return sr="",e}function nn(e){return Cs($r(Ye-1,_o(e===91?e+2:e===40?e+1:e)))}function tc(e){for(;(Fe=vt())&&Fe<33;)et();return Or(e)>2||Or(Fe)>3?"":" "}function rc(e,t){for(;--t&&et()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return $r(e,rn()+(t<6&&vt()==32&&et()==32))}function _o(e){for(;et();)switch(Fe){case e:return Ye;case 34:case 39:e!==34&&e!==39&&_o(Fe);break;case 40:e===41&&_o(e);break;case 92:et();break}return Ye}function nc(e,t){for(;et()&&e+Fe!==57;)if(e+Fe===84&&vt()===47)break;return"/*"+$r(t,Ye-1)+"*"+Rn(e===47?e:et())}function oc(e){for(;!Or(vt());)et();return $r(e,Ye)}function ac(e){return Ts(on("",null,null,null,[""],e=Es(e),0,[0],e))}function on(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,m=i,f=0,_=0,g=0,y=1,b=1,w=1,C=0,P="",k=o,v=a,N=n,I=P;b;)switch(g=C,C=et()){case 40:if(g!=108&&Je(I,m-1)==58){bo(I+=ge(nn(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:I+=nn(C);break;case 9:case 10:case 13:case 32:I+=tc(g);break;case 92:I+=rc(rn()-1,7);continue;case 47:switch(vt()){case 42:case 47:qr(sc(nc(et(),rn()),t,r),c);break;default:I+="/"}break;case 123*y:l[u++]=yt(I)*w;case 125*y:case 59:case 0:switch(C){case 0:case 125:b=0;case 59+d:w==-1&&(I=ge(I,/\f/g,"")),_>0&&yt(I)-m&&qr(_>32?va(I+";",n,r,m-1):va(ge(I," ","")+";",n,r,m-2),c);break;case 59:I+=";";default:if(qr(N=_a(I,t,r,u,d,o,l,P,k=[],v=[],m),a),C===123)if(d===0)on(I,t,N,N,k,a,m,l,v);else switch(f===99&&Je(I,3)===110?100:f){case 100:case 108:case 109:case 115:on(e,N,N,n&&qr(_a(e,N,N,0,0,o,l,P,o,k=[],m),v),o,v,m,l,n?k:v);break;default:on(I,N,N,N,[""],v,0,l,v)}}u=d=_=0,y=w=1,P=I="",m=i;break;case 58:m=1+yt(I),_=g;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&ec()==125)continue}switch(I+=Rn(C),C*y){case 38:w=d>0?1:(I+="\f",-1);break;case 44:l[u++]=(yt(I)-1)*w,w=1;break;case 64:vt()===45&&(I+=nn(et())),f=vt(),d=m=yt(P=I+=oc(rn())),C++;break;case 45:g===45&&yt(I)==2&&(y=0)}}return a}function _a(e,t,r,n,o,a,i,l,c,u,d){for(var m=o-1,f=o===0?a:[""],_=Jo(f),g=0,y=0,b=0;g<n;++g)for(var w=0,C=Ar(e,m+1,m=ql(y=i[g])),P=e;w<_;++w)(P=Cs(y>0?f[w]+" "+C:ge(C,/&\f/g,f[w])))&&(c[b++]=P);return Cn(e,t,r,o===0?Uo:l,c,u,d)}function sc(e,t,r){return Cn(e,t,r,Rs,Rn(Ql()),Ar(e,2,-2),0)}function va(e,t,r,n){return Cn(e,t,r,Bo,Ar(e,0,n),Ar(e,n+1,-1),n)}function rr(e,t){for(var r="",n=Jo(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ic(e,t,r,n){switch(e.type){case Hl:if(e.children.length)break;case Wl:case Bo:return e.return=e.return||e.value;case Rs:return"";case js:return e.return=e.value+"{"+rr(e.children,n)+"}";case Uo:e.value=e.props.join(",")}return yt(r=rr(e.children,n))?e.return=e.value+"{"+r+"}":""}function lc(e){var t=Jo(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 cc(e){return function(t){t.root||(t=t.return)&&e(t)}}var uc=function(t,r,n){for(var o=0,a=0;o=a,a=vt(),o===38&&a===12&&(r[n]=1),!Or(a);)et();return $r(t,Ye)},dc=function(t,r){var n=-1,o=44;do switch(Or(o)){case 0:o===38&&vt()===12&&(r[n]=1),t[n]+=uc(Ye-1,r,n);break;case 2:t[n]+=nn(o);break;case 4:if(o===44){t[++n]=vt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Rn(o)}while(o=et());return t},fc=function(t,r){return Ts(dc(Es(t),r))},Sa=new WeakMap,mc=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&&!Sa.get(n))&&!o){Sa.set(t,!0);for(var a=[],i=fc(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]}}},hc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function As(e,t){switch(Xl(e,t)){case 5103:return pe+"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 pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+mn+e+Ve+e+e;case 6828:case 4268:return pe+e+Ve+e+e;case 6165:return pe+e+Ve+"flex-"+e+e;case 5187:return pe+e+ge(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+Ve+"flex-$1$2")+e;case 5443:return pe+e+Ve+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return pe+e+Ve+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+Ve+ge(e,"shrink","negative")+e;case 5292:return pe+e+Ve+ge(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+ge(e,"-grow","")+pe+e+Ve+ge(e,"grow","positive")+e;case 4554:return pe+ge(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,pe+"$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(yt(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+mn+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bo(e,"stretch")?As(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,yt(e)-3-(~bo(e,"!important")&&10))){case 107:return ge(e,":",":"+pe)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(Je(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return pe+e+Ve+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+Ve+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+Ve+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+Ve+e+e}return e}var pc=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Bo:t.return=As(t.value,t.length);break;case js:return rr([Sr(t,{value:ge(t.value,"@","@"+pe)})],o);case Uo:if(t.length)return Zl(t.props,function(a){switch(Yl(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rr([Sr(t,{props:[ge(a,/:(read-\w+)/,":"+mn+"$1")]})],o);case"::placeholder":return rr([Sr(t,{props:[ge(a,/:(plac\w+)/,":"+pe+"input-$1")]}),Sr(t,{props:[ge(a,/:(plac\w+)/,":"+mn+"$1")]}),Sr(t,{props:[ge(a,/:(plac\w+)/,Ve+"input-$1")]})],o)}return""})}},gc=[pc],yc=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(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||gc,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),w=1;w<b.length;w++)a[b[w]]=!0;l.push(y)});var c,u=[mc,hc];{var d,m=[ic,cc(function(y){d.insert(y)})],f=lc(u.concat(o,m)),_=function(b){return rr(ac(b),f)};c=function(b,w,C,P){d=C,_(b?b+"{"+w.styles+"}":w.styles),P&&(g.inserted[w.name]=!0)}}var g={key:r,sheet:new zl({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 g.sheet.hydrate(l),g};let vo;typeof document=="object"&&(vo=yc({key:"css",prepend:!0}));function Os(e){const{injectFirst:t,children:r}=e;return t&&vo?s.jsx(er.CacheProvider,{value:vo,children:r}):r}process.env.NODE_ENV!=="production"&&(Os.propTypes={children:p.node,injectFirst:p.bool});function bc(e){return e==null||Object.keys(e).length===0}function Ms(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(bc(o)?r:o):t;return s.jsx(er.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Ms.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});/**
48
+ */var Xn,ha;function Il(){if(ha)return Xn;ha=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xn=o()?Object.assign:function(a,i){for(var l,c=n(a),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var f=0;f<u.length;f++)r.call(l,u[f])&&(c[u[f]]=l[u[f]])}}return c},Xn}var Yn,pa;function Do(){if(pa)return Yn;pa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Yn=e,Yn}var Zn,ga;function Rs(){return ga||(ga=1,Zn=Function.call.bind(Object.prototype.hasOwnProperty)),Zn}var Qn,ya;function Ll(){if(ya)return Qn;ya=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Do(),r={},n=Rs();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(n(a,d)){var m;try{if(typeof a[d]!="function"){var f=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}m=a[d](i,d,c,l,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var _=u?u():"";e("Failed "+l+" type: "+m.message+(_??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Qn=o,Qn}var eo,ba;function $l(){if(ba)return eo;ba=1;var e=ws(),t=Il(),r=Do(),n=Rs(),o=Ll(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return eo=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(R){var M=R&&(u&&R[u]||R[d]);if(typeof M=="function")return M}var f="<<anonymous>>",_={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:P,element:k(),elementType:v(),instanceOf:N,node:Re(),objectOf:de,oneOf:I,oneOfType:Ee,shape:ae,exact:Q};function g(R,M){return R===M?R!==0||1/R===1/M:R!==R&&M!==M}function y(R,M){this.message=R,this.data=M&&typeof M=="object"?M:{},this.stack=""}y.prototype=Error.prototype;function b(R){if(process.env.NODE_ENV!=="production")var M={},X=0;function G(ee,W,z,q,re,Y,Te){if(q=q||f,Y=Y||z,Te!==r){if(c){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var je=q+":"+z;!M[je]&&X<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[je]=!0,X++)}}return W[z]==null?ee?W[z]===null?new y("The "+re+" `"+Y+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new y("The "+re+" `"+Y+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:R(W,z,q,re,Y)}var D=G.bind(null,!1);return D.isRequired=G.bind(null,!0),D}function w(R){function M(X,G,D,ee,W,z){var q=X[G],re=be(q);if(re!==R){var Y=ce(q);return new y("Invalid "+ee+" `"+W+"` of type "+("`"+Y+"` supplied to `"+D+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return b(M)}function C(){return b(i)}function P(R){function M(X,G,D,ee,W){if(typeof R!="function")return new y("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var z=X[G];if(!Array.isArray(z)){var q=be(z);return new y("Invalid "+ee+" `"+W+"` of type "+("`"+q+"` supplied to `"+D+"`, expected an array."))}for(var re=0;re<z.length;re++){var Y=R(z,re,D,ee,W+"["+re+"]",r);if(Y instanceof Error)return Y}return null}return b(M)}function k(){function R(M,X,G,D,ee){var W=M[X];if(!l(W)){var z=be(W);return new y("Invalid "+D+" `"+ee+"` of type "+("`"+z+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return b(R)}function v(){function R(M,X,G,D,ee){var W=M[X];if(!e.isValidElementType(W)){var z=be(W);return new y("Invalid "+D+" `"+ee+"` of type "+("`"+z+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return b(R)}function N(R){function M(X,G,D,ee,W){if(!(X[G]instanceof R)){var z=R.name||f,q=ke(X[G]);return new y("Invalid "+ee+" `"+W+"` of type "+("`"+q+"` supplied to `"+D+"`, expected ")+("instance of `"+z+"`."))}return null}return b(M)}function I(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function M(X,G,D,ee,W){for(var z=X[G],q=0;q<R.length;q++)if(g(z,R[q]))return null;var re=JSON.stringify(R,function(Te,O){var je=ce(O);return je==="symbol"?String(O):O});return new y("Invalid "+ee+" `"+W+"` of value `"+String(z)+"` "+("supplied to `"+D+"`, expected one of "+re+"."))}return b(M)}function de(R){function M(X,G,D,ee,W){if(typeof R!="function")return new y("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var z=X[G],q=be(z);if(q!=="object")return new y("Invalid "+ee+" `"+W+"` of type "+("`"+q+"` supplied to `"+D+"`, expected an object."));for(var re in z)if(n(z,re)){var Y=R(z,re,D,ee,W+"."+re,r);if(Y instanceof Error)return Y}return null}return b(M)}function Ee(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var M=0;M<R.length;M++){var X=R[M];if(typeof X!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(X)+" at index "+M+"."),i}function G(D,ee,W,z,q){for(var re=[],Y=0;Y<R.length;Y++){var Te=R[Y],O=Te(D,ee,W,z,q,r);if(O==null)return null;O.data&&n(O.data,"expectedType")&&re.push(O.data.expectedType)}var je=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new y("Invalid "+z+" `"+q+"` supplied to "+("`"+W+"`"+je+"."))}return b(G)}function Re(){function R(M,X,G,D,ee){return te(M[X])?null:new y("Invalid "+D+" `"+ee+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return b(R)}function B(R,M,X,G,D){return new y((R||"React class")+": "+M+" type `"+X+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function ae(R){function M(X,G,D,ee,W){var z=X[G],q=be(z);if(q!=="object")return new y("Invalid "+ee+" `"+W+"` of type `"+q+"` "+("supplied to `"+D+"`, expected `object`."));for(var re in R){var Y=R[re];if(typeof Y!="function")return B(D,ee,W,re,ce(Y));var Te=Y(z,re,D,ee,W+"."+re,r);if(Te)return Te}return null}return b(M)}function Q(R){function M(X,G,D,ee,W){var z=X[G],q=be(z);if(q!=="object")return new y("Invalid "+ee+" `"+W+"` of type `"+q+"` "+("supplied to `"+D+"`, expected `object`."));var re=t({},X[G],R);for(var Y in re){var Te=R[Y];if(n(R,Y)&&typeof Te!="function")return B(D,ee,W,Y,ce(Te));if(!Te)return new y("Invalid "+ee+" `"+W+"` key `"+Y+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(X[G],null," ")+`
49
+ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var O=Te(z,Y,D,ee,W+"."+Y,r);if(O)return O}return null}return b(M)}function te(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(te);if(R===null||l(R))return!0;var M=m(R);if(M){var X=M.call(R),G;if(M!==R.entries){for(;!(G=X.next()).done;)if(!te(G.value))return!1}else for(;!(G=X.next()).done;){var D=G.value;if(D&&!te(D[1]))return!1}}else return!1;return!0;default:return!1}}function ne(R,M){return R==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function be(R){var M=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":ne(M,R)?"symbol":M}function ce(R){if(typeof R>"u"||R===null)return""+R;var M=be(R);if(M==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return M}function se(R){var M=ce(R);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function ke(R){return!R.constructor||!R.constructor.name?f:R.constructor.name}return _.checkPropTypes=o,_.resetWarningCache=o.resetWarningCache,_.PropTypes=_,_},eo}var to,_a;function Nl(){if(_a)return to;_a=1;var e=Do();function t(){}function r(){}return r.resetWarningCache=t,to=function(){function n(i,l,c,u,d,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},to}if(process.env.NODE_ENV!=="production"){var Fl=ws(),Dl=!0;yo.exports=$l()(Fl.isElement,Dl)}else yo.exports=Nl()();var Ul=yo.exports;const p=tl(Ul);function Tr(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 Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Tr},Symbol.toStringTag,{value:"Module"}));var Jl=!1;function Vl(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 Gl(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 zl=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?!Jl: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(Gl(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Vl(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}(),Ve="-ms-",mn="-moz-",pe="-webkit-",js="comm",Uo="rule",Bo="decl",Wl="@import",Cs="@keyframes",Hl="@layer",ql=Math.abs,Rn=String.fromCharCode,Kl=Object.assign;function Xl(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function Ps(e){return e.trim()}function Yl(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,r){return e.replace(t,r)}function bo(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function Ar(e,t,r){return e.slice(t,r)}function yt(e){return e.length}function Jo(e){return e.length}function qr(e,t){return t.push(e),e}function Zl(e,t){return e.map(t).join("")}var jn=1,ar=1,Es=0,Ye=0,Fe=0,sr="";function Cn(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:jn,column:ar,length:i,return:""}}function Sr(e,t){return Kl(Cn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ql(){return Fe}function ec(){return Fe=Ye>0?Je(sr,--Ye):0,ar--,Fe===10&&(ar=1,jn--),Fe}function et(){return Fe=Ye<Es?Je(sr,Ye++):0,ar++,Fe===10&&(ar=1,jn++),Fe}function vt(){return Je(sr,Ye)}function rn(){return Ye}function $r(e,t){return Ar(sr,e,t)}function Or(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 Ts(e){return jn=ar=1,Es=yt(sr=e),Ye=0,[]}function As(e){return sr="",e}function nn(e){return Ps($r(Ye-1,_o(e===91?e+2:e===40?e+1:e)))}function tc(e){for(;(Fe=vt())&&Fe<33;)et();return Or(e)>2||Or(Fe)>3?"":" "}function rc(e,t){for(;--t&&et()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return $r(e,rn()+(t<6&&vt()==32&&et()==32))}function _o(e){for(;et();)switch(Fe){case e:return Ye;case 34:case 39:e!==34&&e!==39&&_o(Fe);break;case 40:e===41&&_o(e);break;case 92:et();break}return Ye}function nc(e,t){for(;et()&&e+Fe!==57;)if(e+Fe===84&&vt()===47)break;return"/*"+$r(t,Ye-1)+"*"+Rn(e===47?e:et())}function oc(e){for(;!Or(vt());)et();return $r(e,Ye)}function ac(e){return As(on("",null,null,null,[""],e=Ts(e),0,[0],e))}function on(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,m=i,f=0,_=0,g=0,y=1,b=1,w=1,C=0,P="",k=o,v=a,N=n,I=P;b;)switch(g=C,C=et()){case 40:if(g!=108&&Je(I,m-1)==58){bo(I+=ge(nn(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:I+=nn(C);break;case 9:case 10:case 13:case 32:I+=tc(g);break;case 92:I+=rc(rn()-1,7);continue;case 47:switch(vt()){case 42:case 47:qr(sc(nc(et(),rn()),t,r),c);break;default:I+="/"}break;case 123*y:l[u++]=yt(I)*w;case 125*y:case 59:case 0:switch(C){case 0:case 125:b=0;case 59+d:w==-1&&(I=ge(I,/\f/g,"")),_>0&&yt(I)-m&&qr(_>32?Sa(I+";",n,r,m-1):Sa(ge(I," ","")+";",n,r,m-2),c);break;case 59:I+=";";default:if(qr(N=va(I,t,r,u,d,o,l,P,k=[],v=[],m),a),C===123)if(d===0)on(I,t,N,N,k,a,m,l,v);else switch(f===99&&Je(I,3)===110?100:f){case 100:case 108:case 109:case 115:on(e,N,N,n&&qr(va(e,N,N,0,0,o,l,P,o,k=[],m),v),o,v,m,l,n?k:v);break;default:on(I,N,N,N,[""],v,0,l,v)}}u=d=_=0,y=w=1,P=I="",m=i;break;case 58:m=1+yt(I),_=g;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&ec()==125)continue}switch(I+=Rn(C),C*y){case 38:w=d>0?1:(I+="\f",-1);break;case 44:l[u++]=(yt(I)-1)*w,w=1;break;case 64:vt()===45&&(I+=nn(et())),f=vt(),d=m=yt(P=I+=oc(rn())),C++;break;case 45:g===45&&yt(I)==2&&(y=0)}}return a}function va(e,t,r,n,o,a,i,l,c,u,d){for(var m=o-1,f=o===0?a:[""],_=Jo(f),g=0,y=0,b=0;g<n;++g)for(var w=0,C=Ar(e,m+1,m=ql(y=i[g])),P=e;w<_;++w)(P=Ps(y>0?f[w]+" "+C:ge(C,/&\f/g,f[w])))&&(c[b++]=P);return Cn(e,t,r,o===0?Uo:l,c,u,d)}function sc(e,t,r){return Cn(e,t,r,js,Rn(Ql()),Ar(e,2,-2),0)}function Sa(e,t,r,n){return Cn(e,t,r,Bo,Ar(e,0,n),Ar(e,n+1,-1),n)}function rr(e,t){for(var r="",n=Jo(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ic(e,t,r,n){switch(e.type){case Hl:if(e.children.length)break;case Wl:case Bo:return e.return=e.return||e.value;case js:return"";case Cs:return e.return=e.value+"{"+rr(e.children,n)+"}";case Uo:e.value=e.props.join(",")}return yt(r=rr(e.children,n))?e.return=e.value+"{"+r+"}":""}function lc(e){var t=Jo(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 cc(e){return function(t){t.root||(t=t.return)&&e(t)}}var uc=function(t,r,n){for(var o=0,a=0;o=a,a=vt(),o===38&&a===12&&(r[n]=1),!Or(a);)et();return $r(t,Ye)},dc=function(t,r){var n=-1,o=44;do switch(Or(o)){case 0:o===38&&vt()===12&&(r[n]=1),t[n]+=uc(Ye-1,r,n);break;case 2:t[n]+=nn(o);break;case 4:if(o===44){t[++n]=vt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Rn(o)}while(o=et());return t},fc=function(t,r){return As(dc(Ts(t),r))},xa=new WeakMap,mc=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&&!xa.get(n))&&!o){xa.set(t,!0);for(var a=[],i=fc(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]}}},hc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Os(e,t){switch(Xl(e,t)){case 5103:return pe+"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 pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+mn+e+Ve+e+e;case 6828:case 4268:return pe+e+Ve+e+e;case 6165:return pe+e+Ve+"flex-"+e+e;case 5187:return pe+e+ge(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+Ve+"flex-$1$2")+e;case 5443:return pe+e+Ve+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return pe+e+Ve+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+Ve+ge(e,"shrink","negative")+e;case 5292:return pe+e+Ve+ge(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+ge(e,"-grow","")+pe+e+Ve+ge(e,"grow","positive")+e;case 4554:return pe+ge(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,pe+"$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(yt(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+mn+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bo(e,"stretch")?Os(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,yt(e)-3-(~bo(e,"!important")&&10))){case 107:return ge(e,":",":"+pe)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(Je(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return pe+e+Ve+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+Ve+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+Ve+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+Ve+e+e}return e}var pc=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Bo:t.return=Os(t.value,t.length);break;case Cs:return rr([Sr(t,{value:ge(t.value,"@","@"+pe)})],o);case Uo:if(t.length)return Zl(t.props,function(a){switch(Yl(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rr([Sr(t,{props:[ge(a,/:(read-\w+)/,":"+mn+"$1")]})],o);case"::placeholder":return rr([Sr(t,{props:[ge(a,/:(plac\w+)/,":"+pe+"input-$1")]}),Sr(t,{props:[ge(a,/:(plac\w+)/,":"+mn+"$1")]}),Sr(t,{props:[ge(a,/:(plac\w+)/,Ve+"input-$1")]})],o)}return""})}},gc=[pc],yc=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(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||gc,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),w=1;w<b.length;w++)a[b[w]]=!0;l.push(y)});var c,u=[mc,hc];{var d,m=[ic,cc(function(y){d.insert(y)})],f=lc(u.concat(o,m)),_=function(b){return rr(ac(b),f)};c=function(b,w,C,P){d=C,_(b?b+"{"+w.styles+"}":w.styles),P&&(g.inserted[w.name]=!0)}}var g={key:r,sheet:new zl({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 g.sheet.hydrate(l),g};let vo;typeof document=="object"&&(vo=yc({key:"css",prepend:!0}));function Ms(e){const{injectFirst:t,children:r}=e;return t&&vo?s.jsx(er.CacheProvider,{value:vo,children:r}):r}process.env.NODE_ENV!=="production"&&(Ms.propTypes={children:p.node,injectFirst:p.bool});function bc(e){return e==null||Object.keys(e).length===0}function ks(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(bc(o)?r:o):t;return s.jsx(er.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(ks.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});/**
50
50
  * @mui/styled-engine v5.16.6
51
51
  *
52
52
  * @license MIT
53
53
  * This source code is licensed under the MIT license found in the
54
54
  * LICENSE file in the root directory of this source tree.
55
- */function ks(e,t){const r=Yi(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(`
56
- `)):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 Is=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_c=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ms,StyledEngineProvider:Os,ThemeContext:er.ThemeContext,css:er.css,default:ks,internal_processStyles:Is,keyframes:er.keyframes},Symbol.toStringTag,{value:"Module"}));function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(null,arguments)}function rt(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function wt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ls(e){if(!wt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ls(e[r])}),t}function ct(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?n[o]=ct(e[o],t[o],r):r.clone?n[o]=wt(t[o])?Ls(t[o]):t[o]:n[o]=t[o]}),n}const vc=Object.freeze(Object.defineProperty({__proto__:null,default:ct,isPlainObject:wt},Symbol.toStringTag,{value:"Module"})),Sc=["values","unit","step"],xc=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>A({},r,{[n.key]:n.val}),{})};function $s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=rt(e,Sc),a=xc(t),i=Object.keys(a);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,_){const g=i.indexOf(_);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:_)-n/100}${r})`}function d(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):l(f)}function m(f){const _=i.indexOf(f);return _===0?l(i[1]):_===i.length-1?c(i[_]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return A({keys:i,values:a,up:l,down:c,between:u,only:d,not:m,unit:r},o)}const wc={borderRadius:4},Mt=process.env.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};function jr(e,t){return t?ct(e,t,{clone:!1}):e}const Vo={xs:0,sm:600,md:900,lg:1200,xl:1536},xa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vo[e]}px)`};function pt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||xa;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||xa;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||Vo).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 Ns(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Fs(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Rc(e,...t){const r=Ns(e),n=[r,...t].reduce((o,a)=>ct(o,a),{});return Fs(Object.keys(r),n)}function jc(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function ro({values:e,breakpoints:t,base:r}){const n=r||jc(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 it(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Cc=Object.freeze(Object.defineProperty({__proto__:null,default:it},Symbol.toStringTag,{value:"Module"}));function Pn(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 hn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Pn(e,r)||n,t&&(o=t(o,n,e)),o}function Le(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=Pn(c,n)||{};return pt(i,l,m=>{let f=hn(u,o,m);return m===f&&typeof m=="string"&&(f=hn(u,o,`${t}${m==="default"?"":it(m)}`,m)),r===!1?f:{[r]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Mt}:{},a.filterProps=[t],a}function Pc(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Ec={m:"margin",p:"padding"},Tc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ac=Pc(e=>{if(e.length>2)if(wa[e])e=wa[e];else return[e];const[t,r]=e.split(""),n=Ec[t],o=Tc[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),En=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Tn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Oc=[...En,...Tn];function Nr(e,t,r,n){var o;const a=(o=Pn(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(`
55
+ */function Is(e,t){const r=Zi(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(`
56
+ `)):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 Ls=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_c=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ks,StyledEngineProvider:Ms,ThemeContext:er.ThemeContext,css:er.css,default:Is,internal_processStyles:Ls,keyframes:er.keyframes},Symbol.toStringTag,{value:"Module"}));function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(null,arguments)}function rt(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function wt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $s(e){if(!wt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=$s(e[r])}),t}function ct(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?n[o]=ct(e[o],t[o],r):r.clone?n[o]=wt(t[o])?$s(t[o]):t[o]:n[o]=t[o]}),n}const vc=Object.freeze(Object.defineProperty({__proto__:null,default:ct,isPlainObject:wt},Symbol.toStringTag,{value:"Module"})),Sc=["values","unit","step"],xc=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>A({},r,{[n.key]:n.val}),{})};function Ns(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=rt(e,Sc),a=xc(t),i=Object.keys(a);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,_){const g=i.indexOf(_);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:_)-n/100}${r})`}function d(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):l(f)}function m(f){const _=i.indexOf(f);return _===0?l(i[1]):_===i.length-1?c(i[_]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return A({keys:i,values:a,up:l,down:c,between:u,only:d,not:m,unit:r},o)}const wc={borderRadius:4},Mt=process.env.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};function jr(e,t){return t?ct(e,t,{clone:!1}):e}const Vo={xs:0,sm:600,md:900,lg:1200,xl:1536},wa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vo[e]}px)`};function pt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||wa;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||wa;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||Vo).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 Fs(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Ds(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Rc(e,...t){const r=Fs(e),n=[r,...t].reduce((o,a)=>ct(o,a),{});return Ds(Object.keys(r),n)}function jc(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function ro({values:e,breakpoints:t,base:r}){const n=r||jc(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 it(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Cc=Object.freeze(Object.defineProperty({__proto__:null,default:it},Symbol.toStringTag,{value:"Module"}));function Pn(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 hn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Pn(e,r)||n,t&&(o=t(o,n,e)),o}function Le(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=Pn(c,n)||{};return pt(i,l,m=>{let f=hn(u,o,m);return m===f&&typeof m=="string"&&(f=hn(u,o,`${t}${m==="default"?"":it(m)}`,m)),r===!1?f:{[r]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Mt}:{},a.filterProps=[t],a}function Pc(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Ec={m:"margin",p:"padding"},Tc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ra={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ac=Pc(e=>{if(e.length>2)if(Ra[e])e=Ra[e];else return[e];const[t,r]=e.split(""),n=Ec[t],o=Tc[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),En=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Tn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Oc=[...En,...Tn];function Nr(e,t,r,n){var o;const a=(o=Pn(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(`
57
57
  `)):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(`
58
58
  `))),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(`
59
- `)),()=>{})}function Go(e){return Nr(e,"spacing",8,"spacing")}function Dt(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 Mc(e,t){return r=>e.reduce((n,o)=>(n[o]=Dt(t,r),n),{})}function kc(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Ac(r),a=Mc(o,n),i=e[r];return pt(e,i,a)}function Ds(e,t){const r=Go(e.theme);return Object.keys(e).map(n=>kc(e,t,n,r)).reduce(jr,{})}function Oe(e){return Ds(e,En)}Oe.propTypes=process.env.NODE_ENV!=="production"?En.reduce((e,t)=>(e[t]=Mt,e),{}):{};Oe.filterProps=En;function Me(e){return Ds(e,Tn)}Me.propTypes=process.env.NODE_ENV!=="production"?Tn.reduce((e,t)=>(e[t]=Mt,e),{}):{};Me.filterProps=Tn;process.env.NODE_ENV!=="production"&&Oc.reduce((e,t)=>(e[t]=Mt,e),{});function Ic(e=8){if(e.mui)return e;const t=Go({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 An(...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]?jr(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 st(e){return typeof e!="number"?e:`${e}px solid`}function ft(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const Lc=ft("border",st),$c=ft("borderTop",st),Nc=ft("borderRight",st),Fc=ft("borderBottom",st),Dc=ft("borderLeft",st),Uc=ft("borderColor"),Bc=ft("borderTopColor"),Jc=ft("borderRightColor"),Vc=ft("borderBottomColor"),Gc=ft("borderLeftColor"),zc=ft("outline",st),Wc=ft("outlineColor"),On=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Dt(t,n)});return pt(e,e.borderRadius,r)}return null};On.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Mt}:{};On.filterProps=["borderRadius"];An(Lc,$c,Nc,Fc,Dc,Uc,Bc,Jc,Vc,Gc,On,zc,Wc);const Mn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nr(e.theme,"spacing",8,"gap"),r=n=>({gap:Dt(t,n)});return pt(e,e.gap,r)}return null};Mn.propTypes=process.env.NODE_ENV!=="production"?{gap:Mt}:{};Mn.filterProps=["gap"];const kn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Dt(t,n)});return pt(e,e.columnGap,r)}return null};kn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Mt}:{};kn.filterProps=["columnGap"];const In=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Dt(t,n)});return pt(e,e.rowGap,r)}return null};In.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Mt}:{};In.filterProps=["rowGap"];const Hc=Le({prop:"gridColumn"}),qc=Le({prop:"gridRow"}),Kc=Le({prop:"gridAutoFlow"}),Xc=Le({prop:"gridAutoColumns"}),Yc=Le({prop:"gridAutoRows"}),Zc=Le({prop:"gridTemplateColumns"}),Qc=Le({prop:"gridTemplateRows"}),eu=Le({prop:"gridTemplateAreas"}),tu=Le({prop:"gridArea"});An(Mn,kn,In,Hc,qc,Kc,Xc,Yc,Zc,Qc,eu,tu);function nr(e,t){return t==="grey"?t:e}const ru=Le({prop:"color",themeKey:"palette",transform:nr}),nu=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nr}),ou=Le({prop:"backgroundColor",themeKey:"palette",transform:nr});An(ru,nu,ou);function Qe(e){return e<=1&&e!==0?`${e*100}%`:e}const au=Le({prop:"width",transform:Qe}),zo=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])||Vo[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:Qe(r)}};return pt(e,e.maxWidth,t)}return null};zo.filterProps=["maxWidth"];const su=Le({prop:"minWidth",transform:Qe}),iu=Le({prop:"height",transform:Qe}),lu=Le({prop:"maxHeight",transform:Qe}),cu=Le({prop:"minHeight",transform:Qe});Le({prop:"size",cssProperty:"width",transform:Qe});Le({prop:"size",cssProperty:"height",transform:Qe});const uu=Le({prop:"boxSizing"});An(au,zo,su,iu,lu,cu,uu);const Fr={border:{themeKey:"borders",transform:st},borderTop:{themeKey:"borders",transform:st},borderRight:{themeKey:"borders",transform:st},borderBottom:{themeKey:"borders",transform:st},borderLeft:{themeKey:"borders",transform:st},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:st},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:On},color:{themeKey:"palette",transform:nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nr},backgroundColor:{themeKey:"palette",transform:nr},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},m:{style:Oe},mt:{style:Oe},mr:{style:Oe},mb:{style:Oe},ml:{style:Oe},mx:{style:Oe},my:{style:Oe},margin:{style:Oe},marginTop:{style:Oe},marginRight:{style:Oe},marginBottom:{style:Oe},marginLeft:{style:Oe},marginX:{style:Oe},marginY:{style:Oe},marginInline:{style:Oe},marginInlineStart:{style:Oe},marginInlineEnd:{style:Oe},marginBlock:{style:Oe},marginBlockStart:{style:Oe},marginBlockEnd:{style:Oe},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:Mn},rowGap:{style:In},columnGap:{style:kn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qe},maxWidth:{style:zo},minWidth:{transform:Qe},height:{transform:Qe},maxHeight:{transform:Qe},minHeight:{transform:Qe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function du(...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 fu(e,t){return typeof e=="function"?e(t):e}function Us(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:m}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Pn(o,u)||{};return m?m(i):pt(i,n,g=>{let y=hn(f,d,g);return g===y&&typeof g=="string"&&(y=hn(f,d,`${r}${g==="default"?"":it(g)}`,g)),c===!1?y:{[c]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Fr;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=Ns(a.breakpoints),m=Object.keys(d);let f=d;return Object.keys(u).forEach(_=>{const g=fu(u[_],a);if(g!=null)if(typeof g=="object")if(i[_])f=jr(f,e(_,g,a,i));else{const y=pt({theme:a},g,b=>({[_]:b}));du(y,g)?f[_]=t({sx:g,theme:a}):f=jr(f,y)}else f=jr(f,e(_,g,a,i))}),Fs(m,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const Dr=Us();Dr.filterProps=["sx"];function Bs(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 mu=["breakpoints","palette","spacing","shape"];function Ur(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=rt(e,mu),l=$s(r),c=Ic(o);let u=ct({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},wc,a)},i);return u.applyStyles=Bs,u=t.reduce((d,m)=>ct(d,m),u),u.unstable_sxConfig=A({},Fr,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return Dr({sx:m,theme:this})},u}const hu=Object.freeze(Object.defineProperty({__proto__:null,default:Ur,private_createBreakpoints:$s,unstable_applyStyles:Bs},Symbol.toStringTag,{value:"Module"}));function pu(e){return Object.keys(e).length===0}function gu(e=null){const t=V.useContext(er.ThemeContext);return!t||pu(t)?e:t}const yu=Ur();function Js(e=yu){return gu(e)}const bu=["sx"],_u=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Fr;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Vs(e){const{sx:t}=e,r=rt(e,bu),{systemProps:n,otherProps:o}=_u(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return wt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const vu=Object.freeze(Object.defineProperty({__proto__:null,default:Dr,extendSxProp:Vs,unstable_createStyleFunctionSx:Us,unstable_defaultSxConfig:Fr},Symbol.toStringTag,{value:"Module"})),Ra=e=>e,Su=()=>{let e=Ra;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ra}}},xu=Su();function Gs(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=Gs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Gs(e))&&(n&&(n+=" "),n+=t);return n}const wu={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 Ln(e,t,r="Mui"){const n=wu[t];return n?`${r}-${n}`:`${xu.generate(e)}-${t}`}function Ru(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ln(e,o,r)}),n}var So={exports:{}},Se={};/**
59
+ `)),()=>{})}function Go(e){return Nr(e,"spacing",8,"spacing")}function Dt(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 Mc(e,t){return r=>e.reduce((n,o)=>(n[o]=Dt(t,r),n),{})}function kc(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Ac(r),a=Mc(o,n),i=e[r];return pt(e,i,a)}function Us(e,t){const r=Go(e.theme);return Object.keys(e).map(n=>kc(e,t,n,r)).reduce(jr,{})}function Oe(e){return Us(e,En)}Oe.propTypes=process.env.NODE_ENV!=="production"?En.reduce((e,t)=>(e[t]=Mt,e),{}):{};Oe.filterProps=En;function Me(e){return Us(e,Tn)}Me.propTypes=process.env.NODE_ENV!=="production"?Tn.reduce((e,t)=>(e[t]=Mt,e),{}):{};Me.filterProps=Tn;process.env.NODE_ENV!=="production"&&Oc.reduce((e,t)=>(e[t]=Mt,e),{});function Ic(e=8){if(e.mui)return e;const t=Go({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 An(...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]?jr(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 st(e){return typeof e!="number"?e:`${e}px solid`}function ft(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const Lc=ft("border",st),$c=ft("borderTop",st),Nc=ft("borderRight",st),Fc=ft("borderBottom",st),Dc=ft("borderLeft",st),Uc=ft("borderColor"),Bc=ft("borderTopColor"),Jc=ft("borderRightColor"),Vc=ft("borderBottomColor"),Gc=ft("borderLeftColor"),zc=ft("outline",st),Wc=ft("outlineColor"),On=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Dt(t,n)});return pt(e,e.borderRadius,r)}return null};On.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Mt}:{};On.filterProps=["borderRadius"];An(Lc,$c,Nc,Fc,Dc,Uc,Bc,Jc,Vc,Gc,On,zc,Wc);const Mn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nr(e.theme,"spacing",8,"gap"),r=n=>({gap:Dt(t,n)});return pt(e,e.gap,r)}return null};Mn.propTypes=process.env.NODE_ENV!=="production"?{gap:Mt}:{};Mn.filterProps=["gap"];const kn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Dt(t,n)});return pt(e,e.columnGap,r)}return null};kn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Mt}:{};kn.filterProps=["columnGap"];const In=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Dt(t,n)});return pt(e,e.rowGap,r)}return null};In.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Mt}:{};In.filterProps=["rowGap"];const Hc=Le({prop:"gridColumn"}),qc=Le({prop:"gridRow"}),Kc=Le({prop:"gridAutoFlow"}),Xc=Le({prop:"gridAutoColumns"}),Yc=Le({prop:"gridAutoRows"}),Zc=Le({prop:"gridTemplateColumns"}),Qc=Le({prop:"gridTemplateRows"}),eu=Le({prop:"gridTemplateAreas"}),tu=Le({prop:"gridArea"});An(Mn,kn,In,Hc,qc,Kc,Xc,Yc,Zc,Qc,eu,tu);function nr(e,t){return t==="grey"?t:e}const ru=Le({prop:"color",themeKey:"palette",transform:nr}),nu=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nr}),ou=Le({prop:"backgroundColor",themeKey:"palette",transform:nr});An(ru,nu,ou);function Qe(e){return e<=1&&e!==0?`${e*100}%`:e}const au=Le({prop:"width",transform:Qe}),zo=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])||Vo[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:Qe(r)}};return pt(e,e.maxWidth,t)}return null};zo.filterProps=["maxWidth"];const su=Le({prop:"minWidth",transform:Qe}),iu=Le({prop:"height",transform:Qe}),lu=Le({prop:"maxHeight",transform:Qe}),cu=Le({prop:"minHeight",transform:Qe});Le({prop:"size",cssProperty:"width",transform:Qe});Le({prop:"size",cssProperty:"height",transform:Qe});const uu=Le({prop:"boxSizing"});An(au,zo,su,iu,lu,cu,uu);const Fr={border:{themeKey:"borders",transform:st},borderTop:{themeKey:"borders",transform:st},borderRight:{themeKey:"borders",transform:st},borderBottom:{themeKey:"borders",transform:st},borderLeft:{themeKey:"borders",transform:st},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:st},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:On},color:{themeKey:"palette",transform:nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nr},backgroundColor:{themeKey:"palette",transform:nr},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},m:{style:Oe},mt:{style:Oe},mr:{style:Oe},mb:{style:Oe},ml:{style:Oe},mx:{style:Oe},my:{style:Oe},margin:{style:Oe},marginTop:{style:Oe},marginRight:{style:Oe},marginBottom:{style:Oe},marginLeft:{style:Oe},marginX:{style:Oe},marginY:{style:Oe},marginInline:{style:Oe},marginInlineStart:{style:Oe},marginInlineEnd:{style:Oe},marginBlock:{style:Oe},marginBlockStart:{style:Oe},marginBlockEnd:{style:Oe},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:Mn},rowGap:{style:In},columnGap:{style:kn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qe},maxWidth:{style:zo},minWidth:{transform:Qe},height:{transform:Qe},maxHeight:{transform:Qe},minHeight:{transform:Qe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function du(...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 fu(e,t){return typeof e=="function"?e(t):e}function Bs(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:m}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Pn(o,u)||{};return m?m(i):pt(i,n,g=>{let y=hn(f,d,g);return g===y&&typeof g=="string"&&(y=hn(f,d,`${r}${g==="default"?"":it(g)}`,g)),c===!1?y:{[c]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Fr;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=Fs(a.breakpoints),m=Object.keys(d);let f=d;return Object.keys(u).forEach(_=>{const g=fu(u[_],a);if(g!=null)if(typeof g=="object")if(i[_])f=jr(f,e(_,g,a,i));else{const y=pt({theme:a},g,b=>({[_]:b}));du(y,g)?f[_]=t({sx:g,theme:a}):f=jr(f,y)}else f=jr(f,e(_,g,a,i))}),Ds(m,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const Dr=Bs();Dr.filterProps=["sx"];function Js(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 mu=["breakpoints","palette","spacing","shape"];function Ur(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=rt(e,mu),l=Ns(r),c=Ic(o);let u=ct({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},wc,a)},i);return u.applyStyles=Js,u=t.reduce((d,m)=>ct(d,m),u),u.unstable_sxConfig=A({},Fr,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return Dr({sx:m,theme:this})},u}const hu=Object.freeze(Object.defineProperty({__proto__:null,default:Ur,private_createBreakpoints:Ns,unstable_applyStyles:Js},Symbol.toStringTag,{value:"Module"}));function pu(e){return Object.keys(e).length===0}function gu(e=null){const t=V.useContext(er.ThemeContext);return!t||pu(t)?e:t}const yu=Ur();function Vs(e=yu){return gu(e)}const bu=["sx"],_u=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Fr;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Gs(e){const{sx:t}=e,r=rt(e,bu),{systemProps:n,otherProps:o}=_u(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return wt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const vu=Object.freeze(Object.defineProperty({__proto__:null,default:Dr,extendSxProp:Gs,unstable_createStyleFunctionSx:Bs,unstable_defaultSxConfig:Fr},Symbol.toStringTag,{value:"Module"})),ja=e=>e,Su=()=>{let e=ja;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ja}}},xu=Su();function zs(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=zs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=zs(e))&&(n&&(n+=" "),n+=t);return n}const wu={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 Ln(e,t,r="Mui"){const n=wu[t];return n?`${r}-${n}`:`${xu.generate(e)}-${t}`}function Ru(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ln(e,o,r)}),n}var So={exports:{}},Se={};/**
60
60
  * @license React
61
61
  * react-is.production.min.js
62
62
  *
@@ -64,7 +64,7 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var O=Te(z,Y,D,ee,W+"."+
64
64
  *
65
65
  * This source code is licensed under the MIT license found in the
66
66
  * LICENSE file in the root directory of this source tree.
67
- */var ja;function ju(){if(ja)return Se;ja=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case r:case o:case n:case u:case d:return b;default:switch(b=b&&b.$$typeof,b){case l:case i:case c:case f:case m:case a:return b;default:return w}}case t:return w}}}return Se.ContextConsumer=i,Se.ContextProvider=a,Se.Element=e,Se.ForwardRef=c,Se.Fragment=r,Se.Lazy=f,Se.Memo=m,Se.Portal=t,Se.Profiler=o,Se.StrictMode=n,Se.Suspense=u,Se.SuspenseList=d,Se.isAsyncMode=function(){return!1},Se.isConcurrentMode=function(){return!1},Se.isContextConsumer=function(b){return y(b)===i},Se.isContextProvider=function(b){return y(b)===a},Se.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Se.isForwardRef=function(b){return y(b)===c},Se.isFragment=function(b){return y(b)===r},Se.isLazy=function(b){return y(b)===f},Se.isMemo=function(b){return y(b)===m},Se.isPortal=function(b){return y(b)===t},Se.isProfiler=function(b){return y(b)===o},Se.isStrictMode=function(b){return y(b)===n},Se.isSuspense=function(b){return y(b)===u},Se.isSuspenseList=function(b){return y(b)===d},Se.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===u||b===d||b===_||typeof b=="object"&&b!==null&&(b.$$typeof===f||b.$$typeof===m||b.$$typeof===a||b.$$typeof===i||b.$$typeof===c||b.$$typeof===g||b.getModuleId!==void 0)},Se.typeOf=y,Se}var xe={};/**
67
+ */var Ca;function ju(){if(Ca)return Se;Ca=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case r:case o:case n:case u:case d:return b;default:switch(b=b&&b.$$typeof,b){case l:case i:case c:case f:case m:case a:return b;default:return w}}case t:return w}}}return Se.ContextConsumer=i,Se.ContextProvider=a,Se.Element=e,Se.ForwardRef=c,Se.Fragment=r,Se.Lazy=f,Se.Memo=m,Se.Portal=t,Se.Profiler=o,Se.StrictMode=n,Se.Suspense=u,Se.SuspenseList=d,Se.isAsyncMode=function(){return!1},Se.isConcurrentMode=function(){return!1},Se.isContextConsumer=function(b){return y(b)===i},Se.isContextProvider=function(b){return y(b)===a},Se.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Se.isForwardRef=function(b){return y(b)===c},Se.isFragment=function(b){return y(b)===r},Se.isLazy=function(b){return y(b)===f},Se.isMemo=function(b){return y(b)===m},Se.isPortal=function(b){return y(b)===t},Se.isProfiler=function(b){return y(b)===o},Se.isStrictMode=function(b){return y(b)===n},Se.isSuspense=function(b){return y(b)===u},Se.isSuspenseList=function(b){return y(b)===d},Se.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===u||b===d||b===_||typeof b=="object"&&b!==null&&(b.$$typeof===f||b.$$typeof===m||b.$$typeof===a||b.$$typeof===i||b.$$typeof===c||b.$$typeof===g||b.getModuleId!==void 0)},Se.typeOf=y,Se}var xe={};/**
68
68
  * @license React
69
69
  * react-is.development.js
70
70
  *
@@ -72,11 +72,11 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var O=Te(z,Y,D,ee,W+"."+
72
72
  *
73
73
  * This source code is licensed under the MIT license found in the
74
74
  * LICENSE file in the root directory of this source tree.
75
- */var Ca;function Cu(){return Ca||(Ca=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g=!1,y=!1,b=!1,w=!1,C=!1,P;P=Symbol.for("react.module.reference");function k(T){return!!(typeof T=="string"||typeof T=="function"||T===r||T===o||C||T===n||T===u||T===d||w||T===_||g||y||b||typeof T=="object"&&T!==null&&(T.$$typeof===f||T.$$typeof===m||T.$$typeof===a||T.$$typeof===i||T.$$typeof===c||T.$$typeof===P||T.getModuleId!==void 0))}function v(T){if(typeof T=="object"&&T!==null){var ue=T.$$typeof;switch(ue){case e:var Ae=T.type;switch(Ae){case r:case o:case n:case u:case d:return Ae;default:var We=Ae&&Ae.$$typeof;switch(We){case l:case i:case c:case f:case m:case a:return We;default:return ue}}case t:return ue}}}var N=i,I=a,de=e,Ee=c,Re=r,B=f,ae=m,Q=t,te=o,ne=n,be=u,ce=d,se=!1,ke=!1;function R(T){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(T){return ke||(ke=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(T){return v(T)===i}function G(T){return v(T)===a}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function ee(T){return v(T)===c}function W(T){return v(T)===r}function z(T){return v(T)===f}function q(T){return v(T)===m}function re(T){return v(T)===t}function Y(T){return v(T)===o}function Te(T){return v(T)===n}function O(T){return v(T)===u}function je(T){return v(T)===d}xe.ContextConsumer=N,xe.ContextProvider=I,xe.Element=de,xe.ForwardRef=Ee,xe.Fragment=Re,xe.Lazy=B,xe.Memo=ae,xe.Portal=Q,xe.Profiler=te,xe.StrictMode=ne,xe.Suspense=be,xe.SuspenseList=ce,xe.isAsyncMode=R,xe.isConcurrentMode=M,xe.isContextConsumer=X,xe.isContextProvider=G,xe.isElement=D,xe.isForwardRef=ee,xe.isFragment=W,xe.isLazy=z,xe.isMemo=q,xe.isPortal=re,xe.isProfiler=Y,xe.isStrictMode=Te,xe.isSuspense=O,xe.isSuspenseList=je,xe.isValidElementType=k,xe.typeOf=v}()),xe}process.env.NODE_ENV==="production"?So.exports=ju():So.exports=Cu();var Pa=So.exports;const Pu=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function zs(e){const t=`${e}`.match(Pu);return t&&t[1]||""}function Ws(e,t=""){return e.displayName||e.name||zs(e)||t}function Ea(e,t,r){const n=Ws(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Hs(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ws(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Pa.ForwardRef:return Ea(e,e.render,"ForwardRef");case Pa.Memo:return Ea(e,e.type,"memo");default:return}}}const Eu=Object.freeze(Object.defineProperty({__proto__:null,default:Hs,getFunctionName:zs},Symbol.toStringTag,{value:"Module"})),Tu=["ownerState"],Au=["variants"],Ou=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Mu(e){return Object.keys(e).length===0}function ku(e){return typeof e=="string"&&e.charCodeAt(0)>96}function no(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iu=Ur(),Ta=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Kr({defaultTheme:e,theme:t,themeId:r}){return Mu(t)?e:t[r]||t}function Lu(e){return e?(t,r)=>r[e]:null}function an(e,t){let{ownerState:r}=t,n=rt(t,Tu);const o=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>an(a,A({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=rt(o,Au);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return o}function $u(e={}){const{themeId:t,defaultTheme:r=Iu,rootShouldForwardProp:n=no,slotShouldForwardProp:o=no}=e,a=i=>Dr(A({},i,{theme:Kr(A({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{Is(i,v=>v.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=Lu(Ta(u))}=l,_=rt(l,Ou),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=m||!1;let b;process.env.NODE_ENV!=="production"&&c&&(b=`${c}-${Ta(u||"Root")}`);let w=no;u==="Root"||u==="root"?w=n:u?w=o:ku(i)&&(w=void 0);const C=ks(i,A({shouldForwardProp:w,label:b},_)),P=v=>typeof v=="function"&&v.__emotion_real!==v||wt(v)?N=>an(v,A({},N,{theme:Kr({theme:N.theme,defaultTheme:r,themeId:t})})):v,k=(v,...N)=>{let I=P(v);const de=N?N.map(P):[];c&&f&&de.push(B=>{const ae=Kr(A({},B,{defaultTheme:r,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const Q=ae.components[c].styleOverrides,te={};return Object.entries(Q).forEach(([ne,be])=>{te[ne]=an(be,A({},B,{theme:ae}))}),f(B,te)}),c&&!g&&de.push(B=>{var ae;const Q=Kr(A({},B,{defaultTheme:r,themeId:t})),te=Q==null||(ae=Q.components)==null||(ae=ae[c])==null?void 0:ae.variants;return an({variants:te},A({},B,{theme:Q}))}),y||de.push(a);const Ee=de.length-N.length;if(Array.isArray(v)&&Ee>0){const B=new Array(Ee).fill("");I=[...v,...B],I.raw=[...v.raw,...B]}const Re=C(I,...de);if(process.env.NODE_ENV!=="production"){let B;c&&(B=`${c}${it(u||"")}`),B===void 0&&(B=`Styled(${Hs(i)})`),Re.displayName=B}return i.muiName&&(Re.muiName=i.muiName),Re};return C.withConfig&&(k.withConfig=C.withConfig),k}}const Nu=$u();function pn(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=A({},a),Object.keys(o).forEach(i=>{r[n][i]=pn(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Fu(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:pn(t.components[r].defaultProps,n)}function Du({props:e,name:t,defaultTheme:r,themeId:n}){let o=Js(r);return n&&(o=o[n]||o),Fu({theme:o,name:t,props:e})}const qs=typeof window<"u"?V.useLayoutEffect:V.useEffect;function Qt(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Qt},Symbol.toStringTag,{value:"Module"}));function Aa(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function sn(e){return e&&e.ownerDocument||document}function Bu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ju({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=V.useRef(e!==void 0),[a,i]=V.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){V.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(`
75
+ */var Pa;function Cu(){return Pa||(Pa=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g=!1,y=!1,b=!1,w=!1,C=!1,P;P=Symbol.for("react.module.reference");function k(T){return!!(typeof T=="string"||typeof T=="function"||T===r||T===o||C||T===n||T===u||T===d||w||T===_||g||y||b||typeof T=="object"&&T!==null&&(T.$$typeof===f||T.$$typeof===m||T.$$typeof===a||T.$$typeof===i||T.$$typeof===c||T.$$typeof===P||T.getModuleId!==void 0))}function v(T){if(typeof T=="object"&&T!==null){var ue=T.$$typeof;switch(ue){case e:var Ae=T.type;switch(Ae){case r:case o:case n:case u:case d:return Ae;default:var We=Ae&&Ae.$$typeof;switch(We){case l:case i:case c:case f:case m:case a:return We;default:return ue}}case t:return ue}}}var N=i,I=a,de=e,Ee=c,Re=r,B=f,ae=m,Q=t,te=o,ne=n,be=u,ce=d,se=!1,ke=!1;function R(T){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(T){return ke||(ke=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(T){return v(T)===i}function G(T){return v(T)===a}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function ee(T){return v(T)===c}function W(T){return v(T)===r}function z(T){return v(T)===f}function q(T){return v(T)===m}function re(T){return v(T)===t}function Y(T){return v(T)===o}function Te(T){return v(T)===n}function O(T){return v(T)===u}function je(T){return v(T)===d}xe.ContextConsumer=N,xe.ContextProvider=I,xe.Element=de,xe.ForwardRef=Ee,xe.Fragment=Re,xe.Lazy=B,xe.Memo=ae,xe.Portal=Q,xe.Profiler=te,xe.StrictMode=ne,xe.Suspense=be,xe.SuspenseList=ce,xe.isAsyncMode=R,xe.isConcurrentMode=M,xe.isContextConsumer=X,xe.isContextProvider=G,xe.isElement=D,xe.isForwardRef=ee,xe.isFragment=W,xe.isLazy=z,xe.isMemo=q,xe.isPortal=re,xe.isProfiler=Y,xe.isStrictMode=Te,xe.isSuspense=O,xe.isSuspenseList=je,xe.isValidElementType=k,xe.typeOf=v}()),xe}process.env.NODE_ENV==="production"?So.exports=ju():So.exports=Cu();var Ea=So.exports;const Pu=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ws(e){const t=`${e}`.match(Pu);return t&&t[1]||""}function Hs(e,t=""){return e.displayName||e.name||Ws(e)||t}function Ta(e,t,r){const n=Hs(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function qs(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Hs(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ea.ForwardRef:return Ta(e,e.render,"ForwardRef");case Ea.Memo:return Ta(e,e.type,"memo");default:return}}}const Eu=Object.freeze(Object.defineProperty({__proto__:null,default:qs,getFunctionName:Ws},Symbol.toStringTag,{value:"Module"})),Tu=["ownerState"],Au=["variants"],Ou=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Mu(e){return Object.keys(e).length===0}function ku(e){return typeof e=="string"&&e.charCodeAt(0)>96}function no(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iu=Ur(),Aa=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Kr({defaultTheme:e,theme:t,themeId:r}){return Mu(t)?e:t[r]||t}function Lu(e){return e?(t,r)=>r[e]:null}function an(e,t){let{ownerState:r}=t,n=rt(t,Tu);const o=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>an(a,A({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=rt(o,Au);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return o}function $u(e={}){const{themeId:t,defaultTheme:r=Iu,rootShouldForwardProp:n=no,slotShouldForwardProp:o=no}=e,a=i=>Dr(A({},i,{theme:Kr(A({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{Ls(i,v=>v.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=Lu(Aa(u))}=l,_=rt(l,Ou),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=m||!1;let b;process.env.NODE_ENV!=="production"&&c&&(b=`${c}-${Aa(u||"Root")}`);let w=no;u==="Root"||u==="root"?w=n:u?w=o:ku(i)&&(w=void 0);const C=Is(i,A({shouldForwardProp:w,label:b},_)),P=v=>typeof v=="function"&&v.__emotion_real!==v||wt(v)?N=>an(v,A({},N,{theme:Kr({theme:N.theme,defaultTheme:r,themeId:t})})):v,k=(v,...N)=>{let I=P(v);const de=N?N.map(P):[];c&&f&&de.push(B=>{const ae=Kr(A({},B,{defaultTheme:r,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const Q=ae.components[c].styleOverrides,te={};return Object.entries(Q).forEach(([ne,be])=>{te[ne]=an(be,A({},B,{theme:ae}))}),f(B,te)}),c&&!g&&de.push(B=>{var ae;const Q=Kr(A({},B,{defaultTheme:r,themeId:t})),te=Q==null||(ae=Q.components)==null||(ae=ae[c])==null?void 0:ae.variants;return an({variants:te},A({},B,{theme:Q}))}),y||de.push(a);const Ee=de.length-N.length;if(Array.isArray(v)&&Ee>0){const B=new Array(Ee).fill("");I=[...v,...B],I.raw=[...v.raw,...B]}const Re=C(I,...de);if(process.env.NODE_ENV!=="production"){let B;c&&(B=`${c}${it(u||"")}`),B===void 0&&(B=`Styled(${qs(i)})`),Re.displayName=B}return i.muiName&&(Re.muiName=i.muiName),Re};return C.withConfig&&(k.withConfig=C.withConfig),k}}const Nu=$u();function pn(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=A({},a),Object.keys(o).forEach(i=>{r[n][i]=pn(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Fu(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:pn(t.components[r].defaultProps,n)}function Du({props:e,name:t,defaultTheme:r,themeId:n}){let o=Vs(r);return n&&(o=o[n]||o),Fu({theme:o,name:t,props:e})}const Ks=typeof window<"u"?V.useLayoutEffect:V.useEffect;function Qt(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Qt},Symbol.toStringTag,{value:"Module"}));function Oa(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function sn(e){return e&&e.ownerDocument||document}function Bu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ju({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=V.useRef(e!==void 0),[a,i]=V.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){V.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(`
76
76
  `))},[n,r,e]);const{current:u}=V.useRef(t);V.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(`
77
- `))},[JSON.stringify(t)])}const c=V.useCallback(u=>{o||i(u)},[]);return[l,c]}function oo(e){const t=V.useRef(e);return qs(()=>{t.current=e}),V.useRef((...r)=>(0,t.current)(...r)).current}function xo(...e){return V.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Bu(r,t)})},e)}class Wo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Wo}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let $n=!0,wo=!1;const Vu=new Wo,Gu={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 zu(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Gu[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Wu(e){e.metaKey||e.altKey||e.ctrlKey||($n=!0)}function ao(){$n=!1}function Hu(){this.visibilityState==="hidden"&&wo&&($n=!0)}function qu(e){e.addEventListener("keydown",Wu,!0),e.addEventListener("mousedown",ao,!0),e.addEventListener("pointerdown",ao,!0),e.addEventListener("touchstart",ao,!0),e.addEventListener("visibilitychange",Hu,!0)}function Ku(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return $n||zu(t)}function Xu(){const e=V.useCallback(o=>{o!=null&&qu(o.ownerDocument)},[]),t=V.useRef(!1);function r(){return t.current?(wo=!0,Vu.start(100,()=>{wo=!1}),t.current=!1,!0):!1}function n(o){return Ku(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Yu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ks(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 Cr(e){return typeof e=="string"}function Zu(e,t,r){return e===void 0||Cr(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function ln(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 Oa(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 Qu(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const _=Rt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),g=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=A({},r,o,n);return _.length>0&&(y.className=_),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=ln(A({},o,n)),l=Oa(n),c=Oa(o),u=t(i),d=Rt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),m=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:u.ref}}function ed(e,t,r){return typeof e=="function"?e(t,r):e}const td=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Et(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=rt(e,td),l=a?{}:ed(n,o),{props:c,internalRef:u}=Qu(A({},i,{externalSlotProps:l})),d=xo(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Zu(r,A({},c,{ref:d}),o)}const rd=V.createContext();process.env.NODE_ENV!=="production"&&(p.node,p.bool);const nd=()=>{const e=V.useContext(rd);return e??!1},od=V.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.node,p.object);function ad(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?pn(o.defaultProps,n):!o.styleOverrides&&!o.variants?pn(o,n):n}function sd({props:e,name:t}){const r=V.useContext(od);return ad({props:e,name:t,theme:{components:r}})}const id=["component","direction","spacing","divider","children","className","useFlexGap"],ld=Ur(),cd=Nu("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ud(e){return Du({props:e,name:"MuiStack",defaultTheme:ld})}function dd(e,t){const r=V.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(V.cloneElement(t,{key:`separator-${a}`})),n),[])}const fd=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],md=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},pt({theme:t},ro({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Go(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=ro({values:e.direction,base:o}),i=ro({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const f=u>0?a[d[u-1]]:"column";a[c]=f}}),r=ct(r,pt({theme:t},i,(c,u)=>e.useFlexGap?{gap:Dt(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${fd(u?a[u]:e.direction)}`]:Dt(n,c)}}))}return r=Rc(t.breakpoints,r),r};function hd(e={}){const{createStyledComponent:t=cd,useThemeProps:r=ud,componentName:n="MuiStack"}=e,o=()=>Ks({root:["root"]},c=>Ln(n,c),{}),a=t(md),i=V.forwardRef(function(c,u){const d=r(c),m=Vs(d),{component:f="div",direction:_="column",spacing:g=0,divider:y,children:b,className:w,useFlexGap:C=!1}=m,P=rt(m,id),k={direction:_,spacing:g,useFlexGap:C},v=o();return s.jsx(a,A({as:f,ownerState:k,ref:u,className:Rt(v.root,w)},P,{children:y?dd(b,y):b}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:p.node,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),i}var Br={},Xs={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})(Xs);var Ys=Xs.exports,so={exports:{}},Ma;function pd(){return Ma||(Ma=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}(so)),so.exports}var io={exports:{}},ka;function gd(){return ka||(ka=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}(io)),io.exports}const yd=Ot(_c),bd=Ot(vc),_d=Ot(Cc),vd=Ot(Eu),Sd=Ot(hu),xd=Ot(vu);var ir=Ys;Object.defineProperty(Br,"__esModule",{value:!0});var wd=Br.default=Nd;Br.shouldForwardProp=cn;Br.systemDefaultTheme=void 0;var at=ir(pd()),Ro=ir(gd()),Ia=Md(yd),Rd=bd,jd=ir(_d),Cd=ir(vd),Pd=ir(Sd),Ed=ir(xd);const Td=["ownerState"],Ad=["variants"],Od=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zs(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Zs=function(n){return n?r:t})(e)}function Md(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Zs(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 kd(e){return Object.keys(e).length===0}function Id(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ld=Br.systemDefaultTheme=(0,Pd.default)(),La=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Xr({defaultTheme:e,theme:t,themeId:r}){return kd(t)?e:t[r]||t}function $d(e){return e?(t,r)=>r[e]:null}function un(e,t){let{ownerState:r}=t,n=(0,Ro.default)(t,Td);const o=typeof e=="function"?e((0,at.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>un(a,(0,at.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,Ro.default)(o,Ad);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,at.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,at.default)({ownerState:r},n,r)):c.style))}),l}return o}function Nd(e={}){const{themeId:t,defaultTheme:r=Ld,rootShouldForwardProp:n=cn,slotShouldForwardProp:o=cn}=e,a=i=>(0,Ed.default)((0,at.default)({},i,{theme:Xr((0,at.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,Ia.internal_processStyles)(i,v=>v.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=$d(La(u))}=l,_=(0,Ro.default)(l,Od),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=m||!1;let b;process.env.NODE_ENV!=="production"&&c&&(b=`${c}-${La(u||"Root")}`);let w=cn;u==="Root"||u==="root"?w=n:u?w=o:Id(i)&&(w=void 0);const C=(0,Ia.default)(i,(0,at.default)({shouldForwardProp:w,label:b},_)),P=v=>typeof v=="function"&&v.__emotion_real!==v||(0,Rd.isPlainObject)(v)?N=>un(v,(0,at.default)({},N,{theme:Xr({theme:N.theme,defaultTheme:r,themeId:t})})):v,k=(v,...N)=>{let I=P(v);const de=N?N.map(P):[];c&&f&&de.push(B=>{const ae=Xr((0,at.default)({},B,{defaultTheme:r,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const Q=ae.components[c].styleOverrides,te={};return Object.entries(Q).forEach(([ne,be])=>{te[ne]=un(be,(0,at.default)({},B,{theme:ae}))}),f(B,te)}),c&&!g&&de.push(B=>{var ae;const Q=Xr((0,at.default)({},B,{defaultTheme:r,themeId:t})),te=Q==null||(ae=Q.components)==null||(ae=ae[c])==null?void 0:ae.variants;return un({variants:te},(0,at.default)({},B,{theme:Q}))}),y||de.push(a);const Ee=de.length-N.length;if(Array.isArray(v)&&Ee>0){const B=new Array(Ee).fill("");I=[...v,...B],I.raw=[...v.raw,...B]}const Re=C(I,...de);if(process.env.NODE_ENV!=="production"){let B;c&&(B=`${c}${(0,jd.default)(u||"")}`),B===void 0&&(B=`Styled(${(0,Cd.default)(i)})`),Re.displayName=B}return i.muiName&&(Re.muiName=i.muiName),Re};return C.withConfig&&(k.withConfig=C.withConfig),k}}function Fd(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var $e={};const Dd=Ot(Bl),Ud=Ot(Uu);var Qs=Ys;Object.defineProperty($e,"__esModule",{value:!0});var $a=$e.alpha=ni;$e.blend=Xd;$e.colorChannel=void 0;var jo=$e.darken=qo;$e.decomposeColor=dt;$e.emphasize=oi;var Na=$e.getContrastRatio=zd;$e.getLuminance=gn;$e.hexToRgb=ei;$e.hslToRgb=ri;var Co=$e.lighten=Ko;$e.private_safeAlpha=Wd;$e.private_safeColorChannel=void 0;$e.private_safeDarken=Hd;$e.private_safeEmphasize=Kd;$e.private_safeLighten=qd;$e.recomposeColor=lr;$e.rgbToHex=Gd;var Fa=Qs(Dd),Bd=Qs(Ud);function Ho(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,Bd.default)(e,t,r)}function ei(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 Jd(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function dt(e){if(e.type)return e;if(e.charAt(0)==="#")return dt(ei(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.
78
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Fa.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.
79
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Fa.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ti=e=>{const t=dt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};$e.colorChannel=ti;const Vd=(e,t)=>{try{return ti(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};$e.private_safeColorChannel=Vd;function lr(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 Gd(e){if(e.indexOf("#")===0)return e;const{values:t}=dt(e);return`#${t.map((r,n)=>Jd(n===3?Math.round(255*r):r)).join("")}`}function ri(e){e=dt(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])),lr({type:l,values:c})}function gn(e){e=dt(e);let t=e.type==="hsl"||e.type==="hsla"?dt(ri(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 zd(e,t){const r=gn(e),n=gn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ni(e,t){return e=dt(e),t=Ho(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,lr(e)}function Wd(e,t,r){try{return ni(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function qo(e,t){if(e=dt(e),t=Ho(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 lr(e)}function Hd(e,t,r){try{return qo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ko(e,t){if(e=dt(e),t=Ho(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 lr(e)}function qd(e,t,r){try{return Ko(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function oi(e,t=.15){return gn(e)>.5?qo(e,t):Ko(e,t)}function Kd(e,t,r){try{return oi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Xd(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=dt(e),i=dt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return lr({type:"rgb",values:l})}const Mr={black:"#000",white:"#fff"},Yd={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"},Wt={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"},Ht={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"},xr={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"},qt={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"},Kt={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"},Xt={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"},Zd=["mode","contrastThreshold","tonalOffset"],Da={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:Mr.white,default:Mr.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}},lo={text:{primary:Mr.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:Mr.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 Ua(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=Co(e.main,o):t==="dark"&&(e.dark=jo(e.main,a)))}function Qd(e="light"){return e==="dark"?{main:qt[200],light:qt[50],dark:qt[400]}:{main:qt[700],light:qt[400],dark:qt[800]}}function ef(e="light"){return e==="dark"?{main:Wt[200],light:Wt[50],dark:Wt[400]}:{main:Wt[500],light:Wt[300],dark:Wt[700]}}function tf(e="light"){return e==="dark"?{main:Ht[500],light:Ht[300],dark:Ht[700]}:{main:Ht[700],light:Ht[400],dark:Ht[800]}}function rf(e="light"){return e==="dark"?{main:Kt[400],light:Kt[300],dark:Kt[700]}:{main:Kt[700],light:Kt[500],dark:Kt[900]}}function nf(e="light"){return e==="dark"?{main:Xt[400],light:Xt[300],dark:Xt[700]}:{main:Xt[800],light:Xt[500],dark:Xt[900]}}function of(e="light"){return e==="dark"?{main:xr[400],light:xr[300],dark:xr[700]}:{main:"#ed6c02",light:xr[500],dark:xr[900]}}function af(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=rt(e,Zd),a=e.primary||Qd(t),i=e.secondary||ef(t),l=e.error||tf(t),c=e.info||rf(t),u=e.success||nf(t),d=e.warning||of(t);function m(y){const b=Na(y,lo.text.primary)>=r?lo.text.primary:Da.text.primary;if(process.env.NODE_ENV!=="production"){const w=Na(y,b);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${b} on ${y}`,"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(`
77
+ `))},[JSON.stringify(t)])}const c=V.useCallback(u=>{o||i(u)},[]);return[l,c]}function oo(e){const t=V.useRef(e);return Ks(()=>{t.current=e}),V.useRef((...r)=>(0,t.current)(...r)).current}function xo(...e){return V.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Bu(r,t)})},e)}class Wo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Wo}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let $n=!0,wo=!1;const Vu=new Wo,Gu={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 zu(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Gu[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Wu(e){e.metaKey||e.altKey||e.ctrlKey||($n=!0)}function ao(){$n=!1}function Hu(){this.visibilityState==="hidden"&&wo&&($n=!0)}function qu(e){e.addEventListener("keydown",Wu,!0),e.addEventListener("mousedown",ao,!0),e.addEventListener("pointerdown",ao,!0),e.addEventListener("touchstart",ao,!0),e.addEventListener("visibilitychange",Hu,!0)}function Ku(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return $n||zu(t)}function Xu(){const e=V.useCallback(o=>{o!=null&&qu(o.ownerDocument)},[]),t=V.useRef(!1);function r(){return t.current?(wo=!0,Vu.start(100,()=>{wo=!1}),t.current=!1,!0):!1}function n(o){return Ku(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Yu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Xs(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 Cr(e){return typeof e=="string"}function Zu(e,t,r){return e===void 0||Cr(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function ln(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 Ma(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 Qu(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const _=Rt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),g=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=A({},r,o,n);return _.length>0&&(y.className=_),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=ln(A({},o,n)),l=Ma(n),c=Ma(o),u=t(i),d=Rt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),m=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:u.ref}}function ed(e,t,r){return typeof e=="function"?e(t,r):e}const td=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Et(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=rt(e,td),l=a?{}:ed(n,o),{props:c,internalRef:u}=Qu(A({},i,{externalSlotProps:l})),d=xo(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Zu(r,A({},c,{ref:d}),o)}const rd=V.createContext();process.env.NODE_ENV!=="production"&&(p.node,p.bool);const nd=()=>{const e=V.useContext(rd);return e??!1},od=V.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.node,p.object);function ad(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?pn(o.defaultProps,n):!o.styleOverrides&&!o.variants?pn(o,n):n}function sd({props:e,name:t}){const r=V.useContext(od);return ad({props:e,name:t,theme:{components:r}})}const id=["component","direction","spacing","divider","children","className","useFlexGap"],ld=Ur(),cd=Nu("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ud(e){return Du({props:e,name:"MuiStack",defaultTheme:ld})}function dd(e,t){const r=V.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(V.cloneElement(t,{key:`separator-${a}`})),n),[])}const fd=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],md=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},pt({theme:t},ro({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Go(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=ro({values:e.direction,base:o}),i=ro({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const f=u>0?a[d[u-1]]:"column";a[c]=f}}),r=ct(r,pt({theme:t},i,(c,u)=>e.useFlexGap?{gap:Dt(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${fd(u?a[u]:e.direction)}`]:Dt(n,c)}}))}return r=Rc(t.breakpoints,r),r};function hd(e={}){const{createStyledComponent:t=cd,useThemeProps:r=ud,componentName:n="MuiStack"}=e,o=()=>Xs({root:["root"]},c=>Ln(n,c),{}),a=t(md),i=V.forwardRef(function(c,u){const d=r(c),m=Gs(d),{component:f="div",direction:_="column",spacing:g=0,divider:y,children:b,className:w,useFlexGap:C=!1}=m,P=rt(m,id),k={direction:_,spacing:g,useFlexGap:C},v=o();return s.jsx(a,A({as:f,ownerState:k,ref:u,className:Rt(v.root,w)},P,{children:y?dd(b,y):b}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:p.node,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),i}var Br={},Ys={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})(Ys);var Zs=Ys.exports,so={exports:{}},ka;function pd(){return ka||(ka=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}(so)),so.exports}var io={exports:{}},Ia;function gd(){return Ia||(Ia=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}(io)),io.exports}const yd=Ot(_c),bd=Ot(vc),_d=Ot(Cc),vd=Ot(Eu),Sd=Ot(hu),xd=Ot(vu);var ir=Zs;Object.defineProperty(Br,"__esModule",{value:!0});var wd=Br.default=Nd;Br.shouldForwardProp=cn;Br.systemDefaultTheme=void 0;var at=ir(pd()),Ro=ir(gd()),La=Md(yd),Rd=bd,jd=ir(_d),Cd=ir(vd),Pd=ir(Sd),Ed=ir(xd);const Td=["ownerState"],Ad=["variants"],Od=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qs(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Qs=function(n){return n?r:t})(e)}function Md(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Qs(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 kd(e){return Object.keys(e).length===0}function Id(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ld=Br.systemDefaultTheme=(0,Pd.default)(),$a=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Xr({defaultTheme:e,theme:t,themeId:r}){return kd(t)?e:t[r]||t}function $d(e){return e?(t,r)=>r[e]:null}function un(e,t){let{ownerState:r}=t,n=(0,Ro.default)(t,Td);const o=typeof e=="function"?e((0,at.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>un(a,(0,at.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,Ro.default)(o,Ad);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,at.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,at.default)({ownerState:r},n,r)):c.style))}),l}return o}function Nd(e={}){const{themeId:t,defaultTheme:r=Ld,rootShouldForwardProp:n=cn,slotShouldForwardProp:o=cn}=e,a=i=>(0,Ed.default)((0,at.default)({},i,{theme:Xr((0,at.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,La.internal_processStyles)(i,v=>v.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=$d($a(u))}=l,_=(0,Ro.default)(l,Od),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=m||!1;let b;process.env.NODE_ENV!=="production"&&c&&(b=`${c}-${$a(u||"Root")}`);let w=cn;u==="Root"||u==="root"?w=n:u?w=o:Id(i)&&(w=void 0);const C=(0,La.default)(i,(0,at.default)({shouldForwardProp:w,label:b},_)),P=v=>typeof v=="function"&&v.__emotion_real!==v||(0,Rd.isPlainObject)(v)?N=>un(v,(0,at.default)({},N,{theme:Xr({theme:N.theme,defaultTheme:r,themeId:t})})):v,k=(v,...N)=>{let I=P(v);const de=N?N.map(P):[];c&&f&&de.push(B=>{const ae=Xr((0,at.default)({},B,{defaultTheme:r,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const Q=ae.components[c].styleOverrides,te={};return Object.entries(Q).forEach(([ne,be])=>{te[ne]=un(be,(0,at.default)({},B,{theme:ae}))}),f(B,te)}),c&&!g&&de.push(B=>{var ae;const Q=Xr((0,at.default)({},B,{defaultTheme:r,themeId:t})),te=Q==null||(ae=Q.components)==null||(ae=ae[c])==null?void 0:ae.variants;return un({variants:te},(0,at.default)({},B,{theme:Q}))}),y||de.push(a);const Ee=de.length-N.length;if(Array.isArray(v)&&Ee>0){const B=new Array(Ee).fill("");I=[...v,...B],I.raw=[...v.raw,...B]}const Re=C(I,...de);if(process.env.NODE_ENV!=="production"){let B;c&&(B=`${c}${(0,jd.default)(u||"")}`),B===void 0&&(B=`Styled(${(0,Cd.default)(i)})`),Re.displayName=B}return i.muiName&&(Re.muiName=i.muiName),Re};return C.withConfig&&(k.withConfig=C.withConfig),k}}function Fd(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var $e={};const Dd=Ot(Bl),Ud=Ot(Uu);var ei=Zs;Object.defineProperty($e,"__esModule",{value:!0});var Na=$e.alpha=oi;$e.blend=Xd;$e.colorChannel=void 0;var jo=$e.darken=qo;$e.decomposeColor=dt;$e.emphasize=ai;var Fa=$e.getContrastRatio=zd;$e.getLuminance=gn;$e.hexToRgb=ti;$e.hslToRgb=ni;var Co=$e.lighten=Ko;$e.private_safeAlpha=Wd;$e.private_safeColorChannel=void 0;$e.private_safeDarken=Hd;$e.private_safeEmphasize=Kd;$e.private_safeLighten=qd;$e.recomposeColor=lr;$e.rgbToHex=Gd;var Da=ei(Dd),Bd=ei(Ud);function Ho(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,Bd.default)(e,t,r)}function ti(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 Jd(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function dt(e){if(e.type)return e;if(e.charAt(0)==="#")return dt(ti(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.
78
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Da.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.
79
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Da.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ri=e=>{const t=dt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};$e.colorChannel=ri;const Vd=(e,t)=>{try{return ri(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};$e.private_safeColorChannel=Vd;function lr(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 Gd(e){if(e.indexOf("#")===0)return e;const{values:t}=dt(e);return`#${t.map((r,n)=>Jd(n===3?Math.round(255*r):r)).join("")}`}function ni(e){e=dt(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])),lr({type:l,values:c})}function gn(e){e=dt(e);let t=e.type==="hsl"||e.type==="hsla"?dt(ni(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 zd(e,t){const r=gn(e),n=gn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function oi(e,t){return e=dt(e),t=Ho(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,lr(e)}function Wd(e,t,r){try{return oi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function qo(e,t){if(e=dt(e),t=Ho(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 lr(e)}function Hd(e,t,r){try{return qo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ko(e,t){if(e=dt(e),t=Ho(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 lr(e)}function qd(e,t,r){try{return Ko(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ai(e,t=.15){return gn(e)>.5?qo(e,t):Ko(e,t)}function Kd(e,t,r){try{return ai(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Xd(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=dt(e),i=dt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return lr({type:"rgb",values:l})}const Mr={black:"#000",white:"#fff"},Yd={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"},Wt={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"},Ht={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"},xr={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"},qt={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"},Kt={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"},Xt={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"},Zd=["mode","contrastThreshold","tonalOffset"],Ua={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:Mr.white,default:Mr.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}},lo={text:{primary:Mr.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:Mr.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 Ba(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=Co(e.main,o):t==="dark"&&(e.dark=jo(e.main,a)))}function Qd(e="light"){return e==="dark"?{main:qt[200],light:qt[50],dark:qt[400]}:{main:qt[700],light:qt[400],dark:qt[800]}}function ef(e="light"){return e==="dark"?{main:Wt[200],light:Wt[50],dark:Wt[400]}:{main:Wt[500],light:Wt[300],dark:Wt[700]}}function tf(e="light"){return e==="dark"?{main:Ht[500],light:Ht[300],dark:Ht[700]}:{main:Ht[700],light:Ht[400],dark:Ht[800]}}function rf(e="light"){return e==="dark"?{main:Kt[400],light:Kt[300],dark:Kt[700]}:{main:Kt[700],light:Kt[500],dark:Kt[900]}}function nf(e="light"){return e==="dark"?{main:Xt[400],light:Xt[300],dark:Xt[700]}:{main:Xt[800],light:Xt[500],dark:Xt[900]}}function of(e="light"){return e==="dark"?{main:xr[400],light:xr[300],dark:xr[700]}:{main:"#ed6c02",light:xr[500],dark:xr[900]}}function af(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=rt(e,Zd),a=e.primary||Qd(t),i=e.secondary||ef(t),l=e.error||tf(t),c=e.info||rf(t),u=e.success||nf(t),d=e.warning||of(t);function m(y){const b=Fa(y,lo.text.primary)>=r?lo.text.primary:Ua.text.primary;if(process.env.NODE_ENV!=="production"){const w=Fa(y,b);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${b} on ${y}`,"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(`
80
80
  `))}return b}const f=({color:y,name:b,mainShade:w=500,lightShade:C=300,darkShade:P=700})=>{if(y=A({},y),!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
81
81
  The color object needs to have a \`main\` property or a \`${w}\` property.`:Tr(11,b?` (${b})`:"",w));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
82
82
  \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
@@ -91,12 +91,12 @@ const theme1 = createTheme({ palette: {
91
91
 
92
92
  const theme2 = createTheme({ palette: {
93
93
  primary: { main: green[500] },
94
- } });`:Tr(12,b?` (${b})`:"",JSON.stringify(y.main)));return Ua(y,"light",C,n),Ua(y,"dark",P,n),y.contrastText||(y.contrastText=m(y.main)),y},_={dark:lo,light:Da};return process.env.NODE_ENV!=="production"&&(_[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ct(A({common:A({},Mr),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:Yd,contrastThreshold:r,getContrastText:m,augmentColor:f,tonalOffset:n},_[t]),o)}const sf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function lf(e){return Math.round(e*1e5)/1e5}const Ba={textTransform:"uppercase"},Ja='"Roboto", "Helvetica", "Arial", sans-serif';function cf(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Ja,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:m}=r,f=rt(r,sf);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 _=o/14,g=m||(w=>`${w/u*_}rem`),y=(w,C,P,k,v)=>A({fontFamily:n,fontWeight:w,fontSize:g(C),lineHeight:P},n===Ja?{letterSpacing:`${lf(k/C)}em`}:{},v,d),b={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(l,14,1.75,.4,Ba),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,Ba),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ct(A({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},b),f,{clone:!1})}const uf=.2,df=.14,ff=.12;function Ce(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${uf})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${df})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ff})`].join(",")}const mf=["none",Ce(0,2,1,-1,0,1,1,0,0,1,3,0),Ce(0,3,1,-2,0,2,2,0,0,1,5,0),Ce(0,3,3,-2,0,3,4,0,0,1,8,0),Ce(0,2,4,-1,0,4,5,0,0,1,10,0),Ce(0,3,5,-1,0,5,8,0,0,1,14,0),Ce(0,3,5,-1,0,6,10,0,0,1,18,0),Ce(0,4,5,-2,0,7,10,1,0,2,16,1),Ce(0,5,5,-3,0,8,10,1,0,3,14,2),Ce(0,5,6,-3,0,9,12,1,0,3,16,2),Ce(0,6,6,-3,0,10,14,1,0,4,18,3),Ce(0,6,7,-4,0,11,15,1,0,4,20,3),Ce(0,7,8,-4,0,12,17,2,0,5,22,4),Ce(0,7,8,-4,0,13,19,2,0,5,24,4),Ce(0,7,9,-4,0,14,21,2,0,5,26,4),Ce(0,8,9,-5,0,15,22,2,0,6,28,5),Ce(0,8,10,-5,0,16,24,2,0,6,30,5),Ce(0,8,11,-5,0,17,26,2,0,6,32,5),Ce(0,9,11,-5,0,18,28,2,0,7,34,6),Ce(0,9,12,-6,0,19,29,2,0,7,36,6),Ce(0,10,13,-6,0,20,31,3,0,8,38,7),Ce(0,10,13,-6,0,21,33,3,0,8,40,7),Ce(0,10,14,-6,0,22,35,3,0,8,42,7),Ce(0,11,14,-7,0,23,36,3,0,9,44,8),Ce(0,11,15,-7,0,24,38,3,0,9,46,8)],hf=["duration","easing","delay"],pf={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)"},gf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Va(e){return`${Math.round(e)}ms`}function yf(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function bf(e){const t=A({},pf,e.easing),r=A({},gf,e.duration);return A({getAutoHeightDuration:yf,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=rt(a,hf);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",m=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
95
- `)),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:Va(i)} ${l} ${typeof c=="string"?c:Va(c)}`).join(",")}},e,{easing:t,duration:r})}const _f={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},vf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ai(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=rt(e,vf);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.":Tr(18));const l=af(n),c=Ur(e);let u=ct(c,{mixins:Fd(c.breakpoints,r),palette:l,shadows:mf.slice(),typography:cf(l,a),transitions:bf(o),zIndex:A({},_f)});if(u=ct(u,i),u=t.reduce((d,m)=>ct(d,m),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(f,_)=>{let g;for(g in f){const y=f[g];if(d.indexOf(g)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const b=Ln("",g);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
96
- `))}f[g]={}}}};Object.keys(u.components).forEach(f=>{const _=u.components[f].styleOverrides;_&&f.indexOf("Mui")===0&&m(_,f)})}return u.unstable_sxConfig=A({},Fr,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return Dr({sx:m,theme:this})},u}const si=ai(),ii="$$material";function Xo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sf=e=>Xo(e)&&e!=="classes",kt=wd({themeId:ii,defaultTheme:si,rootShouldForwardProp:Sf});process.env.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function li(e){return sd(e)}const or=hd({createStyledComponent:kt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>li({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(or.propTypes={children:p.node,component:p.elementType,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),useFlexGap:p.bool});const Po=tt.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{Lr(()=>{const d=r(),m=l.current;m&&(m.textContent=d)});const l=Pe.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(or,{height:"72px",direction:"row",...i,children:[s.jsx(U.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(or,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(or,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none"},children:t}),s.jsx(U.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(U.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:"+"})]})}),xf={"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"},wf={"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"},Rf={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 yn{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||Rf,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 yn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new yn(this.logger,t)}}var _t=new yn;class Nn{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])})}}function wr(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function Ga(e){return e==null?"":""+e}function jf(e,t,r){e.forEach(n=>{t[n]&&(r[n]=t[n])})}const Cf=/###/g;function Pr(e,t,r){function n(l){return l&&l.indexOf("###")>-1?l.replace(Cf,"."):l}function o(){return!e||typeof e=="string"}const a=typeof t!="string"?t:t.split(".");let i=0;for(;i<a.length-1;){if(o())return{};const l=n(a[i]);!e[l]&&r&&(e[l]=new r),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++i}return o()?{}:{obj:e,k:n(a[i])}}function za(e,t,r){const{obj:n,k:o}=Pr(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=Pr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Pr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r}function Pf(e,t,r,n){const{obj:o,k:a}=Pr(e,t,Object);o[a]=o[a]||[],o[a].push(r)}function bn(e,t){const{obj:r,k:n}=Pr(e,t);if(r)return r[n]}function Ef(e,t,r){const n=bn(e,r);return n!==void 0?n:bn(t,r)}function ci(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]):ci(e[n],t[n],r):e[n]=t[n]);return e}function Yt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Tf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Af(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Tf[t]):e}class Of{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 Mf=[" ",",","?","!",";"],kf=new Of(20);function If(e,t,r){t=t||"",r=r||"";const n=Mf.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=kf.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}function Eo(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}function _n(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Wa extends Nn{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=bn(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:Eo(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),za(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=bn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?ci(c,n,a):c={...c,...n},za(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 ui={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 Ha={};class vn extends Nn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),jf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_t.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&&!If(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 m=this.resolve(t,r);let f=m&&m.res;const _=m&&m.usedKey||i,g=m&&m.exactUsedKey||i,y=Object.prototype.toString.apply(f),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject;if(C&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&b.indexOf(y)<0&&!(typeof w=="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(_,f,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(m.res=k,m.usedParams=this.getUsedParamsDetails(r),m):k}if(a){const k=Array.isArray(f),v=k?[]:{},N=k?g:_;for(const I in f)if(Object.prototype.hasOwnProperty.call(f,I)){const de=`${N}${a}${I}`;v[I]=this.translate(de,{...r,joinArrays:!1,ns:l}),v[I]===de&&(v[I]=f[I])}f=v}}else if(C&&typeof w=="string"&&Array.isArray(f))f=f.join(w),f&&(f=this.extendTranslation(f,t,r,n));else{let k=!1,v=!1;const N=r.count!==void 0&&typeof r.count!="string",I=vn.hasDefaultValue(r),de=N?this.pluralResolver.getSuffix(u,r.count,r):"",Ee=r.ordinal&&N?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",Re=N&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),B=Re&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${de}`]||r[`defaultValue${Ee}`]||r.defaultValue;!this.isValidLookup(f)&&I&&(k=!0,f=B),this.isValidLookup(f)||(v=!0,f=i);const Q=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&v?void 0:f,te=I&&B!==f&&this.options.updateMissing;if(v||k||te){if(this.logger.log(te?"updateKey":"missingKey",u,c,i,te?B:f),a){const se=this.resolve(i,{...r,keySeparator:!1});se&&se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ne=[];const be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&be&&be[0])for(let se=0;se<be.length;se++)ne.push(be[se]);else this.options.saveMissingTo==="all"?ne=this.languageUtils.toResolveHierarchy(r.lng||this.language):ne.push(r.lng||this.language);const ce=(se,ke,R)=>{const M=I&&R!==f?R:Q;this.options.missingKeyHandler?this.options.missingKeyHandler(se,c,ke,M,te,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(se,c,ke,M,te,r),this.emit("missingKey",se,c,ke,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?ne.forEach(se=>{const ke=this.pluralResolver.getSuffixes(se,r);Re&&r[`defaultValue${this.options.pluralSeparator}zero`]&&ke.indexOf(`${this.options.pluralSeparator}zero`)<0&&ke.push(`${this.options.pluralSeparator}zero`),ke.forEach(R=>{ce([se],i+R,r[`defaultValue${R}`]||B)})}):ce(ne,i,B))}f=this.extendTranslation(f,t,r,m,n),v&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${i}`),(v||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,k?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(m.res=f,m.usedParams=this.getUsedParamsDetails(r),m):f}extendTranslation(t,r,n,o,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let m=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,n.lng||this.language||o.usedLng,n),u){const f=t.match(this.interpolator.nestingRegexp),_=f&&f.length;d<_&&(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,_=new Array(f),g=0;g<f;g++)_[g]=arguments[g];return a&&a[0]===_[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${_[0]} in key: ${r[0]}`),null):i.translate(..._,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=ui.handle(c,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,a,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;o=d;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",_=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),g=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);m.forEach(b=>{this.isValidLookup(n)||(l=b,!Ha[`${y[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Ha[`${y[0]}-${b}`]=!0,this.logger.warn(`key "${o}" for languages "${y.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!!!")),y.forEach(w=>{if(this.isValidLookup(n))return;i=w;const C=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(C,d,w,b,r);else{let k;f&&(k=this.pluralResolver.getSuffix(w,r.count,r));const v=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(C.push(d+k),r.ordinal&&k.indexOf(N)===0&&C.push(d+k.replace(N,this.options.pluralSeparator)),_&&C.push(d+v)),g){const I=`${d}${this.options.contextSeparator}${r.context}`;C.push(I),f&&(C.push(I+k),r.ordinal&&k.indexOf(N)===0&&C.push(I+k.replace(N,this.options.pluralSeparator)),_&&C.push(I+v))}}let P;for(;P=C.pop();)this.isValidLookup(n)||(a=P,n=this.getResource(w,b,P,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}}function co(e){return e.charAt(0).toUpperCase()+e.slice(1)}class qa{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_t.create("languageUtils")}getScriptPartFromCode(t){if(t=_n(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=_n(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=co(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]=co(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=co(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 Lf=[{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}],$f={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Nf=["v1","v2","v3"],Ff=["v4"],Ka={zero:0,one:1,two:2,few:3,many:4,other:5};function Df(){const e={};return Lf.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:$f[t.fc]}})}),e}class Uf{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=_t.create("pluralResolver"),(!this.options.compatibilityJSON||Ff.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=Df()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(_n(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,a)=>Ka[o]-Ka[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!Nf.includes(this.options.compatibilityJSON)}}function Xa(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=Ef(e,t,r);return!a&&o&&typeof r=="string"&&(a=Eo(e,r,n),a===void 0&&(a=Eo(t,r,n))),a}class Bf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_t.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:a,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:f,nestingPrefixEscaped:_,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:C}=t.interpolation;this.escape=r!==void 0?r:Af,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?Yt(a):i||"{{",this.suffix=l?Yt(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?Yt(f):_||Yt("$t("),this.nestingSuffix=g?Yt(g):y||Yt(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=C!==void 0?C:!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||{};function u(g){return g.replace(/\$/g,"$$$$")}const d=g=>{if(g.indexOf(this.formatSeparator)<0){const C=Xa(r,c,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,n,{...o,...r,interpolationkey:g}):C}const y=g.split(this.formatSeparator),b=y.shift().trim(),w=y.join(this.formatSeparator).trim();return this.format(Xa(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),w,n,{...o,...r,interpolationkey:b})};this.resetRegExp();const m=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:g=>u(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?u(this.escape(g)):u(g)}].forEach(g=>{for(l=0;a=g.regex.exec(t);){const y=a[1].trim();if(i=d(y),i===void 0)if(typeof m=="function"){const w=m(t,a,o);i=typeof w=="string"?w:""}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=Ga(i));const b=g.safeValue(i);if(t=t.replace(a[0],b),f?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=a[0].length):g.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;function l(c,u){const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const m=c.split(new RegExp(`${d}[ ]*{`));let f=`{${m[1]}`;c=m[0],f=this.interpolate(f,i);const _=f.match(/'/g),g=f.match(/"/g);(_&&_.length%2===0&&!g||g.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),u&&(i={...u,...i})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,y),`${c}${d}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=d.shift(),c=d,u=!0}if(a=r(l.call(this,o[1].trim(),i),i),a&&o[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=Ga(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,m)=>this.format(d,m,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}function Jf(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}}function Zt(e){const t={};return function(n,o,a){const i=o+JSON.stringify(a);let l=t[i];return l||(l=e(_n(o),a),t[i]=l),l(n)}}class Vf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_t.create("formatter"),this.options=t,this.formats={number:Zt((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:Zt((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:Zt((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:Zt((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:Zt((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()]=Zt(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((l,c)=>{const{formatName:u,formatOptions:d}=Jf(c);if(this.formats[u]){let m=l;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},_=f.locale||f.lng||o.locale||o.lng||n;m=this.formats[u](l,_,{...d,...o,...f})}catch(f){this.logger.warn(f)}return m}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function Gf(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class zf extends Nn{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=_t.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const a={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(m=>{const f=`${u}|${m}`;!n.reload&&this.store.hasResourceBundle(u,m)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,d=!1,i[f]===void 0&&(i[f]=!0),a[f]===void 0&&(a[f]=!0),c[m]===void 0&&(c[m]=!0)))}),d||(l[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const o=t.split("|"),a=o[0],i=o[1];r&&this.emit("failedLoading",a,i,r),n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{Pf(c.loaded,[a],i),Gf(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(m=>{l[u][m]===void 0&&(l[u][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:a,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const a=this.queueLoad(t,r,n,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),o=n[0],a=n[1];this.read(o,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${a} for language ${o} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${o}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,o,c):d=u(t,r,n,o),d&&typeof d.then=="function"?d.then(m=>l(null,m)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,o,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}function Ya(){return{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:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(o=>{r[o]=n[o]})}return r},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Za(e){return 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}function Yr(){}function Wf(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}class kr extends Nn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Za(t),this.services={},this.logger=_t,this.modules={external:[]},Wf(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=Ya();this.options={...o,...this.options,...Za(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);function a(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?_t.init(a(this.modules.logger),this.options):_t.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Vf);const m=new qa(this.options);this.store=new Wa(this.options.resources,this.options);const f=this.services;f.logger=_t,f.resourceStore=this.store,f.languageUtils=m,f.pluralResolver=new Uf(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=a(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Bf(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new zf(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(_){for(var g=arguments.length,y=new Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];t.emit(_,...y)}),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 vn(this.services,this.options),this.translator.on("*",function(_){for(var g=arguments.length,y=new Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];t.emit(_,...y)}),this.modules.external.forEach(_=>{_.init&&_.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Yr),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=wr(),u=()=>{const d=(m,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(f),n(m,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yr;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=wr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=Yr),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"&&ui.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=wr();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),m=2;m<u;m++)d[m-2]=arguments[m];c=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||a.keyPrefix);const f=o.options.keySeparator||".";let _;return c.keyPrefix&&Array.isArray(i)?_=i.map(g=>`${c.keyPrefix}${f}${g}`):_=c.keyPrefix?`${c.keyPrefix}${f}${i}`:i,o.t(_,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=wr();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=wr();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 qa(Ya());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 kr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yr;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new kr(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 Wa(this.store.data,o),a.services.resourceStore=a.store),a.translator=new vn(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 Ge=kr.createInstance();Ge.createInstance=kr.createInstance;Ge.createInstance;Ge.dir;Ge.init;Ge.loadResources;Ge.reloadResources;Ge.use;Ge.changeLanguage;Ge.getFixedT;Ge.t;Ge.exists;Ge.setDefaultNamespace;Ge.hasLoadedNamespace;Ge.loadNamespaces;Ge.loadLanguages;const di=Ge.createInstance();di.use(Zi).use(At.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:wf},de:{translations:xf}},ns:["translations"],defaultNS:"translations"});const fi=tt.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=At.useTranslation(),[c,u]=Pe.useState(),d=tt.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}}));Lr(()=>{u(o())});function m(g){g.button===0&&d.startJogging("-")}function f(g){g.button===0&&d.startJogging("+")}function _(g,y=1){if(g===void 0||isNaN(g))return"";const b=l("General.degree.variable",{amount:g.toFixed(y)});return g>0&&y===0?`+${b}`:b}return s.jsx(At.I18nextProvider,{i18n:di,children:s.jsxs(or,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,children:[s.jsx(U.IconButton,{onPointerDown:m,onPointerUp:d.stopJogging,onPointerOut:d.stopJogging,disabled:a,sx:{width:"52px",color:"white",alignContent:"center",borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975 !important":"#38445A","& svg":{width:"42px",height:"42px"}},children:s.jsx(na.ChevronLeft,{})}),s.jsxs(or,{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(U.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px"},children:_(c)}),s.jsx(U.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:_(r,0)},{value:n,label:_(n,0)}]})]}),s.jsx(U.IconButton,{onPointerDown:f,onPointerUp:d.stopJogging,onPointerOut:d.stopJogging,disabled:a,sx:{width:"52px",color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A","& svg":{width:"42px",height:"42px"}},children:s.jsx(na.ChevronRight,{})})]})})}),Hf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{d:"M18.5 12C18.5 8.68629 15.8137 6 12.5 6C9.18629 6 6.5 8.68629 6.5 12C6.5 15.3137 9.18629 18 12.5 18",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",fill:"none"}),V.createElement("path",{d:"M16.5 11L18.5 13.5L20.5 11",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qf=Pe.forwardRef(Hf),Kf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:19,height:10,viewBox:"0 0 19 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13114 0.312406C5.48225 0.663519 5.48225 1.23278 5.13114 1.5839L3.06975 3.64528H15.5109L13.4496 1.58402C13.0985 1.2329 13.0985 0.66364 13.4496 0.312527C13.8007 -0.0385848 14.37 -0.0385848 14.7211 0.312527L18.3174 3.90884C18.6685 4.25996 18.6685 4.82922 18.3174 5.18033L14.7211 8.77665C14.37 9.12776 13.8007 9.12776 13.4496 8.77665C13.0985 8.42554 13.0985 7.85627 13.4496 7.50516L15.5113 5.44344H3.06954L5.13114 7.50504C5.48225 7.85615 5.48225 8.42542 5.13114 8.77653C4.78003 9.12764 4.21076 9.12764 3.85965 8.77653L0.263334 5.18021C-0.087778 4.8291 -0.087778 4.25983 0.263334 3.90872L3.85965 0.312406C4.21076 -0.0387058 4.78003 -0.0387058 5.13114 0.312406Z",fill:"white"})),Xf=Pe.forwardRef(Kf),Yf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:19,height:10,viewBox:"0 0 19 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13114 0.312406C5.48225 0.663519 5.48225 1.23278 5.13114 1.5839L3.06975 3.64528H15.5109L13.4496 1.58402C13.0985 1.2329 13.0985 0.66364 13.4496 0.312527C13.8007 -0.0385848 14.37 -0.0385848 14.7211 0.312527L18.3174 3.90884C18.6685 4.25996 18.6685 4.82922 18.3174 5.18033L14.7211 8.77665C14.37 9.12776 13.8007 9.12776 13.4496 8.77665C13.0985 8.42554 13.0985 7.85627 13.4496 7.50516L15.5113 5.44344H3.06954L5.13114 7.50504C5.48225 7.85615 5.48225 8.42542 5.13114 8.77653C4.78003 9.12764 4.21076 9.12764 3.85965 8.77653L0.263334 5.18021C-0.087778 4.8291 -0.087778 4.25983 0.263334 3.90872L3.85965 0.312406C4.21076 -0.0387058 4.78003 -0.0387058 5.13114 0.312406Z",fill:"white"})),Zf=Pe.forwardRef(Yf),Qf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:10,height:19,viewBox:"0 0 10 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.52182 14.8114C9.87293 14.4603 9.87293 13.8911 9.52182 13.54C9.17071 13.1888 8.60144 13.1888 8.25033 13.54L6.18885 15.6014L6.18885 3.15999L8.25033 5.22147C8.60144 5.57258 9.17071 5.57258 9.52182 5.22147C9.87293 4.87036 9.87293 4.30109 9.52182 3.94998L5.9255 0.353666C5.57439 0.00255379 5.00513 0.00255378 4.65401 0.353666L1.0577 3.94998C0.706587 4.30109 0.706587 4.87036 1.0577 5.22147C1.40881 5.57258 1.97808 5.57258 2.32919 5.22147L4.3907 3.15996L4.3907 15.6015L2.32919 13.54C1.97808 13.1888 1.40881 13.1888 1.0577 13.54C0.706588 13.8911 0.706588 14.4603 1.0577 14.8114L4.65402 18.4078C5.00513 18.7589 5.57439 18.7589 5.92551 18.4078L9.52182 14.8114Z",fill:"white"})),em=Pe.forwardRef(Qf);function tm(){const e=Js(si);return process.env.NODE_ENV!=="production"&&V.useDebugValue(e),e[ii]||e}const ye={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"},mi={primary:ye.skyblue500,textDefault:ye.white,textInverse:ye.darkestblue,textError:ye.scaryred,textSubtle:ye.midnightgray500,backgroundDefault:ye.darkishblue,inputBackgroundDefault:ye.darkgrayishblue,borderColorDefault:"#3A4150",selectBackground:ye.grayishblue,appBarBackground:ye.darkestblue,virtualRobot:"#1AC0B2",physicalRobot:"#956FFA",robotViewportBackground:"#1F283A",viewportButtonInactiveBackground:ye.darkestblue,viewportButtonHover:ye.midnightgray500,viewportButtonActiveBackground:ye.skyblue500,tabsBarBackground:ye.darkestblue,activeTabBackground:ye.darkishblue,omniverseConfigurationSuccess:ye.tealGreen,omniverseConfigurationFailure:ye.magenta},hi={primary:ye.lightbuttonblue,textDefault:"#18181B",textInverse:ye.white,textError:ye.scaryred,textSubtle:ye.midnightgray500,backgroundDefault:ye.white,inputBackgroundDefault:ye.white,borderColorDefault:ye.midnightgray500,selectBackground:"#E4E4E7",appBarBackground:ye.white,virtualRobot:"green",physicalRobot:"blue",robotViewportBackground:"#E4E4E7",viewportButtonInactiveBackground:ye.midnightgray,viewportButtonHover:ye.midnightgray500,viewportButtonActiveBackground:ye.lightbuttonblue,tabsBarBackground:ye.white,activeTabBackground:ye.white,omniverseConfigurationSuccess:ye.tealGreen,omniverseConfigurationFailure:ye.magenta};function pi(){return tm().palette.mode==="dark"?mi:hi}function gi(e,t={}){const r=e==="light"?hi:mi;return ai(bt.defaultsDeep(t,{palette:{mode:e,primary:{main:r.primary},background:{default:r.backgroundDefault}},typography:{allVariants:{color:r.textDefault}},components:{MuiPaper:{styleOverrides:{root:{backgroundColor:r.backgroundDefault}}},MuiTabs:{styleOverrides:{root:{backgroundColor:r.tabsBarBackground,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":{color:"inherit",backgroundColor:r.activeTabBackground}}}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{textTransform:"none",borderRadius:"10px",fontSize:"14px",fontWeight:500}},variants:[{props:{variant:"outlined"},style:{border:"2px solid rgba(255, 255, 255, 0.6)",color:"rgba(255, 255, 255, 0.6)",backgroundColor:"rgba(255, 255, 255, 0.2)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.4)",border:"2px solid rgba(255, 255, 255, 0.8)"}}}]},MuiFab:{styleOverrides:{root:{width:"48px",height:"48px",backgroundColor:r.viewportButtonInactiveBackground,color:r.textDefault,"&:hover":{backgroundColor:r.viewportButtonHover}}},variants:[{props:{variant:"active"},style:{backgroundColor:r.viewportButtonActiveBackground,color:r.textInverse,"&:hover":{backgroundColor:r.viewportButtonActiveBackground}}}]}}}))}gi("dark");gi("light");const uo=({kind:e,sx:t,...r})=>{const n=pi();let o=bt.defaultsDeep(t,{backgroundColor:n.selectBackground,borderRadius:"10px",borderStyle:"none",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:"none"}});return e==="outlined"?o=bt.defaultsDeep({backgroundColor:"transparent"},o):e==="text"&&(o=bt.defaultsDeep({backgroundColor:"transparent","& .MuiSvgIcon-root":{borderStyle:"none",color:"inherit"}},o)),s.jsx(U.Select,{sx:o,...r})},rm=tt.observer(({store:e})=>{const{t}=At.useTranslation(),r=pi();return s.jsxs(U.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{padding:"16px","& label":{color:r.textSubtle,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(U.Stack,{width:"33%",children:[s.jsx(U.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(uo,{kind:"filled",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(U.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(U.Stack,{width:"33%",children:[s.jsx(U.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(uo,{kind:"filled",labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(U.MenuItem,{value:n.id,children:n.id},n.id))})]}),s.jsxs(U.Stack,{width:"33%",children:[s.jsx(U.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(uo,{kind:"filled",labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(U.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(U.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})});function nm(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const om=2;function yi(e,t){return e-t}function Qa(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 Zr(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 Sn(e,t,r){return(e-t)*100/(r-t)}function am(e,t,r){return(r-t)*e+t}function sm(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 im(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(sm(t)))}function es({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(yi)}function Qr({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=sn(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 en(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?nm(e,t):!1}const lm={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}%`})}},cm=e=>e;let tn;function ts(){return tn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tn=CSS.supports("touch-action","none"):tn=!0),tn}function um(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:m,orientation:f="horizontal",rootRef:_,scale:g=cm,step:y=1,shiftStep:b=10,tabIndex:w,value:C}=e,P=V.useRef(),[k,v]=V.useState(-1),[N,I]=V.useState(-1),[de,Ee]=V.useState(!1),Re=V.useRef(0),[B,ae]=Ju({controlled:C,default:r??c,name:"Slider"}),Q=d&&((E,$,J)=>{const ie=E.nativeEvent||E,fe=new ie.constructor(ie.type,ie);Object.defineProperty(fe,"target",{writable:!0,value:{value:$,name:u}}),d(fe,$,J)}),te=Array.isArray(B);let ne=te?B.slice().sort(yi):[B];ne=ne.map(E=>E==null?c:Qt(E,c,l));const be=i===!0&&y!==null?[...Array(Math.floor((l-c)/y)+1)].map((E,$)=>({value:c+y*$})):i||[],ce=be.map(E=>E.value),{isFocusVisibleRef:se,onBlur:ke,onFocus:R,ref:M}=Xu(),[X,G]=V.useState(-1),D=V.useRef(),ee=xo(M,D),W=xo(_,ee),z=E=>$=>{var J;const ie=Number($.currentTarget.getAttribute("data-index"));R($),se.current===!0&&G(ie),I(ie),E==null||(J=E.onFocus)==null||J.call(E,$)},q=E=>$=>{var J;ke($),se.current===!1&&G(-1),I(-1),E==null||(J=E.onBlur)==null||J.call(E,$)},re=(E,$)=>{const J=Number(E.currentTarget.getAttribute("data-index")),ie=ne[J],fe=ce.indexOf(ie);let le=$;if(be&&y==null){const Ze=ce[ce.length-1];le>Ze?le=Ze:le<ce[0]?le=ce[0]:le=le<ie?ce[fe-1]:ce[fe+1]}if(le=Qt(le,c,l),te){o&&(le=Qt(le,ne[J-1]||-1/0,ne[J+1]||1/0));const Ze=le;le=es({values:ne,newValue:le,index:J});let nt=J;o||(nt=le.indexOf(Ze)),Qr({sliderRef:D,activeIndex:nt})}ae(le),G(J),Q&&!en(le,B)&&Q(E,le,J),m&&m(E,le)},Y=E=>$=>{var J;if(y!==null){const ie=Number($.currentTarget.getAttribute("data-index")),fe=ne[ie];let le=null;($.key==="ArrowLeft"||$.key==="ArrowDown")&&$.shiftKey||$.key==="PageDown"?le=Math.max(fe-b,c):(($.key==="ArrowRight"||$.key==="ArrowUp")&&$.shiftKey||$.key==="PageUp")&&(le=Math.min(fe+b,l)),le!==null&&(re($,le),$.preventDefault())}E==null||(J=E.onKeyDown)==null||J.call(E,$)};qs(()=>{if(n&&D.current.contains(document.activeElement)){var E;(E=document.activeElement)==null||E.blur()}},[n]),n&&k!==-1&&v(-1),n&&X!==-1&&G(-1);const Te=E=>$=>{var J;(J=E.onChange)==null||J.call(E,$),re($,$.target.valueAsNumber)},O=V.useRef();let je=f;a&&f==="horizontal"&&(je+="-reverse");const T=({finger:E,move:$=!1})=>{const{current:J}=D,{width:ie,height:fe,bottom:le,left:Ze}=J.getBoundingClientRect();let nt;je.indexOf("vertical")===0?nt=(le-E.y)/fe:nt=(E.x-Ze)/ie,je.indexOf("-reverse")!==-1&&(nt=1-nt);let me;if(me=am(nt,c,l),y)me=im(me,y,c);else{const Pt=Qa(ce,me);me=ce[Pt]}me=Qt(me,c,l);let qe=0;if(te){$?qe=O.current:qe=Qa(ne,me),o&&(me=Qt(me,ne[qe-1]||-1/0,ne[qe+1]||1/0));const Pt=me;me=es({values:ne,newValue:me,index:qe}),o&&$||(qe=me.indexOf(Pt),O.current=qe)}return{newValue:me,activeIndex:qe}},ue=oo(E=>{const $=Zr(E,P);if(!$)return;if(Re.current+=1,E.type==="mousemove"&&E.buttons===0){Ae(E);return}const{newValue:J,activeIndex:ie}=T({finger:$,move:!0});Qr({sliderRef:D,activeIndex:ie,setActive:v}),ae(J),!de&&Re.current>om&&Ee(!0),Q&&!en(J,B)&&Q(E,J,ie)}),Ae=oo(E=>{const $=Zr(E,P);if(Ee(!1),!$)return;const{newValue:J}=T({finger:$,move:!0});v(-1),E.type==="touchend"&&I(-1),m&&m(E,J),P.current=void 0,He()}),We=oo(E=>{if(n)return;ts()||E.preventDefault();const $=E.changedTouches[0];$!=null&&(P.current=$.identifier);const J=Zr(E,P);if(J!==!1){const{newValue:fe,activeIndex:le}=T({finger:J});Qr({sliderRef:D,activeIndex:le,setActive:v}),ae(fe),Q&&!en(fe,B)&&Q(E,fe,le)}Re.current=0;const ie=sn(D.current);ie.addEventListener("touchmove",ue,{passive:!0}),ie.addEventListener("touchend",Ae,{passive:!0})}),He=V.useCallback(()=>{const E=sn(D.current);E.removeEventListener("mousemove",ue),E.removeEventListener("mouseup",Ae),E.removeEventListener("touchmove",ue),E.removeEventListener("touchend",Ae)},[Ae,ue]);V.useEffect(()=>{const{current:E}=D;return E.addEventListener("touchstart",We,{passive:ts()}),()=>{E.removeEventListener("touchstart",We),He()}},[He,We]),V.useEffect(()=>{n&&He()},[n,He]);const jt=E=>$=>{var J;if((J=E.onMouseDown)==null||J.call(E,$),n||$.defaultPrevented||$.button!==0)return;$.preventDefault();const ie=Zr($,P);if(ie!==!1){const{newValue:le,activeIndex:Ze}=T({finger:ie});Qr({sliderRef:D,activeIndex:Ze,setActive:v}),ae(le),Q&&!en(le,B)&&Q($,le,Ze)}Re.current=0;const fe=sn(D.current);fe.addEventListener("mousemove",ue,{passive:!0}),fe.addEventListener("mouseup",Ae)},Be=Sn(te?ne[0]:c,c,l),Ct=Sn(ne[ne.length-1],c,l)-Be,It=(E={})=>{const $=ln(E),J={onMouseDown:jt($||{})},ie=A({},$,J);return A({},E,{ref:W},ie)},dr=E=>$=>{var J;(J=E.onMouseOver)==null||J.call(E,$);const ie=Number($.currentTarget.getAttribute("data-index"));I(ie)},fr=E=>$=>{var J;(J=E.onMouseLeave)==null||J.call(E,$),I(-1)};return{active:k,axis:je,axisProps:lm,dragging:de,focusedThumbIndex:X,getHiddenInputProps:(E={})=>{var $;const J=ln(E),ie={onChange:Te(J||{}),onFocus:z(J||{}),onBlur:q(J||{}),onKeyDown:Y(J||{})},fe=A({},J,ie);return A({tabIndex:w,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(l),"aria-valuemin":g(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":($=e.step)!=null?$:void 0,disabled:n},E,fe,{style:A({},Yu,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:It,getThumbProps:(E={})=>{const $=ln(E),J={onMouseOver:dr($||{}),onMouseLeave:fr($||{})};return A({},E,$,J)},marks:be,open:N,range:te,rootRef:W,trackLeap:Ct,trackOffset:Be,values:ne,getThumbStyle:E=>({pointerEvents:k!==-1&&k!==E?"none":void 0})}}const dm=e=>!e||!Cr(e);function fm(e){return Ln("MuiSlider",e)}const lt=Ru("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"]),mm=e=>{const{open:t}=e;return{offset:Rt(t&&lt.valueLabelOpen),circle:lt.valueLabelCircle,label:lt.valueLabelLabel}};function bi(e){const{children:t,className:r,value:n}=e,o=mm(e);return t?V.cloneElement(t,{className:Rt(t.props.className)},s.jsxs(V.Fragment,{children:[t.props.children,s.jsx("span",{className:Rt(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"&&(bi.propTypes={children:p.element.isRequired,className:p.string,value:p.node});const hm=["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 rs(e){return e}const pm=kt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${it(r.color)}`],r.size!=="medium"&&t[`size${it(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"},[`&.${lt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${lt.dragging}`]:{[`& .${lt.thumb}, & .${lt.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}}]}}),gm=kt("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}}]}),ym=kt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:Co(e.palette[r].main,.62),borderColor:Co(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:jo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:jo(e.palette[r].main,.5)})))}))]}}),bm=kt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${it(r.color)}`],r.size!=="medium"&&t[`thumbSize${it(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%)"},[`&.${lt.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, &.${lt.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${$a(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${lt.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${$a(e.palette[r].main,.16)}`})}}))]}}),_m=kt(bi,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${lt.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%"},[`&.${lt.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"}}]})),vm=kt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Xo(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}}]})),Sm=kt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Xo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),xm=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${it(l)}`,c&&`size${it(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${it(c)}`,l&&`thumbColor${it(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ks(u,fm,i)},wm=({children:e})=>e,_i=V.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,m,f,_,g,y,b,w,C,P,k,v,N,I,de,Ee,Re;const B=li({props:t,name:"MuiSlider"}),ae=nd(),{"aria-label":Q,"aria-valuetext":te,"aria-labelledby":ne,component:be="span",components:ce={},componentsProps:se={},color:ke="primary",classes:R,className:M,disableSwap:X=!1,disabled:G=!1,getAriaLabel:D,getAriaValueText:ee,marks:W=!1,max:z=100,min:q=0,orientation:re="horizontal",shiftStep:Y=10,size:Te="medium",step:O=1,scale:je=rs,slotProps:T,slots:ue,track:Ae="normal",valueLabelDisplay:We="off",valueLabelFormat:He=rs}=B,jt=rt(B,hm),Be=A({},B,{isRtl:ae,max:z,min:q,classes:R,disabled:G,disableSwap:X,orientation:re,marks:W,color:ke,size:Te,step:O,shiftStep:Y,scale:je,track:Ae,valueLabelDisplay:We,valueLabelFormat:He}),{axisProps:Ct,getRootProps:It,getHiddenInputProps:dr,getThumbProps:fr,open:mr,active:Bt,axis:mt,focusedThumbIndex:E,range:$,dragging:J,marks:ie,values:fe,trackOffset:le,trackLeap:Ze,getThumbStyle:nt}=um(A({},Be,{rootRef:r}));Be.marked=ie.length>0&&ie.some(F=>F.label),Be.dragging=J,Be.focusedThumbIndex=E;const me=xm(Be),qe=(n=(o=ue==null?void 0:ue.root)!=null?o:ce.Root)!=null?n:pm,Pt=(a=(i=ue==null?void 0:ue.rail)!=null?i:ce.Rail)!=null?a:gm,Jt=(l=(c=ue==null?void 0:ue.track)!=null?c:ce.Track)!=null?l:ym,hr=(u=(d=ue==null?void 0:ue.thumb)!=null?d:ce.Thumb)!=null?u:bm,St=(m=(f=ue==null?void 0:ue.valueLabel)!=null?f:ce.ValueLabel)!=null?m:_m,Lt=(_=(g=ue==null?void 0:ue.mark)!=null?g:ce.Mark)!=null?_:vm,$t=(y=(b=ue==null?void 0:ue.markLabel)!=null?b:ce.MarkLabel)!=null?y:Sm,pr=(w=(C=ue==null?void 0:ue.input)!=null?C:ce.Input)!=null?w:"input",gr=(P=T==null?void 0:T.root)!=null?P:se.root,Gr=(k=T==null?void 0:T.rail)!=null?k:se.rail,yr=(v=T==null?void 0:T.track)!=null?v:se.track,Vt=(N=T==null?void 0:T.thumb)!=null?N:se.thumb,Gt=(I=T==null?void 0:T.valueLabel)!=null?I:se.valueLabel,Vn=(de=T==null?void 0:T.mark)!=null?de:se.mark,Gn=(Ee=T==null?void 0:T.markLabel)!=null?Ee:se.markLabel,zr=(Re=T==null?void 0:T.input)!=null?Re:se.input,Wr=Et({elementType:qe,getSlotProps:It,externalSlotProps:gr,externalForwardedProps:jt,additionalProps:A({},dm(qe)&&{as:be}),ownerState:A({},Be,gr==null?void 0:gr.ownerState),className:[me.root,M]}),zn=Et({elementType:Pt,externalSlotProps:Gr,ownerState:Be,className:me.rail}),Wn=Et({elementType:Jt,externalSlotProps:yr,additionalProps:{style:A({},Ct[mt].offset(le),Ct[mt].leap(Ze))},ownerState:A({},Be,yr==null?void 0:yr.ownerState),className:me.track}),br=Et({elementType:hr,getSlotProps:fr,externalSlotProps:Vt,ownerState:A({},Be,Vt==null?void 0:Vt.ownerState),className:me.thumb}),Hn=Et({elementType:St,externalSlotProps:Gt,ownerState:A({},Be,Gt==null?void 0:Gt.ownerState),className:me.valueLabel}),h=Et({elementType:Lt,externalSlotProps:Vn,ownerState:Be,className:me.mark}),j=Et({elementType:$t,externalSlotProps:Gn,ownerState:Be,className:me.markLabel}),L=Et({elementType:pr,getSlotProps:dr,externalSlotProps:zr,ownerState:Be});return s.jsxs(qe,A({},Wr,{children:[s.jsx(Pt,A({},zn)),s.jsx(Jt,A({},Wn)),ie.filter(F=>F.value>=q&&F.value<=z).map((F,H)=>{const he=Sn(F.value,q,z),oe=Ct[mt].offset(he);let K;return Ae===!1?K=fe.indexOf(F.value)!==-1:K=Ae==="normal"&&($?F.value>=fe[0]&&F.value<=fe[fe.length-1]:F.value<=fe[0])||Ae==="inverted"&&($?F.value<=fe[0]||F.value>=fe[fe.length-1]:F.value>=fe[0]),s.jsxs(V.Fragment,{children:[s.jsx(Lt,A({"data-index":H},h,!Cr(Lt)&&{markActive:K},{style:A({},oe,h.style),className:Rt(h.className,K&&me.markActive)})),F.label!=null?s.jsx($t,A({"aria-hidden":!0,"data-index":H},j,!Cr($t)&&{markLabelActive:K},{style:A({},oe,j.style),className:Rt(me.markLabel,j.className,K&&me.markLabelActive),children:F.label})):null]},H)}),fe.map((F,H)=>{const he=Sn(F,q,z),oe=Ct[mt].offset(he),K=We==="off"?wm:St;return s.jsx(K,A({},!Cr(K)&&{valueLabelFormat:He,valueLabelDisplay:We,value:typeof He=="function"?He(je(F),H):He,index:H,open:mr===H||Bt===H||We==="on",disabled:G},Hn,{children:s.jsx(hr,A({"data-index":H},br,{className:Rt(me.thumb,br.className,Bt===H&&me.active,E===H&&me.focusVisible),style:A({},oe,nt(H),br.style),children:s.jsx(pr,A({"data-index":H,"aria-label":D?D(H):Q,"aria-valuenow":je(F),"aria-labelledby":ne,"aria-valuetext":ee?ee(je(F),H):te,value:fe[H]},L))}))}),H)})]}))});process.env.NODE_ENV!=="production"&&(_i.propTypes={"aria-label":Aa(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":p.string,"aria-valuetext":Aa(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});const Rm=tt.observer(e=>{const t=e.valueLabelFormat||(n=>`${n}`);function r(n,o){o===e.velocity||!bt.isNumber(o)||e.onVelocityChange(o)}return s.jsxs(s.Fragment,{children:[s.jsx(U.Typography,{sx:{textAlign:"center",fontSize:"15px"},children:t(e.velocity)}),s.jsx(_i,{value:e.velocity,onChange:r,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),vi=tt.observer(({store:e})=>{const{t}=At.useTranslation(),r=tt.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.jsxs(U.Stack,{children:[s.jsx(U.Divider,{}),s.jsx(U.Stack,{sx:{margin:"0px 20px",marginTop:"0.8rem",marginBottom:"0.8rem"},children:s.jsxs(U.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:[s.jsx(U.Typography,{sx:{fontWeight:"bold",fontSize:"15px"},children:t("Jogging.Velocity.lb")}),s.jsx(Rm,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})]})}),s.jsx(U.Divider,{})]})}),jm=tt.observer(({store:e})=>{var n;const t=Pe.useRef(null);function r(){const o=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return o?tr.poseToWandelscriptString(o):""}return Lr(()=>{t.current&&(t.current.textContent=r())}),s.jsxs(U.Stack,{alignItems:"center",marginTop:"0.8rem",children:[s.jsxs(U.Typography,{sx:{fontSize:"12px",marginTop:"0.8rem"},children:[e.selectedTcpId," - ",(n=e.selectedCoordSystem)==null?void 0:n.name]}),s.jsx(U.Typography,{component:"pre",ref:t,sx:{fontSize:"14px",opacity:.6}})]})}),Cm=({store:e})=>{const{t}=At.useTranslation(),[r,n]=Pe.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);Lr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;bt.isEqual(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(U.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},Pm=tt.observer(({store:e})=>{const{t}=At.useTranslation();function r(u,d){(d==="translate"||d==="rotate")&&e.setSelectedCartesianMotionType(d)}ll(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function n(u,d){const m=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position}async function o(u){if(!e.isLocked){if(e.selectedDiscreteIncrement)return n(u,e.selectedDiscreteIncrement);u.motionType==="translate"?await e.jogger.startTCPTranslation({axis:u.axis,direction:u.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:u.axis,direction:u.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const i=[{id:"x",color:"#F14D42",icon:s.jsx(Xf,{})},{id:"y",color:"#42A705",icon:s.jsx(Zf,{})},{id:"z",color:"#0075FF",icon:s.jsx(em,{})}];function l(u){return t("General.mm.variable",{amount:u.toFixed(1)})}function c(u){return t("General.degree.variable",{amount:tr.radiansToDegrees(u).toFixed(1)})}return s.jsxs(U.Stack,{children:[s.jsx(rm,{store:e}),s.jsx(jm,{store:e}),s.jsx(U.Stack,{alignItems:"center",marginTop:"1rem",children:s.jsxs(U.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),sx:{"& > button":{borderRadius:"8px",textTransform:"none",padding:"4px 30px"}},children:[s.jsx(U.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(U.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]})}),s.jsxs(U.Stack,{width:"80%",maxWidth:"296px",margin:"auto",children:[e.selectedCartesianMotionType==="translate"&&i.map(u=>s.jsx(Po,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[u.icon,s.jsx(U.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d;return l(((d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.position[u.id])||0)},startJogging:d=>o({axis:u.id,motionType:"translate",direction:d}),stopJogging:a},u.id)),e.selectedCartesianMotionType==="rotate"&&i.map(u=>s.jsx(Po,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(qf,{}),s.jsx(U.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d,m;return c(((m=(d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.orientation)==null?void 0:m[u.id])||0)},startJogging:d=>o({axis:u.id,motionType:"rotate",direction:d}),stopJogging:a},u.id))]}),s.jsx(vi,{store:e}),s.jsx(Cm,{store:e})]})}),Em=tt.observer(({store:e})=>{const t=Pe.useRef(null),{t:r}=At.useTranslation();function n(){const{joints:o}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${o.map(a=>parseFloat(a.toFixed(4))).join(", ")}}`}return Lr(()=>{t.current&&(t.current.textContent=n())}),s.jsxs(U.Stack,{alignItems:"center",marginTop:"0.8rem",children:[s.jsx(U.Typography,{sx:{fontSize:"12px",marginTop:"0.8rem"},children:r("Jogging.Joints.JointValues.lb")}),s.jsx(U.Typography,{component:"pre",ref:t,sx:{fontSize:"14px",opacity:.6},children:n()})]})}),Tm=tt.observer(({store:e})=>{async function t(n){await e.jogger.startJointRotation({joint:n.joint,direction:n.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function r(){await e.jogger.stop()}return s.jsxs(U.Stack,{children:[s.jsx(Em,{store:e}),s.jsx(U.Stack,{children:e.jogger.motionStream.joints.map(n=>{var l;const o=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[n.index],a=(o==null?void 0:o.lower_limit)!==void 0?tr.radiansToDegrees(o.lower_limit):void 0,i=(o==null?void 0:o.upper_limit)!==void 0?tr.radiansToDegrees(o.upper_limit):void 0;return s.jsxs(U.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(U.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${n.index+1}`}),s.jsx(fi,{disabled:e.isLocked,lowerLimitDegs:a,upperLimitDegs:i,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[n.index];return c!==void 0?tr.radiansToDegrees(c):void 0},startJogging:c=>t({joint:n.index,direction:c}),stopJogging:r},n.index),s.jsx(U.Typography,{sx:{flexGrow:1}})]},`joint-${n.index}`)})}),s.jsx(vi,{store:e})]})}),To=[{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}],Am=[{id:"continuous"},...To];class Yo{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.isLocked=!1,this.selectedCoordSystemId="world",this.selectedTcpId="",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)||"",Er.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(Er.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 Yo(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=tr.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))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return Am}get discreteIncrementOptions(){return To}get incrementOptionsById(){return bt.keyBy(this.incrementOptions,t=>t.id)}get tabsById(){return bt.keyBy(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 bt.keyBy(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get tcpsById(){return bt.keyBy(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return To.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}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}}function Si(e,t){return function(){return e.apply(t,arguments)}}const{toString:Om}=Object.prototype,{getPrototypeOf:Zo}=Object,Fn=(e=>t=>{const r=Om.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Fn(t)===e),Dn=e=>t=>typeof t===e,{isArray:cr}=Array,Ir=Dn("undefined");function Mm(e){return e!==null&&!Ir(e)&&e.constructor!==null&&!Ir(e.constructor)&&ut(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xi=gt("ArrayBuffer");function km(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xi(e.buffer),t}const Im=Dn("string"),ut=Dn("function"),wi=Dn("number"),Un=e=>e!==null&&typeof e=="object",Lm=e=>e===!0||e===!1,dn=e=>{if(Fn(e)!=="object")return!1;const t=Zo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$m=gt("Date"),Nm=gt("File"),Fm=gt("Blob"),Dm=gt("FileList"),Um=e=>Un(e)&&ut(e.pipe),Bm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ut(e.append)&&((t=Fn(e))==="formdata"||t==="object"&&ut(e.toString)&&e.toString()==="[object FormData]"))},Jm=gt("URLSearchParams"),[Vm,Gm,zm,Wm]=["ReadableStream","Request","Response","Headers"].map(gt),Hm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Jr(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 Ri(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 ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ci=e=>!Ir(e)&&e!==ji;function Ao(){const{caseless:e}=Ci(this)&&this||{},t={},r=(n,o)=>{const a=e&&Ri(t,o)||o;dn(t[a])&&dn(n)?t[a]=Ao(t[a],n):dn(n)?t[a]=Ao({},n):cr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Jr(arguments[n],r);return t}const qm=(e,t,r,{allOwnKeys:n}={})=>(Jr(t,(o,a)=>{r&&ut(o)?e[a]=Si(o,r):e[a]=o},{allOwnKeys:n}),e),Km=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xm=(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)},Ym=(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&&Zo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Zm=(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},Qm=e=>{if(!e)return null;if(cr(e))return e;let t=e.length;if(!wi(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},eh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zo(Uint8Array)),th=(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])}},rh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},nh=gt("HTMLFormElement"),oh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ns=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ah=gt("RegExp"),Pi=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Jr(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},sh=e=>{Pi(e,(t,r)=>{if(ut(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ut(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+"'")})}})},ih=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return cr(e)?n(e):n(String(e).split(t)),r},lh=()=>{},ch=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,fo="abcdefghijklmnopqrstuvwxyz",os="0123456789",Ei={DIGIT:os,ALPHA:fo,ALPHA_DIGIT:fo+fo.toUpperCase()+os},uh=(e=16,t=Ei.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function dh(e){return!!(e&&ut(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const fh=e=>{const t=new Array(10),r=(n,o)=>{if(Un(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=cr(n)?[]:{};return Jr(n,(i,l)=>{const c=r(i,o+1);!Ir(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},mh=gt("AsyncFunction"),hh=e=>e&&(Un(e)||ut(e))&&ut(e.then)&&ut(e.catch),S={isArray:cr,isArrayBuffer:xi,isBuffer:Mm,isFormData:Bm,isArrayBufferView:km,isString:Im,isNumber:wi,isBoolean:Lm,isObject:Un,isPlainObject:dn,isReadableStream:Vm,isRequest:Gm,isResponse:zm,isHeaders:Wm,isUndefined:Ir,isDate:$m,isFile:Nm,isBlob:Fm,isRegExp:ah,isFunction:ut,isStream:Um,isURLSearchParams:Jm,isTypedArray:eh,isFileList:Dm,forEach:Jr,merge:Ao,extend:qm,trim:Hm,stripBOM:Km,inherits:Xm,toFlatObject:Ym,kindOf:Fn,kindOfTest:gt,endsWith:Zm,toArray:Qm,forEachEntry:th,matchAll:rh,isHTMLForm:nh,hasOwnProperty:ns,hasOwnProp:ns,reduceDescriptors:Pi,freezeMethods:sh,toObjectSet:ih,toCamelCase:oh,noop:lh,toFiniteNumber:ch,findKey:Ri,global:ji,isContextDefined:Ci,ALPHABET:Ei,generateString:uh,isSpecCompliantForm:dh,toJSONObject:fh,isAsyncFn:mh,isThenable:hh};function Z(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}S.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ti=Z.prototype,Ai={};["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=>{Ai[e]={value:e}});Object.defineProperties(Z,Ai);Object.defineProperty(Ti,"isAxiosError",{value:!0});Z.from=(e,t,r,n,o,a)=>{const i=Object.create(Ti);return S.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Z.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const ph=null;function Oo(e){return S.isPlainObject(e)||S.isArray(e)}function Oi(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function as(e,t,r){return e?e.concat(t).map(function(o,a){return o=Oi(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function gh(e){return S.isArray(e)&&!e.some(Oo)}const yh=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Bn(e,t,r){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=S.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!S.isUndefined(b[y])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(S.isDate(g))return g.toISOString();if(!c&&S.isBlob(g))throw new Z("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(g)||S.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,y,b){let w=g;if(g&&!b&&typeof g=="object"){if(S.endsWith(y,"{}"))y=n?y:y.slice(0,-2),g=JSON.stringify(g);else if(S.isArray(g)&&gh(g)||(S.isFileList(g)||S.endsWith(y,"[]"))&&(w=S.toArray(g)))return y=Oi(y),w.forEach(function(P,k){!(S.isUndefined(P)||P===null)&&t.append(i===!0?as([y],k,a):i===null?y:y+"[]",u(P))}),!1}return Oo(g)?!0:(t.append(as(b,y,a),u(g)),!1)}const m=[],f=Object.assign(yh,{defaultVisitor:d,convertValue:u,isVisitable:Oo});function _(g,y){if(!S.isUndefined(g)){if(m.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));m.push(g),S.forEach(g,function(w,C){(!(S.isUndefined(w)||w===null)&&o.call(t,w,S.isString(C)?C.trim():C,y,f))===!0&&_(w,y?y.concat(C):[C])}),m.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return _(e),t}function ss(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Qo(e,t){this._pairs=[],e&&Bn(e,this,t)}const Mi=Qo.prototype;Mi.append=function(t,r){this._pairs.push([t,r])};Mi.toString=function(t){const r=t?function(n){return t.call(this,n,ss)}:ss;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function bh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ki(e,t,r){if(!t)return e;const n=r&&r.encode||bh,o=r&&r.serialize;let a;if(o?a=o(t,r):a=S.isURLSearchParams(t)?t.toString():new Qo(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class is{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ii={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_h=typeof URLSearchParams<"u"?URLSearchParams:Qo,vh=typeof FormData<"u"?FormData:null,Sh=typeof Blob<"u"?Blob:null,xh={isBrowser:!0,classes:{URLSearchParams:_h,FormData:vh,Blob:Sh},protocols:["http","https","file","blob","url","data"]},ea=typeof window<"u"&&typeof document<"u",wh=(e=>ea&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Rh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jh=ea&&window.location.href||"http://localhost",Ch=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ea,hasStandardBrowserEnv:wh,hasStandardBrowserWebWorkerEnv:Rh,origin:jh},Symbol.toStringTag,{value:"Module"})),ht={...Ch,...xh};function Ph(e,t){return Bn(e,new ht.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return ht.isNode&&S.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Eh(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Th(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 Li(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=r.length;return i=!i&&S.isArray(o)?o.length:i,c?(S.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!S.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&S.isArray(o[i])&&(o[i]=Th(o[i])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const r={};return S.forEachEntry(e,(n,o)=>{t(Eh(n),o,r,0)}),r}return null}function Ah(e,t,r){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Vr={transitional:Ii,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=S.isObject(t);if(a&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(Li(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ph(t,this.formSerializer).toString();if((l=S.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Bn(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Ah(t)):t}],transformResponse:[function(t){const r=this.transitional||Vr.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?Z.from(l,Z.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:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Vr.headers[e]={}});const Oh=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mh=e=>{const t={};let r,n,o;return e&&e.split(`
97
- `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&Oh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ls=Symbol("internals");function Rr(e){return e&&String(e).trim().toLowerCase()}function fn(e){return e===!1||e==null?e:S.isArray(e)?e.map(fn):String(e)}function kh(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 Ih=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mo(e,t,r,n,o){if(S.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!S.isString(t)){if(S.isString(n))return t.indexOf(n)!==-1;if(S.isRegExp(n))return n.test(t)}}function Lh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function $h(e,t){const r=S.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Xe=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(l,c,u){const d=Rr(c);if(!d)throw new Error("header name must be a non-empty string");const m=S.findKey(o,d);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||c]=fn(l))}const i=(l,c)=>S.forEach(l,(u,d)=>a(u,d,c));if(S.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(S.isString(t)&&(t=t.trim())&&!Ih(t))i(Mh(t),r);else if(S.isHeaders(t))for(const[l,c]of t.entries())a(c,l,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=Rr(t),t){const n=S.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return kh(o);if(S.isFunction(r))return r.call(this,o,n);if(S.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Rr(t),t){const n=S.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||mo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Rr(i),i){const l=S.findKey(n,i);l&&(!r||mo(n,n[l],l,r))&&(delete n[l],o=!0)}}return S.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||mo(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return S.forEach(this,(o,a)=>{const i=S.findKey(n,a);if(i){r[i]=fn(o),delete r[a];return}const l=t?Lh(a):String(a).trim();l!==a&&delete r[a],r[l]=fn(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return S.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&S.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
98
- `)}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[ls]=this[ls]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Rr(i);n[l]||($h(o,i),n[l]=!0)}return S.isArray(t)?t.forEach(a):a(t),this}};Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Xe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});S.freezeMethods(Xe);function ho(e,t){const r=this||Vr,n=t||r,o=Xe.from(n.headers);let a=n.data;return S.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function $i(e){return!!(e&&e.__CANCEL__)}function ur(e,t,r){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,r),this.name="CanceledError"}S.inherits(ur,Z,{__CANCEL__:!0});function Ni(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Z("Request failed with status code "+r.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Nh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Fh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let m=a,f=0;for(;m!==o;)f+=r[m++],m=m%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const _=d&&u-d;return _?Math.round(f*1e3/_):void 0}}function Dh(e,t){let r=0;const n=1e3/t;let o=null;return function(){const i=this===!0,l=Date.now();if(i||l-r>n)return o&&(clearTimeout(o),o=null),r=l,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,r=Date.now(),e.apply(null,arguments)),n-(l-r)))}}const xn=(e,t,r=3)=>{let n=0;const o=Fh(50,250);return Dh(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const m={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null};m[t?"download":"upload"]=!0,e(m)},r)},Uh=ht.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const l=S.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),Bh=ht.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];S.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),S.isString(n)&&i.push("path="+n),S.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Jh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fi(e,t){return e&&!Jh(t)?Vh(e,t):t}const cs=e=>e instanceof Xe?{...e}:e;function Ut(e,t){t=t||{};const r={};function n(u,d,m){return S.isPlainObject(u)&&S.isPlainObject(d)?S.merge.call({caseless:m},u,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function o(u,d,m){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u,m)}else return n(u,d,m)}function a(u,d){if(!S.isUndefined(d))return n(void 0,d)}function i(u,d){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,m){if(m in t)return n(u,d);if(m in e)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d)=>o(cs(u),cs(d),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(d){const m=c[d]||o,f=m(e[d],t[d],d);S.isUndefined(f)&&m!==l||(r[d]=f)}),r}const Di=e=>{const t=Ut({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Xe.from(i),t.url=ki(Fi(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(S.isFormData(r)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(ht.hasStandardBrowserEnv&&(n&&S.isFunction(n)&&(n=n(t)),n||n!==!1&&Uh(t.url))){const u=o&&a&&Bh.read(a);u&&i.set(o,u)}return t},Gh=typeof XMLHttpRequest<"u",zh=Gh&&function(e){return new Promise(function(r,n){const o=Di(e);let a=o.data;const i=Xe.from(o.headers).normalize();let{responseType:l}=o,c;function u(){o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function m(){if(!d)return;const _=Xe.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};Ni(function(w){r(w),u()},function(w){n(w),u()},y),d=null}"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(n(new Z("Request aborted",Z.ECONNABORTED,o,d)),d=null)},d.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const y=o.transitional||Ii;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),n(new Z(g,y.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,o,d)),d=null},a===void 0&&i.setContentType(null),"setRequestHeader"in d&&S.forEach(i.toJSON(),function(g,y){d.setRequestHeader(y,g)}),S.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),l&&l!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",xn(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",xn(o.onUploadProgress)),(o.cancelToken||o.signal)&&(c=_=>{d&&(n(!_||_.type?new ur(null,e,d):_),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const f=Nh(o.url);if(f&&ht.protocols.indexOf(f)===-1){n(new Z("Unsupported protocol "+f+":",Z.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Wh=(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 Z?u:new ur(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new Z(`timeout ${t} of ms exceeded`,Z.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}]},Hh=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},qh=async function*(e,t,r){for await(const n of e)yield*Hh(ArrayBuffer.isView(n)?n:await r(String(n)),t)},us=(e,t,r,n,o)=>{const a=qh(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await a.next();if(c){l.close(),n();return}let d=u.byteLength;r&&r(i+=d),l.enqueue(new Uint8Array(u))},cancel(l){return n(l),a.return()}},{highWaterMark:2})},ds=(e,t)=>{const r=e!=null;return n=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:n}))},Jn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ui=Jn&&typeof ReadableStream=="function",Mo=Jn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Kh=Ui&&(()=>{let e=!1;const t=new Request(ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),fs=64*1024,ko=Ui&&!!(()=>{try{return S.isReadableStream(new Response("").body)}catch{}})(),wn={stream:ko&&(e=>e.body)};Jn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wn[t]&&(wn[t]=S.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Z(`Response type '${t}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})})(new Response);const Xh=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(S.isArrayBufferView(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Mo(e)).byteLength},Yh=async(e,t)=>{const r=S.toFiniteNumber(e.getContentLength());return r??Xh(t)},Zh=Jn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:f}=Di(e);u=u?(u+"").toLowerCase():"text";let[_,g]=o||a||i?Wh([o,a],i):[],y,b;const w=()=>{!y&&setTimeout(()=>{_&&_.unsubscribe()}),y=!0};let C;try{if(c&&Kh&&r!=="get"&&r!=="head"&&(C=await Yh(d,n))!==0){let N=new Request(t,{method:"POST",body:n,duplex:"half"}),I;S.isFormData(n)&&(I=N.headers.get("content-type"))&&d.setContentType(I),N.body&&(n=us(N.body,fs,ds(C,xn(c)),null,Mo))}S.isString(m)||(m=m?"cors":"omit"),b=new Request(t,{...f,signal:_,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",withCredentials:m});let P=await fetch(b);const k=ko&&(u==="stream"||u==="response");if(ko&&(l||k)){const N={};["status","statusText","headers"].forEach(de=>{N[de]=P[de]});const I=S.toFiniteNumber(P.headers.get("content-length"));P=new Response(us(P.body,fs,l&&ds(I,xn(l,!0)),k&&w,Mo),N)}u=u||"text";let v=await wn[S.findKey(wn,u)||"text"](P,e);return!k&&w(),g&&g(),await new Promise((N,I)=>{Ni(N,I,{data:v,headers:Xe.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:b})})}catch(P){throw w(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,b),{cause:P.cause||P}):Z.from(P,P&&P.code,e,b)}}),Io={http:ph,xhr:zh,fetch:Zh};S.forEach(Io,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ms=e=>`- ${e}`,Qh=e=>S.isFunction(e)||e===null||e===!1,Bi={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!Qh(r)&&(n=Io[(i=String(r)).toLowerCase()],n===void 0))throw new Z(`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 :
99
- `+a.map(ms).join(`
100
- `):" "+ms(a[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Io};function po(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ur(null,e)}function hs(e){return po(e),e.headers=Xe.from(e.headers),e.data=ho.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bi.getAdapter(e.adapter||Vr.adapter)(e).then(function(n){return po(e),n.data=ho.call(e,e.transformResponse,n),n.headers=Xe.from(n.headers),n},function(n){return $i(n)||(po(e),n&&n.response&&(n.response.data=ho.call(e,e.transformResponse,n.response),n.response.headers=Xe.from(n.response.headers))),Promise.reject(n)})}const Ji="1.7.2",ta={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ta[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ps={};ta.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Ji+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new Z(o(i," has been removed"+(r?" in "+r:"")),Z.ERR_DEPRECATED);return r&&!ps[i]&&(ps[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,l):!0}};function e0(e,t,r){if(typeof e!="object")throw new Z("options must be an object",Z.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 Z("option "+a+" must be "+c,Z.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Z("Unknown option "+a,Z.ERR_BAD_OPTION)}}const Lo={assertOptions:e0,validators:ta},Tt=Lo.validators;let Ft=class{constructor(t){this.defaults=t,this.interceptors={request:new is,response:new is}}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+=`
101
- `+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ut(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Lo.assertOptions(n,{silentJSONParsing:Tt.transitional(Tt.boolean),forcedJSONParsing:Tt.transitional(Tt.boolean),clarifyTimeoutError:Tt.transitional(Tt.boolean)},!1),o!=null&&(S.isFunction(o)?r.paramsSerializer={serialize:o}:Lo.assertOptions(o,{encode:Tt.function,serialize:Tt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&S.merge(a.common,a[r.method]);a&&S.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),r.headers=Xe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,m=0,f;if(!c){const g=[hs.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),f=g.length,d=Promise.resolve(r);m<f;)d=d.then(g[m++],g[m++]);return d}f=l.length;let _=r;for(m=0;m<f;){const g=l[m++],y=l[m++];try{_=g(_)}catch(b){y.call(this,b);break}}try{d=hs.call(this,_)}catch(g){return Promise.reject(g)}for(m=0,f=u.length;m<f;)d=d.then(u[m++],u[m++]);return d}getUri(t){t=Ut(this.defaults,t);const r=Fi(t.baseURL,t.url);return ki(r,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){Ft.prototype[t]=function(r,n){return this.request(Ut(n||{},{method:t,url:r,data:(n||{}).data}))}});S.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Ut(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ft.prototype[t]=r(),Ft.prototype[t+"Form"]=r(!0)});let t0=class Vi{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 ur(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 Vi(function(o){t=o}),cancel:t}}};function r0(e){return function(r){return e.apply(null,r)}}function n0(e){return S.isObject(e)&&e.isAxiosError===!0}const $o={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($o).forEach(([e,t])=>{$o[t]=e});function Gi(e){const t=new Ft(e),r=Si(Ft.prototype.request,t);return S.extend(r,Ft.prototype,t,{allOwnKeys:!0}),S.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Gi(Ut(e,o))},r}const De=Gi(Vr);De.Axios=Ft;De.CanceledError=ur;De.CancelToken=t0;De.isCancel=$i;De.VERSION=Ji;De.toFormData=Bn;De.AxiosError=Z;De.Cancel=De.CanceledError;De.all=function(t){return Promise.all(t)};De.spread=r0;De.isAxiosError=n0;De.mergeConfig=Ut;De.AxiosHeaders=Xe;De.formToJSON=e=>Li(S.isHTMLForm(e)?new FormData(e):e);De.getAdapter=Bi.getAdapter;De.HttpStatusCode=$o;De.default=De;const{Axios:d0,AxiosError:gs,CanceledError:f0,isCancel:m0,CancelToken:h0,VERSION:p0,all:g0,Cancel:y0,isAxiosError:b0,spread:_0,toFormData:v0,AxiosHeaders:S0,HttpStatusCode:x0,formToJSON:w0,getAdapter:R0,mergeConfig:j0}=De;function o0(e){try{return JSON.stringify(e)}catch{return}}function a0(e){var t,r,n,o;return e instanceof gs&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof gs&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${o0(e)||e}`}const s0=e=>{const t=e.softTimeout||3e3,[r,n]=Pe.useState(!1);return Pe.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(U.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(i0,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(U.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(U.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},i0=e=>{const t=a0(e.error),r=e.error instanceof Error?e.error.stack:null,n=U.useTheme();return s.jsxs(U.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})]})},l0=tt.observer(e=>{var a,i,l,c,u;const{nova:t}=e,r=tt.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){try{const d=await t.connectJogger(e.motionGroupId),m=await Yo.loadFor(d);Er.runInAction(()=>{r.joggingStore=m})}catch(d){r.loadingError=d}}if(Pe.useEffect(()=>(n(),()=>{var d;(d=r.joggingStore)==null||d.dispose()}),[]),Pe.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:d,selectedTcpId:m,selectedCoordSystemId:f,selectedDiscreteIncrement:_}=r.joggingStore;if(d.id!=="cartesian"&&d.id!=="joint")return;const g={tcpId:m,coordSystemId:f};_&&d.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",g):r.joggingStore.jogger.setJoggingMode(d.id,g)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.selectedCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),Pe.useEffect(()=>{async function d(){if(r.joggingStore)try{await t.api.controller.setDefaultMode(r.joggingStore.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(m){console.error(m)}}d()},[(u=r.joggingStore)==null?void 0:u.jogger.motionStream.controllerId]),!r.joggingStore)return s.jsx(ys,{children:s.jsx(s0,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(ys,{children:s.jsxs(U.Stack,{flexGrow:1,children:[s.jsx(U.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(d=>s.jsx(U.Tab,{label:d.label,id:`jogging-tab-${d.id}`,"aria-controls":`jogging-tab-${d.id}`},d.id))}),s.jsxs(U.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(Pm,{store:o}),o.currentTab.id==="joint"&&s.jsx(Tm,{store:o})]})]})})});function ys({children:e}){return s.jsx(U.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative"},children:s.jsx(U.Paper,{sx:{minHeight:"90vh"},children:e})})}exports.JoggingCartesianAxisControl=Po;exports.JoggingJointRotationControl=fi;exports.JoggingPanel=l0;exports.PresetEnvironment=Tl;exports.Robot=Pl;exports.SafetyZonesRenderer=Ol;exports.SupportedRobot=Ss;exports.WandelscriptEditor=ol;exports.defaultAxisConfig=El;exports.defaultGetModel=Fo;
94
+ } });`:Tr(12,b?` (${b})`:"",JSON.stringify(y.main)));return Ba(y,"light",C,n),Ba(y,"dark",P,n),y.contrastText||(y.contrastText=m(y.main)),y},_={dark:lo,light:Ua};return process.env.NODE_ENV!=="production"&&(_[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ct(A({common:A({},Mr),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:Yd,contrastThreshold:r,getContrastText:m,augmentColor:f,tonalOffset:n},_[t]),o)}const sf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function lf(e){return Math.round(e*1e5)/1e5}const Ja={textTransform:"uppercase"},Va='"Roboto", "Helvetica", "Arial", sans-serif';function cf(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Va,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:m}=r,f=rt(r,sf);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 _=o/14,g=m||(w=>`${w/u*_}rem`),y=(w,C,P,k,v)=>A({fontFamily:n,fontWeight:w,fontSize:g(C),lineHeight:P},n===Va?{letterSpacing:`${lf(k/C)}em`}:{},v,d),b={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(l,14,1.75,.4,Ja),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,Ja),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ct(A({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},b),f,{clone:!1})}const uf=.2,df=.14,ff=.12;function Ce(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${uf})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${df})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ff})`].join(",")}const mf=["none",Ce(0,2,1,-1,0,1,1,0,0,1,3,0),Ce(0,3,1,-2,0,2,2,0,0,1,5,0),Ce(0,3,3,-2,0,3,4,0,0,1,8,0),Ce(0,2,4,-1,0,4,5,0,0,1,10,0),Ce(0,3,5,-1,0,5,8,0,0,1,14,0),Ce(0,3,5,-1,0,6,10,0,0,1,18,0),Ce(0,4,5,-2,0,7,10,1,0,2,16,1),Ce(0,5,5,-3,0,8,10,1,0,3,14,2),Ce(0,5,6,-3,0,9,12,1,0,3,16,2),Ce(0,6,6,-3,0,10,14,1,0,4,18,3),Ce(0,6,7,-4,0,11,15,1,0,4,20,3),Ce(0,7,8,-4,0,12,17,2,0,5,22,4),Ce(0,7,8,-4,0,13,19,2,0,5,24,4),Ce(0,7,9,-4,0,14,21,2,0,5,26,4),Ce(0,8,9,-5,0,15,22,2,0,6,28,5),Ce(0,8,10,-5,0,16,24,2,0,6,30,5),Ce(0,8,11,-5,0,17,26,2,0,6,32,5),Ce(0,9,11,-5,0,18,28,2,0,7,34,6),Ce(0,9,12,-6,0,19,29,2,0,7,36,6),Ce(0,10,13,-6,0,20,31,3,0,8,38,7),Ce(0,10,13,-6,0,21,33,3,0,8,40,7),Ce(0,10,14,-6,0,22,35,3,0,8,42,7),Ce(0,11,14,-7,0,23,36,3,0,9,44,8),Ce(0,11,15,-7,0,24,38,3,0,9,46,8)],hf=["duration","easing","delay"],pf={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)"},gf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ga(e){return`${Math.round(e)}ms`}function yf(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function bf(e){const t=A({},pf,e.easing),r=A({},gf,e.duration);return A({getAutoHeightDuration:yf,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=rt(a,hf);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",m=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
95
+ `)),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:Ga(i)} ${l} ${typeof c=="string"?c:Ga(c)}`).join(",")}},e,{easing:t,duration:r})}const _f={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},vf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function si(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=rt(e,vf);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.":Tr(18));const l=af(n),c=Ur(e);let u=ct(c,{mixins:Fd(c.breakpoints,r),palette:l,shadows:mf.slice(),typography:cf(l,a),transitions:bf(o),zIndex:A({},_f)});if(u=ct(u,i),u=t.reduce((d,m)=>ct(d,m),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(f,_)=>{let g;for(g in f){const y=f[g];if(d.indexOf(g)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const b=Ln("",g);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
96
+ `))}f[g]={}}}};Object.keys(u.components).forEach(f=>{const _=u.components[f].styleOverrides;_&&f.indexOf("Mui")===0&&m(_,f)})}return u.unstable_sxConfig=A({},Fr,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return Dr({sx:m,theme:this})},u}const ii=si(),li="$$material";function Xo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sf=e=>Xo(e)&&e!=="classes",kt=wd({themeId:li,defaultTheme:ii,rootShouldForwardProp:Sf});process.env.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function ci(e){return sd(e)}const or=hd({createStyledComponent:kt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ci({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(or.propTypes={children:p.node,component:p.elementType,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),useFlexGap:p.bool});const Po=tt.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{Lr(()=>{const d=r(),m=l.current;m&&(m.textContent=d)});const l=Pe.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(or,{height:"72px",direction:"row",...i,children:[s.jsx(U.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(or,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(or,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none"},children:t}),s.jsx(U.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(U.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:"+"})]})}),xf={"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"},wf={"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"},Rf={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 yn{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||Rf,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 yn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new yn(this.logger,t)}}var _t=new yn;class Nn{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])})}}function wr(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function za(e){return e==null?"":""+e}function jf(e,t,r){e.forEach(n=>{t[n]&&(r[n]=t[n])})}const Cf=/###/g;function Pr(e,t,r){function n(l){return l&&l.indexOf("###")>-1?l.replace(Cf,"."):l}function o(){return!e||typeof e=="string"}const a=typeof t!="string"?t:t.split(".");let i=0;for(;i<a.length-1;){if(o())return{};const l=n(a[i]);!e[l]&&r&&(e[l]=new r),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++i}return o()?{}:{obj:e,k:n(a[i])}}function Wa(e,t,r){const{obj:n,k:o}=Pr(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=Pr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Pr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r}function Pf(e,t,r,n){const{obj:o,k:a}=Pr(e,t,Object);o[a]=o[a]||[],o[a].push(r)}function bn(e,t){const{obj:r,k:n}=Pr(e,t);if(r)return r[n]}function Ef(e,t,r){const n=bn(e,r);return n!==void 0?n:bn(t,r)}function ui(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]):ui(e[n],t[n],r):e[n]=t[n]);return e}function Yt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Tf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Af(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Tf[t]):e}class Of{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 Mf=[" ",",","?","!",";"],kf=new Of(20);function If(e,t,r){t=t||"",r=r||"";const n=Mf.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=kf.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}function Eo(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}function _n(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Ha extends Nn{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=bn(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:Eo(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),Wa(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=bn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?ui(c,n,a):c={...c,...n},Wa(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 di={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,r,n,o))}),t}};const qa={};class vn extends Nn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),jf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_t.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&&!If(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 m=this.resolve(t,r);let f=m&&m.res;const _=m&&m.usedKey||i,g=m&&m.exactUsedKey||i,y=Object.prototype.toString.apply(f),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject;if(C&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&b.indexOf(y)<0&&!(typeof w=="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(_,f,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(m.res=k,m.usedParams=this.getUsedParamsDetails(r),m):k}if(a){const k=Array.isArray(f),v=k?[]:{},N=k?g:_;for(const I in f)if(Object.prototype.hasOwnProperty.call(f,I)){const de=`${N}${a}${I}`;v[I]=this.translate(de,{...r,joinArrays:!1,ns:l}),v[I]===de&&(v[I]=f[I])}f=v}}else if(C&&typeof w=="string"&&Array.isArray(f))f=f.join(w),f&&(f=this.extendTranslation(f,t,r,n));else{let k=!1,v=!1;const N=r.count!==void 0&&typeof r.count!="string",I=vn.hasDefaultValue(r),de=N?this.pluralResolver.getSuffix(u,r.count,r):"",Ee=r.ordinal&&N?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",Re=N&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),B=Re&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${de}`]||r[`defaultValue${Ee}`]||r.defaultValue;!this.isValidLookup(f)&&I&&(k=!0,f=B),this.isValidLookup(f)||(v=!0,f=i);const Q=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&v?void 0:f,te=I&&B!==f&&this.options.updateMissing;if(v||k||te){if(this.logger.log(te?"updateKey":"missingKey",u,c,i,te?B:f),a){const se=this.resolve(i,{...r,keySeparator:!1});se&&se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ne=[];const be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&be&&be[0])for(let se=0;se<be.length;se++)ne.push(be[se]);else this.options.saveMissingTo==="all"?ne=this.languageUtils.toResolveHierarchy(r.lng||this.language):ne.push(r.lng||this.language);const ce=(se,ke,R)=>{const M=I&&R!==f?R:Q;this.options.missingKeyHandler?this.options.missingKeyHandler(se,c,ke,M,te,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(se,c,ke,M,te,r),this.emit("missingKey",se,c,ke,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?ne.forEach(se=>{const ke=this.pluralResolver.getSuffixes(se,r);Re&&r[`defaultValue${this.options.pluralSeparator}zero`]&&ke.indexOf(`${this.options.pluralSeparator}zero`)<0&&ke.push(`${this.options.pluralSeparator}zero`),ke.forEach(R=>{ce([se],i+R,r[`defaultValue${R}`]||B)})}):ce(ne,i,B))}f=this.extendTranslation(f,t,r,m,n),v&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${i}`),(v||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,k?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(m.res=f,m.usedParams=this.getUsedParamsDetails(r),m):f}extendTranslation(t,r,n,o,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let m=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,n.lng||this.language||o.usedLng,n),u){const f=t.match(this.interpolator.nestingRegexp),_=f&&f.length;d<_&&(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,_=new Array(f),g=0;g<f;g++)_[g]=arguments[g];return a&&a[0]===_[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${_[0]} in key: ${r[0]}`),null):i.translate(..._,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=di.handle(c,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,a,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;o=d;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",_=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),g=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);m.forEach(b=>{this.isValidLookup(n)||(l=b,!qa[`${y[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(qa[`${y[0]}-${b}`]=!0,this.logger.warn(`key "${o}" for languages "${y.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!!!")),y.forEach(w=>{if(this.isValidLookup(n))return;i=w;const C=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(C,d,w,b,r);else{let k;f&&(k=this.pluralResolver.getSuffix(w,r.count,r));const v=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(C.push(d+k),r.ordinal&&k.indexOf(N)===0&&C.push(d+k.replace(N,this.options.pluralSeparator)),_&&C.push(d+v)),g){const I=`${d}${this.options.contextSeparator}${r.context}`;C.push(I),f&&(C.push(I+k),r.ordinal&&k.indexOf(N)===0&&C.push(I+k.replace(N,this.options.pluralSeparator)),_&&C.push(I+v))}}let P;for(;P=C.pop();)this.isValidLookup(n)||(a=P,n=this.getResource(w,b,P,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}}function co(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Ka{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_t.create("languageUtils")}getScriptPartFromCode(t){if(t=_n(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=_n(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=co(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]=co(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=co(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 Lf=[{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}],$f={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Nf=["v1","v2","v3"],Ff=["v4"],Xa={zero:0,one:1,two:2,few:3,many:4,other:5};function Df(){const e={};return Lf.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:$f[t.fc]}})}),e}class Uf{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=_t.create("pluralResolver"),(!this.options.compatibilityJSON||Ff.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=Df()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(_n(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,a)=>Xa[o]-Xa[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!Nf.includes(this.options.compatibilityJSON)}}function Ya(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=Ef(e,t,r);return!a&&o&&typeof r=="string"&&(a=Eo(e,r,n),a===void 0&&(a=Eo(t,r,n))),a}class Bf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_t.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:a,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:f,nestingPrefixEscaped:_,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:C}=t.interpolation;this.escape=r!==void 0?r:Af,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?Yt(a):i||"{{",this.suffix=l?Yt(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?Yt(f):_||Yt("$t("),this.nestingSuffix=g?Yt(g):y||Yt(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=C!==void 0?C:!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||{};function u(g){return g.replace(/\$/g,"$$$$")}const d=g=>{if(g.indexOf(this.formatSeparator)<0){const C=Ya(r,c,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,n,{...o,...r,interpolationkey:g}):C}const y=g.split(this.formatSeparator),b=y.shift().trim(),w=y.join(this.formatSeparator).trim();return this.format(Ya(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),w,n,{...o,...r,interpolationkey:b})};this.resetRegExp();const m=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:g=>u(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?u(this.escape(g)):u(g)}].forEach(g=>{for(l=0;a=g.regex.exec(t);){const y=a[1].trim();if(i=d(y),i===void 0)if(typeof m=="function"){const w=m(t,a,o);i=typeof w=="string"?w:""}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=za(i));const b=g.safeValue(i);if(t=t.replace(a[0],b),f?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=a[0].length):g.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;function l(c,u){const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const m=c.split(new RegExp(`${d}[ ]*{`));let f=`{${m[1]}`;c=m[0],f=this.interpolate(f,i);const _=f.match(/'/g),g=f.match(/"/g);(_&&_.length%2===0&&!g||g.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),u&&(i={...u,...i})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,y),`${c}${d}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=d.shift(),c=d,u=!0}if(a=r(l.call(this,o[1].trim(),i),i),a&&o[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=za(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,m)=>this.format(d,m,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}function Jf(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}}function Zt(e){const t={};return function(n,o,a){const i=o+JSON.stringify(a);let l=t[i];return l||(l=e(_n(o),a),t[i]=l),l(n)}}class Vf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_t.create("formatter"),this.options=t,this.formats={number:Zt((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:Zt((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:Zt((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:Zt((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:Zt((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()]=Zt(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((l,c)=>{const{formatName:u,formatOptions:d}=Jf(c);if(this.formats[u]){let m=l;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},_=f.locale||f.lng||o.locale||o.lng||n;m=this.formats[u](l,_,{...d,...o,...f})}catch(f){this.logger.warn(f)}return m}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function Gf(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class zf extends Nn{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=_t.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const a={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(m=>{const f=`${u}|${m}`;!n.reload&&this.store.hasResourceBundle(u,m)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,d=!1,i[f]===void 0&&(i[f]=!0),a[f]===void 0&&(a[f]=!0),c[m]===void 0&&(c[m]=!0)))}),d||(l[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const o=t.split("|"),a=o[0],i=o[1];r&&this.emit("failedLoading",a,i,r),n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{Pf(c.loaded,[a],i),Gf(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(m=>{l[u][m]===void 0&&(l[u][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:a,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const a=this.queueLoad(t,r,n,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),o=n[0],a=n[1];this.read(o,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${a} for language ${o} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${o}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,o,c):d=u(t,r,n,o),d&&typeof d.then=="function"?d.then(m=>l(null,m)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,o,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}function Za(){return{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:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(o=>{r[o]=n[o]})}return r},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Qa(e){return 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}function Yr(){}function Wf(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}class kr extends Nn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Qa(t),this.services={},this.logger=_t,this.modules={external:[]},Wf(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=Za();this.options={...o,...this.options,...Qa(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);function a(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?_t.init(a(this.modules.logger),this.options):_t.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Vf);const m=new Ka(this.options);this.store=new Ha(this.options.resources,this.options);const f=this.services;f.logger=_t,f.resourceStore=this.store,f.languageUtils=m,f.pluralResolver=new Uf(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=a(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Bf(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new zf(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(_){for(var g=arguments.length,y=new Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];t.emit(_,...y)}),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 vn(this.services,this.options),this.translator.on("*",function(_){for(var g=arguments.length,y=new Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];t.emit(_,...y)}),this.modules.external.forEach(_=>{_.init&&_.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Yr),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=wr(),u=()=>{const d=(m,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(f),n(m,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yr;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=wr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=Yr),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"&&di.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=wr();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),m=2;m<u;m++)d[m-2]=arguments[m];c=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||a.keyPrefix);const f=o.options.keySeparator||".";let _;return c.keyPrefix&&Array.isArray(i)?_=i.map(g=>`${c.keyPrefix}${f}${g}`):_=c.keyPrefix?`${c.keyPrefix}${f}${i}`:i,o.t(_,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=wr();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=wr();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 Ka(Za());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 kr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yr;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new kr(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 Ha(this.store.data,o),a.services.resourceStore=a.store),a.translator=new vn(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 Ge=kr.createInstance();Ge.createInstance=kr.createInstance;Ge.createInstance;Ge.dir;Ge.init;Ge.loadResources;Ge.reloadResources;Ge.use;Ge.changeLanguage;Ge.getFixedT;Ge.t;Ge.exists;Ge.setDefaultNamespace;Ge.hasLoadedNamespace;Ge.loadNamespaces;Ge.loadLanguages;const fi=Ge.createInstance();fi.use(Qi).use(At.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:wf},de:{translations:xf}},ns:["translations"],defaultNS:"translations"});const mi=tt.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=At.useTranslation(),[c,u]=Pe.useState(),d=tt.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}}));Lr(()=>{u(o())});function m(g){g.button===0&&d.startJogging("-")}function f(g){g.button===0&&d.startJogging("+")}function _(g,y=1){if(g===void 0||isNaN(g))return"";const b=l("General.degree.variable",{amount:g.toFixed(y)});return g>0&&y===0?`+${b}`:b}return s.jsx(At.I18nextProvider,{i18n:fi,children:s.jsxs(or,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,children:[s.jsx(U.IconButton,{onPointerDown:m,onPointerUp:d.stopJogging,onPointerOut:d.stopJogging,disabled:a,sx:{width:"52px",color:"white",alignContent:"center",borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975 !important":"#38445A","& svg":{width:"42px",height:"42px"}},children:s.jsx(na.ChevronLeft,{})}),s.jsxs(or,{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(U.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px"},children:_(c)}),s.jsx(U.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:_(r,0)},{value:n,label:_(n,0)}]})]}),s.jsx(U.IconButton,{onPointerDown:f,onPointerUp:d.stopJogging,onPointerOut:d.stopJogging,disabled:a,sx:{width:"52px",color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A","& svg":{width:"42px",height:"42px"}},children:s.jsx(na.ChevronRight,{})})]})})}),Hf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{d:"M18.5 12C18.5 8.68629 15.8137 6 12.5 6C9.18629 6 6.5 8.68629 6.5 12C6.5 15.3137 9.18629 18 12.5 18",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",fill:"none"}),V.createElement("path",{d:"M16.5 11L18.5 13.5L20.5 11",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qf=Pe.forwardRef(Hf),Kf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:19,height:10,viewBox:"0 0 19 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13114 0.312406C5.48225 0.663519 5.48225 1.23278 5.13114 1.5839L3.06975 3.64528H15.5109L13.4496 1.58402C13.0985 1.2329 13.0985 0.66364 13.4496 0.312527C13.8007 -0.0385848 14.37 -0.0385848 14.7211 0.312527L18.3174 3.90884C18.6685 4.25996 18.6685 4.82922 18.3174 5.18033L14.7211 8.77665C14.37 9.12776 13.8007 9.12776 13.4496 8.77665C13.0985 8.42554 13.0985 7.85627 13.4496 7.50516L15.5113 5.44344H3.06954L5.13114 7.50504C5.48225 7.85615 5.48225 8.42542 5.13114 8.77653C4.78003 9.12764 4.21076 9.12764 3.85965 8.77653L0.263334 5.18021C-0.087778 4.8291 -0.087778 4.25983 0.263334 3.90872L3.85965 0.312406C4.21076 -0.0387058 4.78003 -0.0387058 5.13114 0.312406Z",fill:"white"})),Xf=Pe.forwardRef(Kf),Yf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:19,height:10,viewBox:"0 0 19 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13114 0.312406C5.48225 0.663519 5.48225 1.23278 5.13114 1.5839L3.06975 3.64528H15.5109L13.4496 1.58402C13.0985 1.2329 13.0985 0.66364 13.4496 0.312527C13.8007 -0.0385848 14.37 -0.0385848 14.7211 0.312527L18.3174 3.90884C18.6685 4.25996 18.6685 4.82922 18.3174 5.18033L14.7211 8.77665C14.37 9.12776 13.8007 9.12776 13.4496 8.77665C13.0985 8.42554 13.0985 7.85627 13.4496 7.50516L15.5113 5.44344H3.06954L5.13114 7.50504C5.48225 7.85615 5.48225 8.42542 5.13114 8.77653C4.78003 9.12764 4.21076 9.12764 3.85965 8.77653L0.263334 5.18021C-0.087778 4.8291 -0.087778 4.25983 0.263334 3.90872L3.85965 0.312406C4.21076 -0.0387058 4.78003 -0.0387058 5.13114 0.312406Z",fill:"white"})),Zf=Pe.forwardRef(Yf),Qf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:10,height:19,viewBox:"0 0 10 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.52182 14.8114C9.87293 14.4603 9.87293 13.8911 9.52182 13.54C9.17071 13.1888 8.60144 13.1888 8.25033 13.54L6.18885 15.6014L6.18885 3.15999L8.25033 5.22147C8.60144 5.57258 9.17071 5.57258 9.52182 5.22147C9.87293 4.87036 9.87293 4.30109 9.52182 3.94998L5.9255 0.353666C5.57439 0.00255379 5.00513 0.00255378 4.65401 0.353666L1.0577 3.94998C0.706587 4.30109 0.706587 4.87036 1.0577 5.22147C1.40881 5.57258 1.97808 5.57258 2.32919 5.22147L4.3907 3.15996L4.3907 15.6015L2.32919 13.54C1.97808 13.1888 1.40881 13.1888 1.0577 13.54C0.706588 13.8911 0.706588 14.4603 1.0577 14.8114L4.65402 18.4078C5.00513 18.7589 5.57439 18.7589 5.92551 18.4078L9.52182 14.8114Z",fill:"white"})),em=Pe.forwardRef(Qf);function tm(){const e=Vs(ii);return process.env.NODE_ENV!=="production"&&V.useDebugValue(e),e[li]||e}const ye={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"},hi={primary:ye.skyblue500,textDefault:ye.white,textInverse:ye.darkestblue,textError:ye.scaryred,textSubtle:ye.midnightgray500,backgroundDefault:ye.darkishblue,inputBackgroundDefault:ye.darkgrayishblue,borderColorDefault:"#3A4150",selectBackground:ye.grayishblue,appBarBackground:ye.darkestblue,virtualRobot:"#1AC0B2",physicalRobot:"#956FFA",robotViewportBackground:"#1F283A",viewportButtonInactiveBackground:ye.darkestblue,viewportButtonHover:ye.midnightgray500,viewportButtonActiveBackground:ye.skyblue500,tabsBarBackground:ye.darkestblue,activeTabBackground:ye.darkishblue,omniverseConfigurationSuccess:ye.tealGreen,omniverseConfigurationFailure:ye.magenta},pi={primary:ye.lightbuttonblue,textDefault:"#18181B",textInverse:ye.white,textError:ye.scaryred,textSubtle:ye.midnightgray500,backgroundDefault:ye.white,inputBackgroundDefault:ye.white,borderColorDefault:ye.midnightgray500,selectBackground:"#E4E4E7",appBarBackground:ye.white,virtualRobot:"green",physicalRobot:"blue",robotViewportBackground:"#E4E4E7",viewportButtonInactiveBackground:ye.midnightgray,viewportButtonHover:ye.midnightgray500,viewportButtonActiveBackground:ye.lightbuttonblue,tabsBarBackground:ye.white,activeTabBackground:ye.white,omniverseConfigurationSuccess:ye.tealGreen,omniverseConfigurationFailure:ye.magenta};function gi(){return tm().palette.mode==="dark"?hi:pi}function yi(e,t={}){const r=e==="light"?pi:hi;return si(bt.defaultsDeep(t,{palette:{mode:e,primary:{main:r.primary},background:{default:r.backgroundDefault}},typography:{allVariants:{color:r.textDefault}},components:{MuiPaper:{styleOverrides:{root:{backgroundColor:r.backgroundDefault}}},MuiTabs:{styleOverrides:{root:{backgroundColor:r.tabsBarBackground,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":{color:"inherit",backgroundColor:r.activeTabBackground}}}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{textTransform:"none",borderRadius:"10px",fontSize:"14px",fontWeight:500}},variants:[{props:{variant:"outlined"},style:{border:"2px solid rgba(255, 255, 255, 0.6)",color:"rgba(255, 255, 255, 0.6)",backgroundColor:"rgba(255, 255, 255, 0.2)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.4)",border:"2px solid rgba(255, 255, 255, 0.8)"}}}]},MuiFab:{styleOverrides:{root:{width:"48px",height:"48px",backgroundColor:r.viewportButtonInactiveBackground,color:r.textDefault,"&:hover":{backgroundColor:r.viewportButtonHover}}},variants:[{props:{variant:"active"},style:{backgroundColor:r.viewportButtonActiveBackground,color:r.textInverse,"&:hover":{backgroundColor:r.viewportButtonActiveBackground}}}]}}}))}yi("dark");yi("light");const uo=({kind:e,sx:t,...r})=>{const n=gi();let o=bt.defaultsDeep(t,{backgroundColor:n.selectBackground,borderRadius:"10px",borderStyle:"none",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:"none"}});return e==="outlined"?o=bt.defaultsDeep({backgroundColor:"transparent"},o):e==="text"&&(o=bt.defaultsDeep({backgroundColor:"transparent","& .MuiSvgIcon-root":{borderStyle:"none",color:"inherit"}},o)),s.jsx(U.Select,{sx:o,...r})},rm=tt.observer(({store:e})=>{const{t}=At.useTranslation(),r=gi();return s.jsxs(U.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{padding:"16px","& label":{color:r.textSubtle,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(U.Stack,{width:"33%",children:[s.jsx(U.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(uo,{kind:"filled",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(U.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(U.Stack,{width:"33%",children:[s.jsx(U.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(uo,{kind:"filled",labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(U.MenuItem,{value:n.id,children:n.id},n.id))})]}),s.jsxs(U.Stack,{width:"33%",children:[s.jsx(U.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(uo,{kind:"filled",labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(U.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(U.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})});function nm(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const om=2;function bi(e,t){return e-t}function es(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 Zr(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 Sn(e,t,r){return(e-t)*100/(r-t)}function am(e,t,r){return(r-t)*e+t}function sm(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 im(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(sm(t)))}function ts({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(bi)}function Qr({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=sn(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 en(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?nm(e,t):!1}const lm={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}%`})}},cm=e=>e;let tn;function rs(){return tn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tn=CSS.supports("touch-action","none"):tn=!0),tn}function um(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:m,orientation:f="horizontal",rootRef:_,scale:g=cm,step:y=1,shiftStep:b=10,tabIndex:w,value:C}=e,P=V.useRef(),[k,v]=V.useState(-1),[N,I]=V.useState(-1),[de,Ee]=V.useState(!1),Re=V.useRef(0),[B,ae]=Ju({controlled:C,default:r??c,name:"Slider"}),Q=d&&((E,$,J)=>{const ie=E.nativeEvent||E,fe=new ie.constructor(ie.type,ie);Object.defineProperty(fe,"target",{writable:!0,value:{value:$,name:u}}),d(fe,$,J)}),te=Array.isArray(B);let ne=te?B.slice().sort(bi):[B];ne=ne.map(E=>E==null?c:Qt(E,c,l));const be=i===!0&&y!==null?[...Array(Math.floor((l-c)/y)+1)].map((E,$)=>({value:c+y*$})):i||[],ce=be.map(E=>E.value),{isFocusVisibleRef:se,onBlur:ke,onFocus:R,ref:M}=Xu(),[X,G]=V.useState(-1),D=V.useRef(),ee=xo(M,D),W=xo(_,ee),z=E=>$=>{var J;const ie=Number($.currentTarget.getAttribute("data-index"));R($),se.current===!0&&G(ie),I(ie),E==null||(J=E.onFocus)==null||J.call(E,$)},q=E=>$=>{var J;ke($),se.current===!1&&G(-1),I(-1),E==null||(J=E.onBlur)==null||J.call(E,$)},re=(E,$)=>{const J=Number(E.currentTarget.getAttribute("data-index")),ie=ne[J],fe=ce.indexOf(ie);let le=$;if(be&&y==null){const Ze=ce[ce.length-1];le>Ze?le=Ze:le<ce[0]?le=ce[0]:le=le<ie?ce[fe-1]:ce[fe+1]}if(le=Qt(le,c,l),te){o&&(le=Qt(le,ne[J-1]||-1/0,ne[J+1]||1/0));const Ze=le;le=ts({values:ne,newValue:le,index:J});let nt=J;o||(nt=le.indexOf(Ze)),Qr({sliderRef:D,activeIndex:nt})}ae(le),G(J),Q&&!en(le,B)&&Q(E,le,J),m&&m(E,le)},Y=E=>$=>{var J;if(y!==null){const ie=Number($.currentTarget.getAttribute("data-index")),fe=ne[ie];let le=null;($.key==="ArrowLeft"||$.key==="ArrowDown")&&$.shiftKey||$.key==="PageDown"?le=Math.max(fe-b,c):(($.key==="ArrowRight"||$.key==="ArrowUp")&&$.shiftKey||$.key==="PageUp")&&(le=Math.min(fe+b,l)),le!==null&&(re($,le),$.preventDefault())}E==null||(J=E.onKeyDown)==null||J.call(E,$)};Ks(()=>{if(n&&D.current.contains(document.activeElement)){var E;(E=document.activeElement)==null||E.blur()}},[n]),n&&k!==-1&&v(-1),n&&X!==-1&&G(-1);const Te=E=>$=>{var J;(J=E.onChange)==null||J.call(E,$),re($,$.target.valueAsNumber)},O=V.useRef();let je=f;a&&f==="horizontal"&&(je+="-reverse");const T=({finger:E,move:$=!1})=>{const{current:J}=D,{width:ie,height:fe,bottom:le,left:Ze}=J.getBoundingClientRect();let nt;je.indexOf("vertical")===0?nt=(le-E.y)/fe:nt=(E.x-Ze)/ie,je.indexOf("-reverse")!==-1&&(nt=1-nt);let me;if(me=am(nt,c,l),y)me=im(me,y,c);else{const Pt=es(ce,me);me=ce[Pt]}me=Qt(me,c,l);let qe=0;if(te){$?qe=O.current:qe=es(ne,me),o&&(me=Qt(me,ne[qe-1]||-1/0,ne[qe+1]||1/0));const Pt=me;me=ts({values:ne,newValue:me,index:qe}),o&&$||(qe=me.indexOf(Pt),O.current=qe)}return{newValue:me,activeIndex:qe}},ue=oo(E=>{const $=Zr(E,P);if(!$)return;if(Re.current+=1,E.type==="mousemove"&&E.buttons===0){Ae(E);return}const{newValue:J,activeIndex:ie}=T({finger:$,move:!0});Qr({sliderRef:D,activeIndex:ie,setActive:v}),ae(J),!de&&Re.current>om&&Ee(!0),Q&&!en(J,B)&&Q(E,J,ie)}),Ae=oo(E=>{const $=Zr(E,P);if(Ee(!1),!$)return;const{newValue:J}=T({finger:$,move:!0});v(-1),E.type==="touchend"&&I(-1),m&&m(E,J),P.current=void 0,He()}),We=oo(E=>{if(n)return;rs()||E.preventDefault();const $=E.changedTouches[0];$!=null&&(P.current=$.identifier);const J=Zr(E,P);if(J!==!1){const{newValue:fe,activeIndex:le}=T({finger:J});Qr({sliderRef:D,activeIndex:le,setActive:v}),ae(fe),Q&&!en(fe,B)&&Q(E,fe,le)}Re.current=0;const ie=sn(D.current);ie.addEventListener("touchmove",ue,{passive:!0}),ie.addEventListener("touchend",Ae,{passive:!0})}),He=V.useCallback(()=>{const E=sn(D.current);E.removeEventListener("mousemove",ue),E.removeEventListener("mouseup",Ae),E.removeEventListener("touchmove",ue),E.removeEventListener("touchend",Ae)},[Ae,ue]);V.useEffect(()=>{const{current:E}=D;return E.addEventListener("touchstart",We,{passive:rs()}),()=>{E.removeEventListener("touchstart",We),He()}},[He,We]),V.useEffect(()=>{n&&He()},[n,He]);const jt=E=>$=>{var J;if((J=E.onMouseDown)==null||J.call(E,$),n||$.defaultPrevented||$.button!==0)return;$.preventDefault();const ie=Zr($,P);if(ie!==!1){const{newValue:le,activeIndex:Ze}=T({finger:ie});Qr({sliderRef:D,activeIndex:Ze,setActive:v}),ae(le),Q&&!en(le,B)&&Q($,le,Ze)}Re.current=0;const fe=sn(D.current);fe.addEventListener("mousemove",ue,{passive:!0}),fe.addEventListener("mouseup",Ae)},Be=Sn(te?ne[0]:c,c,l),Ct=Sn(ne[ne.length-1],c,l)-Be,It=(E={})=>{const $=ln(E),J={onMouseDown:jt($||{})},ie=A({},$,J);return A({},E,{ref:W},ie)},dr=E=>$=>{var J;(J=E.onMouseOver)==null||J.call(E,$);const ie=Number($.currentTarget.getAttribute("data-index"));I(ie)},fr=E=>$=>{var J;(J=E.onMouseLeave)==null||J.call(E,$),I(-1)};return{active:k,axis:je,axisProps:lm,dragging:de,focusedThumbIndex:X,getHiddenInputProps:(E={})=>{var $;const J=ln(E),ie={onChange:Te(J||{}),onFocus:z(J||{}),onBlur:q(J||{}),onKeyDown:Y(J||{})},fe=A({},J,ie);return A({tabIndex:w,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(l),"aria-valuemin":g(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":($=e.step)!=null?$:void 0,disabled:n},E,fe,{style:A({},Yu,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:It,getThumbProps:(E={})=>{const $=ln(E),J={onMouseOver:dr($||{}),onMouseLeave:fr($||{})};return A({},E,$,J)},marks:be,open:N,range:te,rootRef:W,trackLeap:Ct,trackOffset:Be,values:ne,getThumbStyle:E=>({pointerEvents:k!==-1&&k!==E?"none":void 0})}}const dm=e=>!e||!Cr(e);function fm(e){return Ln("MuiSlider",e)}const lt=Ru("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"]),mm=e=>{const{open:t}=e;return{offset:Rt(t&&lt.valueLabelOpen),circle:lt.valueLabelCircle,label:lt.valueLabelLabel}};function _i(e){const{children:t,className:r,value:n}=e,o=mm(e);return t?V.cloneElement(t,{className:Rt(t.props.className)},s.jsxs(V.Fragment,{children:[t.props.children,s.jsx("span",{className:Rt(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"&&(_i.propTypes={children:p.element.isRequired,className:p.string,value:p.node});const hm=["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 ns(e){return e}const pm=kt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${it(r.color)}`],r.size!=="medium"&&t[`size${it(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"},[`&.${lt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${lt.dragging}`]:{[`& .${lt.thumb}, & .${lt.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}}]}}),gm=kt("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}}]}),ym=kt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:Co(e.palette[r].main,.62),borderColor:Co(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:jo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:jo(e.palette[r].main,.5)})))}))]}}),bm=kt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${it(r.color)}`],r.size!=="medium"&&t[`thumbSize${it(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%)"},[`&.${lt.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, &.${lt.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Na(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${lt.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Na(e.palette[r].main,.16)}`})}}))]}}),_m=kt(_i,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${lt.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%"},[`&.${lt.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"}}]})),vm=kt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Xo(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}}]})),Sm=kt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Xo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),xm=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${it(l)}`,c&&`size${it(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${it(c)}`,l&&`thumbColor${it(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Xs(u,fm,i)},wm=({children:e})=>e,vi=V.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,m,f,_,g,y,b,w,C,P,k,v,N,I,de,Ee,Re;const B=ci({props:t,name:"MuiSlider"}),ae=nd(),{"aria-label":Q,"aria-valuetext":te,"aria-labelledby":ne,component:be="span",components:ce={},componentsProps:se={},color:ke="primary",classes:R,className:M,disableSwap:X=!1,disabled:G=!1,getAriaLabel:D,getAriaValueText:ee,marks:W=!1,max:z=100,min:q=0,orientation:re="horizontal",shiftStep:Y=10,size:Te="medium",step:O=1,scale:je=ns,slotProps:T,slots:ue,track:Ae="normal",valueLabelDisplay:We="off",valueLabelFormat:He=ns}=B,jt=rt(B,hm),Be=A({},B,{isRtl:ae,max:z,min:q,classes:R,disabled:G,disableSwap:X,orientation:re,marks:W,color:ke,size:Te,step:O,shiftStep:Y,scale:je,track:Ae,valueLabelDisplay:We,valueLabelFormat:He}),{axisProps:Ct,getRootProps:It,getHiddenInputProps:dr,getThumbProps:fr,open:mr,active:Bt,axis:mt,focusedThumbIndex:E,range:$,dragging:J,marks:ie,values:fe,trackOffset:le,trackLeap:Ze,getThumbStyle:nt}=um(A({},Be,{rootRef:r}));Be.marked=ie.length>0&&ie.some(F=>F.label),Be.dragging=J,Be.focusedThumbIndex=E;const me=xm(Be),qe=(n=(o=ue==null?void 0:ue.root)!=null?o:ce.Root)!=null?n:pm,Pt=(a=(i=ue==null?void 0:ue.rail)!=null?i:ce.Rail)!=null?a:gm,Jt=(l=(c=ue==null?void 0:ue.track)!=null?c:ce.Track)!=null?l:ym,hr=(u=(d=ue==null?void 0:ue.thumb)!=null?d:ce.Thumb)!=null?u:bm,St=(m=(f=ue==null?void 0:ue.valueLabel)!=null?f:ce.ValueLabel)!=null?m:_m,Lt=(_=(g=ue==null?void 0:ue.mark)!=null?g:ce.Mark)!=null?_:vm,$t=(y=(b=ue==null?void 0:ue.markLabel)!=null?b:ce.MarkLabel)!=null?y:Sm,pr=(w=(C=ue==null?void 0:ue.input)!=null?C:ce.Input)!=null?w:"input",gr=(P=T==null?void 0:T.root)!=null?P:se.root,Gr=(k=T==null?void 0:T.rail)!=null?k:se.rail,yr=(v=T==null?void 0:T.track)!=null?v:se.track,Vt=(N=T==null?void 0:T.thumb)!=null?N:se.thumb,Gt=(I=T==null?void 0:T.valueLabel)!=null?I:se.valueLabel,Vn=(de=T==null?void 0:T.mark)!=null?de:se.mark,Gn=(Ee=T==null?void 0:T.markLabel)!=null?Ee:se.markLabel,zr=(Re=T==null?void 0:T.input)!=null?Re:se.input,Wr=Et({elementType:qe,getSlotProps:It,externalSlotProps:gr,externalForwardedProps:jt,additionalProps:A({},dm(qe)&&{as:be}),ownerState:A({},Be,gr==null?void 0:gr.ownerState),className:[me.root,M]}),zn=Et({elementType:Pt,externalSlotProps:Gr,ownerState:Be,className:me.rail}),Wn=Et({elementType:Jt,externalSlotProps:yr,additionalProps:{style:A({},Ct[mt].offset(le),Ct[mt].leap(Ze))},ownerState:A({},Be,yr==null?void 0:yr.ownerState),className:me.track}),br=Et({elementType:hr,getSlotProps:fr,externalSlotProps:Vt,ownerState:A({},Be,Vt==null?void 0:Vt.ownerState),className:me.thumb}),Hn=Et({elementType:St,externalSlotProps:Gt,ownerState:A({},Be,Gt==null?void 0:Gt.ownerState),className:me.valueLabel}),h=Et({elementType:Lt,externalSlotProps:Vn,ownerState:Be,className:me.mark}),j=Et({elementType:$t,externalSlotProps:Gn,ownerState:Be,className:me.markLabel}),L=Et({elementType:pr,getSlotProps:dr,externalSlotProps:zr,ownerState:Be});return s.jsxs(qe,A({},Wr,{children:[s.jsx(Pt,A({},zn)),s.jsx(Jt,A({},Wn)),ie.filter(F=>F.value>=q&&F.value<=z).map((F,H)=>{const he=Sn(F.value,q,z),oe=Ct[mt].offset(he);let K;return Ae===!1?K=fe.indexOf(F.value)!==-1:K=Ae==="normal"&&($?F.value>=fe[0]&&F.value<=fe[fe.length-1]:F.value<=fe[0])||Ae==="inverted"&&($?F.value<=fe[0]||F.value>=fe[fe.length-1]:F.value>=fe[0]),s.jsxs(V.Fragment,{children:[s.jsx(Lt,A({"data-index":H},h,!Cr(Lt)&&{markActive:K},{style:A({},oe,h.style),className:Rt(h.className,K&&me.markActive)})),F.label!=null?s.jsx($t,A({"aria-hidden":!0,"data-index":H},j,!Cr($t)&&{markLabelActive:K},{style:A({},oe,j.style),className:Rt(me.markLabel,j.className,K&&me.markLabelActive),children:F.label})):null]},H)}),fe.map((F,H)=>{const he=Sn(F,q,z),oe=Ct[mt].offset(he),K=We==="off"?wm:St;return s.jsx(K,A({},!Cr(K)&&{valueLabelFormat:He,valueLabelDisplay:We,value:typeof He=="function"?He(je(F),H):He,index:H,open:mr===H||Bt===H||We==="on",disabled:G},Hn,{children:s.jsx(hr,A({"data-index":H},br,{className:Rt(me.thumb,br.className,Bt===H&&me.active,E===H&&me.focusVisible),style:A({},oe,nt(H),br.style),children:s.jsx(pr,A({"data-index":H,"aria-label":D?D(H):Q,"aria-valuenow":je(F),"aria-labelledby":ne,"aria-valuetext":ee?ee(je(F),H):te,value:fe[H]},L))}))}),H)})]}))});process.env.NODE_ENV!=="production"&&(vi.propTypes={"aria-label":Oa(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":p.string,"aria-valuetext":Oa(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});const Rm=tt.observer(e=>{const t=e.valueLabelFormat||(n=>`${n}`);function r(n,o){o===e.velocity||!bt.isNumber(o)||e.onVelocityChange(o)}return s.jsxs(s.Fragment,{children:[s.jsx(U.Typography,{sx:{textAlign:"center",fontSize:"15px"},children:t(e.velocity)}),s.jsx(vi,{value:e.velocity,onChange:r,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Si=tt.observer(({store:e})=>{const{t}=At.useTranslation(),r=tt.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.jsxs(U.Stack,{children:[s.jsx(U.Divider,{}),s.jsx(U.Stack,{sx:{margin:"0px 20px",marginTop:"0.8rem",marginBottom:"0.8rem"},children:s.jsxs(U.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:[s.jsx(U.Typography,{sx:{fontWeight:"bold",fontSize:"15px"},children:t("Jogging.Velocity.lb")}),s.jsx(Rm,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})]})}),s.jsx(U.Divider,{})]})}),jm=tt.observer(({store:e})=>{var n;const t=Pe.useRef(null);function r(){const o=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return o?tr.poseToWandelscriptString(o):""}return Lr(()=>{t.current&&(t.current.textContent=r())}),s.jsxs(U.Stack,{alignItems:"center",marginTop:"0.8rem",children:[s.jsxs(U.Typography,{sx:{fontSize:"12px",marginTop:"0.8rem"},children:[e.selectedTcpId," - ",(n=e.selectedCoordSystem)==null?void 0:n.name]}),s.jsx(U.Typography,{component:"pre",ref:t,sx:{fontSize:"14px",opacity:.6}})]})}),Cm=({store:e})=>{const{t}=At.useTranslation(),[r,n]=Pe.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);Lr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;bt.isEqual(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(U.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},Pm=tt.observer(({store:e})=>{const{t}=At.useTranslation();function r(u,d){(d==="translate"||d==="rotate")&&e.setSelectedCartesianMotionType(d)}cl(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function n(u,d){const m=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position}async function o(u){if(!e.isLocked){if(e.selectedDiscreteIncrement)return n(u,e.selectedDiscreteIncrement);u.motionType==="translate"?await e.jogger.startTCPTranslation({axis:u.axis,direction:u.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:u.axis,direction:u.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const i=[{id:"x",color:"#F14D42",icon:s.jsx(Xf,{})},{id:"y",color:"#42A705",icon:s.jsx(Zf,{})},{id:"z",color:"#0075FF",icon:s.jsx(em,{})}];function l(u){return t("General.mm.variable",{amount:u.toFixed(1)})}function c(u){return t("General.degree.variable",{amount:tr.radiansToDegrees(u).toFixed(1)})}return s.jsxs(U.Stack,{children:[s.jsx(rm,{store:e}),s.jsx(jm,{store:e}),s.jsx(U.Stack,{alignItems:"center",marginTop:"1rem",children:s.jsxs(U.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),sx:{"& > button":{borderRadius:"8px",textTransform:"none",padding:"4px 30px"}},children:[s.jsx(U.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(U.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]})}),s.jsxs(U.Stack,{width:"80%",maxWidth:"296px",margin:"auto",children:[e.selectedCartesianMotionType==="translate"&&i.map(u=>s.jsx(Po,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[u.icon,s.jsx(U.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d;return l(((d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.position[u.id])||0)},startJogging:d=>o({axis:u.id,motionType:"translate",direction:d}),stopJogging:a},u.id)),e.selectedCartesianMotionType==="rotate"&&i.map(u=>s.jsx(Po,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(qf,{}),s.jsx(U.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d,m;return c(((m=(d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.orientation)==null?void 0:m[u.id])||0)},startJogging:d=>o({axis:u.id,motionType:"rotate",direction:d}),stopJogging:a},u.id))]}),s.jsx(Si,{store:e}),s.jsx(Cm,{store:e})]})}),Em=tt.observer(({store:e})=>{const t=Pe.useRef(null),{t:r}=At.useTranslation();function n(){const{joints:o}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${o.map(a=>parseFloat(a.toFixed(4))).join(", ")}}`}return Lr(()=>{t.current&&(t.current.textContent=n())}),s.jsxs(U.Stack,{alignItems:"center",marginTop:"0.8rem",children:[s.jsx(U.Typography,{sx:{fontSize:"12px",marginTop:"0.8rem"},children:r("Jogging.Joints.JointValues.lb")}),s.jsx(U.Typography,{component:"pre",ref:t,sx:{fontSize:"14px",opacity:.6},children:n()})]})}),Tm=tt.observer(({store:e})=>{async function t(n){await e.jogger.startJointRotation({joint:n.joint,direction:n.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function r(){await e.jogger.stop()}return s.jsxs(U.Stack,{children:[s.jsx(Em,{store:e}),s.jsx(U.Stack,{children:e.jogger.motionStream.joints.map(n=>{var l;const o=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[n.index],a=(o==null?void 0:o.lower_limit)!==void 0?tr.radiansToDegrees(o.lower_limit):void 0,i=(o==null?void 0:o.upper_limit)!==void 0?tr.radiansToDegrees(o.upper_limit):void 0;return s.jsxs(U.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(U.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${n.index+1}`}),s.jsx(mi,{disabled:e.isLocked,lowerLimitDegs:a,upperLimitDegs:i,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[n.index];return c!==void 0?tr.radiansToDegrees(c):void 0},startJogging:c=>t({joint:n.index,direction:c}),stopJogging:r},n.index),s.jsx(U.Typography,{sx:{flexGrow:1}})]},`joint-${n.index}`)})}),s.jsx(Si,{store:e})]})}),To=[{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}],Am=[{id:"continuous"},...To];class Yo{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.isLocked=!1,this.selectedCoordSystemId="world",this.selectedTcpId="",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)||"",Er.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(Er.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 Yo(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=tr.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))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return Am}get discreteIncrementOptions(){return To}get incrementOptionsById(){return bt.keyBy(this.incrementOptions,t=>t.id)}get tabsById(){return bt.keyBy(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 bt.keyBy(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get tcpsById(){return bt.keyBy(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return To.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}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}}function xi(e,t){return function(){return e.apply(t,arguments)}}const{toString:Om}=Object.prototype,{getPrototypeOf:Zo}=Object,Fn=(e=>t=>{const r=Om.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Fn(t)===e),Dn=e=>t=>typeof t===e,{isArray:cr}=Array,Ir=Dn("undefined");function Mm(e){return e!==null&&!Ir(e)&&e.constructor!==null&&!Ir(e.constructor)&&ut(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wi=gt("ArrayBuffer");function km(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wi(e.buffer),t}const Im=Dn("string"),ut=Dn("function"),Ri=Dn("number"),Un=e=>e!==null&&typeof e=="object",Lm=e=>e===!0||e===!1,dn=e=>{if(Fn(e)!=="object")return!1;const t=Zo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$m=gt("Date"),Nm=gt("File"),Fm=gt("Blob"),Dm=gt("FileList"),Um=e=>Un(e)&&ut(e.pipe),Bm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ut(e.append)&&((t=Fn(e))==="formdata"||t==="object"&&ut(e.toString)&&e.toString()==="[object FormData]"))},Jm=gt("URLSearchParams"),[Vm,Gm,zm,Wm]=["ReadableStream","Request","Response","Headers"].map(gt),Hm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Jr(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 ji(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 Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pi=e=>!Ir(e)&&e!==Ci;function Ao(){const{caseless:e}=Pi(this)&&this||{},t={},r=(n,o)=>{const a=e&&ji(t,o)||o;dn(t[a])&&dn(n)?t[a]=Ao(t[a],n):dn(n)?t[a]=Ao({},n):cr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Jr(arguments[n],r);return t}const qm=(e,t,r,{allOwnKeys:n}={})=>(Jr(t,(o,a)=>{r&&ut(o)?e[a]=xi(o,r):e[a]=o},{allOwnKeys:n}),e),Km=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xm=(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)},Ym=(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&&Zo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Zm=(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},Qm=e=>{if(!e)return null;if(cr(e))return e;let t=e.length;if(!Ri(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},eh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zo(Uint8Array)),th=(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])}},rh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},nh=gt("HTMLFormElement"),oh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),os=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ah=gt("RegExp"),Ei=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Jr(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},sh=e=>{Ei(e,(t,r)=>{if(ut(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ut(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+"'")})}})},ih=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return cr(e)?n(e):n(String(e).split(t)),r},lh=()=>{},ch=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,fo="abcdefghijklmnopqrstuvwxyz",as="0123456789",Ti={DIGIT:as,ALPHA:fo,ALPHA_DIGIT:fo+fo.toUpperCase()+as},uh=(e=16,t=Ti.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function dh(e){return!!(e&&ut(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const fh=e=>{const t=new Array(10),r=(n,o)=>{if(Un(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=cr(n)?[]:{};return Jr(n,(i,l)=>{const c=r(i,o+1);!Ir(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},mh=gt("AsyncFunction"),hh=e=>e&&(Un(e)||ut(e))&&ut(e.then)&&ut(e.catch),S={isArray:cr,isArrayBuffer:wi,isBuffer:Mm,isFormData:Bm,isArrayBufferView:km,isString:Im,isNumber:Ri,isBoolean:Lm,isObject:Un,isPlainObject:dn,isReadableStream:Vm,isRequest:Gm,isResponse:zm,isHeaders:Wm,isUndefined:Ir,isDate:$m,isFile:Nm,isBlob:Fm,isRegExp:ah,isFunction:ut,isStream:Um,isURLSearchParams:Jm,isTypedArray:eh,isFileList:Dm,forEach:Jr,merge:Ao,extend:qm,trim:Hm,stripBOM:Km,inherits:Xm,toFlatObject:Ym,kindOf:Fn,kindOfTest:gt,endsWith:Zm,toArray:Qm,forEachEntry:th,matchAll:rh,isHTMLForm:nh,hasOwnProperty:os,hasOwnProp:os,reduceDescriptors:Ei,freezeMethods:sh,toObjectSet:ih,toCamelCase:oh,noop:lh,toFiniteNumber:ch,findKey:ji,global:Ci,isContextDefined:Pi,ALPHABET:Ti,generateString:uh,isSpecCompliantForm:dh,toJSONObject:fh,isAsyncFn:mh,isThenable:hh};function Z(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}S.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ai=Z.prototype,Oi={};["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=>{Oi[e]={value:e}});Object.defineProperties(Z,Oi);Object.defineProperty(Ai,"isAxiosError",{value:!0});Z.from=(e,t,r,n,o,a)=>{const i=Object.create(Ai);return S.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Z.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const ph=null;function Oo(e){return S.isPlainObject(e)||S.isArray(e)}function Mi(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function ss(e,t,r){return e?e.concat(t).map(function(o,a){return o=Mi(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function gh(e){return S.isArray(e)&&!e.some(Oo)}const yh=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Bn(e,t,r){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=S.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!S.isUndefined(b[y])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(S.isDate(g))return g.toISOString();if(!c&&S.isBlob(g))throw new Z("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(g)||S.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,y,b){let w=g;if(g&&!b&&typeof g=="object"){if(S.endsWith(y,"{}"))y=n?y:y.slice(0,-2),g=JSON.stringify(g);else if(S.isArray(g)&&gh(g)||(S.isFileList(g)||S.endsWith(y,"[]"))&&(w=S.toArray(g)))return y=Mi(y),w.forEach(function(P,k){!(S.isUndefined(P)||P===null)&&t.append(i===!0?ss([y],k,a):i===null?y:y+"[]",u(P))}),!1}return Oo(g)?!0:(t.append(ss(b,y,a),u(g)),!1)}const m=[],f=Object.assign(yh,{defaultVisitor:d,convertValue:u,isVisitable:Oo});function _(g,y){if(!S.isUndefined(g)){if(m.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));m.push(g),S.forEach(g,function(w,C){(!(S.isUndefined(w)||w===null)&&o.call(t,w,S.isString(C)?C.trim():C,y,f))===!0&&_(w,y?y.concat(C):[C])}),m.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return _(e),t}function is(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Qo(e,t){this._pairs=[],e&&Bn(e,this,t)}const ki=Qo.prototype;ki.append=function(t,r){this._pairs.push([t,r])};ki.toString=function(t){const r=t?function(n){return t.call(this,n,is)}:is;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function bh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ii(e,t,r){if(!t)return e;const n=r&&r.encode||bh,o=r&&r.serialize;let a;if(o?a=o(t,r):a=S.isURLSearchParams(t)?t.toString():new Qo(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ls{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Li={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_h=typeof URLSearchParams<"u"?URLSearchParams:Qo,vh=typeof FormData<"u"?FormData:null,Sh=typeof Blob<"u"?Blob:null,xh={isBrowser:!0,classes:{URLSearchParams:_h,FormData:vh,Blob:Sh},protocols:["http","https","file","blob","url","data"]},ea=typeof window<"u"&&typeof document<"u",wh=(e=>ea&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Rh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jh=ea&&window.location.href||"http://localhost",Ch=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ea,hasStandardBrowserEnv:wh,hasStandardBrowserWebWorkerEnv:Rh,origin:jh},Symbol.toStringTag,{value:"Module"})),ht={...Ch,...xh};function Ph(e,t){return Bn(e,new ht.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return ht.isNode&&S.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Eh(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Th(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 $i(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=r.length;return i=!i&&S.isArray(o)?o.length:i,c?(S.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!S.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&S.isArray(o[i])&&(o[i]=Th(o[i])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const r={};return S.forEachEntry(e,(n,o)=>{t(Eh(n),o,r,0)}),r}return null}function Ah(e,t,r){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Vr={transitional:Li,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=S.isObject(t);if(a&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify($i(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ph(t,this.formSerializer).toString();if((l=S.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Bn(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Ah(t)):t}],transformResponse:[function(t){const r=this.transitional||Vr.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?Z.from(l,Z.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:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Vr.headers[e]={}});const Oh=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mh=e=>{const t={};let r,n,o;return e&&e.split(`
97
+ `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&Oh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},cs=Symbol("internals");function Rr(e){return e&&String(e).trim().toLowerCase()}function fn(e){return e===!1||e==null?e:S.isArray(e)?e.map(fn):String(e)}function kh(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 Ih=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mo(e,t,r,n,o){if(S.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!S.isString(t)){if(S.isString(n))return t.indexOf(n)!==-1;if(S.isRegExp(n))return n.test(t)}}function Lh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function $h(e,t){const r=S.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Xe=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(l,c,u){const d=Rr(c);if(!d)throw new Error("header name must be a non-empty string");const m=S.findKey(o,d);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||c]=fn(l))}const i=(l,c)=>S.forEach(l,(u,d)=>a(u,d,c));if(S.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(S.isString(t)&&(t=t.trim())&&!Ih(t))i(Mh(t),r);else if(S.isHeaders(t))for(const[l,c]of t.entries())a(c,l,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=Rr(t),t){const n=S.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return kh(o);if(S.isFunction(r))return r.call(this,o,n);if(S.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Rr(t),t){const n=S.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||mo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Rr(i),i){const l=S.findKey(n,i);l&&(!r||mo(n,n[l],l,r))&&(delete n[l],o=!0)}}return S.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||mo(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return S.forEach(this,(o,a)=>{const i=S.findKey(n,a);if(i){r[i]=fn(o),delete r[a];return}const l=t?Lh(a):String(a).trim();l!==a&&delete r[a],r[l]=fn(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return S.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&S.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
98
+ `)}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[cs]=this[cs]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Rr(i);n[l]||($h(o,i),n[l]=!0)}return S.isArray(t)?t.forEach(a):a(t),this}};Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Xe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});S.freezeMethods(Xe);function ho(e,t){const r=this||Vr,n=t||r,o=Xe.from(n.headers);let a=n.data;return S.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Ni(e){return!!(e&&e.__CANCEL__)}function ur(e,t,r){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,r),this.name="CanceledError"}S.inherits(ur,Z,{__CANCEL__:!0});function Fi(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Z("Request failed with status code "+r.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Nh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Fh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let m=a,f=0;for(;m!==o;)f+=r[m++],m=m%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const _=d&&u-d;return _?Math.round(f*1e3/_):void 0}}function Dh(e,t){let r=0;const n=1e3/t;let o=null;return function(){const i=this===!0,l=Date.now();if(i||l-r>n)return o&&(clearTimeout(o),o=null),r=l,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,r=Date.now(),e.apply(null,arguments)),n-(l-r)))}}const xn=(e,t,r=3)=>{let n=0;const o=Fh(50,250);return Dh(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const m={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null};m[t?"download":"upload"]=!0,e(m)},r)},Uh=ht.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const l=S.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),Bh=ht.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];S.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),S.isString(n)&&i.push("path="+n),S.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Jh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Di(e,t){return e&&!Jh(t)?Vh(e,t):t}const us=e=>e instanceof Xe?{...e}:e;function Ut(e,t){t=t||{};const r={};function n(u,d,m){return S.isPlainObject(u)&&S.isPlainObject(d)?S.merge.call({caseless:m},u,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function o(u,d,m){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u,m)}else return n(u,d,m)}function a(u,d){if(!S.isUndefined(d))return n(void 0,d)}function i(u,d){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,m){if(m in t)return n(u,d);if(m in e)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d)=>o(us(u),us(d),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(d){const m=c[d]||o,f=m(e[d],t[d],d);S.isUndefined(f)&&m!==l||(r[d]=f)}),r}const Ui=e=>{const t=Ut({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Xe.from(i),t.url=Ii(Di(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(S.isFormData(r)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(ht.hasStandardBrowserEnv&&(n&&S.isFunction(n)&&(n=n(t)),n||n!==!1&&Uh(t.url))){const u=o&&a&&Bh.read(a);u&&i.set(o,u)}return t},Gh=typeof XMLHttpRequest<"u",zh=Gh&&function(e){return new Promise(function(r,n){const o=Ui(e);let a=o.data;const i=Xe.from(o.headers).normalize();let{responseType:l}=o,c;function u(){o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function m(){if(!d)return;const _=Xe.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};Fi(function(w){r(w),u()},function(w){n(w),u()},y),d=null}"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(n(new Z("Request aborted",Z.ECONNABORTED,o,d)),d=null)},d.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const y=o.transitional||Li;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),n(new Z(g,y.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,o,d)),d=null},a===void 0&&i.setContentType(null),"setRequestHeader"in d&&S.forEach(i.toJSON(),function(g,y){d.setRequestHeader(y,g)}),S.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),l&&l!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",xn(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",xn(o.onUploadProgress)),(o.cancelToken||o.signal)&&(c=_=>{d&&(n(!_||_.type?new ur(null,e,d):_),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const f=Nh(o.url);if(f&&ht.protocols.indexOf(f)===-1){n(new Z("Unsupported protocol "+f+":",Z.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Wh=(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 Z?u:new ur(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new Z(`timeout ${t} of ms exceeded`,Z.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}]},Hh=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},qh=async function*(e,t,r){for await(const n of e)yield*Hh(ArrayBuffer.isView(n)?n:await r(String(n)),t)},ds=(e,t,r,n,o)=>{const a=qh(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await a.next();if(c){l.close(),n();return}let d=u.byteLength;r&&r(i+=d),l.enqueue(new Uint8Array(u))},cancel(l){return n(l),a.return()}},{highWaterMark:2})},fs=(e,t)=>{const r=e!=null;return n=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:n}))},Jn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bi=Jn&&typeof ReadableStream=="function",Mo=Jn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Kh=Bi&&(()=>{let e=!1;const t=new Request(ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),ms=64*1024,ko=Bi&&!!(()=>{try{return S.isReadableStream(new Response("").body)}catch{}})(),wn={stream:ko&&(e=>e.body)};Jn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wn[t]&&(wn[t]=S.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Z(`Response type '${t}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})})(new Response);const Xh=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(S.isArrayBufferView(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Mo(e)).byteLength},Yh=async(e,t)=>{const r=S.toFiniteNumber(e.getContentLength());return r??Xh(t)},Zh=Jn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:f}=Ui(e);u=u?(u+"").toLowerCase():"text";let[_,g]=o||a||i?Wh([o,a],i):[],y,b;const w=()=>{!y&&setTimeout(()=>{_&&_.unsubscribe()}),y=!0};let C;try{if(c&&Kh&&r!=="get"&&r!=="head"&&(C=await Yh(d,n))!==0){let N=new Request(t,{method:"POST",body:n,duplex:"half"}),I;S.isFormData(n)&&(I=N.headers.get("content-type"))&&d.setContentType(I),N.body&&(n=ds(N.body,ms,fs(C,xn(c)),null,Mo))}S.isString(m)||(m=m?"cors":"omit"),b=new Request(t,{...f,signal:_,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",withCredentials:m});let P=await fetch(b);const k=ko&&(u==="stream"||u==="response");if(ko&&(l||k)){const N={};["status","statusText","headers"].forEach(de=>{N[de]=P[de]});const I=S.toFiniteNumber(P.headers.get("content-length"));P=new Response(ds(P.body,ms,l&&fs(I,xn(l,!0)),k&&w,Mo),N)}u=u||"text";let v=await wn[S.findKey(wn,u)||"text"](P,e);return!k&&w(),g&&g(),await new Promise((N,I)=>{Fi(N,I,{data:v,headers:Xe.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:b})})}catch(P){throw w(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,b),{cause:P.cause||P}):Z.from(P,P&&P.code,e,b)}}),Io={http:ph,xhr:zh,fetch:Zh};S.forEach(Io,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hs=e=>`- ${e}`,Qh=e=>S.isFunction(e)||e===null||e===!1,Ji={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!Qh(r)&&(n=Io[(i=String(r)).toLowerCase()],n===void 0))throw new Z(`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 :
99
+ `+a.map(hs).join(`
100
+ `):" "+hs(a[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Io};function po(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ur(null,e)}function ps(e){return po(e),e.headers=Xe.from(e.headers),e.data=ho.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ji.getAdapter(e.adapter||Vr.adapter)(e).then(function(n){return po(e),n.data=ho.call(e,e.transformResponse,n),n.headers=Xe.from(n.headers),n},function(n){return Ni(n)||(po(e),n&&n.response&&(n.response.data=ho.call(e,e.transformResponse,n.response),n.response.headers=Xe.from(n.response.headers))),Promise.reject(n)})}const Vi="1.7.2",ta={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ta[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gs={};ta.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Vi+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new Z(o(i," has been removed"+(r?" in "+r:"")),Z.ERR_DEPRECATED);return r&&!gs[i]&&(gs[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 e0(e,t,r){if(typeof e!="object")throw new Z("options must be an object",Z.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 Z("option "+a+" must be "+c,Z.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Z("Unknown option "+a,Z.ERR_BAD_OPTION)}}const Lo={assertOptions:e0,validators:ta},Tt=Lo.validators;let Ft=class{constructor(t){this.defaults=t,this.interceptors={request:new ls,response:new ls}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let 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+=`
101
+ `+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ut(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Lo.assertOptions(n,{silentJSONParsing:Tt.transitional(Tt.boolean),forcedJSONParsing:Tt.transitional(Tt.boolean),clarifyTimeoutError:Tt.transitional(Tt.boolean)},!1),o!=null&&(S.isFunction(o)?r.paramsSerializer={serialize:o}:Lo.assertOptions(o,{encode:Tt.function,serialize:Tt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&S.merge(a.common,a[r.method]);a&&S.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),r.headers=Xe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,m=0,f;if(!c){const g=[ps.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),f=g.length,d=Promise.resolve(r);m<f;)d=d.then(g[m++],g[m++]);return d}f=l.length;let _=r;for(m=0;m<f;){const g=l[m++],y=l[m++];try{_=g(_)}catch(b){y.call(this,b);break}}try{d=ps.call(this,_)}catch(g){return Promise.reject(g)}for(m=0,f=u.length;m<f;)d=d.then(u[m++],u[m++]);return d}getUri(t){t=Ut(this.defaults,t);const r=Di(t.baseURL,t.url);return Ii(r,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){Ft.prototype[t]=function(r,n){return this.request(Ut(n||{},{method:t,url:r,data:(n||{}).data}))}});S.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Ut(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ft.prototype[t]=r(),Ft.prototype[t+"Form"]=r(!0)});let t0=class Gi{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 ur(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 Gi(function(o){t=o}),cancel:t}}};function r0(e){return function(r){return e.apply(null,r)}}function n0(e){return S.isObject(e)&&e.isAxiosError===!0}const $o={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($o).forEach(([e,t])=>{$o[t]=e});function zi(e){const t=new Ft(e),r=xi(Ft.prototype.request,t);return S.extend(r,Ft.prototype,t,{allOwnKeys:!0}),S.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return zi(Ut(e,o))},r}const De=zi(Vr);De.Axios=Ft;De.CanceledError=ur;De.CancelToken=t0;De.isCancel=Ni;De.VERSION=Vi;De.toFormData=Bn;De.AxiosError=Z;De.Cancel=De.CanceledError;De.all=function(t){return Promise.all(t)};De.spread=r0;De.isAxiosError=n0;De.mergeConfig=Ut;De.AxiosHeaders=Xe;De.formToJSON=e=>$i(S.isHTMLForm(e)?new FormData(e):e);De.getAdapter=Ji.getAdapter;De.HttpStatusCode=$o;De.default=De;const{Axios:d0,AxiosError:ys,CanceledError:f0,isCancel:m0,CancelToken:h0,VERSION:p0,all:g0,Cancel:y0,isAxiosError:b0,spread:_0,toFormData:v0,AxiosHeaders:S0,HttpStatusCode:x0,formToJSON:w0,getAdapter:R0,mergeConfig:j0}=De;function o0(e){try{return JSON.stringify(e)}catch{return}}function a0(e){var t,r,n,o;return e instanceof ys&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof ys&&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: ${o0(e)||e}`}const s0=e=>{const t=e.softTimeout||3e3,[r,n]=Pe.useState(!1);return Pe.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(U.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(i0,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(U.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(U.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},i0=e=>{const t=a0(e.error),r=e.error instanceof Error?e.error.stack:null,n=U.useTheme();return s.jsxs(U.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})]})},l0=tt.observer(e=>{var a,i,l,c,u;const{nova:t}=e,r=tt.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){try{const d=await t.connectJogger(e.motionGroupId),m=await Yo.loadFor(d);Er.runInAction(()=>{r.joggingStore=m})}catch(d){r.loadingError=d}}if(Pe.useEffect(()=>(n(),()=>{var d;(d=r.joggingStore)==null||d.dispose()}),[]),Pe.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:d,selectedTcpId:m,selectedCoordSystemId:f,selectedDiscreteIncrement:_}=r.joggingStore;if(d.id!=="cartesian"&&d.id!=="joint")return;const g={tcpId:m,coordSystemId:f};_&&d.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",g):r.joggingStore.jogger.setJoggingMode(d.id,g)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.selectedCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),Pe.useEffect(()=>{async function d(){if(r.joggingStore)try{await t.api.controller.setDefaultMode(r.joggingStore.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(m){console.error(m)}}d()},[(u=r.joggingStore)==null?void 0:u.jogger.motionStream.controllerId]),!r.joggingStore)return s.jsx(bs,{children:s.jsx(s0,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(bs,{children:s.jsxs(U.Stack,{flexGrow:1,children:[s.jsx(U.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(d=>s.jsx(U.Tab,{label:d.label,id:`jogging-tab-${d.id}`,"aria-controls":`jogging-tab-${d.id}`},d.id))}),s.jsxs(U.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(Pm,{store:o}),o.currentTab.id==="joint"&&s.jsx(Tm,{store:o})]})]})})});function bs({children:e}){return s.jsx(U.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative"},children:s.jsx(U.Paper,{sx:{minHeight:"90vh"},children:e})})}exports.JoggingCartesianAxisControl=Po;exports.JoggingJointRotationControl=mi;exports.JoggingPanel=l0;exports.PresetEnvironment=Tl;exports.Robot=Pl;exports.SafetyZonesRenderer=Ol;exports.SupportedRobot=xs;exports.WandelscriptEditor=al;exports.defaultAxisConfig=El;exports.defaultGetModel=Fo;
102
102
  //# sourceMappingURL=index.cjs.map