@wandelbots/wandelbots-js-react-components 1.33.4 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/components/robots/DHRobot.d.ts.map +1 -1
  2. package/dist/components/robots/GenericRobot.d.ts +3 -0
  3. package/dist/components/robots/GenericRobot.d.ts.map +1 -0
  4. package/dist/components/robots/Robot.d.ts +1 -1
  5. package/dist/components/robots/Robot.d.ts.map +1 -1
  6. package/dist/components/robots/RobotAnimator.d.ts +3 -4
  7. package/dist/components/robots/RobotAnimator.d.ts.map +1 -1
  8. package/dist/components/robots/SupportedRobot.d.ts +1 -1
  9. package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
  10. package/dist/components/robots/types.d.ts +1 -1
  11. package/dist/components/robots/types.d.ts.map +1 -1
  12. package/dist/index.cjs +32 -32
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.js +5630 -13020
  15. package/dist/index.js.map +1 -1
  16. package/dist/themes/theming.d.ts +1 -1
  17. package/dist/themes/theming.d.ts.map +1 -1
  18. package/package.json +1 -1
  19. package/src/components/robots/DHRobot.tsx +1 -0
  20. package/src/components/robots/GenericRobot.tsx +54 -0
  21. package/src/components/robots/Robot.tsx +1 -1
  22. package/src/components/robots/RobotAnimator.tsx +11 -9
  23. package/src/components/robots/SupportedRobot.tsx +11 -160
  24. package/src/components/robots/types.ts +1 -1
  25. package/src/themes/theming.ts +9 -2
  26. package/dist/components/robots/ABB_1200_07_7.d.ts +0 -8
  27. package/dist/components/robots/ABB_1200_07_7.d.ts.map +0 -1
  28. package/dist/components/robots/ABB_1300_115_10.d.ts +0 -8
  29. package/dist/components/robots/ABB_1300_115_10.d.ts.map +0 -1
  30. package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts +0 -8
  31. package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +0 -1
  32. package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts +0 -8
  33. package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +0 -1
  34. package/dist/components/robots/FANUC_CRX10iA.d.ts +0 -8
  35. package/dist/components/robots/FANUC_CRX10iA.d.ts.map +0 -1
  36. package/dist/components/robots/FANUC_CRX10iAL.d.ts +0 -8
  37. package/dist/components/robots/FANUC_CRX10iAL.d.ts.map +0 -1
  38. package/dist/components/robots/FANUC_CRX20iAL.d.ts +0 -8
  39. package/dist/components/robots/FANUC_CRX20iAL.d.ts.map +0 -1
  40. package/dist/components/robots/FANUC_CRX25iA.d.ts +0 -8
  41. package/dist/components/robots/FANUC_CRX25iA.d.ts.map +0 -1
  42. package/dist/components/robots/FANUC_CRX25iAL.d.ts +0 -8
  43. package/dist/components/robots/FANUC_CRX25iAL.d.ts.map +0 -1
  44. package/dist/components/robots/FANUC_LR_Mate_200iD.d.ts +0 -8
  45. package/dist/components/robots/FANUC_LR_Mate_200iD.d.ts.map +0 -1
  46. package/dist/components/robots/FANUC_LR_Mate_200iD4S.d.ts +0 -8
  47. package/dist/components/robots/FANUC_LR_Mate_200iD4S.d.ts.map +0 -1
  48. package/dist/components/robots/FANUC_LR_Mate_200iD7L.d.ts +0 -8
  49. package/dist/components/robots/FANUC_LR_Mate_200iD7L.d.ts.map +0 -1
  50. package/dist/components/robots/KUKA_KR16_R2010_2.d.ts +0 -9
  51. package/dist/components/robots/KUKA_KR16_R2010_2.d.ts.map +0 -1
  52. package/dist/components/robots/KUKA_KR20_R1810_2.d.ts +0 -9
  53. package/dist/components/robots/KUKA_KR20_R1810_2.d.ts.map +0 -1
  54. package/dist/components/robots/KUKA_KR210_R2700.d.ts +0 -8
  55. package/dist/components/robots/KUKA_KR210_R2700.d.ts.map +0 -1
  56. package/dist/components/robots/KUKA_KR270_R2700.d.ts +0 -8
  57. package/dist/components/robots/KUKA_KR270_R2700.d.ts.map +0 -1
  58. package/dist/components/robots/KUKA_KR6_R700_2.d.ts +0 -9
  59. package/dist/components/robots/KUKA_KR6_R700_2.d.ts.map +0 -1
  60. package/dist/components/robots/UniversalRobots_UR10CB.d.ts +0 -3
  61. package/dist/components/robots/UniversalRobots_UR10CB.d.ts.map +0 -1
  62. package/dist/components/robots/UniversalRobots_UR10e.d.ts +0 -3
  63. package/dist/components/robots/UniversalRobots_UR10e.d.ts.map +0 -1
  64. package/dist/components/robots/UniversalRobots_UR16e.d.ts +0 -3
  65. package/dist/components/robots/UniversalRobots_UR16e.d.ts.map +0 -1
  66. package/dist/components/robots/UniversalRobots_UR3CB.d.ts +0 -3
  67. package/dist/components/robots/UniversalRobots_UR3CB.d.ts.map +0 -1
  68. package/dist/components/robots/UniversalRobots_UR3e.d.ts +0 -3
  69. package/dist/components/robots/UniversalRobots_UR3e.d.ts.map +0 -1
  70. package/dist/components/robots/UniversalRobots_UR5CB.d.ts +0 -3
  71. package/dist/components/robots/UniversalRobots_UR5CB.d.ts.map +0 -1
  72. package/dist/components/robots/UniversalRobots_UR5e.d.ts +0 -3
  73. package/dist/components/robots/UniversalRobots_UR5e.d.ts.map +0 -1
  74. package/dist/components/robots/Yaskawa_AR1440.d.ts +0 -9
  75. package/dist/components/robots/Yaskawa_AR1440.d.ts.map +0 -1
  76. package/dist/components/robots/Yaskawa_AR1730.d.ts +0 -9
  77. package/dist/components/robots/Yaskawa_AR1730.d.ts.map +0 -1
  78. package/dist/components/robots/Yaskawa_AR2010.d.ts +0 -8
  79. package/dist/components/robots/Yaskawa_AR2010.d.ts.map +0 -1
  80. package/dist/components/robots/Yaskawa_AR3120.d.ts +0 -9
  81. package/dist/components/robots/Yaskawa_AR3120.d.ts.map +0 -1
  82. package/dist/components/robots/Yaskawa_AR900.d.ts +0 -8
  83. package/dist/components/robots/Yaskawa_AR900.d.ts.map +0 -1
  84. package/dist/components/robots/Yaskawa_GP50.d.ts +0 -8
  85. package/dist/components/robots/Yaskawa_GP50.d.ts.map +0 -1
  86. package/dist/components/robots/Yaskawa_GP88.d.ts +0 -8
  87. package/dist/components/robots/Yaskawa_GP88.d.ts.map +0 -1
  88. package/src/components/robots/ABB_1200_07_7.tsx +0 -161
  89. package/src/components/robots/ABB_1300_115_10.tsx +0 -179
  90. package/src/components/robots/FANUC_ARC_Mate_100iD.tsx +0 -151
  91. package/src/components/robots/FANUC_ARC_Mate_120iD.tsx +0 -151
  92. package/src/components/robots/FANUC_CRX10iA.tsx +0 -137
  93. package/src/components/robots/FANUC_CRX10iAL.tsx +0 -205
  94. package/src/components/robots/FANUC_CRX20iAL.tsx +0 -142
  95. package/src/components/robots/FANUC_CRX25iA.tsx +0 -135
  96. package/src/components/robots/FANUC_CRX25iAL.tsx +0 -146
  97. package/src/components/robots/FANUC_LR_Mate_200iD.tsx +0 -122
  98. package/src/components/robots/FANUC_LR_Mate_200iD4S.tsx +0 -112
  99. package/src/components/robots/FANUC_LR_Mate_200iD7L.tsx +0 -157
  100. package/src/components/robots/KUKA_KR16_R2010_2.tsx +0 -149
  101. package/src/components/robots/KUKA_KR20_R1810_2.tsx +0 -205
  102. package/src/components/robots/KUKA_KR210_R2700.tsx +0 -232
  103. package/src/components/robots/KUKA_KR270_R2700.tsx +0 -194
  104. package/src/components/robots/KUKA_KR6_R700_2.tsx +0 -129
  105. package/src/components/robots/UniversalRobots_UR10CB.tsx +0 -246
  106. package/src/components/robots/UniversalRobots_UR10e.tsx +0 -273
  107. package/src/components/robots/UniversalRobots_UR16e.tsx +0 -234
  108. package/src/components/robots/UniversalRobots_UR3CB.tsx +0 -89
  109. package/src/components/robots/UniversalRobots_UR3e.tsx +0 -209
  110. package/src/components/robots/UniversalRobots_UR5CB.tsx +0 -203
  111. package/src/components/robots/UniversalRobots_UR5e.tsx +0 -219
  112. package/src/components/robots/Yaskawa_AR1440.tsx +0 -125
  113. package/src/components/robots/Yaskawa_AR1730.tsx +0 -138
  114. package/src/components/robots/Yaskawa_AR2010.tsx +0 -139
  115. package/src/components/robots/Yaskawa_AR3120.tsx +0 -133
  116. package/src/components/robots/Yaskawa_AR900.tsx +0 -148
  117. package/src/components/robots/Yaskawa_GP50.tsx +0 -196
  118. package/src/components/robots/Yaskawa_GP88.tsx +0 -169
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var zu=Object.create;var Ks=Object.defineProperty;var Wu=Object.getOwnPropertyDescriptor;var Hu=Object.getOwnPropertyNames;var Xu=Object.getPrototypeOf,qu=Object.prototype.hasOwnProperty;var Yu=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Hu(t))!qu.call(e,n)&&n!==r&&Ks(e,n,{get:()=>t[n],enumerable:!(a=Wu(t,n))||a.enumerable});return e};var Pa=(e,t,r)=>(r=e!=null?zu(Xu(e)):{},Yu(t||!e||!e.__esModule?Ks(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react"),K=require("@react-three/drei"),vt=require("three"),Zu=require("three-stdlib"),Qu=require("@react-three/fiber"),T=require("@mui/material"),Te=require("mobx-react-lite"),qt=require("react-i18next"),ec=require("i18next-browser-languagedetector"),mt=require("mobx"),h=require("prop-types"),tc=require("@emotion/styled"),fr=require("@emotion/react"),Lt=require("@wandelbots/wandelbots-js"),Wn=require("lodash-es"),b=require("@react-spring/three"),rc=require("react-error-boundary");function Ai(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const $=Ai(W),Ce=Ai(vt);function Rt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function a(){return this instanceof a?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(a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}),r}var Ka={exports:{}},Or={};/**
1
+ "use strict";var wc=Object.create;var zi=Object.defineProperty;var Tc=Object.getOwnPropertyDescriptor;var Oc=Object.getOwnPropertyNames;var Ec=Object.getPrototypeOf,Cc=Object.prototype.hasOwnProperty;var Rc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oc(t))!Cc.call(e,o)&&o!==r&&zi(e,o,{get:()=>t[o],enumerable:!(n=Tc(t,o))||n.enumerable});return e};var Co=(e,t,r)=>(r=e!=null?wc(Ec(e)):{},Rc(t||!e||!e.__esModule?zi(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),ct=require("@react-three/drei"),xt=require("three"),_c=require("three-stdlib"),Pc=require("@react-three/fiber"),k=require("@mui/material"),$e=require("mobx-react-lite"),Kt=require("react-i18next"),$c=require("i18next-browser-languagedetector"),ut=require("mobx"),p=require("prop-types"),kc=require("@emotion/styled"),dr=require("@emotion/react"),Lt=require("@wandelbots/wandelbots-js"),Wn=require("lodash-es"),Jo=require("@react-spring/three"),jc=require("react-error-boundary");function Ea(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const N=Ea(H),Re=Ea(xt);function Tt(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 Ho={exports:{}},jr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var zs;function nc(){if(zs)return Or;zs=1;var e=W,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,c){var m,f={},d=null,x=null;c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(x=u.ref);for(m in u)a.call(u,m)&&!s.hasOwnProperty(m)&&(f[m]=u[m]);if(l&&l.defaultProps)for(m in u=l.defaultProps,u)f[m]===void 0&&(f[m]=u[m]);return{$$typeof:t,type:l,key:d,ref:x,props:f,_owner:n.current}}return Or.Fragment=r,Or.jsx=i,Or.jsxs=i,Or}var Er={};/**
9
+ */var Ji;function Ac(){if(Ji)return jr;Ji=1;var e=H,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,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},f=null,v=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(v=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:v,props:d,_owner:o.current}}return jr.Fragment=r,jr.jsx=s,jr.jsxs=s,jr}var Ar={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,30 +14,30 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ws;function ac(){return Ws||(Ws=1,process.env.NODE_ENV!=="production"&&function(){var e=W,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function g(p){if(p===null||typeof p!="object")return null;var k=y&&p[y]||p[_];return typeof k=="function"?k:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(p){{for(var k=arguments.length,E=new Array(k>1?k-1:0),N=1;N<k;N++)E[N-1]=arguments[N];C("error",p,E)}}function C(p,k,E){{var N=j.ReactDebugCurrentFrame,B=N.getStackAddendum();B!==""&&(k+="%s",E=E.concat([B]));var se=E.map(function(z){return String(z)});se.unshift("Warning: "+k),Function.prototype.apply.call(console[p],console,se)}}var w=!1,S=!1,P=!1,A=!1,V=!1,te;te=Symbol.for("react.module.reference");function U(p){return!!(typeof p=="string"||typeof p=="function"||p===a||p===s||V||p===n||p===c||p===m||A||p===x||w||S||P||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===i||p.$$typeof===l||p.$$typeof===u||p.$$typeof===te||p.getModuleId!==void 0))}function F(p,k,E){var N=p.displayName;if(N)return N;var B=k.displayName||k.name||"";return B!==""?E+"("+B+")":E}function H(p){return p.displayName||"Context"}function X(p){if(p==null)return null;if(typeof p.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case a:return"Fragment";case r:return"Portal";case s:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case m:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case l:var k=p;return H(k)+".Consumer";case i:var E=p;return H(E._context)+".Provider";case u:return F(p,p.render,"ForwardRef");case f:var N=p.displayName||null;return N!==null?N:X(p.type)||"Memo";case d:{var B=p,se=B._payload,z=B._init;try{return X(z(se))}catch{return null}}}return null}var Q=Object.assign,Z=0,je,ce,re,we,Oe,nt,yt;function We(){}We.__reactDisabledLog=!0;function Se(){{if(Z===0){je=console.log,ce=console.info,re=console.warn,we=console.error,Oe=console.group,nt=console.groupCollapsed,yt=console.groupEnd;var p={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}Z++}}function At(){{if(Z--,Z===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},p,{value:je}),info:Q({},p,{value:ce}),warn:Q({},p,{value:re}),error:Q({},p,{value:we}),group:Q({},p,{value:Oe}),groupCollapsed:Q({},p,{value:nt}),groupEnd:Q({},p,{value:yt})})}Z<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var lt=j.ReactCurrentDispatcher,He;function Be(p,k,E){{if(He===void 0)try{throw Error()}catch(B){var N=B.stack.trim().match(/\n( *(at )?)/);He=N&&N[1]||""}return`
18
- `+He+p}}var ut=!1,ct;{var Ft=typeof WeakMap=="function"?WeakMap:Map;ct=new Ft}function bt(p,k){if(!p||ut)return"";{var E=ct.get(p);if(E!==void 0)return E}var N;ut=!0;var B=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var se;se=lt.current,lt.current=null,Se();try{if(k){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch($e){N=$e}Reflect.construct(p,[],z)}else{try{z.call()}catch($e){N=$e}p.call(z.prototype)}}else{try{throw Error()}catch($e){N=$e}p()}}catch($e){if($e&&N&&typeof $e.stack=="string"){for(var J=$e.stack.split(`
19
- `),Ie=N.stack.split(`
20
- `),pe=J.length-1,be=Ie.length-1;pe>=1&&be>=0&&J[pe]!==Ie[be];)be--;for(;pe>=1&&be>=0;pe--,be--)if(J[pe]!==Ie[be]){if(pe!==1||be!==1)do if(pe--,be--,be<0||J[pe]!==Ie[be]){var qe=`
21
- `+J[pe].replace(" at new "," at ");return p.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",p.displayName)),typeof p=="function"&&ct.set(p,qe),qe}while(pe>=1&&be>=0);break}}}finally{ut=!1,lt.current=se,At(),Error.prepareStackTrace=B}var ar=p?p.displayName||p.name:"",Jt=ar?Be(ar):"";return typeof p=="function"&&ct.set(p,Jt),Jt}function Je(p,k,E){return bt(p,!1)}function O(p){var k=p.prototype;return!!(k&&k.isReactComponent)}function ne(p,k,E){if(p==null)return"";if(typeof p=="function")return bt(p,O(p));if(typeof p=="string")return Be(p);switch(p){case c:return Be("Suspense");case m:return Be("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case u:return Je(p.render);case f:return ne(p.type,k,E);case d:{var N=p,B=N._payload,se=N._init;try{return ne(se(B),k,E)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,Ee={},Le=j.ReactDebugCurrentFrame;function Ct(p){if(p){var k=p._owner,E=ne(p.type,p._source,k?k.type:null);Le.setExtraStackFrame(E)}else Le.setExtraStackFrame(null)}function Re(p,k,E,N,B){{var se=Function.call.bind(fe);for(var z in p)if(se(p,z)){var J=void 0;try{if(typeof p[z]!="function"){var Ie=Error((N||"React class")+": "+E+" type `"+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}J=p[z](k,z,N,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pe){J=pe}J&&!(J instanceof Error)&&(Ct(B),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",N||"React class",E,z,typeof J),Ct(null)),J instanceof Error&&!(J.message in Ee)&&(Ee[J.message]=!0,Ct(B),R("Failed %s type: %s",E,J.message),Ct(null))}}}var Mt=Array.isArray;function Dt(p){return Mt(p)}function wr(p){{var k=typeof Symbol=="function"&&Symbol.toStringTag,E=k&&p[Symbol.toStringTag]||p.constructor.name||"Object";return E}}function Pr(p){try{return kr(p),!1}catch{return!0}}function kr(p){return""+p}function er(p){if(Pr(p))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wr(p)),kr(p)}var at=j.ReactCurrentOwner,I={key:!0,ref:!0,__self:!0,__source:!0},L,D,q;q={};function ee(p){if(fe.call(p,"ref")){var k=Object.getOwnPropertyDescriptor(p,"ref").get;if(k&&k.isReactWarning)return!1}return p.ref!==void 0}function Y(p){if(fe.call(p,"key")){var k=Object.getOwnPropertyDescriptor(p,"key").get;if(k&&k.isReactWarning)return!1}return p.key!==void 0}function Ve(p,k){if(typeof p.ref=="string"&&at.current&&k&&at.current.stateNode!==k){var E=X(at.current.type);q[E]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',X(at.current.type),p.ref),q[E]=!0)}}function Xe(p,k){{var E=function(){L||(L=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};E.isReactWarning=!0,Object.defineProperty(p,"key",{get:E,configurable:!0})}}function ae(p,k){{var E=function(){D||(D=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};E.isReactWarning=!0,Object.defineProperty(p,"ref",{get:E,configurable:!0})}}var Ne=function(p,k,E,N,B,se,z){var J={$$typeof:t,type:p,key:k,ref:E,props:z,_owner:se};return J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(J,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(J,"_source",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J};function It(p,k,E,N,B){{var se,z={},J=null,Ie=null;E!==void 0&&(er(E),J=""+E),Y(k)&&(er(k.key),J=""+k.key),ee(k)&&(Ie=k.ref,Ve(k,B));for(se in k)fe.call(k,se)&&!I.hasOwnProperty(se)&&(z[se]=k[se]);if(p&&p.defaultProps){var pe=p.defaultProps;for(se in pe)z[se]===void 0&&(z[se]=pe[se])}if(J||Ie){var be=typeof p=="function"?p.displayName||p.name||"Unknown":p;J&&Xe(z,be),Ie&&ae(z,be)}return Ne(p,J,Ie,B,N,at.current,z)}}var tr=j.ReactCurrentOwner,Ar=j.ReactDebugCurrentFrame;function xt(p){if(p){var k=p._owner,E=ne(p.type,p._source,k?k.type:null);Ar.setExtraStackFrame(E)}else Ar.setExtraStackFrame(null)}var Ut;Ut=!1;function Bt(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function Cr(){{if(tr.current){var p=X(tr.current.type);if(p)return`
17
+ */var Hi;function Lc(){return Hi||(Hi=1,process.env.NODE_ENV!=="production"&&function(){var e=H,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function h(g){if(g===null||typeof g!="object")return null;var C=m&&g[m]||g[y];return typeof C=="function"?C:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(g){{for(var C=arguments.length,A=new Array(C>1?C-1:0),I=1;I<C;I++)A[I-1]=arguments[I];_("error",g,A)}}function _(g,C,A){{var I=S.ReactDebugCurrentFrame,V=I.getStackAddendum();V!==""&&(C+="%s",A=A.concat([V]));var ne=A.map(function(J){return String(J)});ne.unshift("Warning: "+C),Function.prototype.apply.call(console[g],console,ne)}}var O=!1,w=!1,E=!1,R=!1,U=!1,Q;Q=Symbol.for("react.module.reference");function F(g){return!!(typeof g=="string"||typeof g=="function"||g===n||g===i||U||g===o||g===c||g===u||R||g===v||O||w||E||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===s||g.$$typeof===a||g.$$typeof===l||g.$$typeof===Q||g.getModuleId!==void 0))}function M(g,C,A){var I=g.displayName;if(I)return I;var V=C.displayName||C.name||"";return V!==""?A+"("+V+")":A}function W(g){return g.displayName||"Context"}function G(g){if(g==null)return null;if(typeof g.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case a:var C=g;return W(C)+".Consumer";case s:var A=g;return W(A._context)+".Provider";case l:return M(g,g.render,"ForwardRef");case d:var I=g.displayName||null;return I!==null?I:G(g.type)||"Memo";case f:{var V=g,ne=V._payload,J=V._init;try{return G(J(ne))}catch{return null}}}return null}var X=Object.assign,Y=0,xe,le,ee,Te,ke,tt,yt;function He(){}He.__reactDisabledLog=!0;function Se(){{if(Y===0){xe=console.log,le=console.info,ee=console.warn,Te=console.error,ke=console.group,tt=console.groupCollapsed,yt=console.groupEnd;var g={configurable:!0,enumerable:!0,value:He,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Y++}}function Rt(){{if(Y--,Y===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},g,{value:xe}),info:X({},g,{value:le}),warn:X({},g,{value:ee}),error:X({},g,{value:Te}),group:X({},g,{value:ke}),groupCollapsed:X({},g,{value:tt}),groupEnd:X({},g,{value:yt})})}Y<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var st=S.ReactCurrentDispatcher,We;function Fe(g,C,A){{if(We===void 0)try{throw Error()}catch(V){var I=V.stack.trim().match(/\n( *(at )?)/);We=I&&I[1]||""}return`
18
+ `+We+g}}var at=!1,lt;{var Mt=typeof WeakMap=="function"?WeakMap:Map;lt=new Mt}function bt(g,C){if(!g||at)return"";{var A=lt.get(g);if(A!==void 0)return A}var I;at=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ne;ne=st.current,st.current=null,Se();try{if(C){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(Ie){I=Ie}Reflect.construct(g,[],J)}else{try{J.call()}catch(Ie){I=Ie}g.call(J.prototype)}}else{try{throw Error()}catch(Ie){I=Ie}g()}}catch(Ie){if(Ie&&I&&typeof Ie.stack=="string"){for(var B=Ie.stack.split(`
19
+ `),Pe=I.stack.split(`
20
+ `),ge=B.length-1,ye=Pe.length-1;ge>=1&&ye>=0&&B[ge]!==Pe[ye];)ye--;for(;ge>=1&&ye>=0;ge--,ye--)if(B[ge]!==Pe[ye]){if(ge!==1||ye!==1)do if(ge--,ye--,ye<0||B[ge]!==Pe[ye]){var qe=`
21
+ `+B[ge].replace(" at new "," at ");return g.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",g.displayName)),typeof g=="function"&&lt.set(g,qe),qe}while(ge>=1&&ye>=0);break}}}finally{at=!1,st.current=ne,Rt(),Error.prepareStackTrace=V}var nr=g?g.displayName||g.name:"",Bt=nr?Fe(nr):"";return typeof g=="function"&&lt.set(g,Bt),Bt}function Ve(g,C,A){return bt(g,!1)}function j(g){var C=g.prototype;return!!(C&&C.isReactComponent)}function te(g,C,A){if(g==null)return"";if(typeof g=="function")return bt(g,j(g));if(typeof g=="string")return Fe(g);switch(g){case c:return Fe("Suspense");case u:return Fe("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case l:return Ve(g.render);case d:return te(g.type,C,A);case f:{var I=g,V=I._payload,ne=I._init;try{return te(ne(V),C,A)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,je={},Ae=S.ReactDebugCurrentFrame;function _t(g){if(g){var C=g._owner,A=te(g.type,g._source,C?C.type:null);Ae.setExtraStackFrame(A)}else Ae.setExtraStackFrame(null)}function we(g,C,A,I,V){{var ne=Function.call.bind(fe);for(var J in g)if(ne(g,J)){var B=void 0;try{if(typeof g[J]!="function"){var Pe=Error((I||"React class")+": "+A+" type `"+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[J]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}B=g[J](C,J,I,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){B=ge}B&&!(B instanceof Error)&&(_t(V),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",A,J,typeof B),_t(null)),B instanceof Error&&!(B.message in je)&&(je[B.message]=!0,_t(V),T("Failed %s type: %s",A,B.message),_t(null))}}}var Pt=Array.isArray;function Dt(g){return Pt(g)}function Or(g){{var C=typeof Symbol=="function"&&Symbol.toStringTag,A=C&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function Er(g){try{return Cr(g),!1}catch{return!0}}function Cr(g){return""+g}function Qt(g){if(Er(g))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Or(g)),Cr(g)}var rt=S.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0},L,D,q;q={};function Z(g){if(fe.call(g,"ref")){var C=Object.getOwnPropertyDescriptor(g,"ref").get;if(C&&C.isReactWarning)return!1}return g.ref!==void 0}function K(g){if(fe.call(g,"key")){var C=Object.getOwnPropertyDescriptor(g,"key").get;if(C&&C.isReactWarning)return!1}return g.key!==void 0}function Be(g,C){if(typeof g.ref=="string"&&rt.current&&C&&rt.current.stateNode!==C){var A=G(rt.current.type);q[A]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(rt.current.type),g.ref),q[A]=!0)}}function Ge(g,C){{var A=function(){L||(L=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",C))};A.isReactWarning=!0,Object.defineProperty(g,"key",{get:A,configurable:!0})}}function re(g,C){{var A=function(){D||(D=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",C))};A.isReactWarning=!0,Object.defineProperty(g,"ref",{get:A,configurable:!0})}}var Le=function(g,C,A,I,V,ne,J){var B={$$typeof:t,type:g,key:C,ref:A,props:J,_owner:ne};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function $t(g,C,A,I,V){{var ne,J={},B=null,Pe=null;A!==void 0&&(Qt(A),B=""+A),K(C)&&(Qt(C.key),B=""+C.key),Z(C)&&(Pe=C.ref,Be(C,V));for(ne in C)fe.call(C,ne)&&!$.hasOwnProperty(ne)&&(J[ne]=C[ne]);if(g&&g.defaultProps){var ge=g.defaultProps;for(ne in ge)J[ne]===void 0&&(J[ne]=ge[ne])}if(B||Pe){var ye=typeof g=="function"?g.displayName||g.name||"Unknown":g;B&&Ge(J,ye),Pe&&re(J,ye)}return Le(g,B,Pe,V,I,rt.current,J)}}var er=S.ReactCurrentOwner,Rr=S.ReactDebugCurrentFrame;function vt(g){if(g){var C=g._owner,A=te(g.type,g._source,C?C.type:null);Rr.setExtraStackFrame(A)}else Rr.setExtraStackFrame(null)}var Ft;Ft=!1;function Vt(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function _r(){{if(er.current){var g=G(er.current.type);if(g)return`
22
22
 
23
- Check the render method of \``+p+"`."}return""}}function Mr(p){return""}var un={};function Ir(p){{var k=Cr();if(!k){var E=typeof p=="string"?p:p.displayName||p.name;E&&(k=`
23
+ Check the render method of \``+g+"`."}return""}}function Pr(g){return""}var ln={};function $r(g){{var C=_r();if(!C){var A=typeof g=="string"?g:g.displayName||g.name;A&&(C=`
24
24
 
25
- Check the top-level render call using <`+E+">.")}return k}}function rr(p,k){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var E=Ir(k);if(un[E])return;un[E]=!0;var N="";p&&p._owner&&p._owner!==tr.current&&(N=" It was passed a child from "+X(p._owner.type)+"."),xt(p),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,N),xt(null)}}function nr(p,k){{if(typeof p!="object")return;if(Dt(p))for(var E=0;E<p.length;E++){var N=p[E];Bt(N)&&rr(N,k)}else if(Bt(p))p._store&&(p._store.validated=!0);else if(p){var B=g(p);if(typeof B=="function"&&B!==p.entries)for(var se=B.call(p),z;!(z=se.next()).done;)Bt(z.value)&&rr(z.value,k)}}}function xa(p){{var k=p.type;if(k==null||typeof k=="string")return;var E;if(typeof k=="function")E=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===u||k.$$typeof===f))E=k.propTypes;else return;if(E){var N=X(k);Re(E,p.props,"prop",N,p)}else if(k.PropTypes!==void 0&&!Ut){Ut=!0;var B=X(k);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function va(p){{for(var k=Object.keys(p.props),E=0;E<k.length;E++){var N=k[E];if(N!=="children"&&N!=="key"){xt(p),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),xt(null);break}}p.ref!==null&&(xt(p),R("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}var cn={};function mn(p,k,E,N,B,se){{var z=U(p);if(!z){var J="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(J+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=Mr();Ie?J+=Ie:J+=Cr();var pe;p===null?pe="null":Dt(p)?pe="array":p!==void 0&&p.$$typeof===t?(pe="<"+(X(p.type)||"Unknown")+" />",J=" Did you accidentally export a JSX literal instead of a component?"):pe=typeof p,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pe,J)}var be=It(p,k,E,B,se);if(be==null)return be;if(z){var qe=k.children;if(qe!==void 0)if(N)if(Dt(qe)){for(var ar=0;ar<qe.length;ar++)nr(qe[ar],p);Object.freeze&&Object.freeze(qe)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else nr(qe,p)}if(fe.call(k,"key")){var Jt=X(p),$e=Object.keys(k).filter(function(Ku){return Ku!=="key"}),wa=$e.length>0?"{key: someKey, "+$e.join(": ..., ")+": ...}":"{key: someKey}";if(!cn[Jt+wa]){var Gu=$e.length>0?"{"+$e.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+A+">.")}return C}}function tr(g,C){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var A=$r(C);if(ln[A])return;ln[A]=!0;var I="";g&&g._owner&&g._owner!==er.current&&(I=" It was passed a child from "+G(g._owner.type)+"."),vt(g),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,I),vt(null)}}function rr(g,C){{if(typeof g!="object")return;if(Dt(g))for(var A=0;A<g.length;A++){var I=g[A];Vt(I)&&tr(I,C)}else if(Vt(g))g._store&&(g._store.validated=!0);else if(g){var V=h(g);if(typeof V=="function"&&V!==g.entries)for(var ne=V.call(g),J;!(J=ne.next()).done;)Vt(J.value)&&tr(J.value,C)}}}function xo(g){{var C=g.type;if(C==null||typeof C=="string")return;var A;if(typeof C=="function")A=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===l||C.$$typeof===d))A=C.propTypes;else return;if(A){var I=G(C);we(A,g.props,"prop",I,g)}else if(C.PropTypes!==void 0&&!Ft){Ft=!0;var V=G(C);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function So(g){{for(var C=Object.keys(g.props),A=0;A<C.length;A++){var I=C[A];if(I!=="children"&&I!=="key"){vt(g),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),vt(null);break}}g.ref!==null&&(vt(g),T("Invalid attribute `ref` supplied to `React.Fragment`."),vt(null))}}var cn={};function un(g,C,A,I,V,ne){{var J=F(g);if(!J){var B="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Pe=Pr();Pe?B+=Pe:B+=_r();var ge;g===null?ge="null":Dt(g)?ge="array":g!==void 0&&g.$$typeof===t?(ge="<"+(G(g.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof g,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,B)}var ye=$t(g,C,A,V,ne);if(ye==null)return ye;if(J){var qe=C.children;if(qe!==void 0)if(I)if(Dt(qe)){for(var nr=0;nr<qe.length;nr++)rr(qe[nr],g);Object.freeze&&Object.freeze(qe)}else T("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 rr(qe,g)}if(fe.call(C,"key")){var Bt=G(g),Ie=Object.keys(C).filter(function(Sc){return Sc!=="key"}),Eo=Ie.length>0?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}";if(!cn[Bt+Eo]){var xc=Ie.length>0?"{"+Ie.join(": ..., ")+": ...}":"{}";T(`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} />`,wa,Jt,Gu,Jt),cn[Jt+wa]=!0}}return p===a?va(be):xa(be),be}}function ja(p,k,E){return mn(p,k,E,!0)}function Sa(p,k,E){return mn(p,k,E,!1)}var Tr=Sa,Ra=ja;Er.Fragment=a,Er.jsx=Tr,Er.jsxs=Ra}()),Er}process.env.NODE_ENV==="production"?Ka.exports=nc():Ka.exports=ac();var o=Ka.exports;function sc(){return o.jsx(K.Environment,{children:o.jsx(oc,{})})}function oc({positions:e=[2,0,2,0,2,0,2,0]}){return o.jsxs(o.Fragment,{children:[o.jsx(K.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),o.jsx("group",{rotation:[0,.5,0],children:o.jsx("group",{children:e.map((t,r)=>o.jsx(K.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),o.jsx(K.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),o.jsx(K.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),o.jsx(K.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),o.jsx(K.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),o.jsx(K.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function ic(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ce.Vector3(e[0].x,e[0].y,e[0].z),r=new Ce.Vector3(e[1].x,e[1].y,e[1].z),a=new Ce.Vector3(e[2].x,e[2].y,e[2].z),n=new Ce.Vector3().subVectors(r,t),s=new Ce.Vector3().subVectors(a,t),i=new Ce.Vector3().crossVectors(n,s).normalize();for(let l=3;l<e.length;l++){const u=new Ce.Vector3(e[l].x,e[l].y,e[l].z),c=new Ce.Vector3().subVectors(u,t),m=i.dot(c);if(Math.abs(m)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function lc({safetyZones:e,...t}){return o.jsx("group",{...t,children:e.map((r,a)=>{let n=[];return r.geometry&&(r.geometry.compound?n=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(n=[r.geometry])),n.map((s,i)=>{if(!s.convex_hull)return null;const l=s.convex_hull.vertices.map(m=>new Ce.Vector3(m.x/1e3,m.y/1e3,m.z/1e3)),u=ic(l);if(u.isCoplanar&&u.normal){const f=new Ce.Vector3().addVectors(l[0],u.normal.multiplyScalar(1e-4));l.push(f)}let c;try{c=new Zu.ConvexGeometry(l)}catch(m){return console.log("Error creating ConvexGeometry:",m),null}return o.jsx(o.Fragment,{children:o.jsx("mesh",{geometry:c,children:o.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},a)},`${a}-${i}`)})})})})}function Gr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const uc=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"}));var cc=!1;function mc(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 dc(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 fc=function(){function e(r){var a=this;this._insertTag=function(n){var s;a.tags.length===0?a.insertionPoint?s=a.insertionPoint.nextSibling:a.prepend?s=a.container.firstChild:s=a.before:s=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,s),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?!cc: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(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(dc(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var s=mc(n);try{s.insertRule(a,s.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var n;return(n=a.parentNode)==null?void 0:n.removeChild(a)}),this.tags=[],this.ctr=0},e}(),Ae="-ms-",On="-moz-",oe="-webkit-",Ci="comm",_s="rule",ys="decl",hc="@import",Mi="@keyframes",gc="@layer",pc=Math.abs,Hn=String.fromCharCode,_c=Object.assign;function yc(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function Ii(e){return e.trim()}function bc(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function za(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Kr(e,t,r){return e.slice(t,r)}function dt(e){return e.length}function bs(e){return e.length}function dn(e,t){return t.push(e),e}function xc(e,t){return e.map(t).join("")}var Xn=1,yr=1,Ti=0,De=0,xe=0,br="";function qn(e,t,r,a,n,s,i){return{value:e,root:t,parent:r,type:a,props:n,children:s,line:Xn,column:yr,length:i,return:""}}function Lr(e,t){return _c(qn("",null,null,"",null,null,0),e,{length:-e.length},t)}function vc(){return xe}function jc(){return xe=De>0?Pe(br,--De):0,yr--,xe===10&&(yr=1,Xn--),xe}function Ke(){return xe=De<Ti?Pe(br,De++):0,yr++,xe===10&&(yr=1,Xn++),xe}function ht(){return Pe(br,De)}function Sn(){return De}function Zr(e,t){return Kr(br,e,t)}function zr(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 Oi(e){return Xn=yr=1,Ti=dt(br=e),De=0,[]}function Ei(e){return br="",e}function Rn(e){return Ii(Zr(De-1,Wa(e===91?e+2:e===40?e+1:e)))}function Sc(e){for(;(xe=ht())&&xe<33;)Ke();return zr(e)>2||zr(xe)>3?"":" "}function Rc(e,t){for(;--t&&Ke()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Zr(e,Sn()+(t<6&&ht()==32&&Ke()==32))}function Wa(e){for(;Ke();)switch(xe){case e:return De;case 34:case 39:e!==34&&e!==39&&Wa(xe);break;case 40:e===41&&Wa(e);break;case 92:Ke();break}return De}function wc(e,t){for(;Ke()&&e+xe!==57;)if(e+xe===84&&ht()===47)break;return"/*"+Zr(t,De-1)+"*"+Hn(e===47?e:Ke())}function Pc(e){for(;!zr(ht());)Ke();return Zr(e,De)}function kc(e){return Ei(wn("",null,null,null,[""],e=Oi(e),0,[0],e))}function wn(e,t,r,a,n,s,i,l,u){for(var c=0,m=0,f=i,d=0,x=0,y=0,_=1,g=1,j=1,R=0,C="",w=n,S=s,P=a,A=C;g;)switch(y=R,R=Ke()){case 40:if(y!=108&&Pe(A,f-1)==58){za(A+=ie(Rn(R),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:A+=Rn(R);break;case 9:case 10:case 13:case 32:A+=Sc(y);break;case 92:A+=Rc(Sn()-1,7);continue;case 47:switch(ht()){case 42:case 47:dn(Ac(wc(Ke(),Sn()),t,r),u);break;default:A+="/"}break;case 123*_:l[c++]=dt(A)*j;case 125*_:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+m:j==-1&&(A=ie(A,/\f/g,"")),x>0&&dt(A)-f&&dn(x>32?Xs(A+";",a,r,f-1):Xs(ie(A," ","")+";",a,r,f-2),u);break;case 59:A+=";";default:if(dn(P=Hs(A,t,r,c,m,n,l,C,w=[],S=[],f),s),R===123)if(m===0)wn(A,t,P,P,w,s,f,l,S);else switch(d===99&&Pe(A,3)===110?100:d){case 100:case 108:case 109:case 115:wn(e,P,P,a&&dn(Hs(e,P,P,0,0,n,l,C,n,w=[],f),S),n,S,f,l,a?w:S);break;default:wn(A,P,P,P,[""],S,0,l,S)}}c=m=x=0,_=j=1,C=A="",f=i;break;case 58:f=1+dt(A),x=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&jc()==125)continue}switch(A+=Hn(R),R*_){case 38:j=m>0?1:(A+="\f",-1);break;case 44:l[c++]=(dt(A)-1)*j,j=1;break;case 64:ht()===45&&(A+=Rn(Ke())),d=ht(),m=f=dt(C=A+=Pc(Sn())),R++;break;case 45:y===45&&dt(A)==2&&(_=0)}}return s}function Hs(e,t,r,a,n,s,i,l,u,c,m){for(var f=n-1,d=n===0?s:[""],x=bs(d),y=0,_=0,g=0;y<a;++y)for(var j=0,R=Kr(e,f+1,f=pc(_=i[y])),C=e;j<x;++j)(C=Ii(_>0?d[j]+" "+R:ie(R,/&\f/g,d[j])))&&(u[g++]=C);return qn(e,t,r,n===0?_s:l,u,c,m)}function Ac(e,t,r){return qn(e,t,r,Ci,Hn(vc()),Kr(e,2,-2),0)}function Xs(e,t,r,a){return qn(e,t,r,ys,Kr(e,0,a),Kr(e,a+1,-1),a)}function hr(e,t){for(var r="",a=bs(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Cc(e,t,r,a){switch(e.type){case gc:if(e.children.length)break;case hc:case ys:return e.return=e.return||e.value;case Ci:return"";case Mi:return e.return=e.value+"{"+hr(e.children,a)+"}";case _s:e.value=e.props.join(",")}return dt(r=hr(e.children,a))?e.return=e.value+"{"+r+"}":""}function Mc(e){var t=bs(e);return function(r,a,n,s){for(var i="",l=0;l<t;l++)i+=e[l](r,a,n,s)||"";return i}}function Ic(e){return function(t){t.root||(t=t.return)&&e(t)}}var Tc=function(t,r,a){for(var n=0,s=0;n=s,s=ht(),n===38&&s===12&&(r[a]=1),!zr(s);)Ke();return Zr(t,De)},Oc=function(t,r){var a=-1,n=44;do switch(zr(n)){case 0:n===38&&ht()===12&&(r[a]=1),t[a]+=Tc(De-1,r,a);break;case 2:t[a]+=Rn(n);break;case 4:if(n===44){t[++a]=ht()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Hn(n)}while(n=Ke());return t},Ec=function(t,r){return Ei(Oc(Oi(t),r))},qs=new WeakMap,Lc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!qs.get(a))&&!n){qs.set(t,!0);for(var s=[],i=Ec(r,s),l=a.props,u=0,c=0;u<i.length;u++)for(var m=0;m<l.length;m++,c++)t.props[c]=s[u]?i[u].replace(/&\f/g,l[m]):l[m]+" "+i[u]}}},Nc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Li(e,t){switch(yc(e,t)){case 5103:return oe+"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 oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oe+e+On+e+Ae+e+e;case 6828:case 4268:return oe+e+Ae+e+e;case 6165:return oe+e+Ae+"flex-"+e+e;case 5187:return oe+e+ie(e,/(\w+).+(:[^]+)/,oe+"box-$1$2"+Ae+"flex-$1$2")+e;case 5443:return oe+e+Ae+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return oe+e+Ae+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return oe+e+Ae+ie(e,"shrink","negative")+e;case 5292:return oe+e+Ae+ie(e,"basis","preferred-size")+e;case 6060:return oe+"box-"+ie(e,"-grow","")+oe+e+Ae+ie(e,"grow","positive")+e;case 4554:return oe+ie(e,/([^-])(transform)/g,"$1"+oe+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,oe+"$1"),/(image-set)/,oe+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,oe+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,oe+"box-pack:$3"+Ae+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+oe+e+e;case 4095:case 3583:case 4068:case 2532:return ie(e,/(.+)-inline(.+)/,oe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+On+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~za(e,"stretch")?Li(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,dt(e)-3-(~za(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Pe(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Ae+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return oe+e+Ae+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Ae+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Ae+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Ae+e+e}return e}var $c=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case ys:t.return=Li(t.value,t.length);break;case Mi:return hr([Lr(t,{value:ie(t.value,"@","@"+oe)})],n);case _s:if(t.length)return xc(t.props,function(s){switch(bc(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hr([Lr(t,{props:[ie(s,/:(read-\w+)/,":"+On+"$1")]})],n);case"::placeholder":return hr([Lr(t,{props:[ie(s,/:(plac\w+)/,":"+oe+"input-$1")]}),Lr(t,{props:[ie(s,/:(plac\w+)/,":"+On+"$1")]}),Lr(t,{props:[ie(s,/:(plac\w+)/,Ae+"input-$1")]})],n)}return""})}},Fc=[$c],Dc=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(_){var g=_.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var n=t.stylisPlugins||Fc,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var g=_.getAttribute("data-emotion").split(" "),j=1;j<g.length;j++)s[g[j]]=!0;l.push(_)});var u,c=[Lc,Nc];{var m,f=[Cc,Ic(function(_){m.insert(_)})],d=Mc(c.concat(n,f)),x=function(g){return hr(kc(g),d)};u=function(g,j,R,C){m=R,x(g?g+"{"+j.styles+"}":j.styles),C&&(y.inserted[j.name]=!0)}}var y={key:r,sheet:new fc({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return y.sheet.hydrate(l),y};let Ha;typeof document=="object"&&(Ha=Dc({key:"css",prepend:!0}));function Ni(e){const{injectFirst:t,children:r}=e;return t&&Ha?o.jsx(fr.CacheProvider,{value:Ha,children:r}):r}process.env.NODE_ENV!=="production"&&(Ni.propTypes={children:h.node,injectFirst:h.bool});function Uc(e){return e==null||Object.keys(e).length===0}function $i(e){const{styles:t,defaultTheme:r={}}=e,a=typeof t=="function"?n=>t(Uc(n)?r:n):t;return o.jsx(fr.Global,{styles:a})}process.env.NODE_ENV!=="production"&&($i.propTypes={defaultTheme:h.object,styles:h.oneOfType([h.array,h.string,h.object,h.func])});/**
30
+ <%s key={someKey} {...props} />`,Eo,Bt,xc,Bt),cn[Bt+Eo]=!0}}return g===n?So(ye):xo(ye),ye}}function wo(g,C,A){return un(g,C,A,!0)}function To(g,C,A){return un(g,C,A,!1)}var kr=To,Oo=wo;Ar.Fragment=n,Ar.jsx=kr,Ar.jsxs=Oo}()),Ar}process.env.NODE_ENV==="production"?Ho.exports=Ac():Ho.exports=Lc();var b=Ho.exports;function Ic(){return b.jsx(ct.Environment,{children:b.jsx(Nc,{})})}function Nc({positions:e=[2,0,2,0,2,0,2,0]}){return b.jsxs(b.Fragment,{children:[b.jsx(ct.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),b.jsx("group",{rotation:[0,.5,0],children:b.jsx("group",{children:e.map((t,r)=>b.jsx(ct.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),b.jsx(ct.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),b.jsx(ct.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),b.jsx(ct.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),b.jsx(ct.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),b.jsx(ct.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Mc(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Re.Vector3(e[0].x,e[0].y,e[0].z),r=new Re.Vector3(e[1].x,e[1].y,e[1].z),n=new Re.Vector3(e[2].x,e[2].y,e[2].z),o=new Re.Vector3().subVectors(r,t),i=new Re.Vector3().subVectors(n,t),s=new Re.Vector3().crossVectors(o,i).normalize();for(let a=3;a<e.length;a++){const l=new Re.Vector3(e[a].x,e[a].y,e[a].z),c=new Re.Vector3().subVectors(l,t),u=s.dot(c);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:s}}function Dc({safetyZones:e,...t}){return b.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((i,s)=>{if(!i.convex_hull)return null;const a=i.convex_hull.vertices.map(u=>new Re.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=Mc(a);if(l.isCoplanar&&l.normal){const d=new Re.Vector3().addVectors(a[0],l.normal.multiplyScalar(1e-4));a.push(d)}let c;try{c=new _c.ConvexGeometry(a)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return b.jsx(b.Fragment,{children:b.jsx("mesh",{geometry:c,children:b.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-s},n)},`${n}-${s}`)})})})})}function zr(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 Fc=Object.freeze(Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"}));var Vc=!1;function Bc(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 Uc(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 zc=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Vc: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(Uc(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Bc(o);try{i.insertRule(n,i.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}(),Ce="-ms-",jn="-moz-",oe="-webkit-",Ca="comm",hi="rule",mi="decl",Jc="@import",Ra="@keyframes",Hc="@layer",Wc=Math.abs,Gn=String.fromCharCode,Gc=Object.assign;function qc(e,t){return Oe(e,0)^45?(((t<<2^Oe(e,0))<<2^Oe(e,1))<<2^Oe(e,2))<<2^Oe(e,3):0}function _a(e){return e.trim()}function Kc(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function Wo(e,t){return e.indexOf(t)}function Oe(e,t){return e.charCodeAt(t)|0}function Jr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function yi(e){return e.length}function fn(e,t){return t.push(e),e}function Yc(e,t){return e.map(t).join("")}var qn=1,yr=1,Pa=0,Me=0,be=0,br="";function Kn(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:qn,column:yr,length:s,return:""}}function Lr(e,t){return Gc(Kn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xc(){return be}function Zc(){return be=Me>0?Oe(br,--Me):0,yr--,be===10&&(yr=1,qn--),be}function ze(){return be=Me<Pa?Oe(br,Me++):0,yr++,be===10&&(yr=1,qn++),be}function pt(){return Oe(br,Me)}function wn(){return Me}function Xr(e,t){return Jr(br,e,t)}function Hr(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 $a(e){return qn=yr=1,Pa=ft(br=e),Me=0,[]}function ka(e){return br="",e}function Tn(e){return _a(Xr(Me-1,Go(e===91?e+2:e===40?e+1:e)))}function Qc(e){for(;(be=pt())&&be<33;)ze();return Hr(e)>2||Hr(be)>3?"":" "}function eu(e,t){for(;--t&&ze()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Xr(e,wn()+(t<6&&pt()==32&&ze()==32))}function Go(e){for(;ze();)switch(be){case e:return Me;case 34:case 39:e!==34&&e!==39&&Go(be);break;case 40:e===41&&Go(e);break;case 92:ze();break}return Me}function tu(e,t){for(;ze()&&e+be!==57;)if(e+be===84&&pt()===47)break;return"/*"+Xr(t,Me-1)+"*"+Gn(e===47?e:ze())}function ru(e){for(;!Hr(pt());)ze();return Xr(e,Me)}function nu(e){return ka(On("",null,null,null,[""],e=$a(e),0,[0],e))}function On(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,v=0,m=0,y=1,h=1,S=1,T=0,_="",O=o,w=i,E=n,R=_;h;)switch(m=T,T=ze()){case 40:if(m!=108&&Oe(R,d-1)==58){Wo(R+=ie(Tn(T),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=Tn(T);break;case 9:case 10:case 13:case 32:R+=Qc(m);break;case 92:R+=eu(wn()-1,7);continue;case 47:switch(pt()){case 42:case 47:fn(ou(tu(ze(),wn()),t,r),l);break;default:R+="/"}break;case 123*y:a[c++]=ft(R)*S;case 125*y:case 59:case 0:switch(T){case 0:case 125:h=0;case 59+u:S==-1&&(R=ie(R,/\f/g,"")),v>0&&ft(R)-d&&fn(v>32?Gi(R+";",n,r,d-1):Gi(ie(R," ","")+";",n,r,d-2),l);break;case 59:R+=";";default:if(fn(E=Wi(R,t,r,c,u,o,a,_,O=[],w=[],d),i),T===123)if(u===0)On(R,t,E,E,O,i,d,a,w);else switch(f===99&&Oe(R,3)===110?100:f){case 100:case 108:case 109:case 115:On(e,E,E,n&&fn(Wi(e,E,E,0,0,o,a,_,o,O=[],d),w),o,w,d,a,n?O:w);break;default:On(R,E,E,E,[""],w,0,a,w)}}c=u=v=0,y=S=1,_=R="",d=s;break;case 58:d=1+ft(R),v=m;default:if(y<1){if(T==123)--y;else if(T==125&&y++==0&&Zc()==125)continue}switch(R+=Gn(T),T*y){case 38:S=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(ft(R)-1)*S,S=1;break;case 64:pt()===45&&(R+=Tn(ze())),f=pt(),u=d=ft(_=R+=ru(wn())),T++;break;case 45:m===45&&ft(R)==2&&(y=0)}}return i}function Wi(e,t,r,n,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],v=yi(f),m=0,y=0,h=0;m<n;++m)for(var S=0,T=Jr(e,d+1,d=Wc(y=s[m])),_=e;S<v;++S)(_=_a(y>0?f[S]+" "+T:ie(T,/&\f/g,f[S])))&&(l[h++]=_);return Kn(e,t,r,o===0?hi:a,l,c,u)}function ou(e,t,r){return Kn(e,t,r,Ca,Gn(Xc()),Jr(e,2,-2),0)}function Gi(e,t,r,n){return Kn(e,t,r,mi,Jr(e,0,n),Jr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=yi(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function iu(e,t,r,n){switch(e.type){case Hc:if(e.children.length)break;case Jc:case mi:return e.return=e.return||e.value;case Ca:return"";case Ra:return e.return=e.value+"{"+pr(e.children,n)+"}";case hi:e.value=e.props.join(",")}return ft(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function su(e){var t=yi(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function au(e){return function(t){t.root||(t=t.return)&&e(t)}}var lu=function(t,r,n){for(var o=0,i=0;o=i,i=pt(),o===38&&i===12&&(r[n]=1),!Hr(i);)ze();return Xr(t,Me)},cu=function(t,r){var n=-1,o=44;do switch(Hr(o)){case 0:o===38&&pt()===12&&(r[n]=1),t[n]+=lu(Me-1,r,n);break;case 2:t[n]+=Tn(o);break;case 4:if(o===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Gn(o)}while(o=ze());return t},uu=function(t,r){return ka(cu($a(t),r))},qi=new WeakMap,fu=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&&!qi.get(n))&&!o){qi.set(t,!0);for(var i=[],s=uu(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},du=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ja(e,t){switch(qc(e,t)){case 5103:return oe+"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 oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oe+e+jn+e+Ce+e+e;case 6828:case 4268:return oe+e+Ce+e+e;case 6165:return oe+e+Ce+"flex-"+e+e;case 5187:return oe+e+ie(e,/(\w+).+(:[^]+)/,oe+"box-$1$2"+Ce+"flex-$1$2")+e;case 5443:return oe+e+Ce+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return oe+e+Ce+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return oe+e+Ce+ie(e,"shrink","negative")+e;case 5292:return oe+e+Ce+ie(e,"basis","preferred-size")+e;case 6060:return oe+"box-"+ie(e,"-grow","")+oe+e+Ce+ie(e,"grow","positive")+e;case 4554:return oe+ie(e,/([^-])(transform)/g,"$1"+oe+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,oe+"$1"),/(image-set)/,oe+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,oe+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,oe+"box-pack:$3"+Ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+oe+e+e;case 4095:case 3583:case 4068:case 2532:return ie(e,/(.+)-inline(.+)/,oe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+jn+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wo(e,"stretch")?ja(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,ft(e)-3-(~Wo(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Oe(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return oe+e+Ce+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Ce+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Ce+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Ce+e+e}return e}var pu=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case mi:t.return=ja(t.value,t.length);break;case Ra:return pr([Lr(t,{value:ie(t.value,"@","@"+oe)})],o);case hi:if(t.length)return Yc(t.props,function(i){switch(Kc(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Lr(t,{props:[ie(i,/:(read-\w+)/,":"+jn+"$1")]})],o);case"::placeholder":return pr([Lr(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Lr(t,{props:[ie(i,/:(plac\w+)/,":"+jn+"$1")]}),Lr(t,{props:[ie(i,/:(plac\w+)/,Ce+"input-$1")]})],o)}return""})}},gu=[pu],hu=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 h=y.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||gu,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var h=y.getAttribute("data-emotion").split(" "),S=1;S<h.length;S++)i[h[S]]=!0;a.push(y)});var l,c=[fu,du];{var u,d=[iu,au(function(y){u.insert(y)})],f=su(c.concat(o,d)),v=function(h){return pr(nu(h),f)};l=function(h,S,T,_){u=T,v(h?h+"{"+S.styles+"}":S.styles),_&&(m.inserted[S.name]=!0)}}var m={key:r,sheet:new zc({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return m.sheet.hydrate(a),m};let qo;typeof document=="object"&&(qo=hu({key:"css",prepend:!0}));function Aa(e){const{injectFirst:t,children:r}=e;return t&&qo?b.jsx(dr.CacheProvider,{value:qo,children:r}):r}process.env.NODE_ENV!=="production"&&(Aa.propTypes={children:p.node,injectFirst:p.bool});function mu(e){return e==null||Object.keys(e).length===0}function La(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(mu(o)?r:o):t;return b.jsx(dr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(La.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});/**
31
31
  * @mui/styled-engine v5.16.6
32
32
  *
33
33
  * @license MIT
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */function Fi(e,t){const r=tc(e,t);return process.env.NODE_ENV!=="production"?(...a)=>{const n=typeof e=="string"?`"${e}"`:"component";return a.length===0?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
37
- `)):a.some(s=>s===void 0)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...a)}:r}const Di=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Bc=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:$i,StyledEngineProvider:Ni,ThemeContext:fr.ThemeContext,css:fr.css,default:Fi,internal_processStyles:Di,keyframes:fr.keyframes},Symbol.toStringTag,{value:"Module"}));function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},M.apply(null,arguments)}function Ue(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;r[a]=e[a]}return r}function jt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ui(e){if(!jt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ui(e[r])}),t}function et(e,t,r={clone:!0}){const a=r.clone?M({},e):e;return jt(e)&&jt(t)&&Object.keys(t).forEach(n=>{jt(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&jt(e[n])?a[n]=et(e[n],t[n],r):r.clone?a[n]=jt(t[n])?Ui(t[n]):t[n]:a[n]=t[n]}),a}const Jc=Object.freeze(Object.defineProperty({__proto__:null,default:et,isPlainObject:jt},Symbol.toStringTag,{value:"Module"})),Vc=["values","unit","step"],Gc=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,a)=>r.val-a.val),t.reduce((r,a)=>M({},r,{[a.key]:a.val}),{})};function Bi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5}=e,n=Ue(e,Vc),s=Gc(t),i=Object.keys(s);function l(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-a/100}${r})`}function c(d,x){const y=i.indexOf(x);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:x)-a/100}${r})`}function m(d){return i.indexOf(d)+1<i.length?c(d,i[i.indexOf(d)+1]):l(d)}function f(d){const x=i.indexOf(d);return x===0?l(i[1]):x===i.length-1?u(i[x]):c(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return M({keys:i,values:s,up:l,down:u,between:c,only:m,not:f,unit:r},n)}const Kc={borderRadius:4},$t=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Ur(e,t){return t?et(e,t,{clone:!1}):e}const xs={xs:0,sm:600,md:900,lg:1200,xl:1536},Ys={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xs[e]}px)`};function ot(e,t,r){const a=e.theme||{};if(Array.isArray(t)){const s=a.breakpoints||Ys;return t.reduce((i,l,u)=>(i[s.up(s.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const s=a.breakpoints||Ys;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||xs).indexOf(l)!==-1){const u=s.up(l);i[u]=r(t[l],l)}else{const u=l;i[u]=t[u]}return i},{})}return r(t)}function Ji(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((a,n)=>{const s=e.up(n);return a[s]={},a},{}))||{}}function Vi(e,t){return e.reduce((r,a)=>{const n=r[a];return(!n||Object.keys(n).length===0)&&delete r[a],r},t)}function zc(e,...t){const r=Ji(e),a=[r,...t].reduce((n,s)=>et(n,s),{});return Vi(Object.keys(r),a)}function Wc(e,t){if(typeof e!="object")return{};const r={},a=Object.keys(t);return Array.isArray(e)?a.forEach((n,s)=>{s<e.length&&(r[n]=!0)}):a.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function ka({values:e,breakpoints:t,base:r}){const a=r||Wc(e,t),n=Object.keys(a);if(n.length===0)return e;let s;return n.reduce((i,l,u)=>(Array.isArray(e)?(i[l]=e[u]!=null?e[u]:e[s],s=u):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[s],s=l):i[l]=e,i),{})}function ke(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Gr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Hc=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"}));function Yn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const a=`vars.${t}`.split(".").reduce((n,s)=>n&&n[s]?n[s]:null,e);if(a!=null)return a}return t.split(".").reduce((a,n)=>a&&a[n]!=null?a[n]:null,e)}function En(e,t,r,a=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||a:n=Yn(e,r)||a,t&&(n=t(n,a,e)),n}function _e(e){const{prop:t,cssProperty:r=e.prop,themeKey:a,transform:n}=e,s=i=>{if(i[t]==null)return null;const l=i[t],u=i.theme,c=Yn(u,a)||{};return ot(i,l,f=>{let d=En(c,n,f);return f===d&&typeof f=="string"&&(d=En(c,n,`${t}${f==="default"?"":ke(f)}`,f)),r===!1?d:{[r]:d}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:$t}:{},s.filterProps=[t],s}function Xc(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const qc={m:"margin",p:"padding"},Yc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Zc=Xc(e=>{if(e.length>2)if(Zs[e])e=Zs[e];else return[e];const[t,r]=e.split(""),a=qc[t],n=Yc[r]||"";return Array.isArray(n)?n.map(s=>a+s):[a+n]}),Zn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Qc=[...Zn,...Qn];function Qr(e,t,r,a){var n;const s=(n=Yn(e,t,!1))!=null?n:r;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${a} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(`
36
+ */function Ia(e,t){const r=kc(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
37
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Na=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},yu=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:La,StyledEngineProvider:Aa,ThemeContext:dr.ThemeContext,css:dr.css,default:Ia,internal_processStyles:Na,keyframes:dr.keyframes},Symbol.toStringTag,{value:"Module"}));function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P.apply(null,arguments)}function De(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function St(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 Ma(e){if(!St(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ma(e[r])}),t}function Ze(e,t,r={clone:!0}){const n=r.clone?P({},e):e;return St(e)&&St(t)&&Object.keys(t).forEach(o=>{St(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&St(e[o])?n[o]=Ze(e[o],t[o],r):r.clone?n[o]=St(t[o])?Ma(t[o]):t[o]:n[o]=t[o]}),n}const bu=Object.freeze(Object.defineProperty({__proto__:null,default:Ze,isPlainObject:St},Symbol.toStringTag,{value:"Module"})),vu=["values","unit","step"],xu=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>P({},r,{[n.key]:n.val}),{})};function Da(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=De(e,vu),i=xu(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,v){const m=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:v)-n/100}${r})`}function u(f){return s.indexOf(f)+1<s.length?c(f,s[s.indexOf(f)+1]):a(f)}function d(f){const v=s.indexOf(f);return v===0?a(s[1]):v===s.length-1?l(s[v]):c(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return P({keys:s,values:i,up:a,down:l,between:c,only:u,not:d,unit:r},o)}const Su={borderRadius:4},Nt=process.env.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};function Fr(e,t){return t?Ze(e,t,{clone:!1}):e}const bi={xs:0,sm:600,md:900,lg:1200,xl:1536},Ki={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bi[e]}px)`};function ot(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Ki;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=r(t[l]),s),{})}if(typeof t=="object"){const i=n.breakpoints||Ki;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||bi).indexOf(a)!==-1){const l=i.up(a);s[l]=r(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return r(t)}function Fa(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Va(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function wu(e,...t){const r=Fa(e),n=[r,...t].reduce((o,i)=>Ze(o,i),{});return Va(Object.keys(r),n)}function Tu(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<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||Tu(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Ee(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":zr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"}));function Yn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function An(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Yn(e,r)||n,t&&(o=t(o,n,e)),o}function he(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Yn(l,n)||{};return ot(s,a,d=>{let f=An(c,o,d);return d===f&&typeof d=="string"&&(f=An(c,o,`${t}${d==="default"?"":Ee(d)}`,d)),r===!1?f:{[r]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Nt}:{},i.filterProps=[t],i}function Eu(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Cu={m:"margin",p:"padding"},Ru={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_u=Eu(e=>{if(e.length>2)if(Yi[e])e=Yi[e];else return[e];const[t,r]=e.split(""),n=Cu[t],o=Ru[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Xn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Pu=[...Xn,...Zn];function Zr(e,t,r,n){var o;const i=(o=Yn(e,t,!1))!=null?o:r;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
38
38
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
39
- `))),s[i]):typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
40
- `)),()=>{})}function vs(e){return Qr(e,"spacing",8,"spacing")}function Kt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),a=e(r);return t>=0?a:typeof a=="number"?-a:`-${a}`}function em(e,t){return r=>e.reduce((a,n)=>(a[n]=Kt(t,r),a),{})}function tm(e,t,r,a){if(t.indexOf(r)===-1)return null;const n=Zc(r),s=em(n,a),i=e[r];return ot(e,i,s)}function Gi(e,t){const r=vs(e.theme);return Object.keys(e).map(a=>tm(e,t,a,r)).reduce(Ur,{})}function he(e){return Gi(e,Zn)}he.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=$t,e),{}):{};he.filterProps=Zn;function ge(e){return Gi(e,Qn)}ge.propTypes=process.env.NODE_ENV!=="production"?Qn.reduce((e,t)=>(e[t]=$t,e),{}):{};ge.filterProps=Qn;process.env.NODE_ENV!=="production"&&Qc.reduce((e,t)=>(e[t]=$t,e),{});function rm(e=8){if(e.mui)return e;const t=vs({spacing:e}),r=(...a)=>(process.env.NODE_ENV!=="production"&&(a.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${a.length}`)),(a.length===0?[1]:a).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function ea(...e){const t=e.reduce((a,n)=>(n.filterProps.forEach(s=>{a[s]=n}),a),{}),r=a=>Object.keys(a).reduce((n,s)=>t[s]?Ur(n,t[s](a)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((a,n)=>Object.assign(a,n.propTypes),{}):{},r.filterProps=e.reduce((a,n)=>a.concat(n.filterProps),[]),r}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const nm=rt("border",Ze),am=rt("borderTop",Ze),sm=rt("borderRight",Ze),om=rt("borderBottom",Ze),im=rt("borderLeft",Ze),lm=rt("borderColor"),um=rt("borderTopColor"),cm=rt("borderRightColor"),mm=rt("borderBottomColor"),dm=rt("borderLeftColor"),fm=rt("outline",Ze),hm=rt("outlineColor"),ta=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qr(e.theme,"shape.borderRadius",4,"borderRadius"),r=a=>({borderRadius:Kt(t,a)});return ot(e,e.borderRadius,r)}return null};ta.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$t}:{};ta.filterProps=["borderRadius"];ea(nm,am,sm,om,im,lm,um,cm,mm,dm,ta,fm,hm);const ra=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qr(e.theme,"spacing",8,"gap"),r=a=>({gap:Kt(t,a)});return ot(e,e.gap,r)}return null};ra.propTypes=process.env.NODE_ENV!=="production"?{gap:$t}:{};ra.filterProps=["gap"];const na=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qr(e.theme,"spacing",8,"columnGap"),r=a=>({columnGap:Kt(t,a)});return ot(e,e.columnGap,r)}return null};na.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$t}:{};na.filterProps=["columnGap"];const aa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qr(e.theme,"spacing",8,"rowGap"),r=a=>({rowGap:Kt(t,a)});return ot(e,e.rowGap,r)}return null};aa.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$t}:{};aa.filterProps=["rowGap"];const gm=_e({prop:"gridColumn"}),pm=_e({prop:"gridRow"}),_m=_e({prop:"gridAutoFlow"}),ym=_e({prop:"gridAutoColumns"}),bm=_e({prop:"gridAutoRows"}),xm=_e({prop:"gridTemplateColumns"}),vm=_e({prop:"gridTemplateRows"}),jm=_e({prop:"gridTemplateAreas"}),Sm=_e({prop:"gridArea"});ea(ra,na,aa,gm,pm,_m,ym,bm,xm,vm,jm,Sm);function gr(e,t){return t==="grey"?t:e}const Rm=_e({prop:"color",themeKey:"palette",transform:gr}),wm=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),Pm=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});ea(Rm,wm,Pm);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const km=_e({prop:"width",transform:Ge}),js=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var a,n;const s=((a=e.theme)==null||(a=a.breakpoints)==null||(a=a.values)==null?void 0:a[r])||xs[r];return s?((n=e.theme)==null||(n=n.breakpoints)==null?void 0:n.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Ge(r)}};return ot(e,e.maxWidth,t)}return null};js.filterProps=["maxWidth"];const Am=_e({prop:"minWidth",transform:Ge}),Cm=_e({prop:"height",transform:Ge}),Mm=_e({prop:"maxHeight",transform:Ge}),Im=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const Tm=_e({prop:"boxSizing"});ea(km,js,Am,Cm,Mm,Im,Tm);const en={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ta},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:he},mt:{style:he},mr:{style:he},mb:{style:he},ml:{style:he},mx:{style:he},my:{style:he},margin:{style:he},marginTop:{style:he},marginRight:{style:he},marginBottom:{style:he},marginLeft:{style:he},marginX:{style:he},marginY:{style:he},marginInline:{style:he},marginInlineStart:{style:he},marginInlineEnd:{style:he},marginBlock:{style:he},marginBlockStart:{style:he},marginBlockEnd:{style:he},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ra},rowGap:{style:aa},columnGap:{style:na},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:js},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Om(...e){const t=e.reduce((a,n)=>a.concat(Object.keys(n)),[]),r=new Set(t);return e.every(a=>r.size===Object.keys(a).length)}function Em(e,t){return typeof e=="function"?e(t):e}function Ki(){function e(r,a,n,s){const i={[r]:a,theme:n},l=s[r];if(!l)return{[r]:a};const{cssProperty:u=r,themeKey:c,transform:m,style:f}=l;if(a==null)return null;if(c==="typography"&&a==="inherit")return{[r]:a};const d=Yn(n,c)||{};return f?f(i):ot(i,a,y=>{let _=En(d,m,y);return y===_&&typeof y=="string"&&(_=En(d,m,`${r}${y==="default"?"":ke(y)}`,y)),u===!1?_:{[u]:_}})}function t(r){var a;const{sx:n,theme:s={}}=r||{};if(!n)return null;const i=(a=s.unstable_sxConfig)!=null?a:en;function l(u){let c=u;if(typeof u=="function")c=u(s);else if(typeof u!="object")return u;if(!c)return null;const m=Ji(s.breakpoints),f=Object.keys(m);let d=m;return Object.keys(c).forEach(x=>{const y=Em(c[x],s);if(y!=null)if(typeof y=="object")if(i[x])d=Ur(d,e(x,y,s,i));else{const _=ot({theme:s},y,g=>({[x]:g}));Om(_,y)?d[x]=t({sx:y,theme:s}):d=Ur(d,_)}else d=Ur(d,e(x,y,s,i))}),Vi(f,d)}return Array.isArray(n)?n.map(l):l(n)}return t}const tn=Ki();tn.filterProps=["sx"];function zi(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 Lm=["breakpoints","palette","spacing","shape"];function rn(e={},...t){const{breakpoints:r={},palette:a={},spacing:n,shape:s={}}=e,i=Ue(e,Lm),l=Bi(r),u=rm(n);let c=et({breakpoints:l,direction:"ltr",components:{},palette:M({mode:"light"},a),spacing:u,shape:M({},Kc,s)},i);return c.applyStyles=zi,c=t.reduce((m,f)=>et(m,f),c),c.unstable_sxConfig=M({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const Nm=Object.freeze(Object.defineProperty({__proto__:null,default:rn,private_createBreakpoints:Bi,unstable_applyStyles:zi},Symbol.toStringTag,{value:"Module"}));function $m(e){return Object.keys(e).length===0}function Fm(e=null){const t=$.useContext(fr.ThemeContext);return!t||$m(t)?e:t}const Dm=rn();function Um(e=Dm){return Fm(e)}const Bm=["sx"],Jm=e=>{var t,r;const a={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:en;return Object.keys(e).forEach(s=>{n[s]?a.systemProps[s]=e[s]:a.otherProps[s]=e[s]}),a};function Wi(e){const{sx:t}=e,r=Ue(e,Bm),{systemProps:a,otherProps:n}=Jm(r);let s;return Array.isArray(t)?s=[a,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return jt(l)?M({},a,l):a}:s=M({},a,t),M({},n,{sx:s})}const Vm=Object.freeze(Object.defineProperty({__proto__:null,default:tn,extendSxProp:Wi,unstable_createStyleFunctionSx:Ki,unstable_defaultSxConfig:en},Symbol.toStringTag,{value:"Module"})),Qs=e=>e,Gm=()=>{let e=Qs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Qs}}},Hi=Gm();function Xi(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Xi(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function gt(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Xi(e))&&(a&&(a+=" "),a+=t);return a}const Km={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function nn(e,t,r="Mui"){const a=Km[t];return a?`${r}-${a}`:`${Hi.generate(e)}-${t}`}function qi(e,t,r="Mui"){const a={};return t.forEach(n=>{a[n]=nn(e,n,r)}),a}var Xa={exports:{}},le={};/**
39
+ `))),i[s]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
40
+ `)),()=>{})}function vi(e){return Zr(e,"spacing",8,"spacing")}function Jt(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 $u(e,t){return r=>e.reduce((n,o)=>(n[o]=Jt(t,r),n),{})}function ku(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=_u(r),i=$u(o,n),s=e[r];return ot(e,s,i)}function Ba(e,t){const r=vi(e.theme);return Object.keys(e).map(n=>ku(e,t,n,r)).reduce(Fr,{})}function de(e){return Ba(e,Xn)}de.propTypes=process.env.NODE_ENV!=="production"?Xn.reduce((e,t)=>(e[t]=Nt,e),{}):{};de.filterProps=Xn;function pe(e){return Ba(e,Zn)}pe.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=Nt,e),{}):{};pe.filterProps=Zn;process.env.NODE_ENV!=="production"&&Pu.reduce((e,t)=>(e[t]=Nt,e),{});function ju(e=8){if(e.mui)return e;const t=vi({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(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Qn(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Fr(o,t[i](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 Ye(e){return typeof e!="number"?e:`${e}px solid`}function et(e,t){return he({prop:e,themeKey:"borders",transform:t})}const Au=et("border",Ye),Lu=et("borderTop",Ye),Iu=et("borderRight",Ye),Nu=et("borderBottom",Ye),Mu=et("borderLeft",Ye),Du=et("borderColor"),Fu=et("borderTopColor"),Vu=et("borderRightColor"),Bu=et("borderBottomColor"),Uu=et("borderLeftColor"),zu=et("outline",Ye),Ju=et("outlineColor"),eo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Jt(t,n)});return ot(e,e.borderRadius,r)}return null};eo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Nt}:{};eo.filterProps=["borderRadius"];Qn(Au,Lu,Iu,Nu,Mu,Du,Fu,Vu,Bu,Uu,eo,zu,Ju);const to=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zr(e.theme,"spacing",8,"gap"),r=n=>({gap:Jt(t,n)});return ot(e,e.gap,r)}return null};to.propTypes=process.env.NODE_ENV!=="production"?{gap:Nt}:{};to.filterProps=["gap"];const ro=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Jt(t,n)});return ot(e,e.columnGap,r)}return null};ro.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Nt}:{};ro.filterProps=["columnGap"];const no=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Jt(t,n)});return ot(e,e.rowGap,r)}return null};no.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Nt}:{};no.filterProps=["rowGap"];const Hu=he({prop:"gridColumn"}),Wu=he({prop:"gridRow"}),Gu=he({prop:"gridAutoFlow"}),qu=he({prop:"gridAutoColumns"}),Ku=he({prop:"gridAutoRows"}),Yu=he({prop:"gridTemplateColumns"}),Xu=he({prop:"gridTemplateRows"}),Zu=he({prop:"gridTemplateAreas"}),Qu=he({prop:"gridArea"});Qn(to,ro,no,Hu,Wu,Gu,qu,Ku,Yu,Xu,Zu,Qu);function gr(e,t){return t==="grey"?t:e}const ef=he({prop:"color",themeKey:"palette",transform:gr}),tf=he({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),rf=he({prop:"backgroundColor",themeKey:"palette",transform:gr});Qn(ef,tf,rf);function Ue(e){return e<=1&&e!==0?`${e*100}%`:e}const nf=he({prop:"width",transform:Ue}),xi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||bi[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ue(r)}};return ot(e,e.maxWidth,t)}return null};xi.filterProps=["maxWidth"];const of=he({prop:"minWidth",transform:Ue}),sf=he({prop:"height",transform:Ue}),af=he({prop:"maxHeight",transform:Ue}),lf=he({prop:"minHeight",transform:Ue});he({prop:"size",cssProperty:"width",transform:Ue});he({prop:"size",cssProperty:"height",transform:Ue});const cf=he({prop:"boxSizing"});Qn(nf,xi,of,sf,af,lf,cf);const Qr={border:{themeKey:"borders",transform:Ye},borderTop:{themeKey:"borders",transform:Ye},borderRight:{themeKey:"borders",transform:Ye},borderBottom:{themeKey:"borders",transform:Ye},borderLeft:{themeKey:"borders",transform:Ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:eo},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},m:{style:de},mt:{style:de},mr:{style:de},mb:{style:de},ml:{style:de},mx:{style:de},my:{style:de},margin:{style:de},marginTop:{style:de},marginRight:{style:de},marginBottom:{style:de},marginLeft:{style:de},marginX:{style:de},marginY:{style:de},marginInline:{style:de},marginInlineStart:{style:de},marginInlineEnd:{style:de},marginBlock:{style:de},marginBlockStart:{style:de},marginBlockEnd:{style:de},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:to},rowGap:{style:no},columnGap:{style:ro},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ue},maxWidth:{style:xi},minWidth:{transform:Ue},height:{transform:Ue},maxHeight:{transform:Ue},minHeight:{transform:Ue},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function uf(...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 ff(e,t){return typeof e=="function"?e(t):e}function Ua(){function e(r,n,o,i){const s={[r]:n,theme:o},a=i[r];if(!a)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=Yn(o,c)||{};return d?d(s):ot(s,n,m=>{let y=An(f,u,m);return m===y&&typeof m=="string"&&(y=An(f,u,`${r}${m==="default"?"":Ee(m)}`,m)),l===!1?y:{[l]:y}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:Qr;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Fa(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(v=>{const m=ff(c[v],i);if(m!=null)if(typeof m=="object")if(s[v])f=Fr(f,e(v,m,i,s));else{const y=ot({theme:i},m,h=>({[v]:h}));uf(y,m)?f[v]=t({sx:m,theme:i}):f=Fr(f,y)}else f=Fr(f,e(v,m,i,s))}),Va(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const en=Ua();en.filterProps=["sx"];function za(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 df=["breakpoints","palette","spacing","shape"];function tn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=De(e,df),a=Da(r),l=ju(o);let c=Ze({breakpoints:a,direction:"ltr",components:{},palette:P({mode:"light"},n),spacing:l,shape:P({},Su,i)},s);return c.applyStyles=za,c=t.reduce((u,d)=>Ze(u,d),c),c.unstable_sxConfig=P({},Qr,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return en({sx:d,theme:this})},c}const pf=Object.freeze(Object.defineProperty({__proto__:null,default:tn,private_createBreakpoints:Da,unstable_applyStyles:za},Symbol.toStringTag,{value:"Module"}));function gf(e){return Object.keys(e).length===0}function hf(e=null){const t=N.useContext(dr.ThemeContext);return!t||gf(t)?e:t}const mf=tn();function yf(e=mf){return hf(e)}const bf=["sx"],vf=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Qr;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Ja(e){const{sx:t}=e,r=De(e,bf),{systemProps:n,otherProps:o}=vf(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return St(a)?P({},n,a):n}:i=P({},n,t),P({},o,{sx:i})}const xf=Object.freeze(Object.defineProperty({__proto__:null,default:en,extendSxProp:Ja,unstable_createStyleFunctionSx:Ua,unstable_defaultSxConfig:Qr},Symbol.toStringTag,{value:"Module"})),Xi=e=>e,Sf=()=>{let e=Xi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Xi}}},Ha=Sf();function Wa(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=Wa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Wa(e))&&(n&&(n+=" "),n+=t);return n}const wf={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 rn(e,t,r="Mui"){const n=wf[t];return n?`${r}-${n}`:`${Ha.generate(e)}-${t}`}function Ga(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=rn(e,o,r)}),n}var Ko={exports:{}},se={};/**
41
41
  * @license React
42
42
  * react-is.production.min.js
43
43
  *
@@ -45,7 +45,7 @@ React keys must be passed directly to JSX without using spread:
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var eo;function zm(){if(eo)return le;eo=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(g){if(typeof g=="object"&&g!==null){var j=g.$$typeof;switch(j){case e:switch(g=g.type,g){case r:case n:case a:case c:case m:return g;default:switch(g=g&&g.$$typeof,g){case l:case i:case u:case d:case f:case s:return g;default:return j}}case t:return j}}}return le.ContextConsumer=i,le.ContextProvider=s,le.Element=e,le.ForwardRef=u,le.Fragment=r,le.Lazy=d,le.Memo=f,le.Portal=t,le.Profiler=n,le.StrictMode=a,le.Suspense=c,le.SuspenseList=m,le.isAsyncMode=function(){return!1},le.isConcurrentMode=function(){return!1},le.isContextConsumer=function(g){return _(g)===i},le.isContextProvider=function(g){return _(g)===s},le.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},le.isForwardRef=function(g){return _(g)===u},le.isFragment=function(g){return _(g)===r},le.isLazy=function(g){return _(g)===d},le.isMemo=function(g){return _(g)===f},le.isPortal=function(g){return _(g)===t},le.isProfiler=function(g){return _(g)===n},le.isStrictMode=function(g){return _(g)===a},le.isSuspense=function(g){return _(g)===c},le.isSuspenseList=function(g){return _(g)===m},le.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===n||g===a||g===c||g===m||g===x||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===f||g.$$typeof===s||g.$$typeof===i||g.$$typeof===u||g.$$typeof===y||g.getModuleId!==void 0)},le.typeOf=_,le}var ue={};/**
48
+ */var Zi;function Tf(){if(Zi)return se;Zi=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"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(h){if(typeof h=="object"&&h!==null){var S=h.$$typeof;switch(S){case e:switch(h=h.type,h){case r:case o:case n:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case a:case s:case l:case f:case d:case i:return h;default:return S}}case t:return S}}}return se.ContextConsumer=s,se.ContextProvider=i,se.Element=e,se.ForwardRef=l,se.Fragment=r,se.Lazy=f,se.Memo=d,se.Portal=t,se.Profiler=o,se.StrictMode=n,se.Suspense=c,se.SuspenseList=u,se.isAsyncMode=function(){return!1},se.isConcurrentMode=function(){return!1},se.isContextConsumer=function(h){return y(h)===s},se.isContextProvider=function(h){return y(h)===i},se.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},se.isForwardRef=function(h){return y(h)===l},se.isFragment=function(h){return y(h)===r},se.isLazy=function(h){return y(h)===f},se.isMemo=function(h){return y(h)===d},se.isPortal=function(h){return y(h)===t},se.isProfiler=function(h){return y(h)===o},se.isStrictMode=function(h){return y(h)===n},se.isSuspense=function(h){return y(h)===c},se.isSuspenseList=function(h){return y(h)===u},se.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===o||h===n||h===c||h===u||h===v||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===d||h.$$typeof===i||h.$$typeof===s||h.$$typeof===l||h.$$typeof===m||h.getModuleId!==void 0)},se.typeOf=y,se}var ae={};/**
49
49
  * @license React
50
50
  * react-is.development.js
51
51
  *
@@ -53,14 +53,14 @@ React keys must be passed directly to JSX without using spread:
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */var to;function Wm(){return to||(to=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y=!1,_=!1,g=!1,j=!1,R=!1,C;C=Symbol.for("react.module.reference");function w(O){return!!(typeof O=="string"||typeof O=="function"||O===r||O===n||R||O===a||O===c||O===m||j||O===x||y||_||g||typeof O=="object"&&O!==null&&(O.$$typeof===d||O.$$typeof===f||O.$$typeof===s||O.$$typeof===i||O.$$typeof===u||O.$$typeof===C||O.getModuleId!==void 0))}function S(O){if(typeof O=="object"&&O!==null){var ne=O.$$typeof;switch(ne){case e:var fe=O.type;switch(fe){case r:case n:case a:case c:case m:return fe;default:var Ee=fe&&fe.$$typeof;switch(Ee){case l:case i:case u:case d:case f:case s:return Ee;default:return ne}}case t:return ne}}}var P=i,A=s,V=e,te=u,U=r,F=d,H=f,X=t,Q=n,Z=a,je=c,ce=m,re=!1,we=!1;function Oe(O){return re||(re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function nt(O){return we||(we=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function yt(O){return S(O)===i}function We(O){return S(O)===s}function Se(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function At(O){return S(O)===u}function lt(O){return S(O)===r}function He(O){return S(O)===d}function Be(O){return S(O)===f}function ut(O){return S(O)===t}function ct(O){return S(O)===n}function Ft(O){return S(O)===a}function bt(O){return S(O)===c}function Je(O){return S(O)===m}ue.ContextConsumer=P,ue.ContextProvider=A,ue.Element=V,ue.ForwardRef=te,ue.Fragment=U,ue.Lazy=F,ue.Memo=H,ue.Portal=X,ue.Profiler=Q,ue.StrictMode=Z,ue.Suspense=je,ue.SuspenseList=ce,ue.isAsyncMode=Oe,ue.isConcurrentMode=nt,ue.isContextConsumer=yt,ue.isContextProvider=We,ue.isElement=Se,ue.isForwardRef=At,ue.isFragment=lt,ue.isLazy=He,ue.isMemo=Be,ue.isPortal=ut,ue.isProfiler=ct,ue.isStrictMode=Ft,ue.isSuspense=bt,ue.isSuspenseList=Je,ue.isValidElementType=w,ue.typeOf=S}()),ue}process.env.NODE_ENV==="production"?Xa.exports=zm():Xa.exports=Wm();var ro=Xa.exports;const Hm=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Yi(e){const t=`${e}`.match(Hm);return t&&t[1]||""}function Zi(e,t=""){return e.displayName||e.name||Yi(e)||t}function no(e,t,r){const a=Zi(t);return e.displayName||(a!==""?`${r}(${a})`:r)}function Qi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Zi(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ro.ForwardRef:return no(e,e.render,"ForwardRef");case ro.Memo:return no(e,e.type,"memo");default:return}}}const Xm=Object.freeze(Object.defineProperty({__proto__:null,default:Qi,getFunctionName:Yi},Symbol.toStringTag,{value:"Module"})),qm=["ownerState"],Ym=["variants"],Zm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qm(e){return Object.keys(e).length===0}function ed(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Aa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const td=rn(),ao=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fn({defaultTheme:e,theme:t,themeId:r}){return Qm(t)?e:t[r]||t}function rd(e){return e?(t,r)=>r[e]:null}function Pn(e,t){let{ownerState:r}=t,a=Ue(t,qm);const n=typeof e=="function"?e(M({ownerState:r},a)):e;if(Array.isArray(n))return n.flatMap(s=>Pn(s,M({ownerState:r},a)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){const{variants:s=[]}=n;let l=Ue(n,Ym);return s.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props(M({ownerState:r},a,r)):Object.keys(u.props).forEach(m=>{(r==null?void 0:r[m])!==u.props[m]&&a[m]!==u.props[m]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style(M({ownerState:r},a,r)):u.style))}),l}return n}function nd(e={}){const{themeId:t,defaultTheme:r=td,rootShouldForwardProp:a=Aa,slotShouldForwardProp:n=Aa}=e,s=i=>tn(M({},i,{theme:fn(M({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{Di(i,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:m,skipSx:f,overridesResolver:d=rd(ao(c))}=l,x=Ue(l,Zm),y=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,_=f||!1;let g;process.env.NODE_ENV!=="production"&&u&&(g=`${u}-${ao(c||"Root")}`);let j=Aa;c==="Root"||c==="root"?j=a:c?j=n:ed(i)&&(j=void 0);const R=Fi(i,M({shouldForwardProp:j,label:g},x)),C=S=>typeof S=="function"&&S.__emotion_real!==S||jt(S)?P=>Pn(S,M({},P,{theme:fn({theme:P.theme,defaultTheme:r,themeId:t})})):S,w=(S,...P)=>{let A=C(S);const V=P?P.map(C):[];u&&d&&V.push(F=>{const H=fn(M({},F,{defaultTheme:r,themeId:t}));if(!H.components||!H.components[u]||!H.components[u].styleOverrides)return null;const X=H.components[u].styleOverrides,Q={};return Object.entries(X).forEach(([Z,je])=>{Q[Z]=Pn(je,M({},F,{theme:H}))}),d(F,Q)}),u&&!y&&V.push(F=>{var H;const X=fn(M({},F,{defaultTheme:r,themeId:t})),Q=X==null||(H=X.components)==null||(H=H[u])==null?void 0:H.variants;return Pn({variants:Q},M({},F,{theme:X}))}),_||V.push(s);const te=V.length-P.length;if(Array.isArray(S)&&te>0){const F=new Array(te).fill("");A=[...S,...F],A.raw=[...S.raw,...F]}const U=R(A,...V);if(process.env.NODE_ENV!=="production"){let F;u&&(F=`${u}${ke(c||"")}`),F===void 0&&(F=`Styled(${Qi(i)})`),U.displayName=F}return i.muiName&&(U.muiName=i.muiName),U};return R.withConfig&&(w.withConfig=R.withConfig),w}}const ad=nd();function Ln(e,t){const r=M({},t);return Object.keys(e).forEach(a=>{if(a.toString().match(/^(components|slots)$/))r[a]=M({},e[a],r[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const n=e[a]||{},s=t[a];r[a]={},!s||!Object.keys(s)?r[a]=n:!n||!Object.keys(n)?r[a]=s:(r[a]=M({},s),Object.keys(n).forEach(i=>{r[a][i]=Ln(n[i],s[i])}))}else r[a]===void 0&&(r[a]=e[a])}),r}function sd(e){const{theme:t,name:r,props:a}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?a:Ln(t.components[r].defaultProps,a)}function od({props:e,name:t,defaultTheme:r,themeId:a}){let n=Um(r);return a&&(n=n[a]||n),sd({theme:n,name:t,props:e})}const Ss=typeof window<"u"?$.useLayoutEffect:$.useEffect;function dr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const id=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"}));function so(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...a){return e(...a)||t(...a)}}function ld(...e){return e.reduce((t,r)=>r==null?t:function(...n){t.apply(this,n),r.apply(this,n)},()=>{})}function ud(e,t=166){let r;function a(...n){const s=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(s,t)}return a.clear=()=>{clearTimeout(r)},a}function cd(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,a,n,s,i)=>{const l=n||"<<anonymous>>",u=i||a;return typeof r[a]<"u"?new Error(`The ${s} \`${u}\` of \`${l}\` is deprecated. ${t}`):null}}function md(e,t){var r,a;return $.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(a=e.type)==null||(a=a._payload)==null||(a=a.value)==null?void 0:a.muiName)!==-1}function pr(e){return e&&e.ownerDocument||document}function dd(e){return pr(e).defaultView||window}function fd(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?M({},t.propTypes):null;return n=>(s,i,l,u,c,...m)=>{const f=c||i,d=r==null?void 0:r[f];if(d){const x=d(s,i,l,u,c,...m);if(x)return x}return typeof s[i]<"u"&&!s[n]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${n}\` prop.`):null}}function el(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let oo=0;function hd(e){const[t,r]=$.useState(e),a=e||t;return $.useEffect(()=>{t==null&&(oo+=1,r(`mui-${oo}`))},[t]),a}const io=$.useId;function gd(e){if(io!==void 0){const t=io();return e??t}return hd(e)}function pd(e,t,r,a,n){if(process.env.NODE_ENV==="production")return null;const s=n||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function tl({controlled:e,default:t,name:r,state:a="value"}){const{current:n}=$.useRef(e!==void 0),[s,i]=$.useState(t),l=n?e:s;if(process.env.NODE_ENV!=="production"){$.useEffect(()=>{n!==(e!==void 0)&&console.error([`MUI: A component is changing the ${n?"":"un"}controlled ${a} state of ${r} to be ${n?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
57
- `))},[a,r,e]);const{current:c}=$.useRef(t);$.useEffect(()=>{!n&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
58
- `))},[JSON.stringify(t)])}const u=$.useCallback(c=>{n||i(c)},[]);return[l,u]}function kn(e){const t=$.useRef(e);return Ss(()=>{t.current=e}),$.useRef((...r)=>(0,t.current)(...r)).current}function Nn(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{el(r,t)})},e)}class Rs{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Rs}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let sa=!0,qa=!1;const _d=new Rs,yd={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 bd(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&yd[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function xd(e){e.metaKey||e.altKey||e.ctrlKey||(sa=!0)}function Ca(){sa=!1}function vd(){this.visibilityState==="hidden"&&qa&&(sa=!0)}function jd(e){e.addEventListener("keydown",xd,!0),e.addEventListener("mousedown",Ca,!0),e.addEventListener("pointerdown",Ca,!0),e.addEventListener("touchstart",Ca,!0),e.addEventListener("visibilitychange",vd,!0)}function Sd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return sa||bd(t)}function rl(){const e=$.useCallback(n=>{n!=null&&jd(n.ownerDocument)},[]),t=$.useRef(!1);function r(){return t.current?(qa=!0,_d.start(100,()=>{qa=!1}),t.current=!1,!0):!1}function a(n){return Sd(n)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:a,onBlur:r,ref:e}}const Rd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ws(e,t,r=void 0){const a={};return Object.keys(e).forEach(n=>{a[n]=e[n].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),a}function Br(e){return typeof e=="string"}function wd(e,t,r){return e===void 0||Br(e)?t:M({},t,{ownerState:M({},t.ownerState,r)})}function An(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{r[a]=e[a]}),r}function lo(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 Pd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:a,externalForwardedProps:n,className:s}=e;if(!t){const x=gt(r==null?void 0:r.className,s,n==null?void 0:n.className,a==null?void 0:a.className),y=M({},r==null?void 0:r.style,n==null?void 0:n.style,a==null?void 0:a.style),_=M({},r,n,a);return x.length>0&&(_.className=x),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=An(M({},n,a)),l=lo(a),u=lo(n),c=t(i),m=gt(c==null?void 0:c.className,r==null?void 0:r.className,s,n==null?void 0:n.className,a==null?void 0:a.className),f=M({},c==null?void 0:c.style,r==null?void 0:r.style,n==null?void 0:n.style,a==null?void 0:a.style),d=M({},c,r,u,l);return m.length>0&&(d.className=m),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:c.ref}}function kd(e,t,r){return typeof e=="function"?e(t,r):e}const Ad=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Tt(e){var t;const{elementType:r,externalSlotProps:a,ownerState:n,skipResolvingSlotProps:s=!1}=e,i=Ue(e,Ad),l=s?{}:kd(a,n),{props:u,internalRef:c}=Pd(M({},i,{externalSlotProps:l})),m=Nn(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return wd(r,M({},u,{ref:m}),n)}const Cd=$.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const Md=()=>{const e=$.useContext(Cd);return e??!1},Id=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Td(e){const{theme:t,name:r,props:a}=e;if(!t||!t.components||!t.components[r])return a;const n=t.components[r];return n.defaultProps?Ln(n.defaultProps,a):!n.styleOverrides&&!n.variants?Ln(n,a):a}function Od({props:e,name:t}){const r=$.useContext(Id);return Td({props:e,name:t,theme:{components:r}})}const Ed=["component","direction","spacing","divider","children","className","useFlexGap"],Ld=rn(),Nd=ad("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function $d(e){return od({props:e,name:"MuiStack",defaultTheme:Ld})}function Fd(e,t){const r=$.Children.toArray(e).filter(Boolean);return r.reduce((a,n,s)=>(a.push(n),s<r.length-1&&a.push($.cloneElement(t,{key:`separator-${s}`})),a),[])}const Dd=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Ud=({ownerState:e,theme:t})=>{let r=M({display:"flex",flexDirection:"column"},ot({theme:t},ka({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=vs(t),n=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),s=ka({values:e.direction,base:n}),i=ka({values:e.spacing,base:n});typeof s=="object"&&Object.keys(s).forEach((u,c,m)=>{if(!s[u]){const d=c>0?s[m[c-1]]:"column";s[u]=d}}),r=et(r,ot({theme:t},i,(u,c)=>e.useFlexGap?{gap:Kt(a,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Dd(c?s[c]:e.direction)}`]:Kt(a,u)}}))}return r=zc(t.breakpoints,r),r};function Bd(e={}){const{createStyledComponent:t=Nd,useThemeProps:r=$d,componentName:a="MuiStack"}=e,n=()=>ws({root:["root"]},u=>nn(a,u),{}),s=t(Ud),i=$.forwardRef(function(u,c){const m=r(u),f=Wi(m),{component:d="div",direction:x="column",spacing:y=0,divider:_,children:g,className:j,useFlexGap:R=!1}=f,C=Ue(f,Ed),w={direction:x,spacing:y,useFlexGap:R},S=n();return o.jsx(s,M({as:d,ownerState:w,ref:c,className:gt(S.root,j)},C,{children:_?Fd(g,_):g}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:h.node,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])}),i}var an={},nl={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})(nl);var oa=nl.exports,Ma={exports:{}},uo;function Jd(){return uo||(uo=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var s in n)({}).hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ma)),Ma.exports}var Ia={exports:{}},co;function Vd(){return co||(co=1,function(e){function t(r,a){if(r==null)return{};var n={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(a.includes(s))continue;n[s]=r[s]}return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ia)),Ia.exports}const Gd=Rt(Bc),Kd=Rt(Jc),zd=Rt(Hc),Wd=Rt(Xm),Hd=Rt(Nm),Xd=Rt(Vm);var xr=oa;Object.defineProperty(an,"__esModule",{value:!0});var qd=an.default=c0;an.shouldForwardProp=Cn;an.systemDefaultTheme=void 0;var Ye=xr(Jd()),Ya=xr(Vd()),mo=s0(Gd),Yd=Kd,Zd=xr(zd),Qd=xr(Wd),e0=xr(Hd),t0=xr(Xd);const r0=["ownerState"],n0=["variants"],a0=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function al(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(al=function(a){return a?r:t})(e)}function s0(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=al(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(a,s,i):a[s]=e[s]}return a.default=e,r&&r.set(e,a),a}function o0(e){return Object.keys(e).length===0}function i0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const l0=an.systemDefaultTheme=(0,e0.default)(),fo=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hn({defaultTheme:e,theme:t,themeId:r}){return o0(t)?e:t[r]||t}function u0(e){return e?(t,r)=>r[e]:null}function Mn(e,t){let{ownerState:r}=t,a=(0,Ya.default)(t,r0);const n=typeof e=="function"?e((0,Ye.default)({ownerState:r},a)):e;if(Array.isArray(n))return n.flatMap(s=>Mn(s,(0,Ye.default)({ownerState:r},a)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){const{variants:s=[]}=n;let l=(0,Ya.default)(n,n0);return s.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props((0,Ye.default)({ownerState:r},a,r)):Object.keys(u.props).forEach(m=>{(r==null?void 0:r[m])!==u.props[m]&&a[m]!==u.props[m]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style((0,Ye.default)({ownerState:r},a,r)):u.style))}),l}return n}function c0(e={}){const{themeId:t,defaultTheme:r=l0,rootShouldForwardProp:a=Cn,slotShouldForwardProp:n=Cn}=e,s=i=>(0,t0.default)((0,Ye.default)({},i,{theme:hn((0,Ye.default)({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{(0,mo.internal_processStyles)(i,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:m,skipSx:f,overridesResolver:d=u0(fo(c))}=l,x=(0,Ya.default)(l,a0),y=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,_=f||!1;let g;process.env.NODE_ENV!=="production"&&u&&(g=`${u}-${fo(c||"Root")}`);let j=Cn;c==="Root"||c==="root"?j=a:c?j=n:i0(i)&&(j=void 0);const R=(0,mo.default)(i,(0,Ye.default)({shouldForwardProp:j,label:g},x)),C=S=>typeof S=="function"&&S.__emotion_real!==S||(0,Yd.isPlainObject)(S)?P=>Mn(S,(0,Ye.default)({},P,{theme:hn({theme:P.theme,defaultTheme:r,themeId:t})})):S,w=(S,...P)=>{let A=C(S);const V=P?P.map(C):[];u&&d&&V.push(F=>{const H=hn((0,Ye.default)({},F,{defaultTheme:r,themeId:t}));if(!H.components||!H.components[u]||!H.components[u].styleOverrides)return null;const X=H.components[u].styleOverrides,Q={};return Object.entries(X).forEach(([Z,je])=>{Q[Z]=Mn(je,(0,Ye.default)({},F,{theme:H}))}),d(F,Q)}),u&&!y&&V.push(F=>{var H;const X=hn((0,Ye.default)({},F,{defaultTheme:r,themeId:t})),Q=X==null||(H=X.components)==null||(H=H[u])==null?void 0:H.variants;return Mn({variants:Q},(0,Ye.default)({},F,{theme:X}))}),_||V.push(s);const te=V.length-P.length;if(Array.isArray(S)&&te>0){const F=new Array(te).fill("");A=[...S,...F],A.raw=[...S.raw,...F]}const U=R(A,...V);if(process.env.NODE_ENV!=="production"){let F;u&&(F=`${u}${(0,Zd.default)(c||"")}`),F===void 0&&(F=`Styled(${(0,Qd.default)(i)})`),U.displayName=F}return i.muiName&&(U.muiName=i.muiName),U};return R.withConfig&&(w.withConfig=R.withConfig),w}}function m0(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ye={};const d0=Rt(uc),f0=Rt(id);var sl=oa;Object.defineProperty(ye,"__esModule",{value:!0});var ho=ye.alpha=ul;ye.blend=S0;ye.colorChannel=void 0;var Za=ye.darken=ks;ye.decomposeColor=tt;ye.emphasize=cl;var go=ye.getContrastRatio=y0;ye.getLuminance=$n;ye.hexToRgb=ol;ye.hslToRgb=ll;var Qa=ye.lighten=As;ye.private_safeAlpha=b0;ye.private_safeColorChannel=void 0;ye.private_safeDarken=x0;ye.private_safeEmphasize=j0;ye.private_safeLighten=v0;ye.recomposeColor=vr;ye.rgbToHex=_0;var po=sl(d0),h0=sl(f0);function Ps(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,h0.default)(e,t,r)}function ol(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(a=>a+a)),r?`rgb${r.length===4?"a":""}(${r.map((a,n)=>n<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function g0(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function tt(e){if(e.type)return e;if(e.charAt(0)==="#")return tt(ol(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
59
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,po.default)(9,e));let a=e.substring(t+1,e.length-1),n;if(r==="color"){if(a=a.split(" "),n=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${n}\` color space.
60
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,po.default)(10,n))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:r,values:a,colorSpace:n}}const il=e=>{const t=tt(e);return t.values.slice(0,3).map((r,a)=>t.type.indexOf("hsl")!==-1&&a!==0?`${r}%`:r).join(" ")};ye.colorChannel=il;const p0=(e,t)=>{try{return il(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ye.private_safeColorChannel=p0;function vr(e){const{type:t,colorSpace:r}=e;let{values:a}=e;return t.indexOf("rgb")!==-1?a=a.map((n,s)=>s<3?parseInt(n,10):n):t.indexOf("hsl")!==-1&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.indexOf("color")!==-1?a=`${r} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function _0(e){if(e.indexOf("#")===0)return e;const{values:t}=tt(e);return`#${t.map((r,a)=>g0(a===3?Math.round(255*r):r)).join("")}`}function ll(e){e=tt(e);const{values:t}=e,r=t[0],a=t[1]/100,n=t[2]/100,s=a*Math.min(n,1-n),i=(c,m=(c+r/30)%12)=>n-s*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),vr({type:l,values:u})}function $n(e){e=tt(e);let t=e.type==="hsl"||e.type==="hsla"?tt(ll(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 y0(e,t){const r=$n(e),a=$n(t);return(Math.max(r,a)+.05)/(Math.min(r,a)+.05)}function ul(e,t){return e=tt(e),t=Ps(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vr(e)}function b0(e,t,r){try{return ul(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ks(e,t){if(e=tt(e),t=Ps(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return vr(e)}function x0(e,t,r){try{return ks(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function As(e,t){if(e=tt(e),t=Ps(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return vr(e)}function v0(e,t,r){try{return As(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function cl(e,t=.15){return $n(e)>.5?ks(e,t):As(e,t)}function j0(e,t,r){try{return cl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function S0(e,t,r,a=1){const n=(u,c)=>Math.round((u**(1/a)*(1-r)+c**(1/a)*r)**a),s=tt(e),i=tt(t),l=[n(s.values[0],i.values[0]),n(s.values[1],i.values[1]),n(s.values[2],i.values[2])];return vr({type:"rgb",values:l})}const Wr={black:"#000",white:"#fff"},R0={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},sr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},or={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Nr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ir={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ur={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},w0=["mode","contrastThreshold","tonalOffset"],_o={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Wr.white,default:Wr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ta={text:{primary:Wr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Wr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function yo(e,t,r,a){const n=a.light||a,s=a.dark||a*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Qa(e.main,n):t==="dark"&&(e.dark=Za(e.main,s)))}function P0(e="light"){return e==="dark"?{main:ir[200],light:ir[50],dark:ir[400]}:{main:ir[700],light:ir[400],dark:ir[800]}}function k0(e="light"){return e==="dark"?{main:sr[200],light:sr[50],dark:sr[400]}:{main:sr[500],light:sr[300],dark:sr[700]}}function A0(e="light"){return e==="dark"?{main:or[500],light:or[300],dark:or[700]}:{main:or[700],light:or[400],dark:or[800]}}function C0(e="light"){return e==="dark"?{main:lr[400],light:lr[300],dark:lr[700]}:{main:lr[700],light:lr[500],dark:lr[900]}}function M0(e="light"){return e==="dark"?{main:ur[400],light:ur[300],dark:ur[700]}:{main:ur[800],light:ur[500],dark:ur[900]}}function I0(e="light"){return e==="dark"?{main:Nr[400],light:Nr[300],dark:Nr[700]}:{main:"#ed6c02",light:Nr[500],dark:Nr[900]}}function T0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:a=.2}=e,n=Ue(e,w0),s=e.primary||P0(t),i=e.secondary||k0(t),l=e.error||A0(t),u=e.info||C0(t),c=e.success||M0(t),m=e.warning||I0(t);function f(_){const g=go(_,Ta.text.primary)>=r?Ta.text.primary:_o.text.primary;if(process.env.NODE_ENV!=="production"){const j=go(_,g);j<3&&console.error([`MUI: The contrast ratio of ${j}:1 for ${g} on ${_}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
61
- `))}return g}const d=({color:_,name:g,mainShade:j=500,lightShade:R=300,darkShade:C=700})=>{if(_=M({},_),!_.main&&_[j]&&(_.main=_[j]),!_.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
62
- The color object needs to have a \`main\` property or a \`${j}\` property.`:Gr(11,g?` (${g})`:"",j));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
63
- \`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
56
+ */var Qi;function Of(){return Qi||(Qi=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"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=!1,y=!1,h=!1,S=!1,T=!1,_;_=Symbol.for("react.module.reference");function O(j){return!!(typeof j=="string"||typeof j=="function"||j===r||j===o||T||j===n||j===c||j===u||S||j===v||m||y||h||typeof j=="object"&&j!==null&&(j.$$typeof===f||j.$$typeof===d||j.$$typeof===i||j.$$typeof===s||j.$$typeof===l||j.$$typeof===_||j.getModuleId!==void 0))}function w(j){if(typeof j=="object"&&j!==null){var te=j.$$typeof;switch(te){case e:var fe=j.type;switch(fe){case r:case o:case n:case c:case u:return fe;default:var je=fe&&fe.$$typeof;switch(je){case a:case s:case l:case f:case d:case i:return je;default:return te}}case t:return te}}}var E=s,R=i,U=e,Q=l,F=r,M=f,W=d,G=t,X=o,Y=n,xe=c,le=u,ee=!1,Te=!1;function ke(j){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function tt(j){return Te||(Te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function yt(j){return w(j)===s}function He(j){return w(j)===i}function Se(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function Rt(j){return w(j)===l}function st(j){return w(j)===r}function We(j){return w(j)===f}function Fe(j){return w(j)===d}function at(j){return w(j)===t}function lt(j){return w(j)===o}function Mt(j){return w(j)===n}function bt(j){return w(j)===c}function Ve(j){return w(j)===u}ae.ContextConsumer=E,ae.ContextProvider=R,ae.Element=U,ae.ForwardRef=Q,ae.Fragment=F,ae.Lazy=M,ae.Memo=W,ae.Portal=G,ae.Profiler=X,ae.StrictMode=Y,ae.Suspense=xe,ae.SuspenseList=le,ae.isAsyncMode=ke,ae.isConcurrentMode=tt,ae.isContextConsumer=yt,ae.isContextProvider=He,ae.isElement=Se,ae.isForwardRef=Rt,ae.isFragment=st,ae.isLazy=We,ae.isMemo=Fe,ae.isPortal=at,ae.isProfiler=lt,ae.isStrictMode=Mt,ae.isSuspense=bt,ae.isSuspenseList=Ve,ae.isValidElementType=O,ae.typeOf=w}()),ae}process.env.NODE_ENV==="production"?Ko.exports=Tf():Ko.exports=Of();var es=Ko.exports;const Ef=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qa(e){const t=`${e}`.match(Ef);return t&&t[1]||""}function Ka(e,t=""){return e.displayName||e.name||qa(e)||t}function ts(e,t,r){const n=Ka(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ya(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ka(e,"Component");if(typeof e=="object")switch(e.$$typeof){case es.ForwardRef:return ts(e,e.render,"ForwardRef");case es.Memo:return ts(e,e.type,"memo");default:return}}}const Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Ya,getFunctionName:qa},Symbol.toStringTag,{value:"Module"})),Rf=["ownerState"],_f=["variants"],Pf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $f(e){return Object.keys(e).length===0}function kf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _o(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jf=tn(),rs=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dn({defaultTheme:e,theme:t,themeId:r}){return $f(t)?e:t[r]||t}function Af(e){return e?(t,r)=>r[e]:null}function En(e,t){let{ownerState:r}=t,n=De(t,Rf);const o=typeof e=="function"?e(P({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>En(i,P({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=De(o,_f);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(P({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(P({ownerState:r},n,r)):l.style))}),a}return o}function Lf(e={}){const{themeId:t,defaultTheme:r=jf,rootShouldForwardProp:n=_o,slotShouldForwardProp:o=_o}=e,i=s=>en(P({},s,{theme:dn(P({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Na(s,w=>w.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Af(rs(c))}=a,v=De(a,Pf),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let h;process.env.NODE_ENV!=="production"&&l&&(h=`${l}-${rs(c||"Root")}`);let S=_o;c==="Root"||c==="root"?S=n:c?S=o:kf(s)&&(S=void 0);const T=Ia(s,P({shouldForwardProp:S,label:h},v)),_=w=>typeof w=="function"&&w.__emotion_real!==w||St(w)?E=>En(w,P({},E,{theme:dn({theme:E.theme,defaultTheme:r,themeId:t})})):w,O=(w,...E)=>{let R=_(w);const U=E?E.map(_):[];l&&f&&U.push(M=>{const W=dn(P({},M,{defaultTheme:r,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const G=W.components[l].styleOverrides,X={};return Object.entries(G).forEach(([Y,xe])=>{X[Y]=En(xe,P({},M,{theme:W}))}),f(M,X)}),l&&!m&&U.push(M=>{var W;const G=dn(P({},M,{defaultTheme:r,themeId:t})),X=G==null||(W=G.components)==null||(W=W[l])==null?void 0:W.variants;return En({variants:X},P({},M,{theme:G}))}),y||U.push(i);const Q=U.length-E.length;if(Array.isArray(w)&&Q>0){const M=new Array(Q).fill("");R=[...w,...M],R.raw=[...w.raw,...M]}const F=T(R,...U);if(process.env.NODE_ENV!=="production"){let M;l&&(M=`${l}${Ee(c||"")}`),M===void 0&&(M=`Styled(${Ya(s)})`),F.displayName=M}return s.muiName&&(F.muiName=s.muiName),F};return T.withConfig&&(O.withConfig=T.withConfig),O}}const If=Lf();function Ln(e,t){const r=P({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=P({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=P({},i),Object.keys(o).forEach(s=>{r[n][s]=Ln(o[s],i[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Nf(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ln(t.components[r].defaultProps,n)}function Mf({props:e,name:t,defaultTheme:r,themeId:n}){let o=yf(r);return n&&(o=o[n]||o),Nf({theme:o,name:t,props:e})}const Si=typeof window<"u"?N.useLayoutEffect:N.useEffect;function fr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Df=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"}));function ns(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Ff(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Vf(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function Bf(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,i,s)=>{const a=o||"<<anonymous>>",l=s||n;return typeof r[n]<"u"?new Error(`The ${i} \`${l}\` of \`${a}\` is deprecated. ${t}`):null}}function Uf(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function hr(e){return e&&e.ownerDocument||document}function zf(e){return hr(e).defaultView||window}function Jf(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?P({},t.propTypes):null;return o=>(i,s,a,l,c,...u)=>{const d=c||s,f=r==null?void 0:r[d];if(f){const v=f(i,s,a,l,c,...u);if(v)return v}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${d}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Xa(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let os=0;function Hf(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(os+=1,r(`mui-${os}`))},[t]),n}const is=N.useId;function Wf(e){if(is!==void 0){const t=is();return e??t}return Hf(e)}function Gf(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Za({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[i,s]=N.useState(t),a=o?e:i;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
57
+ `))},[n,r,e]);const{current:c}=N.useRef(t);N.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
58
+ `))},[JSON.stringify(t)])}const l=N.useCallback(c=>{o||s(c)},[]);return[a,l]}function Cn(e){const t=N.useRef(e);return Si(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function In(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Xa(r,t)})},e)}class wi{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wi}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let oo=!0,Yo=!1;const qf=new wi,Kf={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 Yf(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Kf[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Xf(e){e.metaKey||e.altKey||e.ctrlKey||(oo=!0)}function Po(){oo=!1}function Zf(){this.visibilityState==="hidden"&&Yo&&(oo=!0)}function Qf(e){e.addEventListener("keydown",Xf,!0),e.addEventListener("mousedown",Po,!0),e.addEventListener("pointerdown",Po,!0),e.addEventListener("touchstart",Po,!0),e.addEventListener("visibilitychange",Zf,!0)}function ed(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return oo||Yf(t)}function Qa(){const e=N.useCallback(o=>{o!=null&&Qf(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Yo=!0,qf.start(100,()=>{Yo=!1}),t.current=!1,!0):!1}function n(o){return ed(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const td={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ti(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),r&&r[s]&&i.push(r[s])}return i},[]).join(" ")}),n}function Vr(e){return typeof e=="string"}function rd(e,t,r){return e===void 0||Vr(e)?t:P({},t,{ownerState:P({},t.ownerState,r)})}function Rn(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 ss(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 nd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const v=gt(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),m=P({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=P({},r,o,n);return v.length>0&&(y.className=v),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const s=Rn(P({},o,n)),a=ss(n),l=ss(o),c=t(s),u=gt(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),d=P({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=P({},c,r,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function od(e,t,r){return typeof e=="function"?e(t,r):e}const id=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=De(e,id),a=i?{}:od(n,o),{props:l,internalRef:c}=nd(P({},s,{externalSlotProps:a})),u=In(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return rd(r,P({},l,{ref:u}),o)}const sd=N.createContext();process.env.NODE_ENV!=="production"&&(p.node,p.bool);const ad=()=>{const e=N.useContext(sd);return e??!1},ld=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.node,p.object);function cd(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?Ln(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ln(o,n):n}function ud({props:e,name:t}){const r=N.useContext(ld);return cd({props:e,name:t,theme:{components:r}})}const fd=["component","direction","spacing","divider","children","className","useFlexGap"],dd=tn(),pd=If("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function gd(e){return Mf({props:e,name:"MuiStack",defaultTheme:dd})}function hd(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${i}`})),n),[])}const md=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yd=({ownerState:e,theme:t})=>{let r=P({display:"flex",flexDirection:"column"},ot({theme:t},Ro({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=vi(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Ro({values:e.direction,base:o}),s=Ro({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),r=Ze(r,ot({theme:t},s,(l,c)=>e.useFlexGap?{gap:Jt(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${md(c?i[c]:e.direction)}`]:Jt(n,l)}}))}return r=wu(t.breakpoints,r),r};function bd(e={}){const{createStyledComponent:t=pd,useThemeProps:r=gd,componentName:n="MuiStack"}=e,o=()=>Ti({root:["root"]},l=>rn(n,l),{}),i=t(yd),s=N.forwardRef(function(l,c){const u=r(l),d=Ja(u),{component:f="div",direction:v="column",spacing:m=0,divider:y,children:h,className:S,useFlexGap:T=!1}=d,_=De(d,fd),O={direction:v,spacing:m,useFlexGap:T},w=o();return b.jsx(i,P({as:f,ownerState:O,ref:c,className:gt(w.root,S)},_,{children:y?hd(h,y):h}))});return process.env.NODE_ENV!=="production"&&(s.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])}),s}var nn={},el={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(el);var io=el.exports,$o={exports:{}},as;function vd(){return as||(as=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 i in o)({}).hasOwnProperty.call(o,i)&&(r[i]=o[i])}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}($o)),$o.exports}var ko={exports:{}},ls;function xd(){return ls||(ls=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(n.includes(i))continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ko)),ko.exports}const Sd=Tt(yu),wd=Tt(bu),Td=Tt(Ou),Od=Tt(Cf),Ed=Tt(pf),Cd=Tt(xf);var vr=io;Object.defineProperty(nn,"__esModule",{value:!0});var Rd=nn.default=Bd;nn.shouldForwardProp=_n;nn.systemDefaultTheme=void 0;var Ke=vr(vd()),Xo=vr(xd()),cs=Nd(Sd),_d=wd,Pd=vr(Td),$d=vr(Od),kd=vr(Ed),jd=vr(Cd);const Ad=["ownerState"],Ld=["variants"],Id=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(tl=function(n){return n?r:t})(e)}function Nd(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=tl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function Md(e){return Object.keys(e).length===0}function Dd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _n(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fd=nn.systemDefaultTheme=(0,kd.default)(),us=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function pn({defaultTheme:e,theme:t,themeId:r}){return Md(t)?e:t[r]||t}function Vd(e){return e?(t,r)=>r[e]:null}function Pn(e,t){let{ownerState:r}=t,n=(0,Xo.default)(t,Ad);const o=typeof e=="function"?e((0,Ke.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>Pn(i,(0,Ke.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Xo.default)(o,Ld);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Ke.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Ke.default)({ownerState:r},n,r)):l.style))}),a}return o}function Bd(e={}){const{themeId:t,defaultTheme:r=Fd,rootShouldForwardProp:n=_n,slotShouldForwardProp:o=_n}=e,i=s=>(0,jd.default)((0,Ke.default)({},s,{theme:pn((0,Ke.default)({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,cs.internal_processStyles)(s,w=>w.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Vd(us(c))}=a,v=(0,Xo.default)(a,Id),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let h;process.env.NODE_ENV!=="production"&&l&&(h=`${l}-${us(c||"Root")}`);let S=_n;c==="Root"||c==="root"?S=n:c?S=o:Dd(s)&&(S=void 0);const T=(0,cs.default)(s,(0,Ke.default)({shouldForwardProp:S,label:h},v)),_=w=>typeof w=="function"&&w.__emotion_real!==w||(0,_d.isPlainObject)(w)?E=>Pn(w,(0,Ke.default)({},E,{theme:pn({theme:E.theme,defaultTheme:r,themeId:t})})):w,O=(w,...E)=>{let R=_(w);const U=E?E.map(_):[];l&&f&&U.push(M=>{const W=pn((0,Ke.default)({},M,{defaultTheme:r,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const G=W.components[l].styleOverrides,X={};return Object.entries(G).forEach(([Y,xe])=>{X[Y]=Pn(xe,(0,Ke.default)({},M,{theme:W}))}),f(M,X)}),l&&!m&&U.push(M=>{var W;const G=pn((0,Ke.default)({},M,{defaultTheme:r,themeId:t})),X=G==null||(W=G.components)==null||(W=W[l])==null?void 0:W.variants;return Pn({variants:X},(0,Ke.default)({},M,{theme:G}))}),y||U.push(i);const Q=U.length-E.length;if(Array.isArray(w)&&Q>0){const M=new Array(Q).fill("");R=[...w,...M],R.raw=[...w.raw,...M]}const F=T(R,...U);if(process.env.NODE_ENV!=="production"){let M;l&&(M=`${l}${(0,Pd.default)(c||"")}`),M===void 0&&(M=`Styled(${(0,$d.default)(s)})`),F.displayName=M}return s.muiName&&(F.muiName=s.muiName),F};return T.withConfig&&(O.withConfig=T.withConfig),O}}function Ud(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var me={};const zd=Tt(Fc),Jd=Tt(Df);var rl=io;Object.defineProperty(me,"__esModule",{value:!0});var fs=me.alpha=sl;me.blend=ep;me.colorChannel=void 0;var Zo=me.darken=Ei;me.decomposeColor=Qe;me.emphasize=al;var ds=me.getContrastRatio=Kd;me.getLuminance=Nn;me.hexToRgb=nl;me.hslToRgb=il;var Qo=me.lighten=Ci;me.private_safeAlpha=Yd;me.private_safeColorChannel=void 0;me.private_safeDarken=Xd;me.private_safeEmphasize=Qd;me.private_safeLighten=Zd;me.recomposeColor=xr;me.rgbToHex=qd;var ps=rl(zd),Hd=rl(Jd);function Oi(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,Hd.default)(e,t,r)}function nl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Wd(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Qe(e){if(e.type)return e;if(e.charAt(0)==="#")return Qe(nl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
59
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,ps.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
60
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,ps.default)(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const ol=e=>{const t=Qe(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};me.colorChannel=ol;const Gd=(e,t)=>{try{return ol(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};me.private_safeColorChannel=Gd;function xr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<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 qd(e){if(e.indexOf("#")===0)return e;const{values:t}=Qe(e);return`#${t.map((r,n)=>Wd(n===3?Math.round(255*r):r)).join("")}`}function il(e){e=Qe(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(c,u=(c+r/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),xr({type:a,values:l})}function Nn(e){e=Qe(e);let t=e.type==="hsl"||e.type==="hsla"?Qe(il(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 Kd(e,t){const r=Nn(e),n=Nn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function sl(e,t){return e=Qe(e),t=Oi(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,xr(e)}function Yd(e,t,r){try{return sl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ei(e,t){if(e=Qe(e),t=Oi(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 xr(e)}function Xd(e,t,r){try{return Ei(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ci(e,t){if(e=Qe(e),t=Oi(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 xr(e)}function Zd(e,t,r){try{return Ci(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function al(e,t=.15){return Nn(e)>.5?Ei(e,t):Ci(e,t)}function Qd(e,t,r){try{return al(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ep(e,t,r,n=1){const o=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),i=Qe(e),s=Qe(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return xr({type:"rgb",values:a})}const Wr={black:"#000",white:"#fff"},tp={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"},or={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"},ir={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"},Ir={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"},sr={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"},ar={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"},lr={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"},rp=["mode","contrastThreshold","tonalOffset"],gs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Wr.white,default:Wr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},jo={text:{primary:Wr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Wr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function hs(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Qo(e.main,o):t==="dark"&&(e.dark=Zo(e.main,i)))}function np(e="light"){return e==="dark"?{main:sr[200],light:sr[50],dark:sr[400]}:{main:sr[700],light:sr[400],dark:sr[800]}}function op(e="light"){return e==="dark"?{main:or[200],light:or[50],dark:or[400]}:{main:or[500],light:or[300],dark:or[700]}}function ip(e="light"){return e==="dark"?{main:ir[500],light:ir[300],dark:ir[700]}:{main:ir[700],light:ir[400],dark:ir[800]}}function sp(e="light"){return e==="dark"?{main:ar[400],light:ar[300],dark:ar[700]}:{main:ar[700],light:ar[500],dark:ar[900]}}function ap(e="light"){return e==="dark"?{main:lr[400],light:lr[300],dark:lr[700]}:{main:lr[800],light:lr[500],dark:lr[900]}}function lp(e="light"){return e==="dark"?{main:Ir[400],light:Ir[300],dark:Ir[700]}:{main:"#ed6c02",light:Ir[500],dark:Ir[900]}}function cp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=De(e,rp),i=e.primary||np(t),s=e.secondary||op(t),a=e.error||ip(t),l=e.info||sp(t),c=e.success||ap(t),u=e.warning||lp(t);function d(y){const h=ds(y,jo.text.primary)>=r?jo.text.primary:gs.text.primary;if(process.env.NODE_ENV!=="production"){const S=ds(y,h);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${h} 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(`
61
+ `))}return h}const f=({color:y,name:h,mainShade:S=500,lightShade:T=300,darkShade:_=700})=>{if(y=P({},y),!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid.
62
+ The color object needs to have a \`main\` property or a \`${S}\` property.`:zr(11,h?` (${h})`:"",S));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid.
63
+ \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
64
64
 
65
65
  Did you intend to use one of the following approaches?
66
66
 
@@ -72,13 +72,13 @@ const theme1 = createTheme({ palette: {
72
72
 
73
73
  const theme2 = createTheme({ palette: {
74
74
  primary: { main: green[500] },
75
- } });`:Gr(12,g?` (${g})`:"",JSON.stringify(_.main)));return yo(_,"light",R,a),yo(_,"dark",C,a),_.contrastText||(_.contrastText=f(_.main)),_},x={dark:Ta,light:_o};return process.env.NODE_ENV!=="production"&&(x[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),et(M({common:M({},Wr),mode:t,primary:d({color:s,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:l,name:"error"}),warning:d({color:m,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:c,name:"success"}),grey:R0,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:a},x[t]),n)}const O0=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function E0(e){return Math.round(e*1e5)/1e5}const bo={textTransform:"uppercase"},xo='"Roboto", "Helvetica", "Arial", sans-serif';function L0(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:a=xo,fontSize:n=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:m,pxToRem:f}=r,d=Ue(r,O0);process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const x=n/14,y=f||(j=>`${j/c*x}rem`),_=(j,R,C,w,S)=>M({fontFamily:a,fontWeight:j,fontSize:y(R),lineHeight:C},a===xo?{letterSpacing:`${E0(w/R)}em`}:{},S,m),g={h1:_(s,96,1.167,-1.5),h2:_(s,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,bo),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,bo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return et(M({htmlFontSize:c,pxToRem:y,fontFamily:a,fontSize:n,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:u},g),d,{clone:!1})}const N0=.2,$0=.14,F0=.12;function de(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${N0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${F0})`].join(",")}const D0=["none",de(0,2,1,-1,0,1,1,0,0,1,3,0),de(0,3,1,-2,0,2,2,0,0,1,5,0),de(0,3,3,-2,0,3,4,0,0,1,8,0),de(0,2,4,-1,0,4,5,0,0,1,10,0),de(0,3,5,-1,0,5,8,0,0,1,14,0),de(0,3,5,-1,0,6,10,0,0,1,18,0),de(0,4,5,-2,0,7,10,1,0,2,16,1),de(0,5,5,-3,0,8,10,1,0,3,14,2),de(0,5,6,-3,0,9,12,1,0,3,16,2),de(0,6,6,-3,0,10,14,1,0,4,18,3),de(0,6,7,-4,0,11,15,1,0,4,20,3),de(0,7,8,-4,0,12,17,2,0,5,22,4),de(0,7,8,-4,0,13,19,2,0,5,24,4),de(0,7,9,-4,0,14,21,2,0,5,26,4),de(0,8,9,-5,0,15,22,2,0,6,28,5),de(0,8,10,-5,0,16,24,2,0,6,30,5),de(0,8,11,-5,0,17,26,2,0,6,32,5),de(0,9,11,-5,0,18,28,2,0,7,34,6),de(0,9,12,-6,0,19,29,2,0,7,36,6),de(0,10,13,-6,0,20,31,3,0,8,38,7),de(0,10,13,-6,0,21,33,3,0,8,40,7),de(0,10,14,-6,0,22,35,3,0,8,42,7),de(0,11,14,-7,0,23,36,3,0,9,44,8),de(0,11,15,-7,0,24,38,3,0,9,46,8)],U0=["duration","easing","delay"],B0={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)"},J0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vo(e){return`${Math.round(e)}ms`}function V0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function G0(e){const t=M({},B0,e.easing),r=M({},J0,e.duration);return M({getAutoHeightDuration:V0,create:(n=["all"],s={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:u=0}=s,c=Ue(s,U0);if(process.env.NODE_ENV!=="production"){const m=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!m(n)&&!Array.isArray(n)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!m(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),m(l)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!m(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
76
- `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(n)?n:[n]).map(m=>`${m} ${typeof i=="string"?i:vo(i)} ${l} ${typeof u=="string"?u:vo(u)}`).join(",")}},e,{easing:t,duration:r})}const K0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},z0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function W0(e={},...t){const{mixins:r={},palette:a={},transitions:n={},typography:s={}}=e,i=Ue(e,z0);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Gr(18));const l=T0(a),u=rn(e);let c=et(u,{mixins:m0(u.breakpoints,r),palette:l,shadows:D0.slice(),typography:L0(l,s),transitions:G0(n),zIndex:M({},K0)});if(c=et(c,i),c=t.reduce((m,f)=>et(m,f),c),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,x)=>{let y;for(y in d){const _=d[y];if(m.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=nn("",y);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
77
- `))}d[y]={}}}};Object.keys(c.components).forEach(d=>{const x=c.components[d].styleOverrides;x&&d.indexOf("Mui")===0&&f(x,d)})}return c.unstable_sxConfig=M({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const H0=W0(),X0="$$material";function Cs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const q0=e=>Cs(e)&&e!=="classes",wt=qd({themeId:X0,defaultTheme:H0,rootShouldForwardProp:q0});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function Ms(e){return Od(e)}const _r=Bd({createStyledComponent:wt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ms({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:h.node,component:h.elementType,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),useFlexGap:h.bool});const Y0={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 Fn{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||Y0,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,a,n){return n&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Fn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Fn(this.logger,t)}}var ft=new Fn;class ia{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const n=this.observers[a].get(r)||0;this.observers[a].set(r,n+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,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l.apply(l,[t,...a])})}}const $r=()=>{let e,t;const r=new Promise((a,n)=>{e=a,t=n});return r.resolve=e,r.reject=t,r},jo=e=>e==null?"":""+e,Z0=(e,t,r)=>{e.forEach(a=>{t[a]&&(r[a]=t[a])})},Q0=/###/g,So=e=>e&&e.indexOf("###")>-1?e.replace(Q0,"."):e,Ro=e=>!e||typeof e=="string",Jr=(e,t,r)=>{const a=typeof t!="string"?t:t.split(".");let n=0;for(;n<a.length-1;){if(Ro(e))return{};const s=So(a[n]);!e[s]&&r&&(e[s]=new r),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++n}return Ro(e)?{}:{obj:e,k:So(a[n])}},wo=(e,t,r)=>{const{obj:a,k:n}=Jr(e,t,Object);if(a!==void 0||t.length===1){a[n]=r;return}let s=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=r},ef=(e,t,r,a)=>{const{obj:n,k:s}=Jr(e,t,Object);n[s]=n[s]||[],n[s].push(r)},Dn=(e,t)=>{const{obj:r,k:a}=Jr(e,t);if(r)return r[a]},tf=(e,t,r)=>{const a=Dn(e,r);return a!==void 0?a:Dn(t,r)},ml=(e,t,r)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?typeof e[a]=="string"||e[a]instanceof String||typeof t[a]=="string"||t[a]instanceof String?r&&(e[a]=t[a]):ml(e[a],t[a],r):e[a]=t[a]);return e},cr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var rf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const nf=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>rf[t]):e;class af{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 a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const sf=[" ",",","?","!",";"],of=new af(20),lf=(e,t,r)=>{t=t||"",r=r||"";const a=sf.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(a.length===0)return!0;const n=of.getRegExp(`(${a.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!n.test(e);if(!s){const i=e.indexOf(r);i>0&&!n.test(e.substring(0,i))&&(s=!0)}return s},es=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const a=t.split(r);let n=e;for(let s=0;s<a.length;){if(!n||typeof n!="object")return;let i,l="";for(let u=s;u<a.length;++u)if(u!==s&&(l+=r),l+=a[u],i=n[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<a.length-1)continue;s+=u-s+1;break}n=i}return n},Un=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Po extends ia{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,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,i=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,r],a&&(Array.isArray(a)?l.push(...a):typeof a=="string"&&s?l.push(...a.split(s)):l.push(a)));const u=Dn(this.data,l);return!u&&!r&&!a&&t.indexOf(".")>-1&&(t=l[0],r=l[1],a=l.slice(2).join(".")),u||!i||typeof a!="string"?u:es(this.data&&this.data[t]&&this.data[t][r],a,s)}addResource(t,r,a,n){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,r];a&&(l=l.concat(i?a.split(i):a)),t.indexOf(".")>-1&&(l=t.split("."),n=r,r=l[1]),this.addNamespaces(r),wo(this.data,l,n),s.silent||this.emit("added",t,r,a,n)}addResources(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in a)(typeof a[s]=="string"||Array.isArray(a[s]))&&this.addResource(t,r,s,a[s],{silent:!0});n.silent||this.emit("added",t,r,a)}addResourceBundle(t,r,a,n,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),n=a,a=r,r=l[1]),this.addNamespaces(r);let u=Dn(this.data,l)||{};i.skipCopy||(a=JSON.parse(JSON.stringify(a))),n?ml(u,a,s):u={...u,...a},wo(this.data,l,u),i.silent||this.emit("added",t,r,a)}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(n=>r[n]&&Object.keys(r[n]).length>0)}toJSON(){return this.data}}var dl={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,a,n){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,r,a,n))}),t}};const ko={};class Bn extends ia{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Z0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ft.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const a=this.resolve(t,r);return a&&a.res!==void 0}extractFromKey(t,r){let a=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let s=r.ns||this.options.defaultNS||[];const i=a&&t.indexOf(a)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!lf(t,a,n);if(i&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:s};const c=t.split(a);(a!==n||a===n&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(n)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,r,a){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 n=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),u=l[l.length-1],c=r.lng||this.language,m=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(m){const w=r.nsSeparator||this.options.nsSeparator;return n?{res:`${u}${w}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${w}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:i}const f=this.resolve(t,r);let d=f&&f.res;const x=f&&f.usedKey||i,y=f&&f.exactUsedKey||i,_=Object.prototype.toString.apply(d),g=["[object Number]","[object Function]","[object RegExp]"],j=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&g.indexOf(_)<0&&!(typeof j=="string"&&Array.isArray(d))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,d,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(f.res=w,f.usedParams=this.getUsedParamsDetails(r),f):w}if(s){const w=Array.isArray(d),S=w?[]:{},P=w?y:x;for(const A in d)if(Object.prototype.hasOwnProperty.call(d,A)){const V=`${P}${s}${A}`;S[A]=this.translate(V,{...r,joinArrays:!1,ns:l}),S[A]===V&&(S[A]=d[A])}d=S}}else if(R&&typeof j=="string"&&Array.isArray(d))d=d.join(j),d&&(d=this.extendTranslation(d,t,r,a));else{let w=!1,S=!1;const P=r.count!==void 0&&typeof r.count!="string",A=Bn.hasDefaultValue(r),V=P?this.pluralResolver.getSuffix(c,r.count,r):"",te=r.ordinal&&P?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",U=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),F=U&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${V}`]||r[`defaultValue${te}`]||r.defaultValue;!this.isValidLookup(d)&&A&&(w=!0,d=F),this.isValidLookup(d)||(S=!0,d=i);const X=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:d,Q=A&&F!==d&&this.options.updateMissing;if(S||w||Q){if(this.logger.log(Q?"updateKey":"missingKey",c,u,i,Q?F:d),s){const re=this.resolve(i,{...r,keySeparator:!1});re&&re.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 Z=[];const je=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&je&&je[0])for(let re=0;re<je.length;re++)Z.push(je[re]);else this.options.saveMissingTo==="all"?Z=this.languageUtils.toResolveHierarchy(r.lng||this.language):Z.push(r.lng||this.language);const ce=(re,we,Oe)=>{const nt=A&&Oe!==d?Oe:X;this.options.missingKeyHandler?this.options.missingKeyHandler(re,u,we,nt,Q,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(re,u,we,nt,Q,r),this.emit("missingKey",re,u,we,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?Z.forEach(re=>{const we=this.pluralResolver.getSuffixes(re,r);U&&r[`defaultValue${this.options.pluralSeparator}zero`]&&we.indexOf(`${this.options.pluralSeparator}zero`)<0&&we.push(`${this.options.pluralSeparator}zero`),we.forEach(Oe=>{ce([re],i+Oe,r[`defaultValue${Oe}`]||F)})}):ce(Z,i,F))}d=this.extendTranslation(d,t,r,f,a),S&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${u}:${i}`),(S||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,w?d:void 0):d=this.options.parseMissingKeyHandler(d))}return n?(f.res=d,f.usedParams=this.getUsedParamsDetails(r),f):d}extendTranslation(t,r,a,n,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const c=typeof t=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(c){const d=t.match(this.interpolator.nestingRegexp);m=d&&d.length}let f=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,a.lng||this.language||n.usedLng,a),c){const d=t.match(this.interpolator.nestingRegexp),x=d&&d.length;m<x&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&n&&n.res&&(a.lng=this.language||n.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,x=new Array(d),y=0;y<d;y++)x[y]=arguments[y];return s&&s[0]===x[0]&&!a.context?(i.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${r[0]}`),null):i.translate(...x,r)},a)),a.interpolation&&this.interpolator.reset()}const l=a.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&a.applyPostProcessor!==!1&&(t=dl.handle(u,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,n,s,i,l;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(a))return;const c=this.extractFromKey(u,r),m=c.key;n=m;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=r.count!==void 0&&typeof r.count!="string",x=d&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(g=>{this.isValidLookup(a)||(l=g,!ko[`${_[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(ko[`${_[0]}-${g}`]=!0,this.logger.warn(`key "${n}" for languages "${_.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(j=>{if(this.isValidLookup(a))return;i=j;const R=[m];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,m,j,g,r);else{let w;d&&(w=this.pluralResolver.getSuffix(j,r.count,r));const S=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(R.push(m+w),r.ordinal&&w.indexOf(P)===0&&R.push(m+w.replace(P,this.options.pluralSeparator)),x&&R.push(m+S)),y){const A=`${m}${this.options.contextSeparator}${r.context}`;R.push(A),d&&(R.push(A+w),r.ordinal&&w.indexOf(P)===0&&R.push(A+w.replace(P,this.options.pluralSeparator)),x&&R.push(A+S))}}let C;for(;C=R.pop();)this.isValidLookup(a)||(s=C,a=this.getResource(j,g,C,r))}))})}),{res:a,usedKey:n,exactUsedKey:s,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,a,n):this.resourceStore.getResource(t,r,a,n)}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"],a=t.replace&&typeof t.replace!="string";let n=a?t.replace:t;if(a&&typeof t.count<"u"&&(n.count=t.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!a){n={...n};for(const s of r)delete n[s]}return n}static hasDefaultValue(t){const r="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&r===a.substring(0,r.length)&&t[a]!==void 0)return!0;return!1}}const Oa=e=>e.charAt(0).toUpperCase()+e.slice(1);class Ao{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ft.create("languageUtils")}getScriptPartFromCode(t){if(t=Un(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=Un(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 a=t.split("-");return this.options.lowerCaseLng?a=a.map(n=>n.toLowerCase()):a.length===2?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),r.indexOf(a[1].toLowerCase())>-1&&(a[1]=Oa(a[1].toLowerCase()))):a.length===3&&(a[0]=a[0].toLowerCase(),a[1].length===2&&(a[1]=a[1].toUpperCase()),a[0]!=="sgn"&&a[2].length===2&&(a[2]=a[2].toUpperCase()),r.indexOf(a[1].toLowerCase())>-1&&(a[1]=Oa(a[1].toLowerCase())),r.indexOf(a[2].toLowerCase())>-1&&(a[2]=Oa(a[2].toLowerCase()))),a.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(a=>{if(r)return;const n=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(n))&&(r=n)}),!r&&this.options.supportedLngs&&t.forEach(a=>{if(r)return;const n=this.getLanguagePartFromCode(a);if(this.isSupportedCode(n))return r=n;r=this.options.supportedLngs.find(s=>{if(s===n)return s;if(!(s.indexOf("-")<0&&n.indexOf("-")<0)&&(s.indexOf("-")>0&&n.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===n||s.indexOf(n)===0&&n.length>1))return s})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let a=t[r];return a||(a=t[this.getScriptPartFromCode(r)]),a||(a=t[this.formatLanguageCode(r)]),a||(a=t[this.getLanguagePartFromCode(r)]),a||(a=t.default),a||[]}toResolveHierarchy(t,r){const a=this.getFallbackCodes(r||this.options.fallbackLng||[],t),n=[],s=i=>{i&&(this.isSupportedCode(i)?n.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),a.forEach(i=>{n.indexOf(i)<0&&s(this.formatLanguageCode(i))}),n}}let uf=[{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}],cf={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const mf=["v1","v2","v3"],df=["v4"],Co={zero:0,one:1,two:2,few:3,many:4,other:5},ff=()=>{const e={};return uf.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:cf[t.fc]}})}),e};class hf{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ft.create("pluralResolver"),(!this.options.compatibilityJSON||df.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=ff()}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(Un(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 a=this.getRule(t,r);return this.shouldUseIntlApi()?a&&a.resolvedOptions().pluralCategories.length>1:a&&a.numbers.length>1}getPluralFormsOfKey(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,a).map(n=>`${r}${n}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=this.getRule(t,r);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort((n,s)=>Co[n]-Co[s]).map(n=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n}`):a.numbers.map(n=>this.getSuffix(t,n,r)):[]}getSuffix(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(t,a);return n?this.shouldUseIntlApi()?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n.select(r)}`:this.getSuffixRetroCompatible(n,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const a=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let n=t.numbers[a];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(n===2?n="plural":n===1&&(n=""));const s=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return this.options.compatibilityJSON==="v1"?n===1?"":typeof n=="number"?`_plural_${n.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}shouldUseIntlApi(){return!mf.includes(this.options.compatibilityJSON)}}const Mo=function(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=tf(e,t,r);return!s&&n&&typeof r=="string"&&(s=es(e,r,a),s===void 0&&(s=es(t,r,a))),s},Ea=e=>e.replace(/\$/g,"$$$$");class gf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:a,useRawValueToEscape:n,prefix:s,prefixEscaped:i,suffix:l,suffixEscaped:u,formatSeparator:c,unescapeSuffix:m,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:x,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:g,maxReplaces:j,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:nf,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=s?cr(s):i||"{{",this.suffix=l?cr(l):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=m?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=d?cr(d):x||cr("$t("),this.nestingSuffix=y?cr(y):_||cr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=j||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,a)=>r&&r.source===a?(r.lastIndex=0,r):new RegExp(a,"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,a,n){let s,i,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=x=>{if(x.indexOf(this.formatSeparator)<0){const j=Mo(r,u,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,a,{...n,...r,interpolationkey:x}):j}const y=x.split(this.formatSeparator),_=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Mo(r,u,_,this.options.keySeparator,this.options.ignoreJSONStructure),g,a,{...n,...r,interpolationkey:_})};this.resetRegExp();const m=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>Ea(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?Ea(this.escape(x)):Ea(x)}].forEach(x=>{for(l=0;s=x.regex.exec(t);){const y=s[1].trim();if(i=c(y),i===void 0)if(typeof m=="function"){const g=m(t,s,n);i=typeof g=="string"?g:""}else if(n&&Object.prototype.hasOwnProperty.call(n,y))i="";else if(f){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=jo(i));const _=x.safeValue(i);if(t=t.replace(s[0],_),f?(x.regex.lastIndex+=i.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,s,i;const l=(u,c)=>{const m=this.nestingOptionsSeparator;if(u.indexOf(m)<0)return u;const f=u.split(new RegExp(`${m}[ ]*{`));let d=`{${f[1]}`;u=f[0],d=this.interpolate(d,i);const x=d.match(/'/g),y=d.match(/"/g);(x&&x.length%2===0&&!y||y.length%2!==0)&&(d=d.replace(/'/g,'"'));try{i=JSON.parse(d),c&&(i={...c,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,_),`${u}${m}${d}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;n=this.nestingRegexp.exec(t);){let u=[];i={...a},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const m=n[1].split(this.formatSeparator).map(f=>f.trim());n[1]=m.shift(),u=m,c=!0}if(s=r(l.call(this,n[1].trim(),i),i),s&&n[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=jo(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),s=""),c&&(s=u.reduce((m,f)=>this.format(m,f,a.lng,{...a,interpolationkey:n[1].trim()}),s.trim())),t=t.replace(n[0],s),this.regexp.lastIndex=0}return t}}const pf=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const n=a[1].substring(0,a[1].length-1);t==="currency"&&n.indexOf(":")<0?r.currency||(r.currency=n.trim()):t==="relativetime"&&n.indexOf(":")<0?r.range||(r.range=n.trim()):n.split(";").forEach(i=>{if(i){const[l,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),m=l.trim();r[m]||(r[m]=c),c==="false"&&(r[m]=!1),c==="true"&&(r[m]=!0),isNaN(c)||(r[m]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},mr=e=>{const t={};return(r,a,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={formatParams:{[n.interpolationkey]:n.formatParams[n.interpolationkey]},interpolationKey:n.interpolationkey});const i=a+JSON.stringify(s);let l=t[i];return l||(l=e(Un(a),n),t[i]=l),l(r)}};class _f{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("formatter"),this.options=t,this.formats={number:mr((r,a)=>{const n=new Intl.NumberFormat(r,{...a});return s=>n.format(s)}),currency:mr((r,a)=>{const n=new Intl.NumberFormat(r,{...a,style:"currency"});return s=>n.format(s)}),datetime:mr((r,a)=>{const n=new Intl.DateTimeFormat(r,{...a});return s=>n.format(s)}),relativetime:mr((r,a)=>{const n=new Intl.RelativeTimeFormat(r,{...a});return s=>n.format(s,a.range||"day")}),list:mr((r,a)=>{const n=new Intl.ListFormat(r,{...a});return s=>n.format(s)})},this.init(t)}init(t){const a=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=mr(r)}format(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(u=>u.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,u)=>{const{formatName:c,formatOptions:m}=pf(u);if(this.formats[c]){let f=l;try{const d=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},x=d.locale||d.lng||n.locale||n.lng||a;f=this.formats[c](l,x,{...m,...n,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}const yf=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class bf extends ia{constructor(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=a,this.languageUtils=a.languageUtils,this.options=n,this.logger=ft.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(a,n.backend,n)}queueLoad(t,r,a,n){const s={},i={},l={},u={};return t.forEach(c=>{let m=!0;r.forEach(f=>{const d=`${c}|${f}`;!a.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?i[d]===void 0&&(i[d]=!0):(this.state[d]=1,m=!1,i[d]===void 0&&(i[d]=!0),s[d]===void 0&&(s[d]=!0),u[f]===void 0&&(u[f]=!0)))}),m||(l[c]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,r,a){const n=t.split("|"),s=n[0],i=n[1];r&&this.emit("failedLoading",s,i,r),a&&this.store.addResourceBundle(s,i,a,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(u=>{ef(u.loaded,[s],i),yf(u,t),r&&u.errors.push(r),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{l[c]||(l[c]={});const m=u.loaded[c];m.length&&m.forEach(f=>{l[c][f]===void 0&&(l[c][f]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:a,tried:n,wait:s,callback:i});return}this.readingCalls++;const l=(c,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&m&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,a,n+1,s*2,i)},s);return}i(c,m)},u=this.backend[a].bind(this.backend);if(u.length===2){try{const c=u(t,r);c&&typeof c.then=="function"?c.then(m=>l(null,m)).catch(l):l(null,c)}catch(c){l(c)}return}return u(t,r,l)}prepareLoading(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=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."),n&&n();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const s=this.queueLoad(t,r,a,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,a){this.prepareLoading(t,r,{},a)}reload(t,r,a){this.prepareLoading(t,r,{reload:!0},a)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const a=t.split("|"),n=a[0],s=a[1];this.read(n,s,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${s} for language ${n} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${s} for language ${n}`,l),this.loaded(t,i,l)})}saveMissing(t,r,a,n,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${a}" 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(!(a==null||a==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let m;c.length===5?m=c(t,r,a,n,u):m=c(t,r,a,n),m&&typeof m.then=="function"?m.then(f=>l(null,f)).catch(l):l(null,m)}catch(m){l(m)}else c(t,r,a,n,l,u)}!t||!t[0]||this.store.addResource(t[0],r,a,n)}}}const Io=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(a=>{t[a]=r[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),To=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),gn=()=>{},xf=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Hr extends ia{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=To(t),this.services={},this.logger=ft,this.modules={external:[]},xf(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]:{},a=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(a=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 n=Io();this.options={...n,...this.options,...To(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?ft.init(s(this.modules.logger),this.options):ft.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=_f);const f=new Ao(this.options);this.store=new Po(this.options.resources,this.options);const d=this.services;d.logger=ft,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new hf(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(d.formatter=s(m),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new gf(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new bf(s(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(x){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(x,..._)}),this.modules.languageDetector&&(d.languageDetector=s(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=s(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Bn(this.services,this.options),this.translator.on("*",function(x){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(x,..._)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,a||(a=gn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=function(){return t.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return t.store[m](...arguments),t}});const u=$r(),c=()=>{const m=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(d),a(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const n=typeof t=="string"?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const s=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(s,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(l)})}else a(null)}reloadResources(t,r,a){const n=$r();return t||(t=this.languages),r||(r=this.options.ns),a||(a=gn),this.services.backendConnector.reload(t,r,s=>{n.resolve(),a(s)}),n}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"&&dl.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 a=this.languages[r];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}changeLanguage(t,r){var a=this;this.isLanguageChangingTo=t;const n=$r();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,n.resolve(function(){return a.t(...arguments)}),r&&r(u,function(){return a.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const c=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,m=>{i(m,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),n}getFixedT(t,r,a){var n=this;const s=function(i,l){let u;if(typeof l!="object"){for(var c=arguments.length,m=new Array(c>2?c-2:0),f=2;f<c;f++)m[f-2]=arguments[f];u=n.options.overloadTranslationOptionHandler([i,l].concat(m))}else u={...l};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||a||s.keyPrefix);const d=n.options.keySeparator||".";let x;return u.keyPrefix&&Array.isArray(i)?x=i.map(y=>`${u.keyPrefix}${d}${y}`):x=u.keyPrefix?`${u.keyPrefix}${d}${i}`:i,n.t(x,u)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=r,s.keyPrefix=a,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=r.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const i=(l,u)=>{const c=this.services.backendConnector.state[`${l}|${u}`];return c===-1||c===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(a,t)&&(!n||i(s,t)))}loadNamespaces(t,r){const a=$r();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{a.resolve(),r&&r(n)}),a):(r&&r(),Promise.resolve())}loadLanguages(t,r){const a=$r();typeof t=="string"&&(t=[t]);const n=this.options.preload||[],s=t.filter(i=>n.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=n.concat(s),this.loadResources(i=>{a.resolve(),r&&r(i)}),a):(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"],a=this.services&&this.services.languageUtils||new Ao(Io());return r.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Hr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const a=t.forkResourceStore;a&&delete t.forkResourceStore;const n={...this.options,...t,isClone:!0},s=new Hr(n);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},a&&(s.store=new Po(this.store.data,n),s.services.resourceStore=s.store),s.translator=new Bn(s.services,n),s.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),m=1;m<u;m++)c[m-1]=arguments[m];s.emit(l,...c)}),s.init(n,r),s.translator.options=n,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Me=Hr.createInstance();Me.createInstance=Hr.createInstance;Me.createInstance;Me.dir;Me.init;Me.loadResources;Me.reloadResources;Me.use;Me.changeLanguage;Me.getFixedT;Me.t;Me.exists;Me.setDefaultNamespace;Me.hasLoadedNamespace;Me.loadNamespaces;Me.loadLanguages;const vf={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.Activate.bt":"Jogging aktivieren","Jogging.Activating.lb":"Jogging wird aktiviert","Jogging.JointLimitsReached.lb":"Joint-Limit für Joint {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},jf={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activate.bt":"Activate jogging","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},fl=Me.createInstance();fl.use(ec).init({supportedLngs:["en","de"],resources:{en:{translations:jf},de:{translations:vf}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function sn(e){return r=>o.jsx(Sf,{children:o.jsx(e,{...r})})}const Sf=({children:e})=>o.jsx(qt.I18nextProvider,{i18n:fl,children:e}),Rf=({title:e,titleId:t,...r},a)=>$.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("g",{id:"JogMinus"},$.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),wf=W.forwardRef(Rf),Pf=({title:e,titleId:t,...r},a)=>$.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("g",{id:"JogPlus"},$.createElement("g",{id:"Plus"},$.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),$.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),$.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),kf=W.forwardRef(Pf);function la(e){W.useEffect(e,[])}function hl(e){la(()=>mt.autorun(e))}function Is(e,t,r){la(()=>mt.reaction(e,t,r))}function jr(e){return la(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const ts=sn(Te.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:a,stopJogging:n,disabled:s,activeJoggingDirection:i,...l})=>{var C,w,S,P,A,V,te;jr(()=>{const U=r(),F=d.current;F&&(F.textContent=U)});const u=T.useTheme(),[c,m]=W.useState(null);W.useEffect(()=>{s&&R()},[s]);const f=i||c,d=W.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const x=f?(C=e.buttonBackgroundColor)==null?void 0:C.pressed:e.borderColor,y={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},_={...y,backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.default,":hover":{backgroundColor:(S=e.buttonBackgroundColor)==null?void 0:S.hovered},":active":{backgroundColor:(P=e.buttonBackgroundColor)==null?void 0:P.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(A=e.buttonBackgroundColor)==null?void 0:A.disabled,"svg path":{fill:u.palette.action.disabled}}},g={...y,backgroundColor:(V=e.buttonBackgroundColor)==null?void 0:V.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(te=e.buttonBackgroundColor)==null?void 0:te.pressed,"svg path":{fill:u.palette.action.disabled}}};function j(U,F){s||U.button===0&&(m(F),a(F))}function R(){m(null),n()}return o.jsxs(_r,{height:"64px",direction:"row",justifyContent:"center",...l,children:[o.jsx(T.IconButton,{disabled:s,disableRipple:!0,onPointerDown:U=>j(U,"-"),onPointerUp:R,onPointerOut:R,size:"large",sx:{...f==="-"?g:_,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${x??"#fff"}`,borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:o.jsx(wf,{})}),o.jsxs(_r,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:[o.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...s?{color:u.palette.action.disabled}:{}},...s?{"svg path":{fill:u.palette.action.disabled}}:{}},children:t}),o.jsx(T.Typography,{height:"22px",sx:{fontSize:"15px",color:s?u.palette.action.disabled:e.color,fontWeight:700},ref:d,children:r()})]}),o.jsx(T.IconButton,{disableRipple:!0,disabled:s,onPointerDown:U=>j(U,"+"),onPointerUp:R,onPointerOut:R,size:"large",sx:{...f==="+"?g:_,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${x??"#fff"}`,borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:o.jsx(kf,{})})]})}));var Ts={},La={};function Af(e){return nn("MuiSvgIcon",e)}qi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Cf=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Mf=e=>{const{color:t,fontSize:r,classes:a}=e,n={root:["root",t!=="inherit"&&`color${ke(t)}`,`fontSize${ke(r)}`]};return ws(n,Af,a)},If=wt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ke(r.color)}`],t[`fontSize${ke(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,a,n,s,i,l,u,c,m,f,d,x,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(n=e.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=e.typography)==null||(m=c.pxToRem)==null?void 0:m.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Jn=$.forwardRef(function(t,r){const a=Ms({props:t,name:"MuiSvgIcon"}),{children:n,className:s,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:m=!1,titleAccess:f,viewBox:d="0 0 24 24"}=a,x=Ue(a,Cf),y=$.isValidElement(n)&&n.type==="svg",_=M({},a,{color:i,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:d,hasSvgAsChild:y}),g={};m||(g.viewBox=d);const j=Mf(_);return o.jsxs(If,M({as:l,className:gt(j.root,s),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,x,y&&n.props,{ownerState:_,children:[y?n.props.children:n,f?o.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(Jn.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});Jn.muiName="SvgIcon";function Tf(e,t){function r(a,n){return o.jsx(Jn,M({"data-testid":`${t}Icon`,ref:n},a,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Jn.muiName,$.memo($.forwardRef(r))}const Of={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
78
- `)),Hi.configure(e)}},Ef=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ke,createChainedFunction:ld,createSvgIcon:Tf,debounce:ud,deprecatedPropType:cd,isMuiElement:md,ownerDocument:pr,ownerWindow:dd,requirePropFactory:fd,setRef:el,unstable_ClassNameGenerator:Of,unstable_useEnhancedEffect:Ss,unstable_useId:gd,unsupportedProp:pd,useControlled:tl,useEventCallback:kn,useForkRef:Nn,useIsFocusVisible:rl},Symbol.toStringTag,{value:"Module"})),Lf=Rt(Ef);var Oo;function gl(){return Oo||(Oo=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Lf}(La)),La}var Nf=oa;Object.defineProperty(Ts,"__esModule",{value:!0});var pl=Ts.default=void 0,$f=Nf(gl()),Ff=o;pl=Ts.default=(0,$f.default)((0,Ff.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Os={},Df=oa;Object.defineProperty(Os,"__esModule",{value:!0});var _l=Os.default=void 0,Uf=Df(gl()),Bf=o;_l=Os.default=(0,Uf.default)((0,Bf.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function zt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=typeof global=="object"&&global&&global.Object===Object&&global,Jf=typeof self=="object"&&self&&self.Object===Object&&self,_t=yl||Jf||Function("return this")(),Na=function(){return _t.Date.now()},Vf=/\s/;function Gf(e){for(var t=e.length;t--&&Vf.test(e.charAt(t)););return t}var Kf=/^\s+/;function zf(e){return e&&e.slice(0,Gf(e)+1).replace(Kf,"")}var Nt=_t.Symbol,bl=Object.prototype,Wf=bl.hasOwnProperty,Hf=bl.toString,Fr=Nt?Nt.toStringTag:void 0;function Xf(e){var t=Wf.call(e,Fr),r=e[Fr];try{e[Fr]=void 0;var a=!0}catch{}var n=Hf.call(e);return a&&(t?e[Fr]=r:delete e[Fr]),n}var qf=Object.prototype,Yf=qf.toString;function Zf(e){return Yf.call(e)}var Qf="[object Null]",eh="[object Undefined]",Eo=Nt?Nt.toStringTag:void 0;function Yt(e){return e==null?e===void 0?eh:Qf:Eo&&Eo in Object(e)?Xf(e):Zf(e)}function Wt(e){return e!=null&&typeof e=="object"}var th="[object Symbol]";function ua(e){return typeof e=="symbol"||Wt(e)&&Yt(e)==th}var Lo=NaN,rh=/^[-+]0x[0-9a-f]+$/i,nh=/^0b[01]+$/i,ah=/^0o[0-7]+$/i,sh=parseInt;function No(e){if(typeof e=="number")return e;if(ua(e))return Lo;if(zt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zf(e);var r=nh.test(e);return r||ah.test(e)?sh(e.slice(2),r?2:8):rh.test(e)?Lo:+e}var oh="Expected a function",ih=Math.max,lh=Math.min;function uh(e,t,r){var a,n,s,i,l,u,c=0,m=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(oh);t=No(t)||0,zt(r)&&(m=!!r.leading,f="maxWait"in r,s=f?ih(No(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d);function x(P){var A=a,V=n;return a=n=void 0,c=P,i=e.apply(V,A),i}function y(P){return c=P,l=setTimeout(j,t),m?x(P):i}function _(P){var A=P-u,V=P-c,te=t-A;return f?lh(te,s-V):te}function g(P){var A=P-u,V=P-c;return u===void 0||A>=t||A<0||f&&V>=s}function j(){var P=Na();if(g(P))return R(P);l=setTimeout(j,_(P))}function R(P){return l=void 0,d&&a?x(P):(a=n=void 0,i)}function C(){l!==void 0&&clearTimeout(l),c=0,a=u=n=l=void 0}function w(){return l===void 0?i:R(Na())}function S(){var P=Na(),A=g(P);if(a=arguments,n=this,u=P,A){if(l===void 0)return y(u);if(f)return clearTimeout(l),l=setTimeout(j,t),x(u)}return l===void 0&&(l=setTimeout(j,t)),i}return S.cancel=C,S.flush=w,S}var ch="Expected a function";function mh(e,t,r){var a=!0,n=!0;if(typeof e!="function")throw new TypeError(ch);return zt(r)&&(a="leading"in r?!!r.leading:a,n="trailing"in r?!!r.trailing:n),uh(e,t,{leading:a,maxWait:t,trailing:n})}const xl=sn(Te.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:a,getValueDegs:n,disabled:s,...i})=>{var C,w,S,P,A,V,te;const{t:l}=qt.useTranslation(),[u,c]=W.useState(),m=T.useTheme(),f={background:(C=m.palette.backgroundPaperElevation)==null?void 0:C[4],color:(w=m.palette.backgroundPaperElevation)==null?void 0:w[11]},d=Te.useLocalObservable(()=>({activeJoggingDir:null,startJogging(U){this.activeJoggingDir=U,e(U)},stopJogging(){this.activeJoggingDir=null,t()}})),x=mh(()=>{c(n())},50);jr(x);function y(U){U.button===0&&d.startJogging("-")}function _(U){U.button===0&&d.startJogging("+")}function g(U){d.stopJogging()}function j(U){U.target===U.currentTarget&&d.stopJogging()}function R(U,F=1){if(U===void 0||isNaN(U))return"";const H=l("General.degree.variable",{amount:U.toFixed(F)});return U>0&&F===0?`+${H}`:H}return o.jsxs(_r,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:m.palette.text.primary,alignContent:"center",backgroundColor:(S=m.palette.backgroundPaperElevation)==null?void 0:S[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(P=m.palette.backgroundPaperElevation)==null?void 0:P[11],color:m.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(A=m.palette.backgroundPaperElevation)==null?void 0:A[9]},"&:active":{...f}}},children:[o.jsx(T.IconButton,{onPointerDown:y,onPointerUp:g,onPointerOut:j,disabled:s,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...d.activeJoggingDir==="-"?f:{}},children:o.jsx(pl,{})}),o.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(V=m.palette.backgroundPaperElevation)==null?void 0:V[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[o.jsx(T.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:s?m.palette.action.disabled:m.palette.text.primary},children:R(u)}),o.jsx(T.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:a,value:u||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:s?m.palette.action.disabled:m.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:s?m.palette.action.disabled:m.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(te=m.palette.backgroundPaperElevation)==null?void 0:te[5],opacity:1}},marks:r!==void 0&&a!==void 0&&[{value:r,label:R(r,0)},{value:a,label:R(a,0)}]})]}),o.jsx(T.IconButton,{onPointerDown:_,onPointerUp:g,onPointerOut:j,disabled:s,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...d.activeJoggingDir==="+"?f:{}},children:o.jsx(_l,{})})]})}));function vl(e,t){return function(){return e.apply(t,arguments)}}const{toString:dh}=Object.prototype,{getPrototypeOf:Es}=Object,ca=(e=>t=>{const r=dh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>ca(t)===e),ma=e=>t=>typeof t===e,{isArray:Sr}=Array,Xr=ma("undefined");function fh(e){return e!==null&&!Xr(e)&&e.constructor!==null&&!Xr(e.constructor)&&ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jl=it("ArrayBuffer");function hh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jl(e.buffer),t}const gh=ma("string"),ze=ma("function"),Sl=ma("number"),da=e=>e!==null&&typeof e=="object",ph=e=>e===!0||e===!1,In=e=>{if(ca(e)!=="object")return!1;const t=Es(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_h=it("Date"),yh=it("File"),bh=it("Blob"),xh=it("FileList"),vh=e=>da(e)&&ze(e.pipe),jh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ze(e.append)&&((t=ca(e))==="formdata"||t==="object"&&ze(e.toString)&&e.toString()==="[object FormData]"))},Sh=it("URLSearchParams"),[Rh,wh,Ph,kh]=["ReadableStream","Request","Response","Headers"].map(it),Ah=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function on(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),Sr(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(a=0;a<i;a++)l=s[a],t.call(null,e[l],l,e)}}function Rl(e,t){t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wl=e=>!Xr(e)&&e!==Vt;function rs(){const{caseless:e}=wl(this)&&this||{},t={},r=(a,n)=>{const s=e&&Rl(t,n)||n;In(t[s])&&In(a)?t[s]=rs(t[s],a):In(a)?t[s]=rs({},a):Sr(a)?t[s]=a.slice():t[s]=a};for(let a=0,n=arguments.length;a<n;a++)arguments[a]&&on(arguments[a],r);return t}const Ch=(e,t,r,{allOwnKeys:a}={})=>(on(t,(n,s)=>{r&&ze(n)?e[s]=vl(n,r):e[s]=n},{allOwnKeys:a}),e),Mh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ih=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Th=(e,t,r,a)=>{let n,s,i;const l={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)i=n[s],(!a||a(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Es(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Oh=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},Eh=e=>{if(!e)return null;if(Sr(e))return e;let t=e.length;if(!Sl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Lh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Es(Uint8Array)),Nh=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=a.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},$h=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},Fh=it("HTMLFormElement"),Dh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),$o=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Uh=it("RegExp"),Pl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};on(r,(n,s)=>{let i;(i=t(n,s,e))!==!1&&(a[s]=i||n)}),Object.defineProperties(e,a)},Bh=e=>{Pl(e,(t,r)=>{if(ze(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(ze(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jh=(e,t)=>{const r={},a=n=>{n.forEach(s=>{r[s]=!0})};return Sr(e)?a(e):a(String(e).split(t)),r},Vh=()=>{},Gh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,$a="abcdefghijklmnopqrstuvwxyz",Fo="0123456789",kl={DIGIT:Fo,ALPHA:$a,ALPHA_DIGIT:$a+$a.toUpperCase()+Fo},Kh=(e=16,t=kl.ALPHA_DIGIT)=>{let r="";const{length:a}=t;for(;e--;)r+=t[Math.random()*a|0];return r};function zh(e){return!!(e&&ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Wh=e=>{const t=new Array(10),r=(a,n)=>{if(da(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[n]=a;const s=Sr(a)?[]:{};return on(a,(i,l)=>{const u=r(i,n+1);!Xr(u)&&(s[l]=u)}),t[n]=void 0,s}}return a};return r(e,0)},Hh=it("AsyncFunction"),Xh=e=>e&&(da(e)||ze(e))&&ze(e.then)&&ze(e.catch),Al=((e,t)=>e?setImmediate:t?((r,a)=>(Vt.addEventListener("message",({source:n,data:s})=>{n===Vt&&s===r&&a.length&&a.shift()()},!1),n=>{a.push(n),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ze(Vt.postMessage)),qh=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||Al,v={isArray:Sr,isArrayBuffer:jl,isBuffer:fh,isFormData:jh,isArrayBufferView:hh,isString:gh,isNumber:Sl,isBoolean:ph,isObject:da,isPlainObject:In,isReadableStream:Rh,isRequest:wh,isResponse:Ph,isHeaders:kh,isUndefined:Xr,isDate:_h,isFile:yh,isBlob:bh,isRegExp:Uh,isFunction:ze,isStream:vh,isURLSearchParams:Sh,isTypedArray:Lh,isFileList:xh,forEach:on,merge:rs,extend:Ch,trim:Ah,stripBOM:Mh,inherits:Ih,toFlatObject:Th,kindOf:ca,kindOfTest:it,endsWith:Oh,toArray:Eh,forEachEntry:Nh,matchAll:$h,isHTMLForm:Fh,hasOwnProperty:$o,hasOwnProp:$o,reduceDescriptors:Pl,freezeMethods:Bh,toObjectSet:Jh,toCamelCase:Dh,noop:Vh,toFiniteNumber:Gh,findKey:Rl,global:Vt,isContextDefined:wl,ALPHABET:kl,generateString:Kh,isSpecCompliantForm:zh,toJSONObject:Wh,isAsyncFn:Hh,isThenable:Xh,setImmediate:Al,asap:qh};function G(e,t,r,a,n){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),a&&(this.request=a),n&&(this.response=n)}v.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Cl=G.prototype,Ml={};["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=>{Ml[e]={value:e}});Object.defineProperties(G,Ml);Object.defineProperty(Cl,"isAxiosError",{value:!0});G.from=(e,t,r,a,n,s)=>{const i=Object.create(Cl);return v.toFlatObject(e,i,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),G.call(i,e.message,t,r,a,n),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Yh=null;function ns(e){return v.isPlainObject(e)||v.isArray(e)}function Il(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Do(e,t,r){return e?e.concat(t).map(function(n,s){return n=Il(n),!r&&s?"["+n+"]":n}).join(r?".":""):t}function Zh(e){return v.isArray(e)&&!e.some(ns)}const Qh=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function fa(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,g){return!v.isUndefined(g[_])});const a=r.metaTokens,n=r.visitor||m,s=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(n))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!u&&v.isBlob(y))throw new G("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function m(y,_,g){let j=y;if(y&&!g&&typeof y=="object"){if(v.endsWith(_,"{}"))_=a?_:_.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&Zh(y)||(v.isFileList(y)||v.endsWith(_,"[]"))&&(j=v.toArray(y)))return _=Il(_),j.forEach(function(C,w){!(v.isUndefined(C)||C===null)&&t.append(i===!0?Do([_],w,s):i===null?_:_+"[]",c(C))}),!1}return ns(y)?!0:(t.append(Do(g,_,s),c(y)),!1)}const f=[],d=Object.assign(Qh,{defaultVisitor:m,convertValue:c,isVisitable:ns});function x(y,_){if(!v.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(y),v.forEach(y,function(j,R){(!(v.isUndefined(j)||j===null)&&n.call(t,j,v.isString(R)?R.trim():R,_,d))===!0&&x(j,_?_.concat(R):[R])}),f.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Uo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Ls(e,t){this._pairs=[],e&&fa(e,this,t)}const Tl=Ls.prototype;Tl.append=function(t,r){this._pairs.push([t,r])};Tl.toString=function(t){const r=t?function(a){return t.call(this,a,Uo)}:Uo;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function eg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ol(e,t,r){if(!t)return e;const a=r&&r.encode||eg,n=r&&r.serialize;let s;if(n?s=n(t,r):s=v.isURLSearchParams(t)?t.toString():new Ls(t,r).toString(a),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Bo{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(a){a!==null&&t(a)})}}const El={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tg=typeof URLSearchParams<"u"?URLSearchParams:Ls,rg=typeof FormData<"u"?FormData:null,ng=typeof Blob<"u"?Blob:null,ag={isBrowser:!0,classes:{URLSearchParams:tg,FormData:rg,Blob:ng},protocols:["http","https","file","blob","url","data"]},Ns=typeof window<"u"&&typeof document<"u",sg=(e=>Ns&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),og=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ig=Ns&&window.location.href||"http://localhost",lg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ns,hasStandardBrowserEnv:sg,hasStandardBrowserWebWorkerEnv:og,origin:ig},Symbol.toStringTag,{value:"Module"})),st={...lg,...ag};function ug(e,t){return fa(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,a,n,s){return st.isNode&&v.isBuffer(r)?(this.append(a,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function cg(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mg(e){const t={},r=Object.keys(e);let a;const n=r.length;let s;for(a=0;a<n;a++)s=r[a],t[s]=e[s];return t}function Ll(e){function t(r,a,n,s){let i=r[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),u=s>=r.length;return i=!i&&v.isArray(n)?n.length:i,u?(v.hasOwnProp(n,i)?n[i]=[n[i],a]:n[i]=a,!l):((!n[i]||!v.isObject(n[i]))&&(n[i]=[]),t(r,a,n[i],s)&&v.isArray(n[i])&&(n[i]=mg(n[i])),!l)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(a,n)=>{t(cg(a),n,r,0)}),r}return null}function dg(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const ln={transitional:El,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",n=a.indexOf("application/json")>-1,s=v.isObject(t);if(s&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return n?JSON.stringify(Ll(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return ug(t,this.formSerializer).toString();if((l=v.isFileList(t))||a.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return fa(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||n?(r.setContentType("application/json",!1),dg(t)):t}],transformResponse:[function(t){const r=this.transitional||ln.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(a&&!this.responseType||n)){const i=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?G.from(l,G.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{ln.headers[e]={}});const fg=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hg=e=>{const t={};let r,a,n;return e&&e.split(`
79
- `).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),a=i.substring(n+1).trim(),!(!r||t[r]&&fg[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t},Jo=Symbol("internals");function Dr(e){return e&&String(e).trim().toLowerCase()}function Tn(e){return e===!1||e==null?e:v.isArray(e)?e.map(Tn):String(e)}function gg(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const pg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fa(e,t,r,a,n){if(v.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!v.isString(t)){if(v.isString(a))return t.indexOf(a)!==-1;if(v.isRegExp(a))return a.test(t)}}function _g(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function yg(e,t){const r=v.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,s,i){return this[a].call(this,t,n,s,i)},configurable:!0})})}let Fe=class{constructor(t){t&&this.set(t)}set(t,r,a){const n=this;function s(l,u,c){const m=Dr(u);if(!m)throw new Error("header name must be a non-empty string");const f=v.findKey(n,m);(!f||n[f]===void 0||c===!0||c===void 0&&n[f]!==!1)&&(n[f||u]=Tn(l))}const i=(l,u)=>v.forEach(l,(c,m)=>s(c,m,u));if(v.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(v.isString(t)&&(t=t.trim())&&!pg(t))i(hg(t),r);else if(v.isHeaders(t))for(const[l,u]of t.entries())s(u,l,a);else t!=null&&s(r,t,a);return this}get(t,r){if(t=Dr(t),t){const a=v.findKey(this,t);if(a){const n=this[a];if(!r)return n;if(r===!0)return gg(n);if(v.isFunction(r))return r.call(this,n,a);if(v.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Dr(t),t){const a=v.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||Fa(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let n=!1;function s(i){if(i=Dr(i),i){const l=v.findKey(a,i);l&&(!r||Fa(a,a[l],l,r))&&(delete a[l],n=!0)}}return v.isArray(t)?t.forEach(s):s(t),n}clear(t){const r=Object.keys(this);let a=r.length,n=!1;for(;a--;){const s=r[a];(!t||Fa(this,this[s],s,t,!0))&&(delete this[s],n=!0)}return n}normalize(t){const r=this,a={};return v.forEach(this,(n,s)=>{const i=v.findKey(a,s);if(i){r[i]=Tn(n),delete r[s];return}const l=t?_g(s):String(s).trim();l!==s&&delete r[s],r[l]=Tn(n),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return v.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&v.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
80
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const a=(this[Jo]=this[Jo]={accessors:{}}).accessors,n=this.prototype;function s(i){const l=Dr(i);a[l]||(yg(n,i),a[l]=!0)}return v.isArray(t)?t.forEach(s):s(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});v.freezeMethods(Fe);function Da(e,t){const r=this||ln,a=t||r,n=Fe.from(a.headers);let s=a.data;return v.forEach(e,function(l){s=l.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function Nl(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,r){G.call(this,e??"canceled",G.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Rr,G,{__CANCEL__:!0});function $l(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new G("Request failed with status code "+r.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function bg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xg(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,s=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),m=a[s];i||(i=c),r[n]=u,a[n]=c;let f=s,d=0;for(;f!==n;)d+=r[f++],f=f%e;if(n=(n+1)%e,n===s&&(s=(s+1)%e),c-i<t)return;const x=m&&c-m;return x?Math.round(d*1e3/x):void 0}}function vg(e,t){let r=0,a=1e3/t,n,s;const i=(c,m=Date.now())=>{r=m,n=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const m=Date.now(),f=m-r;f>=a?i(c,m):(n=c,s||(s=setTimeout(()=>{s=null,i(n)},a-f)))},()=>n&&i(n)]}const Vn=(e,t,r=3)=>{let a=0;const n=xg(50,250);return vg(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,u=i-a,c=n(u),m=i<=l;a=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&m?(l-i)/c:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},Vo=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},Go=e=>(...t)=>v.asap(()=>e(...t)),jg=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let a;function n(s){let i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return a=n(window.location.href),function(i){const l=v.isString(i)?n(i):i;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}(),Sg=st.hasStandardBrowserEnv?{write(e,t,r,a,n,s){const i=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),v.isString(a)&&i.push("path="+a),v.isString(n)&&i.push("domain="+n),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fl(e,t){return e&&!Rg(t)?wg(e,t):t}const Ko=e=>e instanceof Fe?{...e}:e;function Ht(e,t){t=t||{};const r={};function a(c,m,f){return v.isPlainObject(c)&&v.isPlainObject(m)?v.merge.call({caseless:f},c,m):v.isPlainObject(m)?v.merge({},m):v.isArray(m)?m.slice():m}function n(c,m,f){if(v.isUndefined(m)){if(!v.isUndefined(c))return a(void 0,c,f)}else return a(c,m,f)}function s(c,m){if(!v.isUndefined(m))return a(void 0,m)}function i(c,m){if(v.isUndefined(m)){if(!v.isUndefined(c))return a(void 0,c)}else return a(void 0,m)}function l(c,m,f){if(f in t)return a(c,m);if(f in e)return a(void 0,c)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,m)=>n(Ko(c),Ko(m),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(m){const f=u[m]||n,d=f(e[m],t[m],m);v.isUndefined(d)&&f!==l||(r[m]=d)}),r}const Dl=e=>{const t=Ht({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:s,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=Ol(Fl(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(v.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...m]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...m].join("; "))}}if(st.hasStandardBrowserEnv&&(a&&v.isFunction(a)&&(a=a(t)),a||a!==!1&&jg(t.url))){const c=n&&s&&Sg.read(s);c&&i.set(n,c)}return t},Pg=typeof XMLHttpRequest<"u",kg=Pg&&function(e){return new Promise(function(r,a){const n=Dl(e);let s=n.data;const i=Fe.from(n.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=n,m,f,d,x,y;function _(){x&&x(),y&&y(),n.cancelToken&&n.cancelToken.unsubscribe(m),n.signal&&n.signal.removeEventListener("abort",m)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function j(){if(!g)return;const C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};$l(function(A){r(A),_()},function(A){a(A),_()},S),g=null}"onloadend"in g?g.onloadend=j:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(j)},g.onabort=function(){g&&(a(new G("Request aborted",G.ECONNABORTED,e,g)),g=null)},g.onerror=function(){a(new G("Network Error",G.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let w=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const S=n.transitional||El;n.timeoutErrorMessage&&(w=n.timeoutErrorMessage),a(new G(w,S.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,g)),g=null},s===void 0&&i.setContentType(null),"setRequestHeader"in g&&v.forEach(i.toJSON(),function(w,S){g.setRequestHeader(S,w)}),v.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&l!=="json"&&(g.responseType=n.responseType),c&&([d,y]=Vn(c,!0),g.addEventListener("progress",d)),u&&g.upload&&([f,x]=Vn(u),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",x)),(n.cancelToken||n.signal)&&(m=C=>{g&&(a(!C||C.type?new Rr(null,e,g):C),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(m),n.signal&&(n.signal.aborted?m():n.signal.addEventListener("abort",m)));const R=bg(n.url);if(R&&st.protocols.indexOf(R)===-1){a(new G("Unsupported protocol "+R+":",G.ERR_BAD_REQUEST,e));return}g.send(s||null)})},Ag=(e,t)=>{let r=new AbortController,a;const n=function(u){if(!a){a=!0,i();const c=u instanceof Error?u:this.reason;r.abort(c instanceof G?c:new Rr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{n(new G(`timeout ${t} of ms exceeded`,G.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",n):u.unsubscribe(n))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",n));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{s&&clearTimeout(s),s=null}]},Cg=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},Mg=async function*(e,t,r){for await(const a of e)yield*Cg(ArrayBuffer.isView(a)?a:await r(String(a)),t)},zo=(e,t,r,a,n)=>{const s=Mg(e,t,n);let i=0,l,u=c=>{l||(l=!0,a&&a(c))};return new ReadableStream({async pull(c){try{const{done:m,value:f}=await s.next();if(m){u(),c.close();return}let d=f.byteLength;if(r){let x=i+=d;r(x)}c.enqueue(new Uint8Array(f))}catch(m){throw u(m),m}},cancel(c){return u(c),s.return()}},{highWaterMark:2})},ha=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ul=ha&&typeof ReadableStream=="function",as=ha&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Bl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ig=Ul&&Bl(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Wo=64*1024,ss=Ul&&Bl(()=>v.isReadableStream(new Response("").body)),Gn={stream:ss&&(e=>e.body)};ha&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Gn[t]&&(Gn[t]=v.isFunction(e[t])?r=>r[t]():(r,a)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,a)})})})(new Response);const Tg=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await as(e)).byteLength},Og=async(e,t)=>{const r=v.toFiniteNumber(e.getContentLength());return r??Tg(t)},Eg=ha&&(async e=>{let{url:t,method:r,data:a,signal:n,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:m,withCredentials:f="same-origin",fetchOptions:d}=Dl(e);c=c?(c+"").toLowerCase():"text";let[x,y]=n||s||i?Ag([n,s],i):[],_,g;const j=()=>{!_&&setTimeout(()=>{x&&x.unsubscribe()}),_=!0};let R;try{if(u&&Ig&&r!=="get"&&r!=="head"&&(R=await Og(m,a))!==0){let P=new Request(t,{method:"POST",body:a,duplex:"half"}),A;if(v.isFormData(a)&&(A=P.headers.get("content-type"))&&m.setContentType(A),P.body){const[V,te]=Vo(R,Vn(Go(u)));a=zo(P.body,Wo,V,te,as)}}v.isString(f)||(f=f?"include":"omit"),g=new Request(t,{...d,signal:x,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:a,duplex:"half",credentials:f});let C=await fetch(g);const w=ss&&(c==="stream"||c==="response");if(ss&&(l||w)){const P={};["status","statusText","headers"].forEach(U=>{P[U]=C[U]});const A=v.toFiniteNumber(C.headers.get("content-length")),[V,te]=l&&Vo(A,Vn(Go(l),!0))||[];C=new Response(zo(C.body,Wo,V,()=>{te&&te(),w&&j()},as),P)}c=c||"text";let S=await Gn[v.findKey(Gn,c)||"text"](C,e);return!w&&j(),y&&y(),await new Promise((P,A)=>{$l(P,A,{data:S,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw j(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new G("Network Error",G.ERR_NETWORK,e,g),{cause:C.cause||C}):G.from(C,C&&C.code,e,g)}}),os={http:Yh,xhr:kg,fetch:Eg};v.forEach(os,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ho=e=>`- ${e}`,Lg=e=>v.isFunction(e)||e===null||e===!1,Jl={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let r,a;const n={};for(let s=0;s<t;s++){r=e[s];let i;if(a=r,!Lg(r)&&(a=os[(i=String(r)).toLowerCase()],a===void 0))throw new G(`Unknown adapter '${i}'`);if(a)break;n[i||"#"+s]=a}if(!a){const s=Object.entries(n).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
81
- `+s.map(Ho).join(`
82
- `):" "+Ho(s[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return a},adapters:os};function Ua(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function Xo(e){return Ua(e),e.headers=Fe.from(e.headers),e.data=Da.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jl.getAdapter(e.adapter||ln.adapter)(e).then(function(a){return Ua(e),a.data=Da.call(e,e.transformResponse,a),a.headers=Fe.from(a.headers),a},function(a){return Nl(a)||(Ua(e),a&&a.response&&(a.response.data=Da.call(e,e.transformResponse,a.response),a.response.headers=Fe.from(a.response.headers))),Promise.reject(a)})}const Vl="1.7.4",$s={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$s[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const qo={};$s.transitional=function(t,r,a){function n(s,i){return"[Axios v"+Vl+"] Transitional option '"+s+"'"+i+(a?". "+a:"")}return(s,i,l)=>{if(t===!1)throw new G(n(i," has been removed"+(r?" in "+r:"")),G.ERR_DEPRECATED);return r&&!qo[i]&&(qo[i]=!0,console.warn(n(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,l):!0}};function Ng(e,t,r){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const s=a[n],i=t[s];if(i){const l=e[s],u=l===void 0||i(l,s,e);if(u!==!0)throw new G("option "+s+" must be "+u,G.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new G("Unknown option "+s,G.ERR_BAD_OPTION)}}const is={assertOptions:Ng,validators:$s},Ot=is.validators;let Gt=class{constructor(t){this.defaults=t,this.interceptors={request:new Bo,response:new Bo}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const s=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
83
- `+s):a.stack=s}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ht(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:s}=r;a!==void 0&&is.assertOptions(a,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),n!=null&&(v.isFunction(n)?r.paramsSerializer={serialize:n}:is.assertOptions(n,{encode:Ot.function,serialize:Ot.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&v.merge(s.common,s[r.method]);s&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=Fe.concat(i,s);const l=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(u=u&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let m,f=0,d;if(!u){const y=[Xo.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),d=y.length,m=Promise.resolve(r);f<d;)m=m.then(y[f++],y[f++]);return m}d=l.length;let x=r;for(f=0;f<d;){const y=l[f++],_=l[f++];try{x=y(x)}catch(g){_.call(this,g);break}}try{m=Xo.call(this,x)}catch(y){return Promise.reject(y)}for(f=0,d=c.length;f<d;)m=m.then(c[f++],c[f++]);return m}getUri(t){t=Ht(this.defaults,t);const r=Fl(t.baseURL,t.url);return Ol(r,t.params,t.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(t){Gt.prototype[t]=function(r,a){return this.request(Ht(a||{},{method:t,url:r,data:(a||{}).data}))}});v.forEach(["post","put","patch"],function(t){function r(a){return function(s,i,l){return this.request(Ht(l||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Gt.prototype[t]=r(),Gt.prototype[t+"Form"]=r(!0)});let $g=class Gl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const a=this;this.promise.then(n=>{if(!a._listeners)return;let s=a._listeners.length;for(;s-- >0;)a._listeners[s](n);a._listeners=null}),this.promise.then=n=>{let s;const i=new Promise(l=>{a.subscribe(l),s=l}).then(n);return i.cancel=function(){a.unsubscribe(s)},i},t(function(s,i,l){a.reason||(a.reason=new Rr(s,i,l),r(a.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 Gl(function(n){t=n}),cancel:t}}};function Fg(e){return function(r){return e.apply(null,r)}}function Dg(e){return v.isObject(e)&&e.isAxiosError===!0}const ls={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(ls).forEach(([e,t])=>{ls[t]=e});function Kl(e){const t=new Gt(e),r=vl(Gt.prototype.request,t);return v.extend(r,Gt.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Kl(Ht(e,n))},r}const ve=Kl(ln);ve.Axios=Gt;ve.CanceledError=Rr;ve.CancelToken=$g;ve.isCancel=Nl;ve.VERSION=Vl;ve.toFormData=fa;ve.AxiosError=G;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=Fg;ve.isAxiosError=Dg;ve.mergeConfig=Ht;ve.AxiosHeaders=Fe;ve.formToJSON=e=>Ll(v.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Jl.getAdapter;ve.HttpStatusCode=ls;ve.default=ve;const{Axios:hb,AxiosError:Yo,CanceledError:gb,isCancel:pb,CancelToken:_b,VERSION:yb,all:bb,Cancel:xb,isAxiosError:vb,spread:jb,toFormData:Sb,AxiosHeaders:Rb,HttpStatusCode:wb,formToJSON:Pb,getAdapter:kb,mergeConfig:Ab}=ve;function Ug(e){try{return JSON.stringify(e)}catch{return}}function Bg(e){var t,r,a,n;return e instanceof Yo&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof Yo&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(a=e.response)==null?void 0:a.config.url}: ${JSON.stringify((n=e.response)==null?void 0:n.data)}`:e instanceof Error?e.message:`Unexpected error: ${Ug(e)||e}`}const ga=e=>{const t=e.softTimeout||3e3,[r,a]=W.useState(!1),n=T.useTheme();return W.useEffect(()=>{const s=setTimeout(()=>{a(!0)},t);return()=>clearTimeout(s)}),o.jsx(T.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:n.palette.text.primary},children:e.error?o.jsx(zl,{loadingMessage:e.message,error:e.error}):o.jsxs(o.Fragment,{children:[o.jsx(T.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&o.jsx("div",{children:e.message}),o.jsx(T.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:n.palette.text.secondary},children:"This is taking longer than expected..."})]})})},zl=e=>{const t=Bg(e.error),r=e.error instanceof Error?e.error.stack:null,a=T.useTheme();return o.jsxs(T.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:a.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Wn.lowerFirst(T.capitalize(e.loadingMessage))} - `:"")+t,o.jsx("br",{}),r&&o.jsx("pre",{children:r})]})},Jg=({title:e,titleId:t,...r},a)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:a,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Vg=W.forwardRef(Jg),Gg=({title:e,titleId:t,...r},a)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:a,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Kg=W.forwardRef(Gg),zg=({title:e,titleId:t,...r},a)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:a,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),Wg=W.forwardRef(zg),Hg=({title:e,titleId:t,...r},a)=>$.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),Xg=W.forwardRef(Hg),Zo=e=>o.jsx(T.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(2px)",zIndex:100,...e.sx||{}},...Wn.omit(e,"sx")}),Wl=Te.observer(({store:e,children:t})=>{const{t:r}=qt.useTranslation(),a=T.useTheme();function n(){var s,i;if(e.activationState==="inactive"&&!e.activationError)return o.jsx(Zo,{sx:{borderRadius:"6px",backgroundColor:`color-mix(in srgb, ${(s=a.palette.backgroundPaperElevation)==null?void 0:s[5]}, transparent)`},children:o.jsx(T.Button,{color:"primary",variant:"contained",onClick:()=>e.activate({manual:!0}),disabled:e.isLocked,children:r("Jogging.Activate.bt")})});if(e.activationState==="loading"||e.activationError)return o.jsx(Zo,{sx:{backgroundColor:`color-mix(in srgb, ${(i=a.palette.backgroundPaperElevation)==null?void 0:i[5]}, transparent)`},children:o.jsx(ga,{message:r("Jogging.Activating.lb"),error:e.activationError})})}return o.jsxs(T.Stack,{sx:{position:"relative",padding:"6px"},children:[n(),t]})});function qg(){this.__data__=[],this.size=0}function Hl(e,t){return e===t||e!==e&&t!==t}function pa(e,t){for(var r=e.length;r--;)if(Hl(e[r][0],t))return r;return-1}var Yg=Array.prototype,Zg=Yg.splice;function Qg(e){var t=this.__data__,r=pa(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Zg.call(t,r,1),--this.size,!0}function ep(e){var t=this.__data__,r=pa(t,e);return r<0?void 0:t[r][1]}function tp(e){return pa(this.__data__,e)>-1}function rp(e,t){var r=this.__data__,a=pa(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Pt.prototype.clear=qg;Pt.prototype.delete=Qg;Pt.prototype.get=ep;Pt.prototype.has=tp;Pt.prototype.set=rp;function np(){this.__data__=new Pt,this.size=0}function ap(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function sp(e){return this.__data__.get(e)}function op(e){return this.__data__.has(e)}var ip="[object AsyncFunction]",lp="[object Function]",up="[object GeneratorFunction]",cp="[object Proxy]";function Xl(e){if(!zt(e))return!1;var t=Yt(e);return t==lp||t==up||t==ip||t==cp}var Ba=_t["__core-js_shared__"],Qo=function(){var e=/[^.]+$/.exec(Ba&&Ba.keys&&Ba.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mp(e){return!!Qo&&Qo in e}var dp=Function.prototype,fp=dp.toString;function Zt(e){if(e!=null){try{return fp.call(e)}catch{}try{return e+""}catch{}}return""}var hp=/[\\^$.*+?()[\]{}|]/g,gp=/^\[object .+?Constructor\]$/,pp=Function.prototype,_p=Object.prototype,yp=pp.toString,bp=_p.hasOwnProperty,xp=RegExp("^"+yp.call(bp).replace(hp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vp(e){if(!zt(e)||mp(e))return!1;var t=Xl(e)?xp:gp;return t.test(Zt(e))}function jp(e,t){return e==null?void 0:e[t]}function Qt(e,t){var r=jp(e,t);return vp(r)?r:void 0}var qr=Qt(_t,"Map"),Yr=Qt(Object,"create");function Sp(){this.__data__=Yr?Yr(null):{},this.size=0}function Rp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wp="__lodash_hash_undefined__",Pp=Object.prototype,kp=Pp.hasOwnProperty;function Ap(e){var t=this.__data__;if(Yr){var r=t[e];return r===wp?void 0:r}return kp.call(t,e)?t[e]:void 0}var Cp=Object.prototype,Mp=Cp.hasOwnProperty;function Ip(e){var t=this.__data__;return Yr?t[e]!==void 0:Mp.call(t,e)}var Tp="__lodash_hash_undefined__";function Op(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&t===void 0?Tp:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Xt.prototype.clear=Sp;Xt.prototype.delete=Rp;Xt.prototype.get=Ap;Xt.prototype.has=Ip;Xt.prototype.set=Op;function Ep(){this.size=0,this.__data__={hash:new Xt,map:new(qr||Pt),string:new Xt}}function Lp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _a(e,t){var r=e.__data__;return Lp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Np(e){var t=_a(this,e).delete(e);return this.size-=t?1:0,t}function $p(e){return _a(this,e).get(e)}function Fp(e){return _a(this,e).has(e)}function Dp(e,t){var r=_a(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}kt.prototype.clear=Ep;kt.prototype.delete=Np;kt.prototype.get=$p;kt.prototype.has=Fp;kt.prototype.set=Dp;var Up=200;function Bp(e,t){var r=this.__data__;if(r instanceof Pt){var a=r.__data__;if(!qr||a.length<Up-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new kt(a)}return r.set(e,t),this.size=r.size,this}function St(e){var t=this.__data__=new Pt(e);this.size=t.size}St.prototype.clear=np;St.prototype.delete=ap;St.prototype.get=sp;St.prototype.has=op;St.prototype.set=Bp;var Jp="__lodash_hash_undefined__";function Vp(e){return this.__data__.set(e,Jp),this}function Gp(e){return this.__data__.has(e)}function Kn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new kt;++t<r;)this.add(e[t])}Kn.prototype.add=Kn.prototype.push=Vp;Kn.prototype.has=Gp;function Kp(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function zp(e,t){return e.has(t)}var Wp=1,Hp=2;function ql(e,t,r,a,n,s){var i=r&Wp,l=e.length,u=t.length;if(l!=u&&!(i&&u>l))return!1;var c=s.get(e),m=s.get(t);if(c&&m)return c==t&&m==e;var f=-1,d=!0,x=r&Hp?new Kn:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var y=e[f],_=t[f];if(a)var g=i?a(_,y,f,t,e,s):a(y,_,f,e,t,s);if(g!==void 0){if(g)continue;d=!1;break}if(x){if(!Kp(t,function(j,R){if(!zp(x,R)&&(y===j||n(y,j,r,a,s)))return x.push(R)})){d=!1;break}}else if(!(y===_||n(y,_,r,a,s))){d=!1;break}}return s.delete(e),s.delete(t),d}var ei=_t.Uint8Array;function Xp(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}function qp(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Yp=1,Zp=2,Qp="[object Boolean]",e_="[object Date]",t_="[object Error]",r_="[object Map]",n_="[object Number]",a_="[object RegExp]",s_="[object Set]",o_="[object String]",i_="[object Symbol]",l_="[object ArrayBuffer]",u_="[object DataView]",ti=Nt?Nt.prototype:void 0,Ja=ti?ti.valueOf:void 0;function c_(e,t,r,a,n,s,i){switch(r){case u_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case l_:return!(e.byteLength!=t.byteLength||!s(new ei(e),new ei(t)));case Qp:case e_:case n_:return Hl(+e,+t);case t_:return e.name==t.name&&e.message==t.message;case a_:case o_:return e==t+"";case r_:var l=Xp;case s_:var u=a&Yp;if(l||(l=qp),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;a|=Zp,i.set(e,t);var m=ql(l(e),l(t),a,n,s,i);return i.delete(e),m;case i_:if(Ja)return Ja.call(e)==Ja.call(t)}return!1}function m_(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var pt=Array.isArray;function d_(e,t,r){var a=t(e);return pt(e)?a:m_(a,r(e))}function f_(e,t){for(var r=-1,a=e==null?0:e.length,n=0,s=[];++r<a;){var i=e[r];t(i,r,e)&&(s[n++]=i)}return s}function h_(){return[]}var g_=Object.prototype,p_=g_.propertyIsEnumerable,ri=Object.getOwnPropertySymbols,__=ri?function(e){return e==null?[]:(e=Object(e),f_(ri(e),function(t){return p_.call(e,t)}))}:h_;function y_(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var b_="[object Arguments]";function ni(e){return Wt(e)&&Yt(e)==b_}var Yl=Object.prototype,x_=Yl.hasOwnProperty,v_=Yl.propertyIsEnumerable,Zl=ni(function(){return arguments}())?ni:function(e){return Wt(e)&&x_.call(e,"callee")&&!v_.call(e,"callee")};function j_(){return!1}var Ql=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ai=Ql&&typeof module=="object"&&module&&!module.nodeType&&module,S_=ai&&ai.exports===Ql,si=S_?_t.Buffer:void 0,R_=si?si.isBuffer:void 0,us=R_||j_,w_=9007199254740991,P_=/^(?:0|[1-9]\d*)$/;function eu(e,t){var r=typeof e;return t=t??w_,!!t&&(r=="number"||r!="symbol"&&P_.test(e))&&e>-1&&e%1==0&&e<t}var k_=9007199254740991;function Fs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=k_}var A_="[object Arguments]",C_="[object Array]",M_="[object Boolean]",I_="[object Date]",T_="[object Error]",O_="[object Function]",E_="[object Map]",L_="[object Number]",N_="[object Object]",$_="[object RegExp]",F_="[object Set]",D_="[object String]",U_="[object WeakMap]",B_="[object ArrayBuffer]",J_="[object DataView]",V_="[object Float32Array]",G_="[object Float64Array]",K_="[object Int8Array]",z_="[object Int16Array]",W_="[object Int32Array]",H_="[object Uint8Array]",X_="[object Uint8ClampedArray]",q_="[object Uint16Array]",Y_="[object Uint32Array]",me={};me[V_]=me[G_]=me[K_]=me[z_]=me[W_]=me[H_]=me[X_]=me[q_]=me[Y_]=!0;me[A_]=me[C_]=me[B_]=me[M_]=me[J_]=me[I_]=me[T_]=me[O_]=me[E_]=me[L_]=me[N_]=me[$_]=me[F_]=me[D_]=me[U_]=!1;function Z_(e){return Wt(e)&&Fs(e.length)&&!!me[Yt(e)]}function Q_(e){return function(t){return e(t)}}var tu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vr=tu&&typeof module=="object"&&module&&!module.nodeType&&module,ey=Vr&&Vr.exports===tu,Va=ey&&yl.process,oi=function(){try{var e=Vr&&Vr.require&&Vr.require("util").types;return e||Va&&Va.binding&&Va.binding("util")}catch{}}(),ii=oi&&oi.isTypedArray,ru=ii?Q_(ii):Z_,ty=Object.prototype,ry=ty.hasOwnProperty;function ny(e,t){var r=pt(e),a=!r&&Zl(e),n=!r&&!a&&us(e),s=!r&&!a&&!n&&ru(e),i=r||a||n||s,l=i?y_(e.length,String):[],u=l.length;for(var c in e)ry.call(e,c)&&!(i&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||eu(c,u)))&&l.push(c);return l}var ay=Object.prototype;function sy(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ay;return e===r}function oy(e,t){return function(r){return e(t(r))}}var iy=oy(Object.keys,Object),ly=Object.prototype,uy=ly.hasOwnProperty;function cy(e){if(!sy(e))return iy(e);var t=[];for(var r in Object(e))uy.call(e,r)&&r!="constructor"&&t.push(r);return t}function nu(e){return e!=null&&Fs(e.length)&&!Xl(e)}function Ds(e){return nu(e)?ny(e):cy(e)}function li(e){return d_(e,Ds,__)}var my=1,dy=Object.prototype,fy=dy.hasOwnProperty;function hy(e,t,r,a,n,s){var i=r&my,l=li(e),u=l.length,c=li(t),m=c.length;if(u!=m&&!i)return!1;for(var f=u;f--;){var d=l[f];if(!(i?d in t:fy.call(t,d)))return!1}var x=s.get(e),y=s.get(t);if(x&&y)return x==t&&y==e;var _=!0;s.set(e,t),s.set(t,e);for(var g=i;++f<u;){d=l[f];var j=e[d],R=t[d];if(a)var C=i?a(R,j,d,t,e,s):a(j,R,d,e,t,s);if(!(C===void 0?j===R||n(j,R,r,a,s):C)){_=!1;break}g||(g=d=="constructor")}if(_&&!g){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(_=!1)}return s.delete(e),s.delete(t),_}var cs=Qt(_t,"DataView"),ms=Qt(_t,"Promise"),ds=Qt(_t,"Set"),fs=Qt(_t,"WeakMap"),ui="[object Map]",gy="[object Object]",ci="[object Promise]",mi="[object Set]",di="[object WeakMap]",fi="[object DataView]",py=Zt(cs),_y=Zt(qr),yy=Zt(ms),by=Zt(ds),xy=Zt(fs),Et=Yt;(cs&&Et(new cs(new ArrayBuffer(1)))!=fi||qr&&Et(new qr)!=ui||ms&&Et(ms.resolve())!=ci||ds&&Et(new ds)!=mi||fs&&Et(new fs)!=di)&&(Et=function(e){var t=Yt(e),r=t==gy?e.constructor:void 0,a=r?Zt(r):"";if(a)switch(a){case py:return fi;case _y:return ui;case yy:return ci;case by:return mi;case xy:return di}return t});var vy=1,hi="[object Arguments]",gi="[object Array]",pn="[object Object]",jy=Object.prototype,pi=jy.hasOwnProperty;function Sy(e,t,r,a,n,s){var i=pt(e),l=pt(t),u=i?gi:Et(e),c=l?gi:Et(t);u=u==hi?pn:u,c=c==hi?pn:c;var m=u==pn,f=c==pn,d=u==c;if(d&&us(e)){if(!us(t))return!1;i=!0,m=!1}if(d&&!m)return s||(s=new St),i||ru(e)?ql(e,t,r,a,n,s):c_(e,t,u,r,a,n,s);if(!(r&vy)){var x=m&&pi.call(e,"__wrapped__"),y=f&&pi.call(t,"__wrapped__");if(x||y){var _=x?e.value():e,g=y?t.value():t;return s||(s=new St),n(_,g,r,a,s)}}return d?(s||(s=new St),hy(e,t,r,a,n,s)):!1}function ya(e,t,r,a,n){return e===t?!0:e==null||t==null||!Wt(e)&&!Wt(t)?e!==e&&t!==t:Sy(e,t,r,a,ya,n)}function Ry(e,t){return ya(e,t)}const au=({store:e})=>{const{t}=qt.useTranslation(),[r,a]=W.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),n=W.useRef(r);jr(()=>{const i=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;Ry(n.current,i)||(n.current=i,a(i))});const s=[];for(const[i,l]of r.entries())l&&s.push(i);return s.length===0?null:o.jsx(T.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:s.length?"visible":"collapse"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:s.map(i=>i+1).join(", ")})})},wy=T.styled(T.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function _n({labelValue:e,...t}){return o.jsxs(wy,{fullWidth:!0,variant:"filled",children:[o.jsx(T.InputLabel,{id:t.labelId,children:e}),o.jsx(T.Select,{...t})]})}var _i=function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Py(e,t,r){t=="__proto__"&&_i?_i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ky(e,t,r,a){for(var n=-1,s=e==null?0:e.length;++n<s;){var i=e[n];t(a,i,r(i),e)}return a}function Ay(e){return function(t,r,a){for(var n=-1,s=Object(t),i=a(t),l=i.length;l--;){var u=i[++n];if(r(s[u],u,s)===!1)break}return t}}var Cy=Ay();function My(e,t){return e&&Cy(e,t,Ds)}function Iy(e,t){return function(r,a){if(r==null)return r;if(!nu(r))return e(r,a);for(var n=r.length,s=-1,i=Object(r);++s<n&&a(i[s],s,i)!==!1;);return r}}var Ty=Iy(My);function Oy(e,t,r,a){return Ty(e,function(n,s,i){t(a,n,r(n),i)}),a}var Ey=1,Ly=2;function Ny(e,t,r,a){var n=r.length,s=n;if(e==null)return!s;for(e=Object(e);n--;){var i=r[n];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++n<s;){i=r[n];var l=i[0],u=e[l],c=i[1];if(i[2]){if(u===void 0&&!(l in e))return!1}else{var m=new St,f;if(!(f===void 0?ya(c,u,Ey|Ly,a,m):f))return!1}}return!0}function su(e){return e===e&&!zt(e)}function $y(e){for(var t=Ds(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,su(n)]}return t}function ou(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Fy(e){var t=$y(e);return t.length==1&&t[0][2]?ou(t[0][0],t[0][1]):function(r){return r===e||Ny(r,e,t)}}var Dy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uy=/^\w*$/;function Us(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ua(e)?!0:Uy.test(e)||!Dy.test(e)||t!=null&&e in Object(t)}var By="Expected a function";function Bs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(By);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],s=r.cache;if(s.has(n))return s.get(n);var i=e.apply(this,a);return r.cache=s.set(n,i)||s,i};return r.cache=new(Bs.Cache||kt),r}Bs.Cache=kt;var Jy=500;function Vy(e){var t=Bs(e,function(a){return r.size===Jy&&r.clear(),a}),r=t.cache;return t}var Gy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ky=/\\(\\)?/g,zy=Vy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Gy,function(r,a,n,s){t.push(n?s.replace(Ky,"$1"):a||r)}),t});function Wy(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var Hy=1/0,yi=Nt?Nt.prototype:void 0,bi=yi?yi.toString:void 0;function iu(e){if(typeof e=="string")return e;if(pt(e))return Wy(e,iu)+"";if(ua(e))return bi?bi.call(e):"";var t=e+"";return t=="0"&&1/e==-Hy?"-0":t}function lu(e){return e==null?"":iu(e)}function uu(e,t){return pt(e)?e:Us(e,t)?[e]:zy(lu(e))}var Xy=1/0;function ba(e){if(typeof e=="string"||ua(e))return e;var t=e+"";return t=="0"&&1/e==-Xy?"-0":t}function cu(e,t){t=uu(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[ba(t[r++])];return r&&r==a?e:void 0}function qy(e,t,r){var a=e==null?void 0:cu(e,t);return a===void 0?r:a}function Yy(e,t){return e!=null&&t in Object(e)}function Zy(e,t,r){t=uu(t,e);for(var a=-1,n=t.length,s=!1;++a<n;){var i=ba(t[a]);if(!(s=e!=null&&r(e,i)))break;e=e[i]}return s||++a!=n?s:(n=e==null?0:e.length,!!n&&Fs(n)&&eu(i,n)&&(pt(e)||Zl(e)))}function Qy(e,t){return e!=null&&Zy(e,t,Yy)}var e1=1,t1=2;function r1(e,t){return Us(e)&&su(t)?ou(ba(e),t):function(r){var a=qy(r,e);return a===void 0&&a===t?Qy(r,e):ya(t,a,e1|t1)}}function n1(e){return e}function a1(e){return function(t){return t==null?void 0:t[e]}}function s1(e){return function(t){return cu(t,e)}}function o1(e){return Us(e)?a1(ba(e)):s1(e)}function i1(e){return typeof e=="function"?e:e==null?n1:typeof e=="object"?pt(e)?r1(e[0],e[1]):Fy(e):o1(e)}function l1(e,t){return function(r,a){var n=pt(r)?ky:Oy,s={};return n(r,e,i1(a),s)}}var yn=l1(function(e,t,r){Py(e,r,t)}),u1=0;function c1(e){var t=++u1;return lu(e)+t}const hs=[{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}],m1=[{id:"continuous"},...hs],d1=["coordsys","tool"];class Js{constructor(t,r,a,n){var s,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=a,this.tcps=n,this.selectedTabId="cartesian",this.manualActivationRequired=!0,this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of a)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((s=a[0])==null?void 0:s.coordinate_system)||"world",this.selectedTcpId=((i=n[0])==null?void 0:i.id)||"",mt.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(mt.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[a,{coordinatesystems:n},{tcps:s}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Js(t,a,n||[],s||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Wn.countBy(this.coordSystems,t=>t.name)}async deactivate(t={}){if(this.activationState==="inactive")return;const r=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),r&&await r.closed();try{await this.jogger.nova.api.motionGroupJogging.stopJogging(this.jogger.motionGroupId)}catch(a){console.error(a)}t.requireManualReactivation&&mt.runInAction(()=>{this.manualActivationRequired=!0})}async activate(t={}){if(!(this.manualActivationRequired&&!t.manual)){mt.runInAction(()=>{this.activationState="loading",this.activationError=null});try{await this.jogger.nova.api.controller.setDefaultMode(this.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(r){console.error(r)}if(this.currentTab.id==="cartesian"){const r={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",r):this.jogger.setJoggingMode("cartesian",r)}else this.jogger.setJoggingMode("joint");if(this.jogger.activeWebsocket)try{this.jogger.stop(),await this.jogger.activeWebsocket.nextMessage()}catch(r){mt.runInAction(()=>{this.activationState="inactive",this.activationError=r});return}mt.runInAction(()=>{this.activationState="active",t.manual&&(this.manualActivationRequired=!1)})}}loadFromLocalStorage(){const t=Lt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return m1}get discreteIncrementOptions(){return hs}get incrementOptionsById(){return yn(this.incrementOptions,t=>t.id)}get tabsById(){return yn(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 yn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return yn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:hs.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 a=this.tabs[r]||this.tabs[0];this.selectedTabId=a.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=c1();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const f1=Te.observer(({store:e})=>{var a;const{t}=qt.useTranslation();function r(n){switch(n){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return n}}return o.jsxs(T.Box,{sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"min-height min-height","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[o.jsx(_n,{labelId:"jogging-coord-select",labelValue:"Coordinate Sys.",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>o.jsx(T.MenuItem,{value:n.coordinate_system,children:n.name&&e.coordSystemCountByName[n.name]>1?`${n.name} / ${n.coordinate_system}`:n.name||n.coordinate_system},n.coordinate_system))}),o.jsx(_n,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>o.jsx(T.MenuItem,{value:n.id,children:n.id},n.id))}),o.jsx(_n,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:n=>{e.setSelectedOrientation(n.target.value)},disabled:e.isLocked,children:d1.map(n=>o.jsx(T.MenuItem,{value:n,children:r(n)},n))}),o.jsxs(_n,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((a=e.activeDiscreteIncrement)==null?void 0:a.id)||"continuous",onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[o.jsx(T.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(n=>o.jsx(T.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})}),h1=T.styled(T.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function g1(e,t,r=(a,n)=>a===n){return e.length===t.length&&e.every((a,n)=>r(a,t[n]))}const p1=2;function mu(e,t){return e-t}function xi(e,t){var r;const{index:a}=(r=e.reduce((n,s,i)=>{const l=Math.abs(t-s);return n===null||l<n.distance||l===n.distance?{distance:l,index:i}:n},null))!=null?r:{};return a}function bn(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let a=0;a<r.changedTouches.length;a+=1){const n=r.changedTouches[a];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function zn(e,t,r){return(e-t)*100/(r-t)}function _1(e,t,r){return(r-t)*e+t}function y1(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),a=r[0].split(".")[1];return(a?a.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function b1(e,t,r){const a=Math.round((e-r)/t)*t+r;return Number(a.toFixed(y1(t)))}function vi({values:e,newValue:t,index:r}){const a=e.slice();return a[r]=t,a.sort(mu)}function xn({sliderRef:e,activeIndex:t,setActive:r}){var a,n;const s=pr(e.current);if(!((a=e.current)!=null&&a.contains(s.activeElement))||Number(s==null||(n=s.activeElement)==null?void 0:n.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function vn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?g1(e,t):!1}const x1={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}%`})}},v1=e=>e;let jn;function ji(){return jn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?jn=CSS.supports("touch-action","none"):jn=!0),jn}function j1(e){const{"aria-labelledby":t,defaultValue:r,disabled:a=!1,disableSwap:n=!1,isRtl:s=!1,marks:i=!1,max:l=100,min:u=0,name:c,onChange:m,onChangeCommitted:f,orientation:d="horizontal",rootRef:x,scale:y=v1,step:_=1,shiftStep:g=10,tabIndex:j,value:R}=e,C=$.useRef(),[w,S]=$.useState(-1),[P,A]=$.useState(-1),[V,te]=$.useState(!1),U=$.useRef(0),[F,H]=tl({controlled:R,default:r??u,name:"Slider"}),X=m&&((I,L,D)=>{const q=I.nativeEvent||I,ee=new q.constructor(q.type,q);Object.defineProperty(ee,"target",{writable:!0,value:{value:L,name:c}}),m(ee,L,D)}),Q=Array.isArray(F);let Z=Q?F.slice().sort(mu):[F];Z=Z.map(I=>I==null?u:dr(I,u,l));const je=i===!0&&_!==null?[...Array(Math.floor((l-u)/_)+1)].map((I,L)=>({value:u+_*L})):i||[],ce=je.map(I=>I.value),{isFocusVisibleRef:re,onBlur:we,onFocus:Oe,ref:nt}=rl(),[yt,We]=$.useState(-1),Se=$.useRef(),At=Nn(nt,Se),lt=Nn(x,At),He=I=>L=>{var D;const q=Number(L.currentTarget.getAttribute("data-index"));Oe(L),re.current===!0&&We(q),A(q),I==null||(D=I.onFocus)==null||D.call(I,L)},Be=I=>L=>{var D;we(L),re.current===!1&&We(-1),A(-1),I==null||(D=I.onBlur)==null||D.call(I,L)},ut=(I,L)=>{const D=Number(I.currentTarget.getAttribute("data-index")),q=Z[D],ee=ce.indexOf(q);let Y=L;if(je&&_==null){const Ve=ce[ce.length-1];Y>Ve?Y=Ve:Y<ce[0]?Y=ce[0]:Y=Y<q?ce[ee-1]:ce[ee+1]}if(Y=dr(Y,u,l),Q){n&&(Y=dr(Y,Z[D-1]||-1/0,Z[D+1]||1/0));const Ve=Y;Y=vi({values:Z,newValue:Y,index:D});let Xe=D;n||(Xe=Y.indexOf(Ve)),xn({sliderRef:Se,activeIndex:Xe})}H(Y),We(D),X&&!vn(Y,F)&&X(I,Y,D),f&&f(I,Y)},ct=I=>L=>{var D;if(_!==null){const q=Number(L.currentTarget.getAttribute("data-index")),ee=Z[q];let Y=null;(L.key==="ArrowLeft"||L.key==="ArrowDown")&&L.shiftKey||L.key==="PageDown"?Y=Math.max(ee-g,u):((L.key==="ArrowRight"||L.key==="ArrowUp")&&L.shiftKey||L.key==="PageUp")&&(Y=Math.min(ee+g,l)),Y!==null&&(ut(L,Y),L.preventDefault())}I==null||(D=I.onKeyDown)==null||D.call(I,L)};Ss(()=>{if(a&&Se.current.contains(document.activeElement)){var I;(I=document.activeElement)==null||I.blur()}},[a]),a&&w!==-1&&S(-1),a&&yt!==-1&&We(-1);const Ft=I=>L=>{var D;(D=I.onChange)==null||D.call(I,L),ut(L,L.target.valueAsNumber)},bt=$.useRef();let Je=d;s&&d==="horizontal"&&(Je+="-reverse");const O=({finger:I,move:L=!1})=>{const{current:D}=Se,{width:q,height:ee,bottom:Y,left:Ve}=D.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(Y-I.y)/ee:Xe=(I.x-Ve)/q,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let ae;if(ae=_1(Xe,u,l),_)ae=b1(ae,_,u);else{const It=xi(ce,ae);ae=ce[It]}ae=dr(ae,u,l);let Ne=0;if(Q){L?Ne=bt.current:Ne=xi(Z,ae),n&&(ae=dr(ae,Z[Ne-1]||-1/0,Z[Ne+1]||1/0));const It=ae;ae=vi({values:Z,newValue:ae,index:Ne}),n&&L||(Ne=ae.indexOf(It),bt.current=Ne)}return{newValue:ae,activeIndex:Ne}},ne=kn(I=>{const L=bn(I,C);if(!L)return;if(U.current+=1,I.type==="mousemove"&&I.buttons===0){fe(I);return}const{newValue:D,activeIndex:q}=O({finger:L,move:!0});xn({sliderRef:Se,activeIndex:q,setActive:S}),H(D),!V&&U.current>p1&&te(!0),X&&!vn(D,F)&&X(I,D,q)}),fe=kn(I=>{const L=bn(I,C);if(te(!1),!L)return;const{newValue:D}=O({finger:L,move:!0});S(-1),I.type==="touchend"&&A(-1),f&&f(I,D),C.current=void 0,Le()}),Ee=kn(I=>{if(a)return;ji()||I.preventDefault();const L=I.changedTouches[0];L!=null&&(C.current=L.identifier);const D=bn(I,C);if(D!==!1){const{newValue:ee,activeIndex:Y}=O({finger:D});xn({sliderRef:Se,activeIndex:Y,setActive:S}),H(ee),X&&!vn(ee,F)&&X(I,ee,Y)}U.current=0;const q=pr(Se.current);q.addEventListener("touchmove",ne,{passive:!0}),q.addEventListener("touchend",fe,{passive:!0})}),Le=$.useCallback(()=>{const I=pr(Se.current);I.removeEventListener("mousemove",ne),I.removeEventListener("mouseup",fe),I.removeEventListener("touchmove",ne),I.removeEventListener("touchend",fe)},[fe,ne]);$.useEffect(()=>{const{current:I}=Se;return I.addEventListener("touchstart",Ee,{passive:ji()}),()=>{I.removeEventListener("touchstart",Ee),Le()}},[Le,Ee]),$.useEffect(()=>{a&&Le()},[a,Le]);const Ct=I=>L=>{var D;if((D=I.onMouseDown)==null||D.call(I,L),a||L.defaultPrevented||L.button!==0)return;L.preventDefault();const q=bn(L,C);if(q!==!1){const{newValue:Y,activeIndex:Ve}=O({finger:q});xn({sliderRef:Se,activeIndex:Ve,setActive:S}),H(Y),X&&!vn(Y,F)&&X(L,Y,Ve)}U.current=0;const ee=pr(Se.current);ee.addEventListener("mousemove",ne,{passive:!0}),ee.addEventListener("mouseup",fe)},Re=zn(Q?Z[0]:u,u,l),Mt=zn(Z[Z.length-1],u,l)-Re,Dt=(I={})=>{const L=An(I),D={onMouseDown:Ct(L||{})},q=M({},L,D);return M({},I,{ref:lt},q)},wr=I=>L=>{var D;(D=I.onMouseOver)==null||D.call(I,L);const q=Number(L.currentTarget.getAttribute("data-index"));A(q)},Pr=I=>L=>{var D;(D=I.onMouseLeave)==null||D.call(I,L),A(-1)};return{active:w,axis:Je,axisProps:x1,dragging:V,focusedThumbIndex:yt,getHiddenInputProps:(I={})=>{var L;const D=An(I),q={onChange:Ft(D||{}),onFocus:He(D||{}),onBlur:Be(D||{}),onKeyDown:ct(D||{})},ee=M({},D,q);return M({tabIndex:j,"aria-labelledby":t,"aria-orientation":d,"aria-valuemax":y(l),"aria-valuemin":y(u),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(L=e.step)!=null?L:void 0,disabled:a},I,ee,{style:M({},Rd,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Dt,getThumbProps:(I={})=>{const L=An(I),D={onMouseOver:wr(L||{}),onMouseLeave:Pr(L||{})};return M({},I,L,D)},marks:je,open:P,range:Q,rootRef:lt,trackLeap:Mt,trackOffset:Re,values:Z,getThumbStyle:I=>({pointerEvents:w!==-1&&w!==I?"none":void 0})}}const S1=e=>!e||!Br(e);function R1(e){return nn("MuiSlider",e)}const Qe=qi("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"]),w1=e=>{const{open:t}=e;return{offset:gt(t&&Qe.valueLabelOpen),circle:Qe.valueLabelCircle,label:Qe.valueLabelLabel}};function du(e){const{children:t,className:r,value:a}=e,n=w1(e);return t?$.cloneElement(t,{className:gt(t.props.className)},o.jsxs($.Fragment,{children:[t.props.children,o.jsx("span",{className:gt(n.offset,r),"aria-hidden":!0,children:o.jsx("span",{className:n.circle,children:o.jsx("span",{className:n.label,children:a})})})]})):null}process.env.NODE_ENV!=="production"&&(du.propTypes={children:h.element.isRequired,className:h.string,value:h.node});const P1=["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 Si(e){return e}const k1=wt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${ke(r.color)}`],r.size!=="medium"&&t[`size${ke(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Qe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Qe.dragging}`]:{[`& .${Qe.thumb}, & .${Qe.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var a;return((a=e.vars)!=null?a: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}}]}}),A1=wt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),C1=wt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var a;return((a=e.vars)!=null?a:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:M({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:M({backgroundColor:Qa(e.palette[r].main,.62),borderColor:Qa(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Za(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Za(e.palette[r].main,.5)})))}))]}}),M1=wt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${ke(r.color)}`],r.size!=="medium"&&t[`thumbSize${ke(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Qe.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var a;return((a=e.vars)!=null?a:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${Qe.focusVisible}`]:M({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ho(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Qe.active}`]:M({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ho(e.palette[r].main,.16)}`})}}))]}}),I1=wt(du,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>M({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),T1=wt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Cs(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),O1=wt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Cs(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>M({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),E1=e=>{const{disabled:t,dragging:r,marked:a,orientation:n,track:s,classes:i,color:l,size:u}=e,c={root:["root",t&&"disabled",r&&"dragging",a&&"marked",n==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${ke(l)}`,u&&`size${ke(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${ke(u)}`,l&&`thumbColor${ke(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ws(c,R1,i)},L1=({children:e})=>e,fu=$.forwardRef(function(t,r){var a,n,s,i,l,u,c,m,f,d,x,y,_,g,j,R,C,w,S,P,A,V,te,U;const F=Ms({props:t,name:"MuiSlider"}),H=Md(),{"aria-label":X,"aria-valuetext":Q,"aria-labelledby":Z,component:je="span",components:ce={},componentsProps:re={},color:we="primary",classes:Oe,className:nt,disableSwap:yt=!1,disabled:We=!1,getAriaLabel:Se,getAriaValueText:At,marks:lt=!1,max:He=100,min:Be=0,orientation:ut="horizontal",shiftStep:ct=10,size:Ft="medium",step:bt=1,scale:Je=Si,slotProps:O,slots:ne,track:fe="normal",valueLabelDisplay:Ee="off",valueLabelFormat:Le=Si}=F,Ct=Ue(F,P1),Re=M({},F,{isRtl:H,max:He,min:Be,classes:Oe,disabled:We,disableSwap:yt,orientation:ut,marks:lt,color:we,size:Ft,step:bt,shiftStep:ct,scale:Je,track:fe,valueLabelDisplay:Ee,valueLabelFormat:Le}),{axisProps:Mt,getRootProps:Dt,getHiddenInputProps:wr,getThumbProps:Pr,open:kr,active:er,axis:at,focusedThumbIndex:I,range:L,dragging:D,marks:q,values:ee,trackOffset:Y,trackLeap:Ve,getThumbStyle:Xe}=j1(M({},Re,{rootRef:r}));Re.marked=q.length>0&&q.some(N=>N.label),Re.dragging=D,Re.focusedThumbIndex=I;const ae=E1(Re),Ne=(a=(n=ne==null?void 0:ne.root)!=null?n:ce.Root)!=null?a:k1,It=(s=(i=ne==null?void 0:ne.rail)!=null?i:ce.Rail)!=null?s:A1,tr=(l=(u=ne==null?void 0:ne.track)!=null?u:ce.Track)!=null?l:C1,Ar=(c=(m=ne==null?void 0:ne.thumb)!=null?m:ce.Thumb)!=null?c:M1,xt=(f=(d=ne==null?void 0:ne.valueLabel)!=null?d:ce.ValueLabel)!=null?f:I1,Ut=(x=(y=ne==null?void 0:ne.mark)!=null?y:ce.Mark)!=null?x:T1,Bt=(_=(g=ne==null?void 0:ne.markLabel)!=null?g:ce.MarkLabel)!=null?_:O1,Cr=(j=(R=ne==null?void 0:ne.input)!=null?R:ce.Input)!=null?j:"input",Mr=(C=O==null?void 0:O.root)!=null?C:re.root,un=(w=O==null?void 0:O.rail)!=null?w:re.rail,Ir=(S=O==null?void 0:O.track)!=null?S:re.track,rr=(P=O==null?void 0:O.thumb)!=null?P:re.thumb,nr=(A=O==null?void 0:O.valueLabel)!=null?A:re.valueLabel,xa=(V=O==null?void 0:O.mark)!=null?V:re.mark,va=(te=O==null?void 0:O.markLabel)!=null?te:re.markLabel,cn=(U=O==null?void 0:O.input)!=null?U:re.input,mn=Tt({elementType:Ne,getSlotProps:Dt,externalSlotProps:Mr,externalForwardedProps:Ct,additionalProps:M({},S1(Ne)&&{as:je}),ownerState:M({},Re,Mr==null?void 0:Mr.ownerState),className:[ae.root,nt]}),ja=Tt({elementType:It,externalSlotProps:un,ownerState:Re,className:ae.rail}),Sa=Tt({elementType:tr,externalSlotProps:Ir,additionalProps:{style:M({},Mt[at].offset(Y),Mt[at].leap(Ve))},ownerState:M({},Re,Ir==null?void 0:Ir.ownerState),className:ae.track}),Tr=Tt({elementType:Ar,getSlotProps:Pr,externalSlotProps:rr,ownerState:M({},Re,rr==null?void 0:rr.ownerState),className:ae.thumb}),Ra=Tt({elementType:xt,externalSlotProps:nr,ownerState:M({},Re,nr==null?void 0:nr.ownerState),className:ae.valueLabel}),p=Tt({elementType:Ut,externalSlotProps:xa,ownerState:Re,className:ae.mark}),k=Tt({elementType:Bt,externalSlotProps:va,ownerState:Re,className:ae.markLabel}),E=Tt({elementType:Cr,getSlotProps:wr,externalSlotProps:cn,ownerState:Re});return o.jsxs(Ne,M({},mn,{children:[o.jsx(It,M({},ja)),o.jsx(tr,M({},Sa)),q.filter(N=>N.value>=Be&&N.value<=He).map((N,B)=>{const se=zn(N.value,Be,He),z=Mt[at].offset(se);let J;return fe===!1?J=ee.indexOf(N.value)!==-1:J=fe==="normal"&&(L?N.value>=ee[0]&&N.value<=ee[ee.length-1]:N.value<=ee[0])||fe==="inverted"&&(L?N.value<=ee[0]||N.value>=ee[ee.length-1]:N.value>=ee[0]),o.jsxs($.Fragment,{children:[o.jsx(Ut,M({"data-index":B},p,!Br(Ut)&&{markActive:J},{style:M({},z,p.style),className:gt(p.className,J&&ae.markActive)})),N.label!=null?o.jsx(Bt,M({"aria-hidden":!0,"data-index":B},k,!Br(Bt)&&{markLabelActive:J},{style:M({},z,k.style),className:gt(ae.markLabel,k.className,J&&ae.markLabelActive),children:N.label})):null]},B)}),ee.map((N,B)=>{const se=zn(N,Be,He),z=Mt[at].offset(se),J=Ee==="off"?L1:xt;return o.jsx(J,M({},!Br(J)&&{valueLabelFormat:Le,valueLabelDisplay:Ee,value:typeof Le=="function"?Le(Je(N),B):Le,index:B,open:kr===B||er===B||Ee==="on",disabled:We},Ra,{children:o.jsx(Ar,M({"data-index":B},Tr,{className:gt(ae.thumb,Tr.className,er===B&&ae.active,I===B&&ae.focusVisible),style:M({},z,Xe(B),Tr.style),children:o.jsx(Cr,M({"data-index":B,"aria-label":Se?Se(B):X,"aria-valuenow":Je(N),"aria-labelledby":Z,"aria-valuetext":At?At(Je(N),B):Q,value:ee[B]},E))}))}),B)})]}))});process.env.NODE_ENV!=="production"&&(fu.propTypes={"aria-label":so(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":h.string,"aria-valuetext":so(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Mark:h.elementType,MarkLabel:h.elementType,Rail:h.elementType,Root:h.elementType,Thumb:h.elementType,Track:h.elementType,ValueLabel:h.elementType}),componentsProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),defaultValue:h.oneOfType([h.arrayOf(h.number),h.number]),disabled:h.bool,disableSwap:h.bool,getAriaLabel:h.func,getAriaValueText:h.func,marks:h.oneOfType([h.arrayOf(h.shape({label:h.node,value:h.number.isRequired})),h.bool]),max:h.number,min:h.number,name:h.string,onChange:h.func,onChangeCommitted:h.func,orientation:h.oneOf(["horizontal","vertical"]),scale:h.func,shiftStep:h.number,size:h.oneOfType([h.oneOf(["small","medium"]),h.string]),slotProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),slots:h.shape({input:h.elementType,mark:h.elementType,markLabel:h.elementType,rail:h.elementType,root:h.elementType,thumb:h.elementType,track:h.elementType,valueLabel:h.elementType}),step:h.number,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,track:h.oneOf(["inverted","normal",!1]),value:h.oneOfType([h.arrayOf(h.number),h.number]),valueLabelDisplay:h.oneOf(["auto","off","on"]),valueLabelFormat:h.oneOfType([h.func,h.string])});var N1="[object Number]";function $1(e){return typeof e=="number"||Wt(e)&&Yt(e)==N1}const hu=Te.observer(e=>{T.useTheme();function t(r,a){a===e.velocity||!$1(a)||e.onVelocityChange(a)}return o.jsxs(T.Stack,{direction:"row",gap:2,children:[o.jsx(fu,{value:e.velocity,color:"secondary",onChange:t,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),e.renderValue?e.renderValue(e.velocity):o.jsx(Vs,{value:e.velocity.toString()})]})});function Vs({value:e,sx:t}){var a;const r=T.useTheme();return o.jsx(T.Stack,{direction:"row",justifyContent:"center",gap:"5px",sx:{padding:"6px 12px",background:(a=r.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"111px",...t},children:o.jsx(T.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,lineHeight:1,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const gu=Te.observer(({store:e})=>{const{t}=qt.useTranslation(),r=Te.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?a=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:a})}`:a=>`v = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:a})}`}}));return o.jsx(hu,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:a=>o.jsx(Vs,{value:r.valueLabelFormat(a),sx:{minWidth:e.currentMotionType==="translate"?"111px":"90px"}})})}),F1=Te.observer(({store:e,children:t})=>{var f,d,x,y,_,g,j,R,C;const{t:r}=qt.useTranslation(),a=T.useTheme();function n(w,S){(S==="translate"||S==="rotate")&&e.setSelectedCartesianMotionType(S)}Is(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function s(w,S){const P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,A=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;P&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:w.axis,direction:w.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:P,currentJoints:A,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:w.axis,direction:w.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:S.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(S.degrees)}})}finally{e.setCurrentIncrementJog(null)}})}async function i(w){if(!e.isLocked){if(e.activeDiscreteIncrement)return s(w,e.activeDiscreteIncrement);w.motionType==="translate"?await e.jogger.startTCPTranslation({axis:w.axis,direction:w.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:w.axis,direction:w.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const u=[{id:"x",colors:(x=(d=(f=a.componentsExt)==null?void 0:f.JoggingCartesian)==null?void 0:d.Axis)==null?void 0:x.X,icon:o.jsx(Vg,{})},{id:"y",colors:(g=(_=(y=a.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:_.Axis)==null?void 0:g.Y,icon:o.jsx(Kg,{})},{id:"z",colors:(C=(R=(j=a.componentsExt)==null?void 0:j.JoggingCartesian)==null?void 0:R.Axis)==null?void 0:C.Z,icon:o.jsx(Wg,{})}];function c(w){return r("General.mm.variable",{amount:w.toFixed(1)})}function m(w){return r("General.degree.variable",{amount:Lt.radiansToDegrees(w).toFixed(1)})}return o.jsxs(T.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[o.jsxs(T.Stack,{gap:2,children:[o.jsx(f1,{store:e}),o.jsx(gu,{store:e}),o.jsx(T.Divider,{})]}),o.jsxs(T.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:[o.jsxs(h1,{value:e.selectedCartesianMotionType,onChange:n,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[o.jsx(T.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),o.jsx(T.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),o.jsx(Wl,{store:e,children:o.jsxs(T.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:[e.selectedCartesianMotionType==="translate"&&u.map(w=>{var S;return o.jsx(ts,{colors:w.colors,disabled:e.isLocked,activeJoggingDirection:((S=e.incrementJogInProgress)==null?void 0:S.axis)===w.id?e.incrementJogInProgress.direction:void 0,label:o.jsxs(o.Fragment,{children:[w.icon,o.jsx(T.Typography,{sx:{fontSize:"24px",color:a.palette.text.primary},children:w.id.toUpperCase()})]}),getDisplayedValue:()=>{var P;return c(((P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:P.position[w.id])||0)},startJogging:P=>i({axis:w.id,motionType:"translate",direction:P}),stopJogging:l},w.id)}),e.selectedCartesianMotionType==="rotate"&&u.map(w=>{var S;return o.jsx(ts,{colors:w.colors,disabled:e.isLocked,activeJoggingDirection:((S=e.incrementJogInProgress)==null?void 0:S.axis)===w.id?e.incrementJogInProgress.direction:void 0,label:o.jsxs(o.Fragment,{children:[o.jsx(Xg,{}),o.jsx(T.Typography,{sx:{fontSize:"24px",color:a.palette.text.primary},children:w.id.toUpperCase()})]}),getDisplayedValue:()=>{var P,A;return m(((A=(P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:P.orientation)==null?void 0:A[w.id])||0)},startJogging:P=>i({axis:w.id,motionType:"rotate",direction:P}),stopJogging:l},w.id)})]})})]}),o.jsx(au,{store:e}),t&&o.jsx(T.Divider,{}),t]})}),D1=Te.observer(({store:e,children:t})=>{async function r(n){await e.jogger.startJointRotation({joint:n.joint,direction:n.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function a(){await e.jogger.stop()}return o.jsxs(T.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[o.jsx(gu,{store:e}),o.jsx(T.Divider,{}),o.jsx(T.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:o.jsx(Wl,{store:e,children:o.jsx(T.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:e.jogger.motionStream.joints.map(n=>{var u;const s=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[n.index],i=(s==null?void 0:s.lower_limit)!==void 0?Lt.radiansToDegrees(s.lower_limit):void 0,l=(s==null?void 0:s.upper_limit)!==void 0?Lt.radiansToDegrees(s.upper_limit):void 0;return o.jsx(xl,{disabled:e.isLocked,lowerLimitDegs:i,upperLimitDegs:l,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[n.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:n.index,direction:c}),stopJogging:a},`joint-${n.index}`)})})})}),o.jsx(au,{store:e}),t&&o.jsx(T.Divider,{}),t]})}),U1=sn(Te.observer(e=>{const t=Wn.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=Te.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function a(){mt.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const n=await t.connectJogger(e.motionGroupId),s=await Js.loadFor(n);mt.runInAction(()=>{r.joggingStore=s}),e.onSetup&&e.onSetup(s)}catch(n){r.loadingError=n}}return W.useEffect(()=>(a(),()=>{var n;(n=r.joggingStore)==null||n.dispose()}),[e.nova,e.motionGroupId]),W.useEffect(()=>{const n=r.joggingStore;n&&(e.locked?n.locks.add("external"):n.locks.delete("external"))},[e.locked]),o.jsx(T.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?o.jsx(B1,{store:r.joggingStore,children:e.children}):o.jsx(ga,{message:"Loading jogging",error:r.loadingError})})})),B1=Te.observer(({store:e,children:t})=>{W.useEffect(()=>{function a(){e.deactivate()}function n(){e.activate()}return window.addEventListener("blur",a),window.addEventListener("focus",n),()=>{window.removeEventListener("blur",a),window.removeEventListener("focus",n)}}),Is(()=>[e.currentTab.id,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState!=="inactive"&&e.activate()});function r(){if(e.currentTab.id==="cartesian")return o.jsx(o.Fragment,{children:o.jsx(F1,{store:e,children:t})});if(e.currentTab.id==="joint")return o.jsx(o.Fragment,{children:o.jsx(D1,{store:e,children:t})})}return o.jsxs(T.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[o.jsx(T.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(a=>o.jsx(T.Tab,{label:a.label,id:`jogging-tab-${a.id}`,"aria-controls":`jogging-tab-${a.id}`},a.id))}),o.jsx(T.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:r()})]})}),pu=W.forwardRef(({label:e,value:t},r)=>{var l;const a=T.useTheme(),[n,s]=W.useState(!1);async function i(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),s(!0),!0}catch(u){console.error(u);const c=window.getSelection(),m=document.createRange();m.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(m)}return!1}return W.useEffect(()=>{if(!n)return;const u=setTimeout(()=>s(!1),3e3);return()=>{u&&clearTimeout(u)}},[n]),o.jsx(T.Tooltip,{open:n,title:"Copied!",children:o.jsx(T.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(l=a.palette.backgroundPaperElevation)==null?void 0:l[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>i(),children:o.jsx(T.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:a.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),J1=Te.observer(({motionStream:e})=>{const t=W.useRef(null);function r(){const a=e.rapidlyChangingMotionState.tcp_pose;return a?Lt.poseToWandelscriptString(a):""}return jr(()=>{if(!t.current)return;const a=r();t.current.textContent!==a&&(t.current.textContent=a)}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:o.jsx(pu,{value:r(),ref:t})})}),V1=Te.observer(({motionStream:e})=>{const t=W.useRef(null);function r(){const{joints:a}=e.rapidlyChangingMotionState.state.joint_position;return`[${a.map(n=>parseFloat(n.toFixed(4))).join(", ")}]`}return jr(()=>{if(!t.current)return;const a=r();t.current.textContent!==a&&(t.current.textContent=a)}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:o.jsx(pu,{value:r(),ref:t})})});function G1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function K1({baseUrl:e=G1(),...t}){return o.jsxs(T.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[o.jsx(T.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),o.jsxs(T.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[o.jsx(T.Typography,{color:"#fff",children:"Found no devices to connect to."}),o.jsx(T.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),o.jsx(T.DialogActions,{children:o.jsxs(T.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[o.jsx(T.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),o.jsx(T.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const z1=Array(6).fill(2*Math.PI);_u.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function _u({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:s.abb_white})]}),o.jsxs(b.animated.group,{name:"ABB_IRB1200_J00",children:[o.jsxs("group",{name:"ABB_IRB1200_J01",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1200_J02",position:[.35,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1200_J03",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1200_J04",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1200_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1200_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"visuals006",geometry:n.visuals006.geometry,material:s.abb_metal_black,position:[.791,-.351,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"visuals005",position:[-.791,0,.351],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals005_1",geometry:n.visuals005_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals005_2",geometry:n.visuals005_2.geometry,material:s.abb_white})]})]}),o.jsxs("group",{name:"visuals004",position:[-.791,0,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004_1",geometry:n.visuals004_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals004_2",geometry:n.visuals004_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals004_3",geometry:n.visuals004_3.geometry,material:s.abb_red})]})]}),o.jsxs("group",{name:"visuals003",position:[-.749,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003_1",geometry:n.visuals003_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals003_2",geometry:n.visuals003_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals003_3",geometry:n.visuals003_3.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals002",position:[-.399,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals002_1",geometry:n.visuals002_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals002_2",geometry:n.visuals002_2.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:n.visuals001_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals001_2",geometry:n.visuals001_2.geometry,material:s.abb_metal_polished})]})]})]})})}yu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function yu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:s.abb_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_0_3",geometry:n.visuals_0_3.geometry,material:s.abb_red})]}),o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J00",children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J01",position:[.15,.544,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J02",position:[.575,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J04",position:[0,.425,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1300_115_10_FLG",position:[0,.092,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:s.abb_metal_polished,position:[1.159,-.575,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-1.159,0,.575],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:n.visuals_5.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:n.visuals_5_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-1.159,-.15,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:n.visuals_4_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_4_3",geometry:n.visuals_4_3.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_3",position:[-1.119,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_3_2",geometry:n.visuals_3_2.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_2",position:[-.544,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:s.abb_metal_black})]})]})]})})}bu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function bu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M10iD_L06",geometry:n.M10iD_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"M10iD_L05",geometry:n.M10iD_L05.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_654",geometry:n.Mesh_654.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_654_1",geometry:n.Mesh_654_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_378",geometry:n.Mesh_378.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_378_1",geometry:n.Mesh_378_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_378_2",geometry:n.Mesh_378_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_358",geometry:n.Mesh_358.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_358_1",geometry:n.Mesh_358_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L01",children:[o.jsx("mesh",{name:"Mesh_356",geometry:n.Mesh_356.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_356_1",geometry:n.Mesh_356_1.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_356_2",geometry:n.Mesh_356_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M10iD_L00",geometry:n.M10iD_L00.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})})}gs.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function gs({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J00",children:[o.jsxs(b.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M20iD25_L06",geometry:n.M20iD25_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),o.jsx("mesh",{name:"M20iD25_L05",geometry:n.M20iD25_L05.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),o.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_2",geometry:n.Mesh_2.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_2_1",geometry:n.Mesh_2_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_15",geometry:n.Mesh_15.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_15_1",geometry:n.Mesh_15_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_15_2",geometry:n.Mesh_15_2.geometry,material:s.Material_9_AO})]})]}),o.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_37",geometry:n.Mesh_37.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_37_1",geometry:n.Mesh_37_1.geometry,material:s.Fanuc_Yellow_Textured_AO})]})]}),o.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"Mesh_45",geometry:n.Mesh_45.geometry,material:s.Material_9_AO}),o.jsx("mesh",{name:"Mesh_45_1",geometry:n.Mesh_45_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_45_2",geometry:n.Mesh_45_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M20iD25_L00",geometry:n.M20iD25_L00.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})})}xu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function xu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(b.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:n.CRX10iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:n.J5CASING_UNIT001.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:n.J5CASING_UNIT001_1.geometry,material:s.Fanuc_Green})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",geometry:n.NAME_LABEL_CRX_10iA.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",geometry:n.NAME_LABEL_CRX_10iA_1.geometry,material:s.Fanuc_BlackPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",geometry:n.NAME_LABEL_CRX_10iA_2.geometry,material:s.Fanuc_WhitePlastic})]})]}),o.jsx("mesh",{name:"CRX10iA_L03",geometry:n.CRX10iA_L03.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:n.CRX10iA_L02.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:n.J2BASE_UNIT001.geometry,material:s.Fanuc_Green}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:n.J2BASE_UNIT001_1.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:n.J2BASE_UNIT001_2.geometry,material:s.Fanuc_GreenLED})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:n.CRX10iA_L00.geometry,material:s.Fanuc_BlackMetal,position:[0,-.245,0]})]})})})}vu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function vu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_3",geometry:n.visuals_0_3.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_4",geometry:n.visuals_0_4.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_5",geometry:n.visuals_0_5.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_6",geometry:n.visuals_0_6.geometry,material:s.fanuc_rubber})]}),o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J00",children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J02",position:[.71,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_CRX10IAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsxs("group",{name:"link_6",position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_6",geometry:n.visuals_6.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_6_1",geometry:n.visuals_6_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_6_2",geometry:n.visuals_6_2.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_6_3",geometry:n.visuals_6_3.geometry,material:s.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:n.visuals_5.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:n.visuals_5_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_5_2",geometry:n.visuals_5_2.geometry,material:s.fanuc_stainless_steel})]})]}),o.jsxs("group",{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:n.visuals_4_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:n.visuals_4_3.geometry,material:s.fanuc_red})]})]}),o.jsxs("group",{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:s.fanuc_green})]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_1_2",geometry:n.visuals_1_2.geometry,material:s.fanuc_green})]})]})]})})}ju.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function ju({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsx("mesh",{name:"link_0",geometry:n.link_0.geometry,material:s.fanuc_metal_black}),o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(b.animated.group,{ref:t,name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:s.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),o.jsxs(b.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape053",geometry:n.shape053.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape053_1",geometry:n.shape053_1.geometry,material:s.fanuc_green})]})]}),o.jsxs(b.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape054",geometry:n.shape054.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape054_1",geometry:n.shape054_1.geometry,material:s.fanuc_red}),o.jsx("mesh",{name:"shape054_2",geometry:n.shape054_2.geometry,material:s.fanuc_metal_black})]})]}),o.jsxs(b.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape009",geometry:n.shape009.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"shape009_1",geometry:n.shape009_1.geometry,material:s.fanuc_white})]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",position:[0,.245,0],children:[o.jsx("mesh",{name:"shape005",geometry:n.shape005.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape005_1",geometry:n.shape005_1.geometry,material:s.fanuc_green})]})]})]})})})}Su.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Su({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[o.jsxs("group",{name:"CRX25iA_L00",children:[o.jsx("mesh",{name:"J1BASE_NetGen_Coarse",geometry:n.J1BASE_NetGen_Coarse.geometry,material:s.Fanuc_BlackMetal}),o.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",geometry:n.J1BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]}),o.jsxs(b.animated.group,{name:"CRX25iA_J00",children:[o.jsxs(b.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[o.jsxs(b.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX25iA_L06",geometry:n.CRX25iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.18,0]})]}),o.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[o.jsx("mesh",{name:"J6CASING_NetGen_Coarse",geometry:n.J6CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",geometry:n.J6CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[o.jsx("mesh",{name:"J3ARM_NetGen_Coarse",geometry:n.J3ARM_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",geometry:n.J3ARM_NetGen_Coarse_1.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",geometry:n.J3ARM_NetGen_Coarse_2.geometry,material:s.Fanuc_BlackPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L03",children:[o.jsx("mesh",{name:"J3CASING_NetGen_Coarse",geometry:n.J3CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",geometry:n.J3CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsx("mesh",{name:"CRX25iA_L02",geometry:n.CRX25iA_L02.geometry,material:s.Fanuc_WhitePlastic})]}),o.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[o.jsx("mesh",{name:"J2BASE_NetGen_Coarse",geometry:n.J2BASE_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",geometry:n.J2BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenLED})]})]})]})})})}Ru.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Ru({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(b.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:n.CRX10iA_L06.geometry,material:s["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:n.J5CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:n.J5CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",geometry:n.NAME_LABEL_CRX_10iA_L001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",geometry:n.NAME_LABEL_CRX_10iA_L001_1.geometry,material:s["Fanuc_RedPlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",geometry:n.NAME_LABEL_CRX_10iA_L001_2.geometry,material:s["Fanuc_BlackPlastic.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J3CASING_UNIT001",geometry:n.J3CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J3CASING_UNIT001_1",geometry:n.J3CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:n.CRX10iA_L02.geometry,material:s["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:n.J2BASE_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:n.J2BASE_UNIT001_1.geometry,material:s["Fanuc_Green.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:n.J2BASE_UNIT001_2.geometry,material:s["Fanuc_GreenLED.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:n.CRX10iA_L00.geometry,material:s["Fanuc_BlackMetal.001"]})]})})})}wu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function wu({modelURL:e,flangeRef:t,...r}){const{nodes:a,materials:n}=K.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape002",geometry:a.shape002.geometry,material:n.fanuc_metal_black_AO}),o.jsx("mesh",{name:"shape002_1",geometry:a.shape002_1.geometry,material:n.fanuc_stainless_steel_AO})]}),o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J00",children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J02",position:[.33,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J04",position:[0,-.335,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_LRMATE-200ID_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:n.fanuc_metal_black_AO,position:[-.365,.385,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:n.fanuc_yellow_AO,position:[-.365,0,-.385],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.365,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape010",geometry:a.shape010.geometry,material:n.fanuc_yellow_AO}),o.jsx("mesh",{name:"shape010_1",geometry:a.shape010_1.geometry,material:n.fanuc_aluminium_black_AO})]})]}),o.jsx("mesh",{name:"link_3",geometry:a.link_3.geometry,material:n.fanuc_yellow_AO,position:[-.33,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:n.fanuc_yellow_AO,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_1",geometry:a.link_1.geometry,material:n.fanuc_yellow_AO})]})]})})}Pu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Pu({modelURL:e,flangeRef:t,...r}){const{nodes:a,materials:n}=K.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsx("mesh",{name:"link_0",geometry:a.link_0.geometry,material:n.fanuc_metal_black}),o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J00",children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J02",position:[.26,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J03",position:[.02,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J04",position:[0,-.29,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{name:"FANUC_LRMATE200ID4S_FLG",position:[0,-.07,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:n.fanuc_metal_black,position:[-.28,.29,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:n.fanuc_yellow,position:[-.28,0,-.29],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.28,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J3ARM_UNIT",geometry:a.J3ARM_UNIT.geometry,material:n.fanuc_yellow}),o.jsx("mesh",{name:"J3ARM_UNIT_1",geometry:a.J3ARM_UNIT_1.geometry,material:n.fanuc_aluminium_black})]})]}),o.jsx("mesh",{name:"link_3",geometry:a.link_3.geometry,material:n.fanuc_yellow,position:[-.26,0,0],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:n.fanuc_yellow,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_1",geometry:a.link_1.geometry,material:n.fanuc_yellow})]})]})})}ku.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function ku({modelURL:e,flangeRef:t,...r}){const{nodes:a,materials:n}=K.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:n.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:n.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:n.fanuc_aluminium_black})]}),o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J00",children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J02",position:[.44,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J04",position:[0,-.42,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx(b.animated.group,{ref:t,name:"FANUC_LRMATE200ID7L_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:n.fanuc_metal_black,position:[-.475,.47,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-.475,0,-.47],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:n.fanuc_yellow}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:n.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:n.fanuc_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-.475,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:n.fanuc_yellow}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:n.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_3",position:[-.44,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:n.fanuc_yellow}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:n.fanuc_stainless_steel})]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:n.fanuc_yellow,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:n.fanuc_yellow}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:n.fanuc_stainless_steel})]})]})]})})}Au.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0],rotationSign:[-1,1,1,1,1,1]};function Au({modelURL:e,flangeRef:t,...r}){const{nodes:a,materials:n}=K.useGLTF(e);return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:n.material_Material_Metall}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:n.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:n.material_Material_Metall})]}),o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J00",children:[o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J01",position:[.16,.52,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J02",position:[.98,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J03",position:[.15,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J04",position:[0,-.86,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(b.animated.group,{ref:t,name:"KUKA_KR16R2010_2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:n.material_Material_Farbe__2_,position:[.67,2,0],rotation:[-Math.PI,0,Math.PI/2]})}),o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:n.material_Material_Farbe,position:[-.67,0,2],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_4",geometry:a.link_4.geometry,material:n.material_Material_Farbe,position:[-.67,1.14,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_3",position:[-.52,0,1.14],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:n.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:n.material_Material_Metall}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:n.material_Material_Farbe__2_})]})]}),o.jsxs("group",{name:"link_2",position:[-.16,0,-.52],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:n.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:n.material_Material_Metall})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:n.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:n.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:n.material_Material_Metall})]})]})]})})})}Cu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0],rotationSign:[-1,1,1,1,1,1]};function Cu({modelURL:e,flangeRef:t,...r}){const{nodes:a,materials:n}=K.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:n.kuka_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:n.kuka_metal})]}),o.jsxs(b.animated.group,{name:"KUKA_KR20R1810_2_J00",children:[o.jsxs(b.animated.group,{name:"KUKA_KR20R1810_2_J01",position:[.16,.52,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR20R1810_2_J02",position:[.78,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR20R1810_2_J03",position:[.15,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR20R1810_2_J04",position:[0,-.86,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR20R1810_2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:[o.jsx("group",{name:"KUKA_KR20R1810_2_FLG",ref:t,position:[0,-.153,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:n.kuka_metal,position:[.67,1.8,0],rotation:[-Math.PI,0,Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-.67,0,1.8],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:n.kuka_orange}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:n.kuka_black}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:n.kuka_metal})]})]}),o.jsxs("group",{name:"link_4",position:[-.67,.94,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:n.kuka_orange}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:n.kuka_black}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:n.kuka_metal})]})]}),o.jsxs("group",{name:"link_3",position:[-.52,0,.94],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:n.kuka_metal}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:n.kuka_black}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:n.kuka_orange})]})]}),o.jsxs("group",{name:"link_2",position:[-.16,0,-.52],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:n.kuka_orange}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:n.kuka_black}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:a.visuals_2_2.material})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:n.kuka_orange}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:n.kuka_black}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:n.kuka_metal}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:a.visuals_1_3.material}),o.jsx("mesh",{name:"visuals_1_4",geometry:a.visuals_1_4.geometry,material:a.visuals_1_4.material}),o.jsx("mesh",{name:"visuals_1_5",geometry:a.visuals_1_5.geometry,material:a.visuals_1_5.material}),o.jsx("mesh",{name:"visuals_1_6",geometry:a.visuals_1_6.geometry,material:a.visuals_1_6.material}),o.jsx("mesh",{name:"visuals_1_7",geometry:a.visuals_1_7.geometry,material:a.visuals_1_7.material})]})]})]})})}Mu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Mu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"kuka_kr210_2700",children:[o.jsxs(b.animated.group,{name:"joint_01",children:[o.jsxs(b.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals006",geometry:n.visuals006.geometry,material:s.material_Material_Metall_black})})]}),o.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals005",children:[o.jsx("mesh",{name:"visuals005_1",geometry:n.visuals005_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals005_2",geometry:n.visuals005_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals004",children:[o.jsx("mesh",{name:"visuals004_1",geometry:n.visuals004_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals004_2",geometry:n.visuals004_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:n.visuals003_1.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals003_2",geometry:n.visuals003_2.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals003_3",geometry:n.visuals003_3.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals003_4",geometry:n.visuals003_4.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals003_5",geometry:n.visuals003_5.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals003_6",geometry:n.visuals003_6.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals003_7",geometry:n.visuals003_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:n.visuals002_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals002_2",geometry:n.visuals002_2.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals002_3",geometry:n.visuals002_3.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_1",position:[0,.236,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:n.visuals001_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals001_2",geometry:n.visuals001_2.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals001_3",geometry:n.visuals001_3.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals001_4",geometry:n.visuals001_4.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals001_5",geometry:n.visuals001_5.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals001_6",geometry:n.visuals001_6.geometry,material:s.material_Material_rubber_black}),o.jsx("mesh",{name:"visuals001_7",geometry:n.visuals001_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_0",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:s.material_Material_metal_black})]})})]})})})})}Iu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Iu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"joint_01",children:[o.jsxs(b.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals006",children:[o.jsx("mesh",{name:"visuals006_1",geometry:n.visuals006_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals006_2",geometry:n.visuals006_2.geometry,material:s.material_Material_Metall})]})})]}),o.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals005",geometry:n.visuals005.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals004",geometry:n.visuals004.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:n.visuals003_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:n.visuals003_2.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals003_3",geometry:n.visuals003_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals003_4",geometry:n.visuals003_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:n.visuals002_1.geometry,material:s.material_Material_Farbe}),o.jsx("mesh",{name:"visuals002_2",geometry:n.visuals002_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals002_3",geometry:n.visuals002_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals002_4",geometry:n.visuals002_4.geometry,material:s.material_Material_Farbe__2_})]})})]}),o.jsx("group",{name:"link_1",position:[0,.226,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:n.visuals001_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals001_2",geometry:n.visuals001_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals001_3",geometry:n.visuals001_3.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals001_4",geometry:n.visuals001_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_0-base",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:s.material_Material_Farbe__1_})]})})]})})})}Tu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0],rotationSign:[-1,1,1,1,1,1]};function Tu({modelURL:e,flangeRef:t,...r}){const{nodes:a,materials:n}=K.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:n.kuka_metal}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:n.kuka_black})]}),o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J00",children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J01",position:[.025,.4,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J02",position:[.335,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J03",position:[.025,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J04",position:[0,-.365,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"KUKA_KR6R700-2_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:n.kuka_black,position:[.425,.725,0],rotation:[-Math.PI,0,Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:n.kuka_white,position:[-.425,0,.725],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.425,.36,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:n.kuka_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:n.kuka_orange})]})]}),o.jsx("mesh",{name:"link_3",geometry:a.link_3.geometry,material:n.kuka_white,position:[-.4,0,.36],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_2",position:[-.025,0,-.4],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:n.kuka_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:n.kuka_orange})]})]}),o.jsx("mesh",{name:"link_1",geometry:a.link_1.geometry,material:n.kuka_white})]})]})})}function W1({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J00",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J01",position:[0,.127,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_1",position:[0,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_2",geometry:n.visuals_1_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_3",geometry:n.visuals_1_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_4",geometry:n.visuals_1_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_5",geometry:n.visuals_1_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J02",position:[-.612,0,0],children:[o.jsxs("group",{name:"link_2",position:[.612,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_2",geometry:n.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:n.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:n.visuals_2_4.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_5",geometry:n.visuals_2_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J03",position:[-.572,0,0],children:[o.jsxs("group",{name:"link_3",position:[1.184,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_3_2",geometry:n.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:n.visuals_3_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_4",geometry:n.visuals_3_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J04",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[1.184,.127,.164],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_2",geometry:n.visuals_4_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:n.visuals_4_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_4",geometry:n.visuals_4_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J05",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[1.184,-.164,.012],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:n.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:n.visuals_5_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_5_2",geometry:n.visuals_5_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_3",geometry:n.visuals_5_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_4",geometry:n.visuals_5_4.geometry,material:s.universalrobots_lightblue})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR10CB_FLG",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:o.jsxs("group",{name:"link_6",position:[1.184,-.012,-.28],children:[o.jsx("mesh",{name:"visuals_6",geometry:n.visuals_6.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_6_1",geometry:n.visuals_6_1.geometry,material:s.universalrobots_aluminum})]})})]})]})]})]})]})]})})})}function H1({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10E_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"C-1000488",castShadow:!0,receiveShadow:!0,geometry:n["C-1000488"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000488_1",castShadow:!0,receiveShadow:!0,geometry:n["C-1000488_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000488_2",castShadow:!0,receiveShadow:!0,geometry:n["C-1000488_2"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000488_3",castShadow:!0,receiveShadow:!0,geometry:n["C-1000488_3"].geometry,material:s.DarkGray})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10E_J01",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000489",castShadow:!0,receiveShadow:!0,geometry:n["C-1000489"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000489_1",castShadow:!0,receiveShadow:!0,geometry:n["C-1000489_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000489_2",castShadow:!0,receiveShadow:!0,geometry:n["C-1000489_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000489_3",castShadow:!0,receiveShadow:!0,geometry:n["C-1000489_3"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000489_4",castShadow:!0,receiveShadow:!0,geometry:n["C-1000489_4"].geometry,material:s.Metal})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10E_J02",position:[-.613,0,0],children:[o.jsxs("group",{name:"link_3",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000490",castShadow:!0,receiveShadow:!0,geometry:n["C-1000490"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000490_1",castShadow:!0,receiveShadow:!0,geometry:n["C-1000490_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000490_2",castShadow:!0,receiveShadow:!0,geometry:n["C-1000490_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000490_3",castShadow:!0,receiveShadow:!0,geometry:n["C-1000490_3"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000490_4",castShadow:!0,receiveShadow:!0,geometry:n["C-1000490_4"].geometry,material:s.Screw})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10E_J03",position:[-.572,0,0],children:[o.jsxs("group",{name:"link_4",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000491",castShadow:!0,receiveShadow:!0,geometry:n["C-1000491"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000491_1",castShadow:!0,receiveShadow:!0,geometry:n["C-1000491_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000491_2",castShadow:!0,receiveShadow:!0,geometry:n["C-1000491_2"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000491_3",castShadow:!0,receiveShadow:!0,geometry:n["C-1000491_3"].geometry,material:s.Screw})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10E_J04",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"C-1000492",castShadow:!0,receiveShadow:!0,geometry:n["C-1000492"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000492_1",castShadow:!0,receiveShadow:!0,geometry:n["C-1000492_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000492_2",castShadow:!0,receiveShadow:!0,geometry:n["C-1000492_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000492_3",castShadow:!0,receiveShadow:!0,geometry:n["C-1000492_3"].geometry,material:s.Screw})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10E_J05",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_6",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000493",castShadow:!0,receiveShadow:!0,geometry:n["C-1000493"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000493_1",castShadow:!0,receiveShadow:!0,geometry:n["C-1000493_1"].geometry,material:s.Metal})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR10E_FLG",position:[0,.117,0]})]})]})]})]})]})]}),o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"C-1000487",castShadow:!0,receiveShadow:!0,geometry:n["C-1000487"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000487_1",castShadow:!0,receiveShadow:!0,geometry:n["C-1000487_1"].geometry,material:s.Metal})]})]})})})}function X1({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape007",geometry:n.shape007.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"shape007_1",geometry:n.shape007_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"shape007_2",geometry:n.shape007_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"shape007_3",geometry:n.shape007_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"shape007_4",geometry:n.shape007_4.geometry,material:s.universalrobots_black})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR16E_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"shape039",geometry:n.shape039.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"shape039_1",geometry:n.shape039_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"shape039_2",geometry:n.shape039_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"shape039_3",geometry:n.shape039_3.geometry,material:s.universalrobots_black})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR16E_J01",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[.181,0,0],rotation:[-Math.PI/2,0,Math.PI/2],children:[o.jsx("mesh",{name:"shape002",geometry:n.shape002.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"shape002_1",geometry:n.shape002_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"shape002_2",geometry:n.shape002_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"shape002_3",geometry:n.shape002_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"shape002_4",geometry:n.shape002_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR16E_J02",position:[-.478,0,0],children:[o.jsxs("group",{name:"link_3",position:[.659,0,0],rotation:[-Math.PI/2,0,Math.PI/2],children:[o.jsx("mesh",{name:"shape005",geometry:n.shape005.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"shape005_1",geometry:n.shape005_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"shape005_2",geometry:n.shape005_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"shape005_3",geometry:n.shape005_3.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"shape005_4",geometry:n.shape005_4.geometry,material:s.universalrobots_darkgrey})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR16E_J03",position:[-.36,0,0],children:[o.jsxs("group",{name:"link_4",position:[0,0,-1.019],rotation:[-Math.PI/2,0,Math.PI],children:[o.jsx("mesh",{name:"shape003",geometry:n.shape003.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"shape003_1",geometry:n.shape003_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"shape003_2",geometry:n.shape003_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"shape003_3",geometry:n.shape003_3.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR16E_J04",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[0,-1.019,.174],rotation:[Math.PI,0,Math.PI],children:[o.jsx("mesh",{name:"shape",geometry:n.shape.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"shape_1",geometry:n.shape_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"shape_2",geometry:n.shape_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"shape_3",geometry:n.shape_3.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR16E_J05",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_6",position:[0,-.174,-1.139],rotation:[-Math.PI/2,0,Math.PI],children:[o.jsx("mesh",{name:"shape004",geometry:n.shape004.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"shape004_1",geometry:n.shape004_1.geometry,material:s.universalrobots_black})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR16E_FLG",position:[0,.117,0]})]})]})]})]})]})]})]})})}function q1({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"UR3_05",geometry:n.UR3_05.geometry,material:s.Standard}),o.jsxs(b.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR3_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"UR3_L06",geometry:n.UR3_L06.geometry,material:s.Standard})]})]}),o.jsx("mesh",{name:"UR3_L04",geometry:n.UR3_L04.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L03",geometry:n.UR3_L03.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L02",geometry:n.UR3_L02.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L01",geometry:n.UR3_L01.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L00",geometry:n.UR3_L00.geometry,material:s.Standard,rotation:[-Math.PI/2,0,0]})]})})})})}function Y1({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_2",geometry:n.visuals_1_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_1_3",geometry:n.visuals_1_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_4",geometry:n.visuals_1_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J01",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_2",geometry:n.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:n.visuals_2_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J02",position:[-.244,0,0],children:[o.jsxs("group",{name:"link_3",position:[.244,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_2",geometry:n.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:n.visuals_3_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J03",position:[-.213,0,0],children:[o.jsxs("group",{name:"link_4",position:[.457,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_2",geometry:n.visuals_4_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J04",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.457,.152,.131],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:n.visuals_5.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_1",geometry:n.visuals_5_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_2",geometry:n.visuals_5_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J05",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_6",position:[.457,-.131,.067],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_6",geometry:n.visuals_6.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_6_1",geometry:n.visuals_6_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_6_2",geometry:n.visuals_6_2.geometry,material:s.universalrobots_aluminum})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR3E_FLG",position:[0,.092,0]})]})]})]})]})]})]})]})})}function Ri({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_2",geometry:n.visuals_1_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_1_3",geometry:n.visuals_1_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J01",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_2_2",geometry:n.visuals_2_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_3",geometry:n.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:n.visuals_2_4.geometry,material:s.universalrobots_darkgrey})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J02",position:[-.425,0,0],children:[o.jsxs("group",{name:"link_3",position:[.425,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_2",geometry:n.visuals_3_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_3",geometry:n.visuals_3_3.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_4",geometry:n.visuals_3_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J03",position:[-.392,0,0],children:[o.jsxs("group",{name:"link_4",position:[.817,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_4_2",geometry:n.visuals_4_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_4_3",geometry:n.visuals_4_3.geometry,material:s.universalrobots_black})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J04",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.817,.089,.109],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:n.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:n.visuals_5_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_5_2",geometry:n.visuals_5_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_3",geometry:n.visuals_5_3.geometry,material:s.universalrobots_black})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J05",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:s.universalrobots_stainlesssteel,position:[.817,-.109,-.005],rotation:[-Math.PI/2,0,0]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR5CB_FLG",position:[0,.082,0]})]})]})]})]})]})]}),o.jsx("mesh",{name:"link_0",geometry:n.link_0.geometry,material:s.universalrobots_aluminum})]})})}function Z1({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR5e_FLG",position:[0,.1,0]}),o.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000255",geometry:n["C-1000255"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000255_1",geometry:n["C-1000255_1"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000253",geometry:n["C-1000253"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000253_1",geometry:n["C-1000253_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000253_2",geometry:n["C-1000253_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000253_3",geometry:n["C-1000253_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000251",geometry:n["C-1000251"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000251_1",geometry:n["C-1000251_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000251_2",geometry:n["C-1000251_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000251_3",geometry:n["C-1000251_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L03",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000250",geometry:n["C-1000250"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000250_1",geometry:n["C-1000250_1"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000250_2",geometry:n["C-1000250_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000250_3",geometry:n["C-1000250_3"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000250_4",geometry:n["C-1000250_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000249",geometry:n["C-1000249"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000249_1",geometry:n["C-1000249_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000249_2",geometry:n["C-1000249_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000249_3",geometry:n["C-1000249_3"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000249_4",geometry:n["C-1000249_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000248",geometry:n["C-1000248"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000248_1",geometry:n["C-1000248_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000248_2",geometry:n["C-1000248_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000248_3",geometry:n["C-1000248_3"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L00",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000257",geometry:n["C-1000257"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000257_1",geometry:n["C-1000257_1"].geometry,material:s.Metal})]})})]})})})})}Ou.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Ou({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[o.jsxs(b.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1440_L06_CAD",geometry:n.AR1440_L06_CAD.geometry,material:s.metall})]}),o.jsx("mesh",{name:"AR1440_L05_CAD",geometry:n.AR1440_L05_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L04_CAD",children:[o.jsx("mesh",{name:"AR1440_L04_CAD001",geometry:n.AR1440_L04_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L04_CAD001_1",geometry:n.AR1440_L04_CAD001_1.geometry,material:s.white})]})]}),o.jsxs("group",{name:"AR1440_L03_CAD",children:[o.jsx("mesh",{name:"AR1440_L03_CAD001",geometry:n.AR1440_L03_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L03_CAD001_1",geometry:n.AR1440_L03_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L02_CAD",geometry:n.AR1440_L02_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L01_CAD",children:[o.jsx("mesh",{name:"AR1440_L01_CAD001",geometry:n.AR1440_L01_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L01_CAD001_1",geometry:n.AR1440_L01_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L00_CAD",geometry:n.AR1440_L00_CAD.geometry,material:s.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})})}Eu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Eu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"AR1730_J00",children:[o.jsxs(b.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(b.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1730_L06",geometry:n.AR1730_L06.geometry,material:s.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR1730_L05",geometry:n.AR1730_L05.geometry,material:s.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_R_AXIS_SW0001002",geometry:n._R_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_R_AXIS_SW0001002_1",geometry:n._R_AXIS_SW0001002_1.geometry,material:s.White})]})]}),o.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_U_AXIS_SW0001002",geometry:n._U_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_U_AXIS_SW0001002_1",geometry:n._U_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L02",geometry:n.AR1730_L02.geometry,material:s.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),o.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_S_AXIS_SW0001002",geometry:n._S_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_S_AXIS_SW0001002_1",geometry:n._S_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L00",geometry:n.AR1730_L00.geometry,material:s.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})})}Lu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Lu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape",geometry:n.shape.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape_1",geometry:n.shape_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape_2",geometry:n.shape_2.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape_3",geometry:n.shape_3.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"shape001",geometry:n.shape001.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape001_1",geometry:n.shape001_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.15],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.76,0,-.15],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape003",geometry:n.shape003.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape003_1",geometry:n.shape003_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:n.link_4.geometry,material:s.yaskawa_blue,position:[-.96,.15,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J04",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:s.yaskawa_blue,position:[-.96,0,-1.232],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:s.yaskawa_metalsilver,position:[-.96,1.232,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})}Nu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Nu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"AR3120_J00",children:[o.jsxs(b.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(b.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR3120_L06",geometry:n.AR3120_L06.geometry,material:s["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR3120_L05",geometry:n.AR3120_L05.geometry,material:s["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"R_AXIS_GP20HL001",geometry:n.R_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"R_AXIS_GP20HL001_1",geometry:n.R_AXIS_GP20HL001_1.geometry,material:s["White.001"]})]})]}),o.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_3001",geometry:n.Mesh_3001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"Mesh_3001_1",geometry:n.Mesh_3001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L02",geometry:n.AR3120_L02.geometry,material:s["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),o.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[o.jsx("mesh",{name:"S_AXIS_GP20HL001",geometry:n.S_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"S_AXIS_GP20HL001_1",geometry:n.S_AXIS_GP20HL001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L00",geometry:n.AR3120_L00.geometry,material:s["Blue.001"],position:[0,-.54,0]})]})})})}ps.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function ps({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals",geometry:n.visuals.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J00",children:[o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:s.yaskawa_blue}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J01",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.04],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J02",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.445,0,-.04],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003",geometry:n.visuals003.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals003_1",geometry:n.visuals003_1.geometry,material:s.material_Material_Metall__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:n.visuals003_2.geometry,material:s.yaskawa_black})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[-.485,.04,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004",geometry:n.visuals004.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"visuals004_1",geometry:n.visuals004_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals004_2",geometry:n.visuals004_2.geometry,material:s.yaskawa_blue})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J04",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:s.yaskawa_blue,position:[-.485,0,-.48],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:s.yaskawa_metalgold,position:[-.485,.48,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP7_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}$u.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function $u({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape439",geometry:n.shape439.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape439_1",geometry:n.shape439_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape439_2",geometry:n.shape439_2.geometry,material:s.yaskawa_black})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J00",position:[0,-.54,0],children:[o.jsxs("group",{name:"link_1",position:[0,.54,0],children:[o.jsx("mesh",{name:"shape320",geometry:n.shape320.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape320_1",geometry:n.shape320_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_2",geometry:n.shape320_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape320_3",geometry:n.shape320_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_4",geometry:n.shape320_4.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape320_5",geometry:n.shape320_5.geometry,material:s.yaskawa_black})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J01",position:[.145,.54,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.145],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape440",geometry:n.shape440.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape440_1",geometry:n.shape440_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape440_2",geometry:n.shape440_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape440_3",geometry:n.shape440_3.geometry,material:s.yaskawa_black})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.87,0,-.145],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape341",geometry:n.shape341.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape341_1",geometry:n.shape341_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape341_2",geometry:n.shape341_2.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_3",geometry:n.shape341_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_4",geometry:n.shape341_4.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape341_5",geometry:n.shape341_5.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:n.link_4.geometry,material:s.yaskawa_blue,position:[-1.08,.145,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:s.yaskawa_blue,position:[-1.08,0,-1.17],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:s.yaskawa_metalsilver,position:[-1.08,1.17,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP50_FLG",position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}Fu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Fu({modelURL:e,flangeRef:t,...r}){const a=K.useGLTF(e),n=a.nodes,s=a.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape003",geometry:n.shape003.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape003_1",geometry:n.shape003_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape003_2",geometry:n.shape003_2.geometry,material:s.yaskawa_black})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP88_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"shape030",geometry:n.shape030.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape030_1",geometry:n.shape030_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape030_2",geometry:n.shape030_2.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape030_3",geometry:n.shape030_3.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP88_J01",position:[.32,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.32],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape029",geometry:n.shape029.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape029_1",geometry:n.shape029_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape029_2",geometry:n.shape029_2.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape029_3",geometry:n.shape029_3.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP88_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.87,0,-.32],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape021",geometry:n.shape021.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape021_1",geometry:n.shape021_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape021_2",geometry:n.shape021_2.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP88_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:n.link_4.geometry,material:s.yaskawa_blue,position:[-1.08,.32,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP88_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:s.yaskawa_blue,position:[-1.08,0,-1.345],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP88_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:s.yaskawa_metalgold,position:[-1.08,1.345,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{name:"YASKAWA_GP88_FLG",ref:t,position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})}const wi="0.0.0-semantically-released",Q1="(^joint_[0-9]+$)|(_J[0-9]+$)";function Du(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Du(t))]}function eb(e,t){return new RegExp(t??Q1).test(e)}function Uu(e,t){return Du(e).filter(r=>eb(r.name,t))}function Bu({rapidlyChangingMotionState:e,jointCollector:t,onRotationChanged:r,robotConfig:a,children:n}){b.Globals.assign({frameLoop:"always"});const s=W.useRef([]),i=W.useRef([]),{invalidate:l}=Qu.useThree();function u(_){_&&(i.current=t?t(_):Uu(_),d(),l())}function c(_){s.current=_,y.start(Object.assign({},s.current))}const m=(a==null?void 0:a.rotationSign)||[1,1,1,1,1,1],f=(a==null?void 0:a.rotationOffsets)||[0,0,0,0,0,0];function d(){const _=i.current.map((g,j)=>x[j].get());if(r)r(i.current,_);else for(const[g,j]of i.current.entries())j.rotation.y=m[g]*_[g]+f[g]}hl(()=>{const _=e.state.joint_position.joints.filter(g=>g!==void 0);requestAnimationFrame(()=>c(_))});const[x,y]=b.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{d(),l()},onResolve:()=>{d()}}));return o.jsx("group",{ref:u,children:n})}const Pi="line",ki="mesh";function Ga({rapidlyChangingMotionState:e,dhParameters:t,...r}){const a=new vt.Matrix4;function n(u,c){const m=new vt.Vector3,f=new vt.Quaternion,d=new vt.Vector3;a.decompose(m,f,d);const x=m.clone(),y=new vt.Matrix4().makeRotationY(u.theta+c*(u.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,u.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(u.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(u.alpha));return a.multiply(y),a.decompose(m,f,d),{a:x,b:m}}function s(u,c,m,f){if(!t)return;const d=t[u];if(!d)return;const{a:x,b:y}=n(d,f);c.geometry.setPositions([x.toArray(),y.toArray()].flat()),m.position.set(y.x,y.y,y.z)}function i(u,c){a.identity(),u.forEach((m,f)=>{s(f,m.getObjectByName(Pi),m.getObjectByName(ki),c[f])})}function l(u){return Uu(u,"^group_[0-9]+$")}return o.jsx(o.Fragment,{children:o.jsx(Bu,{rapidlyChangingMotionState:e,jointCollector:l,onRotationChanged:i,children:o.jsxs("group",{...r,name:"Scene",children:[o.jsxs("mesh",{children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((u,c)=>{const{a:m,b:f}=n(u,e.state.joint_position.joints[c]??0);return o.jsxs("group",{name:`group_${c}`,children:[o.jsx(K.Line,{name:Pi,points:[m,f],color:"white",lineWidth:5}),o.jsxs("mesh",{name:ki,position:f,children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+c)]},"group_"+c)})]})})})}const tb=console.warn;function rb(){return W.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&tb(e)}},[]),o.jsx(o.Fragment,{})}function Gs(e){let t=wi;return wi.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}const Ju=sn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:a=Gs,isGhost:n=!1,flangeRef:s,...i})=>{let l=null;const u=W.useRef(),c=W.useCallback(d=>{d&&(u.current=d,n&&m())},[n]),m=()=>{!u.current||u.current.userData.isGhost||(u.current.traverse(d=>{if(d instanceof Ce.Mesh){d.material instanceof Ce.Material&&(d.material.colorWrite=!0);const x=d.clone(),y=d.clone();x.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),x.userData.isGhost=!0,y.material=new Ce.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),y.userData.isGhost=!0,d.parent&&(d.parent.add(x),d.parent.add(y))}}),u.current.userData.isGhost=!0)},f=()=>{if(!u.current||!u.current.userData.isGhost)return;const d=[];u.current.traverse(x=>{var y;x instanceof Ce.Mesh&&((y=x.userData)!=null&&y.isGhost?d.push(x):x.material instanceof Ce.Material&&(x.material.colorWrite=!0))}),d.forEach(x=>{x.parent&&x.parent.remove(x)}),u.current.userData.isGhost=!0};switch(W.useEffect(()=>{n?m():f()},[n]),t){case"UniversalRobots_UR3CB":l=q1;break;case"UniversalRobots_UR3e":l=Y1;break;case"UniversalRobots_UR5":l=Ri;break;case"UniversalRobots_UR5CB":l=Ri;break;case"UniversalRobots_UR5e":l=Z1;break;case"UniversalRobots_UR10CB":l=W1;break;case"UniversalRobots_UR10e":l=H1;break;case"UniversalRobots_UR16e":l=X1;break;case"Yaskawa_AR900":l=ps;break;case"Yaskawa_GP7":l=ps;break;case"Yaskawa_AR1440":l=Ou;break;case"Yaskawa_AR1730":l=Eu;break;case"Yaskawa_AR2010":l=Lu;break;case"Yaskawa_AR3120":l=Nu;break;case"Yaskawa_GP50":l=$u;break;case"Yaskawa_GP88":l=Fu;break;case"FANUC_CRX10iA":l=xu;break;case"FANUC_CRX10iAL":l=vu;break;case"FANUC_CRX20iAL":l=ju;break;case"FANUC_CRX25iA":l=Su;break;case"FANUC_CRX25iAL":l=Ru;break;case"FANUC_LR_Mate_200iD":l=wu;break;case"FANUC_LR_Mate_200iD4S":l=Pu;break;case"FANUC_LR_Mate_200iD7L":l=ku;break;case"FANUC_ARC_Mate_120iD":l=gs;break;case"FANUC_ARC_Mate_120iD35":l=gs;break;case"FANUC_ARC_Mate_100iD":l=bu;break;case"KUKA_KR210_R2700":l=Mu;break;case"KUKA_KR270_R2700":l=Iu;break;case"KUKA_KR16_R2010_2":l=Au;break;case"KUKA_KR20_R1810_2":l=Cu;break;case"KUKA_KR6_R700_2":l=Tu;break;case"ABB_1200_07_7":l=_u;break;case"ABB_1300_115_10":l=yu;break;default:console.warn(`Unknown robot type: ${t}`),l=null}return o.jsxs(rc.ErrorBoundary,{fallback:o.jsx(Ga,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:[o.jsx(W.Suspense,{fallback:o.jsx(Ga,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:o.jsx("group",{ref:c,children:l?o.jsx(Bu,{rapidlyChangingMotionState:e,robotConfig:l.config,children:o.jsx(l,{modelURL:a(t),flangeRef:s,...i})}):o.jsx(Ga,{rapidlyChangingMotionState:e,dhParameters:r})})}),o.jsx(rb,{})]})});function nb({connectedMotionGroup:e,getModel:t=Gs,isGhost:r=!1,flangeRef:a,...n}){return e.dhParameters?o.jsx(Ju,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,flangeRef:a,...n}):null}const ab=T.styled(T.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,a;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:n})=>!n,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:n})=>n,style:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),sb=W.forwardRef((e,t)=>o.jsx(ab,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),ob={$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"},ib=W.lazy(()=>import("@monaco-editor/react")),lb=sn(e=>{const t=T.useTheme(),r=W.useRef(null),[a,n]=W.useState("dark-plus"),s=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(l){const[{createHighlighter:u},{shikiToMonaco:c}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);l.languages.register({id:"wandelscript"}),l.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await u({langs:[ob],themes:["dark-plus","light-plus"]})),c(r.current,l),l.editor.defineTheme(s,{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:t.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(l),n(s)}return o.jsx(W.Suspense,{fallback:o.jsx(ga,{}),children:o.jsx(ib,{value:e.code,onMount:(l,u)=>{i(u)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:a,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function Vu(){var t,r,a,n,s,i;const e=T.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(a=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:a.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiFab:{styleOverrides:{root:{background:(i=(s=e.paletteExt)==null?void 0:s.secondary)==null?void 0:i.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)"}}}}}}function ub(){const e=Vu();return e.palette.mode="light",e}function cb(e){var r,a,n,s;let t=!0;return((r=e.palette)==null?void 0:r.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(n=window.matchMedia)==null?void 0:n.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches))),t?Vu():ub()}exports.JoggingCartesianAxisControl=ts;exports.JoggingJointRotationControl=xl;exports.JoggingPanel=U1;exports.LoadingCover=ga;exports.LoadingErrorMessage=zl;exports.NoMotionGroupModal=K1;exports.PoseCartesianValues=J1;exports.PoseJointValues=V1;exports.PresetEnvironment=sc;exports.Robot=nb;exports.SafetyZonesRenderer=lc;exports.SelectableFab=sb;exports.SupportedRobot=Ju;exports.VelocitySlider=hu;exports.VelocitySliderLabel=Vs;exports.WandelscriptEditor=lb;exports.createNovaMuiTheme=cb;exports.defaultAxisConfig=z1;exports.defaultGetModel=Gs;exports.useAnimationFrame=jr;exports.useAutorun=hl;exports.useMounted=la;exports.useReaction=Is;
75
+ } });`:zr(12,h?` (${h})`:"",JSON.stringify(y.main)));return hs(y,"light",T,n),hs(y,"dark",_,n),y.contrastText||(y.contrastText=d(y.main)),y},v={dark:jo,light:gs};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ze(P({common:P({},Wr),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:tp,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},v[t]),o)}const up=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function fp(e){return Math.round(e*1e5)/1e5}const ms={textTransform:"uppercase"},ys='"Roboto", "Helvetica", "Arial", sans-serif';function dp(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ys,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,f=De(r,up);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=o/14,m=d||(S=>`${S/c*v}rem`),y=(S,T,_,O,w)=>P({fontFamily:n,fontWeight:S,fontSize:m(T),lineHeight:_},n===ys?{letterSpacing:`${fp(O/T)}em`}:{},w,u),h={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(a,14,1.75,.4,ms),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,ms),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ze(P({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},h),f,{clone:!1})}const pp=.2,gp=.14,hp=.12;function ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hp})`].join(",")}const mp=["none",ue(0,2,1,-1,0,1,1,0,0,1,3,0),ue(0,3,1,-2,0,2,2,0,0,1,5,0),ue(0,3,3,-2,0,3,4,0,0,1,8,0),ue(0,2,4,-1,0,4,5,0,0,1,10,0),ue(0,3,5,-1,0,5,8,0,0,1,14,0),ue(0,3,5,-1,0,6,10,0,0,1,18,0),ue(0,4,5,-2,0,7,10,1,0,2,16,1),ue(0,5,5,-3,0,8,10,1,0,3,14,2),ue(0,5,6,-3,0,9,12,1,0,3,16,2),ue(0,6,6,-3,0,10,14,1,0,4,18,3),ue(0,6,7,-4,0,11,15,1,0,4,20,3),ue(0,7,8,-4,0,12,17,2,0,5,22,4),ue(0,7,8,-4,0,13,19,2,0,5,24,4),ue(0,7,9,-4,0,14,21,2,0,5,26,4),ue(0,8,9,-5,0,15,22,2,0,6,28,5),ue(0,8,10,-5,0,16,24,2,0,6,30,5),ue(0,8,11,-5,0,17,26,2,0,6,32,5),ue(0,9,11,-5,0,18,28,2,0,7,34,6),ue(0,9,12,-6,0,19,29,2,0,7,36,6),ue(0,10,13,-6,0,20,31,3,0,8,38,7),ue(0,10,13,-6,0,21,33,3,0,8,40,7),ue(0,10,14,-6,0,22,35,3,0,8,42,7),ue(0,11,14,-7,0,23,36,3,0,9,44,8),ue(0,11,15,-7,0,24,38,3,0,9,46,8)],yp=["duration","easing","delay"],bp={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)"},vp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bs(e){return`${Math.round(e)}ms`}function xp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Sp(e){const t=P({},bp,e.easing),r=P({},vp,e.duration);return P({getAutoHeightDuration:xp,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:a=t.easeInOut,delay:l=0}=i,c=De(i,yp);if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(s)&&!u(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),u(a)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
76
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:bs(s)} ${a} ${typeof l=="string"?l:bs(l)}`).join(",")}},e,{easing:t,duration:r})}const wp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ll(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,s=De(e,Tp);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.":zr(18));const a=cp(n),l=tn(e);let c=Ze(l,{mixins:Ud(l.breakpoints,r),palette:a,shadows:mp.slice(),typography:dp(a,i),transitions:Sp(o),zIndex:P({},wp)});if(c=Ze(c,s),c=t.reduce((u,d)=>Ze(u,d),c),process.env.NODE_ENV!=="production"){const u=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(f,v)=>{let m;for(m in f){const y=f[m];if(u.indexOf(m)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const h=rn("",m);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${h}' syntax:`,JSON.stringify({root:{[`&.${h}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
77
+ `))}f[m]={}}}};Object.keys(c.components).forEach(f=>{const v=c.components[f].styleOverrides;v&&f.indexOf("Mui")===0&&d(v,f)})}return c.unstable_sxConfig=P({},Qr,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return en({sx:d,theme:this})},c}const Op=ll(),Ep="$$material";function Ri(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cp=e=>Ri(e)&&e!=="classes",Ot=Rd({themeId:Ep,defaultTheme:Op,rootShouldForwardProp:Cp});process.env.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function _i(e){return ud(e)}const mr=bd({createStyledComponent:Ot("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>_i({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(mr.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 Rp={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 Mn{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||Rp,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 Mn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Mn(this.logger,t)}}var dt=new Mn;class so{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(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[t,...n])})}}const Nr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},vs=e=>e==null?"":""+e,_p=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Pp=/###/g,xs=e=>e&&e.indexOf("###")>-1?e.replace(Pp,"."):e,Ss=e=>!e||typeof e=="string",Br=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Ss(e))return{};const i=xs(n[o]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return Ss(e)?{}:{obj:e,k:xs(n[o])}},ws=(e,t,r)=>{const{obj:n,k:o}=Br(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=Br(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Br(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=r},$p=(e,t,r,n)=>{const{obj:o,k:i}=Br(e,t,Object);o[i]=o[i]||[],o[i].push(r)},Dn=(e,t)=>{const{obj:r,k:n}=Br(e,t);if(r)return r[n]},kp=(e,t,r)=>{const n=Dn(e,r);return n!==void 0?n:Dn(t,r)},cl=(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]):cl(e[n],t[n],r):e[n]=t[n]);return e},cr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Ap=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>jp[t]):e;class Lp{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 Ip=[" ",",","?","!",";"],Np=new Lp(20),Mp=(e,t,r)=>{t=t||"",r=r||"";const n=Ip.filter(s=>t.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const o=Np.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(r);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},ei=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let i=0;i<n.length;){if(!o||typeof o!="object")return;let s,a="";for(let l=i;l<n.length;++l)if(l!==i&&(a+=r),a+=n[l],s=o[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<n.length-1)continue;i+=l-i+1;break}o=s}return o},Fn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Ts extends so{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 i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,r],n&&(Array.isArray(n)?a.push(...n):typeof n=="string"&&i?a.push(...n.split(i)):a.push(n)));const l=Dn(this.data,a);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=a[0],r=a[1],n=a.slice(2).join(".")),l||!s||typeof n!="string"?l:ei(this.data&&this.data[t]&&this.data[t][r],n,i)}addResource(t,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,r];n&&(a=a.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(a=t.split("."),o=r,r=a[1]),this.addNamespaces(r),ws(this.data,a,o),i.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 i in n)(typeof n[i]=="string"||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,r];t.indexOf(".")>-1&&(a=t.split("."),o=n,n=r,r=a[1]),this.addNamespaces(r);let l=Dn(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?cl(l,n,i):l={...l,...n},ws(this.data,a,l),s.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 ul={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,r,n,o))}),t}};const Os={};class Vn extends so{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),_p(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=dt.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 i=r.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Mp(t,n,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const c=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}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,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],r),l=a[a.length-1],c=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const O=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${O}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${O}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const d=this.resolve(t,r);let f=d&&d.res;const v=d&&d.usedKey||s,m=d&&d.exactUsedKey||s,y=Object.prototype.toString.apply(f),h=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject;if(T&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&h.indexOf(y)<0&&!(typeof S=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=O,d.usedParams=this.getUsedParamsDetails(r),d):O}if(i){const O=Array.isArray(f),w=O?[]:{},E=O?m:v;for(const R in f)if(Object.prototype.hasOwnProperty.call(f,R)){const U=`${E}${i}${R}`;w[R]=this.translate(U,{...r,joinArrays:!1,ns:a}),w[R]===U&&(w[R]=f[R])}f=w}}else if(T&&typeof S=="string"&&Array.isArray(f))f=f.join(S),f&&(f=this.extendTranslation(f,t,r,n));else{let O=!1,w=!1;const E=r.count!==void 0&&typeof r.count!="string",R=Vn.hasDefaultValue(r),U=E?this.pluralResolver.getSuffix(c,r.count,r):"",Q=r.ordinal&&E?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",F=E&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),M=F&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${U}`]||r[`defaultValue${Q}`]||r.defaultValue;!this.isValidLookup(f)&&R&&(O=!0,f=M),this.isValidLookup(f)||(w=!0,f=s);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:f,X=R&&M!==f&&this.options.updateMissing;if(w||O||X){if(this.logger.log(X?"updateKey":"missingKey",c,l,s,X?M:f),i){const ee=this.resolve(s,{...r,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let ee=0;ee<xe.length;ee++)Y.push(xe[ee]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(r.lng||this.language):Y.push(r.lng||this.language);const le=(ee,Te,ke)=>{const tt=R&&ke!==f?ke:G;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,l,Te,tt,X,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,l,Te,tt,X,r),this.emit("missingKey",ee,l,Te,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?Y.forEach(ee=>{const Te=this.pluralResolver.getSuffixes(ee,r);F&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Te.indexOf(`${this.options.pluralSeparator}zero`)<0&&Te.push(`${this.options.pluralSeparator}zero`),Te.forEach(ke=>{le([ee],s+ke,r[`defaultValue${ke}`]||M)})}):le(Y,s,M))}f=this.extendTranslation(f,t,r,d,n),w&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(w||O)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,O?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(r),d):f}extendTranslation(t,r,n,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,n.lng||this.language||o.usedLng,n),c){const f=t.match(this.interpolator.nestingRegexp),v=f&&f.length;u<v&&(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,v=new Array(f),m=0;m<f;m++)v[m]=arguments[m];return i&&i[0]===v[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${r[0]}`),null):s.translate(...v,r)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&n.applyPostProcessor!==!1&&(t=ul.handle(l,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,i,s,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",v=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),m=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);d.forEach(h=>{this.isValidLookup(n)||(a=h,!Os[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Os[`${y[0]}-${h}`]=!0,this.logger.warn(`key "${o}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" 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(S=>{if(this.isValidLookup(n))return;s=S;const T=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(T,u,S,h,r);else{let O;f&&(O=this.pluralResolver.getSuffix(S,r.count,r));const w=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(T.push(u+O),r.ordinal&&O.indexOf(E)===0&&T.push(u+O.replace(E,this.options.pluralSeparator)),v&&T.push(u+w)),m){const R=`${u}${this.options.contextSeparator}${r.context}`;T.push(R),f&&(T.push(R+O),r.ordinal&&O.indexOf(E)===0&&T.push(R+O.replace(E,this.options.pluralSeparator)),v&&T.push(R+w))}}let _;for(;_=T.pop();)this.isValidLookup(n)||(i=_,n=this.getResource(S,h,_,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}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 i of r)delete o[i]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Ao=e=>e.charAt(0).toUpperCase()+e.slice(1);class Es{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dt.create("languageUtils")}getScriptPartFromCode(t){if(t=Fn(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=Fn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ao(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ao(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ao(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),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=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),n.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let Dp=[{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}],Fp={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Vp=["v1","v2","v3"],Bp=["v4"],Cs={zero:0,one:1,two:2,few:3,many:4,other:5},Up=()=>{const e={};return Dp.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Fp[t.fc]}})}),e};class zp{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=dt.create("pluralResolver"),(!this.options.compatibilityJSON||Bp.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=Up()}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(Fn(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,i)=>Cs[o]-Cs[i]).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 i=()=>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()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Vp.includes(this.options.compatibilityJSON)}}const Rs=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=kp(e,t,r);return!i&&o&&typeof r=="string"&&(i=ei(e,r,n),i===void 0&&(i=ei(t,r,n))),i},Lo=e=>e.replace(/\$/g,"$$$$");class Jp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dt.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:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:v,nestingSuffix:m,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:S,alwaysFormat:T}=t.interpolation;this.escape=r!==void 0?r:Ap,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?cr(i):s||"{{",this.suffix=a?cr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?cr(f):v||cr("$t("),this.nestingSuffix=m?cr(m):y||cr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=S||1e3,this.alwaysFormat=T!==void 0?T:!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 i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=v=>{if(v.indexOf(this.formatSeparator)<0){const S=Rs(r,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...o,...r,interpolationkey:v}):S}const m=v.split(this.formatSeparator),y=m.shift().trim(),h=m.join(this.formatSeparator).trim();return this.format(Rs(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,n,{...o,...r,interpolationkey:y})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Lo(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Lo(this.escape(v)):Lo(v)}].forEach(v=>{for(a=0;i=v.regex.exec(t);){const m=i[1].trim();if(s=c(m),s===void 0)if(typeof u=="function"){const h=u(t,i,o);s=typeof h=="string"?h:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=vs(s));const y=v.safeValue(s);if(t=t.replace(i[0],y),d?(v.regex.lastIndex+=s.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const v=f.match(/'/g),m=f.match(/"/g);(v&&v.length%2===0&&!m||m.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${u}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...n},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),l=u,c=!0}if(i=r(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=vs(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Hp=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(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},ur=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={formatParams:{[o.interpolationkey]:o.formatParams[o.interpolationkey]},interpolationKey:o.interpolationkey});const s=n+JSON.stringify(i);let a=t[s];return a||(a=e(Fn(n),o),t[s]=a),a(r)}};class Wp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dt.create("formatter"),this.options=t,this.formats={number:ur((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:ur((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:ur((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:ur((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:ur((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},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()]=ur(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=Hp(l);if(this.formats[c]){let d=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},v=f.locale||f.lng||o.locale||o.lng||n;d=this.formats[c](a,v,{...u,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const Gp=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class qp extends so{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=dt.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 i={},s={},a={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{const f=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,u=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const o=t.split("|"),i=o[0],s=o[1];r&&this.emit("failedLoading",i,s,r),n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const a={};this.queue.forEach(l=>{$p(l.loaded,[i],s),Gp(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,i*2,s)},i);return}s(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,r,a)}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 i=this.queueLoad(t,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}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],i=n[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=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 l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,n,o,l):u=c(t,r,n,o),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(t,r,n,o,a,l)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const _s=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ps=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),gn=()=>{},Kp=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Gr extends so{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ps(t),this.services={},this.logger=dt,this.modules={external:[]},Kp(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=_s();this.options={...o,...this.options,...Ps(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?dt.init(i(this.modules.logger),this.options):dt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Wp);const d=new Es(this.options);this.store=new Ts(this.options.resources,this.options);const f=this.services;f.logger=dt,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new zp(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Jp(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new qp(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),h=1;h<m;h++)y[h-1]=arguments[h];t.emit(v,...y)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Vn(this.services,this.options),this.translator.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),h=1;h<m;h++)y[h-1]=arguments[h];t.emit(v,...y)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=gn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=Nr(),c=()=>{const u=(d,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),l.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;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 i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(t,r,n){const o=Nr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=gn),this.services.backendConnector.reload(t,r,i=>{o.resolve(),n(i)}),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"&&ul.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const o=Nr();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,r,n){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=o.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const f=o.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(s)?v=s.map(m=>`${l.keyPrefix}${f}${m}`):v=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(v,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=r,i.keyPrefix=n,i}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,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===2};if(r.precheck){const a=r.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,t)&&(!o||s(i,t)))}loadNamespaces(t,r){const n=Nr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Nr();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),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 Es(_s());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 Gr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new Gr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Ts(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Vn(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(o,r),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const _e=Gr.createInstance();_e.createInstance=Gr.createInstance;_e.createInstance;_e.dir;_e.init;_e.loadResources;_e.reloadResources;_e.use;_e.changeLanguage;_e.getFixedT;_e.t;_e.exists;_e.setDefaultNamespace;_e.hasLoadedNamespace;_e.loadNamespaces;_e.loadLanguages;const Yp={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.Activate.bt":"Jogging aktivieren","Jogging.Activating.lb":"Jogging wird aktiviert","Jogging.JointLimitsReached.lb":"Joint-Limit für Joint {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},Xp={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activate.bt":"Activate jogging","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},fl=_e.createInstance();fl.use($c).init({supportedLngs:["en","de"],resources:{en:{translations:Xp},de:{translations:Yp}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function on(e){return r=>b.jsx(Zp,{children:b.jsx(e,{...r})})}const Zp=({children:e})=>b.jsx(Kt.I18nextProvider,{i18n:fl,children:e}),Qp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogMinus"},N.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),eg=H.forwardRef(Qp),tg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogPlus"},N.createElement("g",{id:"Plus"},N.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),N.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),N.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),rg=H.forwardRef(tg);function ao(e){H.useEffect(e,[])}function dl(e){ao(()=>ut.autorun(e))}function Pi(e,t,r){ao(()=>ut.reaction(e,t,r))}function Sr(e){return ao(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const ti=on($e.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:i,activeJoggingDirection:s,...a})=>{var _,O,w,E,R,U,Q;Sr(()=>{const F=r(),M=f.current;M&&(M.textContent=F)});const l=k.useTheme(),[c,u]=H.useState(null);H.useEffect(()=>{i&&T()},[i]);const d=s||c,f=H.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const v=d?(_=e.buttonBackgroundColor)==null?void 0:_.pressed:e.borderColor,m={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},y={...m,backgroundColor:(O=e.buttonBackgroundColor)==null?void 0:O.default,":hover":{backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.hovered},":active":{backgroundColor:(E=e.buttonBackgroundColor)==null?void 0:E.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(R=e.buttonBackgroundColor)==null?void 0:R.disabled,"svg path":{fill:l.palette.action.disabled}}},h={...m,backgroundColor:(U=e.buttonBackgroundColor)==null?void 0:U.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(Q=e.buttonBackgroundColor)==null?void 0:Q.pressed,"svg path":{fill:l.palette.action.disabled}}};function S(F,M){i||F.button===0&&(u(M),n(M))}function T(){u(null),o()}return b.jsxs(mr,{height:"64px",direction:"row",justifyContent:"center",...a,children:[b.jsx(k.IconButton,{disabled:i,disableRipple:!0,onPointerDown:F=>S(F,"-"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="-"?h:y,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(eg,{})}),b.jsxs(mr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:[b.jsx(mr,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...i?{color:l.palette.action.disabled}:{}},...i?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),b.jsx(k.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:f,children:r()})]}),b.jsx(k.IconButton,{disableRipple:!0,disabled:i,onPointerDown:F=>S(F,"+"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="+"?h:y,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(rg,{})})]})}));var $i={},Io={};function ng(e){return rn("MuiSvgIcon",e)}Ga("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const og=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ig=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ee(t)}`,`fontSize${Ee(r)}`]};return Ti(o,ng,n)},sg=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ee(r.color)}`],t[`fontSize${Ee(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,a,l,c,u,d,f,v,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),Bn=N.forwardRef(function(t,r){const n=_i({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=n,v=De(n,og),m=N.isValidElement(o)&&o.type==="svg",y=P({},n,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m}),h={};u||(h.viewBox=f);const S=ig(y);return b.jsxs(sg,P({as:a,className:gt(S.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},h,v,m&&o.props,{ownerState:y,children:[m?o.props.children:o,d?b.jsx("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(Bn.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,fontSize:p.oneOfType([p.oneOf(["inherit","large","medium","small"]),p.string]),htmlColor:p.string,inheritViewBox:p.bool,shapeRendering:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),titleAccess:p.string,viewBox:p.string});Bn.muiName="SvgIcon";function ag(e,t){function r(n,o){return b.jsx(Bn,P({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Bn.muiName,N.memo(N.forwardRef(r))}const lg={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
78
+ `)),Ha.configure(e)}},cg=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ee,createChainedFunction:Ff,createSvgIcon:ag,debounce:Vf,deprecatedPropType:Bf,isMuiElement:Uf,ownerDocument:hr,ownerWindow:zf,requirePropFactory:Jf,setRef:Xa,unstable_ClassNameGenerator:lg,unstable_useEnhancedEffect:Si,unstable_useId:Wf,unsupportedProp:Gf,useControlled:Za,useEventCallback:Cn,useForkRef:In,useIsFocusVisible:Qa},Symbol.toStringTag,{value:"Module"})),ug=Tt(cg);var $s;function pl(){return $s||($s=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ug}(Io)),Io}var fg=io;Object.defineProperty($i,"__esModule",{value:!0});var gl=$i.default=void 0,dg=fg(pl()),pg=b;gl=$i.default=(0,dg.default)((0,pg.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var ki={},gg=io;Object.defineProperty(ki,"__esModule",{value:!0});var hl=ki.default=void 0,hg=gg(pl()),mg=b;hl=ki.default=(0,hg.default)((0,mg.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Ht(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ml=typeof global=="object"&&global&&global.Object===Object&&global,yg=typeof self=="object"&&self&&self.Object===Object&&self,mt=ml||yg||Function("return this")(),No=function(){return mt.Date.now()},bg=/\s/;function vg(e){for(var t=e.length;t--&&bg.test(e.charAt(t)););return t}var xg=/^\s+/;function Sg(e){return e&&e.slice(0,vg(e)+1).replace(xg,"")}var It=mt.Symbol,yl=Object.prototype,wg=yl.hasOwnProperty,Tg=yl.toString,Mr=It?It.toStringTag:void 0;function Og(e){var t=wg.call(e,Mr),r=e[Mr];try{e[Mr]=void 0;var n=!0}catch{}var o=Tg.call(e);return n&&(t?e[Mr]=r:delete e[Mr]),o}var Eg=Object.prototype,Cg=Eg.toString;function Rg(e){return Cg.call(e)}var _g="[object Null]",Pg="[object Undefined]",ks=It?It.toStringTag:void 0;function Yt(e){return e==null?e===void 0?Pg:_g:ks&&ks in Object(e)?Og(e):Rg(e)}function Wt(e){return e!=null&&typeof e=="object"}var $g="[object Symbol]";function lo(e){return typeof e=="symbol"||Wt(e)&&Yt(e)==$g}var js=NaN,kg=/^[-+]0x[0-9a-f]+$/i,jg=/^0b[01]+$/i,Ag=/^0o[0-7]+$/i,Lg=parseInt;function As(e){if(typeof e=="number")return e;if(lo(e))return js;if(Ht(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ht(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sg(e);var r=jg.test(e);return r||Ag.test(e)?Lg(e.slice(2),r?2:8):kg.test(e)?js:+e}var Ig="Expected a function",Ng=Math.max,Mg=Math.min;function Dg(e,t,r){var n,o,i,s,a,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Ig);t=As(t)||0,Ht(r)&&(u=!!r.leading,d="maxWait"in r,i=d?Ng(As(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function v(E){var R=n,U=o;return n=o=void 0,c=E,s=e.apply(U,R),s}function m(E){return c=E,a=setTimeout(S,t),u?v(E):s}function y(E){var R=E-l,U=E-c,Q=t-R;return d?Mg(Q,i-U):Q}function h(E){var R=E-l,U=E-c;return l===void 0||R>=t||R<0||d&&U>=i}function S(){var E=No();if(h(E))return T(E);a=setTimeout(S,y(E))}function T(E){return a=void 0,f&&n?v(E):(n=o=void 0,s)}function _(){a!==void 0&&clearTimeout(a),c=0,n=l=o=a=void 0}function O(){return a===void 0?s:T(No())}function w(){var E=No(),R=h(E);if(n=arguments,o=this,l=E,R){if(a===void 0)return m(l);if(d)return clearTimeout(a),a=setTimeout(S,t),v(l)}return a===void 0&&(a=setTimeout(S,t)),s}return w.cancel=_,w.flush=O,w}var Fg="Expected a function";function Vg(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Fg);return Ht(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Dg(e,t,{leading:n,maxWait:t,trailing:o})}const bl=on($e.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:i,...s})=>{var _,O,w,E,R,U,Q;const{t:a}=Kt.useTranslation(),[l,c]=H.useState(),u=k.useTheme(),d={background:(_=u.palette.backgroundPaperElevation)==null?void 0:_[4],color:(O=u.palette.backgroundPaperElevation)==null?void 0:O[11]},f=$e.useLocalObservable(()=>({activeJoggingDir:null,startJogging(F){this.activeJoggingDir=F,e(F)},stopJogging(){this.activeJoggingDir=null,t()}})),v=Vg(()=>{c(o())},50);Sr(v);function m(F){F.button===0&&f.startJogging("-")}function y(F){F.button===0&&f.startJogging("+")}function h(F){f.stopJogging()}function S(F){F.target===F.currentTarget&&f.stopJogging()}function T(F,M=1){if(F===void 0||isNaN(F))return"";const W=a("General.degree.variable",{amount:F.toFixed(M)});return F>0&&M===0?`+${W}`:W}return b.jsxs(mr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(w=u.palette.backgroundPaperElevation)==null?void 0:w[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(E=u.palette.backgroundPaperElevation)==null?void 0:E[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(R=u.palette.backgroundPaperElevation)==null?void 0:R[9]},"&:active":{...d}}},children:[b.jsx(k.IconButton,{onPointerDown:m,onPointerUp:h,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...f.activeJoggingDir==="-"?d:{}},children:b.jsx(gl,{})}),b.jsxs(mr,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(U=u.palette.backgroundPaperElevation)==null?void 0:U[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[b.jsx(k.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:T(l)}),b.jsx(k.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:i?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:i?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(Q=u.palette.backgroundPaperElevation)==null?void 0:Q[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:T(r,0)},{value:n,label:T(n,0)}]})]}),b.jsx(k.IconButton,{onPointerDown:y,onPointerUp:h,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...f.activeJoggingDir==="+"?d:{}},children:b.jsx(hl,{})})]})}));function vl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bg}=Object.prototype,{getPrototypeOf:ji}=Object,co=(e=>t=>{const r=Bg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>co(t)===e),uo=e=>t=>typeof t===e,{isArray:wr}=Array,qr=uo("undefined");function Ug(e){return e!==null&&!qr(e)&&e.constructor!==null&&!qr(e.constructor)&&Je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xl=it("ArrayBuffer");function zg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xl(e.buffer),t}const Jg=uo("string"),Je=uo("function"),Sl=uo("number"),fo=e=>e!==null&&typeof e=="object",Hg=e=>e===!0||e===!1,$n=e=>{if(co(e)!=="object")return!1;const t=ji(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wg=it("Date"),Gg=it("File"),qg=it("Blob"),Kg=it("FileList"),Yg=e=>fo(e)&&Je(e.pipe),Xg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Je(e.append)&&((t=co(e))==="formdata"||t==="object"&&Je(e.toString)&&e.toString()==="[object FormData]"))},Zg=it("URLSearchParams"),[Qg,eh,th,rh]=["ReadableStream","Request","Response","Headers"].map(it),nh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),wr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function wl(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 Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tl=e=>!qr(e)&&e!==Ut;function ri(){const{caseless:e}=Tl(this)&&this||{},t={},r=(n,o)=>{const i=e&&wl(t,o)||o;$n(t[i])&&$n(n)?t[i]=ri(t[i],n):$n(n)?t[i]=ri({},n):wr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&sn(arguments[n],r);return t}const oh=(e,t,r,{allOwnKeys:n}={})=>(sn(t,(o,i)=>{r&&Je(o)?e[i]=vl(o,r):e[i]=o},{allOwnKeys:n}),e),ih=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sh=(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)},ah=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&ji(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},lh=(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},ch=e=>{if(!e)return null;if(wr(e))return e;let t=e.length;if(!Sl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},uh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ji(Uint8Array)),fh=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},dh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ph=it("HTMLFormElement"),gh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ls=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),hh=it("RegExp"),Ol=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};sn(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},mh=e=>{Ol(e,(t,r)=>{if(Je(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Je(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+"'")})}})},yh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return wr(e)?n(e):n(String(e).split(t)),r},bh=()=>{},vh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mo="abcdefghijklmnopqrstuvwxyz",Is="0123456789",El={DIGIT:Is,ALPHA:Mo,ALPHA_DIGIT:Mo+Mo.toUpperCase()+Is},xh=(e=16,t=El.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Sh(e){return!!(e&&Je(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wh=e=>{const t=new Array(10),r=(n,o)=>{if(fo(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=wr(n)?[]:{};return sn(n,(s,a)=>{const l=r(s,o+1);!qr(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},Th=it("AsyncFunction"),Oh=e=>e&&(fo(e)||Je(e))&&Je(e.then)&&Je(e.catch),Cl=((e,t)=>e?setImmediate:t?((r,n)=>(Ut.addEventListener("message",({source:o,data:i})=>{o===Ut&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ut.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Je(Ut.postMessage)),Eh=typeof queueMicrotask<"u"?queueMicrotask.bind(Ut):typeof process<"u"&&process.nextTick||Cl,x={isArray:wr,isArrayBuffer:xl,isBuffer:Ug,isFormData:Xg,isArrayBufferView:zg,isString:Jg,isNumber:Sl,isBoolean:Hg,isObject:fo,isPlainObject:$n,isReadableStream:Qg,isRequest:eh,isResponse:th,isHeaders:rh,isUndefined:qr,isDate:Wg,isFile:Gg,isBlob:qg,isRegExp:hh,isFunction:Je,isStream:Yg,isURLSearchParams:Zg,isTypedArray:uh,isFileList:Kg,forEach:sn,merge:ri,extend:oh,trim:nh,stripBOM:ih,inherits:sh,toFlatObject:ah,kindOf:co,kindOfTest:it,endsWith:lh,toArray:ch,forEachEntry:fh,matchAll:dh,isHTMLForm:ph,hasOwnProperty:Ls,hasOwnProp:Ls,reduceDescriptors:Ol,freezeMethods:mh,toObjectSet:yh,toCamelCase:gh,noop:bh,toFiniteNumber:vh,findKey:wl,global:Ut,isContextDefined:Tl,ALPHABET:El,generateString:xh,isSpecCompliantForm:Sh,toJSONObject:wh,isAsyncFn:Th,isThenable:Oh,setImmediate:Cl,asap:Eh};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)}x.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:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Rl=z.prototype,_l={};["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=>{_l[e]={value:e}});Object.defineProperties(z,_l);Object.defineProperty(Rl,"isAxiosError",{value:!0});z.from=(e,t,r,n,o,i)=>{const s=Object.create(Rl);return x.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),z.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Ch=null;function ni(e){return x.isPlainObject(e)||x.isArray(e)}function Pl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ns(e,t,r){return e?e.concat(t).map(function(o,i){return o=Pl(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Rh(e){return x.isArray(e)&&!e.some(ni)}const _h=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function po(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!x.isUndefined(h[y])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(x.isDate(m))return m.toISOString();if(!l&&x.isBlob(m))throw new z("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(m)||x.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,y,h){let S=m;if(m&&!h&&typeof m=="object"){if(x.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(x.isArray(m)&&Rh(m)||(x.isFileList(m)||x.endsWith(y,"[]"))&&(S=x.toArray(m)))return y=Pl(y),S.forEach(function(_,O){!(x.isUndefined(_)||_===null)&&t.append(s===!0?Ns([y],O,i):s===null?y:y+"[]",c(_))}),!1}return ni(m)?!0:(t.append(Ns(h,y,i),c(m)),!1)}const d=[],f=Object.assign(_h,{defaultVisitor:u,convertValue:c,isVisitable:ni});function v(m,y){if(!x.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),x.forEach(m,function(S,T){(!(x.isUndefined(S)||S===null)&&o.call(t,S,x.isString(T)?T.trim():T,y,f))===!0&&v(S,y?y.concat(T):[T])}),d.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Ms(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ai(e,t){this._pairs=[],e&&po(e,this,t)}const $l=Ai.prototype;$l.append=function(t,r){this._pairs.push([t,r])};$l.toString=function(t){const r=t?function(n){return t.call(this,n,Ms)}:Ms;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ph(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kl(e,t,r){if(!t)return e;const n=r&&r.encode||Ph,o=r&&r.serialize;let i;if(o?i=o(t,r):i=x.isURLSearchParams(t)?t.toString():new Ai(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ds{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){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const jl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$h=typeof URLSearchParams<"u"?URLSearchParams:Ai,kh=typeof FormData<"u"?FormData:null,jh=typeof Blob<"u"?Blob:null,Ah={isBrowser:!0,classes:{URLSearchParams:$h,FormData:kh,Blob:jh},protocols:["http","https","file","blob","url","data"]},Li=typeof window<"u"&&typeof document<"u",Lh=(e=>Li&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ih=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nh=Li&&window.location.href||"http://localhost",Mh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Li,hasStandardBrowserEnv:Lh,hasStandardBrowserWebWorkerEnv:Ih,origin:Nh},Symbol.toStringTag,{value:"Module"})),nt={...Mh,...Ah};function Dh(e,t){return po(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return nt.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Fh(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vh(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Al(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=r.length;return s=!s&&x.isArray(o)?o.length:s,l?(x.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!x.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&x.isArray(o[s])&&(o[s]=Vh(o[s])),!a)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Fh(n),o,r,0)}),r}return null}function Bh(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const an={transitional:jl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(Al(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Dh(t,this.formSerializer).toString();if((a=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return po(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Bh(t)):t}],transformResponse:[function(t){const r=this.transitional||an.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?z.from(a,z.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{an.headers[e]={}});const Uh=x.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"]),zh=e=>{const t={};let r,n,o;return e&&e.split(`
79
+ `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&Uh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Fs=Symbol("internals");function Dr(e){return e&&String(e).trim().toLowerCase()}function kn(e){return e===!1||e==null?e:x.isArray(e)?e.map(kn):String(e)}function Jh(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 Hh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Do(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function Wh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Gh(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let Ne=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,c){const u=Dr(l);if(!u)throw new Error("header name must be a non-empty string");const d=x.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=kn(a))}const s=(a,l)=>x.forEach(a,(c,u)=>i(c,u,l));if(x.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(x.isString(t)&&(t=t.trim())&&!Hh(t))s(zh(t),r);else if(x.isHeaders(t))for(const[a,l]of t.entries())i(l,a,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Dr(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Jh(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Dr(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Do(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=Dr(s),s){const a=x.findKey(n,s);a&&(!r||Do(n,n[a],a,r))&&(delete n[a],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Do(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,i)=>{const s=x.findKey(n,i);if(s){r[s]=kn(o),delete r[i];return}const a=t?Wh(i):String(i).trim();a!==i&&delete r[i],r[a]=kn(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
80
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Fs]=this[Fs]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Dr(s);n[a]||(Gh(o,s),n[a]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}};Ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Ne.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Ne);function Fo(e,t){const r=this||an,n=t||r,o=Ne.from(n.headers);let i=n.data;return x.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ll(e){return!!(e&&e.__CANCEL__)}function Tr(e,t,r){z.call(this,e??"canceled",z.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Tr,z,{__CANCEL__:!0});function Il(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 qh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];s||(s=c),r[o]=l,n[o]=c;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const v=u&&c-u;return v?Math.round(f*1e3/v):void 0}}function Yh(e,t){let r=0,n=1e3/t,o,i;const s=(c,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-d)))},()=>o&&s(o)]}const Un=(e,t,r=3)=>{let n=0;const o=Kh(50,250);return Yh(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-n,c=o(l),u=s<=a;n=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},Vs=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Bs=e=>(...t)=>x.asap(()=>e(...t)),Xh=nt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{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(s){const a=x.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),Zh=nt.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),x.isString(n)&&s.push("path="+n),x.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.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 Qh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function em(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nl(e,t){return e&&!Qh(t)?em(e,t):t}const Us=e=>e instanceof Ne?{...e}:e;function Gt(e,t){t=t||{};const r={};function n(c,u,d){return x.isPlainObject(c)&&x.isPlainObject(u)?x.merge.call({caseless:d},c,u):x.isPlainObject(u)?x.merge({},u):x.isArray(u)?u.slice():u}function o(c,u,d){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c,d)}else return n(c,u,d)}function i(c,u){if(!x.isUndefined(u))return n(void 0,u)}function s(c,u){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>o(Us(c),Us(u),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);x.isUndefined(f)&&d!==a||(r[u]=f)}),r}const Ml=e=>{const t=Gt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Ne.from(s),t.url=kl(Nl(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(x.isFormData(r)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(nt.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&Xh(t.url))){const c=o&&i&&Zh.read(i);c&&s.set(o,c)}return t},tm=typeof XMLHttpRequest<"u",rm=tm&&function(e){return new Promise(function(r,n){const o=Ml(e);let i=o.data;const s=Ne.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,v,m;function y(){v&&v(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function S(){if(!h)return;const _=Ne.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:_,config:e,request:h};Il(function(R){r(R),y()},function(R){n(R),y()},w),h=null}"onloadend"in h?h.onloadend=S:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(S)},h.onabort=function(){h&&(n(new z("Request aborted",z.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new z("Network Error",z.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||jl;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new z(O,w.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,h)),h=null},i===void 0&&s.setContentType(null),"setRequestHeader"in h&&x.forEach(s.toJSON(),function(O,w){h.setRequestHeader(w,O)}),x.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),c&&([f,m]=Un(c,!0),h.addEventListener("progress",f)),l&&h.upload&&([d,v]=Un(l),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(u=_=>{h&&(n(!_||_.type?new Tr(null,e,h):_),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const T=qh(o.url);if(T&&nt.protocols.indexOf(T)===-1){n(new z("Unsupported protocol "+T+":",z.ERR_BAD_REQUEST,e));return}h.send(i||null)})},nm=(e,t)=>{let r=new AbortController,n;const o=function(l){if(!n){n=!0,s();const c=l instanceof Error?l:this.reason;r.abort(c instanceof z?c:new Tr(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new z(`timeout ${t} of ms exceeded`,z.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},om=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},im=async function*(e,t,r){for await(const n of e)yield*om(ArrayBuffer.isView(n)?n:await r(String(n)),t)},zs=(e,t,r,n,o)=>{const i=im(e,t,o);let s=0,a,l=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){l(),c.close();return}let f=d.byteLength;if(r){let v=s+=f;r(v)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},go=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dl=go&&typeof ReadableStream=="function",oi=go&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},sm=Dl&&Fl(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Js=64*1024,ii=Dl&&Fl(()=>x.isReadableStream(new Response("").body)),zn={stream:ii&&(e=>e.body)};go&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!zn[t]&&(zn[t]=x.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 am=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await oi(e)).byteLength},lm=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??am(t)},cm=go&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Ml(e);c=c?(c+"").toLowerCase():"text";let[v,m]=o||i||s?nm([o,i],s):[],y,h;const S=()=>{!y&&setTimeout(()=>{v&&v.unsubscribe()}),y=!0};let T;try{if(l&&sm&&r!=="get"&&r!=="head"&&(T=await lm(u,n))!==0){let E=new Request(t,{method:"POST",body:n,duplex:"half"}),R;if(x.isFormData(n)&&(R=E.headers.get("content-type"))&&u.setContentType(R),E.body){const[U,Q]=Vs(T,Un(Bs(l)));n=zs(E.body,Js,U,Q,oi)}}x.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:v,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:d});let _=await fetch(h);const O=ii&&(c==="stream"||c==="response");if(ii&&(a||O)){const E={};["status","statusText","headers"].forEach(F=>{E[F]=_[F]});const R=x.toFiniteNumber(_.headers.get("content-length")),[U,Q]=a&&Vs(R,Un(Bs(a),!0))||[];_=new Response(zs(_.body,Js,U,()=>{Q&&Q(),O&&S()},oi),E)}c=c||"text";let w=await zn[x.findKey(zn,c)||"text"](_,e);return!O&&S(),m&&m(),await new Promise((E,R)=>{Il(E,R,{data:w,headers:Ne.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:h})})}catch(_){throw S(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new z("Network Error",z.ERR_NETWORK,e,h),{cause:_.cause||_}):z.from(_,_&&_.code,e,h)}}),si={http:Ch,xhr:rm,fetch:cm};x.forEach(si,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hs=e=>`- ${e}`,um=e=>x.isFunction(e)||e===null||e===!1,Vl={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!um(r)&&(n=si[(s=String(r)).toLowerCase()],n===void 0))throw new z(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
81
+ `+i.map(Hs).join(`
82
+ `):" "+Hs(i[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:si};function Vo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tr(null,e)}function Ws(e){return Vo(e),e.headers=Ne.from(e.headers),e.data=Fo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vl.getAdapter(e.adapter||an.adapter)(e).then(function(n){return Vo(e),n.data=Fo.call(e,e.transformResponse,n),n.headers=Ne.from(n.headers),n},function(n){return Ll(n)||(Vo(e),n&&n.response&&(n.response.data=Fo.call(e,e.transformResponse,n.response),n.response.headers=Ne.from(n.response.headers))),Promise.reject(n)})}const Bl="1.7.4",Ii={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ii[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Gs={};Ii.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Bl+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new z(o(s," has been removed"+(r?" in "+r:"")),z.ERR_DEPRECATED);return r&&!Gs[s]&&(Gs[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function fm(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 i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new z("option "+i+" must be "+l,z.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new z("Unknown option "+i,z.ERR_BAD_OPTION)}}const ai={assertOptions:fm,validators:Ii},jt=ai.validators;let zt=class{constructor(t){this.defaults=t,this.interceptors={request:new Ds,response:new Ds}}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 i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
83
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Gt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&ai.assertOptions(n,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:ai.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&x.merge(i.common,i[r.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=Ne.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!l){const m=[Ws.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),f=m.length,u=Promise.resolve(r);d<f;)u=u.then(m[d++],m[d++]);return u}f=a.length;let v=r;for(d=0;d<f;){const m=a[d++],y=a[d++];try{v=m(v)}catch(h){y.call(this,h);break}}try{u=Ws.call(this,v)}catch(m){return Promise.reject(m)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Gt(this.defaults,t);const r=Nl(t.baseURL,t.url);return kl(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){zt.prototype[t]=function(r,n){return this.request(Gt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,a){return this.request(Gt(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}zt.prototype[t]=r(),zt.prototype[t+"Form"]=r(!0)});let dm=class Ul{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Tr(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Ul(function(o){t=o}),cancel:t}}};function pm(e){return function(r){return e.apply(null,r)}}function gm(e){return x.isObject(e)&&e.isAxiosError===!0}const li={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(li).forEach(([e,t])=>{li[t]=e});function zl(e){const t=new zt(e),r=vl(zt.prototype.request,t);return x.extend(r,zt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return zl(Gt(e,o))},r}const ve=zl(an);ve.Axios=zt;ve.CanceledError=Tr;ve.CancelToken=dm;ve.isCancel=Ll;ve.VERSION=Bl;ve.toFormData=po;ve.AxiosError=z;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=pm;ve.isAxiosError=gm;ve.mergeConfig=Gt;ve.AxiosHeaders=Ne;ve.formToJSON=e=>Al(x.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Vl.getAdapter;ve.HttpStatusCode=li;ve.default=ve;const{Axios:V1,AxiosError:qs,CanceledError:B1,isCancel:U1,CancelToken:z1,VERSION:J1,all:H1,Cancel:W1,isAxiosError:G1,spread:q1,toFormData:K1,AxiosHeaders:Y1,HttpStatusCode:X1,formToJSON:Z1,getAdapter:Q1,mergeConfig:ev}=ve;function hm(e){try{return JSON.stringify(e)}catch{return}}function mm(e){var t,r,n,o;return e instanceof qs&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof qs&&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: ${hm(e)||e}`}const ho=e=>{const t=e.softTimeout||3e3,[r,n]=H.useState(!1),o=k.useTheme();return H.useEffect(()=>{const i=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(i)}),b.jsx(k.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?b.jsx(Jl,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx(k.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx(k.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},Jl=e=>{const t=mm(e.error),r=e.error instanceof Error?e.error.stack:null,n=k.useTheme();return b.jsxs(k.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Wn.lowerFirst(k.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),r&&b.jsx("pre",{children:r})]})},ym=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),bm=H.forwardRef(ym),vm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),xm=H.forwardRef(vm),Sm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),wm=H.forwardRef(Sm),Tm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),Om=H.forwardRef(Tm),Ks=e=>b.jsx(k.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(2px)",zIndex:100,...e.sx||{}},...Wn.omit(e,"sx")}),Hl=$e.observer(({store:e,children:t})=>{const{t:r}=Kt.useTranslation(),n=k.useTheme();function o(){var i,s;if(e.activationState==="inactive"&&!e.activationError)return b.jsx(Ks,{sx:{borderRadius:"6px",backgroundColor:`color-mix(in srgb, ${(i=n.palette.backgroundPaperElevation)==null?void 0:i[5]}, transparent)`},children:b.jsx(k.Button,{color:"primary",variant:"contained",onClick:()=>e.activate({manual:!0}),disabled:e.isLocked,children:r("Jogging.Activate.bt")})});if(e.activationState==="loading"||e.activationError)return b.jsx(Ks,{sx:{backgroundColor:`color-mix(in srgb, ${(s=n.palette.backgroundPaperElevation)==null?void 0:s[5]}, transparent)`},children:b.jsx(ho,{message:r("Jogging.Activating.lb"),error:e.activationError})})}return b.jsxs(k.Stack,{sx:{position:"relative",padding:"6px"},children:[o(),t]})});function Em(){this.__data__=[],this.size=0}function Wl(e,t){return e===t||e!==e&&t!==t}function mo(e,t){for(var r=e.length;r--;)if(Wl(e[r][0],t))return r;return-1}var Cm=Array.prototype,Rm=Cm.splice;function _m(e){var t=this.__data__,r=mo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Rm.call(t,r,1),--this.size,!0}function Pm(e){var t=this.__data__,r=mo(t,e);return r<0?void 0:t[r][1]}function $m(e){return mo(this.__data__,e)>-1}function km(e,t){var r=this.__data__,n=mo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Et.prototype.clear=Em;Et.prototype.delete=_m;Et.prototype.get=Pm;Et.prototype.has=$m;Et.prototype.set=km;function jm(){this.__data__=new Et,this.size=0}function Am(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Lm(e){return this.__data__.get(e)}function Im(e){return this.__data__.has(e)}var Nm="[object AsyncFunction]",Mm="[object Function]",Dm="[object GeneratorFunction]",Fm="[object Proxy]";function Gl(e){if(!Ht(e))return!1;var t=Yt(e);return t==Mm||t==Dm||t==Nm||t==Fm}var Bo=mt["__core-js_shared__"],Ys=function(){var e=/[^.]+$/.exec(Bo&&Bo.keys&&Bo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vm(e){return!!Ys&&Ys in e}var Bm=Function.prototype,Um=Bm.toString;function Xt(e){if(e!=null){try{return Um.call(e)}catch{}try{return e+""}catch{}}return""}var zm=/[\\^$.*+?()[\]{}|]/g,Jm=/^\[object .+?Constructor\]$/,Hm=Function.prototype,Wm=Object.prototype,Gm=Hm.toString,qm=Wm.hasOwnProperty,Km=RegExp("^"+Gm.call(qm).replace(zm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ym(e){if(!Ht(e)||Vm(e))return!1;var t=Gl(e)?Km:Jm;return t.test(Xt(e))}function Xm(e,t){return e==null?void 0:e[t]}function Zt(e,t){var r=Xm(e,t);return Ym(r)?r:void 0}var Kr=Zt(mt,"Map"),Yr=Zt(Object,"create");function Zm(){this.__data__=Yr?Yr(null):{},this.size=0}function Qm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ey="__lodash_hash_undefined__",ty=Object.prototype,ry=ty.hasOwnProperty;function ny(e){var t=this.__data__;if(Yr){var r=t[e];return r===ey?void 0:r}return ry.call(t,e)?t[e]:void 0}var oy=Object.prototype,iy=oy.hasOwnProperty;function sy(e){var t=this.__data__;return Yr?t[e]!==void 0:iy.call(t,e)}var ay="__lodash_hash_undefined__";function ly(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&t===void 0?ay:t,this}function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qt.prototype.clear=Zm;qt.prototype.delete=Qm;qt.prototype.get=ny;qt.prototype.has=sy;qt.prototype.set=ly;function cy(){this.size=0,this.__data__={hash:new qt,map:new(Kr||Et),string:new qt}}function uy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yo(e,t){var r=e.__data__;return uy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function fy(e){var t=yo(this,e).delete(e);return this.size-=t?1:0,t}function dy(e){return yo(this,e).get(e)}function py(e){return yo(this,e).has(e)}function gy(e,t){var r=yo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ct.prototype.clear=cy;Ct.prototype.delete=fy;Ct.prototype.get=dy;Ct.prototype.has=py;Ct.prototype.set=gy;var hy=200;function my(e,t){var r=this.__data__;if(r instanceof Et){var n=r.__data__;if(!Kr||n.length<hy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ct(n)}return r.set(e,t),this.size=r.size,this}function wt(e){var t=this.__data__=new Et(e);this.size=t.size}wt.prototype.clear=jm;wt.prototype.delete=Am;wt.prototype.get=Lm;wt.prototype.has=Im;wt.prototype.set=my;var yy="__lodash_hash_undefined__";function by(e){return this.__data__.set(e,yy),this}function vy(e){return this.__data__.has(e)}function Jn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ct;++t<r;)this.add(e[t])}Jn.prototype.add=Jn.prototype.push=by;Jn.prototype.has=vy;function xy(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Sy(e,t){return e.has(t)}var wy=1,Ty=2;function ql(e,t,r,n,o,i){var s=r&wy,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,v=r&Ty?new Jn:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var m=e[d],y=t[d];if(n)var h=s?n(y,m,d,t,e,i):n(m,y,d,e,t,i);if(h!==void 0){if(h)continue;f=!1;break}if(v){if(!xy(t,function(S,T){if(!Sy(v,T)&&(m===S||o(m,S,r,n,i)))return v.push(T)})){f=!1;break}}else if(!(m===y||o(m,y,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Xs=mt.Uint8Array;function Oy(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Ey(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Cy=1,Ry=2,_y="[object Boolean]",Py="[object Date]",$y="[object Error]",ky="[object Map]",jy="[object Number]",Ay="[object RegExp]",Ly="[object Set]",Iy="[object String]",Ny="[object Symbol]",My="[object ArrayBuffer]",Dy="[object DataView]",Zs=It?It.prototype:void 0,Uo=Zs?Zs.valueOf:void 0;function Fy(e,t,r,n,o,i,s){switch(r){case Dy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case My:return!(e.byteLength!=t.byteLength||!i(new Xs(e),new Xs(t)));case _y:case Py:case jy:return Wl(+e,+t);case $y:return e.name==t.name&&e.message==t.message;case Ay:case Iy:return e==t+"";case ky:var a=Oy;case Ly:var l=n&Cy;if(a||(a=Ey),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=Ry,s.set(e,t);var u=ql(a(e),a(t),n,o,i,s);return s.delete(e),u;case Ny:if(Uo)return Uo.call(e)==Uo.call(t)}return!1}function Vy(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var ht=Array.isArray;function By(e,t,r){var n=t(e);return ht(e)?n:Vy(n,r(e))}function Uy(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function zy(){return[]}var Jy=Object.prototype,Hy=Jy.propertyIsEnumerable,Qs=Object.getOwnPropertySymbols,Wy=Qs?function(e){return e==null?[]:(e=Object(e),Uy(Qs(e),function(t){return Hy.call(e,t)}))}:zy;function Gy(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var qy="[object Arguments]";function ea(e){return Wt(e)&&Yt(e)==qy}var Kl=Object.prototype,Ky=Kl.hasOwnProperty,Yy=Kl.propertyIsEnumerable,Yl=ea(function(){return arguments}())?ea:function(e){return Wt(e)&&Ky.call(e,"callee")&&!Yy.call(e,"callee")};function Xy(){return!1}var Xl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ta=Xl&&typeof module=="object"&&module&&!module.nodeType&&module,Zy=ta&&ta.exports===Xl,ra=Zy?mt.Buffer:void 0,Qy=ra?ra.isBuffer:void 0,ci=Qy||Xy,eb=9007199254740991,tb=/^(?:0|[1-9]\d*)$/;function Zl(e,t){var r=typeof e;return t=t??eb,!!t&&(r=="number"||r!="symbol"&&tb.test(e))&&e>-1&&e%1==0&&e<t}var rb=9007199254740991;function Ni(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rb}var nb="[object Arguments]",ob="[object Array]",ib="[object Boolean]",sb="[object Date]",ab="[object Error]",lb="[object Function]",cb="[object Map]",ub="[object Number]",fb="[object Object]",db="[object RegExp]",pb="[object Set]",gb="[object String]",hb="[object WeakMap]",mb="[object ArrayBuffer]",yb="[object DataView]",bb="[object Float32Array]",vb="[object Float64Array]",xb="[object Int8Array]",Sb="[object Int16Array]",wb="[object Int32Array]",Tb="[object Uint8Array]",Ob="[object Uint8ClampedArray]",Eb="[object Uint16Array]",Cb="[object Uint32Array]",ce={};ce[bb]=ce[vb]=ce[xb]=ce[Sb]=ce[wb]=ce[Tb]=ce[Ob]=ce[Eb]=ce[Cb]=!0;ce[nb]=ce[ob]=ce[mb]=ce[ib]=ce[yb]=ce[sb]=ce[ab]=ce[lb]=ce[cb]=ce[ub]=ce[fb]=ce[db]=ce[pb]=ce[gb]=ce[hb]=!1;function Rb(e){return Wt(e)&&Ni(e.length)&&!!ce[Yt(e)]}function _b(e){return function(t){return e(t)}}var Ql=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ur=Ql&&typeof module=="object"&&module&&!module.nodeType&&module,Pb=Ur&&Ur.exports===Ql,zo=Pb&&ml.process,na=function(){try{var e=Ur&&Ur.require&&Ur.require("util").types;return e||zo&&zo.binding&&zo.binding("util")}catch{}}(),oa=na&&na.isTypedArray,ec=oa?_b(oa):Rb,$b=Object.prototype,kb=$b.hasOwnProperty;function jb(e,t){var r=ht(e),n=!r&&Yl(e),o=!r&&!n&&ci(e),i=!r&&!n&&!o&&ec(e),s=r||n||o||i,a=s?Gy(e.length,String):[],l=a.length;for(var c in e)kb.call(e,c)&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Zl(c,l)))&&a.push(c);return a}var Ab=Object.prototype;function Lb(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ab;return e===r}function Ib(e,t){return function(r){return e(t(r))}}var Nb=Ib(Object.keys,Object),Mb=Object.prototype,Db=Mb.hasOwnProperty;function Fb(e){if(!Lb(e))return Nb(e);var t=[];for(var r in Object(e))Db.call(e,r)&&r!="constructor"&&t.push(r);return t}function tc(e){return e!=null&&Ni(e.length)&&!Gl(e)}function Mi(e){return tc(e)?jb(e):Fb(e)}function ia(e){return By(e,Mi,Wy)}var Vb=1,Bb=Object.prototype,Ub=Bb.hasOwnProperty;function zb(e,t,r,n,o,i){var s=r&Vb,a=ia(e),l=a.length,c=ia(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var f=a[d];if(!(s?f in t:Ub.call(t,f)))return!1}var v=i.get(e),m=i.get(t);if(v&&m)return v==t&&m==e;var y=!0;i.set(e,t),i.set(t,e);for(var h=s;++d<l;){f=a[d];var S=e[f],T=t[f];if(n)var _=s?n(T,S,f,t,e,i):n(S,T,f,e,t,i);if(!(_===void 0?S===T||o(S,T,r,n,i):_)){y=!1;break}h||(h=f=="constructor")}if(y&&!h){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(y=!1)}return i.delete(e),i.delete(t),y}var ui=Zt(mt,"DataView"),fi=Zt(mt,"Promise"),di=Zt(mt,"Set"),pi=Zt(mt,"WeakMap"),sa="[object Map]",Jb="[object Object]",aa="[object Promise]",la="[object Set]",ca="[object WeakMap]",ua="[object DataView]",Hb=Xt(ui),Wb=Xt(Kr),Gb=Xt(fi),qb=Xt(di),Kb=Xt(pi),At=Yt;(ui&&At(new ui(new ArrayBuffer(1)))!=ua||Kr&&At(new Kr)!=sa||fi&&At(fi.resolve())!=aa||di&&At(new di)!=la||pi&&At(new pi)!=ca)&&(At=function(e){var t=Yt(e),r=t==Jb?e.constructor:void 0,n=r?Xt(r):"";if(n)switch(n){case Hb:return ua;case Wb:return sa;case Gb:return aa;case qb:return la;case Kb:return ca}return t});var Yb=1,fa="[object Arguments]",da="[object Array]",hn="[object Object]",Xb=Object.prototype,pa=Xb.hasOwnProperty;function Zb(e,t,r,n,o,i){var s=ht(e),a=ht(t),l=s?da:At(e),c=a?da:At(t);l=l==fa?hn:l,c=c==fa?hn:c;var u=l==hn,d=c==hn,f=l==c;if(f&&ci(e)){if(!ci(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new wt),s||ec(e)?ql(e,t,r,n,o,i):Fy(e,t,l,r,n,o,i);if(!(r&Yb)){var v=u&&pa.call(e,"__wrapped__"),m=d&&pa.call(t,"__wrapped__");if(v||m){var y=v?e.value():e,h=m?t.value():t;return i||(i=new wt),o(y,h,r,n,i)}}return f?(i||(i=new wt),zb(e,t,r,n,o,i)):!1}function bo(e,t,r,n,o){return e===t?!0:e==null||t==null||!Wt(e)&&!Wt(t)?e!==e&&t!==t:Zb(e,t,r,n,bo,o)}function Qb(e,t){return bo(e,t)}const rc=({store:e})=>{const{t}=Kt.useTranslation(),[r,n]=H.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=H.useRef(r);Sr(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;Qb(o.current,s)||(o.current=s,n(s))});const i=[];for(const[s,a]of r.entries())a&&i.push(s);return i.length===0?null:b.jsx(k.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:i.length?"visible":"collapse"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(s=>s+1).join(", ")})})},e0=k.styled(k.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function mn({labelValue:e,...t}){return b.jsxs(e0,{fullWidth:!0,variant:"filled",children:[b.jsx(k.InputLabel,{id:t.labelId,children:e}),b.jsx(k.Select,{...t})]})}var ga=function(){try{var e=Zt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function t0(e,t,r){t=="__proto__"&&ga?ga(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function r0(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var s=e[o];t(n,s,r(s),e)}return n}function n0(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),a=s.length;a--;){var l=s[++o];if(r(i[l],l,i)===!1)break}return t}}var o0=n0();function i0(e,t){return e&&o0(e,t,Mi)}function s0(e,t){return function(r,n){if(r==null)return r;if(!tc(r))return e(r,n);for(var o=r.length,i=-1,s=Object(r);++i<o&&n(s[i],i,s)!==!1;);return r}}var a0=s0(i0);function l0(e,t,r,n){return a0(e,function(o,i,s){t(n,o,r(o),s)}),n}var c0=1,u0=2;function f0(e,t,r,n){var o=r.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var s=r[o];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[o];var a=s[0],l=e[a],c=s[1];if(s[2]){if(l===void 0&&!(a in e))return!1}else{var u=new wt,d;if(!(d===void 0?bo(c,l,c0|u0,n,u):d))return!1}}return!0}function nc(e){return e===e&&!Ht(e)}function d0(e){for(var t=Mi(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,nc(o)]}return t}function oc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function p0(e){var t=d0(e);return t.length==1&&t[0][2]?oc(t[0][0],t[0][1]):function(r){return r===e||f0(r,e,t)}}var g0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h0=/^\w*$/;function Di(e,t){if(ht(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lo(e)?!0:h0.test(e)||!g0.test(e)||t!=null&&e in Object(t)}var m0="Expected a function";function Fi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(m0);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Fi.Cache||Ct),r}Fi.Cache=Ct;var y0=500;function b0(e){var t=Fi(e,function(n){return r.size===y0&&r.clear(),n}),r=t.cache;return t}var v0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x0=/\\(\\)?/g,S0=b0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(v0,function(r,n,o,i){t.push(o?i.replace(x0,"$1"):n||r)}),t});function w0(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var T0=1/0,ha=It?It.prototype:void 0,ma=ha?ha.toString:void 0;function ic(e){if(typeof e=="string")return e;if(ht(e))return w0(e,ic)+"";if(lo(e))return ma?ma.call(e):"";var t=e+"";return t=="0"&&1/e==-T0?"-0":t}function sc(e){return e==null?"":ic(e)}function ac(e,t){return ht(e)?e:Di(e,t)?[e]:S0(sc(e))}var O0=1/0;function vo(e){if(typeof e=="string"||lo(e))return e;var t=e+"";return t=="0"&&1/e==-O0?"-0":t}function lc(e,t){t=ac(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[vo(t[r++])];return r&&r==n?e:void 0}function E0(e,t,r){var n=e==null?void 0:lc(e,t);return n===void 0?r:n}function C0(e,t){return e!=null&&t in Object(e)}function R0(e,t,r){t=ac(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var s=vo(t[n]);if(!(i=e!=null&&r(e,s)))break;e=e[s]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Ni(o)&&Zl(s,o)&&(ht(e)||Yl(e)))}function _0(e,t){return e!=null&&R0(e,t,C0)}var P0=1,$0=2;function k0(e,t){return Di(e)&&nc(t)?oc(vo(e),t):function(r){var n=E0(r,e);return n===void 0&&n===t?_0(r,e):bo(t,n,P0|$0)}}function j0(e){return e}function A0(e){return function(t){return t==null?void 0:t[e]}}function L0(e){return function(t){return lc(t,e)}}function I0(e){return Di(e)?A0(vo(e)):L0(e)}function N0(e){return typeof e=="function"?e:e==null?j0:typeof e=="object"?ht(e)?k0(e[0],e[1]):p0(e):I0(e)}function M0(e,t){return function(r,n){var o=ht(r)?r0:l0,i={};return o(r,e,N0(n),i)}}var yn=M0(function(e,t,r){t0(e,r,t)}),D0=0;function F0(e){var t=++D0;return sc(e)+t}const gi=[{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}],V0=[{id:"continuous"},...gi],B0=["coordsys","tool"];class Vi{constructor(t,r,n,o){var i,s;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.manualActivationRequired=!0,this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const a of n)if(a.coordinate_system===""){a.coordinate_system="world";break}this.selectedCoordSystemId=((i=n[0])==null?void 0:i.coordinate_system)||"world",this.selectedTcpId=((s=o[0])==null?void 0:s.id)||"",ut.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(ut.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:i}]=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 Vi(t,n,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Wn.countBy(this.coordSystems,t=>t.name)}async deactivate(t={}){if(this.activationState==="inactive")return;const r=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),r&&await r.closed();try{await this.jogger.nova.api.motionGroupJogging.stopJogging(this.jogger.motionGroupId)}catch(n){console.error(n)}t.requireManualReactivation&&ut.runInAction(()=>{this.manualActivationRequired=!0})}async activate(t={}){if(!(this.manualActivationRequired&&!t.manual)){ut.runInAction(()=>{this.activationState="loading",this.activationError=null});try{await this.jogger.nova.api.controller.setDefaultMode(this.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(r){console.error(r)}if(this.currentTab.id==="cartesian"){const r={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",r):this.jogger.setJoggingMode("cartesian",r)}else this.jogger.setJoggingMode("joint");if(this.jogger.activeWebsocket)try{this.jogger.stop(),await this.jogger.activeWebsocket.nextMessage()}catch(r){ut.runInAction(()=>{this.activationState="inactive",this.activationError=r});return}ut.runInAction(()=>{this.activationState="active",t.manual&&(this.manualActivationRequired=!1)})}}loadFromLocalStorage(){const t=Lt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return V0}get discreteIncrementOptions(){return gi}get incrementOptionsById(){return yn(this.incrementOptions,t=>t.id)}get tabsById(){return yn(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 yn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return yn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:gi.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=F0();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const U0=$e.observer(({store:e})=>{var n;const{t}=Kt.useTranslation();function r(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return b.jsxs(k.Box,{sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"min-height min-height","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[b.jsx(mn,{labelId:"jogging-coord-select",labelValue:"Coordinate Sys.",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>{e.setSelectedCoordSystemId(o.target.value)},disabled:e.isLocked,children:e.coordSystems.map(o=>b.jsx(k.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))}),b.jsx(mn,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>{e.setSelectedTcpId(o.target.value)},disabled:e.isLocked,children:e.tcps.map(o=>b.jsx(k.MenuItem,{value:o.id,children:o.id},o.id))}),b.jsx(mn,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>{e.setSelectedOrientation(o.target.value)},disabled:e.isLocked,children:B0.map(o=>b.jsx(k.MenuItem,{value:o,children:r(o)},o))}),b.jsxs(mn,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[b.jsx(k.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx(k.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),z0=k.styled(k.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function J0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const H0=2;function cc(e,t){return e-t}function ya(e,t){var r;const{index:n}=(r=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a<o.distance||a===o.distance?{distance:a,index:s}:o},null))!=null?r:{};return n}function bn(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 Hn(e,t,r){return(e-t)*100/(r-t)}function W0(e,t,r){return(r-t)*e+t}function G0(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 q0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(G0(t)))}function ba({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(cc)}function vn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const i=hr(e.current);if(!((n=e.current)!=null&&n.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var s;(s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function xn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?J0(e,t):!1}const K0={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}%`})}},Y0=e=>e;let Sn;function va(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function X0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:m=Y0,step:y=1,shiftStep:h=10,tabIndex:S,value:T}=e,_=N.useRef(),[O,w]=N.useState(-1),[E,R]=N.useState(-1),[U,Q]=N.useState(!1),F=N.useRef(0),[M,W]=Za({controlled:T,default:r??l,name:"Slider"}),G=u&&(($,L,D)=>{const q=$.nativeEvent||$,Z=new q.constructor(q.type,q);Object.defineProperty(Z,"target",{writable:!0,value:{value:L,name:c}}),u(Z,L,D)}),X=Array.isArray(M);let Y=X?M.slice().sort(cc):[M];Y=Y.map($=>$==null?l:fr($,l,a));const xe=s===!0&&y!==null?[...Array(Math.floor((a-l)/y)+1)].map(($,L)=>({value:l+y*L})):s||[],le=xe.map($=>$.value),{isFocusVisibleRef:ee,onBlur:Te,onFocus:ke,ref:tt}=Qa(),[yt,He]=N.useState(-1),Se=N.useRef(),Rt=In(tt,Se),st=In(v,Rt),We=$=>L=>{var D;const q=Number(L.currentTarget.getAttribute("data-index"));ke(L),ee.current===!0&&He(q),R(q),$==null||(D=$.onFocus)==null||D.call($,L)},Fe=$=>L=>{var D;Te(L),ee.current===!1&&He(-1),R(-1),$==null||(D=$.onBlur)==null||D.call($,L)},at=($,L)=>{const D=Number($.currentTarget.getAttribute("data-index")),q=Y[D],Z=le.indexOf(q);let K=L;if(xe&&y==null){const Be=le[le.length-1];K>Be?K=Be:K<le[0]?K=le[0]:K=K<q?le[Z-1]:le[Z+1]}if(K=fr(K,l,a),X){o&&(K=fr(K,Y[D-1]||-1/0,Y[D+1]||1/0));const Be=K;K=ba({values:Y,newValue:K,index:D});let Ge=D;o||(Ge=K.indexOf(Be)),vn({sliderRef:Se,activeIndex:Ge})}W(K),He(D),G&&!xn(K,M)&&G($,K,D),d&&d($,K)},lt=$=>L=>{var D;if(y!==null){const q=Number(L.currentTarget.getAttribute("data-index")),Z=Y[q];let K=null;(L.key==="ArrowLeft"||L.key==="ArrowDown")&&L.shiftKey||L.key==="PageDown"?K=Math.max(Z-h,l):((L.key==="ArrowRight"||L.key==="ArrowUp")&&L.shiftKey||L.key==="PageUp")&&(K=Math.min(Z+h,a)),K!==null&&(at(L,K),L.preventDefault())}$==null||(D=$.onKeyDown)==null||D.call($,L)};Si(()=>{if(n&&Se.current.contains(document.activeElement)){var $;($=document.activeElement)==null||$.blur()}},[n]),n&&O!==-1&&w(-1),n&&yt!==-1&&He(-1);const Mt=$=>L=>{var D;(D=$.onChange)==null||D.call($,L),at(L,L.target.valueAsNumber)},bt=N.useRef();let Ve=f;i&&f==="horizontal"&&(Ve+="-reverse");const j=({finger:$,move:L=!1})=>{const{current:D}=Se,{width:q,height:Z,bottom:K,left:Be}=D.getBoundingClientRect();let Ge;Ve.indexOf("vertical")===0?Ge=(K-$.y)/Z:Ge=($.x-Be)/q,Ve.indexOf("-reverse")!==-1&&(Ge=1-Ge);let re;if(re=W0(Ge,l,a),y)re=q0(re,y,l);else{const $t=ya(le,re);re=le[$t]}re=fr(re,l,a);let Le=0;if(X){L?Le=bt.current:Le=ya(Y,re),o&&(re=fr(re,Y[Le-1]||-1/0,Y[Le+1]||1/0));const $t=re;re=ba({values:Y,newValue:re,index:Le}),o&&L||(Le=re.indexOf($t),bt.current=Le)}return{newValue:re,activeIndex:Le}},te=Cn($=>{const L=bn($,_);if(!L)return;if(F.current+=1,$.type==="mousemove"&&$.buttons===0){fe($);return}const{newValue:D,activeIndex:q}=j({finger:L,move:!0});vn({sliderRef:Se,activeIndex:q,setActive:w}),W(D),!U&&F.current>H0&&Q(!0),G&&!xn(D,M)&&G($,D,q)}),fe=Cn($=>{const L=bn($,_);if(Q(!1),!L)return;const{newValue:D}=j({finger:L,move:!0});w(-1),$.type==="touchend"&&R(-1),d&&d($,D),_.current=void 0,Ae()}),je=Cn($=>{if(n)return;va()||$.preventDefault();const L=$.changedTouches[0];L!=null&&(_.current=L.identifier);const D=bn($,_);if(D!==!1){const{newValue:Z,activeIndex:K}=j({finger:D});vn({sliderRef:Se,activeIndex:K,setActive:w}),W(Z),G&&!xn(Z,M)&&G($,Z,K)}F.current=0;const q=hr(Se.current);q.addEventListener("touchmove",te,{passive:!0}),q.addEventListener("touchend",fe,{passive:!0})}),Ae=N.useCallback(()=>{const $=hr(Se.current);$.removeEventListener("mousemove",te),$.removeEventListener("mouseup",fe),$.removeEventListener("touchmove",te),$.removeEventListener("touchend",fe)},[fe,te]);N.useEffect(()=>{const{current:$}=Se;return $.addEventListener("touchstart",je,{passive:va()}),()=>{$.removeEventListener("touchstart",je),Ae()}},[Ae,je]),N.useEffect(()=>{n&&Ae()},[n,Ae]);const _t=$=>L=>{var D;if((D=$.onMouseDown)==null||D.call($,L),n||L.defaultPrevented||L.button!==0)return;L.preventDefault();const q=bn(L,_);if(q!==!1){const{newValue:K,activeIndex:Be}=j({finger:q});vn({sliderRef:Se,activeIndex:Be,setActive:w}),W(K),G&&!xn(K,M)&&G(L,K,Be)}F.current=0;const Z=hr(Se.current);Z.addEventListener("mousemove",te,{passive:!0}),Z.addEventListener("mouseup",fe)},we=Hn(X?Y[0]:l,l,a),Pt=Hn(Y[Y.length-1],l,a)-we,Dt=($={})=>{const L=Rn($),D={onMouseDown:_t(L||{})},q=P({},L,D);return P({},$,{ref:st},q)},Or=$=>L=>{var D;(D=$.onMouseOver)==null||D.call($,L);const q=Number(L.currentTarget.getAttribute("data-index"));R(q)},Er=$=>L=>{var D;(D=$.onMouseLeave)==null||D.call($,L),R(-1)};return{active:O,axis:Ve,axisProps:K0,dragging:U,focusedThumbIndex:yt,getHiddenInputProps:($={})=>{var L;const D=Rn($),q={onChange:Mt(D||{}),onFocus:We(D||{}),onBlur:Fe(D||{}),onKeyDown:lt(D||{})},Z=P({},D,q);return P({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(a),"aria-valuemin":m(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(L=e.step)!=null?L:void 0,disabled:n},$,Z,{style:P({},td,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Dt,getThumbProps:($={})=>{const L=Rn($),D={onMouseOver:Or(L||{}),onMouseLeave:Er(L||{})};return P({},$,L,D)},marks:xe,open:E,range:X,rootRef:st,trackLeap:Pt,trackOffset:we,values:Y,getThumbStyle:$=>({pointerEvents:O!==-1&&O!==$?"none":void 0})}}const Z0=e=>!e||!Vr(e);function Q0(e){return rn("MuiSlider",e)}const Xe=Ga("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"]),e1=e=>{const{open:t}=e;return{offset:gt(t&&Xe.valueLabelOpen),circle:Xe.valueLabelCircle,label:Xe.valueLabelLabel}};function uc(e){const{children:t,className:r,value:n}=e,o=e1(e);return t?N.cloneElement(t,{className:gt(t.props.className)},b.jsxs(N.Fragment,{children:[t.props.children,b.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:b.jsx("span",{className:o.circle,children:b.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(uc.propTypes={children:p.element.isRequired,className:p.string,value:p.node});const t1=["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 xa(e){return e}const r1=Ot("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ee(r.color)}`],r.size!=="medium"&&t[`size${Ee(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"},[`&.${Xe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xe.dragging}`]:{[`& .${Xe.thumb}, & .${Xe.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}}]}}),n1=Ot("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),o1=Ot("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:P({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:P({backgroundColor:Qo(e.palette[r].main,.62),borderColor:Qo(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Zo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Zo(e.palette[r].main,.5)})))}))]}}),i1=Ot("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Ee(r.color)}`],r.size!=="medium"&&t[`thumbSize${Ee(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%)"},[`&.${Xe.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, &.${Xe.focusVisible}`]:P({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${fs(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Xe.active}`]:P({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${fs(e.palette[r].main,.16)}`})}}))]}}),s1=Ot(uc,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>P({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Xe.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%"},[`&.${Xe.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"}}]})),a1=Ot("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ri(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}}]})),l1=Ot("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ri(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>P({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),c1=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${Ee(a)}`,l&&`size${Ee(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Ee(l)}`,a&&`thumbColor${Ee(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ti(c,Q0,s)},u1=({children:e})=>e,fc=N.forwardRef(function(t,r){var n,o,i,s,a,l,c,u,d,f,v,m,y,h,S,T,_,O,w,E,R,U,Q,F;const M=_i({props:t,name:"MuiSlider"}),W=ad(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":Y,component:xe="span",components:le={},componentsProps:ee={},color:Te="primary",classes:ke,className:tt,disableSwap:yt=!1,disabled:He=!1,getAriaLabel:Se,getAriaValueText:Rt,marks:st=!1,max:We=100,min:Fe=0,orientation:at="horizontal",shiftStep:lt=10,size:Mt="medium",step:bt=1,scale:Ve=xa,slotProps:j,slots:te,track:fe="normal",valueLabelDisplay:je="off",valueLabelFormat:Ae=xa}=M,_t=De(M,t1),we=P({},M,{isRtl:W,max:We,min:Fe,classes:ke,disabled:He,disableSwap:yt,orientation:at,marks:st,color:Te,size:Mt,step:bt,shiftStep:lt,scale:Ve,track:fe,valueLabelDisplay:je,valueLabelFormat:Ae}),{axisProps:Pt,getRootProps:Dt,getHiddenInputProps:Or,getThumbProps:Er,open:Cr,active:Qt,axis:rt,focusedThumbIndex:$,range:L,dragging:D,marks:q,values:Z,trackOffset:K,trackLeap:Be,getThumbStyle:Ge}=X0(P({},we,{rootRef:r}));we.marked=q.length>0&&q.some(I=>I.label),we.dragging=D,we.focusedThumbIndex=$;const re=c1(we),Le=(n=(o=te==null?void 0:te.root)!=null?o:le.Root)!=null?n:r1,$t=(i=(s=te==null?void 0:te.rail)!=null?s:le.Rail)!=null?i:n1,er=(a=(l=te==null?void 0:te.track)!=null?l:le.Track)!=null?a:o1,Rr=(c=(u=te==null?void 0:te.thumb)!=null?u:le.Thumb)!=null?c:i1,vt=(d=(f=te==null?void 0:te.valueLabel)!=null?f:le.ValueLabel)!=null?d:s1,Ft=(v=(m=te==null?void 0:te.mark)!=null?m:le.Mark)!=null?v:a1,Vt=(y=(h=te==null?void 0:te.markLabel)!=null?h:le.MarkLabel)!=null?y:l1,_r=(S=(T=te==null?void 0:te.input)!=null?T:le.Input)!=null?S:"input",Pr=(_=j==null?void 0:j.root)!=null?_:ee.root,ln=(O=j==null?void 0:j.rail)!=null?O:ee.rail,$r=(w=j==null?void 0:j.track)!=null?w:ee.track,tr=(E=j==null?void 0:j.thumb)!=null?E:ee.thumb,rr=(R=j==null?void 0:j.valueLabel)!=null?R:ee.valueLabel,xo=(U=j==null?void 0:j.mark)!=null?U:ee.mark,So=(Q=j==null?void 0:j.markLabel)!=null?Q:ee.markLabel,cn=(F=j==null?void 0:j.input)!=null?F:ee.input,un=kt({elementType:Le,getSlotProps:Dt,externalSlotProps:Pr,externalForwardedProps:_t,additionalProps:P({},Z0(Le)&&{as:xe}),ownerState:P({},we,Pr==null?void 0:Pr.ownerState),className:[re.root,tt]}),wo=kt({elementType:$t,externalSlotProps:ln,ownerState:we,className:re.rail}),To=kt({elementType:er,externalSlotProps:$r,additionalProps:{style:P({},Pt[rt].offset(K),Pt[rt].leap(Be))},ownerState:P({},we,$r==null?void 0:$r.ownerState),className:re.track}),kr=kt({elementType:Rr,getSlotProps:Er,externalSlotProps:tr,ownerState:P({},we,tr==null?void 0:tr.ownerState),className:re.thumb}),Oo=kt({elementType:vt,externalSlotProps:rr,ownerState:P({},we,rr==null?void 0:rr.ownerState),className:re.valueLabel}),g=kt({elementType:Ft,externalSlotProps:xo,ownerState:we,className:re.mark}),C=kt({elementType:Vt,externalSlotProps:So,ownerState:we,className:re.markLabel}),A=kt({elementType:_r,getSlotProps:Or,externalSlotProps:cn,ownerState:we});return b.jsxs(Le,P({},un,{children:[b.jsx($t,P({},wo)),b.jsx(er,P({},To)),q.filter(I=>I.value>=Fe&&I.value<=We).map((I,V)=>{const ne=Hn(I.value,Fe,We),J=Pt[rt].offset(ne);let B;return fe===!1?B=Z.indexOf(I.value)!==-1:B=fe==="normal"&&(L?I.value>=Z[0]&&I.value<=Z[Z.length-1]:I.value<=Z[0])||fe==="inverted"&&(L?I.value<=Z[0]||I.value>=Z[Z.length-1]:I.value>=Z[0]),b.jsxs(N.Fragment,{children:[b.jsx(Ft,P({"data-index":V},g,!Vr(Ft)&&{markActive:B},{style:P({},J,g.style),className:gt(g.className,B&&re.markActive)})),I.label!=null?b.jsx(Vt,P({"aria-hidden":!0,"data-index":V},C,!Vr(Vt)&&{markLabelActive:B},{style:P({},J,C.style),className:gt(re.markLabel,C.className,B&&re.markLabelActive),children:I.label})):null]},V)}),Z.map((I,V)=>{const ne=Hn(I,Fe,We),J=Pt[rt].offset(ne),B=je==="off"?u1:vt;return b.jsx(B,P({},!Vr(B)&&{valueLabelFormat:Ae,valueLabelDisplay:je,value:typeof Ae=="function"?Ae(Ve(I),V):Ae,index:V,open:Cr===V||Qt===V||je==="on",disabled:He},Oo,{children:b.jsx(Rr,P({"data-index":V},kr,{className:gt(re.thumb,kr.className,Qt===V&&re.active,$===V&&re.focusVisible),style:P({},J,Ge(V),kr.style),children:b.jsx(_r,P({"data-index":V,"aria-label":Se?Se(V):G,"aria-valuenow":Ve(I),"aria-labelledby":Y,"aria-valuetext":Rt?Rt(Ve(I),V):X,value:Z[V]},A))}))}),V)})]}))});process.env.NODE_ENV!=="production"&&(fc.propTypes={"aria-label":ns(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":ns(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])});var f1="[object Number]";function d1(e){return typeof e=="number"||Wt(e)&&Yt(e)==f1}const dc=$e.observer(e=>{k.useTheme();function t(r,n){n===e.velocity||!d1(n)||e.onVelocityChange(n)}return b.jsxs(k.Stack,{direction:"row",gap:2,children:[b.jsx(fc,{value:e.velocity,color:"secondary",onChange:t,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),e.renderValue?e.renderValue(e.velocity):b.jsx(Bi,{value:e.velocity.toString()})]})});function Bi({value:e,sx:t}){var n;const r=k.useTheme();return b.jsx(k.Stack,{direction:"row",justifyContent:"center",gap:"5px",sx:{padding:"6px 12px",background:(n=r.palette.backgroundPaperElevation)==null?void 0:n[8],borderRadius:"10px",minWidth:"111px",...t},children:b.jsx(k.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,lineHeight:1,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const pc=$e.observer(({store:e})=>{const{t}=Kt.useTranslation(),r=$e.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 b.jsx(dc,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:n=>b.jsx(Bi,{value:r.valueLabelFormat(n),sx:{minWidth:e.currentMotionType==="translate"?"111px":"90px"}})})}),p1=$e.observer(({store:e,children:t})=>{var d,f,v,m,y,h,S,T,_;const{t:r}=Kt.useTranslation(),n=k.useTheme();function o(O,w){(w==="translate"||w==="rotate")&&e.setSelectedCartesianMotionType(w)}Pi(()=>[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 i(O,w){const E=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,R=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;E&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:O.axis,direction:O.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:E,currentJoints:R,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:O.axis,direction:O.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:w.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(w.degrees)}})}finally{e.setCurrentIncrementJog(null)}})}async function s(O){if(!e.isLocked){if(e.activeDiscreteIncrement)return i(O,e.activeDiscreteIncrement);O.motionType==="translate"?await e.jogger.startTCPTranslation({axis:O.axis,direction:O.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:O.axis,direction:O.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const l=[{id:"x",colors:(v=(f=(d=n.componentsExt)==null?void 0:d.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.X,icon:b.jsx(bm,{})},{id:"y",colors:(h=(y=(m=n.componentsExt)==null?void 0:m.JoggingCartesian)==null?void 0:y.Axis)==null?void 0:h.Y,icon:b.jsx(xm,{})},{id:"z",colors:(_=(T=(S=n.componentsExt)==null?void 0:S.JoggingCartesian)==null?void 0:T.Axis)==null?void 0:_.Z,icon:b.jsx(wm,{})}];function c(O){return r("General.mm.variable",{amount:O.toFixed(1)})}function u(O){return r("General.degree.variable",{amount:Lt.radiansToDegrees(O).toFixed(1)})}return b.jsxs(k.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs(k.Stack,{gap:2,children:[b.jsx(U0,{store:e}),b.jsx(pc,{store:e}),b.jsx(k.Divider,{})]}),b.jsxs(k.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:[b.jsxs(z0,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx(k.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),b.jsx(k.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),b.jsx(Hl,{store:e,children:b.jsxs(k.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:[e.selectedCartesianMotionType==="translate"&&l.map(O=>{var w;return b.jsx(ti,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[O.icon,b.jsx(k.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var E;return c(((E=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:E.position[O.id])||0)},startJogging:E=>s({axis:O.id,motionType:"translate",direction:E}),stopJogging:a},O.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(O=>{var w;return b.jsx(ti,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(Om,{}),b.jsx(k.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var E,R;return u(((R=(E=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:E.orientation)==null?void 0:R[O.id])||0)},startJogging:E=>s({axis:O.id,motionType:"rotate",direction:E}),stopJogging:a},O.id)})]})})]}),b.jsx(rc,{store:e}),t&&b.jsx(k.Divider,{}),t]})}),g1=$e.observer(({store:e,children:t})=>{async function r(o){await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop()}return b.jsxs(k.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(pc,{store:e}),b.jsx(k.Divider,{}),b.jsx(k.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(Hl,{store:e,children:b.jsx(k.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:e.jogger.motionStream.joints.map(o=>{var l;const i=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[o.index],s=(i==null?void 0:i.lower_limit)!==void 0?Lt.radiansToDegrees(i.lower_limit):void 0,a=(i==null?void 0:i.upper_limit)!==void 0?Lt.radiansToDegrees(i.upper_limit):void 0;return b.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:a,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:o.index,direction:c}),stopJogging:n},`joint-${o.index}`)})})})}),b.jsx(rc,{store:e}),t&&b.jsx(k.Divider,{}),t]})}),h1=on($e.observer(e=>{const t=Wn.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=$e.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){ut.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const o=await t.connectJogger(e.motionGroupId),i=await Vi.loadFor(o);ut.runInAction(()=>{r.joggingStore=i}),e.onSetup&&e.onSetup(i)}catch(o){r.loadingError=o}}return H.useEffect(()=>(n(),()=>{var o;(o=r.joggingStore)==null||o.dispose()}),[e.nova,e.motionGroupId]),H.useEffect(()=>{const o=r.joggingStore;o&&(e.locked?o.locks.add("external"):o.locks.delete("external"))},[e.locked]),b.jsx(k.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?b.jsx(m1,{store:r.joggingStore,children:e.children}):b.jsx(ho,{message:"Loading jogging",error:r.loadingError})})})),m1=$e.observer(({store:e,children:t})=>{H.useEffect(()=>{function n(){e.deactivate()}function o(){e.activate()}return window.addEventListener("blur",n),window.addEventListener("focus",o),()=>{window.removeEventListener("blur",n),window.removeEventListener("focus",o)}}),Pi(()=>[e.currentTab.id,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState!=="inactive"&&e.activate()});function r(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(p1,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(g1,{store:e,children:t})})}return b.jsxs(k.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx(k.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>b.jsx(k.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),b.jsx(k.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:r()})]})}),gc=H.forwardRef(({label:e,value:t},r)=>{var a;const n=k.useTheme(),[o,i]=H.useState(!1);async function s(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),i(!0),!0}catch(l){console.error(l);const c=window.getSelection(),u=document.createRange();u.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(u)}return!1}return H.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),b.jsx(k.Tooltip,{open:o,title:"Copied!",children:b.jsx(k.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(a=n.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx(k.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:n.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),y1=$e.observer(({motionStream:e})=>{const t=H.useRef(null);function r(){const n=e.rapidlyChangingMotionState.tcp_pose;return n?Lt.poseToWandelscriptString(n):""}return Sr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx(k.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(gc,{value:r(),ref:t})})}),b1=$e.observer(({motionStream:e})=>{const t=H.useRef(null);function r(){const{joints:n}=e.rapidlyChangingMotionState.state.joint_position;return`[${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return Sr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx(k.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(gc,{value:r(),ref:t})})});function v1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function x1({baseUrl:e=v1(),...t}){return b.jsxs(k.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[b.jsx(k.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs(k.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx(k.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx(k.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx(k.DialogActions,{children:b.jsxs(k.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx(k.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx(k.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const S1=Array(6).fill(2*Math.PI),Sa="0.0.0-semantically-released",w1="(^joint_[0-9]+$)|(_J[0-9]+$)";function hc(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>hc(t))]}function T1(e,t){return new RegExp(t??w1).test(e)}function mc(e,t){return hc(e).filter(r=>T1(r.name,t))}function yc({rapidlyChangingMotionState:e,dhParameters:t,jointCollector:r,onRotationChanged:n,children:o}){Jo.Globals.assign({frameLoop:"always"});const i=H.useRef([]),s=H.useRef([]),{invalidate:a}=Pc.useThree();function l(v){v&&(s.current=r?r(v):mc(v),u(),a())}function c(v){i.current=v,f.start(Object.assign({},i.current))}function u(){const v=s.current.map((m,y)=>d[y].get());if(n)n(s.current,v);else for(const[m,y]of s.current.entries()){const h=t[m],S=h.theta||0,T=h.reverse_rotation_direction?-1:1;y.rotation.y=T*v[m]+S}}dl(()=>{const v=e.state.joint_position.joints.filter(m=>m!==void 0);requestAnimationFrame(()=>c(v))});const[d,f]=Jo.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),a()},onResolve:()=>{u()}}));return b.jsx("group",{ref:l,children:o})}const wa="line",Ta="mesh";function Oa({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new xt.Matrix4;function o(l,c){const u=new xt.Vector3,d=new xt.Quaternion,f=new xt.Vector3;n.decompose(u,d,f);const v=u.clone(),m=new xt.Matrix4().makeRotationY(l.theta+c*(l.reverse_rotation_direction?-1:1)).multiply(new xt.Matrix4().makeTranslation(0,l.d/1e3,0)).multiply(new xt.Matrix4().makeTranslation(l.a/1e3,0,0)).multiply(new xt.Matrix4().makeRotationX(l.alpha));return n.multiply(m),n.decompose(u,d,f),{a:v,b:u}}function i(l,c,u,d){if(!t)return;const f=t[l];if(!f)return;const{a:v,b:m}=o(f,d);c.geometry.setPositions([v.toArray(),m.toArray()].flat()),u.position.set(m.x,m.y,m.z)}function s(l,c){n.identity(),l.forEach((u,d)=>{i(d,u.getObjectByName(wa),u.getObjectByName(Ta),c[d])})}function a(l){return mc(l,"^group_[0-9]+$")}return b.jsx(b.Fragment,{children:b.jsx(yc,{rapidlyChangingMotionState:e,dhParameters:t,jointCollector:a,onRotationChanged:s,children:b.jsxs("group",{...r,name:"Scene",children:[b.jsxs("mesh",{children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((l,c)=>{const{a:u,b:d}=o(l,e.state.joint_position.joints[c]??0);return b.jsxs("group",{name:`group_${c}`,children:[b.jsx(ct.Line,{name:wa,points:[u,d],color:"white",lineWidth:5}),b.jsxs("mesh",{name:Ta,position:d,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+c)]},"group_"+c)})]})})})}const O1=console.warn;function E1(){return H.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&O1(e)}},[]),b.jsx(b.Fragment,{})}function C1(e){return e.type==="Mesh"}function R1(e){return e.name.endsWith("_FLG")}function _1({modelURL:e,flangeRef:t,...r}){const n=ct.useGLTF(e),o=i=>C1(i)?b.jsx("mesh",{name:i.name,geometry:i.geometry,material:i.material,position:i.position,rotation:i.rotation},i.uuid):b.jsx(Jo.animated.group,{name:i.name,position:i.position,rotation:i.rotation,ref:R1(i)?t:void 0,children:i.children.map(o)},i.uuid);return b.jsx("group",{...r,dispose:null,children:o(n.scene)})}function Ui(e){let t=Sa;return Sa.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}const bc=on(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Ui,isGhost:o=!1,flangeRef:i,...s})=>{const a=H.useRef(),l=H.useCallback(d=>{d&&(a.current=d,o&&c())},[o]),c=()=>{!a.current||a.current.userData.isGhost||(a.current.traverse(d=>{if(d instanceof Re.Mesh){d.material instanceof Re.Material&&(d.material.colorWrite=!0);const f=d.clone(),v=d.clone();f.material=new Re.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,v.material=new Re.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),v.userData.isGhost=!0,d.parent&&(d.parent.add(f),d.parent.add(v))}}),a.current.userData.isGhost=!0)},u=()=>{if(!a.current||!a.current.userData.isGhost)return;const d=[];a.current.traverse(f=>{var v;f instanceof Re.Mesh&&((v=f.userData)!=null&&v.isGhost?d.push(f):f.material instanceof Re.Material&&(f.material.colorWrite=!0))}),d.forEach(f=>{f.parent&&f.parent.remove(f)}),a.current.userData.isGhost=!0};return H.useEffect(()=>{o?c():u()},[o]),b.jsxs(jc.ErrorBoundary,{fallback:b.jsx(Oa,{rapidlyChangingMotionState:e,dhParameters:r,...s}),children:[b.jsx(H.Suspense,{fallback:b.jsx(Oa,{rapidlyChangingMotionState:e,dhParameters:r,...s}),children:b.jsx("group",{ref:l,children:b.jsx(yc,{rapidlyChangingMotionState:e,dhParameters:r,children:b.jsx(_1,{modelURL:n(t),flangeRef:i,...s})})})}),b.jsx(E1,{})]})});function P1({connectedMotionGroup:e,getModel:t=Ui,isGhost:r=!1,flangeRef:n,...o}){return e.dhParameters?b.jsx(bc,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,flangeRef:n,...o}):null}const $1=k.styled(k.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:o})=>!o,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:o})=>o,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),k1=H.forwardRef((e,t)=>b.jsx($1,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),j1={$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"},A1=H.lazy(()=>import("@monaco-editor/react")),L1=on(e=>{const t=k.useTheme(),r=H.useRef(null),[n,o]=H.useState("dark-plus"),i=t.palette.mode==="dark"?"dark-plus":"light-plus";async function s(a){const[{createHighlighter:l},{shikiToMonaco:c}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);a.languages.register({id:"wandelscript"}),a.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await l({langs:[j1],themes:["dark-plus","light-plus"]})),c(r.current,a),a.editor.defineTheme(i,{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:t.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(a),o(i)}return b.jsx(H.Suspense,{fallback:b.jsx(ho,{}),children:b.jsx(A1,{value:e.code,onMount:(a,l)=>{s(l)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function vc(){var t,r,n,o,i,s;const e=k.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(o=e.palette.backgroundPaperElevation)==null?void 0:o[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiFab:{styleOverrides:{root:{background:(s=(i=e.paletteExt)==null?void 0:i.secondary)==null?void 0:s.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)"}}}}}}function I1(){const e=vc();return e.palette.mode="light",e}function N1(e){var n,o,i,s;let t=!0;((n=e.palette)==null?void 0:n.mode)==="light"?t=!1:((o=e.palette)==null?void 0:o.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const r=t?vc():I1();return ll(r,e)}exports.JoggingCartesianAxisControl=ti;exports.JoggingJointRotationControl=bl;exports.JoggingPanel=h1;exports.LoadingCover=ho;exports.LoadingErrorMessage=Jl;exports.NoMotionGroupModal=x1;exports.PoseCartesianValues=y1;exports.PoseJointValues=b1;exports.PresetEnvironment=Ic;exports.Robot=P1;exports.SafetyZonesRenderer=Dc;exports.SelectableFab=k1;exports.SupportedRobot=bc;exports.VelocitySlider=dc;exports.VelocitySliderLabel=Bi;exports.WandelscriptEditor=L1;exports.createNovaMuiTheme=N1;exports.defaultAxisConfig=S1;exports.defaultGetModel=Ui;exports.useAnimationFrame=Sr;exports.useAutorun=dl;exports.useMounted=ao;exports.useReaction=Pi;
84
84
  //# sourceMappingURL=index.cjs.map