@wandelbots/wandelbots-js-react-components 3.5.1 → 3.6.0-pr.feat-model-retrieval-from-rdp.463.3cb7d2e

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 (77) hide show
  1. package/README.md +18 -0
  2. package/dist/3d.cjs.js +1 -1
  3. package/dist/3d.es.js +1 -1
  4. package/dist/{LoadingCover-Dr9hDTku.js → LoadingCover-6gWr11KP.js} +11 -10
  5. package/dist/{LoadingCover-Dr9hDTku.js.map → LoadingCover-6gWr11KP.js.map} +1 -1
  6. package/dist/LoadingCover-CukpS_aj.cjs +2 -0
  7. package/dist/{LoadingCover-r2yhJZF9.cjs.map → LoadingCover-CukpS_aj.cjs.map} +1 -1
  8. package/dist/{WandelscriptEditor-DnJvITTA.js → WandelscriptEditor-7eN-Yw7m.js} +3 -3
  9. package/dist/{WandelscriptEditor-DnJvITTA.js.map → WandelscriptEditor-7eN-Yw7m.js.map} +1 -1
  10. package/dist/WandelscriptEditor-D6_vS5Uk.cjs +2 -0
  11. package/dist/{WandelscriptEditor-Dj7TBCkF.cjs.map → WandelscriptEditor-D6_vS5Uk.cjs.map} +1 -1
  12. package/dist/auth0-spa-js.production.esm-BMSlxZC5.js +3877 -0
  13. package/dist/auth0-spa-js.production.esm-BMSlxZC5.js.map +1 -0
  14. package/dist/auth0-spa-js.production.esm-DZ6lsBvD.cjs +5 -0
  15. package/dist/auth0-spa-js.production.esm-DZ6lsBvD.cjs.map +1 -0
  16. package/dist/components/RobotCard.d.ts +1 -1
  17. package/dist/components/RobotCard.d.ts.map +1 -1
  18. package/dist/components/robots/GenericRobot.d.ts +2 -2
  19. package/dist/components/robots/GenericRobot.d.ts.map +1 -1
  20. package/dist/components/robots/Robot.d.ts +1 -1
  21. package/dist/components/robots/Robot.d.ts.map +1 -1
  22. package/dist/components/robots/SupportedRobot.d.ts +1 -1
  23. package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
  24. package/dist/components/robots/robotModelLogic.d.ts +1 -1
  25. package/dist/components/robots/robotModelLogic.d.ts.map +1 -1
  26. package/dist/core.cjs.js +1 -1
  27. package/dist/core.es.js +4 -4
  28. package/dist/externalizeComponent-CkVWk2F_.cjs +24 -0
  29. package/dist/externalizeComponent-CkVWk2F_.cjs.map +1 -0
  30. package/dist/externalizeComponent-Dc3fViZA.js +489 -0
  31. package/dist/externalizeComponent-Dc3fViZA.js.map +1 -0
  32. package/dist/index.cjs.js +1 -1
  33. package/dist/index.es.js +6 -6
  34. package/dist/interpolation-DAXKfoDS.cjs +20 -0
  35. package/dist/interpolation-DAXKfoDS.cjs.map +1 -0
  36. package/dist/interpolation-DcPbemBD.js +6924 -0
  37. package/dist/interpolation-DcPbemBD.js.map +1 -0
  38. package/dist/lib/JoggerConnection.d.ts.map +1 -1
  39. package/dist/{manufacturerHomePositions-CgaG5vaK.js → manufacturerHomePositions-BaS-GAxw.js} +331 -282
  40. package/dist/manufacturerHomePositions-BaS-GAxw.js.map +1 -0
  41. package/dist/manufacturerHomePositions-cD52vnEi.cjs +2 -0
  42. package/dist/manufacturerHomePositions-cD52vnEi.cjs.map +1 -0
  43. package/dist/{theming-Coh4zx7d.js → theming-B7ojcJTM.js} +4802 -6245
  44. package/dist/theming-B7ojcJTM.js.map +1 -0
  45. package/dist/theming-C9apy9Ov.cjs +115 -0
  46. package/dist/theming-C9apy9Ov.cjs.map +1 -0
  47. package/dist/wandelscript.cjs.js +1 -1
  48. package/dist/wandelscript.es.js +1 -1
  49. package/package.json +14 -4
  50. package/src/components/RobotCard.tsx +1 -1
  51. package/src/components/robots/GenericRobot.tsx +56 -13
  52. package/src/components/robots/Robot.tsx +1 -1
  53. package/src/components/robots/SupportedRobot.tsx +10 -2
  54. package/src/components/robots/robotModelLogic.ts +40 -6
  55. package/src/env.d.ts +3 -0
  56. package/src/lib/JoggerConnection.ts +10 -10
  57. package/src/lib/MotionStreamConnection.ts +1 -1
  58. package/dist/LoadingCover-r2yhJZF9.cjs +0 -2
  59. package/dist/WandelscriptEditor-Dj7TBCkF.cjs +0 -2
  60. package/dist/auth0-spa-js.production.esm-DL9f1uDJ.js +0 -1438
  61. package/dist/auth0-spa-js.production.esm-DL9f1uDJ.js.map +0 -1
  62. package/dist/auth0-spa-js.production.esm-DTiWXa87.cjs +0 -5
  63. package/dist/auth0-spa-js.production.esm-DTiWXa87.cjs.map +0 -1
  64. package/dist/index-CAib4NKw.js +0 -2261
  65. package/dist/index-CAib4NKw.js.map +0 -1
  66. package/dist/index-CqMZL0FV.cjs +0 -2
  67. package/dist/index-CqMZL0FV.cjs.map +0 -1
  68. package/dist/index-CxasuX80.js +0 -5212
  69. package/dist/index-CxasuX80.js.map +0 -1
  70. package/dist/index-DxwppshT.cjs +0 -29
  71. package/dist/index-DxwppshT.cjs.map +0 -1
  72. package/dist/manufacturerHomePositions-Ca80ycLi.cjs +0 -2
  73. package/dist/manufacturerHomePositions-Ca80ycLi.cjs.map +0 -1
  74. package/dist/manufacturerHomePositions-CgaG5vaK.js.map +0 -1
  75. package/dist/theming-Coh4zx7d.js.map +0 -1
  76. package/dist/theming-D4ztsmTr.cjs +0 -133
  77. package/dist/theming-D4ztsmTr.cjs.map +0 -1
@@ -0,0 +1,20 @@
1
+ "use strict";const H=require("./externalizeComponent-CkVWk2F_.cjs"),W=require("@mui/material"),we=require("mobx-react-lite"),Ae=require("react-i18next"),re=require("@mui/icons-material"),m=require("axios"),Re=require("mobx"),pe=require("react");var K=(e=>(e.IDLE="idle",e.PREPARING="preparing",e.STARTING="starting",e.RUNNING="running",e.PAUSING="pausing",e.PAUSED="paused",e.STOPPING="stopping",e.COMPLETED="completed",e.FAILED="failed",e.STOPPED="stopped",e.ERROR="error",e))(K||{});const Ge=H.externalizeComponent(we.observer(({state:e,onRun:t,onPause:r,onStop:s,onReset:o,requiresManualReset:n=!1,variant:a="with_pause",className:l})=>{const c=W.useTheme(),{t:i}=Ae.useTranslation(),p=()=>{const v={run:{enabled:e==="idle"||e==="stopped"||e==="paused"||e==="completed"||e==="failed"||e==="error",label:i(e==="paused"?"ProgramControl.Resume.bt":e==="error"||e==="failed"?"ProgramControl.Retry.bt":"ProgramControl.Start.bt"),color:c.palette.success.main,onClick:t},pause:{enabled:e==="running",label:i("ProgramControl.Pause.bt"),color:"#FFFFFF33",onClick:r||(()=>{})},stop:{enabled:e==="preparing"||e==="starting"||e==="running"||e==="pausing"||e==="paused",label:i("ProgramControl.Stop.bt"),color:c.palette.error.main,onClick:s}};return a==="without_pause"?[v.run,v.stop]:[v.run,v.pause,v.stop]},d=v=>{const E={sx:{fontSize:"55px"}};if(a==="without_pause")return v===0?H.jsxRuntimeExports.jsx(re.PlayArrow,{...E}):H.jsxRuntimeExports.jsx(re.Stop,{...E});switch(v){case 0:return H.jsxRuntimeExports.jsx(re.PlayArrow,{...E});case 1:return H.jsxRuntimeExports.jsx(re.Pause,{...E});case 2:return H.jsxRuntimeExports.jsx(re.Stop,{...E});default:return null}},u=p();return H.jsxRuntimeExports.jsx(W.Box,{className:l,sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:H.jsxRuntimeExports.jsx(W.Box,{sx:{display:"flex",gap:"40px",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},children:u.map((v,E)=>H.jsxRuntimeExports.jsxs(W.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[H.jsxRuntimeExports.jsx(W.Button,{variant:"contained",disabled:!v.enabled||e==="preparing"||e==="starting"||e==="pausing"||e==="stopping"&&!n,onClick:v.onClick,sx:{width:"88px",height:"88px",borderRadius:"88px",backgroundColor:v.color,opacity:v.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?1:.3,"&:hover":{backgroundColor:v.color,opacity:v.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?.8:.3},"&:disabled":{backgroundColor:v.color,opacity:.3},minWidth:"88px",flexShrink:0},children:d(E)}),H.jsxRuntimeExports.jsx(W.Typography,{variant:"body1",sx:{color:v.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?v.color:c.palette.text.disabled,textAlign:"center",opacity:v.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?1:.3},children:v.label})]},v.label))})})})),ke=H.externalizeComponent(we.observer(({programState:e,safetyState:t,operationMode:r,className:s})=>{const o=W.useTheme(),{t:n}=Ae.useTranslation(),a=()=>{if(t==="SAFETY_STATE_DEVICE_EMERGENCY_STOP"||t==="SAFETY_STATE_ROBOT_EMERGENCY_STOP"||t==="SAFETY_STATE_STOP_0"||t==="SAFETY_STATE_STOP_1"||t==="SAFETY_STATE_STOP_2"||t==="SAFETY_STATE_PROTECTIVE_STOP"||t==="SAFETY_STATE_STOP"||t==="SAFETY_STATE_REDUCED"||t==="SAFETY_STATE_MASTERING"||t==="SAFETY_STATE_CONFIRM_SAFETY"||t==="SAFETY_STATE_OPERATOR_SAFETY"||t==="SAFETY_STATE_RECOVERY"||t==="SAFETY_STATE_VIOLATION")return{label:n("ProgramStateIndicator.EStop.lb"),color:o.palette.error.main};if(t==="SAFETY_STATE_UNKNOWN"||t==="SAFETY_STATE_FAULT")return{label:n("ProgramStateIndicator.Error.lb"),color:o.palette.error.main};if(t==="SAFETY_STATE_NORMAL")switch(e){case K.PREPARING:return{label:n("ProgramStateIndicator.Preparing.lb"),color:o.palette.warning.main};case K.STARTING:return{label:n("ProgramStateIndicator.Starting.lb"),color:o.palette.warning.main};case K.RUNNING:return{label:n("ProgramStateIndicator.Running.lb"),color:o.palette.success.main};case K.PAUSING:return{label:n("ProgramStateIndicator.Pausing.lb"),color:o.palette.warning.main};case K.PAUSED:return{label:n("ProgramStateIndicator.Paused.lb"),color:o.palette.grey[600]};case K.STOPPING:return{label:n("ProgramStateIndicator.Stopping.lb"),color:o.palette.warning.main};case K.COMPLETED:return{label:n("ProgramStateIndicator.Completed.lb"),color:o.palette.success.main};case K.FAILED:return{label:n("ProgramStateIndicator.Failed.lb"),color:o.palette.error.main};case K.STOPPED:return{label:n("ProgramStateIndicator.Stopped.lb"),color:o.palette.warning.main};case K.ERROR:return{label:n("ProgramStateIndicator.Error.lb"),color:o.palette.error.main};case K.IDLE:default:return{label:n("ProgramStateIndicator.Ready.lb"),color:o.palette.success.main}}return{label:n("ProgramStateIndicator.Idle.lb"),color:o.palette.grey[600]}},{label:l,color:c}=a(),p=`${l} / ${(()=>{switch(r){case"OPERATION_MODE_AUTO":return n("ProgramStateIndicator.Auto.lb");case"OPERATION_MODE_MANUAL":return n("ProgramStateIndicator.Manual.lb");case"OPERATION_MODE_MANUAL_T1":return n("ProgramStateIndicator.ManualT1.lb");case"OPERATION_MODE_MANUAL_T2":return n("ProgramStateIndicator.ManualT2.lb");default:return n("ProgramStateIndicator.Auto.lb")}})()}`;return H.jsxRuntimeExports.jsx(W.Chip,{className:s,label:H.jsxRuntimeExports.jsx(W.Typography,{variant:"body2",sx:{fontSize:"0.75rem",lineHeight:1.2},children:p}),variant:"filled",sx:{backgroundColor:c,color:o.palette.getContrastText(c),fontWeight:500,height:"auto","& .MuiChip-label":{paddingX:1.5,paddingY:.5}}})}));/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */var Ve=function(e,t){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var o in s)s.hasOwnProperty(o)&&(r[o]=s[o])},Ve(e,t)};function Ue(e,t){Ve(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function qe(e){var t=typeof Symbol=="function"&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function De(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),o,n=[],a;try{for(;(t===void 0||t-- >0)&&!(o=s.next()).done;)n.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(a)throw a.error}}return n}function Qe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(De(arguments[t]));return e}var Te=(function(){function e(t,r){this.target=r,this.type=t}return e})(),He=(function(e){Ue(t,e);function t(r,s){var o=e.call(this,"error",s)||this;return o.message=r.message,o.error=r,o}return t})(Te),Ne=(function(e){Ue(t,e);function t(r,s,o){r===void 0&&(r=1e3),s===void 0&&(s="");var n=e.call(this,"close",o)||this;return n.wasClean=!0,n.code=r,n.reason=s,n}return t})(Te);/*!
15
+ * Reconnecting WebSocket
16
+ * by Pedro Ladaria <pedro.ladaria@gmail.com>
17
+ * https://github.com/pladaria/reconnecting-websocket
18
+ * License MIT
19
+ */var Ke=function(){if(typeof WebSocket<"u")return WebSocket},$e=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},X={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Je=(function(){function e(t,r,s){var o=this;s===void 0&&(s={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(n){o._debug("open event");var a=o._options.minUptime,l=a===void 0?X.minUptime:a;clearTimeout(o._connectTimeout),o._uptimeTimeout=setTimeout(function(){return o._acceptOpen()},l),o._ws.binaryType=o._binaryType,o._messageQueue.forEach(function(c){return o._ws.send(c)}),o._messageQueue=[],o.onopen&&o.onopen(n),o._listeners.open.forEach(function(c){return o._callEventListener(n,c)})},this._handleMessage=function(n){o._debug("message event"),o.onmessage&&o.onmessage(n),o._listeners.message.forEach(function(a){return o._callEventListener(n,a)})},this._handleError=function(n){o._debug("error event",n.message),o._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),o.onerror&&o.onerror(n),o._debug("exec error listeners"),o._listeners.error.forEach(function(a){return o._callEventListener(n,a)}),o._connect()},this._handleClose=function(n){o._debug("close event"),o._clearTimeouts(),o._shouldReconnect&&o._connect(),o.onclose&&o.onclose(n),o._listeners.close.forEach(function(a){return o._callEventListener(n,a)})},this._url=t,this._protocols=r,this._options=s,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(r,s){return typeof s=="string"?r+=s.length:s instanceof Blob?r+=s.size:r+=s.byteLength,r},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,r){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,r)},e.prototype.reconnect=function(t,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,r),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var r=this._options.maxEnqueuedMessages,s=r===void 0?X.maxEnqueuedMessages:r;this._messageQueue.length<s&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,r){this._listeners[t]&&this._listeners[t].push(r)},e.prototype.dispatchEvent=function(t){var r,s,o=this._listeners[t.type];if(o)try{for(var n=qe(o),a=n.next();!a.done;a=n.next()){var l=a.value;this._callEventListener(t,l)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(s=n.return)&&s.call(n)}finally{if(r)throw r.error}}return!0},e.prototype.removeEventListener=function(t,r){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(s){return s!==r}))},e.prototype._debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._options.debug&&console.log.apply(console,Qe(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,r=t.reconnectionDelayGrowFactor,s=r===void 0?X.reconnectionDelayGrowFactor:r,o=t.minReconnectionDelay,n=o===void 0?X.minReconnectionDelay:o,a=t.maxReconnectionDelay,l=a===void 0?X.maxReconnectionDelay:a,c=0;return this._retryCount>0&&(c=n*Math.pow(s,this._retryCount-1),c>l&&(c=l)),this._debug("next delay",c),c},e.prototype._wait=function(){var t=this;return new Promise(function(r){setTimeout(r,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var r=t();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var r=this._options,s=r.maxRetries,o=s===void 0?X.maxRetries:s,n=r.connectionTimeout,a=n===void 0?X.connectionTimeout:n,l=r.WebSocket,c=l===void 0?Ke():l;if(this._retryCount>=o){this._debug("max retries reached",this._retryCount,">=",o);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!$e(c))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(i){t._closeCalled||(t._debug("connect",{url:i,protocols:t._protocols}),t._ws=t._protocols?new c(i,t._protocols):new c(i),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},a))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new He(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,r){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,r),this._handleClose(new Ne(t,r,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,r){"handleEvent"in r?r.handleEvent(t):r(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e})(),ge=class extends Je{constructor(e,t={}){console.log("Opening websocket to",e),super(()=>this.targetUrl||e,void 0,{startClosed:!0}),this.opts=t,this.disposed=!1,Object.defineProperty(this,"url",{get(){return this.targetUrl}}),this.targetUrl=e,this.addEventListener("open",()=>{console.log(`Websocket to ${this.url} opened`)}),this.addEventListener("message",s=>{this.receivedFirstMessage||(this.receivedFirstMessage=s)}),this.addEventListener("close",()=>{console.log(`Websocket to ${this.url} closed`)});const r=this.reconnect;this.reconnect=()=>{this.opts.mock?this.opts.mock.handleWebsocketConnection(this):r.apply(this)},this.reconnect()}changeUrl(e){this.receivedFirstMessage=void 0,this.targetUrl=e,this.reconnect()}sendJson(e){this.opts.mock?this.opts.mock.handleWebsocketMessage(this,JSON.stringify(e)):this.send(JSON.stringify(e))}dispose(){this.close(),this.disposed=!0,this.opts.onDispose&&this.opts.onDispose()}async opened(){return new Promise((e,t)=>{this.readyState===WebSocket.OPEN?e():(this.addEventListener("open",()=>e()),this.addEventListener("error",t))})}async closed(){return new Promise((e,t)=>{this.readyState===WebSocket.CLOSED?e():(this.addEventListener("close",()=>e()),this.addEventListener("error",t))})}async firstMessage(){return this.receivedFirstMessage?this.receivedFirstMessage:new Promise((e,t)=>{const r=o=>{this.receivedFirstMessage=o,this.removeEventListener("message",r),this.removeEventListener("error",s),e(o)},s=o=>{this.removeEventListener("message",r),this.removeEventListener("error",s),t(o)};this.addEventListener("message",r),this.addEventListener("error",s)})}async nextMessage(){return new Promise((e,t)=>{const r=o=>{this.removeEventListener("message",r),this.removeEventListener("error",s),e(o)},s=o=>{this.removeEventListener("message",r),this.removeEventListener("error",s),t(o)};this.addEventListener("message",r),this.addEventListener("error",s)})}},We=class{constructor(){this.available=typeof window<"u"&&!!window.localStorage}getJSON(e){if(!this.available)return null;const t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return null}}setJSON(e,t){if(!this.available)return null;window.localStorage.setItem(e,JSON.stringify(t))}delete(e){if(!this.available)return null;window.localStorage.removeItem(e)}setString(e,t){if(!this.available)return null;window.localStorage.setItem(e,t)}getString(e){return this.available?window.localStorage.getItem(e):null}};const ce=new We;function Ce(e,t={}){const{scheme:r,defaultScheme:s}=t,o=/^[a-zA-Z]+:\/\//;return r?(e=e.replace(o,""),e=`${r}://${e}`):s&&!o.test(e)&&(e=`${s}://${e}`),new URL(e)}function Ye(e,t={}){try{return Ce(e,t)}catch{return}}function ze(e){var t;return(t=Ye(e,{defaultScheme:"http"}))!=null&&t.host.endsWith(".wandelbots.io")?Ce(e,{defaultScheme:"https"}):Ce(e,{defaultScheme:"http"})}const he={dev:{domain:"https://auth.portal.dev.wandelbots.io",clientId:"fLbJD0RLp5r2Dpucm5j8BjwMR6Hunfha"},stg:{domain:"https://auth.portal.stg.wandelbots.io",clientId:"joVDeD9e786WzFNSGCqoVq7HNkWt5j6s"},prod:{domain:"https://auth.portal.wandelbots.io",clientId:"J7WJUi38xVQdJAEBNRT9Xw1b0fXDb4J2"}},Xe=e=>{if(e.host.endsWith(".dev.wandelbots.io"))return he.dev;if(e.host.endsWith(".stg.wandelbots.io"))return he.stg;if(e.host.endsWith(".wandelbots.io"))return he.prod;throw new Error(`Unable to authenticate with NOVA instance "${e}". Auth0 login is only supported for cloud instances with hosts of the form "**.wandelbots.io".`)},Ze=async e=>{if(typeof window>"u")throw new Error("Access token must be set to use NovaClient when not in a browser environment.");if(e.origin===window.location.origin)throw window.location.reload(),new Error("Failed to reload page to get auth details, please refresh manually");const{Auth0Client:t}=await Promise.resolve().then(()=>require("./auth0-spa-js.production.esm-DZ6lsBvD.cjs")),r=Xe(e),s=new t({domain:r.domain,clientId:r.clientId??"",useRefreshTokens:!1,authorizationParams:{audience:"nova-api",redirect_uri:window.location.origin}});if(window.location.search.includes("code=")&&window.location.search.includes("state=")){const{appState:o}=await s.handleRedirectCallback();window.history.replaceState({},document.title,(o==null?void 0:o.returnTo)||window.location.pathname)}else await s.loginWithRedirect();return await s.getTokenSilently()};function fe(e){var t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var s=0;s<e.length;s++){var o=e[s];if(typeof o!="string")throw new TypeError("Url must be a string. Received "+o);o!==""&&(s>0&&(o=o.replace(/^[\/]+/,"")),s<e.length-1?o=o.replace(/[\/]+$/,""):o=o.replace(/[\/]+$/,"/"),t.push(o))}var n=t.join("/");n=n.replace(/\/(\?|&|#[^!])/g,"$1");var a=n.split("?");return n=a.shift()+(a.length>0?"?":"")+a.join("&"),n}function ue(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),fe(e)}var J={},be;function et(){if(be)return J;be=1,Object.defineProperty(J,"__esModule",{value:!0}),J.PathError=J.TokenData=void 0,J.parse=i,J.compile=p,J.match=v,J.pathToRegexp=E,J.stringify=Be;const e="/",t=x=>x,r=/^[$_\p{ID_Start}]$/u,s=/^[$\u200c\u200d\p{ID_Continue}]$/u,o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function n(x){return x.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function a(x){return x.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class l{constructor(R,U){this.tokens=R,this.originalPath=U}}J.TokenData=l;class c extends TypeError{constructor(R,U){let T=R;U&&(T+=`: ${U}`),T+="; visit https://git.new/pathToRegexpError for info",super(T),this.originalPath=U}}J.PathError=c;function i(x,R={}){const{encodePath:U=t}=R,T=[...x],A=[];let w=0,M=0;function B(){let _="";if(r.test(T[w]))do _+=T[w++];while(s.test(T[w]));else if(T[w]==='"'){let D=w;for(;w++<T.length;){if(T[w]==='"'){w++,D=0;break}T[w]==="\\"&&w++,_+=T[w]}if(D)throw new c(`Unterminated quote at index ${D}`,x)}if(!_)throw new c(`Missing parameter name at index ${w}`,x);return _}for(;w<T.length;){const _=T[w],D=o[_];D?A.push({type:D,index:w++,value:_}):_==="\\"?A.push({type:"escape",index:w++,value:T[w++]}):_===":"?A.push({type:"param",index:w++,value:B()}):_==="*"?A.push({type:"wildcard",index:w++,value:B()}):A.push({type:"char",index:w++,value:_})}A.push({type:"end",index:w,value:""});function N(_){const D=[];for(;;){const F=A[M++];if(F.type===_)break;if(F.type==="char"||F.type==="escape"){let $=F.value,z=A[M];for(;z.type==="char"||z.type==="escape";)$+=z.value,z=A[++M];D.push({type:"text",value:U($)});continue}if(F.type==="param"||F.type==="wildcard"){D.push({type:F.type,name:F.value});continue}if(F.type==="{"){D.push({type:"group",tokens:N("}")});continue}throw new c(`Unexpected ${F.type} at index ${F.index}, expected ${_}`,x)}return D}return new l(N("end"),x)}function p(x,R={}){const{encode:U=encodeURIComponent,delimiter:T=e}=R,A=typeof x=="object"?x:i(x,R),w=d(A.tokens,T,U);return function(B={}){const[N,..._]=w(B);if(_.length)throw new TypeError(`Missing parameters: ${_.join(", ")}`);return N}}function d(x,R,U){const T=x.map(A=>u(A,R,U));return A=>{const w=[""];for(const M of T){const[B,...N]=M(A);w[0]+=B,w.push(...N)}return w}}function u(x,R,U){if(x.type==="text")return()=>[x.value];if(x.type==="group"){const A=d(x.tokens,R,U);return w=>{const[M,...B]=A(w);return B.length?[""]:[M]}}const T=U||t;return x.type==="wildcard"&&U!==!1?A=>{const w=A[x.name];if(w==null)return["",x.name];if(!Array.isArray(w)||w.length===0)throw new TypeError(`Expected "${x.name}" to be a non-empty array`);return[w.map((M,B)=>{if(typeof M!="string")throw new TypeError(`Expected "${x.name}/${B}" to be a string`);return T(M)}).join(R)]}:A=>{const w=A[x.name];if(w==null)return["",x.name];if(typeof w!="string")throw new TypeError(`Expected "${x.name}" to be a string`);return[T(w)]}}function v(x,R={}){const{decode:U=decodeURIComponent,delimiter:T=e}=R,{regexp:A,keys:w}=E(x,R),M=w.map(B=>U===!1?t:B.type==="param"?U:N=>N.split(T).map(U));return function(N){const _=A.exec(N);if(!_)return!1;const D=_[0],F=Object.create(null);for(let $=1;$<_.length;$++){if(_[$]===void 0)continue;const z=w[$-1],Fe=M[$-1];F[z.name]=Fe(_[$])}return{path:D,params:F}}}function E(x,R={}){const{delimiter:U=e,end:T=!0,sensitive:A=!1,trailing:w=!0}=R,M=[],B=A?"":"i",N=[];for(const F of Y(x,[])){const $=typeof F=="object"?F:i(F,R);for(const z of te($.tokens,0,[]))N.push(_e(z,U,M,$.originalPath))}let _=`^(?:${N.join("|")})`;return w&&(_+=`(?:${a(U)}$)?`),_+=T?"$":`(?=${a(U)}|$)`,{regexp:new RegExp(_,B),keys:M}}function Y(x,R){if(Array.isArray(x))for(const U of x)Y(U,R);else R.push(x);return R}function*te(x,R,U){if(R===x.length)return yield U;const T=x[R];if(T.type==="group")for(const A of te(T.tokens,0,U.slice()))yield*te(x,R+1,A);else U.push(T);yield*te(x,R+1,U)}function _e(x,R,U,T){let A="",w="",M=!0;for(const B of x){if(B.type==="text"){A+=a(B.value),w+=B.value,M||(M=B.value.includes(R));continue}if(B.type==="param"||B.type==="wildcard"){if(!M&&!w)throw new c(`Missing text before "${B.name}" ${B.type}`,T);B.type==="param"?A+=`(${Ee(R,M?"":w)}+)`:A+="([\\s\\S]+)",U.push(B),w="",M=!1;continue}}return A}function Ee(x,R){return R.length<2?x.length<2?`[^${a(x+R)}]`:`(?:(?!${a(x)})[^${a(R)}])`:x.length<2?`(?:(?!${a(R)})[^${a(x)}])`:`(?:(?!${a(R)}|${a(x)})[\\s\\S])`}function ye(x){let R="",U=0;function T(A){return Me(A)&&Le(x[U])?A:JSON.stringify(A)}for(;U<x.length;){const A=x[U++];if(A.type==="text"){R+=n(A.value);continue}if(A.type==="group"){R+=`{${ye(A.tokens)}}`;continue}if(A.type==="param"){R+=`:${T(A.name)}`;continue}if(A.type==="wildcard"){R+=`*${T(A.name)}`;continue}throw new TypeError(`Unknown token type: ${A.type}`)}return R}function Be(x){return ye(x.tokens)}function Me(x){const[R,...U]=x;return r.test(R)&&U.every(T=>s.test(T))}function Le(x){return x&&x.type==="text"?!s.test(x.value[0]):!0}return J}var tt=et();function ne(e){"@babel/helpers - typeof";return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(e)}function rt(e,t){if(ne(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(ne(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function st(e){var t=rt(e,"string");return ne(t)=="symbol"?t:t+""}function at(e,t,r){return(t=st(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const O="/api/v2".replace(/\/+$/,""),Pe={csv:","};var L=class{constructor(e,t=O,r=m){this.basePath=t,this.axios=r,at(this,"configuration",void 0),e&&(this.configuration=e,this.basePath=e.basePath??t)}},lt=class extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}};const V={},C="https://example.com",h=function(e,t,r){if(r==null)throw new lt(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},S=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},y=async function(e,t){t&&t.accessToken&&(e.Authorization="Bearer "+(typeof t.accessToken=="function"?await t.accessToken():await t.accessToken))};function Se(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(s=>Se(e,s,r)):Object.keys(t).forEach(s=>Se(e,t[s],`${r}${r!==""?".":""}${s}`)):e.has(r)?e.append(r,t):e.set(r,t))}const b=function(e,...t){const r=new URLSearchParams(e.search);Se(r,t),e.search=r.toString()},j=function(e,t,r){const s=typeof e!="string";return(s&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},P=function(e){return e.pathname+e.search+e.hash},I=function(e,t,r,s){return(o=t,n=r)=>{const a={...e.options,url:(o.defaults.baseURL?"":(s==null?void 0:s.basePath)??n)+e.url};return o.request(a)}},ot={Abb:"abb",Fanuc:"fanuc",Kuka:"kuka",Universalrobots:"universalrobots",Yaskawa:"yaskawa"},nt=function(e){return{addApp:async(t,r,s,o={})=>{h("addApp","cell",t),h("addApp","app",r);const n="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(r,c,e),{url:P(a),options:c}},clearApps:async(t,r,s={})=>{h("clearApps","cell",t);const o="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),r!==void 0&&(i.completion_timeout=r),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},deleteApp:async(t,r,s,o={})=>{h("deleteApp","cell",t),h("deleteApp","app",r);const n="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.completion_timeout=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},getApp:async(t,r,s={})=>{h("getApp","cell",t),h("getApp","app",r);const o="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},listApps:async(t,r={})=>{h("listApps","cell",t);const s="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},updateApp:async(t,r,s,o,n={})=>{h("updateApp","cell",t),h("updateApp","app",r),h("updateApp","app2",s);const a="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};S(i,e),await y(p,e),o!==void 0&&(d.completion_timeout=o),p["Content-Type"]="application/json",b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=j(s,i,e),{url:P(l),options:i}}}},f=function(e){const t=nt(e);return{async addApp(r,s,o,n){var i,p;const a=await t.addApp(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ApplicationApi.addApp"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async clearApps(r,s,o){var c,i;const n=await t.clearApps(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["ApplicationApi.clearApps"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async deleteApp(r,s,o,n){var i,p;const a=await t.deleteApp(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ApplicationApi.deleteApp"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async getApp(r,s,o){var c,i;const n=await t.getApp(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["ApplicationApi.getApp"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async listApps(r,s){var l,c;const o=await t.listApps(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["ApplicationApi.listApps"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async updateApp(r,s,o,n,a){var p,d;const l=await t.updateApp(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["ApplicationApi.updateApp"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)}}};var Ie=class extends L{addApp(e,t,r,s){return f(this.configuration).addApp(e,t,r,s).then(o=>o(this.axios,this.basePath))}clearApps(e,t,r){return f(this.configuration).clearApps(e,t,r).then(s=>s(this.axios,this.basePath))}deleteApp(e,t,r,s){return f(this.configuration).deleteApp(e,t,r,s).then(o=>o(this.axios,this.basePath))}getApp(e,t,r){return f(this.configuration).getApp(e,t,r).then(s=>s(this.axios,this.basePath))}listApps(e,t){return f(this.configuration).listApps(e,t).then(r=>r(this.axios,this.basePath))}updateApp(e,t,r,s,o){return f(this.configuration).updateApp(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}};const ct=function(e){return{addBusIOService:async(t,r,s,o={})=>{h("addBusIOService","cell",t),h("addBusIOService","busIOType",r);const n="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(r,c,e),{url:P(a),options:c}},addModbusIO:async(t,r,s,o={})=>{h("addModbusIO","cell",t),h("addModbusIO","io",r),h("addModbusIO","modbusIOData",s);const n="/cells/{cell}/bus-ios/modbus/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{io}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}},addProfinetIO:async(t,r,s,o={})=>{h("addProfinetIO","cell",t),h("addProfinetIO","io",r),h("addProfinetIO","profinetIOData",s);const n="/cells/{cell}/bus-ios/profinet/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{io}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}},clearBusIOService:async(t,r,s={})=>{h("clearBusIOService","cell",t);const o="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),r!==void 0&&(i.completion_timeout=r),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},deleteAllModbusIOs:async(t,r={})=>{h("deleteAllModbusIOs","cell",t);const s="/cells/{cell}/bus-ios/modbus/ios".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"DELETE",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},deleteAllProfinetIOs:async(t,r={})=>{h("deleteAllProfinetIOs","cell",t);const s="/cells/{cell}/bus-ios/profinet/ios".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"DELETE",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},deleteModbusIO:async(t,r,s={})=>{h("deleteModbusIO","cell",t),h("deleteModbusIO","io",r);const o="/cells/{cell}/bus-ios/modbus/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{io}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},deleteProfinetIO:async(t,r,s={})=>{h("deleteProfinetIO","cell",t),h("deleteProfinetIO","io",r);const o="/cells/{cell}/bus-ios/profinet/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{io}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getBusIOService:async(t,r={})=>{h("getBusIOService","cell",t);const s="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},getBusIOState:async(t,r={})=>{h("getBusIOState","cell",t);const s="/cells/{cell}/bus-ios/state".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},getBusIOValues:async(t,r,s={})=>{h("getBusIOValues","cell",t);const o="/cells/{cell}/bus-ios/ios/values".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),r&&(i.ios=r),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getProfinetDescription:async(t,r={})=>{h("getProfinetDescription","cell",t);const s="/cells/{cell}/bus-ios/profinet/description".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},getProfinetIOsFromFile:async(t,r,s,o={})=>{h("getProfinetIOsFromFile","cell",t);const n="/cells/{cell}/bus-ios/profinet/iofile".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),r!==void 0&&(p.input_offset=r),s!==void 0&&(p.output_offset=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},listBusIODescriptions:async(t,r={})=>{h("listBusIODescriptions","cell",t);const s="/cells/{cell}/bus-ios/ios/description".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},listModbusIOs:async(t,r={})=>{h("listModbusIOs","cell",t);const s="/cells/{cell}/bus-ios/modbus/ios".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},listProfinetIOs:async(t,r={})=>{h("listProfinetIOs","cell",t);const s="/cells/{cell}/bus-ios/profinet/ios".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},setBusIOValues:async(t,r,s={})=>{h("setBusIOValues","cell",t),h("setBusIOValues","iOValue",r);const o="/cells/{cell}/bus-ios/ios/values".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...s},c={},i={};S(l,e),await y(c,e),c["Content-Type"]="application/json",b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},l.data=j(r,l,e),{url:P(n),options:l}},setProfinetIOsFromFile:async(t,r,s={})=>{h("setProfinetIOsFromFile","cell",t),h("setProfinetIOsFromFile","profinetInputOutputConfig",r);const o="/cells/{cell}/bus-ios/profinet/iofile".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...s},c={},i={};S(l,e),await y(c,e),c["Content-Type"]="application/json",b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},l.data=j(r,l,e),{url:P(n),options:l}}}},G=function(e){const t=ct(e);return{async addBusIOService(r,s,o,n){var i,p;const a=await t.addBusIOService(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["BUSInputsOutputsApi.addBusIOService"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async addModbusIO(r,s,o,n){var i,p;const a=await t.addModbusIO(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["BUSInputsOutputsApi.addModbusIO"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async addProfinetIO(r,s,o,n){var i,p;const a=await t.addProfinetIO(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["BUSInputsOutputsApi.addProfinetIO"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async clearBusIOService(r,s,o){var c,i;const n=await t.clearBusIOService(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["BUSInputsOutputsApi.clearBusIOService"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async deleteAllModbusIOs(r,s){var l,c;const o=await t.deleteAllModbusIOs(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["BUSInputsOutputsApi.deleteAllModbusIOs"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async deleteAllProfinetIOs(r,s){var l,c;const o=await t.deleteAllProfinetIOs(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["BUSInputsOutputsApi.deleteAllProfinetIOs"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async deleteModbusIO(r,s,o){var c,i;const n=await t.deleteModbusIO(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["BUSInputsOutputsApi.deleteModbusIO"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async deleteProfinetIO(r,s,o){var c,i;const n=await t.deleteProfinetIO(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["BUSInputsOutputsApi.deleteProfinetIO"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getBusIOService(r,s){var l,c;const o=await t.getBusIOService(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["BUSInputsOutputsApi.getBusIOService"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async getBusIOState(r,s){var l,c;const o=await t.getBusIOState(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["BUSInputsOutputsApi.getBusIOState"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async getBusIOValues(r,s,o){var c,i;const n=await t.getBusIOValues(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["BUSInputsOutputsApi.getBusIOValues"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getProfinetDescription(r,s){var l,c;const o=await t.getProfinetDescription(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["BUSInputsOutputsApi.getProfinetDescription"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async getProfinetIOsFromFile(r,s,o,n){var i,p;const a=await t.getProfinetIOsFromFile(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["BUSInputsOutputsApi.getProfinetIOsFromFile"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async listBusIODescriptions(r,s){var l,c;const o=await t.listBusIODescriptions(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["BUSInputsOutputsApi.listBusIODescriptions"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async listModbusIOs(r,s){var l,c;const o=await t.listModbusIOs(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["BUSInputsOutputsApi.listModbusIOs"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async listProfinetIOs(r,s){var l,c;const o=await t.listProfinetIOs(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["BUSInputsOutputsApi.listProfinetIOs"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async setBusIOValues(r,s,o){var c,i;const n=await t.setBusIOValues(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["BUSInputsOutputsApi.setBusIOValues"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async setProfinetIOsFromFile(r,s,o){var c,i;const n=await t.setProfinetIOsFromFile(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["BUSInputsOutputsApi.setProfinetIOsFromFile"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)}}};var it=class extends L{addBusIOService(e,t,r,s){return G(this.configuration).addBusIOService(e,t,r,s).then(o=>o(this.axios,this.basePath))}addModbusIO(e,t,r,s){return G(this.configuration).addModbusIO(e,t,r,s).then(o=>o(this.axios,this.basePath))}addProfinetIO(e,t,r,s){return G(this.configuration).addProfinetIO(e,t,r,s).then(o=>o(this.axios,this.basePath))}clearBusIOService(e,t,r){return G(this.configuration).clearBusIOService(e,t,r).then(s=>s(this.axios,this.basePath))}deleteAllModbusIOs(e,t){return G(this.configuration).deleteAllModbusIOs(e,t).then(r=>r(this.axios,this.basePath))}deleteAllProfinetIOs(e,t){return G(this.configuration).deleteAllProfinetIOs(e,t).then(r=>r(this.axios,this.basePath))}deleteModbusIO(e,t,r){return G(this.configuration).deleteModbusIO(e,t,r).then(s=>s(this.axios,this.basePath))}deleteProfinetIO(e,t,r){return G(this.configuration).deleteProfinetIO(e,t,r).then(s=>s(this.axios,this.basePath))}getBusIOService(e,t){return G(this.configuration).getBusIOService(e,t).then(r=>r(this.axios,this.basePath))}getBusIOState(e,t){return G(this.configuration).getBusIOState(e,t).then(r=>r(this.axios,this.basePath))}getBusIOValues(e,t,r){return G(this.configuration).getBusIOValues(e,t,r).then(s=>s(this.axios,this.basePath))}getProfinetDescription(e,t){return G(this.configuration).getProfinetDescription(e,t).then(r=>r(this.axios,this.basePath))}getProfinetIOsFromFile(e,t,r,s){return G(this.configuration).getProfinetIOsFromFile(e,t,r,s).then(o=>o(this.axios,this.basePath))}listBusIODescriptions(e,t){return G(this.configuration).listBusIODescriptions(e,t).then(r=>r(this.axios,this.basePath))}listModbusIOs(e,t){return G(this.configuration).listModbusIOs(e,t).then(r=>r(this.axios,this.basePath))}listProfinetIOs(e,t){return G(this.configuration).listProfinetIOs(e,t).then(r=>r(this.axios,this.basePath))}setBusIOValues(e,t,r){return G(this.configuration).setBusIOValues(e,t,r).then(s=>s(this.axios,this.basePath))}setProfinetIOsFromFile(e,t,r){return G(this.configuration).setProfinetIOsFromFile(e,t,r).then(s=>s(this.axios,this.basePath))}};const pt=function(e){return{deleteCell:async(t,r,s={})=>{h("deleteCell","cell",t);const o="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),r!==void 0&&(i.completion_timeout=r),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},deployCell:async(t,r,s={})=>{h("deployCell","cell",t);const o=new URL("/cells",C);let n;e&&(n=e.baseOptions);const a={method:"POST",...n,...s},l={},c={};S(a,e),await y(l,e),r!==void 0&&(c.completion_timeout=r),l["Content-Type"]="application/json",b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...s.headers},a.data=j(t,a,e),{url:P(o),options:a}},getCell:async(t,r={})=>{h("getCell","cell",t);const s="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},getCellStatus:async(t,r={})=>{h("getCellStatus","cell",t);const s="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},listCells:async(t={})=>{const r=new URL("/cells",C);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...t},n={},a={};S(o,e),await y(n,e),b(r,a);let l=s&&s.headers?s.headers:{};return o.headers={...n,...l,...t.headers},{url:P(r),options:o}},setCellStatus:async(t,r,s={})=>{h("setCellStatus","cell",t),h("setCellStatus","operatingState",r);const o="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...s},c={},i={};S(l,e),await y(c,e),r!==void 0&&(i.operating_state=r),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},updateCell:async(t,r,s,o={})=>{h("updateCell","cell",t),h("updateCell","cell2",r);const n="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(r,c,e),{url:P(a),options:c}}}},Z=function(e){const t=pt(e);return{async deleteCell(r,s,o){var c,i;const n=await t.deleteCell(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["CellApi.deleteCell"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async deployCell(r,s,o){var c,i;const n=await t.deployCell(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["CellApi.deployCell"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getCell(r,s){var l,c;const o=await t.getCell(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["CellApi.getCell"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async getCellStatus(r,s){var l,c;const o=await t.getCellStatus(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["CellApi.getCellStatus"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async listCells(r){var a,l;const s=await t.listCells(r),o=(e==null?void 0:e.serverIndex)??0,n=(l=(a=V["CellApi.listCells"])==null?void 0:a[o])==null?void 0:l.url;return(c,i)=>I(s,m,O,e)(c,n||i)},async setCellStatus(r,s,o){var c,i;const n=await t.setCellStatus(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["CellApi.setCellStatus"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async updateCell(r,s,o,n){var i,p;const a=await t.updateCell(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["CellApi.updateCell"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)}}};var dt=class extends L{deleteCell(e,t,r){return Z(this.configuration).deleteCell(e,t,r).then(s=>s(this.axios,this.basePath))}deployCell(e,t,r){return Z(this.configuration).deployCell(e,t,r).then(s=>s(this.axios,this.basePath))}getCell(e,t){return Z(this.configuration).getCell(e,t).then(r=>r(this.axios,this.basePath))}getCellStatus(e,t){return Z(this.configuration).getCellStatus(e,t).then(r=>r(this.axios,this.basePath))}listCells(e){return Z(this.configuration).listCells(e).then(t=>t(this.axios,this.basePath))}setCellStatus(e,t,r){return Z(this.configuration).setCellStatus(e,t,r).then(s=>s(this.axios,this.basePath))}updateCell(e,t,r,s){return Z(this.configuration).updateCell(e,t,r,s).then(o=>o(this.axios,this.basePath))}};const ht=function(e){return{addRobotController:async(t,r,s,o={})=>{h("addRobotController","cell",t),h("addRobotController","robotController",r);const n="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(r,c,e),{url:P(a),options:c}},clearRobotControllers:async(t,r,s={})=>{h("clearRobotControllers","cell",t);const o="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),r!==void 0&&(i.completion_timeout=r),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},deleteRobotController:async(t,r,s,o={})=>{h("deleteRobotController","cell",t),h("deleteRobotController","controller",r);const n="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.completion_timeout=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},getControllerDescription:async(t,r,s={})=>{h("getControllerDescription","cell",t),h("getControllerDescription","controller",r);const o="/cells/{cell}/controllers/{controller}/description".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getCoordinateSystem:async(t,r,s,o,n={})=>{h("getCoordinateSystem","cell",t),h("getCoordinateSystem","controller",r),h("getCoordinateSystem","coordinateSystem",s);const a="/cells/{cell}/controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{coordinate-system}",encodeURIComponent(String(s))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...n},p={},d={};S(i,e),await y(p,e),o!==void 0&&(d.orientation_type=o),b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:P(l),options:i}},getCurrentRobotControllerState:async(t,r,s={})=>{h("getCurrentRobotControllerState","cell",t),h("getCurrentRobotControllerState","controller",r);const o="/cells/{cell}/controllers/{controller}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getRobotController:async(t,r,s={})=>{h("getRobotController","cell",t),h("getRobotController","controller",r);const o="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getVirtualControllerConfiguration:async(t,r,s={})=>{h("getVirtualControllerConfiguration","cell",t),h("getVirtualControllerConfiguration","controller",r);const o="/cells/{cell}/controllers/{controller}/virtual-robot-configuration".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},listCoordinateSystems:async(t,r,s,o={})=>{h("listCoordinateSystems","cell",t),h("listCoordinateSystems","controller",r);const n="/cells/{cell}/controllers/{controller}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.orientation_type=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},listRobotControllers:async(t,r={})=>{h("listRobotControllers","cell",t);const s="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},setDefaultMode:async(t,r,s,o={})=>{h("setDefaultMode","cell",t),h("setDefaultMode","controller",r),h("setDefaultMode","mode",s);const n="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.mode=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},streamFreeDrive:async(t,r,s,o={})=>{h("streamFreeDrive","cell",t),h("streamFreeDrive","controller",r);const n="/cells/{cell}/controllers/{controller}/free-drive-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.response_rate=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},streamRobotControllerState:async(t,r,s,o,n={})=>{h("streamRobotControllerState","cell",t),h("streamRobotControllerState","controller",r);const a="/cells/{cell}/controllers/{controller}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...n},p={},d={};S(i,e),await y(p,e),s!==void 0&&(d.response_rate=s),o!==void 0&&(d.add_controller_timeout=o),b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:P(l),options:i}},updateRobotController:async(t,r,s,o,n={})=>{h("updateRobotController","cell",t),h("updateRobotController","controller",r),h("updateRobotController","robotController",s);const a="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};S(i,e),await y(p,e),o!==void 0&&(d.completion_timeout=o),p["Content-Type"]="application/json",b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=j(s,i,e),{url:P(l),options:i}}}},Q=function(e){const t=ht(e);return{async addRobotController(r,s,o,n){var i,p;const a=await t.addRobotController(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.addRobotController"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async clearRobotControllers(r,s,o){var c,i;const n=await t.clearRobotControllers(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["ControllerApi.clearRobotControllers"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async deleteRobotController(r,s,o,n){var i,p;const a=await t.deleteRobotController(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.deleteRobotController"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async getControllerDescription(r,s,o){var c,i;const n=await t.getControllerDescription(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["ControllerApi.getControllerDescription"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getCoordinateSystem(r,s,o,n,a){var p,d;const l=await t.getCoordinateSystem(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["ControllerApi.getCoordinateSystem"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)},async getCurrentRobotControllerState(r,s,o){var c,i;const n=await t.getCurrentRobotControllerState(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["ControllerApi.getCurrentRobotControllerState"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getRobotController(r,s,o){var c,i;const n=await t.getRobotController(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["ControllerApi.getRobotController"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getVirtualControllerConfiguration(r,s,o){var c,i;const n=await t.getVirtualControllerConfiguration(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["ControllerApi.getVirtualControllerConfiguration"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async listCoordinateSystems(r,s,o,n){var i,p;const a=await t.listCoordinateSystems(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.listCoordinateSystems"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async listRobotControllers(r,s){var l,c;const o=await t.listRobotControllers(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["ControllerApi.listRobotControllers"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async setDefaultMode(r,s,o,n){var i,p;const a=await t.setDefaultMode(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.setDefaultMode"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async streamFreeDrive(r,s,o,n){var i,p;const a=await t.streamFreeDrive(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.streamFreeDrive"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async streamRobotControllerState(r,s,o,n,a){var p,d;const l=await t.streamRobotControllerState(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["ControllerApi.streamRobotControllerState"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)},async updateRobotController(r,s,o,n,a){var p,d;const l=await t.updateRobotController(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["ControllerApi.updateRobotController"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)}}};var ut=class extends L{addRobotController(e,t,r,s){return Q(this.configuration).addRobotController(e,t,r,s).then(o=>o(this.axios,this.basePath))}clearRobotControllers(e,t,r){return Q(this.configuration).clearRobotControllers(e,t,r).then(s=>s(this.axios,this.basePath))}deleteRobotController(e,t,r,s){return Q(this.configuration).deleteRobotController(e,t,r,s).then(o=>o(this.axios,this.basePath))}getControllerDescription(e,t,r){return Q(this.configuration).getControllerDescription(e,t,r).then(s=>s(this.axios,this.basePath))}getCoordinateSystem(e,t,r,s,o){return Q(this.configuration).getCoordinateSystem(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}getCurrentRobotControllerState(e,t,r){return Q(this.configuration).getCurrentRobotControllerState(e,t,r).then(s=>s(this.axios,this.basePath))}getRobotController(e,t,r){return Q(this.configuration).getRobotController(e,t,r).then(s=>s(this.axios,this.basePath))}getVirtualControllerConfiguration(e,t,r){return Q(this.configuration).getVirtualControllerConfiguration(e,t,r).then(s=>s(this.axios,this.basePath))}listCoordinateSystems(e,t,r,s){return Q(this.configuration).listCoordinateSystems(e,t,r,s).then(o=>o(this.axios,this.basePath))}listRobotControllers(e,t){return Q(this.configuration).listRobotControllers(e,t).then(r=>r(this.axios,this.basePath))}setDefaultMode(e,t,r,s){return Q(this.configuration).setDefaultMode(e,t,r,s).then(o=>o(this.axios,this.basePath))}streamFreeDrive(e,t,r,s){return Q(this.configuration).streamFreeDrive(e,t,r,s).then(o=>o(this.axios,this.basePath))}streamRobotControllerState(e,t,r,s,o){return Q(this.configuration).streamRobotControllerState(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}updateRobotController(e,t,r,s,o){return Q(this.configuration).updateRobotController(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}};const mt=function(e){return{listIODescriptions:async(t,r,s,o,n,a,l={})=>{h("listIODescriptions","cell",t),h("listIODescriptions","controller",r);const c="/cells/{cell}/controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),i=new URL(c,C);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...l},u={},v={};S(d,e),await y(u,e),s&&(v.ios=s),o!==void 0&&(v.direction=o),n!==void 0&&(v.value_type=n),a!==void 0&&(v.group=a),b(i,v);let E=p&&p.headers?p.headers:{};return d.headers={...u,...E,...l.headers},{url:P(i),options:d}},listIOValues:async(t,r,s,o={})=>{h("listIOValues","cell",t),h("listIOValues","controller",r);const n="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),s&&(p.ios=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},setOutputValues:async(t,r,s,o={})=>{h("setOutputValues","cell",t),h("setOutputValues","controller",r),h("setOutputValues","iOValue",s);const n="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}},streamIOValues:async(t,r,s,o={})=>{h("streamIOValues","cell",t),h("streamIOValues","controller",r);const n="/cells/{cell}/controllers/{controller}/ios/stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),s&&(p.ios=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},waitForIOEvent:async(t,r,s,o={})=>{h("waitForIOEvent","cell",t),h("waitForIOEvent","controller",r),h("waitForIOEvent","waitForIOEventRequest",s);const n="/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}}}},se=function(e){const t=mt(e);return{async listIODescriptions(r,s,o,n,a,l,c){var u,v;const i=await t.listIODescriptions(r,s,o,n,a,l,c),p=(e==null?void 0:e.serverIndex)??0,d=(v=(u=V["ControllerInputsOutputsApi.listIODescriptions"])==null?void 0:u[p])==null?void 0:v.url;return(E,Y)=>I(i,m,O,e)(E,d||Y)},async listIOValues(r,s,o,n){var i,p;const a=await t.listIOValues(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerInputsOutputsApi.listIOValues"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async setOutputValues(r,s,o,n){var i,p;const a=await t.setOutputValues(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerInputsOutputsApi.setOutputValues"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async streamIOValues(r,s,o,n){var i,p;const a=await t.streamIOValues(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerInputsOutputsApi.streamIOValues"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async waitForIOEvent(r,s,o,n){var i,p;const a=await t.waitForIOEvent(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerInputsOutputsApi.waitForIOEvent"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)}}};var Ot=class extends L{listIODescriptions(e,t,r,s,o,n,a){return se(this.configuration).listIODescriptions(e,t,r,s,o,n,a).then(l=>l(this.axios,this.basePath))}listIOValues(e,t,r,s){return se(this.configuration).listIOValues(e,t,r,s).then(o=>o(this.axios,this.basePath))}setOutputValues(e,t,r,s){return se(this.configuration).setOutputValues(e,t,r,s).then(o=>o(this.axios,this.basePath))}streamIOValues(e,t,r,s){return se(this.configuration).streamIOValues(e,t,r,s).then(o=>o(this.axios,this.basePath))}waitForIOEvent(e,t,r,s){return se(this.configuration).waitForIOEvent(e,t,r,s).then(o=>o(this.axios,this.basePath))}};const Vt=function(e){return{executeJogging:async(t,r,s,o={})=>{h("executeJogging","cell",t),h("executeJogging","controller",r),h("executeJogging","executeJoggingRequest",s);const n="/cells/{cell}/controllers/{controller}/execution/jogging".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}}}},Ct=function(e){const t=Vt(e);return{async executeJogging(r,s,o,n){var i,p;const a=await t.executeJogging(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["JoggingApi.executeJogging"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)}}};var St=class extends L{executeJogging(e,t,r,s){return Ct(this.configuration).executeJogging(e,t,r,s).then(o=>o(this.axios,this.basePath))}};const yt=function(e){return{forwardKinematics:async(t,r,s={})=>{h("forwardKinematics","cell",t),h("forwardKinematics","forwardKinematicsRequest",r);const o="/cells/{cell}/kinematic/forward".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"POST",...a,...s},c={},i={};S(l,e),await y(c,e),c["Content-Type"]="application/json",b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},l.data=j(r,l,e),{url:P(n),options:l}},inverseKinematics:async(t,r,s={})=>{h("inverseKinematics","cell",t),h("inverseKinematics","inverseKinematicsRequest",r);const o="/cells/{cell}/kinematic/inverse".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"POST",...a,...s},c={},i={};S(l,e),await y(c,e),c["Content-Type"]="application/json",b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},l.data=j(r,l,e),{url:P(n),options:l}}}},ve=function(e){const t=yt(e);return{async forwardKinematics(r,s,o){var c,i;const n=await t.forwardKinematics(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["KinematicsApi.forwardKinematics"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async inverseKinematics(r,s,o){var c,i;const n=await t.inverseKinematics(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["KinematicsApi.inverseKinematics"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)}}};var bt=class extends L{forwardKinematics(e,t,r){return ve(this.configuration).forwardKinematics(e,t,r).then(s=>s(this.axios,this.basePath))}inverseKinematics(e,t,r){return ve(this.configuration).inverseKinematics(e,t,r).then(s=>s(this.axios,this.basePath))}};const Pt=function(e){return{getCurrentMotionGroupState:async(t,r,s,o,n={})=>{h("getCurrentMotionGroupState","cell",t),h("getCurrentMotionGroupState","controller",r),h("getCurrentMotionGroupState","motionGroup",s);const a="/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...n},p={},d={};S(i,e),await y(p,e),o!==void 0&&(d.response_coordinate_system=o),b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:P(l),options:i}},getMotionGroupDescription:async(t,r,s,o={})=>{h("getMotionGroupDescription","cell",t),h("getMotionGroupDescription","controller",r),h("getMotionGroupDescription","motionGroup",s);const n="/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/description".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},streamMotionGroupState:async(t,r,s,o,n,a={})=>{h("streamMotionGroupState","cell",t),h("streamMotionGroupState","controller",r),h("streamMotionGroupState","motionGroup",s);const l="/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))),c=new URL(l,C);let i;e&&(i=e.baseOptions);const p={method:"GET",...i,...a},d={},u={};S(p,e),await y(d,e),o!==void 0&&(u.response_rate=o),n!==void 0&&(u.response_coordinate_system=n),b(c,u);let v=i&&i.headers?i.headers:{};return p.headers={...d,...v,...a.headers},{url:P(c),options:p}}}},me=function(e){const t=Pt(e);return{async getCurrentMotionGroupState(r,s,o,n,a){var p,d;const l=await t.getCurrentMotionGroupState(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["MotionGroupApi.getCurrentMotionGroupState"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)},async getMotionGroupDescription(r,s,o,n){var i,p;const a=await t.getMotionGroupDescription(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["MotionGroupApi.getMotionGroupDescription"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async streamMotionGroupState(r,s,o,n,a,l){var d,u;const c=await t.streamMotionGroupState(r,s,o,n,a,l),i=(e==null?void 0:e.serverIndex)??0,p=(u=(d=V["MotionGroupApi.streamMotionGroupState"])==null?void 0:d[i])==null?void 0:u.url;return(v,E)=>I(c,m,O,e)(v,p||E)}}};var It=class extends L{getCurrentMotionGroupState(e,t,r,s,o){return me(this.configuration).getCurrentMotionGroupState(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}getMotionGroupDescription(e,t,r,s){return me(this.configuration).getMotionGroupDescription(e,t,r,s).then(o=>o(this.axios,this.basePath))}streamMotionGroupState(e,t,r,s,o,n){return me(this.configuration).streamMotionGroupState(e,t,r,s,o,n).then(a=>a(this.axios,this.basePath))}};const vt=function(e){return{getMotionGroupCollisionModel:async(t,r={})=>{h("getMotionGroupCollisionModel","motionGroupModel",t);const s="/motion-group-models/{motion-group-model}/collision".replace("{motion-group-model}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},getMotionGroupGlbModel:async(t,r={})=>{h("getMotionGroupGlbModel","motionGroupModel",t);const s="/motion-group-models/{motion-group-model}/glb".replace("{motion-group-model}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},getMotionGroupKinematicModel:async(t,r={})=>{h("getMotionGroupKinematicModel","motionGroupModel",t);const s="/motion-group-models/{motion-group-model}/kinematic".replace("{motion-group-model}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},getMotionGroupModels:async(t={})=>{const r=new URL("/motion-group-models",C);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...t},n={},a={};S(o,e),await y(n,e),b(r,a);let l=s&&s.headers?s.headers:{};return o.headers={...n,...l,...t.headers},{url:P(r),options:o}},getMotionGroupUsdModel:async(t,r={})=>{h("getMotionGroupUsdModel","motionGroupModel",t);const s="/motion-group-models/{motion-group-model}/usd".replace("{motion-group-model}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}}}},ae=function(e){const t=vt(e);return{async getMotionGroupCollisionModel(r,s){var l,c;const o=await t.getMotionGroupCollisionModel(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["MotionGroupModelsApi.getMotionGroupCollisionModel"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async getMotionGroupGlbModel(r,s){var l,c;const o=await t.getMotionGroupGlbModel(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["MotionGroupModelsApi.getMotionGroupGlbModel"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async getMotionGroupKinematicModel(r,s){var l,c;const o=await t.getMotionGroupKinematicModel(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["MotionGroupModelsApi.getMotionGroupKinematicModel"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async getMotionGroupModels(r){var a,l;const s=await t.getMotionGroupModels(r),o=(e==null?void 0:e.serverIndex)??0,n=(l=(a=V["MotionGroupModelsApi.getMotionGroupModels"])==null?void 0:a[o])==null?void 0:l.url;return(c,i)=>I(s,m,O,e)(c,n||i)},async getMotionGroupUsdModel(r,s){var l,c;const o=await t.getMotionGroupUsdModel(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["MotionGroupModelsApi.getMotionGroupUsdModel"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)}}};var xt=class extends L{getMotionGroupCollisionModel(e,t){return ae(this.configuration).getMotionGroupCollisionModel(e,t).then(r=>r(this.axios,this.basePath))}getMotionGroupGlbModel(e,t){return ae(this.configuration).getMotionGroupGlbModel(e,t).then(r=>r(this.axios,this.basePath))}getMotionGroupKinematicModel(e,t){return ae(this.configuration).getMotionGroupKinematicModel(e,t).then(r=>r(this.axios,this.basePath))}getMotionGroupModels(e){return ae(this.configuration).getMotionGroupModels(e).then(t=>t(this.axios,this.basePath))}getMotionGroupUsdModel(e,t){return ae(this.configuration).getMotionGroupUsdModel(e,t).then(r=>r(this.axios,this.basePath))}};const wt=function(e){return{deleteStoredCollider:async(t,r,s={})=>{h("deleteStoredCollider","cell",t),h("deleteStoredCollider","collider",r);const o="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},deleteStoredCollisionLinkChain:async(t,r,s={})=>{h("deleteStoredCollisionLinkChain","cell",t),h("deleteStoredCollisionLinkChain","linkChain",r);const o="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},deleteStoredCollisionTool:async(t,r,s={})=>{h("deleteStoredCollisionTool","cell",t),h("deleteStoredCollisionTool","tool",r);const o="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getStoredCollider:async(t,r,s={})=>{h("getStoredCollider","cell",t),h("getStoredCollider","collider",r);const o="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getStoredCollisionLinkChain:async(t,r,s={})=>{h("getStoredCollisionLinkChain","cell",t),h("getStoredCollisionLinkChain","linkChain",r);const o="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getStoredCollisionTool:async(t,r,s={})=>{h("getStoredCollisionTool","cell",t),h("getStoredCollisionTool","tool",r);const o="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},listCollisionLinkChains:async(t,r={})=>{h("listCollisionLinkChains","cell",t);const s="/cells/{cell}/store/collision/link-chains".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},listCollisionLinkChainsKeys:async(t,r={})=>{h("listCollisionLinkChainsKeys","cell",t);const s="/cells/{cell}/store/collision/link-chains-keys".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},listStoredColliders:async(t,r={})=>{h("listStoredColliders","cell",t);const s="/cells/{cell}/store/collision/colliders".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},listStoredCollidersKeys:async(t,r={})=>{h("listStoredCollidersKeys","cell",t);const s="/cells/{cell}/store/collision/colliders-keys".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},listStoredCollisionTools:async(t,r={})=>{h("listStoredCollisionTools","cell",t);const s="/cells/{cell}/store/collision/tools".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},listStoredCollisionToolsKeys:async(t,r={})=>{h("listStoredCollisionToolsKeys","cell",t);const s="/cells/{cell}/store/collision/tools-keys".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},storeCollider:async(t,r,s,o={})=>{h("storeCollider","cell",t),h("storeCollider","collider",r),h("storeCollider","collider2",s);const n="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}},storeCollisionLinkChain:async(t,r,s,o={})=>{h("storeCollisionLinkChain","cell",t),h("storeCollisionLinkChain","linkChain",r),h("storeCollisionLinkChain","collider",s);const n="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}},storeCollisionTool:async(t,r,s,o={})=>{h("storeCollisionTool","cell",t),h("storeCollisionTool","tool",r),h("storeCollisionTool","requestBody",s);const n="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}}}},k=function(e){const t=wt(e);return{async deleteStoredCollider(r,s,o){var c,i;const n=await t.deleteStoredCollider(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreCollisionComponentsApi.deleteStoredCollider"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async deleteStoredCollisionLinkChain(r,s,o){var c,i;const n=await t.deleteStoredCollisionLinkChain(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreCollisionComponentsApi.deleteStoredCollisionLinkChain"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async deleteStoredCollisionTool(r,s,o){var c,i;const n=await t.deleteStoredCollisionTool(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreCollisionComponentsApi.deleteStoredCollisionTool"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getStoredCollider(r,s,o){var c,i;const n=await t.getStoredCollider(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreCollisionComponentsApi.getStoredCollider"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getStoredCollisionLinkChain(r,s,o){var c,i;const n=await t.getStoredCollisionLinkChain(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreCollisionComponentsApi.getStoredCollisionLinkChain"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getStoredCollisionTool(r,s,o){var c,i;const n=await t.getStoredCollisionTool(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreCollisionComponentsApi.getStoredCollisionTool"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async listCollisionLinkChains(r,s){var l,c;const o=await t.listCollisionLinkChains(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreCollisionComponentsApi.listCollisionLinkChains"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async listCollisionLinkChainsKeys(r,s){var l,c;const o=await t.listCollisionLinkChainsKeys(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreCollisionComponentsApi.listCollisionLinkChainsKeys"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async listStoredColliders(r,s){var l,c;const o=await t.listStoredColliders(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreCollisionComponentsApi.listStoredColliders"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async listStoredCollidersKeys(r,s){var l,c;const o=await t.listStoredCollidersKeys(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreCollisionComponentsApi.listStoredCollidersKeys"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async listStoredCollisionTools(r,s){var l,c;const o=await t.listStoredCollisionTools(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreCollisionComponentsApi.listStoredCollisionTools"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async listStoredCollisionToolsKeys(r,s){var l,c;const o=await t.listStoredCollisionToolsKeys(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreCollisionComponentsApi.listStoredCollisionToolsKeys"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async storeCollider(r,s,o,n){var i,p;const a=await t.storeCollider(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["StoreCollisionComponentsApi.storeCollider"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async storeCollisionLinkChain(r,s,o,n){var i,p;const a=await t.storeCollisionLinkChain(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["StoreCollisionComponentsApi.storeCollisionLinkChain"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async storeCollisionTool(r,s,o,n){var i,p;const a=await t.storeCollisionTool(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["StoreCollisionComponentsApi.storeCollisionTool"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)}}};var At=class extends L{deleteStoredCollider(e,t,r){return k(this.configuration).deleteStoredCollider(e,t,r).then(s=>s(this.axios,this.basePath))}deleteStoredCollisionLinkChain(e,t,r){return k(this.configuration).deleteStoredCollisionLinkChain(e,t,r).then(s=>s(this.axios,this.basePath))}deleteStoredCollisionTool(e,t,r){return k(this.configuration).deleteStoredCollisionTool(e,t,r).then(s=>s(this.axios,this.basePath))}getStoredCollider(e,t,r){return k(this.configuration).getStoredCollider(e,t,r).then(s=>s(this.axios,this.basePath))}getStoredCollisionLinkChain(e,t,r){return k(this.configuration).getStoredCollisionLinkChain(e,t,r).then(s=>s(this.axios,this.basePath))}getStoredCollisionTool(e,t,r){return k(this.configuration).getStoredCollisionTool(e,t,r).then(s=>s(this.axios,this.basePath))}listCollisionLinkChains(e,t){return k(this.configuration).listCollisionLinkChains(e,t).then(r=>r(this.axios,this.basePath))}listCollisionLinkChainsKeys(e,t){return k(this.configuration).listCollisionLinkChainsKeys(e,t).then(r=>r(this.axios,this.basePath))}listStoredColliders(e,t){return k(this.configuration).listStoredColliders(e,t).then(r=>r(this.axios,this.basePath))}listStoredCollidersKeys(e,t){return k(this.configuration).listStoredCollidersKeys(e,t).then(r=>r(this.axios,this.basePath))}listStoredCollisionTools(e,t){return k(this.configuration).listStoredCollisionTools(e,t).then(r=>r(this.axios,this.basePath))}listStoredCollisionToolsKeys(e,t){return k(this.configuration).listStoredCollisionToolsKeys(e,t).then(r=>r(this.axios,this.basePath))}storeCollider(e,t,r,s){return k(this.configuration).storeCollider(e,t,r,s).then(o=>o(this.axios,this.basePath))}storeCollisionLinkChain(e,t,r,s){return k(this.configuration).storeCollisionLinkChain(e,t,r,s).then(o=>o(this.axios,this.basePath))}storeCollisionTool(e,t,r,s){return k(this.configuration).storeCollisionTool(e,t,r,s).then(o=>o(this.axios,this.basePath))}};const Rt=function(e){return{deleteStoredCollisionSetup:async(t,r,s={})=>{h("deleteStoredCollisionSetup","cell",t),h("deleteStoredCollisionSetup","setup",r);const o="/cells/{cell}/store/collision/setups/{setup}".replace("{cell}",encodeURIComponent(String(t))).replace("{setup}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getStoredCollisionSetup:async(t,r,s={})=>{h("getStoredCollisionSetup","cell",t),h("getStoredCollisionSetup","setup",r);const o="/cells/{cell}/store/collision/setups/{setup}".replace("{cell}",encodeURIComponent(String(t))).replace("{setup}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},listStoredCollisionSetups:async(t,r={})=>{h("listStoredCollisionSetups","cell",t);const s="/cells/{cell}/store/collision/setups".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},listStoredCollisionSetupsKeys:async(t,r={})=>{h("listStoredCollisionSetupsKeys","cell",t);const s="/cells/{cell}/store/collision/setups-keys".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},storeCollisionSetup:async(t,r,s,o={})=>{h("storeCollisionSetup","cell",t),h("storeCollisionSetup","setup",r),h("storeCollisionSetup","collisionSetup",s);const n="/cells/{cell}/store/collision/setups/{setup}".replace("{cell}",encodeURIComponent(String(t))).replace("{setup}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}}}},le=function(e){const t=Rt(e);return{async deleteStoredCollisionSetup(r,s,o){var c,i;const n=await t.deleteStoredCollisionSetup(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreCollisionSetupsApi.deleteStoredCollisionSetup"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getStoredCollisionSetup(r,s,o){var c,i;const n=await t.getStoredCollisionSetup(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreCollisionSetupsApi.getStoredCollisionSetup"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async listStoredCollisionSetups(r,s){var l,c;const o=await t.listStoredCollisionSetups(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreCollisionSetupsApi.listStoredCollisionSetups"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async listStoredCollisionSetupsKeys(r,s){var l,c;const o=await t.listStoredCollisionSetupsKeys(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreCollisionSetupsApi.listStoredCollisionSetupsKeys"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async storeCollisionSetup(r,s,o,n){var i,p;const a=await t.storeCollisionSetup(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["StoreCollisionSetupsApi.storeCollisionSetup"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)}}};var Ut=class extends L{deleteStoredCollisionSetup(e,t,r){return le(this.configuration).deleteStoredCollisionSetup(e,t,r).then(s=>s(this.axios,this.basePath))}getStoredCollisionSetup(e,t,r){return le(this.configuration).getStoredCollisionSetup(e,t,r).then(s=>s(this.axios,this.basePath))}listStoredCollisionSetups(e,t){return le(this.configuration).listStoredCollisionSetups(e,t).then(r=>r(this.axios,this.basePath))}listStoredCollisionSetupsKeys(e,t){return le(this.configuration).listStoredCollisionSetupsKeys(e,t).then(r=>r(this.axios,this.basePath))}storeCollisionSetup(e,t,r,s){return le(this.configuration).storeCollisionSetup(e,t,r,s).then(o=>o(this.axios,this.basePath))}};const Tt=function(e){return{clearAllObjects:async(t,r={})=>{h("clearAllObjects","cell",t);const s="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"DELETE",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},deleteObject:async(t,r,s={})=>{h("deleteObject","cell",t),h("deleteObject","key",r);const o="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getObject:async(t,r,s={})=>{h("getObject","cell",t),h("getObject","key",r);const o="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getObjectMetadata:async(t,r,s={})=>{h("getObjectMetadata","cell",t),h("getObjectMetadata","key",r);const o="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"HEAD",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},listAllObjectKeys:async(t,r={})=>{h("listAllObjectKeys","cell",t);const s="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...r},l={},c={};S(a,e),await y(l,e),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...r.headers},{url:P(o),options:a}},storeObject:async(t,r,s,o,n={})=>{h("storeObject","cell",t),h("storeObject","key",r);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={},u=new(e&&e.formDataCtor||FormData);S(i,e),await y(p,e),o!==void 0&&u.append("any_value",new Blob([JSON.stringify(o)],{type:"application/json"})),p["Content-Type"]="multipart/form-data",s!=null&&(p["X-Metadata"]=typeof s=="string"?s:JSON.stringify(s)),b(l,d);let v=c&&c.headers?c.headers:{};return i.headers={...p,...v,...n.headers},i.data=u,{url:P(l),options:i}}}},ee=function(e){const t=Tt(e);return{async clearAllObjects(r,s){var l,c;const o=await t.clearAllObjects(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreObjectApi.clearAllObjects"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async deleteObject(r,s,o){var c,i;const n=await t.deleteObject(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreObjectApi.deleteObject"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getObject(r,s,o){var c,i;const n=await t.getObject(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreObjectApi.getObject"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getObjectMetadata(r,s,o){var c,i;const n=await t.getObjectMetadata(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["StoreObjectApi.getObjectMetadata"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async listAllObjectKeys(r,s){var l,c;const o=await t.listAllObjectKeys(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["StoreObjectApi.listAllObjectKeys"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async storeObject(r,s,o,n,a){var p,d;const l=await t.storeObject(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["StoreObjectApi.storeObject"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)}}};var jt=class extends L{clearAllObjects(e,t){return ee(this.configuration).clearAllObjects(e,t).then(r=>r(this.axios,this.basePath))}deleteObject(e,t,r){return ee(this.configuration).deleteObject(e,t,r).then(s=>s(this.axios,this.basePath))}getObject(e,t,r){return ee(this.configuration).getObject(e,t,r).then(s=>s(this.axios,this.basePath))}getObjectMetadata(e,t,r){return ee(this.configuration).getObjectMetadata(e,t,r).then(s=>s(this.axios,this.basePath))}listAllObjectKeys(e,t){return ee(this.configuration).listAllObjectKeys(e,t).then(r=>r(this.axios,this.basePath))}storeObject(e,t,r,s,o){return ee(this.configuration).storeObject(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}};const _t=function(e){return{backupConfiguration:async(t,r,s={})=>{const o=new URL("/system/configuration",C);let n;e&&(n=e.baseOptions);const a={method:"GET",...n,...s},l={},c={};S(a,e),await y(l,e),t&&(c.resources=t.join(Pe.csv)),r!==void 0&&(c.metadata=r),b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...s.headers},{url:P(o),options:a}},checkNovaVersionUpdate:async(t,r={})=>{h("checkNovaVersionUpdate","channel",t);const s=new URL("/system/update",C);let o;e&&(o=e.baseOptions);const n={method:"GET",...o,...r},a={},l={};S(n,e),await y(a,e),t!==void 0&&(l.channel=t),b(s,l);let c=o&&o.headers?o.headers:{};return n.headers={...a,...c,...r.headers},{url:P(s),options:n}},getArpScan:async(t,r,s,o={})=>{const n=new URL("/experimental/system/network/arp-scan",C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...o},c={},i={};S(l,e),await y(c,e),t!==void 0&&(i.interface=t),r!==void 0&&(i.cidr=r),s!==void 0&&(i.timeout=s),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...o.headers},{url:P(n),options:l}},getConfigurationBackupStatus:async(t,r={})=>{h("getConfigurationBackupStatus","operationId",t);const s=new URL("/system/configuration/status",C);let o;e&&(o=e.baseOptions);const n={method:"GET",...o,...r},a={},l={};S(n,e),await y(a,e),t!==void 0&&(l.operation_id=t),b(s,l);let c=o&&o.headers?o.headers:{};return n.headers={...a,...c,...r.headers},{url:P(s),options:n}},getDiagnosePackage:async(t={})=>{const r=new URL("/system/diagnosis-package/zip",C);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...t},n={},a={};S(o,e),await y(n,e),b(r,a);let l=s&&s.headers?s.headers:{};return o.headers={...n,...l,...t.headers},{url:P(r),options:o}},getNetworkInterfaces:async(t={})=>{const r=new URL("/experimental/system/network/interfaces",C);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...t},n={},a={};S(o,e),await y(n,e),b(r,a);let l=s&&s.headers?s.headers:{};return o.headers={...n,...l,...t.headers},{url:P(r),options:o}},getNetworkState:async(t={})=>{const r=new URL("/experimental/system/network/status",C);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...t},n={},a={};S(o,e),await y(n,e),b(r,a);let l=s&&s.headers?s.headers:{};return o.headers={...n,...l,...t.headers},{url:P(r),options:o}},getSystemStatus:async(t={})=>{const r=new URL("/system/status",C);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...t},n={},a={};S(o,e),await y(n,e),b(r,a);let l=s&&s.headers?s.headers:{};return o.headers={...n,...l,...t.headers},{url:P(r),options:o}},getSystemVersion:async(t={})=>{const r=new URL("/system/version",C);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...t},n={},a={};S(o,e),await y(n,e),b(r,a);let l=s&&s.headers?s.headers:{};return o.headers={...n,...l,...t.headers},{url:P(r),options:o}},listConfigurationResources:async(t={})=>{const r=new URL("/system/configuration/resources",C);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...t},n={},a={};S(o,e),await y(n,e),b(r,a);let l=s&&s.headers?s.headers:{};return o.headers={...n,...l,...t.headers},{url:P(r),options:o}},restoreConfiguration:async(t,r,s={})=>{h("restoreConfiguration","body",t);const o=new URL("/system/configuration",C);let n;e&&(n=e.baseOptions);const a={method:"POST",...n,...s},l={},c={};S(a,e),await y(l,e),r&&(c.resources=r.join(Pe.csv)),l["Content-Type"]="application/gzip",b(o,c);let i=n&&n.headers?n.headers:{};return a.headers={...l,...i,...s.headers},a.data=j(t,a,e),{url:P(o),options:a}},updateNovaVersion:async(t,r={})=>{h("updateNovaVersion","updateNovaVersionRequest",t);const s=new URL("/system/update",C);let o;e&&(o=e.baseOptions);const n={method:"PUT",...o,...r},a={},l={};S(n,e),await y(a,e),a["Content-Type"]="application/json",b(s,l);let c=o&&o.headers?o.headers:{};return n.headers={...a,...c,...r.headers},n.data=j(t,n,e),{url:P(s),options:n}}}},g=function(e){const t=_t(e);return{async backupConfiguration(r,s,o){var c,i;const n=await t.backupConfiguration(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["SystemApi.backupConfiguration"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async checkNovaVersionUpdate(r,s){var l,c;const o=await t.checkNovaVersionUpdate(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["SystemApi.checkNovaVersionUpdate"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async getArpScan(r,s,o,n){var i,p;const a=await t.getArpScan(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["SystemApi.getArpScan"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async getConfigurationBackupStatus(r,s){var l,c;const o=await t.getConfigurationBackupStatus(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["SystemApi.getConfigurationBackupStatus"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)},async getDiagnosePackage(r){var a,l;const s=await t.getDiagnosePackage(r),o=(e==null?void 0:e.serverIndex)??0,n=(l=(a=V["SystemApi.getDiagnosePackage"])==null?void 0:a[o])==null?void 0:l.url;return(c,i)=>I(s,m,O,e)(c,n||i)},async getNetworkInterfaces(r){var a,l;const s=await t.getNetworkInterfaces(r),o=(e==null?void 0:e.serverIndex)??0,n=(l=(a=V["SystemApi.getNetworkInterfaces"])==null?void 0:a[o])==null?void 0:l.url;return(c,i)=>I(s,m,O,e)(c,n||i)},async getNetworkState(r){var a,l;const s=await t.getNetworkState(r),o=(e==null?void 0:e.serverIndex)??0,n=(l=(a=V["SystemApi.getNetworkState"])==null?void 0:a[o])==null?void 0:l.url;return(c,i)=>I(s,m,O,e)(c,n||i)},async getSystemStatus(r){var a,l;const s=await t.getSystemStatus(r),o=(e==null?void 0:e.serverIndex)??0,n=(l=(a=V["SystemApi.getSystemStatus"])==null?void 0:a[o])==null?void 0:l.url;return(c,i)=>I(s,m,O,e)(c,n||i)},async getSystemVersion(r){var a,l;const s=await t.getSystemVersion(r),o=(e==null?void 0:e.serverIndex)??0,n=(l=(a=V["SystemApi.getSystemVersion"])==null?void 0:a[o])==null?void 0:l.url;return(c,i)=>I(s,m,O,e)(c,n||i)},async listConfigurationResources(r){var a,l;const s=await t.listConfigurationResources(r),o=(e==null?void 0:e.serverIndex)??0,n=(l=(a=V["SystemApi.listConfigurationResources"])==null?void 0:a[o])==null?void 0:l.url;return(c,i)=>I(s,m,O,e)(c,n||i)},async restoreConfiguration(r,s,o){var c,i;const n=await t.restoreConfiguration(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["SystemApi.restoreConfiguration"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async updateNovaVersion(r,s){var l,c;const o=await t.updateNovaVersion(r,s),n=(e==null?void 0:e.serverIndex)??0,a=(c=(l=V["SystemApi.updateNovaVersion"])==null?void 0:l[n])==null?void 0:c.url;return(i,p)=>I(o,m,O,e)(i,a||p)}}};var Et=class extends L{backupConfiguration(e,t,r){return g(this.configuration).backupConfiguration(e,t,r).then(s=>s(this.axios,this.basePath))}checkNovaVersionUpdate(e,t){return g(this.configuration).checkNovaVersionUpdate(e,t).then(r=>r(this.axios,this.basePath))}getArpScan(e,t,r,s){return g(this.configuration).getArpScan(e,t,r,s).then(o=>o(this.axios,this.basePath))}getConfigurationBackupStatus(e,t){return g(this.configuration).getConfigurationBackupStatus(e,t).then(r=>r(this.axios,this.basePath))}getDiagnosePackage(e){return g(this.configuration).getDiagnosePackage(e).then(t=>t(this.axios,this.basePath))}getNetworkInterfaces(e){return g(this.configuration).getNetworkInterfaces(e).then(t=>t(this.axios,this.basePath))}getNetworkState(e){return g(this.configuration).getNetworkState(e).then(t=>t(this.axios,this.basePath))}getSystemStatus(e){return g(this.configuration).getSystemStatus(e).then(t=>t(this.axios,this.basePath))}getSystemVersion(e){return g(this.configuration).getSystemVersion(e).then(t=>t(this.axios,this.basePath))}listConfigurationResources(e){return g(this.configuration).listConfigurationResources(e).then(t=>t(this.axios,this.basePath))}restoreConfiguration(e,t,r){return g(this.configuration).restoreConfiguration(e,t,r).then(s=>s(this.axios,this.basePath))}updateNovaVersion(e,t){return g(this.configuration).updateNovaVersion(e,t).then(r=>r(this.axios,this.basePath))}};const Bt=function(e){return{addTrajectory:async(t,r,s,o={})=>{h("addTrajectory","cell",t),h("addTrajectory","controller",r),h("addTrajectory","addTrajectoryRequest",s);const n="/cells/{cell}/controllers/{controller}/trajectories".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}},clearTrajectories:async(t,r,s={})=>{h("clearTrajectories","cell",t),h("clearTrajectories","controller",r);const o="/cells/{cell}/controllers/{controller}/trajectories".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},deleteTrajectory:async(t,r,s,o={})=>{h("deleteTrajectory","cell",t),h("deleteTrajectory","controller",r),h("deleteTrajectory","trajectory",s);const n="/cells/{cell}/controllers/{controller}/trajectories/{trajectory}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{trajectory}",encodeURIComponent(String(s))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},i={},p={};S(c,e),await y(i,e),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},getTrajectory:async(t,r,s,o={})=>{h("getTrajectory","cell",t),h("getTrajectory","controller",r),h("getTrajectory","trajectory",s);const n="/cells/{cell}/controllers/{controller}/trajectories/{trajectory}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{trajectory}",encodeURIComponent(String(s))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},listTrajectories:async(t,r,s={})=>{h("listTrajectories","cell",t),h("listTrajectories","controller",r);const o="/cells/{cell}/controllers/{controller}/trajectories".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}}}},oe=function(e){const t=Bt(e);return{async addTrajectory(r,s,o,n){var i,p;const a=await t.addTrajectory(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["TrajectoryCachingApi.addTrajectory"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async clearTrajectories(r,s,o){var c,i;const n=await t.clearTrajectories(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["TrajectoryCachingApi.clearTrajectories"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async deleteTrajectory(r,s,o,n){var i,p;const a=await t.deleteTrajectory(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["TrajectoryCachingApi.deleteTrajectory"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async getTrajectory(r,s,o,n){var i,p;const a=await t.getTrajectory(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["TrajectoryCachingApi.getTrajectory"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async listTrajectories(r,s,o){var c,i;const n=await t.listTrajectories(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["TrajectoryCachingApi.listTrajectories"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)}}};var Mt=class extends L{addTrajectory(e,t,r,s){return oe(this.configuration).addTrajectory(e,t,r,s).then(o=>o(this.axios,this.basePath))}clearTrajectories(e,t,r){return oe(this.configuration).clearTrajectories(e,t,r).then(s=>s(this.axios,this.basePath))}deleteTrajectory(e,t,r,s){return oe(this.configuration).deleteTrajectory(e,t,r,s).then(o=>o(this.axios,this.basePath))}getTrajectory(e,t,r,s){return oe(this.configuration).getTrajectory(e,t,r,s).then(o=>o(this.axios,this.basePath))}listTrajectories(e,t,r){return oe(this.configuration).listTrajectories(e,t,r).then(s=>s(this.axios,this.basePath))}};const Lt=function(e){return{executeTrajectory:async(t,r,s,o={})=>{h("executeTrajectory","cell",t),h("executeTrajectory","controller",r),h("executeTrajectory","executeTrajectoryRequest",s);const n="/cells/{cell}/controllers/{controller}/execution/trajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}}}},Ft=function(e){const t=Lt(e);return{async executeTrajectory(r,s,o,n){var i,p;const a=await t.executeTrajectory(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["TrajectoryExecutionApi.executeTrajectory"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)}}};var Gt=class extends L{executeTrajectory(e,t,r,s){return Ft(this.configuration).executeTrajectory(e,t,r,s).then(o=>o(this.axios,this.basePath))}};const kt=function(e){return{planCollisionFree:async(t,r,s={})=>{h("planCollisionFree","cell",t),h("planCollisionFree","planCollisionFreeRequest",r);const o="/cells/{cell}/trajectory-planning/plan-collision-free".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"POST",...a,...s},c={},i={};S(l,e),await y(c,e),c["Content-Type"]="application/json",b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},l.data=j(r,l,e),{url:P(n),options:l}},planTrajectory:async(t,r,s={})=>{h("planTrajectory","cell",t),h("planTrajectory","planTrajectoryRequest",r);const o="/cells/{cell}/trajectory-planning/plan-trajectory".replace("{cell}",encodeURIComponent(String(t))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"POST",...a,...s},c={},i={};S(l,e),await y(c,e),c["Content-Type"]="application/json",b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},l.data=j(r,l,e),{url:P(n),options:l}}}},xe=function(e){const t=kt(e);return{async planCollisionFree(r,s,o){var c,i;const n=await t.planCollisionFree(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["TrajectoryPlanningApi.planCollisionFree"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async planTrajectory(r,s,o){var c,i;const n=await t.planTrajectory(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["TrajectoryPlanningApi.planTrajectory"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)}}};var qt=class extends L{planCollisionFree(e,t,r){return xe(this.configuration).planCollisionFree(e,t,r).then(s=>s(this.axios,this.basePath))}planTrajectory(e,t,r){return xe(this.configuration).planTrajectory(e,t,r).then(s=>s(this.axios,this.basePath))}};const Dt=function(e){return{addVirtualControllerCoordinateSystem:async(t,r,s,o,n={})=>{h("addVirtualControllerCoordinateSystem","cell",t),h("addVirtualControllerCoordinateSystem","controller",r),h("addVirtualControllerCoordinateSystem","coordinateSystem",s),h("addVirtualControllerCoordinateSystem","coordinateSystemData",o);const a="/cells/{cell}/virtual-controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{coordinate-system}",encodeURIComponent(String(s))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};S(i,e),await y(p,e),p["Content-Type"]="application/json",b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=j(o,i,e),{url:P(l),options:i}},addVirtualControllerTcp:async(t,r,s,o,n,a={})=>{h("addVirtualControllerTcp","cell",t),h("addVirtualControllerTcp","controller",r),h("addVirtualControllerTcp","motionGroup",s),h("addVirtualControllerTcp","tcp",o),h("addVirtualControllerTcp","robotTcpData",n);const l="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/tcps/{tcp}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))).replace("{tcp}",encodeURIComponent(String(o))),c=new URL(l,C);let i;e&&(i=e.baseOptions);const p={method:"PUT",...i,...a},d={},u={};S(p,e),await y(d,e),d["Content-Type"]="application/json",b(c,u);let v=i&&i.headers?i.headers:{};return p.headers={...d,...v,...a.headers},p.data=j(n,p,e),{url:P(c),options:p}},deleteVirtualControllerCoordinateSystem:async(t,r,s,o,n={})=>{h("deleteVirtualControllerCoordinateSystem","cell",t),h("deleteVirtualControllerCoordinateSystem","controller",r),h("deleteVirtualControllerCoordinateSystem","coordinateSystem",s);const a="/cells/{cell}/virtual-controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{coordinate-system}",encodeURIComponent(String(s))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"DELETE",...c,...n},p={},d={};S(i,e),await y(p,e),o!==void 0&&(d.delete_dependent=o),b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:P(l),options:i}},deleteVirtualControllerTcp:async(t,r,s,o,n={})=>{h("deleteVirtualControllerTcp","cell",t),h("deleteVirtualControllerTcp","controller",r),h("deleteVirtualControllerTcp","motionGroup",s),h("deleteVirtualControllerTcp","tcp",o);const a="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/tcps/{tcp}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))).replace("{tcp}",encodeURIComponent(String(o))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"DELETE",...c,...n},p={},d={};S(i,e),await y(p,e),b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:P(l),options:i}},getEmergencyStop:async(t,r,s={})=>{h("getEmergencyStop","cell",t),h("getEmergencyStop","controller",r);const o="/cells/{cell}/virtual-controllers/{controller}/emergency-stop".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getMotionGroupState:async(t,r,s,o={})=>{h("getMotionGroupState","cell",t),h("getMotionGroupState","controller",r),h("getMotionGroupState","motionGroup",s);const n="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},getMotionGroups:async(t,r,s={})=>{h("getMotionGroups","cell",t),h("getMotionGroups","controller",r);const o="/cells/{cell}/virtual-controllers/{controller}/motion-groups".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getOperationMode:async(t,r,s={})=>{h("getOperationMode","cell",t),h("getOperationMode","controller",r);const o="/cells/{cell}/virtual-controllers/{controller}/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getVirtualControllerMounting:async(t,r,s,o={})=>{h("getVirtualControllerMounting","cell",t),h("getVirtualControllerMounting","controller",r),h("getVirtualControllerMounting","motionGroup",s);const n="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},listVirtualControllerCoordinateSystems:async(t,r,s={})=>{h("listVirtualControllerCoordinateSystems","cell",t),h("listVirtualControllerCoordinateSystems","controller",r);const o="/cells/{cell}/virtual-controllers/{controller}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},listVirtualControllerTcps:async(t,r,s,o={})=>{h("listVirtualControllerTcps","cell",t),h("listVirtualControllerTcps","controller",r),h("listVirtualControllerTcps","motionGroup",s);const n="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},setEmergencyStop:async(t,r,s,o={})=>{h("setEmergencyStop","cell",t),h("setEmergencyStop","controller",r);const n="/cells/{cell}/virtual-controllers/{controller}/emergency-stop".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.active=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},setMotionGroupState:async(t,r,s,o,n={})=>{h("setMotionGroupState","cell",t),h("setMotionGroupState","controller",r),h("setMotionGroupState","motionGroup",s),h("setMotionGroupState","motionGroupJoints",o);const a="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};S(i,e),await y(p,e),p["Content-Type"]="application/json",b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=j(o,i,e),{url:P(l),options:i}},setOperationMode:async(t,r,s,o={})=>{h("setOperationMode","cell",t),h("setOperationMode","controller",r),h("setOperationMode","mode",s);const n="/cells/{cell}/virtual-controllers/{controller}/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.mode=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},setVirtualControllerMounting:async(t,r,s,o,n={})=>{h("setVirtualControllerMounting","cell",t),h("setVirtualControllerMounting","controller",r),h("setVirtualControllerMounting","motionGroup",s),h("setVirtualControllerMounting","coordinateSystem",o);const a="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{motion-group}",encodeURIComponent(String(s))),l=new URL(a,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};S(i,e),await y(p,e),p["Content-Type"]="application/json",b(l,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=j(o,i,e),{url:P(l),options:i}}}},q=function(e){const t=Dt(e);return{async addVirtualControllerCoordinateSystem(r,s,o,n,a){var p,d;const l=await t.addVirtualControllerCoordinateSystem(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.addVirtualControllerCoordinateSystem"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)},async addVirtualControllerTcp(r,s,o,n,a,l){var d,u;const c=await t.addVirtualControllerTcp(r,s,o,n,a,l),i=(e==null?void 0:e.serverIndex)??0,p=(u=(d=V["VirtualControllerApi.addVirtualControllerTcp"])==null?void 0:d[i])==null?void 0:u.url;return(v,E)=>I(c,m,O,e)(v,p||E)},async deleteVirtualControllerCoordinateSystem(r,s,o,n,a){var p,d;const l=await t.deleteVirtualControllerCoordinateSystem(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.deleteVirtualControllerCoordinateSystem"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)},async deleteVirtualControllerTcp(r,s,o,n,a){var p,d;const l=await t.deleteVirtualControllerTcp(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.deleteVirtualControllerTcp"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)},async getEmergencyStop(r,s,o){var c,i;const n=await t.getEmergencyStop(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["VirtualControllerApi.getEmergencyStop"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getMotionGroupState(r,s,o,n){var i,p;const a=await t.getMotionGroupState(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.getMotionGroupState"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async getMotionGroups(r,s,o){var c,i;const n=await t.getMotionGroups(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["VirtualControllerApi.getMotionGroups"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getOperationMode(r,s,o){var c,i;const n=await t.getOperationMode(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["VirtualControllerApi.getOperationMode"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getVirtualControllerMounting(r,s,o,n){var i,p;const a=await t.getVirtualControllerMounting(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.getVirtualControllerMounting"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async listVirtualControllerCoordinateSystems(r,s,o){var c,i;const n=await t.listVirtualControllerCoordinateSystems(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["VirtualControllerApi.listVirtualControllerCoordinateSystems"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async listVirtualControllerTcps(r,s,o,n){var i,p;const a=await t.listVirtualControllerTcps(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.listVirtualControllerTcps"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async setEmergencyStop(r,s,o,n){var i,p;const a=await t.setEmergencyStop(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.setEmergencyStop"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async setMotionGroupState(r,s,o,n,a){var p,d;const l=await t.setMotionGroupState(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.setMotionGroupState"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)},async setOperationMode(r,s,o,n){var i,p;const a=await t.setOperationMode(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.setOperationMode"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async setVirtualControllerMounting(r,s,o,n,a){var p,d;const l=await t.setVirtualControllerMounting(r,s,o,n,a),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.setVirtualControllerMounting"])==null?void 0:p[c])==null?void 0:d.url;return(u,v)=>I(l,m,O,e)(u,i||v)}}};var Qt=class extends L{addVirtualControllerCoordinateSystem(e,t,r,s,o){return q(this.configuration).addVirtualControllerCoordinateSystem(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}addVirtualControllerTcp(e,t,r,s,o,n){return q(this.configuration).addVirtualControllerTcp(e,t,r,s,o,n).then(a=>a(this.axios,this.basePath))}deleteVirtualControllerCoordinateSystem(e,t,r,s,o){return q(this.configuration).deleteVirtualControllerCoordinateSystem(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}deleteVirtualControllerTcp(e,t,r,s,o){return q(this.configuration).deleteVirtualControllerTcp(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}getEmergencyStop(e,t,r){return q(this.configuration).getEmergencyStop(e,t,r).then(s=>s(this.axios,this.basePath))}getMotionGroupState(e,t,r,s){return q(this.configuration).getMotionGroupState(e,t,r,s).then(o=>o(this.axios,this.basePath))}getMotionGroups(e,t,r){return q(this.configuration).getMotionGroups(e,t,r).then(s=>s(this.axios,this.basePath))}getOperationMode(e,t,r){return q(this.configuration).getOperationMode(e,t,r).then(s=>s(this.axios,this.basePath))}getVirtualControllerMounting(e,t,r,s){return q(this.configuration).getVirtualControllerMounting(e,t,r,s).then(o=>o(this.axios,this.basePath))}listVirtualControllerCoordinateSystems(e,t,r){return q(this.configuration).listVirtualControllerCoordinateSystems(e,t,r).then(s=>s(this.axios,this.basePath))}listVirtualControllerTcps(e,t,r,s){return q(this.configuration).listVirtualControllerTcps(e,t,r,s).then(o=>o(this.axios,this.basePath))}setEmergencyStop(e,t,r,s){return q(this.configuration).setEmergencyStop(e,t,r,s).then(o=>o(this.axios,this.basePath))}setMotionGroupState(e,t,r,s,o){return q(this.configuration).setMotionGroupState(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}setOperationMode(e,t,r,s){return q(this.configuration).setOperationMode(e,t,r,s).then(o=>o(this.axios,this.basePath))}setVirtualControllerMounting(e,t,r,s,o){return q(this.configuration).setVirtualControllerMounting(e,t,r,s,o).then(n=>n(this.axios,this.basePath))}};const Ht=function(e){return{externalJointsStream:async(t,r,s,o={})=>{h("externalJointsStream","cell",t),h("externalJointsStream","controller",r),h("externalJointsStream","externalJointStreamRequest",s);const n="/cells/{cell}/virtual-controllers/{controller}/external-joints-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}},getCycleTime:async(t,r,s={})=>{h("getCycleTime","cell",t),h("getCycleTime","controller",r);const o="/cells/{cell}/virtual-controllers/{controller}/cycle-time".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},getVirtualControllerBehavior:async(t,r,s={})=>{h("getVirtualControllerBehavior","cell",t),h("getVirtualControllerBehavior","controller",r);const o="/cells/{cell}/virtual-controllers/{controller}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),n=new URL(o,C);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...s},c={},i={};S(l,e),await y(c,e),b(n,i);let p=a&&a.headers?a.headers:{};return l.headers={...c,...p,...s.headers},{url:P(n),options:l}},setVirtualControllerBehavior:async(t,r,s,o={})=>{h("setVirtualControllerBehavior","cell",t),h("setVirtualControllerBehavior","controller",r);const n="/cells/{cell}/virtual-controllers/{controller}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),s!==void 0&&(p.behavior=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}}}},ie=function(e){const t=Ht(e);return{async externalJointsStream(r,s,o,n){var i,p;const a=await t.externalJointsStream(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerBehaviorApi.externalJointsStream"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async getCycleTime(r,s,o){var c,i;const n=await t.getCycleTime(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["VirtualControllerBehaviorApi.getCycleTime"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async getVirtualControllerBehavior(r,s,o){var c,i;const n=await t.getVirtualControllerBehavior(r,s,o),a=(e==null?void 0:e.serverIndex)??0,l=(i=(c=V["VirtualControllerBehaviorApi.getVirtualControllerBehavior"])==null?void 0:c[a])==null?void 0:i.url;return(p,d)=>I(n,m,O,e)(p,l||d)},async setVirtualControllerBehavior(r,s,o,n){var i,p;const a=await t.setVirtualControllerBehavior(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerBehaviorApi.setVirtualControllerBehavior"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)}}};var Nt=class extends L{externalJointsStream(e,t,r,s){return ie(this.configuration).externalJointsStream(e,t,r,s).then(o=>o(this.axios,this.basePath))}getCycleTime(e,t,r){return ie(this.configuration).getCycleTime(e,t,r).then(s=>s(this.axios,this.basePath))}getVirtualControllerBehavior(e,t,r){return ie(this.configuration).getVirtualControllerBehavior(e,t,r).then(s=>s(this.axios,this.basePath))}setVirtualControllerBehavior(e,t,r,s){return ie(this.configuration).setVirtualControllerBehavior(e,t,r,s).then(o=>o(this.axios,this.basePath))}};const Kt=function(e){return{listIOs:async(t,r,s,o={})=>{h("listIOs","cell",t),h("listIOs","controller",r),h("listIOs","ios",s);const n="/cells/{cell}/virtual-controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},i={},p={};S(c,e),await y(i,e),s&&(p.ios=s),b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},{url:P(a),options:c}},listVirtualControllerIODescriptions:async(t,r,s,o,n,a,l={})=>{h("listVirtualControllerIODescriptions","cell",t),h("listVirtualControllerIODescriptions","controller",r);const c="/cells/{cell}/virtual-controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),i=new URL(c,C);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...l},u={},v={};S(d,e),await y(u,e),s&&(v.ios=s),o!==void 0&&(v.direction=o),n!==void 0&&(v.value_type=n),a!==void 0&&(v.group=a),b(i,v);let E=p&&p.headers?p.headers:{};return d.headers={...u,...E,...l.headers},{url:P(i),options:d}},setIOValues:async(t,r,s,o={})=>{h("setIOValues","cell",t),h("setIOValues","controller",r),h("setIOValues","iOValue",s);const n="/cells/{cell}/virtual-controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),a=new URL(n,C);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},i={},p={};S(c,e),await y(i,e),i["Content-Type"]="application/json",b(a,p);let d=l&&l.headers?l.headers:{};return c.headers={...i,...d,...o.headers},c.data=j(s,c,e),{url:P(a),options:c}}}},Oe=function(e){const t=Kt(e);return{async listIOs(r,s,o,n){var i,p;const a=await t.listIOs(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerInputsOutputsApi.listIOs"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)},async listVirtualControllerIODescriptions(r,s,o,n,a,l,c){var u,v;const i=await t.listVirtualControllerIODescriptions(r,s,o,n,a,l,c),p=(e==null?void 0:e.serverIndex)??0,d=(v=(u=V["VirtualControllerInputsOutputsApi.listVirtualControllerIODescriptions"])==null?void 0:u[p])==null?void 0:v.url;return(E,Y)=>I(i,m,O,e)(E,d||Y)},async setIOValues(r,s,o,n){var i,p;const a=await t.setIOValues(r,s,o,n),l=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerInputsOutputsApi.setIOValues"])==null?void 0:i[l])==null?void 0:p.url;return(d,u)=>I(a,m,O,e)(d,c||u)}}};var $t=class extends L{listIOs(e,t,r,s){return Oe(this.configuration).listIOs(e,t,r,s).then(o=>o(this.axios,this.basePath))}listVirtualControllerIODescriptions(e,t,r,s,o,n,a){return Oe(this.configuration).listVirtualControllerIODescriptions(e,t,r,s,o,n,a).then(l=>l(this.axios,this.basePath))}setIOValues(e,t,r,s){return Oe(this.configuration).setIOValues(e,t,r,s).then(o=>o(this.axios,this.basePath))}},Jt=class{constructor(e,t){this.cellId=e,this.opts=t,this.system=this.withUnwrappedResponsesOnly(Et),this.cell=this.withUnwrappedResponsesOnly(dt),this.motionGroup=this.withCellId(It),this.motionGroupModels=this.withUnwrappedResponsesOnly(xt),this.controller=this.withCellId(ut),this.controllerIOs=this.withCellId(Ot),this.trajectoryPlanning=this.withCellId(qt),this.trajectoryExecution=this.withCellId(Gt),this.trajectoryCaching=this.withCellId(Mt),this.application=this.withCellId(Ie),this.applicationGlobal=this.withUnwrappedResponsesOnly(Ie),this.jogging=this.withCellId(St),this.kinematics=this.withCellId(bt),this.busInputsOutputs=this.withCellId(it),this.virtualController=this.withCellId(Qt),this.virtualControllerBehavior=this.withCellId(Nt),this.virtualControllerIOs=this.withCellId($t),this.storeObject=this.withCellId(jt),this.storeCollisionComponents=this.withCellId(At),this.storeCollisionSetups=this.withCellId(Ut)}withCellId(e){const t=new e({...this.opts,isJsonMime:r=>r==="application/json"},this.opts.basePath??"",this.opts.axiosInstance??m.create());for(const r of Reflect.ownKeys(Reflect.getPrototypeOf(t)))if(r!=="constructor"&&typeof t[r]=="function"){const s=t[r];t[r]=(...o)=>s.apply(t,[this.cellId,...o]).then(n=>n.data)}return t}withUnwrappedResponsesOnly(e){const t=new e({...this.opts,isJsonMime:r=>r==="application/json"},this.opts.basePath??"",this.opts.axiosInstance??m.create());for(const r of Reflect.ownKeys(Reflect.getPrototypeOf(t)))if(r!=="constructor"&&typeof t[r]=="function"){const s=t[r];t[r]=(...o)=>s.apply(t,o).then(n=>n.data)}return t}},gt=class{constructor(){this.connections=[]}async handleAPIRequest(e){var o,n,a;const t=[{method:"GET",path:"/cells/:cellId/controllers",handle(){return["mock-ur5e"]}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId",handle(){return{configuration:{initial_joint_position:"[0,-1.571,-1.571,-1.571,1.571,-1.571,0]",kind:"VirtualController",manufacturer:"universalrobots",type:"universalrobots-ur5e"},name:"mock-ur5"}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId/state",handle(){return{mode:"MODE_CONTROL",last_error:[],timestamp:"2025-10-16T09:19:26.634534092Z",sequence_number:1054764,controller:"mock-ur5e",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",velocity_override:100,motion_groups:[{timestamp:"2025-10-16T09:19:26.634534092Z",sequence_number:1054764,motion_group:"0@mock-ur5e",controller:"mock-ur5e",joint_position:[1.487959623336792,-1.8501918315887451,1.8003005981445312,6.034560203552246,1.4921919107437134,1.593459963798523],joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_torque:[],joint_current:[0,0,0,0,0,0],flange_pose:{position:[107.6452433732927,-409.0402987746852,524.2402132330305],orientation:[.9874434028353319,-.986571714997442,1.3336589451098142]},tcp:"Flange",tcp_pose:{position:[107.6452433732927,-409.0402987746852,524.2402132330305],orientation:[.9874434028353319,-.986571714997442,1.3336589451098142]},payload:"",coordinate_system:"",standstill:!0}]}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId/motion-groups/:motionGroupId/description",handle(){return{motion_group_model:"UniversalRobots_UR5e",mounting:{position:[0,0,0],orientation:[0,0,0]},tcps:{Flange:{name:"Default-Flange",pose:{position:[0,0,0],orientation:[0,0,0]}}},payloads:{"FPay-0":{name:"FPay-0",payload:0,center_of_mass:[0,0,0],moment_of_inertia:[0,0,0]}},cycle_time:8,dh_parameters:[{alpha:1.5707963267948966,d:162.25},{a:-425},{a:-392.2},{alpha:1.5707963267948966,d:133.3},{alpha:-1.5707963267948966,d:99.7},{d:99.6}],operation_limits:{auto_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3},elbow:{velocity:5e3},flange:{velocity:5e3}},manual_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}},manual_t1_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}},manual_t2_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}}},serial_number:"WBVirtualRobot"}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId/coordinate-systems",handle(){return[{coordinate_system:"",name:"world",reference_coordinate_system:"",position:[0,0,0],orientation:[0,0,0],orientation_type:"ROTATION_VECTOR"},{coordinate_system:"CS-0",name:"Default-CS",reference_coordinate_system:"",position:[0,0,0],orientation:[0,0,0],orientation_type:"ROTATION_VECTOR"}]}}],r=((o=e.method)==null?void 0:o.toUpperCase())||"GET",s=`/cells${(a=(n=e.url)==null?void 0:n.split("/cells")[1])==null?void 0:a.split("?")[0]}`;for(const l of t){const c=tt.match(l.path)(s||"");if(r===l.method&&c){const i=l.handle();return{status:200,statusText:"Success",data:JSON.stringify(i),headers:{},config:e,request:{responseURL:e.url}}}}throw new m.AxiosError(`No mock handler matched this request: ${r} ${s}`,"404",e)}handleWebsocketConnection(e){this.connections.push(e),setTimeout(()=>{e.dispatchEvent(new Event("open")),console.log("Websocket connection opened from",e.url),e.url.includes("/state-stream")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify(Wt)})),e.url.includes("/execution/jogging")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{message:"string",kind:"INITIALIZE_RECEIVED"}})}))},10)}handleWebsocketMessage(e,t){console.log(`Received message on ${e.url}`,t)}};const Wt={result:{motion_group:"0@universalrobots-ur5e",controller:"universalrobots-ur5e",timestamp:new Date().toISOString(),sequence_number:1,joint_position:[1.1699999570846558,-1.5700000524520874,1.3600000143051147,1.0299999713897705,1.2899999618530273,1.2799999713897705],joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},standstill:!1,flange_pose:{position:[1.3300010259703043,-409.2680714682808,531.0203477065281],orientation:[1.7564919306270736,-1.7542521568325058,.7326972590614671]},tcp_pose:{position:[1.3300010259703043,-409.2680714682808,531.0203477065281],orientation:[1.7564919306270736,-1.7542521568325058,.7326972590614671]}}};var Yt=class{constructor(e){this.authPromise=null,this.accessToken=null;const t=e.cellId??"cell";this.config={cellId:t,...e},this.accessToken=e.accessToken||ce.getString("wbjs.access_token")||null,this.config.instanceUrl==="https://mock.example.com"&&(this.mock=new gt),this.instanceUrl=ze(this.config.instanceUrl);const r=m.create({baseURL:ue(this.instanceUrl.href,"/api/v2"),headers:typeof window<"u"&&window.location.origin.includes("localhost")?{}:{"X-Wandelbots-Client":"Wandelbots-Nova-JS-SDK"}});r.interceptors.request.use(async s=>(s.headers.Authorization||(this.accessToken?s.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(s.headers.Authorization=`Basic ${btoa(`${e.username}:${e.password}`)}`)),s)),typeof window<"u"&&r.interceptors.response.use(s=>s,async s=>{var o,n;if(m.isAxiosError(s))if(((o=s.response)==null?void 0:o.status)===401)try{if(await this.renewAuthentication(),s.config)return this.accessToken?s.config.headers.Authorization=`Bearer ${this.accessToken}`:delete s.config.headers.Authorization,r.request(s.config)}catch(a){return Promise.reject(a)}else((n=s.response)==null?void 0:n.status)===503&&(await fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(s)}),this.api=new Jt(t,{...e,basePath:ue(this.instanceUrl.href,"/api/v2"),isJsonMime:s=>s==="application/json",baseOptions:{...this.mock?{adapter:s=>this.mock.handleAPIRequest(s)}:{},...e.baseOptions},axiosInstance:r})}async renewAuthentication(){if(this.authPromise)return;const e=ce.getString("wbjs.access_token");if(e&&this.accessToken!==e){this.accessToken=e;return}this.authPromise=Ze(this.instanceUrl);try{this.accessToken=await this.authPromise,this.accessToken?ce.setString("wbjs.access_token",this.accessToken):ce.delete("wbjs.access_token")}finally{this.authPromise=null}}makeWebsocketURL(e){const t=new URL(ue(this.instanceUrl.href,`/api/v2/cells/${this.config.cellId}`,e));return t.protocol=t.protocol.replace("http","ws"),t.protocol=t.protocol.replace("https","wss"),this.accessToken?t.searchParams.append("token",this.accessToken):this.config.username&&this.config.password&&(t.username=this.config.username,t.password=this.config.password),t.toString()}openReconnectingWebsocket(e){return new ge(this.makeWebsocketURL(e),{mock:this.mock})}};function zt(e){var n,a,l,c,i,p;const t=[((n=e.position)==null?void 0:n[0])??0,((a=e.position)==null?void 0:a[1])??0,((l=e.position)==null?void 0:l[2])??0],r=[((c=e.orientation)==null?void 0:c[0])??0,((i=e.orientation)==null?void 0:i[1])??0,((p=e.orientation)==null?void 0:p[2])??0],s=t.map(d=>d.toFixed(1)),o=r.map(d=>d.toFixed(4));return`(${s.concat(o).join(", ")})`}function de(e){pe.useEffect(e,[])}function Xt(e){de(()=>Re.autorun(e))}function Zt(e,t,r){de(()=>Re.reaction(e,t,r))}function ft(e){return de(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}class je{constructor(t=[],r={}){this.currentValues=[],this.targetValues=[],this.previousTargetValues=[],this.targetUpdateTime=0,this.animationId=null,this.updateCount=0,this.velocities=[],this.animate=()=>{this.update(.016666666666666666)?this.animationId=null:this.animationId=requestAnimationFrame(this.animate)},this.options={tension:120,friction:20,threshold:.001,onChange:()=>{},onComplete:()=>{},...r},this.currentValues=[...t],this.targetValues=[...t],this.previousTargetValues=[...t],this.velocities=new Array(t.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0}update(t=1/60){let r=!1,s=!0;this.updateCount++;const o=Math.min(t,1/15),n=this.updateCount===1?.7:1;for(let a=0;a<this.currentValues.length;a++){const l=this.currentValues[a],c=this.targetValues[a],i=this.velocities[a],p=c-l,d=p*this.options.tension*n,u=i*this.options.friction,v=d-u,E=i+v*o,Y=l+E*o;Math.abs(p)<this.options.threshold&&Math.abs(E)<this.options.threshold*10?this.currentValues[a]!==c&&(this.currentValues[a]=c,this.velocities[a]=0,r=!0):(s=!1,this.currentValues[a]=Y,this.velocities[a]=E,r=!0)}return r&&this.options.onChange(this.currentValues),s&&this.options.onComplete(this.currentValues),s}setTarget(t){const r=performance.now(),s=r-this.targetUpdateTime;this.previousTargetValues=[...this.targetValues],this.targetValues=[...t],this.targetUpdateTime=r,this.updateCount=0;const o=this.previousTargetValues.every((n,a)=>n===this.currentValues[a]);if(s<8&&s>0&&this.previousTargetValues.length>0&&!o){const n=Math.min(s/8,1);for(let a=0;a<this.targetValues.length;a++){const l=this.previousTargetValues[a]||0,c=t[a]||0;Math.abs(c-l)>.1&&(this.targetValues[a]=l+(c-l)*n)}}for(;this.currentValues.length<t.length;)this.currentValues.push(t[this.currentValues.length]),this.velocities.push(0);this.currentValues.length>t.length&&(this.currentValues=this.currentValues.slice(0,t.length),this.velocities=this.velocities.slice(0,t.length))}getCurrentValues(){return[...this.currentValues]}getValue(t){return this.currentValues[t]??0}isInterpolating(){return this.animationId!==null}stop(){this.animationId!==null&&(cancelAnimationFrame(this.animationId),this.animationId=null)}setImmediate(t){this.stop(),this.currentValues=[...t],this.targetValues=[...t],this.previousTargetValues=[...t],this.velocities=new Array(t.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0,this.options.onChange(this.currentValues)}updateOptions(t){this.options={...this.options,...t}}startAutoInterpolation(){this.startInterpolation()}destroy(){this.stop()}startInterpolation(){this.animationId===null&&this.animate()}}function er(e=[],t={}){const r=pe.useRef(null);return r.current||(r.current=new je(e,t)),pe.useEffect(()=>{var s;(s=r.current)==null||s.updateOptions(t)},[t]),pe.useEffect(()=>()=>{var s;(s=r.current)==null||s.destroy()},[]),[r.current]}exports.Manufacturer=ot;exports.NovaClient=Yt;exports.ProgramControl=Ge;exports.ProgramState=K;exports.ProgramStateIndicator=ke;exports.ValueInterpolator=je;exports.poseToWandelscriptString=zt;exports.useAnimationFrame=ft;exports.useAutorun=Xt;exports.useInterpolation=er;exports.useMounted=de;exports.useReaction=Zt;
20
+ //# sourceMappingURL=interpolation-DAXKfoDS.cjs.map